@ignos/api-client 20251021.0.12930 → 20251022.0.12935-alpha

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.
@@ -1,8 +1,9 @@
1
1
  //----------------------
2
2
  // <auto-generated>
3
- // Generated using the NSwag toolchain v14.6.1.0 (NJsonSchema v11.5.1.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
3
+ // Generated using the NSwag toolchain v14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
4
4
  // </auto-generated>
5
5
  //----------------------
6
+ /* tslint:disable */
6
7
  /* eslint-disable */
7
8
  // ReSharper disable InconsistentNaming
8
9
  export class AuthorizedApiBase {
@@ -166,7 +167,7 @@ export class CustomersClient extends AuthorizedApiBase {
166
167
  upsertCustomer(id, request) {
167
168
  let url_ = this.baseUrl + "/erp/customers/{id}";
168
169
  if (id === undefined || id === null)
169
- throw new globalThis.Error("The parameter 'id' must be defined.");
170
+ throw new Error("The parameter 'id' must be defined.");
170
171
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
171
172
  url_ = url_.replace(/[?&]$/, "");
172
173
  const content_ = JSON.stringify(request);
@@ -209,7 +210,7 @@ export class CustomersClient extends AuthorizedApiBase {
209
210
  deleteCustomer(id) {
210
211
  let url_ = this.baseUrl + "/erp/customers/{id}";
211
212
  if (id === undefined || id === null)
212
- throw new globalThis.Error("The parameter 'id' must be defined.");
213
+ throw new Error("The parameter 'id' must be defined.");
213
214
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
214
215
  url_ = url_.replace(/[?&]$/, "");
215
216
  let options_ = {
@@ -251,7 +252,7 @@ export class CustomersClient extends AuthorizedApiBase {
251
252
  listCustomers(pageSize, filter, continuationToken) {
252
253
  let url_ = this.baseUrl + "/erp/customers?";
253
254
  if (pageSize === null)
254
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
255
+ throw new Error("The parameter 'pageSize' cannot be null.");
255
256
  else if (pageSize !== undefined)
256
257
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
257
258
  if (filter !== undefined && filter !== null)
@@ -385,7 +386,7 @@ export class CustomersClient extends AuthorizedApiBase {
385
386
  deactivateCustomer(id) {
386
387
  let url_ = this.baseUrl + "/erp/customers/{id}/deactivate";
387
388
  if (id === undefined || id === null)
388
- throw new globalThis.Error("The parameter 'id' must be defined.");
389
+ throw new Error("The parameter 'id' must be defined.");
389
390
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
390
391
  url_ = url_.replace(/[?&]$/, "");
391
392
  let options_ = {
@@ -505,7 +506,7 @@ export class GuestsClient extends AuthorizedApiBase {
505
506
  getGuestLoginInfo(search) {
506
507
  let url_ = this.baseUrl + "/guests/search?";
507
508
  if (search === null)
508
- throw new globalThis.Error("The parameter 'search' cannot be null.");
509
+ throw new Error("The parameter 'search' cannot be null.");
509
510
  else if (search !== undefined)
510
511
  url_ += "search=" + encodeURIComponent("" + search) + "&";
511
512
  url_ = url_.replace(/[?&]$/, "");
@@ -554,7 +555,7 @@ export class PresentationClient extends AuthorizedApiBase {
554
555
  getComponentSettings(componentId) {
555
556
  let url_ = this.baseUrl + "/presentation/components/{componentId}";
556
557
  if (componentId === undefined || componentId === null)
557
- throw new globalThis.Error("The parameter 'componentId' must be defined.");
558
+ throw new Error("The parameter 'componentId' must be defined.");
558
559
  url_ = url_.replace("{componentId}", encodeURIComponent("" + componentId));
559
560
  url_ = url_.replace(/[?&]$/, "");
560
561
  let options_ = {
@@ -616,7 +617,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
616
617
  if (assetId !== undefined && assetId !== null)
617
618
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
618
619
  if (favorites === null)
619
- throw new globalThis.Error("The parameter 'favorites' cannot be null.");
620
+ throw new Error("The parameter 'favorites' cannot be null.");
620
621
  else if (favorites !== undefined)
621
622
  url_ += "favorites=" + encodeURIComponent("" + favorites) + "&";
622
623
  if (startTimeToday !== undefined && startTimeToday !== null)
@@ -661,10 +662,10 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
661
662
  getMachineUtilization(id, startTime, endTime) {
662
663
  let url_ = this.baseUrl + "/machineutilization/{id}?";
663
664
  if (id === undefined || id === null)
664
- throw new globalThis.Error("The parameter 'id' must be defined.");
665
+ throw new Error("The parameter 'id' must be defined.");
665
666
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
666
667
  if (startTime === null)
667
- throw new globalThis.Error("The parameter 'startTime' cannot be null.");
668
+ throw new Error("The parameter 'startTime' cannot be null.");
668
669
  else if (startTime !== undefined)
669
670
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
670
671
  if (endTime !== undefined && endTime !== null)
@@ -712,7 +713,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
712
713
  getUtilizationDetailsForMachine(id, startTime, endTime) {
713
714
  let url_ = this.baseUrl + "/machineutilization/{id}/utilization?";
714
715
  if (id === undefined || id === null)
715
- throw new globalThis.Error("The parameter 'id' must be defined.");
716
+ throw new Error("The parameter 'id' must be defined.");
716
717
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
717
718
  if (startTime !== undefined && startTime !== null)
718
719
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
@@ -756,7 +757,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
756
757
  getResourceTimelines(id, startTime, endTime, filter) {
757
758
  let url_ = this.baseUrl + "/machineutilization/{id}/resource/timelines?";
758
759
  if (id === undefined || id === null)
759
- throw new globalThis.Error("The parameter 'id' must be defined.");
760
+ throw new Error("The parameter 'id' must be defined.");
760
761
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
761
762
  if (startTime !== undefined && startTime !== null)
762
763
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
@@ -803,7 +804,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
803
804
  listMachineStates(id, startTime, endTime) {
804
805
  let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
805
806
  if (id === undefined || id === null)
806
- throw new globalThis.Error("The parameter 'id' must be defined.");
807
+ throw new Error("The parameter 'id' must be defined.");
807
808
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
808
809
  if (startTime !== undefined && startTime !== null)
809
810
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
@@ -851,7 +852,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
851
852
  getMachineStatesSummary(id, startTime, endTime) {
852
853
  let url_ = this.baseUrl + "/machineutilization/{id}/machine-states/summary?";
853
854
  if (id === undefined || id === null)
854
- throw new globalThis.Error("The parameter 'id' must be defined.");
855
+ throw new Error("The parameter 'id' must be defined.");
855
856
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
856
857
  if (startTime !== undefined && startTime !== null)
857
858
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
@@ -1019,14 +1020,14 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
1019
1020
  getProgramTimeline(id, startTime, endTime) {
1020
1021
  let url_ = this.baseUrl + "/machineutilization/{id}/program-timeline?";
1021
1022
  if (id === undefined || id === null)
1022
- throw new globalThis.Error("The parameter 'id' must be defined.");
1023
+ throw new Error("The parameter 'id' must be defined.");
1023
1024
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
1024
1025
  if (startTime === null)
1025
- throw new globalThis.Error("The parameter 'startTime' cannot be null.");
1026
+ throw new Error("The parameter 'startTime' cannot be null.");
1026
1027
  else if (startTime !== undefined)
1027
1028
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
1028
1029
  if (endTime === null)
1029
- throw new globalThis.Error("The parameter 'endTime' cannot be null.");
1030
+ throw new Error("The parameter 'endTime' cannot be null.");
1030
1031
  else if (endTime !== undefined)
1031
1032
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
1032
1033
  url_ = url_.replace(/[?&]$/, "");
@@ -1346,7 +1347,7 @@ export class UsersClient extends AuthorizedApiBase {
1346
1347
  listUsers(pageSize, filter, continuationToken) {
1347
1348
  let url_ = this.baseUrl + "/users?";
1348
1349
  if (pageSize === null)
1349
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
1350
+ throw new Error("The parameter 'pageSize' cannot be null.");
1350
1351
  else if (pageSize !== undefined)
1351
1352
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
1352
1353
  if (filter !== undefined && filter !== null)
@@ -1853,7 +1854,7 @@ export class SustainabilityClient extends AuthorizedApiBase {
1853
1854
  getCustomerOrderConsumption(externalId, request) {
1854
1855
  let url_ = this.baseUrl + "/sustainability/consumption/customerorders/{externalId}";
1855
1856
  if (externalId === undefined || externalId === null)
1856
- throw new globalThis.Error("The parameter 'externalId' must be defined.");
1857
+ throw new Error("The parameter 'externalId' must be defined.");
1857
1858
  url_ = url_.replace("{externalId}", encodeURIComponent("" + externalId));
1858
1859
  url_ = url_.replace(/[?&]$/, "");
1859
1860
  const content_ = JSON.stringify(request);
@@ -1896,7 +1897,7 @@ export class SustainabilityClient extends AuthorizedApiBase {
1896
1897
  getWorkOrderConsumption(externalId) {
1897
1898
  let url_ = this.baseUrl + "/sustainability/consumption/workorders/{externalId}";
1898
1899
  if (externalId === undefined || externalId === null)
1899
- throw new globalThis.Error("The parameter 'externalId' must be defined.");
1900
+ throw new Error("The parameter 'externalId' must be defined.");
1900
1901
  url_ = url_.replace("{externalId}", encodeURIComponent("" + externalId));
1901
1902
  url_ = url_.replace(/[?&]$/, "");
1902
1903
  let options_ = {
@@ -1936,7 +1937,7 @@ export class SustainabilityClient extends AuthorizedApiBase {
1936
1937
  getProductConsumption(externalId) {
1937
1938
  let url_ = this.baseUrl + "/sustainability/consumption/product/{externalId}";
1938
1939
  if (externalId === undefined || externalId === null)
1939
- throw new globalThis.Error("The parameter 'externalId' must be defined.");
1940
+ throw new Error("The parameter 'externalId' must be defined.");
1940
1941
  url_ = url_.replace("{externalId}", encodeURIComponent("" + externalId));
1941
1942
  url_ = url_.replace(/[?&]$/, "");
1942
1943
  let options_ = {
@@ -2026,11 +2027,11 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
2026
2027
  if (alarmType !== undefined && alarmType !== null)
2027
2028
  url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
2028
2029
  if (assetId === null)
2029
- throw new globalThis.Error("The parameter 'assetId' cannot be null.");
2030
+ throw new Error("The parameter 'assetId' cannot be null.");
2030
2031
  else if (assetId !== undefined)
2031
2032
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
2032
2033
  if (startTime === null)
2033
- throw new globalThis.Error("The parameter 'startTime' cannot be null.");
2034
+ throw new Error("The parameter 'startTime' cannot be null.");
2034
2035
  else if (startTime !== undefined)
2035
2036
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2036
2037
  if (endTime !== undefined && endTime !== null)
@@ -2046,7 +2047,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
2046
2047
  if (sequence !== undefined && sequence !== null)
2047
2048
  url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
2048
2049
  if (limit === null)
2049
- throw new globalThis.Error("The parameter 'limit' cannot be null.");
2050
+ throw new Error("The parameter 'limit' cannot be null.");
2050
2051
  else if (limit !== undefined)
2051
2052
  url_ += "limit=" + encodeURIComponent("" + limit) + "&";
2052
2053
  if (continuationToken !== undefined && continuationToken !== null)
@@ -2090,50 +2091,10 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
2090
2091
  }
2091
2092
  return Promise.resolve(null);
2092
2093
  }
2093
- listGroupedMachineIncidents(request) {
2094
- let url_ = this.baseUrl + "/machinealarms/groupedincidents";
2095
- url_ = url_.replace(/[?&]$/, "");
2096
- const content_ = JSON.stringify(request);
2097
- let options_ = {
2098
- body: content_,
2099
- method: "POST",
2100
- headers: {
2101
- "Content-Type": "application/json",
2102
- "Accept": "application/json"
2103
- }
2104
- };
2105
- return this.transformOptions(options_).then(transformedOptions_ => {
2106
- return this.http.fetch(url_, transformedOptions_);
2107
- }).then((_response) => {
2108
- return this.processListGroupedMachineIncidents(_response);
2109
- });
2110
- }
2111
- processListGroupedMachineIncidents(response) {
2112
- const status = response.status;
2113
- let _headers = {};
2114
- if (response.headers && response.headers.forEach) {
2115
- response.headers.forEach((v, k) => _headers[k] = v);
2116
- }
2117
- ;
2118
- if (status === 200) {
2119
- return response.text().then((_responseText) => {
2120
- let result200 = null;
2121
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2122
- result200 = PagedResultOfGroupedMachineIncidentDto.fromJS(resultData200);
2123
- return result200;
2124
- });
2125
- }
2126
- else if (status !== 200 && status !== 204) {
2127
- return response.text().then((_responseText) => {
2128
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2129
- });
2130
- }
2131
- return Promise.resolve(null);
2132
- }
2133
2094
  listAlarmsPerMachine(startTime, endTime) {
2134
2095
  let url_ = this.baseUrl + "/machinealarms/alarmspermachine?";
2135
2096
  if (startTime === null)
2136
- throw new globalThis.Error("The parameter 'startTime' cannot be null.");
2097
+ throw new Error("The parameter 'startTime' cannot be null.");
2137
2098
  else if (startTime !== undefined)
2138
2099
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2139
2100
  if (endTime !== undefined && endTime !== null)
@@ -2180,7 +2141,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
2180
2141
  listAlarmSeverityOccurrences(startTime, endTime) {
2181
2142
  let url_ = this.baseUrl + "/machinealarms/alarmtypeseverities?";
2182
2143
  if (startTime === null)
2183
- throw new globalThis.Error("The parameter 'startTime' cannot be null.");
2144
+ throw new Error("The parameter 'startTime' cannot be null.");
2184
2145
  else if (startTime !== undefined)
2185
2146
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2186
2147
  if (endTime !== undefined && endTime !== null)
@@ -2229,11 +2190,11 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
2229
2190
  if (alarmType !== undefined && alarmType !== null)
2230
2191
  url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
2231
2192
  if (assetId === null)
2232
- throw new globalThis.Error("The parameter 'assetId' cannot be null.");
2193
+ throw new Error("The parameter 'assetId' cannot be null.");
2233
2194
  else if (assetId !== undefined)
2234
2195
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
2235
2196
  if (startTime === null)
2236
- throw new globalThis.Error("The parameter 'startTime' cannot be null.");
2197
+ throw new Error("The parameter 'startTime' cannot be null.");
2237
2198
  else if (startTime !== undefined)
2238
2199
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2239
2200
  if (endTime !== undefined && endTime !== null)
@@ -2286,7 +2247,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
2286
2247
  getMachineAlarmDetails(id) {
2287
2248
  let url_ = this.baseUrl + "/machinealarms/alarms/{id}";
2288
2249
  if (id === undefined || id === null)
2289
- throw new globalThis.Error("The parameter 'id' must be defined.");
2250
+ throw new Error("The parameter 'id' must be defined.");
2290
2251
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2291
2252
  url_ = url_.replace(/[?&]$/, "");
2292
2253
  let options_ = {
@@ -2416,16 +2377,20 @@ export class UtilizationClient extends AuthorizedApiBase {
2416
2377
  this.http = http ? http : window;
2417
2378
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
2418
2379
  }
2419
- getCompanyUtilization(utilizationType, startTime, endTime) {
2380
+ getCompanyUtilization(utilizationType, startTime, endTime, ianaTimeZone) {
2420
2381
  let url_ = this.baseUrl + "/utilization?";
2421
2382
  if (utilizationType === null)
2422
- throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
2383
+ throw new Error("The parameter 'utilizationType' cannot be null.");
2423
2384
  else if (utilizationType !== undefined)
2424
2385
  url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
2425
- if (startTime !== undefined && startTime !== null)
2386
+ if (startTime === null)
2387
+ throw new Error("The parameter 'startTime' cannot be null.");
2388
+ else if (startTime !== undefined)
2426
2389
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2427
2390
  if (endTime !== undefined && endTime !== null)
2428
2391
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2392
+ if (ianaTimeZone !== undefined && ianaTimeZone !== null)
2393
+ url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
2429
2394
  url_ = url_.replace(/[?&]$/, "");
2430
2395
  let options_ = {
2431
2396
  method: "GET",
@@ -2461,16 +2426,20 @@ export class UtilizationClient extends AuthorizedApiBase {
2461
2426
  }
2462
2427
  return Promise.resolve(null);
2463
2428
  }
2464
- getCrossCompanyUtilization(utilizationType, startTime, endTime) {
2429
+ getCrossCompanyUtilization(utilizationType, startTime, endTime, ianaTimeZone) {
2465
2430
  let url_ = this.baseUrl + "/utilization/cross-company?";
2466
2431
  if (utilizationType === null)
2467
- throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
2432
+ throw new Error("The parameter 'utilizationType' cannot be null.");
2468
2433
  else if (utilizationType !== undefined)
2469
2434
  url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
2470
- if (startTime !== undefined && startTime !== null)
2435
+ if (startTime === null)
2436
+ throw new Error("The parameter 'startTime' cannot be null.");
2437
+ else if (startTime !== undefined)
2471
2438
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2472
2439
  if (endTime !== undefined && endTime !== null)
2473
2440
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2441
+ if (ianaTimeZone !== undefined && ianaTimeZone !== null)
2442
+ url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
2474
2443
  url_ = url_.replace(/[?&]$/, "");
2475
2444
  let options_ = {
2476
2445
  method: "GET",
@@ -2506,16 +2475,20 @@ export class UtilizationClient extends AuthorizedApiBase {
2506
2475
  }
2507
2476
  return Promise.resolve(null);
2508
2477
  }
2509
- getUtilizationDatapoints(utilizationType, startTime, endTime, assetId, assetExternalId) {
2478
+ getUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone, assetId, assetExternalId) {
2510
2479
  let url_ = this.baseUrl + "/utilization/datapoints?";
2511
2480
  if (utilizationType === null)
2512
- throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
2481
+ throw new Error("The parameter 'utilizationType' cannot be null.");
2513
2482
  else if (utilizationType !== undefined)
2514
2483
  url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
2515
- if (startTime !== undefined && startTime !== null)
2484
+ if (startTime === null)
2485
+ throw new Error("The parameter 'startTime' cannot be null.");
2486
+ else if (startTime !== undefined)
2516
2487
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2517
2488
  if (endTime !== undefined && endTime !== null)
2518
2489
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2490
+ if (ianaTimeZone !== undefined && ianaTimeZone !== null)
2491
+ url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
2519
2492
  if (assetId !== undefined && assetId !== null)
2520
2493
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
2521
2494
  if (assetExternalId !== undefined && assetExternalId !== null)
@@ -2555,16 +2528,20 @@ export class UtilizationClient extends AuthorizedApiBase {
2555
2528
  }
2556
2529
  return Promise.resolve(null);
2557
2530
  }
2558
- getCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
2531
+ getCompanyUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone) {
2559
2532
  let url_ = this.baseUrl + "/utilization/datapoints/company?";
2560
2533
  if (utilizationType === null)
2561
- throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
2534
+ throw new Error("The parameter 'utilizationType' cannot be null.");
2562
2535
  else if (utilizationType !== undefined)
2563
2536
  url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
2564
- if (startTime !== undefined && startTime !== null)
2537
+ if (startTime === null)
2538
+ throw new Error("The parameter 'startTime' cannot be null.");
2539
+ else if (startTime !== undefined)
2565
2540
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2566
2541
  if (endTime !== undefined && endTime !== null)
2567
2542
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2543
+ if (ianaTimeZone !== undefined && ianaTimeZone !== null)
2544
+ url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
2568
2545
  url_ = url_.replace(/[?&]$/, "");
2569
2546
  let options_ = {
2570
2547
  method: "GET",
@@ -2600,16 +2577,20 @@ export class UtilizationClient extends AuthorizedApiBase {
2600
2577
  }
2601
2578
  return Promise.resolve(null);
2602
2579
  }
2603
- getCrossCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
2580
+ getCrossCompanyUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone) {
2604
2581
  let url_ = this.baseUrl + "/utilization/datapoints/cross-company?";
2605
2582
  if (utilizationType === null)
2606
- throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
2583
+ throw new Error("The parameter 'utilizationType' cannot be null.");
2607
2584
  else if (utilizationType !== undefined)
2608
2585
  url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
2609
- if (startTime !== undefined && startTime !== null)
2586
+ if (startTime === null)
2587
+ throw new Error("The parameter 'startTime' cannot be null.");
2588
+ else if (startTime !== undefined)
2610
2589
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2611
2590
  if (endTime !== undefined && endTime !== null)
2612
2591
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2592
+ if (ianaTimeZone !== undefined && ianaTimeZone !== null)
2593
+ url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
2613
2594
  url_ = url_.replace(/[?&]$/, "");
2614
2595
  let options_ = {
2615
2596
  method: "GET",
@@ -2656,7 +2637,7 @@ export class MrbClient extends AuthorizedApiBase {
2656
2637
  listMrbInstances(customerOrder, customerOrderLine) {
2657
2638
  let url_ = this.baseUrl + "/mrb?";
2658
2639
  if (customerOrder === null)
2659
- throw new globalThis.Error("The parameter 'customerOrder' cannot be null.");
2640
+ throw new Error("The parameter 'customerOrder' cannot be null.");
2660
2641
  else if (customerOrder !== undefined)
2661
2642
  url_ += "customerOrder=" + encodeURIComponent("" + customerOrder) + "&";
2662
2643
  if (customerOrderLine !== undefined && customerOrderLine !== null)
@@ -2784,7 +2765,7 @@ export class MrbClient extends AuthorizedApiBase {
2784
2765
  getMrbInstance(id) {
2785
2766
  let url_ = this.baseUrl + "/mrb/{id}";
2786
2767
  if (id === undefined || id === null)
2787
- throw new globalThis.Error("The parameter 'id' must be defined.");
2768
+ throw new Error("The parameter 'id' must be defined.");
2788
2769
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2789
2770
  url_ = url_.replace(/[?&]$/, "");
2790
2771
  let options_ = {
@@ -2824,7 +2805,7 @@ export class MrbClient extends AuthorizedApiBase {
2824
2805
  listMrbInstanceRevisions(id) {
2825
2806
  let url_ = this.baseUrl + "/mrb/{id}/revisions";
2826
2807
  if (id === undefined || id === null)
2827
- throw new globalThis.Error("The parameter 'id' must be defined.");
2808
+ throw new Error("The parameter 'id' must be defined.");
2828
2809
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2829
2810
  url_ = url_.replace(/[?&]$/, "");
2830
2811
  let options_ = {
@@ -2868,7 +2849,7 @@ export class MrbClient extends AuthorizedApiBase {
2868
2849
  createMrbRevision(id, request) {
2869
2850
  let url_ = this.baseUrl + "/mrb/{id}/revisions";
2870
2851
  if (id === undefined || id === null)
2871
- throw new globalThis.Error("The parameter 'id' must be defined.");
2852
+ throw new Error("The parameter 'id' must be defined.");
2872
2853
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2873
2854
  url_ = url_.replace(/[?&]$/, "");
2874
2855
  const content_ = JSON.stringify(request);
@@ -2911,10 +2892,10 @@ export class MrbClient extends AuthorizedApiBase {
2911
2892
  deleteMrbRevision(id, revisionId) {
2912
2893
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}";
2913
2894
  if (id === undefined || id === null)
2914
- throw new globalThis.Error("The parameter 'id' must be defined.");
2895
+ throw new Error("The parameter 'id' must be defined.");
2915
2896
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2916
2897
  if (revisionId === undefined || revisionId === null)
2917
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
2898
+ throw new Error("The parameter 'revisionId' must be defined.");
2918
2899
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
2919
2900
  url_ = url_.replace(/[?&]$/, "");
2920
2901
  let options_ = {
@@ -2949,10 +2930,10 @@ export class MrbClient extends AuthorizedApiBase {
2949
2930
  getMrbRevisionContent(id, revisionId) {
2950
2931
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/content";
2951
2932
  if (id === undefined || id === null)
2952
- throw new globalThis.Error("The parameter 'id' must be defined.");
2933
+ throw new Error("The parameter 'id' must be defined.");
2953
2934
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2954
2935
  if (revisionId === undefined || revisionId === null)
2955
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
2936
+ throw new Error("The parameter 'revisionId' must be defined.");
2956
2937
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
2957
2938
  url_ = url_.replace(/[?&]$/, "");
2958
2939
  let options_ = {
@@ -2992,10 +2973,10 @@ export class MrbClient extends AuthorizedApiBase {
2992
2973
  approveMrbRevision(id, revisionId) {
2993
2974
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/approve";
2994
2975
  if (id === undefined || id === null)
2995
- throw new globalThis.Error("The parameter 'id' must be defined.");
2976
+ throw new Error("The parameter 'id' must be defined.");
2996
2977
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2997
2978
  if (revisionId === undefined || revisionId === null)
2998
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
2979
+ throw new Error("The parameter 'revisionId' must be defined.");
2999
2980
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
3000
2981
  url_ = url_.replace(/[?&]$/, "");
3001
2982
  let options_ = {
@@ -3030,10 +3011,10 @@ export class MrbClient extends AuthorizedApiBase {
3030
3011
  rejectMrbRevision(id, revisionId) {
3031
3012
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/reject";
3032
3013
  if (id === undefined || id === null)
3033
- throw new globalThis.Error("The parameter 'id' must be defined.");
3014
+ throw new Error("The parameter 'id' must be defined.");
3034
3015
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3035
3016
  if (revisionId === undefined || revisionId === null)
3036
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
3017
+ throw new Error("The parameter 'revisionId' must be defined.");
3037
3018
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
3038
3019
  url_ = url_.replace(/[?&]$/, "");
3039
3020
  let options_ = {
@@ -3068,10 +3049,10 @@ export class MrbClient extends AuthorizedApiBase {
3068
3049
  createMrbRevisionPdf(id, revisionId) {
3069
3050
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/exporttopdf";
3070
3051
  if (id === undefined || id === null)
3071
- throw new globalThis.Error("The parameter 'id' must be defined.");
3052
+ throw new Error("The parameter 'id' must be defined.");
3072
3053
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3073
3054
  if (revisionId === undefined || revisionId === null)
3074
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
3055
+ throw new Error("The parameter 'revisionId' must be defined.");
3075
3056
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
3076
3057
  url_ = url_.replace(/[?&]$/, "");
3077
3058
  let options_ = {
@@ -3111,10 +3092,10 @@ export class MrbClient extends AuthorizedApiBase {
3111
3092
  refreshMrbRevisionContent(id, revisionId) {
3112
3093
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/refreshcontent";
3113
3094
  if (id === undefined || id === null)
3114
- throw new globalThis.Error("The parameter 'id' must be defined.");
3095
+ throw new Error("The parameter 'id' must be defined.");
3115
3096
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3116
3097
  if (revisionId === undefined || revisionId === null)
3117
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
3098
+ throw new Error("The parameter 'revisionId' must be defined.");
3118
3099
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
3119
3100
  url_ = url_.replace(/[?&]$/, "");
3120
3101
  let options_ = {
@@ -3154,10 +3135,10 @@ export class MrbClient extends AuthorizedApiBase {
3154
3135
  includeMrbRevisionContent(id, revisionId, request) {
3155
3136
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/includecontent";
3156
3137
  if (id === undefined || id === null)
3157
- throw new globalThis.Error("The parameter 'id' must be defined.");
3138
+ throw new Error("The parameter 'id' must be defined.");
3158
3139
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3159
3140
  if (revisionId === undefined || revisionId === null)
3160
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
3141
+ throw new Error("The parameter 'revisionId' must be defined.");
3161
3142
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
3162
3143
  url_ = url_.replace(/[?&]$/, "");
3163
3144
  const content_ = JSON.stringify(request);
@@ -3196,10 +3177,10 @@ export class MrbClient extends AuthorizedApiBase {
3196
3177
  excludeMrbRevisionContent(id, revisionId, request) {
3197
3178
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/excludecontent";
3198
3179
  if (id === undefined || id === null)
3199
- throw new globalThis.Error("The parameter 'id' must be defined.");
3180
+ throw new Error("The parameter 'id' must be defined.");
3200
3181
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3201
3182
  if (revisionId === undefined || revisionId === null)
3202
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
3183
+ throw new Error("The parameter 'revisionId' must be defined.");
3203
3184
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
3204
3185
  url_ = url_.replace(/[?&]$/, "");
3205
3186
  const content_ = JSON.stringify(request);
@@ -3238,10 +3219,10 @@ export class MrbClient extends AuthorizedApiBase {
3238
3219
  uploadMrbRevisionPdf(id, revisionId, request) {
3239
3220
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/upload";
3240
3221
  if (id === undefined || id === null)
3241
- throw new globalThis.Error("The parameter 'id' must be defined.");
3222
+ throw new Error("The parameter 'id' must be defined.");
3242
3223
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3243
3224
  if (revisionId === undefined || revisionId === null)
3244
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
3225
+ throw new Error("The parameter 'revisionId' must be defined.");
3245
3226
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
3246
3227
  url_ = url_.replace(/[?&]$/, "");
3247
3228
  const content_ = JSON.stringify(request);
@@ -3280,10 +3261,10 @@ export class MrbClient extends AuthorizedApiBase {
3280
3261
  markMrbRevisionAsSent(id, revisionId) {
3281
3262
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/markassent";
3282
3263
  if (id === undefined || id === null)
3283
- throw new globalThis.Error("The parameter 'id' must be defined.");
3264
+ throw new Error("The parameter 'id' must be defined.");
3284
3265
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3285
3266
  if (revisionId === undefined || revisionId === null)
3286
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
3267
+ throw new Error("The parameter 'revisionId' must be defined.");
3287
3268
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
3288
3269
  url_ = url_.replace(/[?&]$/, "");
3289
3270
  let options_ = {
@@ -3318,10 +3299,10 @@ export class MrbClient extends AuthorizedApiBase {
3318
3299
  createMrbRevisionLink(id, revisionId) {
3319
3300
  let url_ = this.baseUrl + "/mrb/{id}/revision/{revisionId}/shareablelink";
3320
3301
  if (id === undefined || id === null)
3321
- throw new globalThis.Error("The parameter 'id' must be defined.");
3302
+ throw new Error("The parameter 'id' must be defined.");
3322
3303
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3323
3304
  if (revisionId === undefined || revisionId === null)
3324
- throw new globalThis.Error("The parameter 'revisionId' must be defined.");
3305
+ throw new Error("The parameter 'revisionId' must be defined.");
3325
3306
  url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
3326
3307
  url_ = url_.replace(/[?&]$/, "");
3327
3308
  let options_ = {
@@ -3361,7 +3342,7 @@ export class MrbClient extends AuthorizedApiBase {
3361
3342
  getMrbInstanceJobStatus(jobId) {
3362
3343
  let url_ = this.baseUrl + "/mrb/mrbjobstatus/{jobId}";
3363
3344
  if (jobId === undefined || jobId === null)
3364
- throw new globalThis.Error("The parameter 'jobId' must be defined.");
3345
+ throw new Error("The parameter 'jobId' must be defined.");
3365
3346
  url_ = url_.replace("{jobId}", encodeURIComponent("" + jobId));
3366
3347
  url_ = url_.replace(/[?&]$/, "");
3367
3348
  let options_ = {
@@ -3401,7 +3382,7 @@ export class MrbClient extends AuthorizedApiBase {
3401
3382
  getMrbPdfExportJobStatus(jobId) {
3402
3383
  let url_ = this.baseUrl + "/mrb/mrbpdfjobstatus/{jobId}";
3403
3384
  if (jobId === undefined || jobId === null)
3404
- throw new globalThis.Error("The parameter 'jobId' must be defined.");
3385
+ throw new Error("The parameter 'jobId' must be defined.");
3405
3386
  url_ = url_.replace("{jobId}", encodeURIComponent("" + jobId));
3406
3387
  url_ = url_.replace(/[?&]$/, "");
3407
3388
  let options_ = {
@@ -3441,7 +3422,7 @@ export class MrbClient extends AuthorizedApiBase {
3441
3422
  listMrbInstanceReports(pageSize, continuationToken) {
3442
3423
  let url_ = this.baseUrl + "/mrb/mrbinstancereports?";
3443
3424
  if (pageSize === null)
3444
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
3425
+ throw new Error("The parameter 'pageSize' cannot be null.");
3445
3426
  else if (pageSize !== undefined)
3446
3427
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3447
3428
  if (continuationToken !== undefined && continuationToken !== null)
@@ -3524,7 +3505,7 @@ export class MrbClient extends AuthorizedApiBase {
3524
3505
  attachPdf(templateId, request) {
3525
3506
  let url_ = this.baseUrl + "/mrb/templates/{templateId}";
3526
3507
  if (templateId === undefined || templateId === null)
3527
- throw new globalThis.Error("The parameter 'templateId' must be defined.");
3508
+ throw new Error("The parameter 'templateId' must be defined.");
3528
3509
  url_ = url_.replace("{templateId}", encodeURIComponent("" + templateId));
3529
3510
  url_ = url_.replace(/[?&]$/, "");
3530
3511
  const content_ = JSON.stringify(request);
@@ -3567,7 +3548,7 @@ export class MrbClient extends AuthorizedApiBase {
3567
3548
  getMrbTemplate(templateId) {
3568
3549
  let url_ = this.baseUrl + "/mrb/templates/{templateId}";
3569
3550
  if (templateId === undefined || templateId === null)
3570
- throw new globalThis.Error("The parameter 'templateId' must be defined.");
3551
+ throw new Error("The parameter 'templateId' must be defined.");
3571
3552
  url_ = url_.replace("{templateId}", encodeURIComponent("" + templateId));
3572
3553
  url_ = url_.replace(/[?&]$/, "");
3573
3554
  let options_ = {
@@ -3790,7 +3771,7 @@ export class MrbClient extends AuthorizedApiBase {
3790
3771
  copyMrbTemplate(templateId, request) {
3791
3772
  let url_ = this.baseUrl + "/mrb/templates/{templateId}/copy";
3792
3773
  if (templateId === undefined || templateId === null)
3793
- throw new globalThis.Error("The parameter 'templateId' must be defined.");
3774
+ throw new Error("The parameter 'templateId' must be defined.");
3794
3775
  url_ = url_.replace("{templateId}", encodeURIComponent("" + templateId));
3795
3776
  url_ = url_.replace(/[?&]$/, "");
3796
3777
  const content_ = JSON.stringify(request);
@@ -3918,7 +3899,7 @@ export class TraceClient extends AuthorizedApiBase {
3918
3899
  getTrace(id) {
3919
3900
  let url_ = this.baseUrl + "/trace/{id}";
3920
3901
  if (id === undefined || id === null)
3921
- throw new globalThis.Error("The parameter 'id' must be defined.");
3902
+ throw new Error("The parameter 'id' must be defined.");
3922
3903
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3923
3904
  url_ = url_.replace(/[?&]$/, "");
3924
3905
  let options_ = {
@@ -3958,7 +3939,7 @@ export class TraceClient extends AuthorizedApiBase {
3958
3939
  updateTrace(id, request) {
3959
3940
  let url_ = this.baseUrl + "/trace/{id}";
3960
3941
  if (id === undefined || id === null)
3961
- throw new globalThis.Error("The parameter 'id' must be defined.");
3942
+ throw new Error("The parameter 'id' must be defined.");
3962
3943
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3963
3944
  url_ = url_.replace(/[?&]$/, "");
3964
3945
  const content_ = JSON.stringify(request);
@@ -3997,7 +3978,7 @@ export class TraceClient extends AuthorizedApiBase {
3997
3978
  generateTrace(id) {
3998
3979
  let url_ = this.baseUrl + "/trace/{id}/generate";
3999
3980
  if (id === undefined || id === null)
4000
- throw new globalThis.Error("The parameter 'id' must be defined.");
3981
+ throw new Error("The parameter 'id' must be defined.");
4001
3982
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4002
3983
  url_ = url_.replace(/[?&]$/, "");
4003
3984
  let options_ = {
@@ -4037,7 +4018,7 @@ export class TraceClient extends AuthorizedApiBase {
4037
4018
  addSequenceToTraceList(id) {
4038
4019
  let url_ = this.baseUrl + "/trace/{id}/addsequence";
4039
4020
  if (id === undefined || id === null)
4040
- throw new globalThis.Error("The parameter 'id' must be defined.");
4021
+ throw new Error("The parameter 'id' must be defined.");
4041
4022
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4042
4023
  url_ = url_.replace(/[?&]$/, "");
4043
4024
  let options_ = {
@@ -4082,7 +4063,7 @@ export class TraceClient extends AuthorizedApiBase {
4082
4063
  setTraceManualCompleted(id, request) {
4083
4064
  let url_ = this.baseUrl + "/trace/{id}/manualcompleted";
4084
4065
  if (id === undefined || id === null)
4085
- throw new globalThis.Error("The parameter 'id' must be defined.");
4066
+ throw new Error("The parameter 'id' must be defined.");
4086
4067
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4087
4068
  url_ = url_.replace(/[?&]$/, "");
4088
4069
  const content_ = JSON.stringify(request);
@@ -4121,11 +4102,11 @@ export class TraceClient extends AuthorizedApiBase {
4121
4102
  listCustomerOrderLineTraces(customerOrder, customerOrderLine) {
4122
4103
  let url_ = this.baseUrl + "/trace/customerorderlineitems?";
4123
4104
  if (customerOrder === null)
4124
- throw new globalThis.Error("The parameter 'customerOrder' cannot be null.");
4105
+ throw new Error("The parameter 'customerOrder' cannot be null.");
4125
4106
  else if (customerOrder !== undefined)
4126
4107
  url_ += "customerOrder=" + encodeURIComponent("" + customerOrder) + "&";
4127
4108
  if (customerOrderLine === null)
4128
- throw new globalThis.Error("The parameter 'customerOrderLine' cannot be null.");
4109
+ throw new Error("The parameter 'customerOrderLine' cannot be null.");
4129
4110
  else if (customerOrderLine !== undefined)
4130
4111
  url_ += "customerOrderLine=" + encodeURIComponent("" + customerOrderLine) + "&";
4131
4112
  url_ = url_.replace(/[?&]$/, "");
@@ -4170,7 +4151,7 @@ export class TraceClient extends AuthorizedApiBase {
4170
4151
  getCustomerOrderTraceStatus(id, line) {
4171
4152
  let url_ = this.baseUrl + "/trace/customerorders/{id}?";
4172
4153
  if (id === undefined || id === null)
4173
- throw new globalThis.Error("The parameter 'id' must be defined.");
4154
+ throw new Error("The parameter 'id' must be defined.");
4174
4155
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4175
4156
  if (line !== undefined && line !== null)
4176
4157
  url_ += "line=" + encodeURIComponent("" + line) + "&";
@@ -4220,7 +4201,7 @@ export class TraceClient extends AuthorizedApiBase {
4220
4201
  listTraceWorkorders(pageSize, search, companyId, searchType, continuationToken) {
4221
4202
  let url_ = this.baseUrl + "/trace/workorders?";
4222
4203
  if (pageSize === null)
4223
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
4204
+ throw new Error("The parameter 'pageSize' cannot be null.");
4224
4205
  else if (pageSize !== undefined)
4225
4206
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
4226
4207
  if (search !== undefined && search !== null)
@@ -4228,7 +4209,7 @@ export class TraceClient extends AuthorizedApiBase {
4228
4209
  if (companyId !== undefined && companyId !== null)
4229
4210
  url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
4230
4211
  if (searchType === null)
4231
- throw new globalThis.Error("The parameter 'searchType' cannot be null.");
4212
+ throw new Error("The parameter 'searchType' cannot be null.");
4232
4213
  else if (searchType !== undefined)
4233
4214
  url_ += "searchType=" + encodeURIComponent("" + searchType) + "&";
4234
4215
  if (continuationToken !== undefined && continuationToken !== null)
@@ -4319,11 +4300,11 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4319
4300
  listMeasuringTools(page, pageSize, toolId, toolName, typeId, subTypeId, orderBy, sortDirection, includeDeprecated) {
4320
4301
  let url_ = this.baseUrl + "/measuringtools?";
4321
4302
  if (page === null)
4322
- throw new globalThis.Error("The parameter 'page' cannot be null.");
4303
+ throw new Error("The parameter 'page' cannot be null.");
4323
4304
  else if (page !== undefined)
4324
4305
  url_ += "page=" + encodeURIComponent("" + page) + "&";
4325
4306
  if (pageSize === null)
4326
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
4307
+ throw new Error("The parameter 'pageSize' cannot be null.");
4327
4308
  else if (pageSize !== undefined)
4328
4309
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
4329
4310
  if (toolId !== undefined && toolId !== null)
@@ -4418,7 +4399,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4418
4399
  updateMeasuringTool(id, request) {
4419
4400
  let url_ = this.baseUrl + "/measuringtools/{id}";
4420
4401
  if (id === undefined || id === null)
4421
- throw new globalThis.Error("The parameter 'id' must be defined.");
4402
+ throw new Error("The parameter 'id' must be defined.");
4422
4403
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4423
4404
  url_ = url_.replace(/[?&]$/, "");
4424
4405
  const content_ = JSON.stringify(request);
@@ -4461,7 +4442,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4461
4442
  getMeasuringTool(id) {
4462
4443
  let url_ = this.baseUrl + "/measuringtools/{id}";
4463
4444
  if (id === undefined || id === null)
4464
- throw new globalThis.Error("The parameter 'id' must be defined.");
4445
+ throw new Error("The parameter 'id' must be defined.");
4465
4446
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4466
4447
  url_ = url_.replace(/[?&]$/, "");
4467
4448
  let options_ = {
@@ -4501,7 +4482,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4501
4482
  listCalibrations(id) {
4502
4483
  let url_ = this.baseUrl + "/measuringtools/{id}/calibrations";
4503
4484
  if (id === undefined || id === null)
4504
- throw new globalThis.Error("The parameter 'id' must be defined.");
4485
+ throw new Error("The parameter 'id' must be defined.");
4505
4486
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4506
4487
  url_ = url_.replace(/[?&]$/, "");
4507
4488
  let options_ = {
@@ -4545,7 +4526,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4545
4526
  registerCalibration(id, request) {
4546
4527
  let url_ = this.baseUrl + "/measuringtools/{id}/calibrations";
4547
4528
  if (id === undefined || id === null)
4548
- throw new globalThis.Error("The parameter 'id' must be defined.");
4529
+ throw new Error("The parameter 'id' must be defined.");
4549
4530
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4550
4531
  url_ = url_.replace(/[?&]$/, "");
4551
4532
  const content_ = JSON.stringify(request);
@@ -4588,10 +4569,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4588
4569
  attachCalibrationCertificate(id, calibrationId, request) {
4589
4570
  let url_ = this.baseUrl + "/measuringtools/{id}/calibrations/{calibrationId}/attachcertificate";
4590
4571
  if (id === undefined || id === null)
4591
- throw new globalThis.Error("The parameter 'id' must be defined.");
4572
+ throw new Error("The parameter 'id' must be defined.");
4592
4573
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4593
4574
  if (calibrationId === undefined || calibrationId === null)
4594
- throw new globalThis.Error("The parameter 'calibrationId' must be defined.");
4575
+ throw new Error("The parameter 'calibrationId' must be defined.");
4595
4576
  url_ = url_.replace("{calibrationId}", encodeURIComponent("" + calibrationId));
4596
4577
  url_ = url_.replace(/[?&]$/, "");
4597
4578
  const content_ = JSON.stringify(request);
@@ -4634,10 +4615,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4634
4615
  deleteCalibrationCertificate(id, calibrationId) {
4635
4616
  let url_ = this.baseUrl + "/measuringtools/{id}/calibrations/{calibrationId}/deletecertificate";
4636
4617
  if (id === undefined || id === null)
4637
- throw new globalThis.Error("The parameter 'id' must be defined.");
4618
+ throw new Error("The parameter 'id' must be defined.");
4638
4619
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4639
4620
  if (calibrationId === undefined || calibrationId === null)
4640
- throw new globalThis.Error("The parameter 'calibrationId' must be defined.");
4621
+ throw new Error("The parameter 'calibrationId' must be defined.");
4641
4622
  url_ = url_.replace("{calibrationId}", encodeURIComponent("" + calibrationId));
4642
4623
  url_ = url_.replace(/[?&]$/, "");
4643
4624
  let options_ = {
@@ -4834,7 +4815,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4834
4815
  updateMeasuringToolType(id, request) {
4835
4816
  let url_ = this.baseUrl + "/measuringtools/types/{id}";
4836
4817
  if (id === undefined || id === null)
4837
- throw new globalThis.Error("The parameter 'id' must be defined.");
4818
+ throw new Error("The parameter 'id' must be defined.");
4838
4819
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4839
4820
  url_ = url_.replace(/[?&]$/, "");
4840
4821
  const content_ = JSON.stringify(request);
@@ -4877,7 +4858,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4877
4858
  deleteMeasuringToolType(id) {
4878
4859
  let url_ = this.baseUrl + "/measuringtools/types/{id}";
4879
4860
  if (id === undefined || id === null)
4880
- throw new globalThis.Error("The parameter 'id' must be defined.");
4861
+ throw new Error("The parameter 'id' must be defined.");
4881
4862
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4882
4863
  url_ = url_.replace(/[?&]$/, "");
4883
4864
  let options_ = {
@@ -4912,7 +4893,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4912
4893
  listMeasuringToolSubTypes(typeId) {
4913
4894
  let url_ = this.baseUrl + "/measuringtools/types/{typeId}/subtypes";
4914
4895
  if (typeId === undefined || typeId === null)
4915
- throw new globalThis.Error("The parameter 'typeId' must be defined.");
4896
+ throw new Error("The parameter 'typeId' must be defined.");
4916
4897
  url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
4917
4898
  url_ = url_.replace(/[?&]$/, "");
4918
4899
  let options_ = {
@@ -4956,7 +4937,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4956
4937
  createMeasuringToolSubType(typeId, request) {
4957
4938
  let url_ = this.baseUrl + "/measuringtools/types/{typeId}/subtypes";
4958
4939
  if (typeId === undefined || typeId === null)
4959
- throw new globalThis.Error("The parameter 'typeId' must be defined.");
4940
+ throw new Error("The parameter 'typeId' must be defined.");
4960
4941
  url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
4961
4942
  url_ = url_.replace(/[?&]$/, "");
4962
4943
  const content_ = JSON.stringify(request);
@@ -4999,10 +4980,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
4999
4980
  updateMeasuringToolSubType(typeId, id, request) {
5000
4981
  let url_ = this.baseUrl + "/measuringtools/types/{typeId}/subtypes/{id}";
5001
4982
  if (typeId === undefined || typeId === null)
5002
- throw new globalThis.Error("The parameter 'typeId' must be defined.");
4983
+ throw new Error("The parameter 'typeId' must be defined.");
5003
4984
  url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
5004
4985
  if (id === undefined || id === null)
5005
- throw new globalThis.Error("The parameter 'id' must be defined.");
4986
+ throw new Error("The parameter 'id' must be defined.");
5006
4987
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5007
4988
  url_ = url_.replace(/[?&]$/, "");
5008
4989
  const content_ = JSON.stringify(request);
@@ -5045,10 +5026,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
5045
5026
  deleteMeasuringToolSubType(typeId, id) {
5046
5027
  let url_ = this.baseUrl + "/measuringtools/types/{typeId}/subtypes/{id}";
5047
5028
  if (typeId === undefined || typeId === null)
5048
- throw new globalThis.Error("The parameter 'typeId' must be defined.");
5029
+ throw new Error("The parameter 'typeId' must be defined.");
5049
5030
  url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
5050
5031
  if (id === undefined || id === null)
5051
- throw new globalThis.Error("The parameter 'id' must be defined.");
5032
+ throw new Error("The parameter 'id' must be defined.");
5052
5033
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5053
5034
  url_ = url_.replace(/[?&]$/, "");
5054
5035
  let options_ = {
@@ -5164,7 +5145,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
5164
5145
  deleteMeasuringUnit(id) {
5165
5146
  let url_ = this.baseUrl + "/measuringtools/units/{id}";
5166
5147
  if (id === undefined || id === null)
5167
- throw new globalThis.Error("The parameter 'id' must be defined.");
5148
+ throw new Error("The parameter 'id' must be defined.");
5168
5149
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5169
5150
  url_ = url_.replace(/[?&]$/, "");
5170
5151
  let options_ = {
@@ -5199,11 +5180,11 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
5199
5180
  getMeasuringToolWhitelist(page, pageSize, filter, orderBy, sortDirection) {
5200
5181
  let url_ = this.baseUrl + "/measuringtools/whitelist?";
5201
5182
  if (page === null)
5202
- throw new globalThis.Error("The parameter 'page' cannot be null.");
5183
+ throw new Error("The parameter 'page' cannot be null.");
5203
5184
  else if (page !== undefined)
5204
5185
  url_ += "page=" + encodeURIComponent("" + page) + "&";
5205
5186
  if (pageSize === null)
5206
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
5187
+ throw new Error("The parameter 'pageSize' cannot be null.");
5207
5188
  else if (pageSize !== undefined)
5208
5189
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
5209
5190
  if (filter !== undefined && filter !== null)
@@ -5290,7 +5271,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
5290
5271
  updateWhitelistedMeasuringTool(id, command) {
5291
5272
  let url_ = this.baseUrl + "/measuringtools/whitelist/{id}";
5292
5273
  if (id === undefined || id === null)
5293
- throw new globalThis.Error("The parameter 'id' must be defined.");
5274
+ throw new Error("The parameter 'id' must be defined.");
5294
5275
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5295
5276
  url_ = url_.replace(/[?&]$/, "");
5296
5277
  const content_ = JSON.stringify(command);
@@ -5329,7 +5310,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
5329
5310
  removeMeasuringToolFromWhitelist(id) {
5330
5311
  let url_ = this.baseUrl + "/measuringtools/whitelist/{id}";
5331
5312
  if (id === undefined || id === null)
5332
- throw new globalThis.Error("The parameter 'id' must be defined.");
5313
+ throw new Error("The parameter 'id' must be defined.");
5333
5314
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5334
5315
  url_ = url_.replace(/[?&]$/, "");
5335
5316
  let options_ = {
@@ -5349,12 +5330,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
5349
5330
  response.headers.forEach((v, k) => _headers[k] = v);
5350
5331
  }
5351
5332
  ;
5352
- if (status === 204) {
5353
- return response.text().then((_responseText) => {
5354
- return;
5355
- });
5356
- }
5357
- else if (status === 404) {
5333
+ if (status === 404) {
5358
5334
  return response.text().then((_responseText) => {
5359
5335
  let result404 = null;
5360
5336
  let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
@@ -5362,6 +5338,11 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
5362
5338
  return throwException("A server side error occurred.", status, _responseText, _headers, result404);
5363
5339
  });
5364
5340
  }
5341
+ else if (status === 204) {
5342
+ return response.text().then((_responseText) => {
5343
+ return;
5344
+ });
5345
+ }
5365
5346
  else if (status !== 200 && status !== 204) {
5366
5347
  return response.text().then((_responseText) => {
5367
5348
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -5413,7 +5394,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
5413
5394
  deprecateTool(id, request) {
5414
5395
  let url_ = this.baseUrl + "/measuringtools/deprecated/{id}";
5415
5396
  if (id === undefined || id === null)
5416
- throw new globalThis.Error("The parameter 'id' must be defined.");
5397
+ throw new Error("The parameter 'id' must be defined.");
5417
5398
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5418
5399
  url_ = url_.replace(/[?&]$/, "");
5419
5400
  const content_ = JSON.stringify(request);
@@ -5452,7 +5433,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
5452
5433
  restoreTool(id) {
5453
5434
  let url_ = this.baseUrl + "/measuringtools/restore/{id}";
5454
5435
  if (id === undefined || id === null)
5455
- throw new globalThis.Error("The parameter 'id' must be defined.");
5436
+ throw new Error("The parameter 'id' must be defined.");
5456
5437
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5457
5438
  url_ = url_.replace(/[?&]$/, "");
5458
5439
  let options_ = {
@@ -5487,7 +5468,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
5487
5468
  getCalibrationList(status) {
5488
5469
  let url_ = this.baseUrl + "/measuringtools/calibrationlist?";
5489
5470
  if (status === null)
5490
- throw new globalThis.Error("The parameter 'status' cannot be null.");
5471
+ throw new Error("The parameter 'status' cannot be null.");
5491
5472
  else if (status !== undefined)
5492
5473
  url_ += "status=" + encodeURIComponent("" + status) + "&";
5493
5474
  url_ = url_.replace(/[?&]$/, "");
@@ -5775,7 +5756,7 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
5775
5756
  updateDowntimeReason(id, request) {
5776
5757
  let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/{id}";
5777
5758
  if (id === undefined || id === null)
5778
- throw new globalThis.Error("The parameter 'id' must be defined.");
5759
+ throw new Error("The parameter 'id' must be defined.");
5779
5760
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5780
5761
  url_ = url_.replace(/[?&]$/, "");
5781
5762
  const content_ = JSON.stringify(request);
@@ -5818,7 +5799,7 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
5818
5799
  deleteDowntimeReason(id) {
5819
5800
  let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/{id}";
5820
5801
  if (id === undefined || id === null)
5821
- throw new globalThis.Error("The parameter 'id' must be defined.");
5802
+ throw new Error("The parameter 'id' must be defined.");
5822
5803
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5823
5804
  url_ = url_.replace(/[?&]$/, "");
5824
5805
  let options_ = {
@@ -5975,7 +5956,7 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
5975
5956
  updateParentTopic(id, request) {
5976
5957
  let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
5977
5958
  if (id === undefined || id === null)
5978
- throw new globalThis.Error("The parameter 'id' must be defined.");
5959
+ throw new Error("The parameter 'id' must be defined.");
5979
5960
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5980
5961
  url_ = url_.replace(/[?&]$/, "");
5981
5962
  const content_ = JSON.stringify(request);
@@ -6018,7 +5999,7 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
6018
5999
  deleteParentTopic(id) {
6019
6000
  let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
6020
6001
  if (id === undefined || id === null)
6021
- throw new globalThis.Error("The parameter 'id' must be defined.");
6002
+ throw new Error("The parameter 'id' must be defined.");
6022
6003
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
6023
6004
  url_ = url_.replace(/[?&]$/, "");
6024
6005
  let options_ = {
@@ -6101,7 +6082,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
6101
6082
  updateDowntimePeriodReason(id, request) {
6102
6083
  let url_ = this.baseUrl + "/downtimereasons/{id}";
6103
6084
  if (id === undefined || id === null)
6104
- throw new globalThis.Error("The parameter 'id' must be defined.");
6085
+ throw new Error("The parameter 'id' must be defined.");
6105
6086
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
6106
6087
  url_ = url_.replace(/[?&]$/, "");
6107
6088
  const content_ = JSON.stringify(request);
@@ -6144,7 +6125,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
6144
6125
  deleteDowntimeReason(id) {
6145
6126
  let url_ = this.baseUrl + "/downtimereasons/{id}";
6146
6127
  if (id === undefined || id === null)
6147
- throw new globalThis.Error("The parameter 'id' must be defined.");
6128
+ throw new Error("The parameter 'id' must be defined.");
6148
6129
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
6149
6130
  url_ = url_.replace(/[?&]$/, "");
6150
6131
  let options_ = {
@@ -6179,7 +6160,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
6179
6160
  listDowntimeReasonsForMachine(id) {
6180
6161
  let url_ = this.baseUrl + "/downtimereasons/machine/{id}/downtimereasons";
6181
6162
  if (id === undefined || id === null)
6182
- throw new globalThis.Error("The parameter 'id' must be defined.");
6163
+ throw new Error("The parameter 'id' must be defined.");
6183
6164
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
6184
6165
  url_ = url_.replace(/[?&]$/, "");
6185
6166
  let options_ = {
@@ -6223,7 +6204,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
6223
6204
  listDowntimeReasonsHierarchyForMachine(id) {
6224
6205
  let url_ = this.baseUrl + "/downtimereasons/machine/{id}/downtimereasonshierarchy";
6225
6206
  if (id === undefined || id === null)
6226
- throw new globalThis.Error("The parameter 'id' must be defined.");
6207
+ throw new Error("The parameter 'id' must be defined.");
6227
6208
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
6228
6209
  url_ = url_.replace(/[?&]$/, "");
6229
6210
  let options_ = {
@@ -6267,7 +6248,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
6267
6248
  listActiveDowntimeReasonsForMachine(id) {
6268
6249
  let url_ = this.baseUrl + "/downtimereasons/machine/{id}/active";
6269
6250
  if (id === undefined || id === null)
6270
- throw new globalThis.Error("The parameter 'id' must be defined.");
6251
+ throw new Error("The parameter 'id' must be defined.");
6271
6252
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
6272
6253
  url_ = url_.replace(/[?&]$/, "");
6273
6254
  let options_ = {
@@ -6517,11 +6498,11 @@ export class KpiAdminClient extends AuthorizedApiBase {
6517
6498
  getCalendarCapacityAdmin(startDate, endDate) {
6518
6499
  let url_ = this.baseUrl + "/kpiadmin/calendar?";
6519
6500
  if (startDate === null)
6520
- throw new globalThis.Error("The parameter 'startDate' cannot be null.");
6501
+ throw new Error("The parameter 'startDate' cannot be null.");
6521
6502
  else if (startDate !== undefined)
6522
6503
  url_ += "startDate=" + encodeURIComponent(startDate ? "" + startDate.toISOString() : "") + "&";
6523
6504
  if (endDate === null)
6524
- throw new globalThis.Error("The parameter 'endDate' cannot be null.");
6505
+ throw new Error("The parameter 'endDate' cannot be null.");
6525
6506
  else if (endDate !== undefined)
6526
6507
  url_ += "endDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
6527
6508
  url_ = url_.replace(/[?&]$/, "");
@@ -6691,23 +6672,23 @@ export class KpiClient extends AuthorizedApiBase {
6691
6672
  getMachineKpi(machineExternalId, previousPeriodStartDate, startDate, endDate, utcOffset) {
6692
6673
  let url_ = this.baseUrl + "/kpi/capacity?";
6693
6674
  if (machineExternalId === null)
6694
- throw new globalThis.Error("The parameter 'machineExternalId' cannot be null.");
6675
+ throw new Error("The parameter 'machineExternalId' cannot be null.");
6695
6676
  else if (machineExternalId !== undefined)
6696
6677
  url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
6697
6678
  if (previousPeriodStartDate === null)
6698
- throw new globalThis.Error("The parameter 'previousPeriodStartDate' cannot be null.");
6679
+ throw new Error("The parameter 'previousPeriodStartDate' cannot be null.");
6699
6680
  else if (previousPeriodStartDate !== undefined)
6700
6681
  url_ += "previousPeriodStartDate=" + encodeURIComponent(previousPeriodStartDate ? "" + previousPeriodStartDate.toISOString() : "") + "&";
6701
6682
  if (startDate === null)
6702
- throw new globalThis.Error("The parameter 'startDate' cannot be null.");
6683
+ throw new Error("The parameter 'startDate' cannot be null.");
6703
6684
  else if (startDate !== undefined)
6704
6685
  url_ += "startDate=" + encodeURIComponent(startDate ? "" + startDate.toISOString() : "") + "&";
6705
6686
  if (endDate === null)
6706
- throw new globalThis.Error("The parameter 'endDate' cannot be null.");
6687
+ throw new Error("The parameter 'endDate' cannot be null.");
6707
6688
  else if (endDate !== undefined)
6708
6689
  url_ += "endDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
6709
6690
  if (utcOffset === null)
6710
- throw new globalThis.Error("The parameter 'utcOffset' cannot be null.");
6691
+ throw new Error("The parameter 'utcOffset' cannot be null.");
6711
6692
  else if (utcOffset !== undefined)
6712
6693
  url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
6713
6694
  url_ = url_.replace(/[?&]$/, "");
@@ -6748,15 +6729,15 @@ export class KpiClient extends AuthorizedApiBase {
6748
6729
  getMachineDailyUptime(machineExternalId, date, utcOffset) {
6749
6730
  let url_ = this.baseUrl + "/kpi/daily-uptime?";
6750
6731
  if (machineExternalId === null)
6751
- throw new globalThis.Error("The parameter 'machineExternalId' cannot be null.");
6732
+ throw new Error("The parameter 'machineExternalId' cannot be null.");
6752
6733
  else if (machineExternalId !== undefined)
6753
6734
  url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
6754
6735
  if (date === null)
6755
- throw new globalThis.Error("The parameter 'date' cannot be null.");
6736
+ throw new Error("The parameter 'date' cannot be null.");
6756
6737
  else if (date !== undefined)
6757
6738
  url_ += "date=" + encodeURIComponent(date ? "" + date.toISOString() : "") + "&";
6758
6739
  if (utcOffset === null)
6759
- throw new globalThis.Error("The parameter 'utcOffset' cannot be null.");
6740
+ throw new Error("The parameter 'utcOffset' cannot be null.");
6760
6741
  else if (utcOffset !== undefined)
6761
6742
  url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
6762
6743
  url_ = url_.replace(/[?&]$/, "");
@@ -6854,7 +6835,7 @@ export class MachinesClient extends AuthorizedApiBase {
6854
6835
  listMachines(onlyConnectedMachines) {
6855
6836
  let url_ = this.baseUrl + "/machines?";
6856
6837
  if (onlyConnectedMachines === null)
6857
- throw new globalThis.Error("The parameter 'onlyConnectedMachines' cannot be null.");
6838
+ throw new Error("The parameter 'onlyConnectedMachines' cannot be null.");
6858
6839
  else if (onlyConnectedMachines !== undefined)
6859
6840
  url_ += "onlyConnectedMachines=" + encodeURIComponent("" + onlyConnectedMachines) + "&";
6860
6841
  url_ = url_.replace(/[?&]$/, "");
@@ -6980,7 +6961,7 @@ export class MachinesClient extends AuthorizedApiBase {
6980
6961
  updateMachineGroup(id, request) {
6981
6962
  let url_ = this.baseUrl + "/machines/groups/{id}";
6982
6963
  if (id === undefined || id === null)
6983
- throw new globalThis.Error("The parameter 'id' must be defined.");
6964
+ throw new Error("The parameter 'id' must be defined.");
6984
6965
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
6985
6966
  url_ = url_.replace(/[?&]$/, "");
6986
6967
  const content_ = JSON.stringify(request);
@@ -7019,7 +7000,7 @@ export class MachinesClient extends AuthorizedApiBase {
7019
7000
  deleteMachineGroup(id) {
7020
7001
  let url_ = this.baseUrl + "/machines/groups/{id}";
7021
7002
  if (id === undefined || id === null)
7022
- throw new globalThis.Error("The parameter 'id' must be defined.");
7003
+ throw new Error("The parameter 'id' must be defined.");
7023
7004
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
7024
7005
  url_ = url_.replace(/[?&]$/, "");
7025
7006
  let options_ = {
@@ -7093,7 +7074,7 @@ export class MachinesClient extends AuthorizedApiBase {
7093
7074
  listMachineStates(id, startTime, endTime) {
7094
7075
  let url_ = this.baseUrl + "/machines/{id}/states?";
7095
7076
  if (id === undefined || id === null)
7096
- throw new globalThis.Error("The parameter 'id' must be defined.");
7077
+ throw new Error("The parameter 'id' must be defined.");
7097
7078
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
7098
7079
  if (startTime !== undefined && startTime !== null)
7099
7080
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
@@ -7141,7 +7122,7 @@ export class MachinesClient extends AuthorizedApiBase {
7141
7122
  listLastDowntimeMachineStates(id, endTime, maxStates) {
7142
7123
  let url_ = this.baseUrl + "/machines/{id}/lastdowntimestates?";
7143
7124
  if (id === undefined || id === null)
7144
- throw new globalThis.Error("The parameter 'id' must be defined.");
7125
+ throw new Error("The parameter 'id' must be defined.");
7145
7126
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
7146
7127
  if (endTime !== undefined && endTime !== null)
7147
7128
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
@@ -7189,10 +7170,10 @@ export class MachinesClient extends AuthorizedApiBase {
7189
7170
  getMachineStateWithDowntimePeriods(id, timestamp) {
7190
7171
  let url_ = this.baseUrl + "/machines/{id}/statewithdowntimeperiods?";
7191
7172
  if (id === undefined || id === null)
7192
- throw new globalThis.Error("The parameter 'id' must be defined.");
7173
+ throw new Error("The parameter 'id' must be defined.");
7193
7174
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
7194
7175
  if (timestamp === null)
7195
- throw new globalThis.Error("The parameter 'timestamp' cannot be null.");
7176
+ throw new Error("The parameter 'timestamp' cannot be null.");
7196
7177
  else if (timestamp !== undefined)
7197
7178
  url_ += "timestamp=" + encodeURIComponent("" + timestamp) + "&";
7198
7179
  url_ = url_.replace(/[?&]$/, "");
@@ -7233,7 +7214,7 @@ export class MachinesClient extends AuthorizedApiBase {
7233
7214
  getMachineStatesSummary(id, startTime, endTime) {
7234
7215
  let url_ = this.baseUrl + "/machines/{id}/states/summary?";
7235
7216
  if (id === undefined || id === null)
7236
- throw new globalThis.Error("The parameter 'id' must be defined.");
7217
+ throw new Error("The parameter 'id' must be defined.");
7237
7218
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
7238
7219
  if (startTime !== undefined && startTime !== null)
7239
7220
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
@@ -7314,7 +7295,7 @@ export class MachinesClient extends AuthorizedApiBase {
7314
7295
  getMachineErpData(id) {
7315
7296
  let url_ = this.baseUrl + "/machines/{id}/erp";
7316
7297
  if (id === undefined || id === null)
7317
- throw new globalThis.Error("The parameter 'id' must be defined.");
7298
+ throw new Error("The parameter 'id' must be defined.");
7318
7299
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
7319
7300
  url_ = url_.replace(/[?&]$/, "");
7320
7301
  let options_ = {
@@ -7359,7 +7340,7 @@ export class MachinesClient extends AuthorizedApiBase {
7359
7340
  getWorkOrderTimeline(id, startTime, endTime) {
7360
7341
  let url_ = this.baseUrl + "/machines/{id}/workorder/timeline?";
7361
7342
  if (id === undefined || id === null)
7362
- throw new globalThis.Error("The parameter 'id' must be defined.");
7343
+ throw new Error("The parameter 'id' must be defined.");
7363
7344
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
7364
7345
  if (startTime !== undefined && startTime !== null)
7365
7346
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
@@ -7802,7 +7783,7 @@ export class LinksClient extends AuthorizedApiBase {
7802
7783
  deleteLink(id, scope) {
7803
7784
  let url_ = this.baseUrl + "/links/{id}?";
7804
7785
  if (id === undefined || id === null)
7805
- throw new globalThis.Error("The parameter 'id' must be defined.");
7786
+ throw new Error("The parameter 'id' must be defined.");
7806
7787
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
7807
7788
  if (scope !== undefined && scope !== null)
7808
7789
  url_ += "scope=" + encodeURIComponent("" + scope) + "&";
@@ -7847,7 +7828,7 @@ export class ExternalServicesClient extends AuthorizedApiBase {
7847
7828
  getCredential(serviceName) {
7848
7829
  let url_ = this.baseUrl + "/externalservices/credentials/{serviceName}";
7849
7830
  if (serviceName === undefined || serviceName === null)
7850
- throw new globalThis.Error("The parameter 'serviceName' must be defined.");
7831
+ throw new Error("The parameter 'serviceName' must be defined.");
7851
7832
  url_ = url_.replace("{serviceName}", encodeURIComponent("" + serviceName));
7852
7833
  url_ = url_.replace(/[?&]$/, "");
7853
7834
  let options_ = {
@@ -7942,7 +7923,7 @@ export class DocumentsClient extends AuthorizedApiBase {
7942
7923
  checkIfImportedDocumentExists(importedReference) {
7943
7924
  let url_ = this.baseUrl + "/documents/importedrevisionexists?";
7944
7925
  if (importedReference === null)
7945
- throw new globalThis.Error("The parameter 'importedReference' cannot be null.");
7926
+ throw new Error("The parameter 'importedReference' cannot be null.");
7946
7927
  else if (importedReference !== undefined)
7947
7928
  url_ += "importedReference=" + encodeURIComponent("" + importedReference) + "&";
7948
7929
  url_ = url_.replace(/[?&]$/, "");
@@ -7991,7 +7972,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
7991
7972
  listDocumentTypes(includeInactive) {
7992
7973
  let url_ = this.baseUrl + "/documenttypes?";
7993
7974
  if (includeInactive === null)
7994
- throw new globalThis.Error("The parameter 'includeInactive' cannot be null.");
7975
+ throw new Error("The parameter 'includeInactive' cannot be null.");
7995
7976
  else if (includeInactive !== undefined)
7996
7977
  url_ += "includeInactive=" + encodeURIComponent("" + includeInactive) + "&";
7997
7978
  url_ = url_.replace(/[?&]$/, "");
@@ -8076,7 +8057,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
8076
8057
  getDocumentType(id) {
8077
8058
  let url_ = this.baseUrl + "/documenttypes/{id}";
8078
8059
  if (id === undefined || id === null)
8079
- throw new globalThis.Error("The parameter 'id' must be defined.");
8060
+ throw new Error("The parameter 'id' must be defined.");
8080
8061
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
8081
8062
  url_ = url_.replace(/[?&]$/, "");
8082
8063
  let options_ = {
@@ -8116,7 +8097,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
8116
8097
  updateDocumentType(id, request) {
8117
8098
  let url_ = this.baseUrl + "/documenttypes/{id}";
8118
8099
  if (id === undefined || id === null)
8119
- throw new globalThis.Error("The parameter 'id' must be defined.");
8100
+ throw new Error("The parameter 'id' must be defined.");
8120
8101
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
8121
8102
  url_ = url_.replace(/[?&]$/, "");
8122
8103
  const content_ = JSON.stringify(request);
@@ -8162,7 +8143,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
8162
8143
  deleteDocumentType(id) {
8163
8144
  let url_ = this.baseUrl + "/documenttypes/{id}";
8164
8145
  if (id === undefined || id === null)
8165
- throw new globalThis.Error("The parameter 'id' must be defined.");
8146
+ throw new Error("The parameter 'id' must be defined.");
8166
8147
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
8167
8148
  url_ = url_.replace(/[?&]$/, "");
8168
8149
  let options_ = {
@@ -8197,7 +8178,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
8197
8178
  activateDocumentType(id) {
8198
8179
  let url_ = this.baseUrl + "/documenttypes/{id}/activate";
8199
8180
  if (id === undefined || id === null)
8200
- throw new globalThis.Error("The parameter 'id' must be defined.");
8181
+ throw new Error("The parameter 'id' must be defined.");
8201
8182
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
8202
8183
  url_ = url_.replace(/[?&]$/, "");
8203
8184
  let options_ = {
@@ -8232,7 +8213,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
8232
8213
  deactivateDocumentType(id) {
8233
8214
  let url_ = this.baseUrl + "/documenttypes/{id}/deactivate";
8234
8215
  if (id === undefined || id === null)
8235
- throw new globalThis.Error("The parameter 'id' must be defined.");
8216
+ throw new Error("The parameter 'id' must be defined.");
8236
8217
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
8237
8218
  url_ = url_.replace(/[?&]$/, "");
8238
8219
  let options_ = {
@@ -8267,7 +8248,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
8267
8248
  listDocumentTypeRules(id) {
8268
8249
  let url_ = this.baseUrl + "/documenttypes/{id}/rules";
8269
8250
  if (id === undefined || id === null)
8270
- throw new globalThis.Error("The parameter 'id' must be defined.");
8251
+ throw new Error("The parameter 'id' must be defined.");
8271
8252
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
8272
8253
  url_ = url_.replace(/[?&]$/, "");
8273
8254
  let options_ = {
@@ -8311,7 +8292,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
8311
8292
  updateDocumentTypeRules(id, request) {
8312
8293
  let url_ = this.baseUrl + "/documenttypes/{id}/rules";
8313
8294
  if (id === undefined || id === null)
8314
- throw new globalThis.Error("The parameter 'id' must be defined.");
8295
+ throw new Error("The parameter 'id' must be defined.");
8315
8296
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
8316
8297
  url_ = url_.replace(/[?&]$/, "");
8317
8298
  const content_ = JSON.stringify(request);
@@ -8523,7 +8504,7 @@ export class ExternalAccessClient extends AuthorizedApiBase {
8523
8504
  updateCompanyUser(id, request) {
8524
8505
  let url_ = this.baseUrl + "/externalaccess/users/{id}";
8525
8506
  if (id === undefined || id === null)
8526
- throw new globalThis.Error("The parameter 'id' must be defined.");
8507
+ throw new Error("The parameter 'id' must be defined.");
8527
8508
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
8528
8509
  url_ = url_.replace(/[?&]$/, "");
8529
8510
  const content_ = JSON.stringify(request);
@@ -8566,7 +8547,7 @@ export class ExternalAccessClient extends AuthorizedApiBase {
8566
8547
  deleteCompanyUser(id, companyId) {
8567
8548
  let url_ = this.baseUrl + "/externalaccess/users/{id}?";
8568
8549
  if (id === undefined || id === null)
8569
- throw new globalThis.Error("The parameter 'id' must be defined.");
8550
+ throw new Error("The parameter 'id' must be defined.");
8570
8551
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
8571
8552
  if (companyId !== undefined && companyId !== null)
8572
8553
  url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
@@ -8685,7 +8666,7 @@ export class ExternalAccessClient extends AuthorizedApiBase {
8685
8666
  deleteCompanyCustomer(tenantId) {
8686
8667
  let url_ = this.baseUrl + "/externalaccess/customers/{tenantId}";
8687
8668
  if (tenantId === undefined || tenantId === null)
8688
- throw new globalThis.Error("The parameter 'tenantId' must be defined.");
8669
+ throw new Error("The parameter 'tenantId' must be defined.");
8689
8670
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
8690
8671
  url_ = url_.replace(/[?&]$/, "");
8691
8672
  let options_ = {
@@ -8939,7 +8920,7 @@ export class SuppliersClient extends AuthorizedApiBase {
8939
8920
  deleteSupplierInvite(id) {
8940
8921
  let url_ = this.baseUrl + "/suppliers/supplierinvites/{id}";
8941
8922
  if (id === undefined || id === null)
8942
- throw new globalThis.Error("The parameter 'id' must be defined.");
8923
+ throw new Error("The parameter 'id' must be defined.");
8943
8924
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
8944
8925
  url_ = url_.replace(/[?&]$/, "");
8945
8926
  let options_ = {
@@ -9015,7 +8996,7 @@ export class SuppliersClient extends AuthorizedApiBase {
9015
8996
  deleteSupplier(id) {
9016
8997
  let url_ = this.baseUrl + "/suppliers/{id}";
9017
8998
  if (id === undefined || id === null)
9018
- throw new globalThis.Error("The parameter 'id' must be defined.");
8999
+ throw new Error("The parameter 'id' must be defined.");
9019
9000
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9020
9001
  url_ = url_.replace(/[?&]$/, "");
9021
9002
  let options_ = {
@@ -9172,7 +9153,7 @@ export class CncFileTransferClient extends AuthorizedApiBase {
9172
9153
  startCncMachineOperationTransferToCloud(id) {
9173
9154
  let url_ = this.baseUrl + "/cncfiletransfer/operations/{id}/transfertocloud";
9174
9155
  if (id === undefined || id === null)
9175
- throw new globalThis.Error("The parameter 'id' must be defined.");
9156
+ throw new Error("The parameter 'id' must be defined.");
9176
9157
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9177
9158
  url_ = url_.replace(/[?&]$/, "");
9178
9159
  let options_ = {
@@ -9212,7 +9193,7 @@ export class CncFileTransferClient extends AuthorizedApiBase {
9212
9193
  startCncMachineOperationTransferToMachine(id) {
9213
9194
  let url_ = this.baseUrl + "/cncfiletransfer/operations/{id}/transfertomachine";
9214
9195
  if (id === undefined || id === null)
9215
- throw new globalThis.Error("The parameter 'id' must be defined.");
9196
+ throw new Error("The parameter 'id' must be defined.");
9216
9197
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9217
9198
  url_ = url_.replace(/[?&]$/, "");
9218
9199
  let options_ = {
@@ -9252,7 +9233,7 @@ export class CncFileTransferClient extends AuthorizedApiBase {
9252
9233
  getTransferStatus(id) {
9253
9234
  let url_ = this.baseUrl + "/cncfiletransfer/transfers/{id}";
9254
9235
  if (id === undefined || id === null)
9255
- throw new globalThis.Error("The parameter 'id' must be defined.");
9236
+ throw new Error("The parameter 'id' must be defined.");
9256
9237
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9257
9238
  url_ = url_.replace(/[?&]$/, "");
9258
9239
  let options_ = {
@@ -9332,7 +9313,7 @@ export class CncFileTransferClient extends AuthorizedApiBase {
9332
9313
  getCamTransfer(path) {
9333
9314
  let url_ = this.baseUrl + "/cncfiletransfer/transfers/cam?";
9334
9315
  if (path === null)
9335
- throw new globalThis.Error("The parameter 'path' cannot be null.");
9316
+ throw new Error("The parameter 'path' cannot be null.");
9336
9317
  else if (path !== undefined)
9337
9318
  url_ += "path=" + encodeURIComponent("" + path) + "&";
9338
9319
  url_ = url_.replace(/[?&]$/, "");
@@ -9502,7 +9483,7 @@ export class CncSetupAgentClient extends AuthorizedApiBase {
9502
9483
  createUploadProgramsInfo(id, request) {
9503
9484
  let url_ = this.baseUrl + "/cncsetupagent/operations/{id}/programs";
9504
9485
  if (id === undefined || id === null)
9505
- throw new globalThis.Error("The parameter 'id' must be defined.");
9486
+ throw new Error("The parameter 'id' must be defined.");
9506
9487
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9507
9488
  url_ = url_.replace(/[?&]$/, "");
9508
9489
  const content_ = JSON.stringify(request);
@@ -9549,7 +9530,7 @@ export class CncSetupAgentClient extends AuthorizedApiBase {
9549
9530
  setTransferStatus(id, request) {
9550
9531
  let url_ = this.baseUrl + "/cncsetupagent/transfers/{id}";
9551
9532
  if (id === undefined || id === null)
9552
- throw new globalThis.Error("The parameter 'id' must be defined.");
9533
+ throw new Error("The parameter 'id' must be defined.");
9553
9534
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9554
9535
  url_ = url_.replace(/[?&]$/, "");
9555
9536
  const content_ = JSON.stringify(request);
@@ -9596,7 +9577,7 @@ export class CncSetupClient extends AuthorizedApiBase {
9596
9577
  getCncMachine(id) {
9597
9578
  let url_ = this.baseUrl + "/cncsetup/machines/{id}";
9598
9579
  if (id === undefined || id === null)
9599
- throw new globalThis.Error("The parameter 'id' must be defined.");
9580
+ throw new Error("The parameter 'id' must be defined.");
9600
9581
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9601
9582
  url_ = url_.replace(/[?&]$/, "");
9602
9583
  let options_ = {
@@ -9636,7 +9617,7 @@ export class CncSetupClient extends AuthorizedApiBase {
9636
9617
  updateCncMachine(id, request) {
9637
9618
  let url_ = this.baseUrl + "/cncsetup/machines/{id}";
9638
9619
  if (id === undefined || id === null)
9639
- throw new globalThis.Error("The parameter 'id' must be defined.");
9620
+ throw new Error("The parameter 'id' must be defined.");
9640
9621
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9641
9622
  url_ = url_.replace(/[?&]$/, "");
9642
9623
  const content_ = JSON.stringify(request);
@@ -9679,7 +9660,7 @@ export class CncSetupClient extends AuthorizedApiBase {
9679
9660
  deleteCncMachine(id) {
9680
9661
  let url_ = this.baseUrl + "/cncsetup/machines/{id}";
9681
9662
  if (id === undefined || id === null)
9682
- throw new globalThis.Error("The parameter 'id' must be defined.");
9663
+ throw new Error("The parameter 'id' must be defined.");
9683
9664
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9684
9665
  url_ = url_.replace(/[?&]$/, "");
9685
9666
  let options_ = {
@@ -9797,7 +9778,7 @@ export class CncSetupClient extends AuthorizedApiBase {
9797
9778
  getCncMachineCommunicationSettings(id) {
9798
9779
  let url_ = this.baseUrl + "/cncsetup/machines/{id}/communicationsettings";
9799
9780
  if (id === undefined || id === null)
9800
- throw new globalThis.Error("The parameter 'id' must be defined.");
9781
+ throw new Error("The parameter 'id' must be defined.");
9801
9782
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9802
9783
  url_ = url_.replace(/[?&]$/, "");
9803
9784
  let options_ = {
@@ -9837,7 +9818,7 @@ export class CncSetupClient extends AuthorizedApiBase {
9837
9818
  updateCncMachineCommunicationSettings(id, request) {
9838
9819
  let url_ = this.baseUrl + "/cncsetup/machines/{id}/communicationsettings";
9839
9820
  if (id === undefined || id === null)
9840
- throw new globalThis.Error("The parameter 'id' must be defined.");
9821
+ throw new Error("The parameter 'id' must be defined.");
9841
9822
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9842
9823
  url_ = url_.replace(/[?&]$/, "");
9843
9824
  const content_ = JSON.stringify(request);
@@ -9880,7 +9861,7 @@ export class CncSetupClient extends AuthorizedApiBase {
9880
9861
  deleteCncMachineCommunicationSettings(id) {
9881
9862
  let url_ = this.baseUrl + "/cncsetup/machines/{id}/communicationsettings";
9882
9863
  if (id === undefined || id === null)
9883
- throw new globalThis.Error("The parameter 'id' must be defined.");
9864
+ throw new Error("The parameter 'id' must be defined.");
9884
9865
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9885
9866
  url_ = url_.replace(/[?&]$/, "");
9886
9867
  let options_ = {
@@ -9955,7 +9936,7 @@ export class CncSetupClient extends AuthorizedApiBase {
9955
9936
  updateCncPart(id, request) {
9956
9937
  let url_ = this.baseUrl + "/cncsetup/parts/{id}";
9957
9938
  if (id === undefined || id === null)
9958
- throw new globalThis.Error("The parameter 'id' must be defined.");
9939
+ throw new Error("The parameter 'id' must be defined.");
9959
9940
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
9960
9941
  url_ = url_.replace(/[?&]$/, "");
9961
9942
  const content_ = JSON.stringify(request);
@@ -9998,7 +9979,7 @@ export class CncSetupClient extends AuthorizedApiBase {
9998
9979
  deleteCncPart(id) {
9999
9980
  let url_ = this.baseUrl + "/cncsetup/parts/{id}";
10000
9981
  if (id === undefined || id === null)
10001
- throw new globalThis.Error("The parameter 'id' must be defined.");
9982
+ throw new Error("The parameter 'id' must be defined.");
10002
9983
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10003
9984
  url_ = url_.replace(/[?&]$/, "");
10004
9985
  let options_ = {
@@ -10043,7 +10024,7 @@ export class CncSetupClient extends AuthorizedApiBase {
10043
10024
  getCncPart(id) {
10044
10025
  let url_ = this.baseUrl + "/cncsetup/parts/{id}";
10045
10026
  if (id === undefined || id === null)
10046
- throw new globalThis.Error("The parameter 'id' must be defined.");
10027
+ throw new Error("The parameter 'id' must be defined.");
10047
10028
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10048
10029
  url_ = url_.replace(/[?&]$/, "");
10049
10030
  let options_ = {
@@ -10202,7 +10183,7 @@ export class CncSetupClient extends AuthorizedApiBase {
10202
10183
  createUploadPartDrawingInfo(id, request) {
10203
10184
  let url_ = this.baseUrl + "/cncsetup/parts/{id}/drawing";
10204
10185
  if (id === undefined || id === null)
10205
- throw new globalThis.Error("The parameter 'id' must be defined.");
10186
+ throw new Error("The parameter 'id' must be defined.");
10206
10187
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10207
10188
  url_ = url_.replace(/[?&]$/, "");
10208
10189
  const content_ = JSON.stringify(request);
@@ -10245,7 +10226,7 @@ export class CncSetupClient extends AuthorizedApiBase {
10245
10226
  getCncPartDrawing(id) {
10246
10227
  let url_ = this.baseUrl + "/cncsetup/parts/{id}/drawing";
10247
10228
  if (id === undefined || id === null)
10248
- throw new globalThis.Error("The parameter 'id' must be defined.");
10229
+ throw new Error("The parameter 'id' must be defined.");
10249
10230
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10250
10231
  url_ = url_.replace(/[?&]$/, "");
10251
10232
  let options_ = {
@@ -10285,7 +10266,7 @@ export class CncSetupClient extends AuthorizedApiBase {
10285
10266
  deleteCncPartDrawing(id, request) {
10286
10267
  let url_ = this.baseUrl + "/cncsetup/parts/{id}/drawing";
10287
10268
  if (id === undefined || id === null)
10288
- throw new globalThis.Error("The parameter 'id' must be defined.");
10269
+ throw new Error("The parameter 'id' must be defined.");
10289
10270
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10290
10271
  url_ = url_.replace(/[?&]$/, "");
10291
10272
  const content_ = JSON.stringify(request);
@@ -10404,7 +10385,7 @@ export class CncSetupClient extends AuthorizedApiBase {
10404
10385
  updateCncMachineOperation(id, request) {
10405
10386
  let url_ = this.baseUrl + "/cncsetup/operations/{id}";
10406
10387
  if (id === undefined || id === null)
10407
- throw new globalThis.Error("The parameter 'id' must be defined.");
10388
+ throw new Error("The parameter 'id' must be defined.");
10408
10389
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10409
10390
  url_ = url_.replace(/[?&]$/, "");
10410
10391
  const content_ = JSON.stringify(request);
@@ -10447,7 +10428,7 @@ export class CncSetupClient extends AuthorizedApiBase {
10447
10428
  getCncMachineOperation(id) {
10448
10429
  let url_ = this.baseUrl + "/cncsetup/operations/{id}";
10449
10430
  if (id === undefined || id === null)
10450
- throw new globalThis.Error("The parameter 'id' must be defined.");
10431
+ throw new Error("The parameter 'id' must be defined.");
10451
10432
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10452
10433
  url_ = url_.replace(/[?&]$/, "");
10453
10434
  let options_ = {
@@ -10487,7 +10468,7 @@ export class CncSetupClient extends AuthorizedApiBase {
10487
10468
  deleteCncMachineOperation(id) {
10488
10469
  let url_ = this.baseUrl + "/cncsetup/operations/{id}";
10489
10470
  if (id === undefined || id === null)
10490
- throw new globalThis.Error("The parameter 'id' must be defined.");
10471
+ throw new Error("The parameter 'id' must be defined.");
10491
10472
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10492
10473
  url_ = url_.replace(/[?&]$/, "");
10493
10474
  let options_ = {
@@ -10610,7 +10591,7 @@ export class CncSetupClient extends AuthorizedApiBase {
10610
10591
  createUploadProgramsInfo(id, request) {
10611
10592
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs";
10612
10593
  if (id === undefined || id === null)
10613
- throw new globalThis.Error("The parameter 'id' must be defined.");
10594
+ throw new Error("The parameter 'id' must be defined.");
10614
10595
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10615
10596
  url_ = url_.replace(/[?&]$/, "");
10616
10597
  const content_ = JSON.stringify(request);
@@ -10657,10 +10638,10 @@ export class CncSetupClient extends AuthorizedApiBase {
10657
10638
  listCncMachineOperationsPrograms(id, filterDeleted) {
10658
10639
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs?";
10659
10640
  if (id === undefined || id === null)
10660
- throw new globalThis.Error("The parameter 'id' must be defined.");
10641
+ throw new Error("The parameter 'id' must be defined.");
10661
10642
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10662
10643
  if (filterDeleted === null)
10663
- throw new globalThis.Error("The parameter 'filterDeleted' cannot be null.");
10644
+ throw new Error("The parameter 'filterDeleted' cannot be null.");
10664
10645
  else if (filterDeleted !== undefined)
10665
10646
  url_ += "filterDeleted=" + encodeURIComponent("" + filterDeleted) + "&";
10666
10647
  url_ = url_.replace(/[?&]$/, "");
@@ -10705,13 +10686,13 @@ export class CncSetupClient extends AuthorizedApiBase {
10705
10686
  listCncMachineOperationsProgramsArchive(id, filename, filterDeleted) {
10706
10687
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs/{filename}/archive?";
10707
10688
  if (id === undefined || id === null)
10708
- throw new globalThis.Error("The parameter 'id' must be defined.");
10689
+ throw new Error("The parameter 'id' must be defined.");
10709
10690
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10710
10691
  if (filename === undefined || filename === null)
10711
- throw new globalThis.Error("The parameter 'filename' must be defined.");
10692
+ throw new Error("The parameter 'filename' must be defined.");
10712
10693
  url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
10713
10694
  if (filterDeleted === null)
10714
- throw new globalThis.Error("The parameter 'filterDeleted' cannot be null.");
10695
+ throw new Error("The parameter 'filterDeleted' cannot be null.");
10715
10696
  else if (filterDeleted !== undefined)
10716
10697
  url_ += "filterDeleted=" + encodeURIComponent("" + filterDeleted) + "&";
10717
10698
  url_ = url_.replace(/[?&]$/, "");
@@ -10756,10 +10737,10 @@ export class CncSetupClient extends AuthorizedApiBase {
10756
10737
  updateCncMachineOperationProgram(id, filename, request) {
10757
10738
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs/{filename}";
10758
10739
  if (id === undefined || id === null)
10759
- throw new globalThis.Error("The parameter 'id' must be defined.");
10740
+ throw new Error("The parameter 'id' must be defined.");
10760
10741
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10761
10742
  if (filename === undefined || filename === null)
10762
- throw new globalThis.Error("The parameter 'filename' must be defined.");
10743
+ throw new Error("The parameter 'filename' must be defined.");
10763
10744
  url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
10764
10745
  url_ = url_.replace(/[?&]$/, "");
10765
10746
  const content_ = JSON.stringify(request);
@@ -10798,10 +10779,10 @@ export class CncSetupClient extends AuthorizedApiBase {
10798
10779
  deleteCncMachineOperationProgram(id, filename) {
10799
10780
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs/{filename}";
10800
10781
  if (id === undefined || id === null)
10801
- throw new globalThis.Error("The parameter 'id' must be defined.");
10782
+ throw new Error("The parameter 'id' must be defined.");
10802
10783
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10803
10784
  if (filename === undefined || filename === null)
10804
- throw new globalThis.Error("The parameter 'filename' must be defined.");
10785
+ throw new Error("The parameter 'filename' must be defined.");
10805
10786
  url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
10806
10787
  url_ = url_.replace(/[?&]$/, "");
10807
10788
  let options_ = {
@@ -10836,13 +10817,13 @@ export class CncSetupClient extends AuthorizedApiBase {
10836
10817
  updateCncMachineOperationProgramVersion(id, filename, versionId, request) {
10837
10818
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs/{filename}/archive/{versionId}";
10838
10819
  if (id === undefined || id === null)
10839
- throw new globalThis.Error("The parameter 'id' must be defined.");
10820
+ throw new Error("The parameter 'id' must be defined.");
10840
10821
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10841
10822
  if (filename === undefined || filename === null)
10842
- throw new globalThis.Error("The parameter 'filename' must be defined.");
10823
+ throw new Error("The parameter 'filename' must be defined.");
10843
10824
  url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
10844
10825
  if (versionId === undefined || versionId === null)
10845
- throw new globalThis.Error("The parameter 'versionId' must be defined.");
10826
+ throw new Error("The parameter 'versionId' must be defined.");
10846
10827
  url_ = url_.replace("{versionId}", encodeURIComponent("" + versionId));
10847
10828
  url_ = url_.replace(/[?&]$/, "");
10848
10829
  const content_ = JSON.stringify(request);
@@ -10881,13 +10862,13 @@ export class CncSetupClient extends AuthorizedApiBase {
10881
10862
  deleteCncMachineOperationProgramVersion(id, filename, versionId) {
10882
10863
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs/{filename}/archive/{versionId}";
10883
10864
  if (id === undefined || id === null)
10884
- throw new globalThis.Error("The parameter 'id' must be defined.");
10865
+ throw new Error("The parameter 'id' must be defined.");
10885
10866
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10886
10867
  if (filename === undefined || filename === null)
10887
- throw new globalThis.Error("The parameter 'filename' must be defined.");
10868
+ throw new Error("The parameter 'filename' must be defined.");
10888
10869
  url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
10889
10870
  if (versionId === undefined || versionId === null)
10890
- throw new globalThis.Error("The parameter 'versionId' must be defined.");
10871
+ throw new Error("The parameter 'versionId' must be defined.");
10891
10872
  url_ = url_.replace("{versionId}", encodeURIComponent("" + versionId));
10892
10873
  url_ = url_.replace(/[?&]$/, "");
10893
10874
  let options_ = {
@@ -10931,7 +10912,7 @@ export class CncSetupClient extends AuthorizedApiBase {
10931
10912
  createUploadAttachmentInfo(id, request) {
10932
10913
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/attachments";
10933
10914
  if (id === undefined || id === null)
10934
- throw new globalThis.Error("The parameter 'id' must be defined.");
10915
+ throw new Error("The parameter 'id' must be defined.");
10935
10916
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10936
10917
  url_ = url_.replace(/[?&]$/, "");
10937
10918
  const content_ = JSON.stringify(request);
@@ -10978,7 +10959,7 @@ export class CncSetupClient extends AuthorizedApiBase {
10978
10959
  listCncMachineOperationsAttachments(id) {
10979
10960
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/attachments";
10980
10961
  if (id === undefined || id === null)
10981
- throw new globalThis.Error("The parameter 'id' must be defined.");
10962
+ throw new Error("The parameter 'id' must be defined.");
10982
10963
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
10983
10964
  url_ = url_.replace(/[?&]$/, "");
10984
10965
  let options_ = {
@@ -11022,7 +11003,7 @@ export class CncSetupClient extends AuthorizedApiBase {
11022
11003
  getCncMachineOperationNotes(id) {
11023
11004
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
11024
11005
  if (id === undefined || id === null)
11025
- throw new globalThis.Error("The parameter 'id' must be defined.");
11006
+ throw new Error("The parameter 'id' must be defined.");
11026
11007
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11027
11008
  url_ = url_.replace(/[?&]$/, "");
11028
11009
  let options_ = {
@@ -11062,7 +11043,7 @@ export class CncSetupClient extends AuthorizedApiBase {
11062
11043
  saveCncMachineOperationNotes(id, request) {
11063
11044
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
11064
11045
  if (id === undefined || id === null)
11065
- throw new globalThis.Error("The parameter 'id' must be defined.");
11046
+ throw new Error("The parameter 'id' must be defined.");
11066
11047
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11067
11048
  url_ = url_.replace(/[?&]$/, "");
11068
11049
  const content_ = JSON.stringify(request);
@@ -11105,10 +11086,10 @@ export class CncSetupClient extends AuthorizedApiBase {
11105
11086
  deleteCncMachineOperationAttachment(operationId, filename) {
11106
11087
  let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/attachments/{filename}";
11107
11088
  if (operationId === undefined || operationId === null)
11108
- throw new globalThis.Error("The parameter 'operationId' must be defined.");
11089
+ throw new Error("The parameter 'operationId' must be defined.");
11109
11090
  url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
11110
11091
  if (filename === undefined || filename === null)
11111
- throw new globalThis.Error("The parameter 'filename' must be defined.");
11092
+ throw new Error("The parameter 'filename' must be defined.");
11112
11093
  url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
11113
11094
  url_ = url_.replace(/[?&]$/, "");
11114
11095
  let options_ = {
@@ -11143,7 +11124,7 @@ export class CncSetupClient extends AuthorizedApiBase {
11143
11124
  listCncMachineOperationsByPart(id) {
11144
11125
  let url_ = this.baseUrl + "/cncsetup/parts/{id}/operations";
11145
11126
  if (id === undefined || id === null)
11146
- throw new globalThis.Error("The parameter 'id' must be defined.");
11127
+ throw new Error("The parameter 'id' must be defined.");
11147
11128
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11148
11129
  url_ = url_.replace(/[?&]$/, "");
11149
11130
  let options_ = {
@@ -11228,7 +11209,7 @@ export class CncSetupClient extends AuthorizedApiBase {
11228
11209
  createCncMachineOperationTool(id, request) {
11229
11210
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/tools";
11230
11211
  if (id === undefined || id === null)
11231
- throw new globalThis.Error("The parameter 'id' must be defined.");
11212
+ throw new Error("The parameter 'id' must be defined.");
11232
11213
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11233
11214
  url_ = url_.replace(/[?&]$/, "");
11234
11215
  const content_ = JSON.stringify(request);
@@ -11271,7 +11252,7 @@ export class CncSetupClient extends AuthorizedApiBase {
11271
11252
  listCncToolByOperation(id) {
11272
11253
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/tools";
11273
11254
  if (id === undefined || id === null)
11274
- throw new globalThis.Error("The parameter 'id' must be defined.");
11255
+ throw new Error("The parameter 'id' must be defined.");
11275
11256
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11276
11257
  url_ = url_.replace(/[?&]$/, "");
11277
11258
  let options_ = {
@@ -11315,10 +11296,10 @@ export class CncSetupClient extends AuthorizedApiBase {
11315
11296
  updateCncMachineOperationTool(operationId, id, request) {
11316
11297
  let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}";
11317
11298
  if (operationId === undefined || operationId === null)
11318
- throw new globalThis.Error("The parameter 'operationId' must be defined.");
11299
+ throw new Error("The parameter 'operationId' must be defined.");
11319
11300
  url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
11320
11301
  if (id === undefined || id === null)
11321
- throw new globalThis.Error("The parameter 'id' must be defined.");
11302
+ throw new Error("The parameter 'id' must be defined.");
11322
11303
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11323
11304
  url_ = url_.replace(/[?&]$/, "");
11324
11305
  const content_ = JSON.stringify(request);
@@ -11361,10 +11342,10 @@ export class CncSetupClient extends AuthorizedApiBase {
11361
11342
  deleteCncMachineOperationTool(operationId, id) {
11362
11343
  let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}";
11363
11344
  if (operationId === undefined || operationId === null)
11364
- throw new globalThis.Error("The parameter 'operationId' must be defined.");
11345
+ throw new Error("The parameter 'operationId' must be defined.");
11365
11346
  url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
11366
11347
  if (id === undefined || id === null)
11367
- throw new globalThis.Error("The parameter 'id' must be defined.");
11348
+ throw new Error("The parameter 'id' must be defined.");
11368
11349
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11369
11350
  url_ = url_.replace(/[?&]$/, "");
11370
11351
  let options_ = {
@@ -11399,10 +11380,10 @@ export class CncSetupClient extends AuthorizedApiBase {
11399
11380
  uploadOperationCncToolImage(operationId, id, request) {
11400
11381
  let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/uploadimage";
11401
11382
  if (operationId === undefined || operationId === null)
11402
- throw new globalThis.Error("The parameter 'operationId' must be defined.");
11383
+ throw new Error("The parameter 'operationId' must be defined.");
11403
11384
  url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
11404
11385
  if (id === undefined || id === null)
11405
- throw new globalThis.Error("The parameter 'id' must be defined.");
11386
+ throw new Error("The parameter 'id' must be defined.");
11406
11387
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11407
11388
  url_ = url_.replace(/[?&]$/, "");
11408
11389
  const content_ = JSON.stringify(request);
@@ -11445,13 +11426,13 @@ export class CncSetupClient extends AuthorizedApiBase {
11445
11426
  deleteCncMachineOperationToolImage(operationId, id, filename) {
11446
11427
  let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/{filename}";
11447
11428
  if (operationId === undefined || operationId === null)
11448
- throw new globalThis.Error("The parameter 'operationId' must be defined.");
11429
+ throw new Error("The parameter 'operationId' must be defined.");
11449
11430
  url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
11450
11431
  if (id === undefined || id === null)
11451
- throw new globalThis.Error("The parameter 'id' must be defined.");
11432
+ throw new Error("The parameter 'id' must be defined.");
11452
11433
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11453
11434
  if (filename === undefined || filename === null)
11454
- throw new globalThis.Error("The parameter 'filename' must be defined.");
11435
+ throw new Error("The parameter 'filename' must be defined.");
11455
11436
  url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
11456
11437
  url_ = url_.replace(/[?&]$/, "");
11457
11438
  let options_ = {
@@ -11486,7 +11467,7 @@ export class CncSetupClient extends AuthorizedApiBase {
11486
11467
  createCncMachineTool(id, request) {
11487
11468
  let url_ = this.baseUrl + "/cncsetup/machines/{id}/tools";
11488
11469
  if (id === undefined || id === null)
11489
- throw new globalThis.Error("The parameter 'id' must be defined.");
11470
+ throw new Error("The parameter 'id' must be defined.");
11490
11471
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11491
11472
  url_ = url_.replace(/[?&]$/, "");
11492
11473
  const content_ = JSON.stringify(request);
@@ -11529,7 +11510,7 @@ export class CncSetupClient extends AuthorizedApiBase {
11529
11510
  listCncToolByCncMachine(id) {
11530
11511
  let url_ = this.baseUrl + "/cncsetup/machines/{id}/tools";
11531
11512
  if (id === undefined || id === null)
11532
- throw new globalThis.Error("The parameter 'id' must be defined.");
11513
+ throw new Error("The parameter 'id' must be defined.");
11533
11514
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11534
11515
  url_ = url_.replace(/[?&]$/, "");
11535
11516
  let options_ = {
@@ -11573,10 +11554,10 @@ export class CncSetupClient extends AuthorizedApiBase {
11573
11554
  updateCncMachineTool(cncMachineId, id, request) {
11574
11555
  let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools/{id}";
11575
11556
  if (cncMachineId === undefined || cncMachineId === null)
11576
- throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
11557
+ throw new Error("The parameter 'cncMachineId' must be defined.");
11577
11558
  url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
11578
11559
  if (id === undefined || id === null)
11579
- throw new globalThis.Error("The parameter 'id' must be defined.");
11560
+ throw new Error("The parameter 'id' must be defined.");
11580
11561
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11581
11562
  url_ = url_.replace(/[?&]$/, "");
11582
11563
  const content_ = JSON.stringify(request);
@@ -11619,10 +11600,10 @@ export class CncSetupClient extends AuthorizedApiBase {
11619
11600
  deleteCncMachineTool(cncMachineId, id) {
11620
11601
  let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools/{id}";
11621
11602
  if (cncMachineId === undefined || cncMachineId === null)
11622
- throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
11603
+ throw new Error("The parameter 'cncMachineId' must be defined.");
11623
11604
  url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
11624
11605
  if (id === undefined || id === null)
11625
- throw new globalThis.Error("The parameter 'id' must be defined.");
11606
+ throw new Error("The parameter 'id' must be defined.");
11626
11607
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11627
11608
  url_ = url_.replace(/[?&]$/, "");
11628
11609
  let options_ = {
@@ -11657,10 +11638,10 @@ export class CncSetupClient extends AuthorizedApiBase {
11657
11638
  uploadCncMachineToolImage(machineId, id, request) {
11658
11639
  let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
11659
11640
  if (machineId === undefined || machineId === null)
11660
- throw new globalThis.Error("The parameter 'machineId' must be defined.");
11641
+ throw new Error("The parameter 'machineId' must be defined.");
11661
11642
  url_ = url_.replace("{machineId}", encodeURIComponent("" + machineId));
11662
11643
  if (id === undefined || id === null)
11663
- throw new globalThis.Error("The parameter 'id' must be defined.");
11644
+ throw new Error("The parameter 'id' must be defined.");
11664
11645
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11665
11646
  url_ = url_.replace(/[?&]$/, "");
11666
11647
  const content_ = JSON.stringify(request);
@@ -11703,13 +11684,13 @@ export class CncSetupClient extends AuthorizedApiBase {
11703
11684
  deleteCncMachineToolImage(machineId, id, filename) {
11704
11685
  let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/{filename}";
11705
11686
  if (machineId === undefined || machineId === null)
11706
- throw new globalThis.Error("The parameter 'machineId' must be defined.");
11687
+ throw new Error("The parameter 'machineId' must be defined.");
11707
11688
  url_ = url_.replace("{machineId}", encodeURIComponent("" + machineId));
11708
11689
  if (id === undefined || id === null)
11709
- throw new globalThis.Error("The parameter 'id' must be defined.");
11690
+ throw new Error("The parameter 'id' must be defined.");
11710
11691
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
11711
11692
  if (filename === undefined || filename === null)
11712
- throw new globalThis.Error("The parameter 'filename' must be defined.");
11693
+ throw new Error("The parameter 'filename' must be defined.");
11713
11694
  url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
11714
11695
  url_ = url_.replace(/[?&]$/, "");
11715
11696
  let options_ = {
@@ -11945,7 +11926,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11945
11926
  getFixture(fixtureId) {
11946
11927
  let url_ = this.baseUrl + "/fixtures/{fixtureId}";
11947
11928
  if (fixtureId === undefined || fixtureId === null)
11948
- throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
11929
+ throw new Error("The parameter 'fixtureId' must be defined.");
11949
11930
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11950
11931
  url_ = url_.replace(/[?&]$/, "");
11951
11932
  let options_ = {
@@ -12105,7 +12086,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
12105
12086
  getFixtureInterfaceSuggestions(input, fixtureType) {
12106
12087
  let url_ = this.baseUrl + "/fixtures/suggestion/interface?";
12107
12088
  if (input === null)
12108
- throw new globalThis.Error("The parameter 'input' cannot be null.");
12089
+ throw new Error("The parameter 'input' cannot be null.");
12109
12090
  else if (input !== undefined)
12110
12091
  url_ += "input=" + encodeURIComponent("" + input) + "&";
12111
12092
  if (fixtureType !== undefined && fixtureType !== null)
@@ -12152,7 +12133,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
12152
12133
  getFixtureLocationSuggestions(input, fixtureType) {
12153
12134
  let url_ = this.baseUrl + "/fixtures/suggestion/location?";
12154
12135
  if (input === null)
12155
- throw new globalThis.Error("The parameter 'input' cannot be null.");
12136
+ throw new Error("The parameter 'input' cannot be null.");
12156
12137
  else if (input !== undefined)
12157
12138
  url_ += "input=" + encodeURIComponent("" + input) + "&";
12158
12139
  if (fixtureType !== undefined && fixtureType !== null)
@@ -12199,7 +12180,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
12199
12180
  listFixtureAttachments(fixtureId) {
12200
12181
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
12201
12182
  if (fixtureId === undefined || fixtureId === null)
12202
- throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
12183
+ throw new Error("The parameter 'fixtureId' must be defined.");
12203
12184
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12204
12185
  url_ = url_.replace(/[?&]$/, "");
12205
12186
  let options_ = {
@@ -12243,7 +12224,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
12243
12224
  uploadFixtureAttachments(fixtureId, attachments) {
12244
12225
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
12245
12226
  if (fixtureId === undefined || fixtureId === null)
12246
- throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
12227
+ throw new Error("The parameter 'fixtureId' must be defined.");
12247
12228
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12248
12229
  url_ = url_.replace(/[?&]$/, "");
12249
12230
  const content_ = JSON.stringify(attachments);
@@ -12290,7 +12271,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
12290
12271
  deleteFixtureAttachments(fixtureId, filenames) {
12291
12272
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
12292
12273
  if (fixtureId === undefined || fixtureId === null)
12293
- throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
12274
+ throw new Error("The parameter 'fixtureId' must be defined.");
12294
12275
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12295
12276
  url_ = url_.replace(/[?&]$/, "");
12296
12277
  const content_ = JSON.stringify(filenames);
@@ -12329,7 +12310,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
12329
12310
  listFixtureImages(fixtureId) {
12330
12311
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
12331
12312
  if (fixtureId === undefined || fixtureId === null)
12332
- throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
12313
+ throw new Error("The parameter 'fixtureId' must be defined.");
12333
12314
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12334
12315
  url_ = url_.replace(/[?&]$/, "");
12335
12316
  let options_ = {
@@ -12373,7 +12354,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
12373
12354
  uploadFixtureImages(fixtureId, attachments) {
12374
12355
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
12375
12356
  if (fixtureId === undefined || fixtureId === null)
12376
- throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
12357
+ throw new Error("The parameter 'fixtureId' must be defined.");
12377
12358
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12378
12359
  url_ = url_.replace(/[?&]$/, "");
12379
12360
  const content_ = JSON.stringify(attachments);
@@ -12420,7 +12401,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
12420
12401
  deleteFixtureImages(fixtureId, filenames) {
12421
12402
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
12422
12403
  if (fixtureId === undefined || fixtureId === null)
12423
- throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
12404
+ throw new Error("The parameter 'fixtureId' must be defined.");
12424
12405
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12425
12406
  url_ = url_.replace(/[?&]$/, "");
12426
12407
  const content_ = JSON.stringify(filenames);
@@ -12459,7 +12440,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
12459
12440
  operationAddFixture(operationId, fixtureIds) {
12460
12441
  let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
12461
12442
  if (operationId === undefined || operationId === null)
12462
- throw new globalThis.Error("The parameter 'operationId' must be defined.");
12443
+ throw new Error("The parameter 'operationId' must be defined.");
12463
12444
  url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
12464
12445
  url_ = url_.replace(/[?&]$/, "");
12465
12446
  const content_ = JSON.stringify(fixtureIds);
@@ -12502,7 +12483,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
12502
12483
  operationRemoveFixture(operationId, fixtureIds) {
12503
12484
  let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
12504
12485
  if (operationId === undefined || operationId === null)
12505
- throw new globalThis.Error("The parameter 'operationId' must be defined.");
12486
+ throw new Error("The parameter 'operationId' must be defined.");
12506
12487
  url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
12507
12488
  url_ = url_.replace(/[?&]$/, "");
12508
12489
  const content_ = JSON.stringify(fixtureIds);
@@ -12743,7 +12724,7 @@ export class AssetsClient extends AuthorizedApiBase {
12743
12724
  if (source !== undefined && source !== null)
12744
12725
  url_ += "source=" + encodeURIComponent("" + source) + "&";
12745
12726
  if (limit === null)
12746
- throw new globalThis.Error("The parameter 'limit' cannot be null.");
12727
+ throw new Error("The parameter 'limit' cannot be null.");
12747
12728
  else if (limit !== undefined)
12748
12729
  url_ += "limit=" + encodeURIComponent("" + limit) + "&";
12749
12730
  if (continuationToken !== undefined && continuationToken !== null)
@@ -12830,7 +12811,7 @@ export class AssetsClient extends AuthorizedApiBase {
12830
12811
  if (description !== undefined && description !== null)
12831
12812
  url_ += "description=" + encodeURIComponent("" + description) + "&";
12832
12813
  if (limit === null)
12833
- throw new globalThis.Error("The parameter 'limit' cannot be null.");
12814
+ throw new Error("The parameter 'limit' cannot be null.");
12834
12815
  else if (limit !== undefined)
12835
12816
  url_ += "limit=" + encodeURIComponent("" + limit) + "&";
12836
12817
  url_ = url_.replace(/[?&]$/, "");
@@ -12875,7 +12856,7 @@ export class AssetsClient extends AuthorizedApiBase {
12875
12856
  getAssetById(id) {
12876
12857
  let url_ = this.baseUrl + "/assets/{id}";
12877
12858
  if (id === undefined || id === null)
12878
- throw new globalThis.Error("The parameter 'id' must be defined.");
12859
+ throw new Error("The parameter 'id' must be defined.");
12879
12860
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
12880
12861
  url_ = url_.replace(/[?&]$/, "");
12881
12862
  let options_ = {
@@ -12915,7 +12896,7 @@ export class AssetsClient extends AuthorizedApiBase {
12915
12896
  updateAsset(id, request) {
12916
12897
  let url_ = this.baseUrl + "/assets/{id}";
12917
12898
  if (id === undefined || id === null)
12918
- throw new globalThis.Error("The parameter 'id' must be defined.");
12899
+ throw new Error("The parameter 'id' must be defined.");
12919
12900
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
12920
12901
  url_ = url_.replace(/[?&]$/, "");
12921
12902
  const content_ = JSON.stringify(request);
@@ -12958,7 +12939,7 @@ export class AssetsClient extends AuthorizedApiBase {
12958
12939
  getAssetStructureById(id) {
12959
12940
  let url_ = this.baseUrl + "/assets/{id}/structure";
12960
12941
  if (id === undefined || id === null)
12961
- throw new globalThis.Error("The parameter 'id' must be defined.");
12942
+ throw new Error("The parameter 'id' must be defined.");
12962
12943
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
12963
12944
  url_ = url_.replace(/[?&]$/, "");
12964
12945
  let options_ = {
@@ -13205,7 +13186,7 @@ export class AlertsClient extends AuthorizedApiBase {
13205
13186
  updateMachineInactivityAlertSubscription(id, request) {
13206
13187
  let url_ = this.baseUrl + "/alerts/machineinactivity/subscriptions/{id}";
13207
13188
  if (id === undefined || id === null)
13208
- throw new globalThis.Error("The parameter 'id' must be defined.");
13189
+ throw new Error("The parameter 'id' must be defined.");
13209
13190
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
13210
13191
  url_ = url_.replace(/[?&]$/, "");
13211
13192
  const content_ = JSON.stringify(request);
@@ -13244,7 +13225,7 @@ export class AlertsClient extends AuthorizedApiBase {
13244
13225
  deleteMachineInactivitySubscription(id) {
13245
13226
  let url_ = this.baseUrl + "/alerts/machineinactivity/subscriptions/{id}";
13246
13227
  if (id === undefined || id === null)
13247
- throw new globalThis.Error("The parameter 'id' must be defined.");
13228
+ throw new Error("The parameter 'id' must be defined.");
13248
13229
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
13249
13230
  url_ = url_.replace(/[?&]$/, "");
13250
13231
  let options_ = {
@@ -13625,7 +13606,7 @@ export class WorkspacesClient extends AuthorizedApiBase {
13625
13606
  getWorkspace(id) {
13626
13607
  let url_ = this.baseUrl + "/workspaces/{id}";
13627
13608
  if (id === undefined || id === null)
13628
- throw new globalThis.Error("The parameter 'id' must be defined.");
13609
+ throw new Error("The parameter 'id' must be defined.");
13629
13610
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
13630
13611
  url_ = url_.replace(/[?&]$/, "");
13631
13612
  let options_ = {
@@ -13665,7 +13646,7 @@ export class WorkspacesClient extends AuthorizedApiBase {
13665
13646
  deleteWorkspace(id) {
13666
13647
  let url_ = this.baseUrl + "/workspaces/{id}";
13667
13648
  if (id === undefined || id === null)
13668
- throw new globalThis.Error("The parameter 'id' must be defined.");
13649
+ throw new Error("The parameter 'id' must be defined.");
13669
13650
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
13670
13651
  url_ = url_.replace(/[?&]$/, "");
13671
13652
  let options_ = {
@@ -13700,7 +13681,7 @@ export class WorkspacesClient extends AuthorizedApiBase {
13700
13681
  updateWorkspace(id, request) {
13701
13682
  let url_ = this.baseUrl + "/workspaces/{id}";
13702
13683
  if (id === undefined || id === null)
13703
- throw new globalThis.Error("The parameter 'id' must be defined.");
13684
+ throw new Error("The parameter 'id' must be defined.");
13704
13685
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
13705
13686
  url_ = url_.replace(/[?&]$/, "");
13706
13687
  const content_ = JSON.stringify(request);
@@ -13743,7 +13724,7 @@ export class WorkspacesClient extends AuthorizedApiBase {
13743
13724
  updateWorkspaceWidgets(id, request) {
13744
13725
  let url_ = this.baseUrl + "/workspaces/{id}/widgets";
13745
13726
  if (id === undefined || id === null)
13746
- throw new globalThis.Error("The parameter 'id' must be defined.");
13727
+ throw new Error("The parameter 'id' must be defined.");
13747
13728
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
13748
13729
  url_ = url_.replace(/[?&]$/, "");
13749
13730
  const content_ = JSON.stringify(request);
@@ -13786,10 +13767,10 @@ export class WorkspacesClient extends AuthorizedApiBase {
13786
13767
  updateWorkspaceWidgetSettings(id, widgetId, request) {
13787
13768
  let url_ = this.baseUrl + "/workspaces/{id}/{widgetId}/settings";
13788
13769
  if (id === undefined || id === null)
13789
- throw new globalThis.Error("The parameter 'id' must be defined.");
13770
+ throw new Error("The parameter 'id' must be defined.");
13790
13771
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
13791
13772
  if (widgetId === undefined || widgetId === null)
13792
- throw new globalThis.Error("The parameter 'widgetId' must be defined.");
13773
+ throw new Error("The parameter 'widgetId' must be defined.");
13793
13774
  url_ = url_.replace("{widgetId}", encodeURIComponent("" + widgetId));
13794
13775
  url_ = url_.replace(/[?&]$/, "");
13795
13776
  const content_ = JSON.stringify(request);
@@ -13832,10 +13813,10 @@ export class WorkspacesClient extends AuthorizedApiBase {
13832
13813
  deleteWorkspaceWidget(id, widgetId) {
13833
13814
  let url_ = this.baseUrl + "/workspaces/{id}/{widgetId}";
13834
13815
  if (id === undefined || id === null)
13835
- throw new globalThis.Error("The parameter 'id' must be defined.");
13816
+ throw new Error("The parameter 'id' must be defined.");
13836
13817
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
13837
13818
  if (widgetId === undefined || widgetId === null)
13838
- throw new globalThis.Error("The parameter 'widgetId' must be defined.");
13819
+ throw new Error("The parameter 'widgetId' must be defined.");
13839
13820
  url_ = url_.replace("{widgetId}", encodeURIComponent("" + widgetId));
13840
13821
  url_ = url_.replace(/[?&]$/, "");
13841
13822
  let options_ = {
@@ -13923,7 +13904,7 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
13923
13904
  getWorkspaceTemplate(id) {
13924
13905
  let url_ = this.baseUrl + "/workspaces/templates/{id}";
13925
13906
  if (id === undefined || id === null)
13926
- throw new globalThis.Error("The parameter 'id' must be defined.");
13907
+ throw new Error("The parameter 'id' must be defined.");
13927
13908
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
13928
13909
  url_ = url_.replace(/[?&]$/, "");
13929
13910
  let options_ = {
@@ -13963,7 +13944,7 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
13963
13944
  deleteWorkspaceTemplate(id) {
13964
13945
  let url_ = this.baseUrl + "/workspaces/templates/{id}";
13965
13946
  if (id === undefined || id === null)
13966
- throw new globalThis.Error("The parameter 'id' must be defined.");
13947
+ throw new Error("The parameter 'id' must be defined.");
13967
13948
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
13968
13949
  url_ = url_.replace(/[?&]$/, "");
13969
13950
  let options_ = {
@@ -13998,7 +13979,7 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
13998
13979
  updateWorkspaceTemplate(id, request) {
13999
13980
  let url_ = this.baseUrl + "/workspaces/templates/{id}";
14000
13981
  if (id === undefined || id === null)
14001
- throw new globalThis.Error("The parameter 'id' must be defined.");
13982
+ throw new Error("The parameter 'id' must be defined.");
14002
13983
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
14003
13984
  url_ = url_.replace(/[?&]$/, "");
14004
13985
  const content_ = JSON.stringify(request);
@@ -14041,7 +14022,7 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
14041
14022
  updateWorkspaceTemplateWidgets(id, request) {
14042
14023
  let url_ = this.baseUrl + "/workspaces/templates/{id}/widgets";
14043
14024
  if (id === undefined || id === null)
14044
- throw new globalThis.Error("The parameter 'id' must be defined.");
14025
+ throw new Error("The parameter 'id' must be defined.");
14045
14026
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
14046
14027
  url_ = url_.replace(/[?&]$/, "");
14047
14028
  const content_ = JSON.stringify(request);
@@ -14084,10 +14065,10 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
14084
14065
  updateWorkspaceTemplateWidgetSettings(id, widgetId, request) {
14085
14066
  let url_ = this.baseUrl + "/workspaces/templates/{id}/{widgetId}/settings";
14086
14067
  if (id === undefined || id === null)
14087
- throw new globalThis.Error("The parameter 'id' must be defined.");
14068
+ throw new Error("The parameter 'id' must be defined.");
14088
14069
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
14089
14070
  if (widgetId === undefined || widgetId === null)
14090
- throw new globalThis.Error("The parameter 'widgetId' must be defined.");
14071
+ throw new Error("The parameter 'widgetId' must be defined.");
14091
14072
  url_ = url_.replace("{widgetId}", encodeURIComponent("" + widgetId));
14092
14073
  url_ = url_.replace(/[?&]$/, "");
14093
14074
  const content_ = JSON.stringify(request);
@@ -14130,10 +14111,10 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
14130
14111
  deleteWorkspaceTemplateWidget(id, widgetId) {
14131
14112
  let url_ = this.baseUrl + "/workspaces/templates/{id}/{widgetId}";
14132
14113
  if (id === undefined || id === null)
14133
- throw new globalThis.Error("The parameter 'id' must be defined.");
14114
+ throw new Error("The parameter 'id' must be defined.");
14134
14115
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
14135
14116
  if (widgetId === undefined || widgetId === null)
14136
- throw new globalThis.Error("The parameter 'widgetId' must be defined.");
14117
+ throw new Error("The parameter 'widgetId' must be defined.");
14137
14118
  url_ = url_.replace("{widgetId}", encodeURIComponent("" + widgetId));
14138
14119
  url_ = url_.replace(/[?&]$/, "");
14139
14120
  let options_ = {
@@ -14310,7 +14291,7 @@ export class MoveBookingClient extends AuthorizedApiBase {
14310
14291
  getBooking(bookingId) {
14311
14292
  let url_ = this.baseUrl + "/move/booking/{bookingId}";
14312
14293
  if (bookingId === undefined || bookingId === null)
14313
- throw new globalThis.Error("The parameter 'bookingId' must be defined.");
14294
+ throw new Error("The parameter 'bookingId' must be defined.");
14314
14295
  url_ = url_.replace("{bookingId}", encodeURIComponent("" + bookingId));
14315
14296
  url_ = url_.replace(/[?&]$/, "");
14316
14297
  let options_ = {
@@ -14350,7 +14331,7 @@ export class MoveBookingClient extends AuthorizedApiBase {
14350
14331
  getParcelBooking(parcelId) {
14351
14332
  let url_ = this.baseUrl + "/move/booking/parcel/{parcelId}";
14352
14333
  if (parcelId === undefined || parcelId === null)
14353
- throw new globalThis.Error("The parameter 'parcelId' must be defined.");
14334
+ throw new Error("The parameter 'parcelId' must be defined.");
14354
14335
  url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
14355
14336
  url_ = url_.replace(/[?&]$/, "");
14356
14337
  let options_ = {
@@ -14603,47 +14584,6 @@ export class MoveBookingClient extends AuthorizedApiBase {
14603
14584
  }
14604
14585
  return Promise.resolve(null);
14605
14586
  }
14606
- exportBookings(includeTracking) {
14607
- let url_ = this.baseUrl + "/move/booking/export?";
14608
- if (includeTracking === null)
14609
- throw new globalThis.Error("The parameter 'includeTracking' cannot be null.");
14610
- else if (includeTracking !== undefined)
14611
- url_ += "includeTracking=" + encodeURIComponent("" + includeTracking) + "&";
14612
- url_ = url_.replace(/[?&]$/, "");
14613
- let options_ = {
14614
- method: "POST",
14615
- headers: {
14616
- "Accept": "application/json"
14617
- }
14618
- };
14619
- return this.transformOptions(options_).then(transformedOptions_ => {
14620
- return this.http.fetch(url_, transformedOptions_);
14621
- }).then((_response) => {
14622
- return this.processExportBookings(_response);
14623
- });
14624
- }
14625
- processExportBookings(response) {
14626
- const status = response.status;
14627
- let _headers = {};
14628
- if (response.headers && response.headers.forEach) {
14629
- response.headers.forEach((v, k) => _headers[k] = v);
14630
- }
14631
- ;
14632
- if (status === 200) {
14633
- return response.text().then((_responseText) => {
14634
- let result200 = null;
14635
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14636
- result200 = DownloadDto.fromJS(resultData200);
14637
- return result200;
14638
- });
14639
- }
14640
- else if (status !== 200 && status !== 204) {
14641
- return response.text().then((_responseText) => {
14642
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14643
- });
14644
- }
14645
- return Promise.resolve(null);
14646
- }
14647
14587
  }
14648
14588
  export class MoveLocationsClient extends AuthorizedApiBase {
14649
14589
  constructor(configuration, baseUrl, http) {
@@ -14745,7 +14685,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
14745
14685
  if (locationProfiles !== undefined && locationProfiles !== null)
14746
14686
  locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
14747
14687
  if (count === null)
14748
- throw new globalThis.Error("The parameter 'count' cannot be null.");
14688
+ throw new Error("The parameter 'count' cannot be null.");
14749
14689
  else if (count !== undefined)
14750
14690
  url_ += "count=" + encodeURIComponent("" + count) + "&";
14751
14691
  url_ = url_.replace(/[?&]$/, "");
@@ -14790,7 +14730,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
14790
14730
  suggestionsParcel(parcelId) {
14791
14731
  let url_ = this.baseUrl + "/move/locations/suggestionsparcel?";
14792
14732
  if (parcelId === null)
14793
- throw new globalThis.Error("The parameter 'parcelId' cannot be null.");
14733
+ throw new Error("The parameter 'parcelId' cannot be null.");
14794
14734
  else if (parcelId !== undefined)
14795
14735
  parcelId && parcelId.forEach(item => { url_ += "parcelId=" + encodeURIComponent("" + item) + "&"; });
14796
14736
  url_ = url_.replace(/[?&]$/, "");
@@ -14831,7 +14771,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
14831
14771
  suggestionsGeneral(suggestionType) {
14832
14772
  let url_ = this.baseUrl + "/move/locations/suggestionsgeneral?";
14833
14773
  if (suggestionType === null)
14834
- throw new globalThis.Error("The parameter 'suggestionType' cannot be null.");
14774
+ throw new Error("The parameter 'suggestionType' cannot be null.");
14835
14775
  else if (suggestionType !== undefined)
14836
14776
  url_ += "suggestionType=" + encodeURIComponent("" + suggestionType) + "&";
14837
14777
  url_ = url_.replace(/[?&]$/, "");
@@ -14872,7 +14812,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
14872
14812
  suggestionsMaterial(parcelId, operation) {
14873
14813
  let url_ = this.baseUrl + "/move/locations/suggestionsmaterial?";
14874
14814
  if (parcelId === null)
14875
- throw new globalThis.Error("The parameter 'parcelId' cannot be null.");
14815
+ throw new Error("The parameter 'parcelId' cannot be null.");
14876
14816
  else if (parcelId !== undefined)
14877
14817
  url_ += "parcelId=" + encodeURIComponent("" + parcelId) + "&";
14878
14818
  if (operation !== undefined && operation !== null)
@@ -15008,7 +14948,7 @@ export class MoveMaterialsClient extends AuthorizedApiBase {
15008
14948
  removeMaterial(materialId) {
15009
14949
  let url_ = this.baseUrl + "/move/materials/{materialId}";
15010
14950
  if (materialId === undefined || materialId === null)
15011
- throw new globalThis.Error("The parameter 'materialId' must be defined.");
14951
+ throw new Error("The parameter 'materialId' must be defined.");
15012
14952
  url_ = url_.replace("{materialId}", encodeURIComponent("" + materialId));
15013
14953
  url_ = url_.replace(/[?&]$/, "");
15014
14954
  let options_ = {
@@ -15043,7 +14983,7 @@ export class MoveMaterialsClient extends AuthorizedApiBase {
15043
14983
  updateMaterial(materialId, update) {
15044
14984
  let url_ = this.baseUrl + "/move/materials/{materialId}";
15045
14985
  if (materialId === undefined || materialId === null)
15046
- throw new globalThis.Error("The parameter 'materialId' must be defined.");
14986
+ throw new Error("The parameter 'materialId' must be defined.");
15047
14987
  url_ = url_.replace("{materialId}", encodeURIComponent("" + materialId));
15048
14988
  url_ = url_.replace(/[?&]$/, "");
15049
14989
  const content_ = JSON.stringify(update);
@@ -15348,10 +15288,10 @@ export class MoveTrackingClient extends AuthorizedApiBase {
15348
15288
  getTrackingHistory(trackingId, includeActiveBookings) {
15349
15289
  let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
15350
15290
  if (trackingId === undefined || trackingId === null)
15351
- throw new globalThis.Error("The parameter 'trackingId' must be defined.");
15291
+ throw new Error("The parameter 'trackingId' must be defined.");
15352
15292
  url_ = url_.replace("{trackingId}", encodeURIComponent("" + trackingId));
15353
15293
  if (includeActiveBookings === null)
15354
- throw new globalThis.Error("The parameter 'includeActiveBookings' cannot be null.");
15294
+ throw new Error("The parameter 'includeActiveBookings' cannot be null.");
15355
15295
  else if (includeActiveBookings !== undefined)
15356
15296
  url_ += "includeActiveBookings=" + encodeURIComponent("" + includeActiveBookings) + "&";
15357
15297
  url_ = url_.replace(/[?&]$/, "");
@@ -15392,10 +15332,10 @@ export class MoveTrackingClient extends AuthorizedApiBase {
15392
15332
  getParcelTrackingHistory(parcelId, includeActiveBookings) {
15393
15333
  let url_ = this.baseUrl + "/move/tracking/parcel/{parcelId}?";
15394
15334
  if (parcelId === undefined || parcelId === null)
15395
- throw new globalThis.Error("The parameter 'parcelId' must be defined.");
15335
+ throw new Error("The parameter 'parcelId' must be defined.");
15396
15336
  url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
15397
15337
  if (includeActiveBookings === null)
15398
- throw new globalThis.Error("The parameter 'includeActiveBookings' cannot be null.");
15338
+ throw new Error("The parameter 'includeActiveBookings' cannot be null.");
15399
15339
  else if (includeActiveBookings !== undefined)
15400
15340
  url_ += "includeActiveBookings=" + encodeURIComponent("" + includeActiveBookings) + "&";
15401
15341
  url_ = url_.replace(/[?&]$/, "");
@@ -15568,7 +15508,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
15568
15508
  deleteTrackingHistory(trackingId) {
15569
15509
  let url_ = this.baseUrl + "/move/tracking/history/{trackingId}";
15570
15510
  if (trackingId === undefined || trackingId === null)
15571
- throw new globalThis.Error("The parameter 'trackingId' must be defined.");
15511
+ throw new Error("The parameter 'trackingId' must be defined.");
15572
15512
  url_ = url_.replace("{trackingId}", encodeURIComponent("" + trackingId));
15573
15513
  url_ = url_.replace(/[?&]$/, "");
15574
15514
  let options_ = {
@@ -15600,43 +15540,6 @@ export class MoveTrackingClient extends AuthorizedApiBase {
15600
15540
  }
15601
15541
  return Promise.resolve(null);
15602
15542
  }
15603
- exportParcels() {
15604
- let url_ = this.baseUrl + "/move/tracking/export";
15605
- url_ = url_.replace(/[?&]$/, "");
15606
- let options_ = {
15607
- method: "POST",
15608
- headers: {
15609
- "Accept": "application/json"
15610
- }
15611
- };
15612
- return this.transformOptions(options_).then(transformedOptions_ => {
15613
- return this.http.fetch(url_, transformedOptions_);
15614
- }).then((_response) => {
15615
- return this.processExportParcels(_response);
15616
- });
15617
- }
15618
- processExportParcels(response) {
15619
- const status = response.status;
15620
- let _headers = {};
15621
- if (response.headers && response.headers.forEach) {
15622
- response.headers.forEach((v, k) => _headers[k] = v);
15623
- }
15624
- ;
15625
- if (status === 200) {
15626
- return response.text().then((_responseText) => {
15627
- let result200 = null;
15628
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15629
- result200 = DownloadDto.fromJS(resultData200);
15630
- return result200;
15631
- });
15632
- }
15633
- else if (status !== 200 && status !== 204) {
15634
- return response.text().then((_responseText) => {
15635
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15636
- });
15637
- }
15638
- return Promise.resolve(null);
15639
- }
15640
15543
  }
15641
15544
  export class ParcelCategoryClient extends AuthorizedApiBase {
15642
15545
  constructor(configuration, baseUrl, http) {
@@ -15766,7 +15669,7 @@ export class ParcelCategoryClient extends AuthorizedApiBase {
15766
15669
  assign(kind, labels) {
15767
15670
  let url_ = this.baseUrl + "/move/settings/parcelcategories/assign/{kind}";
15768
15671
  if (kind === undefined || kind === null)
15769
- throw new globalThis.Error("The parameter 'kind' must be defined.");
15672
+ throw new Error("The parameter 'kind' must be defined.");
15770
15673
  url_ = url_.replace("{kind}", encodeURIComponent("" + kind));
15771
15674
  url_ = url_.replace(/[?&]$/, "");
15772
15675
  const content_ = JSON.stringify(labels);
@@ -15814,7 +15717,7 @@ export class ParcelCategoryClient extends AuthorizedApiBase {
15814
15717
  delete(label) {
15815
15718
  let url_ = this.baseUrl + "/move/settings/parcelcategories/{label}";
15816
15719
  if (label === undefined || label === null)
15817
- throw new globalThis.Error("The parameter 'label' must be defined.");
15720
+ throw new Error("The parameter 'label' must be defined.");
15818
15721
  url_ = url_.replace("{label}", encodeURIComponent("" + label));
15819
15722
  url_ = url_.replace(/[?&]$/, "");
15820
15723
  let options_ = {
@@ -15849,10 +15752,10 @@ export class ParcelCategoryClient extends AuthorizedApiBase {
15849
15752
  removeAssignment(kind, label) {
15850
15753
  let url_ = this.baseUrl + "/move/settings/parcelcategories/assign/{kind}/{label}";
15851
15754
  if (kind === undefined || kind === null)
15852
- throw new globalThis.Error("The parameter 'kind' must be defined.");
15755
+ throw new Error("The parameter 'kind' must be defined.");
15853
15756
  url_ = url_.replace("{kind}", encodeURIComponent("" + kind));
15854
15757
  if (label === undefined || label === null)
15855
- throw new globalThis.Error("The parameter 'label' must be defined.");
15758
+ throw new Error("The parameter 'label' must be defined.");
15856
15759
  url_ = url_.replace("{label}", encodeURIComponent("" + label));
15857
15760
  url_ = url_.replace(/[?&]$/, "");
15858
15761
  let options_ = {
@@ -16002,10 +15905,10 @@ export class MesDocumentsClient extends AuthorizedApiBase {
16002
15905
  getDocument(drawingNumber, id) {
16003
15906
  let url_ = this.baseUrl + "/mes/documents/drawings/{drawingNumber}/{id}";
16004
15907
  if (drawingNumber === undefined || drawingNumber === null)
16005
- throw new globalThis.Error("The parameter 'drawingNumber' must be defined.");
15908
+ throw new Error("The parameter 'drawingNumber' must be defined.");
16006
15909
  url_ = url_.replace("{drawingNumber}", encodeURIComponent("" + drawingNumber));
16007
15910
  if (id === undefined || id === null)
16008
- throw new globalThis.Error("The parameter 'id' must be defined.");
15911
+ throw new Error("The parameter 'id' must be defined.");
16009
15912
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16010
15913
  url_ = url_.replace(/[?&]$/, "");
16011
15914
  let options_ = {
@@ -16053,7 +15956,7 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
16053
15956
  getEngineeringChangeOrders(partNumber) {
16054
15957
  let url_ = this.baseUrl + "/mes/engineering-change-orders?";
16055
15958
  if (partNumber === null)
16056
- throw new globalThis.Error("The parameter 'partNumber' cannot be null.");
15959
+ throw new Error("The parameter 'partNumber' cannot be null.");
16057
15960
  else if (partNumber !== undefined)
16058
15961
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
16059
15962
  url_ = url_.replace(/[?&]$/, "");
@@ -16098,7 +16001,7 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
16098
16001
  getEngineeringChangeOrderDetails(partNumber) {
16099
16002
  let url_ = this.baseUrl + "/mes/engineering-change-order-details?";
16100
16003
  if (partNumber === null)
16101
- throw new globalThis.Error("The parameter 'partNumber' cannot be null.");
16004
+ throw new Error("The parameter 'partNumber' cannot be null.");
16102
16005
  else if (partNumber !== undefined)
16103
16006
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
16104
16007
  url_ = url_.replace(/[?&]$/, "");
@@ -16271,7 +16174,7 @@ export class MesLinksClient extends AuthorizedApiBase {
16271
16174
  updateMesLink(id, request) {
16272
16175
  let url_ = this.baseUrl + "/mes/links/{id}";
16273
16176
  if (id === undefined || id === null)
16274
- throw new globalThis.Error("The parameter 'id' must be defined.");
16177
+ throw new Error("The parameter 'id' must be defined.");
16275
16178
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16276
16179
  url_ = url_.replace(/[?&]$/, "");
16277
16180
  const content_ = JSON.stringify(request);
@@ -16319,7 +16222,7 @@ export class MesLinksClient extends AuthorizedApiBase {
16319
16222
  deleteMesLink(id) {
16320
16223
  let url_ = this.baseUrl + "/mes/links/{id}";
16321
16224
  if (id === undefined || id === null)
16322
- throw new globalThis.Error("The parameter 'id' must be defined.");
16225
+ throw new Error("The parameter 'id' must be defined.");
16323
16226
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16324
16227
  url_ = url_.replace(/[?&]$/, "");
16325
16228
  let options_ = {
@@ -16410,7 +16313,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
16410
16313
  getProductionOrder(id) {
16411
16314
  let url_ = this.baseUrl + "/mes/productionorders/{id}";
16412
16315
  if (id === undefined || id === null)
16413
- throw new globalThis.Error("The parameter 'id' must be defined.");
16316
+ throw new Error("The parameter 'id' must be defined.");
16414
16317
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16415
16318
  url_ = url_.replace(/[?&]$/, "");
16416
16319
  let options_ = {
@@ -16450,7 +16353,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
16450
16353
  getProductionOrderBom(id, operation) {
16451
16354
  let url_ = this.baseUrl + "/mes/productionorders/{id}/bom?";
16452
16355
  if (id === undefined || id === null)
16453
- throw new globalThis.Error("The parameter 'id' must be defined.");
16356
+ throw new Error("The parameter 'id' must be defined.");
16454
16357
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16455
16358
  if (operation !== undefined && operation !== null)
16456
16359
  url_ += "operation=" + encodeURIComponent("" + operation) + "&";
@@ -16496,10 +16399,10 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
16496
16399
  getProductionOrderPickListSuggestion(id, operation) {
16497
16400
  let url_ = this.baseUrl + "/mes/productionorders/{id}/picklist-suggestion?";
16498
16401
  if (id === undefined || id === null)
16499
- throw new globalThis.Error("The parameter 'id' must be defined.");
16402
+ throw new Error("The parameter 'id' must be defined.");
16500
16403
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16501
16404
  if (operation === null)
16502
- throw new globalThis.Error("The parameter 'operation' cannot be null.");
16405
+ throw new Error("The parameter 'operation' cannot be null.");
16503
16406
  else if (operation !== undefined)
16504
16407
  url_ += "operation=" + encodeURIComponent("" + operation) + "&";
16505
16408
  url_ = url_.replace(/[?&]$/, "");
@@ -16544,7 +16447,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
16544
16447
  getProductionOrderConsumptions(id) {
16545
16448
  let url_ = this.baseUrl + "/mes/productionorders/{id}/consumptions";
16546
16449
  if (id === undefined || id === null)
16547
- throw new globalThis.Error("The parameter 'id' must be defined.");
16450
+ throw new Error("The parameter 'id' must be defined.");
16548
16451
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16549
16452
  url_ = url_.replace(/[?&]$/, "");
16550
16453
  let options_ = {
@@ -16584,7 +16487,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
16584
16487
  checkProductionOrderForOpenNonConformances(id) {
16585
16488
  let url_ = this.baseUrl + "/mes/productionorders/{id}/any-nonconformances";
16586
16489
  if (id === undefined || id === null)
16587
- throw new globalThis.Error("The parameter 'id' must be defined.");
16490
+ throw new Error("The parameter 'id' must be defined.");
16588
16491
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16589
16492
  url_ = url_.replace(/[?&]$/, "");
16590
16493
  let options_ = {
@@ -16624,10 +16527,10 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
16624
16527
  getProductionOrderOpenNonConformances(id, onlyOpen) {
16625
16528
  let url_ = this.baseUrl + "/mes/productionorders/{id}/nonconformances?";
16626
16529
  if (id === undefined || id === null)
16627
- throw new globalThis.Error("The parameter 'id' must be defined.");
16530
+ throw new Error("The parameter 'id' must be defined.");
16628
16531
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16629
16532
  if (onlyOpen === null)
16630
- throw new globalThis.Error("The parameter 'onlyOpen' cannot be null.");
16533
+ throw new Error("The parameter 'onlyOpen' cannot be null.");
16631
16534
  else if (onlyOpen !== undefined)
16632
16535
  url_ += "onlyOpen=" + encodeURIComponent("" + onlyOpen) + "&";
16633
16536
  url_ = url_.replace(/[?&]$/, "");
@@ -16672,7 +16575,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
16672
16575
  getProductionOrderBomNonConformances(id) {
16673
16576
  let url_ = this.baseUrl + "/mes/productionorders/{id}/bom/nonconformances";
16674
16577
  if (id === undefined || id === null)
16675
- throw new globalThis.Error("The parameter 'id' must be defined.");
16578
+ throw new Error("The parameter 'id' must be defined.");
16676
16579
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16677
16580
  url_ = url_.replace(/[?&]$/, "");
16678
16581
  let options_ = {
@@ -16716,10 +16619,10 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
16716
16619
  postMaterialPickList(id, operationNumber, request) {
16717
16620
  let url_ = this.baseUrl + "/mes/productionorders/{id}/operations/{operationNumber}/picklist";
16718
16621
  if (id === undefined || id === null)
16719
- throw new globalThis.Error("The parameter 'id' must be defined.");
16622
+ throw new Error("The parameter 'id' must be defined.");
16720
16623
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16721
16624
  if (operationNumber === undefined || operationNumber === null)
16722
- throw new globalThis.Error("The parameter 'operationNumber' must be defined.");
16625
+ throw new Error("The parameter 'operationNumber' must be defined.");
16723
16626
  url_ = url_.replace("{operationNumber}", encodeURIComponent("" + operationNumber));
16724
16627
  url_ = url_.replace(/[?&]$/, "");
16725
16628
  const content_ = JSON.stringify(request);
@@ -16762,7 +16665,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
16762
16665
  listProductionOrderActivities(id, operation) {
16763
16666
  let url_ = this.baseUrl + "/mes/productionorders/{id}/activities?";
16764
16667
  if (id === undefined || id === null)
16765
- throw new globalThis.Error("The parameter 'id' must be defined.");
16668
+ throw new Error("The parameter 'id' must be defined.");
16766
16669
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16767
16670
  if (operation !== undefined && operation !== null)
16768
16671
  url_ += "operation=" + encodeURIComponent("" + operation) + "&";
@@ -16822,7 +16725,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
16822
16725
  if (departmentNumber !== undefined && departmentNumber !== null)
16823
16726
  url_ += "departmentNumber=" + encodeURIComponent("" + departmentNumber) + "&";
16824
16727
  if (pageSize === null)
16825
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
16728
+ throw new Error("The parameter 'pageSize' cannot be null.");
16826
16729
  else if (pageSize !== undefined)
16827
16730
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
16828
16731
  if (continuationToken !== undefined && continuationToken !== null)
@@ -17201,10 +17104,10 @@ export class MesPurchaseOrderClient extends AuthorizedApiBase {
17201
17104
  getPurchaseOrderDetails(purchaseOrderNumber, productionOrderNumber) {
17202
17105
  let url_ = this.baseUrl + "/mes/purchase-orders/{purchaseOrderNumber}?";
17203
17106
  if (purchaseOrderNumber === undefined || purchaseOrderNumber === null)
17204
- throw new globalThis.Error("The parameter 'purchaseOrderNumber' must be defined.");
17107
+ throw new Error("The parameter 'purchaseOrderNumber' must be defined.");
17205
17108
  url_ = url_.replace("{purchaseOrderNumber}", encodeURIComponent("" + purchaseOrderNumber));
17206
17109
  if (productionOrderNumber === null)
17207
- throw new globalThis.Error("The parameter 'productionOrderNumber' cannot be null.");
17110
+ throw new Error("The parameter 'productionOrderNumber' cannot be null.");
17208
17111
  else if (productionOrderNumber !== undefined)
17209
17112
  url_ += "productionOrderNumber=" + encodeURIComponent("" + productionOrderNumber) + "&";
17210
17113
  url_ = url_.replace(/[?&]$/, "");
@@ -17253,7 +17156,7 @@ export class MesResourceClient extends AuthorizedApiBase {
17253
17156
  listResourceGroups(includeResources) {
17254
17157
  let url_ = this.baseUrl + "/mes/resourcegroups?";
17255
17158
  if (includeResources === null)
17256
- throw new globalThis.Error("The parameter 'includeResources' cannot be null.");
17159
+ throw new Error("The parameter 'includeResources' cannot be null.");
17257
17160
  else if (includeResources !== undefined)
17258
17161
  url_ += "includeResources=" + encodeURIComponent("" + includeResources) + "&";
17259
17162
  url_ = url_.replace(/[?&]$/, "");
@@ -17298,7 +17201,7 @@ export class MesResourceClient extends AuthorizedApiBase {
17298
17201
  listResourceGroupResources(id) {
17299
17202
  let url_ = this.baseUrl + "/mes/resourcegroups/{id}/resources";
17300
17203
  if (id === undefined || id === null)
17301
- throw new globalThis.Error("The parameter 'id' must be defined.");
17204
+ throw new Error("The parameter 'id' must be defined.");
17302
17205
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17303
17206
  url_ = url_.replace(/[?&]$/, "");
17304
17207
  let options_ = {
@@ -17513,10 +17416,10 @@ export class ElectricalClient extends AuthorizedApiBase {
17513
17416
  deleteElectricalIotConfig(typeId, id) {
17514
17417
  let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
17515
17418
  if (typeId === undefined || typeId === null)
17516
- throw new globalThis.Error("The parameter 'typeId' must be defined.");
17419
+ throw new Error("The parameter 'typeId' must be defined.");
17517
17420
  url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
17518
17421
  if (id === undefined || id === null)
17519
- throw new globalThis.Error("The parameter 'id' must be defined.");
17422
+ throw new Error("The parameter 'id' must be defined.");
17520
17423
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17521
17424
  url_ = url_.replace(/[?&]$/, "");
17522
17425
  let options_ = {
@@ -17681,10 +17584,10 @@ export class WeldingClient extends AuthorizedApiBase {
17681
17584
  deleteWeldingIotConfig(typeId, id) {
17682
17585
  let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
17683
17586
  if (typeId === undefined || typeId === null)
17684
- throw new globalThis.Error("The parameter 'typeId' must be defined.");
17587
+ throw new Error("The parameter 'typeId' must be defined.");
17685
17588
  url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
17686
17589
  if (id === undefined || id === null)
17687
- throw new globalThis.Error("The parameter 'id' must be defined.");
17590
+ throw new Error("The parameter 'id' must be defined.");
17688
17591
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17689
17592
  url_ = url_.replace(/[?&]$/, "");
17690
17593
  let options_ = {
@@ -17727,7 +17630,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17727
17630
  listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
17728
17631
  let url_ = this.baseUrl + "/measurementforms/schemas?";
17729
17632
  if (pageSize === null)
17730
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
17633
+ throw new Error("The parameter 'pageSize' cannot be null.");
17731
17634
  else if (pageSize !== undefined)
17732
17635
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
17733
17636
  if (customerId !== undefined && customerId !== null)
@@ -17866,7 +17769,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17866
17769
  getMeasurementFormSchema(id) {
17867
17770
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17868
17771
  if (id === undefined || id === null)
17869
- throw new globalThis.Error("The parameter 'id' must be defined.");
17772
+ throw new Error("The parameter 'id' must be defined.");
17870
17773
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17871
17774
  url_ = url_.replace(/[?&]$/, "");
17872
17775
  let options_ = {
@@ -17906,7 +17809,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17906
17809
  updateMeasurementFormSchema(id, request) {
17907
17810
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17908
17811
  if (id === undefined || id === null)
17909
- throw new globalThis.Error("The parameter 'id' must be defined.");
17812
+ throw new Error("The parameter 'id' must be defined.");
17910
17813
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17911
17814
  url_ = url_.replace(/[?&]$/, "");
17912
17815
  const content_ = JSON.stringify(request);
@@ -17949,7 +17852,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17949
17852
  deleteMeasurementForm(id) {
17950
17853
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17951
17854
  if (id === undefined || id === null)
17952
- throw new globalThis.Error("The parameter 'id' must be defined.");
17855
+ throw new Error("The parameter 'id' must be defined.");
17953
17856
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17954
17857
  url_ = url_.replace(/[?&]$/, "");
17955
17858
  let options_ = {
@@ -17984,7 +17887,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17984
17887
  getArchivedMeasurementFormSchema(id) {
17985
17888
  let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
17986
17889
  if (id === undefined || id === null)
17987
- throw new globalThis.Error("The parameter 'id' must be defined.");
17890
+ throw new Error("The parameter 'id' must be defined.");
17988
17891
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17989
17892
  url_ = url_.replace(/[?&]$/, "");
17990
17893
  let options_ = {
@@ -18024,7 +17927,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18024
17927
  copyMeasurementFormSchema(id, request) {
18025
17928
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
18026
17929
  if (id === undefined || id === null)
18027
- throw new globalThis.Error("The parameter 'id' must be defined.");
17930
+ throw new Error("The parameter 'id' must be defined.");
18028
17931
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18029
17932
  url_ = url_.replace(/[?&]$/, "");
18030
17933
  const content_ = JSON.stringify(request);
@@ -18067,7 +17970,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18067
17970
  updateSchemaGroupedElements(id, request) {
18068
17971
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
18069
17972
  if (id === undefined || id === null)
18070
- throw new globalThis.Error("The parameter 'id' must be defined.");
17973
+ throw new Error("The parameter 'id' must be defined.");
18071
17974
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18072
17975
  url_ = url_.replace(/[?&]$/, "");
18073
17976
  const content_ = JSON.stringify(request);
@@ -18110,7 +18013,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18110
18013
  updateSchemaRow(id, request) {
18111
18014
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/updaterow";
18112
18015
  if (id === undefined || id === null)
18113
- throw new globalThis.Error("The parameter 'id' must be defined.");
18016
+ throw new Error("The parameter 'id' must be defined.");
18114
18017
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18115
18018
  url_ = url_.replace(/[?&]$/, "");
18116
18019
  const content_ = JSON.stringify(request);
@@ -18153,7 +18056,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18153
18056
  deleteSchemaRows(id, request) {
18154
18057
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterows";
18155
18058
  if (id === undefined || id === null)
18156
- throw new globalThis.Error("The parameter 'id' must be defined.");
18059
+ throw new Error("The parameter 'id' must be defined.");
18157
18060
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18158
18061
  url_ = url_.replace(/[?&]$/, "");
18159
18062
  const content_ = JSON.stringify(request);
@@ -18196,7 +18099,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18196
18099
  uploadMeasurementImage(id, request) {
18197
18100
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
18198
18101
  if (id === undefined || id === null)
18199
- throw new globalThis.Error("The parameter 'id' must be defined.");
18102
+ throw new Error("The parameter 'id' must be defined.");
18200
18103
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18201
18104
  url_ = url_.replace(/[?&]$/, "");
18202
18105
  const content_ = JSON.stringify(request);
@@ -18239,7 +18142,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18239
18142
  updateSchemaSettings(id, request) {
18240
18143
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/schemasettings";
18241
18144
  if (id === undefined || id === null)
18242
- throw new globalThis.Error("The parameter 'id' must be defined.");
18145
+ throw new Error("The parameter 'id' must be defined.");
18243
18146
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18244
18147
  url_ = url_.replace(/[?&]$/, "");
18245
18148
  const content_ = JSON.stringify(request);
@@ -18282,7 +18185,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18282
18185
  uploadSchemaDrawing(id, request) {
18283
18186
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
18284
18187
  if (id === undefined || id === null)
18285
- throw new globalThis.Error("The parameter 'id' must be defined.");
18188
+ throw new Error("The parameter 'id' must be defined.");
18286
18189
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18287
18190
  url_ = url_.replace(/[?&]$/, "");
18288
18191
  const content_ = JSON.stringify(request);
@@ -18325,7 +18228,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18325
18228
  uploadSchemaAttachment(id, request) {
18326
18229
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadattachment";
18327
18230
  if (id === undefined || id === null)
18328
- throw new globalThis.Error("The parameter 'id' must be defined.");
18231
+ throw new Error("The parameter 'id' must be defined.");
18329
18232
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18330
18233
  url_ = url_.replace(/[?&]$/, "");
18331
18234
  const content_ = JSON.stringify(request);
@@ -18368,7 +18271,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18368
18271
  getMeasurementFormImportStatus(id) {
18369
18272
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
18370
18273
  if (id === undefined || id === null)
18371
- throw new globalThis.Error("The parameter 'id' must be defined.");
18274
+ throw new Error("The parameter 'id' must be defined.");
18372
18275
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18373
18276
  url_ = url_.replace(/[?&]$/, "");
18374
18277
  let options_ = {
@@ -18408,10 +18311,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18408
18311
  listLinkableMeasurementFormSchemas(schemaId, pageSize, filter, continuationToken) {
18409
18312
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
18410
18313
  if (schemaId === undefined || schemaId === null)
18411
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
18314
+ throw new Error("The parameter 'schemaId' must be defined.");
18412
18315
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18413
18316
  if (pageSize === null)
18414
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
18317
+ throw new Error("The parameter 'pageSize' cannot be null.");
18415
18318
  else if (pageSize !== undefined)
18416
18319
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
18417
18320
  if (filter !== undefined && filter !== null)
@@ -18496,7 +18399,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18496
18399
  createMeasurementFormSchemaLink(schemaId, request) {
18497
18400
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link";
18498
18401
  if (schemaId === undefined || schemaId === null)
18499
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
18402
+ throw new Error("The parameter 'schemaId' must be defined.");
18500
18403
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18501
18404
  url_ = url_.replace(/[?&]$/, "");
18502
18405
  const content_ = JSON.stringify(request);
@@ -18539,10 +18442,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18539
18442
  deleteMeasurementFormSchemaLink(schemaId, linkedSchemaId) {
18540
18443
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link/{linkedSchemaId}";
18541
18444
  if (schemaId === undefined || schemaId === null)
18542
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
18445
+ throw new Error("The parameter 'schemaId' must be defined.");
18543
18446
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18544
18447
  if (linkedSchemaId === undefined || linkedSchemaId === null)
18545
- throw new globalThis.Error("The parameter 'linkedSchemaId' must be defined.");
18448
+ throw new Error("The parameter 'linkedSchemaId' must be defined.");
18546
18449
  url_ = url_.replace("{linkedSchemaId}", encodeURIComponent("" + linkedSchemaId));
18547
18450
  url_ = url_.replace(/[?&]$/, "");
18548
18451
  let options_ = {
@@ -18577,7 +18480,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18577
18480
  releaseSchema(schemaId) {
18578
18481
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/release";
18579
18482
  if (schemaId === undefined || schemaId === null)
18580
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
18483
+ throw new Error("The parameter 'schemaId' must be defined.");
18581
18484
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18582
18485
  url_ = url_.replace(/[?&]$/, "");
18583
18486
  let options_ = {
@@ -18617,7 +18520,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18617
18520
  revokeSchema(schemaId) {
18618
18521
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/revoke";
18619
18522
  if (schemaId === undefined || schemaId === null)
18620
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
18523
+ throw new Error("The parameter 'schemaId' must be defined.");
18621
18524
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18622
18525
  url_ = url_.replace(/[?&]$/, "");
18623
18526
  let options_ = {
@@ -18657,7 +18560,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18657
18560
  createDraftVersion(schemaId) {
18658
18561
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/draftversion";
18659
18562
  if (schemaId === undefined || schemaId === null)
18660
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
18563
+ throw new Error("The parameter 'schemaId' must be defined.");
18661
18564
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18662
18565
  url_ = url_.replace(/[?&]$/, "");
18663
18566
  let options_ = {
@@ -18697,7 +18600,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18697
18600
  isMappingFromPreviousVersionRequired(schemaId) {
18698
18601
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/mappingfrompreviousversionrequired";
18699
18602
  if (schemaId === undefined || schemaId === null)
18700
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
18603
+ throw new Error("The parameter 'schemaId' must be defined.");
18701
18604
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
18702
18605
  url_ = url_.replace(/[?&]$/, "");
18703
18606
  let options_ = {
@@ -18823,7 +18726,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
18823
18726
  getMeasurementFormCustomerSettings(id) {
18824
18727
  let url_ = this.baseUrl + "/measurementforms/schemas/settings/customers/{id}";
18825
18728
  if (id === undefined || id === null)
18826
- throw new globalThis.Error("The parameter 'id' must be defined.");
18729
+ throw new Error("The parameter 'id' must be defined.");
18827
18730
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18828
18731
  url_ = url_.replace(/[?&]$/, "");
18829
18732
  let options_ = {
@@ -19005,7 +18908,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19005
18908
  getMeasurementFormMapping(id) {
19006
18909
  let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}";
19007
18910
  if (id === undefined || id === null)
19008
- throw new globalThis.Error("The parameter 'id' must be defined.");
18911
+ throw new Error("The parameter 'id' must be defined.");
19009
18912
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19010
18913
  url_ = url_.replace(/[?&]$/, "");
19011
18914
  let options_ = {
@@ -19045,7 +18948,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19045
18948
  deleteMeasurementFormMapping(id) {
19046
18949
  let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}";
19047
18950
  if (id === undefined || id === null)
19048
- throw new globalThis.Error("The parameter 'id' must be defined.");
18951
+ throw new Error("The parameter 'id' must be defined.");
19049
18952
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19050
18953
  url_ = url_.replace(/[?&]$/, "");
19051
18954
  let options_ = {
@@ -19083,7 +18986,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19083
18986
  setMeasurementFormMappingBalloonsV2(id, request) {
19084
18987
  let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
19085
18988
  if (id === undefined || id === null)
19086
- throw new globalThis.Error("The parameter 'id' must be defined.");
18989
+ throw new Error("The parameter 'id' must be defined.");
19087
18990
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19088
18991
  url_ = url_.replace(/[?&]$/, "");
19089
18992
  const content_ = JSON.stringify(request);
@@ -19126,7 +19029,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19126
19029
  setMeasurementFormReferencesMapping(mappingId, request) {
19127
19030
  let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{mappingId}/references";
19128
19031
  if (mappingId === undefined || mappingId === null)
19129
- throw new globalThis.Error("The parameter 'mappingId' must be defined.");
19032
+ throw new Error("The parameter 'mappingId' must be defined.");
19130
19033
  url_ = url_.replace("{mappingId}", encodeURIComponent("" + mappingId));
19131
19034
  url_ = url_.replace(/[?&]$/, "");
19132
19035
  const content_ = JSON.stringify(request);
@@ -19210,7 +19113,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19210
19113
  listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken, onlyWithoutDrawingUrl) {
19211
19114
  let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
19212
19115
  if (pageSize === null)
19213
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
19116
+ throw new Error("The parameter 'pageSize' cannot be null.");
19214
19117
  else if (pageSize !== undefined)
19215
19118
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
19216
19119
  if (customerId !== undefined && customerId !== null)
@@ -19311,7 +19214,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19311
19214
  setMeasurementFormNeedUser(id, request) {
19312
19215
  let url_ = this.baseUrl + "/measurementforms/schemas/needs/{id}/assign";
19313
19216
  if (id === undefined || id === null)
19314
- throw new globalThis.Error("The parameter 'id' must be defined.");
19217
+ throw new Error("The parameter 'id' must be defined.");
19315
19218
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19316
19219
  url_ = url_.replace(/[?&]$/, "");
19317
19220
  const content_ = JSON.stringify(request);
@@ -19350,7 +19253,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19350
19253
  setMeasurementFormNeedAsNotNeeded(id, request) {
19351
19254
  let url_ = this.baseUrl + "/measurementforms/schemas/needs/{id}/notneeded";
19352
19255
  if (id === undefined || id === null)
19353
- throw new globalThis.Error("The parameter 'id' must be defined.");
19256
+ throw new Error("The parameter 'id' must be defined.");
19354
19257
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19355
19258
  url_ = url_.replace(/[?&]$/, "");
19356
19259
  const content_ = JSON.stringify(request);
@@ -19393,7 +19296,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19393
19296
  createMeasurementFormSchemaFromNeed(id) {
19394
19297
  let url_ = this.baseUrl + "/measurementforms/schemas/needs/{id}/schema";
19395
19298
  if (id === undefined || id === null)
19396
- throw new globalThis.Error("The parameter 'id' must be defined.");
19299
+ throw new Error("The parameter 'id' must be defined.");
19397
19300
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19398
19301
  url_ = url_.replace(/[?&]$/, "");
19399
19302
  let options_ = {
@@ -19433,7 +19336,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19433
19336
  uploadNeedDrawing(id, request) {
19434
19337
  let url_ = this.baseUrl + "/measurementforms/schemas/needs/{id}/uploaddrawing";
19435
19338
  if (id === undefined || id === null)
19436
- throw new globalThis.Error("The parameter 'id' must be defined.");
19339
+ throw new Error("The parameter 'id' must be defined.");
19437
19340
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19438
19341
  url_ = url_.replace(/[?&]$/, "");
19439
19342
  const content_ = JSON.stringify(request);
@@ -19476,7 +19379,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19476
19379
  listMeasurmentFormSchemasNotNeeded(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
19477
19380
  let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded?";
19478
19381
  if (pageSize === null)
19479
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
19382
+ throw new Error("The parameter 'pageSize' cannot be null.");
19480
19383
  else if (pageSize !== undefined)
19481
19384
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
19482
19385
  if (customerId !== undefined && customerId !== null)
@@ -19575,7 +19478,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19575
19478
  deleteMeasurmentFormSchemasNotNeeded(id) {
19576
19479
  let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded/{id}";
19577
19480
  if (id === undefined || id === null)
19578
- throw new globalThis.Error("The parameter 'id' must be defined.");
19481
+ throw new Error("The parameter 'id' must be defined.");
19579
19482
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19580
19483
  url_ = url_.replace(/[?&]$/, "");
19581
19484
  let options_ = {
@@ -19691,7 +19594,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19691
19594
  deleteResourceTypeForNeedsGenerator(resourceType) {
19692
19595
  let url_ = this.baseUrl + "/measurementforms/schemas/resourcetypes/{resourceType}";
19693
19596
  if (resourceType === undefined || resourceType === null)
19694
- throw new globalThis.Error("The parameter 'resourceType' must be defined.");
19597
+ throw new Error("The parameter 'resourceType' must be defined.");
19695
19598
  url_ = url_.replace("{resourceType}", encodeURIComponent("" + resourceType));
19696
19599
  url_ = url_.replace(/[?&]$/, "");
19697
19600
  let options_ = {
@@ -19767,7 +19670,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19767
19670
  listMeasurementFormInstanceSchemaFeedback(pageSize, search, continuationToken) {
19768
19671
  let url_ = this.baseUrl + "/measurementforms/schemas/feedback?";
19769
19672
  if (pageSize === null)
19770
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
19673
+ throw new Error("The parameter 'pageSize' cannot be null.");
19771
19674
  else if (pageSize !== undefined)
19772
19675
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
19773
19676
  if (search !== undefined && search !== null)
@@ -19852,7 +19755,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19852
19755
  getMeasurementFormInstanceSchemaFeedback(id) {
19853
19756
  let url_ = this.baseUrl + "/measurementforms/schemas/feedback/{id}";
19854
19757
  if (id === undefined || id === null)
19855
- throw new globalThis.Error("The parameter 'id' must be defined.");
19758
+ throw new Error("The parameter 'id' must be defined.");
19856
19759
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19857
19760
  url_ = url_.replace(/[?&]$/, "");
19858
19761
  let options_ = {
@@ -19892,7 +19795,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19892
19795
  deleteMeasurementFormInstanceSchemaFeedback(id) {
19893
19796
  let url_ = this.baseUrl + "/measurementforms/schemas/feedback/{id}";
19894
19797
  if (id === undefined || id === null)
19895
- throw new globalThis.Error("The parameter 'id' must be defined.");
19798
+ throw new Error("The parameter 'id' must be defined.");
19896
19799
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19897
19800
  url_ = url_.replace(/[?&]$/, "");
19898
19801
  let options_ = {
@@ -19927,7 +19830,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19927
19830
  setMeasurementFormInstanceSchemaFeedbackUser(id, request) {
19928
19831
  let url_ = this.baseUrl + "/measurementforms/schemas/feedback/{id}/assign";
19929
19832
  if (id === undefined || id === null)
19930
- throw new globalThis.Error("The parameter 'id' must be defined.");
19833
+ throw new Error("The parameter 'id' must be defined.");
19931
19834
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
19932
19835
  url_ = url_.replace(/[?&]$/, "");
19933
19836
  const content_ = JSON.stringify(request);
@@ -19966,7 +19869,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
19966
19869
  listMeasurmentFormSchemasWithHistory(pageSize, customerId, partNumber, partRevision, drawing, drawingRevision, version, continuationToken) {
19967
19870
  let url_ = this.baseUrl + "/measurementforms/schemas/importsearch?";
19968
19871
  if (pageSize === null)
19969
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
19872
+ throw new Error("The parameter 'pageSize' cannot be null.");
19970
19873
  else if (pageSize !== undefined)
19971
19874
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
19972
19875
  if (customerId !== undefined && customerId !== null)
@@ -20146,7 +20049,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
20146
20049
  getMeasurementFormCustomerSettings(id) {
20147
20050
  let url_ = this.baseUrl + "/measurementforms/settings/customers/{id}";
20148
20051
  if (id === undefined || id === null)
20149
- throw new globalThis.Error("The parameter 'id' must be defined.");
20052
+ throw new Error("The parameter 'id' must be defined.");
20150
20053
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20151
20054
  url_ = url_.replace(/[?&]$/, "");
20152
20055
  let options_ = {
@@ -20234,7 +20137,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20234
20137
  listMeasurementForms(pageSize, search, continuationToken, tenantId, inactive, includeInactiveSupplierAccess) {
20235
20138
  let url_ = this.baseUrl + "/measurementforms/instances?";
20236
20139
  if (pageSize === null)
20237
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
20140
+ throw new Error("The parameter 'pageSize' cannot be null.");
20238
20141
  else if (pageSize !== undefined)
20239
20142
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
20240
20143
  if (search !== undefined && search !== null)
@@ -20325,7 +20228,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20325
20228
  listMeasurementFormsByStatus(status, statusChangedSince, onlyWithReports, pageSize, search, continuationToken) {
20326
20229
  let url_ = this.baseUrl + "/measurementforms/instances/bystatus?";
20327
20230
  if (status === null)
20328
- throw new globalThis.Error("The parameter 'status' cannot be null.");
20231
+ throw new Error("The parameter 'status' cannot be null.");
20329
20232
  else if (status !== undefined)
20330
20233
  url_ += "status=" + encodeURIComponent("" + status) + "&";
20331
20234
  if (statusChangedSince !== undefined && statusChangedSince !== null)
@@ -20333,7 +20236,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20333
20236
  if (onlyWithReports !== undefined && onlyWithReports !== null)
20334
20237
  url_ += "onlyWithReports=" + encodeURIComponent("" + onlyWithReports) + "&";
20335
20238
  if (pageSize === null)
20336
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
20239
+ throw new Error("The parameter 'pageSize' cannot be null.");
20337
20240
  else if (pageSize !== undefined)
20338
20241
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
20339
20242
  if (search !== undefined && search !== null)
@@ -20415,46 +20318,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20415
20318
  }
20416
20319
  return Promise.resolve(null);
20417
20320
  }
20418
- deleteInstancesBulk(request) {
20419
- let url_ = this.baseUrl + "/measurementforms/instances/bulkdelete";
20420
- url_ = url_.replace(/[?&]$/, "");
20421
- const content_ = JSON.stringify(request);
20422
- let options_ = {
20423
- body: content_,
20424
- method: "DELETE",
20425
- headers: {
20426
- "Content-Type": "application/json",
20427
- }
20428
- };
20429
- return this.transformOptions(options_).then(transformedOptions_ => {
20430
- return this.http.fetch(url_, transformedOptions_);
20431
- }).then((_response) => {
20432
- return this.processDeleteInstancesBulk(_response);
20433
- });
20434
- }
20435
- processDeleteInstancesBulk(response) {
20436
- const status = response.status;
20437
- let _headers = {};
20438
- if (response.headers && response.headers.forEach) {
20439
- response.headers.forEach((v, k) => _headers[k] = v);
20440
- }
20441
- ;
20442
- if (status === 204) {
20443
- return response.text().then((_responseText) => {
20444
- return;
20445
- });
20446
- }
20447
- else if (status !== 200 && status !== 204) {
20448
- return response.text().then((_responseText) => {
20449
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20450
- });
20451
- }
20452
- return Promise.resolve(null);
20453
- }
20454
20321
  getMeasurementFormInstance(id, tenantId) {
20455
20322
  let url_ = this.baseUrl + "/measurementforms/instances/{id}?";
20456
20323
  if (id === undefined || id === null)
20457
- throw new globalThis.Error("The parameter 'id' must be defined.");
20324
+ throw new Error("The parameter 'id' must be defined.");
20458
20325
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20459
20326
  if (tenantId !== undefined && tenantId !== null)
20460
20327
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -20496,7 +20363,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20496
20363
  createMeasurementFormInstance(id) {
20497
20364
  let url_ = this.baseUrl + "/measurementforms/instances/{id}";
20498
20365
  if (id === undefined || id === null)
20499
- throw new globalThis.Error("The parameter 'id' must be defined.");
20366
+ throw new Error("The parameter 'id' must be defined.");
20500
20367
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20501
20368
  url_ = url_.replace(/[?&]$/, "");
20502
20369
  let options_ = {
@@ -20536,7 +20403,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20536
20403
  updateMeasurementFormInstance(id, request) {
20537
20404
  let url_ = this.baseUrl + "/measurementforms/instances/{id}";
20538
20405
  if (id === undefined || id === null)
20539
- throw new globalThis.Error("The parameter 'id' must be defined.");
20406
+ throw new Error("The parameter 'id' must be defined.");
20540
20407
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20541
20408
  url_ = url_.replace(/[?&]$/, "");
20542
20409
  const content_ = JSON.stringify(request);
@@ -20579,7 +20446,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20579
20446
  listMeasurementFormInstanceFeedback(id) {
20580
20447
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/feedback";
20581
20448
  if (id === undefined || id === null)
20582
- throw new globalThis.Error("The parameter 'id' must be defined.");
20449
+ throw new Error("The parameter 'id' must be defined.");
20583
20450
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20584
20451
  url_ = url_.replace(/[?&]$/, "");
20585
20452
  let options_ = {
@@ -20623,7 +20490,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20623
20490
  createMeasurementFormInstance2(id, request) {
20624
20491
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
20625
20492
  if (id === undefined || id === null)
20626
- throw new globalThis.Error("The parameter 'id' must be defined.");
20493
+ throw new Error("The parameter 'id' must be defined.");
20627
20494
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20628
20495
  url_ = url_.replace(/[?&]$/, "");
20629
20496
  const content_ = JSON.stringify(request);
@@ -20666,7 +20533,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20666
20533
  completeMeasurementFormInstance(id, tenantId) {
20667
20534
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/complete?";
20668
20535
  if (id === undefined || id === null)
20669
- throw new globalThis.Error("The parameter 'id' must be defined.");
20536
+ throw new Error("The parameter 'id' must be defined.");
20670
20537
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20671
20538
  if (tenantId !== undefined && tenantId !== null)
20672
20539
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -20708,7 +20575,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20708
20575
  reactivateMeasurementFormInstance(id) {
20709
20576
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
20710
20577
  if (id === undefined || id === null)
20711
- throw new globalThis.Error("The parameter 'id' must be defined.");
20578
+ throw new Error("The parameter 'id' must be defined.");
20712
20579
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20713
20580
  url_ = url_.replace(/[?&]$/, "");
20714
20581
  let options_ = {
@@ -20748,7 +20615,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20748
20615
  approveMeasurementFormInstance(id) {
20749
20616
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
20750
20617
  if (id === undefined || id === null)
20751
- throw new globalThis.Error("The parameter 'id' must be defined.");
20618
+ throw new Error("The parameter 'id' must be defined.");
20752
20619
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20753
20620
  url_ = url_.replace(/[?&]$/, "");
20754
20621
  let options_ = {
@@ -20788,7 +20655,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20788
20655
  disapproveMeasurementFormInstance(id) {
20789
20656
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/disapprove";
20790
20657
  if (id === undefined || id === null)
20791
- throw new globalThis.Error("The parameter 'id' must be defined.");
20658
+ throw new Error("The parameter 'id' must be defined.");
20792
20659
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20793
20660
  url_ = url_.replace(/[?&]$/, "");
20794
20661
  let options_ = {
@@ -20828,7 +20695,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20828
20695
  cancelMeasurementFormInstance(id) {
20829
20696
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/cancel";
20830
20697
  if (id === undefined || id === null)
20831
- throw new globalThis.Error("The parameter 'id' must be defined.");
20698
+ throw new Error("The parameter 'id' must be defined.");
20832
20699
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20833
20700
  url_ = url_.replace(/[?&]$/, "");
20834
20701
  let options_ = {
@@ -20868,10 +20735,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20868
20735
  getMeasurementFormInstanceSchema(id, schemaId, serialNumber, tenantId) {
20869
20736
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
20870
20737
  if (id === undefined || id === null)
20871
- throw new globalThis.Error("The parameter 'id' must be defined.");
20738
+ throw new Error("The parameter 'id' must be defined.");
20872
20739
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20873
20740
  if (schemaId === undefined || schemaId === null)
20874
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
20741
+ throw new Error("The parameter 'schemaId' must be defined.");
20875
20742
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
20876
20743
  if (serialNumber !== undefined && serialNumber !== null)
20877
20744
  url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
@@ -20915,7 +20782,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20915
20782
  getWorkorderMeasurementFormProgress(id, tenantId) {
20916
20783
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
20917
20784
  if (id === undefined || id === null)
20918
- throw new globalThis.Error("The parameter 'id' must be defined.");
20785
+ throw new Error("The parameter 'id' must be defined.");
20919
20786
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20920
20787
  if (tenantId !== undefined && tenantId !== null)
20921
20788
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -20957,7 +20824,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20957
20824
  getAuditLog(id, tenantId, schemaId, serialNumber, elementId) {
20958
20825
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
20959
20826
  if (id === undefined || id === null)
20960
- throw new globalThis.Error("The parameter 'id' must be defined.");
20827
+ throw new Error("The parameter 'id' must be defined.");
20961
20828
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
20962
20829
  if (tenantId !== undefined && tenantId !== null)
20963
20830
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -21050,7 +20917,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21050
20917
  saveValue(id, tenantId, request) {
21051
20918
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/value?";
21052
20919
  if (id === undefined || id === null)
21053
- throw new globalThis.Error("The parameter 'id' must be defined.");
20920
+ throw new Error("The parameter 'id' must be defined.");
21054
20921
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21055
20922
  if (tenantId !== undefined && tenantId !== null)
21056
20923
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -21095,7 +20962,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21095
20962
  saveTool(id, tenantId, request) {
21096
20963
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/tool?";
21097
20964
  if (id === undefined || id === null)
21098
- throw new globalThis.Error("The parameter 'id' must be defined.");
20965
+ throw new Error("The parameter 'id' must be defined.");
21099
20966
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21100
20967
  if (tenantId !== undefined && tenantId !== null)
21101
20968
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -21140,7 +21007,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21140
21007
  saveComment(id, tenantId, request) {
21141
21008
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/comment?";
21142
21009
  if (id === undefined || id === null)
21143
- throw new globalThis.Error("The parameter 'id' must be defined.");
21010
+ throw new Error("The parameter 'id' must be defined.");
21144
21011
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21145
21012
  if (tenantId !== undefined && tenantId !== null)
21146
21013
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -21181,7 +21048,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21181
21048
  batchInsertValues(id, tenantId, request) {
21182
21049
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/batchvalues?";
21183
21050
  if (id === undefined || id === null)
21184
- throw new globalThis.Error("The parameter 'id' must be defined.");
21051
+ throw new Error("The parameter 'id' must be defined.");
21185
21052
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21186
21053
  if (tenantId !== undefined && tenantId !== null)
21187
21054
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -21226,10 +21093,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21226
21093
  saveMeasurementFormInstanceSchemaComment(id, schemaId, tenantId, request) {
21227
21094
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/comment?";
21228
21095
  if (id === undefined || id === null)
21229
- throw new globalThis.Error("The parameter 'id' must be defined.");
21096
+ throw new Error("The parameter 'id' must be defined.");
21230
21097
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21231
21098
  if (schemaId === undefined || schemaId === null)
21232
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
21099
+ throw new Error("The parameter 'schemaId' must be defined.");
21233
21100
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
21234
21101
  if (tenantId !== undefined && tenantId !== null)
21235
21102
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -21270,10 +21137,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21270
21137
  createMeasurementFormInstanceSchemaFeedback(id, schemaId, tenantId, request) {
21271
21138
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/feedback?";
21272
21139
  if (id === undefined || id === null)
21273
- throw new globalThis.Error("The parameter 'id' must be defined.");
21140
+ throw new Error("The parameter 'id' must be defined.");
21274
21141
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21275
21142
  if (schemaId === undefined || schemaId === null)
21276
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
21143
+ throw new Error("The parameter 'schemaId' must be defined.");
21277
21144
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
21278
21145
  if (tenantId !== undefined && tenantId !== null)
21279
21146
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -21318,7 +21185,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21318
21185
  listSupplierMeasurementFormInstances(supplierId) {
21319
21186
  let url_ = this.baseUrl + "/measurementforms/instances/suppliers/{supplierId}";
21320
21187
  if (supplierId === undefined || supplierId === null)
21321
- throw new globalThis.Error("The parameter 'supplierId' must be defined.");
21188
+ throw new Error("The parameter 'supplierId' must be defined.");
21322
21189
  url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
21323
21190
  url_ = url_.replace(/[?&]$/, "");
21324
21191
  let options_ = {
@@ -21362,10 +21229,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21362
21229
  upsertSupplierToMeasurmentFormInstance(id, supplierId, request) {
21363
21230
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/suppliers/{supplierId}";
21364
21231
  if (id === undefined || id === null)
21365
- throw new globalThis.Error("The parameter 'id' must be defined.");
21232
+ throw new Error("The parameter 'id' must be defined.");
21366
21233
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21367
21234
  if (supplierId === undefined || supplierId === null)
21368
- throw new globalThis.Error("The parameter 'supplierId' must be defined.");
21235
+ throw new Error("The parameter 'supplierId' must be defined.");
21369
21236
  url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
21370
21237
  url_ = url_.replace(/[?&]$/, "");
21371
21238
  const content_ = JSON.stringify(request);
@@ -21404,10 +21271,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21404
21271
  removeSupplierFromMeasurmentFormInstance(id, supplierId) {
21405
21272
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/suppliers/{supplierId}";
21406
21273
  if (id === undefined || id === null)
21407
- throw new globalThis.Error("The parameter 'id' must be defined.");
21274
+ throw new Error("The parameter 'id' must be defined.");
21408
21275
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21409
21276
  if (supplierId === undefined || supplierId === null)
21410
- throw new globalThis.Error("The parameter 'supplierId' must be defined.");
21277
+ throw new Error("The parameter 'supplierId' must be defined.");
21411
21278
  url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
21412
21279
  url_ = url_.replace(/[?&]$/, "");
21413
21280
  let options_ = {
@@ -21445,7 +21312,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21445
21312
  exportDimensionReportV2(id, request) {
21446
21313
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
21447
21314
  if (id === undefined || id === null)
21448
- throw new globalThis.Error("The parameter 'id' must be defined.");
21315
+ throw new Error("The parameter 'id' must be defined.");
21449
21316
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21450
21317
  url_ = url_.replace(/[?&]$/, "");
21451
21318
  const content_ = JSON.stringify(request);
@@ -21488,7 +21355,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21488
21355
  exportDimensionReport(id, request) {
21489
21356
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
21490
21357
  if (id === undefined || id === null)
21491
- throw new globalThis.Error("The parameter 'id' must be defined.");
21358
+ throw new Error("The parameter 'id' must be defined.");
21492
21359
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21493
21360
  url_ = url_.replace(/[?&]$/, "");
21494
21361
  const content_ = JSON.stringify(request);
@@ -21531,7 +21398,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21531
21398
  exportDimensionReportValues(id) {
21532
21399
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
21533
21400
  if (id === undefined || id === null)
21534
- throw new globalThis.Error("The parameter 'id' must be defined.");
21401
+ throw new Error("The parameter 'id' must be defined.");
21535
21402
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21536
21403
  url_ = url_.replace(/[?&]$/, "");
21537
21404
  let options_ = {
@@ -21571,13 +21438,13 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21571
21438
  toggleSchemaInstanceElementDocumentedExternallyOverride(id, schemaId, elementId, tenantId) {
21572
21439
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements/{elementId}/toggle-override-documented-externally?";
21573
21440
  if (id === undefined || id === null)
21574
- throw new globalThis.Error("The parameter 'id' must be defined.");
21441
+ throw new Error("The parameter 'id' must be defined.");
21575
21442
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21576
21443
  if (schemaId === undefined || schemaId === null)
21577
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
21444
+ throw new Error("The parameter 'schemaId' must be defined.");
21578
21445
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
21579
21446
  if (elementId === undefined || elementId === null)
21580
- throw new globalThis.Error("The parameter 'elementId' must be defined.");
21447
+ throw new Error("The parameter 'elementId' must be defined.");
21581
21448
  url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
21582
21449
  if (tenantId !== undefined && tenantId !== null)
21583
21450
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
@@ -21716,7 +21583,7 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
21716
21583
  upsertCustomerOrder(id, request) {
21717
21584
  let url_ = this.baseUrl + "/erp/customerorders/{id}";
21718
21585
  if (id === undefined || id === null)
21719
- throw new globalThis.Error("The parameter 'id' must be defined.");
21586
+ throw new Error("The parameter 'id' must be defined.");
21720
21587
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21721
21588
  url_ = url_.replace(/[?&]$/, "");
21722
21589
  const content_ = JSON.stringify(request);
@@ -21755,7 +21622,7 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
21755
21622
  getCustomerOrder(id) {
21756
21623
  let url_ = this.baseUrl + "/erp/customerorders/{id}";
21757
21624
  if (id === undefined || id === null)
21758
- throw new globalThis.Error("The parameter 'id' must be defined.");
21625
+ throw new Error("The parameter 'id' must be defined.");
21759
21626
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21760
21627
  url_ = url_.replace(/[?&]$/, "");
21761
21628
  let options_ = {
@@ -21801,10 +21668,10 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
21801
21668
  upsertCustomerOrderLine(id, line, orderLine) {
21802
21669
  let url_ = this.baseUrl + "/erp/customerorders/{id}/orderlines/{line}";
21803
21670
  if (id === undefined || id === null)
21804
- throw new globalThis.Error("The parameter 'id' must be defined.");
21671
+ throw new Error("The parameter 'id' must be defined.");
21805
21672
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21806
21673
  if (line === undefined || line === null)
21807
- throw new globalThis.Error("The parameter 'line' must be defined.");
21674
+ throw new Error("The parameter 'line' must be defined.");
21808
21675
  url_ = url_.replace("{line}", encodeURIComponent("" + line));
21809
21676
  url_ = url_.replace(/[?&]$/, "");
21810
21677
  const content_ = JSON.stringify(orderLine);
@@ -21858,7 +21725,7 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
21858
21725
  listCustomerOrders(pageSize, filter, continuationToken) {
21859
21726
  let url_ = this.baseUrl + "/erp/customerorders?";
21860
21727
  if (pageSize === null)
21861
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
21728
+ throw new Error("The parameter 'pageSize' cannot be null.");
21862
21729
  else if (pageSize !== undefined)
21863
21730
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
21864
21731
  if (filter !== undefined && filter !== null)
@@ -21943,7 +21810,7 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
21943
21810
  listCustomerOrderLines(id) {
21944
21811
  let url_ = this.baseUrl + "/erp/customerorders/{id}/lines";
21945
21812
  if (id === undefined || id === null)
21946
- throw new globalThis.Error("The parameter 'id' must be defined.");
21813
+ throw new Error("The parameter 'id' must be defined.");
21947
21814
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
21948
21815
  url_ = url_.replace(/[?&]$/, "");
21949
21816
  let options_ = {
@@ -22264,7 +22131,7 @@ export class WorkordersClient extends AuthorizedApiBase {
22264
22131
  listWorkorders(pageSize, search, companyId, activeOrders, searchType, continuationToken) {
22265
22132
  let url_ = this.baseUrl + "/erp/workorders?";
22266
22133
  if (pageSize === null)
22267
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
22134
+ throw new Error("The parameter 'pageSize' cannot be null.");
22268
22135
  else if (pageSize !== undefined)
22269
22136
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
22270
22137
  if (search !== undefined && search !== null)
@@ -22274,7 +22141,7 @@ export class WorkordersClient extends AuthorizedApiBase {
22274
22141
  if (activeOrders !== undefined && activeOrders !== null)
22275
22142
  url_ += "activeOrders=" + encodeURIComponent("" + activeOrders) + "&";
22276
22143
  if (searchType === null)
22277
- throw new globalThis.Error("The parameter 'searchType' cannot be null.");
22144
+ throw new Error("The parameter 'searchType' cannot be null.");
22278
22145
  else if (searchType !== undefined)
22279
22146
  url_ += "searchType=" + encodeURIComponent("" + searchType) + "&";
22280
22147
  if (continuationToken !== undefined && continuationToken !== null)
@@ -22322,7 +22189,7 @@ export class WorkordersClient extends AuthorizedApiBase {
22322
22189
  upsertWorkorderConsumption(id, request) {
22323
22190
  let url_ = this.baseUrl + "/erp/workorders/{id}/consumptions";
22324
22191
  if (id === undefined || id === null)
22325
- throw new globalThis.Error("The parameter 'id' must be defined.");
22192
+ throw new Error("The parameter 'id' must be defined.");
22326
22193
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22327
22194
  url_ = url_.replace(/[?&]$/, "");
22328
22195
  const content_ = JSON.stringify(request);
@@ -22361,7 +22228,7 @@ export class WorkordersClient extends AuthorizedApiBase {
22361
22228
  getWorkOrderConsumption(id) {
22362
22229
  let url_ = this.baseUrl + "/erp/workorders/{id}/consumptions";
22363
22230
  if (id === undefined || id === null)
22364
- throw new globalThis.Error("The parameter 'id' must be defined.");
22231
+ throw new Error("The parameter 'id' must be defined.");
22365
22232
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22366
22233
  url_ = url_.replace(/[?&]$/, "");
22367
22234
  let options_ = {
@@ -22406,7 +22273,7 @@ export class WorkordersClient extends AuthorizedApiBase {
22406
22273
  upsertWorkorderTraces(id, request) {
22407
22274
  let url_ = this.baseUrl + "/erp/workorders/{id}/traces";
22408
22275
  if (id === undefined || id === null)
22409
- throw new globalThis.Error("The parameter 'id' must be defined.");
22276
+ throw new Error("The parameter 'id' must be defined.");
22410
22277
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22411
22278
  url_ = url_.replace(/[?&]$/, "");
22412
22279
  const content_ = JSON.stringify(request);
@@ -22445,7 +22312,7 @@ export class WorkordersClient extends AuthorizedApiBase {
22445
22312
  setWorkorderCustomerOrderReference(id, request) {
22446
22313
  let url_ = this.baseUrl + "/erp/workorders/{id}/customerorderreference";
22447
22314
  if (id === undefined || id === null)
22448
- throw new globalThis.Error("The parameter 'id' must be defined.");
22315
+ throw new Error("The parameter 'id' must be defined.");
22449
22316
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22450
22317
  url_ = url_.replace(/[?&]$/, "");
22451
22318
  const content_ = JSON.stringify(request);
@@ -22484,7 +22351,7 @@ export class WorkordersClient extends AuthorizedApiBase {
22484
22351
  checkResourceStatus(id) {
22485
22352
  let url_ = this.baseUrl + "/erp/workorders/resources/{id}/status";
22486
22353
  if (id === undefined || id === null)
22487
- throw new globalThis.Error("The parameter 'id' must be defined.");
22354
+ throw new Error("The parameter 'id' must be defined.");
22488
22355
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22489
22356
  url_ = url_.replace(/[?&]$/, "");
22490
22357
  let options_ = {
@@ -22528,10 +22395,10 @@ export class WorkordersClient extends AuthorizedApiBase {
22528
22395
  startWorkorderOperation(id, operation, request) {
22529
22396
  let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/start";
22530
22397
  if (id === undefined || id === null)
22531
- throw new globalThis.Error("The parameter 'id' must be defined.");
22398
+ throw new Error("The parameter 'id' must be defined.");
22532
22399
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22533
22400
  if (operation === undefined || operation === null)
22534
- throw new globalThis.Error("The parameter 'operation' must be defined.");
22401
+ throw new Error("The parameter 'operation' must be defined.");
22535
22402
  url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
22536
22403
  url_ = url_.replace(/[?&]$/, "");
22537
22404
  const content_ = JSON.stringify(request);
@@ -22574,10 +22441,10 @@ export class WorkordersClient extends AuthorizedApiBase {
22574
22441
  stopWorkorderOperation(id, operation, request) {
22575
22442
  let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/stop";
22576
22443
  if (id === undefined || id === null)
22577
- throw new globalThis.Error("The parameter 'id' must be defined.");
22444
+ throw new Error("The parameter 'id' must be defined.");
22578
22445
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22579
22446
  if (operation === undefined || operation === null)
22580
- throw new globalThis.Error("The parameter 'operation' must be defined.");
22447
+ throw new Error("The parameter 'operation' must be defined.");
22581
22448
  url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
22582
22449
  url_ = url_.replace(/[?&]$/, "");
22583
22450
  const content_ = JSON.stringify(request);
@@ -22619,10 +22486,10 @@ export class WorkordersClient extends AuthorizedApiBase {
22619
22486
  registerWorkorderOperationEvent(id, operation, request) {
22620
22487
  let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/events";
22621
22488
  if (id === undefined || id === null)
22622
- throw new globalThis.Error("The parameter 'id' must be defined.");
22489
+ throw new Error("The parameter 'id' must be defined.");
22623
22490
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22624
22491
  if (operation === undefined || operation === null)
22625
- throw new globalThis.Error("The parameter 'operation' must be defined.");
22492
+ throw new Error("The parameter 'operation' must be defined.");
22626
22493
  url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
22627
22494
  url_ = url_.replace(/[?&]$/, "");
22628
22495
  const content_ = JSON.stringify(request);
@@ -22668,10 +22535,10 @@ export class WorkordersClient extends AuthorizedApiBase {
22668
22535
  startWorkorderOperationV2(id, operation, request) {
22669
22536
  let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/start";
22670
22537
  if (id === undefined || id === null)
22671
- throw new globalThis.Error("The parameter 'id' must be defined.");
22538
+ throw new Error("The parameter 'id' must be defined.");
22672
22539
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22673
22540
  if (operation === undefined || operation === null)
22674
- throw new globalThis.Error("The parameter 'operation' must be defined.");
22541
+ throw new Error("The parameter 'operation' must be defined.");
22675
22542
  url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
22676
22543
  url_ = url_.replace(/[?&]$/, "");
22677
22544
  const content_ = JSON.stringify(request);
@@ -22717,10 +22584,10 @@ export class WorkordersClient extends AuthorizedApiBase {
22717
22584
  stopWorkorderOperationV2(id, operation, request) {
22718
22585
  let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/stop";
22719
22586
  if (id === undefined || id === null)
22720
- throw new globalThis.Error("The parameter 'id' must be defined.");
22587
+ throw new Error("The parameter 'id' must be defined.");
22721
22588
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22722
22589
  if (operation === undefined || operation === null)
22723
- throw new globalThis.Error("The parameter 'operation' must be defined.");
22590
+ throw new Error("The parameter 'operation' must be defined.");
22724
22591
  url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
22725
22592
  url_ = url_.replace(/[?&]$/, "");
22726
22593
  const content_ = JSON.stringify(request);
@@ -22804,13 +22671,13 @@ export class WorkordersClient extends AuthorizedApiBase {
22804
22671
  deleteWorkorderOperationEvent(id, operation, eventId) {
22805
22672
  let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/events/{eventId}";
22806
22673
  if (id === undefined || id === null)
22807
- throw new globalThis.Error("The parameter 'id' must be defined.");
22674
+ throw new Error("The parameter 'id' must be defined.");
22808
22675
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22809
22676
  if (operation === undefined || operation === null)
22810
- throw new globalThis.Error("The parameter 'operation' must be defined.");
22677
+ throw new Error("The parameter 'operation' must be defined.");
22811
22678
  url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
22812
22679
  if (eventId === undefined || eventId === null)
22813
- throw new globalThis.Error("The parameter 'eventId' must be defined.");
22680
+ throw new Error("The parameter 'eventId' must be defined.");
22814
22681
  url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
22815
22682
  url_ = url_.replace(/[?&]$/, "");
22816
22683
  let options_ = {
@@ -22849,7 +22716,7 @@ export class WorkordersClient extends AuthorizedApiBase {
22849
22716
  getWorkorder(id) {
22850
22717
  let url_ = this.baseUrl + "/erp/workorders/{id}";
22851
22718
  if (id === undefined || id === null)
22852
- throw new globalThis.Error("The parameter 'id' must be defined.");
22719
+ throw new Error("The parameter 'id' must be defined.");
22853
22720
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22854
22721
  url_ = url_.replace(/[?&]$/, "");
22855
22722
  let options_ = {
@@ -22892,7 +22759,7 @@ export class WorkordersClient extends AuthorizedApiBase {
22892
22759
  deleteWorkorder(id) {
22893
22760
  let url_ = this.baseUrl + "/erp/workorders/{id}";
22894
22761
  if (id === undefined || id === null)
22895
- throw new globalThis.Error("The parameter 'id' must be defined.");
22762
+ throw new Error("The parameter 'id' must be defined.");
22896
22763
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
22897
22764
  url_ = url_.replace(/[?&]$/, "");
22898
22765
  let options_ = {
@@ -22971,7 +22838,7 @@ export class WorkordersClient extends AuthorizedApiBase {
22971
22838
  getWorkorderOperationEvent(eventId) {
22972
22839
  let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
22973
22840
  if (eventId === undefined || eventId === null)
22974
- throw new globalThis.Error("The parameter 'eventId' must be defined.");
22841
+ throw new Error("The parameter 'eventId' must be defined.");
22975
22842
  url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
22976
22843
  url_ = url_.replace(/[?&]$/, "");
22977
22844
  let options_ = {
@@ -23014,7 +22881,7 @@ export class WorkordersClient extends AuthorizedApiBase {
23014
22881
  updateWorkorderOperationEventTimestamps(eventId, request) {
23015
22882
  let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
23016
22883
  if (eventId === undefined || eventId === null)
23017
- throw new globalThis.Error("The parameter 'eventId' must be defined.");
22884
+ throw new Error("The parameter 'eventId' must be defined.");
23018
22885
  url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
23019
22886
  url_ = url_.replace(/[?&]$/, "");
23020
22887
  const content_ = JSON.stringify(request);
@@ -23056,7 +22923,7 @@ export class WorkordersClient extends AuthorizedApiBase {
23056
22923
  deleteWorkorderOperationEventById(eventId) {
23057
22924
  let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
23058
22925
  if (eventId === undefined || eventId === null)
23059
- throw new globalThis.Error("The parameter 'eventId' must be defined.");
22926
+ throw new Error("The parameter 'eventId' must be defined.");
23060
22927
  url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
23061
22928
  url_ = url_.replace(/[?&]$/, "");
23062
22929
  let options_ = {
@@ -23094,7 +22961,7 @@ export class WorkordersClient extends AuthorizedApiBase {
23094
22961
  deleteWorkorderOperationEventByExternalId(eventExternalId) {
23095
22962
  let url_ = this.baseUrl + "/erp/workorders/operations/events/byexternalid/{eventExternalId}";
23096
22963
  if (eventExternalId === undefined || eventExternalId === null)
23097
- throw new globalThis.Error("The parameter 'eventExternalId' must be defined.");
22964
+ throw new Error("The parameter 'eventExternalId' must be defined.");
23098
22965
  url_ = url_.replace("{eventExternalId}", encodeURIComponent("" + eventExternalId));
23099
22966
  url_ = url_.replace(/[?&]$/, "");
23100
22967
  let options_ = {
@@ -23250,7 +23117,7 @@ export class WorkordersClient extends AuthorizedApiBase {
23250
23117
  getDiscussionMessages(id) {
23251
23118
  let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
23252
23119
  if (id === undefined || id === null)
23253
- throw new globalThis.Error("The parameter 'id' must be defined.");
23120
+ throw new Error("The parameter 'id' must be defined.");
23254
23121
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
23255
23122
  url_ = url_.replace(/[?&]$/, "");
23256
23123
  let options_ = {
@@ -23294,7 +23161,7 @@ export class WorkordersClient extends AuthorizedApiBase {
23294
23161
  addDiscussionMessage(id, request) {
23295
23162
  let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
23296
23163
  if (id === undefined || id === null)
23297
- throw new globalThis.Error("The parameter 'id' must be defined.");
23164
+ throw new Error("The parameter 'id' must be defined.");
23298
23165
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
23299
23166
  url_ = url_.replace(/[?&]$/, "");
23300
23167
  const content_ = JSON.stringify(request);
@@ -23337,10 +23204,10 @@ export class WorkordersClient extends AuthorizedApiBase {
23337
23204
  updateMessage(id, messageId, content) {
23338
23205
  let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
23339
23206
  if (id === undefined || id === null)
23340
- throw new globalThis.Error("The parameter 'id' must be defined.");
23207
+ throw new Error("The parameter 'id' must be defined.");
23341
23208
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
23342
23209
  if (messageId === undefined || messageId === null)
23343
- throw new globalThis.Error("The parameter 'messageId' must be defined.");
23210
+ throw new Error("The parameter 'messageId' must be defined.");
23344
23211
  url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
23345
23212
  url_ = url_.replace(/[?&]$/, "");
23346
23213
  const content_ = JSON.stringify(content);
@@ -23388,10 +23255,10 @@ export class WorkordersClient extends AuthorizedApiBase {
23388
23255
  deleteMessage(id, messageId) {
23389
23256
  let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
23390
23257
  if (id === undefined || id === null)
23391
- throw new globalThis.Error("The parameter 'id' must be defined.");
23258
+ throw new Error("The parameter 'id' must be defined.");
23392
23259
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
23393
23260
  if (messageId === undefined || messageId === null)
23394
- throw new globalThis.Error("The parameter 'messageId' must be defined.");
23261
+ throw new Error("The parameter 'messageId' must be defined.");
23395
23262
  url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
23396
23263
  url_ = url_.replace(/[?&]$/, "");
23397
23264
  let options_ = {
@@ -23436,7 +23303,7 @@ export class WorkordersClient extends AuthorizedApiBase {
23436
23303
  getLastRead(id, operationId, resourceId) {
23437
23304
  let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
23438
23305
  if (id === undefined || id === null)
23439
- throw new globalThis.Error("The parameter 'id' must be defined.");
23306
+ throw new Error("The parameter 'id' must be defined.");
23440
23307
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
23441
23308
  if (operationId !== undefined && operationId !== null)
23442
23309
  url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
@@ -23480,7 +23347,7 @@ export class WorkordersClient extends AuthorizedApiBase {
23480
23347
  setLastRead(id, request) {
23481
23348
  let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
23482
23349
  if (id === undefined || id === null)
23483
- throw new globalThis.Error("The parameter 'id' must be defined.");
23350
+ throw new Error("The parameter 'id' must be defined.");
23484
23351
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
23485
23352
  url_ = url_.replace(/[?&]$/, "");
23486
23353
  const content_ = JSON.stringify(request);
@@ -24111,8 +23978,6 @@ export class DowntimePeriodReasonDto {
24111
23978
  if (_data) {
24112
23979
  this.id = _data["id"];
24113
23980
  this.reason = _data["reason"];
24114
- this.parentReasonId = _data["parentReasonId"];
24115
- this.parentReason = _data["parentReason"];
24116
23981
  this.reasonType = _data["reasonType"];
24117
23982
  this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
24118
23983
  this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
@@ -24135,8 +24000,6 @@ export class DowntimePeriodReasonDto {
24135
24000
  data = typeof data === 'object' ? data : {};
24136
24001
  data["id"] = this.id;
24137
24002
  data["reason"] = this.reason;
24138
- data["parentReasonId"] = this.parentReasonId;
24139
- data["parentReason"] = this.parentReason;
24140
24003
  data["reasonType"] = this.reasonType;
24141
24004
  data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
24142
24005
  data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
@@ -25575,117 +25438,6 @@ export class MachineAlarmDto {
25575
25438
  return data;
25576
25439
  }
25577
25440
  }
25578
- export class PagedResultOfGroupedMachineIncidentDto {
25579
- constructor(data) {
25580
- if (data) {
25581
- for (var property in data) {
25582
- if (data.hasOwnProperty(property))
25583
- this[property] = data[property];
25584
- }
25585
- }
25586
- if (!data) {
25587
- this.results = [];
25588
- }
25589
- }
25590
- init(_data) {
25591
- if (_data) {
25592
- if (Array.isArray(_data["results"])) {
25593
- this.results = [];
25594
- for (let item of _data["results"])
25595
- this.results.push(GroupedMachineIncidentDto.fromJS(item));
25596
- }
25597
- this.continuationToken = _data["continuationToken"];
25598
- }
25599
- }
25600
- static fromJS(data) {
25601
- data = typeof data === 'object' ? data : {};
25602
- let result = new PagedResultOfGroupedMachineIncidentDto();
25603
- result.init(data);
25604
- return result;
25605
- }
25606
- toJSON(data) {
25607
- data = typeof data === 'object' ? data : {};
25608
- if (Array.isArray(this.results)) {
25609
- data["results"] = [];
25610
- for (let item of this.results)
25611
- data["results"].push(item ? item.toJSON() : undefined);
25612
- }
25613
- data["continuationToken"] = this.continuationToken;
25614
- return data;
25615
- }
25616
- }
25617
- export class GroupedMachineIncidentDto extends MachineAlarmDto {
25618
- constructor(data) {
25619
- super(data);
25620
- if (!data) {
25621
- this.incidents = [];
25622
- }
25623
- }
25624
- init(_data) {
25625
- super.init(_data);
25626
- if (_data) {
25627
- if (Array.isArray(_data["incidents"])) {
25628
- this.incidents = [];
25629
- for (let item of _data["incidents"])
25630
- this.incidents.push(MachineAlarmDto.fromJS(item));
25631
- }
25632
- }
25633
- }
25634
- static fromJS(data) {
25635
- data = typeof data === 'object' ? data : {};
25636
- let result = new GroupedMachineIncidentDto();
25637
- result.init(data);
25638
- return result;
25639
- }
25640
- toJSON(data) {
25641
- data = typeof data === 'object' ? data : {};
25642
- if (Array.isArray(this.incidents)) {
25643
- data["incidents"] = [];
25644
- for (let item of this.incidents)
25645
- data["incidents"].push(item ? item.toJSON() : undefined);
25646
- }
25647
- super.toJSON(data);
25648
- return data;
25649
- }
25650
- }
25651
- export class ListGroupedMachineIncidentsRequest {
25652
- constructor(data) {
25653
- if (data) {
25654
- for (var property in data) {
25655
- if (data.hasOwnProperty(property))
25656
- this[property] = data[property];
25657
- }
25658
- }
25659
- }
25660
- init(_data) {
25661
- if (_data) {
25662
- this.assetId = _data["assetId"];
25663
- this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
25664
- this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
25665
- this.nativeCode = _data["nativeCode"];
25666
- this.alarmType = _data["alarmType"];
25667
- this.limit = _data["limit"];
25668
- this.continuationToken = _data["continuationToken"];
25669
- }
25670
- }
25671
- static fromJS(data) {
25672
- data = typeof data === 'object' ? data : {};
25673
- let result = new ListGroupedMachineIncidentsRequest();
25674
- result.init(data);
25675
- return result;
25676
- }
25677
- toJSON(data) {
25678
- data = typeof data === 'object' ? data : {};
25679
- data["assetId"] = this.assetId;
25680
- data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
25681
- data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
25682
- data["nativeCode"] = this.nativeCode;
25683
- data["alarmType"] = this.alarmType;
25684
- data["limit"] = this.limit;
25685
- data["continuationToken"] = this.continuationToken;
25686
- return data;
25687
- }
25688
- }
25689
25441
  export class MachineAlarmSummaryDto {
25690
25442
  constructor(data) {
25691
25443
  if (data) {
@@ -37600,8 +37352,6 @@ export class BookingParcelDto {
37600
37352
  this.parcelKind = _data["parcelKind"];
37601
37353
  this.partName = _data["partName"];
37602
37354
  this.partNumber = _data["partNumber"];
37603
- this.projectId = _data["projectId"];
37604
- this.projectName = _data["projectName"];
37605
37355
  this.quantity = _data["quantity"];
37606
37356
  this.material = _data["material"];
37607
37357
  this.materialOperation = _data["materialOperation"];
@@ -37626,8 +37376,6 @@ export class BookingParcelDto {
37626
37376
  data["parcelKind"] = this.parcelKind;
37627
37377
  data["partName"] = this.partName;
37628
37378
  data["partNumber"] = this.partNumber;
37629
- data["projectId"] = this.projectId;
37630
- data["projectName"] = this.projectName;
37631
37379
  data["quantity"] = this.quantity;
37632
37380
  data["material"] = this.material;
37633
37381
  data["materialOperation"] = this.materialOperation;
@@ -39057,8 +38805,6 @@ export class TrackingParcelDto {
39057
38805
  this.parcelKind = _data["parcelKind"];
39058
38806
  this.partName = _data["partName"];
39059
38807
  this.partNumber = _data["partNumber"];
39060
- this.projectId = _data["projectId"];
39061
- this.projectName = _data["projectName"];
39062
38808
  this.quantity = _data["quantity"];
39063
38809
  this.material = _data["material"];
39064
38810
  this.covered = _data["covered"];
@@ -39086,8 +38832,6 @@ export class TrackingParcelDto {
39086
38832
  data["parcelKind"] = this.parcelKind;
39087
38833
  data["partName"] = this.partName;
39088
38834
  data["partNumber"] = this.partNumber;
39089
- data["projectId"] = this.projectId;
39090
- data["projectName"] = this.projectName;
39091
38835
  data["quantity"] = this.quantity;
39092
38836
  data["material"] = this.material;
39093
38837
  data["covered"] = this.covered;
@@ -39125,7 +38869,6 @@ export class TrackingHistoryDto {
39125
38869
  this.materialLine = _data["materialLine"];
39126
38870
  this.materialPartName = _data["materialPartName"];
39127
38871
  this.materialPartNumber = _data["materialPartNumber"];
39128
- this.category = _data["category"];
39129
38872
  this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
39130
38873
  if (Array.isArray(_data["trackingEvents"])) {
39131
38874
  this.trackingEvents = [];
@@ -39150,7 +38893,6 @@ export class TrackingHistoryDto {
39150
38893
  data["materialLine"] = this.materialLine;
39151
38894
  data["materialPartName"] = this.materialPartName;
39152
38895
  data["materialPartNumber"] = this.materialPartNumber;
39153
- data["category"] = this.category;
39154
38896
  data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
39155
38897
  if (Array.isArray(this.trackingEvents)) {
39156
38898
  data["trackingEvents"] = [];
@@ -39338,8 +39080,6 @@ export class TrackingHistoryFlattenedDto {
39338
39080
  this.parcelKind = _data["parcelKind"];
39339
39081
  this.partName = _data["partName"];
39340
39082
  this.partNumber = _data["partNumber"];
39341
- this.projectId = _data["projectId"];
39342
- this.projectName = _data["projectName"];
39343
39083
  this.quantity = _data["quantity"];
39344
39084
  this.material = _data["material"];
39345
39085
  this.covered = _data["covered"];
@@ -39350,7 +39090,6 @@ export class TrackingHistoryFlattenedDto {
39350
39090
  this.materialLine = _data["materialLine"];
39351
39091
  this.materialPartName = _data["materialPartName"];
39352
39092
  this.materialPartNumber = _data["materialPartNumber"];
39353
- this.category = _data["category"];
39354
39093
  this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
39355
39094
  if (Array.isArray(_data["trackingEvents"])) {
39356
39095
  this.trackingEvents = [];
@@ -39371,8 +39110,6 @@ export class TrackingHistoryFlattenedDto {
39371
39110
  data["parcelKind"] = this.parcelKind;
39372
39111
  data["partName"] = this.partName;
39373
39112
  data["partNumber"] = this.partNumber;
39374
- data["projectId"] = this.projectId;
39375
- data["projectName"] = this.projectName;
39376
39113
  data["quantity"] = this.quantity;
39377
39114
  data["material"] = this.material;
39378
39115
  data["covered"] = this.covered;
@@ -39383,7 +39120,6 @@ export class TrackingHistoryFlattenedDto {
39383
39120
  data["materialLine"] = this.materialLine;
39384
39121
  data["materialPartName"] = this.materialPartName;
39385
39122
  data["materialPartNumber"] = this.materialPartNumber;
39386
- data["category"] = this.category;
39387
39123
  data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
39388
39124
  if (Array.isArray(this.trackingEvents)) {
39389
39125
  data["trackingEvents"] = [];
@@ -45188,43 +44924,6 @@ export class MeasurementFormWorkorderSupplierDto {
45188
44924
  return data;
45189
44925
  }
45190
44926
  }
45191
- export class DeleteMeasurementFormsInstancesBulkRequest {
45192
- constructor(data) {
45193
- if (data) {
45194
- for (var property in data) {
45195
- if (data.hasOwnProperty(property))
45196
- this[property] = data[property];
45197
- }
45198
- }
45199
- if (!data) {
45200
- this.ids = [];
45201
- }
45202
- }
45203
- init(_data) {
45204
- if (_data) {
45205
- if (Array.isArray(_data["ids"])) {
45206
- this.ids = [];
45207
- for (let item of _data["ids"])
45208
- this.ids.push(item);
45209
- }
45210
- }
45211
- }
45212
- static fromJS(data) {
45213
- data = typeof data === 'object' ? data : {};
45214
- let result = new DeleteMeasurementFormsInstancesBulkRequest();
45215
- result.init(data);
45216
- return result;
45217
- }
45218
- toJSON(data) {
45219
- data = typeof data === 'object' ? data : {};
45220
- if (Array.isArray(this.ids)) {
45221
- data["ids"] = [];
45222
- for (let item of this.ids)
45223
- data["ids"].push(item);
45224
- }
45225
- return data;
45226
- }
45227
- }
45228
44927
  export class ListMeasurementFormsByStatusRequest {
45229
44928
  constructor(data) {
45230
44929
  if (data) {