@@ -1807,8 +1807,13 @@ class CustomerInteractionsService extends BaseService {
18071807
18081808// src/services/TeamsService.ts
18091809class TeamsService extends BaseService {
1810- constructor ( client ) {
1811- super ( client , "/v3/orgs/:orgId/people/teams" ) ;
1810+ constructor ( client , teamId ) {
1811+ super ( client , teamId ? `/v3/orgs/:orgId/people/teams/${ teamId } ` : "/v3/orgs/:orgId/people/teams" ) ;
1812+ }
1813+ async patchMembers ( users ) {
1814+ const jsonApiSerializer = new JsonApiSerializer ( this . hydrator . getModelMap ( ) ) ;
1815+ const payload = jsonApiSerializer . buildRelationshipPayload ( new User , users ) ;
1816+ return await this . client . makePatchRequest ( `${ this . endpoint } /relationships/members` , payload ) ;
18121817 }
18131818}
18141819
@@ -1828,8 +1833,13 @@ class WorkOrdersService extends BaseService {
18281833
18291834// src/services/OperationsService.ts
18301835class OperationsService extends BaseService {
1831- constructor ( client , schemeId , workOrderId ) {
1832- super ( client , `/v3/orgs/:orgId/governance/schemes/${ schemeId } /work-orders/${ workOrderId } /operations` ) ;
1836+ constructor ( client , schemeId , workOrderId , operationId ) {
1837+ super ( client , operationId ? `/v3/orgs/:orgId/governance/schemes/${ schemeId } /work-orders/${ workOrderId } /operations/${ operationId } ` : `/v3/orgs/:orgId/governance/schemes/${ schemeId } /work-orders/${ workOrderId } /operations` ) ;
1838+ }
1839+ async patchAssignees ( users ) {
1840+ const jsonApiSerializer = new JsonApiSerializer ( this . hydrator . getModelMap ( ) ) ;
1841+ const payload = jsonApiSerializer . buildRelationshipPayload ( new User , users ) ;
1842+ return await this . client . makePatchRequest ( `${ this . endpoint } /relationships/assignees` , payload ) ;
18331843 }
18341844}
18351845
@@ -1922,8 +1932,8 @@ class Client {
19221932 workOrders ( schemeId ) {
19231933 return new WorkOrdersService ( this , schemeId ) ;
19241934 }
1925- operations ( schemeId , workOrderId ) {
1926- return new OperationsService ( this , schemeId , workOrderId ) ;
1935+ operations ( schemeId , workOrderId , operationId ) {
1936+ return new OperationsService ( this , schemeId , workOrderId , operationId ) ;
19271937 }
19281938 operationTemplates ( ) {
19291939 return new OperationTemplatesService ( this ) ;
@@ -1952,8 +1962,8 @@ class Client {
19521962 appointments ( ) {
19531963 return new AppointmentsService ( this ) ;
19541964 }
1955- teams ( ) {
1956- return new TeamsService ( this ) ;
1965+ teams ( teamId ) {
1966+ return new TeamsService ( this , teamId ) ;
19571967 }
19581968 submissions ( ) {
19591969 return new SubmissionsService ( this ) ;
@@ -2122,6 +2132,9 @@ class ClientConfig {
21222132}
21232133// src/models/Organisation.ts
21242134class Organisation extends BaseModel {
2135+ constructor ( ) {
2136+ super ( ...arguments ) ;
2137+ }
21252138 type = "organisations" ;
21262139 static relationships = [ ] ;
21272140}
0 commit comments