@@ -1170,15 +1170,17 @@ class OperationTemplate extends BaseModel {
11701170 type = "operation-templates" ;
11711171 name = "" ;
11721172 labels = [ ] ;
1173+ requirements = { forms : [ ] } ;
11731174 static relationships = [ ] ;
11741175 constructor ( data ) {
11751176 super ( data ) ;
11761177 this . name = data ?. attributes ?. name ?? data ?. name ?? "" ;
11771178 this . labels = data ?. attributes ?. labels ?? data ?. labels ?? [ ] ;
1179+ this . requirements = data ?. attributes ?. requirements ?? data ?. requirements ?? { forms : [ ] } ;
11781180 }
11791181 jsonApiMapping ( ) {
11801182 return {
1181- attributes : [ "name" , "labels" ]
1183+ attributes : [ "name" , "labels" , "requirements" ]
11821184 } ;
11831185 }
11841186}
@@ -1516,13 +1518,15 @@ class BaseService extends RequestBuilder {
15161518 } ;
15171519 }
15181520 async create ( model , params ) {
1519- if ( params ) { }
1521+ if ( params ) {
1522+ }
15201523 const jsonApiSerializer = new JsonApiSerializer ( this . hydrator . getModelMap ( ) ) ;
15211524 const payload = jsonApiSerializer . buildCreatePayload ( model ) ;
15221525 return await this . client . makePostRequest ( this . endpoint , payload ) ;
15231526 }
15241527 async update ( id , model , params ) {
1525- if ( params ) { }
1528+ if ( params ) {
1529+ }
15261530 const jsonApiSerializer = new JsonApiSerializer ( this . hydrator . getModelMap ( ) ) ;
15271531 const payload = jsonApiSerializer . buildUpdatePayload ( model ) ;
15281532 return await this . client . makePatchRequest ( `${ this . endpoint } /${ id } ` , payload ) ;
@@ -2185,6 +2189,9 @@ class ClientConfig {
21852189}
21862190// src/models/Organisation.ts
21872191class Organisation extends BaseModel {
2192+ constructor ( ) {
2193+ super ( ...arguments ) ;
2194+ }
21882195 type = "organisations" ;
21892196 static relationships = [ ] ;
21902197}
0 commit comments