@ignos/api-client 20250711.0.12191-alpha → 20250725.0.12210-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 +183 -48
- package/lib/ignosportal-api.js +455 -80
- package/package.json +1 -1
- package/src/ignosportal-api.ts +631 -126
package/lib/ignosportal-api.js
CHANGED
|
@@ -19918,7 +19918,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
19918
19918
|
}
|
|
19919
19919
|
return Promise.resolve(null);
|
|
19920
19920
|
}
|
|
19921
|
-
getMeasurementFormInstanceSchema(id, schemaId,
|
|
19921
|
+
getMeasurementFormInstanceSchema(id, schemaId, sequence, tenantId) {
|
|
19922
19922
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
|
|
19923
19923
|
if (id === undefined || id === null)
|
|
19924
19924
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -19926,8 +19926,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
19926
19926
|
if (schemaId === undefined || schemaId === null)
|
|
19927
19927
|
throw new Error("The parameter 'schemaId' must be defined.");
|
|
19928
19928
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
19929
|
-
if (
|
|
19930
|
-
url_ += "
|
|
19929
|
+
if (sequence !== undefined && sequence !== null)
|
|
19930
|
+
url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
|
|
19931
19931
|
if (tenantId !== undefined && tenantId !== null)
|
|
19932
19932
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
19933
19933
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -20007,7 +20007,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20007
20007
|
}
|
|
20008
20008
|
return Promise.resolve(null);
|
|
20009
20009
|
}
|
|
20010
|
-
getAuditLog(id, tenantId, schemaId,
|
|
20010
|
+
getAuditLog(id, tenantId, schemaId, sequence, elementId) {
|
|
20011
20011
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
|
|
20012
20012
|
if (id === undefined || id === null)
|
|
20013
20013
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -20016,8 +20016,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20016
20016
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20017
20017
|
if (schemaId !== undefined && schemaId !== null)
|
|
20018
20018
|
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
20019
|
-
if (
|
|
20020
|
-
url_ += "
|
|
20019
|
+
if (sequence !== undefined && sequence !== null)
|
|
20020
|
+
url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
|
|
20021
20021
|
if (elementId !== undefined && elementId !== null)
|
|
20022
20022
|
url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
|
|
20023
20023
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -20707,6 +20707,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20707
20707
|
}
|
|
20708
20708
|
return Promise.resolve(null);
|
|
20709
20709
|
}
|
|
20710
|
+
importMeasurementFormInstance(id, request) {
|
|
20711
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
|
|
20712
|
+
if (id === undefined || id === null)
|
|
20713
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
20714
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20715
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20716
|
+
const content_ = JSON.stringify(request);
|
|
20717
|
+
let options_ = {
|
|
20718
|
+
body: content_,
|
|
20719
|
+
method: "POST",
|
|
20720
|
+
headers: {
|
|
20721
|
+
"Content-Type": "application/json",
|
|
20722
|
+
"Accept": "application/json"
|
|
20723
|
+
}
|
|
20724
|
+
};
|
|
20725
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20726
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20727
|
+
}).then((_response) => {
|
|
20728
|
+
return this.processImportMeasurementFormInstance(_response);
|
|
20729
|
+
});
|
|
20730
|
+
}
|
|
20731
|
+
processImportMeasurementFormInstance(response) {
|
|
20732
|
+
const status = response.status;
|
|
20733
|
+
let _headers = {};
|
|
20734
|
+
if (response.headers && response.headers.forEach) {
|
|
20735
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20736
|
+
}
|
|
20737
|
+
;
|
|
20738
|
+
if (status === 200) {
|
|
20739
|
+
return response.text().then((_responseText) => {
|
|
20740
|
+
let result200 = null;
|
|
20741
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20742
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
20743
|
+
return result200;
|
|
20744
|
+
});
|
|
20745
|
+
}
|
|
20746
|
+
else if (status !== 200 && status !== 204) {
|
|
20747
|
+
return response.text().then((_responseText) => {
|
|
20748
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20749
|
+
});
|
|
20750
|
+
}
|
|
20751
|
+
return Promise.resolve(null);
|
|
20752
|
+
}
|
|
20710
20753
|
}
|
|
20711
20754
|
export class ElectricalClient extends AuthorizedApiBase {
|
|
20712
20755
|
constructor(configuration, baseUrl, http) {
|
|
@@ -22679,6 +22722,93 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22679
22722
|
}
|
|
22680
22723
|
return Promise.resolve(null);
|
|
22681
22724
|
}
|
|
22725
|
+
getDiscussionMessages(id) {
|
|
22726
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
22727
|
+
if (id === undefined || id === null)
|
|
22728
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22729
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22730
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22731
|
+
let options_ = {
|
|
22732
|
+
method: "GET",
|
|
22733
|
+
headers: {
|
|
22734
|
+
"Accept": "application/json"
|
|
22735
|
+
}
|
|
22736
|
+
};
|
|
22737
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22738
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22739
|
+
}).then((_response) => {
|
|
22740
|
+
return this.processGetDiscussionMessages(_response);
|
|
22741
|
+
});
|
|
22742
|
+
}
|
|
22743
|
+
processGetDiscussionMessages(response) {
|
|
22744
|
+
const status = response.status;
|
|
22745
|
+
let _headers = {};
|
|
22746
|
+
if (response.headers && response.headers.forEach) {
|
|
22747
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22748
|
+
}
|
|
22749
|
+
;
|
|
22750
|
+
if (status === 200) {
|
|
22751
|
+
return response.text().then((_responseText) => {
|
|
22752
|
+
let result200 = null;
|
|
22753
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22754
|
+
if (Array.isArray(resultData200)) {
|
|
22755
|
+
result200 = [];
|
|
22756
|
+
for (let item of resultData200)
|
|
22757
|
+
result200.push(WorkorderDiscussionMessage.fromJS(item));
|
|
22758
|
+
}
|
|
22759
|
+
return result200;
|
|
22760
|
+
});
|
|
22761
|
+
}
|
|
22762
|
+
else if (status !== 200 && status !== 204) {
|
|
22763
|
+
return response.text().then((_responseText) => {
|
|
22764
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22765
|
+
});
|
|
22766
|
+
}
|
|
22767
|
+
return Promise.resolve(null);
|
|
22768
|
+
}
|
|
22769
|
+
addDiscussionMessage(id, request) {
|
|
22770
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
22771
|
+
if (id === undefined || id === null)
|
|
22772
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22773
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22774
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22775
|
+
const content_ = JSON.stringify(request);
|
|
22776
|
+
let options_ = {
|
|
22777
|
+
body: content_,
|
|
22778
|
+
method: "POST",
|
|
22779
|
+
headers: {
|
|
22780
|
+
"Content-Type": "application/json",
|
|
22781
|
+
"Accept": "application/json"
|
|
22782
|
+
}
|
|
22783
|
+
};
|
|
22784
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22785
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22786
|
+
}).then((_response) => {
|
|
22787
|
+
return this.processAddDiscussionMessage(_response);
|
|
22788
|
+
});
|
|
22789
|
+
}
|
|
22790
|
+
processAddDiscussionMessage(response) {
|
|
22791
|
+
const status = response.status;
|
|
22792
|
+
let _headers = {};
|
|
22793
|
+
if (response.headers && response.headers.forEach) {
|
|
22794
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22795
|
+
}
|
|
22796
|
+
;
|
|
22797
|
+
if (status === 201) {
|
|
22798
|
+
return response.text().then((_responseText) => {
|
|
22799
|
+
let result201 = null;
|
|
22800
|
+
let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22801
|
+
result201 = WorkorderDiscussionMessage.fromJS(resultData201);
|
|
22802
|
+
return result201;
|
|
22803
|
+
});
|
|
22804
|
+
}
|
|
22805
|
+
else if (status !== 200 && status !== 204) {
|
|
22806
|
+
return response.text().then((_responseText) => {
|
|
22807
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22808
|
+
});
|
|
22809
|
+
}
|
|
22810
|
+
return Promise.resolve(null);
|
|
22811
|
+
}
|
|
22682
22812
|
}
|
|
22683
22813
|
export class AzureRegionDto {
|
|
22684
22814
|
constructor(data) {
|
|
@@ -43642,7 +43772,7 @@ export class MeasurementFormInstanceDto {
|
|
|
43642
43772
|
}
|
|
43643
43773
|
if (!data) {
|
|
43644
43774
|
this.schemas = [];
|
|
43645
|
-
this.
|
|
43775
|
+
this.sequences = [];
|
|
43646
43776
|
this.suppliers = [];
|
|
43647
43777
|
this.progress = new MeasurementFormProgressDto();
|
|
43648
43778
|
}
|
|
@@ -43670,11 +43800,6 @@ export class MeasurementFormInstanceDto {
|
|
|
43670
43800
|
for (let item of _data["sequences"])
|
|
43671
43801
|
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
43672
43802
|
}
|
|
43673
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
43674
|
-
this.serialNumbers = [];
|
|
43675
|
-
for (let item of _data["serialNumbers"])
|
|
43676
|
-
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
43677
|
-
}
|
|
43678
43803
|
if (Array.isArray(_data["suppliers"])) {
|
|
43679
43804
|
this.suppliers = [];
|
|
43680
43805
|
for (let item of _data["suppliers"])
|
|
@@ -43714,11 +43839,6 @@ export class MeasurementFormInstanceDto {
|
|
|
43714
43839
|
for (let item of this.sequences)
|
|
43715
43840
|
data["sequences"].push(item.toJSON());
|
|
43716
43841
|
}
|
|
43717
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
43718
|
-
data["serialNumbers"] = [];
|
|
43719
|
-
for (let item of this.serialNumbers)
|
|
43720
|
-
data["serialNumbers"].push(item.toJSON());
|
|
43721
|
-
}
|
|
43722
43842
|
if (Array.isArray(this.suppliers)) {
|
|
43723
43843
|
data["suppliers"] = [];
|
|
43724
43844
|
for (let item of this.suppliers)
|
|
@@ -43811,36 +43931,6 @@ export class MeasurementFormWorkorderSequenceDto {
|
|
|
43811
43931
|
return data;
|
|
43812
43932
|
}
|
|
43813
43933
|
}
|
|
43814
|
-
export class MeasurementFormWorkorderSerialNumberDto {
|
|
43815
|
-
constructor(data) {
|
|
43816
|
-
if (data) {
|
|
43817
|
-
for (var property in data) {
|
|
43818
|
-
if (data.hasOwnProperty(property))
|
|
43819
|
-
this[property] = data[property];
|
|
43820
|
-
}
|
|
43821
|
-
}
|
|
43822
|
-
}
|
|
43823
|
-
init(_data) {
|
|
43824
|
-
if (_data) {
|
|
43825
|
-
this.lot = _data["lot"];
|
|
43826
|
-
this.serialNumber = _data["serialNumber"];
|
|
43827
|
-
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
43828
|
-
}
|
|
43829
|
-
}
|
|
43830
|
-
static fromJS(data) {
|
|
43831
|
-
data = typeof data === 'object' ? data : {};
|
|
43832
|
-
let result = new MeasurementFormWorkorderSerialNumberDto();
|
|
43833
|
-
result.init(data);
|
|
43834
|
-
return result;
|
|
43835
|
-
}
|
|
43836
|
-
toJSON(data) {
|
|
43837
|
-
data = typeof data === 'object' ? data : {};
|
|
43838
|
-
data["lot"] = this.lot;
|
|
43839
|
-
data["serialNumber"] = this.serialNumber;
|
|
43840
|
-
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
43841
|
-
return data;
|
|
43842
|
-
}
|
|
43843
|
-
}
|
|
43844
43934
|
export class MeasurementFormWorkorderSupplierDto {
|
|
43845
43935
|
constructor(data) {
|
|
43846
43936
|
if (data) {
|
|
@@ -44037,7 +44127,7 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
44037
44127
|
}
|
|
44038
44128
|
}
|
|
44039
44129
|
if (!data) {
|
|
44040
|
-
this.
|
|
44130
|
+
this.sequences = [];
|
|
44041
44131
|
this.suppliers = [];
|
|
44042
44132
|
}
|
|
44043
44133
|
}
|
|
@@ -44048,11 +44138,6 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
44048
44138
|
for (let item of _data["sequences"])
|
|
44049
44139
|
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
44050
44140
|
}
|
|
44051
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
44052
|
-
this.serialNumbers = [];
|
|
44053
|
-
for (let item of _data["serialNumbers"])
|
|
44054
|
-
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
44055
|
-
}
|
|
44056
44141
|
if (Array.isArray(_data["suppliers"])) {
|
|
44057
44142
|
this.suppliers = [];
|
|
44058
44143
|
for (let item of _data["suppliers"])
|
|
@@ -44073,11 +44158,6 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
44073
44158
|
for (let item of this.sequences)
|
|
44074
44159
|
data["sequences"].push(item.toJSON());
|
|
44075
44160
|
}
|
|
44076
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
44077
|
-
data["serialNumbers"] = [];
|
|
44078
|
-
for (let item of this.serialNumbers)
|
|
44079
|
-
data["serialNumbers"].push(item.toJSON());
|
|
44080
|
-
}
|
|
44081
44161
|
if (Array.isArray(this.suppliers)) {
|
|
44082
44162
|
data["suppliers"] = [];
|
|
44083
44163
|
for (let item of this.suppliers)
|
|
@@ -44261,7 +44341,6 @@ export class MeasurementFormElementValueDto {
|
|
|
44261
44341
|
this.bonus = _data["bonus"];
|
|
44262
44342
|
this.completed = _data["completed"];
|
|
44263
44343
|
this.sequence = _data["sequence"];
|
|
44264
|
-
this.serialNumber = _data["serialNumber"];
|
|
44265
44344
|
this.value = _data["value"];
|
|
44266
44345
|
this.updatedByUser = _data["updatedByUser"];
|
|
44267
44346
|
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
@@ -44286,7 +44365,6 @@ export class MeasurementFormElementValueDto {
|
|
|
44286
44365
|
data["bonus"] = this.bonus;
|
|
44287
44366
|
data["completed"] = this.completed;
|
|
44288
44367
|
data["sequence"] = this.sequence;
|
|
44289
|
-
data["serialNumber"] = this.serialNumber;
|
|
44290
44368
|
data["value"] = this.value;
|
|
44291
44369
|
data["updatedByUser"] = this.updatedByUser;
|
|
44292
44370
|
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
@@ -44513,7 +44591,6 @@ export class SaveValueRequest {
|
|
|
44513
44591
|
this.schemaId = _data["schemaId"];
|
|
44514
44592
|
this.elementId = _data["elementId"];
|
|
44515
44593
|
this.sequence = _data["sequence"];
|
|
44516
|
-
this.serialNumber = _data["serialNumber"];
|
|
44517
44594
|
this.value = _data["value"];
|
|
44518
44595
|
this.bonus = _data["bonus"];
|
|
44519
44596
|
}
|
|
@@ -44531,7 +44608,6 @@ export class SaveValueRequest {
|
|
|
44531
44608
|
data["schemaId"] = this.schemaId;
|
|
44532
44609
|
data["elementId"] = this.elementId;
|
|
44533
44610
|
data["sequence"] = this.sequence;
|
|
44534
|
-
data["serialNumber"] = this.serialNumber;
|
|
44535
44611
|
data["value"] = this.value;
|
|
44536
44612
|
data["bonus"] = this.bonus;
|
|
44537
44613
|
return data;
|
|
@@ -44551,7 +44627,6 @@ export class SaveToolRequest {
|
|
|
44551
44627
|
this.schemaId = _data["schemaId"];
|
|
44552
44628
|
this.elementId = _data["elementId"];
|
|
44553
44629
|
this.sequence = _data["sequence"];
|
|
44554
|
-
this.serialNumber = _data["serialNumber"];
|
|
44555
44630
|
if (Array.isArray(_data["tools"])) {
|
|
44556
44631
|
this.tools = [];
|
|
44557
44632
|
for (let item of _data["tools"])
|
|
@@ -44571,7 +44646,6 @@ export class SaveToolRequest {
|
|
|
44571
44646
|
data["schemaId"] = this.schemaId;
|
|
44572
44647
|
data["elementId"] = this.elementId;
|
|
44573
44648
|
data["sequence"] = this.sequence;
|
|
44574
|
-
data["serialNumber"] = this.serialNumber;
|
|
44575
44649
|
if (Array.isArray(this.tools)) {
|
|
44576
44650
|
data["tools"] = [];
|
|
44577
44651
|
for (let item of this.tools)
|
|
@@ -44595,7 +44669,6 @@ export class SaveCommentRequest {
|
|
|
44595
44669
|
this.schemaId = _data["schemaId"];
|
|
44596
44670
|
this.elementId = _data["elementId"];
|
|
44597
44671
|
this.sequence = _data["sequence"];
|
|
44598
|
-
this.serialNumber = _data["serialNumber"];
|
|
44599
44672
|
this.comment = _data["comment"];
|
|
44600
44673
|
}
|
|
44601
44674
|
}
|
|
@@ -44610,7 +44683,6 @@ export class SaveCommentRequest {
|
|
|
44610
44683
|
data["schemaId"] = this.schemaId;
|
|
44611
44684
|
data["elementId"] = this.elementId;
|
|
44612
44685
|
data["sequence"] = this.sequence;
|
|
44613
|
-
data["serialNumber"] = this.serialNumber;
|
|
44614
44686
|
data["comment"] = this.comment;
|
|
44615
44687
|
return data;
|
|
44616
44688
|
}
|
|
@@ -44891,11 +44963,6 @@ export class ExportDimensionReportRequest {
|
|
|
44891
44963
|
for (let item of _data["sequences"])
|
|
44892
44964
|
this.sequences.push(item);
|
|
44893
44965
|
}
|
|
44894
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
44895
|
-
this.serialNumbers = [];
|
|
44896
|
-
for (let item of _data["serialNumbers"])
|
|
44897
|
-
this.serialNumbers.push(item);
|
|
44898
|
-
}
|
|
44899
44966
|
this.customerPO = _data["customerPO"];
|
|
44900
44967
|
this.workOrder = _data["workOrder"];
|
|
44901
44968
|
this.comment = _data["comment"];
|
|
@@ -44918,11 +44985,6 @@ export class ExportDimensionReportRequest {
|
|
|
44918
44985
|
for (let item of this.sequences)
|
|
44919
44986
|
data["sequences"].push(item);
|
|
44920
44987
|
}
|
|
44921
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
44922
|
-
data["serialNumbers"] = [];
|
|
44923
|
-
for (let item of this.serialNumbers)
|
|
44924
|
-
data["serialNumbers"].push(item);
|
|
44925
|
-
}
|
|
44926
44988
|
data["customerPO"] = this.customerPO;
|
|
44927
44989
|
data["workOrder"] = this.workOrder;
|
|
44928
44990
|
data["comment"] = this.comment;
|
|
@@ -44993,6 +45055,173 @@ export class SchemaInstanceElementDto {
|
|
|
44993
45055
|
return data;
|
|
44994
45056
|
}
|
|
44995
45057
|
}
|
|
45058
|
+
export class ImportMeasurementFormInstanceRequest {
|
|
45059
|
+
constructor(data) {
|
|
45060
|
+
if (data) {
|
|
45061
|
+
for (var property in data) {
|
|
45062
|
+
if (data.hasOwnProperty(property))
|
|
45063
|
+
this[property] = data[property];
|
|
45064
|
+
}
|
|
45065
|
+
}
|
|
45066
|
+
if (!data) {
|
|
45067
|
+
this.partInfo = new ImportMeasurementFormPartDto();
|
|
45068
|
+
this.sequences = [];
|
|
45069
|
+
this.schemas = [];
|
|
45070
|
+
}
|
|
45071
|
+
}
|
|
45072
|
+
init(_data) {
|
|
45073
|
+
if (_data) {
|
|
45074
|
+
this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
|
|
45075
|
+
this.customerId = _data["customerId"];
|
|
45076
|
+
this.customerGroupId = _data["customerGroupId"];
|
|
45077
|
+
this.customerName = _data["customerName"];
|
|
45078
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45079
|
+
this.quantity = _data["quantity"];
|
|
45080
|
+
if (Array.isArray(_data["sequences"])) {
|
|
45081
|
+
this.sequences = [];
|
|
45082
|
+
for (let item of _data["sequences"])
|
|
45083
|
+
this.sequences.push(WorkorderImportTraceItemDto.fromJS(item));
|
|
45084
|
+
}
|
|
45085
|
+
this.status = _data["status"];
|
|
45086
|
+
this.statusChangedBy = _data["statusChangedBy"];
|
|
45087
|
+
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
|
|
45088
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
45089
|
+
this.createdBy = _data["createdBy"];
|
|
45090
|
+
this.updatedBy = _data["updatedBy"];
|
|
45091
|
+
if (Array.isArray(_data["schemas"])) {
|
|
45092
|
+
this.schemas = [];
|
|
45093
|
+
for (let item of _data["schemas"])
|
|
45094
|
+
this.schemas.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
|
|
45095
|
+
}
|
|
45096
|
+
}
|
|
45097
|
+
}
|
|
45098
|
+
static fromJS(data) {
|
|
45099
|
+
data = typeof data === 'object' ? data : {};
|
|
45100
|
+
let result = new ImportMeasurementFormInstanceRequest();
|
|
45101
|
+
result.init(data);
|
|
45102
|
+
return result;
|
|
45103
|
+
}
|
|
45104
|
+
toJSON(data) {
|
|
45105
|
+
data = typeof data === 'object' ? data : {};
|
|
45106
|
+
data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : undefined;
|
|
45107
|
+
data["customerId"] = this.customerId;
|
|
45108
|
+
data["customerGroupId"] = this.customerGroupId;
|
|
45109
|
+
data["customerName"] = this.customerName;
|
|
45110
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45111
|
+
data["quantity"] = this.quantity;
|
|
45112
|
+
if (Array.isArray(this.sequences)) {
|
|
45113
|
+
data["sequences"] = [];
|
|
45114
|
+
for (let item of this.sequences)
|
|
45115
|
+
data["sequences"].push(item.toJSON());
|
|
45116
|
+
}
|
|
45117
|
+
data["status"] = this.status;
|
|
45118
|
+
data["statusChangedBy"] = this.statusChangedBy;
|
|
45119
|
+
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
|
|
45120
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
45121
|
+
data["createdBy"] = this.createdBy;
|
|
45122
|
+
data["updatedBy"] = this.updatedBy;
|
|
45123
|
+
if (Array.isArray(this.schemas)) {
|
|
45124
|
+
data["schemas"] = [];
|
|
45125
|
+
for (let item of this.schemas)
|
|
45126
|
+
data["schemas"].push(item.toJSON());
|
|
45127
|
+
}
|
|
45128
|
+
return data;
|
|
45129
|
+
}
|
|
45130
|
+
}
|
|
45131
|
+
export class ImportMeasurementFormPartDto {
|
|
45132
|
+
constructor(data) {
|
|
45133
|
+
if (data) {
|
|
45134
|
+
for (var property in data) {
|
|
45135
|
+
if (data.hasOwnProperty(property))
|
|
45136
|
+
this[property] = data[property];
|
|
45137
|
+
}
|
|
45138
|
+
}
|
|
45139
|
+
}
|
|
45140
|
+
init(_data) {
|
|
45141
|
+
if (_data) {
|
|
45142
|
+
this.partNumber = _data["partNumber"];
|
|
45143
|
+
this.partName = _data["partName"];
|
|
45144
|
+
this.partRevision = _data["partRevision"];
|
|
45145
|
+
this.drawing = _data["drawing"];
|
|
45146
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
45147
|
+
}
|
|
45148
|
+
}
|
|
45149
|
+
static fromJS(data) {
|
|
45150
|
+
data = typeof data === 'object' ? data : {};
|
|
45151
|
+
let result = new ImportMeasurementFormPartDto();
|
|
45152
|
+
result.init(data);
|
|
45153
|
+
return result;
|
|
45154
|
+
}
|
|
45155
|
+
toJSON(data) {
|
|
45156
|
+
data = typeof data === 'object' ? data : {};
|
|
45157
|
+
data["partNumber"] = this.partNumber;
|
|
45158
|
+
data["partName"] = this.partName;
|
|
45159
|
+
data["partRevision"] = this.partRevision;
|
|
45160
|
+
data["drawing"] = this.drawing;
|
|
45161
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
45162
|
+
return data;
|
|
45163
|
+
}
|
|
45164
|
+
}
|
|
45165
|
+
export class WorkorderImportTraceItemDto {
|
|
45166
|
+
constructor(data) {
|
|
45167
|
+
if (data) {
|
|
45168
|
+
for (var property in data) {
|
|
45169
|
+
if (data.hasOwnProperty(property))
|
|
45170
|
+
this[property] = data[property];
|
|
45171
|
+
}
|
|
45172
|
+
}
|
|
45173
|
+
}
|
|
45174
|
+
init(_data) {
|
|
45175
|
+
if (_data) {
|
|
45176
|
+
this.sequence = _data["sequence"];
|
|
45177
|
+
this.serialNumber = _data["serialNumber"];
|
|
45178
|
+
this.lot = _data["lot"];
|
|
45179
|
+
this.active = _data["active"];
|
|
45180
|
+
}
|
|
45181
|
+
}
|
|
45182
|
+
static fromJS(data) {
|
|
45183
|
+
data = typeof data === 'object' ? data : {};
|
|
45184
|
+
let result = new WorkorderImportTraceItemDto();
|
|
45185
|
+
result.init(data);
|
|
45186
|
+
return result;
|
|
45187
|
+
}
|
|
45188
|
+
toJSON(data) {
|
|
45189
|
+
data = typeof data === 'object' ? data : {};
|
|
45190
|
+
data["sequence"] = this.sequence;
|
|
45191
|
+
data["serialNumber"] = this.serialNumber;
|
|
45192
|
+
data["lot"] = this.lot;
|
|
45193
|
+
data["active"] = this.active;
|
|
45194
|
+
return data;
|
|
45195
|
+
}
|
|
45196
|
+
}
|
|
45197
|
+
export class ImportMeasurementSchemaInstanceDto {
|
|
45198
|
+
constructor(data) {
|
|
45199
|
+
if (data) {
|
|
45200
|
+
for (var property in data) {
|
|
45201
|
+
if (data.hasOwnProperty(property))
|
|
45202
|
+
this[property] = data[property];
|
|
45203
|
+
}
|
|
45204
|
+
}
|
|
45205
|
+
}
|
|
45206
|
+
init(_data) {
|
|
45207
|
+
if (_data) {
|
|
45208
|
+
this.id = _data["id"];
|
|
45209
|
+
this.version = _data["version"];
|
|
45210
|
+
}
|
|
45211
|
+
}
|
|
45212
|
+
static fromJS(data) {
|
|
45213
|
+
data = typeof data === 'object' ? data : {};
|
|
45214
|
+
let result = new ImportMeasurementSchemaInstanceDto();
|
|
45215
|
+
result.init(data);
|
|
45216
|
+
return result;
|
|
45217
|
+
}
|
|
45218
|
+
toJSON(data) {
|
|
45219
|
+
data = typeof data === 'object' ? data : {};
|
|
45220
|
+
data["id"] = this.id;
|
|
45221
|
+
data["version"] = this.version;
|
|
45222
|
+
return data;
|
|
45223
|
+
}
|
|
45224
|
+
}
|
|
44996
45225
|
export class IotTypeSourceDto {
|
|
44997
45226
|
constructor(data) {
|
|
44998
45227
|
if (data) {
|
|
@@ -45942,10 +46171,8 @@ export class WorkOrderTraceItemDto {
|
|
|
45942
46171
|
if (_data) {
|
|
45943
46172
|
this.sequence = _data["sequence"];
|
|
45944
46173
|
this.serialNumber = _data["serialNumber"];
|
|
45945
|
-
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
45946
46174
|
this.lot = _data["lot"];
|
|
45947
46175
|
this.active = _data["active"];
|
|
45948
|
-
this.isLegacy = _data["isLegacy"];
|
|
45949
46176
|
}
|
|
45950
46177
|
}
|
|
45951
46178
|
static fromJS(data) {
|
|
@@ -45958,10 +46185,8 @@ export class WorkOrderTraceItemDto {
|
|
|
45958
46185
|
data = typeof data === 'object' ? data : {};
|
|
45959
46186
|
data["sequence"] = this.sequence;
|
|
45960
46187
|
data["serialNumber"] = this.serialNumber;
|
|
45961
|
-
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
45962
46188
|
data["lot"] = this.lot;
|
|
45963
46189
|
data["active"] = this.active;
|
|
45964
|
-
data["isLegacy"] = this.isLegacy;
|
|
45965
46190
|
return data;
|
|
45966
46191
|
}
|
|
45967
46192
|
}
|
|
@@ -46459,6 +46684,156 @@ export class CreateWorkOrderMapping {
|
|
|
46459
46684
|
return data;
|
|
46460
46685
|
}
|
|
46461
46686
|
}
|
|
46687
|
+
export class TableEntityBase {
|
|
46688
|
+
constructor(data) {
|
|
46689
|
+
if (data) {
|
|
46690
|
+
for (var property in data) {
|
|
46691
|
+
if (data.hasOwnProperty(property))
|
|
46692
|
+
this[property] = data[property];
|
|
46693
|
+
}
|
|
46694
|
+
}
|
|
46695
|
+
}
|
|
46696
|
+
init(_data) {
|
|
46697
|
+
if (_data) {
|
|
46698
|
+
this.partitionKey = _data["partitionKey"];
|
|
46699
|
+
this.rowKey = _data["rowKey"];
|
|
46700
|
+
this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : undefined;
|
|
46701
|
+
this.eTag = _data["eTag"] ? ETag.fromJS(_data["eTag"]) : undefined;
|
|
46702
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
46703
|
+
this.createdBy = _data["createdBy"];
|
|
46704
|
+
this.createdById = _data["createdById"];
|
|
46705
|
+
this.updatedBy = _data["updatedBy"];
|
|
46706
|
+
this.updatedById = _data["updatedById"];
|
|
46707
|
+
this.insertAuditInfo = _data["insertAuditInfo"] ? AuditInfo.fromJS(_data["insertAuditInfo"]) : undefined;
|
|
46708
|
+
}
|
|
46709
|
+
}
|
|
46710
|
+
static fromJS(data) {
|
|
46711
|
+
data = typeof data === 'object' ? data : {};
|
|
46712
|
+
let result = new TableEntityBase();
|
|
46713
|
+
result.init(data);
|
|
46714
|
+
return result;
|
|
46715
|
+
}
|
|
46716
|
+
toJSON(data) {
|
|
46717
|
+
data = typeof data === 'object' ? data : {};
|
|
46718
|
+
data["partitionKey"] = this.partitionKey;
|
|
46719
|
+
data["rowKey"] = this.rowKey;
|
|
46720
|
+
data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : undefined;
|
|
46721
|
+
data["eTag"] = this.eTag ? this.eTag.toJSON() : undefined;
|
|
46722
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
46723
|
+
data["createdBy"] = this.createdBy;
|
|
46724
|
+
data["createdById"] = this.createdById;
|
|
46725
|
+
data["updatedBy"] = this.updatedBy;
|
|
46726
|
+
data["updatedById"] = this.updatedById;
|
|
46727
|
+
data["insertAuditInfo"] = this.insertAuditInfo ? this.insertAuditInfo.toJSON() : undefined;
|
|
46728
|
+
return data;
|
|
46729
|
+
}
|
|
46730
|
+
}
|
|
46731
|
+
export class WorkorderDiscussionMessage extends TableEntityBase {
|
|
46732
|
+
constructor(data) {
|
|
46733
|
+
super(data);
|
|
46734
|
+
}
|
|
46735
|
+
init(_data) {
|
|
46736
|
+
super.init(_data);
|
|
46737
|
+
if (_data) {
|
|
46738
|
+
this.content = _data["content"];
|
|
46739
|
+
this.senderUpn = _data["senderUpn"];
|
|
46740
|
+
this.senderName = _data["senderName"];
|
|
46741
|
+
}
|
|
46742
|
+
}
|
|
46743
|
+
static fromJS(data) {
|
|
46744
|
+
data = typeof data === 'object' ? data : {};
|
|
46745
|
+
let result = new WorkorderDiscussionMessage();
|
|
46746
|
+
result.init(data);
|
|
46747
|
+
return result;
|
|
46748
|
+
}
|
|
46749
|
+
toJSON(data) {
|
|
46750
|
+
data = typeof data === 'object' ? data : {};
|
|
46751
|
+
data["content"] = this.content;
|
|
46752
|
+
data["senderUpn"] = this.senderUpn;
|
|
46753
|
+
data["senderName"] = this.senderName;
|
|
46754
|
+
super.toJSON(data);
|
|
46755
|
+
return data;
|
|
46756
|
+
}
|
|
46757
|
+
}
|
|
46758
|
+
/** Represents an HTTP ETag. */
|
|
46759
|
+
export class ETag {
|
|
46760
|
+
constructor(data) {
|
|
46761
|
+
if (data) {
|
|
46762
|
+
for (var property in data) {
|
|
46763
|
+
if (data.hasOwnProperty(property))
|
|
46764
|
+
this[property] = data[property];
|
|
46765
|
+
}
|
|
46766
|
+
}
|
|
46767
|
+
}
|
|
46768
|
+
init(_data) {
|
|
46769
|
+
}
|
|
46770
|
+
static fromJS(data) {
|
|
46771
|
+
data = typeof data === 'object' ? data : {};
|
|
46772
|
+
let result = new ETag();
|
|
46773
|
+
result.init(data);
|
|
46774
|
+
return result;
|
|
46775
|
+
}
|
|
46776
|
+
toJSON(data) {
|
|
46777
|
+
data = typeof data === 'object' ? data : {};
|
|
46778
|
+
return data;
|
|
46779
|
+
}
|
|
46780
|
+
}
|
|
46781
|
+
export class AuditInfo {
|
|
46782
|
+
constructor(data) {
|
|
46783
|
+
if (data) {
|
|
46784
|
+
for (var property in data) {
|
|
46785
|
+
if (data.hasOwnProperty(property))
|
|
46786
|
+
this[property] = data[property];
|
|
46787
|
+
}
|
|
46788
|
+
}
|
|
46789
|
+
}
|
|
46790
|
+
init(_data) {
|
|
46791
|
+
if (_data) {
|
|
46792
|
+
this.objectId = _data["objectId"];
|
|
46793
|
+
this.userId = _data["userId"];
|
|
46794
|
+
this.userFullName = _data["userFullName"];
|
|
46795
|
+
}
|
|
46796
|
+
}
|
|
46797
|
+
static fromJS(data) {
|
|
46798
|
+
data = typeof data === 'object' ? data : {};
|
|
46799
|
+
let result = new AuditInfo();
|
|
46800
|
+
result.init(data);
|
|
46801
|
+
return result;
|
|
46802
|
+
}
|
|
46803
|
+
toJSON(data) {
|
|
46804
|
+
data = typeof data === 'object' ? data : {};
|
|
46805
|
+
data["objectId"] = this.objectId;
|
|
46806
|
+
data["userId"] = this.userId;
|
|
46807
|
+
data["userFullName"] = this.userFullName;
|
|
46808
|
+
return data;
|
|
46809
|
+
}
|
|
46810
|
+
}
|
|
46811
|
+
export class AddDiscussionMessageRequest {
|
|
46812
|
+
constructor(data) {
|
|
46813
|
+
if (data) {
|
|
46814
|
+
for (var property in data) {
|
|
46815
|
+
if (data.hasOwnProperty(property))
|
|
46816
|
+
this[property] = data[property];
|
|
46817
|
+
}
|
|
46818
|
+
}
|
|
46819
|
+
}
|
|
46820
|
+
init(_data) {
|
|
46821
|
+
if (_data) {
|
|
46822
|
+
this.message = _data["message"];
|
|
46823
|
+
}
|
|
46824
|
+
}
|
|
46825
|
+
static fromJS(data) {
|
|
46826
|
+
data = typeof data === 'object' ? data : {};
|
|
46827
|
+
let result = new AddDiscussionMessageRequest();
|
|
46828
|
+
result.init(data);
|
|
46829
|
+
return result;
|
|
46830
|
+
}
|
|
46831
|
+
toJSON(data) {
|
|
46832
|
+
data = typeof data === 'object' ? data : {};
|
|
46833
|
+
data["message"] = this.message;
|
|
46834
|
+
return data;
|
|
46835
|
+
}
|
|
46836
|
+
}
|
|
46462
46837
|
function formatDate(d) {
|
|
46463
46838
|
return d.getFullYear() + '-' +
|
|
46464
46839
|
(d.getMonth() < 9 ? ('0' + (d.getMonth() + 1)) : (d.getMonth() + 1)) + '-' +
|