@@ -1045,8 +1045,8 @@ class Scheme extends BaseModel {
10451045 name = "" ;
10461046 code = "" ;
10471047 description = "" ;
1048- start_date = "" ;
1049- end_date = "" ;
1048+ anticipated_start_date = "" ;
1049+ anticipated_end_date = "" ;
10501050 labels = [ ] ;
10511051 static relationships = [
10521052 {
@@ -1060,13 +1060,13 @@ class Scheme extends BaseModel {
10601060 this . name = data ?. attributes ?. name ?? data ?. name ?? "" ;
10611061 this . code = data ?. attributes ?. code ?? data ?. code ?? "" ;
10621062 this . description = data ?. attributes ?. description ?? data ?. description ?? "" ;
1063- this . start_date = data ?. attributes ?. start_date ?? data ?. start_date ?? "" ;
1064- this . end_date = data ?. attributes ?. end_date ?? data ?. end_date ?? "" ;
1063+ this . anticipated_start_date = data ?. attributes ?. anticipated_start_date ?? data ?. anticipated_start_date ?? "" ;
1064+ this . anticipated_end_date = data ?. attributes ?. anticipated_end_date ?? data ?. anticipated_end_date ?? "" ;
10651065 this . labels = data ?. attributes ?. labels ?? data ?. labels ?? [ ] ;
10661066 }
10671067 jsonApiMapping ( ) {
10681068 return {
1069- attributes : [ "name" , "code" , "description" , "start_date " , "end_date " , "labels" ]
1069+ attributes : [ "name" , "code" , "description" , "anticipated_start_date " , "anticipated_end_date " , "labels" ]
10701070 } ;
10711071 }
10721072}
@@ -1077,8 +1077,8 @@ class WorkOrder extends BaseModel {
10771077 name = "" ;
10781078 code = "" ;
10791079 description = "" ;
1080- start_date = "" ;
1081- end_date = "" ;
1080+ anticipated_start_date = "" ;
1081+ anticipated_end_date = "" ;
10821082 labels = [ ] ;
10831083 static relationships = [
10841084 {
@@ -1092,13 +1092,13 @@ class WorkOrder extends BaseModel {
10921092 this . name = data ?. attributes ?. name ?? data ?. name ?? "" ;
10931093 this . code = data ?. attributes ?. code ?? data ?. code ?? "" ;
10941094 this . description = data ?. attributes ?. description ?? data ?. description ?? "" ;
1095- this . start_date = data ?. attributes ?. start_date ?? data ?. start_date ?? "" ;
1096- this . end_date = data ?. attributes ?. end_date ?? data ?. end_date ?? "" ;
1095+ this . anticipated_start_date = data ?. attributes ?. anticipated_start_date ?? data ?. anticipated_start_date ?? "" ;
1096+ this . anticipated_end_date = data ?. attributes ?. anticipated_end_date ?? data ?. anticipated_end_date ?? "" ;
10971097 this . labels = data ?. attributes ?. labels ?? data ?. labels ?? [ ] ;
10981098 }
10991099 jsonApiMapping ( ) {
11001100 return {
1101- attributes : [ "name" , "code" , "description" , "start_date " , "end_date " , "labels" ]
1101+ attributes : [ "name" , "code" , "description" , "anticipated_start_date " , "anticipated_end_date " , "labels" ]
11021102 } ;
11031103 }
11041104}
@@ -1501,13 +1501,15 @@ class BaseService extends RequestBuilder {
15011501 } ;
15021502 }
15031503 async create ( model , params ) {
1504- if ( params ) { }
1504+ if ( params ) {
1505+ }
15051506 const jsonApiSerializer = new JsonApiSerializer ( this . hydrator . getModelMap ( ) ) ;
15061507 const payload = jsonApiSerializer . buildCreatePayload ( model ) ;
15071508 return await this . client . makePostRequest ( this . endpoint , payload ) ;
15081509 }
15091510 async update ( id , model , params ) {
1510- if ( params ) { }
1511+ if ( params ) {
1512+ }
15111513 const jsonApiSerializer = new JsonApiSerializer ( this . hydrator . getModelMap ( ) ) ;
15121514 const payload = jsonApiSerializer . buildUpdatePayload ( model ) ;
15131515 return await this . client . makePatchRequest ( `${ this . endpoint } /${ id } ` , payload ) ;
@@ -2160,6 +2162,9 @@ class ClientConfig {
21602162}
21612163// src/models/Organisation.ts
21622164class Organisation extends BaseModel {
2165+ constructor ( ) {
2166+ super ( ...arguments ) ;
2167+ }
21632168 type = "organisations" ;
21642169 static relationships = [ ] ;
21652170}
0 commit comments