@@ -1849,6 +1849,20 @@ class AppointmentsService extends BaseService {
18491849 }
18501850}
18511851
1852+ // src/services/OrganisationsService.ts
1853+ class OrganisationsService extends BaseService {
1854+ constructor ( client ) {
1855+ super ( client , "/v3/orgs" ) ;
1856+ }
1857+ }
1858+
1859+ // src/services/OrganisationMembersService.ts
1860+ class OrganisationMembersService extends BaseService {
1861+ constructor ( client ) {
1862+ super ( client , "/v3/orgs/:orgId/iam/members" ) ;
1863+ }
1864+ }
1865+
18521866// src/Client.ts
18531867class Client {
18541868 config ;
@@ -1977,6 +1991,12 @@ class Client {
19771991 vehicleInventoryChecks ( ) {
19781992 return new VehicleInventoryCheckService ( this ) ;
19791993 }
1994+ organisations ( ) {
1995+ return new OrganisationsService ( this ) ;
1996+ }
1997+ organisationMembers ( ) {
1998+ return new OrganisationMembersService ( this ) ;
1999+ }
19802000 setOrganisationSlug ( organisation ) {
19812001 this . config . organisationId = organisation ;
19822002 }
@@ -2088,13 +2108,19 @@ class ClientConfig {
20882108 this . authDomain = config . authDomain || "https://auth.ctrl-hub.com" ;
20892109 }
20902110}
2111+ // src/models/Organisation.ts
2112+ class Organisation extends BaseModel {
2113+ type = "organisations" ;
2114+ static relationships = [ ] ;
2115+ }
20912116export {
20922117 WorkOrder ,
20932118 VehicleSpecification ,
20942119 VehicleModel ,
20952120 VehicleManufacturer ,
20962121 VehicleCategory ,
20972122 Vehicle ,
2123+ User ,
20982124 Team ,
20992125 SubmissionVersion ,
21002126 Submission ,
@@ -2105,6 +2131,7 @@ export {
21052131 RequestOptions ,
21062132 Property ,
21072133 Permission ,
2134+ Organisation ,
21082135 Operation ,
21092136 Log ,
21102137 Group ,
0 commit comments