@ignos/api-client 20251022.0.12935-alpha → 20251022.0.12945-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.
- package/lib/ignosportal-api.d.ts +96 -10
- package/lib/ignosportal-api.js +691 -446
- package/package.json +1 -1
- package/src/ignosportal-api.ts +1358 -1029
package/lib/ignosportal-api.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
//----------------------
|
|
2
2
|
// <auto-generated>
|
|
3
|
-
// Generated using the NSwag toolchain v14.
|
|
3
|
+
// Generated using the NSwag toolchain v14.6.1.0 (NJsonSchema v11.5.1.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
4
4
|
// </auto-generated>
|
|
5
5
|
//----------------------
|
|
6
|
-
/* tslint:disable */
|
|
7
6
|
/* eslint-disable */
|
|
8
7
|
// ReSharper disable InconsistentNaming
|
|
9
8
|
export class AuthorizedApiBase {
|
|
@@ -167,7 +166,7 @@ export class CustomersClient extends AuthorizedApiBase {
|
|
|
167
166
|
upsertCustomer(id, request) {
|
|
168
167
|
let url_ = this.baseUrl + "/erp/customers/{id}";
|
|
169
168
|
if (id === undefined || id === null)
|
|
170
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
169
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
171
170
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
172
171
|
url_ = url_.replace(/[?&]$/, "");
|
|
173
172
|
const content_ = JSON.stringify(request);
|
|
@@ -210,7 +209,7 @@ export class CustomersClient extends AuthorizedApiBase {
|
|
|
210
209
|
deleteCustomer(id) {
|
|
211
210
|
let url_ = this.baseUrl + "/erp/customers/{id}";
|
|
212
211
|
if (id === undefined || id === null)
|
|
213
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
212
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
214
213
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
215
214
|
url_ = url_.replace(/[?&]$/, "");
|
|
216
215
|
let options_ = {
|
|
@@ -252,7 +251,7 @@ export class CustomersClient extends AuthorizedApiBase {
|
|
|
252
251
|
listCustomers(pageSize, filter, continuationToken) {
|
|
253
252
|
let url_ = this.baseUrl + "/erp/customers?";
|
|
254
253
|
if (pageSize === null)
|
|
255
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
254
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
256
255
|
else if (pageSize !== undefined)
|
|
257
256
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
258
257
|
if (filter !== undefined && filter !== null)
|
|
@@ -386,7 +385,7 @@ export class CustomersClient extends AuthorizedApiBase {
|
|
|
386
385
|
deactivateCustomer(id) {
|
|
387
386
|
let url_ = this.baseUrl + "/erp/customers/{id}/deactivate";
|
|
388
387
|
if (id === undefined || id === null)
|
|
389
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
388
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
390
389
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
391
390
|
url_ = url_.replace(/[?&]$/, "");
|
|
392
391
|
let options_ = {
|
|
@@ -506,7 +505,7 @@ export class GuestsClient extends AuthorizedApiBase {
|
|
|
506
505
|
getGuestLoginInfo(search) {
|
|
507
506
|
let url_ = this.baseUrl + "/guests/search?";
|
|
508
507
|
if (search === null)
|
|
509
|
-
throw new Error("The parameter 'search' cannot be null.");
|
|
508
|
+
throw new globalThis.Error("The parameter 'search' cannot be null.");
|
|
510
509
|
else if (search !== undefined)
|
|
511
510
|
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
512
511
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -555,7 +554,7 @@ export class PresentationClient extends AuthorizedApiBase {
|
|
|
555
554
|
getComponentSettings(componentId) {
|
|
556
555
|
let url_ = this.baseUrl + "/presentation/components/{componentId}";
|
|
557
556
|
if (componentId === undefined || componentId === null)
|
|
558
|
-
throw new Error("The parameter 'componentId' must be defined.");
|
|
557
|
+
throw new globalThis.Error("The parameter 'componentId' must be defined.");
|
|
559
558
|
url_ = url_.replace("{componentId}", encodeURIComponent("" + componentId));
|
|
560
559
|
url_ = url_.replace(/[?&]$/, "");
|
|
561
560
|
let options_ = {
|
|
@@ -617,7 +616,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
617
616
|
if (assetId !== undefined && assetId !== null)
|
|
618
617
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
619
618
|
if (favorites === null)
|
|
620
|
-
throw new Error("The parameter 'favorites' cannot be null.");
|
|
619
|
+
throw new globalThis.Error("The parameter 'favorites' cannot be null.");
|
|
621
620
|
else if (favorites !== undefined)
|
|
622
621
|
url_ += "favorites=" + encodeURIComponent("" + favorites) + "&";
|
|
623
622
|
if (startTimeToday !== undefined && startTimeToday !== null)
|
|
@@ -662,10 +661,10 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
662
661
|
getMachineUtilization(id, startTime, endTime) {
|
|
663
662
|
let url_ = this.baseUrl + "/machineutilization/{id}?";
|
|
664
663
|
if (id === undefined || id === null)
|
|
665
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
664
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
666
665
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
667
666
|
if (startTime === null)
|
|
668
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
667
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
669
668
|
else if (startTime !== undefined)
|
|
670
669
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
671
670
|
if (endTime !== undefined && endTime !== null)
|
|
@@ -713,7 +712,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
713
712
|
getUtilizationDetailsForMachine(id, startTime, endTime) {
|
|
714
713
|
let url_ = this.baseUrl + "/machineutilization/{id}/utilization?";
|
|
715
714
|
if (id === undefined || id === null)
|
|
716
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
715
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
717
716
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
718
717
|
if (startTime !== undefined && startTime !== null)
|
|
719
718
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
@@ -757,7 +756,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
757
756
|
getResourceTimelines(id, startTime, endTime, filter) {
|
|
758
757
|
let url_ = this.baseUrl + "/machineutilization/{id}/resource/timelines?";
|
|
759
758
|
if (id === undefined || id === null)
|
|
760
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
759
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
761
760
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
762
761
|
if (startTime !== undefined && startTime !== null)
|
|
763
762
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
@@ -804,7 +803,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
804
803
|
listMachineStates(id, startTime, endTime) {
|
|
805
804
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states?";
|
|
806
805
|
if (id === undefined || id === null)
|
|
807
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
806
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
808
807
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
809
808
|
if (startTime !== undefined && startTime !== null)
|
|
810
809
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
@@ -852,7 +851,7 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
852
851
|
getMachineStatesSummary(id, startTime, endTime) {
|
|
853
852
|
let url_ = this.baseUrl + "/machineutilization/{id}/machine-states/summary?";
|
|
854
853
|
if (id === undefined || id === null)
|
|
855
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
854
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
856
855
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
857
856
|
if (startTime !== undefined && startTime !== null)
|
|
858
857
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
@@ -1020,14 +1019,14 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
1020
1019
|
getProgramTimeline(id, startTime, endTime) {
|
|
1021
1020
|
let url_ = this.baseUrl + "/machineutilization/{id}/program-timeline?";
|
|
1022
1021
|
if (id === undefined || id === null)
|
|
1023
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
1022
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1024
1023
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1025
1024
|
if (startTime === null)
|
|
1026
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
1025
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
1027
1026
|
else if (startTime !== undefined)
|
|
1028
1027
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
1029
1028
|
if (endTime === null)
|
|
1030
|
-
throw new Error("The parameter 'endTime' cannot be null.");
|
|
1029
|
+
throw new globalThis.Error("The parameter 'endTime' cannot be null.");
|
|
1031
1030
|
else if (endTime !== undefined)
|
|
1032
1031
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
1033
1032
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -1347,7 +1346,7 @@ export class UsersClient extends AuthorizedApiBase {
|
|
|
1347
1346
|
listUsers(pageSize, filter, continuationToken) {
|
|
1348
1347
|
let url_ = this.baseUrl + "/users?";
|
|
1349
1348
|
if (pageSize === null)
|
|
1350
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
1349
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
1351
1350
|
else if (pageSize !== undefined)
|
|
1352
1351
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
1353
1352
|
if (filter !== undefined && filter !== null)
|
|
@@ -1854,7 +1853,7 @@ export class SustainabilityClient extends AuthorizedApiBase {
|
|
|
1854
1853
|
getCustomerOrderConsumption(externalId, request) {
|
|
1855
1854
|
let url_ = this.baseUrl + "/sustainability/consumption/customerorders/{externalId}";
|
|
1856
1855
|
if (externalId === undefined || externalId === null)
|
|
1857
|
-
throw new Error("The parameter 'externalId' must be defined.");
|
|
1856
|
+
throw new globalThis.Error("The parameter 'externalId' must be defined.");
|
|
1858
1857
|
url_ = url_.replace("{externalId}", encodeURIComponent("" + externalId));
|
|
1859
1858
|
url_ = url_.replace(/[?&]$/, "");
|
|
1860
1859
|
const content_ = JSON.stringify(request);
|
|
@@ -1897,7 +1896,7 @@ export class SustainabilityClient extends AuthorizedApiBase {
|
|
|
1897
1896
|
getWorkOrderConsumption(externalId) {
|
|
1898
1897
|
let url_ = this.baseUrl + "/sustainability/consumption/workorders/{externalId}";
|
|
1899
1898
|
if (externalId === undefined || externalId === null)
|
|
1900
|
-
throw new Error("The parameter 'externalId' must be defined.");
|
|
1899
|
+
throw new globalThis.Error("The parameter 'externalId' must be defined.");
|
|
1901
1900
|
url_ = url_.replace("{externalId}", encodeURIComponent("" + externalId));
|
|
1902
1901
|
url_ = url_.replace(/[?&]$/, "");
|
|
1903
1902
|
let options_ = {
|
|
@@ -1937,7 +1936,7 @@ export class SustainabilityClient extends AuthorizedApiBase {
|
|
|
1937
1936
|
getProductConsumption(externalId) {
|
|
1938
1937
|
let url_ = this.baseUrl + "/sustainability/consumption/product/{externalId}";
|
|
1939
1938
|
if (externalId === undefined || externalId === null)
|
|
1940
|
-
throw new Error("The parameter 'externalId' must be defined.");
|
|
1939
|
+
throw new globalThis.Error("The parameter 'externalId' must be defined.");
|
|
1941
1940
|
url_ = url_.replace("{externalId}", encodeURIComponent("" + externalId));
|
|
1942
1941
|
url_ = url_.replace(/[?&]$/, "");
|
|
1943
1942
|
let options_ = {
|
|
@@ -2027,11 +2026,11 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
2027
2026
|
if (alarmType !== undefined && alarmType !== null)
|
|
2028
2027
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
2029
2028
|
if (assetId === null)
|
|
2030
|
-
throw new Error("The parameter 'assetId' cannot be null.");
|
|
2029
|
+
throw new globalThis.Error("The parameter 'assetId' cannot be null.");
|
|
2031
2030
|
else if (assetId !== undefined)
|
|
2032
2031
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
2033
2032
|
if (startTime === null)
|
|
2034
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
2033
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2035
2034
|
else if (startTime !== undefined)
|
|
2036
2035
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2037
2036
|
if (endTime !== undefined && endTime !== null)
|
|
@@ -2047,7 +2046,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
2047
2046
|
if (sequence !== undefined && sequence !== null)
|
|
2048
2047
|
url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
|
|
2049
2048
|
if (limit === null)
|
|
2050
|
-
throw new Error("The parameter 'limit' cannot be null.");
|
|
2049
|
+
throw new globalThis.Error("The parameter 'limit' cannot be null.");
|
|
2051
2050
|
else if (limit !== undefined)
|
|
2052
2051
|
url_ += "limit=" + encodeURIComponent("" + limit) + "&";
|
|
2053
2052
|
if (continuationToken !== undefined && continuationToken !== null)
|
|
@@ -2091,10 +2090,50 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
2091
2090
|
}
|
|
2092
2091
|
return Promise.resolve(null);
|
|
2093
2092
|
}
|
|
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
|
+
}
|
|
2094
2133
|
listAlarmsPerMachine(startTime, endTime) {
|
|
2095
2134
|
let url_ = this.baseUrl + "/machinealarms/alarmspermachine?";
|
|
2096
2135
|
if (startTime === null)
|
|
2097
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
2136
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2098
2137
|
else if (startTime !== undefined)
|
|
2099
2138
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2100
2139
|
if (endTime !== undefined && endTime !== null)
|
|
@@ -2141,7 +2180,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
2141
2180
|
listAlarmSeverityOccurrences(startTime, endTime) {
|
|
2142
2181
|
let url_ = this.baseUrl + "/machinealarms/alarmtypeseverities?";
|
|
2143
2182
|
if (startTime === null)
|
|
2144
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
2183
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2145
2184
|
else if (startTime !== undefined)
|
|
2146
2185
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2147
2186
|
if (endTime !== undefined && endTime !== null)
|
|
@@ -2190,11 +2229,11 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
2190
2229
|
if (alarmType !== undefined && alarmType !== null)
|
|
2191
2230
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
2192
2231
|
if (assetId === null)
|
|
2193
|
-
throw new Error("The parameter 'assetId' cannot be null.");
|
|
2232
|
+
throw new globalThis.Error("The parameter 'assetId' cannot be null.");
|
|
2194
2233
|
else if (assetId !== undefined)
|
|
2195
2234
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
2196
2235
|
if (startTime === null)
|
|
2197
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
2236
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2198
2237
|
else if (startTime !== undefined)
|
|
2199
2238
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2200
2239
|
if (endTime !== undefined && endTime !== null)
|
|
@@ -2247,7 +2286,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
2247
2286
|
getMachineAlarmDetails(id) {
|
|
2248
2287
|
let url_ = this.baseUrl + "/machinealarms/alarms/{id}";
|
|
2249
2288
|
if (id === undefined || id === null)
|
|
2250
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
2289
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2251
2290
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2252
2291
|
url_ = url_.replace(/[?&]$/, "");
|
|
2253
2292
|
let options_ = {
|
|
@@ -2377,20 +2416,16 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2377
2416
|
this.http = http ? http : window;
|
|
2378
2417
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
2379
2418
|
}
|
|
2380
|
-
getCompanyUtilization(utilizationType, startTime, endTime
|
|
2419
|
+
getCompanyUtilization(utilizationType, startTime, endTime) {
|
|
2381
2420
|
let url_ = this.baseUrl + "/utilization?";
|
|
2382
2421
|
if (utilizationType === null)
|
|
2383
|
-
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
2422
|
+
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2384
2423
|
else if (utilizationType !== undefined)
|
|
2385
2424
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2386
|
-
if (startTime
|
|
2387
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
2388
|
-
else if (startTime !== undefined)
|
|
2425
|
+
if (startTime !== undefined && startTime !== null)
|
|
2389
2426
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2390
2427
|
if (endTime !== undefined && endTime !== null)
|
|
2391
2428
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2392
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2393
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2394
2429
|
url_ = url_.replace(/[?&]$/, "");
|
|
2395
2430
|
let options_ = {
|
|
2396
2431
|
method: "GET",
|
|
@@ -2426,20 +2461,16 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2426
2461
|
}
|
|
2427
2462
|
return Promise.resolve(null);
|
|
2428
2463
|
}
|
|
2429
|
-
getCrossCompanyUtilization(utilizationType, startTime, endTime
|
|
2464
|
+
getCrossCompanyUtilization(utilizationType, startTime, endTime) {
|
|
2430
2465
|
let url_ = this.baseUrl + "/utilization/cross-company?";
|
|
2431
2466
|
if (utilizationType === null)
|
|
2432
|
-
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
2467
|
+
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2433
2468
|
else if (utilizationType !== undefined)
|
|
2434
2469
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2435
|
-
if (startTime
|
|
2436
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
2437
|
-
else if (startTime !== undefined)
|
|
2470
|
+
if (startTime !== undefined && startTime !== null)
|
|
2438
2471
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2439
2472
|
if (endTime !== undefined && endTime !== null)
|
|
2440
2473
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2441
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2442
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2443
2474
|
url_ = url_.replace(/[?&]$/, "");
|
|
2444
2475
|
let options_ = {
|
|
2445
2476
|
method: "GET",
|
|
@@ -2475,20 +2506,16 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2475
2506
|
}
|
|
2476
2507
|
return Promise.resolve(null);
|
|
2477
2508
|
}
|
|
2478
|
-
getUtilizationDatapoints(utilizationType, startTime, endTime,
|
|
2509
|
+
getUtilizationDatapoints(utilizationType, startTime, endTime, assetId, assetExternalId) {
|
|
2479
2510
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
2480
2511
|
if (utilizationType === null)
|
|
2481
|
-
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
2512
|
+
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2482
2513
|
else if (utilizationType !== undefined)
|
|
2483
2514
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2484
|
-
if (startTime
|
|
2485
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
2486
|
-
else if (startTime !== undefined)
|
|
2515
|
+
if (startTime !== undefined && startTime !== null)
|
|
2487
2516
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2488
2517
|
if (endTime !== undefined && endTime !== null)
|
|
2489
2518
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2490
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2491
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2492
2519
|
if (assetId !== undefined && assetId !== null)
|
|
2493
2520
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
2494
2521
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
@@ -2528,20 +2555,16 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2528
2555
|
}
|
|
2529
2556
|
return Promise.resolve(null);
|
|
2530
2557
|
}
|
|
2531
|
-
getCompanyUtilizationDatapoints(utilizationType, startTime, endTime
|
|
2558
|
+
getCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
|
|
2532
2559
|
let url_ = this.baseUrl + "/utilization/datapoints/company?";
|
|
2533
2560
|
if (utilizationType === null)
|
|
2534
|
-
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
2561
|
+
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2535
2562
|
else if (utilizationType !== undefined)
|
|
2536
2563
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2537
|
-
if (startTime
|
|
2538
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
2539
|
-
else if (startTime !== undefined)
|
|
2564
|
+
if (startTime !== undefined && startTime !== null)
|
|
2540
2565
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2541
2566
|
if (endTime !== undefined && endTime !== null)
|
|
2542
2567
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2543
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2544
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2545
2568
|
url_ = url_.replace(/[?&]$/, "");
|
|
2546
2569
|
let options_ = {
|
|
2547
2570
|
method: "GET",
|
|
@@ -2577,20 +2600,16 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2577
2600
|
}
|
|
2578
2601
|
return Promise.resolve(null);
|
|
2579
2602
|
}
|
|
2580
|
-
getCrossCompanyUtilizationDatapoints(utilizationType, startTime, endTime
|
|
2603
|
+
getCrossCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
|
|
2581
2604
|
let url_ = this.baseUrl + "/utilization/datapoints/cross-company?";
|
|
2582
2605
|
if (utilizationType === null)
|
|
2583
|
-
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
2606
|
+
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2584
2607
|
else if (utilizationType !== undefined)
|
|
2585
2608
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2586
|
-
if (startTime
|
|
2587
|
-
throw new Error("The parameter 'startTime' cannot be null.");
|
|
2588
|
-
else if (startTime !== undefined)
|
|
2609
|
+
if (startTime !== undefined && startTime !== null)
|
|
2589
2610
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2590
2611
|
if (endTime !== undefined && endTime !== null)
|
|
2591
2612
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2592
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2593
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2594
2613
|
url_ = url_.replace(/[?&]$/, "");
|
|
2595
2614
|
let options_ = {
|
|
2596
2615
|
method: "GET",
|
|
@@ -2637,7 +2656,7 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
2637
2656
|
listMrbInstances(customerOrder, customerOrderLine) {
|
|
2638
2657
|
let url_ = this.baseUrl + "/mrb?";
|
|
2639
2658
|
if (customerOrder === null)
|
|
2640
|
-
throw new Error("The parameter 'customerOrder' cannot be null.");
|
|
2659
|
+
throw new globalThis.Error("The parameter 'customerOrder' cannot be null.");
|
|
2641
2660
|
else if (customerOrder !== undefined)
|
|
2642
2661
|
url_ += "customerOrder=" + encodeURIComponent("" + customerOrder) + "&";
|
|
2643
2662
|
if (customerOrderLine !== undefined && customerOrderLine !== null)
|
|
@@ -2765,7 +2784,7 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
2765
2784
|
getMrbInstance(id) {
|
|
2766
2785
|
let url_ = this.baseUrl + "/mrb/{id}";
|
|
2767
2786
|
if (id === undefined || id === null)
|
|
2768
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
2787
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2769
2788
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2770
2789
|
url_ = url_.replace(/[?&]$/, "");
|
|
2771
2790
|
let options_ = {
|
|
@@ -2805,7 +2824,7 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
2805
2824
|
listMrbInstanceRevisions(id) {
|
|
2806
2825
|
let url_ = this.baseUrl + "/mrb/{id}/revisions";
|
|
2807
2826
|
if (id === undefined || id === null)
|
|
2808
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
2827
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2809
2828
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2810
2829
|
url_ = url_.replace(/[?&]$/, "");
|
|
2811
2830
|
let options_ = {
|
|
@@ -2849,7 +2868,7 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
2849
2868
|
createMrbRevision(id, request) {
|
|
2850
2869
|
let url_ = this.baseUrl + "/mrb/{id}/revisions";
|
|
2851
2870
|
if (id === undefined || id === null)
|
|
2852
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
2871
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2853
2872
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2854
2873
|
url_ = url_.replace(/[?&]$/, "");
|
|
2855
2874
|
const content_ = JSON.stringify(request);
|
|
@@ -2892,10 +2911,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
2892
2911
|
deleteMrbRevision(id, revisionId) {
|
|
2893
2912
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}";
|
|
2894
2913
|
if (id === undefined || id === null)
|
|
2895
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
2914
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2896
2915
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2897
2916
|
if (revisionId === undefined || revisionId === null)
|
|
2898
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
2917
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
2899
2918
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
2900
2919
|
url_ = url_.replace(/[?&]$/, "");
|
|
2901
2920
|
let options_ = {
|
|
@@ -2930,10 +2949,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
2930
2949
|
getMrbRevisionContent(id, revisionId) {
|
|
2931
2950
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/content";
|
|
2932
2951
|
if (id === undefined || id === null)
|
|
2933
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
2952
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2934
2953
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2935
2954
|
if (revisionId === undefined || revisionId === null)
|
|
2936
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
2955
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
2937
2956
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
2938
2957
|
url_ = url_.replace(/[?&]$/, "");
|
|
2939
2958
|
let options_ = {
|
|
@@ -2973,10 +2992,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
2973
2992
|
approveMrbRevision(id, revisionId) {
|
|
2974
2993
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/approve";
|
|
2975
2994
|
if (id === undefined || id === null)
|
|
2976
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
2995
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2977
2996
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2978
2997
|
if (revisionId === undefined || revisionId === null)
|
|
2979
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
2998
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
2980
2999
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
2981
3000
|
url_ = url_.replace(/[?&]$/, "");
|
|
2982
3001
|
let options_ = {
|
|
@@ -3011,10 +3030,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3011
3030
|
rejectMrbRevision(id, revisionId) {
|
|
3012
3031
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/reject";
|
|
3013
3032
|
if (id === undefined || id === null)
|
|
3014
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
3033
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3015
3034
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3016
3035
|
if (revisionId === undefined || revisionId === null)
|
|
3017
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
3036
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
3018
3037
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
3019
3038
|
url_ = url_.replace(/[?&]$/, "");
|
|
3020
3039
|
let options_ = {
|
|
@@ -3049,10 +3068,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3049
3068
|
createMrbRevisionPdf(id, revisionId) {
|
|
3050
3069
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/exporttopdf";
|
|
3051
3070
|
if (id === undefined || id === null)
|
|
3052
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
3071
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3053
3072
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3054
3073
|
if (revisionId === undefined || revisionId === null)
|
|
3055
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
3074
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
3056
3075
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
3057
3076
|
url_ = url_.replace(/[?&]$/, "");
|
|
3058
3077
|
let options_ = {
|
|
@@ -3092,10 +3111,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3092
3111
|
refreshMrbRevisionContent(id, revisionId) {
|
|
3093
3112
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/refreshcontent";
|
|
3094
3113
|
if (id === undefined || id === null)
|
|
3095
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
3114
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3096
3115
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3097
3116
|
if (revisionId === undefined || revisionId === null)
|
|
3098
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
3117
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
3099
3118
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
3100
3119
|
url_ = url_.replace(/[?&]$/, "");
|
|
3101
3120
|
let options_ = {
|
|
@@ -3135,10 +3154,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3135
3154
|
includeMrbRevisionContent(id, revisionId, request) {
|
|
3136
3155
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/includecontent";
|
|
3137
3156
|
if (id === undefined || id === null)
|
|
3138
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
3157
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3139
3158
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3140
3159
|
if (revisionId === undefined || revisionId === null)
|
|
3141
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
3160
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
3142
3161
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
3143
3162
|
url_ = url_.replace(/[?&]$/, "");
|
|
3144
3163
|
const content_ = JSON.stringify(request);
|
|
@@ -3177,10 +3196,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3177
3196
|
excludeMrbRevisionContent(id, revisionId, request) {
|
|
3178
3197
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/excludecontent";
|
|
3179
3198
|
if (id === undefined || id === null)
|
|
3180
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
3199
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3181
3200
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3182
3201
|
if (revisionId === undefined || revisionId === null)
|
|
3183
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
3202
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
3184
3203
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
3185
3204
|
url_ = url_.replace(/[?&]$/, "");
|
|
3186
3205
|
const content_ = JSON.stringify(request);
|
|
@@ -3219,10 +3238,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3219
3238
|
uploadMrbRevisionPdf(id, revisionId, request) {
|
|
3220
3239
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/upload";
|
|
3221
3240
|
if (id === undefined || id === null)
|
|
3222
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
3241
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3223
3242
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3224
3243
|
if (revisionId === undefined || revisionId === null)
|
|
3225
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
3244
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
3226
3245
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
3227
3246
|
url_ = url_.replace(/[?&]$/, "");
|
|
3228
3247
|
const content_ = JSON.stringify(request);
|
|
@@ -3261,10 +3280,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3261
3280
|
markMrbRevisionAsSent(id, revisionId) {
|
|
3262
3281
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/markassent";
|
|
3263
3282
|
if (id === undefined || id === null)
|
|
3264
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
3283
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3265
3284
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3266
3285
|
if (revisionId === undefined || revisionId === null)
|
|
3267
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
3286
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
3268
3287
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
3269
3288
|
url_ = url_.replace(/[?&]$/, "");
|
|
3270
3289
|
let options_ = {
|
|
@@ -3299,10 +3318,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3299
3318
|
createMrbRevisionLink(id, revisionId) {
|
|
3300
3319
|
let url_ = this.baseUrl + "/mrb/{id}/revision/{revisionId}/shareablelink";
|
|
3301
3320
|
if (id === undefined || id === null)
|
|
3302
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
3321
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3303
3322
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3304
3323
|
if (revisionId === undefined || revisionId === null)
|
|
3305
|
-
throw new Error("The parameter 'revisionId' must be defined.");
|
|
3324
|
+
throw new globalThis.Error("The parameter 'revisionId' must be defined.");
|
|
3306
3325
|
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
3307
3326
|
url_ = url_.replace(/[?&]$/, "");
|
|
3308
3327
|
let options_ = {
|
|
@@ -3342,7 +3361,7 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3342
3361
|
getMrbInstanceJobStatus(jobId) {
|
|
3343
3362
|
let url_ = this.baseUrl + "/mrb/mrbjobstatus/{jobId}";
|
|
3344
3363
|
if (jobId === undefined || jobId === null)
|
|
3345
|
-
throw new Error("The parameter 'jobId' must be defined.");
|
|
3364
|
+
throw new globalThis.Error("The parameter 'jobId' must be defined.");
|
|
3346
3365
|
url_ = url_.replace("{jobId}", encodeURIComponent("" + jobId));
|
|
3347
3366
|
url_ = url_.replace(/[?&]$/, "");
|
|
3348
3367
|
let options_ = {
|
|
@@ -3382,7 +3401,7 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3382
3401
|
getMrbPdfExportJobStatus(jobId) {
|
|
3383
3402
|
let url_ = this.baseUrl + "/mrb/mrbpdfjobstatus/{jobId}";
|
|
3384
3403
|
if (jobId === undefined || jobId === null)
|
|
3385
|
-
throw new Error("The parameter 'jobId' must be defined.");
|
|
3404
|
+
throw new globalThis.Error("The parameter 'jobId' must be defined.");
|
|
3386
3405
|
url_ = url_.replace("{jobId}", encodeURIComponent("" + jobId));
|
|
3387
3406
|
url_ = url_.replace(/[?&]$/, "");
|
|
3388
3407
|
let options_ = {
|
|
@@ -3422,7 +3441,7 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3422
3441
|
listMrbInstanceReports(pageSize, continuationToken) {
|
|
3423
3442
|
let url_ = this.baseUrl + "/mrb/mrbinstancereports?";
|
|
3424
3443
|
if (pageSize === null)
|
|
3425
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
3444
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
3426
3445
|
else if (pageSize !== undefined)
|
|
3427
3446
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
3428
3447
|
if (continuationToken !== undefined && continuationToken !== null)
|
|
@@ -3505,7 +3524,7 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3505
3524
|
attachPdf(templateId, request) {
|
|
3506
3525
|
let url_ = this.baseUrl + "/mrb/templates/{templateId}";
|
|
3507
3526
|
if (templateId === undefined || templateId === null)
|
|
3508
|
-
throw new Error("The parameter 'templateId' must be defined.");
|
|
3527
|
+
throw new globalThis.Error("The parameter 'templateId' must be defined.");
|
|
3509
3528
|
url_ = url_.replace("{templateId}", encodeURIComponent("" + templateId));
|
|
3510
3529
|
url_ = url_.replace(/[?&]$/, "");
|
|
3511
3530
|
const content_ = JSON.stringify(request);
|
|
@@ -3548,7 +3567,7 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3548
3567
|
getMrbTemplate(templateId) {
|
|
3549
3568
|
let url_ = this.baseUrl + "/mrb/templates/{templateId}";
|
|
3550
3569
|
if (templateId === undefined || templateId === null)
|
|
3551
|
-
throw new Error("The parameter 'templateId' must be defined.");
|
|
3570
|
+
throw new globalThis.Error("The parameter 'templateId' must be defined.");
|
|
3552
3571
|
url_ = url_.replace("{templateId}", encodeURIComponent("" + templateId));
|
|
3553
3572
|
url_ = url_.replace(/[?&]$/, "");
|
|
3554
3573
|
let options_ = {
|
|
@@ -3771,7 +3790,7 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3771
3790
|
copyMrbTemplate(templateId, request) {
|
|
3772
3791
|
let url_ = this.baseUrl + "/mrb/templates/{templateId}/copy";
|
|
3773
3792
|
if (templateId === undefined || templateId === null)
|
|
3774
|
-
throw new Error("The parameter 'templateId' must be defined.");
|
|
3793
|
+
throw new globalThis.Error("The parameter 'templateId' must be defined.");
|
|
3775
3794
|
url_ = url_.replace("{templateId}", encodeURIComponent("" + templateId));
|
|
3776
3795
|
url_ = url_.replace(/[?&]$/, "");
|
|
3777
3796
|
const content_ = JSON.stringify(request);
|
|
@@ -3899,7 +3918,7 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
3899
3918
|
getTrace(id) {
|
|
3900
3919
|
let url_ = this.baseUrl + "/trace/{id}";
|
|
3901
3920
|
if (id === undefined || id === null)
|
|
3902
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
3921
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3903
3922
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3904
3923
|
url_ = url_.replace(/[?&]$/, "");
|
|
3905
3924
|
let options_ = {
|
|
@@ -3939,7 +3958,7 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
3939
3958
|
updateTrace(id, request) {
|
|
3940
3959
|
let url_ = this.baseUrl + "/trace/{id}";
|
|
3941
3960
|
if (id === undefined || id === null)
|
|
3942
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
3961
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3943
3962
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3944
3963
|
url_ = url_.replace(/[?&]$/, "");
|
|
3945
3964
|
const content_ = JSON.stringify(request);
|
|
@@ -3978,7 +3997,7 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
3978
3997
|
generateTrace(id) {
|
|
3979
3998
|
let url_ = this.baseUrl + "/trace/{id}/generate";
|
|
3980
3999
|
if (id === undefined || id === null)
|
|
3981
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4000
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
3982
4001
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3983
4002
|
url_ = url_.replace(/[?&]$/, "");
|
|
3984
4003
|
let options_ = {
|
|
@@ -4018,7 +4037,7 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
4018
4037
|
addSequenceToTraceList(id) {
|
|
4019
4038
|
let url_ = this.baseUrl + "/trace/{id}/addsequence";
|
|
4020
4039
|
if (id === undefined || id === null)
|
|
4021
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4040
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4022
4041
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4023
4042
|
url_ = url_.replace(/[?&]$/, "");
|
|
4024
4043
|
let options_ = {
|
|
@@ -4063,7 +4082,7 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
4063
4082
|
setTraceManualCompleted(id, request) {
|
|
4064
4083
|
let url_ = this.baseUrl + "/trace/{id}/manualcompleted";
|
|
4065
4084
|
if (id === undefined || id === null)
|
|
4066
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4085
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4067
4086
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4068
4087
|
url_ = url_.replace(/[?&]$/, "");
|
|
4069
4088
|
const content_ = JSON.stringify(request);
|
|
@@ -4102,11 +4121,11 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
4102
4121
|
listCustomerOrderLineTraces(customerOrder, customerOrderLine) {
|
|
4103
4122
|
let url_ = this.baseUrl + "/trace/customerorderlineitems?";
|
|
4104
4123
|
if (customerOrder === null)
|
|
4105
|
-
throw new Error("The parameter 'customerOrder' cannot be null.");
|
|
4124
|
+
throw new globalThis.Error("The parameter 'customerOrder' cannot be null.");
|
|
4106
4125
|
else if (customerOrder !== undefined)
|
|
4107
4126
|
url_ += "customerOrder=" + encodeURIComponent("" + customerOrder) + "&";
|
|
4108
4127
|
if (customerOrderLine === null)
|
|
4109
|
-
throw new Error("The parameter 'customerOrderLine' cannot be null.");
|
|
4128
|
+
throw new globalThis.Error("The parameter 'customerOrderLine' cannot be null.");
|
|
4110
4129
|
else if (customerOrderLine !== undefined)
|
|
4111
4130
|
url_ += "customerOrderLine=" + encodeURIComponent("" + customerOrderLine) + "&";
|
|
4112
4131
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -4151,7 +4170,7 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
4151
4170
|
getCustomerOrderTraceStatus(id, line) {
|
|
4152
4171
|
let url_ = this.baseUrl + "/trace/customerorders/{id}?";
|
|
4153
4172
|
if (id === undefined || id === null)
|
|
4154
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4173
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4155
4174
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4156
4175
|
if (line !== undefined && line !== null)
|
|
4157
4176
|
url_ += "line=" + encodeURIComponent("" + line) + "&";
|
|
@@ -4201,7 +4220,7 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
4201
4220
|
listTraceWorkorders(pageSize, search, companyId, searchType, continuationToken) {
|
|
4202
4221
|
let url_ = this.baseUrl + "/trace/workorders?";
|
|
4203
4222
|
if (pageSize === null)
|
|
4204
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
4223
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
4205
4224
|
else if (pageSize !== undefined)
|
|
4206
4225
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
4207
4226
|
if (search !== undefined && search !== null)
|
|
@@ -4209,7 +4228,7 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
4209
4228
|
if (companyId !== undefined && companyId !== null)
|
|
4210
4229
|
url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
|
|
4211
4230
|
if (searchType === null)
|
|
4212
|
-
throw new Error("The parameter 'searchType' cannot be null.");
|
|
4231
|
+
throw new globalThis.Error("The parameter 'searchType' cannot be null.");
|
|
4213
4232
|
else if (searchType !== undefined)
|
|
4214
4233
|
url_ += "searchType=" + encodeURIComponent("" + searchType) + "&";
|
|
4215
4234
|
if (continuationToken !== undefined && continuationToken !== null)
|
|
@@ -4300,11 +4319,11 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4300
4319
|
listMeasuringTools(page, pageSize, toolId, toolName, typeId, subTypeId, orderBy, sortDirection, includeDeprecated) {
|
|
4301
4320
|
let url_ = this.baseUrl + "/measuringtools?";
|
|
4302
4321
|
if (page === null)
|
|
4303
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
4322
|
+
throw new globalThis.Error("The parameter 'page' cannot be null.");
|
|
4304
4323
|
else if (page !== undefined)
|
|
4305
4324
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
4306
4325
|
if (pageSize === null)
|
|
4307
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
4326
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
4308
4327
|
else if (pageSize !== undefined)
|
|
4309
4328
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
4310
4329
|
if (toolId !== undefined && toolId !== null)
|
|
@@ -4399,7 +4418,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4399
4418
|
updateMeasuringTool(id, request) {
|
|
4400
4419
|
let url_ = this.baseUrl + "/measuringtools/{id}";
|
|
4401
4420
|
if (id === undefined || id === null)
|
|
4402
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4421
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4403
4422
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4404
4423
|
url_ = url_.replace(/[?&]$/, "");
|
|
4405
4424
|
const content_ = JSON.stringify(request);
|
|
@@ -4442,7 +4461,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4442
4461
|
getMeasuringTool(id) {
|
|
4443
4462
|
let url_ = this.baseUrl + "/measuringtools/{id}";
|
|
4444
4463
|
if (id === undefined || id === null)
|
|
4445
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4464
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4446
4465
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4447
4466
|
url_ = url_.replace(/[?&]$/, "");
|
|
4448
4467
|
let options_ = {
|
|
@@ -4482,7 +4501,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4482
4501
|
listCalibrations(id) {
|
|
4483
4502
|
let url_ = this.baseUrl + "/measuringtools/{id}/calibrations";
|
|
4484
4503
|
if (id === undefined || id === null)
|
|
4485
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4504
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4486
4505
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4487
4506
|
url_ = url_.replace(/[?&]$/, "");
|
|
4488
4507
|
let options_ = {
|
|
@@ -4526,7 +4545,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4526
4545
|
registerCalibration(id, request) {
|
|
4527
4546
|
let url_ = this.baseUrl + "/measuringtools/{id}/calibrations";
|
|
4528
4547
|
if (id === undefined || id === null)
|
|
4529
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4548
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4530
4549
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4531
4550
|
url_ = url_.replace(/[?&]$/, "");
|
|
4532
4551
|
const content_ = JSON.stringify(request);
|
|
@@ -4569,10 +4588,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4569
4588
|
attachCalibrationCertificate(id, calibrationId, request) {
|
|
4570
4589
|
let url_ = this.baseUrl + "/measuringtools/{id}/calibrations/{calibrationId}/attachcertificate";
|
|
4571
4590
|
if (id === undefined || id === null)
|
|
4572
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4591
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4573
4592
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4574
4593
|
if (calibrationId === undefined || calibrationId === null)
|
|
4575
|
-
throw new Error("The parameter 'calibrationId' must be defined.");
|
|
4594
|
+
throw new globalThis.Error("The parameter 'calibrationId' must be defined.");
|
|
4576
4595
|
url_ = url_.replace("{calibrationId}", encodeURIComponent("" + calibrationId));
|
|
4577
4596
|
url_ = url_.replace(/[?&]$/, "");
|
|
4578
4597
|
const content_ = JSON.stringify(request);
|
|
@@ -4615,10 +4634,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4615
4634
|
deleteCalibrationCertificate(id, calibrationId) {
|
|
4616
4635
|
let url_ = this.baseUrl + "/measuringtools/{id}/calibrations/{calibrationId}/deletecertificate";
|
|
4617
4636
|
if (id === undefined || id === null)
|
|
4618
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4637
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4619
4638
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4620
4639
|
if (calibrationId === undefined || calibrationId === null)
|
|
4621
|
-
throw new Error("The parameter 'calibrationId' must be defined.");
|
|
4640
|
+
throw new globalThis.Error("The parameter 'calibrationId' must be defined.");
|
|
4622
4641
|
url_ = url_.replace("{calibrationId}", encodeURIComponent("" + calibrationId));
|
|
4623
4642
|
url_ = url_.replace(/[?&]$/, "");
|
|
4624
4643
|
let options_ = {
|
|
@@ -4815,7 +4834,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4815
4834
|
updateMeasuringToolType(id, request) {
|
|
4816
4835
|
let url_ = this.baseUrl + "/measuringtools/types/{id}";
|
|
4817
4836
|
if (id === undefined || id === null)
|
|
4818
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4837
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4819
4838
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4820
4839
|
url_ = url_.replace(/[?&]$/, "");
|
|
4821
4840
|
const content_ = JSON.stringify(request);
|
|
@@ -4858,7 +4877,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4858
4877
|
deleteMeasuringToolType(id) {
|
|
4859
4878
|
let url_ = this.baseUrl + "/measuringtools/types/{id}";
|
|
4860
4879
|
if (id === undefined || id === null)
|
|
4861
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4880
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4862
4881
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4863
4882
|
url_ = url_.replace(/[?&]$/, "");
|
|
4864
4883
|
let options_ = {
|
|
@@ -4893,7 +4912,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4893
4912
|
listMeasuringToolSubTypes(typeId) {
|
|
4894
4913
|
let url_ = this.baseUrl + "/measuringtools/types/{typeId}/subtypes";
|
|
4895
4914
|
if (typeId === undefined || typeId === null)
|
|
4896
|
-
throw new Error("The parameter 'typeId' must be defined.");
|
|
4915
|
+
throw new globalThis.Error("The parameter 'typeId' must be defined.");
|
|
4897
4916
|
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
4898
4917
|
url_ = url_.replace(/[?&]$/, "");
|
|
4899
4918
|
let options_ = {
|
|
@@ -4937,7 +4956,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4937
4956
|
createMeasuringToolSubType(typeId, request) {
|
|
4938
4957
|
let url_ = this.baseUrl + "/measuringtools/types/{typeId}/subtypes";
|
|
4939
4958
|
if (typeId === undefined || typeId === null)
|
|
4940
|
-
throw new Error("The parameter 'typeId' must be defined.");
|
|
4959
|
+
throw new globalThis.Error("The parameter 'typeId' must be defined.");
|
|
4941
4960
|
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
4942
4961
|
url_ = url_.replace(/[?&]$/, "");
|
|
4943
4962
|
const content_ = JSON.stringify(request);
|
|
@@ -4980,10 +4999,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
4980
4999
|
updateMeasuringToolSubType(typeId, id, request) {
|
|
4981
5000
|
let url_ = this.baseUrl + "/measuringtools/types/{typeId}/subtypes/{id}";
|
|
4982
5001
|
if (typeId === undefined || typeId === null)
|
|
4983
|
-
throw new Error("The parameter 'typeId' must be defined.");
|
|
5002
|
+
throw new globalThis.Error("The parameter 'typeId' must be defined.");
|
|
4984
5003
|
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
4985
5004
|
if (id === undefined || id === null)
|
|
4986
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
5005
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4987
5006
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4988
5007
|
url_ = url_.replace(/[?&]$/, "");
|
|
4989
5008
|
const content_ = JSON.stringify(request);
|
|
@@ -5026,10 +5045,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
5026
5045
|
deleteMeasuringToolSubType(typeId, id) {
|
|
5027
5046
|
let url_ = this.baseUrl + "/measuringtools/types/{typeId}/subtypes/{id}";
|
|
5028
5047
|
if (typeId === undefined || typeId === null)
|
|
5029
|
-
throw new Error("The parameter 'typeId' must be defined.");
|
|
5048
|
+
throw new globalThis.Error("The parameter 'typeId' must be defined.");
|
|
5030
5049
|
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
5031
5050
|
if (id === undefined || id === null)
|
|
5032
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
5051
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5033
5052
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5034
5053
|
url_ = url_.replace(/[?&]$/, "");
|
|
5035
5054
|
let options_ = {
|
|
@@ -5145,7 +5164,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
5145
5164
|
deleteMeasuringUnit(id) {
|
|
5146
5165
|
let url_ = this.baseUrl + "/measuringtools/units/{id}";
|
|
5147
5166
|
if (id === undefined || id === null)
|
|
5148
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
5167
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5149
5168
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5150
5169
|
url_ = url_.replace(/[?&]$/, "");
|
|
5151
5170
|
let options_ = {
|
|
@@ -5180,11 +5199,11 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
5180
5199
|
getMeasuringToolWhitelist(page, pageSize, filter, orderBy, sortDirection) {
|
|
5181
5200
|
let url_ = this.baseUrl + "/measuringtools/whitelist?";
|
|
5182
5201
|
if (page === null)
|
|
5183
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
5202
|
+
throw new globalThis.Error("The parameter 'page' cannot be null.");
|
|
5184
5203
|
else if (page !== undefined)
|
|
5185
5204
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5186
5205
|
if (pageSize === null)
|
|
5187
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
5206
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
5188
5207
|
else if (pageSize !== undefined)
|
|
5189
5208
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
5190
5209
|
if (filter !== undefined && filter !== null)
|
|
@@ -5271,7 +5290,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
5271
5290
|
updateWhitelistedMeasuringTool(id, command) {
|
|
5272
5291
|
let url_ = this.baseUrl + "/measuringtools/whitelist/{id}";
|
|
5273
5292
|
if (id === undefined || id === null)
|
|
5274
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
5293
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5275
5294
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5276
5295
|
url_ = url_.replace(/[?&]$/, "");
|
|
5277
5296
|
const content_ = JSON.stringify(command);
|
|
@@ -5310,7 +5329,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
5310
5329
|
removeMeasuringToolFromWhitelist(id) {
|
|
5311
5330
|
let url_ = this.baseUrl + "/measuringtools/whitelist/{id}";
|
|
5312
5331
|
if (id === undefined || id === null)
|
|
5313
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
5332
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5314
5333
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5315
5334
|
url_ = url_.replace(/[?&]$/, "");
|
|
5316
5335
|
let options_ = {
|
|
@@ -5330,7 +5349,12 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
5330
5349
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5331
5350
|
}
|
|
5332
5351
|
;
|
|
5333
|
-
if (status ===
|
|
5352
|
+
if (status === 204) {
|
|
5353
|
+
return response.text().then((_responseText) => {
|
|
5354
|
+
return;
|
|
5355
|
+
});
|
|
5356
|
+
}
|
|
5357
|
+
else if (status === 404) {
|
|
5334
5358
|
return response.text().then((_responseText) => {
|
|
5335
5359
|
let result404 = null;
|
|
5336
5360
|
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -5338,11 +5362,6 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
5338
5362
|
return throwException("A server side error occurred.", status, _responseText, _headers, result404);
|
|
5339
5363
|
});
|
|
5340
5364
|
}
|
|
5341
|
-
else if (status === 204) {
|
|
5342
|
-
return response.text().then((_responseText) => {
|
|
5343
|
-
return;
|
|
5344
|
-
});
|
|
5345
|
-
}
|
|
5346
5365
|
else if (status !== 200 && status !== 204) {
|
|
5347
5366
|
return response.text().then((_responseText) => {
|
|
5348
5367
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5394,7 +5413,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
5394
5413
|
deprecateTool(id, request) {
|
|
5395
5414
|
let url_ = this.baseUrl + "/measuringtools/deprecated/{id}";
|
|
5396
5415
|
if (id === undefined || id === null)
|
|
5397
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
5416
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5398
5417
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5399
5418
|
url_ = url_.replace(/[?&]$/, "");
|
|
5400
5419
|
const content_ = JSON.stringify(request);
|
|
@@ -5433,7 +5452,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
5433
5452
|
restoreTool(id) {
|
|
5434
5453
|
let url_ = this.baseUrl + "/measuringtools/restore/{id}";
|
|
5435
5454
|
if (id === undefined || id === null)
|
|
5436
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
5455
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5437
5456
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5438
5457
|
url_ = url_.replace(/[?&]$/, "");
|
|
5439
5458
|
let options_ = {
|
|
@@ -5468,7 +5487,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
5468
5487
|
getCalibrationList(status) {
|
|
5469
5488
|
let url_ = this.baseUrl + "/measuringtools/calibrationlist?";
|
|
5470
5489
|
if (status === null)
|
|
5471
|
-
throw new Error("The parameter 'status' cannot be null.");
|
|
5490
|
+
throw new globalThis.Error("The parameter 'status' cannot be null.");
|
|
5472
5491
|
else if (status !== undefined)
|
|
5473
5492
|
url_ += "status=" + encodeURIComponent("" + status) + "&";
|
|
5474
5493
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -5756,7 +5775,7 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
|
5756
5775
|
updateDowntimeReason(id, request) {
|
|
5757
5776
|
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/{id}";
|
|
5758
5777
|
if (id === undefined || id === null)
|
|
5759
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
5778
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5760
5779
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5761
5780
|
url_ = url_.replace(/[?&]$/, "");
|
|
5762
5781
|
const content_ = JSON.stringify(request);
|
|
@@ -5799,7 +5818,7 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
|
5799
5818
|
deleteDowntimeReason(id) {
|
|
5800
5819
|
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/{id}";
|
|
5801
5820
|
if (id === undefined || id === null)
|
|
5802
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
5821
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5803
5822
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5804
5823
|
url_ = url_.replace(/[?&]$/, "");
|
|
5805
5824
|
let options_ = {
|
|
@@ -5956,7 +5975,7 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
|
5956
5975
|
updateParentTopic(id, request) {
|
|
5957
5976
|
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
|
|
5958
5977
|
if (id === undefined || id === null)
|
|
5959
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
5978
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5960
5979
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5961
5980
|
url_ = url_.replace(/[?&]$/, "");
|
|
5962
5981
|
const content_ = JSON.stringify(request);
|
|
@@ -5999,7 +6018,7 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
|
5999
6018
|
deleteParentTopic(id) {
|
|
6000
6019
|
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
|
|
6001
6020
|
if (id === undefined || id === null)
|
|
6002
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6021
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
6003
6022
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6004
6023
|
url_ = url_.replace(/[?&]$/, "");
|
|
6005
6024
|
let options_ = {
|
|
@@ -6082,7 +6101,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
|
6082
6101
|
updateDowntimePeriodReason(id, request) {
|
|
6083
6102
|
let url_ = this.baseUrl + "/downtimereasons/{id}";
|
|
6084
6103
|
if (id === undefined || id === null)
|
|
6085
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6104
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
6086
6105
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6087
6106
|
url_ = url_.replace(/[?&]$/, "");
|
|
6088
6107
|
const content_ = JSON.stringify(request);
|
|
@@ -6125,7 +6144,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
|
6125
6144
|
deleteDowntimeReason(id) {
|
|
6126
6145
|
let url_ = this.baseUrl + "/downtimereasons/{id}";
|
|
6127
6146
|
if (id === undefined || id === null)
|
|
6128
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6147
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
6129
6148
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6130
6149
|
url_ = url_.replace(/[?&]$/, "");
|
|
6131
6150
|
let options_ = {
|
|
@@ -6160,7 +6179,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
|
6160
6179
|
listDowntimeReasonsForMachine(id) {
|
|
6161
6180
|
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/downtimereasons";
|
|
6162
6181
|
if (id === undefined || id === null)
|
|
6163
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6182
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
6164
6183
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6165
6184
|
url_ = url_.replace(/[?&]$/, "");
|
|
6166
6185
|
let options_ = {
|
|
@@ -6204,7 +6223,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
|
6204
6223
|
listDowntimeReasonsHierarchyForMachine(id) {
|
|
6205
6224
|
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/downtimereasonshierarchy";
|
|
6206
6225
|
if (id === undefined || id === null)
|
|
6207
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6226
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
6208
6227
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6209
6228
|
url_ = url_.replace(/[?&]$/, "");
|
|
6210
6229
|
let options_ = {
|
|
@@ -6248,7 +6267,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
|
6248
6267
|
listActiveDowntimeReasonsForMachine(id) {
|
|
6249
6268
|
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/active";
|
|
6250
6269
|
if (id === undefined || id === null)
|
|
6251
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6270
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
6252
6271
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6253
6272
|
url_ = url_.replace(/[?&]$/, "");
|
|
6254
6273
|
let options_ = {
|
|
@@ -6498,11 +6517,11 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6498
6517
|
getCalendarCapacityAdmin(startDate, endDate) {
|
|
6499
6518
|
let url_ = this.baseUrl + "/kpiadmin/calendar?";
|
|
6500
6519
|
if (startDate === null)
|
|
6501
|
-
throw new Error("The parameter 'startDate' cannot be null.");
|
|
6520
|
+
throw new globalThis.Error("The parameter 'startDate' cannot be null.");
|
|
6502
6521
|
else if (startDate !== undefined)
|
|
6503
6522
|
url_ += "startDate=" + encodeURIComponent(startDate ? "" + startDate.toISOString() : "") + "&";
|
|
6504
6523
|
if (endDate === null)
|
|
6505
|
-
throw new Error("The parameter 'endDate' cannot be null.");
|
|
6524
|
+
throw new globalThis.Error("The parameter 'endDate' cannot be null.");
|
|
6506
6525
|
else if (endDate !== undefined)
|
|
6507
6526
|
url_ += "endDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
|
|
6508
6527
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -6672,23 +6691,23 @@ export class KpiClient extends AuthorizedApiBase {
|
|
|
6672
6691
|
getMachineKpi(machineExternalId, previousPeriodStartDate, startDate, endDate, utcOffset) {
|
|
6673
6692
|
let url_ = this.baseUrl + "/kpi/capacity?";
|
|
6674
6693
|
if (machineExternalId === null)
|
|
6675
|
-
throw new Error("The parameter 'machineExternalId' cannot be null.");
|
|
6694
|
+
throw new globalThis.Error("The parameter 'machineExternalId' cannot be null.");
|
|
6676
6695
|
else if (machineExternalId !== undefined)
|
|
6677
6696
|
url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
|
|
6678
6697
|
if (previousPeriodStartDate === null)
|
|
6679
|
-
throw new Error("The parameter 'previousPeriodStartDate' cannot be null.");
|
|
6698
|
+
throw new globalThis.Error("The parameter 'previousPeriodStartDate' cannot be null.");
|
|
6680
6699
|
else if (previousPeriodStartDate !== undefined)
|
|
6681
6700
|
url_ += "previousPeriodStartDate=" + encodeURIComponent(previousPeriodStartDate ? "" + previousPeriodStartDate.toISOString() : "") + "&";
|
|
6682
6701
|
if (startDate === null)
|
|
6683
|
-
throw new Error("The parameter 'startDate' cannot be null.");
|
|
6702
|
+
throw new globalThis.Error("The parameter 'startDate' cannot be null.");
|
|
6684
6703
|
else if (startDate !== undefined)
|
|
6685
6704
|
url_ += "startDate=" + encodeURIComponent(startDate ? "" + startDate.toISOString() : "") + "&";
|
|
6686
6705
|
if (endDate === null)
|
|
6687
|
-
throw new Error("The parameter 'endDate' cannot be null.");
|
|
6706
|
+
throw new globalThis.Error("The parameter 'endDate' cannot be null.");
|
|
6688
6707
|
else if (endDate !== undefined)
|
|
6689
6708
|
url_ += "endDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
|
|
6690
6709
|
if (utcOffset === null)
|
|
6691
|
-
throw new Error("The parameter 'utcOffset' cannot be null.");
|
|
6710
|
+
throw new globalThis.Error("The parameter 'utcOffset' cannot be null.");
|
|
6692
6711
|
else if (utcOffset !== undefined)
|
|
6693
6712
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
6694
6713
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -6729,15 +6748,15 @@ export class KpiClient extends AuthorizedApiBase {
|
|
|
6729
6748
|
getMachineDailyUptime(machineExternalId, date, utcOffset) {
|
|
6730
6749
|
let url_ = this.baseUrl + "/kpi/daily-uptime?";
|
|
6731
6750
|
if (machineExternalId === null)
|
|
6732
|
-
throw new Error("The parameter 'machineExternalId' cannot be null.");
|
|
6751
|
+
throw new globalThis.Error("The parameter 'machineExternalId' cannot be null.");
|
|
6733
6752
|
else if (machineExternalId !== undefined)
|
|
6734
6753
|
url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
|
|
6735
6754
|
if (date === null)
|
|
6736
|
-
throw new Error("The parameter 'date' cannot be null.");
|
|
6755
|
+
throw new globalThis.Error("The parameter 'date' cannot be null.");
|
|
6737
6756
|
else if (date !== undefined)
|
|
6738
6757
|
url_ += "date=" + encodeURIComponent(date ? "" + date.toISOString() : "") + "&";
|
|
6739
6758
|
if (utcOffset === null)
|
|
6740
|
-
throw new Error("The parameter 'utcOffset' cannot be null.");
|
|
6759
|
+
throw new globalThis.Error("The parameter 'utcOffset' cannot be null.");
|
|
6741
6760
|
else if (utcOffset !== undefined)
|
|
6742
6761
|
url_ += "utcOffset=" + encodeURIComponent("" + utcOffset) + "&";
|
|
6743
6762
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -6835,7 +6854,7 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
6835
6854
|
listMachines(onlyConnectedMachines) {
|
|
6836
6855
|
let url_ = this.baseUrl + "/machines?";
|
|
6837
6856
|
if (onlyConnectedMachines === null)
|
|
6838
|
-
throw new Error("The parameter 'onlyConnectedMachines' cannot be null.");
|
|
6857
|
+
throw new globalThis.Error("The parameter 'onlyConnectedMachines' cannot be null.");
|
|
6839
6858
|
else if (onlyConnectedMachines !== undefined)
|
|
6840
6859
|
url_ += "onlyConnectedMachines=" + encodeURIComponent("" + onlyConnectedMachines) + "&";
|
|
6841
6860
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -6961,7 +6980,7 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
6961
6980
|
updateMachineGroup(id, request) {
|
|
6962
6981
|
let url_ = this.baseUrl + "/machines/groups/{id}";
|
|
6963
6982
|
if (id === undefined || id === null)
|
|
6964
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6983
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
6965
6984
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6966
6985
|
url_ = url_.replace(/[?&]$/, "");
|
|
6967
6986
|
const content_ = JSON.stringify(request);
|
|
@@ -7000,7 +7019,7 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
7000
7019
|
deleteMachineGroup(id) {
|
|
7001
7020
|
let url_ = this.baseUrl + "/machines/groups/{id}";
|
|
7002
7021
|
if (id === undefined || id === null)
|
|
7003
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
7022
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7004
7023
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7005
7024
|
url_ = url_.replace(/[?&]$/, "");
|
|
7006
7025
|
let options_ = {
|
|
@@ -7074,7 +7093,7 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
7074
7093
|
listMachineStates(id, startTime, endTime) {
|
|
7075
7094
|
let url_ = this.baseUrl + "/machines/{id}/states?";
|
|
7076
7095
|
if (id === undefined || id === null)
|
|
7077
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
7096
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7078
7097
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7079
7098
|
if (startTime !== undefined && startTime !== null)
|
|
7080
7099
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
@@ -7122,7 +7141,7 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
7122
7141
|
listLastDowntimeMachineStates(id, endTime, maxStates) {
|
|
7123
7142
|
let url_ = this.baseUrl + "/machines/{id}/lastdowntimestates?";
|
|
7124
7143
|
if (id === undefined || id === null)
|
|
7125
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
7144
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7126
7145
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7127
7146
|
if (endTime !== undefined && endTime !== null)
|
|
7128
7147
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
@@ -7170,10 +7189,10 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
7170
7189
|
getMachineStateWithDowntimePeriods(id, timestamp) {
|
|
7171
7190
|
let url_ = this.baseUrl + "/machines/{id}/statewithdowntimeperiods?";
|
|
7172
7191
|
if (id === undefined || id === null)
|
|
7173
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
7192
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7174
7193
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7175
7194
|
if (timestamp === null)
|
|
7176
|
-
throw new Error("The parameter 'timestamp' cannot be null.");
|
|
7195
|
+
throw new globalThis.Error("The parameter 'timestamp' cannot be null.");
|
|
7177
7196
|
else if (timestamp !== undefined)
|
|
7178
7197
|
url_ += "timestamp=" + encodeURIComponent("" + timestamp) + "&";
|
|
7179
7198
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -7214,7 +7233,7 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
7214
7233
|
getMachineStatesSummary(id, startTime, endTime) {
|
|
7215
7234
|
let url_ = this.baseUrl + "/machines/{id}/states/summary?";
|
|
7216
7235
|
if (id === undefined || id === null)
|
|
7217
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
7236
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7218
7237
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7219
7238
|
if (startTime !== undefined && startTime !== null)
|
|
7220
7239
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
@@ -7295,7 +7314,7 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
7295
7314
|
getMachineErpData(id) {
|
|
7296
7315
|
let url_ = this.baseUrl + "/machines/{id}/erp";
|
|
7297
7316
|
if (id === undefined || id === null)
|
|
7298
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
7317
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7299
7318
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7300
7319
|
url_ = url_.replace(/[?&]$/, "");
|
|
7301
7320
|
let options_ = {
|
|
@@ -7340,7 +7359,7 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
7340
7359
|
getWorkOrderTimeline(id, startTime, endTime) {
|
|
7341
7360
|
let url_ = this.baseUrl + "/machines/{id}/workorder/timeline?";
|
|
7342
7361
|
if (id === undefined || id === null)
|
|
7343
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
7362
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7344
7363
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7345
7364
|
if (startTime !== undefined && startTime !== null)
|
|
7346
7365
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
@@ -7783,7 +7802,7 @@ export class LinksClient extends AuthorizedApiBase {
|
|
|
7783
7802
|
deleteLink(id, scope) {
|
|
7784
7803
|
let url_ = this.baseUrl + "/links/{id}?";
|
|
7785
7804
|
if (id === undefined || id === null)
|
|
7786
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
7805
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7787
7806
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7788
7807
|
if (scope !== undefined && scope !== null)
|
|
7789
7808
|
url_ += "scope=" + encodeURIComponent("" + scope) + "&";
|
|
@@ -7828,7 +7847,7 @@ export class ExternalServicesClient extends AuthorizedApiBase {
|
|
|
7828
7847
|
getCredential(serviceName) {
|
|
7829
7848
|
let url_ = this.baseUrl + "/externalservices/credentials/{serviceName}";
|
|
7830
7849
|
if (serviceName === undefined || serviceName === null)
|
|
7831
|
-
throw new Error("The parameter 'serviceName' must be defined.");
|
|
7850
|
+
throw new globalThis.Error("The parameter 'serviceName' must be defined.");
|
|
7832
7851
|
url_ = url_.replace("{serviceName}", encodeURIComponent("" + serviceName));
|
|
7833
7852
|
url_ = url_.replace(/[?&]$/, "");
|
|
7834
7853
|
let options_ = {
|
|
@@ -7923,7 +7942,7 @@ export class DocumentsClient extends AuthorizedApiBase {
|
|
|
7923
7942
|
checkIfImportedDocumentExists(importedReference) {
|
|
7924
7943
|
let url_ = this.baseUrl + "/documents/importedrevisionexists?";
|
|
7925
7944
|
if (importedReference === null)
|
|
7926
|
-
throw new Error("The parameter 'importedReference' cannot be null.");
|
|
7945
|
+
throw new globalThis.Error("The parameter 'importedReference' cannot be null.");
|
|
7927
7946
|
else if (importedReference !== undefined)
|
|
7928
7947
|
url_ += "importedReference=" + encodeURIComponent("" + importedReference) + "&";
|
|
7929
7948
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -7972,7 +7991,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
7972
7991
|
listDocumentTypes(includeInactive) {
|
|
7973
7992
|
let url_ = this.baseUrl + "/documenttypes?";
|
|
7974
7993
|
if (includeInactive === null)
|
|
7975
|
-
throw new Error("The parameter 'includeInactive' cannot be null.");
|
|
7994
|
+
throw new globalThis.Error("The parameter 'includeInactive' cannot be null.");
|
|
7976
7995
|
else if (includeInactive !== undefined)
|
|
7977
7996
|
url_ += "includeInactive=" + encodeURIComponent("" + includeInactive) + "&";
|
|
7978
7997
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -8057,7 +8076,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
8057
8076
|
getDocumentType(id) {
|
|
8058
8077
|
let url_ = this.baseUrl + "/documenttypes/{id}";
|
|
8059
8078
|
if (id === undefined || id === null)
|
|
8060
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
8079
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8061
8080
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8062
8081
|
url_ = url_.replace(/[?&]$/, "");
|
|
8063
8082
|
let options_ = {
|
|
@@ -8097,7 +8116,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
8097
8116
|
updateDocumentType(id, request) {
|
|
8098
8117
|
let url_ = this.baseUrl + "/documenttypes/{id}";
|
|
8099
8118
|
if (id === undefined || id === null)
|
|
8100
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
8119
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8101
8120
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8102
8121
|
url_ = url_.replace(/[?&]$/, "");
|
|
8103
8122
|
const content_ = JSON.stringify(request);
|
|
@@ -8143,7 +8162,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
8143
8162
|
deleteDocumentType(id) {
|
|
8144
8163
|
let url_ = this.baseUrl + "/documenttypes/{id}";
|
|
8145
8164
|
if (id === undefined || id === null)
|
|
8146
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
8165
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8147
8166
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8148
8167
|
url_ = url_.replace(/[?&]$/, "");
|
|
8149
8168
|
let options_ = {
|
|
@@ -8178,7 +8197,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
8178
8197
|
activateDocumentType(id) {
|
|
8179
8198
|
let url_ = this.baseUrl + "/documenttypes/{id}/activate";
|
|
8180
8199
|
if (id === undefined || id === null)
|
|
8181
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
8200
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8182
8201
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8183
8202
|
url_ = url_.replace(/[?&]$/, "");
|
|
8184
8203
|
let options_ = {
|
|
@@ -8213,7 +8232,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
8213
8232
|
deactivateDocumentType(id) {
|
|
8214
8233
|
let url_ = this.baseUrl + "/documenttypes/{id}/deactivate";
|
|
8215
8234
|
if (id === undefined || id === null)
|
|
8216
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
8235
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8217
8236
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8218
8237
|
url_ = url_.replace(/[?&]$/, "");
|
|
8219
8238
|
let options_ = {
|
|
@@ -8248,7 +8267,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
8248
8267
|
listDocumentTypeRules(id) {
|
|
8249
8268
|
let url_ = this.baseUrl + "/documenttypes/{id}/rules";
|
|
8250
8269
|
if (id === undefined || id === null)
|
|
8251
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
8270
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8252
8271
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8253
8272
|
url_ = url_.replace(/[?&]$/, "");
|
|
8254
8273
|
let options_ = {
|
|
@@ -8292,7 +8311,7 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
8292
8311
|
updateDocumentTypeRules(id, request) {
|
|
8293
8312
|
let url_ = this.baseUrl + "/documenttypes/{id}/rules";
|
|
8294
8313
|
if (id === undefined || id === null)
|
|
8295
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
8314
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8296
8315
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8297
8316
|
url_ = url_.replace(/[?&]$/, "");
|
|
8298
8317
|
const content_ = JSON.stringify(request);
|
|
@@ -8504,7 +8523,7 @@ export class ExternalAccessClient extends AuthorizedApiBase {
|
|
|
8504
8523
|
updateCompanyUser(id, request) {
|
|
8505
8524
|
let url_ = this.baseUrl + "/externalaccess/users/{id}";
|
|
8506
8525
|
if (id === undefined || id === null)
|
|
8507
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
8526
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8508
8527
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8509
8528
|
url_ = url_.replace(/[?&]$/, "");
|
|
8510
8529
|
const content_ = JSON.stringify(request);
|
|
@@ -8547,7 +8566,7 @@ export class ExternalAccessClient extends AuthorizedApiBase {
|
|
|
8547
8566
|
deleteCompanyUser(id, companyId) {
|
|
8548
8567
|
let url_ = this.baseUrl + "/externalaccess/users/{id}?";
|
|
8549
8568
|
if (id === undefined || id === null)
|
|
8550
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
8569
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8551
8570
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8552
8571
|
if (companyId !== undefined && companyId !== null)
|
|
8553
8572
|
url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
|
|
@@ -8666,7 +8685,7 @@ export class ExternalAccessClient extends AuthorizedApiBase {
|
|
|
8666
8685
|
deleteCompanyCustomer(tenantId) {
|
|
8667
8686
|
let url_ = this.baseUrl + "/externalaccess/customers/{tenantId}";
|
|
8668
8687
|
if (tenantId === undefined || tenantId === null)
|
|
8669
|
-
throw new Error("The parameter 'tenantId' must be defined.");
|
|
8688
|
+
throw new globalThis.Error("The parameter 'tenantId' must be defined.");
|
|
8670
8689
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
8671
8690
|
url_ = url_.replace(/[?&]$/, "");
|
|
8672
8691
|
let options_ = {
|
|
@@ -8920,7 +8939,7 @@ export class SuppliersClient extends AuthorizedApiBase {
|
|
|
8920
8939
|
deleteSupplierInvite(id) {
|
|
8921
8940
|
let url_ = this.baseUrl + "/suppliers/supplierinvites/{id}";
|
|
8922
8941
|
if (id === undefined || id === null)
|
|
8923
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
8942
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8924
8943
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8925
8944
|
url_ = url_.replace(/[?&]$/, "");
|
|
8926
8945
|
let options_ = {
|
|
@@ -8996,7 +9015,7 @@ export class SuppliersClient extends AuthorizedApiBase {
|
|
|
8996
9015
|
deleteSupplier(id) {
|
|
8997
9016
|
let url_ = this.baseUrl + "/suppliers/{id}";
|
|
8998
9017
|
if (id === undefined || id === null)
|
|
8999
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9018
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9000
9019
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9001
9020
|
url_ = url_.replace(/[?&]$/, "");
|
|
9002
9021
|
let options_ = {
|
|
@@ -9153,7 +9172,7 @@ export class CncFileTransferClient extends AuthorizedApiBase {
|
|
|
9153
9172
|
startCncMachineOperationTransferToCloud(id) {
|
|
9154
9173
|
let url_ = this.baseUrl + "/cncfiletransfer/operations/{id}/transfertocloud";
|
|
9155
9174
|
if (id === undefined || id === null)
|
|
9156
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9175
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9157
9176
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9158
9177
|
url_ = url_.replace(/[?&]$/, "");
|
|
9159
9178
|
let options_ = {
|
|
@@ -9193,7 +9212,7 @@ export class CncFileTransferClient extends AuthorizedApiBase {
|
|
|
9193
9212
|
startCncMachineOperationTransferToMachine(id) {
|
|
9194
9213
|
let url_ = this.baseUrl + "/cncfiletransfer/operations/{id}/transfertomachine";
|
|
9195
9214
|
if (id === undefined || id === null)
|
|
9196
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9215
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9197
9216
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9198
9217
|
url_ = url_.replace(/[?&]$/, "");
|
|
9199
9218
|
let options_ = {
|
|
@@ -9233,7 +9252,7 @@ export class CncFileTransferClient extends AuthorizedApiBase {
|
|
|
9233
9252
|
getTransferStatus(id) {
|
|
9234
9253
|
let url_ = this.baseUrl + "/cncfiletransfer/transfers/{id}";
|
|
9235
9254
|
if (id === undefined || id === null)
|
|
9236
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9255
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9237
9256
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9238
9257
|
url_ = url_.replace(/[?&]$/, "");
|
|
9239
9258
|
let options_ = {
|
|
@@ -9313,7 +9332,7 @@ export class CncFileTransferClient extends AuthorizedApiBase {
|
|
|
9313
9332
|
getCamTransfer(path) {
|
|
9314
9333
|
let url_ = this.baseUrl + "/cncfiletransfer/transfers/cam?";
|
|
9315
9334
|
if (path === null)
|
|
9316
|
-
throw new Error("The parameter 'path' cannot be null.");
|
|
9335
|
+
throw new globalThis.Error("The parameter 'path' cannot be null.");
|
|
9317
9336
|
else if (path !== undefined)
|
|
9318
9337
|
url_ += "path=" + encodeURIComponent("" + path) + "&";
|
|
9319
9338
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -9483,7 +9502,7 @@ export class CncSetupAgentClient extends AuthorizedApiBase {
|
|
|
9483
9502
|
createUploadProgramsInfo(id, request) {
|
|
9484
9503
|
let url_ = this.baseUrl + "/cncsetupagent/operations/{id}/programs";
|
|
9485
9504
|
if (id === undefined || id === null)
|
|
9486
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9505
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9487
9506
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9488
9507
|
url_ = url_.replace(/[?&]$/, "");
|
|
9489
9508
|
const content_ = JSON.stringify(request);
|
|
@@ -9530,7 +9549,7 @@ export class CncSetupAgentClient extends AuthorizedApiBase {
|
|
|
9530
9549
|
setTransferStatus(id, request) {
|
|
9531
9550
|
let url_ = this.baseUrl + "/cncsetupagent/transfers/{id}";
|
|
9532
9551
|
if (id === undefined || id === null)
|
|
9533
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9552
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9534
9553
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9535
9554
|
url_ = url_.replace(/[?&]$/, "");
|
|
9536
9555
|
const content_ = JSON.stringify(request);
|
|
@@ -9577,7 +9596,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
9577
9596
|
getCncMachine(id) {
|
|
9578
9597
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}";
|
|
9579
9598
|
if (id === undefined || id === null)
|
|
9580
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9599
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9581
9600
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9582
9601
|
url_ = url_.replace(/[?&]$/, "");
|
|
9583
9602
|
let options_ = {
|
|
@@ -9617,7 +9636,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
9617
9636
|
updateCncMachine(id, request) {
|
|
9618
9637
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}";
|
|
9619
9638
|
if (id === undefined || id === null)
|
|
9620
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9639
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9621
9640
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9622
9641
|
url_ = url_.replace(/[?&]$/, "");
|
|
9623
9642
|
const content_ = JSON.stringify(request);
|
|
@@ -9660,7 +9679,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
9660
9679
|
deleteCncMachine(id) {
|
|
9661
9680
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}";
|
|
9662
9681
|
if (id === undefined || id === null)
|
|
9663
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9682
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9664
9683
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9665
9684
|
url_ = url_.replace(/[?&]$/, "");
|
|
9666
9685
|
let options_ = {
|
|
@@ -9778,7 +9797,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
9778
9797
|
getCncMachineCommunicationSettings(id) {
|
|
9779
9798
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}/communicationsettings";
|
|
9780
9799
|
if (id === undefined || id === null)
|
|
9781
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9800
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9782
9801
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9783
9802
|
url_ = url_.replace(/[?&]$/, "");
|
|
9784
9803
|
let options_ = {
|
|
@@ -9818,7 +9837,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
9818
9837
|
updateCncMachineCommunicationSettings(id, request) {
|
|
9819
9838
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}/communicationsettings";
|
|
9820
9839
|
if (id === undefined || id === null)
|
|
9821
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9840
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9822
9841
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9823
9842
|
url_ = url_.replace(/[?&]$/, "");
|
|
9824
9843
|
const content_ = JSON.stringify(request);
|
|
@@ -9861,7 +9880,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
9861
9880
|
deleteCncMachineCommunicationSettings(id) {
|
|
9862
9881
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}/communicationsettings";
|
|
9863
9882
|
if (id === undefined || id === null)
|
|
9864
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9883
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9865
9884
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9866
9885
|
url_ = url_.replace(/[?&]$/, "");
|
|
9867
9886
|
let options_ = {
|
|
@@ -9936,7 +9955,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
9936
9955
|
updateCncPart(id, request) {
|
|
9937
9956
|
let url_ = this.baseUrl + "/cncsetup/parts/{id}";
|
|
9938
9957
|
if (id === undefined || id === null)
|
|
9939
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
9958
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9940
9959
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9941
9960
|
url_ = url_.replace(/[?&]$/, "");
|
|
9942
9961
|
const content_ = JSON.stringify(request);
|
|
@@ -9979,7 +9998,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
9979
9998
|
deleteCncPart(id) {
|
|
9980
9999
|
let url_ = this.baseUrl + "/cncsetup/parts/{id}";
|
|
9981
10000
|
if (id === undefined || id === null)
|
|
9982
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10001
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
9983
10002
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9984
10003
|
url_ = url_.replace(/[?&]$/, "");
|
|
9985
10004
|
let options_ = {
|
|
@@ -10024,7 +10043,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10024
10043
|
getCncPart(id) {
|
|
10025
10044
|
let url_ = this.baseUrl + "/cncsetup/parts/{id}";
|
|
10026
10045
|
if (id === undefined || id === null)
|
|
10027
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10046
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10028
10047
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10029
10048
|
url_ = url_.replace(/[?&]$/, "");
|
|
10030
10049
|
let options_ = {
|
|
@@ -10183,7 +10202,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10183
10202
|
createUploadPartDrawingInfo(id, request) {
|
|
10184
10203
|
let url_ = this.baseUrl + "/cncsetup/parts/{id}/drawing";
|
|
10185
10204
|
if (id === undefined || id === null)
|
|
10186
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10205
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10187
10206
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10188
10207
|
url_ = url_.replace(/[?&]$/, "");
|
|
10189
10208
|
const content_ = JSON.stringify(request);
|
|
@@ -10226,7 +10245,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10226
10245
|
getCncPartDrawing(id) {
|
|
10227
10246
|
let url_ = this.baseUrl + "/cncsetup/parts/{id}/drawing";
|
|
10228
10247
|
if (id === undefined || id === null)
|
|
10229
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10248
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10230
10249
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10231
10250
|
url_ = url_.replace(/[?&]$/, "");
|
|
10232
10251
|
let options_ = {
|
|
@@ -10266,7 +10285,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10266
10285
|
deleteCncPartDrawing(id, request) {
|
|
10267
10286
|
let url_ = this.baseUrl + "/cncsetup/parts/{id}/drawing";
|
|
10268
10287
|
if (id === undefined || id === null)
|
|
10269
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10288
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10270
10289
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10271
10290
|
url_ = url_.replace(/[?&]$/, "");
|
|
10272
10291
|
const content_ = JSON.stringify(request);
|
|
@@ -10385,7 +10404,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10385
10404
|
updateCncMachineOperation(id, request) {
|
|
10386
10405
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}";
|
|
10387
10406
|
if (id === undefined || id === null)
|
|
10388
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10407
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10389
10408
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10390
10409
|
url_ = url_.replace(/[?&]$/, "");
|
|
10391
10410
|
const content_ = JSON.stringify(request);
|
|
@@ -10428,7 +10447,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10428
10447
|
getCncMachineOperation(id) {
|
|
10429
10448
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}";
|
|
10430
10449
|
if (id === undefined || id === null)
|
|
10431
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10450
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10432
10451
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10433
10452
|
url_ = url_.replace(/[?&]$/, "");
|
|
10434
10453
|
let options_ = {
|
|
@@ -10468,7 +10487,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10468
10487
|
deleteCncMachineOperation(id) {
|
|
10469
10488
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}";
|
|
10470
10489
|
if (id === undefined || id === null)
|
|
10471
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10490
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10472
10491
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10473
10492
|
url_ = url_.replace(/[?&]$/, "");
|
|
10474
10493
|
let options_ = {
|
|
@@ -10591,7 +10610,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10591
10610
|
createUploadProgramsInfo(id, request) {
|
|
10592
10611
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs";
|
|
10593
10612
|
if (id === undefined || id === null)
|
|
10594
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10613
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10595
10614
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10596
10615
|
url_ = url_.replace(/[?&]$/, "");
|
|
10597
10616
|
const content_ = JSON.stringify(request);
|
|
@@ -10638,10 +10657,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10638
10657
|
listCncMachineOperationsPrograms(id, filterDeleted) {
|
|
10639
10658
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs?";
|
|
10640
10659
|
if (id === undefined || id === null)
|
|
10641
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10660
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10642
10661
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10643
10662
|
if (filterDeleted === null)
|
|
10644
|
-
throw new Error("The parameter 'filterDeleted' cannot be null.");
|
|
10663
|
+
throw new globalThis.Error("The parameter 'filterDeleted' cannot be null.");
|
|
10645
10664
|
else if (filterDeleted !== undefined)
|
|
10646
10665
|
url_ += "filterDeleted=" + encodeURIComponent("" + filterDeleted) + "&";
|
|
10647
10666
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -10686,13 +10705,13 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10686
10705
|
listCncMachineOperationsProgramsArchive(id, filename, filterDeleted) {
|
|
10687
10706
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs/{filename}/archive?";
|
|
10688
10707
|
if (id === undefined || id === null)
|
|
10689
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10708
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10690
10709
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10691
10710
|
if (filename === undefined || filename === null)
|
|
10692
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
10711
|
+
throw new globalThis.Error("The parameter 'filename' must be defined.");
|
|
10693
10712
|
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
10694
10713
|
if (filterDeleted === null)
|
|
10695
|
-
throw new Error("The parameter 'filterDeleted' cannot be null.");
|
|
10714
|
+
throw new globalThis.Error("The parameter 'filterDeleted' cannot be null.");
|
|
10696
10715
|
else if (filterDeleted !== undefined)
|
|
10697
10716
|
url_ += "filterDeleted=" + encodeURIComponent("" + filterDeleted) + "&";
|
|
10698
10717
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -10737,10 +10756,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10737
10756
|
updateCncMachineOperationProgram(id, filename, request) {
|
|
10738
10757
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs/{filename}";
|
|
10739
10758
|
if (id === undefined || id === null)
|
|
10740
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10759
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10741
10760
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10742
10761
|
if (filename === undefined || filename === null)
|
|
10743
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
10762
|
+
throw new globalThis.Error("The parameter 'filename' must be defined.");
|
|
10744
10763
|
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
10745
10764
|
url_ = url_.replace(/[?&]$/, "");
|
|
10746
10765
|
const content_ = JSON.stringify(request);
|
|
@@ -10779,10 +10798,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10779
10798
|
deleteCncMachineOperationProgram(id, filename) {
|
|
10780
10799
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs/{filename}";
|
|
10781
10800
|
if (id === undefined || id === null)
|
|
10782
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10801
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10783
10802
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10784
10803
|
if (filename === undefined || filename === null)
|
|
10785
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
10804
|
+
throw new globalThis.Error("The parameter 'filename' must be defined.");
|
|
10786
10805
|
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
10787
10806
|
url_ = url_.replace(/[?&]$/, "");
|
|
10788
10807
|
let options_ = {
|
|
@@ -10817,13 +10836,13 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10817
10836
|
updateCncMachineOperationProgramVersion(id, filename, versionId, request) {
|
|
10818
10837
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs/{filename}/archive/{versionId}";
|
|
10819
10838
|
if (id === undefined || id === null)
|
|
10820
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10839
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10821
10840
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10822
10841
|
if (filename === undefined || filename === null)
|
|
10823
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
10842
|
+
throw new globalThis.Error("The parameter 'filename' must be defined.");
|
|
10824
10843
|
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
10825
10844
|
if (versionId === undefined || versionId === null)
|
|
10826
|
-
throw new Error("The parameter 'versionId' must be defined.");
|
|
10845
|
+
throw new globalThis.Error("The parameter 'versionId' must be defined.");
|
|
10827
10846
|
url_ = url_.replace("{versionId}", encodeURIComponent("" + versionId));
|
|
10828
10847
|
url_ = url_.replace(/[?&]$/, "");
|
|
10829
10848
|
const content_ = JSON.stringify(request);
|
|
@@ -10862,13 +10881,13 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10862
10881
|
deleteCncMachineOperationProgramVersion(id, filename, versionId) {
|
|
10863
10882
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs/{filename}/archive/{versionId}";
|
|
10864
10883
|
if (id === undefined || id === null)
|
|
10865
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10884
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10866
10885
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10867
10886
|
if (filename === undefined || filename === null)
|
|
10868
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
10887
|
+
throw new globalThis.Error("The parameter 'filename' must be defined.");
|
|
10869
10888
|
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
10870
10889
|
if (versionId === undefined || versionId === null)
|
|
10871
|
-
throw new Error("The parameter 'versionId' must be defined.");
|
|
10890
|
+
throw new globalThis.Error("The parameter 'versionId' must be defined.");
|
|
10872
10891
|
url_ = url_.replace("{versionId}", encodeURIComponent("" + versionId));
|
|
10873
10892
|
url_ = url_.replace(/[?&]$/, "");
|
|
10874
10893
|
let options_ = {
|
|
@@ -10912,7 +10931,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10912
10931
|
createUploadAttachmentInfo(id, request) {
|
|
10913
10932
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/attachments";
|
|
10914
10933
|
if (id === undefined || id === null)
|
|
10915
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10934
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10916
10935
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10917
10936
|
url_ = url_.replace(/[?&]$/, "");
|
|
10918
10937
|
const content_ = JSON.stringify(request);
|
|
@@ -10959,7 +10978,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
10959
10978
|
listCncMachineOperationsAttachments(id) {
|
|
10960
10979
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/attachments";
|
|
10961
10980
|
if (id === undefined || id === null)
|
|
10962
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
10981
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
10963
10982
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
10964
10983
|
url_ = url_.replace(/[?&]$/, "");
|
|
10965
10984
|
let options_ = {
|
|
@@ -11003,7 +11022,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11003
11022
|
getCncMachineOperationNotes(id) {
|
|
11004
11023
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
|
|
11005
11024
|
if (id === undefined || id === null)
|
|
11006
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11025
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11007
11026
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11008
11027
|
url_ = url_.replace(/[?&]$/, "");
|
|
11009
11028
|
let options_ = {
|
|
@@ -11043,7 +11062,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11043
11062
|
saveCncMachineOperationNotes(id, request) {
|
|
11044
11063
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
|
|
11045
11064
|
if (id === undefined || id === null)
|
|
11046
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11065
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11047
11066
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11048
11067
|
url_ = url_.replace(/[?&]$/, "");
|
|
11049
11068
|
const content_ = JSON.stringify(request);
|
|
@@ -11086,10 +11105,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11086
11105
|
deleteCncMachineOperationAttachment(operationId, filename) {
|
|
11087
11106
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/attachments/{filename}";
|
|
11088
11107
|
if (operationId === undefined || operationId === null)
|
|
11089
|
-
throw new Error("The parameter 'operationId' must be defined.");
|
|
11108
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
11090
11109
|
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
11091
11110
|
if (filename === undefined || filename === null)
|
|
11092
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
11111
|
+
throw new globalThis.Error("The parameter 'filename' must be defined.");
|
|
11093
11112
|
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
11094
11113
|
url_ = url_.replace(/[?&]$/, "");
|
|
11095
11114
|
let options_ = {
|
|
@@ -11124,7 +11143,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11124
11143
|
listCncMachineOperationsByPart(id) {
|
|
11125
11144
|
let url_ = this.baseUrl + "/cncsetup/parts/{id}/operations";
|
|
11126
11145
|
if (id === undefined || id === null)
|
|
11127
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11146
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11128
11147
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11129
11148
|
url_ = url_.replace(/[?&]$/, "");
|
|
11130
11149
|
let options_ = {
|
|
@@ -11209,7 +11228,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11209
11228
|
createCncMachineOperationTool(id, request) {
|
|
11210
11229
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/tools";
|
|
11211
11230
|
if (id === undefined || id === null)
|
|
11212
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11231
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11213
11232
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11214
11233
|
url_ = url_.replace(/[?&]$/, "");
|
|
11215
11234
|
const content_ = JSON.stringify(request);
|
|
@@ -11252,7 +11271,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11252
11271
|
listCncToolByOperation(id) {
|
|
11253
11272
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/tools";
|
|
11254
11273
|
if (id === undefined || id === null)
|
|
11255
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11274
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11256
11275
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11257
11276
|
url_ = url_.replace(/[?&]$/, "");
|
|
11258
11277
|
let options_ = {
|
|
@@ -11296,10 +11315,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11296
11315
|
updateCncMachineOperationTool(operationId, id, request) {
|
|
11297
11316
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}";
|
|
11298
11317
|
if (operationId === undefined || operationId === null)
|
|
11299
|
-
throw new Error("The parameter 'operationId' must be defined.");
|
|
11318
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
11300
11319
|
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
11301
11320
|
if (id === undefined || id === null)
|
|
11302
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11321
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11303
11322
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11304
11323
|
url_ = url_.replace(/[?&]$/, "");
|
|
11305
11324
|
const content_ = JSON.stringify(request);
|
|
@@ -11342,10 +11361,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11342
11361
|
deleteCncMachineOperationTool(operationId, id) {
|
|
11343
11362
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}";
|
|
11344
11363
|
if (operationId === undefined || operationId === null)
|
|
11345
|
-
throw new Error("The parameter 'operationId' must be defined.");
|
|
11364
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
11346
11365
|
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
11347
11366
|
if (id === undefined || id === null)
|
|
11348
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11367
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11349
11368
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11350
11369
|
url_ = url_.replace(/[?&]$/, "");
|
|
11351
11370
|
let options_ = {
|
|
@@ -11380,10 +11399,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11380
11399
|
uploadOperationCncToolImage(operationId, id, request) {
|
|
11381
11400
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/uploadimage";
|
|
11382
11401
|
if (operationId === undefined || operationId === null)
|
|
11383
|
-
throw new Error("The parameter 'operationId' must be defined.");
|
|
11402
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
11384
11403
|
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
11385
11404
|
if (id === undefined || id === null)
|
|
11386
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11405
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11387
11406
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11388
11407
|
url_ = url_.replace(/[?&]$/, "");
|
|
11389
11408
|
const content_ = JSON.stringify(request);
|
|
@@ -11426,13 +11445,13 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11426
11445
|
deleteCncMachineOperationToolImage(operationId, id, filename) {
|
|
11427
11446
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/{filename}";
|
|
11428
11447
|
if (operationId === undefined || operationId === null)
|
|
11429
|
-
throw new Error("The parameter 'operationId' must be defined.");
|
|
11448
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
11430
11449
|
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
11431
11450
|
if (id === undefined || id === null)
|
|
11432
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11451
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11433
11452
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11434
11453
|
if (filename === undefined || filename === null)
|
|
11435
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
11454
|
+
throw new globalThis.Error("The parameter 'filename' must be defined.");
|
|
11436
11455
|
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
11437
11456
|
url_ = url_.replace(/[?&]$/, "");
|
|
11438
11457
|
let options_ = {
|
|
@@ -11467,7 +11486,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11467
11486
|
createCncMachineTool(id, request) {
|
|
11468
11487
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}/tools";
|
|
11469
11488
|
if (id === undefined || id === null)
|
|
11470
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11489
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11471
11490
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11472
11491
|
url_ = url_.replace(/[?&]$/, "");
|
|
11473
11492
|
const content_ = JSON.stringify(request);
|
|
@@ -11510,7 +11529,7 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11510
11529
|
listCncToolByCncMachine(id) {
|
|
11511
11530
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}/tools";
|
|
11512
11531
|
if (id === undefined || id === null)
|
|
11513
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11532
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11514
11533
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11515
11534
|
url_ = url_.replace(/[?&]$/, "");
|
|
11516
11535
|
let options_ = {
|
|
@@ -11554,10 +11573,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11554
11573
|
updateCncMachineTool(cncMachineId, id, request) {
|
|
11555
11574
|
let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools/{id}";
|
|
11556
11575
|
if (cncMachineId === undefined || cncMachineId === null)
|
|
11557
|
-
throw new Error("The parameter 'cncMachineId' must be defined.");
|
|
11576
|
+
throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
|
|
11558
11577
|
url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
|
|
11559
11578
|
if (id === undefined || id === null)
|
|
11560
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11579
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11561
11580
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11562
11581
|
url_ = url_.replace(/[?&]$/, "");
|
|
11563
11582
|
const content_ = JSON.stringify(request);
|
|
@@ -11600,10 +11619,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11600
11619
|
deleteCncMachineTool(cncMachineId, id) {
|
|
11601
11620
|
let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools/{id}";
|
|
11602
11621
|
if (cncMachineId === undefined || cncMachineId === null)
|
|
11603
|
-
throw new Error("The parameter 'cncMachineId' must be defined.");
|
|
11622
|
+
throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
|
|
11604
11623
|
url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
|
|
11605
11624
|
if (id === undefined || id === null)
|
|
11606
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11625
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11607
11626
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11608
11627
|
url_ = url_.replace(/[?&]$/, "");
|
|
11609
11628
|
let options_ = {
|
|
@@ -11638,10 +11657,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11638
11657
|
uploadCncMachineToolImage(machineId, id, request) {
|
|
11639
11658
|
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
|
|
11640
11659
|
if (machineId === undefined || machineId === null)
|
|
11641
|
-
throw new Error("The parameter 'machineId' must be defined.");
|
|
11660
|
+
throw new globalThis.Error("The parameter 'machineId' must be defined.");
|
|
11642
11661
|
url_ = url_.replace("{machineId}", encodeURIComponent("" + machineId));
|
|
11643
11662
|
if (id === undefined || id === null)
|
|
11644
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11663
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11645
11664
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11646
11665
|
url_ = url_.replace(/[?&]$/, "");
|
|
11647
11666
|
const content_ = JSON.stringify(request);
|
|
@@ -11684,13 +11703,13 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11684
11703
|
deleteCncMachineToolImage(machineId, id, filename) {
|
|
11685
11704
|
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/{filename}";
|
|
11686
11705
|
if (machineId === undefined || machineId === null)
|
|
11687
|
-
throw new Error("The parameter 'machineId' must be defined.");
|
|
11706
|
+
throw new globalThis.Error("The parameter 'machineId' must be defined.");
|
|
11688
11707
|
url_ = url_.replace("{machineId}", encodeURIComponent("" + machineId));
|
|
11689
11708
|
if (id === undefined || id === null)
|
|
11690
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
11709
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
11691
11710
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11692
11711
|
if (filename === undefined || filename === null)
|
|
11693
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
11712
|
+
throw new globalThis.Error("The parameter 'filename' must be defined.");
|
|
11694
11713
|
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
11695
11714
|
url_ = url_.replace(/[?&]$/, "");
|
|
11696
11715
|
let options_ = {
|
|
@@ -11926,7 +11945,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11926
11945
|
getFixture(fixtureId) {
|
|
11927
11946
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}";
|
|
11928
11947
|
if (fixtureId === undefined || fixtureId === null)
|
|
11929
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
11948
|
+
throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
|
|
11930
11949
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
11931
11950
|
url_ = url_.replace(/[?&]$/, "");
|
|
11932
11951
|
let options_ = {
|
|
@@ -12086,7 +12105,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
12086
12105
|
getFixtureInterfaceSuggestions(input, fixtureType) {
|
|
12087
12106
|
let url_ = this.baseUrl + "/fixtures/suggestion/interface?";
|
|
12088
12107
|
if (input === null)
|
|
12089
|
-
throw new Error("The parameter 'input' cannot be null.");
|
|
12108
|
+
throw new globalThis.Error("The parameter 'input' cannot be null.");
|
|
12090
12109
|
else if (input !== undefined)
|
|
12091
12110
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
12092
12111
|
if (fixtureType !== undefined && fixtureType !== null)
|
|
@@ -12133,7 +12152,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
12133
12152
|
getFixtureLocationSuggestions(input, fixtureType) {
|
|
12134
12153
|
let url_ = this.baseUrl + "/fixtures/suggestion/location?";
|
|
12135
12154
|
if (input === null)
|
|
12136
|
-
throw new Error("The parameter 'input' cannot be null.");
|
|
12155
|
+
throw new globalThis.Error("The parameter 'input' cannot be null.");
|
|
12137
12156
|
else if (input !== undefined)
|
|
12138
12157
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
12139
12158
|
if (fixtureType !== undefined && fixtureType !== null)
|
|
@@ -12180,7 +12199,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
12180
12199
|
listFixtureAttachments(fixtureId) {
|
|
12181
12200
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
|
|
12182
12201
|
if (fixtureId === undefined || fixtureId === null)
|
|
12183
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12202
|
+
throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
|
|
12184
12203
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12185
12204
|
url_ = url_.replace(/[?&]$/, "");
|
|
12186
12205
|
let options_ = {
|
|
@@ -12224,7 +12243,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
12224
12243
|
uploadFixtureAttachments(fixtureId, attachments) {
|
|
12225
12244
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
|
|
12226
12245
|
if (fixtureId === undefined || fixtureId === null)
|
|
12227
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12246
|
+
throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
|
|
12228
12247
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12229
12248
|
url_ = url_.replace(/[?&]$/, "");
|
|
12230
12249
|
const content_ = JSON.stringify(attachments);
|
|
@@ -12271,7 +12290,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
12271
12290
|
deleteFixtureAttachments(fixtureId, filenames) {
|
|
12272
12291
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
|
|
12273
12292
|
if (fixtureId === undefined || fixtureId === null)
|
|
12274
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12293
|
+
throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
|
|
12275
12294
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12276
12295
|
url_ = url_.replace(/[?&]$/, "");
|
|
12277
12296
|
const content_ = JSON.stringify(filenames);
|
|
@@ -12310,7 +12329,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
12310
12329
|
listFixtureImages(fixtureId) {
|
|
12311
12330
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
|
|
12312
12331
|
if (fixtureId === undefined || fixtureId === null)
|
|
12313
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12332
|
+
throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
|
|
12314
12333
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12315
12334
|
url_ = url_.replace(/[?&]$/, "");
|
|
12316
12335
|
let options_ = {
|
|
@@ -12354,7 +12373,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
12354
12373
|
uploadFixtureImages(fixtureId, attachments) {
|
|
12355
12374
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
|
|
12356
12375
|
if (fixtureId === undefined || fixtureId === null)
|
|
12357
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12376
|
+
throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
|
|
12358
12377
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12359
12378
|
url_ = url_.replace(/[?&]$/, "");
|
|
12360
12379
|
const content_ = JSON.stringify(attachments);
|
|
@@ -12401,7 +12420,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
12401
12420
|
deleteFixtureImages(fixtureId, filenames) {
|
|
12402
12421
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
|
|
12403
12422
|
if (fixtureId === undefined || fixtureId === null)
|
|
12404
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12423
|
+
throw new globalThis.Error("The parameter 'fixtureId' must be defined.");
|
|
12405
12424
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12406
12425
|
url_ = url_.replace(/[?&]$/, "");
|
|
12407
12426
|
const content_ = JSON.stringify(filenames);
|
|
@@ -12440,7 +12459,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
12440
12459
|
operationAddFixture(operationId, fixtureIds) {
|
|
12441
12460
|
let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
|
|
12442
12461
|
if (operationId === undefined || operationId === null)
|
|
12443
|
-
throw new Error("The parameter 'operationId' must be defined.");
|
|
12462
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
12444
12463
|
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
12445
12464
|
url_ = url_.replace(/[?&]$/, "");
|
|
12446
12465
|
const content_ = JSON.stringify(fixtureIds);
|
|
@@ -12483,7 +12502,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
12483
12502
|
operationRemoveFixture(operationId, fixtureIds) {
|
|
12484
12503
|
let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
|
|
12485
12504
|
if (operationId === undefined || operationId === null)
|
|
12486
|
-
throw new Error("The parameter 'operationId' must be defined.");
|
|
12505
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
12487
12506
|
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
12488
12507
|
url_ = url_.replace(/[?&]$/, "");
|
|
12489
12508
|
const content_ = JSON.stringify(fixtureIds);
|
|
@@ -12724,7 +12743,7 @@ export class AssetsClient extends AuthorizedApiBase {
|
|
|
12724
12743
|
if (source !== undefined && source !== null)
|
|
12725
12744
|
url_ += "source=" + encodeURIComponent("" + source) + "&";
|
|
12726
12745
|
if (limit === null)
|
|
12727
|
-
throw new Error("The parameter 'limit' cannot be null.");
|
|
12746
|
+
throw new globalThis.Error("The parameter 'limit' cannot be null.");
|
|
12728
12747
|
else if (limit !== undefined)
|
|
12729
12748
|
url_ += "limit=" + encodeURIComponent("" + limit) + "&";
|
|
12730
12749
|
if (continuationToken !== undefined && continuationToken !== null)
|
|
@@ -12811,7 +12830,7 @@ export class AssetsClient extends AuthorizedApiBase {
|
|
|
12811
12830
|
if (description !== undefined && description !== null)
|
|
12812
12831
|
url_ += "description=" + encodeURIComponent("" + description) + "&";
|
|
12813
12832
|
if (limit === null)
|
|
12814
|
-
throw new Error("The parameter 'limit' cannot be null.");
|
|
12833
|
+
throw new globalThis.Error("The parameter 'limit' cannot be null.");
|
|
12815
12834
|
else if (limit !== undefined)
|
|
12816
12835
|
url_ += "limit=" + encodeURIComponent("" + limit) + "&";
|
|
12817
12836
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -12856,7 +12875,7 @@ export class AssetsClient extends AuthorizedApiBase {
|
|
|
12856
12875
|
getAssetById(id) {
|
|
12857
12876
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
12858
12877
|
if (id === undefined || id === null)
|
|
12859
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
12878
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
12860
12879
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
12861
12880
|
url_ = url_.replace(/[?&]$/, "");
|
|
12862
12881
|
let options_ = {
|
|
@@ -12896,7 +12915,7 @@ export class AssetsClient extends AuthorizedApiBase {
|
|
|
12896
12915
|
updateAsset(id, request) {
|
|
12897
12916
|
let url_ = this.baseUrl + "/assets/{id}";
|
|
12898
12917
|
if (id === undefined || id === null)
|
|
12899
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
12918
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
12900
12919
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
12901
12920
|
url_ = url_.replace(/[?&]$/, "");
|
|
12902
12921
|
const content_ = JSON.stringify(request);
|
|
@@ -12939,7 +12958,7 @@ export class AssetsClient extends AuthorizedApiBase {
|
|
|
12939
12958
|
getAssetStructureById(id) {
|
|
12940
12959
|
let url_ = this.baseUrl + "/assets/{id}/structure";
|
|
12941
12960
|
if (id === undefined || id === null)
|
|
12942
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
12961
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
12943
12962
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
12944
12963
|
url_ = url_.replace(/[?&]$/, "");
|
|
12945
12964
|
let options_ = {
|
|
@@ -13186,7 +13205,7 @@ export class AlertsClient extends AuthorizedApiBase {
|
|
|
13186
13205
|
updateMachineInactivityAlertSubscription(id, request) {
|
|
13187
13206
|
let url_ = this.baseUrl + "/alerts/machineinactivity/subscriptions/{id}";
|
|
13188
13207
|
if (id === undefined || id === null)
|
|
13189
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
13208
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13190
13209
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13191
13210
|
url_ = url_.replace(/[?&]$/, "");
|
|
13192
13211
|
const content_ = JSON.stringify(request);
|
|
@@ -13225,7 +13244,7 @@ export class AlertsClient extends AuthorizedApiBase {
|
|
|
13225
13244
|
deleteMachineInactivitySubscription(id) {
|
|
13226
13245
|
let url_ = this.baseUrl + "/alerts/machineinactivity/subscriptions/{id}";
|
|
13227
13246
|
if (id === undefined || id === null)
|
|
13228
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
13247
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13229
13248
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13230
13249
|
url_ = url_.replace(/[?&]$/, "");
|
|
13231
13250
|
let options_ = {
|
|
@@ -13606,7 +13625,7 @@ export class WorkspacesClient extends AuthorizedApiBase {
|
|
|
13606
13625
|
getWorkspace(id) {
|
|
13607
13626
|
let url_ = this.baseUrl + "/workspaces/{id}";
|
|
13608
13627
|
if (id === undefined || id === null)
|
|
13609
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
13628
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13610
13629
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13611
13630
|
url_ = url_.replace(/[?&]$/, "");
|
|
13612
13631
|
let options_ = {
|
|
@@ -13646,7 +13665,7 @@ export class WorkspacesClient extends AuthorizedApiBase {
|
|
|
13646
13665
|
deleteWorkspace(id) {
|
|
13647
13666
|
let url_ = this.baseUrl + "/workspaces/{id}";
|
|
13648
13667
|
if (id === undefined || id === null)
|
|
13649
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
13668
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13650
13669
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13651
13670
|
url_ = url_.replace(/[?&]$/, "");
|
|
13652
13671
|
let options_ = {
|
|
@@ -13681,7 +13700,7 @@ export class WorkspacesClient extends AuthorizedApiBase {
|
|
|
13681
13700
|
updateWorkspace(id, request) {
|
|
13682
13701
|
let url_ = this.baseUrl + "/workspaces/{id}";
|
|
13683
13702
|
if (id === undefined || id === null)
|
|
13684
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
13703
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13685
13704
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13686
13705
|
url_ = url_.replace(/[?&]$/, "");
|
|
13687
13706
|
const content_ = JSON.stringify(request);
|
|
@@ -13724,7 +13743,7 @@ export class WorkspacesClient extends AuthorizedApiBase {
|
|
|
13724
13743
|
updateWorkspaceWidgets(id, request) {
|
|
13725
13744
|
let url_ = this.baseUrl + "/workspaces/{id}/widgets";
|
|
13726
13745
|
if (id === undefined || id === null)
|
|
13727
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
13746
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13728
13747
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13729
13748
|
url_ = url_.replace(/[?&]$/, "");
|
|
13730
13749
|
const content_ = JSON.stringify(request);
|
|
@@ -13767,10 +13786,10 @@ export class WorkspacesClient extends AuthorizedApiBase {
|
|
|
13767
13786
|
updateWorkspaceWidgetSettings(id, widgetId, request) {
|
|
13768
13787
|
let url_ = this.baseUrl + "/workspaces/{id}/{widgetId}/settings";
|
|
13769
13788
|
if (id === undefined || id === null)
|
|
13770
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
13789
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13771
13790
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13772
13791
|
if (widgetId === undefined || widgetId === null)
|
|
13773
|
-
throw new Error("The parameter 'widgetId' must be defined.");
|
|
13792
|
+
throw new globalThis.Error("The parameter 'widgetId' must be defined.");
|
|
13774
13793
|
url_ = url_.replace("{widgetId}", encodeURIComponent("" + widgetId));
|
|
13775
13794
|
url_ = url_.replace(/[?&]$/, "");
|
|
13776
13795
|
const content_ = JSON.stringify(request);
|
|
@@ -13813,10 +13832,10 @@ export class WorkspacesClient extends AuthorizedApiBase {
|
|
|
13813
13832
|
deleteWorkspaceWidget(id, widgetId) {
|
|
13814
13833
|
let url_ = this.baseUrl + "/workspaces/{id}/{widgetId}";
|
|
13815
13834
|
if (id === undefined || id === null)
|
|
13816
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
13835
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13817
13836
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13818
13837
|
if (widgetId === undefined || widgetId === null)
|
|
13819
|
-
throw new Error("The parameter 'widgetId' must be defined.");
|
|
13838
|
+
throw new globalThis.Error("The parameter 'widgetId' must be defined.");
|
|
13820
13839
|
url_ = url_.replace("{widgetId}", encodeURIComponent("" + widgetId));
|
|
13821
13840
|
url_ = url_.replace(/[?&]$/, "");
|
|
13822
13841
|
let options_ = {
|
|
@@ -13904,7 +13923,7 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
|
13904
13923
|
getWorkspaceTemplate(id) {
|
|
13905
13924
|
let url_ = this.baseUrl + "/workspaces/templates/{id}";
|
|
13906
13925
|
if (id === undefined || id === null)
|
|
13907
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
13926
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13908
13927
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13909
13928
|
url_ = url_.replace(/[?&]$/, "");
|
|
13910
13929
|
let options_ = {
|
|
@@ -13944,7 +13963,7 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
|
13944
13963
|
deleteWorkspaceTemplate(id) {
|
|
13945
13964
|
let url_ = this.baseUrl + "/workspaces/templates/{id}";
|
|
13946
13965
|
if (id === undefined || id === null)
|
|
13947
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
13966
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13948
13967
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13949
13968
|
url_ = url_.replace(/[?&]$/, "");
|
|
13950
13969
|
let options_ = {
|
|
@@ -13979,7 +13998,7 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
|
13979
13998
|
updateWorkspaceTemplate(id, request) {
|
|
13980
13999
|
let url_ = this.baseUrl + "/workspaces/templates/{id}";
|
|
13981
14000
|
if (id === undefined || id === null)
|
|
13982
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
14001
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13983
14002
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13984
14003
|
url_ = url_.replace(/[?&]$/, "");
|
|
13985
14004
|
const content_ = JSON.stringify(request);
|
|
@@ -14022,7 +14041,7 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
|
14022
14041
|
updateWorkspaceTemplateWidgets(id, request) {
|
|
14023
14042
|
let url_ = this.baseUrl + "/workspaces/templates/{id}/widgets";
|
|
14024
14043
|
if (id === undefined || id === null)
|
|
14025
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
14044
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
14026
14045
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
14027
14046
|
url_ = url_.replace(/[?&]$/, "");
|
|
14028
14047
|
const content_ = JSON.stringify(request);
|
|
@@ -14065,10 +14084,10 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
|
14065
14084
|
updateWorkspaceTemplateWidgetSettings(id, widgetId, request) {
|
|
14066
14085
|
let url_ = this.baseUrl + "/workspaces/templates/{id}/{widgetId}/settings";
|
|
14067
14086
|
if (id === undefined || id === null)
|
|
14068
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
14087
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
14069
14088
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
14070
14089
|
if (widgetId === undefined || widgetId === null)
|
|
14071
|
-
throw new Error("The parameter 'widgetId' must be defined.");
|
|
14090
|
+
throw new globalThis.Error("The parameter 'widgetId' must be defined.");
|
|
14072
14091
|
url_ = url_.replace("{widgetId}", encodeURIComponent("" + widgetId));
|
|
14073
14092
|
url_ = url_.replace(/[?&]$/, "");
|
|
14074
14093
|
const content_ = JSON.stringify(request);
|
|
@@ -14111,10 +14130,10 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
|
14111
14130
|
deleteWorkspaceTemplateWidget(id, widgetId) {
|
|
14112
14131
|
let url_ = this.baseUrl + "/workspaces/templates/{id}/{widgetId}";
|
|
14113
14132
|
if (id === undefined || id === null)
|
|
14114
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
14133
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
14115
14134
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
14116
14135
|
if (widgetId === undefined || widgetId === null)
|
|
14117
|
-
throw new Error("The parameter 'widgetId' must be defined.");
|
|
14136
|
+
throw new globalThis.Error("The parameter 'widgetId' must be defined.");
|
|
14118
14137
|
url_ = url_.replace("{widgetId}", encodeURIComponent("" + widgetId));
|
|
14119
14138
|
url_ = url_.replace(/[?&]$/, "");
|
|
14120
14139
|
let options_ = {
|
|
@@ -14291,7 +14310,7 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
14291
14310
|
getBooking(bookingId) {
|
|
14292
14311
|
let url_ = this.baseUrl + "/move/booking/{bookingId}";
|
|
14293
14312
|
if (bookingId === undefined || bookingId === null)
|
|
14294
|
-
throw new Error("The parameter 'bookingId' must be defined.");
|
|
14313
|
+
throw new globalThis.Error("The parameter 'bookingId' must be defined.");
|
|
14295
14314
|
url_ = url_.replace("{bookingId}", encodeURIComponent("" + bookingId));
|
|
14296
14315
|
url_ = url_.replace(/[?&]$/, "");
|
|
14297
14316
|
let options_ = {
|
|
@@ -14331,7 +14350,7 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
14331
14350
|
getParcelBooking(parcelId) {
|
|
14332
14351
|
let url_ = this.baseUrl + "/move/booking/parcel/{parcelId}";
|
|
14333
14352
|
if (parcelId === undefined || parcelId === null)
|
|
14334
|
-
throw new Error("The parameter 'parcelId' must be defined.");
|
|
14353
|
+
throw new globalThis.Error("The parameter 'parcelId' must be defined.");
|
|
14335
14354
|
url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
|
|
14336
14355
|
url_ = url_.replace(/[?&]$/, "");
|
|
14337
14356
|
let options_ = {
|
|
@@ -14685,7 +14704,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
14685
14704
|
if (locationProfiles !== undefined && locationProfiles !== null)
|
|
14686
14705
|
locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
|
|
14687
14706
|
if (count === null)
|
|
14688
|
-
throw new Error("The parameter 'count' cannot be null.");
|
|
14707
|
+
throw new globalThis.Error("The parameter 'count' cannot be null.");
|
|
14689
14708
|
else if (count !== undefined)
|
|
14690
14709
|
url_ += "count=" + encodeURIComponent("" + count) + "&";
|
|
14691
14710
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -14730,7 +14749,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
14730
14749
|
suggestionsParcel(parcelId) {
|
|
14731
14750
|
let url_ = this.baseUrl + "/move/locations/suggestionsparcel?";
|
|
14732
14751
|
if (parcelId === null)
|
|
14733
|
-
throw new Error("The parameter 'parcelId' cannot be null.");
|
|
14752
|
+
throw new globalThis.Error("The parameter 'parcelId' cannot be null.");
|
|
14734
14753
|
else if (parcelId !== undefined)
|
|
14735
14754
|
parcelId && parcelId.forEach(item => { url_ += "parcelId=" + encodeURIComponent("" + item) + "&"; });
|
|
14736
14755
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -14771,7 +14790,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
14771
14790
|
suggestionsGeneral(suggestionType) {
|
|
14772
14791
|
let url_ = this.baseUrl + "/move/locations/suggestionsgeneral?";
|
|
14773
14792
|
if (suggestionType === null)
|
|
14774
|
-
throw new Error("The parameter 'suggestionType' cannot be null.");
|
|
14793
|
+
throw new globalThis.Error("The parameter 'suggestionType' cannot be null.");
|
|
14775
14794
|
else if (suggestionType !== undefined)
|
|
14776
14795
|
url_ += "suggestionType=" + encodeURIComponent("" + suggestionType) + "&";
|
|
14777
14796
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -14812,7 +14831,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
14812
14831
|
suggestionsMaterial(parcelId, operation) {
|
|
14813
14832
|
let url_ = this.baseUrl + "/move/locations/suggestionsmaterial?";
|
|
14814
14833
|
if (parcelId === null)
|
|
14815
|
-
throw new Error("The parameter 'parcelId' cannot be null.");
|
|
14834
|
+
throw new globalThis.Error("The parameter 'parcelId' cannot be null.");
|
|
14816
14835
|
else if (parcelId !== undefined)
|
|
14817
14836
|
url_ += "parcelId=" + encodeURIComponent("" + parcelId) + "&";
|
|
14818
14837
|
if (operation !== undefined && operation !== null)
|
|
@@ -14948,7 +14967,7 @@ export class MoveMaterialsClient extends AuthorizedApiBase {
|
|
|
14948
14967
|
removeMaterial(materialId) {
|
|
14949
14968
|
let url_ = this.baseUrl + "/move/materials/{materialId}";
|
|
14950
14969
|
if (materialId === undefined || materialId === null)
|
|
14951
|
-
throw new Error("The parameter 'materialId' must be defined.");
|
|
14970
|
+
throw new globalThis.Error("The parameter 'materialId' must be defined.");
|
|
14952
14971
|
url_ = url_.replace("{materialId}", encodeURIComponent("" + materialId));
|
|
14953
14972
|
url_ = url_.replace(/[?&]$/, "");
|
|
14954
14973
|
let options_ = {
|
|
@@ -14983,7 +15002,7 @@ export class MoveMaterialsClient extends AuthorizedApiBase {
|
|
|
14983
15002
|
updateMaterial(materialId, update) {
|
|
14984
15003
|
let url_ = this.baseUrl + "/move/materials/{materialId}";
|
|
14985
15004
|
if (materialId === undefined || materialId === null)
|
|
14986
|
-
throw new Error("The parameter 'materialId' must be defined.");
|
|
15005
|
+
throw new globalThis.Error("The parameter 'materialId' must be defined.");
|
|
14987
15006
|
url_ = url_.replace("{materialId}", encodeURIComponent("" + materialId));
|
|
14988
15007
|
url_ = url_.replace(/[?&]$/, "");
|
|
14989
15008
|
const content_ = JSON.stringify(update);
|
|
@@ -15288,10 +15307,10 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
15288
15307
|
getTrackingHistory(trackingId, includeActiveBookings) {
|
|
15289
15308
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
|
|
15290
15309
|
if (trackingId === undefined || trackingId === null)
|
|
15291
|
-
throw new Error("The parameter 'trackingId' must be defined.");
|
|
15310
|
+
throw new globalThis.Error("The parameter 'trackingId' must be defined.");
|
|
15292
15311
|
url_ = url_.replace("{trackingId}", encodeURIComponent("" + trackingId));
|
|
15293
15312
|
if (includeActiveBookings === null)
|
|
15294
|
-
throw new Error("The parameter 'includeActiveBookings' cannot be null.");
|
|
15313
|
+
throw new globalThis.Error("The parameter 'includeActiveBookings' cannot be null.");
|
|
15295
15314
|
else if (includeActiveBookings !== undefined)
|
|
15296
15315
|
url_ += "includeActiveBookings=" + encodeURIComponent("" + includeActiveBookings) + "&";
|
|
15297
15316
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -15332,10 +15351,10 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
15332
15351
|
getParcelTrackingHistory(parcelId, includeActiveBookings) {
|
|
15333
15352
|
let url_ = this.baseUrl + "/move/tracking/parcel/{parcelId}?";
|
|
15334
15353
|
if (parcelId === undefined || parcelId === null)
|
|
15335
|
-
throw new Error("The parameter 'parcelId' must be defined.");
|
|
15354
|
+
throw new globalThis.Error("The parameter 'parcelId' must be defined.");
|
|
15336
15355
|
url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
|
|
15337
15356
|
if (includeActiveBookings === null)
|
|
15338
|
-
throw new Error("The parameter 'includeActiveBookings' cannot be null.");
|
|
15357
|
+
throw new globalThis.Error("The parameter 'includeActiveBookings' cannot be null.");
|
|
15339
15358
|
else if (includeActiveBookings !== undefined)
|
|
15340
15359
|
url_ += "includeActiveBookings=" + encodeURIComponent("" + includeActiveBookings) + "&";
|
|
15341
15360
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -15508,7 +15527,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
15508
15527
|
deleteTrackingHistory(trackingId) {
|
|
15509
15528
|
let url_ = this.baseUrl + "/move/tracking/history/{trackingId}";
|
|
15510
15529
|
if (trackingId === undefined || trackingId === null)
|
|
15511
|
-
throw new Error("The parameter 'trackingId' must be defined.");
|
|
15530
|
+
throw new globalThis.Error("The parameter 'trackingId' must be defined.");
|
|
15512
15531
|
url_ = url_.replace("{trackingId}", encodeURIComponent("" + trackingId));
|
|
15513
15532
|
url_ = url_.replace(/[?&]$/, "");
|
|
15514
15533
|
let options_ = {
|
|
@@ -15669,7 +15688,7 @@ export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
|
15669
15688
|
assign(kind, labels) {
|
|
15670
15689
|
let url_ = this.baseUrl + "/move/settings/parcelcategories/assign/{kind}";
|
|
15671
15690
|
if (kind === undefined || kind === null)
|
|
15672
|
-
throw new Error("The parameter 'kind' must be defined.");
|
|
15691
|
+
throw new globalThis.Error("The parameter 'kind' must be defined.");
|
|
15673
15692
|
url_ = url_.replace("{kind}", encodeURIComponent("" + kind));
|
|
15674
15693
|
url_ = url_.replace(/[?&]$/, "");
|
|
15675
15694
|
const content_ = JSON.stringify(labels);
|
|
@@ -15717,7 +15736,7 @@ export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
|
15717
15736
|
delete(label) {
|
|
15718
15737
|
let url_ = this.baseUrl + "/move/settings/parcelcategories/{label}";
|
|
15719
15738
|
if (label === undefined || label === null)
|
|
15720
|
-
throw new Error("The parameter 'label' must be defined.");
|
|
15739
|
+
throw new globalThis.Error("The parameter 'label' must be defined.");
|
|
15721
15740
|
url_ = url_.replace("{label}", encodeURIComponent("" + label));
|
|
15722
15741
|
url_ = url_.replace(/[?&]$/, "");
|
|
15723
15742
|
let options_ = {
|
|
@@ -15752,10 +15771,10 @@ export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
|
15752
15771
|
removeAssignment(kind, label) {
|
|
15753
15772
|
let url_ = this.baseUrl + "/move/settings/parcelcategories/assign/{kind}/{label}";
|
|
15754
15773
|
if (kind === undefined || kind === null)
|
|
15755
|
-
throw new Error("The parameter 'kind' must be defined.");
|
|
15774
|
+
throw new globalThis.Error("The parameter 'kind' must be defined.");
|
|
15756
15775
|
url_ = url_.replace("{kind}", encodeURIComponent("" + kind));
|
|
15757
15776
|
if (label === undefined || label === null)
|
|
15758
|
-
throw new Error("The parameter 'label' must be defined.");
|
|
15777
|
+
throw new globalThis.Error("The parameter 'label' must be defined.");
|
|
15759
15778
|
url_ = url_.replace("{label}", encodeURIComponent("" + label));
|
|
15760
15779
|
url_ = url_.replace(/[?&]$/, "");
|
|
15761
15780
|
let options_ = {
|
|
@@ -15905,10 +15924,10 @@ export class MesDocumentsClient extends AuthorizedApiBase {
|
|
|
15905
15924
|
getDocument(drawingNumber, id) {
|
|
15906
15925
|
let url_ = this.baseUrl + "/mes/documents/drawings/{drawingNumber}/{id}";
|
|
15907
15926
|
if (drawingNumber === undefined || drawingNumber === null)
|
|
15908
|
-
throw new Error("The parameter 'drawingNumber' must be defined.");
|
|
15927
|
+
throw new globalThis.Error("The parameter 'drawingNumber' must be defined.");
|
|
15909
15928
|
url_ = url_.replace("{drawingNumber}", encodeURIComponent("" + drawingNumber));
|
|
15910
15929
|
if (id === undefined || id === null)
|
|
15911
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
15930
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
15912
15931
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
15913
15932
|
url_ = url_.replace(/[?&]$/, "");
|
|
15914
15933
|
let options_ = {
|
|
@@ -15956,7 +15975,7 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
|
|
|
15956
15975
|
getEngineeringChangeOrders(partNumber) {
|
|
15957
15976
|
let url_ = this.baseUrl + "/mes/engineering-change-orders?";
|
|
15958
15977
|
if (partNumber === null)
|
|
15959
|
-
throw new Error("The parameter 'partNumber' cannot be null.");
|
|
15978
|
+
throw new globalThis.Error("The parameter 'partNumber' cannot be null.");
|
|
15960
15979
|
else if (partNumber !== undefined)
|
|
15961
15980
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
15962
15981
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -16001,7 +16020,7 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
|
|
|
16001
16020
|
getEngineeringChangeOrderDetails(partNumber) {
|
|
16002
16021
|
let url_ = this.baseUrl + "/mes/engineering-change-order-details?";
|
|
16003
16022
|
if (partNumber === null)
|
|
16004
|
-
throw new Error("The parameter 'partNumber' cannot be null.");
|
|
16023
|
+
throw new globalThis.Error("The parameter 'partNumber' cannot be null.");
|
|
16005
16024
|
else if (partNumber !== undefined)
|
|
16006
16025
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
16007
16026
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -16174,7 +16193,7 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
16174
16193
|
updateMesLink(id, request) {
|
|
16175
16194
|
let url_ = this.baseUrl + "/mes/links/{id}";
|
|
16176
16195
|
if (id === undefined || id === null)
|
|
16177
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16196
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16178
16197
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16179
16198
|
url_ = url_.replace(/[?&]$/, "");
|
|
16180
16199
|
const content_ = JSON.stringify(request);
|
|
@@ -16222,7 +16241,7 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
16222
16241
|
deleteMesLink(id) {
|
|
16223
16242
|
let url_ = this.baseUrl + "/mes/links/{id}";
|
|
16224
16243
|
if (id === undefined || id === null)
|
|
16225
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16244
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16226
16245
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16227
16246
|
url_ = url_.replace(/[?&]$/, "");
|
|
16228
16247
|
let options_ = {
|
|
@@ -16313,7 +16332,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
16313
16332
|
getProductionOrder(id) {
|
|
16314
16333
|
let url_ = this.baseUrl + "/mes/productionorders/{id}";
|
|
16315
16334
|
if (id === undefined || id === null)
|
|
16316
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16335
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16317
16336
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16318
16337
|
url_ = url_.replace(/[?&]$/, "");
|
|
16319
16338
|
let options_ = {
|
|
@@ -16353,7 +16372,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
16353
16372
|
getProductionOrderBom(id, operation) {
|
|
16354
16373
|
let url_ = this.baseUrl + "/mes/productionorders/{id}/bom?";
|
|
16355
16374
|
if (id === undefined || id === null)
|
|
16356
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16375
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16357
16376
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16358
16377
|
if (operation !== undefined && operation !== null)
|
|
16359
16378
|
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
@@ -16399,10 +16418,10 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
16399
16418
|
getProductionOrderPickListSuggestion(id, operation) {
|
|
16400
16419
|
let url_ = this.baseUrl + "/mes/productionorders/{id}/picklist-suggestion?";
|
|
16401
16420
|
if (id === undefined || id === null)
|
|
16402
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16421
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16403
16422
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16404
16423
|
if (operation === null)
|
|
16405
|
-
throw new Error("The parameter 'operation' cannot be null.");
|
|
16424
|
+
throw new globalThis.Error("The parameter 'operation' cannot be null.");
|
|
16406
16425
|
else if (operation !== undefined)
|
|
16407
16426
|
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
16408
16427
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -16447,7 +16466,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
16447
16466
|
getProductionOrderConsumptions(id) {
|
|
16448
16467
|
let url_ = this.baseUrl + "/mes/productionorders/{id}/consumptions";
|
|
16449
16468
|
if (id === undefined || id === null)
|
|
16450
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16469
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16451
16470
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16452
16471
|
url_ = url_.replace(/[?&]$/, "");
|
|
16453
16472
|
let options_ = {
|
|
@@ -16487,7 +16506,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
16487
16506
|
checkProductionOrderForOpenNonConformances(id) {
|
|
16488
16507
|
let url_ = this.baseUrl + "/mes/productionorders/{id}/any-nonconformances";
|
|
16489
16508
|
if (id === undefined || id === null)
|
|
16490
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16509
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16491
16510
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16492
16511
|
url_ = url_.replace(/[?&]$/, "");
|
|
16493
16512
|
let options_ = {
|
|
@@ -16527,10 +16546,10 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
16527
16546
|
getProductionOrderOpenNonConformances(id, onlyOpen) {
|
|
16528
16547
|
let url_ = this.baseUrl + "/mes/productionorders/{id}/nonconformances?";
|
|
16529
16548
|
if (id === undefined || id === null)
|
|
16530
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16549
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16531
16550
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16532
16551
|
if (onlyOpen === null)
|
|
16533
|
-
throw new Error("The parameter 'onlyOpen' cannot be null.");
|
|
16552
|
+
throw new globalThis.Error("The parameter 'onlyOpen' cannot be null.");
|
|
16534
16553
|
else if (onlyOpen !== undefined)
|
|
16535
16554
|
url_ += "onlyOpen=" + encodeURIComponent("" + onlyOpen) + "&";
|
|
16536
16555
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -16575,7 +16594,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
16575
16594
|
getProductionOrderBomNonConformances(id) {
|
|
16576
16595
|
let url_ = this.baseUrl + "/mes/productionorders/{id}/bom/nonconformances";
|
|
16577
16596
|
if (id === undefined || id === null)
|
|
16578
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16597
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16579
16598
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16580
16599
|
url_ = url_.replace(/[?&]$/, "");
|
|
16581
16600
|
let options_ = {
|
|
@@ -16619,10 +16638,10 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
16619
16638
|
postMaterialPickList(id, operationNumber, request) {
|
|
16620
16639
|
let url_ = this.baseUrl + "/mes/productionorders/{id}/operations/{operationNumber}/picklist";
|
|
16621
16640
|
if (id === undefined || id === null)
|
|
16622
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16641
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16623
16642
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16624
16643
|
if (operationNumber === undefined || operationNumber === null)
|
|
16625
|
-
throw new Error("The parameter 'operationNumber' must be defined.");
|
|
16644
|
+
throw new globalThis.Error("The parameter 'operationNumber' must be defined.");
|
|
16626
16645
|
url_ = url_.replace("{operationNumber}", encodeURIComponent("" + operationNumber));
|
|
16627
16646
|
url_ = url_.replace(/[?&]$/, "");
|
|
16628
16647
|
const content_ = JSON.stringify(request);
|
|
@@ -16665,7 +16684,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
16665
16684
|
listProductionOrderActivities(id, operation) {
|
|
16666
16685
|
let url_ = this.baseUrl + "/mes/productionorders/{id}/activities?";
|
|
16667
16686
|
if (id === undefined || id === null)
|
|
16668
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
16687
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
16669
16688
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16670
16689
|
if (operation !== undefined && operation !== null)
|
|
16671
16690
|
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
@@ -16725,7 +16744,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
16725
16744
|
if (departmentNumber !== undefined && departmentNumber !== null)
|
|
16726
16745
|
url_ += "departmentNumber=" + encodeURIComponent("" + departmentNumber) + "&";
|
|
16727
16746
|
if (pageSize === null)
|
|
16728
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
16747
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
16729
16748
|
else if (pageSize !== undefined)
|
|
16730
16749
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
16731
16750
|
if (continuationToken !== undefined && continuationToken !== null)
|
|
@@ -17104,10 +17123,10 @@ export class MesPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
17104
17123
|
getPurchaseOrderDetails(purchaseOrderNumber, productionOrderNumber) {
|
|
17105
17124
|
let url_ = this.baseUrl + "/mes/purchase-orders/{purchaseOrderNumber}?";
|
|
17106
17125
|
if (purchaseOrderNumber === undefined || purchaseOrderNumber === null)
|
|
17107
|
-
throw new Error("The parameter 'purchaseOrderNumber' must be defined.");
|
|
17126
|
+
throw new globalThis.Error("The parameter 'purchaseOrderNumber' must be defined.");
|
|
17108
17127
|
url_ = url_.replace("{purchaseOrderNumber}", encodeURIComponent("" + purchaseOrderNumber));
|
|
17109
17128
|
if (productionOrderNumber === null)
|
|
17110
|
-
throw new Error("The parameter 'productionOrderNumber' cannot be null.");
|
|
17129
|
+
throw new globalThis.Error("The parameter 'productionOrderNumber' cannot be null.");
|
|
17111
17130
|
else if (productionOrderNumber !== undefined)
|
|
17112
17131
|
url_ += "productionOrderNumber=" + encodeURIComponent("" + productionOrderNumber) + "&";
|
|
17113
17132
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -17156,7 +17175,7 @@ export class MesResourceClient extends AuthorizedApiBase {
|
|
|
17156
17175
|
listResourceGroups(includeResources) {
|
|
17157
17176
|
let url_ = this.baseUrl + "/mes/resourcegroups?";
|
|
17158
17177
|
if (includeResources === null)
|
|
17159
|
-
throw new Error("The parameter 'includeResources' cannot be null.");
|
|
17178
|
+
throw new globalThis.Error("The parameter 'includeResources' cannot be null.");
|
|
17160
17179
|
else if (includeResources !== undefined)
|
|
17161
17180
|
url_ += "includeResources=" + encodeURIComponent("" + includeResources) + "&";
|
|
17162
17181
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -17201,7 +17220,7 @@ export class MesResourceClient extends AuthorizedApiBase {
|
|
|
17201
17220
|
listResourceGroupResources(id) {
|
|
17202
17221
|
let url_ = this.baseUrl + "/mes/resourcegroups/{id}/resources";
|
|
17203
17222
|
if (id === undefined || id === null)
|
|
17204
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17223
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17205
17224
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17206
17225
|
url_ = url_.replace(/[?&]$/, "");
|
|
17207
17226
|
let options_ = {
|
|
@@ -17416,10 +17435,10 @@ export class ElectricalClient extends AuthorizedApiBase {
|
|
|
17416
17435
|
deleteElectricalIotConfig(typeId, id) {
|
|
17417
17436
|
let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
|
|
17418
17437
|
if (typeId === undefined || typeId === null)
|
|
17419
|
-
throw new Error("The parameter 'typeId' must be defined.");
|
|
17438
|
+
throw new globalThis.Error("The parameter 'typeId' must be defined.");
|
|
17420
17439
|
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
17421
17440
|
if (id === undefined || id === null)
|
|
17422
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17441
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17423
17442
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17424
17443
|
url_ = url_.replace(/[?&]$/, "");
|
|
17425
17444
|
let options_ = {
|
|
@@ -17584,10 +17603,10 @@ export class WeldingClient extends AuthorizedApiBase {
|
|
|
17584
17603
|
deleteWeldingIotConfig(typeId, id) {
|
|
17585
17604
|
let url_ = this.baseUrl + "/iot/welding/{typeId}/{id}";
|
|
17586
17605
|
if (typeId === undefined || typeId === null)
|
|
17587
|
-
throw new Error("The parameter 'typeId' must be defined.");
|
|
17606
|
+
throw new globalThis.Error("The parameter 'typeId' must be defined.");
|
|
17588
17607
|
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
17589
17608
|
if (id === undefined || id === null)
|
|
17590
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17609
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17591
17610
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17592
17611
|
url_ = url_.replace(/[?&]$/, "");
|
|
17593
17612
|
let options_ = {
|
|
@@ -17630,7 +17649,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17630
17649
|
listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
17631
17650
|
let url_ = this.baseUrl + "/measurementforms/schemas?";
|
|
17632
17651
|
if (pageSize === null)
|
|
17633
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
17652
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
17634
17653
|
else if (pageSize !== undefined)
|
|
17635
17654
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
17636
17655
|
if (customerId !== undefined && customerId !== null)
|
|
@@ -17769,7 +17788,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17769
17788
|
getMeasurementFormSchema(id) {
|
|
17770
17789
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
17771
17790
|
if (id === undefined || id === null)
|
|
17772
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17791
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17773
17792
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17774
17793
|
url_ = url_.replace(/[?&]$/, "");
|
|
17775
17794
|
let options_ = {
|
|
@@ -17809,7 +17828,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17809
17828
|
updateMeasurementFormSchema(id, request) {
|
|
17810
17829
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
17811
17830
|
if (id === undefined || id === null)
|
|
17812
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17831
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17813
17832
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17814
17833
|
url_ = url_.replace(/[?&]$/, "");
|
|
17815
17834
|
const content_ = JSON.stringify(request);
|
|
@@ -17852,7 +17871,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17852
17871
|
deleteMeasurementForm(id) {
|
|
17853
17872
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
17854
17873
|
if (id === undefined || id === null)
|
|
17855
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17874
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17856
17875
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17857
17876
|
url_ = url_.replace(/[?&]$/, "");
|
|
17858
17877
|
let options_ = {
|
|
@@ -17887,7 +17906,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17887
17906
|
getArchivedMeasurementFormSchema(id) {
|
|
17888
17907
|
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
17889
17908
|
if (id === undefined || id === null)
|
|
17890
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17909
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17891
17910
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17892
17911
|
url_ = url_.replace(/[?&]$/, "");
|
|
17893
17912
|
let options_ = {
|
|
@@ -17927,7 +17946,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17927
17946
|
copyMeasurementFormSchema(id, request) {
|
|
17928
17947
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
|
|
17929
17948
|
if (id === undefined || id === null)
|
|
17930
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17949
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17931
17950
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17932
17951
|
url_ = url_.replace(/[?&]$/, "");
|
|
17933
17952
|
const content_ = JSON.stringify(request);
|
|
@@ -17970,7 +17989,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17970
17989
|
updateSchemaGroupedElements(id, request) {
|
|
17971
17990
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
|
|
17972
17991
|
if (id === undefined || id === null)
|
|
17973
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17992
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17974
17993
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17975
17994
|
url_ = url_.replace(/[?&]$/, "");
|
|
17976
17995
|
const content_ = JSON.stringify(request);
|
|
@@ -18013,7 +18032,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18013
18032
|
updateSchemaRow(id, request) {
|
|
18014
18033
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/updaterow";
|
|
18015
18034
|
if (id === undefined || id === null)
|
|
18016
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18035
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18017
18036
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18018
18037
|
url_ = url_.replace(/[?&]$/, "");
|
|
18019
18038
|
const content_ = JSON.stringify(request);
|
|
@@ -18056,7 +18075,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18056
18075
|
deleteSchemaRows(id, request) {
|
|
18057
18076
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterows";
|
|
18058
18077
|
if (id === undefined || id === null)
|
|
18059
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18078
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18060
18079
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18061
18080
|
url_ = url_.replace(/[?&]$/, "");
|
|
18062
18081
|
const content_ = JSON.stringify(request);
|
|
@@ -18099,7 +18118,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18099
18118
|
uploadMeasurementImage(id, request) {
|
|
18100
18119
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
|
|
18101
18120
|
if (id === undefined || id === null)
|
|
18102
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18121
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18103
18122
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18104
18123
|
url_ = url_.replace(/[?&]$/, "");
|
|
18105
18124
|
const content_ = JSON.stringify(request);
|
|
@@ -18142,7 +18161,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18142
18161
|
updateSchemaSettings(id, request) {
|
|
18143
18162
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/schemasettings";
|
|
18144
18163
|
if (id === undefined || id === null)
|
|
18145
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18164
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18146
18165
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18147
18166
|
url_ = url_.replace(/[?&]$/, "");
|
|
18148
18167
|
const content_ = JSON.stringify(request);
|
|
@@ -18185,7 +18204,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18185
18204
|
uploadSchemaDrawing(id, request) {
|
|
18186
18205
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
18187
18206
|
if (id === undefined || id === null)
|
|
18188
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18207
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18189
18208
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18190
18209
|
url_ = url_.replace(/[?&]$/, "");
|
|
18191
18210
|
const content_ = JSON.stringify(request);
|
|
@@ -18228,7 +18247,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18228
18247
|
uploadSchemaAttachment(id, request) {
|
|
18229
18248
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadattachment";
|
|
18230
18249
|
if (id === undefined || id === null)
|
|
18231
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18250
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18232
18251
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18233
18252
|
url_ = url_.replace(/[?&]$/, "");
|
|
18234
18253
|
const content_ = JSON.stringify(request);
|
|
@@ -18271,7 +18290,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18271
18290
|
getMeasurementFormImportStatus(id) {
|
|
18272
18291
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
18273
18292
|
if (id === undefined || id === null)
|
|
18274
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18293
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18275
18294
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18276
18295
|
url_ = url_.replace(/[?&]$/, "");
|
|
18277
18296
|
let options_ = {
|
|
@@ -18311,10 +18330,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18311
18330
|
listLinkableMeasurementFormSchemas(schemaId, pageSize, filter, continuationToken) {
|
|
18312
18331
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
|
|
18313
18332
|
if (schemaId === undefined || schemaId === null)
|
|
18314
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
18333
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
18315
18334
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
18316
18335
|
if (pageSize === null)
|
|
18317
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
18336
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
18318
18337
|
else if (pageSize !== undefined)
|
|
18319
18338
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
18320
18339
|
if (filter !== undefined && filter !== null)
|
|
@@ -18399,7 +18418,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18399
18418
|
createMeasurementFormSchemaLink(schemaId, request) {
|
|
18400
18419
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link";
|
|
18401
18420
|
if (schemaId === undefined || schemaId === null)
|
|
18402
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
18421
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
18403
18422
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
18404
18423
|
url_ = url_.replace(/[?&]$/, "");
|
|
18405
18424
|
const content_ = JSON.stringify(request);
|
|
@@ -18442,10 +18461,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18442
18461
|
deleteMeasurementFormSchemaLink(schemaId, linkedSchemaId) {
|
|
18443
18462
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/link/{linkedSchemaId}";
|
|
18444
18463
|
if (schemaId === undefined || schemaId === null)
|
|
18445
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
18464
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
18446
18465
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
18447
18466
|
if (linkedSchemaId === undefined || linkedSchemaId === null)
|
|
18448
|
-
throw new Error("The parameter 'linkedSchemaId' must be defined.");
|
|
18467
|
+
throw new globalThis.Error("The parameter 'linkedSchemaId' must be defined.");
|
|
18449
18468
|
url_ = url_.replace("{linkedSchemaId}", encodeURIComponent("" + linkedSchemaId));
|
|
18450
18469
|
url_ = url_.replace(/[?&]$/, "");
|
|
18451
18470
|
let options_ = {
|
|
@@ -18480,7 +18499,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18480
18499
|
releaseSchema(schemaId) {
|
|
18481
18500
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/release";
|
|
18482
18501
|
if (schemaId === undefined || schemaId === null)
|
|
18483
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
18502
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
18484
18503
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
18485
18504
|
url_ = url_.replace(/[?&]$/, "");
|
|
18486
18505
|
let options_ = {
|
|
@@ -18520,7 +18539,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18520
18539
|
revokeSchema(schemaId) {
|
|
18521
18540
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/revoke";
|
|
18522
18541
|
if (schemaId === undefined || schemaId === null)
|
|
18523
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
18542
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
18524
18543
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
18525
18544
|
url_ = url_.replace(/[?&]$/, "");
|
|
18526
18545
|
let options_ = {
|
|
@@ -18560,7 +18579,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18560
18579
|
createDraftVersion(schemaId) {
|
|
18561
18580
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/draftversion";
|
|
18562
18581
|
if (schemaId === undefined || schemaId === null)
|
|
18563
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
18582
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
18564
18583
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
18565
18584
|
url_ = url_.replace(/[?&]$/, "");
|
|
18566
18585
|
let options_ = {
|
|
@@ -18600,7 +18619,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18600
18619
|
isMappingFromPreviousVersionRequired(schemaId) {
|
|
18601
18620
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/mappingfrompreviousversionrequired";
|
|
18602
18621
|
if (schemaId === undefined || schemaId === null)
|
|
18603
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
18622
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
18604
18623
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
18605
18624
|
url_ = url_.replace(/[?&]$/, "");
|
|
18606
18625
|
let options_ = {
|
|
@@ -18726,7 +18745,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18726
18745
|
getMeasurementFormCustomerSettings(id) {
|
|
18727
18746
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings/customers/{id}";
|
|
18728
18747
|
if (id === undefined || id === null)
|
|
18729
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18748
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18730
18749
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18731
18750
|
url_ = url_.replace(/[?&]$/, "");
|
|
18732
18751
|
let options_ = {
|
|
@@ -18908,7 +18927,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18908
18927
|
getMeasurementFormMapping(id) {
|
|
18909
18928
|
let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}";
|
|
18910
18929
|
if (id === undefined || id === null)
|
|
18911
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18930
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18912
18931
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18913
18932
|
url_ = url_.replace(/[?&]$/, "");
|
|
18914
18933
|
let options_ = {
|
|
@@ -18948,7 +18967,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18948
18967
|
deleteMeasurementFormMapping(id) {
|
|
18949
18968
|
let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}";
|
|
18950
18969
|
if (id === undefined || id === null)
|
|
18951
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18970
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18952
18971
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18953
18972
|
url_ = url_.replace(/[?&]$/, "");
|
|
18954
18973
|
let options_ = {
|
|
@@ -18986,7 +19005,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18986
19005
|
setMeasurementFormMappingBalloonsV2(id, request) {
|
|
18987
19006
|
let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{id}/balloons/v2";
|
|
18988
19007
|
if (id === undefined || id === null)
|
|
18989
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
19008
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
18990
19009
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18991
19010
|
url_ = url_.replace(/[?&]$/, "");
|
|
18992
19011
|
const content_ = JSON.stringify(request);
|
|
@@ -19029,7 +19048,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19029
19048
|
setMeasurementFormReferencesMapping(mappingId, request) {
|
|
19030
19049
|
let url_ = this.baseUrl + "/measurementforms/schemas/mapping/{mappingId}/references";
|
|
19031
19050
|
if (mappingId === undefined || mappingId === null)
|
|
19032
|
-
throw new Error("The parameter 'mappingId' must be defined.");
|
|
19051
|
+
throw new globalThis.Error("The parameter 'mappingId' must be defined.");
|
|
19033
19052
|
url_ = url_.replace("{mappingId}", encodeURIComponent("" + mappingId));
|
|
19034
19053
|
url_ = url_.replace(/[?&]$/, "");
|
|
19035
19054
|
const content_ = JSON.stringify(request);
|
|
@@ -19113,7 +19132,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19113
19132
|
listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken, onlyWithoutDrawingUrl) {
|
|
19114
19133
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
|
|
19115
19134
|
if (pageSize === null)
|
|
19116
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
19135
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
19117
19136
|
else if (pageSize !== undefined)
|
|
19118
19137
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
19119
19138
|
if (customerId !== undefined && customerId !== null)
|
|
@@ -19214,7 +19233,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19214
19233
|
setMeasurementFormNeedUser(id, request) {
|
|
19215
19234
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs/{id}/assign";
|
|
19216
19235
|
if (id === undefined || id === null)
|
|
19217
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
19236
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19218
19237
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19219
19238
|
url_ = url_.replace(/[?&]$/, "");
|
|
19220
19239
|
const content_ = JSON.stringify(request);
|
|
@@ -19253,7 +19272,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19253
19272
|
setMeasurementFormNeedAsNotNeeded(id, request) {
|
|
19254
19273
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs/{id}/notneeded";
|
|
19255
19274
|
if (id === undefined || id === null)
|
|
19256
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
19275
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19257
19276
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19258
19277
|
url_ = url_.replace(/[?&]$/, "");
|
|
19259
19278
|
const content_ = JSON.stringify(request);
|
|
@@ -19296,7 +19315,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19296
19315
|
createMeasurementFormSchemaFromNeed(id) {
|
|
19297
19316
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs/{id}/schema";
|
|
19298
19317
|
if (id === undefined || id === null)
|
|
19299
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
19318
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19300
19319
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19301
19320
|
url_ = url_.replace(/[?&]$/, "");
|
|
19302
19321
|
let options_ = {
|
|
@@ -19336,7 +19355,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19336
19355
|
uploadNeedDrawing(id, request) {
|
|
19337
19356
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs/{id}/uploaddrawing";
|
|
19338
19357
|
if (id === undefined || id === null)
|
|
19339
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
19358
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19340
19359
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19341
19360
|
url_ = url_.replace(/[?&]$/, "");
|
|
19342
19361
|
const content_ = JSON.stringify(request);
|
|
@@ -19379,7 +19398,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19379
19398
|
listMeasurmentFormSchemasNotNeeded(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
19380
19399
|
let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded?";
|
|
19381
19400
|
if (pageSize === null)
|
|
19382
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
19401
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
19383
19402
|
else if (pageSize !== undefined)
|
|
19384
19403
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
19385
19404
|
if (customerId !== undefined && customerId !== null)
|
|
@@ -19478,7 +19497,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19478
19497
|
deleteMeasurmentFormSchemasNotNeeded(id) {
|
|
19479
19498
|
let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded/{id}";
|
|
19480
19499
|
if (id === undefined || id === null)
|
|
19481
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
19500
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19482
19501
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19483
19502
|
url_ = url_.replace(/[?&]$/, "");
|
|
19484
19503
|
let options_ = {
|
|
@@ -19594,7 +19613,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19594
19613
|
deleteResourceTypeForNeedsGenerator(resourceType) {
|
|
19595
19614
|
let url_ = this.baseUrl + "/measurementforms/schemas/resourcetypes/{resourceType}";
|
|
19596
19615
|
if (resourceType === undefined || resourceType === null)
|
|
19597
|
-
throw new Error("The parameter 'resourceType' must be defined.");
|
|
19616
|
+
throw new globalThis.Error("The parameter 'resourceType' must be defined.");
|
|
19598
19617
|
url_ = url_.replace("{resourceType}", encodeURIComponent("" + resourceType));
|
|
19599
19618
|
url_ = url_.replace(/[?&]$/, "");
|
|
19600
19619
|
let options_ = {
|
|
@@ -19670,7 +19689,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19670
19689
|
listMeasurementFormInstanceSchemaFeedback(pageSize, search, continuationToken) {
|
|
19671
19690
|
let url_ = this.baseUrl + "/measurementforms/schemas/feedback?";
|
|
19672
19691
|
if (pageSize === null)
|
|
19673
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
19692
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
19674
19693
|
else if (pageSize !== undefined)
|
|
19675
19694
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
19676
19695
|
if (search !== undefined && search !== null)
|
|
@@ -19755,7 +19774,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19755
19774
|
getMeasurementFormInstanceSchemaFeedback(id) {
|
|
19756
19775
|
let url_ = this.baseUrl + "/measurementforms/schemas/feedback/{id}";
|
|
19757
19776
|
if (id === undefined || id === null)
|
|
19758
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
19777
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19759
19778
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19760
19779
|
url_ = url_.replace(/[?&]$/, "");
|
|
19761
19780
|
let options_ = {
|
|
@@ -19795,7 +19814,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19795
19814
|
deleteMeasurementFormInstanceSchemaFeedback(id) {
|
|
19796
19815
|
let url_ = this.baseUrl + "/measurementforms/schemas/feedback/{id}";
|
|
19797
19816
|
if (id === undefined || id === null)
|
|
19798
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
19817
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19799
19818
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19800
19819
|
url_ = url_.replace(/[?&]$/, "");
|
|
19801
19820
|
let options_ = {
|
|
@@ -19830,7 +19849,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19830
19849
|
setMeasurementFormInstanceSchemaFeedbackUser(id, request) {
|
|
19831
19850
|
let url_ = this.baseUrl + "/measurementforms/schemas/feedback/{id}/assign";
|
|
19832
19851
|
if (id === undefined || id === null)
|
|
19833
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
19852
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19834
19853
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19835
19854
|
url_ = url_.replace(/[?&]$/, "");
|
|
19836
19855
|
const content_ = JSON.stringify(request);
|
|
@@ -19869,7 +19888,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
19869
19888
|
listMeasurmentFormSchemasWithHistory(pageSize, customerId, partNumber, partRevision, drawing, drawingRevision, version, continuationToken) {
|
|
19870
19889
|
let url_ = this.baseUrl + "/measurementforms/schemas/importsearch?";
|
|
19871
19890
|
if (pageSize === null)
|
|
19872
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
19891
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
19873
19892
|
else if (pageSize !== undefined)
|
|
19874
19893
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
19875
19894
|
if (customerId !== undefined && customerId !== null)
|
|
@@ -20049,7 +20068,7 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
|
20049
20068
|
getMeasurementFormCustomerSettings(id) {
|
|
20050
20069
|
let url_ = this.baseUrl + "/measurementforms/settings/customers/{id}";
|
|
20051
20070
|
if (id === undefined || id === null)
|
|
20052
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20071
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20053
20072
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20054
20073
|
url_ = url_.replace(/[?&]$/, "");
|
|
20055
20074
|
let options_ = {
|
|
@@ -20137,7 +20156,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20137
20156
|
listMeasurementForms(pageSize, search, continuationToken, tenantId, inactive, includeInactiveSupplierAccess) {
|
|
20138
20157
|
let url_ = this.baseUrl + "/measurementforms/instances?";
|
|
20139
20158
|
if (pageSize === null)
|
|
20140
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
20159
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
20141
20160
|
else if (pageSize !== undefined)
|
|
20142
20161
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
20143
20162
|
if (search !== undefined && search !== null)
|
|
@@ -20228,7 +20247,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20228
20247
|
listMeasurementFormsByStatus(status, statusChangedSince, onlyWithReports, pageSize, search, continuationToken) {
|
|
20229
20248
|
let url_ = this.baseUrl + "/measurementforms/instances/bystatus?";
|
|
20230
20249
|
if (status === null)
|
|
20231
|
-
throw new Error("The parameter 'status' cannot be null.");
|
|
20250
|
+
throw new globalThis.Error("The parameter 'status' cannot be null.");
|
|
20232
20251
|
else if (status !== undefined)
|
|
20233
20252
|
url_ += "status=" + encodeURIComponent("" + status) + "&";
|
|
20234
20253
|
if (statusChangedSince !== undefined && statusChangedSince !== null)
|
|
@@ -20236,7 +20255,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20236
20255
|
if (onlyWithReports !== undefined && onlyWithReports !== null)
|
|
20237
20256
|
url_ += "onlyWithReports=" + encodeURIComponent("" + onlyWithReports) + "&";
|
|
20238
20257
|
if (pageSize === null)
|
|
20239
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
20258
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
20240
20259
|
else if (pageSize !== undefined)
|
|
20241
20260
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
20242
20261
|
if (search !== undefined && search !== null)
|
|
@@ -20318,10 +20337,46 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20318
20337
|
}
|
|
20319
20338
|
return Promise.resolve(null);
|
|
20320
20339
|
}
|
|
20340
|
+
deleteInstancesBulk(request) {
|
|
20341
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bulkdelete";
|
|
20342
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20343
|
+
const content_ = JSON.stringify(request);
|
|
20344
|
+
let options_ = {
|
|
20345
|
+
body: content_,
|
|
20346
|
+
method: "DELETE",
|
|
20347
|
+
headers: {
|
|
20348
|
+
"Content-Type": "application/json",
|
|
20349
|
+
}
|
|
20350
|
+
};
|
|
20351
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20352
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20353
|
+
}).then((_response) => {
|
|
20354
|
+
return this.processDeleteInstancesBulk(_response);
|
|
20355
|
+
});
|
|
20356
|
+
}
|
|
20357
|
+
processDeleteInstancesBulk(response) {
|
|
20358
|
+
const status = response.status;
|
|
20359
|
+
let _headers = {};
|
|
20360
|
+
if (response.headers && response.headers.forEach) {
|
|
20361
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20362
|
+
}
|
|
20363
|
+
;
|
|
20364
|
+
if (status === 204) {
|
|
20365
|
+
return response.text().then((_responseText) => {
|
|
20366
|
+
return;
|
|
20367
|
+
});
|
|
20368
|
+
}
|
|
20369
|
+
else if (status !== 200 && status !== 204) {
|
|
20370
|
+
return response.text().then((_responseText) => {
|
|
20371
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20372
|
+
});
|
|
20373
|
+
}
|
|
20374
|
+
return Promise.resolve(null);
|
|
20375
|
+
}
|
|
20321
20376
|
getMeasurementFormInstance(id, tenantId) {
|
|
20322
20377
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}?";
|
|
20323
20378
|
if (id === undefined || id === null)
|
|
20324
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20379
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20325
20380
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20326
20381
|
if (tenantId !== undefined && tenantId !== null)
|
|
20327
20382
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -20363,7 +20418,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20363
20418
|
createMeasurementFormInstance(id) {
|
|
20364
20419
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
20365
20420
|
if (id === undefined || id === null)
|
|
20366
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20421
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20367
20422
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20368
20423
|
url_ = url_.replace(/[?&]$/, "");
|
|
20369
20424
|
let options_ = {
|
|
@@ -20403,7 +20458,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20403
20458
|
updateMeasurementFormInstance(id, request) {
|
|
20404
20459
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
20405
20460
|
if (id === undefined || id === null)
|
|
20406
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20461
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20407
20462
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20408
20463
|
url_ = url_.replace(/[?&]$/, "");
|
|
20409
20464
|
const content_ = JSON.stringify(request);
|
|
@@ -20446,7 +20501,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20446
20501
|
listMeasurementFormInstanceFeedback(id) {
|
|
20447
20502
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/feedback";
|
|
20448
20503
|
if (id === undefined || id === null)
|
|
20449
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20504
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20450
20505
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20451
20506
|
url_ = url_.replace(/[?&]$/, "");
|
|
20452
20507
|
let options_ = {
|
|
@@ -20490,7 +20545,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20490
20545
|
createMeasurementFormInstance2(id, request) {
|
|
20491
20546
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
20492
20547
|
if (id === undefined || id === null)
|
|
20493
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20548
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20494
20549
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20495
20550
|
url_ = url_.replace(/[?&]$/, "");
|
|
20496
20551
|
const content_ = JSON.stringify(request);
|
|
@@ -20533,7 +20588,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20533
20588
|
completeMeasurementFormInstance(id, tenantId) {
|
|
20534
20589
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/complete?";
|
|
20535
20590
|
if (id === undefined || id === null)
|
|
20536
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20591
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20537
20592
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20538
20593
|
if (tenantId !== undefined && tenantId !== null)
|
|
20539
20594
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -20575,7 +20630,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20575
20630
|
reactivateMeasurementFormInstance(id) {
|
|
20576
20631
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
|
|
20577
20632
|
if (id === undefined || id === null)
|
|
20578
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20633
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20579
20634
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20580
20635
|
url_ = url_.replace(/[?&]$/, "");
|
|
20581
20636
|
let options_ = {
|
|
@@ -20615,7 +20670,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20615
20670
|
approveMeasurementFormInstance(id) {
|
|
20616
20671
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
|
|
20617
20672
|
if (id === undefined || id === null)
|
|
20618
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20673
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20619
20674
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20620
20675
|
url_ = url_.replace(/[?&]$/, "");
|
|
20621
20676
|
let options_ = {
|
|
@@ -20655,7 +20710,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20655
20710
|
disapproveMeasurementFormInstance(id) {
|
|
20656
20711
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/disapprove";
|
|
20657
20712
|
if (id === undefined || id === null)
|
|
20658
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20713
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20659
20714
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20660
20715
|
url_ = url_.replace(/[?&]$/, "");
|
|
20661
20716
|
let options_ = {
|
|
@@ -20695,7 +20750,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20695
20750
|
cancelMeasurementFormInstance(id) {
|
|
20696
20751
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/cancel";
|
|
20697
20752
|
if (id === undefined || id === null)
|
|
20698
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20753
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20699
20754
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20700
20755
|
url_ = url_.replace(/[?&]$/, "");
|
|
20701
20756
|
let options_ = {
|
|
@@ -20735,10 +20790,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20735
20790
|
getMeasurementFormInstanceSchema(id, schemaId, serialNumber, tenantId) {
|
|
20736
20791
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
|
|
20737
20792
|
if (id === undefined || id === null)
|
|
20738
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20793
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20739
20794
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20740
20795
|
if (schemaId === undefined || schemaId === null)
|
|
20741
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
20796
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
20742
20797
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
20743
20798
|
if (serialNumber !== undefined && serialNumber !== null)
|
|
20744
20799
|
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
@@ -20782,7 +20837,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20782
20837
|
getWorkorderMeasurementFormProgress(id, tenantId) {
|
|
20783
20838
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
20784
20839
|
if (id === undefined || id === null)
|
|
20785
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20840
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20786
20841
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20787
20842
|
if (tenantId !== undefined && tenantId !== null)
|
|
20788
20843
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -20824,7 +20879,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20824
20879
|
getAuditLog(id, tenantId, schemaId, serialNumber, elementId) {
|
|
20825
20880
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
|
|
20826
20881
|
if (id === undefined || id === null)
|
|
20827
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20882
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20828
20883
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20829
20884
|
if (tenantId !== undefined && tenantId !== null)
|
|
20830
20885
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -20917,7 +20972,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20917
20972
|
saveValue(id, tenantId, request) {
|
|
20918
20973
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/value?";
|
|
20919
20974
|
if (id === undefined || id === null)
|
|
20920
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20975
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20921
20976
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20922
20977
|
if (tenantId !== undefined && tenantId !== null)
|
|
20923
20978
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -20962,7 +21017,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20962
21017
|
saveTool(id, tenantId, request) {
|
|
20963
21018
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/tool?";
|
|
20964
21019
|
if (id === undefined || id === null)
|
|
20965
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21020
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20966
21021
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20967
21022
|
if (tenantId !== undefined && tenantId !== null)
|
|
20968
21023
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -21007,7 +21062,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21007
21062
|
saveComment(id, tenantId, request) {
|
|
21008
21063
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/comment?";
|
|
21009
21064
|
if (id === undefined || id === null)
|
|
21010
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21065
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21011
21066
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21012
21067
|
if (tenantId !== undefined && tenantId !== null)
|
|
21013
21068
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -21048,7 +21103,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21048
21103
|
batchInsertValues(id, tenantId, request) {
|
|
21049
21104
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/batchvalues?";
|
|
21050
21105
|
if (id === undefined || id === null)
|
|
21051
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21106
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21052
21107
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21053
21108
|
if (tenantId !== undefined && tenantId !== null)
|
|
21054
21109
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -21093,10 +21148,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21093
21148
|
saveMeasurementFormInstanceSchemaComment(id, schemaId, tenantId, request) {
|
|
21094
21149
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/comment?";
|
|
21095
21150
|
if (id === undefined || id === null)
|
|
21096
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21151
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21097
21152
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21098
21153
|
if (schemaId === undefined || schemaId === null)
|
|
21099
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
21154
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
21100
21155
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21101
21156
|
if (tenantId !== undefined && tenantId !== null)
|
|
21102
21157
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -21137,10 +21192,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21137
21192
|
createMeasurementFormInstanceSchemaFeedback(id, schemaId, tenantId, request) {
|
|
21138
21193
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/feedback?";
|
|
21139
21194
|
if (id === undefined || id === null)
|
|
21140
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21195
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21141
21196
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21142
21197
|
if (schemaId === undefined || schemaId === null)
|
|
21143
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
21198
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
21144
21199
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21145
21200
|
if (tenantId !== undefined && tenantId !== null)
|
|
21146
21201
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -21185,7 +21240,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21185
21240
|
listSupplierMeasurementFormInstances(supplierId) {
|
|
21186
21241
|
let url_ = this.baseUrl + "/measurementforms/instances/suppliers/{supplierId}";
|
|
21187
21242
|
if (supplierId === undefined || supplierId === null)
|
|
21188
|
-
throw new Error("The parameter 'supplierId' must be defined.");
|
|
21243
|
+
throw new globalThis.Error("The parameter 'supplierId' must be defined.");
|
|
21189
21244
|
url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
|
|
21190
21245
|
url_ = url_.replace(/[?&]$/, "");
|
|
21191
21246
|
let options_ = {
|
|
@@ -21229,10 +21284,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21229
21284
|
upsertSupplierToMeasurmentFormInstance(id, supplierId, request) {
|
|
21230
21285
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/suppliers/{supplierId}";
|
|
21231
21286
|
if (id === undefined || id === null)
|
|
21232
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21287
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21233
21288
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21234
21289
|
if (supplierId === undefined || supplierId === null)
|
|
21235
|
-
throw new Error("The parameter 'supplierId' must be defined.");
|
|
21290
|
+
throw new globalThis.Error("The parameter 'supplierId' must be defined.");
|
|
21236
21291
|
url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
|
|
21237
21292
|
url_ = url_.replace(/[?&]$/, "");
|
|
21238
21293
|
const content_ = JSON.stringify(request);
|
|
@@ -21271,10 +21326,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21271
21326
|
removeSupplierFromMeasurmentFormInstance(id, supplierId) {
|
|
21272
21327
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/suppliers/{supplierId}";
|
|
21273
21328
|
if (id === undefined || id === null)
|
|
21274
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21329
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21275
21330
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21276
21331
|
if (supplierId === undefined || supplierId === null)
|
|
21277
|
-
throw new Error("The parameter 'supplierId' must be defined.");
|
|
21332
|
+
throw new globalThis.Error("The parameter 'supplierId' must be defined.");
|
|
21278
21333
|
url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
|
|
21279
21334
|
url_ = url_.replace(/[?&]$/, "");
|
|
21280
21335
|
let options_ = {
|
|
@@ -21312,7 +21367,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21312
21367
|
exportDimensionReportV2(id, request) {
|
|
21313
21368
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
21314
21369
|
if (id === undefined || id === null)
|
|
21315
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21370
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21316
21371
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21317
21372
|
url_ = url_.replace(/[?&]$/, "");
|
|
21318
21373
|
const content_ = JSON.stringify(request);
|
|
@@ -21355,7 +21410,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21355
21410
|
exportDimensionReport(id, request) {
|
|
21356
21411
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
|
|
21357
21412
|
if (id === undefined || id === null)
|
|
21358
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21413
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21359
21414
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21360
21415
|
url_ = url_.replace(/[?&]$/, "");
|
|
21361
21416
|
const content_ = JSON.stringify(request);
|
|
@@ -21398,7 +21453,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21398
21453
|
exportDimensionReportValues(id) {
|
|
21399
21454
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
21400
21455
|
if (id === undefined || id === null)
|
|
21401
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21456
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21402
21457
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21403
21458
|
url_ = url_.replace(/[?&]$/, "");
|
|
21404
21459
|
let options_ = {
|
|
@@ -21438,13 +21493,13 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21438
21493
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id, schemaId, elementId, tenantId) {
|
|
21439
21494
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements/{elementId}/toggle-override-documented-externally?";
|
|
21440
21495
|
if (id === undefined || id === null)
|
|
21441
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21496
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21442
21497
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21443
21498
|
if (schemaId === undefined || schemaId === null)
|
|
21444
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
21499
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
21445
21500
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21446
21501
|
if (elementId === undefined || elementId === null)
|
|
21447
|
-
throw new Error("The parameter 'elementId' must be defined.");
|
|
21502
|
+
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
21448
21503
|
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
21449
21504
|
if (tenantId !== undefined && tenantId !== null)
|
|
21450
21505
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
@@ -21583,7 +21638,7 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
21583
21638
|
upsertCustomerOrder(id, request) {
|
|
21584
21639
|
let url_ = this.baseUrl + "/erp/customerorders/{id}";
|
|
21585
21640
|
if (id === undefined || id === null)
|
|
21586
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21641
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21587
21642
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21588
21643
|
url_ = url_.replace(/[?&]$/, "");
|
|
21589
21644
|
const content_ = JSON.stringify(request);
|
|
@@ -21622,7 +21677,7 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
21622
21677
|
getCustomerOrder(id) {
|
|
21623
21678
|
let url_ = this.baseUrl + "/erp/customerorders/{id}";
|
|
21624
21679
|
if (id === undefined || id === null)
|
|
21625
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21680
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21626
21681
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21627
21682
|
url_ = url_.replace(/[?&]$/, "");
|
|
21628
21683
|
let options_ = {
|
|
@@ -21668,10 +21723,10 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
21668
21723
|
upsertCustomerOrderLine(id, line, orderLine) {
|
|
21669
21724
|
let url_ = this.baseUrl + "/erp/customerorders/{id}/orderlines/{line}";
|
|
21670
21725
|
if (id === undefined || id === null)
|
|
21671
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21726
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21672
21727
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21673
21728
|
if (line === undefined || line === null)
|
|
21674
|
-
throw new Error("The parameter 'line' must be defined.");
|
|
21729
|
+
throw new globalThis.Error("The parameter 'line' must be defined.");
|
|
21675
21730
|
url_ = url_.replace("{line}", encodeURIComponent("" + line));
|
|
21676
21731
|
url_ = url_.replace(/[?&]$/, "");
|
|
21677
21732
|
const content_ = JSON.stringify(orderLine);
|
|
@@ -21725,7 +21780,7 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
21725
21780
|
listCustomerOrders(pageSize, filter, continuationToken) {
|
|
21726
21781
|
let url_ = this.baseUrl + "/erp/customerorders?";
|
|
21727
21782
|
if (pageSize === null)
|
|
21728
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
21783
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
21729
21784
|
else if (pageSize !== undefined)
|
|
21730
21785
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
21731
21786
|
if (filter !== undefined && filter !== null)
|
|
@@ -21810,7 +21865,7 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
21810
21865
|
listCustomerOrderLines(id) {
|
|
21811
21866
|
let url_ = this.baseUrl + "/erp/customerorders/{id}/lines";
|
|
21812
21867
|
if (id === undefined || id === null)
|
|
21813
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21868
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21814
21869
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21815
21870
|
url_ = url_.replace(/[?&]$/, "");
|
|
21816
21871
|
let options_ = {
|
|
@@ -22131,7 +22186,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22131
22186
|
listWorkorders(pageSize, search, companyId, activeOrders, searchType, continuationToken) {
|
|
22132
22187
|
let url_ = this.baseUrl + "/erp/workorders?";
|
|
22133
22188
|
if (pageSize === null)
|
|
22134
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
22189
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
22135
22190
|
else if (pageSize !== undefined)
|
|
22136
22191
|
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
22137
22192
|
if (search !== undefined && search !== null)
|
|
@@ -22141,7 +22196,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22141
22196
|
if (activeOrders !== undefined && activeOrders !== null)
|
|
22142
22197
|
url_ += "activeOrders=" + encodeURIComponent("" + activeOrders) + "&";
|
|
22143
22198
|
if (searchType === null)
|
|
22144
|
-
throw new Error("The parameter 'searchType' cannot be null.");
|
|
22199
|
+
throw new globalThis.Error("The parameter 'searchType' cannot be null.");
|
|
22145
22200
|
else if (searchType !== undefined)
|
|
22146
22201
|
url_ += "searchType=" + encodeURIComponent("" + searchType) + "&";
|
|
22147
22202
|
if (continuationToken !== undefined && continuationToken !== null)
|
|
@@ -22189,7 +22244,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22189
22244
|
upsertWorkorderConsumption(id, request) {
|
|
22190
22245
|
let url_ = this.baseUrl + "/erp/workorders/{id}/consumptions";
|
|
22191
22246
|
if (id === undefined || id === null)
|
|
22192
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22247
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22193
22248
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22194
22249
|
url_ = url_.replace(/[?&]$/, "");
|
|
22195
22250
|
const content_ = JSON.stringify(request);
|
|
@@ -22228,7 +22283,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22228
22283
|
getWorkOrderConsumption(id) {
|
|
22229
22284
|
let url_ = this.baseUrl + "/erp/workorders/{id}/consumptions";
|
|
22230
22285
|
if (id === undefined || id === null)
|
|
22231
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22286
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22232
22287
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22233
22288
|
url_ = url_.replace(/[?&]$/, "");
|
|
22234
22289
|
let options_ = {
|
|
@@ -22273,7 +22328,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22273
22328
|
upsertWorkorderTraces(id, request) {
|
|
22274
22329
|
let url_ = this.baseUrl + "/erp/workorders/{id}/traces";
|
|
22275
22330
|
if (id === undefined || id === null)
|
|
22276
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22331
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22277
22332
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22278
22333
|
url_ = url_.replace(/[?&]$/, "");
|
|
22279
22334
|
const content_ = JSON.stringify(request);
|
|
@@ -22312,7 +22367,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22312
22367
|
setWorkorderCustomerOrderReference(id, request) {
|
|
22313
22368
|
let url_ = this.baseUrl + "/erp/workorders/{id}/customerorderreference";
|
|
22314
22369
|
if (id === undefined || id === null)
|
|
22315
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22370
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22316
22371
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22317
22372
|
url_ = url_.replace(/[?&]$/, "");
|
|
22318
22373
|
const content_ = JSON.stringify(request);
|
|
@@ -22351,7 +22406,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22351
22406
|
checkResourceStatus(id) {
|
|
22352
22407
|
let url_ = this.baseUrl + "/erp/workorders/resources/{id}/status";
|
|
22353
22408
|
if (id === undefined || id === null)
|
|
22354
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22409
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22355
22410
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22356
22411
|
url_ = url_.replace(/[?&]$/, "");
|
|
22357
22412
|
let options_ = {
|
|
@@ -22395,10 +22450,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22395
22450
|
startWorkorderOperation(id, operation, request) {
|
|
22396
22451
|
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/start";
|
|
22397
22452
|
if (id === undefined || id === null)
|
|
22398
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22453
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22399
22454
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22400
22455
|
if (operation === undefined || operation === null)
|
|
22401
|
-
throw new Error("The parameter 'operation' must be defined.");
|
|
22456
|
+
throw new globalThis.Error("The parameter 'operation' must be defined.");
|
|
22402
22457
|
url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
|
|
22403
22458
|
url_ = url_.replace(/[?&]$/, "");
|
|
22404
22459
|
const content_ = JSON.stringify(request);
|
|
@@ -22441,10 +22496,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22441
22496
|
stopWorkorderOperation(id, operation, request) {
|
|
22442
22497
|
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/stop";
|
|
22443
22498
|
if (id === undefined || id === null)
|
|
22444
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22499
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22445
22500
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22446
22501
|
if (operation === undefined || operation === null)
|
|
22447
|
-
throw new Error("The parameter 'operation' must be defined.");
|
|
22502
|
+
throw new globalThis.Error("The parameter 'operation' must be defined.");
|
|
22448
22503
|
url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
|
|
22449
22504
|
url_ = url_.replace(/[?&]$/, "");
|
|
22450
22505
|
const content_ = JSON.stringify(request);
|
|
@@ -22486,10 +22541,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22486
22541
|
registerWorkorderOperationEvent(id, operation, request) {
|
|
22487
22542
|
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/events";
|
|
22488
22543
|
if (id === undefined || id === null)
|
|
22489
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22544
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22490
22545
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22491
22546
|
if (operation === undefined || operation === null)
|
|
22492
|
-
throw new Error("The parameter 'operation' must be defined.");
|
|
22547
|
+
throw new globalThis.Error("The parameter 'operation' must be defined.");
|
|
22493
22548
|
url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
|
|
22494
22549
|
url_ = url_.replace(/[?&]$/, "");
|
|
22495
22550
|
const content_ = JSON.stringify(request);
|
|
@@ -22535,10 +22590,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22535
22590
|
startWorkorderOperationV2(id, operation, request) {
|
|
22536
22591
|
let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/start";
|
|
22537
22592
|
if (id === undefined || id === null)
|
|
22538
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22593
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22539
22594
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22540
22595
|
if (operation === undefined || operation === null)
|
|
22541
|
-
throw new Error("The parameter 'operation' must be defined.");
|
|
22596
|
+
throw new globalThis.Error("The parameter 'operation' must be defined.");
|
|
22542
22597
|
url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
|
|
22543
22598
|
url_ = url_.replace(/[?&]$/, "");
|
|
22544
22599
|
const content_ = JSON.stringify(request);
|
|
@@ -22584,10 +22639,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22584
22639
|
stopWorkorderOperationV2(id, operation, request) {
|
|
22585
22640
|
let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/stop";
|
|
22586
22641
|
if (id === undefined || id === null)
|
|
22587
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22642
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22588
22643
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22589
22644
|
if (operation === undefined || operation === null)
|
|
22590
|
-
throw new Error("The parameter 'operation' must be defined.");
|
|
22645
|
+
throw new globalThis.Error("The parameter 'operation' must be defined.");
|
|
22591
22646
|
url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
|
|
22592
22647
|
url_ = url_.replace(/[?&]$/, "");
|
|
22593
22648
|
const content_ = JSON.stringify(request);
|
|
@@ -22671,13 +22726,13 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22671
22726
|
deleteWorkorderOperationEvent(id, operation, eventId) {
|
|
22672
22727
|
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/events/{eventId}";
|
|
22673
22728
|
if (id === undefined || id === null)
|
|
22674
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22729
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22675
22730
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22676
22731
|
if (operation === undefined || operation === null)
|
|
22677
|
-
throw new Error("The parameter 'operation' must be defined.");
|
|
22732
|
+
throw new globalThis.Error("The parameter 'operation' must be defined.");
|
|
22678
22733
|
url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
|
|
22679
22734
|
if (eventId === undefined || eventId === null)
|
|
22680
|
-
throw new Error("The parameter 'eventId' must be defined.");
|
|
22735
|
+
throw new globalThis.Error("The parameter 'eventId' must be defined.");
|
|
22681
22736
|
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
22682
22737
|
url_ = url_.replace(/[?&]$/, "");
|
|
22683
22738
|
let options_ = {
|
|
@@ -22716,7 +22771,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22716
22771
|
getWorkorder(id) {
|
|
22717
22772
|
let url_ = this.baseUrl + "/erp/workorders/{id}";
|
|
22718
22773
|
if (id === undefined || id === null)
|
|
22719
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22774
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22720
22775
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22721
22776
|
url_ = url_.replace(/[?&]$/, "");
|
|
22722
22777
|
let options_ = {
|
|
@@ -22759,7 +22814,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22759
22814
|
deleteWorkorder(id) {
|
|
22760
22815
|
let url_ = this.baseUrl + "/erp/workorders/{id}";
|
|
22761
22816
|
if (id === undefined || id === null)
|
|
22762
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22817
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22763
22818
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22764
22819
|
url_ = url_.replace(/[?&]$/, "");
|
|
22765
22820
|
let options_ = {
|
|
@@ -22838,7 +22893,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22838
22893
|
getWorkorderOperationEvent(eventId) {
|
|
22839
22894
|
let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
|
|
22840
22895
|
if (eventId === undefined || eventId === null)
|
|
22841
|
-
throw new Error("The parameter 'eventId' must be defined.");
|
|
22896
|
+
throw new globalThis.Error("The parameter 'eventId' must be defined.");
|
|
22842
22897
|
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
22843
22898
|
url_ = url_.replace(/[?&]$/, "");
|
|
22844
22899
|
let options_ = {
|
|
@@ -22881,7 +22936,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22881
22936
|
updateWorkorderOperationEventTimestamps(eventId, request) {
|
|
22882
22937
|
let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
|
|
22883
22938
|
if (eventId === undefined || eventId === null)
|
|
22884
|
-
throw new Error("The parameter 'eventId' must be defined.");
|
|
22939
|
+
throw new globalThis.Error("The parameter 'eventId' must be defined.");
|
|
22885
22940
|
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
22886
22941
|
url_ = url_.replace(/[?&]$/, "");
|
|
22887
22942
|
const content_ = JSON.stringify(request);
|
|
@@ -22923,7 +22978,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22923
22978
|
deleteWorkorderOperationEventById(eventId) {
|
|
22924
22979
|
let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
|
|
22925
22980
|
if (eventId === undefined || eventId === null)
|
|
22926
|
-
throw new Error("The parameter 'eventId' must be defined.");
|
|
22981
|
+
throw new globalThis.Error("The parameter 'eventId' must be defined.");
|
|
22927
22982
|
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
22928
22983
|
url_ = url_.replace(/[?&]$/, "");
|
|
22929
22984
|
let options_ = {
|
|
@@ -22961,7 +23016,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22961
23016
|
deleteWorkorderOperationEventByExternalId(eventExternalId) {
|
|
22962
23017
|
let url_ = this.baseUrl + "/erp/workorders/operations/events/byexternalid/{eventExternalId}";
|
|
22963
23018
|
if (eventExternalId === undefined || eventExternalId === null)
|
|
22964
|
-
throw new Error("The parameter 'eventExternalId' must be defined.");
|
|
23019
|
+
throw new globalThis.Error("The parameter 'eventExternalId' must be defined.");
|
|
22965
23020
|
url_ = url_.replace("{eventExternalId}", encodeURIComponent("" + eventExternalId));
|
|
22966
23021
|
url_ = url_.replace(/[?&]$/, "");
|
|
22967
23022
|
let options_ = {
|
|
@@ -23117,7 +23172,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
23117
23172
|
getDiscussionMessages(id) {
|
|
23118
23173
|
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
23119
23174
|
if (id === undefined || id === null)
|
|
23120
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
23175
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23121
23176
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23122
23177
|
url_ = url_.replace(/[?&]$/, "");
|
|
23123
23178
|
let options_ = {
|
|
@@ -23161,7 +23216,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
23161
23216
|
addDiscussionMessage(id, request) {
|
|
23162
23217
|
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
23163
23218
|
if (id === undefined || id === null)
|
|
23164
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
23219
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23165
23220
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23166
23221
|
url_ = url_.replace(/[?&]$/, "");
|
|
23167
23222
|
const content_ = JSON.stringify(request);
|
|
@@ -23204,10 +23259,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
23204
23259
|
updateMessage(id, messageId, content) {
|
|
23205
23260
|
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
23206
23261
|
if (id === undefined || id === null)
|
|
23207
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
23262
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23208
23263
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23209
23264
|
if (messageId === undefined || messageId === null)
|
|
23210
|
-
throw new Error("The parameter 'messageId' must be defined.");
|
|
23265
|
+
throw new globalThis.Error("The parameter 'messageId' must be defined.");
|
|
23211
23266
|
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
23212
23267
|
url_ = url_.replace(/[?&]$/, "");
|
|
23213
23268
|
const content_ = JSON.stringify(content);
|
|
@@ -23255,10 +23310,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
23255
23310
|
deleteMessage(id, messageId) {
|
|
23256
23311
|
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
23257
23312
|
if (id === undefined || id === null)
|
|
23258
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
23313
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23259
23314
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23260
23315
|
if (messageId === undefined || messageId === null)
|
|
23261
|
-
throw new Error("The parameter 'messageId' must be defined.");
|
|
23316
|
+
throw new globalThis.Error("The parameter 'messageId' must be defined.");
|
|
23262
23317
|
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
23263
23318
|
url_ = url_.replace(/[?&]$/, "");
|
|
23264
23319
|
let options_ = {
|
|
@@ -23303,7 +23358,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
23303
23358
|
getLastRead(id, operationId, resourceId) {
|
|
23304
23359
|
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
|
|
23305
23360
|
if (id === undefined || id === null)
|
|
23306
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
23361
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23307
23362
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23308
23363
|
if (operationId !== undefined && operationId !== null)
|
|
23309
23364
|
url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
|
|
@@ -23347,7 +23402,7 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
23347
23402
|
setLastRead(id, request) {
|
|
23348
23403
|
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
|
|
23349
23404
|
if (id === undefined || id === null)
|
|
23350
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
23405
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23351
23406
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23352
23407
|
url_ = url_.replace(/[?&]$/, "");
|
|
23353
23408
|
const content_ = JSON.stringify(request);
|
|
@@ -23978,6 +24033,8 @@ export class DowntimePeriodReasonDto {
|
|
|
23978
24033
|
if (_data) {
|
|
23979
24034
|
this.id = _data["id"];
|
|
23980
24035
|
this.reason = _data["reason"];
|
|
24036
|
+
this.parentReasonId = _data["parentReasonId"];
|
|
24037
|
+
this.parentReason = _data["parentReason"];
|
|
23981
24038
|
this.reasonType = _data["reasonType"];
|
|
23982
24039
|
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
23983
24040
|
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
@@ -24000,6 +24057,8 @@ export class DowntimePeriodReasonDto {
|
|
|
24000
24057
|
data = typeof data === 'object' ? data : {};
|
|
24001
24058
|
data["id"] = this.id;
|
|
24002
24059
|
data["reason"] = this.reason;
|
|
24060
|
+
data["parentReasonId"] = this.parentReasonId;
|
|
24061
|
+
data["parentReason"] = this.parentReason;
|
|
24003
24062
|
data["reasonType"] = this.reasonType;
|
|
24004
24063
|
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
24005
24064
|
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
@@ -25438,6 +25497,117 @@ export class MachineAlarmDto {
|
|
|
25438
25497
|
return data;
|
|
25439
25498
|
}
|
|
25440
25499
|
}
|
|
25500
|
+
export class PagedResultOfGroupedMachineIncidentDto {
|
|
25501
|
+
constructor(data) {
|
|
25502
|
+
if (data) {
|
|
25503
|
+
for (var property in data) {
|
|
25504
|
+
if (data.hasOwnProperty(property))
|
|
25505
|
+
this[property] = data[property];
|
|
25506
|
+
}
|
|
25507
|
+
}
|
|
25508
|
+
if (!data) {
|
|
25509
|
+
this.results = [];
|
|
25510
|
+
}
|
|
25511
|
+
}
|
|
25512
|
+
init(_data) {
|
|
25513
|
+
if (_data) {
|
|
25514
|
+
if (Array.isArray(_data["results"])) {
|
|
25515
|
+
this.results = [];
|
|
25516
|
+
for (let item of _data["results"])
|
|
25517
|
+
this.results.push(GroupedMachineIncidentDto.fromJS(item));
|
|
25518
|
+
}
|
|
25519
|
+
this.continuationToken = _data["continuationToken"];
|
|
25520
|
+
}
|
|
25521
|
+
}
|
|
25522
|
+
static fromJS(data) {
|
|
25523
|
+
data = typeof data === 'object' ? data : {};
|
|
25524
|
+
let result = new PagedResultOfGroupedMachineIncidentDto();
|
|
25525
|
+
result.init(data);
|
|
25526
|
+
return result;
|
|
25527
|
+
}
|
|
25528
|
+
toJSON(data) {
|
|
25529
|
+
data = typeof data === 'object' ? data : {};
|
|
25530
|
+
if (Array.isArray(this.results)) {
|
|
25531
|
+
data["results"] = [];
|
|
25532
|
+
for (let item of this.results)
|
|
25533
|
+
data["results"].push(item ? item.toJSON() : undefined);
|
|
25534
|
+
}
|
|
25535
|
+
data["continuationToken"] = this.continuationToken;
|
|
25536
|
+
return data;
|
|
25537
|
+
}
|
|
25538
|
+
}
|
|
25539
|
+
export class GroupedMachineIncidentDto extends MachineAlarmDto {
|
|
25540
|
+
constructor(data) {
|
|
25541
|
+
super(data);
|
|
25542
|
+
if (!data) {
|
|
25543
|
+
this.incidents = [];
|
|
25544
|
+
}
|
|
25545
|
+
}
|
|
25546
|
+
init(_data) {
|
|
25547
|
+
super.init(_data);
|
|
25548
|
+
if (_data) {
|
|
25549
|
+
if (Array.isArray(_data["incidents"])) {
|
|
25550
|
+
this.incidents = [];
|
|
25551
|
+
for (let item of _data["incidents"])
|
|
25552
|
+
this.incidents.push(MachineAlarmDto.fromJS(item));
|
|
25553
|
+
}
|
|
25554
|
+
}
|
|
25555
|
+
}
|
|
25556
|
+
static fromJS(data) {
|
|
25557
|
+
data = typeof data === 'object' ? data : {};
|
|
25558
|
+
let result = new GroupedMachineIncidentDto();
|
|
25559
|
+
result.init(data);
|
|
25560
|
+
return result;
|
|
25561
|
+
}
|
|
25562
|
+
toJSON(data) {
|
|
25563
|
+
data = typeof data === 'object' ? data : {};
|
|
25564
|
+
if (Array.isArray(this.incidents)) {
|
|
25565
|
+
data["incidents"] = [];
|
|
25566
|
+
for (let item of this.incidents)
|
|
25567
|
+
data["incidents"].push(item ? item.toJSON() : undefined);
|
|
25568
|
+
}
|
|
25569
|
+
super.toJSON(data);
|
|
25570
|
+
return data;
|
|
25571
|
+
}
|
|
25572
|
+
}
|
|
25573
|
+
export class ListGroupedMachineIncidentsRequest {
|
|
25574
|
+
constructor(data) {
|
|
25575
|
+
if (data) {
|
|
25576
|
+
for (var property in data) {
|
|
25577
|
+
if (data.hasOwnProperty(property))
|
|
25578
|
+
this[property] = data[property];
|
|
25579
|
+
}
|
|
25580
|
+
}
|
|
25581
|
+
}
|
|
25582
|
+
init(_data) {
|
|
25583
|
+
if (_data) {
|
|
25584
|
+
this.assetId = _data["assetId"];
|
|
25585
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
25586
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
25587
|
+
this.nativeCode = _data["nativeCode"];
|
|
25588
|
+
this.alarmType = _data["alarmType"];
|
|
25589
|
+
this.limit = _data["limit"];
|
|
25590
|
+
this.continuationToken = _data["continuationToken"];
|
|
25591
|
+
}
|
|
25592
|
+
}
|
|
25593
|
+
static fromJS(data) {
|
|
25594
|
+
data = typeof data === 'object' ? data : {};
|
|
25595
|
+
let result = new ListGroupedMachineIncidentsRequest();
|
|
25596
|
+
result.init(data);
|
|
25597
|
+
return result;
|
|
25598
|
+
}
|
|
25599
|
+
toJSON(data) {
|
|
25600
|
+
data = typeof data === 'object' ? data : {};
|
|
25601
|
+
data["assetId"] = this.assetId;
|
|
25602
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
25603
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
25604
|
+
data["nativeCode"] = this.nativeCode;
|
|
25605
|
+
data["alarmType"] = this.alarmType;
|
|
25606
|
+
data["limit"] = this.limit;
|
|
25607
|
+
data["continuationToken"] = this.continuationToken;
|
|
25608
|
+
return data;
|
|
25609
|
+
}
|
|
25610
|
+
}
|
|
25441
25611
|
export class MachineAlarmSummaryDto {
|
|
25442
25612
|
constructor(data) {
|
|
25443
25613
|
if (data) {
|
|
@@ -28492,6 +28662,7 @@ export class MeasuringToolDto {
|
|
|
28492
28662
|
this.unit = _data["unit"];
|
|
28493
28663
|
this.min = _data["min"];
|
|
28494
28664
|
this.max = _data["max"];
|
|
28665
|
+
this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined;
|
|
28495
28666
|
this.lastCalibrationDate = _data["lastCalibrationDate"] ? new Date(_data["lastCalibrationDate"].toString()) : undefined;
|
|
28496
28667
|
this.nextCalibrationDate = _data["nextCalibrationDate"] ? new Date(_data["nextCalibrationDate"].toString()) : undefined;
|
|
28497
28668
|
this.calibrationInterval = _data["calibrationInterval"];
|
|
@@ -28523,6 +28694,7 @@ export class MeasuringToolDto {
|
|
|
28523
28694
|
data["unit"] = this.unit;
|
|
28524
28695
|
data["min"] = this.min;
|
|
28525
28696
|
data["max"] = this.max;
|
|
28697
|
+
data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined;
|
|
28526
28698
|
data["lastCalibrationDate"] = this.lastCalibrationDate ? this.lastCalibrationDate.toISOString() : undefined;
|
|
28527
28699
|
data["nextCalibrationDate"] = this.nextCalibrationDate ? this.nextCalibrationDate.toISOString() : undefined;
|
|
28528
28700
|
data["calibrationInterval"] = this.calibrationInterval;
|
|
@@ -28536,6 +28708,36 @@ export class MeasuringToolDto {
|
|
|
28536
28708
|
return data;
|
|
28537
28709
|
}
|
|
28538
28710
|
}
|
|
28711
|
+
export class MeasuringToolLastUsedByDto {
|
|
28712
|
+
constructor(data) {
|
|
28713
|
+
if (data) {
|
|
28714
|
+
for (var property in data) {
|
|
28715
|
+
if (data.hasOwnProperty(property))
|
|
28716
|
+
this[property] = data[property];
|
|
28717
|
+
}
|
|
28718
|
+
}
|
|
28719
|
+
}
|
|
28720
|
+
init(_data) {
|
|
28721
|
+
if (_data) {
|
|
28722
|
+
this.objectId = _data["objectId"];
|
|
28723
|
+
this.userId = _data["userId"];
|
|
28724
|
+
this.displayName = _data["displayName"];
|
|
28725
|
+
}
|
|
28726
|
+
}
|
|
28727
|
+
static fromJS(data) {
|
|
28728
|
+
data = typeof data === 'object' ? data : {};
|
|
28729
|
+
let result = new MeasuringToolLastUsedByDto();
|
|
28730
|
+
result.init(data);
|
|
28731
|
+
return result;
|
|
28732
|
+
}
|
|
28733
|
+
toJSON(data) {
|
|
28734
|
+
data = typeof data === 'object' ? data : {};
|
|
28735
|
+
data["objectId"] = this.objectId;
|
|
28736
|
+
data["userId"] = this.userId;
|
|
28737
|
+
data["displayName"] = this.displayName;
|
|
28738
|
+
return data;
|
|
28739
|
+
}
|
|
28740
|
+
}
|
|
28539
28741
|
export class MeasuringToolDetailDto {
|
|
28540
28742
|
constructor(data) {
|
|
28541
28743
|
if (data) {
|
|
@@ -28561,6 +28763,7 @@ export class MeasuringToolDetailDto {
|
|
|
28561
28763
|
this.defaultLocation = _data["defaultLocation"];
|
|
28562
28764
|
this.min = _data["min"];
|
|
28563
28765
|
this.max = _data["max"];
|
|
28766
|
+
this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined;
|
|
28564
28767
|
this.calibrationInterval = _data["calibrationInterval"];
|
|
28565
28768
|
this.serialNumber = _data["serialNumber"];
|
|
28566
28769
|
this.precision = _data["precision"];
|
|
@@ -28591,6 +28794,7 @@ export class MeasuringToolDetailDto {
|
|
|
28591
28794
|
data["defaultLocation"] = this.defaultLocation;
|
|
28592
28795
|
data["min"] = this.min;
|
|
28593
28796
|
data["max"] = this.max;
|
|
28797
|
+
data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined;
|
|
28594
28798
|
data["calibrationInterval"] = this.calibrationInterval;
|
|
28595
28799
|
data["serialNumber"] = this.serialNumber;
|
|
28596
28800
|
data["precision"] = this.precision;
|
|
@@ -38869,6 +39073,7 @@ export class TrackingHistoryDto {
|
|
|
38869
39073
|
this.materialLine = _data["materialLine"];
|
|
38870
39074
|
this.materialPartName = _data["materialPartName"];
|
|
38871
39075
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
39076
|
+
this.category = _data["category"];
|
|
38872
39077
|
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
|
|
38873
39078
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
38874
39079
|
this.trackingEvents = [];
|
|
@@ -38893,6 +39098,7 @@ export class TrackingHistoryDto {
|
|
|
38893
39098
|
data["materialLine"] = this.materialLine;
|
|
38894
39099
|
data["materialPartName"] = this.materialPartName;
|
|
38895
39100
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
39101
|
+
data["category"] = this.category;
|
|
38896
39102
|
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
|
|
38897
39103
|
if (Array.isArray(this.trackingEvents)) {
|
|
38898
39104
|
data["trackingEvents"] = [];
|
|
@@ -39090,6 +39296,7 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39090
39296
|
this.materialLine = _data["materialLine"];
|
|
39091
39297
|
this.materialPartName = _data["materialPartName"];
|
|
39092
39298
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
39299
|
+
this.category = _data["category"];
|
|
39093
39300
|
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
|
|
39094
39301
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
39095
39302
|
this.trackingEvents = [];
|
|
@@ -39120,6 +39327,7 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39120
39327
|
data["materialLine"] = this.materialLine;
|
|
39121
39328
|
data["materialPartName"] = this.materialPartName;
|
|
39122
39329
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
39330
|
+
data["category"] = this.category;
|
|
39123
39331
|
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
|
|
39124
39332
|
if (Array.isArray(this.trackingEvents)) {
|
|
39125
39333
|
data["trackingEvents"] = [];
|
|
@@ -44924,6 +45132,43 @@ export class MeasurementFormWorkorderSupplierDto {
|
|
|
44924
45132
|
return data;
|
|
44925
45133
|
}
|
|
44926
45134
|
}
|
|
45135
|
+
export class DeleteMeasurementFormsInstancesBulkRequest {
|
|
45136
|
+
constructor(data) {
|
|
45137
|
+
if (data) {
|
|
45138
|
+
for (var property in data) {
|
|
45139
|
+
if (data.hasOwnProperty(property))
|
|
45140
|
+
this[property] = data[property];
|
|
45141
|
+
}
|
|
45142
|
+
}
|
|
45143
|
+
if (!data) {
|
|
45144
|
+
this.ids = [];
|
|
45145
|
+
}
|
|
45146
|
+
}
|
|
45147
|
+
init(_data) {
|
|
45148
|
+
if (_data) {
|
|
45149
|
+
if (Array.isArray(_data["ids"])) {
|
|
45150
|
+
this.ids = [];
|
|
45151
|
+
for (let item of _data["ids"])
|
|
45152
|
+
this.ids.push(item);
|
|
45153
|
+
}
|
|
45154
|
+
}
|
|
45155
|
+
}
|
|
45156
|
+
static fromJS(data) {
|
|
45157
|
+
data = typeof data === 'object' ? data : {};
|
|
45158
|
+
let result = new DeleteMeasurementFormsInstancesBulkRequest();
|
|
45159
|
+
result.init(data);
|
|
45160
|
+
return result;
|
|
45161
|
+
}
|
|
45162
|
+
toJSON(data) {
|
|
45163
|
+
data = typeof data === 'object' ? data : {};
|
|
45164
|
+
if (Array.isArray(this.ids)) {
|
|
45165
|
+
data["ids"] = [];
|
|
45166
|
+
for (let item of this.ids)
|
|
45167
|
+
data["ids"].push(item);
|
|
45168
|
+
}
|
|
45169
|
+
return data;
|
|
45170
|
+
}
|
|
45171
|
+
}
|
|
44927
45172
|
export class ListMeasurementFormsByStatusRequest {
|
|
44928
45173
|
constructor(data) {
|
|
44929
45174
|
if (data) {
|