@ignos/api-client 20260914.276.1-alpha → 20260914.277.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 +222 -23
- package/lib/ignosportal-api.js +733 -163
- package/package.json +2 -2
- package/src/ignosportal-api.ts +609 -65
- 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?";
|
|
@@ -8479,10 +8530,12 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
8479
8530
|
}
|
|
8480
8531
|
}
|
|
8481
8532
|
export class TraceClient extends AuthorizedApiBase {
|
|
8533
|
+
http;
|
|
8534
|
+
baseUrl;
|
|
8482
8535
|
constructor(configuration, baseUrl, http) {
|
|
8483
8536
|
super(configuration);
|
|
8484
8537
|
this.http = http ? http : window;
|
|
8485
|
-
this.baseUrl = baseUrl
|
|
8538
|
+
this.baseUrl = baseUrl ?? "";
|
|
8486
8539
|
}
|
|
8487
8540
|
getTrace(id) {
|
|
8488
8541
|
let url_ = this.baseUrl + "/trace/{id}";
|
|
@@ -8869,10 +8922,12 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
8869
8922
|
}
|
|
8870
8923
|
}
|
|
8871
8924
|
export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
8925
|
+
http;
|
|
8926
|
+
baseUrl;
|
|
8872
8927
|
constructor(configuration, baseUrl, http) {
|
|
8873
8928
|
super(configuration);
|
|
8874
8929
|
this.http = http ? http : window;
|
|
8875
|
-
this.baseUrl = baseUrl
|
|
8930
|
+
this.baseUrl = baseUrl ?? "";
|
|
8876
8931
|
}
|
|
8877
8932
|
listMeasuringTools(page, pageSize, toolId, toolName, typeId, subTypeId, orderBy, sortDirection, includeDeprecated) {
|
|
8878
8933
|
let url_ = this.baseUrl + "/measuringtools?";
|
|
@@ -10226,10 +10281,12 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
10226
10281
|
}
|
|
10227
10282
|
}
|
|
10228
10283
|
export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
10284
|
+
http;
|
|
10285
|
+
baseUrl;
|
|
10229
10286
|
constructor(configuration, baseUrl, http) {
|
|
10230
10287
|
super(configuration);
|
|
10231
10288
|
this.http = http ? http : window;
|
|
10232
|
-
this.baseUrl = baseUrl
|
|
10289
|
+
this.baseUrl = baseUrl ?? "";
|
|
10233
10290
|
}
|
|
10234
10291
|
listDowntimeReasons() {
|
|
10235
10292
|
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons";
|
|
@@ -10573,10 +10630,12 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
|
10573
10630
|
}
|
|
10574
10631
|
}
|
|
10575
10632
|
export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
10633
|
+
http;
|
|
10634
|
+
baseUrl;
|
|
10576
10635
|
constructor(configuration, baseUrl, http) {
|
|
10577
10636
|
super(configuration);
|
|
10578
10637
|
this.http = http ? http : window;
|
|
10579
|
-
this.baseUrl = baseUrl
|
|
10638
|
+
this.baseUrl = baseUrl ?? "";
|
|
10580
10639
|
}
|
|
10581
10640
|
createDowntimePeriodReason(request) {
|
|
10582
10641
|
let url_ = this.baseUrl + "/downtimereasons";
|
|
@@ -10970,10 +11029,12 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
|
10970
11029
|
}
|
|
10971
11030
|
}
|
|
10972
11031
|
export class KpiAdminClient extends AuthorizedApiBase {
|
|
11032
|
+
http;
|
|
11033
|
+
baseUrl;
|
|
10973
11034
|
constructor(configuration, baseUrl, http) {
|
|
10974
11035
|
super(configuration);
|
|
10975
11036
|
this.http = http ? http : window;
|
|
10976
|
-
this.baseUrl = baseUrl
|
|
11037
|
+
this.baseUrl = baseUrl ?? "";
|
|
10977
11038
|
}
|
|
10978
11039
|
getMachineCapacityAdmin() {
|
|
10979
11040
|
let url_ = this.baseUrl + "/kpiadmin/capacity";
|
|
@@ -11210,10 +11271,12 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
11210
11271
|
}
|
|
11211
11272
|
}
|
|
11212
11273
|
export class KpiClient extends AuthorizedApiBase {
|
|
11274
|
+
http;
|
|
11275
|
+
baseUrl;
|
|
11213
11276
|
constructor(configuration, baseUrl, http) {
|
|
11214
11277
|
super(configuration);
|
|
11215
11278
|
this.http = http ? http : window;
|
|
11216
|
-
this.baseUrl = baseUrl
|
|
11279
|
+
this.baseUrl = baseUrl ?? "";
|
|
11217
11280
|
}
|
|
11218
11281
|
getMachineKpi(machineExternalId, previousPeriodStartDate, startDate, endDate, utcOffset) {
|
|
11219
11282
|
let url_ = this.baseUrl + "/kpi/capacity?";
|
|
@@ -11365,10 +11428,12 @@ export class KpiClient extends AuthorizedApiBase {
|
|
|
11365
11428
|
}
|
|
11366
11429
|
}
|
|
11367
11430
|
export class MachinesClient extends AuthorizedApiBase {
|
|
11431
|
+
http;
|
|
11432
|
+
baseUrl;
|
|
11368
11433
|
constructor(configuration, baseUrl, http) {
|
|
11369
11434
|
super(configuration);
|
|
11370
11435
|
this.http = http ? http : window;
|
|
11371
|
-
this.baseUrl = baseUrl
|
|
11436
|
+
this.baseUrl = baseUrl ?? "";
|
|
11372
11437
|
}
|
|
11373
11438
|
listMachines(onlyConnectedMachines) {
|
|
11374
11439
|
let url_ = this.baseUrl + "/machines?";
|
|
@@ -12185,10 +12250,12 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
12185
12250
|
}
|
|
12186
12251
|
}
|
|
12187
12252
|
export class MachineDataClient extends AuthorizedApiBase {
|
|
12253
|
+
http;
|
|
12254
|
+
baseUrl;
|
|
12188
12255
|
constructor(configuration, baseUrl, http) {
|
|
12189
12256
|
super(configuration);
|
|
12190
12257
|
this.http = http ? http : window;
|
|
12191
|
-
this.baseUrl = baseUrl
|
|
12258
|
+
this.baseUrl = baseUrl ?? "";
|
|
12192
12259
|
}
|
|
12193
12260
|
getLiveMachineData(assetId, externalIds) {
|
|
12194
12261
|
let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
|
|
@@ -12328,10 +12395,12 @@ export class MachineDataClient extends AuthorizedApiBase {
|
|
|
12328
12395
|
}
|
|
12329
12396
|
}
|
|
12330
12397
|
export class LinksClient extends AuthorizedApiBase {
|
|
12398
|
+
http;
|
|
12399
|
+
baseUrl;
|
|
12331
12400
|
constructor(configuration, baseUrl, http) {
|
|
12332
12401
|
super(configuration);
|
|
12333
12402
|
this.http = http ? http : window;
|
|
12334
|
-
this.baseUrl = baseUrl
|
|
12403
|
+
this.baseUrl = baseUrl ?? "";
|
|
12335
12404
|
}
|
|
12336
12405
|
getAllLinks(scope) {
|
|
12337
12406
|
let url_ = this.baseUrl + "/links?";
|
|
@@ -12485,10 +12554,12 @@ export class LinksClient extends AuthorizedApiBase {
|
|
|
12485
12554
|
}
|
|
12486
12555
|
}
|
|
12487
12556
|
export class ExternalServicesClient extends AuthorizedApiBase {
|
|
12557
|
+
http;
|
|
12558
|
+
baseUrl;
|
|
12488
12559
|
constructor(configuration, baseUrl, http) {
|
|
12489
12560
|
super(configuration);
|
|
12490
12561
|
this.http = http ? http : window;
|
|
12491
|
-
this.baseUrl = baseUrl
|
|
12562
|
+
this.baseUrl = baseUrl ?? "";
|
|
12492
12563
|
}
|
|
12493
12564
|
getCredential(serviceName) {
|
|
12494
12565
|
let url_ = this.baseUrl + "/externalservices/credentials/{serviceName}";
|
|
@@ -12531,10 +12602,12 @@ export class ExternalServicesClient extends AuthorizedApiBase {
|
|
|
12531
12602
|
}
|
|
12532
12603
|
}
|
|
12533
12604
|
export class DocumentsClient extends AuthorizedApiBase {
|
|
12605
|
+
http;
|
|
12606
|
+
baseUrl;
|
|
12534
12607
|
constructor(configuration, baseUrl, http) {
|
|
12535
12608
|
super(configuration);
|
|
12536
12609
|
this.http = http ? http : window;
|
|
12537
|
-
this.baseUrl = baseUrl
|
|
12610
|
+
this.baseUrl = baseUrl ?? "";
|
|
12538
12611
|
}
|
|
12539
12612
|
/**
|
|
12540
12613
|
* Import document with revisions from other systems.
|
|
@@ -12624,10 +12697,12 @@ export class DocumentsClient extends AuthorizedApiBase {
|
|
|
12624
12697
|
}
|
|
12625
12698
|
}
|
|
12626
12699
|
export class DocumentTypesClient extends AuthorizedApiBase {
|
|
12700
|
+
http;
|
|
12701
|
+
baseUrl;
|
|
12627
12702
|
constructor(configuration, baseUrl, http) {
|
|
12628
12703
|
super(configuration);
|
|
12629
12704
|
this.http = http ? http : window;
|
|
12630
|
-
this.baseUrl = baseUrl
|
|
12705
|
+
this.baseUrl = baseUrl ?? "";
|
|
12631
12706
|
}
|
|
12632
12707
|
listDocumentTypes(includeInactive) {
|
|
12633
12708
|
let url_ = this.baseUrl + "/documenttypes?";
|
|
@@ -13049,10 +13124,12 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
13049
13124
|
}
|
|
13050
13125
|
}
|
|
13051
13126
|
export class ExternalAccessClient extends AuthorizedApiBase {
|
|
13127
|
+
http;
|
|
13128
|
+
baseUrl;
|
|
13052
13129
|
constructor(configuration, baseUrl, http) {
|
|
13053
13130
|
super(configuration);
|
|
13054
13131
|
this.http = http ? http : window;
|
|
13055
|
-
this.baseUrl = baseUrl
|
|
13132
|
+
this.baseUrl = baseUrl ?? "";
|
|
13056
13133
|
}
|
|
13057
13134
|
listUsers(companyId) {
|
|
13058
13135
|
let url_ = this.baseUrl + "/externalaccess/users?";
|
|
@@ -13319,10 +13396,12 @@ export class ExternalAccessClient extends AuthorizedApiBase {
|
|
|
13319
13396
|
}
|
|
13320
13397
|
}
|
|
13321
13398
|
export class ExternalClient extends AuthorizedApiBase {
|
|
13399
|
+
http;
|
|
13400
|
+
baseUrl;
|
|
13322
13401
|
constructor(configuration, baseUrl, http) {
|
|
13323
13402
|
super(configuration);
|
|
13324
13403
|
this.http = http ? http : window;
|
|
13325
|
-
this.baseUrl = baseUrl
|
|
13404
|
+
this.baseUrl = baseUrl ?? "";
|
|
13326
13405
|
}
|
|
13327
13406
|
listInvites() {
|
|
13328
13407
|
let url_ = this.baseUrl + "/external/invites";
|
|
@@ -13437,10 +13516,12 @@ export class ExternalClient extends AuthorizedApiBase {
|
|
|
13437
13516
|
}
|
|
13438
13517
|
}
|
|
13439
13518
|
export class SuppliersClient extends AuthorizedApiBase {
|
|
13519
|
+
http;
|
|
13520
|
+
baseUrl;
|
|
13440
13521
|
constructor(configuration, baseUrl, http) {
|
|
13441
13522
|
super(configuration);
|
|
13442
13523
|
this.http = http ? http : window;
|
|
13443
|
-
this.baseUrl = baseUrl
|
|
13524
|
+
this.baseUrl = baseUrl ?? "";
|
|
13444
13525
|
}
|
|
13445
13526
|
listSupplierInvites() {
|
|
13446
13527
|
let url_ = this.baseUrl + "/suppliers/supplierinvites";
|
|
@@ -13738,10 +13819,12 @@ export class SuppliersClient extends AuthorizedApiBase {
|
|
|
13738
13819
|
}
|
|
13739
13820
|
}
|
|
13740
13821
|
export class CncFileTransferClient extends AuthorizedApiBase {
|
|
13822
|
+
http;
|
|
13823
|
+
baseUrl;
|
|
13741
13824
|
constructor(configuration, baseUrl, http) {
|
|
13742
13825
|
super(configuration);
|
|
13743
13826
|
this.http = http ? http : window;
|
|
13744
|
-
this.baseUrl = baseUrl
|
|
13827
|
+
this.baseUrl = baseUrl ?? "";
|
|
13745
13828
|
}
|
|
13746
13829
|
startCncMachineOperationTransferToCloud(id) {
|
|
13747
13830
|
let url_ = this.baseUrl + "/cncfiletransfer/operations/{id}/transfertocloud";
|
|
@@ -14022,10 +14105,12 @@ export class CncFileTransferClient extends AuthorizedApiBase {
|
|
|
14022
14105
|
}
|
|
14023
14106
|
}
|
|
14024
14107
|
export class CncSetupAgentClient extends AuthorizedApiBase {
|
|
14108
|
+
http;
|
|
14109
|
+
baseUrl;
|
|
14025
14110
|
constructor(configuration, baseUrl, http) {
|
|
14026
14111
|
super(configuration);
|
|
14027
14112
|
this.http = http ? http : window;
|
|
14028
|
-
this.baseUrl = baseUrl
|
|
14113
|
+
this.baseUrl = baseUrl ?? "";
|
|
14029
14114
|
}
|
|
14030
14115
|
getCncAgentConfig(agentId, agentVersion) {
|
|
14031
14116
|
let url_ = this.baseUrl + "/cncsetupagent/agentconfig?";
|
|
@@ -14150,10 +14235,12 @@ export class CncSetupAgentClient extends AuthorizedApiBase {
|
|
|
14150
14235
|
}
|
|
14151
14236
|
}
|
|
14152
14237
|
export class CncSetupClient extends AuthorizedApiBase {
|
|
14238
|
+
http;
|
|
14239
|
+
baseUrl;
|
|
14153
14240
|
constructor(configuration, baseUrl, http) {
|
|
14154
14241
|
super(configuration);
|
|
14155
14242
|
this.http = http ? http : window;
|
|
14156
|
-
this.baseUrl = baseUrl
|
|
14243
|
+
this.baseUrl = baseUrl ?? "";
|
|
14157
14244
|
}
|
|
14158
14245
|
getCncMachine(id) {
|
|
14159
14246
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}";
|
|
@@ -16443,10 +16530,12 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
16443
16530
|
}
|
|
16444
16531
|
}
|
|
16445
16532
|
export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
16533
|
+
http;
|
|
16534
|
+
baseUrl;
|
|
16446
16535
|
constructor(configuration, baseUrl, http) {
|
|
16447
16536
|
super(configuration);
|
|
16448
16537
|
this.http = http ? http : window;
|
|
16449
|
-
this.baseUrl = baseUrl
|
|
16538
|
+
this.baseUrl = baseUrl ?? "";
|
|
16450
16539
|
}
|
|
16451
16540
|
listFixtures(request) {
|
|
16452
16541
|
let url_ = this.baseUrl + "/fixtures/list";
|
|
@@ -17050,10 +17139,12 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
17050
17139
|
}
|
|
17051
17140
|
}
|
|
17052
17141
|
export class OperatorCalculatorsClient extends AuthorizedApiBase {
|
|
17142
|
+
http;
|
|
17143
|
+
baseUrl;
|
|
17053
17144
|
constructor(configuration, baseUrl, http) {
|
|
17054
17145
|
super(configuration);
|
|
17055
17146
|
this.http = http ? http : window;
|
|
17056
|
-
this.baseUrl = baseUrl
|
|
17147
|
+
this.baseUrl = baseUrl ?? "";
|
|
17057
17148
|
}
|
|
17058
17149
|
/**
|
|
17059
17150
|
* Calculate spindle speed from cutting speed or vice versa.
|
|
@@ -17225,10 +17316,12 @@ export class OperatorCalculatorsClient extends AuthorizedApiBase {
|
|
|
17225
17316
|
}
|
|
17226
17317
|
}
|
|
17227
17318
|
export class AssetsClient extends AuthorizedApiBase {
|
|
17319
|
+
http;
|
|
17320
|
+
baseUrl;
|
|
17228
17321
|
constructor(configuration, baseUrl, http) {
|
|
17229
17322
|
super(configuration);
|
|
17230
17323
|
this.http = http ? http : window;
|
|
17231
|
-
this.baseUrl = baseUrl
|
|
17324
|
+
this.baseUrl = baseUrl ?? "";
|
|
17232
17325
|
}
|
|
17233
17326
|
listAssets(externalIdprefix, name, source, limit, continuationToken) {
|
|
17234
17327
|
let url_ = this.baseUrl + "/assets?";
|
|
@@ -17522,10 +17615,12 @@ export class AssetsClient extends AuthorizedApiBase {
|
|
|
17522
17615
|
}
|
|
17523
17616
|
}
|
|
17524
17617
|
export class AlertsClient extends AuthorizedApiBase {
|
|
17618
|
+
http;
|
|
17619
|
+
baseUrl;
|
|
17525
17620
|
constructor(configuration, baseUrl, http) {
|
|
17526
17621
|
super(configuration);
|
|
17527
17622
|
this.http = http ? http : window;
|
|
17528
|
-
this.baseUrl = baseUrl
|
|
17623
|
+
this.baseUrl = baseUrl ?? "";
|
|
17529
17624
|
}
|
|
17530
17625
|
alertNotificationAccess() {
|
|
17531
17626
|
let url_ = this.baseUrl + "/alerts/useraccess";
|
|
@@ -17750,10 +17845,12 @@ export class AlertsClient extends AuthorizedApiBase {
|
|
|
17750
17845
|
}
|
|
17751
17846
|
}
|
|
17752
17847
|
export class CredentialsClient extends AuthorizedApiBase {
|
|
17848
|
+
http;
|
|
17849
|
+
baseUrl;
|
|
17753
17850
|
constructor(configuration, baseUrl, http) {
|
|
17754
17851
|
super(configuration);
|
|
17755
17852
|
this.http = http ? http : window;
|
|
17756
|
-
this.baseUrl = baseUrl
|
|
17853
|
+
this.baseUrl = baseUrl ?? "";
|
|
17757
17854
|
}
|
|
17758
17855
|
listIntegrationCredentials() {
|
|
17759
17856
|
let url_ = this.baseUrl + "/admin/credentials";
|
|
@@ -17865,10 +17962,12 @@ export class CredentialsClient extends AuthorizedApiBase {
|
|
|
17865
17962
|
}
|
|
17866
17963
|
}
|
|
17867
17964
|
export class CdfClient extends AuthorizedApiBase {
|
|
17965
|
+
http;
|
|
17966
|
+
baseUrl;
|
|
17868
17967
|
constructor(configuration, baseUrl, http) {
|
|
17869
17968
|
super(configuration);
|
|
17870
17969
|
this.http = http ? http : window;
|
|
17871
|
-
this.baseUrl = baseUrl
|
|
17970
|
+
this.baseUrl = baseUrl ?? "";
|
|
17872
17971
|
}
|
|
17873
17972
|
/**
|
|
17874
17973
|
* Get CDF config
|
|
@@ -17953,10 +18052,12 @@ export class CdfClient extends AuthorizedApiBase {
|
|
|
17953
18052
|
}
|
|
17954
18053
|
}
|
|
17955
18054
|
export class WorkspaceDefaultsAdminClient extends AuthorizedApiBase {
|
|
18055
|
+
http;
|
|
18056
|
+
baseUrl;
|
|
17956
18057
|
constructor(configuration, baseUrl, http) {
|
|
17957
18058
|
super(configuration);
|
|
17958
18059
|
this.http = http ? http : window;
|
|
17959
|
-
this.baseUrl = baseUrl
|
|
18060
|
+
this.baseUrl = baseUrl ?? "";
|
|
17960
18061
|
}
|
|
17961
18062
|
getDefaults() {
|
|
17962
18063
|
let url_ = this.baseUrl + "/workspaces/defaults";
|
|
@@ -18073,10 +18174,12 @@ export class WorkspaceDefaultsAdminClient extends AuthorizedApiBase {
|
|
|
18073
18174
|
}
|
|
18074
18175
|
}
|
|
18075
18176
|
export class WorkspacesClient extends AuthorizedApiBase {
|
|
18177
|
+
http;
|
|
18178
|
+
baseUrl;
|
|
18076
18179
|
constructor(configuration, baseUrl, http) {
|
|
18077
18180
|
super(configuration);
|
|
18078
18181
|
this.http = http ? http : window;
|
|
18079
|
-
this.baseUrl = baseUrl
|
|
18182
|
+
this.baseUrl = baseUrl ?? "";
|
|
18080
18183
|
}
|
|
18081
18184
|
getMyWorkspaces() {
|
|
18082
18185
|
let url_ = this.baseUrl + "/workspaces";
|
|
@@ -18478,10 +18581,12 @@ export class WorkspacesClient extends AuthorizedApiBase {
|
|
|
18478
18581
|
}
|
|
18479
18582
|
}
|
|
18480
18583
|
export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
18584
|
+
http;
|
|
18585
|
+
baseUrl;
|
|
18481
18586
|
constructor(configuration, baseUrl, http) {
|
|
18482
18587
|
super(configuration);
|
|
18483
18588
|
this.http = http ? http : window;
|
|
18484
|
-
this.baseUrl = baseUrl
|
|
18589
|
+
this.baseUrl = baseUrl ?? "";
|
|
18485
18590
|
}
|
|
18486
18591
|
createWorkspaceTemplate(createWorkspaceTemplate) {
|
|
18487
18592
|
let url_ = this.baseUrl + "/workspaces/templates";
|
|
@@ -18769,10 +18874,12 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
|
18769
18874
|
}
|
|
18770
18875
|
}
|
|
18771
18876
|
export class WorkspaceTemplatesClient extends AuthorizedApiBase {
|
|
18877
|
+
http;
|
|
18878
|
+
baseUrl;
|
|
18772
18879
|
constructor(configuration, baseUrl, http) {
|
|
18773
18880
|
super(configuration);
|
|
18774
18881
|
this.http = http ? http : window;
|
|
18775
|
-
this.baseUrl = baseUrl
|
|
18882
|
+
this.baseUrl = baseUrl ?? "";
|
|
18776
18883
|
}
|
|
18777
18884
|
getWorkspaceTemplates() {
|
|
18778
18885
|
let url_ = this.baseUrl + "/workspaces/templates";
|
|
@@ -18812,10 +18919,12 @@ export class WorkspaceTemplatesClient extends AuthorizedApiBase {
|
|
|
18812
18919
|
}
|
|
18813
18920
|
}
|
|
18814
18921
|
export class MoveBookingClient extends AuthorizedApiBase {
|
|
18922
|
+
http;
|
|
18923
|
+
baseUrl;
|
|
18815
18924
|
constructor(configuration, baseUrl, http) {
|
|
18816
18925
|
super(configuration);
|
|
18817
18926
|
this.http = http ? http : window;
|
|
18818
|
-
this.baseUrl = baseUrl
|
|
18927
|
+
this.baseUrl = baseUrl ?? "";
|
|
18819
18928
|
}
|
|
18820
18929
|
listBookings(request) {
|
|
18821
18930
|
let url_ = this.baseUrl + "/move/booking/list";
|
|
@@ -19210,10 +19319,12 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
19210
19319
|
}
|
|
19211
19320
|
}
|
|
19212
19321
|
export class MoveInfoscreenClient extends AuthorizedApiBase {
|
|
19322
|
+
http;
|
|
19323
|
+
baseUrl;
|
|
19213
19324
|
constructor(configuration, baseUrl, http) {
|
|
19214
19325
|
super(configuration);
|
|
19215
19326
|
this.http = http ? http : window;
|
|
19216
|
-
this.baseUrl = baseUrl
|
|
19327
|
+
this.baseUrl = baseUrl ?? "";
|
|
19217
19328
|
}
|
|
19218
19329
|
listInfoscreens() {
|
|
19219
19330
|
let url_ = this.baseUrl + "/move/infoscreens";
|
|
@@ -19408,10 +19519,12 @@ export class MoveInfoscreenClient extends AuthorizedApiBase {
|
|
|
19408
19519
|
}
|
|
19409
19520
|
}
|
|
19410
19521
|
export class MoveLocationsClient extends AuthorizedApiBase {
|
|
19522
|
+
http;
|
|
19523
|
+
baseUrl;
|
|
19411
19524
|
constructor(configuration, baseUrl, http) {
|
|
19412
19525
|
super(configuration);
|
|
19413
19526
|
this.http = http ? http : window;
|
|
19414
|
-
this.baseUrl = baseUrl
|
|
19527
|
+
this.baseUrl = baseUrl ?? "";
|
|
19415
19528
|
}
|
|
19416
19529
|
listLocations(includeAllLocations) {
|
|
19417
19530
|
let url_ = this.baseUrl + "/move/locations/list?";
|
|
@@ -19659,10 +19772,12 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
19659
19772
|
}
|
|
19660
19773
|
}
|
|
19661
19774
|
export class MoveMaterialsClient extends AuthorizedApiBase {
|
|
19775
|
+
http;
|
|
19776
|
+
baseUrl;
|
|
19662
19777
|
constructor(configuration, baseUrl, http) {
|
|
19663
19778
|
super(configuration);
|
|
19664
19779
|
this.http = http ? http : window;
|
|
19665
|
-
this.baseUrl = baseUrl
|
|
19780
|
+
this.baseUrl = baseUrl ?? "";
|
|
19666
19781
|
}
|
|
19667
19782
|
listMaterials() {
|
|
19668
19783
|
let url_ = this.baseUrl + "/move/materials/list";
|
|
@@ -19858,10 +19973,12 @@ export class MoveMaterialsClient extends AuthorizedApiBase {
|
|
|
19858
19973
|
}
|
|
19859
19974
|
}
|
|
19860
19975
|
export class MoveNotificationsClient extends AuthorizedApiBase {
|
|
19976
|
+
http;
|
|
19977
|
+
baseUrl;
|
|
19861
19978
|
constructor(configuration, baseUrl, http) {
|
|
19862
19979
|
super(configuration);
|
|
19863
19980
|
this.http = http ? http : window;
|
|
19864
|
-
this.baseUrl = baseUrl
|
|
19981
|
+
this.baseUrl = baseUrl ?? "";
|
|
19865
19982
|
}
|
|
19866
19983
|
getNotifications() {
|
|
19867
19984
|
let url_ = this.baseUrl + "/move/notifications";
|
|
@@ -19940,10 +20057,12 @@ export class MoveNotificationsClient extends AuthorizedApiBase {
|
|
|
19940
20057
|
}
|
|
19941
20058
|
}
|
|
19942
20059
|
export class MoveParcelsClient extends AuthorizedApiBase {
|
|
20060
|
+
http;
|
|
20061
|
+
baseUrl;
|
|
19943
20062
|
constructor(configuration, baseUrl, http) {
|
|
19944
20063
|
super(configuration);
|
|
19945
20064
|
this.http = http ? http : window;
|
|
19946
|
-
this.baseUrl = baseUrl
|
|
20065
|
+
this.baseUrl = baseUrl ?? "";
|
|
19947
20066
|
}
|
|
19948
20067
|
searchParcels(input, pageSize) {
|
|
19949
20068
|
let url_ = this.baseUrl + "/move/parcel/search?";
|
|
@@ -20027,10 +20146,12 @@ export class MoveParcelsClient extends AuthorizedApiBase {
|
|
|
20027
20146
|
}
|
|
20028
20147
|
}
|
|
20029
20148
|
export class MoveTrackingClient extends AuthorizedApiBase {
|
|
20149
|
+
http;
|
|
20150
|
+
baseUrl;
|
|
20030
20151
|
constructor(configuration, baseUrl, http) {
|
|
20031
20152
|
super(configuration);
|
|
20032
20153
|
this.http = http ? http : window;
|
|
20033
|
-
this.baseUrl = baseUrl
|
|
20154
|
+
this.baseUrl = baseUrl ?? "";
|
|
20034
20155
|
}
|
|
20035
20156
|
listTrackingHistory(request) {
|
|
20036
20157
|
let url_ = this.baseUrl + "/move/tracking/list";
|
|
@@ -20386,10 +20507,12 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
20386
20507
|
}
|
|
20387
20508
|
}
|
|
20388
20509
|
export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
20510
|
+
http;
|
|
20511
|
+
baseUrl;
|
|
20389
20512
|
constructor(configuration, baseUrl, http) {
|
|
20390
20513
|
super(configuration);
|
|
20391
20514
|
this.http = http ? http : window;
|
|
20392
|
-
this.baseUrl = baseUrl
|
|
20515
|
+
this.baseUrl = baseUrl ?? "";
|
|
20393
20516
|
}
|
|
20394
20517
|
getSettings() {
|
|
20395
20518
|
let url_ = this.baseUrl + "/move/settings/parcelcategories";
|
|
@@ -20635,10 +20758,12 @@ export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
|
20635
20758
|
}
|
|
20636
20759
|
}
|
|
20637
20760
|
export class InventoryClient extends AuthorizedApiBase {
|
|
20761
|
+
http;
|
|
20762
|
+
baseUrl;
|
|
20638
20763
|
constructor(configuration, baseUrl, http) {
|
|
20639
20764
|
super(configuration);
|
|
20640
20765
|
this.http = http ? http : window;
|
|
20641
|
-
this.baseUrl = baseUrl
|
|
20766
|
+
this.baseUrl = baseUrl ?? "";
|
|
20642
20767
|
}
|
|
20643
20768
|
listVendorBatches(request) {
|
|
20644
20769
|
let url_ = this.baseUrl + "/mes/inventory/list-vendor-batches";
|
|
@@ -20681,10 +20806,12 @@ export class InventoryClient extends AuthorizedApiBase {
|
|
|
20681
20806
|
}
|
|
20682
20807
|
}
|
|
20683
20808
|
export class MesClient extends AuthorizedApiBase {
|
|
20809
|
+
http;
|
|
20810
|
+
baseUrl;
|
|
20684
20811
|
constructor(configuration, baseUrl, http) {
|
|
20685
20812
|
super(configuration);
|
|
20686
20813
|
this.http = http ? http : window;
|
|
20687
|
-
this.baseUrl = baseUrl
|
|
20814
|
+
this.baseUrl = baseUrl ?? "";
|
|
20688
20815
|
}
|
|
20689
20816
|
getWorkerDetailsForCurrentUser() {
|
|
20690
20817
|
let url_ = this.baseUrl + "/mes/workers/me";
|
|
@@ -20724,10 +20851,12 @@ export class MesClient extends AuthorizedApiBase {
|
|
|
20724
20851
|
}
|
|
20725
20852
|
}
|
|
20726
20853
|
export class MesDocumentsClient extends AuthorizedApiBase {
|
|
20854
|
+
http;
|
|
20855
|
+
baseUrl;
|
|
20727
20856
|
constructor(configuration, baseUrl, http) {
|
|
20728
20857
|
super(configuration);
|
|
20729
20858
|
this.http = http ? http : window;
|
|
20730
|
-
this.baseUrl = baseUrl
|
|
20859
|
+
this.baseUrl = baseUrl ?? "";
|
|
20731
20860
|
}
|
|
20732
20861
|
getDocument(drawingNumber, id) {
|
|
20733
20862
|
let url_ = this.baseUrl + "/mes/documents/drawings/{drawingNumber}/{id}";
|
|
@@ -20773,10 +20902,12 @@ export class MesDocumentsClient extends AuthorizedApiBase {
|
|
|
20773
20902
|
}
|
|
20774
20903
|
}
|
|
20775
20904
|
export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
|
|
20905
|
+
http;
|
|
20906
|
+
baseUrl;
|
|
20776
20907
|
constructor(configuration, baseUrl, http) {
|
|
20777
20908
|
super(configuration);
|
|
20778
20909
|
this.http = http ? http : window;
|
|
20779
|
-
this.baseUrl = baseUrl
|
|
20910
|
+
this.baseUrl = baseUrl ?? "";
|
|
20780
20911
|
}
|
|
20781
20912
|
getEngineeringChangeOrders(partNumber) {
|
|
20782
20913
|
let url_ = this.baseUrl + "/mes/engineering-change-orders?";
|
|
@@ -20860,10 +20991,12 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
|
|
|
20860
20991
|
}
|
|
20861
20992
|
}
|
|
20862
20993
|
export class MesIndirectActivitiesClient extends AuthorizedApiBase {
|
|
20994
|
+
http;
|
|
20995
|
+
baseUrl;
|
|
20863
20996
|
constructor(configuration, baseUrl, http) {
|
|
20864
20997
|
super(configuration);
|
|
20865
20998
|
this.http = http ? http : window;
|
|
20866
|
-
this.baseUrl = baseUrl
|
|
20999
|
+
this.baseUrl = baseUrl ?? "";
|
|
20867
21000
|
}
|
|
20868
21001
|
listIndirectActivities() {
|
|
20869
21002
|
let url_ = this.baseUrl + "/mes/indirect-activities";
|
|
@@ -20975,10 +21108,12 @@ export class MesIndirectActivitiesClient extends AuthorizedApiBase {
|
|
|
20975
21108
|
}
|
|
20976
21109
|
}
|
|
20977
21110
|
export class MesLinksClient extends AuthorizedApiBase {
|
|
21111
|
+
http;
|
|
21112
|
+
baseUrl;
|
|
20978
21113
|
constructor(configuration, baseUrl, http) {
|
|
20979
21114
|
super(configuration);
|
|
20980
21115
|
this.http = http ? http : window;
|
|
20981
|
-
this.baseUrl = baseUrl
|
|
21116
|
+
this.baseUrl = baseUrl ?? "";
|
|
20982
21117
|
}
|
|
20983
21118
|
addMesLink(request) {
|
|
20984
21119
|
let url_ = this.baseUrl + "/mes/links";
|
|
@@ -21215,10 +21350,12 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
21215
21350
|
}
|
|
21216
21351
|
}
|
|
21217
21352
|
export class MesOrMoveClient extends AuthorizedApiBase {
|
|
21353
|
+
http;
|
|
21354
|
+
baseUrl;
|
|
21218
21355
|
constructor(configuration, baseUrl, http) {
|
|
21219
21356
|
super(configuration);
|
|
21220
21357
|
this.http = http ? http : window;
|
|
21221
|
-
this.baseUrl = baseUrl
|
|
21358
|
+
this.baseUrl = baseUrl ?? "";
|
|
21222
21359
|
}
|
|
21223
21360
|
getPrintableLabels(request) {
|
|
21224
21361
|
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
@@ -21261,10 +21398,12 @@ export class MesOrMoveClient extends AuthorizedApiBase {
|
|
|
21261
21398
|
}
|
|
21262
21399
|
}
|
|
21263
21400
|
export class MesPlannerClient extends AuthorizedApiBase {
|
|
21401
|
+
http;
|
|
21402
|
+
baseUrl;
|
|
21264
21403
|
constructor(configuration, baseUrl, http) {
|
|
21265
21404
|
super(configuration);
|
|
21266
21405
|
this.http = http ? http : window;
|
|
21267
|
-
this.baseUrl = baseUrl
|
|
21406
|
+
this.baseUrl = baseUrl ?? "";
|
|
21268
21407
|
}
|
|
21269
21408
|
getPlan(resourceGroupId) {
|
|
21270
21409
|
let url_ = this.baseUrl + "/mes/planner/plan?";
|
|
@@ -21679,10 +21818,12 @@ export class MesPlannerClient extends AuthorizedApiBase {
|
|
|
21679
21818
|
}
|
|
21680
21819
|
}
|
|
21681
21820
|
export class MesProductionOrderAttachmentClient extends AuthorizedApiBase {
|
|
21821
|
+
http;
|
|
21822
|
+
baseUrl;
|
|
21682
21823
|
constructor(configuration, baseUrl, http) {
|
|
21683
21824
|
super(configuration);
|
|
21684
21825
|
this.http = http ? http : window;
|
|
21685
|
-
this.baseUrl = baseUrl
|
|
21826
|
+
this.baseUrl = baseUrl ?? "";
|
|
21686
21827
|
}
|
|
21687
21828
|
/**
|
|
21688
21829
|
* Upload a new attachment (with or without a file)
|
|
@@ -21913,10 +22054,12 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase {
|
|
|
21913
22054
|
}
|
|
21914
22055
|
}
|
|
21915
22056
|
export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
22057
|
+
http;
|
|
22058
|
+
baseUrl;
|
|
21916
22059
|
constructor(configuration, baseUrl, http) {
|
|
21917
22060
|
super(configuration);
|
|
21918
22061
|
this.http = http ? http : window;
|
|
21919
|
-
this.baseUrl = baseUrl
|
|
22062
|
+
this.baseUrl = baseUrl ?? "";
|
|
21920
22063
|
}
|
|
21921
22064
|
listProductionOrders(request) {
|
|
21922
22065
|
let url_ = this.baseUrl + "/mes/productionorders/list";
|
|
@@ -22328,10 +22471,12 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
22328
22471
|
}
|
|
22329
22472
|
}
|
|
22330
22473
|
export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
22474
|
+
http;
|
|
22475
|
+
baseUrl;
|
|
22331
22476
|
constructor(configuration, baseUrl, http) {
|
|
22332
22477
|
super(configuration);
|
|
22333
22478
|
this.http = http ? http : window;
|
|
22334
|
-
this.baseUrl = baseUrl
|
|
22479
|
+
this.baseUrl = baseUrl ?? "";
|
|
22335
22480
|
}
|
|
22336
22481
|
listProductionScheduleOperations(resourceGroup, resourceId, departmentNumber, pageSize, continuationToken, workOrderId, projectId, partNumber, partName, material, includeDiscussionSummary) {
|
|
22337
22482
|
let url_ = this.baseUrl + "/mes/productionschedule?";
|
|
@@ -22434,45 +22579,6 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
22434
22579
|
}
|
|
22435
22580
|
return Promise.resolve(null);
|
|
22436
22581
|
}
|
|
22437
|
-
postListProductionScheduleOperationsFromPlanner(request) {
|
|
22438
|
-
let url_ = this.baseUrl + "/mes/listproductionschedulefromplanner";
|
|
22439
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22440
|
-
const content_ = JSON.stringify(request);
|
|
22441
|
-
let options_ = {
|
|
22442
|
-
body: content_,
|
|
22443
|
-
method: "POST",
|
|
22444
|
-
headers: {
|
|
22445
|
-
"Content-Type": "application/json",
|
|
22446
|
-
"Accept": "application/json"
|
|
22447
|
-
}
|
|
22448
|
-
};
|
|
22449
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22450
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22451
|
-
}).then((_response) => {
|
|
22452
|
-
return this.processPostListProductionScheduleOperationsFromPlanner(_response);
|
|
22453
|
-
});
|
|
22454
|
-
}
|
|
22455
|
-
processPostListProductionScheduleOperationsFromPlanner(response) {
|
|
22456
|
-
const status = response.status;
|
|
22457
|
-
let _headers = {};
|
|
22458
|
-
if (response.headers && response.headers.forEach) {
|
|
22459
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22460
|
-
}
|
|
22461
|
-
;
|
|
22462
|
-
if (status === 200) {
|
|
22463
|
-
return response.text().then((_responseText) => {
|
|
22464
|
-
let result200 = null;
|
|
22465
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22466
|
-
return result200;
|
|
22467
|
-
});
|
|
22468
|
-
}
|
|
22469
|
-
else if (status !== 200 && status !== 204) {
|
|
22470
|
-
return response.text().then((_responseText) => {
|
|
22471
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22472
|
-
});
|
|
22473
|
-
}
|
|
22474
|
-
return Promise.resolve(null);
|
|
22475
|
-
}
|
|
22476
22582
|
getAvailableProductionScheduleFilters(request) {
|
|
22477
22583
|
let url_ = this.baseUrl + "/mes/productionschedulefilters";
|
|
22478
22584
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -22662,10 +22768,12 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
22662
22768
|
}
|
|
22663
22769
|
}
|
|
22664
22770
|
export class MesProjectsClient extends AuthorizedApiBase {
|
|
22771
|
+
http;
|
|
22772
|
+
baseUrl;
|
|
22665
22773
|
constructor(configuration, baseUrl, http) {
|
|
22666
22774
|
super(configuration);
|
|
22667
22775
|
this.http = http ? http : window;
|
|
22668
|
-
this.baseUrl = baseUrl
|
|
22776
|
+
this.baseUrl = baseUrl ?? "";
|
|
22669
22777
|
}
|
|
22670
22778
|
listProjects(request) {
|
|
22671
22779
|
let url_ = this.baseUrl + "/mes/projects";
|
|
@@ -22747,10 +22855,12 @@ export class MesProjectsClient extends AuthorizedApiBase {
|
|
|
22747
22855
|
}
|
|
22748
22856
|
}
|
|
22749
22857
|
export class MesPurchaseOrderClient extends AuthorizedApiBase {
|
|
22858
|
+
http;
|
|
22859
|
+
baseUrl;
|
|
22750
22860
|
constructor(configuration, baseUrl, http) {
|
|
22751
22861
|
super(configuration);
|
|
22752
22862
|
this.http = http ? http : window;
|
|
22753
|
-
this.baseUrl = baseUrl
|
|
22863
|
+
this.baseUrl = baseUrl ?? "";
|
|
22754
22864
|
}
|
|
22755
22865
|
getPurchaseOrderDetails(purchaseOrderNumber, productionOrderNumber) {
|
|
22756
22866
|
let url_ = this.baseUrl + "/mes/purchase-orders/{purchaseOrderNumber}?";
|
|
@@ -22797,10 +22907,12 @@ export class MesPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
22797
22907
|
}
|
|
22798
22908
|
}
|
|
22799
22909
|
export class MesResourceClient extends AuthorizedApiBase {
|
|
22910
|
+
http;
|
|
22911
|
+
baseUrl;
|
|
22800
22912
|
constructor(configuration, baseUrl, http) {
|
|
22801
22913
|
super(configuration);
|
|
22802
22914
|
this.http = http ? http : window;
|
|
22803
|
-
this.baseUrl = baseUrl
|
|
22915
|
+
this.baseUrl = baseUrl ?? "";
|
|
22804
22916
|
}
|
|
22805
22917
|
listResourceGroups(includeResources) {
|
|
22806
22918
|
let url_ = this.baseUrl + "/mes/resourcegroups?";
|
|
@@ -22958,10 +23070,12 @@ export class MesResourceClient extends AuthorizedApiBase {
|
|
|
22958
23070
|
}
|
|
22959
23071
|
}
|
|
22960
23072
|
export class ElectricalClient extends AuthorizedApiBase {
|
|
23073
|
+
http;
|
|
23074
|
+
baseUrl;
|
|
22961
23075
|
constructor(configuration, baseUrl, http) {
|
|
22962
23076
|
super(configuration);
|
|
22963
23077
|
this.http = http ? http : window;
|
|
22964
|
-
this.baseUrl = baseUrl
|
|
23078
|
+
this.baseUrl = baseUrl ?? "";
|
|
22965
23079
|
}
|
|
22966
23080
|
listElectricalSourceTypes() {
|
|
22967
23081
|
let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
|
|
@@ -23114,10 +23228,12 @@ export class ElectricalClient extends AuthorizedApiBase {
|
|
|
23114
23228
|
}
|
|
23115
23229
|
}
|
|
23116
23230
|
export class WeldingClient extends AuthorizedApiBase {
|
|
23231
|
+
http;
|
|
23232
|
+
baseUrl;
|
|
23117
23233
|
constructor(configuration, baseUrl, http) {
|
|
23118
23234
|
super(configuration);
|
|
23119
23235
|
this.http = http ? http : window;
|
|
23120
|
-
this.baseUrl = baseUrl
|
|
23236
|
+
this.baseUrl = baseUrl ?? "";
|
|
23121
23237
|
}
|
|
23122
23238
|
listWeldingSourceTypes() {
|
|
23123
23239
|
let url_ = this.baseUrl + "/iot/welding/sourcetypes";
|
|
@@ -23270,10 +23386,12 @@ export class WeldingClient extends AuthorizedApiBase {
|
|
|
23270
23386
|
}
|
|
23271
23387
|
}
|
|
23272
23388
|
export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
23389
|
+
http;
|
|
23390
|
+
baseUrl;
|
|
23273
23391
|
constructor(configuration, baseUrl, http) {
|
|
23274
23392
|
super(configuration);
|
|
23275
23393
|
this.http = http ? http : window;
|
|
23276
|
-
this.baseUrl = baseUrl
|
|
23394
|
+
this.baseUrl = baseUrl ?? "";
|
|
23277
23395
|
}
|
|
23278
23396
|
createMaterialCertificateTypes(payload) {
|
|
23279
23397
|
let url_ = this.baseUrl + "/inspect/match/certificate-types";
|
|
@@ -23523,10 +23641,12 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
23523
23641
|
}
|
|
23524
23642
|
}
|
|
23525
23643
|
export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
23644
|
+
http;
|
|
23645
|
+
baseUrl;
|
|
23526
23646
|
constructor(configuration, baseUrl, http) {
|
|
23527
23647
|
super(configuration);
|
|
23528
23648
|
this.http = http ? http : window;
|
|
23529
|
-
this.baseUrl = baseUrl
|
|
23649
|
+
this.baseUrl = baseUrl ?? "";
|
|
23530
23650
|
}
|
|
23531
23651
|
getMaterialCertificateTypes(id, version) {
|
|
23532
23652
|
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
@@ -23607,10 +23727,12 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
23607
23727
|
}
|
|
23608
23728
|
}
|
|
23609
23729
|
export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
|
|
23730
|
+
http;
|
|
23731
|
+
baseUrl;
|
|
23610
23732
|
constructor(configuration, baseUrl, http) {
|
|
23611
23733
|
super(configuration);
|
|
23612
23734
|
this.http = http ? http : window;
|
|
23613
|
-
this.baseUrl = baseUrl
|
|
23735
|
+
this.baseUrl = baseUrl ?? "";
|
|
23614
23736
|
}
|
|
23615
23737
|
updateMaterialCheckOverrides(id, request) {
|
|
23616
23738
|
let url_ = this.baseUrl + "/inspect/match/material-checks/override/{id}";
|
|
@@ -23776,10 +23898,12 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
|
|
|
23776
23898
|
}
|
|
23777
23899
|
}
|
|
23778
23900
|
export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
23901
|
+
http;
|
|
23902
|
+
baseUrl;
|
|
23779
23903
|
constructor(configuration, baseUrl, http) {
|
|
23780
23904
|
super(configuration);
|
|
23781
23905
|
this.http = http ? http : window;
|
|
23782
|
-
this.baseUrl = baseUrl
|
|
23906
|
+
this.baseUrl = baseUrl ?? "";
|
|
23783
23907
|
}
|
|
23784
23908
|
getMaterialCheck(id) {
|
|
23785
23909
|
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}";
|
|
@@ -23975,10 +24099,12 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
23975
24099
|
}
|
|
23976
24100
|
}
|
|
23977
24101
|
export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
24102
|
+
http;
|
|
24103
|
+
baseUrl;
|
|
23978
24104
|
constructor(configuration, baseUrl, http) {
|
|
23979
24105
|
super(configuration);
|
|
23980
24106
|
this.http = http ? http : window;
|
|
23981
|
-
this.baseUrl = baseUrl
|
|
24107
|
+
this.baseUrl = baseUrl ?? "";
|
|
23982
24108
|
}
|
|
23983
24109
|
searchPurchaseOrders(input) {
|
|
23984
24110
|
let url_ = this.baseUrl + "/inspect/match/purchase-order/search?";
|
|
@@ -24103,10 +24229,12 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
24103
24229
|
}
|
|
24104
24230
|
}
|
|
24105
24231
|
export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
24232
|
+
http;
|
|
24233
|
+
baseUrl;
|
|
24106
24234
|
constructor(configuration, baseUrl, http) {
|
|
24107
24235
|
super(configuration);
|
|
24108
24236
|
this.http = http ? http : window;
|
|
24109
|
-
this.baseUrl = baseUrl
|
|
24237
|
+
this.baseUrl = baseUrl ?? "";
|
|
24110
24238
|
}
|
|
24111
24239
|
getSettings() {
|
|
24112
24240
|
let url_ = this.baseUrl + "/inspect/match/settings";
|
|
@@ -24185,10 +24313,12 @@ export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
|
24185
24313
|
}
|
|
24186
24314
|
}
|
|
24187
24315
|
export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
24316
|
+
http;
|
|
24317
|
+
baseUrl;
|
|
24188
24318
|
constructor(configuration, baseUrl, http) {
|
|
24189
24319
|
super(configuration);
|
|
24190
24320
|
this.http = http ? http : window;
|
|
24191
|
-
this.baseUrl = baseUrl
|
|
24321
|
+
this.baseUrl = baseUrl ?? "";
|
|
24192
24322
|
}
|
|
24193
24323
|
createSpecification(createRequestDto) {
|
|
24194
24324
|
let url_ = this.baseUrl + "/inspect/match/specifications";
|
|
@@ -24438,10 +24568,12 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
|
24438
24568
|
}
|
|
24439
24569
|
}
|
|
24440
24570
|
export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
24571
|
+
http;
|
|
24572
|
+
baseUrl;
|
|
24441
24573
|
constructor(configuration, baseUrl, http) {
|
|
24442
24574
|
super(configuration);
|
|
24443
24575
|
this.http = http ? http : window;
|
|
24444
|
-
this.baseUrl = baseUrl
|
|
24576
|
+
this.baseUrl = baseUrl ?? "";
|
|
24445
24577
|
}
|
|
24446
24578
|
getSpecification(id, version) {
|
|
24447
24579
|
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
@@ -24521,11 +24653,335 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
24521
24653
|
return Promise.resolve(null);
|
|
24522
24654
|
}
|
|
24523
24655
|
}
|
|
24656
|
+
export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
24657
|
+
http;
|
|
24658
|
+
baseUrl;
|
|
24659
|
+
constructor(configuration, baseUrl, http) {
|
|
24660
|
+
super(configuration);
|
|
24661
|
+
this.http = http ? http : window;
|
|
24662
|
+
this.baseUrl = baseUrl ?? "";
|
|
24663
|
+
}
|
|
24664
|
+
getSchemaCreatorState(schemaVersionId) {
|
|
24665
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24666
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24667
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24668
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24669
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24670
|
+
let options_ = {
|
|
24671
|
+
method: "GET",
|
|
24672
|
+
headers: {
|
|
24673
|
+
"Accept": "application/json"
|
|
24674
|
+
}
|
|
24675
|
+
};
|
|
24676
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24677
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24678
|
+
}).then((_response) => {
|
|
24679
|
+
return this.processGetSchemaCreatorState(_response);
|
|
24680
|
+
});
|
|
24681
|
+
}
|
|
24682
|
+
processGetSchemaCreatorState(response) {
|
|
24683
|
+
const status = response.status;
|
|
24684
|
+
let _headers = {};
|
|
24685
|
+
if (response.headers && response.headers.forEach) {
|
|
24686
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24687
|
+
}
|
|
24688
|
+
;
|
|
24689
|
+
if (status === 200) {
|
|
24690
|
+
return response.text().then((_responseText) => {
|
|
24691
|
+
let result200 = null;
|
|
24692
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24693
|
+
return result200;
|
|
24694
|
+
});
|
|
24695
|
+
}
|
|
24696
|
+
else if (status !== 200 && status !== 204) {
|
|
24697
|
+
return response.text().then((_responseText) => {
|
|
24698
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24699
|
+
});
|
|
24700
|
+
}
|
|
24701
|
+
return Promise.resolve(null);
|
|
24702
|
+
}
|
|
24703
|
+
/**
|
|
24704
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24705
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
24706
|
+
*/
|
|
24707
|
+
createSchemaCreatorState(schemaVersionId, state) {
|
|
24708
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24709
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24710
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24711
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24712
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24713
|
+
const content_ = JSON.stringify(state);
|
|
24714
|
+
let options_ = {
|
|
24715
|
+
body: content_,
|
|
24716
|
+
method: "POST",
|
|
24717
|
+
headers: {
|
|
24718
|
+
"Content-Type": "application/json",
|
|
24719
|
+
"Accept": "application/json"
|
|
24720
|
+
}
|
|
24721
|
+
};
|
|
24722
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24723
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24724
|
+
}).then((_response) => {
|
|
24725
|
+
return this.processCreateSchemaCreatorState(_response);
|
|
24726
|
+
});
|
|
24727
|
+
}
|
|
24728
|
+
processCreateSchemaCreatorState(response) {
|
|
24729
|
+
const status = response.status;
|
|
24730
|
+
let _headers = {};
|
|
24731
|
+
if (response.headers && response.headers.forEach) {
|
|
24732
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24733
|
+
}
|
|
24734
|
+
;
|
|
24735
|
+
if (status === 201) {
|
|
24736
|
+
return response.text().then((_responseText) => {
|
|
24737
|
+
let result201 = null;
|
|
24738
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24739
|
+
return result201;
|
|
24740
|
+
});
|
|
24741
|
+
}
|
|
24742
|
+
else if (status === 409) {
|
|
24743
|
+
return response.text().then((_responseText) => {
|
|
24744
|
+
let result409 = null;
|
|
24745
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24746
|
+
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
24747
|
+
});
|
|
24748
|
+
}
|
|
24749
|
+
else if (status !== 200 && status !== 204) {
|
|
24750
|
+
return response.text().then((_responseText) => {
|
|
24751
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24752
|
+
});
|
|
24753
|
+
}
|
|
24754
|
+
return Promise.resolve(null);
|
|
24755
|
+
}
|
|
24756
|
+
updateSchemaCreatorState(schemaVersionId, state) {
|
|
24757
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24758
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24759
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24760
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24761
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24762
|
+
const content_ = JSON.stringify(state);
|
|
24763
|
+
let options_ = {
|
|
24764
|
+
body: content_,
|
|
24765
|
+
method: "PUT",
|
|
24766
|
+
headers: {
|
|
24767
|
+
"Content-Type": "application/json",
|
|
24768
|
+
"Accept": "application/json"
|
|
24769
|
+
}
|
|
24770
|
+
};
|
|
24771
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24772
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24773
|
+
}).then((_response) => {
|
|
24774
|
+
return this.processUpdateSchemaCreatorState(_response);
|
|
24775
|
+
});
|
|
24776
|
+
}
|
|
24777
|
+
processUpdateSchemaCreatorState(response) {
|
|
24778
|
+
const status = response.status;
|
|
24779
|
+
let _headers = {};
|
|
24780
|
+
if (response.headers && response.headers.forEach) {
|
|
24781
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24782
|
+
}
|
|
24783
|
+
;
|
|
24784
|
+
if (status === 200) {
|
|
24785
|
+
return response.text().then((_responseText) => {
|
|
24786
|
+
let result200 = null;
|
|
24787
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24788
|
+
return result200;
|
|
24789
|
+
});
|
|
24790
|
+
}
|
|
24791
|
+
else if (status !== 200 && status !== 204) {
|
|
24792
|
+
return response.text().then((_responseText) => {
|
|
24793
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24794
|
+
});
|
|
24795
|
+
}
|
|
24796
|
+
return Promise.resolve(null);
|
|
24797
|
+
}
|
|
24798
|
+
/**
|
|
24799
|
+
* Geometry only (no values), derived from the schema's retained
|
|
24800
|
+
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
24801
|
+
drawing positions. Throws BadRequest if the schema has no such XML +
|
|
24802
|
+
drawing to derive it from.
|
|
24803
|
+
*/
|
|
24804
|
+
getSchemaCreatorXmlGeometry(schemaVersionId) {
|
|
24805
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/xml-geometry";
|
|
24806
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24807
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24808
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24809
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24810
|
+
let options_ = {
|
|
24811
|
+
method: "GET",
|
|
24812
|
+
headers: {
|
|
24813
|
+
"Accept": "application/json"
|
|
24814
|
+
}
|
|
24815
|
+
};
|
|
24816
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24817
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24818
|
+
}).then((_response) => {
|
|
24819
|
+
return this.processGetSchemaCreatorXmlGeometry(_response);
|
|
24820
|
+
});
|
|
24821
|
+
}
|
|
24822
|
+
processGetSchemaCreatorXmlGeometry(response) {
|
|
24823
|
+
const status = response.status;
|
|
24824
|
+
let _headers = {};
|
|
24825
|
+
if (response.headers && response.headers.forEach) {
|
|
24826
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24827
|
+
}
|
|
24828
|
+
;
|
|
24829
|
+
if (status === 200) {
|
|
24830
|
+
return response.text().then((_responseText) => {
|
|
24831
|
+
let result200 = null;
|
|
24832
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24833
|
+
return result200;
|
|
24834
|
+
});
|
|
24835
|
+
}
|
|
24836
|
+
else if (status !== 200 && status !== 204) {
|
|
24837
|
+
return response.text().then((_responseText) => {
|
|
24838
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24839
|
+
});
|
|
24840
|
+
}
|
|
24841
|
+
return Promise.resolve(null);
|
|
24842
|
+
}
|
|
24843
|
+
/**
|
|
24844
|
+
* Starts a full drawing AI parse: clears every element and locks the
|
|
24845
|
+
schema for every viewer until it completes. If one is already in
|
|
24846
|
+
progress, returns that instead of starting a second one.
|
|
24847
|
+
*/
|
|
24848
|
+
requestSchemaCreatorDocumentParse(schemaVersionId) {
|
|
24849
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document";
|
|
24850
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24851
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24852
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24853
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24854
|
+
let options_ = {
|
|
24855
|
+
method: "POST",
|
|
24856
|
+
headers: {
|
|
24857
|
+
"Accept": "application/json"
|
|
24858
|
+
}
|
|
24859
|
+
};
|
|
24860
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24861
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24862
|
+
}).then((_response) => {
|
|
24863
|
+
return this.processRequestSchemaCreatorDocumentParse(_response);
|
|
24864
|
+
});
|
|
24865
|
+
}
|
|
24866
|
+
processRequestSchemaCreatorDocumentParse(response) {
|
|
24867
|
+
const status = response.status;
|
|
24868
|
+
let _headers = {};
|
|
24869
|
+
if (response.headers && response.headers.forEach) {
|
|
24870
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24871
|
+
}
|
|
24872
|
+
;
|
|
24873
|
+
if (status === 200) {
|
|
24874
|
+
return response.text().then((_responseText) => {
|
|
24875
|
+
let result200 = null;
|
|
24876
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24877
|
+
return result200;
|
|
24878
|
+
});
|
|
24879
|
+
}
|
|
24880
|
+
else if (status !== 200 && status !== 204) {
|
|
24881
|
+
return response.text().then((_responseText) => {
|
|
24882
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24883
|
+
});
|
|
24884
|
+
}
|
|
24885
|
+
return Promise.resolve(null);
|
|
24886
|
+
}
|
|
24887
|
+
/**
|
|
24888
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
24889
|
+
returns a temporary download link.
|
|
24890
|
+
*/
|
|
24891
|
+
exportSchemaCreatorDrawing(schemaVersionId) {
|
|
24892
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/download";
|
|
24893
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24894
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24895
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24896
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24897
|
+
let options_ = {
|
|
24898
|
+
method: "POST",
|
|
24899
|
+
headers: {
|
|
24900
|
+
"Accept": "application/json"
|
|
24901
|
+
}
|
|
24902
|
+
};
|
|
24903
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24904
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24905
|
+
}).then((_response) => {
|
|
24906
|
+
return this.processExportSchemaCreatorDrawing(_response);
|
|
24907
|
+
});
|
|
24908
|
+
}
|
|
24909
|
+
processExportSchemaCreatorDrawing(response) {
|
|
24910
|
+
const status = response.status;
|
|
24911
|
+
let _headers = {};
|
|
24912
|
+
if (response.headers && response.headers.forEach) {
|
|
24913
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24914
|
+
}
|
|
24915
|
+
;
|
|
24916
|
+
if (status === 200) {
|
|
24917
|
+
return response.text().then((_responseText) => {
|
|
24918
|
+
let result200 = null;
|
|
24919
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24920
|
+
return result200;
|
|
24921
|
+
});
|
|
24922
|
+
}
|
|
24923
|
+
else if (status !== 200 && status !== 204) {
|
|
24924
|
+
return response.text().then((_responseText) => {
|
|
24925
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24926
|
+
});
|
|
24927
|
+
}
|
|
24928
|
+
return Promise.resolve(null);
|
|
24929
|
+
}
|
|
24930
|
+
/**
|
|
24931
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
24932
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
24933
|
+
* @param image (optional)
|
|
24934
|
+
*/
|
|
24935
|
+
requestSchemaCreatorSnipParse(schemaVersionId, elementId, image) {
|
|
24936
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
|
|
24937
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24938
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24939
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24940
|
+
if (elementId === undefined || elementId === null)
|
|
24941
|
+
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
24942
|
+
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
24943
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24944
|
+
const content_ = new FormData();
|
|
24945
|
+
if (image !== null && image !== undefined)
|
|
24946
|
+
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
24947
|
+
let options_ = {
|
|
24948
|
+
body: content_,
|
|
24949
|
+
method: "POST",
|
|
24950
|
+
headers: {}
|
|
24951
|
+
};
|
|
24952
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24953
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24954
|
+
}).then((_response) => {
|
|
24955
|
+
return this.processRequestSchemaCreatorSnipParse(_response);
|
|
24956
|
+
});
|
|
24957
|
+
}
|
|
24958
|
+
processRequestSchemaCreatorSnipParse(response) {
|
|
24959
|
+
const status = response.status;
|
|
24960
|
+
let _headers = {};
|
|
24961
|
+
if (response.headers && response.headers.forEach) {
|
|
24962
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24963
|
+
}
|
|
24964
|
+
;
|
|
24965
|
+
if (status === 200) {
|
|
24966
|
+
return response.text().then((_responseText) => {
|
|
24967
|
+
return;
|
|
24968
|
+
});
|
|
24969
|
+
}
|
|
24970
|
+
else if (status !== 200 && status !== 204) {
|
|
24971
|
+
return response.text().then((_responseText) => {
|
|
24972
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24973
|
+
});
|
|
24974
|
+
}
|
|
24975
|
+
return Promise.resolve(null);
|
|
24976
|
+
}
|
|
24977
|
+
}
|
|
24524
24978
|
export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
24979
|
+
http;
|
|
24980
|
+
baseUrl;
|
|
24525
24981
|
constructor(configuration, baseUrl, http) {
|
|
24526
24982
|
super(configuration);
|
|
24527
24983
|
this.http = http ? http : window;
|
|
24528
|
-
this.baseUrl = baseUrl
|
|
24984
|
+
this.baseUrl = baseUrl ?? "";
|
|
24529
24985
|
}
|
|
24530
24986
|
getArchivedMeasurementFormSchema(id) {
|
|
24531
24987
|
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
@@ -24934,6 +25390,51 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
24934
25390
|
}
|
|
24935
25391
|
return Promise.resolve(null);
|
|
24936
25392
|
}
|
|
25393
|
+
uploadSchemaMarkedDrawing(id, request) {
|
|
25394
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
|
|
25395
|
+
if (id === undefined || id === null)
|
|
25396
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25397
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25398
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25399
|
+
const content_ = JSON.stringify(request);
|
|
25400
|
+
let options_ = {
|
|
25401
|
+
body: content_,
|
|
25402
|
+
method: "POST",
|
|
25403
|
+
headers: {
|
|
25404
|
+
"Content-Type": "application/json",
|
|
25405
|
+
"Accept": "application/json"
|
|
25406
|
+
}
|
|
25407
|
+
};
|
|
25408
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25409
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25410
|
+
}).then((_response) => {
|
|
25411
|
+
return this.processUploadSchemaMarkedDrawing(_response);
|
|
25412
|
+
});
|
|
25413
|
+
}
|
|
25414
|
+
processUploadSchemaMarkedDrawing(response) {
|
|
25415
|
+
const status = response.status;
|
|
25416
|
+
let _headers = {};
|
|
25417
|
+
if (response.headers && response.headers.forEach) {
|
|
25418
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25419
|
+
}
|
|
25420
|
+
;
|
|
25421
|
+
if (status === 200) {
|
|
25422
|
+
return response.text().then((_responseText) => {
|
|
25423
|
+
let result200 = null;
|
|
25424
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25425
|
+
return result200;
|
|
25426
|
+
});
|
|
25427
|
+
}
|
|
25428
|
+
else if (status !== 200 && status !== 204) {
|
|
25429
|
+
return response.text().then((_responseText) => {
|
|
25430
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25431
|
+
});
|
|
25432
|
+
}
|
|
25433
|
+
return Promise.resolve(null);
|
|
25434
|
+
}
|
|
25435
|
+
/**
|
|
25436
|
+
* @deprecated
|
|
25437
|
+
*/
|
|
24937
25438
|
uploadSchemaDrawing(id, request) {
|
|
24938
25439
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
24939
25440
|
if (id === undefined || id === null)
|
|
@@ -26630,10 +27131,12 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
26630
27131
|
}
|
|
26631
27132
|
}
|
|
26632
27133
|
export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
27134
|
+
http;
|
|
27135
|
+
baseUrl;
|
|
26633
27136
|
constructor(configuration, baseUrl, http) {
|
|
26634
27137
|
super(configuration);
|
|
26635
27138
|
this.http = http ? http : window;
|
|
26636
|
-
this.baseUrl = baseUrl
|
|
27139
|
+
this.baseUrl = baseUrl ?? "";
|
|
26637
27140
|
}
|
|
26638
27141
|
getMeasurementFormSchema(id) {
|
|
26639
27142
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
@@ -26751,10 +27254,12 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
26751
27254
|
}
|
|
26752
27255
|
}
|
|
26753
27256
|
export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
27257
|
+
http;
|
|
27258
|
+
baseUrl;
|
|
26754
27259
|
constructor(configuration, baseUrl, http) {
|
|
26755
27260
|
super(configuration);
|
|
26756
27261
|
this.http = http ? http : window;
|
|
26757
|
-
this.baseUrl = baseUrl
|
|
27262
|
+
this.baseUrl = baseUrl ?? "";
|
|
26758
27263
|
}
|
|
26759
27264
|
getMeasurementFormSettings() {
|
|
26760
27265
|
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
@@ -26911,10 +27416,12 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
|
26911
27416
|
}
|
|
26912
27417
|
}
|
|
26913
27418
|
export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
27419
|
+
http;
|
|
27420
|
+
baseUrl;
|
|
26914
27421
|
constructor(configuration, baseUrl, http) {
|
|
26915
27422
|
super(configuration);
|
|
26916
27423
|
this.http = http ? http : window;
|
|
26917
|
-
this.baseUrl = baseUrl
|
|
27424
|
+
this.baseUrl = baseUrl ?? "";
|
|
26918
27425
|
}
|
|
26919
27426
|
approveMeasurementFormInstance(id) {
|
|
26920
27427
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
|
|
@@ -27035,10 +27542,12 @@ export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
|
27035
27542
|
}
|
|
27036
27543
|
}
|
|
27037
27544
|
export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
27545
|
+
http;
|
|
27546
|
+
baseUrl;
|
|
27038
27547
|
constructor(configuration, baseUrl, http) {
|
|
27039
27548
|
super(configuration);
|
|
27040
27549
|
this.http = http ? http : window;
|
|
27041
|
-
this.baseUrl = baseUrl
|
|
27550
|
+
this.baseUrl = baseUrl ?? "";
|
|
27042
27551
|
}
|
|
27043
27552
|
listMeasurementForms(pageSize, search, continuationToken, tenantId, inactive, includeInactiveSupplierAccess) {
|
|
27044
27553
|
let url_ = this.baseUrl + "/measurementforms/instances?";
|
|
@@ -27337,6 +27846,50 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27337
27846
|
}
|
|
27338
27847
|
return Promise.resolve(null);
|
|
27339
27848
|
}
|
|
27849
|
+
getMeasurementFormInstanceSchemaCreatorState(id, schemaId, tenantId) {
|
|
27850
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
|
|
27851
|
+
if (id === undefined || id === null)
|
|
27852
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27853
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27854
|
+
if (schemaId === undefined || schemaId === null)
|
|
27855
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
27856
|
+
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
27857
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
27858
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
27859
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27860
|
+
let options_ = {
|
|
27861
|
+
method: "GET",
|
|
27862
|
+
headers: {
|
|
27863
|
+
"Accept": "application/json"
|
|
27864
|
+
}
|
|
27865
|
+
};
|
|
27866
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27867
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27868
|
+
}).then((_response) => {
|
|
27869
|
+
return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
|
|
27870
|
+
});
|
|
27871
|
+
}
|
|
27872
|
+
processGetMeasurementFormInstanceSchemaCreatorState(response) {
|
|
27873
|
+
const status = response.status;
|
|
27874
|
+
let _headers = {};
|
|
27875
|
+
if (response.headers && response.headers.forEach) {
|
|
27876
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27877
|
+
}
|
|
27878
|
+
;
|
|
27879
|
+
if (status === 200) {
|
|
27880
|
+
return response.text().then((_responseText) => {
|
|
27881
|
+
let result200 = null;
|
|
27882
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27883
|
+
return result200;
|
|
27884
|
+
});
|
|
27885
|
+
}
|
|
27886
|
+
else if (status !== 200 && status !== 204) {
|
|
27887
|
+
return response.text().then((_responseText) => {
|
|
27888
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27889
|
+
});
|
|
27890
|
+
}
|
|
27891
|
+
return Promise.resolve(null);
|
|
27892
|
+
}
|
|
27340
27893
|
getWorkorderMeasurementFormProgress(id, tenantId) {
|
|
27341
27894
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
27342
27895
|
if (id === undefined || id === null)
|
|
@@ -27933,10 +28486,12 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27933
28486
|
}
|
|
27934
28487
|
}
|
|
27935
28488
|
export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiBase {
|
|
28489
|
+
http;
|
|
28490
|
+
baseUrl;
|
|
27936
28491
|
constructor(configuration, baseUrl, http) {
|
|
27937
28492
|
super(configuration);
|
|
27938
28493
|
this.http = http ? http : window;
|
|
27939
|
-
this.baseUrl = baseUrl
|
|
28494
|
+
this.baseUrl = baseUrl ?? "";
|
|
27940
28495
|
}
|
|
27941
28496
|
createMeasurementFormInstance(id) {
|
|
27942
28497
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
@@ -28311,10 +28866,12 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
28311
28866
|
}
|
|
28312
28867
|
}
|
|
28313
28868
|
export class CompaniesClient extends AuthorizedApiBase {
|
|
28869
|
+
http;
|
|
28870
|
+
baseUrl;
|
|
28314
28871
|
constructor(configuration, baseUrl, http) {
|
|
28315
28872
|
super(configuration);
|
|
28316
28873
|
this.http = http ? http : window;
|
|
28317
|
-
this.baseUrl = baseUrl
|
|
28874
|
+
this.baseUrl = baseUrl ?? "";
|
|
28318
28875
|
}
|
|
28319
28876
|
listProductionCompanies() {
|
|
28320
28877
|
let url_ = this.baseUrl + "/erp/companies";
|
|
@@ -28393,10 +28950,12 @@ export class CompaniesClient extends AuthorizedApiBase {
|
|
|
28393
28950
|
}
|
|
28394
28951
|
}
|
|
28395
28952
|
export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
28953
|
+
http;
|
|
28954
|
+
baseUrl;
|
|
28396
28955
|
constructor(configuration, baseUrl, http) {
|
|
28397
28956
|
super(configuration);
|
|
28398
28957
|
this.http = http ? http : window;
|
|
28399
|
-
this.baseUrl = baseUrl
|
|
28958
|
+
this.baseUrl = baseUrl ?? "";
|
|
28400
28959
|
}
|
|
28401
28960
|
/**
|
|
28402
28961
|
* Upsert a customer order
|
|
@@ -28668,10 +29227,12 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
28668
29227
|
}
|
|
28669
29228
|
}
|
|
28670
29229
|
export class ErpUsersClient extends AuthorizedApiBase {
|
|
29230
|
+
http;
|
|
29231
|
+
baseUrl;
|
|
28671
29232
|
constructor(configuration, baseUrl, http) {
|
|
28672
29233
|
super(configuration);
|
|
28673
29234
|
this.http = http ? http : window;
|
|
28674
|
-
this.baseUrl = baseUrl
|
|
29235
|
+
this.baseUrl = baseUrl ?? "";
|
|
28675
29236
|
}
|
|
28676
29237
|
listUsers(request) {
|
|
28677
29238
|
let url_ = this.baseUrl + "/erp/users/list";
|
|
@@ -28714,10 +29275,12 @@ export class ErpUsersClient extends AuthorizedApiBase {
|
|
|
28714
29275
|
}
|
|
28715
29276
|
}
|
|
28716
29277
|
export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
29278
|
+
http;
|
|
29279
|
+
baseUrl;
|
|
28717
29280
|
constructor(configuration, baseUrl, http) {
|
|
28718
29281
|
super(configuration);
|
|
28719
29282
|
this.http = http ? http : window;
|
|
28720
|
-
this.baseUrl = baseUrl
|
|
29283
|
+
this.baseUrl = baseUrl ?? "";
|
|
28721
29284
|
}
|
|
28722
29285
|
listProductionPools() {
|
|
28723
29286
|
let url_ = this.baseUrl + "/erp/productionpools";
|
|
@@ -28793,10 +29356,12 @@ export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
|
28793
29356
|
}
|
|
28794
29357
|
}
|
|
28795
29358
|
export class WorkordersClient extends AuthorizedApiBase {
|
|
29359
|
+
http;
|
|
29360
|
+
baseUrl;
|
|
28796
29361
|
constructor(configuration, baseUrl, http) {
|
|
28797
29362
|
super(configuration);
|
|
28798
29363
|
this.http = http ? http : window;
|
|
28799
|
-
this.baseUrl = baseUrl
|
|
29364
|
+
this.baseUrl = baseUrl ?? "";
|
|
28800
29365
|
}
|
|
28801
29366
|
/**
|
|
28802
29367
|
* Create or update a workorder.
|
|
@@ -30108,15 +30673,20 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
30108
30673
|
}
|
|
30109
30674
|
}
|
|
30110
30675
|
export class ApiException extends Error {
|
|
30676
|
+
message;
|
|
30677
|
+
status;
|
|
30678
|
+
response;
|
|
30679
|
+
headers;
|
|
30680
|
+
result;
|
|
30111
30681
|
constructor(message, status, response, headers, result) {
|
|
30112
30682
|
super();
|
|
30113
|
-
this.isApiException = true;
|
|
30114
30683
|
this.message = message;
|
|
30115
30684
|
this.status = status;
|
|
30116
30685
|
this.response = response;
|
|
30117
30686
|
this.headers = headers;
|
|
30118
30687
|
this.result = result;
|
|
30119
30688
|
}
|
|
30689
|
+
isApiException = true;
|
|
30120
30690
|
static isApiException(obj) {
|
|
30121
30691
|
return obj.isApiException === true;
|
|
30122
30692
|
}
|