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