@ignos/api-client 20260918.280.1 → 20260921.282.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 +27 -28
- package/lib/ignosportal-api.d.ts +25 -229
- package/lib/ignosportal-api.js +163 -772
- package/package.json +2 -2
- package/src/ignosportal-api.ts +67 -655
- package/tsconfig.json +2 -3
package/lib/ignosportal-api.js
CHANGED
|
@@ -6,45 +6,42 @@
|
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
// ReSharper disable InconsistentNaming
|
|
8
8
|
export class AuthorizedApiBase {
|
|
9
|
-
config;
|
|
10
9
|
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
|
+
};
|
|
11
37
|
this.config = config;
|
|
12
38
|
}
|
|
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
|
-
};
|
|
40
39
|
}
|
|
41
40
|
export class AzureRegionsClient extends AuthorizedApiBase {
|
|
42
|
-
http;
|
|
43
|
-
baseUrl;
|
|
44
41
|
constructor(configuration, baseUrl, http) {
|
|
45
42
|
super(configuration);
|
|
46
43
|
this.http = http ? http : window;
|
|
47
|
-
this.baseUrl = baseUrl
|
|
44
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
48
45
|
}
|
|
49
46
|
listAzureRegions() {
|
|
50
47
|
let url_ = this.baseUrl + "/azureregions";
|
|
@@ -84,12 +81,10 @@ export class AzureRegionsClient extends AuthorizedApiBase {
|
|
|
84
81
|
}
|
|
85
82
|
}
|
|
86
83
|
export class CountriesClient extends AuthorizedApiBase {
|
|
87
|
-
http;
|
|
88
|
-
baseUrl;
|
|
89
84
|
constructor(configuration, baseUrl, http) {
|
|
90
85
|
super(configuration);
|
|
91
86
|
this.http = http ? http : window;
|
|
92
|
-
this.baseUrl = baseUrl
|
|
87
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
93
88
|
}
|
|
94
89
|
listCountries() {
|
|
95
90
|
let url_ = this.baseUrl + "/countries";
|
|
@@ -129,12 +124,10 @@ export class CountriesClient extends AuthorizedApiBase {
|
|
|
129
124
|
}
|
|
130
125
|
}
|
|
131
126
|
export class CustomersClient extends AuthorizedApiBase {
|
|
132
|
-
http;
|
|
133
|
-
baseUrl;
|
|
134
127
|
constructor(configuration, baseUrl, http) {
|
|
135
128
|
super(configuration);
|
|
136
129
|
this.http = http ? http : window;
|
|
137
|
-
this.baseUrl = baseUrl
|
|
130
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
138
131
|
}
|
|
139
132
|
getCurrentCustomer() {
|
|
140
133
|
let url_ = this.baseUrl + "/customers";
|
|
@@ -537,12 +530,10 @@ export class CustomersClient extends AuthorizedApiBase {
|
|
|
537
530
|
}
|
|
538
531
|
}
|
|
539
532
|
export class GuestsClient extends AuthorizedApiBase {
|
|
540
|
-
http;
|
|
541
|
-
baseUrl;
|
|
542
533
|
constructor(configuration, baseUrl, http) {
|
|
543
534
|
super(configuration);
|
|
544
535
|
this.http = http ? http : window;
|
|
545
|
-
this.baseUrl = baseUrl
|
|
536
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
546
537
|
}
|
|
547
538
|
getGuestLoginInfo(search) {
|
|
548
539
|
let url_ = this.baseUrl + "/guests/search?";
|
|
@@ -586,12 +577,10 @@ export class GuestsClient extends AuthorizedApiBase {
|
|
|
586
577
|
}
|
|
587
578
|
}
|
|
588
579
|
export class PresentationClient extends AuthorizedApiBase {
|
|
589
|
-
http;
|
|
590
|
-
baseUrl;
|
|
591
580
|
constructor(configuration, baseUrl, http) {
|
|
592
581
|
super(configuration);
|
|
593
582
|
this.http = http ? http : window;
|
|
594
|
-
this.baseUrl = baseUrl
|
|
583
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
595
584
|
}
|
|
596
585
|
getComponentSettings(componentId) {
|
|
597
586
|
let url_ = this.baseUrl + "/presentation/components/{componentId}";
|
|
@@ -634,12 +623,10 @@ export class PresentationClient extends AuthorizedApiBase {
|
|
|
634
623
|
}
|
|
635
624
|
}
|
|
636
625
|
export class SpatialClient extends AuthorizedApiBase {
|
|
637
|
-
http;
|
|
638
|
-
baseUrl;
|
|
639
626
|
constructor(configuration, baseUrl, http) {
|
|
640
627
|
super(configuration);
|
|
641
628
|
this.http = http ? http : window;
|
|
642
|
-
this.baseUrl = baseUrl
|
|
629
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
643
630
|
}
|
|
644
631
|
listBuildingFloors(floor) {
|
|
645
632
|
let url_ = this.baseUrl + "/spatial/building-floors?";
|
|
@@ -1336,12 +1323,10 @@ export class SpatialClient extends AuthorizedApiBase {
|
|
|
1336
1323
|
}
|
|
1337
1324
|
}
|
|
1338
1325
|
export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
1339
|
-
http;
|
|
1340
|
-
baseUrl;
|
|
1341
1326
|
constructor(configuration, baseUrl, http) {
|
|
1342
1327
|
super(configuration);
|
|
1343
1328
|
this.http = http ? http : window;
|
|
1344
|
-
this.baseUrl = baseUrl
|
|
1329
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
1345
1330
|
}
|
|
1346
1331
|
/**
|
|
1347
1332
|
* Get machine utilization data. Historic utilizations start from now, whereas the start for current utilization is
|
|
@@ -1796,12 +1781,10 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
1796
1781
|
}
|
|
1797
1782
|
}
|
|
1798
1783
|
export class ResourceUtilizationClient extends AuthorizedApiBase {
|
|
1799
|
-
http;
|
|
1800
|
-
baseUrl;
|
|
1801
1784
|
constructor(configuration, baseUrl, http) {
|
|
1802
1785
|
super(configuration);
|
|
1803
1786
|
this.http = http ? http : window;
|
|
1804
|
-
this.baseUrl = baseUrl
|
|
1787
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
1805
1788
|
}
|
|
1806
1789
|
/**
|
|
1807
1790
|
* Get resource utilization data. Historic utilizations start from now, whereas the start for current utilization is
|
|
@@ -2208,12 +2191,10 @@ export class ResourceUtilizationClient extends AuthorizedApiBase {
|
|
|
2208
2191
|
}
|
|
2209
2192
|
}
|
|
2210
2193
|
export class MeClient extends AuthorizedApiBase {
|
|
2211
|
-
http;
|
|
2212
|
-
baseUrl;
|
|
2213
2194
|
constructor(configuration, baseUrl, http) {
|
|
2214
2195
|
super(configuration);
|
|
2215
2196
|
this.http = http ? http : window;
|
|
2216
|
-
this.baseUrl = baseUrl
|
|
2197
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
2217
2198
|
}
|
|
2218
2199
|
getMyApps() {
|
|
2219
2200
|
let url_ = this.baseUrl + "/me/apps";
|
|
@@ -2464,12 +2445,10 @@ export class MeClient extends AuthorizedApiBase {
|
|
|
2464
2445
|
}
|
|
2465
2446
|
}
|
|
2466
2447
|
export class UsersClient extends AuthorizedApiBase {
|
|
2467
|
-
http;
|
|
2468
|
-
baseUrl;
|
|
2469
2448
|
constructor(configuration, baseUrl, http) {
|
|
2470
2449
|
super(configuration);
|
|
2471
2450
|
this.http = http ? http : window;
|
|
2472
|
-
this.baseUrl = baseUrl
|
|
2451
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
2473
2452
|
}
|
|
2474
2453
|
listUsers(pageSize, filter, continuationToken) {
|
|
2475
2454
|
let url_ = this.baseUrl + "/users?";
|
|
@@ -2595,12 +2574,10 @@ export class UsersClient extends AuthorizedApiBase {
|
|
|
2595
2574
|
}
|
|
2596
2575
|
}
|
|
2597
2576
|
export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
2598
|
-
http;
|
|
2599
|
-
baseUrl;
|
|
2600
2577
|
constructor(configuration, baseUrl, http) {
|
|
2601
2578
|
super(configuration);
|
|
2602
2579
|
this.http = http ? http : window;
|
|
2603
|
-
this.baseUrl = baseUrl
|
|
2580
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
2604
2581
|
}
|
|
2605
2582
|
getRouteCardUserSettings() {
|
|
2606
2583
|
let url_ = this.baseUrl + "/userappsettings/route-card";
|
|
@@ -2820,12 +2797,10 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
|
2820
2797
|
}
|
|
2821
2798
|
}
|
|
2822
2799
|
export class UploadClient extends AuthorizedApiBase {
|
|
2823
|
-
http;
|
|
2824
|
-
baseUrl;
|
|
2825
2800
|
constructor(configuration, baseUrl, http) {
|
|
2826
2801
|
super(configuration);
|
|
2827
2802
|
this.http = http ? http : window;
|
|
2828
|
-
this.baseUrl = baseUrl
|
|
2803
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
2829
2804
|
}
|
|
2830
2805
|
createUploadInfo() {
|
|
2831
2806
|
let url_ = this.baseUrl + "/upload";
|
|
@@ -2904,12 +2879,10 @@ export class UploadClient extends AuthorizedApiBase {
|
|
|
2904
2879
|
}
|
|
2905
2880
|
}
|
|
2906
2881
|
export class SystemHealthDashboardClient extends AuthorizedApiBase {
|
|
2907
|
-
http;
|
|
2908
|
-
baseUrl;
|
|
2909
2882
|
constructor(configuration, baseUrl, http) {
|
|
2910
2883
|
super(configuration);
|
|
2911
2884
|
this.http = http ? http : window;
|
|
2912
|
-
this.baseUrl = baseUrl
|
|
2885
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
2913
2886
|
}
|
|
2914
2887
|
getMachineDataHealth(assetId) {
|
|
2915
2888
|
let url_ = this.baseUrl + "/systemhealthdashboard?";
|
|
@@ -2951,12 +2924,10 @@ export class SystemHealthDashboardClient extends AuthorizedApiBase {
|
|
|
2951
2924
|
}
|
|
2952
2925
|
}
|
|
2953
2926
|
export class PowerClient extends AuthorizedApiBase {
|
|
2954
|
-
http;
|
|
2955
|
-
baseUrl;
|
|
2956
2927
|
constructor(configuration, baseUrl, http) {
|
|
2957
2928
|
super(configuration);
|
|
2958
2929
|
this.http = http ? http : window;
|
|
2959
|
-
this.baseUrl = baseUrl
|
|
2930
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
2960
2931
|
}
|
|
2961
2932
|
listPowerRegions(country) {
|
|
2962
2933
|
let url_ = this.baseUrl + "/power/regions?";
|
|
@@ -2998,12 +2969,10 @@ export class PowerClient extends AuthorizedApiBase {
|
|
|
2998
2969
|
}
|
|
2999
2970
|
}
|
|
3000
2971
|
export class SustainabilityClient extends AuthorizedApiBase {
|
|
3001
|
-
http;
|
|
3002
|
-
baseUrl;
|
|
3003
2972
|
constructor(configuration, baseUrl, http) {
|
|
3004
2973
|
super(configuration);
|
|
3005
2974
|
this.http = http ? http : window;
|
|
3006
|
-
this.baseUrl = baseUrl
|
|
2975
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
3007
2976
|
}
|
|
3008
2977
|
test() {
|
|
3009
2978
|
let url_ = this.baseUrl + "/sustainability/test";
|
|
@@ -3280,12 +3249,10 @@ export class SustainabilityClient extends AuthorizedApiBase {
|
|
|
3280
3249
|
}
|
|
3281
3250
|
}
|
|
3282
3251
|
export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
3283
|
-
http;
|
|
3284
|
-
baseUrl;
|
|
3285
3252
|
constructor(configuration, baseUrl, http) {
|
|
3286
3253
|
super(configuration);
|
|
3287
3254
|
this.http = http ? http : window;
|
|
3288
|
-
this.baseUrl = baseUrl
|
|
3255
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
3289
3256
|
}
|
|
3290
3257
|
listMachineAlarms(alarmType, assetId, startTime, endTime, subType, nativeCode, nativeSeverity, name, sequence, limit, continuationToken, orderBy, sortDirection) {
|
|
3291
3258
|
let url_ = this.baseUrl + "/machinealarms?";
|
|
@@ -3577,12 +3544,10 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
3577
3544
|
}
|
|
3578
3545
|
}
|
|
3579
3546
|
export class DowntimeReasonsAdminResourceClient extends AuthorizedApiBase {
|
|
3580
|
-
http;
|
|
3581
|
-
baseUrl;
|
|
3582
3547
|
constructor(configuration, baseUrl, http) {
|
|
3583
3548
|
super(configuration);
|
|
3584
3549
|
this.http = http ? http : window;
|
|
3585
|
-
this.baseUrl = baseUrl
|
|
3550
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
3586
3551
|
}
|
|
3587
3552
|
listDowntimeReasons() {
|
|
3588
3553
|
let url_ = this.baseUrl + "/downtimereasonsadminresource/downtimereasons";
|
|
@@ -3926,12 +3891,10 @@ export class DowntimeReasonsAdminResourceClient extends AuthorizedApiBase {
|
|
|
3926
3891
|
}
|
|
3927
3892
|
}
|
|
3928
3893
|
export class DowntimeReasonsResourceClient extends AuthorizedApiBase {
|
|
3929
|
-
http;
|
|
3930
|
-
baseUrl;
|
|
3931
3894
|
constructor(configuration, baseUrl, http) {
|
|
3932
3895
|
super(configuration);
|
|
3933
3896
|
this.http = http ? http : window;
|
|
3934
|
-
this.baseUrl = baseUrl
|
|
3897
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
3935
3898
|
}
|
|
3936
3899
|
createDowntimePeriodReason(request) {
|
|
3937
3900
|
let url_ = this.baseUrl + "/downtimereasonsresource";
|
|
@@ -4325,12 +4288,10 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase {
|
|
|
4325
4288
|
}
|
|
4326
4289
|
}
|
|
4327
4290
|
export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
4328
|
-
http;
|
|
4329
|
-
baseUrl;
|
|
4330
4291
|
constructor(configuration, baseUrl, http) {
|
|
4331
4292
|
super(configuration);
|
|
4332
4293
|
this.http = http ? http : window;
|
|
4333
|
-
this.baseUrl = baseUrl
|
|
4294
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
4334
4295
|
}
|
|
4335
4296
|
getResourceCapacityAdmin() {
|
|
4336
4297
|
let url_ = this.baseUrl + "/kpiadminresource/capacity";
|
|
@@ -4962,12 +4923,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4962
4923
|
}
|
|
4963
4924
|
}
|
|
4964
4925
|
export class KpiResourceClient extends AuthorizedApiBase {
|
|
4965
|
-
http;
|
|
4966
|
-
baseUrl;
|
|
4967
4926
|
constructor(configuration, baseUrl, http) {
|
|
4968
4927
|
super(configuration);
|
|
4969
4928
|
this.http = http ? http : window;
|
|
4970
|
-
this.baseUrl = baseUrl
|
|
4929
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
4971
4930
|
}
|
|
4972
4931
|
getResourceKpi(resourceExternalId, previousPeriodStartDate, startDate, endDate, utcOffset) {
|
|
4973
4932
|
let url_ = this.baseUrl + "/kpiresource/capacity?";
|
|
@@ -5119,12 +5078,10 @@ export class KpiResourceClient extends AuthorizedApiBase {
|
|
|
5119
5078
|
}
|
|
5120
5079
|
}
|
|
5121
5080
|
export class ResourcesClient extends AuthorizedApiBase {
|
|
5122
|
-
http;
|
|
5123
|
-
baseUrl;
|
|
5124
5081
|
constructor(configuration, baseUrl, http) {
|
|
5125
5082
|
super(configuration);
|
|
5126
5083
|
this.http = http ? http : window;
|
|
5127
|
-
this.baseUrl = baseUrl
|
|
5084
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
5128
5085
|
}
|
|
5129
5086
|
listResources(onlyConnectedResources) {
|
|
5130
5087
|
let url_ = this.baseUrl + "/resources?";
|
|
@@ -5968,12 +5925,10 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
5968
5925
|
}
|
|
5969
5926
|
}
|
|
5970
5927
|
export class PulseClient extends AuthorizedApiBase {
|
|
5971
|
-
http;
|
|
5972
|
-
baseUrl;
|
|
5973
5928
|
constructor(configuration, baseUrl, http) {
|
|
5974
5929
|
super(configuration);
|
|
5975
5930
|
this.http = http ? http : window;
|
|
5976
|
-
this.baseUrl = baseUrl
|
|
5931
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
5977
5932
|
}
|
|
5978
5933
|
/**
|
|
5979
5934
|
* @deprecated
|
|
@@ -6133,12 +6088,10 @@ export class PulseClient extends AuthorizedApiBase {
|
|
|
6133
6088
|
}
|
|
6134
6089
|
}
|
|
6135
6090
|
export class PulseJournalClient extends AuthorizedApiBase {
|
|
6136
|
-
http;
|
|
6137
|
-
baseUrl;
|
|
6138
6091
|
constructor(configuration, baseUrl, http) {
|
|
6139
6092
|
super(configuration);
|
|
6140
6093
|
this.http = http ? http : window;
|
|
6141
|
-
this.baseUrl = baseUrl
|
|
6094
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
6142
6095
|
}
|
|
6143
6096
|
getBoards(resourceId) {
|
|
6144
6097
|
let url_ = this.baseUrl + "/pulsejournal/{resourceId}";
|
|
@@ -6802,12 +6755,10 @@ export class PulseJournalClient extends AuthorizedApiBase {
|
|
|
6802
6755
|
}
|
|
6803
6756
|
}
|
|
6804
6757
|
export class UtilizationClient extends AuthorizedApiBase {
|
|
6805
|
-
http;
|
|
6806
|
-
baseUrl;
|
|
6807
6758
|
constructor(configuration, baseUrl, http) {
|
|
6808
6759
|
super(configuration);
|
|
6809
6760
|
this.http = http ? http : window;
|
|
6810
|
-
this.baseUrl = baseUrl
|
|
6761
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
6811
6762
|
}
|
|
6812
6763
|
getCompanyUtilization(request) {
|
|
6813
6764
|
let url_ = this.baseUrl + "/utilization";
|
|
@@ -7304,12 +7255,10 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
7304
7255
|
}
|
|
7305
7256
|
}
|
|
7306
7257
|
export class MrbClient extends AuthorizedApiBase {
|
|
7307
|
-
http;
|
|
7308
|
-
baseUrl;
|
|
7309
7258
|
constructor(configuration, baseUrl, http) {
|
|
7310
7259
|
super(configuration);
|
|
7311
7260
|
this.http = http ? http : window;
|
|
7312
|
-
this.baseUrl = baseUrl
|
|
7261
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
7313
7262
|
}
|
|
7314
7263
|
listMrbInstances(customerOrder, customerOrderLine) {
|
|
7315
7264
|
let url_ = this.baseUrl + "/mrb?";
|
|
@@ -7467,45 +7416,6 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
7467
7416
|
}
|
|
7468
7417
|
return Promise.resolve(null);
|
|
7469
7418
|
}
|
|
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
|
-
}
|
|
7509
7419
|
listMrbInstanceRevisions(id) {
|
|
7510
7420
|
let url_ = this.baseUrl + "/mrb/{id}/revisions";
|
|
7511
7421
|
if (id === undefined || id === null)
|
|
@@ -8569,12 +8479,10 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
8569
8479
|
}
|
|
8570
8480
|
}
|
|
8571
8481
|
export class TraceClient extends AuthorizedApiBase {
|
|
8572
|
-
http;
|
|
8573
|
-
baseUrl;
|
|
8574
8482
|
constructor(configuration, baseUrl, http) {
|
|
8575
8483
|
super(configuration);
|
|
8576
8484
|
this.http = http ? http : window;
|
|
8577
|
-
this.baseUrl = baseUrl
|
|
8485
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
8578
8486
|
}
|
|
8579
8487
|
getTrace(id) {
|
|
8580
8488
|
let url_ = this.baseUrl + "/trace/{id}";
|
|
@@ -8961,12 +8869,10 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
8961
8869
|
}
|
|
8962
8870
|
}
|
|
8963
8871
|
export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
8964
|
-
http;
|
|
8965
|
-
baseUrl;
|
|
8966
8872
|
constructor(configuration, baseUrl, http) {
|
|
8967
8873
|
super(configuration);
|
|
8968
8874
|
this.http = http ? http : window;
|
|
8969
|
-
this.baseUrl = baseUrl
|
|
8875
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
8970
8876
|
}
|
|
8971
8877
|
listMeasuringTools(page, pageSize, toolId, toolName, typeId, subTypeId, orderBy, sortDirection, includeDeprecated) {
|
|
8972
8878
|
let url_ = this.baseUrl + "/measuringtools?";
|
|
@@ -10320,12 +10226,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
10320
10226
|
}
|
|
10321
10227
|
}
|
|
10322
10228
|
export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
10323
|
-
http;
|
|
10324
|
-
baseUrl;
|
|
10325
10229
|
constructor(configuration, baseUrl, http) {
|
|
10326
10230
|
super(configuration);
|
|
10327
10231
|
this.http = http ? http : window;
|
|
10328
|
-
this.baseUrl = baseUrl
|
|
10232
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
10329
10233
|
}
|
|
10330
10234
|
listDowntimeReasons() {
|
|
10331
10235
|
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons";
|
|
@@ -10669,12 +10573,10 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
|
10669
10573
|
}
|
|
10670
10574
|
}
|
|
10671
10575
|
export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
10672
|
-
http;
|
|
10673
|
-
baseUrl;
|
|
10674
10576
|
constructor(configuration, baseUrl, http) {
|
|
10675
10577
|
super(configuration);
|
|
10676
10578
|
this.http = http ? http : window;
|
|
10677
|
-
this.baseUrl = baseUrl
|
|
10579
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
10678
10580
|
}
|
|
10679
10581
|
createDowntimePeriodReason(request) {
|
|
10680
10582
|
let url_ = this.baseUrl + "/downtimereasons";
|
|
@@ -11068,12 +10970,10 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
|
11068
10970
|
}
|
|
11069
10971
|
}
|
|
11070
10972
|
export class KpiAdminClient extends AuthorizedApiBase {
|
|
11071
|
-
http;
|
|
11072
|
-
baseUrl;
|
|
11073
10973
|
constructor(configuration, baseUrl, http) {
|
|
11074
10974
|
super(configuration);
|
|
11075
10975
|
this.http = http ? http : window;
|
|
11076
|
-
this.baseUrl = baseUrl
|
|
10976
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
11077
10977
|
}
|
|
11078
10978
|
getMachineCapacityAdmin() {
|
|
11079
10979
|
let url_ = this.baseUrl + "/kpiadmin/capacity";
|
|
@@ -11310,12 +11210,10 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
11310
11210
|
}
|
|
11311
11211
|
}
|
|
11312
11212
|
export class KpiClient extends AuthorizedApiBase {
|
|
11313
|
-
http;
|
|
11314
|
-
baseUrl;
|
|
11315
11213
|
constructor(configuration, baseUrl, http) {
|
|
11316
11214
|
super(configuration);
|
|
11317
11215
|
this.http = http ? http : window;
|
|
11318
|
-
this.baseUrl = baseUrl
|
|
11216
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
11319
11217
|
}
|
|
11320
11218
|
getMachineKpi(machineExternalId, previousPeriodStartDate, startDate, endDate, utcOffset) {
|
|
11321
11219
|
let url_ = this.baseUrl + "/kpi/capacity?";
|
|
@@ -11467,12 +11365,10 @@ export class KpiClient extends AuthorizedApiBase {
|
|
|
11467
11365
|
}
|
|
11468
11366
|
}
|
|
11469
11367
|
export class MachinesClient extends AuthorizedApiBase {
|
|
11470
|
-
http;
|
|
11471
|
-
baseUrl;
|
|
11472
11368
|
constructor(configuration, baseUrl, http) {
|
|
11473
11369
|
super(configuration);
|
|
11474
11370
|
this.http = http ? http : window;
|
|
11475
|
-
this.baseUrl = baseUrl
|
|
11371
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
11476
11372
|
}
|
|
11477
11373
|
listMachines(onlyConnectedMachines) {
|
|
11478
11374
|
let url_ = this.baseUrl + "/machines?";
|
|
@@ -12289,12 +12185,10 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
12289
12185
|
}
|
|
12290
12186
|
}
|
|
12291
12187
|
export class MachineDataClient extends AuthorizedApiBase {
|
|
12292
|
-
http;
|
|
12293
|
-
baseUrl;
|
|
12294
12188
|
constructor(configuration, baseUrl, http) {
|
|
12295
12189
|
super(configuration);
|
|
12296
12190
|
this.http = http ? http : window;
|
|
12297
|
-
this.baseUrl = baseUrl
|
|
12191
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
12298
12192
|
}
|
|
12299
12193
|
getLiveMachineData(assetId, externalIds) {
|
|
12300
12194
|
let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
|
|
@@ -12434,12 +12328,10 @@ export class MachineDataClient extends AuthorizedApiBase {
|
|
|
12434
12328
|
}
|
|
12435
12329
|
}
|
|
12436
12330
|
export class LinksClient extends AuthorizedApiBase {
|
|
12437
|
-
http;
|
|
12438
|
-
baseUrl;
|
|
12439
12331
|
constructor(configuration, baseUrl, http) {
|
|
12440
12332
|
super(configuration);
|
|
12441
12333
|
this.http = http ? http : window;
|
|
12442
|
-
this.baseUrl = baseUrl
|
|
12334
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
12443
12335
|
}
|
|
12444
12336
|
getAllLinks(scope) {
|
|
12445
12337
|
let url_ = this.baseUrl + "/links?";
|
|
@@ -12593,12 +12485,10 @@ export class LinksClient extends AuthorizedApiBase {
|
|
|
12593
12485
|
}
|
|
12594
12486
|
}
|
|
12595
12487
|
export class ExternalServicesClient extends AuthorizedApiBase {
|
|
12596
|
-
http;
|
|
12597
|
-
baseUrl;
|
|
12598
12488
|
constructor(configuration, baseUrl, http) {
|
|
12599
12489
|
super(configuration);
|
|
12600
12490
|
this.http = http ? http : window;
|
|
12601
|
-
this.baseUrl = baseUrl
|
|
12491
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
12602
12492
|
}
|
|
12603
12493
|
getCredential(serviceName) {
|
|
12604
12494
|
let url_ = this.baseUrl + "/externalservices/credentials/{serviceName}";
|
|
@@ -12641,12 +12531,10 @@ export class ExternalServicesClient extends AuthorizedApiBase {
|
|
|
12641
12531
|
}
|
|
12642
12532
|
}
|
|
12643
12533
|
export class DocumentsClient extends AuthorizedApiBase {
|
|
12644
|
-
http;
|
|
12645
|
-
baseUrl;
|
|
12646
12534
|
constructor(configuration, baseUrl, http) {
|
|
12647
12535
|
super(configuration);
|
|
12648
12536
|
this.http = http ? http : window;
|
|
12649
|
-
this.baseUrl = baseUrl
|
|
12537
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
12650
12538
|
}
|
|
12651
12539
|
/**
|
|
12652
12540
|
* Import document with revisions from other systems.
|
|
@@ -12736,12 +12624,10 @@ export class DocumentsClient extends AuthorizedApiBase {
|
|
|
12736
12624
|
}
|
|
12737
12625
|
}
|
|
12738
12626
|
export class DocumentTypesClient extends AuthorizedApiBase {
|
|
12739
|
-
http;
|
|
12740
|
-
baseUrl;
|
|
12741
12627
|
constructor(configuration, baseUrl, http) {
|
|
12742
12628
|
super(configuration);
|
|
12743
12629
|
this.http = http ? http : window;
|
|
12744
|
-
this.baseUrl = baseUrl
|
|
12630
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
12745
12631
|
}
|
|
12746
12632
|
listDocumentTypes(includeInactive) {
|
|
12747
12633
|
let url_ = this.baseUrl + "/documenttypes?";
|
|
@@ -13163,12 +13049,10 @@ export class DocumentTypesClient extends AuthorizedApiBase {
|
|
|
13163
13049
|
}
|
|
13164
13050
|
}
|
|
13165
13051
|
export class ExternalAccessClient extends AuthorizedApiBase {
|
|
13166
|
-
http;
|
|
13167
|
-
baseUrl;
|
|
13168
13052
|
constructor(configuration, baseUrl, http) {
|
|
13169
13053
|
super(configuration);
|
|
13170
13054
|
this.http = http ? http : window;
|
|
13171
|
-
this.baseUrl = baseUrl
|
|
13055
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
13172
13056
|
}
|
|
13173
13057
|
listUsers(companyId) {
|
|
13174
13058
|
let url_ = this.baseUrl + "/externalaccess/users?";
|
|
@@ -13435,12 +13319,10 @@ export class ExternalAccessClient extends AuthorizedApiBase {
|
|
|
13435
13319
|
}
|
|
13436
13320
|
}
|
|
13437
13321
|
export class ExternalClient extends AuthorizedApiBase {
|
|
13438
|
-
http;
|
|
13439
|
-
baseUrl;
|
|
13440
13322
|
constructor(configuration, baseUrl, http) {
|
|
13441
13323
|
super(configuration);
|
|
13442
13324
|
this.http = http ? http : window;
|
|
13443
|
-
this.baseUrl = baseUrl
|
|
13325
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
13444
13326
|
}
|
|
13445
13327
|
listInvites() {
|
|
13446
13328
|
let url_ = this.baseUrl + "/external/invites";
|
|
@@ -13555,12 +13437,10 @@ export class ExternalClient extends AuthorizedApiBase {
|
|
|
13555
13437
|
}
|
|
13556
13438
|
}
|
|
13557
13439
|
export class SuppliersClient extends AuthorizedApiBase {
|
|
13558
|
-
http;
|
|
13559
|
-
baseUrl;
|
|
13560
13440
|
constructor(configuration, baseUrl, http) {
|
|
13561
13441
|
super(configuration);
|
|
13562
13442
|
this.http = http ? http : window;
|
|
13563
|
-
this.baseUrl = baseUrl
|
|
13443
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
13564
13444
|
}
|
|
13565
13445
|
listSupplierInvites() {
|
|
13566
13446
|
let url_ = this.baseUrl + "/suppliers/supplierinvites";
|
|
@@ -13858,12 +13738,10 @@ export class SuppliersClient extends AuthorizedApiBase {
|
|
|
13858
13738
|
}
|
|
13859
13739
|
}
|
|
13860
13740
|
export class CncFileTransferClient extends AuthorizedApiBase {
|
|
13861
|
-
http;
|
|
13862
|
-
baseUrl;
|
|
13863
13741
|
constructor(configuration, baseUrl, http) {
|
|
13864
13742
|
super(configuration);
|
|
13865
13743
|
this.http = http ? http : window;
|
|
13866
|
-
this.baseUrl = baseUrl
|
|
13744
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
13867
13745
|
}
|
|
13868
13746
|
startCncMachineOperationTransferToCloud(id) {
|
|
13869
13747
|
let url_ = this.baseUrl + "/cncfiletransfer/operations/{id}/transfertocloud";
|
|
@@ -14144,12 +14022,10 @@ export class CncFileTransferClient extends AuthorizedApiBase {
|
|
|
14144
14022
|
}
|
|
14145
14023
|
}
|
|
14146
14024
|
export class CncSetupAgentClient extends AuthorizedApiBase {
|
|
14147
|
-
http;
|
|
14148
|
-
baseUrl;
|
|
14149
14025
|
constructor(configuration, baseUrl, http) {
|
|
14150
14026
|
super(configuration);
|
|
14151
14027
|
this.http = http ? http : window;
|
|
14152
|
-
this.baseUrl = baseUrl
|
|
14028
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
14153
14029
|
}
|
|
14154
14030
|
getCncAgentConfig(agentId, agentVersion) {
|
|
14155
14031
|
let url_ = this.baseUrl + "/cncsetupagent/agentconfig?";
|
|
@@ -14274,12 +14150,10 @@ export class CncSetupAgentClient extends AuthorizedApiBase {
|
|
|
14274
14150
|
}
|
|
14275
14151
|
}
|
|
14276
14152
|
export class CncSetupClient extends AuthorizedApiBase {
|
|
14277
|
-
http;
|
|
14278
|
-
baseUrl;
|
|
14279
14153
|
constructor(configuration, baseUrl, http) {
|
|
14280
14154
|
super(configuration);
|
|
14281
14155
|
this.http = http ? http : window;
|
|
14282
|
-
this.baseUrl = baseUrl
|
|
14156
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
14283
14157
|
}
|
|
14284
14158
|
getCncMachine(id) {
|
|
14285
14159
|
let url_ = this.baseUrl + "/cncsetup/machines/{id}";
|
|
@@ -16569,12 +16443,10 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
16569
16443
|
}
|
|
16570
16444
|
}
|
|
16571
16445
|
export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
16572
|
-
http;
|
|
16573
|
-
baseUrl;
|
|
16574
16446
|
constructor(configuration, baseUrl, http) {
|
|
16575
16447
|
super(configuration);
|
|
16576
16448
|
this.http = http ? http : window;
|
|
16577
|
-
this.baseUrl = baseUrl
|
|
16449
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
16578
16450
|
}
|
|
16579
16451
|
listFixtures(request) {
|
|
16580
16452
|
let url_ = this.baseUrl + "/fixtures/list";
|
|
@@ -17178,12 +17050,10 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
17178
17050
|
}
|
|
17179
17051
|
}
|
|
17180
17052
|
export class OperatorCalculatorsClient extends AuthorizedApiBase {
|
|
17181
|
-
http;
|
|
17182
|
-
baseUrl;
|
|
17183
17053
|
constructor(configuration, baseUrl, http) {
|
|
17184
17054
|
super(configuration);
|
|
17185
17055
|
this.http = http ? http : window;
|
|
17186
|
-
this.baseUrl = baseUrl
|
|
17056
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
17187
17057
|
}
|
|
17188
17058
|
/**
|
|
17189
17059
|
* Calculate spindle speed from cutting speed or vice versa.
|
|
@@ -17355,12 +17225,10 @@ export class OperatorCalculatorsClient extends AuthorizedApiBase {
|
|
|
17355
17225
|
}
|
|
17356
17226
|
}
|
|
17357
17227
|
export class AssetsClient extends AuthorizedApiBase {
|
|
17358
|
-
http;
|
|
17359
|
-
baseUrl;
|
|
17360
17228
|
constructor(configuration, baseUrl, http) {
|
|
17361
17229
|
super(configuration);
|
|
17362
17230
|
this.http = http ? http : window;
|
|
17363
|
-
this.baseUrl = baseUrl
|
|
17231
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
17364
17232
|
}
|
|
17365
17233
|
listAssets(externalIdprefix, name, source, limit, continuationToken) {
|
|
17366
17234
|
let url_ = this.baseUrl + "/assets?";
|
|
@@ -17654,12 +17522,10 @@ export class AssetsClient extends AuthorizedApiBase {
|
|
|
17654
17522
|
}
|
|
17655
17523
|
}
|
|
17656
17524
|
export class AlertsClient extends AuthorizedApiBase {
|
|
17657
|
-
http;
|
|
17658
|
-
baseUrl;
|
|
17659
17525
|
constructor(configuration, baseUrl, http) {
|
|
17660
17526
|
super(configuration);
|
|
17661
17527
|
this.http = http ? http : window;
|
|
17662
|
-
this.baseUrl = baseUrl
|
|
17528
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
17663
17529
|
}
|
|
17664
17530
|
alertNotificationAccess() {
|
|
17665
17531
|
let url_ = this.baseUrl + "/alerts/useraccess";
|
|
@@ -17884,12 +17750,10 @@ export class AlertsClient extends AuthorizedApiBase {
|
|
|
17884
17750
|
}
|
|
17885
17751
|
}
|
|
17886
17752
|
export class CredentialsClient extends AuthorizedApiBase {
|
|
17887
|
-
http;
|
|
17888
|
-
baseUrl;
|
|
17889
17753
|
constructor(configuration, baseUrl, http) {
|
|
17890
17754
|
super(configuration);
|
|
17891
17755
|
this.http = http ? http : window;
|
|
17892
|
-
this.baseUrl = baseUrl
|
|
17756
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
17893
17757
|
}
|
|
17894
17758
|
listIntegrationCredentials() {
|
|
17895
17759
|
let url_ = this.baseUrl + "/admin/credentials";
|
|
@@ -18001,12 +17865,10 @@ export class CredentialsClient extends AuthorizedApiBase {
|
|
|
18001
17865
|
}
|
|
18002
17866
|
}
|
|
18003
17867
|
export class CdfClient extends AuthorizedApiBase {
|
|
18004
|
-
http;
|
|
18005
|
-
baseUrl;
|
|
18006
17868
|
constructor(configuration, baseUrl, http) {
|
|
18007
17869
|
super(configuration);
|
|
18008
17870
|
this.http = http ? http : window;
|
|
18009
|
-
this.baseUrl = baseUrl
|
|
17871
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
18010
17872
|
}
|
|
18011
17873
|
/**
|
|
18012
17874
|
* Get CDF config
|
|
@@ -18091,12 +17953,10 @@ export class CdfClient extends AuthorizedApiBase {
|
|
|
18091
17953
|
}
|
|
18092
17954
|
}
|
|
18093
17955
|
export class WorkspaceDefaultsAdminClient extends AuthorizedApiBase {
|
|
18094
|
-
http;
|
|
18095
|
-
baseUrl;
|
|
18096
17956
|
constructor(configuration, baseUrl, http) {
|
|
18097
17957
|
super(configuration);
|
|
18098
17958
|
this.http = http ? http : window;
|
|
18099
|
-
this.baseUrl = baseUrl
|
|
17959
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
18100
17960
|
}
|
|
18101
17961
|
getDefaults() {
|
|
18102
17962
|
let url_ = this.baseUrl + "/workspaces/defaults";
|
|
@@ -18213,12 +18073,10 @@ export class WorkspaceDefaultsAdminClient extends AuthorizedApiBase {
|
|
|
18213
18073
|
}
|
|
18214
18074
|
}
|
|
18215
18075
|
export class WorkspacesClient extends AuthorizedApiBase {
|
|
18216
|
-
http;
|
|
18217
|
-
baseUrl;
|
|
18218
18076
|
constructor(configuration, baseUrl, http) {
|
|
18219
18077
|
super(configuration);
|
|
18220
18078
|
this.http = http ? http : window;
|
|
18221
|
-
this.baseUrl = baseUrl
|
|
18079
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
18222
18080
|
}
|
|
18223
18081
|
getMyWorkspaces() {
|
|
18224
18082
|
let url_ = this.baseUrl + "/workspaces";
|
|
@@ -18620,12 +18478,10 @@ export class WorkspacesClient extends AuthorizedApiBase {
|
|
|
18620
18478
|
}
|
|
18621
18479
|
}
|
|
18622
18480
|
export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
18623
|
-
http;
|
|
18624
|
-
baseUrl;
|
|
18625
18481
|
constructor(configuration, baseUrl, http) {
|
|
18626
18482
|
super(configuration);
|
|
18627
18483
|
this.http = http ? http : window;
|
|
18628
|
-
this.baseUrl = baseUrl
|
|
18484
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
18629
18485
|
}
|
|
18630
18486
|
createWorkspaceTemplate(createWorkspaceTemplate) {
|
|
18631
18487
|
let url_ = this.baseUrl + "/workspaces/templates";
|
|
@@ -18913,12 +18769,10 @@ export class WorkspaceTemplatesAdminClient extends AuthorizedApiBase {
|
|
|
18913
18769
|
}
|
|
18914
18770
|
}
|
|
18915
18771
|
export class WorkspaceTemplatesClient extends AuthorizedApiBase {
|
|
18916
|
-
http;
|
|
18917
|
-
baseUrl;
|
|
18918
18772
|
constructor(configuration, baseUrl, http) {
|
|
18919
18773
|
super(configuration);
|
|
18920
18774
|
this.http = http ? http : window;
|
|
18921
|
-
this.baseUrl = baseUrl
|
|
18775
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
18922
18776
|
}
|
|
18923
18777
|
getWorkspaceTemplates() {
|
|
18924
18778
|
let url_ = this.baseUrl + "/workspaces/templates";
|
|
@@ -18958,12 +18812,10 @@ export class WorkspaceTemplatesClient extends AuthorizedApiBase {
|
|
|
18958
18812
|
}
|
|
18959
18813
|
}
|
|
18960
18814
|
export class MoveBookingClient extends AuthorizedApiBase {
|
|
18961
|
-
http;
|
|
18962
|
-
baseUrl;
|
|
18963
18815
|
constructor(configuration, baseUrl, http) {
|
|
18964
18816
|
super(configuration);
|
|
18965
18817
|
this.http = http ? http : window;
|
|
18966
|
-
this.baseUrl = baseUrl
|
|
18818
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
18967
18819
|
}
|
|
18968
18820
|
listBookings(request) {
|
|
18969
18821
|
let url_ = this.baseUrl + "/move/booking/list";
|
|
@@ -19358,12 +19210,10 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
19358
19210
|
}
|
|
19359
19211
|
}
|
|
19360
19212
|
export class MoveInfoscreenClient extends AuthorizedApiBase {
|
|
19361
|
-
http;
|
|
19362
|
-
baseUrl;
|
|
19363
19213
|
constructor(configuration, baseUrl, http) {
|
|
19364
19214
|
super(configuration);
|
|
19365
19215
|
this.http = http ? http : window;
|
|
19366
|
-
this.baseUrl = baseUrl
|
|
19216
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
19367
19217
|
}
|
|
19368
19218
|
listInfoscreens() {
|
|
19369
19219
|
let url_ = this.baseUrl + "/move/infoscreens";
|
|
@@ -19558,12 +19408,10 @@ export class MoveInfoscreenClient extends AuthorizedApiBase {
|
|
|
19558
19408
|
}
|
|
19559
19409
|
}
|
|
19560
19410
|
export class MoveLocationsClient extends AuthorizedApiBase {
|
|
19561
|
-
http;
|
|
19562
|
-
baseUrl;
|
|
19563
19411
|
constructor(configuration, baseUrl, http) {
|
|
19564
19412
|
super(configuration);
|
|
19565
19413
|
this.http = http ? http : window;
|
|
19566
|
-
this.baseUrl = baseUrl
|
|
19414
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
19567
19415
|
}
|
|
19568
19416
|
listLocations(includeAllLocations) {
|
|
19569
19417
|
let url_ = this.baseUrl + "/move/locations/list?";
|
|
@@ -19811,12 +19659,10 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
19811
19659
|
}
|
|
19812
19660
|
}
|
|
19813
19661
|
export class MoveMaterialsClient extends AuthorizedApiBase {
|
|
19814
|
-
http;
|
|
19815
|
-
baseUrl;
|
|
19816
19662
|
constructor(configuration, baseUrl, http) {
|
|
19817
19663
|
super(configuration);
|
|
19818
19664
|
this.http = http ? http : window;
|
|
19819
|
-
this.baseUrl = baseUrl
|
|
19665
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
19820
19666
|
}
|
|
19821
19667
|
listMaterials() {
|
|
19822
19668
|
let url_ = this.baseUrl + "/move/materials/list";
|
|
@@ -20012,12 +19858,10 @@ export class MoveMaterialsClient extends AuthorizedApiBase {
|
|
|
20012
19858
|
}
|
|
20013
19859
|
}
|
|
20014
19860
|
export class MoveNotificationsClient extends AuthorizedApiBase {
|
|
20015
|
-
http;
|
|
20016
|
-
baseUrl;
|
|
20017
19861
|
constructor(configuration, baseUrl, http) {
|
|
20018
19862
|
super(configuration);
|
|
20019
19863
|
this.http = http ? http : window;
|
|
20020
|
-
this.baseUrl = baseUrl
|
|
19864
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20021
19865
|
}
|
|
20022
19866
|
getNotifications() {
|
|
20023
19867
|
let url_ = this.baseUrl + "/move/notifications";
|
|
@@ -20096,12 +19940,10 @@ export class MoveNotificationsClient extends AuthorizedApiBase {
|
|
|
20096
19940
|
}
|
|
20097
19941
|
}
|
|
20098
19942
|
export class MoveParcelsClient extends AuthorizedApiBase {
|
|
20099
|
-
http;
|
|
20100
|
-
baseUrl;
|
|
20101
19943
|
constructor(configuration, baseUrl, http) {
|
|
20102
19944
|
super(configuration);
|
|
20103
19945
|
this.http = http ? http : window;
|
|
20104
|
-
this.baseUrl = baseUrl
|
|
19946
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20105
19947
|
}
|
|
20106
19948
|
searchParcels(input, pageSize) {
|
|
20107
19949
|
let url_ = this.baseUrl + "/move/parcel/search?";
|
|
@@ -20185,12 +20027,10 @@ export class MoveParcelsClient extends AuthorizedApiBase {
|
|
|
20185
20027
|
}
|
|
20186
20028
|
}
|
|
20187
20029
|
export class MoveTrackingClient extends AuthorizedApiBase {
|
|
20188
|
-
http;
|
|
20189
|
-
baseUrl;
|
|
20190
20030
|
constructor(configuration, baseUrl, http) {
|
|
20191
20031
|
super(configuration);
|
|
20192
20032
|
this.http = http ? http : window;
|
|
20193
|
-
this.baseUrl = baseUrl
|
|
20033
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20194
20034
|
}
|
|
20195
20035
|
listTrackingHistory(request) {
|
|
20196
20036
|
let url_ = this.baseUrl + "/move/tracking/list";
|
|
@@ -20546,12 +20386,10 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
20546
20386
|
}
|
|
20547
20387
|
}
|
|
20548
20388
|
export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
20549
|
-
http;
|
|
20550
|
-
baseUrl;
|
|
20551
20389
|
constructor(configuration, baseUrl, http) {
|
|
20552
20390
|
super(configuration);
|
|
20553
20391
|
this.http = http ? http : window;
|
|
20554
|
-
this.baseUrl = baseUrl
|
|
20392
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20555
20393
|
}
|
|
20556
20394
|
getSettings() {
|
|
20557
20395
|
let url_ = this.baseUrl + "/move/settings/parcelcategories";
|
|
@@ -20797,12 +20635,10 @@ export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
|
20797
20635
|
}
|
|
20798
20636
|
}
|
|
20799
20637
|
export class InventoryClient extends AuthorizedApiBase {
|
|
20800
|
-
http;
|
|
20801
|
-
baseUrl;
|
|
20802
20638
|
constructor(configuration, baseUrl, http) {
|
|
20803
20639
|
super(configuration);
|
|
20804
20640
|
this.http = http ? http : window;
|
|
20805
|
-
this.baseUrl = baseUrl
|
|
20641
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20806
20642
|
}
|
|
20807
20643
|
listVendorBatches(request) {
|
|
20808
20644
|
let url_ = this.baseUrl + "/mes/inventory/list-vendor-batches";
|
|
@@ -20845,12 +20681,10 @@ export class InventoryClient extends AuthorizedApiBase {
|
|
|
20845
20681
|
}
|
|
20846
20682
|
}
|
|
20847
20683
|
export class MesClient extends AuthorizedApiBase {
|
|
20848
|
-
http;
|
|
20849
|
-
baseUrl;
|
|
20850
20684
|
constructor(configuration, baseUrl, http) {
|
|
20851
20685
|
super(configuration);
|
|
20852
20686
|
this.http = http ? http : window;
|
|
20853
|
-
this.baseUrl = baseUrl
|
|
20687
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20854
20688
|
}
|
|
20855
20689
|
getWorkerDetailsForCurrentUser() {
|
|
20856
20690
|
let url_ = this.baseUrl + "/mes/workers/me";
|
|
@@ -20890,12 +20724,10 @@ export class MesClient extends AuthorizedApiBase {
|
|
|
20890
20724
|
}
|
|
20891
20725
|
}
|
|
20892
20726
|
export class MesDocumentsClient extends AuthorizedApiBase {
|
|
20893
|
-
http;
|
|
20894
|
-
baseUrl;
|
|
20895
20727
|
constructor(configuration, baseUrl, http) {
|
|
20896
20728
|
super(configuration);
|
|
20897
20729
|
this.http = http ? http : window;
|
|
20898
|
-
this.baseUrl = baseUrl
|
|
20730
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20899
20731
|
}
|
|
20900
20732
|
getDocument(drawingNumber, id) {
|
|
20901
20733
|
let url_ = this.baseUrl + "/mes/documents/drawings/{drawingNumber}/{id}";
|
|
@@ -20941,12 +20773,10 @@ export class MesDocumentsClient extends AuthorizedApiBase {
|
|
|
20941
20773
|
}
|
|
20942
20774
|
}
|
|
20943
20775
|
export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
|
|
20944
|
-
http;
|
|
20945
|
-
baseUrl;
|
|
20946
20776
|
constructor(configuration, baseUrl, http) {
|
|
20947
20777
|
super(configuration);
|
|
20948
20778
|
this.http = http ? http : window;
|
|
20949
|
-
this.baseUrl = baseUrl
|
|
20779
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20950
20780
|
}
|
|
20951
20781
|
getEngineeringChangeOrders(partNumber) {
|
|
20952
20782
|
let url_ = this.baseUrl + "/mes/engineering-change-orders?";
|
|
@@ -21030,12 +20860,10 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
|
|
|
21030
20860
|
}
|
|
21031
20861
|
}
|
|
21032
20862
|
export class MesIndirectActivitiesClient extends AuthorizedApiBase {
|
|
21033
|
-
http;
|
|
21034
|
-
baseUrl;
|
|
21035
20863
|
constructor(configuration, baseUrl, http) {
|
|
21036
20864
|
super(configuration);
|
|
21037
20865
|
this.http = http ? http : window;
|
|
21038
|
-
this.baseUrl = baseUrl
|
|
20866
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21039
20867
|
}
|
|
21040
20868
|
listIndirectActivities() {
|
|
21041
20869
|
let url_ = this.baseUrl + "/mes/indirect-activities";
|
|
@@ -21147,12 +20975,10 @@ export class MesIndirectActivitiesClient extends AuthorizedApiBase {
|
|
|
21147
20975
|
}
|
|
21148
20976
|
}
|
|
21149
20977
|
export class MesLinksClient extends AuthorizedApiBase {
|
|
21150
|
-
http;
|
|
21151
|
-
baseUrl;
|
|
21152
20978
|
constructor(configuration, baseUrl, http) {
|
|
21153
20979
|
super(configuration);
|
|
21154
20980
|
this.http = http ? http : window;
|
|
21155
|
-
this.baseUrl = baseUrl
|
|
20981
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21156
20982
|
}
|
|
21157
20983
|
addMesLink(request) {
|
|
21158
20984
|
let url_ = this.baseUrl + "/mes/links";
|
|
@@ -21389,12 +21215,10 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
21389
21215
|
}
|
|
21390
21216
|
}
|
|
21391
21217
|
export class MesOrMoveClient extends AuthorizedApiBase {
|
|
21392
|
-
http;
|
|
21393
|
-
baseUrl;
|
|
21394
21218
|
constructor(configuration, baseUrl, http) {
|
|
21395
21219
|
super(configuration);
|
|
21396
21220
|
this.http = http ? http : window;
|
|
21397
|
-
this.baseUrl = baseUrl
|
|
21221
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21398
21222
|
}
|
|
21399
21223
|
getPrintableLabels(request) {
|
|
21400
21224
|
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
@@ -21437,12 +21261,10 @@ export class MesOrMoveClient extends AuthorizedApiBase {
|
|
|
21437
21261
|
}
|
|
21438
21262
|
}
|
|
21439
21263
|
export class MesPlannerClient extends AuthorizedApiBase {
|
|
21440
|
-
http;
|
|
21441
|
-
baseUrl;
|
|
21442
21264
|
constructor(configuration, baseUrl, http) {
|
|
21443
21265
|
super(configuration);
|
|
21444
21266
|
this.http = http ? http : window;
|
|
21445
|
-
this.baseUrl = baseUrl
|
|
21267
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21446
21268
|
}
|
|
21447
21269
|
getPlan(resourceGroupId) {
|
|
21448
21270
|
let url_ = this.baseUrl + "/mes/planner/plan?";
|
|
@@ -21857,12 +21679,10 @@ export class MesPlannerClient extends AuthorizedApiBase {
|
|
|
21857
21679
|
}
|
|
21858
21680
|
}
|
|
21859
21681
|
export class MesProductionOrderAttachmentClient extends AuthorizedApiBase {
|
|
21860
|
-
http;
|
|
21861
|
-
baseUrl;
|
|
21862
21682
|
constructor(configuration, baseUrl, http) {
|
|
21863
21683
|
super(configuration);
|
|
21864
21684
|
this.http = http ? http : window;
|
|
21865
|
-
this.baseUrl = baseUrl
|
|
21685
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21866
21686
|
}
|
|
21867
21687
|
/**
|
|
21868
21688
|
* Upload a new attachment (with or without a file)
|
|
@@ -22093,12 +21913,10 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase {
|
|
|
22093
21913
|
}
|
|
22094
21914
|
}
|
|
22095
21915
|
export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
22096
|
-
http;
|
|
22097
|
-
baseUrl;
|
|
22098
21916
|
constructor(configuration, baseUrl, http) {
|
|
22099
21917
|
super(configuration);
|
|
22100
21918
|
this.http = http ? http : window;
|
|
22101
|
-
this.baseUrl = baseUrl
|
|
21919
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
22102
21920
|
}
|
|
22103
21921
|
listProductionOrders(request) {
|
|
22104
21922
|
let url_ = this.baseUrl + "/mes/productionorders/list";
|
|
@@ -22510,12 +22328,10 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
22510
22328
|
}
|
|
22511
22329
|
}
|
|
22512
22330
|
export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
22513
|
-
http;
|
|
22514
|
-
baseUrl;
|
|
22515
22331
|
constructor(configuration, baseUrl, http) {
|
|
22516
22332
|
super(configuration);
|
|
22517
22333
|
this.http = http ? http : window;
|
|
22518
|
-
this.baseUrl = baseUrl
|
|
22334
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
22519
22335
|
}
|
|
22520
22336
|
listProductionScheduleOperations(resourceGroup, resourceId, departmentNumber, pageSize, continuationToken, workOrderId, projectId, partNumber, partName, material, includeDiscussionSummary) {
|
|
22521
22337
|
let url_ = this.baseUrl + "/mes/productionschedule?";
|
|
@@ -22618,6 +22434,45 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
22618
22434
|
}
|
|
22619
22435
|
return Promise.resolve(null);
|
|
22620
22436
|
}
|
|
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
|
+
}
|
|
22621
22476
|
getAvailableProductionScheduleFilters(request) {
|
|
22622
22477
|
let url_ = this.baseUrl + "/mes/productionschedulefilters";
|
|
22623
22478
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -22807,12 +22662,10 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
22807
22662
|
}
|
|
22808
22663
|
}
|
|
22809
22664
|
export class MesProjectsClient extends AuthorizedApiBase {
|
|
22810
|
-
http;
|
|
22811
|
-
baseUrl;
|
|
22812
22665
|
constructor(configuration, baseUrl, http) {
|
|
22813
22666
|
super(configuration);
|
|
22814
22667
|
this.http = http ? http : window;
|
|
22815
|
-
this.baseUrl = baseUrl
|
|
22668
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
22816
22669
|
}
|
|
22817
22670
|
listProjects(request) {
|
|
22818
22671
|
let url_ = this.baseUrl + "/mes/projects";
|
|
@@ -22894,12 +22747,10 @@ export class MesProjectsClient extends AuthorizedApiBase {
|
|
|
22894
22747
|
}
|
|
22895
22748
|
}
|
|
22896
22749
|
export class MesPurchaseOrderClient extends AuthorizedApiBase {
|
|
22897
|
-
http;
|
|
22898
|
-
baseUrl;
|
|
22899
22750
|
constructor(configuration, baseUrl, http) {
|
|
22900
22751
|
super(configuration);
|
|
22901
22752
|
this.http = http ? http : window;
|
|
22902
|
-
this.baseUrl = baseUrl
|
|
22753
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
22903
22754
|
}
|
|
22904
22755
|
getPurchaseOrderDetails(purchaseOrderNumber, productionOrderNumber) {
|
|
22905
22756
|
let url_ = this.baseUrl + "/mes/purchase-orders/{purchaseOrderNumber}?";
|
|
@@ -22946,12 +22797,10 @@ export class MesPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
22946
22797
|
}
|
|
22947
22798
|
}
|
|
22948
22799
|
export class MesResourceClient extends AuthorizedApiBase {
|
|
22949
|
-
http;
|
|
22950
|
-
baseUrl;
|
|
22951
22800
|
constructor(configuration, baseUrl, http) {
|
|
22952
22801
|
super(configuration);
|
|
22953
22802
|
this.http = http ? http : window;
|
|
22954
|
-
this.baseUrl = baseUrl
|
|
22803
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
22955
22804
|
}
|
|
22956
22805
|
listResourceGroups(includeResources) {
|
|
22957
22806
|
let url_ = this.baseUrl + "/mes/resourcegroups?";
|
|
@@ -23109,12 +22958,10 @@ export class MesResourceClient extends AuthorizedApiBase {
|
|
|
23109
22958
|
}
|
|
23110
22959
|
}
|
|
23111
22960
|
export class ElectricalClient extends AuthorizedApiBase {
|
|
23112
|
-
http;
|
|
23113
|
-
baseUrl;
|
|
23114
22961
|
constructor(configuration, baseUrl, http) {
|
|
23115
22962
|
super(configuration);
|
|
23116
22963
|
this.http = http ? http : window;
|
|
23117
|
-
this.baseUrl = baseUrl
|
|
22964
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
23118
22965
|
}
|
|
23119
22966
|
listElectricalSourceTypes() {
|
|
23120
22967
|
let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
|
|
@@ -23267,12 +23114,10 @@ export class ElectricalClient extends AuthorizedApiBase {
|
|
|
23267
23114
|
}
|
|
23268
23115
|
}
|
|
23269
23116
|
export class WeldingClient extends AuthorizedApiBase {
|
|
23270
|
-
http;
|
|
23271
|
-
baseUrl;
|
|
23272
23117
|
constructor(configuration, baseUrl, http) {
|
|
23273
23118
|
super(configuration);
|
|
23274
23119
|
this.http = http ? http : window;
|
|
23275
|
-
this.baseUrl = baseUrl
|
|
23120
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
23276
23121
|
}
|
|
23277
23122
|
listWeldingSourceTypes() {
|
|
23278
23123
|
let url_ = this.baseUrl + "/iot/welding/sourcetypes";
|
|
@@ -23425,12 +23270,10 @@ export class WeldingClient extends AuthorizedApiBase {
|
|
|
23425
23270
|
}
|
|
23426
23271
|
}
|
|
23427
23272
|
export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
23428
|
-
http;
|
|
23429
|
-
baseUrl;
|
|
23430
23273
|
constructor(configuration, baseUrl, http) {
|
|
23431
23274
|
super(configuration);
|
|
23432
23275
|
this.http = http ? http : window;
|
|
23433
|
-
this.baseUrl = baseUrl
|
|
23276
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
23434
23277
|
}
|
|
23435
23278
|
createMaterialCertificateTypes(payload) {
|
|
23436
23279
|
let url_ = this.baseUrl + "/inspect/match/certificate-types";
|
|
@@ -23680,12 +23523,10 @@ export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase {
|
|
|
23680
23523
|
}
|
|
23681
23524
|
}
|
|
23682
23525
|
export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
23683
|
-
http;
|
|
23684
|
-
baseUrl;
|
|
23685
23526
|
constructor(configuration, baseUrl, http) {
|
|
23686
23527
|
super(configuration);
|
|
23687
23528
|
this.http = http ? http : window;
|
|
23688
|
-
this.baseUrl = baseUrl
|
|
23529
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
23689
23530
|
}
|
|
23690
23531
|
getMaterialCertificateTypes(id, version) {
|
|
23691
23532
|
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
@@ -23766,12 +23607,10 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
23766
23607
|
}
|
|
23767
23608
|
}
|
|
23768
23609
|
export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
|
|
23769
|
-
http;
|
|
23770
|
-
baseUrl;
|
|
23771
23610
|
constructor(configuration, baseUrl, http) {
|
|
23772
23611
|
super(configuration);
|
|
23773
23612
|
this.http = http ? http : window;
|
|
23774
|
-
this.baseUrl = baseUrl
|
|
23613
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
23775
23614
|
}
|
|
23776
23615
|
updateMaterialCheckOverrides(id, request) {
|
|
23777
23616
|
let url_ = this.baseUrl + "/inspect/match/material-checks/override/{id}";
|
|
@@ -23937,12 +23776,10 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase {
|
|
|
23937
23776
|
}
|
|
23938
23777
|
}
|
|
23939
23778
|
export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
23940
|
-
http;
|
|
23941
|
-
baseUrl;
|
|
23942
23779
|
constructor(configuration, baseUrl, http) {
|
|
23943
23780
|
super(configuration);
|
|
23944
23781
|
this.http = http ? http : window;
|
|
23945
|
-
this.baseUrl = baseUrl
|
|
23782
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
23946
23783
|
}
|
|
23947
23784
|
getMaterialCheck(id) {
|
|
23948
23785
|
let url_ = this.baseUrl + "/inspect/match/material-checks/{id}";
|
|
@@ -24138,12 +23975,10 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
24138
23975
|
}
|
|
24139
23976
|
}
|
|
24140
23977
|
export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
24141
|
-
http;
|
|
24142
|
-
baseUrl;
|
|
24143
23978
|
constructor(configuration, baseUrl, http) {
|
|
24144
23979
|
super(configuration);
|
|
24145
23980
|
this.http = http ? http : window;
|
|
24146
|
-
this.baseUrl = baseUrl
|
|
23981
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
24147
23982
|
}
|
|
24148
23983
|
searchPurchaseOrders(input) {
|
|
24149
23984
|
let url_ = this.baseUrl + "/inspect/match/purchase-order/search?";
|
|
@@ -24268,12 +24103,10 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
24268
24103
|
}
|
|
24269
24104
|
}
|
|
24270
24105
|
export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
24271
|
-
http;
|
|
24272
|
-
baseUrl;
|
|
24273
24106
|
constructor(configuration, baseUrl, http) {
|
|
24274
24107
|
super(configuration);
|
|
24275
24108
|
this.http = http ? http : window;
|
|
24276
|
-
this.baseUrl = baseUrl
|
|
24109
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
24277
24110
|
}
|
|
24278
24111
|
getSettings() {
|
|
24279
24112
|
let url_ = this.baseUrl + "/inspect/match/settings";
|
|
@@ -24352,12 +24185,10 @@ export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
|
24352
24185
|
}
|
|
24353
24186
|
}
|
|
24354
24187
|
export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
24355
|
-
http;
|
|
24356
|
-
baseUrl;
|
|
24357
24188
|
constructor(configuration, baseUrl, http) {
|
|
24358
24189
|
super(configuration);
|
|
24359
24190
|
this.http = http ? http : window;
|
|
24360
|
-
this.baseUrl = baseUrl
|
|
24191
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
24361
24192
|
}
|
|
24362
24193
|
createSpecification(createRequestDto) {
|
|
24363
24194
|
let url_ = this.baseUrl + "/inspect/match/specifications";
|
|
@@ -24607,12 +24438,10 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
|
24607
24438
|
}
|
|
24608
24439
|
}
|
|
24609
24440
|
export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
24610
|
-
http;
|
|
24611
|
-
baseUrl;
|
|
24612
24441
|
constructor(configuration, baseUrl, http) {
|
|
24613
24442
|
super(configuration);
|
|
24614
24443
|
this.http = http ? http : window;
|
|
24615
|
-
this.baseUrl = baseUrl
|
|
24444
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
24616
24445
|
}
|
|
24617
24446
|
getSpecification(id, version) {
|
|
24618
24447
|
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
@@ -24692,335 +24521,11 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
24692
24521
|
return Promise.resolve(null);
|
|
24693
24522
|
}
|
|
24694
24523
|
}
|
|
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
|
-
}
|
|
25017
24524
|
export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
25018
|
-
http;
|
|
25019
|
-
baseUrl;
|
|
25020
24525
|
constructor(configuration, baseUrl, http) {
|
|
25021
24526
|
super(configuration);
|
|
25022
24527
|
this.http = http ? http : window;
|
|
25023
|
-
this.baseUrl = baseUrl
|
|
24528
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
25024
24529
|
}
|
|
25025
24530
|
getArchivedMeasurementFormSchema(id) {
|
|
25026
24531
|
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
@@ -25429,51 +24934,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
25429
24934
|
}
|
|
25430
24935
|
return Promise.resolve(null);
|
|
25431
24936
|
}
|
|
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
|
-
*/
|
|
25477
24937
|
uploadSchemaDrawing(id, request) {
|
|
25478
24938
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
25479
24939
|
if (id === undefined || id === null)
|
|
@@ -27170,12 +26630,10 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
27170
26630
|
}
|
|
27171
26631
|
}
|
|
27172
26632
|
export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
27173
|
-
http;
|
|
27174
|
-
baseUrl;
|
|
27175
26633
|
constructor(configuration, baseUrl, http) {
|
|
27176
26634
|
super(configuration);
|
|
27177
26635
|
this.http = http ? http : window;
|
|
27178
|
-
this.baseUrl = baseUrl
|
|
26636
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
27179
26637
|
}
|
|
27180
26638
|
getMeasurementFormSchema(id) {
|
|
27181
26639
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
@@ -27293,12 +26751,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
27293
26751
|
}
|
|
27294
26752
|
}
|
|
27295
26753
|
export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
27296
|
-
http;
|
|
27297
|
-
baseUrl;
|
|
27298
26754
|
constructor(configuration, baseUrl, http) {
|
|
27299
26755
|
super(configuration);
|
|
27300
26756
|
this.http = http ? http : window;
|
|
27301
|
-
this.baseUrl = baseUrl
|
|
26757
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
27302
26758
|
}
|
|
27303
26759
|
getMeasurementFormSettings() {
|
|
27304
26760
|
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
@@ -27455,12 +26911,10 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
|
27455
26911
|
}
|
|
27456
26912
|
}
|
|
27457
26913
|
export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
27458
|
-
http;
|
|
27459
|
-
baseUrl;
|
|
27460
26914
|
constructor(configuration, baseUrl, http) {
|
|
27461
26915
|
super(configuration);
|
|
27462
26916
|
this.http = http ? http : window;
|
|
27463
|
-
this.baseUrl = baseUrl
|
|
26917
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
27464
26918
|
}
|
|
27465
26919
|
approveMeasurementFormInstance(id) {
|
|
27466
26920
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
|
|
@@ -27581,12 +27035,10 @@ export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
|
27581
27035
|
}
|
|
27582
27036
|
}
|
|
27583
27037
|
export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
27584
|
-
http;
|
|
27585
|
-
baseUrl;
|
|
27586
27038
|
constructor(configuration, baseUrl, http) {
|
|
27587
27039
|
super(configuration);
|
|
27588
27040
|
this.http = http ? http : window;
|
|
27589
|
-
this.baseUrl = baseUrl
|
|
27041
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
27590
27042
|
}
|
|
27591
27043
|
listMeasurementForms(pageSize, search, continuationToken, tenantId, inactive, includeInactiveSupplierAccess) {
|
|
27592
27044
|
let url_ = this.baseUrl + "/measurementforms/instances?";
|
|
@@ -27885,50 +27337,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27885
27337
|
}
|
|
27886
27338
|
return Promise.resolve(null);
|
|
27887
27339
|
}
|
|
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
|
-
}
|
|
27932
27340
|
getWorkorderMeasurementFormProgress(id, tenantId) {
|
|
27933
27341
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
27934
27342
|
if (id === undefined || id === null)
|
|
@@ -28525,12 +27933,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
28525
27933
|
}
|
|
28526
27934
|
}
|
|
28527
27935
|
export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiBase {
|
|
28528
|
-
http;
|
|
28529
|
-
baseUrl;
|
|
28530
27936
|
constructor(configuration, baseUrl, http) {
|
|
28531
27937
|
super(configuration);
|
|
28532
27938
|
this.http = http ? http : window;
|
|
28533
|
-
this.baseUrl = baseUrl
|
|
27939
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
28534
27940
|
}
|
|
28535
27941
|
createMeasurementFormInstance(id) {
|
|
28536
27942
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
@@ -28905,12 +28311,10 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
28905
28311
|
}
|
|
28906
28312
|
}
|
|
28907
28313
|
export class CompaniesClient extends AuthorizedApiBase {
|
|
28908
|
-
http;
|
|
28909
|
-
baseUrl;
|
|
28910
28314
|
constructor(configuration, baseUrl, http) {
|
|
28911
28315
|
super(configuration);
|
|
28912
28316
|
this.http = http ? http : window;
|
|
28913
|
-
this.baseUrl = baseUrl
|
|
28317
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
28914
28318
|
}
|
|
28915
28319
|
listProductionCompanies() {
|
|
28916
28320
|
let url_ = this.baseUrl + "/erp/companies";
|
|
@@ -28989,12 +28393,10 @@ export class CompaniesClient extends AuthorizedApiBase {
|
|
|
28989
28393
|
}
|
|
28990
28394
|
}
|
|
28991
28395
|
export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
28992
|
-
http;
|
|
28993
|
-
baseUrl;
|
|
28994
28396
|
constructor(configuration, baseUrl, http) {
|
|
28995
28397
|
super(configuration);
|
|
28996
28398
|
this.http = http ? http : window;
|
|
28997
|
-
this.baseUrl = baseUrl
|
|
28399
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
28998
28400
|
}
|
|
28999
28401
|
/**
|
|
29000
28402
|
* Upsert a customer order
|
|
@@ -29266,12 +28668,10 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
29266
28668
|
}
|
|
29267
28669
|
}
|
|
29268
28670
|
export class ErpUsersClient extends AuthorizedApiBase {
|
|
29269
|
-
http;
|
|
29270
|
-
baseUrl;
|
|
29271
28671
|
constructor(configuration, baseUrl, http) {
|
|
29272
28672
|
super(configuration);
|
|
29273
28673
|
this.http = http ? http : window;
|
|
29274
|
-
this.baseUrl = baseUrl
|
|
28674
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
29275
28675
|
}
|
|
29276
28676
|
listUsers(request) {
|
|
29277
28677
|
let url_ = this.baseUrl + "/erp/users/list";
|
|
@@ -29314,12 +28714,10 @@ export class ErpUsersClient extends AuthorizedApiBase {
|
|
|
29314
28714
|
}
|
|
29315
28715
|
}
|
|
29316
28716
|
export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
29317
|
-
http;
|
|
29318
|
-
baseUrl;
|
|
29319
28717
|
constructor(configuration, baseUrl, http) {
|
|
29320
28718
|
super(configuration);
|
|
29321
28719
|
this.http = http ? http : window;
|
|
29322
|
-
this.baseUrl = baseUrl
|
|
28720
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
29323
28721
|
}
|
|
29324
28722
|
listProductionPools() {
|
|
29325
28723
|
let url_ = this.baseUrl + "/erp/productionpools";
|
|
@@ -29395,12 +28793,10 @@ export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
|
29395
28793
|
}
|
|
29396
28794
|
}
|
|
29397
28795
|
export class WorkordersClient extends AuthorizedApiBase {
|
|
29398
|
-
http;
|
|
29399
|
-
baseUrl;
|
|
29400
28796
|
constructor(configuration, baseUrl, http) {
|
|
29401
28797
|
super(configuration);
|
|
29402
28798
|
this.http = http ? http : window;
|
|
29403
|
-
this.baseUrl = baseUrl
|
|
28799
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
29404
28800
|
}
|
|
29405
28801
|
/**
|
|
29406
28802
|
* Create or update a workorder.
|
|
@@ -30712,20 +30108,15 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
30712
30108
|
}
|
|
30713
30109
|
}
|
|
30714
30110
|
export class ApiException extends Error {
|
|
30715
|
-
message;
|
|
30716
|
-
status;
|
|
30717
|
-
response;
|
|
30718
|
-
headers;
|
|
30719
|
-
result;
|
|
30720
30111
|
constructor(message, status, response, headers, result) {
|
|
30721
30112
|
super();
|
|
30113
|
+
this.isApiException = true;
|
|
30722
30114
|
this.message = message;
|
|
30723
30115
|
this.status = status;
|
|
30724
30116
|
this.response = response;
|
|
30725
30117
|
this.headers = headers;
|
|
30726
30118
|
this.result = result;
|
|
30727
30119
|
}
|
|
30728
|
-
isApiException = true;
|
|
30729
30120
|
static isApiException(obj) {
|
|
30730
30121
|
return obj.isApiException === true;
|
|
30731
30122
|
}
|