@ignos/api-client 20260921.282.1-alpha → 20260921.283.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 +229 -12
- package/lib/ignosportal-api.js +772 -124
- package/package.json +2 -2
- package/src/ignosportal-api.ts +655 -15
- 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";
|
|
@@ -23523,10 +23719,12 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
23523
23719
|
}
|
|
23524
23720
|
}
|
|
23525
23721
|
export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
23722
|
+
http;
|
|
23723
|
+
baseUrl;
|
|
23526
23724
|
constructor(configuration, baseUrl, http) {
|
|
23527
23725
|
super(configuration);
|
|
23528
23726
|
this.http = http ? http : window;
|
|
23529
|
-
this.baseUrl = baseUrl
|
|
23727
|
+
this.baseUrl = baseUrl ?? "";
|
|
23530
23728
|
}
|
|
23531
23729
|
getMaterialCertificateTypes(id, version) {
|
|
23532
23730
|
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
@@ -23607,10 +23805,12 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
23607
23805
|
}
|
|
23608
23806
|
}
|
|
23609
23807
|
export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
|
|
23808
|
+
http;
|
|
23809
|
+
baseUrl;
|
|
23610
23810
|
constructor(configuration, baseUrl, http) {
|
|
23611
23811
|
super(configuration);
|
|
23612
23812
|
this.http = http ? http : window;
|
|
23613
|
-
this.baseUrl = baseUrl
|
|
23813
|
+
this.baseUrl = baseUrl ?? "";
|
|
23614
23814
|
}
|
|
23615
23815
|
updateMaterialCheckOverrides(id, request) {
|
|
23616
23816
|
let url_ = this.baseUrl + "/inspect/match/material-checks/override/{id}";
|
|
@@ -23776,10 +23976,12 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
|
|
|
23776
23976
|
}
|
|
23777
23977
|
}
|
|
23778
23978
|
export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
23979
|
+
http;
|
|
23980
|
+
baseUrl;
|
|
23779
23981
|
constructor(configuration, baseUrl, http) {
|
|
23780
23982
|
super(configuration);
|
|
23781
23983
|
this.http = http ? http : window;
|
|
23782
|
-
this.baseUrl = baseUrl
|
|
23984
|
+
this.baseUrl = baseUrl ?? "";
|
|
23783
23985
|
}
|
|
23784
23986
|
getMaterialCheck(id) {
|
|
23785
23987
|
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}";
|
|
@@ -23975,10 +24177,12 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
23975
24177
|
}
|
|
23976
24178
|
}
|
|
23977
24179
|
export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
24180
|
+
http;
|
|
24181
|
+
baseUrl;
|
|
23978
24182
|
constructor(configuration, baseUrl, http) {
|
|
23979
24183
|
super(configuration);
|
|
23980
24184
|
this.http = http ? http : window;
|
|
23981
|
-
this.baseUrl = baseUrl
|
|
24185
|
+
this.baseUrl = baseUrl ?? "";
|
|
23982
24186
|
}
|
|
23983
24187
|
searchPurchaseOrders(input) {
|
|
23984
24188
|
let url_ = this.baseUrl + "/inspect/match/purchase-order/search?";
|
|
@@ -24103,10 +24307,12 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
24103
24307
|
}
|
|
24104
24308
|
}
|
|
24105
24309
|
export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
24310
|
+
http;
|
|
24311
|
+
baseUrl;
|
|
24106
24312
|
constructor(configuration, baseUrl, http) {
|
|
24107
24313
|
super(configuration);
|
|
24108
24314
|
this.http = http ? http : window;
|
|
24109
|
-
this.baseUrl = baseUrl
|
|
24315
|
+
this.baseUrl = baseUrl ?? "";
|
|
24110
24316
|
}
|
|
24111
24317
|
getSettings() {
|
|
24112
24318
|
let url_ = this.baseUrl + "/inspect/match/settings";
|
|
@@ -24185,10 +24391,12 @@ export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
|
24185
24391
|
}
|
|
24186
24392
|
}
|
|
24187
24393
|
export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
24394
|
+
http;
|
|
24395
|
+
baseUrl;
|
|
24188
24396
|
constructor(configuration, baseUrl, http) {
|
|
24189
24397
|
super(configuration);
|
|
24190
24398
|
this.http = http ? http : window;
|
|
24191
|
-
this.baseUrl = baseUrl
|
|
24399
|
+
this.baseUrl = baseUrl ?? "";
|
|
24192
24400
|
}
|
|
24193
24401
|
createSpecification(createRequestDto) {
|
|
24194
24402
|
let url_ = this.baseUrl + "/inspect/match/specifications";
|
|
@@ -24438,10 +24646,12 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
|
24438
24646
|
}
|
|
24439
24647
|
}
|
|
24440
24648
|
export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
24649
|
+
http;
|
|
24650
|
+
baseUrl;
|
|
24441
24651
|
constructor(configuration, baseUrl, http) {
|
|
24442
24652
|
super(configuration);
|
|
24443
24653
|
this.http = http ? http : window;
|
|
24444
|
-
this.baseUrl = baseUrl
|
|
24654
|
+
this.baseUrl = baseUrl ?? "";
|
|
24445
24655
|
}
|
|
24446
24656
|
getSpecification(id, version) {
|
|
24447
24657
|
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
@@ -24521,11 +24731,335 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
24521
24731
|
return Promise.resolve(null);
|
|
24522
24732
|
}
|
|
24523
24733
|
}
|
|
24734
|
+
export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
24735
|
+
http;
|
|
24736
|
+
baseUrl;
|
|
24737
|
+
constructor(configuration, baseUrl, http) {
|
|
24738
|
+
super(configuration);
|
|
24739
|
+
this.http = http ? http : window;
|
|
24740
|
+
this.baseUrl = baseUrl ?? "";
|
|
24741
|
+
}
|
|
24742
|
+
getSchemaCreatorState(schemaVersionId) {
|
|
24743
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24744
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24745
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24746
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24747
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24748
|
+
let options_ = {
|
|
24749
|
+
method: "GET",
|
|
24750
|
+
headers: {
|
|
24751
|
+
"Accept": "application/json"
|
|
24752
|
+
}
|
|
24753
|
+
};
|
|
24754
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24755
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24756
|
+
}).then((_response) => {
|
|
24757
|
+
return this.processGetSchemaCreatorState(_response);
|
|
24758
|
+
});
|
|
24759
|
+
}
|
|
24760
|
+
processGetSchemaCreatorState(response) {
|
|
24761
|
+
const status = response.status;
|
|
24762
|
+
let _headers = {};
|
|
24763
|
+
if (response.headers && response.headers.forEach) {
|
|
24764
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24765
|
+
}
|
|
24766
|
+
;
|
|
24767
|
+
if (status === 200) {
|
|
24768
|
+
return response.text().then((_responseText) => {
|
|
24769
|
+
let result200 = null;
|
|
24770
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24771
|
+
return result200;
|
|
24772
|
+
});
|
|
24773
|
+
}
|
|
24774
|
+
else if (status !== 200 && status !== 204) {
|
|
24775
|
+
return response.text().then((_responseText) => {
|
|
24776
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24777
|
+
});
|
|
24778
|
+
}
|
|
24779
|
+
return Promise.resolve(null);
|
|
24780
|
+
}
|
|
24781
|
+
/**
|
|
24782
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24783
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
24784
|
+
*/
|
|
24785
|
+
createSchemaCreatorState(schemaVersionId, state) {
|
|
24786
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24787
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24788
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24789
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24790
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24791
|
+
const content_ = JSON.stringify(state);
|
|
24792
|
+
let options_ = {
|
|
24793
|
+
body: content_,
|
|
24794
|
+
method: "POST",
|
|
24795
|
+
headers: {
|
|
24796
|
+
"Content-Type": "application/json",
|
|
24797
|
+
"Accept": "application/json"
|
|
24798
|
+
}
|
|
24799
|
+
};
|
|
24800
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24801
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24802
|
+
}).then((_response) => {
|
|
24803
|
+
return this.processCreateSchemaCreatorState(_response);
|
|
24804
|
+
});
|
|
24805
|
+
}
|
|
24806
|
+
processCreateSchemaCreatorState(response) {
|
|
24807
|
+
const status = response.status;
|
|
24808
|
+
let _headers = {};
|
|
24809
|
+
if (response.headers && response.headers.forEach) {
|
|
24810
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24811
|
+
}
|
|
24812
|
+
;
|
|
24813
|
+
if (status === 201) {
|
|
24814
|
+
return response.text().then((_responseText) => {
|
|
24815
|
+
let result201 = null;
|
|
24816
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24817
|
+
return result201;
|
|
24818
|
+
});
|
|
24819
|
+
}
|
|
24820
|
+
else if (status === 409) {
|
|
24821
|
+
return response.text().then((_responseText) => {
|
|
24822
|
+
let result409 = null;
|
|
24823
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24824
|
+
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
24825
|
+
});
|
|
24826
|
+
}
|
|
24827
|
+
else if (status !== 200 && status !== 204) {
|
|
24828
|
+
return response.text().then((_responseText) => {
|
|
24829
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24830
|
+
});
|
|
24831
|
+
}
|
|
24832
|
+
return Promise.resolve(null);
|
|
24833
|
+
}
|
|
24834
|
+
updateSchemaCreatorState(schemaVersionId, state) {
|
|
24835
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24836
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24837
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24838
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24839
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24840
|
+
const content_ = JSON.stringify(state);
|
|
24841
|
+
let options_ = {
|
|
24842
|
+
body: content_,
|
|
24843
|
+
method: "PUT",
|
|
24844
|
+
headers: {
|
|
24845
|
+
"Content-Type": "application/json",
|
|
24846
|
+
"Accept": "application/json"
|
|
24847
|
+
}
|
|
24848
|
+
};
|
|
24849
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24850
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24851
|
+
}).then((_response) => {
|
|
24852
|
+
return this.processUpdateSchemaCreatorState(_response);
|
|
24853
|
+
});
|
|
24854
|
+
}
|
|
24855
|
+
processUpdateSchemaCreatorState(response) {
|
|
24856
|
+
const status = response.status;
|
|
24857
|
+
let _headers = {};
|
|
24858
|
+
if (response.headers && response.headers.forEach) {
|
|
24859
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24860
|
+
}
|
|
24861
|
+
;
|
|
24862
|
+
if (status === 200) {
|
|
24863
|
+
return response.text().then((_responseText) => {
|
|
24864
|
+
let result200 = null;
|
|
24865
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24866
|
+
return result200;
|
|
24867
|
+
});
|
|
24868
|
+
}
|
|
24869
|
+
else if (status !== 200 && status !== 204) {
|
|
24870
|
+
return response.text().then((_responseText) => {
|
|
24871
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24872
|
+
});
|
|
24873
|
+
}
|
|
24874
|
+
return Promise.resolve(null);
|
|
24875
|
+
}
|
|
24876
|
+
/**
|
|
24877
|
+
* Geometry only (no values), derived from the schema's retained
|
|
24878
|
+
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
24879
|
+
drawing positions. Throws BadRequest if the schema has no such XML +
|
|
24880
|
+
drawing to derive it from.
|
|
24881
|
+
*/
|
|
24882
|
+
getSchemaCreatorXmlGeometry(schemaVersionId) {
|
|
24883
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/xml-geometry";
|
|
24884
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24885
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24886
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24887
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24888
|
+
let options_ = {
|
|
24889
|
+
method: "GET",
|
|
24890
|
+
headers: {
|
|
24891
|
+
"Accept": "application/json"
|
|
24892
|
+
}
|
|
24893
|
+
};
|
|
24894
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24895
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24896
|
+
}).then((_response) => {
|
|
24897
|
+
return this.processGetSchemaCreatorXmlGeometry(_response);
|
|
24898
|
+
});
|
|
24899
|
+
}
|
|
24900
|
+
processGetSchemaCreatorXmlGeometry(response) {
|
|
24901
|
+
const status = response.status;
|
|
24902
|
+
let _headers = {};
|
|
24903
|
+
if (response.headers && response.headers.forEach) {
|
|
24904
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24905
|
+
}
|
|
24906
|
+
;
|
|
24907
|
+
if (status === 200) {
|
|
24908
|
+
return response.text().then((_responseText) => {
|
|
24909
|
+
let result200 = null;
|
|
24910
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24911
|
+
return result200;
|
|
24912
|
+
});
|
|
24913
|
+
}
|
|
24914
|
+
else if (status !== 200 && status !== 204) {
|
|
24915
|
+
return response.text().then((_responseText) => {
|
|
24916
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24917
|
+
});
|
|
24918
|
+
}
|
|
24919
|
+
return Promise.resolve(null);
|
|
24920
|
+
}
|
|
24921
|
+
/**
|
|
24922
|
+
* Starts a full drawing AI parse: clears every element and locks the
|
|
24923
|
+
schema for every viewer until it completes. If one is already in
|
|
24924
|
+
progress, returns that instead of starting a second one.
|
|
24925
|
+
*/
|
|
24926
|
+
requestSchemaCreatorDocumentParse(schemaVersionId) {
|
|
24927
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document";
|
|
24928
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24929
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24930
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24931
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24932
|
+
let options_ = {
|
|
24933
|
+
method: "POST",
|
|
24934
|
+
headers: {
|
|
24935
|
+
"Accept": "application/json"
|
|
24936
|
+
}
|
|
24937
|
+
};
|
|
24938
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24939
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24940
|
+
}).then((_response) => {
|
|
24941
|
+
return this.processRequestSchemaCreatorDocumentParse(_response);
|
|
24942
|
+
});
|
|
24943
|
+
}
|
|
24944
|
+
processRequestSchemaCreatorDocumentParse(response) {
|
|
24945
|
+
const status = response.status;
|
|
24946
|
+
let _headers = {};
|
|
24947
|
+
if (response.headers && response.headers.forEach) {
|
|
24948
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24949
|
+
}
|
|
24950
|
+
;
|
|
24951
|
+
if (status === 200) {
|
|
24952
|
+
return response.text().then((_responseText) => {
|
|
24953
|
+
let result200 = null;
|
|
24954
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24955
|
+
return result200;
|
|
24956
|
+
});
|
|
24957
|
+
}
|
|
24958
|
+
else if (status !== 200 && status !== 204) {
|
|
24959
|
+
return response.text().then((_responseText) => {
|
|
24960
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24961
|
+
});
|
|
24962
|
+
}
|
|
24963
|
+
return Promise.resolve(null);
|
|
24964
|
+
}
|
|
24965
|
+
/**
|
|
24966
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
24967
|
+
returns a temporary download link.
|
|
24968
|
+
*/
|
|
24969
|
+
exportSchemaCreatorDrawing(schemaVersionId) {
|
|
24970
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/download";
|
|
24971
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24972
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24973
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24974
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24975
|
+
let options_ = {
|
|
24976
|
+
method: "POST",
|
|
24977
|
+
headers: {
|
|
24978
|
+
"Accept": "application/json"
|
|
24979
|
+
}
|
|
24980
|
+
};
|
|
24981
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24982
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24983
|
+
}).then((_response) => {
|
|
24984
|
+
return this.processExportSchemaCreatorDrawing(_response);
|
|
24985
|
+
});
|
|
24986
|
+
}
|
|
24987
|
+
processExportSchemaCreatorDrawing(response) {
|
|
24988
|
+
const status = response.status;
|
|
24989
|
+
let _headers = {};
|
|
24990
|
+
if (response.headers && response.headers.forEach) {
|
|
24991
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24992
|
+
}
|
|
24993
|
+
;
|
|
24994
|
+
if (status === 200) {
|
|
24995
|
+
return response.text().then((_responseText) => {
|
|
24996
|
+
let result200 = null;
|
|
24997
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24998
|
+
return result200;
|
|
24999
|
+
});
|
|
25000
|
+
}
|
|
25001
|
+
else if (status !== 200 && status !== 204) {
|
|
25002
|
+
return response.text().then((_responseText) => {
|
|
25003
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25004
|
+
});
|
|
25005
|
+
}
|
|
25006
|
+
return Promise.resolve(null);
|
|
25007
|
+
}
|
|
25008
|
+
/**
|
|
25009
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
25010
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
25011
|
+
* @param image (optional)
|
|
25012
|
+
*/
|
|
25013
|
+
requestSchemaCreatorSnipParse(schemaVersionId, elementId, image) {
|
|
25014
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
|
|
25015
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
25016
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
25017
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
25018
|
+
if (elementId === undefined || elementId === null)
|
|
25019
|
+
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
25020
|
+
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
25021
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25022
|
+
const content_ = new FormData();
|
|
25023
|
+
if (image !== null && image !== undefined)
|
|
25024
|
+
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
25025
|
+
let options_ = {
|
|
25026
|
+
body: content_,
|
|
25027
|
+
method: "POST",
|
|
25028
|
+
headers: {}
|
|
25029
|
+
};
|
|
25030
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25031
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25032
|
+
}).then((_response) => {
|
|
25033
|
+
return this.processRequestSchemaCreatorSnipParse(_response);
|
|
25034
|
+
});
|
|
25035
|
+
}
|
|
25036
|
+
processRequestSchemaCreatorSnipParse(response) {
|
|
25037
|
+
const status = response.status;
|
|
25038
|
+
let _headers = {};
|
|
25039
|
+
if (response.headers && response.headers.forEach) {
|
|
25040
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25041
|
+
}
|
|
25042
|
+
;
|
|
25043
|
+
if (status === 200) {
|
|
25044
|
+
return response.text().then((_responseText) => {
|
|
25045
|
+
return;
|
|
25046
|
+
});
|
|
25047
|
+
}
|
|
25048
|
+
else if (status !== 200 && status !== 204) {
|
|
25049
|
+
return response.text().then((_responseText) => {
|
|
25050
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25051
|
+
});
|
|
25052
|
+
}
|
|
25053
|
+
return Promise.resolve(null);
|
|
25054
|
+
}
|
|
25055
|
+
}
|
|
24524
25056
|
export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
25057
|
+
http;
|
|
25058
|
+
baseUrl;
|
|
24525
25059
|
constructor(configuration, baseUrl, http) {
|
|
24526
25060
|
super(configuration);
|
|
24527
25061
|
this.http = http ? http : window;
|
|
24528
|
-
this.baseUrl = baseUrl
|
|
25062
|
+
this.baseUrl = baseUrl ?? "";
|
|
24529
25063
|
}
|
|
24530
25064
|
getArchivedMeasurementFormSchema(id) {
|
|
24531
25065
|
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
@@ -24934,6 +25468,51 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
24934
25468
|
}
|
|
24935
25469
|
return Promise.resolve(null);
|
|
24936
25470
|
}
|
|
25471
|
+
uploadSchemaMarkedDrawing(id, request) {
|
|
25472
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
|
|
25473
|
+
if (id === undefined || id === null)
|
|
25474
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25475
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25476
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25477
|
+
const content_ = JSON.stringify(request);
|
|
25478
|
+
let options_ = {
|
|
25479
|
+
body: content_,
|
|
25480
|
+
method: "POST",
|
|
25481
|
+
headers: {
|
|
25482
|
+
"Content-Type": "application/json",
|
|
25483
|
+
"Accept": "application/json"
|
|
25484
|
+
}
|
|
25485
|
+
};
|
|
25486
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25487
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25488
|
+
}).then((_response) => {
|
|
25489
|
+
return this.processUploadSchemaMarkedDrawing(_response);
|
|
25490
|
+
});
|
|
25491
|
+
}
|
|
25492
|
+
processUploadSchemaMarkedDrawing(response) {
|
|
25493
|
+
const status = response.status;
|
|
25494
|
+
let _headers = {};
|
|
25495
|
+
if (response.headers && response.headers.forEach) {
|
|
25496
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25497
|
+
}
|
|
25498
|
+
;
|
|
25499
|
+
if (status === 200) {
|
|
25500
|
+
return response.text().then((_responseText) => {
|
|
25501
|
+
let result200 = null;
|
|
25502
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25503
|
+
return result200;
|
|
25504
|
+
});
|
|
25505
|
+
}
|
|
25506
|
+
else if (status !== 200 && status !== 204) {
|
|
25507
|
+
return response.text().then((_responseText) => {
|
|
25508
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25509
|
+
});
|
|
25510
|
+
}
|
|
25511
|
+
return Promise.resolve(null);
|
|
25512
|
+
}
|
|
25513
|
+
/**
|
|
25514
|
+
* @deprecated
|
|
25515
|
+
*/
|
|
24937
25516
|
uploadSchemaDrawing(id, request) {
|
|
24938
25517
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
24939
25518
|
if (id === undefined || id === null)
|
|
@@ -26630,10 +27209,12 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
26630
27209
|
}
|
|
26631
27210
|
}
|
|
26632
27211
|
export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
27212
|
+
http;
|
|
27213
|
+
baseUrl;
|
|
26633
27214
|
constructor(configuration, baseUrl, http) {
|
|
26634
27215
|
super(configuration);
|
|
26635
27216
|
this.http = http ? http : window;
|
|
26636
|
-
this.baseUrl = baseUrl
|
|
27217
|
+
this.baseUrl = baseUrl ?? "";
|
|
26637
27218
|
}
|
|
26638
27219
|
getMeasurementFormSchema(id) {
|
|
26639
27220
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
@@ -26751,10 +27332,12 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
26751
27332
|
}
|
|
26752
27333
|
}
|
|
26753
27334
|
export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
27335
|
+
http;
|
|
27336
|
+
baseUrl;
|
|
26754
27337
|
constructor(configuration, baseUrl, http) {
|
|
26755
27338
|
super(configuration);
|
|
26756
27339
|
this.http = http ? http : window;
|
|
26757
|
-
this.baseUrl = baseUrl
|
|
27340
|
+
this.baseUrl = baseUrl ?? "";
|
|
26758
27341
|
}
|
|
26759
27342
|
getMeasurementFormSettings() {
|
|
26760
27343
|
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
@@ -26911,10 +27494,12 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
|
26911
27494
|
}
|
|
26912
27495
|
}
|
|
26913
27496
|
export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
27497
|
+
http;
|
|
27498
|
+
baseUrl;
|
|
26914
27499
|
constructor(configuration, baseUrl, http) {
|
|
26915
27500
|
super(configuration);
|
|
26916
27501
|
this.http = http ? http : window;
|
|
26917
|
-
this.baseUrl = baseUrl
|
|
27502
|
+
this.baseUrl = baseUrl ?? "";
|
|
26918
27503
|
}
|
|
26919
27504
|
approveMeasurementFormInstance(id) {
|
|
26920
27505
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
|
|
@@ -27035,10 +27620,12 @@ export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
|
27035
27620
|
}
|
|
27036
27621
|
}
|
|
27037
27622
|
export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
27623
|
+
http;
|
|
27624
|
+
baseUrl;
|
|
27038
27625
|
constructor(configuration, baseUrl, http) {
|
|
27039
27626
|
super(configuration);
|
|
27040
27627
|
this.http = http ? http : window;
|
|
27041
|
-
this.baseUrl = baseUrl
|
|
27628
|
+
this.baseUrl = baseUrl ?? "";
|
|
27042
27629
|
}
|
|
27043
27630
|
listMeasurementForms(pageSize, search, continuationToken, tenantId, inactive, includeInactiveSupplierAccess) {
|
|
27044
27631
|
let url_ = this.baseUrl + "/measurementforms/instances?";
|
|
@@ -27337,6 +27924,50 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27337
27924
|
}
|
|
27338
27925
|
return Promise.resolve(null);
|
|
27339
27926
|
}
|
|
27927
|
+
getMeasurementFormInstanceSchemaCreatorState(id, schemaId, tenantId) {
|
|
27928
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
|
|
27929
|
+
if (id === undefined || id === null)
|
|
27930
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27931
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27932
|
+
if (schemaId === undefined || schemaId === null)
|
|
27933
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
27934
|
+
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
27935
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
27936
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
27937
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27938
|
+
let options_ = {
|
|
27939
|
+
method: "GET",
|
|
27940
|
+
headers: {
|
|
27941
|
+
"Accept": "application/json"
|
|
27942
|
+
}
|
|
27943
|
+
};
|
|
27944
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27945
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27946
|
+
}).then((_response) => {
|
|
27947
|
+
return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
|
|
27948
|
+
});
|
|
27949
|
+
}
|
|
27950
|
+
processGetMeasurementFormInstanceSchemaCreatorState(response) {
|
|
27951
|
+
const status = response.status;
|
|
27952
|
+
let _headers = {};
|
|
27953
|
+
if (response.headers && response.headers.forEach) {
|
|
27954
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27955
|
+
}
|
|
27956
|
+
;
|
|
27957
|
+
if (status === 200) {
|
|
27958
|
+
return response.text().then((_responseText) => {
|
|
27959
|
+
let result200 = null;
|
|
27960
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27961
|
+
return result200;
|
|
27962
|
+
});
|
|
27963
|
+
}
|
|
27964
|
+
else if (status !== 200 && status !== 204) {
|
|
27965
|
+
return response.text().then((_responseText) => {
|
|
27966
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27967
|
+
});
|
|
27968
|
+
}
|
|
27969
|
+
return Promise.resolve(null);
|
|
27970
|
+
}
|
|
27340
27971
|
getWorkorderMeasurementFormProgress(id, tenantId) {
|
|
27341
27972
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
27342
27973
|
if (id === undefined || id === null)
|
|
@@ -27933,10 +28564,12 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27933
28564
|
}
|
|
27934
28565
|
}
|
|
27935
28566
|
export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiBase {
|
|
28567
|
+
http;
|
|
28568
|
+
baseUrl;
|
|
27936
28569
|
constructor(configuration, baseUrl, http) {
|
|
27937
28570
|
super(configuration);
|
|
27938
28571
|
this.http = http ? http : window;
|
|
27939
|
-
this.baseUrl = baseUrl
|
|
28572
|
+
this.baseUrl = baseUrl ?? "";
|
|
27940
28573
|
}
|
|
27941
28574
|
createMeasurementFormInstance(id) {
|
|
27942
28575
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
@@ -28311,10 +28944,12 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
28311
28944
|
}
|
|
28312
28945
|
}
|
|
28313
28946
|
export class CompaniesClient extends AuthorizedApiBase {
|
|
28947
|
+
http;
|
|
28948
|
+
baseUrl;
|
|
28314
28949
|
constructor(configuration, baseUrl, http) {
|
|
28315
28950
|
super(configuration);
|
|
28316
28951
|
this.http = http ? http : window;
|
|
28317
|
-
this.baseUrl = baseUrl
|
|
28952
|
+
this.baseUrl = baseUrl ?? "";
|
|
28318
28953
|
}
|
|
28319
28954
|
listProductionCompanies() {
|
|
28320
28955
|
let url_ = this.baseUrl + "/erp/companies";
|
|
@@ -28393,10 +29028,12 @@ export class CompaniesClient extends AuthorizedApiBase {
|
|
|
28393
29028
|
}
|
|
28394
29029
|
}
|
|
28395
29030
|
export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
29031
|
+
http;
|
|
29032
|
+
baseUrl;
|
|
28396
29033
|
constructor(configuration, baseUrl, http) {
|
|
28397
29034
|
super(configuration);
|
|
28398
29035
|
this.http = http ? http : window;
|
|
28399
|
-
this.baseUrl = baseUrl
|
|
29036
|
+
this.baseUrl = baseUrl ?? "";
|
|
28400
29037
|
}
|
|
28401
29038
|
/**
|
|
28402
29039
|
* Upsert a customer order
|
|
@@ -28668,10 +29305,12 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
28668
29305
|
}
|
|
28669
29306
|
}
|
|
28670
29307
|
export class ErpUsersClient extends AuthorizedApiBase {
|
|
29308
|
+
http;
|
|
29309
|
+
baseUrl;
|
|
28671
29310
|
constructor(configuration, baseUrl, http) {
|
|
28672
29311
|
super(configuration);
|
|
28673
29312
|
this.http = http ? http : window;
|
|
28674
|
-
this.baseUrl = baseUrl
|
|
29313
|
+
this.baseUrl = baseUrl ?? "";
|
|
28675
29314
|
}
|
|
28676
29315
|
listUsers(request) {
|
|
28677
29316
|
let url_ = this.baseUrl + "/erp/users/list";
|
|
@@ -28714,10 +29353,12 @@ export class ErpUsersClient extends AuthorizedApiBase {
|
|
|
28714
29353
|
}
|
|
28715
29354
|
}
|
|
28716
29355
|
export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
29356
|
+
http;
|
|
29357
|
+
baseUrl;
|
|
28717
29358
|
constructor(configuration, baseUrl, http) {
|
|
28718
29359
|
super(configuration);
|
|
28719
29360
|
this.http = http ? http : window;
|
|
28720
|
-
this.baseUrl = baseUrl
|
|
29361
|
+
this.baseUrl = baseUrl ?? "";
|
|
28721
29362
|
}
|
|
28722
29363
|
listProductionPools() {
|
|
28723
29364
|
let url_ = this.baseUrl + "/erp/productionpools";
|
|
@@ -28793,10 +29434,12 @@ export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
|
28793
29434
|
}
|
|
28794
29435
|
}
|
|
28795
29436
|
export class WorkordersClient extends AuthorizedApiBase {
|
|
29437
|
+
http;
|
|
29438
|
+
baseUrl;
|
|
28796
29439
|
constructor(configuration, baseUrl, http) {
|
|
28797
29440
|
super(configuration);
|
|
28798
29441
|
this.http = http ? http : window;
|
|
28799
|
-
this.baseUrl = baseUrl
|
|
29442
|
+
this.baseUrl = baseUrl ?? "";
|
|
28800
29443
|
}
|
|
28801
29444
|
/**
|
|
28802
29445
|
* Create or update a workorder.
|
|
@@ -30108,15 +30751,20 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
30108
30751
|
}
|
|
30109
30752
|
}
|
|
30110
30753
|
export class ApiException extends Error {
|
|
30754
|
+
message;
|
|
30755
|
+
status;
|
|
30756
|
+
response;
|
|
30757
|
+
headers;
|
|
30758
|
+
result;
|
|
30111
30759
|
constructor(message, status, response, headers, result) {
|
|
30112
30760
|
super();
|
|
30113
|
-
this.isApiException = true;
|
|
30114
30761
|
this.message = message;
|
|
30115
30762
|
this.status = status;
|
|
30116
30763
|
this.response = response;
|
|
30117
30764
|
this.headers = headers;
|
|
30118
30765
|
this.result = result;
|
|
30119
30766
|
}
|
|
30767
|
+
isApiException = true;
|
|
30120
30768
|
static isApiException(obj) {
|
|
30121
30769
|
return obj.isApiException === true;
|
|
30122
30770
|
}
|