@ignos/api-client 20260914.278.1-alpha → 20260917.279.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AuthorizedApiBase.js +28 -27
- package/lib/ignosportal-api.d.ts +229 -24
- package/lib/ignosportal-api.js +772 -163
- package/package.json +2 -2
- package/src/ignosportal-api.ts +655 -66
- 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?";
|
|
@@ -22434,45 +22618,6 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
22434
22618
|
}
|
|
22435
22619
|
return Promise.resolve(null);
|
|
22436
22620
|
}
|
|
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
22621
|
getAvailableProductionScheduleFilters(request) {
|
|
22477
22622
|
let url_ = this.baseUrl + "/mes/productionschedulefilters";
|
|
22478
22623
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -22662,10 +22807,12 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
22662
22807
|
}
|
|
22663
22808
|
}
|
|
22664
22809
|
export class MesProjectsClient extends AuthorizedApiBase {
|
|
22810
|
+
http;
|
|
22811
|
+
baseUrl;
|
|
22665
22812
|
constructor(configuration, baseUrl, http) {
|
|
22666
22813
|
super(configuration);
|
|
22667
22814
|
this.http = http ? http : window;
|
|
22668
|
-
this.baseUrl = baseUrl
|
|
22815
|
+
this.baseUrl = baseUrl ?? "";
|
|
22669
22816
|
}
|
|
22670
22817
|
listProjects(request) {
|
|
22671
22818
|
let url_ = this.baseUrl + "/mes/projects";
|
|
@@ -22747,10 +22894,12 @@ export class MesProjectsClient extends AuthorizedApiBase {
|
|
|
22747
22894
|
}
|
|
22748
22895
|
}
|
|
22749
22896
|
export class MesPurchaseOrderClient extends AuthorizedApiBase {
|
|
22897
|
+
http;
|
|
22898
|
+
baseUrl;
|
|
22750
22899
|
constructor(configuration, baseUrl, http) {
|
|
22751
22900
|
super(configuration);
|
|
22752
22901
|
this.http = http ? http : window;
|
|
22753
|
-
this.baseUrl = baseUrl
|
|
22902
|
+
this.baseUrl = baseUrl ?? "";
|
|
22754
22903
|
}
|
|
22755
22904
|
getPurchaseOrderDetails(purchaseOrderNumber, productionOrderNumber) {
|
|
22756
22905
|
let url_ = this.baseUrl + "/mes/purchase-orders/{purchaseOrderNumber}?";
|
|
@@ -22797,10 +22946,12 @@ export class MesPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
22797
22946
|
}
|
|
22798
22947
|
}
|
|
22799
22948
|
export class MesResourceClient extends AuthorizedApiBase {
|
|
22949
|
+
http;
|
|
22950
|
+
baseUrl;
|
|
22800
22951
|
constructor(configuration, baseUrl, http) {
|
|
22801
22952
|
super(configuration);
|
|
22802
22953
|
this.http = http ? http : window;
|
|
22803
|
-
this.baseUrl = baseUrl
|
|
22954
|
+
this.baseUrl = baseUrl ?? "";
|
|
22804
22955
|
}
|
|
22805
22956
|
listResourceGroups(includeResources) {
|
|
22806
22957
|
let url_ = this.baseUrl + "/mes/resourcegroups?";
|
|
@@ -22958,10 +23109,12 @@ export class MesResourceClient extends AuthorizedApiBase {
|
|
|
22958
23109
|
}
|
|
22959
23110
|
}
|
|
22960
23111
|
export class ElectricalClient extends AuthorizedApiBase {
|
|
23112
|
+
http;
|
|
23113
|
+
baseUrl;
|
|
22961
23114
|
constructor(configuration, baseUrl, http) {
|
|
22962
23115
|
super(configuration);
|
|
22963
23116
|
this.http = http ? http : window;
|
|
22964
|
-
this.baseUrl = baseUrl
|
|
23117
|
+
this.baseUrl = baseUrl ?? "";
|
|
22965
23118
|
}
|
|
22966
23119
|
listElectricalSourceTypes() {
|
|
22967
23120
|
let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
|
|
@@ -23114,10 +23267,12 @@ export class ElectricalClient extends AuthorizedApiBase {
|
|
|
23114
23267
|
}
|
|
23115
23268
|
}
|
|
23116
23269
|
export class WeldingClient extends AuthorizedApiBase {
|
|
23270
|
+
http;
|
|
23271
|
+
baseUrl;
|
|
23117
23272
|
constructor(configuration, baseUrl, http) {
|
|
23118
23273
|
super(configuration);
|
|
23119
23274
|
this.http = http ? http : window;
|
|
23120
|
-
this.baseUrl = baseUrl
|
|
23275
|
+
this.baseUrl = baseUrl ?? "";
|
|
23121
23276
|
}
|
|
23122
23277
|
listWeldingSourceTypes() {
|
|
23123
23278
|
let url_ = this.baseUrl + "/iot/welding/sourcetypes";
|
|
@@ -23270,10 +23425,12 @@ export class WeldingClient extends AuthorizedApiBase {
|
|
|
23270
23425
|
}
|
|
23271
23426
|
}
|
|
23272
23427
|
export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
23428
|
+
http;
|
|
23429
|
+
baseUrl;
|
|
23273
23430
|
constructor(configuration, baseUrl, http) {
|
|
23274
23431
|
super(configuration);
|
|
23275
23432
|
this.http = http ? http : window;
|
|
23276
|
-
this.baseUrl = baseUrl
|
|
23433
|
+
this.baseUrl = baseUrl ?? "";
|
|
23277
23434
|
}
|
|
23278
23435
|
createMaterialCertificateTypes(payload) {
|
|
23279
23436
|
let url_ = this.baseUrl + "/inspect/match/certificate-types";
|
|
@@ -23523,10 +23680,12 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
23523
23680
|
}
|
|
23524
23681
|
}
|
|
23525
23682
|
export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
23683
|
+
http;
|
|
23684
|
+
baseUrl;
|
|
23526
23685
|
constructor(configuration, baseUrl, http) {
|
|
23527
23686
|
super(configuration);
|
|
23528
23687
|
this.http = http ? http : window;
|
|
23529
|
-
this.baseUrl = baseUrl
|
|
23688
|
+
this.baseUrl = baseUrl ?? "";
|
|
23530
23689
|
}
|
|
23531
23690
|
getMaterialCertificateTypes(id, version) {
|
|
23532
23691
|
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
@@ -23607,10 +23766,12 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
23607
23766
|
}
|
|
23608
23767
|
}
|
|
23609
23768
|
export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
|
|
23769
|
+
http;
|
|
23770
|
+
baseUrl;
|
|
23610
23771
|
constructor(configuration, baseUrl, http) {
|
|
23611
23772
|
super(configuration);
|
|
23612
23773
|
this.http = http ? http : window;
|
|
23613
|
-
this.baseUrl = baseUrl
|
|
23774
|
+
this.baseUrl = baseUrl ?? "";
|
|
23614
23775
|
}
|
|
23615
23776
|
updateMaterialCheckOverrides(id, request) {
|
|
23616
23777
|
let url_ = this.baseUrl + "/inspect/match/material-checks/override/{id}";
|
|
@@ -23776,10 +23937,12 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
|
|
|
23776
23937
|
}
|
|
23777
23938
|
}
|
|
23778
23939
|
export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
23940
|
+
http;
|
|
23941
|
+
baseUrl;
|
|
23779
23942
|
constructor(configuration, baseUrl, http) {
|
|
23780
23943
|
super(configuration);
|
|
23781
23944
|
this.http = http ? http : window;
|
|
23782
|
-
this.baseUrl = baseUrl
|
|
23945
|
+
this.baseUrl = baseUrl ?? "";
|
|
23783
23946
|
}
|
|
23784
23947
|
getMaterialCheck(id) {
|
|
23785
23948
|
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}";
|
|
@@ -23975,10 +24138,12 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
23975
24138
|
}
|
|
23976
24139
|
}
|
|
23977
24140
|
export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
24141
|
+
http;
|
|
24142
|
+
baseUrl;
|
|
23978
24143
|
constructor(configuration, baseUrl, http) {
|
|
23979
24144
|
super(configuration);
|
|
23980
24145
|
this.http = http ? http : window;
|
|
23981
|
-
this.baseUrl = baseUrl
|
|
24146
|
+
this.baseUrl = baseUrl ?? "";
|
|
23982
24147
|
}
|
|
23983
24148
|
searchPurchaseOrders(input) {
|
|
23984
24149
|
let url_ = this.baseUrl + "/inspect/match/purchase-order/search?";
|
|
@@ -24103,10 +24268,12 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
24103
24268
|
}
|
|
24104
24269
|
}
|
|
24105
24270
|
export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
24271
|
+
http;
|
|
24272
|
+
baseUrl;
|
|
24106
24273
|
constructor(configuration, baseUrl, http) {
|
|
24107
24274
|
super(configuration);
|
|
24108
24275
|
this.http = http ? http : window;
|
|
24109
|
-
this.baseUrl = baseUrl
|
|
24276
|
+
this.baseUrl = baseUrl ?? "";
|
|
24110
24277
|
}
|
|
24111
24278
|
getSettings() {
|
|
24112
24279
|
let url_ = this.baseUrl + "/inspect/match/settings";
|
|
@@ -24185,10 +24352,12 @@ export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
|
24185
24352
|
}
|
|
24186
24353
|
}
|
|
24187
24354
|
export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
24355
|
+
http;
|
|
24356
|
+
baseUrl;
|
|
24188
24357
|
constructor(configuration, baseUrl, http) {
|
|
24189
24358
|
super(configuration);
|
|
24190
24359
|
this.http = http ? http : window;
|
|
24191
|
-
this.baseUrl = baseUrl
|
|
24360
|
+
this.baseUrl = baseUrl ?? "";
|
|
24192
24361
|
}
|
|
24193
24362
|
createSpecification(createRequestDto) {
|
|
24194
24363
|
let url_ = this.baseUrl + "/inspect/match/specifications";
|
|
@@ -24438,10 +24607,12 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
|
24438
24607
|
}
|
|
24439
24608
|
}
|
|
24440
24609
|
export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
24610
|
+
http;
|
|
24611
|
+
baseUrl;
|
|
24441
24612
|
constructor(configuration, baseUrl, http) {
|
|
24442
24613
|
super(configuration);
|
|
24443
24614
|
this.http = http ? http : window;
|
|
24444
|
-
this.baseUrl = baseUrl
|
|
24615
|
+
this.baseUrl = baseUrl ?? "";
|
|
24445
24616
|
}
|
|
24446
24617
|
getSpecification(id, version) {
|
|
24447
24618
|
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
@@ -24521,11 +24692,335 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
24521
24692
|
return Promise.resolve(null);
|
|
24522
24693
|
}
|
|
24523
24694
|
}
|
|
24695
|
+
export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
24696
|
+
http;
|
|
24697
|
+
baseUrl;
|
|
24698
|
+
constructor(configuration, baseUrl, http) {
|
|
24699
|
+
super(configuration);
|
|
24700
|
+
this.http = http ? http : window;
|
|
24701
|
+
this.baseUrl = baseUrl ?? "";
|
|
24702
|
+
}
|
|
24703
|
+
getSchemaCreatorState(schemaVersionId) {
|
|
24704
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24705
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24706
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24707
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24708
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24709
|
+
let options_ = {
|
|
24710
|
+
method: "GET",
|
|
24711
|
+
headers: {
|
|
24712
|
+
"Accept": "application/json"
|
|
24713
|
+
}
|
|
24714
|
+
};
|
|
24715
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24716
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24717
|
+
}).then((_response) => {
|
|
24718
|
+
return this.processGetSchemaCreatorState(_response);
|
|
24719
|
+
});
|
|
24720
|
+
}
|
|
24721
|
+
processGetSchemaCreatorState(response) {
|
|
24722
|
+
const status = response.status;
|
|
24723
|
+
let _headers = {};
|
|
24724
|
+
if (response.headers && response.headers.forEach) {
|
|
24725
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24726
|
+
}
|
|
24727
|
+
;
|
|
24728
|
+
if (status === 200) {
|
|
24729
|
+
return response.text().then((_responseText) => {
|
|
24730
|
+
let result200 = null;
|
|
24731
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24732
|
+
return result200;
|
|
24733
|
+
});
|
|
24734
|
+
}
|
|
24735
|
+
else if (status !== 200 && status !== 204) {
|
|
24736
|
+
return response.text().then((_responseText) => {
|
|
24737
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24738
|
+
});
|
|
24739
|
+
}
|
|
24740
|
+
return Promise.resolve(null);
|
|
24741
|
+
}
|
|
24742
|
+
/**
|
|
24743
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24744
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
24745
|
+
*/
|
|
24746
|
+
createSchemaCreatorState(schemaVersionId, state) {
|
|
24747
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24748
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24749
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24750
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24751
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24752
|
+
const content_ = JSON.stringify(state);
|
|
24753
|
+
let options_ = {
|
|
24754
|
+
body: content_,
|
|
24755
|
+
method: "POST",
|
|
24756
|
+
headers: {
|
|
24757
|
+
"Content-Type": "application/json",
|
|
24758
|
+
"Accept": "application/json"
|
|
24759
|
+
}
|
|
24760
|
+
};
|
|
24761
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24762
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24763
|
+
}).then((_response) => {
|
|
24764
|
+
return this.processCreateSchemaCreatorState(_response);
|
|
24765
|
+
});
|
|
24766
|
+
}
|
|
24767
|
+
processCreateSchemaCreatorState(response) {
|
|
24768
|
+
const status = response.status;
|
|
24769
|
+
let _headers = {};
|
|
24770
|
+
if (response.headers && response.headers.forEach) {
|
|
24771
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24772
|
+
}
|
|
24773
|
+
;
|
|
24774
|
+
if (status === 201) {
|
|
24775
|
+
return response.text().then((_responseText) => {
|
|
24776
|
+
let result201 = null;
|
|
24777
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24778
|
+
return result201;
|
|
24779
|
+
});
|
|
24780
|
+
}
|
|
24781
|
+
else if (status === 409) {
|
|
24782
|
+
return response.text().then((_responseText) => {
|
|
24783
|
+
let result409 = null;
|
|
24784
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24785
|
+
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
24786
|
+
});
|
|
24787
|
+
}
|
|
24788
|
+
else if (status !== 200 && status !== 204) {
|
|
24789
|
+
return response.text().then((_responseText) => {
|
|
24790
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24791
|
+
});
|
|
24792
|
+
}
|
|
24793
|
+
return Promise.resolve(null);
|
|
24794
|
+
}
|
|
24795
|
+
updateSchemaCreatorState(schemaVersionId, state) {
|
|
24796
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24797
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24798
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24799
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24800
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24801
|
+
const content_ = JSON.stringify(state);
|
|
24802
|
+
let options_ = {
|
|
24803
|
+
body: content_,
|
|
24804
|
+
method: "PUT",
|
|
24805
|
+
headers: {
|
|
24806
|
+
"Content-Type": "application/json",
|
|
24807
|
+
"Accept": "application/json"
|
|
24808
|
+
}
|
|
24809
|
+
};
|
|
24810
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24811
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24812
|
+
}).then((_response) => {
|
|
24813
|
+
return this.processUpdateSchemaCreatorState(_response);
|
|
24814
|
+
});
|
|
24815
|
+
}
|
|
24816
|
+
processUpdateSchemaCreatorState(response) {
|
|
24817
|
+
const status = response.status;
|
|
24818
|
+
let _headers = {};
|
|
24819
|
+
if (response.headers && response.headers.forEach) {
|
|
24820
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24821
|
+
}
|
|
24822
|
+
;
|
|
24823
|
+
if (status === 200) {
|
|
24824
|
+
return response.text().then((_responseText) => {
|
|
24825
|
+
let result200 = null;
|
|
24826
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24827
|
+
return result200;
|
|
24828
|
+
});
|
|
24829
|
+
}
|
|
24830
|
+
else if (status !== 200 && status !== 204) {
|
|
24831
|
+
return response.text().then((_responseText) => {
|
|
24832
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24833
|
+
});
|
|
24834
|
+
}
|
|
24835
|
+
return Promise.resolve(null);
|
|
24836
|
+
}
|
|
24837
|
+
/**
|
|
24838
|
+
* Geometry only (no values), derived from the schema's retained
|
|
24839
|
+
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
24840
|
+
drawing positions. Throws BadRequest if the schema has no such XML +
|
|
24841
|
+
drawing to derive it from.
|
|
24842
|
+
*/
|
|
24843
|
+
getSchemaCreatorXmlGeometry(schemaVersionId) {
|
|
24844
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/xml-geometry";
|
|
24845
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24846
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24847
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24848
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24849
|
+
let options_ = {
|
|
24850
|
+
method: "GET",
|
|
24851
|
+
headers: {
|
|
24852
|
+
"Accept": "application/json"
|
|
24853
|
+
}
|
|
24854
|
+
};
|
|
24855
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24856
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24857
|
+
}).then((_response) => {
|
|
24858
|
+
return this.processGetSchemaCreatorXmlGeometry(_response);
|
|
24859
|
+
});
|
|
24860
|
+
}
|
|
24861
|
+
processGetSchemaCreatorXmlGeometry(response) {
|
|
24862
|
+
const status = response.status;
|
|
24863
|
+
let _headers = {};
|
|
24864
|
+
if (response.headers && response.headers.forEach) {
|
|
24865
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24866
|
+
}
|
|
24867
|
+
;
|
|
24868
|
+
if (status === 200) {
|
|
24869
|
+
return response.text().then((_responseText) => {
|
|
24870
|
+
let result200 = null;
|
|
24871
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24872
|
+
return result200;
|
|
24873
|
+
});
|
|
24874
|
+
}
|
|
24875
|
+
else if (status !== 200 && status !== 204) {
|
|
24876
|
+
return response.text().then((_responseText) => {
|
|
24877
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24878
|
+
});
|
|
24879
|
+
}
|
|
24880
|
+
return Promise.resolve(null);
|
|
24881
|
+
}
|
|
24882
|
+
/**
|
|
24883
|
+
* Starts a full drawing AI parse: clears every element and locks the
|
|
24884
|
+
schema for every viewer until it completes. If one is already in
|
|
24885
|
+
progress, returns that instead of starting a second one.
|
|
24886
|
+
*/
|
|
24887
|
+
requestSchemaCreatorDocumentParse(schemaVersionId) {
|
|
24888
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document";
|
|
24889
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24890
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24891
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24892
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24893
|
+
let options_ = {
|
|
24894
|
+
method: "POST",
|
|
24895
|
+
headers: {
|
|
24896
|
+
"Accept": "application/json"
|
|
24897
|
+
}
|
|
24898
|
+
};
|
|
24899
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24900
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24901
|
+
}).then((_response) => {
|
|
24902
|
+
return this.processRequestSchemaCreatorDocumentParse(_response);
|
|
24903
|
+
});
|
|
24904
|
+
}
|
|
24905
|
+
processRequestSchemaCreatorDocumentParse(response) {
|
|
24906
|
+
const status = response.status;
|
|
24907
|
+
let _headers = {};
|
|
24908
|
+
if (response.headers && response.headers.forEach) {
|
|
24909
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24910
|
+
}
|
|
24911
|
+
;
|
|
24912
|
+
if (status === 200) {
|
|
24913
|
+
return response.text().then((_responseText) => {
|
|
24914
|
+
let result200 = null;
|
|
24915
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24916
|
+
return result200;
|
|
24917
|
+
});
|
|
24918
|
+
}
|
|
24919
|
+
else if (status !== 200 && status !== 204) {
|
|
24920
|
+
return response.text().then((_responseText) => {
|
|
24921
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24922
|
+
});
|
|
24923
|
+
}
|
|
24924
|
+
return Promise.resolve(null);
|
|
24925
|
+
}
|
|
24926
|
+
/**
|
|
24927
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
24928
|
+
returns a temporary download link.
|
|
24929
|
+
*/
|
|
24930
|
+
exportSchemaCreatorDrawing(schemaVersionId) {
|
|
24931
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/download";
|
|
24932
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24933
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24934
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24935
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24936
|
+
let options_ = {
|
|
24937
|
+
method: "POST",
|
|
24938
|
+
headers: {
|
|
24939
|
+
"Accept": "application/json"
|
|
24940
|
+
}
|
|
24941
|
+
};
|
|
24942
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24943
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24944
|
+
}).then((_response) => {
|
|
24945
|
+
return this.processExportSchemaCreatorDrawing(_response);
|
|
24946
|
+
});
|
|
24947
|
+
}
|
|
24948
|
+
processExportSchemaCreatorDrawing(response) {
|
|
24949
|
+
const status = response.status;
|
|
24950
|
+
let _headers = {};
|
|
24951
|
+
if (response.headers && response.headers.forEach) {
|
|
24952
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24953
|
+
}
|
|
24954
|
+
;
|
|
24955
|
+
if (status === 200) {
|
|
24956
|
+
return response.text().then((_responseText) => {
|
|
24957
|
+
let result200 = null;
|
|
24958
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24959
|
+
return result200;
|
|
24960
|
+
});
|
|
24961
|
+
}
|
|
24962
|
+
else if (status !== 200 && status !== 204) {
|
|
24963
|
+
return response.text().then((_responseText) => {
|
|
24964
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24965
|
+
});
|
|
24966
|
+
}
|
|
24967
|
+
return Promise.resolve(null);
|
|
24968
|
+
}
|
|
24969
|
+
/**
|
|
24970
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
24971
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
24972
|
+
* @param image (optional)
|
|
24973
|
+
*/
|
|
24974
|
+
requestSchemaCreatorSnipParse(schemaVersionId, elementId, image) {
|
|
24975
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
|
|
24976
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24977
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24978
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24979
|
+
if (elementId === undefined || elementId === null)
|
|
24980
|
+
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
24981
|
+
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
24982
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24983
|
+
const content_ = new FormData();
|
|
24984
|
+
if (image !== null && image !== undefined)
|
|
24985
|
+
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
24986
|
+
let options_ = {
|
|
24987
|
+
body: content_,
|
|
24988
|
+
method: "POST",
|
|
24989
|
+
headers: {}
|
|
24990
|
+
};
|
|
24991
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24992
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24993
|
+
}).then((_response) => {
|
|
24994
|
+
return this.processRequestSchemaCreatorSnipParse(_response);
|
|
24995
|
+
});
|
|
24996
|
+
}
|
|
24997
|
+
processRequestSchemaCreatorSnipParse(response) {
|
|
24998
|
+
const status = response.status;
|
|
24999
|
+
let _headers = {};
|
|
25000
|
+
if (response.headers && response.headers.forEach) {
|
|
25001
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25002
|
+
}
|
|
25003
|
+
;
|
|
25004
|
+
if (status === 200) {
|
|
25005
|
+
return response.text().then((_responseText) => {
|
|
25006
|
+
return;
|
|
25007
|
+
});
|
|
25008
|
+
}
|
|
25009
|
+
else if (status !== 200 && status !== 204) {
|
|
25010
|
+
return response.text().then((_responseText) => {
|
|
25011
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25012
|
+
});
|
|
25013
|
+
}
|
|
25014
|
+
return Promise.resolve(null);
|
|
25015
|
+
}
|
|
25016
|
+
}
|
|
24524
25017
|
export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
25018
|
+
http;
|
|
25019
|
+
baseUrl;
|
|
24525
25020
|
constructor(configuration, baseUrl, http) {
|
|
24526
25021
|
super(configuration);
|
|
24527
25022
|
this.http = http ? http : window;
|
|
24528
|
-
this.baseUrl = baseUrl
|
|
25023
|
+
this.baseUrl = baseUrl ?? "";
|
|
24529
25024
|
}
|
|
24530
25025
|
getArchivedMeasurementFormSchema(id) {
|
|
24531
25026
|
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
@@ -24934,6 +25429,51 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
24934
25429
|
}
|
|
24935
25430
|
return Promise.resolve(null);
|
|
24936
25431
|
}
|
|
25432
|
+
uploadSchemaMarkedDrawing(id, request) {
|
|
25433
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
|
|
25434
|
+
if (id === undefined || id === null)
|
|
25435
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25436
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25437
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25438
|
+
const content_ = JSON.stringify(request);
|
|
25439
|
+
let options_ = {
|
|
25440
|
+
body: content_,
|
|
25441
|
+
method: "POST",
|
|
25442
|
+
headers: {
|
|
25443
|
+
"Content-Type": "application/json",
|
|
25444
|
+
"Accept": "application/json"
|
|
25445
|
+
}
|
|
25446
|
+
};
|
|
25447
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25448
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25449
|
+
}).then((_response) => {
|
|
25450
|
+
return this.processUploadSchemaMarkedDrawing(_response);
|
|
25451
|
+
});
|
|
25452
|
+
}
|
|
25453
|
+
processUploadSchemaMarkedDrawing(response) {
|
|
25454
|
+
const status = response.status;
|
|
25455
|
+
let _headers = {};
|
|
25456
|
+
if (response.headers && response.headers.forEach) {
|
|
25457
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25458
|
+
}
|
|
25459
|
+
;
|
|
25460
|
+
if (status === 200) {
|
|
25461
|
+
return response.text().then((_responseText) => {
|
|
25462
|
+
let result200 = null;
|
|
25463
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25464
|
+
return result200;
|
|
25465
|
+
});
|
|
25466
|
+
}
|
|
25467
|
+
else if (status !== 200 && status !== 204) {
|
|
25468
|
+
return response.text().then((_responseText) => {
|
|
25469
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25470
|
+
});
|
|
25471
|
+
}
|
|
25472
|
+
return Promise.resolve(null);
|
|
25473
|
+
}
|
|
25474
|
+
/**
|
|
25475
|
+
* @deprecated
|
|
25476
|
+
*/
|
|
24937
25477
|
uploadSchemaDrawing(id, request) {
|
|
24938
25478
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
24939
25479
|
if (id === undefined || id === null)
|
|
@@ -26630,10 +27170,12 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
26630
27170
|
}
|
|
26631
27171
|
}
|
|
26632
27172
|
export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
27173
|
+
http;
|
|
27174
|
+
baseUrl;
|
|
26633
27175
|
constructor(configuration, baseUrl, http) {
|
|
26634
27176
|
super(configuration);
|
|
26635
27177
|
this.http = http ? http : window;
|
|
26636
|
-
this.baseUrl = baseUrl
|
|
27178
|
+
this.baseUrl = baseUrl ?? "";
|
|
26637
27179
|
}
|
|
26638
27180
|
getMeasurementFormSchema(id) {
|
|
26639
27181
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
@@ -26751,10 +27293,12 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
26751
27293
|
}
|
|
26752
27294
|
}
|
|
26753
27295
|
export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
27296
|
+
http;
|
|
27297
|
+
baseUrl;
|
|
26754
27298
|
constructor(configuration, baseUrl, http) {
|
|
26755
27299
|
super(configuration);
|
|
26756
27300
|
this.http = http ? http : window;
|
|
26757
|
-
this.baseUrl = baseUrl
|
|
27301
|
+
this.baseUrl = baseUrl ?? "";
|
|
26758
27302
|
}
|
|
26759
27303
|
getMeasurementFormSettings() {
|
|
26760
27304
|
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
@@ -26911,10 +27455,12 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
|
26911
27455
|
}
|
|
26912
27456
|
}
|
|
26913
27457
|
export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
27458
|
+
http;
|
|
27459
|
+
baseUrl;
|
|
26914
27460
|
constructor(configuration, baseUrl, http) {
|
|
26915
27461
|
super(configuration);
|
|
26916
27462
|
this.http = http ? http : window;
|
|
26917
|
-
this.baseUrl = baseUrl
|
|
27463
|
+
this.baseUrl = baseUrl ?? "";
|
|
26918
27464
|
}
|
|
26919
27465
|
approveMeasurementFormInstance(id) {
|
|
26920
27466
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
|
|
@@ -27035,10 +27581,12 @@ export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
|
27035
27581
|
}
|
|
27036
27582
|
}
|
|
27037
27583
|
export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
27584
|
+
http;
|
|
27585
|
+
baseUrl;
|
|
27038
27586
|
constructor(configuration, baseUrl, http) {
|
|
27039
27587
|
super(configuration);
|
|
27040
27588
|
this.http = http ? http : window;
|
|
27041
|
-
this.baseUrl = baseUrl
|
|
27589
|
+
this.baseUrl = baseUrl ?? "";
|
|
27042
27590
|
}
|
|
27043
27591
|
listMeasurementForms(pageSize, search, continuationToken, tenantId, inactive, includeInactiveSupplierAccess) {
|
|
27044
27592
|
let url_ = this.baseUrl + "/measurementforms/instances?";
|
|
@@ -27337,6 +27885,50 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27337
27885
|
}
|
|
27338
27886
|
return Promise.resolve(null);
|
|
27339
27887
|
}
|
|
27888
|
+
getMeasurementFormInstanceSchemaCreatorState(id, schemaId, tenantId) {
|
|
27889
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
|
|
27890
|
+
if (id === undefined || id === null)
|
|
27891
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27892
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27893
|
+
if (schemaId === undefined || schemaId === null)
|
|
27894
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
27895
|
+
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
27896
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
27897
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
27898
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27899
|
+
let options_ = {
|
|
27900
|
+
method: "GET",
|
|
27901
|
+
headers: {
|
|
27902
|
+
"Accept": "application/json"
|
|
27903
|
+
}
|
|
27904
|
+
};
|
|
27905
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27906
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27907
|
+
}).then((_response) => {
|
|
27908
|
+
return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
|
|
27909
|
+
});
|
|
27910
|
+
}
|
|
27911
|
+
processGetMeasurementFormInstanceSchemaCreatorState(response) {
|
|
27912
|
+
const status = response.status;
|
|
27913
|
+
let _headers = {};
|
|
27914
|
+
if (response.headers && response.headers.forEach) {
|
|
27915
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27916
|
+
}
|
|
27917
|
+
;
|
|
27918
|
+
if (status === 200) {
|
|
27919
|
+
return response.text().then((_responseText) => {
|
|
27920
|
+
let result200 = null;
|
|
27921
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27922
|
+
return result200;
|
|
27923
|
+
});
|
|
27924
|
+
}
|
|
27925
|
+
else if (status !== 200 && status !== 204) {
|
|
27926
|
+
return response.text().then((_responseText) => {
|
|
27927
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27928
|
+
});
|
|
27929
|
+
}
|
|
27930
|
+
return Promise.resolve(null);
|
|
27931
|
+
}
|
|
27340
27932
|
getWorkorderMeasurementFormProgress(id, tenantId) {
|
|
27341
27933
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
27342
27934
|
if (id === undefined || id === null)
|
|
@@ -27933,10 +28525,12 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27933
28525
|
}
|
|
27934
28526
|
}
|
|
27935
28527
|
export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiBase {
|
|
28528
|
+
http;
|
|
28529
|
+
baseUrl;
|
|
27936
28530
|
constructor(configuration, baseUrl, http) {
|
|
27937
28531
|
super(configuration);
|
|
27938
28532
|
this.http = http ? http : window;
|
|
27939
|
-
this.baseUrl = baseUrl
|
|
28533
|
+
this.baseUrl = baseUrl ?? "";
|
|
27940
28534
|
}
|
|
27941
28535
|
createMeasurementFormInstance(id) {
|
|
27942
28536
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
@@ -28311,10 +28905,12 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
28311
28905
|
}
|
|
28312
28906
|
}
|
|
28313
28907
|
export class CompaniesClient extends AuthorizedApiBase {
|
|
28908
|
+
http;
|
|
28909
|
+
baseUrl;
|
|
28314
28910
|
constructor(configuration, baseUrl, http) {
|
|
28315
28911
|
super(configuration);
|
|
28316
28912
|
this.http = http ? http : window;
|
|
28317
|
-
this.baseUrl = baseUrl
|
|
28913
|
+
this.baseUrl = baseUrl ?? "";
|
|
28318
28914
|
}
|
|
28319
28915
|
listProductionCompanies() {
|
|
28320
28916
|
let url_ = this.baseUrl + "/erp/companies";
|
|
@@ -28393,10 +28989,12 @@ export class CompaniesClient extends AuthorizedApiBase {
|
|
|
28393
28989
|
}
|
|
28394
28990
|
}
|
|
28395
28991
|
export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
28992
|
+
http;
|
|
28993
|
+
baseUrl;
|
|
28396
28994
|
constructor(configuration, baseUrl, http) {
|
|
28397
28995
|
super(configuration);
|
|
28398
28996
|
this.http = http ? http : window;
|
|
28399
|
-
this.baseUrl = baseUrl
|
|
28997
|
+
this.baseUrl = baseUrl ?? "";
|
|
28400
28998
|
}
|
|
28401
28999
|
/**
|
|
28402
29000
|
* Upsert a customer order
|
|
@@ -28668,10 +29266,12 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
28668
29266
|
}
|
|
28669
29267
|
}
|
|
28670
29268
|
export class ErpUsersClient extends AuthorizedApiBase {
|
|
29269
|
+
http;
|
|
29270
|
+
baseUrl;
|
|
28671
29271
|
constructor(configuration, baseUrl, http) {
|
|
28672
29272
|
super(configuration);
|
|
28673
29273
|
this.http = http ? http : window;
|
|
28674
|
-
this.baseUrl = baseUrl
|
|
29274
|
+
this.baseUrl = baseUrl ?? "";
|
|
28675
29275
|
}
|
|
28676
29276
|
listUsers(request) {
|
|
28677
29277
|
let url_ = this.baseUrl + "/erp/users/list";
|
|
@@ -28714,10 +29314,12 @@ export class ErpUsersClient extends AuthorizedApiBase {
|
|
|
28714
29314
|
}
|
|
28715
29315
|
}
|
|
28716
29316
|
export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
29317
|
+
http;
|
|
29318
|
+
baseUrl;
|
|
28717
29319
|
constructor(configuration, baseUrl, http) {
|
|
28718
29320
|
super(configuration);
|
|
28719
29321
|
this.http = http ? http : window;
|
|
28720
|
-
this.baseUrl = baseUrl
|
|
29322
|
+
this.baseUrl = baseUrl ?? "";
|
|
28721
29323
|
}
|
|
28722
29324
|
listProductionPools() {
|
|
28723
29325
|
let url_ = this.baseUrl + "/erp/productionpools";
|
|
@@ -28793,10 +29395,12 @@ export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
|
28793
29395
|
}
|
|
28794
29396
|
}
|
|
28795
29397
|
export class WorkordersClient extends AuthorizedApiBase {
|
|
29398
|
+
http;
|
|
29399
|
+
baseUrl;
|
|
28796
29400
|
constructor(configuration, baseUrl, http) {
|
|
28797
29401
|
super(configuration);
|
|
28798
29402
|
this.http = http ? http : window;
|
|
28799
|
-
this.baseUrl = baseUrl
|
|
29403
|
+
this.baseUrl = baseUrl ?? "";
|
|
28800
29404
|
}
|
|
28801
29405
|
/**
|
|
28802
29406
|
* Create or update a workorder.
|
|
@@ -30108,15 +30712,20 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
30108
30712
|
}
|
|
30109
30713
|
}
|
|
30110
30714
|
export class ApiException extends Error {
|
|
30715
|
+
message;
|
|
30716
|
+
status;
|
|
30717
|
+
response;
|
|
30718
|
+
headers;
|
|
30719
|
+
result;
|
|
30111
30720
|
constructor(message, status, response, headers, result) {
|
|
30112
30721
|
super();
|
|
30113
|
-
this.isApiException = true;
|
|
30114
30722
|
this.message = message;
|
|
30115
30723
|
this.status = status;
|
|
30116
30724
|
this.response = response;
|
|
30117
30725
|
this.headers = headers;
|
|
30118
30726
|
this.result = result;
|
|
30119
30727
|
}
|
|
30728
|
+
isApiException = true;
|
|
30120
30729
|
static isApiException(obj) {
|
|
30121
30730
|
return obj.isApiException === true;
|
|
30122
30731
|
}
|