@ignos/api-client 20260921.282.1-alpha → 20260924.284.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AuthorizedApiBase.js +28 -27
- package/lib/ignosportal-api.d.ts +263 -32
- package/lib/ignosportal-api.js +802 -134
- package/package.json +2 -2
- package/src/ignosportal-api.ts +720 -45
- package/tsconfig.json +3 -2
package/lib/ignosportal-api.js
CHANGED
|
@@ -6,42 +6,45 @@
|
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
// ReSharper disable InconsistentNaming
|
|
8
8
|
export class AuthorizedApiBase {
|
|
9
|
+
config;
|
|
9
10
|
constructor(config) {
|
|
10
|
-
this.transformOptions = async (options) => {
|
|
11
|
-
options.headers = {
|
|
12
|
-
...options.headers,
|
|
13
|
-
Authorization: "Bearer " + (await this.config.accessTokenProvider.getAccessToken()),
|
|
14
|
-
};
|
|
15
|
-
const tenantId = this.config.tenantIdProvider.getTenantId();
|
|
16
|
-
if (tenantId)
|
|
17
|
-
options.headers["x-tenantid"] = tenantId;
|
|
18
|
-
return options;
|
|
19
|
-
};
|
|
20
|
-
this.jsonParseReviver = (_, value) => {
|
|
21
|
-
if (typeof value !== "string")
|
|
22
|
-
return value;
|
|
23
|
-
// Matches starts with "2025-12-09T13:19:39"
|
|
24
|
-
// Will also match "2025-12-09T13:19:39.4576289+00:00"
|
|
25
|
-
const regex = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/;
|
|
26
|
-
if (!regex.test(value))
|
|
27
|
-
return value;
|
|
28
|
-
// JS Date only supports millisecond precision (3 fractional digits).
|
|
29
|
-
// Timestamps with microseconds or higher (e.g. ".4576289") produce Invalid Date.
|
|
30
|
-
// Truncate any excess fractional digits before parsing.
|
|
31
|
-
const normalized = value.replace(/(\.\d{3})\d+/, "$1");
|
|
32
|
-
const date = new Date(normalized);
|
|
33
|
-
// Prevent values like "2025-12-09T13:19:39.4576289+00:00 bla bla bla" from being parsed as Date
|
|
34
|
-
// (values not starting with an ISO date-time are already filtered out by the regex above)
|
|
35
|
-
return isNaN(date.getTime()) ? value : date;
|
|
36
|
-
};
|
|
37
11
|
this.config = config;
|
|
38
12
|
}
|
|
13
|
+
transformOptions = async (options) => {
|
|
14
|
+
options.headers = {
|
|
15
|
+
...options.headers,
|
|
16
|
+
Authorization: "Bearer " + (await this.config.accessTokenProvider.getAccessToken()),
|
|
17
|
+
};
|
|
18
|
+
const tenantId = this.config.tenantIdProvider.getTenantId();
|
|
19
|
+
if (tenantId)
|
|
20
|
+
options.headers["x-tenantid"] = tenantId;
|
|
21
|
+
return options;
|
|
22
|
+
};
|
|
23
|
+
jsonParseReviver = (_, value) => {
|
|
24
|
+
if (typeof value !== "string")
|
|
25
|
+
return value;
|
|
26
|
+
// Matches starts with "2025-12-09T13:19:39"
|
|
27
|
+
// Will also match "2025-12-09T13:19:39.4576289+00:00"
|
|
28
|
+
const regex = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/;
|
|
29
|
+
if (!regex.test(value))
|
|
30
|
+
return value;
|
|
31
|
+
// JS Date only supports millisecond precision (3 fractional digits).
|
|
32
|
+
// Timestamps with microseconds or higher (e.g. ".4576289") produce Invalid Date.
|
|
33
|
+
// Truncate any excess fractional digits before parsing.
|
|
34
|
+
const normalized = value.replace(/(\.\d{3})\d+/, "$1");
|
|
35
|
+
const date = new Date(normalized);
|
|
36
|
+
// Prevent values like "2025-12-09T13:19:39.4576289+00:00 bla bla bla" from being parsed as Date
|
|
37
|
+
// (values not starting with an ISO date-time are already filtered out by the regex above)
|
|
38
|
+
return isNaN(date.getTime()) ? value : date;
|
|
39
|
+
};
|
|
39
40
|
}
|
|
40
41
|
export class AzureRegionsClient extends AuthorizedApiBase {
|
|
42
|
+
http;
|
|
43
|
+
baseUrl;
|
|
41
44
|
constructor(configuration, baseUrl, http) {
|
|
42
45
|
super(configuration);
|
|
43
46
|
this.http = http ? http : window;
|
|
44
|
-
this.baseUrl = baseUrl
|
|
47
|
+
this.baseUrl = baseUrl ?? "";
|
|
45
48
|
}
|
|
46
49
|
listAzureRegions() {
|
|
47
50
|
let url_ = this.baseUrl + "/azureregions";
|
|
@@ -81,10 +84,12 @@ export class AzureRegionsClient extends AuthorizedApiBase {
|
|
|
81
84
|
}
|
|
82
85
|
}
|
|
83
86
|
export class CountriesClient extends AuthorizedApiBase {
|
|
87
|
+
http;
|
|
88
|
+
baseUrl;
|
|
84
89
|
constructor(configuration, baseUrl, http) {
|
|
85
90
|
super(configuration);
|
|
86
91
|
this.http = http ? http : window;
|
|
87
|
-
this.baseUrl = baseUrl
|
|
92
|
+
this.baseUrl = baseUrl ?? "";
|
|
88
93
|
}
|
|
89
94
|
listCountries() {
|
|
90
95
|
let url_ = this.baseUrl + "/countries";
|
|
@@ -124,10 +129,12 @@ export class CountriesClient extends AuthorizedApiBase {
|
|
|
124
129
|
}
|
|
125
130
|
}
|
|
126
131
|
export class CustomersClient extends AuthorizedApiBase {
|
|
132
|
+
http;
|
|
133
|
+
baseUrl;
|
|
127
134
|
constructor(configuration, baseUrl, http) {
|
|
128
135
|
super(configuration);
|
|
129
136
|
this.http = http ? http : window;
|
|
130
|
-
this.baseUrl = baseUrl
|
|
137
|
+
this.baseUrl = baseUrl ?? "";
|
|
131
138
|
}
|
|
132
139
|
getCurrentCustomer() {
|
|
133
140
|
let url_ = this.baseUrl + "/customers";
|
|
@@ -530,10 +537,12 @@ export class CustomersClient extends AuthorizedApiBase {
|
|
|
530
537
|
}
|
|
531
538
|
}
|
|
532
539
|
export class GuestsClient extends AuthorizedApiBase {
|
|
540
|
+
http;
|
|
541
|
+
baseUrl;
|
|
533
542
|
constructor(configuration, baseUrl, http) {
|
|
534
543
|
super(configuration);
|
|
535
544
|
this.http = http ? http : window;
|
|
536
|
-
this.baseUrl = baseUrl
|
|
545
|
+
this.baseUrl = baseUrl ?? "";
|
|
537
546
|
}
|
|
538
547
|
getGuestLoginInfo(search) {
|
|
539
548
|
let url_ = this.baseUrl + "/guests/search?";
|
|
@@ -577,10 +586,12 @@ export class GuestsClient extends AuthorizedApiBase {
|
|
|
577
586
|
}
|
|
578
587
|
}
|
|
579
588
|
export class PresentationClient extends AuthorizedApiBase {
|
|
589
|
+
http;
|
|
590
|
+
baseUrl;
|
|
580
591
|
constructor(configuration, baseUrl, http) {
|
|
581
592
|
super(configuration);
|
|
582
593
|
this.http = http ? http : window;
|
|
583
|
-
this.baseUrl = baseUrl
|
|
594
|
+
this.baseUrl = baseUrl ?? "";
|
|
584
595
|
}
|
|
585
596
|
getComponentSettings(componentId) {
|
|
586
597
|
let url_ = this.baseUrl + "/presentation/components/{componentId}";
|
|
@@ -623,10 +634,12 @@ export class PresentationClient extends AuthorizedApiBase {
|
|
|
623
634
|
}
|
|
624
635
|
}
|
|
625
636
|
export class SpatialClient extends AuthorizedApiBase {
|
|
637
|
+
http;
|
|
638
|
+
baseUrl;
|
|
626
639
|
constructor(configuration, baseUrl, http) {
|
|
627
640
|
super(configuration);
|
|
628
641
|
this.http = http ? http : window;
|
|
629
|
-
this.baseUrl = baseUrl
|
|
642
|
+
this.baseUrl = baseUrl ?? "";
|
|
630
643
|
}
|
|
631
644
|
listBuildingFloors(floor) {
|
|
632
645
|
let url_ = this.baseUrl + "/spatial/building-floors?";
|
|
@@ -1323,10 +1336,12 @@ export class SpatialClient extends AuthorizedApiBase {
|
|
|
1323
1336
|
}
|
|
1324
1337
|
}
|
|
1325
1338
|
export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
1339
|
+
http;
|
|
1340
|
+
baseUrl;
|
|
1326
1341
|
constructor(configuration, baseUrl, http) {
|
|
1327
1342
|
super(configuration);
|
|
1328
1343
|
this.http = http ? http : window;
|
|
1329
|
-
this.baseUrl = baseUrl
|
|
1344
|
+
this.baseUrl = baseUrl ?? "";
|
|
1330
1345
|
}
|
|
1331
1346
|
/**
|
|
1332
1347
|
* Get machine utilization data. Historic utilizations start from now, whereas the start for current utilization is
|
|
@@ -1781,10 +1796,12 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
1781
1796
|
}
|
|
1782
1797
|
}
|
|
1783
1798
|
export class ResourceUtilizationClient extends AuthorizedApiBase {
|
|
1799
|
+
http;
|
|
1800
|
+
baseUrl;
|
|
1784
1801
|
constructor(configuration, baseUrl, http) {
|
|
1785
1802
|
super(configuration);
|
|
1786
1803
|
this.http = http ? http : window;
|
|
1787
|
-
this.baseUrl = baseUrl
|
|
1804
|
+
this.baseUrl = baseUrl ?? "";
|
|
1788
1805
|
}
|
|
1789
1806
|
/**
|
|
1790
1807
|
* Get resource utilization data. Historic utilizations start from now, whereas the start for current utilization is
|
|
@@ -2191,10 +2208,12 @@ export class ResourceUtilizationClient extends AuthorizedApiBase {
|
|
|
2191
2208
|
}
|
|
2192
2209
|
}
|
|
2193
2210
|
export class MeClient extends AuthorizedApiBase {
|
|
2211
|
+
http;
|
|
2212
|
+
baseUrl;
|
|
2194
2213
|
constructor(configuration, baseUrl, http) {
|
|
2195
2214
|
super(configuration);
|
|
2196
2215
|
this.http = http ? http : window;
|
|
2197
|
-
this.baseUrl = baseUrl
|
|
2216
|
+
this.baseUrl = baseUrl ?? "";
|
|
2198
2217
|
}
|
|
2199
2218
|
getMyApps() {
|
|
2200
2219
|
let url_ = this.baseUrl + "/me/apps";
|
|
@@ -2445,10 +2464,12 @@ export class MeClient extends AuthorizedApiBase {
|
|
|
2445
2464
|
}
|
|
2446
2465
|
}
|
|
2447
2466
|
export class UsersClient extends AuthorizedApiBase {
|
|
2467
|
+
http;
|
|
2468
|
+
baseUrl;
|
|
2448
2469
|
constructor(configuration, baseUrl, http) {
|
|
2449
2470
|
super(configuration);
|
|
2450
2471
|
this.http = http ? http : window;
|
|
2451
|
-
this.baseUrl = baseUrl
|
|
2472
|
+
this.baseUrl = baseUrl ?? "";
|
|
2452
2473
|
}
|
|
2453
2474
|
listUsers(pageSize, filter, continuationToken) {
|
|
2454
2475
|
let url_ = this.baseUrl + "/users?";
|
|
@@ -2574,10 +2595,12 @@ export class UsersClient extends AuthorizedApiBase {
|
|
|
2574
2595
|
}
|
|
2575
2596
|
}
|
|
2576
2597
|
export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
2598
|
+
http;
|
|
2599
|
+
baseUrl;
|
|
2577
2600
|
constructor(configuration, baseUrl, http) {
|
|
2578
2601
|
super(configuration);
|
|
2579
2602
|
this.http = http ? http : window;
|
|
2580
|
-
this.baseUrl = baseUrl
|
|
2603
|
+
this.baseUrl = baseUrl ?? "";
|
|
2581
2604
|
}
|
|
2582
2605
|
getRouteCardUserSettings() {
|
|
2583
2606
|
let url_ = this.baseUrl + "/userappsettings/route-card";
|
|
@@ -2797,10 +2820,12 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
|
2797
2820
|
}
|
|
2798
2821
|
}
|
|
2799
2822
|
export class UploadClient extends AuthorizedApiBase {
|
|
2823
|
+
http;
|
|
2824
|
+
baseUrl;
|
|
2800
2825
|
constructor(configuration, baseUrl, http) {
|
|
2801
2826
|
super(configuration);
|
|
2802
2827
|
this.http = http ? http : window;
|
|
2803
|
-
this.baseUrl = baseUrl
|
|
2828
|
+
this.baseUrl = baseUrl ?? "";
|
|
2804
2829
|
}
|
|
2805
2830
|
createUploadInfo() {
|
|
2806
2831
|
let url_ = this.baseUrl + "/upload";
|
|
@@ -2879,10 +2904,12 @@ export class UploadClient extends AuthorizedApiBase {
|
|
|
2879
2904
|
}
|
|
2880
2905
|
}
|
|
2881
2906
|
export class SystemHealthDashboardClient extends AuthorizedApiBase {
|
|
2907
|
+
http;
|
|
2908
|
+
baseUrl;
|
|
2882
2909
|
constructor(configuration, baseUrl, http) {
|
|
2883
2910
|
super(configuration);
|
|
2884
2911
|
this.http = http ? http : window;
|
|
2885
|
-
this.baseUrl = baseUrl
|
|
2912
|
+
this.baseUrl = baseUrl ?? "";
|
|
2886
2913
|
}
|
|
2887
2914
|
getMachineDataHealth(assetId) {
|
|
2888
2915
|
let url_ = this.baseUrl + "/systemhealthdashboard?";
|
|
@@ -2924,10 +2951,12 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase {
|
|
|
2924
2951
|
}
|
|
2925
2952
|
}
|
|
2926
2953
|
export class PowerClient extends AuthorizedApiBase {
|
|
2954
|
+
http;
|
|
2955
|
+
baseUrl;
|
|
2927
2956
|
constructor(configuration, baseUrl, http) {
|
|
2928
2957
|
super(configuration);
|
|
2929
2958
|
this.http = http ? http : window;
|
|
2930
|
-
this.baseUrl = baseUrl
|
|
2959
|
+
this.baseUrl = baseUrl ?? "";
|
|
2931
2960
|
}
|
|
2932
2961
|
listPowerRegions(country) {
|
|
2933
2962
|
let url_ = this.baseUrl + "/power/regions?";
|
|
@@ -2969,10 +2998,12 @@ export class PowerClient extends AuthorizedApiBase {
|
|
|
2969
2998
|
}
|
|
2970
2999
|
}
|
|
2971
3000
|
export class SustainabilityClient extends AuthorizedApiBase {
|
|
3001
|
+
http;
|
|
3002
|
+
baseUrl;
|
|
2972
3003
|
constructor(configuration, baseUrl, http) {
|
|
2973
3004
|
super(configuration);
|
|
2974
3005
|
this.http = http ? http : window;
|
|
2975
|
-
this.baseUrl = baseUrl
|
|
3006
|
+
this.baseUrl = baseUrl ?? "";
|
|
2976
3007
|
}
|
|
2977
3008
|
test() {
|
|
2978
3009
|
let url_ = this.baseUrl + "/sustainability/test";
|
|
@@ -3249,10 +3280,12 @@ export class SustainabilityClient extends AuthorizedApiBase {
|
|
|
3249
3280
|
}
|
|
3250
3281
|
}
|
|
3251
3282
|
export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
3283
|
+
http;
|
|
3284
|
+
baseUrl;
|
|
3252
3285
|
constructor(configuration, baseUrl, http) {
|
|
3253
3286
|
super(configuration);
|
|
3254
3287
|
this.http = http ? http : window;
|
|
3255
|
-
this.baseUrl = baseUrl
|
|
3288
|
+
this.baseUrl = baseUrl ?? "";
|
|
3256
3289
|
}
|
|
3257
3290
|
listMachineAlarms(alarmType, assetId, startTime, endTime, subType, nativeCode, nativeSeverity, name, sequence, limit, continuationToken, orderBy, sortDirection) {
|
|
3258
3291
|
let url_ = this.baseUrl + "/machinealarms?";
|
|
@@ -3544,10 +3577,12 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
3544
3577
|
}
|
|
3545
3578
|
}
|
|
3546
3579
|
export class DowntimeReasonsAdminResourceClient extends AuthorizedApiBase {
|
|
3580
|
+
http;
|
|
3581
|
+
baseUrl;
|
|
3547
3582
|
constructor(configuration, baseUrl, http) {
|
|
3548
3583
|
super(configuration);
|
|
3549
3584
|
this.http = http ? http : window;
|
|
3550
|
-
this.baseUrl = baseUrl
|
|
3585
|
+
this.baseUrl = baseUrl ?? "";
|
|
3551
3586
|
}
|
|
3552
3587
|
listDowntimeReasons() {
|
|
3553
3588
|
let url_ = this.baseUrl + "/downtimereasonsadminresource/downtimereasons";
|
|
@@ -3891,10 +3926,12 @@ export class DowntimeReasonsAdminResourceClient extends AuthorizedApiBase {
|
|
|
3891
3926
|
}
|
|
3892
3927
|
}
|
|
3893
3928
|
export class DowntimeReasonsResourceClient extends AuthorizedApiBase {
|
|
3929
|
+
http;
|
|
3930
|
+
baseUrl;
|
|
3894
3931
|
constructor(configuration, baseUrl, http) {
|
|
3895
3932
|
super(configuration);
|
|
3896
3933
|
this.http = http ? http : window;
|
|
3897
|
-
this.baseUrl = baseUrl
|
|
3934
|
+
this.baseUrl = baseUrl ?? "";
|
|
3898
3935
|
}
|
|
3899
3936
|
createDowntimePeriodReason(request) {
|
|
3900
3937
|
let url_ = this.baseUrl + "/downtimereasonsresource";
|
|
@@ -4288,10 +4325,12 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase {
|
|
|
4288
4325
|
}
|
|
4289
4326
|
}
|
|
4290
4327
|
export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
4328
|
+
http;
|
|
4329
|
+
baseUrl;
|
|
4291
4330
|
constructor(configuration, baseUrl, http) {
|
|
4292
4331
|
super(configuration);
|
|
4293
4332
|
this.http = http ? http : window;
|
|
4294
|
-
this.baseUrl = baseUrl
|
|
4333
|
+
this.baseUrl = baseUrl ?? "";
|
|
4295
4334
|
}
|
|
4296
4335
|
getResourceCapacityAdmin() {
|
|
4297
4336
|
let url_ = this.baseUrl + "/kpiadminresource/capacity";
|
|
@@ -4923,10 +4962,12 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4923
4962
|
}
|
|
4924
4963
|
}
|
|
4925
4964
|
export class KpiResourceClient extends AuthorizedApiBase {
|
|
4965
|
+
http;
|
|
4966
|
+
baseUrl;
|
|
4926
4967
|
constructor(configuration, baseUrl, http) {
|
|
4927
4968
|
super(configuration);
|
|
4928
4969
|
this.http = http ? http : window;
|
|
4929
|
-
this.baseUrl = baseUrl
|
|
4970
|
+
this.baseUrl = baseUrl ?? "";
|
|
4930
4971
|
}
|
|
4931
4972
|
getResourceKpi(resourceExternalId, previousPeriodStartDate, startDate, endDate, utcOffset) {
|
|
4932
4973
|
let url_ = this.baseUrl + "/kpiresource/capacity?";
|
|
@@ -5078,10 +5119,12 @@ export class KpiResourceClient extends AuthorizedApiBase {
|
|
|
5078
5119
|
}
|
|
5079
5120
|
}
|
|
5080
5121
|
export class ResourcesClient extends AuthorizedApiBase {
|
|
5122
|
+
http;
|
|
5123
|
+
baseUrl;
|
|
5081
5124
|
constructor(configuration, baseUrl, http) {
|
|
5082
5125
|
super(configuration);
|
|
5083
5126
|
this.http = http ? http : window;
|
|
5084
|
-
this.baseUrl = baseUrl
|
|
5127
|
+
this.baseUrl = baseUrl ?? "";
|
|
5085
5128
|
}
|
|
5086
5129
|
listResources(onlyConnectedResources) {
|
|
5087
5130
|
let url_ = this.baseUrl + "/resources?";
|
|
@@ -5925,10 +5968,12 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
5925
5968
|
}
|
|
5926
5969
|
}
|
|
5927
5970
|
export class PulseClient extends AuthorizedApiBase {
|
|
5971
|
+
http;
|
|
5972
|
+
baseUrl;
|
|
5928
5973
|
constructor(configuration, baseUrl, http) {
|
|
5929
5974
|
super(configuration);
|
|
5930
5975
|
this.http = http ? http : window;
|
|
5931
|
-
this.baseUrl = baseUrl
|
|
5976
|
+
this.baseUrl = baseUrl ?? "";
|
|
5932
5977
|
}
|
|
5933
5978
|
/**
|
|
5934
5979
|
* @deprecated
|
|
@@ -6088,10 +6133,12 @@ export class PulseClient extends AuthorizedApiBase {
|
|
|
6088
6133
|
}
|
|
6089
6134
|
}
|
|
6090
6135
|
export class PulseJournalClient extends AuthorizedApiBase {
|
|
6136
|
+
http;
|
|
6137
|
+
baseUrl;
|
|
6091
6138
|
constructor(configuration, baseUrl, http) {
|
|
6092
6139
|
super(configuration);
|
|
6093
6140
|
this.http = http ? http : window;
|
|
6094
|
-
this.baseUrl = baseUrl
|
|
6141
|
+
this.baseUrl = baseUrl ?? "";
|
|
6095
6142
|
}
|
|
6096
6143
|
getBoards(resourceId) {
|
|
6097
6144
|
let url_ = this.baseUrl + "/pulsejournal/{resourceId}";
|
|
@@ -6755,10 +6802,12 @@ export class PulseJournalClient extends AuthorizedApiBase {
|
|
|
6755
6802
|
}
|
|
6756
6803
|
}
|
|
6757
6804
|
export class UtilizationClient extends AuthorizedApiBase {
|
|
6805
|
+
http;
|
|
6806
|
+
baseUrl;
|
|
6758
6807
|
constructor(configuration, baseUrl, http) {
|
|
6759
6808
|
super(configuration);
|
|
6760
6809
|
this.http = http ? http : window;
|
|
6761
|
-
this.baseUrl = baseUrl
|
|
6810
|
+
this.baseUrl = baseUrl ?? "";
|
|
6762
6811
|
}
|
|
6763
6812
|
getCompanyUtilization(request) {
|
|
6764
6813
|
let url_ = this.baseUrl + "/utilization";
|
|
@@ -7255,10 +7304,12 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
7255
7304
|
}
|
|
7256
7305
|
}
|
|
7257
7306
|
export class MrbClient extends AuthorizedApiBase {
|
|
7307
|
+
http;
|
|
7308
|
+
baseUrl;
|
|
7258
7309
|
constructor(configuration, baseUrl, http) {
|
|
7259
7310
|
super(configuration);
|
|
7260
7311
|
this.http = http ? http : window;
|
|
7261
|
-
this.baseUrl = baseUrl
|
|
7312
|
+
this.baseUrl = baseUrl ?? "";
|
|
7262
7313
|
}
|
|
7263
7314
|
listMrbInstances(customerOrder, customerOrderLine) {
|
|
7264
7315
|
let url_ = this.baseUrl + "/mrb?";
|
|
@@ -7416,6 +7467,45 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
7416
7467
|
}
|
|
7417
7468
|
return Promise.resolve(null);
|
|
7418
7469
|
}
|
|
7470
|
+
updateMrbInstanceNcInfo(id, request) {
|
|
7471
|
+
let url_ = this.baseUrl + "/mrb/{id}/ncinfo";
|
|
7472
|
+
if (id === undefined || id === null)
|
|
7473
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7474
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7475
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7476
|
+
const content_ = JSON.stringify(request);
|
|
7477
|
+
let options_ = {
|
|
7478
|
+
body: content_,
|
|
7479
|
+
method: "PUT",
|
|
7480
|
+
headers: {
|
|
7481
|
+
"Content-Type": "application/json",
|
|
7482
|
+
}
|
|
7483
|
+
};
|
|
7484
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7485
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
7486
|
+
}).then((_response) => {
|
|
7487
|
+
return this.processUpdateMrbInstanceNcInfo(_response);
|
|
7488
|
+
});
|
|
7489
|
+
}
|
|
7490
|
+
processUpdateMrbInstanceNcInfo(response) {
|
|
7491
|
+
const status = response.status;
|
|
7492
|
+
let _headers = {};
|
|
7493
|
+
if (response.headers && response.headers.forEach) {
|
|
7494
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7495
|
+
}
|
|
7496
|
+
;
|
|
7497
|
+
if (status === 204) {
|
|
7498
|
+
return response.text().then((_responseText) => {
|
|
7499
|
+
return;
|
|
7500
|
+
});
|
|
7501
|
+
}
|
|
7502
|
+
else if (status !== 200 && status !== 204) {
|
|
7503
|
+
return response.text().then((_responseText) => {
|
|
7504
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7505
|
+
});
|
|
7506
|
+
}
|
|
7507
|
+
return Promise.resolve(null);
|
|
7508
|
+
}
|
|
7419
7509
|
listMrbInstanceRevisions(id) {
|
|
7420
7510
|
let url_ = this.baseUrl + "/mrb/{id}/revisions";
|
|
7421
7511
|
if (id === undefined || id === null)
|
|
@@ -8479,10 +8569,12 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
8479
8569
|
}
|
|
8480
8570
|
}
|
|
8481
8571
|
export class TraceClient extends AuthorizedApiBase {
|
|
8572
|
+
http;
|
|
8573
|
+
baseUrl;
|
|
8482
8574
|
constructor(configuration, baseUrl, http) {
|
|
8483
8575
|
super(configuration);
|
|
8484
8576
|
this.http = http ? http : window;
|
|
8485
|
-
this.baseUrl = baseUrl
|
|
8577
|
+
this.baseUrl = baseUrl ?? "";
|
|
8486
8578
|
}
|
|
8487
8579
|
getTrace(id) {
|
|
8488
8580
|
let url_ = this.baseUrl + "/trace/{id}";
|
|
@@ -8869,10 +8961,12 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
8869
8961
|
}
|
|
8870
8962
|
}
|
|
8871
8963
|
export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
8964
|
+
http;
|
|
8965
|
+
baseUrl;
|
|
8872
8966
|
constructor(configuration, baseUrl, http) {
|
|
8873
8967
|
super(configuration);
|
|
8874
8968
|
this.http = http ? http : window;
|
|
8875
|
-
this.baseUrl = baseUrl
|
|
8969
|
+
this.baseUrl = baseUrl ?? "";
|
|
8876
8970
|
}
|
|
8877
8971
|
listMeasuringTools(page, pageSize, toolId, toolName, typeId, subTypeId, orderBy, sortDirection, includeDeprecated) {
|
|
8878
8972
|
let url_ = this.baseUrl + "/measuringtools?";
|
|
@@ -10226,10 +10320,12 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
10226
10320
|
}
|
|
10227
10321
|
}
|
|
10228
10322
|
export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
10323
|
+
http;
|
|
10324
|
+
baseUrl;
|
|
10229
10325
|
constructor(configuration, baseUrl, http) {
|
|
10230
10326
|
super(configuration);
|
|
10231
10327
|
this.http = http ? http : window;
|
|
10232
|
-
this.baseUrl = baseUrl
|
|
10328
|
+
this.baseUrl = baseUrl ?? "";
|
|
10233
10329
|
}
|
|
10234
10330
|
listDowntimeReasons() {
|
|
10235
10331
|
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons";
|
|
@@ -10573,10 +10669,12 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
|
10573
10669
|
}
|
|
10574
10670
|
}
|
|
10575
10671
|
export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
10672
|
+
http;
|
|
10673
|
+
baseUrl;
|
|
10576
10674
|
constructor(configuration, baseUrl, http) {
|
|
10577
10675
|
super(configuration);
|
|
10578
10676
|
this.http = http ? http : window;
|
|
10579
|
-
this.baseUrl = baseUrl
|
|
10677
|
+
this.baseUrl = baseUrl ?? "";
|
|
10580
10678
|
}
|
|
10581
10679
|
createDowntimePeriodReason(request) {
|
|
10582
10680
|
let url_ = this.baseUrl + "/downtimereasons";
|
|
@@ -10970,10 +11068,12 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
|
10970
11068
|
}
|
|
10971
11069
|
}
|
|
10972
11070
|
export class KpiAdminClient extends AuthorizedApiBase {
|
|
11071
|
+
http;
|
|
11072
|
+
baseUrl;
|
|
10973
11073
|
constructor(configuration, baseUrl, http) {
|
|
10974
11074
|
super(configuration);
|
|
10975
11075
|
this.http = http ? http : window;
|
|
10976
|
-
this.baseUrl = baseUrl
|
|
11076
|
+
this.baseUrl = baseUrl ?? "";
|
|
10977
11077
|
}
|
|
10978
11078
|
getMachineCapacityAdmin() {
|
|
10979
11079
|
let url_ = this.baseUrl + "/kpiadmin/capacity";
|
|
@@ -11210,10 +11310,12 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
11210
11310
|
}
|
|
11211
11311
|
}
|
|
11212
11312
|
export class KpiClient extends AuthorizedApiBase {
|
|
11313
|
+
http;
|
|
11314
|
+
baseUrl;
|
|
11213
11315
|
constructor(configuration, baseUrl, http) {
|
|
11214
11316
|
super(configuration);
|
|
11215
11317
|
this.http = http ? http : window;
|
|
11216
|
-
this.baseUrl = baseUrl
|
|
11318
|
+
this.baseUrl = baseUrl ?? "";
|
|
11217
11319
|
}
|
|
11218
11320
|
getMachineKpi(machineExternalId, previousPeriodStartDate, startDate, endDate, utcOffset) {
|
|
11219
11321
|
let url_ = this.baseUrl + "/kpi/capacity?";
|
|
@@ -11365,10 +11467,12 @@ export class KpiClient extends AuthorizedApiBase {
|
|
|
11365
11467
|
}
|
|
11366
11468
|
}
|
|
11367
11469
|
export class MachinesClient extends AuthorizedApiBase {
|
|
11470
|
+
http;
|
|
11471
|
+
baseUrl;
|
|
11368
11472
|
constructor(configuration, baseUrl, http) {
|
|
11369
11473
|
super(configuration);
|
|
11370
11474
|
this.http = http ? http : window;
|
|
11371
|
-
this.baseUrl = baseUrl
|
|
11475
|
+
this.baseUrl = baseUrl ?? "";
|
|
11372
11476
|
}
|
|
11373
11477
|
listMachines(onlyConnectedMachines) {
|
|
11374
11478
|
let url_ = this.baseUrl + "/machines?";
|
|
@@ -12185,10 +12289,12 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
12185
12289
|
}
|
|
12186
12290
|
}
|
|
12187
12291
|
export class MachineDataClient extends AuthorizedApiBase {
|
|
12292
|
+
http;
|
|
12293
|
+
baseUrl;
|
|
12188
12294
|
constructor(configuration, baseUrl, http) {
|
|
12189
12295
|
super(configuration);
|
|
12190
12296
|
this.http = http ? http : window;
|
|
12191
|
-
this.baseUrl = baseUrl
|
|
12297
|
+
this.baseUrl = baseUrl ?? "";
|
|
12192
12298
|
}
|
|
12193
12299
|
getLiveMachineData(assetId, externalIds) {
|
|
12194
12300
|
let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
|
|
@@ -12328,10 +12434,12 @@ export class MachineDataClient extends AuthorizedApiBase {
|
|
|
12328
12434
|
}
|
|
12329
12435
|
}
|
|
12330
12436
|
export class LinksClient extends AuthorizedApiBase {
|
|
12437
|
+
http;
|
|
12438
|
+
baseUrl;
|
|
12331
12439
|
constructor(configuration, baseUrl, http) {
|
|
12332
12440
|
super(configuration);
|
|
12333
12441
|
this.http = http ? http : window;
|
|
12334
|
-
this.baseUrl = baseUrl
|
|
12442
|
+
this.baseUrl = baseUrl ?? "";
|
|
12335
12443
|
}
|
|
12336
12444
|
getAllLinks(scope) {
|
|
12337
12445
|
let url_ = this.baseUrl + "/links?";
|
|
@@ -12485,10 +12593,12 @@ export class LinksClient extends AuthorizedApiBase {
|
|
|
12485
12593
|
}
|
|
12486
12594
|
}
|
|
12487
12595
|
export class ExternalServicesClient extends AuthorizedApiBase {
|
|
12596
|
+
http;
|
|
12597
|
+
baseUrl;
|
|
12488
12598
|
constructor(configuration, baseUrl, http) {
|
|
12489
12599
|
super(configuration);
|
|
12490
12600
|
this.http = http ? http : window;
|
|
12491
|
-
this.baseUrl = baseUrl
|
|
12601
|
+
this.baseUrl = baseUrl ?? "";
|
|
12492
12602
|
}
|
|
12493
12603
|
getCredential(serviceName) {
|
|
12494
12604
|
let url_ = this.baseUrl + "/externalservices/credentials/{serviceName}";
|
|
@@ -12531,10 +12641,12 @@ export class ExternalServicesClient extends AuthorizedApiBase {
|
|
|
12531
12641
|
}
|
|
12532
12642
|
}
|
|
12533
12643
|
export class DocumentsClient extends AuthorizedApiBase {
|
|
12644
|
+
http;
|
|
12645
|
+
baseUrl;
|
|
12534
12646
|
constructor(configuration, baseUrl, http) {
|
|
12535
12647
|
super(configuration);
|
|
12536
12648
|
this.http = http ? http : window;
|
|
12537
|
-
this.baseUrl = baseUrl
|
|
12649
|
+
this.baseUrl = baseUrl ?? "";
|
|
12538
12650
|
}
|
|
12539
12651
|
/**
|
|
12540
12652
|
* Import document with revisions from other systems.
|
|
@@ -12624,10 +12736,12 @@ export class DocumentsClient extends AuthorizedApiBase {
|
|
|
12624
12736
|
}
|
|
12625
12737
|
}
|
|
12626
12738
|
export class DocumentTypesClient extends AuthorizedApiBase {
|
|
12739
|
+
http;
|
|
12740
|
+
baseUrl;
|
|
12627
12741
|
constructor(configuration, baseUrl, http) {
|
|
12628
12742
|
super(configuration);
|
|
12629
12743
|
this.http = http ? http : window;
|
|
12630
|
-
this.baseUrl = baseUrl
|
|
12744
|
+
this.baseUrl = baseUrl ?? "";
|
|
12631
12745
|
}
|
|
12632
12746
|
listDocumentTypes(includeInactive) {
|
|
12633
12747
|
let url_ = this.baseUrl + "/documenttypes?";
|
|
@@ -13049,10 +13163,12 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
13049
13163
|
}
|
|
13050
13164
|
}
|
|
13051
13165
|
export class ExternalAccessClient extends AuthorizedApiBase {
|
|
13166
|
+
http;
|
|
13167
|
+
baseUrl;
|
|
13052
13168
|
constructor(configuration, baseUrl, http) {
|
|
13053
13169
|
super(configuration);
|
|
13054
13170
|
this.http = http ? http : window;
|
|
13055
|
-
this.baseUrl = baseUrl
|
|
13171
|
+
this.baseUrl = baseUrl ?? "";
|
|
13056
13172
|
}
|
|
13057
13173
|
listUsers(companyId) {
|
|
13058
13174
|
let url_ = this.baseUrl + "/externalaccess/users?";
|
|
@@ -13319,10 +13435,12 @@ export class ExternalAccessClient extends AuthorizedApiBase {
|
|
|
13319
13435
|
}
|
|
13320
13436
|
}
|
|
13321
13437
|
export class ExternalClient extends AuthorizedApiBase {
|
|
13438
|
+
http;
|
|
13439
|
+
baseUrl;
|
|
13322
13440
|
constructor(configuration, baseUrl, http) {
|
|
13323
13441
|
super(configuration);
|
|
13324
13442
|
this.http = http ? http : window;
|
|
13325
|
-
this.baseUrl = baseUrl
|
|
13443
|
+
this.baseUrl = baseUrl ?? "";
|
|
13326
13444
|
}
|
|
13327
13445
|
listInvites() {
|
|
13328
13446
|
let url_ = this.baseUrl + "/external/invites";
|
|
@@ -13437,10 +13555,12 @@ export class ExternalClient extends AuthorizedApiBase {
|
|
|
13437
13555
|
}
|
|
13438
13556
|
}
|
|
13439
13557
|
export class SuppliersClient extends AuthorizedApiBase {
|
|
13558
|
+
http;
|
|
13559
|
+
baseUrl;
|
|
13440
13560
|
constructor(configuration, baseUrl, http) {
|
|
13441
13561
|
super(configuration);
|
|
13442
13562
|
this.http = http ? http : window;
|
|
13443
|
-
this.baseUrl = baseUrl
|
|
13563
|
+
this.baseUrl = baseUrl ?? "";
|
|
13444
13564
|
}
|
|
13445
13565
|
listSupplierInvites() {
|
|
13446
13566
|
let url_ = this.baseUrl + "/suppliers/supplierinvites";
|
|
@@ -13738,10 +13858,12 @@ export class SuppliersClient extends AuthorizedApiBase {
|
|
|
13738
13858
|
}
|
|
13739
13859
|
}
|
|
13740
13860
|
export class CncFileTransferClient extends AuthorizedApiBase {
|
|
13861
|
+
http;
|
|
13862
|
+
baseUrl;
|
|
13741
13863
|
constructor(configuration, baseUrl, http) {
|
|
13742
13864
|
super(configuration);
|
|
13743
13865
|
this.http = http ? http : window;
|
|
13744
|
-
this.baseUrl = baseUrl
|
|
13866
|
+
this.baseUrl = baseUrl ?? "";
|
|
13745
13867
|
}
|
|
13746
13868
|
startCncMachineOperationTransferToCloud(id) {
|
|
13747
13869
|
let url_ = this.baseUrl + "/cncfiletransfer/operations/{id}/transfertocloud";
|
|
@@ -14022,10 +14144,12 @@ export class CncFileTransferClient extends AuthorizedApiBase {
|
|
|
14022
14144
|
}
|
|
14023
14145
|
}
|
|
14024
14146
|
export class CncSetupAgentClient extends AuthorizedApiBase {
|
|
14147
|
+
http;
|
|
14148
|
+
baseUrl;
|
|
14025
14149
|
constructor(configuration, baseUrl, http) {
|
|
14026
14150
|
super(configuration);
|
|
14027
14151
|
this.http = http ? http : window;
|
|
14028
|
-
this.baseUrl = baseUrl
|
|
14152
|
+
this.baseUrl = baseUrl ?? "";
|
|
14029
14153
|
}
|
|
14030
14154
|
getCncAgentConfig(agentId, agentVersion) {
|
|
14031
14155
|
let url_ = this.baseUrl + "/cncsetupagent/agentconfig?";
|
|
@@ -14150,10 +14274,12 @@ export class CncSetupAgentClient extends AuthorizedApiBase {
|
|
|
14150
14274
|
}
|
|
14151
14275
|
}
|
|
14152
14276
|
export class CncSetupClient extends AuthorizedApiBase {
|
|
14277
|
+
http;
|
|
14278
|
+
baseUrl;
|
|
14153
14279
|
constructor(configuration, baseUrl, http) {
|
|
14154
14280
|
super(configuration);
|
|
14155
14281
|
this.http = http ? http : window;
|
|
14156
|
-
this.baseUrl = baseUrl
|
|
14282
|
+
this.baseUrl = baseUrl ?? "";
|
|
14157
14283
|
}
|
|
14158
14284
|
getCncMachine(id) {
|
|
14159
14285
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}";
|
|
@@ -16443,10 +16569,12 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
16443
16569
|
}
|
|
16444
16570
|
}
|
|
16445
16571
|
export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
16572
|
+
http;
|
|
16573
|
+
baseUrl;
|
|
16446
16574
|
constructor(configuration, baseUrl, http) {
|
|
16447
16575
|
super(configuration);
|
|
16448
16576
|
this.http = http ? http : window;
|
|
16449
|
-
this.baseUrl = baseUrl
|
|
16577
|
+
this.baseUrl = baseUrl ?? "";
|
|
16450
16578
|
}
|
|
16451
16579
|
listFixtures(request) {
|
|
16452
16580
|
let url_ = this.baseUrl + "/fixtures/list";
|
|
@@ -17050,10 +17178,12 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
17050
17178
|
}
|
|
17051
17179
|
}
|
|
17052
17180
|
export class OperatorCalculatorsClient extends AuthorizedApiBase {
|
|
17181
|
+
http;
|
|
17182
|
+
baseUrl;
|
|
17053
17183
|
constructor(configuration, baseUrl, http) {
|
|
17054
17184
|
super(configuration);
|
|
17055
17185
|
this.http = http ? http : window;
|
|
17056
|
-
this.baseUrl = baseUrl
|
|
17186
|
+
this.baseUrl = baseUrl ?? "";
|
|
17057
17187
|
}
|
|
17058
17188
|
/**
|
|
17059
17189
|
* Calculate spindle speed from cutting speed or vice versa.
|
|
@@ -17225,10 +17355,12 @@ export class OperatorCalculatorsClient extends AuthorizedApiBase {
|
|
|
17225
17355
|
}
|
|
17226
17356
|
}
|
|
17227
17357
|
export class AssetsClient extends AuthorizedApiBase {
|
|
17358
|
+
http;
|
|
17359
|
+
baseUrl;
|
|
17228
17360
|
constructor(configuration, baseUrl, http) {
|
|
17229
17361
|
super(configuration);
|
|
17230
17362
|
this.http = http ? http : window;
|
|
17231
|
-
this.baseUrl = baseUrl
|
|
17363
|
+
this.baseUrl = baseUrl ?? "";
|
|
17232
17364
|
}
|
|
17233
17365
|
listAssets(externalIdprefix, name, source, limit, continuationToken) {
|
|
17234
17366
|
let url_ = this.baseUrl + "/assets?";
|
|
@@ -17522,10 +17654,12 @@ export class AssetsClient extends AuthorizedApiBase {
|
|
|
17522
17654
|
}
|
|
17523
17655
|
}
|
|
17524
17656
|
export class AlertsClient extends AuthorizedApiBase {
|
|
17657
|
+
http;
|
|
17658
|
+
baseUrl;
|
|
17525
17659
|
constructor(configuration, baseUrl, http) {
|
|
17526
17660
|
super(configuration);
|
|
17527
17661
|
this.http = http ? http : window;
|
|
17528
|
-
this.baseUrl = baseUrl
|
|
17662
|
+
this.baseUrl = baseUrl ?? "";
|
|
17529
17663
|
}
|
|
17530
17664
|
alertNotificationAccess() {
|
|
17531
17665
|
let url_ = this.baseUrl + "/alerts/useraccess";
|
|
@@ -17750,10 +17884,12 @@ export class AlertsClient extends AuthorizedApiBase {
|
|
|
17750
17884
|
}
|
|
17751
17885
|
}
|
|
17752
17886
|
export class CredentialsClient extends AuthorizedApiBase {
|
|
17887
|
+
http;
|
|
17888
|
+
baseUrl;
|
|
17753
17889
|
constructor(configuration, baseUrl, http) {
|
|
17754
17890
|
super(configuration);
|
|
17755
17891
|
this.http = http ? http : window;
|
|
17756
|
-
this.baseUrl = baseUrl
|
|
17892
|
+
this.baseUrl = baseUrl ?? "";
|
|
17757
17893
|
}
|
|
17758
17894
|
listIntegrationCredentials() {
|
|
17759
17895
|
let url_ = this.baseUrl + "/admin/credentials";
|
|
@@ -17865,10 +18001,12 @@ export class CredentialsClient extends AuthorizedApiBase {
|
|
|
17865
18001
|
}
|
|
17866
18002
|
}
|
|
17867
18003
|
export class CdfClient extends AuthorizedApiBase {
|
|
18004
|
+
http;
|
|
18005
|
+
baseUrl;
|
|
17868
18006
|
constructor(configuration, baseUrl, http) {
|
|
17869
18007
|
super(configuration);
|
|
17870
18008
|
this.http = http ? http : window;
|
|
17871
|
-
this.baseUrl = baseUrl
|
|
18009
|
+
this.baseUrl = baseUrl ?? "";
|
|
17872
18010
|
}
|
|
17873
18011
|
/**
|
|
17874
18012
|
* Get CDF config
|
|
@@ -17953,10 +18091,12 @@ export class CdfClient extends AuthorizedApiBase {
|
|
|
17953
18091
|
}
|
|
17954
18092
|
}
|
|
17955
18093
|
export class WorkspaceDefaultsAdminClient extends AuthorizedApiBase {
|
|
18094
|
+
http;
|
|
18095
|
+
baseUrl;
|
|
17956
18096
|
constructor(configuration, baseUrl, http) {
|
|
17957
18097
|
super(configuration);
|
|
17958
18098
|
this.http = http ? http : window;
|
|
17959
|
-
this.baseUrl = baseUrl
|
|
18099
|
+
this.baseUrl = baseUrl ?? "";
|
|
17960
18100
|
}
|
|
17961
18101
|
getDefaults() {
|
|
17962
18102
|
let url_ = this.baseUrl + "/workspaces/defaults";
|
|
@@ -18073,10 +18213,12 @@ export class WorkspaceDefaultsAdminClient extends AuthorizedApiBase {
|
|
|
18073
18213
|
}
|
|
18074
18214
|
}
|
|
18075
18215
|
export class WorkspacesClient extends AuthorizedApiBase {
|
|
18216
|
+
http;
|
|
18217
|
+
baseUrl;
|
|
18076
18218
|
constructor(configuration, baseUrl, http) {
|
|
18077
18219
|
super(configuration);
|
|
18078
18220
|
this.http = http ? http : window;
|
|
18079
|
-
this.baseUrl = baseUrl
|
|
18221
|
+
this.baseUrl = baseUrl ?? "";
|
|
18080
18222
|
}
|
|
18081
18223
|
getMyWorkspaces() {
|
|
18082
18224
|
let url_ = this.baseUrl + "/workspaces";
|
|
@@ -18478,10 +18620,12 @@ export class WorkspacesClient extends AuthorizedApiBase {
|
|
|
18478
18620
|
}
|
|
18479
18621
|
}
|
|
18480
18622
|
export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
18623
|
+
http;
|
|
18624
|
+
baseUrl;
|
|
18481
18625
|
constructor(configuration, baseUrl, http) {
|
|
18482
18626
|
super(configuration);
|
|
18483
18627
|
this.http = http ? http : window;
|
|
18484
|
-
this.baseUrl = baseUrl
|
|
18628
|
+
this.baseUrl = baseUrl ?? "";
|
|
18485
18629
|
}
|
|
18486
18630
|
createWorkspaceTemplate(createWorkspaceTemplate) {
|
|
18487
18631
|
let url_ = this.baseUrl + "/workspaces/templates";
|
|
@@ -18769,10 +18913,12 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
|
18769
18913
|
}
|
|
18770
18914
|
}
|
|
18771
18915
|
export class WorkspaceTemplatesClient extends AuthorizedApiBase {
|
|
18916
|
+
http;
|
|
18917
|
+
baseUrl;
|
|
18772
18918
|
constructor(configuration, baseUrl, http) {
|
|
18773
18919
|
super(configuration);
|
|
18774
18920
|
this.http = http ? http : window;
|
|
18775
|
-
this.baseUrl = baseUrl
|
|
18921
|
+
this.baseUrl = baseUrl ?? "";
|
|
18776
18922
|
}
|
|
18777
18923
|
getWorkspaceTemplates() {
|
|
18778
18924
|
let url_ = this.baseUrl + "/workspaces/templates";
|
|
@@ -18812,10 +18958,12 @@ export class WorkspaceTemplatesClient extends AuthorizedApiBase {
|
|
|
18812
18958
|
}
|
|
18813
18959
|
}
|
|
18814
18960
|
export class MoveBookingClient extends AuthorizedApiBase {
|
|
18961
|
+
http;
|
|
18962
|
+
baseUrl;
|
|
18815
18963
|
constructor(configuration, baseUrl, http) {
|
|
18816
18964
|
super(configuration);
|
|
18817
18965
|
this.http = http ? http : window;
|
|
18818
|
-
this.baseUrl = baseUrl
|
|
18966
|
+
this.baseUrl = baseUrl ?? "";
|
|
18819
18967
|
}
|
|
18820
18968
|
listBookings(request) {
|
|
18821
18969
|
let url_ = this.baseUrl + "/move/booking/list";
|
|
@@ -19210,10 +19358,12 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
19210
19358
|
}
|
|
19211
19359
|
}
|
|
19212
19360
|
export class MoveInfoscreenClient extends AuthorizedApiBase {
|
|
19361
|
+
http;
|
|
19362
|
+
baseUrl;
|
|
19213
19363
|
constructor(configuration, baseUrl, http) {
|
|
19214
19364
|
super(configuration);
|
|
19215
19365
|
this.http = http ? http : window;
|
|
19216
|
-
this.baseUrl = baseUrl
|
|
19366
|
+
this.baseUrl = baseUrl ?? "";
|
|
19217
19367
|
}
|
|
19218
19368
|
listInfoscreens() {
|
|
19219
19369
|
let url_ = this.baseUrl + "/move/infoscreens";
|
|
@@ -19408,10 +19558,12 @@ export class MoveInfoscreenClient extends AuthorizedApiBase {
|
|
|
19408
19558
|
}
|
|
19409
19559
|
}
|
|
19410
19560
|
export class MoveLocationsClient extends AuthorizedApiBase {
|
|
19561
|
+
http;
|
|
19562
|
+
baseUrl;
|
|
19411
19563
|
constructor(configuration, baseUrl, http) {
|
|
19412
19564
|
super(configuration);
|
|
19413
19565
|
this.http = http ? http : window;
|
|
19414
|
-
this.baseUrl = baseUrl
|
|
19566
|
+
this.baseUrl = baseUrl ?? "";
|
|
19415
19567
|
}
|
|
19416
19568
|
listLocations(includeAllLocations) {
|
|
19417
19569
|
let url_ = this.baseUrl + "/move/locations/list?";
|
|
@@ -19659,10 +19811,12 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
19659
19811
|
}
|
|
19660
19812
|
}
|
|
19661
19813
|
export class MoveMaterialsClient extends AuthorizedApiBase {
|
|
19814
|
+
http;
|
|
19815
|
+
baseUrl;
|
|
19662
19816
|
constructor(configuration, baseUrl, http) {
|
|
19663
19817
|
super(configuration);
|
|
19664
19818
|
this.http = http ? http : window;
|
|
19665
|
-
this.baseUrl = baseUrl
|
|
19819
|
+
this.baseUrl = baseUrl ?? "";
|
|
19666
19820
|
}
|
|
19667
19821
|
listMaterials() {
|
|
19668
19822
|
let url_ = this.baseUrl + "/move/materials/list";
|
|
@@ -19858,10 +20012,12 @@ export class MoveMaterialsClient extends AuthorizedApiBase {
|
|
|
19858
20012
|
}
|
|
19859
20013
|
}
|
|
19860
20014
|
export class MoveNotificationsClient extends AuthorizedApiBase {
|
|
20015
|
+
http;
|
|
20016
|
+
baseUrl;
|
|
19861
20017
|
constructor(configuration, baseUrl, http) {
|
|
19862
20018
|
super(configuration);
|
|
19863
20019
|
this.http = http ? http : window;
|
|
19864
|
-
this.baseUrl = baseUrl
|
|
20020
|
+
this.baseUrl = baseUrl ?? "";
|
|
19865
20021
|
}
|
|
19866
20022
|
getNotifications() {
|
|
19867
20023
|
let url_ = this.baseUrl + "/move/notifications";
|
|
@@ -19940,10 +20096,12 @@ export class MoveNotificationsClient extends AuthorizedApiBase {
|
|
|
19940
20096
|
}
|
|
19941
20097
|
}
|
|
19942
20098
|
export class MoveParcelsClient extends AuthorizedApiBase {
|
|
20099
|
+
http;
|
|
20100
|
+
baseUrl;
|
|
19943
20101
|
constructor(configuration, baseUrl, http) {
|
|
19944
20102
|
super(configuration);
|
|
19945
20103
|
this.http = http ? http : window;
|
|
19946
|
-
this.baseUrl = baseUrl
|
|
20104
|
+
this.baseUrl = baseUrl ?? "";
|
|
19947
20105
|
}
|
|
19948
20106
|
searchParcels(input, pageSize) {
|
|
19949
20107
|
let url_ = this.baseUrl + "/move/parcel/search?";
|
|
@@ -20027,10 +20185,12 @@ export class MoveParcelsClient extends AuthorizedApiBase {
|
|
|
20027
20185
|
}
|
|
20028
20186
|
}
|
|
20029
20187
|
export class MoveTrackingClient extends AuthorizedApiBase {
|
|
20188
|
+
http;
|
|
20189
|
+
baseUrl;
|
|
20030
20190
|
constructor(configuration, baseUrl, http) {
|
|
20031
20191
|
super(configuration);
|
|
20032
20192
|
this.http = http ? http : window;
|
|
20033
|
-
this.baseUrl = baseUrl
|
|
20193
|
+
this.baseUrl = baseUrl ?? "";
|
|
20034
20194
|
}
|
|
20035
20195
|
listTrackingHistory(request) {
|
|
20036
20196
|
let url_ = this.baseUrl + "/move/tracking/list";
|
|
@@ -20386,10 +20546,12 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
20386
20546
|
}
|
|
20387
20547
|
}
|
|
20388
20548
|
export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
20549
|
+
http;
|
|
20550
|
+
baseUrl;
|
|
20389
20551
|
constructor(configuration, baseUrl, http) {
|
|
20390
20552
|
super(configuration);
|
|
20391
20553
|
this.http = http ? http : window;
|
|
20392
|
-
this.baseUrl = baseUrl
|
|
20554
|
+
this.baseUrl = baseUrl ?? "";
|
|
20393
20555
|
}
|
|
20394
20556
|
getSettings() {
|
|
20395
20557
|
let url_ = this.baseUrl + "/move/settings/parcelcategories";
|
|
@@ -20635,10 +20797,12 @@ export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
|
20635
20797
|
}
|
|
20636
20798
|
}
|
|
20637
20799
|
export class InventoryClient extends AuthorizedApiBase {
|
|
20800
|
+
http;
|
|
20801
|
+
baseUrl;
|
|
20638
20802
|
constructor(configuration, baseUrl, http) {
|
|
20639
20803
|
super(configuration);
|
|
20640
20804
|
this.http = http ? http : window;
|
|
20641
|
-
this.baseUrl = baseUrl
|
|
20805
|
+
this.baseUrl = baseUrl ?? "";
|
|
20642
20806
|
}
|
|
20643
20807
|
listVendorBatches(request) {
|
|
20644
20808
|
let url_ = this.baseUrl + "/mes/inventory/list-vendor-batches";
|
|
@@ -20681,10 +20845,12 @@ export class InventoryClient extends AuthorizedApiBase {
|
|
|
20681
20845
|
}
|
|
20682
20846
|
}
|
|
20683
20847
|
export class MesClient extends AuthorizedApiBase {
|
|
20848
|
+
http;
|
|
20849
|
+
baseUrl;
|
|
20684
20850
|
constructor(configuration, baseUrl, http) {
|
|
20685
20851
|
super(configuration);
|
|
20686
20852
|
this.http = http ? http : window;
|
|
20687
|
-
this.baseUrl = baseUrl
|
|
20853
|
+
this.baseUrl = baseUrl ?? "";
|
|
20688
20854
|
}
|
|
20689
20855
|
getWorkerDetailsForCurrentUser() {
|
|
20690
20856
|
let url_ = this.baseUrl + "/mes/workers/me";
|
|
@@ -20724,10 +20890,12 @@ export class MesClient extends AuthorizedApiBase {
|
|
|
20724
20890
|
}
|
|
20725
20891
|
}
|
|
20726
20892
|
export class MesDocumentsClient extends AuthorizedApiBase {
|
|
20893
|
+
http;
|
|
20894
|
+
baseUrl;
|
|
20727
20895
|
constructor(configuration, baseUrl, http) {
|
|
20728
20896
|
super(configuration);
|
|
20729
20897
|
this.http = http ? http : window;
|
|
20730
|
-
this.baseUrl = baseUrl
|
|
20898
|
+
this.baseUrl = baseUrl ?? "";
|
|
20731
20899
|
}
|
|
20732
20900
|
getDocument(drawingNumber, id) {
|
|
20733
20901
|
let url_ = this.baseUrl + "/mes/documents/drawings/{drawingNumber}/{id}";
|
|
@@ -20773,10 +20941,12 @@ export class MesDocumentsClient extends AuthorizedApiBase {
|
|
|
20773
20941
|
}
|
|
20774
20942
|
}
|
|
20775
20943
|
export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
|
|
20944
|
+
http;
|
|
20945
|
+
baseUrl;
|
|
20776
20946
|
constructor(configuration, baseUrl, http) {
|
|
20777
20947
|
super(configuration);
|
|
20778
20948
|
this.http = http ? http : window;
|
|
20779
|
-
this.baseUrl = baseUrl
|
|
20949
|
+
this.baseUrl = baseUrl ?? "";
|
|
20780
20950
|
}
|
|
20781
20951
|
getEngineeringChangeOrders(partNumber) {
|
|
20782
20952
|
let url_ = this.baseUrl + "/mes/engineering-change-orders?";
|
|
@@ -20860,10 +21030,12 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
|
|
|
20860
21030
|
}
|
|
20861
21031
|
}
|
|
20862
21032
|
export class MesIndirectActivitiesClient extends AuthorizedApiBase {
|
|
21033
|
+
http;
|
|
21034
|
+
baseUrl;
|
|
20863
21035
|
constructor(configuration, baseUrl, http) {
|
|
20864
21036
|
super(configuration);
|
|
20865
21037
|
this.http = http ? http : window;
|
|
20866
|
-
this.baseUrl = baseUrl
|
|
21038
|
+
this.baseUrl = baseUrl ?? "";
|
|
20867
21039
|
}
|
|
20868
21040
|
listIndirectActivities() {
|
|
20869
21041
|
let url_ = this.baseUrl + "/mes/indirect-activities";
|
|
@@ -20975,10 +21147,12 @@ export class MesIndirectActivitiesClient extends AuthorizedApiBase {
|
|
|
20975
21147
|
}
|
|
20976
21148
|
}
|
|
20977
21149
|
export class MesLinksClient extends AuthorizedApiBase {
|
|
21150
|
+
http;
|
|
21151
|
+
baseUrl;
|
|
20978
21152
|
constructor(configuration, baseUrl, http) {
|
|
20979
21153
|
super(configuration);
|
|
20980
21154
|
this.http = http ? http : window;
|
|
20981
|
-
this.baseUrl = baseUrl
|
|
21155
|
+
this.baseUrl = baseUrl ?? "";
|
|
20982
21156
|
}
|
|
20983
21157
|
addMesLink(request) {
|
|
20984
21158
|
let url_ = this.baseUrl + "/mes/links";
|
|
@@ -21215,10 +21389,12 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
21215
21389
|
}
|
|
21216
21390
|
}
|
|
21217
21391
|
export class MesOrMoveClient extends AuthorizedApiBase {
|
|
21392
|
+
http;
|
|
21393
|
+
baseUrl;
|
|
21218
21394
|
constructor(configuration, baseUrl, http) {
|
|
21219
21395
|
super(configuration);
|
|
21220
21396
|
this.http = http ? http : window;
|
|
21221
|
-
this.baseUrl = baseUrl
|
|
21397
|
+
this.baseUrl = baseUrl ?? "";
|
|
21222
21398
|
}
|
|
21223
21399
|
getPrintableLabels(request) {
|
|
21224
21400
|
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
@@ -21261,10 +21437,12 @@ export class MesOrMoveClient extends AuthorizedApiBase {
|
|
|
21261
21437
|
}
|
|
21262
21438
|
}
|
|
21263
21439
|
export class MesPlannerClient extends AuthorizedApiBase {
|
|
21440
|
+
http;
|
|
21441
|
+
baseUrl;
|
|
21264
21442
|
constructor(configuration, baseUrl, http) {
|
|
21265
21443
|
super(configuration);
|
|
21266
21444
|
this.http = http ? http : window;
|
|
21267
|
-
this.baseUrl = baseUrl
|
|
21445
|
+
this.baseUrl = baseUrl ?? "";
|
|
21268
21446
|
}
|
|
21269
21447
|
getPlan(resourceGroupId) {
|
|
21270
21448
|
let url_ = this.baseUrl + "/mes/planner/plan?";
|
|
@@ -21679,10 +21857,12 @@ export class MesPlannerClient extends AuthorizedApiBase {
|
|
|
21679
21857
|
}
|
|
21680
21858
|
}
|
|
21681
21859
|
export class MesProductionOrderAttachmentClient extends AuthorizedApiBase {
|
|
21860
|
+
http;
|
|
21861
|
+
baseUrl;
|
|
21682
21862
|
constructor(configuration, baseUrl, http) {
|
|
21683
21863
|
super(configuration);
|
|
21684
21864
|
this.http = http ? http : window;
|
|
21685
|
-
this.baseUrl = baseUrl
|
|
21865
|
+
this.baseUrl = baseUrl ?? "";
|
|
21686
21866
|
}
|
|
21687
21867
|
/**
|
|
21688
21868
|
* Upload a new attachment (with or without a file)
|
|
@@ -21913,10 +22093,12 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase {
|
|
|
21913
22093
|
}
|
|
21914
22094
|
}
|
|
21915
22095
|
export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
22096
|
+
http;
|
|
22097
|
+
baseUrl;
|
|
21916
22098
|
constructor(configuration, baseUrl, http) {
|
|
21917
22099
|
super(configuration);
|
|
21918
22100
|
this.http = http ? http : window;
|
|
21919
|
-
this.baseUrl = baseUrl
|
|
22101
|
+
this.baseUrl = baseUrl ?? "";
|
|
21920
22102
|
}
|
|
21921
22103
|
listProductionOrders(request) {
|
|
21922
22104
|
let url_ = this.baseUrl + "/mes/productionorders/list";
|
|
@@ -22328,10 +22510,12 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
22328
22510
|
}
|
|
22329
22511
|
}
|
|
22330
22512
|
export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
22513
|
+
http;
|
|
22514
|
+
baseUrl;
|
|
22331
22515
|
constructor(configuration, baseUrl, http) {
|
|
22332
22516
|
super(configuration);
|
|
22333
22517
|
this.http = http ? http : window;
|
|
22334
|
-
this.baseUrl = baseUrl
|
|
22518
|
+
this.baseUrl = baseUrl ?? "";
|
|
22335
22519
|
}
|
|
22336
22520
|
listProductionScheduleOperations(resourceGroup, resourceId, departmentNumber, pageSize, continuationToken, workOrderId, projectId, partNumber, partName, material, includeDiscussionSummary) {
|
|
22337
22521
|
let url_ = this.baseUrl + "/mes/productionschedule?";
|
|
@@ -22662,10 +22846,12 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
22662
22846
|
}
|
|
22663
22847
|
}
|
|
22664
22848
|
export class MesProjectsClient extends AuthorizedApiBase {
|
|
22849
|
+
http;
|
|
22850
|
+
baseUrl;
|
|
22665
22851
|
constructor(configuration, baseUrl, http) {
|
|
22666
22852
|
super(configuration);
|
|
22667
22853
|
this.http = http ? http : window;
|
|
22668
|
-
this.baseUrl = baseUrl
|
|
22854
|
+
this.baseUrl = baseUrl ?? "";
|
|
22669
22855
|
}
|
|
22670
22856
|
listProjects(request) {
|
|
22671
22857
|
let url_ = this.baseUrl + "/mes/projects";
|
|
@@ -22747,10 +22933,12 @@ export class MesProjectsClient extends AuthorizedApiBase {
|
|
|
22747
22933
|
}
|
|
22748
22934
|
}
|
|
22749
22935
|
export class MesPurchaseOrderClient extends AuthorizedApiBase {
|
|
22936
|
+
http;
|
|
22937
|
+
baseUrl;
|
|
22750
22938
|
constructor(configuration, baseUrl, http) {
|
|
22751
22939
|
super(configuration);
|
|
22752
22940
|
this.http = http ? http : window;
|
|
22753
|
-
this.baseUrl = baseUrl
|
|
22941
|
+
this.baseUrl = baseUrl ?? "";
|
|
22754
22942
|
}
|
|
22755
22943
|
getPurchaseOrderDetails(purchaseOrderNumber, productionOrderNumber) {
|
|
22756
22944
|
let url_ = this.baseUrl + "/mes/purchase-orders/{purchaseOrderNumber}?";
|
|
@@ -22797,10 +22985,12 @@ export class MesPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
22797
22985
|
}
|
|
22798
22986
|
}
|
|
22799
22987
|
export class MesResourceClient extends AuthorizedApiBase {
|
|
22988
|
+
http;
|
|
22989
|
+
baseUrl;
|
|
22800
22990
|
constructor(configuration, baseUrl, http) {
|
|
22801
22991
|
super(configuration);
|
|
22802
22992
|
this.http = http ? http : window;
|
|
22803
|
-
this.baseUrl = baseUrl
|
|
22993
|
+
this.baseUrl = baseUrl ?? "";
|
|
22804
22994
|
}
|
|
22805
22995
|
listResourceGroups(includeResources) {
|
|
22806
22996
|
let url_ = this.baseUrl + "/mes/resourcegroups?";
|
|
@@ -22958,10 +23148,12 @@ export class MesResourceClient extends AuthorizedApiBase {
|
|
|
22958
23148
|
}
|
|
22959
23149
|
}
|
|
22960
23150
|
export class ElectricalClient extends AuthorizedApiBase {
|
|
23151
|
+
http;
|
|
23152
|
+
baseUrl;
|
|
22961
23153
|
constructor(configuration, baseUrl, http) {
|
|
22962
23154
|
super(configuration);
|
|
22963
23155
|
this.http = http ? http : window;
|
|
22964
|
-
this.baseUrl = baseUrl
|
|
23156
|
+
this.baseUrl = baseUrl ?? "";
|
|
22965
23157
|
}
|
|
22966
23158
|
listElectricalSourceTypes() {
|
|
22967
23159
|
let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
|
|
@@ -23114,10 +23306,12 @@ export class ElectricalClient extends AuthorizedApiBase {
|
|
|
23114
23306
|
}
|
|
23115
23307
|
}
|
|
23116
23308
|
export class WeldingClient extends AuthorizedApiBase {
|
|
23309
|
+
http;
|
|
23310
|
+
baseUrl;
|
|
23117
23311
|
constructor(configuration, baseUrl, http) {
|
|
23118
23312
|
super(configuration);
|
|
23119
23313
|
this.http = http ? http : window;
|
|
23120
|
-
this.baseUrl = baseUrl
|
|
23314
|
+
this.baseUrl = baseUrl ?? "";
|
|
23121
23315
|
}
|
|
23122
23316
|
listWeldingSourceTypes() {
|
|
23123
23317
|
let url_ = this.baseUrl + "/iot/welding/sourcetypes";
|
|
@@ -23270,10 +23464,12 @@ export class WeldingClient extends AuthorizedApiBase {
|
|
|
23270
23464
|
}
|
|
23271
23465
|
}
|
|
23272
23466
|
export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
23467
|
+
http;
|
|
23468
|
+
baseUrl;
|
|
23273
23469
|
constructor(configuration, baseUrl, http) {
|
|
23274
23470
|
super(configuration);
|
|
23275
23471
|
this.http = http ? http : window;
|
|
23276
|
-
this.baseUrl = baseUrl
|
|
23472
|
+
this.baseUrl = baseUrl ?? "";
|
|
23277
23473
|
}
|
|
23278
23474
|
createMaterialCertificateTypes(payload) {
|
|
23279
23475
|
let url_ = this.baseUrl + "/inspect/match/certificate-types";
|
|
@@ -23319,7 +23515,9 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
23319
23515
|
if (id === undefined || id === null)
|
|
23320
23516
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23321
23517
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23322
|
-
if (version
|
|
23518
|
+
if (version === null)
|
|
23519
|
+
throw new globalThis.Error("The parameter 'version' cannot be null.");
|
|
23520
|
+
else if (version !== undefined)
|
|
23323
23521
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23324
23522
|
url_ = url_.replace(/[?&]$/, "");
|
|
23325
23523
|
const content_ = JSON.stringify(payload);
|
|
@@ -23363,7 +23561,9 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
23363
23561
|
if (id === undefined || id === null)
|
|
23364
23562
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23365
23563
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23366
|
-
if (version
|
|
23564
|
+
if (version === null)
|
|
23565
|
+
throw new globalThis.Error("The parameter 'version' cannot be null.");
|
|
23566
|
+
else if (version !== undefined)
|
|
23367
23567
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23368
23568
|
url_ = url_.replace(/[?&]$/, "");
|
|
23369
23569
|
let options_ = {
|
|
@@ -23404,7 +23604,9 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
23404
23604
|
if (id === undefined || id === null)
|
|
23405
23605
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23406
23606
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23407
|
-
if (version
|
|
23607
|
+
if (version === null)
|
|
23608
|
+
throw new globalThis.Error("The parameter 'version' cannot be null.");
|
|
23609
|
+
else if (version !== undefined)
|
|
23408
23610
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23409
23611
|
url_ = url_.replace(/[?&]$/, "");
|
|
23410
23612
|
let options_ = {
|
|
@@ -23445,7 +23647,9 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
23445
23647
|
if (id === undefined || id === null)
|
|
23446
23648
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23447
23649
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23448
|
-
if (version
|
|
23650
|
+
if (version === null)
|
|
23651
|
+
throw new globalThis.Error("The parameter 'version' cannot be null.");
|
|
23652
|
+
else if (version !== undefined)
|
|
23449
23653
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23450
23654
|
url_ = url_.replace(/[?&]$/, "");
|
|
23451
23655
|
const content_ = JSON.stringify(payload);
|
|
@@ -23489,7 +23693,9 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
23489
23693
|
if (id === undefined || id === null)
|
|
23490
23694
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23491
23695
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23492
|
-
if (version
|
|
23696
|
+
if (version === null)
|
|
23697
|
+
throw new globalThis.Error("The parameter 'version' cannot be null.");
|
|
23698
|
+
else if (version !== undefined)
|
|
23493
23699
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23494
23700
|
url_ = url_.replace(/[?&]$/, "");
|
|
23495
23701
|
let options_ = {
|
|
@@ -23523,10 +23729,12 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
23523
23729
|
}
|
|
23524
23730
|
}
|
|
23525
23731
|
export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
23732
|
+
http;
|
|
23733
|
+
baseUrl;
|
|
23526
23734
|
constructor(configuration, baseUrl, http) {
|
|
23527
23735
|
super(configuration);
|
|
23528
23736
|
this.http = http ? http : window;
|
|
23529
|
-
this.baseUrl = baseUrl
|
|
23737
|
+
this.baseUrl = baseUrl ?? "";
|
|
23530
23738
|
}
|
|
23531
23739
|
getMaterialCertificateTypes(id, version) {
|
|
23532
23740
|
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
@@ -23607,10 +23815,12 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
23607
23815
|
}
|
|
23608
23816
|
}
|
|
23609
23817
|
export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
|
|
23818
|
+
http;
|
|
23819
|
+
baseUrl;
|
|
23610
23820
|
constructor(configuration, baseUrl, http) {
|
|
23611
23821
|
super(configuration);
|
|
23612
23822
|
this.http = http ? http : window;
|
|
23613
|
-
this.baseUrl = baseUrl
|
|
23823
|
+
this.baseUrl = baseUrl ?? "";
|
|
23614
23824
|
}
|
|
23615
23825
|
updateMaterialCheckOverrides(id, request) {
|
|
23616
23826
|
let url_ = this.baseUrl + "/inspect/match/material-checks/override/{id}";
|
|
@@ -23776,10 +23986,12 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
|
|
|
23776
23986
|
}
|
|
23777
23987
|
}
|
|
23778
23988
|
export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
23989
|
+
http;
|
|
23990
|
+
baseUrl;
|
|
23779
23991
|
constructor(configuration, baseUrl, http) {
|
|
23780
23992
|
super(configuration);
|
|
23781
23993
|
this.http = http ? http : window;
|
|
23782
|
-
this.baseUrl = baseUrl
|
|
23994
|
+
this.baseUrl = baseUrl ?? "";
|
|
23783
23995
|
}
|
|
23784
23996
|
getMaterialCheck(id) {
|
|
23785
23997
|
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}";
|
|
@@ -23975,10 +24187,12 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
23975
24187
|
}
|
|
23976
24188
|
}
|
|
23977
24189
|
export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
24190
|
+
http;
|
|
24191
|
+
baseUrl;
|
|
23978
24192
|
constructor(configuration, baseUrl, http) {
|
|
23979
24193
|
super(configuration);
|
|
23980
24194
|
this.http = http ? http : window;
|
|
23981
|
-
this.baseUrl = baseUrl
|
|
24195
|
+
this.baseUrl = baseUrl ?? "";
|
|
23982
24196
|
}
|
|
23983
24197
|
searchPurchaseOrders(input) {
|
|
23984
24198
|
let url_ = this.baseUrl + "/inspect/match/purchase-order/search?";
|
|
@@ -24103,10 +24317,12 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
24103
24317
|
}
|
|
24104
24318
|
}
|
|
24105
24319
|
export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
24320
|
+
http;
|
|
24321
|
+
baseUrl;
|
|
24106
24322
|
constructor(configuration, baseUrl, http) {
|
|
24107
24323
|
super(configuration);
|
|
24108
24324
|
this.http = http ? http : window;
|
|
24109
|
-
this.baseUrl = baseUrl
|
|
24325
|
+
this.baseUrl = baseUrl ?? "";
|
|
24110
24326
|
}
|
|
24111
24327
|
getSettings() {
|
|
24112
24328
|
let url_ = this.baseUrl + "/inspect/match/settings";
|
|
@@ -24185,10 +24401,12 @@ export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
|
24185
24401
|
}
|
|
24186
24402
|
}
|
|
24187
24403
|
export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
24404
|
+
http;
|
|
24405
|
+
baseUrl;
|
|
24188
24406
|
constructor(configuration, baseUrl, http) {
|
|
24189
24407
|
super(configuration);
|
|
24190
24408
|
this.http = http ? http : window;
|
|
24191
|
-
this.baseUrl = baseUrl
|
|
24409
|
+
this.baseUrl = baseUrl ?? "";
|
|
24192
24410
|
}
|
|
24193
24411
|
createSpecification(createRequestDto) {
|
|
24194
24412
|
let url_ = this.baseUrl + "/inspect/match/specifications";
|
|
@@ -24234,7 +24452,9 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
|
24234
24452
|
if (id === undefined || id === null)
|
|
24235
24453
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24236
24454
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24237
|
-
if (version
|
|
24455
|
+
if (version === null)
|
|
24456
|
+
throw new globalThis.Error("The parameter 'version' cannot be null.");
|
|
24457
|
+
else if (version !== undefined)
|
|
24238
24458
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
24239
24459
|
url_ = url_.replace(/[?&]$/, "");
|
|
24240
24460
|
const content_ = JSON.stringify(copyDto);
|
|
@@ -24278,7 +24498,9 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
|
24278
24498
|
if (id === undefined || id === null)
|
|
24279
24499
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24280
24500
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24281
|
-
if (version
|
|
24501
|
+
if (version === null)
|
|
24502
|
+
throw new globalThis.Error("The parameter 'version' cannot be null.");
|
|
24503
|
+
else if (version !== undefined)
|
|
24282
24504
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
24283
24505
|
url_ = url_.replace(/[?&]$/, "");
|
|
24284
24506
|
let options_ = {
|
|
@@ -24319,7 +24541,9 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
|
24319
24541
|
if (id === undefined || id === null)
|
|
24320
24542
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24321
24543
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24322
|
-
if (version
|
|
24544
|
+
if (version === null)
|
|
24545
|
+
throw new globalThis.Error("The parameter 'version' cannot be null.");
|
|
24546
|
+
else if (version !== undefined)
|
|
24323
24547
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
24324
24548
|
url_ = url_.replace(/[?&]$/, "");
|
|
24325
24549
|
let options_ = {
|
|
@@ -24360,7 +24584,9 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
|
24360
24584
|
if (id === undefined || id === null)
|
|
24361
24585
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24362
24586
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24363
|
-
if (version
|
|
24587
|
+
if (version === null)
|
|
24588
|
+
throw new globalThis.Error("The parameter 'version' cannot be null.");
|
|
24589
|
+
else if (version !== undefined)
|
|
24364
24590
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
24365
24591
|
url_ = url_.replace(/[?&]$/, "");
|
|
24366
24592
|
const content_ = JSON.stringify(dto);
|
|
@@ -24404,7 +24630,9 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
|
24404
24630
|
if (id === undefined || id === null)
|
|
24405
24631
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24406
24632
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24407
|
-
if (version
|
|
24633
|
+
if (version === null)
|
|
24634
|
+
throw new globalThis.Error("The parameter 'version' cannot be null.");
|
|
24635
|
+
else if (version !== undefined)
|
|
24408
24636
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
24409
24637
|
url_ = url_.replace(/[?&]$/, "");
|
|
24410
24638
|
let options_ = {
|
|
@@ -24438,10 +24666,12 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
|
24438
24666
|
}
|
|
24439
24667
|
}
|
|
24440
24668
|
export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
24669
|
+
http;
|
|
24670
|
+
baseUrl;
|
|
24441
24671
|
constructor(configuration, baseUrl, http) {
|
|
24442
24672
|
super(configuration);
|
|
24443
24673
|
this.http = http ? http : window;
|
|
24444
|
-
this.baseUrl = baseUrl
|
|
24674
|
+
this.baseUrl = baseUrl ?? "";
|
|
24445
24675
|
}
|
|
24446
24676
|
getSpecification(id, version) {
|
|
24447
24677
|
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
@@ -24521,11 +24751,335 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
24521
24751
|
return Promise.resolve(null);
|
|
24522
24752
|
}
|
|
24523
24753
|
}
|
|
24754
|
+
export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
24755
|
+
http;
|
|
24756
|
+
baseUrl;
|
|
24757
|
+
constructor(configuration, baseUrl, http) {
|
|
24758
|
+
super(configuration);
|
|
24759
|
+
this.http = http ? http : window;
|
|
24760
|
+
this.baseUrl = baseUrl ?? "";
|
|
24761
|
+
}
|
|
24762
|
+
getSchemaCreatorState(schemaVersionId) {
|
|
24763
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24764
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24765
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24766
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24767
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24768
|
+
let options_ = {
|
|
24769
|
+
method: "GET",
|
|
24770
|
+
headers: {
|
|
24771
|
+
"Accept": "application/json"
|
|
24772
|
+
}
|
|
24773
|
+
};
|
|
24774
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24775
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24776
|
+
}).then((_response) => {
|
|
24777
|
+
return this.processGetSchemaCreatorState(_response);
|
|
24778
|
+
});
|
|
24779
|
+
}
|
|
24780
|
+
processGetSchemaCreatorState(response) {
|
|
24781
|
+
const status = response.status;
|
|
24782
|
+
let _headers = {};
|
|
24783
|
+
if (response.headers && response.headers.forEach) {
|
|
24784
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24785
|
+
}
|
|
24786
|
+
;
|
|
24787
|
+
if (status === 200) {
|
|
24788
|
+
return response.text().then((_responseText) => {
|
|
24789
|
+
let result200 = null;
|
|
24790
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24791
|
+
return result200;
|
|
24792
|
+
});
|
|
24793
|
+
}
|
|
24794
|
+
else if (status !== 200 && status !== 204) {
|
|
24795
|
+
return response.text().then((_responseText) => {
|
|
24796
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24797
|
+
});
|
|
24798
|
+
}
|
|
24799
|
+
return Promise.resolve(null);
|
|
24800
|
+
}
|
|
24801
|
+
/**
|
|
24802
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24803
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
24804
|
+
*/
|
|
24805
|
+
createSchemaCreatorState(schemaVersionId, state) {
|
|
24806
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24807
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24808
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24809
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24810
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24811
|
+
const content_ = JSON.stringify(state);
|
|
24812
|
+
let options_ = {
|
|
24813
|
+
body: content_,
|
|
24814
|
+
method: "POST",
|
|
24815
|
+
headers: {
|
|
24816
|
+
"Content-Type": "application/json",
|
|
24817
|
+
"Accept": "application/json"
|
|
24818
|
+
}
|
|
24819
|
+
};
|
|
24820
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24821
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24822
|
+
}).then((_response) => {
|
|
24823
|
+
return this.processCreateSchemaCreatorState(_response);
|
|
24824
|
+
});
|
|
24825
|
+
}
|
|
24826
|
+
processCreateSchemaCreatorState(response) {
|
|
24827
|
+
const status = response.status;
|
|
24828
|
+
let _headers = {};
|
|
24829
|
+
if (response.headers && response.headers.forEach) {
|
|
24830
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24831
|
+
}
|
|
24832
|
+
;
|
|
24833
|
+
if (status === 201) {
|
|
24834
|
+
return response.text().then((_responseText) => {
|
|
24835
|
+
let result201 = null;
|
|
24836
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24837
|
+
return result201;
|
|
24838
|
+
});
|
|
24839
|
+
}
|
|
24840
|
+
else if (status === 409) {
|
|
24841
|
+
return response.text().then((_responseText) => {
|
|
24842
|
+
let result409 = null;
|
|
24843
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24844
|
+
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
24845
|
+
});
|
|
24846
|
+
}
|
|
24847
|
+
else if (status !== 200 && status !== 204) {
|
|
24848
|
+
return response.text().then((_responseText) => {
|
|
24849
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24850
|
+
});
|
|
24851
|
+
}
|
|
24852
|
+
return Promise.resolve(null);
|
|
24853
|
+
}
|
|
24854
|
+
updateSchemaCreatorState(schemaVersionId, state) {
|
|
24855
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24856
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24857
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24858
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24859
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24860
|
+
const content_ = JSON.stringify(state);
|
|
24861
|
+
let options_ = {
|
|
24862
|
+
body: content_,
|
|
24863
|
+
method: "PUT",
|
|
24864
|
+
headers: {
|
|
24865
|
+
"Content-Type": "application/json",
|
|
24866
|
+
"Accept": "application/json"
|
|
24867
|
+
}
|
|
24868
|
+
};
|
|
24869
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24870
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24871
|
+
}).then((_response) => {
|
|
24872
|
+
return this.processUpdateSchemaCreatorState(_response);
|
|
24873
|
+
});
|
|
24874
|
+
}
|
|
24875
|
+
processUpdateSchemaCreatorState(response) {
|
|
24876
|
+
const status = response.status;
|
|
24877
|
+
let _headers = {};
|
|
24878
|
+
if (response.headers && response.headers.forEach) {
|
|
24879
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24880
|
+
}
|
|
24881
|
+
;
|
|
24882
|
+
if (status === 200) {
|
|
24883
|
+
return response.text().then((_responseText) => {
|
|
24884
|
+
let result200 = null;
|
|
24885
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24886
|
+
return result200;
|
|
24887
|
+
});
|
|
24888
|
+
}
|
|
24889
|
+
else if (status !== 200 && status !== 204) {
|
|
24890
|
+
return response.text().then((_responseText) => {
|
|
24891
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24892
|
+
});
|
|
24893
|
+
}
|
|
24894
|
+
return Promise.resolve(null);
|
|
24895
|
+
}
|
|
24896
|
+
/**
|
|
24897
|
+
* Geometry only (no values), derived from the schema's retained
|
|
24898
|
+
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
24899
|
+
drawing positions. Throws BadRequest if the schema has no such XML +
|
|
24900
|
+
drawing to derive it from.
|
|
24901
|
+
*/
|
|
24902
|
+
getSchemaCreatorXmlGeometry(schemaVersionId) {
|
|
24903
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/xml-geometry";
|
|
24904
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24905
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24906
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24907
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24908
|
+
let options_ = {
|
|
24909
|
+
method: "GET",
|
|
24910
|
+
headers: {
|
|
24911
|
+
"Accept": "application/json"
|
|
24912
|
+
}
|
|
24913
|
+
};
|
|
24914
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24915
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24916
|
+
}).then((_response) => {
|
|
24917
|
+
return this.processGetSchemaCreatorXmlGeometry(_response);
|
|
24918
|
+
});
|
|
24919
|
+
}
|
|
24920
|
+
processGetSchemaCreatorXmlGeometry(response) {
|
|
24921
|
+
const status = response.status;
|
|
24922
|
+
let _headers = {};
|
|
24923
|
+
if (response.headers && response.headers.forEach) {
|
|
24924
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24925
|
+
}
|
|
24926
|
+
;
|
|
24927
|
+
if (status === 200) {
|
|
24928
|
+
return response.text().then((_responseText) => {
|
|
24929
|
+
let result200 = null;
|
|
24930
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24931
|
+
return result200;
|
|
24932
|
+
});
|
|
24933
|
+
}
|
|
24934
|
+
else if (status !== 200 && status !== 204) {
|
|
24935
|
+
return response.text().then((_responseText) => {
|
|
24936
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24937
|
+
});
|
|
24938
|
+
}
|
|
24939
|
+
return Promise.resolve(null);
|
|
24940
|
+
}
|
|
24941
|
+
/**
|
|
24942
|
+
* Starts a full drawing AI parse: clears every element and locks the
|
|
24943
|
+
schema for every viewer until it completes. If one is already in
|
|
24944
|
+
progress, returns that instead of starting a second one.
|
|
24945
|
+
*/
|
|
24946
|
+
requestSchemaCreatorDocumentParse(schemaVersionId) {
|
|
24947
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document";
|
|
24948
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24949
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24950
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24951
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24952
|
+
let options_ = {
|
|
24953
|
+
method: "POST",
|
|
24954
|
+
headers: {
|
|
24955
|
+
"Accept": "application/json"
|
|
24956
|
+
}
|
|
24957
|
+
};
|
|
24958
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24959
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24960
|
+
}).then((_response) => {
|
|
24961
|
+
return this.processRequestSchemaCreatorDocumentParse(_response);
|
|
24962
|
+
});
|
|
24963
|
+
}
|
|
24964
|
+
processRequestSchemaCreatorDocumentParse(response) {
|
|
24965
|
+
const status = response.status;
|
|
24966
|
+
let _headers = {};
|
|
24967
|
+
if (response.headers && response.headers.forEach) {
|
|
24968
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24969
|
+
}
|
|
24970
|
+
;
|
|
24971
|
+
if (status === 200) {
|
|
24972
|
+
return response.text().then((_responseText) => {
|
|
24973
|
+
let result200 = null;
|
|
24974
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24975
|
+
return result200;
|
|
24976
|
+
});
|
|
24977
|
+
}
|
|
24978
|
+
else if (status !== 200 && status !== 204) {
|
|
24979
|
+
return response.text().then((_responseText) => {
|
|
24980
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24981
|
+
});
|
|
24982
|
+
}
|
|
24983
|
+
return Promise.resolve(null);
|
|
24984
|
+
}
|
|
24985
|
+
/**
|
|
24986
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
24987
|
+
returns a temporary download link.
|
|
24988
|
+
*/
|
|
24989
|
+
exportSchemaCreatorDrawing(schemaVersionId) {
|
|
24990
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/download";
|
|
24991
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24992
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24993
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24994
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24995
|
+
let options_ = {
|
|
24996
|
+
method: "POST",
|
|
24997
|
+
headers: {
|
|
24998
|
+
"Accept": "application/json"
|
|
24999
|
+
}
|
|
25000
|
+
};
|
|
25001
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25002
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25003
|
+
}).then((_response) => {
|
|
25004
|
+
return this.processExportSchemaCreatorDrawing(_response);
|
|
25005
|
+
});
|
|
25006
|
+
}
|
|
25007
|
+
processExportSchemaCreatorDrawing(response) {
|
|
25008
|
+
const status = response.status;
|
|
25009
|
+
let _headers = {};
|
|
25010
|
+
if (response.headers && response.headers.forEach) {
|
|
25011
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25012
|
+
}
|
|
25013
|
+
;
|
|
25014
|
+
if (status === 200) {
|
|
25015
|
+
return response.text().then((_responseText) => {
|
|
25016
|
+
let result200 = null;
|
|
25017
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25018
|
+
return result200;
|
|
25019
|
+
});
|
|
25020
|
+
}
|
|
25021
|
+
else if (status !== 200 && status !== 204) {
|
|
25022
|
+
return response.text().then((_responseText) => {
|
|
25023
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25024
|
+
});
|
|
25025
|
+
}
|
|
25026
|
+
return Promise.resolve(null);
|
|
25027
|
+
}
|
|
25028
|
+
/**
|
|
25029
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
25030
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
25031
|
+
* @param image (optional)
|
|
25032
|
+
*/
|
|
25033
|
+
requestSchemaCreatorSnipParse(schemaVersionId, elementId, image) {
|
|
25034
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
|
|
25035
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
25036
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
25037
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
25038
|
+
if (elementId === undefined || elementId === null)
|
|
25039
|
+
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
25040
|
+
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
25041
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25042
|
+
const content_ = new FormData();
|
|
25043
|
+
if (image !== null && image !== undefined)
|
|
25044
|
+
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
25045
|
+
let options_ = {
|
|
25046
|
+
body: content_,
|
|
25047
|
+
method: "POST",
|
|
25048
|
+
headers: {}
|
|
25049
|
+
};
|
|
25050
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25051
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25052
|
+
}).then((_response) => {
|
|
25053
|
+
return this.processRequestSchemaCreatorSnipParse(_response);
|
|
25054
|
+
});
|
|
25055
|
+
}
|
|
25056
|
+
processRequestSchemaCreatorSnipParse(response) {
|
|
25057
|
+
const status = response.status;
|
|
25058
|
+
let _headers = {};
|
|
25059
|
+
if (response.headers && response.headers.forEach) {
|
|
25060
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25061
|
+
}
|
|
25062
|
+
;
|
|
25063
|
+
if (status === 200) {
|
|
25064
|
+
return response.text().then((_responseText) => {
|
|
25065
|
+
return;
|
|
25066
|
+
});
|
|
25067
|
+
}
|
|
25068
|
+
else if (status !== 200 && status !== 204) {
|
|
25069
|
+
return response.text().then((_responseText) => {
|
|
25070
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25071
|
+
});
|
|
25072
|
+
}
|
|
25073
|
+
return Promise.resolve(null);
|
|
25074
|
+
}
|
|
25075
|
+
}
|
|
24524
25076
|
export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
25077
|
+
http;
|
|
25078
|
+
baseUrl;
|
|
24525
25079
|
constructor(configuration, baseUrl, http) {
|
|
24526
25080
|
super(configuration);
|
|
24527
25081
|
this.http = http ? http : window;
|
|
24528
|
-
this.baseUrl = baseUrl
|
|
25082
|
+
this.baseUrl = baseUrl ?? "";
|
|
24529
25083
|
}
|
|
24530
25084
|
getArchivedMeasurementFormSchema(id) {
|
|
24531
25085
|
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
@@ -24934,6 +25488,51 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
24934
25488
|
}
|
|
24935
25489
|
return Promise.resolve(null);
|
|
24936
25490
|
}
|
|
25491
|
+
uploadSchemaMarkedDrawing(id, request) {
|
|
25492
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
|
|
25493
|
+
if (id === undefined || id === null)
|
|
25494
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25495
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25496
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25497
|
+
const content_ = JSON.stringify(request);
|
|
25498
|
+
let options_ = {
|
|
25499
|
+
body: content_,
|
|
25500
|
+
method: "POST",
|
|
25501
|
+
headers: {
|
|
25502
|
+
"Content-Type": "application/json",
|
|
25503
|
+
"Accept": "application/json"
|
|
25504
|
+
}
|
|
25505
|
+
};
|
|
25506
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25507
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25508
|
+
}).then((_response) => {
|
|
25509
|
+
return this.processUploadSchemaMarkedDrawing(_response);
|
|
25510
|
+
});
|
|
25511
|
+
}
|
|
25512
|
+
processUploadSchemaMarkedDrawing(response) {
|
|
25513
|
+
const status = response.status;
|
|
25514
|
+
let _headers = {};
|
|
25515
|
+
if (response.headers && response.headers.forEach) {
|
|
25516
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25517
|
+
}
|
|
25518
|
+
;
|
|
25519
|
+
if (status === 200) {
|
|
25520
|
+
return response.text().then((_responseText) => {
|
|
25521
|
+
let result200 = null;
|
|
25522
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25523
|
+
return result200;
|
|
25524
|
+
});
|
|
25525
|
+
}
|
|
25526
|
+
else if (status !== 200 && status !== 204) {
|
|
25527
|
+
return response.text().then((_responseText) => {
|
|
25528
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25529
|
+
});
|
|
25530
|
+
}
|
|
25531
|
+
return Promise.resolve(null);
|
|
25532
|
+
}
|
|
25533
|
+
/**
|
|
25534
|
+
* @deprecated
|
|
25535
|
+
*/
|
|
24937
25536
|
uploadSchemaDrawing(id, request) {
|
|
24938
25537
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
24939
25538
|
if (id === undefined || id === null)
|
|
@@ -26630,10 +27229,12 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
26630
27229
|
}
|
|
26631
27230
|
}
|
|
26632
27231
|
export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
27232
|
+
http;
|
|
27233
|
+
baseUrl;
|
|
26633
27234
|
constructor(configuration, baseUrl, http) {
|
|
26634
27235
|
super(configuration);
|
|
26635
27236
|
this.http = http ? http : window;
|
|
26636
|
-
this.baseUrl = baseUrl
|
|
27237
|
+
this.baseUrl = baseUrl ?? "";
|
|
26637
27238
|
}
|
|
26638
27239
|
getMeasurementFormSchema(id) {
|
|
26639
27240
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
@@ -26751,10 +27352,12 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
26751
27352
|
}
|
|
26752
27353
|
}
|
|
26753
27354
|
export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
27355
|
+
http;
|
|
27356
|
+
baseUrl;
|
|
26754
27357
|
constructor(configuration, baseUrl, http) {
|
|
26755
27358
|
super(configuration);
|
|
26756
27359
|
this.http = http ? http : window;
|
|
26757
|
-
this.baseUrl = baseUrl
|
|
27360
|
+
this.baseUrl = baseUrl ?? "";
|
|
26758
27361
|
}
|
|
26759
27362
|
getMeasurementFormSettings() {
|
|
26760
27363
|
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
@@ -26911,10 +27514,12 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
|
26911
27514
|
}
|
|
26912
27515
|
}
|
|
26913
27516
|
export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
27517
|
+
http;
|
|
27518
|
+
baseUrl;
|
|
26914
27519
|
constructor(configuration, baseUrl, http) {
|
|
26915
27520
|
super(configuration);
|
|
26916
27521
|
this.http = http ? http : window;
|
|
26917
|
-
this.baseUrl = baseUrl
|
|
27522
|
+
this.baseUrl = baseUrl ?? "";
|
|
26918
27523
|
}
|
|
26919
27524
|
approveMeasurementFormInstance(id) {
|
|
26920
27525
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
|
|
@@ -27035,10 +27640,12 @@ export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
|
27035
27640
|
}
|
|
27036
27641
|
}
|
|
27037
27642
|
export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
27643
|
+
http;
|
|
27644
|
+
baseUrl;
|
|
27038
27645
|
constructor(configuration, baseUrl, http) {
|
|
27039
27646
|
super(configuration);
|
|
27040
27647
|
this.http = http ? http : window;
|
|
27041
|
-
this.baseUrl = baseUrl
|
|
27648
|
+
this.baseUrl = baseUrl ?? "";
|
|
27042
27649
|
}
|
|
27043
27650
|
listMeasurementForms(pageSize, search, continuationToken, tenantId, inactive, includeInactiveSupplierAccess) {
|
|
27044
27651
|
let url_ = this.baseUrl + "/measurementforms/instances?";
|
|
@@ -27337,6 +27944,50 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27337
27944
|
}
|
|
27338
27945
|
return Promise.resolve(null);
|
|
27339
27946
|
}
|
|
27947
|
+
getMeasurementFormInstanceSchemaCreatorState(id, schemaId, tenantId) {
|
|
27948
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
|
|
27949
|
+
if (id === undefined || id === null)
|
|
27950
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27951
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27952
|
+
if (schemaId === undefined || schemaId === null)
|
|
27953
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
27954
|
+
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
27955
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
27956
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
27957
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27958
|
+
let options_ = {
|
|
27959
|
+
method: "GET",
|
|
27960
|
+
headers: {
|
|
27961
|
+
"Accept": "application/json"
|
|
27962
|
+
}
|
|
27963
|
+
};
|
|
27964
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27965
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27966
|
+
}).then((_response) => {
|
|
27967
|
+
return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
|
|
27968
|
+
});
|
|
27969
|
+
}
|
|
27970
|
+
processGetMeasurementFormInstanceSchemaCreatorState(response) {
|
|
27971
|
+
const status = response.status;
|
|
27972
|
+
let _headers = {};
|
|
27973
|
+
if (response.headers && response.headers.forEach) {
|
|
27974
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27975
|
+
}
|
|
27976
|
+
;
|
|
27977
|
+
if (status === 200) {
|
|
27978
|
+
return response.text().then((_responseText) => {
|
|
27979
|
+
let result200 = null;
|
|
27980
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27981
|
+
return result200;
|
|
27982
|
+
});
|
|
27983
|
+
}
|
|
27984
|
+
else if (status !== 200 && status !== 204) {
|
|
27985
|
+
return response.text().then((_responseText) => {
|
|
27986
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27987
|
+
});
|
|
27988
|
+
}
|
|
27989
|
+
return Promise.resolve(null);
|
|
27990
|
+
}
|
|
27340
27991
|
getWorkorderMeasurementFormProgress(id, tenantId) {
|
|
27341
27992
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
27342
27993
|
if (id === undefined || id === null)
|
|
@@ -27933,10 +28584,12 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27933
28584
|
}
|
|
27934
28585
|
}
|
|
27935
28586
|
export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiBase {
|
|
28587
|
+
http;
|
|
28588
|
+
baseUrl;
|
|
27936
28589
|
constructor(configuration, baseUrl, http) {
|
|
27937
28590
|
super(configuration);
|
|
27938
28591
|
this.http = http ? http : window;
|
|
27939
|
-
this.baseUrl = baseUrl
|
|
28592
|
+
this.baseUrl = baseUrl ?? "";
|
|
27940
28593
|
}
|
|
27941
28594
|
createMeasurementFormInstance(id) {
|
|
27942
28595
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
@@ -28311,10 +28964,12 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
28311
28964
|
}
|
|
28312
28965
|
}
|
|
28313
28966
|
export class CompaniesClient extends AuthorizedApiBase {
|
|
28967
|
+
http;
|
|
28968
|
+
baseUrl;
|
|
28314
28969
|
constructor(configuration, baseUrl, http) {
|
|
28315
28970
|
super(configuration);
|
|
28316
28971
|
this.http = http ? http : window;
|
|
28317
|
-
this.baseUrl = baseUrl
|
|
28972
|
+
this.baseUrl = baseUrl ?? "";
|
|
28318
28973
|
}
|
|
28319
28974
|
listProductionCompanies() {
|
|
28320
28975
|
let url_ = this.baseUrl + "/erp/companies";
|
|
@@ -28393,10 +29048,12 @@ export class CompaniesClient extends AuthorizedApiBase {
|
|
|
28393
29048
|
}
|
|
28394
29049
|
}
|
|
28395
29050
|
export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
29051
|
+
http;
|
|
29052
|
+
baseUrl;
|
|
28396
29053
|
constructor(configuration, baseUrl, http) {
|
|
28397
29054
|
super(configuration);
|
|
28398
29055
|
this.http = http ? http : window;
|
|
28399
|
-
this.baseUrl = baseUrl
|
|
29056
|
+
this.baseUrl = baseUrl ?? "";
|
|
28400
29057
|
}
|
|
28401
29058
|
/**
|
|
28402
29059
|
* Upsert a customer order
|
|
@@ -28668,10 +29325,12 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
28668
29325
|
}
|
|
28669
29326
|
}
|
|
28670
29327
|
export class ErpUsersClient extends AuthorizedApiBase {
|
|
29328
|
+
http;
|
|
29329
|
+
baseUrl;
|
|
28671
29330
|
constructor(configuration, baseUrl, http) {
|
|
28672
29331
|
super(configuration);
|
|
28673
29332
|
this.http = http ? http : window;
|
|
28674
|
-
this.baseUrl = baseUrl
|
|
29333
|
+
this.baseUrl = baseUrl ?? "";
|
|
28675
29334
|
}
|
|
28676
29335
|
listUsers(request) {
|
|
28677
29336
|
let url_ = this.baseUrl + "/erp/users/list";
|
|
@@ -28714,10 +29373,12 @@ export class ErpUsersClient extends AuthorizedApiBase {
|
|
|
28714
29373
|
}
|
|
28715
29374
|
}
|
|
28716
29375
|
export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
29376
|
+
http;
|
|
29377
|
+
baseUrl;
|
|
28717
29378
|
constructor(configuration, baseUrl, http) {
|
|
28718
29379
|
super(configuration);
|
|
28719
29380
|
this.http = http ? http : window;
|
|
28720
|
-
this.baseUrl = baseUrl
|
|
29381
|
+
this.baseUrl = baseUrl ?? "";
|
|
28721
29382
|
}
|
|
28722
29383
|
listProductionPools() {
|
|
28723
29384
|
let url_ = this.baseUrl + "/erp/productionpools";
|
|
@@ -28793,10 +29454,12 @@ export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
|
28793
29454
|
}
|
|
28794
29455
|
}
|
|
28795
29456
|
export class WorkordersClient extends AuthorizedApiBase {
|
|
29457
|
+
http;
|
|
29458
|
+
baseUrl;
|
|
28796
29459
|
constructor(configuration, baseUrl, http) {
|
|
28797
29460
|
super(configuration);
|
|
28798
29461
|
this.http = http ? http : window;
|
|
28799
|
-
this.baseUrl = baseUrl
|
|
29462
|
+
this.baseUrl = baseUrl ?? "";
|
|
28800
29463
|
}
|
|
28801
29464
|
/**
|
|
28802
29465
|
* Create or update a workorder.
|
|
@@ -30108,15 +30771,20 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
30108
30771
|
}
|
|
30109
30772
|
}
|
|
30110
30773
|
export class ApiException extends Error {
|
|
30774
|
+
message;
|
|
30775
|
+
status;
|
|
30776
|
+
response;
|
|
30777
|
+
headers;
|
|
30778
|
+
result;
|
|
30111
30779
|
constructor(message, status, response, headers, result) {
|
|
30112
30780
|
super();
|
|
30113
|
-
this.isApiException = true;
|
|
30114
30781
|
this.message = message;
|
|
30115
30782
|
this.status = status;
|
|
30116
30783
|
this.response = response;
|
|
30117
30784
|
this.headers = headers;
|
|
30118
30785
|
this.result = result;
|
|
30119
30786
|
}
|
|
30787
|
+
isApiException = true;
|
|
30120
30788
|
static isApiException(obj) {
|
|
30121
30789
|
return obj.isApiException === true;
|
|
30122
30790
|
}
|