@ignos/api-client 20250807.0.12317 → 20250814.0.12365
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 +174 -311
- package/lib/ignosportal-api.js +678 -735
- package/package.json +1 -1
- package/src/ignosportal-api.ts +862 -1060
package/lib/ignosportal-api.js
CHANGED
|
@@ -16976,7 +16976,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
16976
16976
|
this.http = http ? http : window;
|
|
16977
16977
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
16978
16978
|
}
|
|
16979
|
-
listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
16979
|
+
listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
16980
16980
|
let url_ = this.baseUrl + "/measurementforms/schemas?";
|
|
16981
16981
|
if (pageSize === null)
|
|
16982
16982
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -16988,6 +16988,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
16988
16988
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
16989
16989
|
if (partNumber !== undefined && partNumber !== null)
|
|
16990
16990
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
16991
|
+
if (partName !== undefined && partName !== null)
|
|
16992
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
16991
16993
|
if (partRevision !== undefined && partRevision !== null)
|
|
16992
16994
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
16993
16995
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -17575,46 +17577,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17575
17577
|
}
|
|
17576
17578
|
return Promise.resolve(null);
|
|
17577
17579
|
}
|
|
17578
|
-
getMeasurementFormImportStatus(id) {
|
|
17579
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
17580
|
-
if (id === undefined || id === null)
|
|
17581
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17582
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17583
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
17584
|
-
let options_ = {
|
|
17585
|
-
method: "GET",
|
|
17586
|
-
headers: {
|
|
17587
|
-
"Accept": "application/json"
|
|
17588
|
-
}
|
|
17589
|
-
};
|
|
17590
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
17591
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
17592
|
-
}).then((_response) => {
|
|
17593
|
-
return this.processGetMeasurementFormImportStatus(_response);
|
|
17594
|
-
});
|
|
17595
|
-
}
|
|
17596
|
-
processGetMeasurementFormImportStatus(response) {
|
|
17597
|
-
const status = response.status;
|
|
17598
|
-
let _headers = {};
|
|
17599
|
-
if (response.headers && response.headers.forEach) {
|
|
17600
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
17601
|
-
}
|
|
17602
|
-
;
|
|
17603
|
-
if (status === 200) {
|
|
17604
|
-
return response.text().then((_responseText) => {
|
|
17605
|
-
let result200 = null;
|
|
17606
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17607
|
-
result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
|
|
17608
|
-
return result200;
|
|
17609
|
-
});
|
|
17610
|
-
}
|
|
17611
|
-
else if (status !== 200 && status !== 204) {
|
|
17612
|
-
return response.text().then((_responseText) => {
|
|
17613
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17614
|
-
});
|
|
17615
|
-
}
|
|
17616
|
-
return Promise.resolve(null);
|
|
17617
|
-
}
|
|
17618
17580
|
listLinkableMeasurementFormSchemas(schemaId, pageSize, filter, continuationToken) {
|
|
17619
17581
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
|
|
17620
17582
|
if (schemaId === undefined || schemaId === null)
|
|
@@ -18414,50 +18376,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18414
18376
|
}
|
|
18415
18377
|
return Promise.resolve(null);
|
|
18416
18378
|
}
|
|
18417
|
-
|
|
18418
|
-
* Custom api for initial import. Not to be used more than once per customer.
|
|
18419
|
-
*/
|
|
18420
|
-
importMeasurementFormSchema(request) {
|
|
18421
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/import";
|
|
18422
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
18423
|
-
const content_ = JSON.stringify(request);
|
|
18424
|
-
let options_ = {
|
|
18425
|
-
body: content_,
|
|
18426
|
-
method: "POST",
|
|
18427
|
-
headers: {
|
|
18428
|
-
"Content-Type": "application/json",
|
|
18429
|
-
"Accept": "application/json"
|
|
18430
|
-
}
|
|
18431
|
-
};
|
|
18432
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18433
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
18434
|
-
}).then((_response) => {
|
|
18435
|
-
return this.processImportMeasurementFormSchema(_response);
|
|
18436
|
-
});
|
|
18437
|
-
}
|
|
18438
|
-
processImportMeasurementFormSchema(response) {
|
|
18439
|
-
const status = response.status;
|
|
18440
|
-
let _headers = {};
|
|
18441
|
-
if (response.headers && response.headers.forEach) {
|
|
18442
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18443
|
-
}
|
|
18444
|
-
;
|
|
18445
|
-
if (status === 200) {
|
|
18446
|
-
return response.text().then((_responseText) => {
|
|
18447
|
-
let result200 = null;
|
|
18448
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18449
|
-
result200 = MeasurementFormDto.fromJS(resultData200);
|
|
18450
|
-
return result200;
|
|
18451
|
-
});
|
|
18452
|
-
}
|
|
18453
|
-
else if (status !== 200 && status !== 204) {
|
|
18454
|
-
return response.text().then((_responseText) => {
|
|
18455
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18456
|
-
});
|
|
18457
|
-
}
|
|
18458
|
-
return Promise.resolve(null);
|
|
18459
|
-
}
|
|
18460
|
-
listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken, onlyWithoutDrawingUrl) {
|
|
18379
|
+
listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken, onlyWithoutDrawingUrl) {
|
|
18461
18380
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
|
|
18462
18381
|
if (pageSize === null)
|
|
18463
18382
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -18469,6 +18388,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18469
18388
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
18470
18389
|
if (partNumber !== undefined && partNumber !== null)
|
|
18471
18390
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
18391
|
+
if (partName !== undefined && partName !== null)
|
|
18392
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
18472
18393
|
if (partRevision !== undefined && partRevision !== null)
|
|
18473
18394
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
18474
18395
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -18721,7 +18642,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18721
18642
|
}
|
|
18722
18643
|
return Promise.resolve(null);
|
|
18723
18644
|
}
|
|
18724
|
-
listMeasurmentFormSchemasNotNeeded(pageSize, customerId, customerName, partNumber, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
18645
|
+
listMeasurmentFormSchemasNotNeeded(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
|
|
18725
18646
|
let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded?";
|
|
18726
18647
|
if (pageSize === null)
|
|
18727
18648
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -18733,6 +18654,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18733
18654
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
18734
18655
|
if (partNumber !== undefined && partNumber !== null)
|
|
18735
18656
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
18657
|
+
if (partName !== undefined && partName !== null)
|
|
18658
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
18736
18659
|
if (partRevision !== undefined && partRevision !== null)
|
|
18737
18660
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
18738
18661
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -20075,7 +19998,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20075
19998
|
}
|
|
20076
19999
|
return Promise.resolve(null);
|
|
20077
20000
|
}
|
|
20078
|
-
getMeasurementFormInstanceSchema(id, schemaId,
|
|
20001
|
+
getMeasurementFormInstanceSchema(id, schemaId, serialNumber, tenantId) {
|
|
20079
20002
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
|
|
20080
20003
|
if (id === undefined || id === null)
|
|
20081
20004
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -20083,8 +20006,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20083
20006
|
if (schemaId === undefined || schemaId === null)
|
|
20084
20007
|
throw new Error("The parameter 'schemaId' must be defined.");
|
|
20085
20008
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
20086
|
-
if (
|
|
20087
|
-
url_ += "
|
|
20009
|
+
if (serialNumber !== undefined && serialNumber !== null)
|
|
20010
|
+
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
20088
20011
|
if (tenantId !== undefined && tenantId !== null)
|
|
20089
20012
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20090
20013
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -20164,7 +20087,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20164
20087
|
}
|
|
20165
20088
|
return Promise.resolve(null);
|
|
20166
20089
|
}
|
|
20167
|
-
getAuditLog(id, tenantId, schemaId,
|
|
20090
|
+
getAuditLog(id, tenantId, schemaId, serialNumber, elementId) {
|
|
20168
20091
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
|
|
20169
20092
|
if (id === undefined || id === null)
|
|
20170
20093
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -20173,8 +20096,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20173
20096
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20174
20097
|
if (schemaId !== undefined && schemaId !== null)
|
|
20175
20098
|
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
20176
|
-
if (
|
|
20177
|
-
url_ += "
|
|
20099
|
+
if (serialNumber !== undefined && serialNumber !== null)
|
|
20100
|
+
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
20178
20101
|
if (elementId !== undefined && elementId !== null)
|
|
20179
20102
|
url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
|
|
20180
20103
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -20864,49 +20787,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20864
20787
|
}
|
|
20865
20788
|
return Promise.resolve(null);
|
|
20866
20789
|
}
|
|
20867
|
-
importMeasurementFormInstance(id, request) {
|
|
20868
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
|
|
20869
|
-
if (id === undefined || id === null)
|
|
20870
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20871
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20872
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
20873
|
-
const content_ = JSON.stringify(request);
|
|
20874
|
-
let options_ = {
|
|
20875
|
-
body: content_,
|
|
20876
|
-
method: "POST",
|
|
20877
|
-
headers: {
|
|
20878
|
-
"Content-Type": "application/json",
|
|
20879
|
-
"Accept": "application/json"
|
|
20880
|
-
}
|
|
20881
|
-
};
|
|
20882
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20883
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
20884
|
-
}).then((_response) => {
|
|
20885
|
-
return this.processImportMeasurementFormInstance(_response);
|
|
20886
|
-
});
|
|
20887
|
-
}
|
|
20888
|
-
processImportMeasurementFormInstance(response) {
|
|
20889
|
-
const status = response.status;
|
|
20890
|
-
let _headers = {};
|
|
20891
|
-
if (response.headers && response.headers.forEach) {
|
|
20892
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20893
|
-
}
|
|
20894
|
-
;
|
|
20895
|
-
if (status === 200) {
|
|
20896
|
-
return response.text().then((_responseText) => {
|
|
20897
|
-
let result200 = null;
|
|
20898
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20899
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
20900
|
-
return result200;
|
|
20901
|
-
});
|
|
20902
|
-
}
|
|
20903
|
-
else if (status !== 200 && status !== 204) {
|
|
20904
|
-
return response.text().then((_responseText) => {
|
|
20905
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20906
|
-
});
|
|
20907
|
-
}
|
|
20908
|
-
return Promise.resolve(null);
|
|
20909
|
-
}
|
|
20910
20790
|
}
|
|
20911
20791
|
export class ElectricalClient extends AuthorizedApiBase {
|
|
20912
20792
|
constructor(configuration, baseUrl, http) {
|
|
@@ -22879,83 +22759,352 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22879
22759
|
}
|
|
22880
22760
|
return Promise.resolve(null);
|
|
22881
22761
|
}
|
|
22882
|
-
|
|
22883
|
-
|
|
22884
|
-
|
|
22885
|
-
|
|
22886
|
-
|
|
22887
|
-
|
|
22888
|
-
|
|
22762
|
+
getDiscussionMessages(id) {
|
|
22763
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
22764
|
+
if (id === undefined || id === null)
|
|
22765
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22766
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22767
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22768
|
+
let options_ = {
|
|
22769
|
+
method: "GET",
|
|
22770
|
+
headers: {
|
|
22771
|
+
"Accept": "application/json"
|
|
22889
22772
|
}
|
|
22890
|
-
}
|
|
22773
|
+
};
|
|
22774
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22775
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22776
|
+
}).then((_response) => {
|
|
22777
|
+
return this.processGetDiscussionMessages(_response);
|
|
22778
|
+
});
|
|
22891
22779
|
}
|
|
22892
|
-
|
|
22893
|
-
|
|
22894
|
-
|
|
22895
|
-
|
|
22896
|
-
|
|
22780
|
+
processGetDiscussionMessages(response) {
|
|
22781
|
+
const status = response.status;
|
|
22782
|
+
let _headers = {};
|
|
22783
|
+
if (response.headers && response.headers.forEach) {
|
|
22784
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22897
22785
|
}
|
|
22898
|
-
|
|
22899
|
-
|
|
22900
|
-
|
|
22901
|
-
|
|
22902
|
-
|
|
22903
|
-
|
|
22904
|
-
|
|
22905
|
-
|
|
22906
|
-
|
|
22907
|
-
|
|
22908
|
-
|
|
22909
|
-
|
|
22910
|
-
return data;
|
|
22911
|
-
}
|
|
22912
|
-
}
|
|
22913
|
-
export class CountryDto {
|
|
22914
|
-
constructor(data) {
|
|
22915
|
-
if (data) {
|
|
22916
|
-
for (var property in data) {
|
|
22917
|
-
if (data.hasOwnProperty(property))
|
|
22918
|
-
this[property] = data[property];
|
|
22919
|
-
}
|
|
22786
|
+
;
|
|
22787
|
+
if (status === 200) {
|
|
22788
|
+
return response.text().then((_responseText) => {
|
|
22789
|
+
let result200 = null;
|
|
22790
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22791
|
+
if (Array.isArray(resultData200)) {
|
|
22792
|
+
result200 = [];
|
|
22793
|
+
for (let item of resultData200)
|
|
22794
|
+
result200.push(WorkorderDiscussionMessageDto.fromJS(item));
|
|
22795
|
+
}
|
|
22796
|
+
return result200;
|
|
22797
|
+
});
|
|
22920
22798
|
}
|
|
22921
|
-
|
|
22922
|
-
|
|
22923
|
-
|
|
22924
|
-
|
|
22925
|
-
this.threeLetterISORegionName = _data["threeLetterISORegionName"];
|
|
22926
|
-
this.name = _data["name"];
|
|
22799
|
+
else if (status !== 200 && status !== 204) {
|
|
22800
|
+
return response.text().then((_responseText) => {
|
|
22801
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22802
|
+
});
|
|
22927
22803
|
}
|
|
22804
|
+
return Promise.resolve(null);
|
|
22928
22805
|
}
|
|
22929
|
-
|
|
22930
|
-
|
|
22931
|
-
|
|
22932
|
-
|
|
22933
|
-
|
|
22934
|
-
|
|
22935
|
-
|
|
22936
|
-
|
|
22937
|
-
|
|
22938
|
-
|
|
22939
|
-
|
|
22940
|
-
|
|
22941
|
-
|
|
22942
|
-
}
|
|
22943
|
-
export class CurrentCustomerDto {
|
|
22944
|
-
constructor(data) {
|
|
22945
|
-
if (data) {
|
|
22946
|
-
for (var property in data) {
|
|
22947
|
-
if (data.hasOwnProperty(property))
|
|
22948
|
-
this[property] = data[property];
|
|
22806
|
+
addDiscussionMessage(id, request) {
|
|
22807
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
22808
|
+
if (id === undefined || id === null)
|
|
22809
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22810
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22811
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22812
|
+
const content_ = JSON.stringify(request);
|
|
22813
|
+
let options_ = {
|
|
22814
|
+
body: content_,
|
|
22815
|
+
method: "POST",
|
|
22816
|
+
headers: {
|
|
22817
|
+
"Content-Type": "application/json",
|
|
22818
|
+
"Accept": "application/json"
|
|
22949
22819
|
}
|
|
22950
|
-
}
|
|
22820
|
+
};
|
|
22821
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22822
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22823
|
+
}).then((_response) => {
|
|
22824
|
+
return this.processAddDiscussionMessage(_response);
|
|
22825
|
+
});
|
|
22951
22826
|
}
|
|
22952
|
-
|
|
22953
|
-
|
|
22954
|
-
|
|
22955
|
-
|
|
22827
|
+
processAddDiscussionMessage(response) {
|
|
22828
|
+
const status = response.status;
|
|
22829
|
+
let _headers = {};
|
|
22830
|
+
if (response.headers && response.headers.forEach) {
|
|
22831
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22832
|
+
}
|
|
22833
|
+
;
|
|
22834
|
+
if (status === 201) {
|
|
22835
|
+
return response.text().then((_responseText) => {
|
|
22836
|
+
let result201 = null;
|
|
22837
|
+
let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22838
|
+
result201 = WorkorderDiscussionMessageDto.fromJS(resultData201);
|
|
22839
|
+
return result201;
|
|
22840
|
+
});
|
|
22841
|
+
}
|
|
22842
|
+
else if (status !== 200 && status !== 204) {
|
|
22843
|
+
return response.text().then((_responseText) => {
|
|
22844
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22845
|
+
});
|
|
22956
22846
|
}
|
|
22847
|
+
return Promise.resolve(null);
|
|
22957
22848
|
}
|
|
22958
|
-
|
|
22849
|
+
updateMessage(id, messageId, content) {
|
|
22850
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
22851
|
+
if (id === undefined || id === null)
|
|
22852
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22853
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22854
|
+
if (messageId === undefined || messageId === null)
|
|
22855
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
22856
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
22857
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22858
|
+
const content_ = JSON.stringify(content);
|
|
22859
|
+
let options_ = {
|
|
22860
|
+
body: content_,
|
|
22861
|
+
method: "PUT",
|
|
22862
|
+
headers: {
|
|
22863
|
+
"Content-Type": "application/json",
|
|
22864
|
+
"Accept": "application/octet-stream"
|
|
22865
|
+
}
|
|
22866
|
+
};
|
|
22867
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22868
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22869
|
+
}).then((_response) => {
|
|
22870
|
+
return this.processUpdateMessage(_response);
|
|
22871
|
+
});
|
|
22872
|
+
}
|
|
22873
|
+
processUpdateMessage(response) {
|
|
22874
|
+
const status = response.status;
|
|
22875
|
+
let _headers = {};
|
|
22876
|
+
if (response.headers && response.headers.forEach) {
|
|
22877
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22878
|
+
}
|
|
22879
|
+
;
|
|
22880
|
+
if (status === 200 || status === 206) {
|
|
22881
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
22882
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
22883
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
22884
|
+
if (fileName) {
|
|
22885
|
+
fileName = decodeURIComponent(fileName);
|
|
22886
|
+
}
|
|
22887
|
+
else {
|
|
22888
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
22889
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
22890
|
+
}
|
|
22891
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
22892
|
+
}
|
|
22893
|
+
else if (status !== 200 && status !== 204) {
|
|
22894
|
+
return response.text().then((_responseText) => {
|
|
22895
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22896
|
+
});
|
|
22897
|
+
}
|
|
22898
|
+
return Promise.resolve(null);
|
|
22899
|
+
}
|
|
22900
|
+
deleteMessage(id, messageId) {
|
|
22901
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
22902
|
+
if (id === undefined || id === null)
|
|
22903
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22904
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22905
|
+
if (messageId === undefined || messageId === null)
|
|
22906
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
22907
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
22908
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22909
|
+
let options_ = {
|
|
22910
|
+
method: "DELETE",
|
|
22911
|
+
headers: {
|
|
22912
|
+
"Accept": "application/octet-stream"
|
|
22913
|
+
}
|
|
22914
|
+
};
|
|
22915
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22916
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22917
|
+
}).then((_response) => {
|
|
22918
|
+
return this.processDeleteMessage(_response);
|
|
22919
|
+
});
|
|
22920
|
+
}
|
|
22921
|
+
processDeleteMessage(response) {
|
|
22922
|
+
const status = response.status;
|
|
22923
|
+
let _headers = {};
|
|
22924
|
+
if (response.headers && response.headers.forEach) {
|
|
22925
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22926
|
+
}
|
|
22927
|
+
;
|
|
22928
|
+
if (status === 200 || status === 206) {
|
|
22929
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
22930
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
22931
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
22932
|
+
if (fileName) {
|
|
22933
|
+
fileName = decodeURIComponent(fileName);
|
|
22934
|
+
}
|
|
22935
|
+
else {
|
|
22936
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
22937
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
22938
|
+
}
|
|
22939
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
22940
|
+
}
|
|
22941
|
+
else if (status !== 200 && status !== 204) {
|
|
22942
|
+
return response.text().then((_responseText) => {
|
|
22943
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22944
|
+
});
|
|
22945
|
+
}
|
|
22946
|
+
return Promise.resolve(null);
|
|
22947
|
+
}
|
|
22948
|
+
getLastRead(id, operationId, resourceId) {
|
|
22949
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
|
|
22950
|
+
if (id === undefined || id === null)
|
|
22951
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22952
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22953
|
+
if (operationId !== undefined && operationId !== null)
|
|
22954
|
+
url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
|
|
22955
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
22956
|
+
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
22957
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22958
|
+
let options_ = {
|
|
22959
|
+
method: "GET",
|
|
22960
|
+
headers: {
|
|
22961
|
+
"Accept": "application/json"
|
|
22962
|
+
}
|
|
22963
|
+
};
|
|
22964
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22965
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22966
|
+
}).then((_response) => {
|
|
22967
|
+
return this.processGetLastRead(_response);
|
|
22968
|
+
});
|
|
22969
|
+
}
|
|
22970
|
+
processGetLastRead(response) {
|
|
22971
|
+
const status = response.status;
|
|
22972
|
+
let _headers = {};
|
|
22973
|
+
if (response.headers && response.headers.forEach) {
|
|
22974
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22975
|
+
}
|
|
22976
|
+
;
|
|
22977
|
+
if (status === 200) {
|
|
22978
|
+
return response.text().then((_responseText) => {
|
|
22979
|
+
let result200 = null;
|
|
22980
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22981
|
+
result200 = WorkorderDiscussionReadStatusDto.fromJS(resultData200);
|
|
22982
|
+
return result200;
|
|
22983
|
+
});
|
|
22984
|
+
}
|
|
22985
|
+
else if (status !== 200 && status !== 204) {
|
|
22986
|
+
return response.text().then((_responseText) => {
|
|
22987
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22988
|
+
});
|
|
22989
|
+
}
|
|
22990
|
+
return Promise.resolve(null);
|
|
22991
|
+
}
|
|
22992
|
+
setLastRead(id, request) {
|
|
22993
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
|
|
22994
|
+
if (id === undefined || id === null)
|
|
22995
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22996
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22997
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22998
|
+
const content_ = JSON.stringify(request);
|
|
22999
|
+
let options_ = {
|
|
23000
|
+
body: content_,
|
|
23001
|
+
method: "POST",
|
|
23002
|
+
headers: {
|
|
23003
|
+
"Content-Type": "application/json",
|
|
23004
|
+
}
|
|
23005
|
+
};
|
|
23006
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23007
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23008
|
+
}).then((_response) => {
|
|
23009
|
+
return this.processSetLastRead(_response);
|
|
23010
|
+
});
|
|
23011
|
+
}
|
|
23012
|
+
processSetLastRead(response) {
|
|
23013
|
+
const status = response.status;
|
|
23014
|
+
let _headers = {};
|
|
23015
|
+
if (response.headers && response.headers.forEach) {
|
|
23016
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23017
|
+
}
|
|
23018
|
+
;
|
|
23019
|
+
if (status === 204) {
|
|
23020
|
+
return response.text().then((_responseText) => {
|
|
23021
|
+
return;
|
|
23022
|
+
});
|
|
23023
|
+
}
|
|
23024
|
+
else if (status !== 200 && status !== 204) {
|
|
23025
|
+
return response.text().then((_responseText) => {
|
|
23026
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23027
|
+
});
|
|
23028
|
+
}
|
|
23029
|
+
return Promise.resolve(null);
|
|
23030
|
+
}
|
|
23031
|
+
}
|
|
23032
|
+
export class AzureRegionDto {
|
|
23033
|
+
constructor(data) {
|
|
23034
|
+
if (data) {
|
|
23035
|
+
for (var property in data) {
|
|
23036
|
+
if (data.hasOwnProperty(property))
|
|
23037
|
+
this[property] = data[property];
|
|
23038
|
+
}
|
|
23039
|
+
}
|
|
23040
|
+
}
|
|
23041
|
+
init(_data) {
|
|
23042
|
+
if (_data) {
|
|
23043
|
+
this.displayName = _data["displayName"];
|
|
23044
|
+
this.name = _data["name"];
|
|
23045
|
+
this.regionDisplayName = _data["regionDisplayName"];
|
|
23046
|
+
}
|
|
23047
|
+
}
|
|
23048
|
+
static fromJS(data) {
|
|
23049
|
+
data = typeof data === 'object' ? data : {};
|
|
23050
|
+
let result = new AzureRegionDto();
|
|
23051
|
+
result.init(data);
|
|
23052
|
+
return result;
|
|
23053
|
+
}
|
|
23054
|
+
toJSON(data) {
|
|
23055
|
+
data = typeof data === 'object' ? data : {};
|
|
23056
|
+
data["displayName"] = this.displayName;
|
|
23057
|
+
data["name"] = this.name;
|
|
23058
|
+
data["regionDisplayName"] = this.regionDisplayName;
|
|
23059
|
+
return data;
|
|
23060
|
+
}
|
|
23061
|
+
}
|
|
23062
|
+
export class CountryDto {
|
|
23063
|
+
constructor(data) {
|
|
23064
|
+
if (data) {
|
|
23065
|
+
for (var property in data) {
|
|
23066
|
+
if (data.hasOwnProperty(property))
|
|
23067
|
+
this[property] = data[property];
|
|
23068
|
+
}
|
|
23069
|
+
}
|
|
23070
|
+
}
|
|
23071
|
+
init(_data) {
|
|
23072
|
+
if (_data) {
|
|
23073
|
+
this.twoLetterISORegionName = _data["twoLetterISORegionName"];
|
|
23074
|
+
this.threeLetterISORegionName = _data["threeLetterISORegionName"];
|
|
23075
|
+
this.name = _data["name"];
|
|
23076
|
+
}
|
|
23077
|
+
}
|
|
23078
|
+
static fromJS(data) {
|
|
23079
|
+
data = typeof data === 'object' ? data : {};
|
|
23080
|
+
let result = new CountryDto();
|
|
23081
|
+
result.init(data);
|
|
23082
|
+
return result;
|
|
23083
|
+
}
|
|
23084
|
+
toJSON(data) {
|
|
23085
|
+
data = typeof data === 'object' ? data : {};
|
|
23086
|
+
data["twoLetterISORegionName"] = this.twoLetterISORegionName;
|
|
23087
|
+
data["threeLetterISORegionName"] = this.threeLetterISORegionName;
|
|
23088
|
+
data["name"] = this.name;
|
|
23089
|
+
return data;
|
|
23090
|
+
}
|
|
23091
|
+
}
|
|
23092
|
+
export class CurrentCustomerDto {
|
|
23093
|
+
constructor(data) {
|
|
23094
|
+
if (data) {
|
|
23095
|
+
for (var property in data) {
|
|
23096
|
+
if (data.hasOwnProperty(property))
|
|
23097
|
+
this[property] = data[property];
|
|
23098
|
+
}
|
|
23099
|
+
}
|
|
23100
|
+
}
|
|
23101
|
+
init(_data) {
|
|
23102
|
+
if (_data) {
|
|
23103
|
+
this.name = _data["name"];
|
|
23104
|
+
this.logoUrl = _data["logoUrl"];
|
|
23105
|
+
}
|
|
23106
|
+
}
|
|
23107
|
+
static fromJS(data) {
|
|
22959
23108
|
data = typeof data === 'object' ? data : {};
|
|
22960
23109
|
let result = new CurrentCustomerDto();
|
|
22961
23110
|
result.init(data);
|
|
@@ -41474,6 +41623,7 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
41474
41623
|
this.pageSize = _data["pageSize"];
|
|
41475
41624
|
this.customerId = _data["customerId"];
|
|
41476
41625
|
this.customerName = _data["customerName"];
|
|
41626
|
+
this.partName = _data["partName"];
|
|
41477
41627
|
this.partNumber = _data["partNumber"];
|
|
41478
41628
|
this.partRevision = _data["partRevision"];
|
|
41479
41629
|
this.drawing = _data["drawing"];
|
|
@@ -41493,6 +41643,7 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
41493
41643
|
data["pageSize"] = this.pageSize;
|
|
41494
41644
|
data["customerId"] = this.customerId;
|
|
41495
41645
|
data["customerName"] = this.customerName;
|
|
41646
|
+
data["partName"] = this.partName;
|
|
41496
41647
|
data["partNumber"] = this.partNumber;
|
|
41497
41648
|
data["partRevision"] = this.partRevision;
|
|
41498
41649
|
data["drawing"] = this.drawing;
|
|
@@ -42242,7 +42393,7 @@ export class UploadRequest {
|
|
|
42242
42393
|
return data;
|
|
42243
42394
|
}
|
|
42244
42395
|
}
|
|
42245
|
-
export class
|
|
42396
|
+
export class ListLinkableMeasurementFormSchemasRequest {
|
|
42246
42397
|
constructor(data) {
|
|
42247
42398
|
if (data) {
|
|
42248
42399
|
for (var property in data) {
|
|
@@ -42253,28 +42404,28 @@ export class MeasurementFormImportStatusDto {
|
|
|
42253
42404
|
}
|
|
42254
42405
|
init(_data) {
|
|
42255
42406
|
if (_data) {
|
|
42256
|
-
this.
|
|
42257
|
-
this.
|
|
42258
|
-
this.
|
|
42259
|
-
this.
|
|
42407
|
+
this.schemaId = _data["schemaId"];
|
|
42408
|
+
this.pageSize = _data["pageSize"];
|
|
42409
|
+
this.filter = _data["filter"];
|
|
42410
|
+
this.continuationToken = _data["continuationToken"];
|
|
42260
42411
|
}
|
|
42261
42412
|
}
|
|
42262
42413
|
static fromJS(data) {
|
|
42263
42414
|
data = typeof data === 'object' ? data : {};
|
|
42264
|
-
let result = new
|
|
42415
|
+
let result = new ListLinkableMeasurementFormSchemasRequest();
|
|
42265
42416
|
result.init(data);
|
|
42266
42417
|
return result;
|
|
42267
42418
|
}
|
|
42268
42419
|
toJSON(data) {
|
|
42269
42420
|
data = typeof data === 'object' ? data : {};
|
|
42270
|
-
data["
|
|
42271
|
-
data["
|
|
42272
|
-
data["
|
|
42273
|
-
data["
|
|
42421
|
+
data["schemaId"] = this.schemaId;
|
|
42422
|
+
data["pageSize"] = this.pageSize;
|
|
42423
|
+
data["filter"] = this.filter;
|
|
42424
|
+
data["continuationToken"] = this.continuationToken;
|
|
42274
42425
|
return data;
|
|
42275
42426
|
}
|
|
42276
42427
|
}
|
|
42277
|
-
export class
|
|
42428
|
+
export class CreateMeasurementFormSchemaLinkRequest {
|
|
42278
42429
|
constructor(data) {
|
|
42279
42430
|
if (data) {
|
|
42280
42431
|
for (var property in data) {
|
|
@@ -42285,39 +42436,7 @@ export class ListLinkableMeasurementFormSchemasRequest {
|
|
|
42285
42436
|
}
|
|
42286
42437
|
init(_data) {
|
|
42287
42438
|
if (_data) {
|
|
42288
|
-
this.
|
|
42289
|
-
this.pageSize = _data["pageSize"];
|
|
42290
|
-
this.filter = _data["filter"];
|
|
42291
|
-
this.continuationToken = _data["continuationToken"];
|
|
42292
|
-
}
|
|
42293
|
-
}
|
|
42294
|
-
static fromJS(data) {
|
|
42295
|
-
data = typeof data === 'object' ? data : {};
|
|
42296
|
-
let result = new ListLinkableMeasurementFormSchemasRequest();
|
|
42297
|
-
result.init(data);
|
|
42298
|
-
return result;
|
|
42299
|
-
}
|
|
42300
|
-
toJSON(data) {
|
|
42301
|
-
data = typeof data === 'object' ? data : {};
|
|
42302
|
-
data["schemaId"] = this.schemaId;
|
|
42303
|
-
data["pageSize"] = this.pageSize;
|
|
42304
|
-
data["filter"] = this.filter;
|
|
42305
|
-
data["continuationToken"] = this.continuationToken;
|
|
42306
|
-
return data;
|
|
42307
|
-
}
|
|
42308
|
-
}
|
|
42309
|
-
export class CreateMeasurementFormSchemaLinkRequest {
|
|
42310
|
-
constructor(data) {
|
|
42311
|
-
if (data) {
|
|
42312
|
-
for (var property in data) {
|
|
42313
|
-
if (data.hasOwnProperty(property))
|
|
42314
|
-
this[property] = data[property];
|
|
42315
|
-
}
|
|
42316
|
-
}
|
|
42317
|
-
}
|
|
42318
|
-
init(_data) {
|
|
42319
|
-
if (_data) {
|
|
42320
|
-
this.linkSchemaId = _data["linkSchemaId"];
|
|
42439
|
+
this.linkSchemaId = _data["linkSchemaId"];
|
|
42321
42440
|
}
|
|
42322
42441
|
}
|
|
42323
42442
|
static fromJS(data) {
|
|
@@ -42757,274 +42876,6 @@ export class MeasurementFormMappingSuggestionDto {
|
|
|
42757
42876
|
return data;
|
|
42758
42877
|
}
|
|
42759
42878
|
}
|
|
42760
|
-
export class ImportMeasurementFormSchema {
|
|
42761
|
-
constructor(data) {
|
|
42762
|
-
if (data) {
|
|
42763
|
-
for (var property in data) {
|
|
42764
|
-
if (data.hasOwnProperty(property))
|
|
42765
|
-
this[property] = data[property];
|
|
42766
|
-
}
|
|
42767
|
-
}
|
|
42768
|
-
if (!data) {
|
|
42769
|
-
this.versions = [];
|
|
42770
|
-
}
|
|
42771
|
-
}
|
|
42772
|
-
init(_data) {
|
|
42773
|
-
if (_data) {
|
|
42774
|
-
this.customerId = _data["customerId"];
|
|
42775
|
-
this.customerName = _data["customerName"];
|
|
42776
|
-
this.partNumber = _data["partNumber"];
|
|
42777
|
-
this.partRevision = _data["partRevision"];
|
|
42778
|
-
this.drawing = _data["drawing"];
|
|
42779
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
42780
|
-
this.includeToolsInReport = _data["includeToolsInReport"];
|
|
42781
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
42782
|
-
this.createdBy = _data["createdBy"];
|
|
42783
|
-
this.updatedBy = _data["updatedBy"];
|
|
42784
|
-
this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
|
|
42785
|
-
this.source = _data["source"];
|
|
42786
|
-
if (Array.isArray(_data["extraSchemas"])) {
|
|
42787
|
-
this.extraSchemas = [];
|
|
42788
|
-
for (let item of _data["extraSchemas"])
|
|
42789
|
-
this.extraSchemas.push(MeasurementFormImportLinkedSchemaDto.fromJS(item));
|
|
42790
|
-
}
|
|
42791
|
-
if (Array.isArray(_data["versions"])) {
|
|
42792
|
-
this.versions = [];
|
|
42793
|
-
for (let item of _data["versions"])
|
|
42794
|
-
this.versions.push(MeasurementFormVersionImportDto.fromJS(item));
|
|
42795
|
-
}
|
|
42796
|
-
}
|
|
42797
|
-
}
|
|
42798
|
-
static fromJS(data) {
|
|
42799
|
-
data = typeof data === 'object' ? data : {};
|
|
42800
|
-
let result = new ImportMeasurementFormSchema();
|
|
42801
|
-
result.init(data);
|
|
42802
|
-
return result;
|
|
42803
|
-
}
|
|
42804
|
-
toJSON(data) {
|
|
42805
|
-
data = typeof data === 'object' ? data : {};
|
|
42806
|
-
data["customerId"] = this.customerId;
|
|
42807
|
-
data["customerName"] = this.customerName;
|
|
42808
|
-
data["partNumber"] = this.partNumber;
|
|
42809
|
-
data["partRevision"] = this.partRevision;
|
|
42810
|
-
data["drawing"] = this.drawing;
|
|
42811
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
42812
|
-
data["includeToolsInReport"] = this.includeToolsInReport;
|
|
42813
|
-
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
42814
|
-
data["createdBy"] = this.createdBy;
|
|
42815
|
-
data["updatedBy"] = this.updatedBy;
|
|
42816
|
-
data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
|
|
42817
|
-
data["source"] = this.source;
|
|
42818
|
-
if (Array.isArray(this.extraSchemas)) {
|
|
42819
|
-
data["extraSchemas"] = [];
|
|
42820
|
-
for (let item of this.extraSchemas)
|
|
42821
|
-
data["extraSchemas"].push(item.toJSON());
|
|
42822
|
-
}
|
|
42823
|
-
if (Array.isArray(this.versions)) {
|
|
42824
|
-
data["versions"] = [];
|
|
42825
|
-
for (let item of this.versions)
|
|
42826
|
-
data["versions"].push(item.toJSON());
|
|
42827
|
-
}
|
|
42828
|
-
return data;
|
|
42829
|
-
}
|
|
42830
|
-
}
|
|
42831
|
-
export class MeasurementFormImportLinkedSchemaDto {
|
|
42832
|
-
constructor(data) {
|
|
42833
|
-
if (data) {
|
|
42834
|
-
for (var property in data) {
|
|
42835
|
-
if (data.hasOwnProperty(property))
|
|
42836
|
-
this[property] = data[property];
|
|
42837
|
-
}
|
|
42838
|
-
}
|
|
42839
|
-
}
|
|
42840
|
-
init(_data) {
|
|
42841
|
-
if (_data) {
|
|
42842
|
-
this.customerId = _data["customerId"];
|
|
42843
|
-
this.partNumber = _data["partNumber"];
|
|
42844
|
-
this.partRevision = _data["partRevision"];
|
|
42845
|
-
this.drawing = _data["drawing"];
|
|
42846
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
42847
|
-
this.schemaId = _data["schemaId"];
|
|
42848
|
-
}
|
|
42849
|
-
}
|
|
42850
|
-
static fromJS(data) {
|
|
42851
|
-
data = typeof data === 'object' ? data : {};
|
|
42852
|
-
let result = new MeasurementFormImportLinkedSchemaDto();
|
|
42853
|
-
result.init(data);
|
|
42854
|
-
return result;
|
|
42855
|
-
}
|
|
42856
|
-
toJSON(data) {
|
|
42857
|
-
data = typeof data === 'object' ? data : {};
|
|
42858
|
-
data["customerId"] = this.customerId;
|
|
42859
|
-
data["partNumber"] = this.partNumber;
|
|
42860
|
-
data["partRevision"] = this.partRevision;
|
|
42861
|
-
data["drawing"] = this.drawing;
|
|
42862
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
42863
|
-
data["schemaId"] = this.schemaId;
|
|
42864
|
-
return data;
|
|
42865
|
-
}
|
|
42866
|
-
}
|
|
42867
|
-
export class MeasurementFormVersionImportDto {
|
|
42868
|
-
constructor(data) {
|
|
42869
|
-
if (data) {
|
|
42870
|
-
for (var property in data) {
|
|
42871
|
-
if (data.hasOwnProperty(property))
|
|
42872
|
-
this[property] = data[property];
|
|
42873
|
-
}
|
|
42874
|
-
}
|
|
42875
|
-
if (!data) {
|
|
42876
|
-
this.elements = [];
|
|
42877
|
-
}
|
|
42878
|
-
}
|
|
42879
|
-
init(_data) {
|
|
42880
|
-
if (_data) {
|
|
42881
|
-
this.version = _data["version"];
|
|
42882
|
-
this.specification = _data["specification"];
|
|
42883
|
-
this.drawingUrl = _data["drawingUrl"];
|
|
42884
|
-
this.markedDrawingUrl = _data["markedDrawingUrl"];
|
|
42885
|
-
this.xmlUrl = _data["xmlUrl"];
|
|
42886
|
-
this.inspectionXpertProjectUrl = _data["inspectionXpertProjectUrl"];
|
|
42887
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
42888
|
-
this.createdBy = _data["createdBy"];
|
|
42889
|
-
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : undefined;
|
|
42890
|
-
this.updatedBy = _data["updatedBy"];
|
|
42891
|
-
if (Array.isArray(_data["elements"])) {
|
|
42892
|
-
this.elements = [];
|
|
42893
|
-
for (let item of _data["elements"])
|
|
42894
|
-
this.elements.push(MeasurementFormElementImportDto.fromJS(item));
|
|
42895
|
-
}
|
|
42896
|
-
this.isUsed = _data["isUsed"];
|
|
42897
|
-
}
|
|
42898
|
-
}
|
|
42899
|
-
static fromJS(data) {
|
|
42900
|
-
data = typeof data === 'object' ? data : {};
|
|
42901
|
-
let result = new MeasurementFormVersionImportDto();
|
|
42902
|
-
result.init(data);
|
|
42903
|
-
return result;
|
|
42904
|
-
}
|
|
42905
|
-
toJSON(data) {
|
|
42906
|
-
data = typeof data === 'object' ? data : {};
|
|
42907
|
-
data["version"] = this.version;
|
|
42908
|
-
data["specification"] = this.specification;
|
|
42909
|
-
data["drawingUrl"] = this.drawingUrl;
|
|
42910
|
-
data["markedDrawingUrl"] = this.markedDrawingUrl;
|
|
42911
|
-
data["xmlUrl"] = this.xmlUrl;
|
|
42912
|
-
data["inspectionXpertProjectUrl"] = this.inspectionXpertProjectUrl;
|
|
42913
|
-
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
42914
|
-
data["createdBy"] = this.createdBy;
|
|
42915
|
-
data["updated"] = this.updated ? this.updated.toISOString() : undefined;
|
|
42916
|
-
data["updatedBy"] = this.updatedBy;
|
|
42917
|
-
if (Array.isArray(this.elements)) {
|
|
42918
|
-
data["elements"] = [];
|
|
42919
|
-
for (let item of this.elements)
|
|
42920
|
-
data["elements"].push(item.toJSON());
|
|
42921
|
-
}
|
|
42922
|
-
data["isUsed"] = this.isUsed;
|
|
42923
|
-
return data;
|
|
42924
|
-
}
|
|
42925
|
-
}
|
|
42926
|
-
export class MeasurementFormElementImportDto {
|
|
42927
|
-
constructor(data) {
|
|
42928
|
-
if (data) {
|
|
42929
|
-
for (var property in data) {
|
|
42930
|
-
if (data.hasOwnProperty(property))
|
|
42931
|
-
this[property] = data[property];
|
|
42932
|
-
}
|
|
42933
|
-
}
|
|
42934
|
-
}
|
|
42935
|
-
init(_data) {
|
|
42936
|
-
if (_data) {
|
|
42937
|
-
this.id = _data["id"];
|
|
42938
|
-
this.imageUrl = _data["imageUrl"];
|
|
42939
|
-
this.thumbnailUrl = _data["thumbnailUrl"];
|
|
42940
|
-
this.balloonId = _data["balloonId"];
|
|
42941
|
-
this.section = _data["section"];
|
|
42942
|
-
this.pageNumber = _data["pageNumber"];
|
|
42943
|
-
this.sheetZone = _data["sheetZone"];
|
|
42944
|
-
this.places = _data["places"];
|
|
42945
|
-
this.nominal = _data["nominal"];
|
|
42946
|
-
this.nominalText = _data["nominalText"];
|
|
42947
|
-
this.type = _data["type"];
|
|
42948
|
-
this.subType = _data["subType"];
|
|
42949
|
-
this.unitOfMeasure = _data["unitOfMeasure"];
|
|
42950
|
-
this.typeCharacter = _data["typeCharacter"];
|
|
42951
|
-
this.plusTolerance = _data["plusTolerance"];
|
|
42952
|
-
this.minusTolerance = _data["minusTolerance"];
|
|
42953
|
-
this.upperLimit = _data["upperLimit"];
|
|
42954
|
-
this.lowerLimit = _data["lowerLimit"];
|
|
42955
|
-
this.comments = _data["comments"];
|
|
42956
|
-
this.updatedByUser = _data["updatedByUser"];
|
|
42957
|
-
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
42958
|
-
this.createdByUser = _data["createdByUser"];
|
|
42959
|
-
this.createdDate = _data["createdDate"] ? new Date(_data["createdDate"].toString()) : undefined;
|
|
42960
|
-
this.frequency = _data["frequency"];
|
|
42961
|
-
this.frequencyParameter = _data["frequencyParameter"];
|
|
42962
|
-
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
42963
|
-
this.balloonSequence = _data["balloonSequence"];
|
|
42964
|
-
this.balloonQuantity = _data["balloonQuantity"];
|
|
42965
|
-
this.plusToleranceText = _data["plusToleranceText"];
|
|
42966
|
-
this.minusToleranceText = _data["minusToleranceText"];
|
|
42967
|
-
this.coatingThickness = _data["coatingThickness"];
|
|
42968
|
-
this.canCopy = _data["canCopy"];
|
|
42969
|
-
this.valueType = _data["valueType"];
|
|
42970
|
-
this.inspectionMethod = _data["inspectionMethod"];
|
|
42971
|
-
this.process = _data["process"];
|
|
42972
|
-
this.classification = _data["classification"];
|
|
42973
|
-
this.fitGrade = _data["fitGrade"];
|
|
42974
|
-
this.fitType = _data["fitType"];
|
|
42975
|
-
this.forReference = _data["forReference"];
|
|
42976
|
-
}
|
|
42977
|
-
}
|
|
42978
|
-
static fromJS(data) {
|
|
42979
|
-
data = typeof data === 'object' ? data : {};
|
|
42980
|
-
let result = new MeasurementFormElementImportDto();
|
|
42981
|
-
result.init(data);
|
|
42982
|
-
return result;
|
|
42983
|
-
}
|
|
42984
|
-
toJSON(data) {
|
|
42985
|
-
data = typeof data === 'object' ? data : {};
|
|
42986
|
-
data["id"] = this.id;
|
|
42987
|
-
data["imageUrl"] = this.imageUrl;
|
|
42988
|
-
data["thumbnailUrl"] = this.thumbnailUrl;
|
|
42989
|
-
data["balloonId"] = this.balloonId;
|
|
42990
|
-
data["section"] = this.section;
|
|
42991
|
-
data["pageNumber"] = this.pageNumber;
|
|
42992
|
-
data["sheetZone"] = this.sheetZone;
|
|
42993
|
-
data["places"] = this.places;
|
|
42994
|
-
data["nominal"] = this.nominal;
|
|
42995
|
-
data["nominalText"] = this.nominalText;
|
|
42996
|
-
data["type"] = this.type;
|
|
42997
|
-
data["subType"] = this.subType;
|
|
42998
|
-
data["unitOfMeasure"] = this.unitOfMeasure;
|
|
42999
|
-
data["typeCharacter"] = this.typeCharacter;
|
|
43000
|
-
data["plusTolerance"] = this.plusTolerance;
|
|
43001
|
-
data["minusTolerance"] = this.minusTolerance;
|
|
43002
|
-
data["upperLimit"] = this.upperLimit;
|
|
43003
|
-
data["lowerLimit"] = this.lowerLimit;
|
|
43004
|
-
data["comments"] = this.comments;
|
|
43005
|
-
data["updatedByUser"] = this.updatedByUser;
|
|
43006
|
-
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
43007
|
-
data["createdByUser"] = this.createdByUser;
|
|
43008
|
-
data["createdDate"] = this.createdDate ? this.createdDate.toISOString() : undefined;
|
|
43009
|
-
data["frequency"] = this.frequency;
|
|
43010
|
-
data["frequencyParameter"] = this.frequencyParameter;
|
|
43011
|
-
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
43012
|
-
data["balloonSequence"] = this.balloonSequence;
|
|
43013
|
-
data["balloonQuantity"] = this.balloonQuantity;
|
|
43014
|
-
data["plusToleranceText"] = this.plusToleranceText;
|
|
43015
|
-
data["minusToleranceText"] = this.minusToleranceText;
|
|
43016
|
-
data["coatingThickness"] = this.coatingThickness;
|
|
43017
|
-
data["canCopy"] = this.canCopy;
|
|
43018
|
-
data["valueType"] = this.valueType;
|
|
43019
|
-
data["inspectionMethod"] = this.inspectionMethod;
|
|
43020
|
-
data["process"] = this.process;
|
|
43021
|
-
data["classification"] = this.classification;
|
|
43022
|
-
data["fitGrade"] = this.fitGrade;
|
|
43023
|
-
data["fitType"] = this.fitType;
|
|
43024
|
-
data["forReference"] = this.forReference;
|
|
43025
|
-
return data;
|
|
43026
|
-
}
|
|
43027
|
-
}
|
|
43028
42879
|
export class PagedResultOfMeasurementFormNeedDto {
|
|
43029
42880
|
constructor(data) {
|
|
43030
42881
|
if (data) {
|
|
@@ -43081,6 +42932,7 @@ export class MeasurementFormNeedDto {
|
|
|
43081
42932
|
this.customerName = _data["customerName"];
|
|
43082
42933
|
this.partNumber = _data["partNumber"];
|
|
43083
42934
|
this.partRevision = _data["partRevision"];
|
|
42935
|
+
this.partName = _data["partName"];
|
|
43084
42936
|
this.drawing = _data["drawing"];
|
|
43085
42937
|
this.drawingRevision = _data["drawingRevision"];
|
|
43086
42938
|
this.workorder = _data["workorder"];
|
|
@@ -43108,6 +42960,7 @@ export class MeasurementFormNeedDto {
|
|
|
43108
42960
|
data["customerName"] = this.customerName;
|
|
43109
42961
|
data["partNumber"] = this.partNumber;
|
|
43110
42962
|
data["partRevision"] = this.partRevision;
|
|
42963
|
+
data["partName"] = this.partName;
|
|
43111
42964
|
data["drawing"] = this.drawing;
|
|
43112
42965
|
data["drawingRevision"] = this.drawingRevision;
|
|
43113
42966
|
data["workorder"] = this.workorder;
|
|
@@ -43136,6 +42989,7 @@ export class ListMeasurementFormNeedsRequest {
|
|
|
43136
42989
|
this.pageSize = _data["pageSize"];
|
|
43137
42990
|
this.customerId = _data["customerId"];
|
|
43138
42991
|
this.customerName = _data["customerName"];
|
|
42992
|
+
this.partName = _data["partName"];
|
|
43139
42993
|
this.partNumber = _data["partNumber"];
|
|
43140
42994
|
this.partRevision = _data["partRevision"];
|
|
43141
42995
|
this.drawing = _data["drawing"];
|
|
@@ -43156,6 +43010,7 @@ export class ListMeasurementFormNeedsRequest {
|
|
|
43156
43010
|
data["pageSize"] = this.pageSize;
|
|
43157
43011
|
data["customerId"] = this.customerId;
|
|
43158
43012
|
data["customerName"] = this.customerName;
|
|
43013
|
+
data["partName"] = this.partName;
|
|
43159
43014
|
data["partNumber"] = this.partNumber;
|
|
43160
43015
|
data["partRevision"] = this.partRevision;
|
|
43161
43016
|
data["drawing"] = this.drawing;
|
|
@@ -43312,6 +43167,7 @@ export class ListMeasurementFormSchemasNotNeededRequest {
|
|
|
43312
43167
|
this.customerId = _data["customerId"];
|
|
43313
43168
|
this.customerName = _data["customerName"];
|
|
43314
43169
|
this.partNumber = _data["partNumber"];
|
|
43170
|
+
this.partName = _data["partName"];
|
|
43315
43171
|
this.partRevision = _data["partRevision"];
|
|
43316
43172
|
this.drawing = _data["drawing"];
|
|
43317
43173
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -43331,6 +43187,7 @@ export class ListMeasurementFormSchemasNotNeededRequest {
|
|
|
43331
43187
|
data["customerId"] = this.customerId;
|
|
43332
43188
|
data["customerName"] = this.customerName;
|
|
43333
43189
|
data["partNumber"] = this.partNumber;
|
|
43190
|
+
data["partName"] = this.partName;
|
|
43334
43191
|
data["partRevision"] = this.partRevision;
|
|
43335
43192
|
data["drawing"] = this.drawing;
|
|
43336
43193
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -43483,6 +43340,7 @@ export class SchemaFeedbackDto {
|
|
|
43483
43340
|
this.latestSchemaDefinitionId = _data["latestSchemaDefinitionId"];
|
|
43484
43341
|
this.partNumber = _data["partNumber"];
|
|
43485
43342
|
this.partRevision = _data["partRevision"];
|
|
43343
|
+
this.partName = _data["partName"];
|
|
43486
43344
|
this.drawing = _data["drawing"];
|
|
43487
43345
|
this.drawingRevision = _data["drawingRevision"];
|
|
43488
43346
|
}
|
|
@@ -43509,6 +43367,7 @@ export class SchemaFeedbackDto {
|
|
|
43509
43367
|
data["latestSchemaDefinitionId"] = this.latestSchemaDefinitionId;
|
|
43510
43368
|
data["partNumber"] = this.partNumber;
|
|
43511
43369
|
data["partRevision"] = this.partRevision;
|
|
43370
|
+
data["partName"] = this.partName;
|
|
43512
43371
|
data["drawing"] = this.drawing;
|
|
43513
43372
|
data["drawingRevision"] = this.drawingRevision;
|
|
43514
43373
|
return data;
|
|
@@ -43666,6 +43525,7 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
43666
43525
|
if (_data) {
|
|
43667
43526
|
this.id = _data["id"];
|
|
43668
43527
|
this.readonly = _data["readonly"];
|
|
43528
|
+
this.partName = _data["partName"];
|
|
43669
43529
|
this.partNumber = _data["partNumber"];
|
|
43670
43530
|
this.partRevision = _data["partRevision"];
|
|
43671
43531
|
this.drawing = _data["drawing"];
|
|
@@ -43694,6 +43554,7 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
43694
43554
|
data = typeof data === 'object' ? data : {};
|
|
43695
43555
|
data["id"] = this.id;
|
|
43696
43556
|
data["readonly"] = this.readonly;
|
|
43557
|
+
data["partName"] = this.partName;
|
|
43697
43558
|
data["partNumber"] = this.partNumber;
|
|
43698
43559
|
data["partRevision"] = this.partRevision;
|
|
43699
43560
|
data["drawing"] = this.drawing;
|
|
@@ -43892,7 +43753,7 @@ export class MeasurementFormInstanceDto {
|
|
|
43892
43753
|
}
|
|
43893
43754
|
if (!data) {
|
|
43894
43755
|
this.schemas = [];
|
|
43895
|
-
this.
|
|
43756
|
+
this.serialNumbers = [];
|
|
43896
43757
|
this.suppliers = [];
|
|
43897
43758
|
this.progress = new MeasurementFormProgressDto();
|
|
43898
43759
|
}
|
|
@@ -43902,6 +43763,7 @@ export class MeasurementFormInstanceDto {
|
|
|
43902
43763
|
this.id = _data["id"];
|
|
43903
43764
|
this.readonly = _data["readonly"];
|
|
43904
43765
|
this.partNumber = _data["partNumber"];
|
|
43766
|
+
this.partName = _data["partName"];
|
|
43905
43767
|
this.partRevision = _data["partRevision"];
|
|
43906
43768
|
this.drawing = _data["drawing"];
|
|
43907
43769
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -43920,6 +43782,11 @@ export class MeasurementFormInstanceDto {
|
|
|
43920
43782
|
for (let item of _data["sequences"])
|
|
43921
43783
|
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
43922
43784
|
}
|
|
43785
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
43786
|
+
this.serialNumbers = [];
|
|
43787
|
+
for (let item of _data["serialNumbers"])
|
|
43788
|
+
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
43789
|
+
}
|
|
43923
43790
|
if (Array.isArray(_data["suppliers"])) {
|
|
43924
43791
|
this.suppliers = [];
|
|
43925
43792
|
for (let item of _data["suppliers"])
|
|
@@ -43941,6 +43808,7 @@ export class MeasurementFormInstanceDto {
|
|
|
43941
43808
|
data["id"] = this.id;
|
|
43942
43809
|
data["readonly"] = this.readonly;
|
|
43943
43810
|
data["partNumber"] = this.partNumber;
|
|
43811
|
+
data["partName"] = this.partName;
|
|
43944
43812
|
data["partRevision"] = this.partRevision;
|
|
43945
43813
|
data["drawing"] = this.drawing;
|
|
43946
43814
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -43959,6 +43827,11 @@ export class MeasurementFormInstanceDto {
|
|
|
43959
43827
|
for (let item of this.sequences)
|
|
43960
43828
|
data["sequences"].push(item.toJSON());
|
|
43961
43829
|
}
|
|
43830
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
43831
|
+
data["serialNumbers"] = [];
|
|
43832
|
+
for (let item of this.serialNumbers)
|
|
43833
|
+
data["serialNumbers"].push(item.toJSON());
|
|
43834
|
+
}
|
|
43962
43835
|
if (Array.isArray(this.suppliers)) {
|
|
43963
43836
|
data["suppliers"] = [];
|
|
43964
43837
|
for (let item of this.suppliers)
|
|
@@ -44051,6 +43924,36 @@ export class MeasurementFormWorkorderSequenceDto {
|
|
|
44051
43924
|
return data;
|
|
44052
43925
|
}
|
|
44053
43926
|
}
|
|
43927
|
+
export class MeasurementFormWorkorderSerialNumberDto {
|
|
43928
|
+
constructor(data) {
|
|
43929
|
+
if (data) {
|
|
43930
|
+
for (var property in data) {
|
|
43931
|
+
if (data.hasOwnProperty(property))
|
|
43932
|
+
this[property] = data[property];
|
|
43933
|
+
}
|
|
43934
|
+
}
|
|
43935
|
+
}
|
|
43936
|
+
init(_data) {
|
|
43937
|
+
if (_data) {
|
|
43938
|
+
this.lot = _data["lot"];
|
|
43939
|
+
this.serialNumber = _data["serialNumber"];
|
|
43940
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
43941
|
+
}
|
|
43942
|
+
}
|
|
43943
|
+
static fromJS(data) {
|
|
43944
|
+
data = typeof data === 'object' ? data : {};
|
|
43945
|
+
let result = new MeasurementFormWorkorderSerialNumberDto();
|
|
43946
|
+
result.init(data);
|
|
43947
|
+
return result;
|
|
43948
|
+
}
|
|
43949
|
+
toJSON(data) {
|
|
43950
|
+
data = typeof data === 'object' ? data : {};
|
|
43951
|
+
data["lot"] = this.lot;
|
|
43952
|
+
data["serialNumber"] = this.serialNumber;
|
|
43953
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
43954
|
+
return data;
|
|
43955
|
+
}
|
|
43956
|
+
}
|
|
44054
43957
|
export class MeasurementFormWorkorderSupplierDto {
|
|
44055
43958
|
constructor(data) {
|
|
44056
43959
|
if (data) {
|
|
@@ -44175,6 +44078,7 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
44175
44078
|
}
|
|
44176
44079
|
if (!data) {
|
|
44177
44080
|
this.sequences = [];
|
|
44081
|
+
this.serialNumbers = [];
|
|
44178
44082
|
}
|
|
44179
44083
|
}
|
|
44180
44084
|
init(_data) {
|
|
@@ -44188,6 +44092,11 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
44188
44092
|
for (let item of _data["sequences"])
|
|
44189
44093
|
this.sequences.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
44190
44094
|
}
|
|
44095
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
44096
|
+
this.serialNumbers = [];
|
|
44097
|
+
for (let item of _data["serialNumbers"])
|
|
44098
|
+
this.serialNumbers.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
|
|
44099
|
+
}
|
|
44191
44100
|
}
|
|
44192
44101
|
}
|
|
44193
44102
|
static fromJS(data) {
|
|
@@ -44207,6 +44116,11 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
44207
44116
|
for (let item of this.sequences)
|
|
44208
44117
|
data["sequences"].push(item.toJSON());
|
|
44209
44118
|
}
|
|
44119
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
44120
|
+
data["serialNumbers"] = [];
|
|
44121
|
+
for (let item of this.serialNumbers)
|
|
44122
|
+
data["serialNumbers"].push(item.toJSON());
|
|
44123
|
+
}
|
|
44210
44124
|
return data;
|
|
44211
44125
|
}
|
|
44212
44126
|
}
|
|
@@ -44238,6 +44152,34 @@ export class CreateMeasurementFormInstanceRequestSequence {
|
|
|
44238
44152
|
return data;
|
|
44239
44153
|
}
|
|
44240
44154
|
}
|
|
44155
|
+
export class CreateMeasurementFormInstanceRequestSerialNumber {
|
|
44156
|
+
constructor(data) {
|
|
44157
|
+
if (data) {
|
|
44158
|
+
for (var property in data) {
|
|
44159
|
+
if (data.hasOwnProperty(property))
|
|
44160
|
+
this[property] = data[property];
|
|
44161
|
+
}
|
|
44162
|
+
}
|
|
44163
|
+
}
|
|
44164
|
+
init(_data) {
|
|
44165
|
+
if (_data) {
|
|
44166
|
+
this.serialNumber = _data["serialNumber"];
|
|
44167
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
44168
|
+
}
|
|
44169
|
+
}
|
|
44170
|
+
static fromJS(data) {
|
|
44171
|
+
data = typeof data === 'object' ? data : {};
|
|
44172
|
+
let result = new CreateMeasurementFormInstanceRequestSerialNumber();
|
|
44173
|
+
result.init(data);
|
|
44174
|
+
return result;
|
|
44175
|
+
}
|
|
44176
|
+
toJSON(data) {
|
|
44177
|
+
data = typeof data === 'object' ? data : {};
|
|
44178
|
+
data["serialNumber"] = this.serialNumber;
|
|
44179
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
44180
|
+
return data;
|
|
44181
|
+
}
|
|
44182
|
+
}
|
|
44241
44183
|
export class UpdateMeasurementFormInstanceRequest {
|
|
44242
44184
|
constructor(data) {
|
|
44243
44185
|
if (data) {
|
|
@@ -44247,7 +44189,7 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
44247
44189
|
}
|
|
44248
44190
|
}
|
|
44249
44191
|
if (!data) {
|
|
44250
|
-
this.
|
|
44192
|
+
this.serialNumbers = [];
|
|
44251
44193
|
this.suppliers = [];
|
|
44252
44194
|
}
|
|
44253
44195
|
}
|
|
@@ -44258,6 +44200,11 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
44258
44200
|
for (let item of _data["sequences"])
|
|
44259
44201
|
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
44260
44202
|
}
|
|
44203
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
44204
|
+
this.serialNumbers = [];
|
|
44205
|
+
for (let item of _data["serialNumbers"])
|
|
44206
|
+
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
44207
|
+
}
|
|
44261
44208
|
if (Array.isArray(_data["suppliers"])) {
|
|
44262
44209
|
this.suppliers = [];
|
|
44263
44210
|
for (let item of _data["suppliers"])
|
|
@@ -44278,6 +44225,11 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
44278
44225
|
for (let item of this.sequences)
|
|
44279
44226
|
data["sequences"].push(item.toJSON());
|
|
44280
44227
|
}
|
|
44228
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
44229
|
+
data["serialNumbers"] = [];
|
|
44230
|
+
for (let item of this.serialNumbers)
|
|
44231
|
+
data["serialNumbers"].push(item.toJSON());
|
|
44232
|
+
}
|
|
44281
44233
|
if (Array.isArray(this.suppliers)) {
|
|
44282
44234
|
data["suppliers"] = [];
|
|
44283
44235
|
for (let item of this.suppliers)
|
|
@@ -44461,6 +44413,7 @@ export class MeasurementFormElementValueDto {
|
|
|
44461
44413
|
this.bonus = _data["bonus"];
|
|
44462
44414
|
this.completed = _data["completed"];
|
|
44463
44415
|
this.sequence = _data["sequence"];
|
|
44416
|
+
this.serialNumber = _data["serialNumber"];
|
|
44464
44417
|
this.value = _data["value"];
|
|
44465
44418
|
this.updatedByUser = _data["updatedByUser"];
|
|
44466
44419
|
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
@@ -44485,6 +44438,7 @@ export class MeasurementFormElementValueDto {
|
|
|
44485
44438
|
data["bonus"] = this.bonus;
|
|
44486
44439
|
data["completed"] = this.completed;
|
|
44487
44440
|
data["sequence"] = this.sequence;
|
|
44441
|
+
data["serialNumber"] = this.serialNumber;
|
|
44488
44442
|
data["value"] = this.value;
|
|
44489
44443
|
data["updatedByUser"] = this.updatedByUser;
|
|
44490
44444
|
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
@@ -44586,6 +44540,7 @@ export class MeasurementFormElementValueAuditDto {
|
|
|
44586
44540
|
this.value = _data["value"];
|
|
44587
44541
|
this.bonus = _data["bonus"];
|
|
44588
44542
|
this.sequence = _data["sequence"];
|
|
44543
|
+
this.serialNumber = _data["serialNumber"];
|
|
44589
44544
|
this.elementId = _data["elementId"];
|
|
44590
44545
|
this.updatedByUser = _data["updatedByUser"];
|
|
44591
44546
|
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
@@ -44611,6 +44566,7 @@ export class MeasurementFormElementValueAuditDto {
|
|
|
44611
44566
|
data["value"] = this.value;
|
|
44612
44567
|
data["bonus"] = this.bonus;
|
|
44613
44568
|
data["sequence"] = this.sequence;
|
|
44569
|
+
data["serialNumber"] = this.serialNumber;
|
|
44614
44570
|
data["elementId"] = this.elementId;
|
|
44615
44571
|
data["updatedByUser"] = this.updatedByUser;
|
|
44616
44572
|
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
@@ -44711,6 +44667,7 @@ export class SaveValueRequest {
|
|
|
44711
44667
|
this.schemaId = _data["schemaId"];
|
|
44712
44668
|
this.elementId = _data["elementId"];
|
|
44713
44669
|
this.sequence = _data["sequence"];
|
|
44670
|
+
this.serialNumber = _data["serialNumber"];
|
|
44714
44671
|
this.value = _data["value"];
|
|
44715
44672
|
this.bonus = _data["bonus"];
|
|
44716
44673
|
}
|
|
@@ -44728,6 +44685,7 @@ export class SaveValueRequest {
|
|
|
44728
44685
|
data["schemaId"] = this.schemaId;
|
|
44729
44686
|
data["elementId"] = this.elementId;
|
|
44730
44687
|
data["sequence"] = this.sequence;
|
|
44688
|
+
data["serialNumber"] = this.serialNumber;
|
|
44731
44689
|
data["value"] = this.value;
|
|
44732
44690
|
data["bonus"] = this.bonus;
|
|
44733
44691
|
return data;
|
|
@@ -44747,6 +44705,7 @@ export class SaveToolRequest {
|
|
|
44747
44705
|
this.schemaId = _data["schemaId"];
|
|
44748
44706
|
this.elementId = _data["elementId"];
|
|
44749
44707
|
this.sequence = _data["sequence"];
|
|
44708
|
+
this.serialNumber = _data["serialNumber"];
|
|
44750
44709
|
if (Array.isArray(_data["tools"])) {
|
|
44751
44710
|
this.tools = [];
|
|
44752
44711
|
for (let item of _data["tools"])
|
|
@@ -44766,6 +44725,7 @@ export class SaveToolRequest {
|
|
|
44766
44725
|
data["schemaId"] = this.schemaId;
|
|
44767
44726
|
data["elementId"] = this.elementId;
|
|
44768
44727
|
data["sequence"] = this.sequence;
|
|
44728
|
+
data["serialNumber"] = this.serialNumber;
|
|
44769
44729
|
if (Array.isArray(this.tools)) {
|
|
44770
44730
|
data["tools"] = [];
|
|
44771
44731
|
for (let item of this.tools)
|
|
@@ -44789,6 +44749,7 @@ export class SaveCommentRequest {
|
|
|
44789
44749
|
this.schemaId = _data["schemaId"];
|
|
44790
44750
|
this.elementId = _data["elementId"];
|
|
44791
44751
|
this.sequence = _data["sequence"];
|
|
44752
|
+
this.serialNumber = _data["serialNumber"];
|
|
44792
44753
|
this.comment = _data["comment"];
|
|
44793
44754
|
}
|
|
44794
44755
|
}
|
|
@@ -44803,6 +44764,7 @@ export class SaveCommentRequest {
|
|
|
44803
44764
|
data["schemaId"] = this.schemaId;
|
|
44804
44765
|
data["elementId"] = this.elementId;
|
|
44805
44766
|
data["sequence"] = this.sequence;
|
|
44767
|
+
data["serialNumber"] = this.serialNumber;
|
|
44806
44768
|
data["comment"] = this.comment;
|
|
44807
44769
|
return data;
|
|
44808
44770
|
}
|
|
@@ -45020,132 +44982,20 @@ export class MeasurementFormSupplierAccessInstanceDto {
|
|
|
45020
44982
|
data["readonly"] = this.readonly;
|
|
45021
44983
|
data["partNumber"] = this.partNumber;
|
|
45022
44984
|
data["partRevision"] = this.partRevision;
|
|
45023
|
-
data["drawing"] = this.drawing;
|
|
45024
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
45025
|
-
data["customerId"] = this.customerId;
|
|
45026
|
-
data["quantity"] = this.quantity;
|
|
45027
|
-
data["status"] = this.status;
|
|
45028
|
-
if (Array.isArray(this.suppliers)) {
|
|
45029
|
-
data["suppliers"] = [];
|
|
45030
|
-
for (let item of this.suppliers)
|
|
45031
|
-
data["suppliers"].push(item.toJSON());
|
|
45032
|
-
}
|
|
45033
|
-
return data;
|
|
45034
|
-
}
|
|
45035
|
-
}
|
|
45036
|
-
export class UpsertSupplierToMeasurementFormInstanceRequest {
|
|
45037
|
-
constructor(data) {
|
|
45038
|
-
if (data) {
|
|
45039
|
-
for (var property in data) {
|
|
45040
|
-
if (data.hasOwnProperty(property))
|
|
45041
|
-
this[property] = data[property];
|
|
45042
|
-
}
|
|
45043
|
-
}
|
|
45044
|
-
}
|
|
45045
|
-
init(_data) {
|
|
45046
|
-
if (_data) {
|
|
45047
|
-
this.procurementOrder = _data["procurementOrder"];
|
|
45048
|
-
this.procurementLine = _data["procurementLine"];
|
|
45049
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45050
|
-
}
|
|
45051
|
-
}
|
|
45052
|
-
static fromJS(data) {
|
|
45053
|
-
data = typeof data === 'object' ? data : {};
|
|
45054
|
-
let result = new UpsertSupplierToMeasurementFormInstanceRequest();
|
|
45055
|
-
result.init(data);
|
|
45056
|
-
return result;
|
|
45057
|
-
}
|
|
45058
|
-
toJSON(data) {
|
|
45059
|
-
data = typeof data === 'object' ? data : {};
|
|
45060
|
-
data["procurementOrder"] = this.procurementOrder;
|
|
45061
|
-
data["procurementLine"] = this.procurementLine;
|
|
45062
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45063
|
-
return data;
|
|
45064
|
-
}
|
|
45065
|
-
}
|
|
45066
|
-
export class ExportDimensionReportRequest {
|
|
45067
|
-
constructor(data) {
|
|
45068
|
-
if (data) {
|
|
45069
|
-
for (var property in data) {
|
|
45070
|
-
if (data.hasOwnProperty(property))
|
|
45071
|
-
this[property] = data[property];
|
|
45072
|
-
}
|
|
45073
|
-
}
|
|
45074
|
-
}
|
|
45075
|
-
init(_data) {
|
|
45076
|
-
if (_data) {
|
|
45077
|
-
this.tenantId = _data["tenantId"];
|
|
45078
|
-
this.supplierEdition = _data["supplierEdition"];
|
|
45079
|
-
this.includeAllSchemasAndElements = _data["includeAllSchemasAndElements"];
|
|
45080
|
-
this.createBlankReport = _data["createBlankReport"];
|
|
45081
|
-
if (Array.isArray(_data["sequences"])) {
|
|
45082
|
-
this.sequences = [];
|
|
45083
|
-
for (let item of _data["sequences"])
|
|
45084
|
-
this.sequences.push(item);
|
|
45085
|
-
}
|
|
45086
|
-
this.customerPO = _data["customerPO"];
|
|
45087
|
-
this.workOrder = _data["workOrder"];
|
|
45088
|
-
this.comment = _data["comment"];
|
|
45089
|
-
}
|
|
45090
|
-
}
|
|
45091
|
-
static fromJS(data) {
|
|
45092
|
-
data = typeof data === 'object' ? data : {};
|
|
45093
|
-
let result = new ExportDimensionReportRequest();
|
|
45094
|
-
result.init(data);
|
|
45095
|
-
return result;
|
|
45096
|
-
}
|
|
45097
|
-
toJSON(data) {
|
|
45098
|
-
data = typeof data === 'object' ? data : {};
|
|
45099
|
-
data["tenantId"] = this.tenantId;
|
|
45100
|
-
data["supplierEdition"] = this.supplierEdition;
|
|
45101
|
-
data["includeAllSchemasAndElements"] = this.includeAllSchemasAndElements;
|
|
45102
|
-
data["createBlankReport"] = this.createBlankReport;
|
|
45103
|
-
if (Array.isArray(this.sequences)) {
|
|
45104
|
-
data["sequences"] = [];
|
|
45105
|
-
for (let item of this.sequences)
|
|
45106
|
-
data["sequences"].push(item);
|
|
45107
|
-
}
|
|
45108
|
-
data["customerPO"] = this.customerPO;
|
|
45109
|
-
data["workOrder"] = this.workOrder;
|
|
45110
|
-
data["comment"] = this.comment;
|
|
45111
|
-
return data;
|
|
45112
|
-
}
|
|
45113
|
-
}
|
|
45114
|
-
export class UpdateSchemaInstanceElementsRequest {
|
|
45115
|
-
constructor(data) {
|
|
45116
|
-
if (data) {
|
|
45117
|
-
for (var property in data) {
|
|
45118
|
-
if (data.hasOwnProperty(property))
|
|
45119
|
-
this[property] = data[property];
|
|
45120
|
-
}
|
|
45121
|
-
}
|
|
45122
|
-
}
|
|
45123
|
-
init(_data) {
|
|
45124
|
-
if (_data) {
|
|
45125
|
-
if (Array.isArray(_data["elements"])) {
|
|
45126
|
-
this.elements = [];
|
|
45127
|
-
for (let item of _data["elements"])
|
|
45128
|
-
this.elements.push(SchemaInstanceElementDto.fromJS(item));
|
|
45129
|
-
}
|
|
45130
|
-
}
|
|
45131
|
-
}
|
|
45132
|
-
static fromJS(data) {
|
|
45133
|
-
data = typeof data === 'object' ? data : {};
|
|
45134
|
-
let result = new UpdateSchemaInstanceElementsRequest();
|
|
45135
|
-
result.init(data);
|
|
45136
|
-
return result;
|
|
45137
|
-
}
|
|
45138
|
-
toJSON(data) {
|
|
45139
|
-
data = typeof data === 'object' ? data : {};
|
|
45140
|
-
if (Array.isArray(this.elements)) {
|
|
45141
|
-
data["elements"] = [];
|
|
45142
|
-
for (let item of this.elements)
|
|
45143
|
-
data["elements"].push(item.toJSON());
|
|
44985
|
+
data["drawing"] = this.drawing;
|
|
44986
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
44987
|
+
data["customerId"] = this.customerId;
|
|
44988
|
+
data["quantity"] = this.quantity;
|
|
44989
|
+
data["status"] = this.status;
|
|
44990
|
+
if (Array.isArray(this.suppliers)) {
|
|
44991
|
+
data["suppliers"] = [];
|
|
44992
|
+
for (let item of this.suppliers)
|
|
44993
|
+
data["suppliers"].push(item.toJSON());
|
|
45144
44994
|
}
|
|
45145
44995
|
return data;
|
|
45146
44996
|
}
|
|
45147
44997
|
}
|
|
45148
|
-
export class
|
|
44998
|
+
export class UpsertSupplierToMeasurementFormInstanceRequest {
|
|
45149
44999
|
constructor(data) {
|
|
45150
45000
|
if (data) {
|
|
45151
45001
|
for (var property in data) {
|
|
@@ -45156,26 +45006,26 @@ export class SchemaInstanceElementDto {
|
|
|
45156
45006
|
}
|
|
45157
45007
|
init(_data) {
|
|
45158
45008
|
if (_data) {
|
|
45159
|
-
this.
|
|
45160
|
-
this.
|
|
45161
|
-
this.
|
|
45009
|
+
this.procurementOrder = _data["procurementOrder"];
|
|
45010
|
+
this.procurementLine = _data["procurementLine"];
|
|
45011
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45162
45012
|
}
|
|
45163
45013
|
}
|
|
45164
45014
|
static fromJS(data) {
|
|
45165
45015
|
data = typeof data === 'object' ? data : {};
|
|
45166
|
-
let result = new
|
|
45016
|
+
let result = new UpsertSupplierToMeasurementFormInstanceRequest();
|
|
45167
45017
|
result.init(data);
|
|
45168
45018
|
return result;
|
|
45169
45019
|
}
|
|
45170
45020
|
toJSON(data) {
|
|
45171
45021
|
data = typeof data === 'object' ? data : {};
|
|
45172
|
-
data["
|
|
45173
|
-
data["
|
|
45174
|
-
data["
|
|
45022
|
+
data["procurementOrder"] = this.procurementOrder;
|
|
45023
|
+
data["procurementLine"] = this.procurementLine;
|
|
45024
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45175
45025
|
return data;
|
|
45176
45026
|
}
|
|
45177
45027
|
}
|
|
45178
|
-
export class
|
|
45028
|
+
export class ExportDimensionReportRequest {
|
|
45179
45029
|
constructor(data) {
|
|
45180
45030
|
if (data) {
|
|
45181
45031
|
for (var property in data) {
|
|
@@ -45183,72 +45033,57 @@ export class ImportMeasurementFormInstanceRequest {
|
|
|
45183
45033
|
this[property] = data[property];
|
|
45184
45034
|
}
|
|
45185
45035
|
}
|
|
45186
|
-
if (!data) {
|
|
45187
|
-
this.partInfo = new ImportMeasurementFormPartDto();
|
|
45188
|
-
this.sequences = [];
|
|
45189
|
-
this.schemas = [];
|
|
45190
|
-
}
|
|
45191
45036
|
}
|
|
45192
45037
|
init(_data) {
|
|
45193
45038
|
if (_data) {
|
|
45194
|
-
this.
|
|
45195
|
-
this.
|
|
45196
|
-
this.
|
|
45197
|
-
this.
|
|
45198
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45199
|
-
this.quantity = _data["quantity"];
|
|
45039
|
+
this.tenantId = _data["tenantId"];
|
|
45040
|
+
this.supplierEdition = _data["supplierEdition"];
|
|
45041
|
+
this.includeAllSchemasAndElements = _data["includeAllSchemasAndElements"];
|
|
45042
|
+
this.createBlankReport = _data["createBlankReport"];
|
|
45200
45043
|
if (Array.isArray(_data["sequences"])) {
|
|
45201
45044
|
this.sequences = [];
|
|
45202
45045
|
for (let item of _data["sequences"])
|
|
45203
|
-
this.sequences.push(
|
|
45046
|
+
this.sequences.push(item);
|
|
45204
45047
|
}
|
|
45205
|
-
|
|
45206
|
-
|
|
45207
|
-
|
|
45208
|
-
|
|
45209
|
-
this.createdBy = _data["createdBy"];
|
|
45210
|
-
this.updatedBy = _data["updatedBy"];
|
|
45211
|
-
if (Array.isArray(_data["schemas"])) {
|
|
45212
|
-
this.schemas = [];
|
|
45213
|
-
for (let item of _data["schemas"])
|
|
45214
|
-
this.schemas.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
|
|
45048
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
45049
|
+
this.serialNumbers = [];
|
|
45050
|
+
for (let item of _data["serialNumbers"])
|
|
45051
|
+
this.serialNumbers.push(item);
|
|
45215
45052
|
}
|
|
45053
|
+
this.customerPO = _data["customerPO"];
|
|
45054
|
+
this.workOrder = _data["workOrder"];
|
|
45055
|
+
this.comment = _data["comment"];
|
|
45216
45056
|
}
|
|
45217
45057
|
}
|
|
45218
45058
|
static fromJS(data) {
|
|
45219
45059
|
data = typeof data === 'object' ? data : {};
|
|
45220
|
-
let result = new
|
|
45060
|
+
let result = new ExportDimensionReportRequest();
|
|
45221
45061
|
result.init(data);
|
|
45222
45062
|
return result;
|
|
45223
45063
|
}
|
|
45224
45064
|
toJSON(data) {
|
|
45225
45065
|
data = typeof data === 'object' ? data : {};
|
|
45226
|
-
data["
|
|
45227
|
-
data["
|
|
45228
|
-
data["
|
|
45229
|
-
data["
|
|
45230
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45231
|
-
data["quantity"] = this.quantity;
|
|
45066
|
+
data["tenantId"] = this.tenantId;
|
|
45067
|
+
data["supplierEdition"] = this.supplierEdition;
|
|
45068
|
+
data["includeAllSchemasAndElements"] = this.includeAllSchemasAndElements;
|
|
45069
|
+
data["createBlankReport"] = this.createBlankReport;
|
|
45232
45070
|
if (Array.isArray(this.sequences)) {
|
|
45233
45071
|
data["sequences"] = [];
|
|
45234
45072
|
for (let item of this.sequences)
|
|
45235
|
-
data["sequences"].push(item
|
|
45073
|
+
data["sequences"].push(item);
|
|
45236
45074
|
}
|
|
45237
|
-
|
|
45238
|
-
|
|
45239
|
-
|
|
45240
|
-
|
|
45241
|
-
data["createdBy"] = this.createdBy;
|
|
45242
|
-
data["updatedBy"] = this.updatedBy;
|
|
45243
|
-
if (Array.isArray(this.schemas)) {
|
|
45244
|
-
data["schemas"] = [];
|
|
45245
|
-
for (let item of this.schemas)
|
|
45246
|
-
data["schemas"].push(item.toJSON());
|
|
45075
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
45076
|
+
data["serialNumbers"] = [];
|
|
45077
|
+
for (let item of this.serialNumbers)
|
|
45078
|
+
data["serialNumbers"].push(item);
|
|
45247
45079
|
}
|
|
45080
|
+
data["customerPO"] = this.customerPO;
|
|
45081
|
+
data["workOrder"] = this.workOrder;
|
|
45082
|
+
data["comment"] = this.comment;
|
|
45248
45083
|
return data;
|
|
45249
45084
|
}
|
|
45250
45085
|
}
|
|
45251
|
-
export class
|
|
45086
|
+
export class UpdateSchemaInstanceElementsRequest {
|
|
45252
45087
|
constructor(data) {
|
|
45253
45088
|
if (data) {
|
|
45254
45089
|
for (var property in data) {
|
|
@@ -45259,62 +45094,30 @@ export class ImportMeasurementFormPartDto {
|
|
|
45259
45094
|
}
|
|
45260
45095
|
init(_data) {
|
|
45261
45096
|
if (_data) {
|
|
45262
|
-
|
|
45263
|
-
|
|
45264
|
-
|
|
45265
|
-
|
|
45266
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
45267
|
-
}
|
|
45268
|
-
}
|
|
45269
|
-
static fromJS(data) {
|
|
45270
|
-
data = typeof data === 'object' ? data : {};
|
|
45271
|
-
let result = new ImportMeasurementFormPartDto();
|
|
45272
|
-
result.init(data);
|
|
45273
|
-
return result;
|
|
45274
|
-
}
|
|
45275
|
-
toJSON(data) {
|
|
45276
|
-
data = typeof data === 'object' ? data : {};
|
|
45277
|
-
data["partNumber"] = this.partNumber;
|
|
45278
|
-
data["partName"] = this.partName;
|
|
45279
|
-
data["partRevision"] = this.partRevision;
|
|
45280
|
-
data["drawing"] = this.drawing;
|
|
45281
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
45282
|
-
return data;
|
|
45283
|
-
}
|
|
45284
|
-
}
|
|
45285
|
-
export class WorkorderImportTraceItemDto {
|
|
45286
|
-
constructor(data) {
|
|
45287
|
-
if (data) {
|
|
45288
|
-
for (var property in data) {
|
|
45289
|
-
if (data.hasOwnProperty(property))
|
|
45290
|
-
this[property] = data[property];
|
|
45097
|
+
if (Array.isArray(_data["elements"])) {
|
|
45098
|
+
this.elements = [];
|
|
45099
|
+
for (let item of _data["elements"])
|
|
45100
|
+
this.elements.push(SchemaInstanceElementDto.fromJS(item));
|
|
45291
45101
|
}
|
|
45292
45102
|
}
|
|
45293
45103
|
}
|
|
45294
|
-
init(_data) {
|
|
45295
|
-
if (_data) {
|
|
45296
|
-
this.sequence = _data["sequence"];
|
|
45297
|
-
this.serialNumber = _data["serialNumber"];
|
|
45298
|
-
this.lot = _data["lot"];
|
|
45299
|
-
this.active = _data["active"];
|
|
45300
|
-
}
|
|
45301
|
-
}
|
|
45302
45104
|
static fromJS(data) {
|
|
45303
45105
|
data = typeof data === 'object' ? data : {};
|
|
45304
|
-
let result = new
|
|
45106
|
+
let result = new UpdateSchemaInstanceElementsRequest();
|
|
45305
45107
|
result.init(data);
|
|
45306
45108
|
return result;
|
|
45307
45109
|
}
|
|
45308
45110
|
toJSON(data) {
|
|
45309
45111
|
data = typeof data === 'object' ? data : {};
|
|
45310
|
-
|
|
45311
|
-
|
|
45312
|
-
|
|
45313
|
-
|
|
45112
|
+
if (Array.isArray(this.elements)) {
|
|
45113
|
+
data["elements"] = [];
|
|
45114
|
+
for (let item of this.elements)
|
|
45115
|
+
data["elements"].push(item.toJSON());
|
|
45116
|
+
}
|
|
45314
45117
|
return data;
|
|
45315
45118
|
}
|
|
45316
45119
|
}
|
|
45317
|
-
export class
|
|
45120
|
+
export class SchemaInstanceElementDto {
|
|
45318
45121
|
constructor(data) {
|
|
45319
45122
|
if (data) {
|
|
45320
45123
|
for (var property in data) {
|
|
@@ -45325,20 +45128,22 @@ export class ImportMeasurementSchemaInstanceDto {
|
|
|
45325
45128
|
}
|
|
45326
45129
|
init(_data) {
|
|
45327
45130
|
if (_data) {
|
|
45328
|
-
this.
|
|
45329
|
-
this.
|
|
45131
|
+
this.elementId = _data["elementId"];
|
|
45132
|
+
this.balloonId = _data["balloonId"];
|
|
45133
|
+
this.disabled = _data["disabled"];
|
|
45330
45134
|
}
|
|
45331
45135
|
}
|
|
45332
45136
|
static fromJS(data) {
|
|
45333
45137
|
data = typeof data === 'object' ? data : {};
|
|
45334
|
-
let result = new
|
|
45138
|
+
let result = new SchemaInstanceElementDto();
|
|
45335
45139
|
result.init(data);
|
|
45336
45140
|
return result;
|
|
45337
45141
|
}
|
|
45338
45142
|
toJSON(data) {
|
|
45339
45143
|
data = typeof data === 'object' ? data : {};
|
|
45340
|
-
data["
|
|
45341
|
-
data["
|
|
45144
|
+
data["elementId"] = this.elementId;
|
|
45145
|
+
data["balloonId"] = this.balloonId;
|
|
45146
|
+
data["disabled"] = this.disabled;
|
|
45342
45147
|
return data;
|
|
45343
45148
|
}
|
|
45344
45149
|
}
|
|
@@ -46804,6 +46609,144 @@ export class CreateWorkOrderMapping {
|
|
|
46804
46609
|
return data;
|
|
46805
46610
|
}
|
|
46806
46611
|
}
|
|
46612
|
+
export class WorkorderDiscussionMessageDto {
|
|
46613
|
+
constructor(data) {
|
|
46614
|
+
if (data) {
|
|
46615
|
+
for (var property in data) {
|
|
46616
|
+
if (data.hasOwnProperty(property))
|
|
46617
|
+
this[property] = data[property];
|
|
46618
|
+
}
|
|
46619
|
+
}
|
|
46620
|
+
}
|
|
46621
|
+
init(_data) {
|
|
46622
|
+
if (_data) {
|
|
46623
|
+
this.id = _data["id"];
|
|
46624
|
+
this.workorderId = _data["workorderId"];
|
|
46625
|
+
this.companyId = _data["companyId"];
|
|
46626
|
+
this.content = _data["content"];
|
|
46627
|
+
this.senderUpn = _data["senderUpn"];
|
|
46628
|
+
this.senderName = _data["senderName"];
|
|
46629
|
+
this.operationId = _data["operationId"];
|
|
46630
|
+
this.operationName = _data["operationName"];
|
|
46631
|
+
this.resourceId = _data["resourceId"];
|
|
46632
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
46633
|
+
}
|
|
46634
|
+
}
|
|
46635
|
+
static fromJS(data) {
|
|
46636
|
+
data = typeof data === 'object' ? data : {};
|
|
46637
|
+
let result = new WorkorderDiscussionMessageDto();
|
|
46638
|
+
result.init(data);
|
|
46639
|
+
return result;
|
|
46640
|
+
}
|
|
46641
|
+
toJSON(data) {
|
|
46642
|
+
data = typeof data === 'object' ? data : {};
|
|
46643
|
+
data["id"] = this.id;
|
|
46644
|
+
data["workorderId"] = this.workorderId;
|
|
46645
|
+
data["companyId"] = this.companyId;
|
|
46646
|
+
data["content"] = this.content;
|
|
46647
|
+
data["senderUpn"] = this.senderUpn;
|
|
46648
|
+
data["senderName"] = this.senderName;
|
|
46649
|
+
data["operationId"] = this.operationId;
|
|
46650
|
+
data["operationName"] = this.operationName;
|
|
46651
|
+
data["resourceId"] = this.resourceId;
|
|
46652
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
46653
|
+
return data;
|
|
46654
|
+
}
|
|
46655
|
+
}
|
|
46656
|
+
export class AddDiscussionMessageRequest {
|
|
46657
|
+
constructor(data) {
|
|
46658
|
+
if (data) {
|
|
46659
|
+
for (var property in data) {
|
|
46660
|
+
if (data.hasOwnProperty(property))
|
|
46661
|
+
this[property] = data[property];
|
|
46662
|
+
}
|
|
46663
|
+
}
|
|
46664
|
+
}
|
|
46665
|
+
init(_data) {
|
|
46666
|
+
if (_data) {
|
|
46667
|
+
this.message = _data["message"];
|
|
46668
|
+
this.operationId = _data["operationId"];
|
|
46669
|
+
this.operationName = _data["operationName"];
|
|
46670
|
+
this.resourceId = _data["resourceId"];
|
|
46671
|
+
}
|
|
46672
|
+
}
|
|
46673
|
+
static fromJS(data) {
|
|
46674
|
+
data = typeof data === 'object' ? data : {};
|
|
46675
|
+
let result = new AddDiscussionMessageRequest();
|
|
46676
|
+
result.init(data);
|
|
46677
|
+
return result;
|
|
46678
|
+
}
|
|
46679
|
+
toJSON(data) {
|
|
46680
|
+
data = typeof data === 'object' ? data : {};
|
|
46681
|
+
data["message"] = this.message;
|
|
46682
|
+
data["operationId"] = this.operationId;
|
|
46683
|
+
data["operationName"] = this.operationName;
|
|
46684
|
+
data["resourceId"] = this.resourceId;
|
|
46685
|
+
return data;
|
|
46686
|
+
}
|
|
46687
|
+
}
|
|
46688
|
+
export class WorkorderDiscussionReadStatusDto {
|
|
46689
|
+
constructor(data) {
|
|
46690
|
+
if (data) {
|
|
46691
|
+
for (var property in data) {
|
|
46692
|
+
if (data.hasOwnProperty(property))
|
|
46693
|
+
this[property] = data[property];
|
|
46694
|
+
}
|
|
46695
|
+
}
|
|
46696
|
+
}
|
|
46697
|
+
init(_data) {
|
|
46698
|
+
if (_data) {
|
|
46699
|
+
this.workorderId = _data["workorderId"];
|
|
46700
|
+
this.operationId = _data["operationId"];
|
|
46701
|
+
this.resourceId = _data["resourceId"];
|
|
46702
|
+
this.userUpn = _data["userUpn"];
|
|
46703
|
+
this.lastRead = _data["lastRead"] ? new Date(_data["lastRead"].toString()) : undefined;
|
|
46704
|
+
}
|
|
46705
|
+
}
|
|
46706
|
+
static fromJS(data) {
|
|
46707
|
+
data = typeof data === 'object' ? data : {};
|
|
46708
|
+
let result = new WorkorderDiscussionReadStatusDto();
|
|
46709
|
+
result.init(data);
|
|
46710
|
+
return result;
|
|
46711
|
+
}
|
|
46712
|
+
toJSON(data) {
|
|
46713
|
+
data = typeof data === 'object' ? data : {};
|
|
46714
|
+
data["workorderId"] = this.workorderId;
|
|
46715
|
+
data["operationId"] = this.operationId;
|
|
46716
|
+
data["resourceId"] = this.resourceId;
|
|
46717
|
+
data["userUpn"] = this.userUpn;
|
|
46718
|
+
data["lastRead"] = this.lastRead ? this.lastRead.toISOString() : undefined;
|
|
46719
|
+
return data;
|
|
46720
|
+
}
|
|
46721
|
+
}
|
|
46722
|
+
export class SetDiscussionLastReadRequest {
|
|
46723
|
+
constructor(data) {
|
|
46724
|
+
if (data) {
|
|
46725
|
+
for (var property in data) {
|
|
46726
|
+
if (data.hasOwnProperty(property))
|
|
46727
|
+
this[property] = data[property];
|
|
46728
|
+
}
|
|
46729
|
+
}
|
|
46730
|
+
}
|
|
46731
|
+
init(_data) {
|
|
46732
|
+
if (_data) {
|
|
46733
|
+
this.operationId = _data["operationId"];
|
|
46734
|
+
this.resourceId = _data["resourceId"];
|
|
46735
|
+
}
|
|
46736
|
+
}
|
|
46737
|
+
static fromJS(data) {
|
|
46738
|
+
data = typeof data === 'object' ? data : {};
|
|
46739
|
+
let result = new SetDiscussionLastReadRequest();
|
|
46740
|
+
result.init(data);
|
|
46741
|
+
return result;
|
|
46742
|
+
}
|
|
46743
|
+
toJSON(data) {
|
|
46744
|
+
data = typeof data === 'object' ? data : {};
|
|
46745
|
+
data["operationId"] = this.operationId;
|
|
46746
|
+
data["resourceId"] = this.resourceId;
|
|
46747
|
+
return data;
|
|
46748
|
+
}
|
|
46749
|
+
}
|
|
46807
46750
|
function formatDate(d) {
|
|
46808
46751
|
return d.getFullYear() + '-' +
|
|
46809
46752
|
(d.getMonth() < 9 ? ('0' + (d.getMonth() + 1)) : (d.getMonth() + 1)) + '-' +
|