client.projectStatementsOperation methods
Parameter declarations below are taken from the pinned TypeScript source. Request fields and responses are summarized from the matching OpenAPI operation; follow the API link for every field, constraint, example, and error description.
/project-statementsprojectStatements.list
Use this operation to list project statements. It returns only resources visible to the credential and applies the documented filters before producing a bounded, stable page. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request. Finance-protected fields are omitted or rejected unless the credential also has the documented finance scope.
client.projectStatements.list(options?: ProjectStatementListOptions)- Return form
Promise- Operation ID
listProjectStatements- Required scopes
project-statements:read- SDK parameters
options: ProjectStatementListOptions- Query request fields
cursor?: stringlimit?: integerarchived?: booleanprojectId?: stringproductId?: stringcreatedBy?: stringdateFrom?: stringdateTo?: stringcreatedAtFrom?: stringcreatedAtTo?: stringtype?: string- Success
200 Array<ProjectStatement> envelope
/project-statementsprojectStatements.create
Use this operation to create a project statement. The server validates the complete payload and derives workspace ownership from the authenticated credential. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request. Use a stable Idempotency-Key when retrying so a transport timeout cannot create duplicate work. Finance-protected fields are omitted or rejected unless the credential also has the documented finance scope.
client.projectStatements.create(data: ProjectStatementCreate, options?: MutationOptions)- Return form
Promise- Operation ID
createProjectStatement- Required scopes
project-statements:write- SDK parameters
data: ProjectStatementCreateoptions: MutationOptions- Header request fields
Idempotency-Key: string- Request body
ProjectStatementCreateapplication/json- Success
200 ProjectStatement envelope201 ProjectStatement envelope
/project-statements/{id}projectStatements.get
Use this operation to get a project statement. It returns the resource only when it belongs to the authenticated workspace and is visible to the credential. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request. Finance-protected fields are omitted or rejected unless the credential also has the documented finance scope.
client.projectStatements.get(id: string, options?: RequestOptions)- Return form
Promise- Operation ID
getProjectStatement- Required scopes
project-statements:read- SDK parameters
id: stringoptions: RequestOptions- Path request fields
id: string- Success
200 ProjectStatement envelope
/project-statements/{id}projectStatements.update
Use this operation to update a project statement. Only documented mutable fields are accepted; omitted fields retain their current values unless the request schema states replacement semantics. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request. Finance-protected fields are omitted or rejected unless the credential also has the documented finance scope.
client.projectStatements.update(id: string, data: ProjectStatementUpdate, options?: RequestOptions)- Return form
Promise- Operation ID
updateProjectStatement- Required scopes
project-statements:write- SDK parameters
id: stringdata: ProjectStatementUpdateoptions: RequestOptions- Path request fields
id: string- Request body
ProjectStatementUpdateapplication/json- Success
200 ProjectStatement envelope
/project-statements/{id}projectStatements.archive
Use this operation to archive a project statement. The operation preserves TeamGrid lifecycle and permission rules instead of bypassing them with a direct data deletion. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request. Finance-protected fields are omitted or rejected unless the credential also has the documented finance scope.
client.projectStatements.archive(id: string, options?: RequestOptions)- Return form
Promise- Operation ID
archiveProjectStatement- Required scopes
project-statements:write- SDK parameters
id: stringoptions: RequestOptions- Path request fields
id: string- Success
204
/project-statements/{id}/restoreprojectStatements.restore
Use this operation to restore a project statement. The server validates the complete payload and derives workspace ownership from the authenticated credential. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request. Finance-protected fields are omitted or rejected unless the credential also has the documented finance scope.
client.projectStatements.restore(id: string, options?: RequestOptions)- Return form
Promise- Operation ID
restoreProjectStatement- Required scopes
project-statements:write- SDK parameters
id: stringoptions: RequestOptions- Path request fields
id: string- Success
200 ProjectStatement envelope
Convenience helpers
These typed helpers compose mapped operations. They do not grant scopes or bypass API limits.
projectStatements.pages
Iterate cursor pages with a bounded PaginationOptions policy.
client.projectStatements.pages(options?: ProjectStatementListOptions, pagination?: PaginationOptions)Returns AsyncGeneratorErrors and transport metadata
HTTP failures reject with TeamGridApiError, including the status, stable error documents, request ID, optional retry delay, and transport metadata. Local validation, routing, timeout, response-size, and pagination failures reject withTeamGridClientError and a stable client error code. Successful envelopes expose non-enumerable transport metadata.
See pagination and errors andclient configuration for handling guidance.