@ignos/api-client 20250901.0.12482 → 20250910.0.12568
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 +94 -44
- package/lib/ignosportal-api.js +323 -162
- package/package.json +1 -1
- package/src/ignosportal-api.ts +412 -203
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) {
|
|
@@ -11822,9 +11981,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11822
11981
|
throw new Error("The parameter 'input' cannot be null.");
|
|
11823
11982
|
else if (input !== undefined)
|
|
11824
11983
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
11825
|
-
if (fixtureType
|
|
11826
|
-
throw new Error("The parameter 'fixtureType' cannot be null.");
|
|
11827
|
-
else if (fixtureType !== undefined)
|
|
11984
|
+
if (fixtureType !== undefined && fixtureType !== null)
|
|
11828
11985
|
url_ += "fixtureType=" + encodeURIComponent("" + fixtureType) + "&";
|
|
11829
11986
|
url_ = url_.replace(/[?&]$/, "");
|
|
11830
11987
|
let options_ = {
|
|
@@ -11871,9 +12028,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11871
12028
|
throw new Error("The parameter 'input' cannot be null.");
|
|
11872
12029
|
else if (input !== undefined)
|
|
11873
12030
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
11874
|
-
if (fixtureType
|
|
11875
|
-
throw new Error("The parameter 'fixtureType' cannot be null.");
|
|
11876
|
-
else if (fixtureType !== undefined)
|
|
12031
|
+
if (fixtureType !== undefined && fixtureType !== null)
|
|
11877
12032
|
url_ += "fixtureType=" + encodeURIComponent("" + fixtureType) + "&";
|
|
11878
12033
|
url_ = url_.replace(/[?&]$/, "");
|
|
11879
12034
|
let options_ = {
|
|
@@ -21086,95 +21241,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21086
21241
|
}
|
|
21087
21242
|
return Promise.resolve(null);
|
|
21088
21243
|
}
|
|
21089
|
-
updateSchemaInstanceElements(id, schemaId, request) {
|
|
21090
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
|
|
21091
|
-
if (id === undefined || id === null)
|
|
21092
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21093
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21094
|
-
if (schemaId === undefined || schemaId === null)
|
|
21095
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
21096
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21097
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21098
|
-
const content_ = JSON.stringify(request);
|
|
21099
|
-
let options_ = {
|
|
21100
|
-
body: content_,
|
|
21101
|
-
method: "PUT",
|
|
21102
|
-
headers: {
|
|
21103
|
-
"Content-Type": "application/json",
|
|
21104
|
-
}
|
|
21105
|
-
};
|
|
21106
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21107
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21108
|
-
}).then((_response) => {
|
|
21109
|
-
return this.processUpdateSchemaInstanceElements(_response);
|
|
21110
|
-
});
|
|
21111
|
-
}
|
|
21112
|
-
processUpdateSchemaInstanceElements(response) {
|
|
21113
|
-
const status = response.status;
|
|
21114
|
-
let _headers = {};
|
|
21115
|
-
if (response.headers && response.headers.forEach) {
|
|
21116
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21117
|
-
}
|
|
21118
|
-
;
|
|
21119
|
-
if (status === 200) {
|
|
21120
|
-
return response.text().then((_responseText) => {
|
|
21121
|
-
return;
|
|
21122
|
-
});
|
|
21123
|
-
}
|
|
21124
|
-
else if (status !== 200 && status !== 204) {
|
|
21125
|
-
return response.text().then((_responseText) => {
|
|
21126
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21127
|
-
});
|
|
21128
|
-
}
|
|
21129
|
-
return Promise.resolve(null);
|
|
21130
|
-
}
|
|
21131
|
-
getSchemaInstanceElements(id, schemaId) {
|
|
21132
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
|
|
21133
|
-
if (id === undefined || id === null)
|
|
21134
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
21135
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21136
|
-
if (schemaId === undefined || schemaId === null)
|
|
21137
|
-
throw new Error("The parameter 'schemaId' must be defined.");
|
|
21138
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21139
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21140
|
-
let options_ = {
|
|
21141
|
-
method: "GET",
|
|
21142
|
-
headers: {
|
|
21143
|
-
"Accept": "application/json"
|
|
21144
|
-
}
|
|
21145
|
-
};
|
|
21146
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21147
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21148
|
-
}).then((_response) => {
|
|
21149
|
-
return this.processGetSchemaInstanceElements(_response);
|
|
21150
|
-
});
|
|
21151
|
-
}
|
|
21152
|
-
processGetSchemaInstanceElements(response) {
|
|
21153
|
-
const status = response.status;
|
|
21154
|
-
let _headers = {};
|
|
21155
|
-
if (response.headers && response.headers.forEach) {
|
|
21156
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21157
|
-
}
|
|
21158
|
-
;
|
|
21159
|
-
if (status === 200) {
|
|
21160
|
-
return response.text().then((_responseText) => {
|
|
21161
|
-
let result200 = null;
|
|
21162
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21163
|
-
if (Array.isArray(resultData200)) {
|
|
21164
|
-
result200 = [];
|
|
21165
|
-
for (let item of resultData200)
|
|
21166
|
-
result200.push(SchemaInstanceElementDto.fromJS(item));
|
|
21167
|
-
}
|
|
21168
|
-
return result200;
|
|
21169
|
-
});
|
|
21170
|
-
}
|
|
21171
|
-
else if (status !== 200 && status !== 204) {
|
|
21172
|
-
return response.text().then((_responseText) => {
|
|
21173
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21174
|
-
});
|
|
21175
|
-
}
|
|
21176
|
-
return Promise.resolve(null);
|
|
21177
|
-
}
|
|
21178
21244
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id, schemaId, elementId, tenantId) {
|
|
21179
21245
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements/{elementId}/toggle-override-documented-externally?";
|
|
21180
21246
|
if (id === undefined || id === null)
|
|
@@ -23800,6 +23866,8 @@ export class WorkOrderDatapoint {
|
|
|
23800
23866
|
this.subType = _data["subType"];
|
|
23801
23867
|
this.startTime = _data["startTime"];
|
|
23802
23868
|
this.endTime = _data["endTime"];
|
|
23869
|
+
this.partName = _data["partName"];
|
|
23870
|
+
this.partNumber = _data["partNumber"];
|
|
23803
23871
|
if (_data["metaData"]) {
|
|
23804
23872
|
this.metaData = {};
|
|
23805
23873
|
for (let key in _data["metaData"]) {
|
|
@@ -23823,6 +23891,8 @@ export class WorkOrderDatapoint {
|
|
|
23823
23891
|
data["subType"] = this.subType;
|
|
23824
23892
|
data["startTime"] = this.startTime;
|
|
23825
23893
|
data["endTime"] = this.endTime;
|
|
23894
|
+
data["partName"] = this.partName;
|
|
23895
|
+
data["partNumber"] = this.partNumber;
|
|
23826
23896
|
if (this.metaData) {
|
|
23827
23897
|
data["metaData"] = {};
|
|
23828
23898
|
for (let key in this.metaData) {
|
|
@@ -29415,6 +29485,7 @@ export class DowntimeReasonDto {
|
|
|
29415
29485
|
}
|
|
29416
29486
|
if (!data) {
|
|
29417
29487
|
this.machineTypes = [];
|
|
29488
|
+
this.machineGroups = [];
|
|
29418
29489
|
}
|
|
29419
29490
|
}
|
|
29420
29491
|
init(_data) {
|
|
@@ -29426,8 +29497,15 @@ export class DowntimeReasonDto {
|
|
|
29426
29497
|
for (let item of _data["machineTypes"])
|
|
29427
29498
|
this.machineTypes.push(item);
|
|
29428
29499
|
}
|
|
29500
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
29501
|
+
this.machineGroups = [];
|
|
29502
|
+
for (let item of _data["machineGroups"])
|
|
29503
|
+
this.machineGroups.push(item);
|
|
29504
|
+
}
|
|
29429
29505
|
this.reasonType = _data["reasonType"];
|
|
29430
29506
|
this.description = _data["description"];
|
|
29507
|
+
this.parentId = _data["parentId"];
|
|
29508
|
+
this.displayOrder = _data["displayOrder"];
|
|
29431
29509
|
}
|
|
29432
29510
|
}
|
|
29433
29511
|
static fromJS(data) {
|
|
@@ -29445,8 +29523,15 @@ export class DowntimeReasonDto {
|
|
|
29445
29523
|
for (let item of this.machineTypes)
|
|
29446
29524
|
data["machineTypes"].push(item);
|
|
29447
29525
|
}
|
|
29526
|
+
if (Array.isArray(this.machineGroups)) {
|
|
29527
|
+
data["machineGroups"] = [];
|
|
29528
|
+
for (let item of this.machineGroups)
|
|
29529
|
+
data["machineGroups"].push(item);
|
|
29530
|
+
}
|
|
29448
29531
|
data["reasonType"] = this.reasonType;
|
|
29449
29532
|
data["description"] = this.description;
|
|
29533
|
+
data["parentId"] = this.parentId;
|
|
29534
|
+
data["displayOrder"] = this.displayOrder;
|
|
29450
29535
|
return data;
|
|
29451
29536
|
}
|
|
29452
29537
|
}
|
|
@@ -29470,8 +29555,15 @@ export class CreateDowntimeReason {
|
|
|
29470
29555
|
for (let item of _data["machineTypes"])
|
|
29471
29556
|
this.machineTypes.push(item);
|
|
29472
29557
|
}
|
|
29558
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
29559
|
+
this.machineGroups = [];
|
|
29560
|
+
for (let item of _data["machineGroups"])
|
|
29561
|
+
this.machineGroups.push(item);
|
|
29562
|
+
}
|
|
29473
29563
|
this.reasonType = _data["reasonType"];
|
|
29474
29564
|
this.description = _data["description"];
|
|
29565
|
+
this.parentId = _data["parentId"];
|
|
29566
|
+
this.displayOrder = _data["displayOrder"];
|
|
29475
29567
|
}
|
|
29476
29568
|
}
|
|
29477
29569
|
static fromJS(data) {
|
|
@@ -29488,8 +29580,15 @@ export class CreateDowntimeReason {
|
|
|
29488
29580
|
for (let item of this.machineTypes)
|
|
29489
29581
|
data["machineTypes"].push(item);
|
|
29490
29582
|
}
|
|
29583
|
+
if (Array.isArray(this.machineGroups)) {
|
|
29584
|
+
data["machineGroups"] = [];
|
|
29585
|
+
for (let item of this.machineGroups)
|
|
29586
|
+
data["machineGroups"].push(item);
|
|
29587
|
+
}
|
|
29491
29588
|
data["reasonType"] = this.reasonType;
|
|
29492
29589
|
data["description"] = this.description;
|
|
29590
|
+
data["parentId"] = this.parentId;
|
|
29591
|
+
data["displayOrder"] = this.displayOrder;
|
|
29493
29592
|
return data;
|
|
29494
29593
|
}
|
|
29495
29594
|
}
|
|
@@ -29513,8 +29612,15 @@ export class UpdateDowntimeReasonRequest {
|
|
|
29513
29612
|
for (let item of _data["machineTypes"])
|
|
29514
29613
|
this.machineTypes.push(item);
|
|
29515
29614
|
}
|
|
29615
|
+
if (Array.isArray(_data["machineGroups"])) {
|
|
29616
|
+
this.machineGroups = [];
|
|
29617
|
+
for (let item of _data["machineGroups"])
|
|
29618
|
+
this.machineGroups.push(item);
|
|
29619
|
+
}
|
|
29516
29620
|
this.reasonType = _data["reasonType"];
|
|
29517
29621
|
this.description = _data["description"];
|
|
29622
|
+
this.parentId = _data["parentId"];
|
|
29623
|
+
this.displayOrder = _data["displayOrder"];
|
|
29518
29624
|
}
|
|
29519
29625
|
}
|
|
29520
29626
|
static fromJS(data) {
|
|
@@ -29531,8 +29637,15 @@ export class UpdateDowntimeReasonRequest {
|
|
|
29531
29637
|
for (let item of this.machineTypes)
|
|
29532
29638
|
data["machineTypes"].push(item);
|
|
29533
29639
|
}
|
|
29640
|
+
if (Array.isArray(this.machineGroups)) {
|
|
29641
|
+
data["machineGroups"] = [];
|
|
29642
|
+
for (let item of this.machineGroups)
|
|
29643
|
+
data["machineGroups"].push(item);
|
|
29644
|
+
}
|
|
29534
29645
|
data["reasonType"] = this.reasonType;
|
|
29535
29646
|
data["description"] = this.description;
|
|
29647
|
+
data["parentId"] = this.parentId;
|
|
29648
|
+
data["displayOrder"] = this.displayOrder;
|
|
29536
29649
|
return data;
|
|
29537
29650
|
}
|
|
29538
29651
|
}
|
|
@@ -29562,6 +29675,108 @@ export class MachineTypeDto {
|
|
|
29562
29675
|
return data;
|
|
29563
29676
|
}
|
|
29564
29677
|
}
|
|
29678
|
+
export class ParentTopicDto {
|
|
29679
|
+
constructor(data) {
|
|
29680
|
+
if (data) {
|
|
29681
|
+
for (var property in data) {
|
|
29682
|
+
if (data.hasOwnProperty(property))
|
|
29683
|
+
this[property] = data[property];
|
|
29684
|
+
}
|
|
29685
|
+
}
|
|
29686
|
+
}
|
|
29687
|
+
init(_data) {
|
|
29688
|
+
if (_data) {
|
|
29689
|
+
this.id = _data["id"];
|
|
29690
|
+
this.name = _data["name"];
|
|
29691
|
+
this.description = _data["description"];
|
|
29692
|
+
this.displayOrder = _data["displayOrder"];
|
|
29693
|
+
if (Array.isArray(_data["subReasons"])) {
|
|
29694
|
+
this.subReasons = [];
|
|
29695
|
+
for (let item of _data["subReasons"])
|
|
29696
|
+
this.subReasons.push(DowntimeReasonDto.fromJS(item));
|
|
29697
|
+
}
|
|
29698
|
+
}
|
|
29699
|
+
}
|
|
29700
|
+
static fromJS(data) {
|
|
29701
|
+
data = typeof data === 'object' ? data : {};
|
|
29702
|
+
let result = new ParentTopicDto();
|
|
29703
|
+
result.init(data);
|
|
29704
|
+
return result;
|
|
29705
|
+
}
|
|
29706
|
+
toJSON(data) {
|
|
29707
|
+
data = typeof data === 'object' ? data : {};
|
|
29708
|
+
data["id"] = this.id;
|
|
29709
|
+
data["name"] = this.name;
|
|
29710
|
+
data["description"] = this.description;
|
|
29711
|
+
data["displayOrder"] = this.displayOrder;
|
|
29712
|
+
if (Array.isArray(this.subReasons)) {
|
|
29713
|
+
data["subReasons"] = [];
|
|
29714
|
+
for (let item of this.subReasons)
|
|
29715
|
+
data["subReasons"].push(item.toJSON());
|
|
29716
|
+
}
|
|
29717
|
+
return data;
|
|
29718
|
+
}
|
|
29719
|
+
}
|
|
29720
|
+
export class CreateParentTopicRequest {
|
|
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.name = _data["name"];
|
|
29732
|
+
this.description = _data["description"];
|
|
29733
|
+
this.displayOrder = _data["displayOrder"];
|
|
29734
|
+
}
|
|
29735
|
+
}
|
|
29736
|
+
static fromJS(data) {
|
|
29737
|
+
data = typeof data === 'object' ? data : {};
|
|
29738
|
+
let result = new CreateParentTopicRequest();
|
|
29739
|
+
result.init(data);
|
|
29740
|
+
return result;
|
|
29741
|
+
}
|
|
29742
|
+
toJSON(data) {
|
|
29743
|
+
data = typeof data === 'object' ? data : {};
|
|
29744
|
+
data["name"] = this.name;
|
|
29745
|
+
data["description"] = this.description;
|
|
29746
|
+
data["displayOrder"] = this.displayOrder;
|
|
29747
|
+
return data;
|
|
29748
|
+
}
|
|
29749
|
+
}
|
|
29750
|
+
export class UpdateParentTopicRequest {
|
|
29751
|
+
constructor(data) {
|
|
29752
|
+
if (data) {
|
|
29753
|
+
for (var property in data) {
|
|
29754
|
+
if (data.hasOwnProperty(property))
|
|
29755
|
+
this[property] = data[property];
|
|
29756
|
+
}
|
|
29757
|
+
}
|
|
29758
|
+
}
|
|
29759
|
+
init(_data) {
|
|
29760
|
+
if (_data) {
|
|
29761
|
+
this.name = _data["name"];
|
|
29762
|
+
this.description = _data["description"];
|
|
29763
|
+
this.displayOrder = _data["displayOrder"];
|
|
29764
|
+
}
|
|
29765
|
+
}
|
|
29766
|
+
static fromJS(data) {
|
|
29767
|
+
data = typeof data === 'object' ? data : {};
|
|
29768
|
+
let result = new UpdateParentTopicRequest();
|
|
29769
|
+
result.init(data);
|
|
29770
|
+
return result;
|
|
29771
|
+
}
|
|
29772
|
+
toJSON(data) {
|
|
29773
|
+
data = typeof data === 'object' ? data : {};
|
|
29774
|
+
data["name"] = this.name;
|
|
29775
|
+
data["description"] = this.description;
|
|
29776
|
+
data["displayOrder"] = this.displayOrder;
|
|
29777
|
+
return data;
|
|
29778
|
+
}
|
|
29779
|
+
}
|
|
29565
29780
|
export class CreateDowntimePeriodReason {
|
|
29566
29781
|
constructor(data) {
|
|
29567
29782
|
if (data) {
|
|
@@ -35440,10 +35655,18 @@ export class FixtureSuggestionDto {
|
|
|
35440
35655
|
this[property] = data[property];
|
|
35441
35656
|
}
|
|
35442
35657
|
}
|
|
35658
|
+
if (!data) {
|
|
35659
|
+
this.fixtureTypes = [];
|
|
35660
|
+
}
|
|
35443
35661
|
}
|
|
35444
35662
|
init(_data) {
|
|
35445
35663
|
if (_data) {
|
|
35446
35664
|
this.suggestion = _data["suggestion"];
|
|
35665
|
+
if (Array.isArray(_data["fixtureTypes"])) {
|
|
35666
|
+
this.fixtureTypes = [];
|
|
35667
|
+
for (let item of _data["fixtureTypes"])
|
|
35668
|
+
this.fixtureTypes.push(item);
|
|
35669
|
+
}
|
|
35447
35670
|
}
|
|
35448
35671
|
}
|
|
35449
35672
|
static fromJS(data) {
|
|
@@ -35455,6 +35678,11 @@ export class FixtureSuggestionDto {
|
|
|
35455
35678
|
toJSON(data) {
|
|
35456
35679
|
data = typeof data === 'object' ? data : {};
|
|
35457
35680
|
data["suggestion"] = this.suggestion;
|
|
35681
|
+
if (Array.isArray(this.fixtureTypes)) {
|
|
35682
|
+
data["fixtureTypes"] = [];
|
|
35683
|
+
for (let item of this.fixtureTypes)
|
|
35684
|
+
data["fixtureTypes"].push(item);
|
|
35685
|
+
}
|
|
35458
35686
|
return data;
|
|
35459
35687
|
}
|
|
35460
35688
|
}
|
|
@@ -44529,7 +44757,6 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
44529
44757
|
}
|
|
44530
44758
|
}
|
|
44531
44759
|
if (!data) {
|
|
44532
|
-
this.sequences = [];
|
|
44533
44760
|
this.serialNumbers = [];
|
|
44534
44761
|
}
|
|
44535
44762
|
}
|
|
@@ -45545,72 +45772,6 @@ export class ExportDimensionReportRequest {
|
|
|
45545
45772
|
return data;
|
|
45546
45773
|
}
|
|
45547
45774
|
}
|
|
45548
|
-
export class UpdateSchemaInstanceElementsRequest {
|
|
45549
|
-
constructor(data) {
|
|
45550
|
-
if (data) {
|
|
45551
|
-
for (var property in data) {
|
|
45552
|
-
if (data.hasOwnProperty(property))
|
|
45553
|
-
this[property] = data[property];
|
|
45554
|
-
}
|
|
45555
|
-
}
|
|
45556
|
-
}
|
|
45557
|
-
init(_data) {
|
|
45558
|
-
if (_data) {
|
|
45559
|
-
if (Array.isArray(_data["elements"])) {
|
|
45560
|
-
this.elements = [];
|
|
45561
|
-
for (let item of _data["elements"])
|
|
45562
|
-
this.elements.push(SchemaInstanceElementDto.fromJS(item));
|
|
45563
|
-
}
|
|
45564
|
-
}
|
|
45565
|
-
}
|
|
45566
|
-
static fromJS(data) {
|
|
45567
|
-
data = typeof data === 'object' ? data : {};
|
|
45568
|
-
let result = new UpdateSchemaInstanceElementsRequest();
|
|
45569
|
-
result.init(data);
|
|
45570
|
-
return result;
|
|
45571
|
-
}
|
|
45572
|
-
toJSON(data) {
|
|
45573
|
-
data = typeof data === 'object' ? data : {};
|
|
45574
|
-
if (Array.isArray(this.elements)) {
|
|
45575
|
-
data["elements"] = [];
|
|
45576
|
-
for (let item of this.elements)
|
|
45577
|
-
data["elements"].push(item.toJSON());
|
|
45578
|
-
}
|
|
45579
|
-
return data;
|
|
45580
|
-
}
|
|
45581
|
-
}
|
|
45582
|
-
export class SchemaInstanceElementDto {
|
|
45583
|
-
constructor(data) {
|
|
45584
|
-
if (data) {
|
|
45585
|
-
for (var property in data) {
|
|
45586
|
-
if (data.hasOwnProperty(property))
|
|
45587
|
-
this[property] = data[property];
|
|
45588
|
-
}
|
|
45589
|
-
}
|
|
45590
|
-
}
|
|
45591
|
-
init(_data) {
|
|
45592
|
-
if (_data) {
|
|
45593
|
-
this.elementId = _data["elementId"];
|
|
45594
|
-
this.balloonId = _data["balloonId"];
|
|
45595
|
-
this.reference = _data["reference"];
|
|
45596
|
-
this.disabled = _data["disabled"];
|
|
45597
|
-
}
|
|
45598
|
-
}
|
|
45599
|
-
static fromJS(data) {
|
|
45600
|
-
data = typeof data === 'object' ? data : {};
|
|
45601
|
-
let result = new SchemaInstanceElementDto();
|
|
45602
|
-
result.init(data);
|
|
45603
|
-
return result;
|
|
45604
|
-
}
|
|
45605
|
-
toJSON(data) {
|
|
45606
|
-
data = typeof data === 'object' ? data : {};
|
|
45607
|
-
data["elementId"] = this.elementId;
|
|
45608
|
-
data["balloonId"] = this.balloonId;
|
|
45609
|
-
data["reference"] = this.reference;
|
|
45610
|
-
data["disabled"] = this.disabled;
|
|
45611
|
-
return data;
|
|
45612
|
-
}
|
|
45613
|
-
}
|
|
45614
45775
|
export class ProductionCompanyDto {
|
|
45615
45776
|
constructor(data) {
|
|
45616
45777
|
if (data) {
|