@ignos/api-client 20250904.0.12514 → 20250910.0.12573-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/ignosportal-api.d.ts +108 -24
- package/lib/ignosportal-api.js +344 -79
- package/package.json +1 -1
- package/src/ignosportal-api.ts +444 -100
package/lib/ignosportal-api.js
CHANGED
|
@@ -5852,6 +5852,165 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
|
|
|
5852
5852
|
}
|
|
5853
5853
|
return Promise.resolve(null);
|
|
5854
5854
|
}
|
|
5855
|
+
listParentTopics() {
|
|
5856
|
+
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
|
|
5857
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5858
|
+
let options_ = {
|
|
5859
|
+
method: "GET",
|
|
5860
|
+
headers: {
|
|
5861
|
+
"Accept": "application/json"
|
|
5862
|
+
}
|
|
5863
|
+
};
|
|
5864
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5865
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5866
|
+
}).then((_response) => {
|
|
5867
|
+
return this.processListParentTopics(_response);
|
|
5868
|
+
});
|
|
5869
|
+
}
|
|
5870
|
+
processListParentTopics(response) {
|
|
5871
|
+
const status = response.status;
|
|
5872
|
+
let _headers = {};
|
|
5873
|
+
if (response.headers && response.headers.forEach) {
|
|
5874
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5875
|
+
}
|
|
5876
|
+
;
|
|
5877
|
+
if (status === 200) {
|
|
5878
|
+
return response.text().then((_responseText) => {
|
|
5879
|
+
let result200 = null;
|
|
5880
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5881
|
+
if (Array.isArray(resultData200)) {
|
|
5882
|
+
result200 = [];
|
|
5883
|
+
for (let item of resultData200)
|
|
5884
|
+
result200.push(ParentTopicDto.fromJS(item));
|
|
5885
|
+
}
|
|
5886
|
+
return result200;
|
|
5887
|
+
});
|
|
5888
|
+
}
|
|
5889
|
+
else if (status !== 200 && status !== 204) {
|
|
5890
|
+
return response.text().then((_responseText) => {
|
|
5891
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5892
|
+
});
|
|
5893
|
+
}
|
|
5894
|
+
return Promise.resolve(null);
|
|
5895
|
+
}
|
|
5896
|
+
createParentTopic(request) {
|
|
5897
|
+
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
|
|
5898
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5899
|
+
const content_ = JSON.stringify(request);
|
|
5900
|
+
let options_ = {
|
|
5901
|
+
body: content_,
|
|
5902
|
+
method: "POST",
|
|
5903
|
+
headers: {
|
|
5904
|
+
"Content-Type": "application/json",
|
|
5905
|
+
"Accept": "application/json"
|
|
5906
|
+
}
|
|
5907
|
+
};
|
|
5908
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5909
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5910
|
+
}).then((_response) => {
|
|
5911
|
+
return this.processCreateParentTopic(_response);
|
|
5912
|
+
});
|
|
5913
|
+
}
|
|
5914
|
+
processCreateParentTopic(response) {
|
|
5915
|
+
const status = response.status;
|
|
5916
|
+
let _headers = {};
|
|
5917
|
+
if (response.headers && response.headers.forEach) {
|
|
5918
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5919
|
+
}
|
|
5920
|
+
;
|
|
5921
|
+
if (status === 200) {
|
|
5922
|
+
return response.text().then((_responseText) => {
|
|
5923
|
+
let result200 = null;
|
|
5924
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5925
|
+
result200 = ParentTopicDto.fromJS(resultData200);
|
|
5926
|
+
return result200;
|
|
5927
|
+
});
|
|
5928
|
+
}
|
|
5929
|
+
else if (status !== 200 && status !== 204) {
|
|
5930
|
+
return response.text().then((_responseText) => {
|
|
5931
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5932
|
+
});
|
|
5933
|
+
}
|
|
5934
|
+
return Promise.resolve(null);
|
|
5935
|
+
}
|
|
5936
|
+
updateParentTopic(id, request) {
|
|
5937
|
+
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
|
|
5938
|
+
if (id === undefined || id === null)
|
|
5939
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5940
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5941
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5942
|
+
const content_ = JSON.stringify(request);
|
|
5943
|
+
let options_ = {
|
|
5944
|
+
body: content_,
|
|
5945
|
+
method: "PUT",
|
|
5946
|
+
headers: {
|
|
5947
|
+
"Content-Type": "application/json",
|
|
5948
|
+
"Accept": "application/json"
|
|
5949
|
+
}
|
|
5950
|
+
};
|
|
5951
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5952
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5953
|
+
}).then((_response) => {
|
|
5954
|
+
return this.processUpdateParentTopic(_response);
|
|
5955
|
+
});
|
|
5956
|
+
}
|
|
5957
|
+
processUpdateParentTopic(response) {
|
|
5958
|
+
const status = response.status;
|
|
5959
|
+
let _headers = {};
|
|
5960
|
+
if (response.headers && response.headers.forEach) {
|
|
5961
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5962
|
+
}
|
|
5963
|
+
;
|
|
5964
|
+
if (status === 200) {
|
|
5965
|
+
return response.text().then((_responseText) => {
|
|
5966
|
+
let result200 = null;
|
|
5967
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5968
|
+
result200 = ParentTopicDto.fromJS(resultData200);
|
|
5969
|
+
return result200;
|
|
5970
|
+
});
|
|
5971
|
+
}
|
|
5972
|
+
else if (status !== 200 && status !== 204) {
|
|
5973
|
+
return response.text().then((_responseText) => {
|
|
5974
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5975
|
+
});
|
|
5976
|
+
}
|
|
5977
|
+
return Promise.resolve(null);
|
|
5978
|
+
}
|
|
5979
|
+
deleteParentTopic(id) {
|
|
5980
|
+
let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
|
|
5981
|
+
if (id === undefined || id === null)
|
|
5982
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5983
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5984
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5985
|
+
let options_ = {
|
|
5986
|
+
method: "DELETE",
|
|
5987
|
+
headers: {}
|
|
5988
|
+
};
|
|
5989
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5990
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5991
|
+
}).then((_response) => {
|
|
5992
|
+
return this.processDeleteParentTopic(_response);
|
|
5993
|
+
});
|
|
5994
|
+
}
|
|
5995
|
+
processDeleteParentTopic(response) {
|
|
5996
|
+
const status = response.status;
|
|
5997
|
+
let _headers = {};
|
|
5998
|
+
if (response.headers && response.headers.forEach) {
|
|
5999
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6000
|
+
}
|
|
6001
|
+
;
|
|
6002
|
+
if (status === 204) {
|
|
6003
|
+
return response.text().then((_responseText) => {
|
|
6004
|
+
return;
|
|
6005
|
+
});
|
|
6006
|
+
}
|
|
6007
|
+
else if (status !== 200 && status !== 204) {
|
|
6008
|
+
return response.text().then((_responseText) => {
|
|
6009
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6010
|
+
});
|
|
6011
|
+
}
|
|
6012
|
+
return Promise.resolve(null);
|
|
6013
|
+
}
|
|
5855
6014
|
}
|
|
5856
6015
|
export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
5857
6016
|
constructor(configuration, baseUrl, http) {
|
|
@@ -20999,6 +21158,9 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20999
21158
|
}
|
|
21000
21159
|
return Promise.resolve(null);
|
|
21001
21160
|
}
|
|
21161
|
+
/**
|
|
21162
|
+
* @deprecated
|
|
21163
|
+
*/
|
|
21002
21164
|
exportDimensionReport(id, request) {
|
|
21003
21165
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
|
|
21004
21166
|
if (id === undefined || id === null)
|
|
@@ -21042,25 +21204,28 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21042
21204
|
}
|
|
21043
21205
|
return Promise.resolve(null);
|
|
21044
21206
|
}
|
|
21045
|
-
|
|
21046
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21207
|
+
exportDimensionReportV2(id, request) {
|
|
21208
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
21047
21209
|
if (id === undefined || id === null)
|
|
21048
21210
|
throw new Error("The parameter 'id' must be defined.");
|
|
21049
21211
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21050
21212
|
url_ = url_.replace(/[?&]$/, "");
|
|
21213
|
+
const content_ = JSON.stringify(request);
|
|
21051
21214
|
let options_ = {
|
|
21215
|
+
body: content_,
|
|
21052
21216
|
method: "POST",
|
|
21053
21217
|
headers: {
|
|
21218
|
+
"Content-Type": "application/json",
|
|
21054
21219
|
"Accept": "application/json"
|
|
21055
21220
|
}
|
|
21056
21221
|
};
|
|
21057
21222
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21058
21223
|
return this.http.fetch(url_, transformedOptions_);
|
|
21059
21224
|
}).then((_response) => {
|
|
21060
|
-
return this.
|
|
21225
|
+
return this.processExportDimensionReportV2(_response);
|
|
21061
21226
|
});
|
|
21062
21227
|
}
|
|
21063
|
-
|
|
21228
|
+
processExportDimensionReportV2(response) {
|
|
21064
21229
|
const status = response.status;
|
|
21065
21230
|
let _headers = {};
|
|
21066
21231
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21082,59 +21247,14 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21082
21247
|
}
|
|
21083
21248
|
return Promise.resolve(null);
|
|
21084
21249
|
}
|
|
21085
|
-
|
|
21086
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21087
|
-
if (id === undefined || id === null)
|
|
21088
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21089
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21090
|
-
if (schemaId === undefined || schemaId === null)
|
|
21091
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
21092
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21093
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21094
|
-
const content_ = JSON.stringify(request);
|
|
21095
|
-
let options_ = {
|
|
21096
|
-
body: content_,
|
|
21097
|
-
method: "PUT",
|
|
21098
|
-
headers: {
|
|
21099
|
-
"Content-Type": "application/json",
|
|
21100
|
-
}
|
|
21101
|
-
};
|
|
21102
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21103
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21104
|
-
}).then((_response) => {
|
|
21105
|
-
return this.processUpdateSchemaInstanceElements(_response);
|
|
21106
|
-
});
|
|
21107
|
-
}
|
|
21108
|
-
processUpdateSchemaInstanceElements(response) {
|
|
21109
|
-
const status = response.status;
|
|
21110
|
-
let _headers = {};
|
|
21111
|
-
if (response.headers && response.headers.forEach) {
|
|
21112
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21113
|
-
}
|
|
21114
|
-
;
|
|
21115
|
-
if (status === 200) {
|
|
21116
|
-
return response.text().then((_responseText) => {
|
|
21117
|
-
return;
|
|
21118
|
-
});
|
|
21119
|
-
}
|
|
21120
|
-
else if (status !== 200 && status !== 204) {
|
|
21121
|
-
return response.text().then((_responseText) => {
|
|
21122
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21123
|
-
});
|
|
21124
|
-
}
|
|
21125
|
-
return Promise.resolve(null);
|
|
21126
|
-
}
|
|
21127
|
-
getSchemaInstanceElements(id, schemaId) {
|
|
21128
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
|
|
21250
|
+
exportDimensionReportValues(id) {
|
|
21251
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
21129
21252
|
if (id === undefined || id === null)
|
|
21130
21253
|
throw new Error("The parameter 'id' must be defined.");
|
|
21131
21254
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21132
|
-
if (schemaId === undefined || schemaId === null)
|
|
21133
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
21134
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21135
21255
|
url_ = url_.replace(/[?&]$/, "");
|
|
21136
21256
|
let options_ = {
|
|
21137
|
-
method: "
|
|
21257
|
+
method: "POST",
|
|
21138
21258
|
headers: {
|
|
21139
21259
|
"Accept": "application/json"
|
|
21140
21260
|
}
|
|
@@ -21142,10 +21262,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21142
21262
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21143
21263
|
return this.http.fetch(url_, transformedOptions_);
|
|
21144
21264
|
}).then((_response) => {
|
|
21145
|
-
return this.
|
|
21265
|
+
return this.processExportDimensionReportValues(_response);
|
|
21146
21266
|
});
|
|
21147
21267
|
}
|
|
21148
|
-
|
|
21268
|
+
processExportDimensionReportValues(response) {
|
|
21149
21269
|
const status = response.status;
|
|
21150
21270
|
let _headers = {};
|
|
21151
21271
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21156,11 +21276,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21156
21276
|
return response.text().then((_responseText) => {
|
|
21157
21277
|
let result200 = null;
|
|
21158
21278
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21159
|
-
|
|
21160
|
-
result200 = [];
|
|
21161
|
-
for (let item of resultData200)
|
|
21162
|
-
result200.push(SchemaInstanceElementDto.fromJS(item));
|
|
21163
|
-
}
|
|
21279
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
21164
21280
|
return result200;
|
|
21165
21281
|
});
|
|
21166
21282
|
}
|
|
@@ -29411,6 +29527,7 @@ export class DowntimeReasonDto {
|
|
|
29411
29527
|
}
|
|
29412
29528
|
if (!data) {
|
|
29413
29529
|
this.machineTypes = [];
|
|
29530
|
+
this.machineGroups = [];
|
|
29414
29531
|
}
|
|
29415
29532
|
}
|
|
29416
29533
|
init(_data) {
|
|
@@ -29422,8 +29539,15 @@ export class DowntimeReasonDto {
|
|
|
29422
29539
|
for (let item of _data["machineTypes"])
|
|
29423
29540
|
this.machineTypes.push(item);
|
|
29424
29541
|
}
|
|
29542
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
29543
|
+
this.machineGroups = [];
|
|
29544
|
+
for (let item of _data["machineGroups"])
|
|
29545
|
+
this.machineGroups.push(item);
|
|
29546
|
+
}
|
|
29425
29547
|
this.reasonType = _data["reasonType"];
|
|
29426
29548
|
this.description = _data["description"];
|
|
29549
|
+
this.parentId = _data["parentId"];
|
|
29550
|
+
this.displayOrder = _data["displayOrder"];
|
|
29427
29551
|
}
|
|
29428
29552
|
}
|
|
29429
29553
|
static fromJS(data) {
|
|
@@ -29441,8 +29565,15 @@ export class DowntimeReasonDto {
|
|
|
29441
29565
|
for (let item of this.machineTypes)
|
|
29442
29566
|
data["machineTypes"].push(item);
|
|
29443
29567
|
}
|
|
29568
|
+
if (Array.isArray(this.machineGroups)) {
|
|
29569
|
+
data["machineGroups"] = [];
|
|
29570
|
+
for (let item of this.machineGroups)
|
|
29571
|
+
data["machineGroups"].push(item);
|
|
29572
|
+
}
|
|
29444
29573
|
data["reasonType"] = this.reasonType;
|
|
29445
29574
|
data["description"] = this.description;
|
|
29575
|
+
data["parentId"] = this.parentId;
|
|
29576
|
+
data["displayOrder"] = this.displayOrder;
|
|
29446
29577
|
return data;
|
|
29447
29578
|
}
|
|
29448
29579
|
}
|
|
@@ -29466,8 +29597,15 @@ export class CreateDowntimeReason {
|
|
|
29466
29597
|
for (let item of _data["machineTypes"])
|
|
29467
29598
|
this.machineTypes.push(item);
|
|
29468
29599
|
}
|
|
29600
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
29601
|
+
this.machineGroups = [];
|
|
29602
|
+
for (let item of _data["machineGroups"])
|
|
29603
|
+
this.machineGroups.push(item);
|
|
29604
|
+
}
|
|
29469
29605
|
this.reasonType = _data["reasonType"];
|
|
29470
29606
|
this.description = _data["description"];
|
|
29607
|
+
this.parentId = _data["parentId"];
|
|
29608
|
+
this.displayOrder = _data["displayOrder"];
|
|
29471
29609
|
}
|
|
29472
29610
|
}
|
|
29473
29611
|
static fromJS(data) {
|
|
@@ -29484,8 +29622,15 @@ export class CreateDowntimeReason {
|
|
|
29484
29622
|
for (let item of this.machineTypes)
|
|
29485
29623
|
data["machineTypes"].push(item);
|
|
29486
29624
|
}
|
|
29625
|
+
if (Array.isArray(this.machineGroups)) {
|
|
29626
|
+
data["machineGroups"] = [];
|
|
29627
|
+
for (let item of this.machineGroups)
|
|
29628
|
+
data["machineGroups"].push(item);
|
|
29629
|
+
}
|
|
29487
29630
|
data["reasonType"] = this.reasonType;
|
|
29488
29631
|
data["description"] = this.description;
|
|
29632
|
+
data["parentId"] = this.parentId;
|
|
29633
|
+
data["displayOrder"] = this.displayOrder;
|
|
29489
29634
|
return data;
|
|
29490
29635
|
}
|
|
29491
29636
|
}
|
|
@@ -29509,8 +29654,15 @@ export class UpdateDowntimeReasonRequest {
|
|
|
29509
29654
|
for (let item of _data["machineTypes"])
|
|
29510
29655
|
this.machineTypes.push(item);
|
|
29511
29656
|
}
|
|
29657
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
29658
|
+
this.machineGroups = [];
|
|
29659
|
+
for (let item of _data["machineGroups"])
|
|
29660
|
+
this.machineGroups.push(item);
|
|
29661
|
+
}
|
|
29512
29662
|
this.reasonType = _data["reasonType"];
|
|
29513
29663
|
this.description = _data["description"];
|
|
29664
|
+
this.parentId = _data["parentId"];
|
|
29665
|
+
this.displayOrder = _data["displayOrder"];
|
|
29514
29666
|
}
|
|
29515
29667
|
}
|
|
29516
29668
|
static fromJS(data) {
|
|
@@ -29527,8 +29679,15 @@ export class UpdateDowntimeReasonRequest {
|
|
|
29527
29679
|
for (let item of this.machineTypes)
|
|
29528
29680
|
data["machineTypes"].push(item);
|
|
29529
29681
|
}
|
|
29682
|
+
if (Array.isArray(this.machineGroups)) {
|
|
29683
|
+
data["machineGroups"] = [];
|
|
29684
|
+
for (let item of this.machineGroups)
|
|
29685
|
+
data["machineGroups"].push(item);
|
|
29686
|
+
}
|
|
29530
29687
|
data["reasonType"] = this.reasonType;
|
|
29531
29688
|
data["description"] = this.description;
|
|
29689
|
+
data["parentId"] = this.parentId;
|
|
29690
|
+
data["displayOrder"] = this.displayOrder;
|
|
29532
29691
|
return data;
|
|
29533
29692
|
}
|
|
29534
29693
|
}
|
|
@@ -29558,6 +29717,108 @@ export class MachineTypeDto {
|
|
|
29558
29717
|
return data;
|
|
29559
29718
|
}
|
|
29560
29719
|
}
|
|
29720
|
+
export class ParentTopicDto {
|
|
29721
|
+
constructor(data) {
|
|
29722
|
+
if (data) {
|
|
29723
|
+
for (var property in data) {
|
|
29724
|
+
if (data.hasOwnProperty(property))
|
|
29725
|
+
this[property] = data[property];
|
|
29726
|
+
}
|
|
29727
|
+
}
|
|
29728
|
+
}
|
|
29729
|
+
init(_data) {
|
|
29730
|
+
if (_data) {
|
|
29731
|
+
this.id = _data["id"];
|
|
29732
|
+
this.name = _data["name"];
|
|
29733
|
+
this.description = _data["description"];
|
|
29734
|
+
this.displayOrder = _data["displayOrder"];
|
|
29735
|
+
if (Array.isArray(_data["subReasons"])) {
|
|
29736
|
+
this.subReasons = [];
|
|
29737
|
+
for (let item of _data["subReasons"])
|
|
29738
|
+
this.subReasons.push(DowntimeReasonDto.fromJS(item));
|
|
29739
|
+
}
|
|
29740
|
+
}
|
|
29741
|
+
}
|
|
29742
|
+
static fromJS(data) {
|
|
29743
|
+
data = typeof data === 'object' ? data : {};
|
|
29744
|
+
let result = new ParentTopicDto();
|
|
29745
|
+
result.init(data);
|
|
29746
|
+
return result;
|
|
29747
|
+
}
|
|
29748
|
+
toJSON(data) {
|
|
29749
|
+
data = typeof data === 'object' ? data : {};
|
|
29750
|
+
data["id"] = this.id;
|
|
29751
|
+
data["name"] = this.name;
|
|
29752
|
+
data["description"] = this.description;
|
|
29753
|
+
data["displayOrder"] = this.displayOrder;
|
|
29754
|
+
if (Array.isArray(this.subReasons)) {
|
|
29755
|
+
data["subReasons"] = [];
|
|
29756
|
+
for (let item of this.subReasons)
|
|
29757
|
+
data["subReasons"].push(item.toJSON());
|
|
29758
|
+
}
|
|
29759
|
+
return data;
|
|
29760
|
+
}
|
|
29761
|
+
}
|
|
29762
|
+
export class CreateParentTopicRequest {
|
|
29763
|
+
constructor(data) {
|
|
29764
|
+
if (data) {
|
|
29765
|
+
for (var property in data) {
|
|
29766
|
+
if (data.hasOwnProperty(property))
|
|
29767
|
+
this[property] = data[property];
|
|
29768
|
+
}
|
|
29769
|
+
}
|
|
29770
|
+
}
|
|
29771
|
+
init(_data) {
|
|
29772
|
+
if (_data) {
|
|
29773
|
+
this.name = _data["name"];
|
|
29774
|
+
this.description = _data["description"];
|
|
29775
|
+
this.displayOrder = _data["displayOrder"];
|
|
29776
|
+
}
|
|
29777
|
+
}
|
|
29778
|
+
static fromJS(data) {
|
|
29779
|
+
data = typeof data === 'object' ? data : {};
|
|
29780
|
+
let result = new CreateParentTopicRequest();
|
|
29781
|
+
result.init(data);
|
|
29782
|
+
return result;
|
|
29783
|
+
}
|
|
29784
|
+
toJSON(data) {
|
|
29785
|
+
data = typeof data === 'object' ? data : {};
|
|
29786
|
+
data["name"] = this.name;
|
|
29787
|
+
data["description"] = this.description;
|
|
29788
|
+
data["displayOrder"] = this.displayOrder;
|
|
29789
|
+
return data;
|
|
29790
|
+
}
|
|
29791
|
+
}
|
|
29792
|
+
export class UpdateParentTopicRequest {
|
|
29793
|
+
constructor(data) {
|
|
29794
|
+
if (data) {
|
|
29795
|
+
for (var property in data) {
|
|
29796
|
+
if (data.hasOwnProperty(property))
|
|
29797
|
+
this[property] = data[property];
|
|
29798
|
+
}
|
|
29799
|
+
}
|
|
29800
|
+
}
|
|
29801
|
+
init(_data) {
|
|
29802
|
+
if (_data) {
|
|
29803
|
+
this.name = _data["name"];
|
|
29804
|
+
this.description = _data["description"];
|
|
29805
|
+
this.displayOrder = _data["displayOrder"];
|
|
29806
|
+
}
|
|
29807
|
+
}
|
|
29808
|
+
static fromJS(data) {
|
|
29809
|
+
data = typeof data === 'object' ? data : {};
|
|
29810
|
+
let result = new UpdateParentTopicRequest();
|
|
29811
|
+
result.init(data);
|
|
29812
|
+
return result;
|
|
29813
|
+
}
|
|
29814
|
+
toJSON(data) {
|
|
29815
|
+
data = typeof data === 'object' ? data : {};
|
|
29816
|
+
data["name"] = this.name;
|
|
29817
|
+
data["description"] = this.description;
|
|
29818
|
+
data["displayOrder"] = this.displayOrder;
|
|
29819
|
+
return data;
|
|
29820
|
+
}
|
|
29821
|
+
}
|
|
29561
29822
|
export class CreateDowntimePeriodReason {
|
|
29562
29823
|
constructor(data) {
|
|
29563
29824
|
if (data) {
|
|
@@ -45553,7 +45814,7 @@ export class ExportDimensionReportRequest {
|
|
|
45553
45814
|
return data;
|
|
45554
45815
|
}
|
|
45555
45816
|
}
|
|
45556
|
-
export class
|
|
45817
|
+
export class ExportDimensionReportV2Request {
|
|
45557
45818
|
constructor(data) {
|
|
45558
45819
|
if (data) {
|
|
45559
45820
|
for (var property in data) {
|
|
@@ -45564,30 +45825,36 @@ export class UpdateSchemaInstanceElementsRequest {
|
|
|
45564
45825
|
}
|
|
45565
45826
|
init(_data) {
|
|
45566
45827
|
if (_data) {
|
|
45567
|
-
|
|
45568
|
-
|
|
45569
|
-
|
|
45570
|
-
|
|
45828
|
+
this.tenantId = _data["tenantId"];
|
|
45829
|
+
this.type = _data["type"];
|
|
45830
|
+
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined;
|
|
45831
|
+
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
45832
|
+
this.specificSerialNumbers = [];
|
|
45833
|
+
for (let item of _data["specificSerialNumbers"])
|
|
45834
|
+
this.specificSerialNumbers.push(item);
|
|
45571
45835
|
}
|
|
45572
45836
|
}
|
|
45573
45837
|
}
|
|
45574
45838
|
static fromJS(data) {
|
|
45575
45839
|
data = typeof data === 'object' ? data : {};
|
|
45576
|
-
let result = new
|
|
45840
|
+
let result = new ExportDimensionReportV2Request();
|
|
45577
45841
|
result.init(data);
|
|
45578
45842
|
return result;
|
|
45579
45843
|
}
|
|
45580
45844
|
toJSON(data) {
|
|
45581
45845
|
data = typeof data === 'object' ? data : {};
|
|
45582
|
-
|
|
45583
|
-
|
|
45584
|
-
|
|
45585
|
-
|
|
45846
|
+
data["tenantId"] = this.tenantId;
|
|
45847
|
+
data["type"] = this.type;
|
|
45848
|
+
data["extras"] = this.extras ? this.extras.toJSON() : undefined;
|
|
45849
|
+
if (Array.isArray(this.specificSerialNumbers)) {
|
|
45850
|
+
data["specificSerialNumbers"] = [];
|
|
45851
|
+
for (let item of this.specificSerialNumbers)
|
|
45852
|
+
data["specificSerialNumbers"].push(item);
|
|
45586
45853
|
}
|
|
45587
45854
|
return data;
|
|
45588
45855
|
}
|
|
45589
45856
|
}
|
|
45590
|
-
export class
|
|
45857
|
+
export class DimensionReportExtras {
|
|
45591
45858
|
constructor(data) {
|
|
45592
45859
|
if (data) {
|
|
45593
45860
|
for (var property in data) {
|
|
@@ -45598,24 +45865,22 @@ export class SchemaInstanceElementDto {
|
|
|
45598
45865
|
}
|
|
45599
45866
|
init(_data) {
|
|
45600
45867
|
if (_data) {
|
|
45601
|
-
this.
|
|
45602
|
-
this.
|
|
45603
|
-
this.
|
|
45604
|
-
this.disabled = _data["disabled"];
|
|
45868
|
+
this.customerPO = _data["customerPO"];
|
|
45869
|
+
this.workOrderNumber = _data["workOrderNumber"];
|
|
45870
|
+
this.comment = _data["comment"];
|
|
45605
45871
|
}
|
|
45606
45872
|
}
|
|
45607
45873
|
static fromJS(data) {
|
|
45608
45874
|
data = typeof data === 'object' ? data : {};
|
|
45609
|
-
let result = new
|
|
45875
|
+
let result = new DimensionReportExtras();
|
|
45610
45876
|
result.init(data);
|
|
45611
45877
|
return result;
|
|
45612
45878
|
}
|
|
45613
45879
|
toJSON(data) {
|
|
45614
45880
|
data = typeof data === 'object' ? data : {};
|
|
45615
|
-
data["
|
|
45616
|
-
data["
|
|
45617
|
-
data["
|
|
45618
|
-
data["disabled"] = this.disabled;
|
|
45881
|
+
data["customerPO"] = this.customerPO;
|
|
45882
|
+
data["workOrderNumber"] = this.workOrderNumber;
|
|
45883
|
+
data["comment"] = this.comment;
|
|
45619
45884
|
return data;
|
|
45620
45885
|
}
|
|
45621
45886
|
}
|