@ignos/api-client 20260602.144.1 → 20260605.146.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,30 +8,37 @@
8
8
  // ReSharper disable InconsistentNaming
9
9
 
10
10
  export class AuthorizedApiBase {
11
- private readonly config: IAccessTokenProvider;
11
+ private readonly config: IApiClientConfig;
12
12
 
13
- protected constructor(config: IAccessTokenProvider) {
13
+ protected constructor(config: IApiClientConfig) {
14
14
  this.config = config;
15
15
  }
16
16
 
17
17
  protected transformOptions = async (options: any): Promise<any> => {
18
18
  options.headers = {
19
19
  ...options.headers,
20
- Authorization: "Bearer " + (await this.config.getAccessToken()),
20
+ Authorization: "Bearer " + (await this.config.accessTokenProvider.getAccessToken()),
21
21
  };
22
+
23
+ const tenantId = this.config.tenantIdProvider.getTenantId();
24
+ if (tenantId) options.headers["x-tenantid"] = tenantId;
25
+
22
26
  return options;
23
27
  };
24
28
 
25
29
  protected jsonParseReviver = (_: any, value: any) => {
26
30
  // Matches starts with "2025-12-09T13:19:39"
27
31
  // Will also match "2025-12-09T13:19:39.4576289+00:00"
28
- const regex = /(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/;
32
+ if (typeof value !== "string") return value;
29
33
 
30
- if (typeof value === "string" && regex.exec(value)) {
31
- return new Date(value);
32
- }
34
+ const regex = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/;
35
+ if (!regex.test(value)) return value;
33
36
 
34
- return value;
37
+ const date = new Date(value);
38
+
39
+ // Prevent values like "2025-12-09T13:19:39.4576289+00:00 bla bla bla" from being parsed as Date
40
+ // (values not starting with an ISO date-time are already filtered out by the regex above)
41
+ return isNaN(date.getTime()) ? value : date;
35
42
  };
36
43
  }
37
44
 
@@ -44,7 +51,7 @@ export class AzureRegionsClient extends AuthorizedApiBase implements IAzureRegio
44
51
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
45
52
  private baseUrl: string;
46
53
 
47
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
54
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
48
55
  super(configuration);
49
56
  this.http = http ? http : window as any;
50
57
  this.baseUrl = baseUrl ?? "";
@@ -95,7 +102,7 @@ export class CountriesClient extends AuthorizedApiBase implements ICountriesClie
95
102
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
96
103
  private baseUrl: string;
97
104
 
98
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
105
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
99
106
  super(configuration);
100
107
  this.http = http ? http : window as any;
101
108
  this.baseUrl = baseUrl ?? "";
@@ -193,7 +200,7 @@ export class CustomersClient extends AuthorizedApiBase implements ICustomersClie
193
200
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
194
201
  private baseUrl: string;
195
202
 
196
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
203
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
197
204
  super(configuration);
198
205
  this.http = http ? http : window as any;
199
206
  this.baseUrl = baseUrl ?? "";
@@ -604,7 +611,7 @@ export class GuestsClient extends AuthorizedApiBase implements IGuestsClient {
604
611
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
605
612
  private baseUrl: string;
606
613
 
607
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
614
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
608
615
  super(configuration);
609
616
  this.http = http ? http : window as any;
610
617
  this.baseUrl = baseUrl ?? "";
@@ -659,7 +666,7 @@ export class PresentationClient extends AuthorizedApiBase implements IPresentati
659
666
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
660
667
  private baseUrl: string;
661
668
 
662
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
669
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
663
670
  super(configuration);
664
671
  this.http = http ? http : window as any;
665
672
  this.baseUrl = baseUrl ?? "";
@@ -747,7 +754,7 @@ export class SpatialClient extends AuthorizedApiBase implements ISpatialClient {
747
754
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
748
755
  private baseUrl: string;
749
756
 
750
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
757
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
751
758
  super(configuration);
752
759
  this.http = http ? http : window as any;
753
760
  this.baseUrl = baseUrl ?? "";
@@ -1484,7 +1491,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
1484
1491
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
1485
1492
  private baseUrl: string;
1486
1493
 
1487
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
1494
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
1488
1495
  super(configuration);
1489
1496
  this.http = http ? http : window as any;
1490
1497
  this.baseUrl = baseUrl ?? "";
@@ -1971,7 +1978,7 @@ export class ResourceUtilizationClient extends AuthorizedApiBase implements IRes
1971
1978
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
1972
1979
  private baseUrl: string;
1973
1980
 
1974
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
1981
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
1975
1982
  super(configuration);
1976
1983
  this.http = http ? http : window as any;
1977
1984
  this.baseUrl = baseUrl ?? "";
@@ -2395,7 +2402,7 @@ export class MeClient extends AuthorizedApiBase implements IMeClient {
2395
2402
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
2396
2403
  private baseUrl: string;
2397
2404
 
2398
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
2405
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
2399
2406
  super(configuration);
2400
2407
  this.http = http ? http : window as any;
2401
2408
  this.baseUrl = baseUrl ?? "";
@@ -2659,7 +2666,7 @@ export class UsersClient extends AuthorizedApiBase implements IUsersClient {
2659
2666
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
2660
2667
  private baseUrl: string;
2661
2668
 
2662
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
2669
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
2663
2670
  super(configuration);
2664
2671
  this.http = http ? http : window as any;
2665
2672
  this.baseUrl = baseUrl ?? "";
@@ -2806,7 +2813,7 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
2806
2813
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
2807
2814
  private baseUrl: string;
2808
2815
 
2809
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
2816
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
2810
2817
  super(configuration);
2811
2818
  this.http = http ? http : window as any;
2812
2819
  this.baseUrl = baseUrl ?? "";
@@ -3037,7 +3044,7 @@ export class UploadClient extends AuthorizedApiBase implements IUploadClient {
3037
3044
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
3038
3045
  private baseUrl: string;
3039
3046
 
3040
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3047
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3041
3048
  super(configuration);
3042
3049
  this.http = http ? http : window as any;
3043
3050
  this.baseUrl = baseUrl ?? "";
@@ -3127,7 +3134,7 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase implements IS
3127
3134
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
3128
3135
  private baseUrl: string;
3129
3136
 
3130
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3137
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3131
3138
  super(configuration);
3132
3139
  this.http = http ? http : window as any;
3133
3140
  this.baseUrl = baseUrl ?? "";
@@ -3180,7 +3187,7 @@ export class PowerClient extends AuthorizedApiBase implements IPowerClient {
3180
3187
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
3181
3188
  private baseUrl: string;
3182
3189
 
3183
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3190
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3184
3191
  super(configuration);
3185
3192
  this.http = http ? http : window as any;
3186
3193
  this.baseUrl = baseUrl ?? "";
@@ -3245,7 +3252,7 @@ export class SustainabilityClient extends AuthorizedApiBase implements ISustaina
3245
3252
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
3246
3253
  private baseUrl: string;
3247
3254
 
3248
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3255
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3249
3256
  super(configuration);
3250
3257
  this.http = http ? http : window as any;
3251
3258
  this.baseUrl = baseUrl ?? "";
@@ -3541,7 +3548,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
3541
3548
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
3542
3549
  private baseUrl: string;
3543
3550
 
3544
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3551
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3545
3552
  super(configuration);
3546
3553
  this.http = http ? http : window as any;
3547
3554
  this.baseUrl = baseUrl ?? "";
@@ -3856,7 +3863,7 @@ export class DowntimeReasonsAdminResourceClient extends AuthorizedApiBase implem
3856
3863
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
3857
3864
  private baseUrl: string;
3858
3865
 
3859
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3866
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
3860
3867
  super(configuration);
3861
3868
  this.http = http ? http : window as any;
3862
3869
  this.baseUrl = baseUrl ?? "";
@@ -4227,7 +4234,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
4227
4234
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
4228
4235
  private baseUrl: string;
4229
4236
 
4230
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
4237
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
4231
4238
  super(configuration);
4232
4239
  this.http = http ? http : window as any;
4233
4240
  this.baseUrl = baseUrl ?? "";
@@ -4659,7 +4666,7 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
4659
4666
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
4660
4667
  private baseUrl: string;
4661
4668
 
4662
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
4669
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
4663
4670
  super(configuration);
4664
4671
  this.http = http ? http : window as any;
4665
4672
  this.baseUrl = baseUrl ?? "";
@@ -5303,7 +5310,7 @@ export class KpiResourceClient extends AuthorizedApiBase implements IKpiResource
5303
5310
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
5304
5311
  private baseUrl: string;
5305
5312
 
5306
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
5313
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
5307
5314
  super(configuration);
5308
5315
  this.http = http ? http : window as any;
5309
5316
  this.baseUrl = baseUrl ?? "";
@@ -5509,7 +5516,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
5509
5516
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
5510
5517
  private baseUrl: string;
5511
5518
 
5512
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
5519
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
5513
5520
  super(configuration);
5514
5521
  this.http = http ? http : window as any;
5515
5522
  this.baseUrl = baseUrl ?? "";
@@ -6363,7 +6370,7 @@ export class PulseClient extends AuthorizedApiBase implements IPulseClient {
6363
6370
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
6364
6371
  private baseUrl: string;
6365
6372
 
6366
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
6373
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
6367
6374
  super(configuration);
6368
6375
  this.http = http ? http : window as any;
6369
6376
  this.baseUrl = baseUrl ?? "";
@@ -6574,7 +6581,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
6574
6581
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
6575
6582
  private baseUrl: string;
6576
6583
 
6577
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
6584
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
6578
6585
  super(configuration);
6579
6586
  this.http = http ? http : window as any;
6580
6587
  this.baseUrl = baseUrl ?? "";
@@ -7159,7 +7166,7 @@ export class MrbClient extends AuthorizedApiBase implements IMrbClient {
7159
7166
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
7160
7167
  private baseUrl: string;
7161
7168
 
7162
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
7169
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
7163
7170
  super(configuration);
7164
7171
  this.http = http ? http : window as any;
7165
7172
  this.baseUrl = baseUrl ?? "";
@@ -8402,7 +8409,7 @@ export class TraceClient extends AuthorizedApiBase implements ITraceClient {
8402
8409
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
8403
8410
  private baseUrl: string;
8404
8411
 
8405
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
8412
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
8406
8413
  super(configuration);
8407
8414
  this.http = http ? http : window as any;
8408
8415
  this.baseUrl = baseUrl ?? "";
@@ -8823,6 +8830,8 @@ export interface IMeasuringToolsClient {
8823
8830
 
8824
8831
  deleteMeasuringToolSubType(typeId: string, id: string): Promise<void>;
8825
8832
 
8833
+ seedTypesAndSubTypes(): Promise<void>;
8834
+
8826
8835
  listMeasuringUnits(): Promise<MeasuringUnitDto[]>;
8827
8836
 
8828
8837
  createMeasuringUnit(request: CreateMeasuringUnit): Promise<MeasuringUnitDto>;
@@ -8862,7 +8871,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
8862
8871
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
8863
8872
  private baseUrl: string;
8864
8873
 
8865
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
8874
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
8866
8875
  super(configuration);
8867
8876
  this.http = http ? http : window as any;
8868
8877
  this.baseUrl = baseUrl ?? "";
@@ -9595,6 +9604,38 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
9595
9604
  return Promise.resolve<void>(null as any);
9596
9605
  }
9597
9606
 
9607
+ seedTypesAndSubTypes(): Promise<void> {
9608
+ let url_ = this.baseUrl + "/measuringtools/types/seed";
9609
+ url_ = url_.replace(/[?&]$/, "");
9610
+
9611
+ let options_: RequestInit = {
9612
+ method: "POST",
9613
+ headers: {
9614
+ }
9615
+ };
9616
+
9617
+ return this.transformOptions(options_).then(transformedOptions_ => {
9618
+ return this.http.fetch(url_, transformedOptions_);
9619
+ }).then((_response: Response) => {
9620
+ return this.processSeedTypesAndSubTypes(_response);
9621
+ });
9622
+ }
9623
+
9624
+ protected processSeedTypesAndSubTypes(response: Response): Promise<void> {
9625
+ const status = response.status;
9626
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
9627
+ if (status === 204) {
9628
+ return response.text().then((_responseText) => {
9629
+ return;
9630
+ });
9631
+ } else if (status !== 200 && status !== 204) {
9632
+ return response.text().then((_responseText) => {
9633
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
9634
+ });
9635
+ }
9636
+ return Promise.resolve<void>(null as any);
9637
+ }
9638
+
9598
9639
  listMeasuringUnits(): Promise<MeasuringUnitDto[]> {
9599
9640
  let url_ = this.baseUrl + "/measuringtools/units";
9600
9641
  url_ = url_.replace(/[?&]$/, "");
@@ -10200,7 +10241,7 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDo
10200
10241
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
10201
10242
  private baseUrl: string;
10202
10243
 
10203
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
10244
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
10204
10245
  super(configuration);
10205
10246
  this.http = http ? http : window as any;
10206
10247
  this.baseUrl = baseUrl ?? "";
@@ -10571,7 +10612,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
10571
10612
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
10572
10613
  private baseUrl: string;
10573
10614
 
10574
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
10615
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
10575
10616
  super(configuration);
10576
10617
  this.http = http ? http : window as any;
10577
10618
  this.baseUrl = baseUrl ?? "";
@@ -10983,7 +11024,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
10983
11024
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
10984
11025
  private baseUrl: string;
10985
11026
 
10986
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
11027
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
10987
11028
  super(configuration);
10988
11029
  this.http = http ? http : window as any;
10989
11030
  this.baseUrl = baseUrl ?? "";
@@ -11233,7 +11274,7 @@ export class KpiClient extends AuthorizedApiBase implements IKpiClient {
11233
11274
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
11234
11275
  private baseUrl: string;
11235
11276
 
11236
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
11277
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
11237
11278
  super(configuration);
11238
11279
  this.http = http ? http : window as any;
11239
11280
  this.baseUrl = baseUrl ?? "";
@@ -11439,7 +11480,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
11439
11480
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
11440
11481
  private baseUrl: string;
11441
11482
 
11442
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
11483
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
11443
11484
  super(configuration);
11444
11485
  this.http = http ? http : window as any;
11445
11486
  this.baseUrl = baseUrl ?? "";
@@ -12261,7 +12302,7 @@ export class LinksClient extends AuthorizedApiBase implements ILinksClient {
12261
12302
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
12262
12303
  private baseUrl: string;
12263
12304
 
12264
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
12305
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
12265
12306
  super(configuration);
12266
12307
  this.http = http ? http : window as any;
12267
12308
  this.baseUrl = baseUrl ?? "";
@@ -12425,7 +12466,7 @@ export class ExternalServicesClient extends AuthorizedApiBase implements IExtern
12425
12466
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
12426
12467
  private baseUrl: string;
12427
12468
 
12428
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
12469
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
12429
12470
  super(configuration);
12430
12471
  this.http = http ? http : window as any;
12431
12472
  this.baseUrl = baseUrl ?? "";
@@ -12488,7 +12529,7 @@ export class DocumentsClient extends AuthorizedApiBase implements IDocumentsClie
12488
12529
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
12489
12530
  private baseUrl: string;
12490
12531
 
12491
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
12532
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
12492
12533
  super(configuration);
12493
12534
  this.http = http ? http : window as any;
12494
12535
  this.baseUrl = baseUrl ?? "";
@@ -12612,7 +12653,7 @@ export class DocumentTypesClient extends AuthorizedApiBase implements IDocumentT
12612
12653
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
12613
12654
  private baseUrl: string;
12614
12655
 
12615
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
12656
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
12616
12657
  super(configuration);
12617
12658
  this.http = http ? http : window as any;
12618
12659
  this.baseUrl = baseUrl ?? "";
@@ -13053,7 +13094,7 @@ export class ExternalAccessClient extends AuthorizedApiBase implements IExternal
13053
13094
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13054
13095
  private baseUrl: string;
13055
13096
 
13056
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13097
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13057
13098
  super(configuration);
13058
13099
  this.http = http ? http : window as any;
13059
13100
  this.baseUrl = baseUrl ?? "";
@@ -13333,7 +13374,7 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
13333
13374
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13334
13375
  private baseUrl: string;
13335
13376
 
13336
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13377
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13337
13378
  super(configuration);
13338
13379
  this.http = http ? http : window as any;
13339
13380
  this.baseUrl = baseUrl ?? "";
@@ -13478,7 +13519,7 @@ export class SuppliersClient extends AuthorizedApiBase implements ISuppliersClie
13478
13519
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13479
13520
  private baseUrl: string;
13480
13521
 
13481
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13522
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13482
13523
  super(configuration);
13483
13524
  this.http = http ? http : window as any;
13484
13525
  this.baseUrl = baseUrl ?? "";
@@ -13798,7 +13839,7 @@ export class CncFileTransferClient extends AuthorizedApiBase implements ICncFile
13798
13839
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13799
13840
  private baseUrl: string;
13800
13841
 
13801
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13842
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13802
13843
  super(configuration);
13803
13844
  this.http = http ? http : window as any;
13804
13845
  this.baseUrl = baseUrl ?? "";
@@ -14092,7 +14133,7 @@ export class CncSetupAgentClient extends AuthorizedApiBase implements ICncSetupA
14092
14133
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
14093
14134
  private baseUrl: string;
14094
14135
 
14095
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
14136
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
14096
14137
  super(configuration);
14097
14138
  this.http = http ? http : window as any;
14098
14139
  this.baseUrl = baseUrl ?? "";
@@ -14340,7 +14381,7 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
14340
14381
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
14341
14382
  private baseUrl: string;
14342
14383
 
14343
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
14384
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
14344
14385
  super(configuration);
14345
14386
  this.http = http ? http : window as any;
14346
14387
  this.baseUrl = baseUrl ?? "";
@@ -16651,7 +16692,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
16651
16692
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
16652
16693
  private baseUrl: string;
16653
16694
 
16654
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
16695
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
16655
16696
  super(configuration);
16656
16697
  this.http = http ? http : window as any;
16657
16698
  this.baseUrl = baseUrl ?? "";
@@ -17283,7 +17324,7 @@ export class OperatorCalculatorsClient extends AuthorizedApiBase implements IOpe
17283
17324
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
17284
17325
  private baseUrl: string;
17285
17326
 
17286
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
17327
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
17287
17328
  super(configuration);
17288
17329
  this.http = http ? http : window as any;
17289
17330
  this.baseUrl = baseUrl ?? "";
@@ -17481,7 +17522,7 @@ export class AssetsClient extends AuthorizedApiBase implements IAssetsClient {
17481
17522
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
17482
17523
  private baseUrl: string;
17483
17524
 
17484
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
17525
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
17485
17526
  super(configuration);
17486
17527
  this.http = http ? http : window as any;
17487
17528
  this.baseUrl = baseUrl ?? "";
@@ -17792,7 +17833,7 @@ export class AlertsClient extends AuthorizedApiBase implements IAlertsClient {
17792
17833
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
17793
17834
  private baseUrl: string;
17794
17835
 
17795
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
17836
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
17796
17837
  super(configuration);
17797
17838
  this.http = http ? http : window as any;
17798
17839
  this.baseUrl = baseUrl ?? "";
@@ -18030,7 +18071,7 @@ export class CredentialsClient extends AuthorizedApiBase implements ICredentials
18030
18071
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
18031
18072
  private baseUrl: string;
18032
18073
 
18033
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18074
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18034
18075
  super(configuration);
18035
18076
  this.http = http ? http : window as any;
18036
18077
  this.baseUrl = baseUrl ?? "";
@@ -18160,7 +18201,7 @@ export class CdfClient extends AuthorizedApiBase implements ICdfClient {
18160
18201
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
18161
18202
  private baseUrl: string;
18162
18203
 
18163
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18204
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18164
18205
  super(configuration);
18165
18206
  this.http = http ? http : window as any;
18166
18207
  this.baseUrl = baseUrl ?? "";
@@ -18260,7 +18301,7 @@ export class WorkspaceDefaultsAdminClient extends AuthorizedApiBase implements I
18260
18301
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
18261
18302
  private baseUrl: string;
18262
18303
 
18263
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18304
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18264
18305
  super(configuration);
18265
18306
  this.http = http ? http : window as any;
18266
18307
  this.baseUrl = baseUrl ?? "";
@@ -18405,7 +18446,7 @@ export class WorkspacesClient extends AuthorizedApiBase implements IWorkspacesCl
18405
18446
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
18406
18447
  private baseUrl: string;
18407
18448
 
18408
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18449
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18409
18450
  super(configuration);
18410
18451
  this.http = http ? http : window as any;
18411
18452
  this.baseUrl = baseUrl ?? "";
@@ -18828,7 +18869,7 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase implements
18828
18869
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
18829
18870
  private baseUrl: string;
18830
18871
 
18831
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18872
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
18832
18873
  super(configuration);
18833
18874
  this.http = http ? http : window as any;
18834
18875
  this.baseUrl = baseUrl ?? "";
@@ -19126,7 +19167,7 @@ export class WorkspaceTemplatesClient extends AuthorizedApiBase implements IWork
19126
19167
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
19127
19168
  private baseUrl: string;
19128
19169
 
19129
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
19170
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
19130
19171
  super(configuration);
19131
19172
  this.http = http ? http : window as any;
19132
19173
  this.baseUrl = baseUrl ?? "";
@@ -19195,7 +19236,7 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
19195
19236
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
19196
19237
  private baseUrl: string;
19197
19238
 
19198
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
19239
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
19199
19240
  super(configuration);
19200
19241
  this.http = http ? http : window as any;
19201
19242
  this.baseUrl = baseUrl ?? "";
@@ -19607,7 +19648,7 @@ export class MoveInfoscreenClient extends AuthorizedApiBase implements IMoveInfo
19607
19648
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
19608
19649
  private baseUrl: string;
19609
19650
 
19610
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
19651
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
19611
19652
  super(configuration);
19612
19653
  this.http = http ? http : window as any;
19613
19654
  this.baseUrl = baseUrl ?? "";
@@ -19822,7 +19863,7 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
19822
19863
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
19823
19864
  private baseUrl: string;
19824
19865
 
19825
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
19866
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
19826
19867
  super(configuration);
19827
19868
  this.http = http ? http : window as any;
19828
19869
  this.baseUrl = baseUrl ?? "";
@@ -20088,7 +20129,7 @@ export class MoveMaterialsClient extends AuthorizedApiBase implements IMoveMater
20088
20129
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
20089
20130
  private baseUrl: string;
20090
20131
 
20091
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
20132
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
20092
20133
  super(configuration);
20093
20134
  this.http = http ? http : window as any;
20094
20135
  this.baseUrl = baseUrl ?? "";
@@ -20298,7 +20339,7 @@ export class MoveNotificationsClient extends AuthorizedApiBase implements IMoveN
20298
20339
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
20299
20340
  private baseUrl: string;
20300
20341
 
20301
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
20342
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
20302
20343
  super(configuration);
20303
20344
  this.http = http ? http : window as any;
20304
20345
  this.baseUrl = baseUrl ?? "";
@@ -20388,7 +20429,7 @@ export class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcels
20388
20429
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
20389
20430
  private baseUrl: string;
20390
20431
 
20391
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
20432
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
20392
20433
  super(configuration);
20393
20434
  this.http = http ? http : window as any;
20394
20435
  this.baseUrl = baseUrl ?? "";
@@ -20459,7 +20500,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
20459
20500
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
20460
20501
  private baseUrl: string;
20461
20502
 
20462
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
20503
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
20463
20504
  super(configuration);
20464
20505
  this.http = http ? http : window as any;
20465
20506
  this.baseUrl = baseUrl ?? "";
@@ -20834,7 +20875,7 @@ export class ParcelCategoryClient extends AuthorizedApiBase implements IParcelCa
20834
20875
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
20835
20876
  private baseUrl: string;
20836
20877
 
20837
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
20878
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
20838
20879
  super(configuration);
20839
20880
  this.http = http ? http : window as any;
20840
20881
  this.baseUrl = baseUrl ?? "";
@@ -21087,7 +21128,7 @@ export class InventoryClient extends AuthorizedApiBase implements IInventoryClie
21087
21128
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
21088
21129
  private baseUrl: string;
21089
21130
 
21090
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21131
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21091
21132
  super(configuration);
21092
21133
  this.http = http ? http : window as any;
21093
21134
  this.baseUrl = baseUrl ?? "";
@@ -21142,7 +21183,7 @@ export class MesClient extends AuthorizedApiBase implements IMesClient {
21142
21183
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
21143
21184
  private baseUrl: string;
21144
21185
 
21145
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21186
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21146
21187
  super(configuration);
21147
21188
  this.http = http ? http : window as any;
21148
21189
  this.baseUrl = baseUrl ?? "";
@@ -21193,7 +21234,7 @@ export class MesDocumentsClient extends AuthorizedApiBase implements IMesDocumen
21193
21234
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
21194
21235
  private baseUrl: string;
21195
21236
 
21196
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21237
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21197
21238
  super(configuration);
21198
21239
  this.http = http ? http : window as any;
21199
21240
  this.baseUrl = baseUrl ?? "";
@@ -21252,7 +21293,7 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase implemen
21252
21293
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
21253
21294
  private baseUrl: string;
21254
21295
 
21255
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21296
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21256
21297
  super(configuration);
21257
21298
  this.http = http ? http : window as any;
21258
21299
  this.baseUrl = baseUrl ?? "";
@@ -21356,7 +21397,7 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
21356
21397
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
21357
21398
  private baseUrl: string;
21358
21399
 
21359
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21400
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21360
21401
  super(configuration);
21361
21402
  this.http = http ? http : window as any;
21362
21403
  this.baseUrl = baseUrl ?? "";
@@ -21601,7 +21642,7 @@ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClie
21601
21642
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
21602
21643
  private baseUrl: string;
21603
21644
 
21604
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21645
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21605
21646
  super(configuration);
21606
21647
  this.http = http ? http : window as any;
21607
21648
  this.baseUrl = baseUrl ?? "";
@@ -21672,7 +21713,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
21672
21713
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
21673
21714
  private baseUrl: string;
21674
21715
 
21675
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21716
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21676
21717
  super(configuration);
21677
21718
  this.http = http ? http : window as any;
21678
21719
  this.baseUrl = baseUrl ?? "";
@@ -22061,7 +22102,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
22061
22102
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22062
22103
  private baseUrl: string;
22063
22104
 
22064
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22105
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22065
22106
  super(configuration);
22066
22107
  this.http = http ? http : window as any;
22067
22108
  this.baseUrl = baseUrl ?? "";
@@ -22360,7 +22401,7 @@ export class MesProjectsClient extends AuthorizedApiBase implements IMesProjects
22360
22401
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22361
22402
  private baseUrl: string;
22362
22403
 
22363
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22404
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22364
22405
  super(configuration);
22365
22406
  this.http = http ? http : window as any;
22366
22407
  this.baseUrl = baseUrl ?? "";
@@ -22454,7 +22495,7 @@ export class MesPurchaseOrderClient extends AuthorizedApiBase implements IMesPur
22454
22495
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22455
22496
  private baseUrl: string;
22456
22497
 
22457
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22498
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22458
22499
  super(configuration);
22459
22500
  this.http = http ? http : window as any;
22460
22501
  this.baseUrl = baseUrl ?? "";
@@ -22516,7 +22557,7 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
22516
22557
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22517
22558
  private baseUrl: string;
22518
22559
 
22519
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22560
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22520
22561
  super(configuration);
22521
22562
  this.http = http ? http : window as any;
22522
22563
  this.baseUrl = baseUrl ?? "";
@@ -22650,7 +22691,7 @@ export class ElectricalClient extends AuthorizedApiBase implements IElectricalCl
22650
22691
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22651
22692
  private baseUrl: string;
22652
22693
 
22653
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22694
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22654
22695
  super(configuration);
22655
22696
  this.http = http ? http : window as any;
22656
22697
  this.baseUrl = baseUrl ?? "";
@@ -22819,7 +22860,7 @@ export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
22819
22860
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22820
22861
  private baseUrl: string;
22821
22862
 
22822
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22863
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22823
22864
  super(configuration);
22824
22865
  this.http = http ? http : window as any;
22825
22866
  this.baseUrl = baseUrl ?? "";
@@ -22992,7 +23033,7 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase i
22992
23033
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22993
23034
  private baseUrl: string;
22994
23035
 
22995
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23036
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22996
23037
  super(configuration);
22997
23038
  this.http = http ? http : window as any;
22998
23039
  this.baseUrl = baseUrl ?? "";
@@ -23254,7 +23295,7 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
23254
23295
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
23255
23296
  private baseUrl: string;
23256
23297
 
23257
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23298
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23258
23299
  super(configuration);
23259
23300
  this.http = http ? http : window as any;
23260
23301
  this.baseUrl = baseUrl ?? "";
@@ -23351,7 +23392,7 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase imp
23351
23392
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
23352
23393
  private baseUrl: string;
23353
23394
 
23354
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23395
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23355
23396
  super(configuration);
23356
23397
  this.http = http ? http : window as any;
23357
23398
  this.baseUrl = baseUrl ?? "";
@@ -23534,7 +23575,7 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implemen
23534
23575
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
23535
23576
  private baseUrl: string;
23536
23577
 
23537
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23578
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23538
23579
  super(configuration);
23539
23580
  this.http = http ? http : window as any;
23540
23581
  this.baseUrl = baseUrl ?? "";
@@ -23706,7 +23747,7 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase implement
23706
23747
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
23707
23748
  private baseUrl: string;
23708
23749
 
23709
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23750
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23710
23751
  super(configuration);
23711
23752
  this.http = http ? http : window as any;
23712
23753
  this.baseUrl = baseUrl ?? "";
@@ -23850,7 +23891,7 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase imp
23850
23891
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
23851
23892
  private baseUrl: string;
23852
23893
 
23853
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23894
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23854
23895
  super(configuration);
23855
23896
  this.http = http ? http : window as any;
23856
23897
  this.baseUrl = baseUrl ?? "";
@@ -24112,7 +24153,7 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
24112
24153
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
24113
24154
  private baseUrl: string;
24114
24155
 
24115
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
24156
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
24116
24157
  super(configuration);
24117
24158
  this.http = http ? http : window as any;
24118
24159
  this.baseUrl = baseUrl ?? "";
@@ -24318,7 +24359,7 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
24318
24359
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
24319
24360
  private baseUrl: string;
24320
24361
 
24321
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
24362
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
24322
24363
  super(configuration);
24323
24364
  this.http = http ? http : window as any;
24324
24365
  this.baseUrl = baseUrl ?? "";
@@ -26418,7 +26459,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
26418
26459
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
26419
26460
  private baseUrl: string;
26420
26461
 
26421
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
26462
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
26422
26463
  super(configuration);
26423
26464
  this.http = http ? http : window as any;
26424
26465
  this.baseUrl = baseUrl ?? "";
@@ -26552,7 +26593,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
26552
26593
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
26553
26594
  private baseUrl: string;
26554
26595
 
26555
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
26596
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
26556
26597
  super(configuration);
26557
26598
  this.http = http ? http : window as any;
26558
26599
  this.baseUrl = baseUrl ?? "";
@@ -26723,7 +26764,7 @@ export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase impl
26723
26764
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
26724
26765
  private baseUrl: string;
26725
26766
 
26726
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
26767
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
26727
26768
  super(configuration);
26728
26769
  this.http = http ? http : window as any;
26729
26770
  this.baseUrl = baseUrl ?? "";
@@ -26896,7 +26937,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
26896
26937
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
26897
26938
  private baseUrl: string;
26898
26939
 
26899
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
26940
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
26900
26941
  super(configuration);
26901
26942
  this.http = http ? http : window as any;
26902
26943
  this.baseUrl = baseUrl ?? "";
@@ -27809,7 +27850,7 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
27809
27850
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
27810
27851
  private baseUrl: string;
27811
27852
 
27812
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
27853
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
27813
27854
  super(configuration);
27814
27855
  this.http = http ? http : window as any;
27815
27856
  this.baseUrl = baseUrl ?? "";
@@ -28194,7 +28235,7 @@ export class CompaniesClient extends AuthorizedApiBase implements ICompaniesClie
28194
28235
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
28195
28236
  private baseUrl: string;
28196
28237
 
28197
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
28238
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
28198
28239
  super(configuration);
28199
28240
  this.http = http ? http : window as any;
28200
28241
  this.baseUrl = baseUrl ?? "";
@@ -28311,7 +28352,7 @@ export class CustomerOrdersClient extends AuthorizedApiBase implements ICustomer
28311
28352
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
28312
28353
  private baseUrl: string;
28313
28354
 
28314
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
28355
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
28315
28356
  super(configuration);
28316
28357
  this.http = http ? http : window as any;
28317
28358
  this.baseUrl = baseUrl ?? "";
@@ -28591,7 +28632,7 @@ export class ErpUsersClient extends AuthorizedApiBase implements IErpUsersClient
28591
28632
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
28592
28633
  private baseUrl: string;
28593
28634
 
28594
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
28635
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
28595
28636
  super(configuration);
28596
28637
  this.http = http ? http : window as any;
28597
28638
  this.baseUrl = baseUrl ?? "";
@@ -28648,7 +28689,7 @@ export class ProductionPoolsClient extends AuthorizedApiBase implements IProduct
28648
28689
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
28649
28690
  private baseUrl: string;
28650
28691
 
28651
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
28692
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
28652
28693
  super(configuration);
28653
28694
  this.http = http ? http : window as any;
28654
28695
  this.baseUrl = baseUrl ?? "";
@@ -28861,7 +28902,7 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
28861
28902
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
28862
28903
  private baseUrl: string;
28863
28904
 
28864
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
28905
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
28865
28906
  super(configuration);
28866
28907
  this.http = http ? http : window as any;
28867
28908
  this.baseUrl = baseUrl ?? "";
@@ -30184,6 +30225,7 @@ export interface CurrentCustomerDto {
30184
30225
  export interface AvailableTenantDto {
30185
30226
  tenantId?: string;
30186
30227
  name?: string | null;
30228
+ customerName?: string;
30187
30229
  environment?: TenantEnvironmentDto;
30188
30230
  isRecommended?: boolean;
30189
30231
  }
@@ -37262,4 +37304,13 @@ function throwException(message: string, status: number, response: string, heade
37262
37304
 
37263
37305
  export interface IAccessTokenProvider {
37264
37306
  getAccessToken: () => Promise<string>;
37307
+ }
37308
+
37309
+ export interface ITenantIdProvider {
37310
+ getTenantId: () => string | null;
37311
+ }
37312
+
37313
+ export interface IApiClientConfig {
37314
+ accessTokenProvider: IAccessTokenProvider;
37315
+ tenantIdProvider: ITenantIdProvider;
37265
37316
  }