@ignos/api-client 20250808.0.12338 → 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 +62 -309
- package/lib/ignosportal-api.js +195 -683
- package/package.json +1 -1
- package/src/ignosportal-api.ts +407 -1135
package/lib/ignosportal-api.js
CHANGED
|
@@ -17577,46 +17577,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17577
17577
|
}
|
|
17578
17578
|
return Promise.resolve(null);
|
|
17579
17579
|
}
|
|
17580
|
-
getMeasurementFormImportStatus(id) {
|
|
17581
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
17582
|
-
if (id === undefined || id === null)
|
|
17583
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17584
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17585
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
17586
|
-
let options_ = {
|
|
17587
|
-
method: "GET",
|
|
17588
|
-
headers: {
|
|
17589
|
-
"Accept": "application/json"
|
|
17590
|
-
}
|
|
17591
|
-
};
|
|
17592
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
17593
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
17594
|
-
}).then((_response) => {
|
|
17595
|
-
return this.processGetMeasurementFormImportStatus(_response);
|
|
17596
|
-
});
|
|
17597
|
-
}
|
|
17598
|
-
processGetMeasurementFormImportStatus(response) {
|
|
17599
|
-
const status = response.status;
|
|
17600
|
-
let _headers = {};
|
|
17601
|
-
if (response.headers && response.headers.forEach) {
|
|
17602
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
17603
|
-
}
|
|
17604
|
-
;
|
|
17605
|
-
if (status === 200) {
|
|
17606
|
-
return response.text().then((_responseText) => {
|
|
17607
|
-
let result200 = null;
|
|
17608
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17609
|
-
result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
|
|
17610
|
-
return result200;
|
|
17611
|
-
});
|
|
17612
|
-
}
|
|
17613
|
-
else if (status !== 200 && status !== 204) {
|
|
17614
|
-
return response.text().then((_responseText) => {
|
|
17615
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17616
|
-
});
|
|
17617
|
-
}
|
|
17618
|
-
return Promise.resolve(null);
|
|
17619
|
-
}
|
|
17620
17580
|
listLinkableMeasurementFormSchemas(schemaId, pageSize, filter, continuationToken) {
|
|
17621
17581
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
|
|
17622
17582
|
if (schemaId === undefined || schemaId === null)
|
|
@@ -18416,49 +18376,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18416
18376
|
}
|
|
18417
18377
|
return Promise.resolve(null);
|
|
18418
18378
|
}
|
|
18419
|
-
/**
|
|
18420
|
-
* Custom api for initial import. Not to be used more than once per customer.
|
|
18421
|
-
*/
|
|
18422
|
-
importMeasurementFormSchema(request) {
|
|
18423
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/import";
|
|
18424
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
18425
|
-
const content_ = JSON.stringify(request);
|
|
18426
|
-
let options_ = {
|
|
18427
|
-
body: content_,
|
|
18428
|
-
method: "POST",
|
|
18429
|
-
headers: {
|
|
18430
|
-
"Content-Type": "application/json",
|
|
18431
|
-
"Accept": "application/json"
|
|
18432
|
-
}
|
|
18433
|
-
};
|
|
18434
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18435
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
18436
|
-
}).then((_response) => {
|
|
18437
|
-
return this.processImportMeasurementFormSchema(_response);
|
|
18438
|
-
});
|
|
18439
|
-
}
|
|
18440
|
-
processImportMeasurementFormSchema(response) {
|
|
18441
|
-
const status = response.status;
|
|
18442
|
-
let _headers = {};
|
|
18443
|
-
if (response.headers && response.headers.forEach) {
|
|
18444
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18445
|
-
}
|
|
18446
|
-
;
|
|
18447
|
-
if (status === 200) {
|
|
18448
|
-
return response.text().then((_responseText) => {
|
|
18449
|
-
let result200 = null;
|
|
18450
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18451
|
-
result200 = MeasurementFormDto.fromJS(resultData200);
|
|
18452
|
-
return result200;
|
|
18453
|
-
});
|
|
18454
|
-
}
|
|
18455
|
-
else if (status !== 200 && status !== 204) {
|
|
18456
|
-
return response.text().then((_responseText) => {
|
|
18457
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18458
|
-
});
|
|
18459
|
-
}
|
|
18460
|
-
return Promise.resolve(null);
|
|
18461
|
-
}
|
|
18462
18379
|
listMeasurementFormNeeds(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken, onlyWithoutDrawingUrl) {
|
|
18463
18380
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
|
|
18464
18381
|
if (pageSize === null)
|
|
@@ -20081,7 +19998,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20081
19998
|
}
|
|
20082
19999
|
return Promise.resolve(null);
|
|
20083
20000
|
}
|
|
20084
|
-
getMeasurementFormInstanceSchema(id, schemaId,
|
|
20001
|
+
getMeasurementFormInstanceSchema(id, schemaId, serialNumber, tenantId) {
|
|
20085
20002
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
|
|
20086
20003
|
if (id === undefined || id === null)
|
|
20087
20004
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -20089,8 +20006,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20089
20006
|
if (schemaId === undefined || schemaId === null)
|
|
20090
20007
|
throw new Error("The parameter 'schemaId' must be defined.");
|
|
20091
20008
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
20092
|
-
if (
|
|
20093
|
-
url_ += "
|
|
20009
|
+
if (serialNumber !== undefined && serialNumber !== null)
|
|
20010
|
+
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
20094
20011
|
if (tenantId !== undefined && tenantId !== null)
|
|
20095
20012
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20096
20013
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -20170,7 +20087,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20170
20087
|
}
|
|
20171
20088
|
return Promise.resolve(null);
|
|
20172
20089
|
}
|
|
20173
|
-
getAuditLog(id, tenantId, schemaId,
|
|
20090
|
+
getAuditLog(id, tenantId, schemaId, serialNumber, elementId) {
|
|
20174
20091
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
|
|
20175
20092
|
if (id === undefined || id === null)
|
|
20176
20093
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -20179,8 +20096,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20179
20096
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20180
20097
|
if (schemaId !== undefined && schemaId !== null)
|
|
20181
20098
|
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
20182
|
-
if (
|
|
20183
|
-
url_ += "
|
|
20099
|
+
if (serialNumber !== undefined && serialNumber !== null)
|
|
20100
|
+
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
20184
20101
|
if (elementId !== undefined && elementId !== null)
|
|
20185
20102
|
url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
|
|
20186
20103
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -20870,49 +20787,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20870
20787
|
}
|
|
20871
20788
|
return Promise.resolve(null);
|
|
20872
20789
|
}
|
|
20873
|
-
importMeasurementFormInstance(id, request) {
|
|
20874
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
|
|
20875
|
-
if (id === undefined || id === null)
|
|
20876
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20877
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20878
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
20879
|
-
const content_ = JSON.stringify(request);
|
|
20880
|
-
let options_ = {
|
|
20881
|
-
body: content_,
|
|
20882
|
-
method: "POST",
|
|
20883
|
-
headers: {
|
|
20884
|
-
"Content-Type": "application/json",
|
|
20885
|
-
"Accept": "application/json"
|
|
20886
|
-
}
|
|
20887
|
-
};
|
|
20888
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20889
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
20890
|
-
}).then((_response) => {
|
|
20891
|
-
return this.processImportMeasurementFormInstance(_response);
|
|
20892
|
-
});
|
|
20893
|
-
}
|
|
20894
|
-
processImportMeasurementFormInstance(response) {
|
|
20895
|
-
const status = response.status;
|
|
20896
|
-
let _headers = {};
|
|
20897
|
-
if (response.headers && response.headers.forEach) {
|
|
20898
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20899
|
-
}
|
|
20900
|
-
;
|
|
20901
|
-
if (status === 200) {
|
|
20902
|
-
return response.text().then((_responseText) => {
|
|
20903
|
-
let result200 = null;
|
|
20904
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20905
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
20906
|
-
return result200;
|
|
20907
|
-
});
|
|
20908
|
-
}
|
|
20909
|
-
else if (status !== 200 && status !== 204) {
|
|
20910
|
-
return response.text().then((_responseText) => {
|
|
20911
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20912
|
-
});
|
|
20913
|
-
}
|
|
20914
|
-
return Promise.resolve(null);
|
|
20915
|
-
}
|
|
20916
20790
|
}
|
|
20917
20791
|
export class ElectricalClient extends AuthorizedApiBase {
|
|
20918
20792
|
constructor(configuration, baseUrl, http) {
|
|
@@ -42519,38 +42393,6 @@ export class UploadRequest {
|
|
|
42519
42393
|
return data;
|
|
42520
42394
|
}
|
|
42521
42395
|
}
|
|
42522
|
-
export class MeasurementFormImportStatusDto {
|
|
42523
|
-
constructor(data) {
|
|
42524
|
-
if (data) {
|
|
42525
|
-
for (var property in data) {
|
|
42526
|
-
if (data.hasOwnProperty(property))
|
|
42527
|
-
this[property] = data[property];
|
|
42528
|
-
}
|
|
42529
|
-
}
|
|
42530
|
-
}
|
|
42531
|
-
init(_data) {
|
|
42532
|
-
if (_data) {
|
|
42533
|
-
this.progress = _data["progress"];
|
|
42534
|
-
this.totalElements = _data["totalElements"];
|
|
42535
|
-
this.errorMessage = _data["errorMessage"];
|
|
42536
|
-
this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : undefined;
|
|
42537
|
-
}
|
|
42538
|
-
}
|
|
42539
|
-
static fromJS(data) {
|
|
42540
|
-
data = typeof data === 'object' ? data : {};
|
|
42541
|
-
let result = new MeasurementFormImportStatusDto();
|
|
42542
|
-
result.init(data);
|
|
42543
|
-
return result;
|
|
42544
|
-
}
|
|
42545
|
-
toJSON(data) {
|
|
42546
|
-
data = typeof data === 'object' ? data : {};
|
|
42547
|
-
data["progress"] = this.progress;
|
|
42548
|
-
data["totalElements"] = this.totalElements;
|
|
42549
|
-
data["errorMessage"] = this.errorMessage;
|
|
42550
|
-
data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : undefined;
|
|
42551
|
-
return data;
|
|
42552
|
-
}
|
|
42553
|
-
}
|
|
42554
42396
|
export class ListLinkableMeasurementFormSchemasRequest {
|
|
42555
42397
|
constructor(data) {
|
|
42556
42398
|
if (data) {
|
|
@@ -43034,7 +42876,7 @@ export class MeasurementFormMappingSuggestionDto {
|
|
|
43034
42876
|
return data;
|
|
43035
42877
|
}
|
|
43036
42878
|
}
|
|
43037
|
-
export class
|
|
42879
|
+
export class PagedResultOfMeasurementFormNeedDto {
|
|
43038
42880
|
constructor(data) {
|
|
43039
42881
|
if (data) {
|
|
43040
42882
|
for (var property in data) {
|
|
@@ -43043,71 +42885,97 @@ export class ImportMeasurementFormSchema {
|
|
|
43043
42885
|
}
|
|
43044
42886
|
}
|
|
43045
42887
|
if (!data) {
|
|
43046
|
-
this.
|
|
42888
|
+
this.results = [];
|
|
42889
|
+
}
|
|
42890
|
+
}
|
|
42891
|
+
init(_data) {
|
|
42892
|
+
if (_data) {
|
|
42893
|
+
if (Array.isArray(_data["results"])) {
|
|
42894
|
+
this.results = [];
|
|
42895
|
+
for (let item of _data["results"])
|
|
42896
|
+
this.results.push(MeasurementFormNeedDto.fromJS(item));
|
|
42897
|
+
}
|
|
42898
|
+
this.continuationToken = _data["continuationToken"];
|
|
42899
|
+
}
|
|
42900
|
+
}
|
|
42901
|
+
static fromJS(data) {
|
|
42902
|
+
data = typeof data === 'object' ? data : {};
|
|
42903
|
+
let result = new PagedResultOfMeasurementFormNeedDto();
|
|
42904
|
+
result.init(data);
|
|
42905
|
+
return result;
|
|
42906
|
+
}
|
|
42907
|
+
toJSON(data) {
|
|
42908
|
+
data = typeof data === 'object' ? data : {};
|
|
42909
|
+
if (Array.isArray(this.results)) {
|
|
42910
|
+
data["results"] = [];
|
|
42911
|
+
for (let item of this.results)
|
|
42912
|
+
data["results"].push(item.toJSON());
|
|
42913
|
+
}
|
|
42914
|
+
data["continuationToken"] = this.continuationToken;
|
|
42915
|
+
return data;
|
|
42916
|
+
}
|
|
42917
|
+
}
|
|
42918
|
+
export class MeasurementFormNeedDto {
|
|
42919
|
+
constructor(data) {
|
|
42920
|
+
if (data) {
|
|
42921
|
+
for (var property in data) {
|
|
42922
|
+
if (data.hasOwnProperty(property))
|
|
42923
|
+
this[property] = data[property];
|
|
42924
|
+
}
|
|
43047
42925
|
}
|
|
43048
42926
|
}
|
|
43049
42927
|
init(_data) {
|
|
43050
42928
|
if (_data) {
|
|
42929
|
+
this.id = _data["id"];
|
|
42930
|
+
this.requirementDate = _data["requirementDate"] ? new Date(_data["requirementDate"].toString()) : undefined;
|
|
43051
42931
|
this.customerId = _data["customerId"];
|
|
43052
42932
|
this.customerName = _data["customerName"];
|
|
43053
42933
|
this.partNumber = _data["partNumber"];
|
|
43054
|
-
this.partName = _data["partName"];
|
|
43055
42934
|
this.partRevision = _data["partRevision"];
|
|
42935
|
+
this.partName = _data["partName"];
|
|
43056
42936
|
this.drawing = _data["drawing"];
|
|
43057
42937
|
this.drawingRevision = _data["drawingRevision"];
|
|
43058
|
-
this.
|
|
43059
|
-
this.
|
|
43060
|
-
this.
|
|
43061
|
-
this.
|
|
43062
|
-
this.
|
|
43063
|
-
this.
|
|
43064
|
-
|
|
43065
|
-
|
|
43066
|
-
|
|
43067
|
-
this.extraSchemas.push(MeasurementFormImportLinkedSchemaDto.fromJS(item));
|
|
43068
|
-
}
|
|
43069
|
-
if (Array.isArray(_data["versions"])) {
|
|
43070
|
-
this.versions = [];
|
|
43071
|
-
for (let item of _data["versions"])
|
|
43072
|
-
this.versions.push(MeasurementFormVersionImportDto.fromJS(item));
|
|
43073
|
-
}
|
|
42938
|
+
this.workorder = _data["workorder"];
|
|
42939
|
+
this.operation = _data["operation"];
|
|
42940
|
+
this.resource = _data["resource"];
|
|
42941
|
+
this.resourceId = _data["resourceId"];
|
|
42942
|
+
this.resourceName = _data["resourceName"];
|
|
42943
|
+
this.assignedTo = _data["assignedTo"] ? UserDto.fromJS(_data["assignedTo"]) : undefined;
|
|
42944
|
+
this.isGeneratedRequirement = _data["isGeneratedRequirement"];
|
|
42945
|
+
this.measurementSchemaId = _data["measurementSchemaId"];
|
|
42946
|
+
this.drawingUrl = _data["drawingUrl"];
|
|
43074
42947
|
}
|
|
43075
42948
|
}
|
|
43076
42949
|
static fromJS(data) {
|
|
43077
42950
|
data = typeof data === 'object' ? data : {};
|
|
43078
|
-
let result = new
|
|
42951
|
+
let result = new MeasurementFormNeedDto();
|
|
43079
42952
|
result.init(data);
|
|
43080
42953
|
return result;
|
|
43081
42954
|
}
|
|
43082
42955
|
toJSON(data) {
|
|
43083
42956
|
data = typeof data === 'object' ? data : {};
|
|
42957
|
+
data["id"] = this.id;
|
|
42958
|
+
data["requirementDate"] = this.requirementDate ? this.requirementDate.toISOString() : undefined;
|
|
43084
42959
|
data["customerId"] = this.customerId;
|
|
43085
42960
|
data["customerName"] = this.customerName;
|
|
43086
42961
|
data["partNumber"] = this.partNumber;
|
|
43087
|
-
data["partName"] = this.partName;
|
|
43088
42962
|
data["partRevision"] = this.partRevision;
|
|
42963
|
+
data["partName"] = this.partName;
|
|
43089
42964
|
data["drawing"] = this.drawing;
|
|
43090
42965
|
data["drawingRevision"] = this.drawingRevision;
|
|
43091
|
-
data["
|
|
43092
|
-
data["
|
|
43093
|
-
data["
|
|
43094
|
-
data["
|
|
43095
|
-
data["
|
|
43096
|
-
data["
|
|
43097
|
-
|
|
43098
|
-
|
|
43099
|
-
|
|
43100
|
-
data["extraSchemas"].push(item.toJSON());
|
|
43101
|
-
}
|
|
43102
|
-
if (Array.isArray(this.versions)) {
|
|
43103
|
-
data["versions"] = [];
|
|
43104
|
-
for (let item of this.versions)
|
|
43105
|
-
data["versions"].push(item.toJSON());
|
|
43106
|
-
}
|
|
42966
|
+
data["workorder"] = this.workorder;
|
|
42967
|
+
data["operation"] = this.operation;
|
|
42968
|
+
data["resource"] = this.resource;
|
|
42969
|
+
data["resourceId"] = this.resourceId;
|
|
42970
|
+
data["resourceName"] = this.resourceName;
|
|
42971
|
+
data["assignedTo"] = this.assignedTo ? this.assignedTo.toJSON() : undefined;
|
|
42972
|
+
data["isGeneratedRequirement"] = this.isGeneratedRequirement;
|
|
42973
|
+
data["measurementSchemaId"] = this.measurementSchemaId;
|
|
42974
|
+
data["drawingUrl"] = this.drawingUrl;
|
|
43107
42975
|
return data;
|
|
43108
42976
|
}
|
|
43109
42977
|
}
|
|
43110
|
-
export class
|
|
42978
|
+
export class ListMeasurementFormNeedsRequest {
|
|
43111
42979
|
constructor(data) {
|
|
43112
42980
|
if (data) {
|
|
43113
42981
|
for (var property in data) {
|
|
@@ -43118,340 +42986,42 @@ export class MeasurementFormImportLinkedSchemaDto {
|
|
|
43118
42986
|
}
|
|
43119
42987
|
init(_data) {
|
|
43120
42988
|
if (_data) {
|
|
42989
|
+
this.pageSize = _data["pageSize"];
|
|
43121
42990
|
this.customerId = _data["customerId"];
|
|
43122
|
-
this.
|
|
42991
|
+
this.customerName = _data["customerName"];
|
|
43123
42992
|
this.partName = _data["partName"];
|
|
42993
|
+
this.partNumber = _data["partNumber"];
|
|
43124
42994
|
this.partRevision = _data["partRevision"];
|
|
43125
42995
|
this.drawing = _data["drawing"];
|
|
43126
42996
|
this.drawingRevision = _data["drawingRevision"];
|
|
43127
|
-
this.
|
|
42997
|
+
this.filter = _data["filter"];
|
|
42998
|
+
this.continuationToken = _data["continuationToken"];
|
|
42999
|
+
this.onlyWithoutDrawingUrl = _data["onlyWithoutDrawingUrl"];
|
|
43128
43000
|
}
|
|
43129
43001
|
}
|
|
43130
43002
|
static fromJS(data) {
|
|
43131
43003
|
data = typeof data === 'object' ? data : {};
|
|
43132
|
-
let result = new
|
|
43004
|
+
let result = new ListMeasurementFormNeedsRequest();
|
|
43133
43005
|
result.init(data);
|
|
43134
43006
|
return result;
|
|
43135
43007
|
}
|
|
43136
43008
|
toJSON(data) {
|
|
43137
43009
|
data = typeof data === 'object' ? data : {};
|
|
43010
|
+
data["pageSize"] = this.pageSize;
|
|
43138
43011
|
data["customerId"] = this.customerId;
|
|
43139
|
-
data["
|
|
43012
|
+
data["customerName"] = this.customerName;
|
|
43140
43013
|
data["partName"] = this.partName;
|
|
43014
|
+
data["partNumber"] = this.partNumber;
|
|
43141
43015
|
data["partRevision"] = this.partRevision;
|
|
43142
43016
|
data["drawing"] = this.drawing;
|
|
43143
43017
|
data["drawingRevision"] = this.drawingRevision;
|
|
43144
|
-
data["
|
|
43018
|
+
data["filter"] = this.filter;
|
|
43019
|
+
data["continuationToken"] = this.continuationToken;
|
|
43020
|
+
data["onlyWithoutDrawingUrl"] = this.onlyWithoutDrawingUrl;
|
|
43145
43021
|
return data;
|
|
43146
43022
|
}
|
|
43147
43023
|
}
|
|
43148
|
-
export class
|
|
43149
|
-
constructor(data) {
|
|
43150
|
-
if (data) {
|
|
43151
|
-
for (var property in data) {
|
|
43152
|
-
if (data.hasOwnProperty(property))
|
|
43153
|
-
this[property] = data[property];
|
|
43154
|
-
}
|
|
43155
|
-
}
|
|
43156
|
-
if (!data) {
|
|
43157
|
-
this.elements = [];
|
|
43158
|
-
}
|
|
43159
|
-
}
|
|
43160
|
-
init(_data) {
|
|
43161
|
-
if (_data) {
|
|
43162
|
-
this.version = _data["version"];
|
|
43163
|
-
this.specification = _data["specification"];
|
|
43164
|
-
this.drawingUrl = _data["drawingUrl"];
|
|
43165
|
-
this.markedDrawingUrl = _data["markedDrawingUrl"];
|
|
43166
|
-
this.xmlUrl = _data["xmlUrl"];
|
|
43167
|
-
this.inspectionXpertProjectUrl = _data["inspectionXpertProjectUrl"];
|
|
43168
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
43169
|
-
this.createdBy = _data["createdBy"];
|
|
43170
|
-
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : undefined;
|
|
43171
|
-
this.updatedBy = _data["updatedBy"];
|
|
43172
|
-
if (Array.isArray(_data["elements"])) {
|
|
43173
|
-
this.elements = [];
|
|
43174
|
-
for (let item of _data["elements"])
|
|
43175
|
-
this.elements.push(MeasurementFormElementImportDto.fromJS(item));
|
|
43176
|
-
}
|
|
43177
|
-
this.isUsed = _data["isUsed"];
|
|
43178
|
-
}
|
|
43179
|
-
}
|
|
43180
|
-
static fromJS(data) {
|
|
43181
|
-
data = typeof data === 'object' ? data : {};
|
|
43182
|
-
let result = new MeasurementFormVersionImportDto();
|
|
43183
|
-
result.init(data);
|
|
43184
|
-
return result;
|
|
43185
|
-
}
|
|
43186
|
-
toJSON(data) {
|
|
43187
|
-
data = typeof data === 'object' ? data : {};
|
|
43188
|
-
data["version"] = this.version;
|
|
43189
|
-
data["specification"] = this.specification;
|
|
43190
|
-
data["drawingUrl"] = this.drawingUrl;
|
|
43191
|
-
data["markedDrawingUrl"] = this.markedDrawingUrl;
|
|
43192
|
-
data["xmlUrl"] = this.xmlUrl;
|
|
43193
|
-
data["inspectionXpertProjectUrl"] = this.inspectionXpertProjectUrl;
|
|
43194
|
-
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
43195
|
-
data["createdBy"] = this.createdBy;
|
|
43196
|
-
data["updated"] = this.updated ? this.updated.toISOString() : undefined;
|
|
43197
|
-
data["updatedBy"] = this.updatedBy;
|
|
43198
|
-
if (Array.isArray(this.elements)) {
|
|
43199
|
-
data["elements"] = [];
|
|
43200
|
-
for (let item of this.elements)
|
|
43201
|
-
data["elements"].push(item.toJSON());
|
|
43202
|
-
}
|
|
43203
|
-
data["isUsed"] = this.isUsed;
|
|
43204
|
-
return data;
|
|
43205
|
-
}
|
|
43206
|
-
}
|
|
43207
|
-
export class MeasurementFormElementImportDto {
|
|
43208
|
-
constructor(data) {
|
|
43209
|
-
if (data) {
|
|
43210
|
-
for (var property in data) {
|
|
43211
|
-
if (data.hasOwnProperty(property))
|
|
43212
|
-
this[property] = data[property];
|
|
43213
|
-
}
|
|
43214
|
-
}
|
|
43215
|
-
}
|
|
43216
|
-
init(_data) {
|
|
43217
|
-
if (_data) {
|
|
43218
|
-
this.id = _data["id"];
|
|
43219
|
-
this.imageUrl = _data["imageUrl"];
|
|
43220
|
-
this.thumbnailUrl = _data["thumbnailUrl"];
|
|
43221
|
-
this.balloonId = _data["balloonId"];
|
|
43222
|
-
this.section = _data["section"];
|
|
43223
|
-
this.pageNumber = _data["pageNumber"];
|
|
43224
|
-
this.sheetZone = _data["sheetZone"];
|
|
43225
|
-
this.places = _data["places"];
|
|
43226
|
-
this.nominal = _data["nominal"];
|
|
43227
|
-
this.nominalText = _data["nominalText"];
|
|
43228
|
-
this.type = _data["type"];
|
|
43229
|
-
this.subType = _data["subType"];
|
|
43230
|
-
this.unitOfMeasure = _data["unitOfMeasure"];
|
|
43231
|
-
this.typeCharacter = _data["typeCharacter"];
|
|
43232
|
-
this.plusTolerance = _data["plusTolerance"];
|
|
43233
|
-
this.minusTolerance = _data["minusTolerance"];
|
|
43234
|
-
this.upperLimit = _data["upperLimit"];
|
|
43235
|
-
this.lowerLimit = _data["lowerLimit"];
|
|
43236
|
-
this.comments = _data["comments"];
|
|
43237
|
-
this.updatedByUser = _data["updatedByUser"];
|
|
43238
|
-
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
43239
|
-
this.createdByUser = _data["createdByUser"];
|
|
43240
|
-
this.createdDate = _data["createdDate"] ? new Date(_data["createdDate"].toString()) : undefined;
|
|
43241
|
-
this.frequency = _data["frequency"];
|
|
43242
|
-
this.frequencyParameter = _data["frequencyParameter"];
|
|
43243
|
-
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
43244
|
-
this.balloonSequence = _data["balloonSequence"];
|
|
43245
|
-
this.balloonQuantity = _data["balloonQuantity"];
|
|
43246
|
-
this.plusToleranceText = _data["plusToleranceText"];
|
|
43247
|
-
this.minusToleranceText = _data["minusToleranceText"];
|
|
43248
|
-
this.coatingThickness = _data["coatingThickness"];
|
|
43249
|
-
this.canCopy = _data["canCopy"];
|
|
43250
|
-
this.valueType = _data["valueType"];
|
|
43251
|
-
this.inspectionMethod = _data["inspectionMethod"];
|
|
43252
|
-
this.process = _data["process"];
|
|
43253
|
-
this.classification = _data["classification"];
|
|
43254
|
-
this.fitGrade = _data["fitGrade"];
|
|
43255
|
-
this.fitType = _data["fitType"];
|
|
43256
|
-
this.forReference = _data["forReference"];
|
|
43257
|
-
}
|
|
43258
|
-
}
|
|
43259
|
-
static fromJS(data) {
|
|
43260
|
-
data = typeof data === 'object' ? data : {};
|
|
43261
|
-
let result = new MeasurementFormElementImportDto();
|
|
43262
|
-
result.init(data);
|
|
43263
|
-
return result;
|
|
43264
|
-
}
|
|
43265
|
-
toJSON(data) {
|
|
43266
|
-
data = typeof data === 'object' ? data : {};
|
|
43267
|
-
data["id"] = this.id;
|
|
43268
|
-
data["imageUrl"] = this.imageUrl;
|
|
43269
|
-
data["thumbnailUrl"] = this.thumbnailUrl;
|
|
43270
|
-
data["balloonId"] = this.balloonId;
|
|
43271
|
-
data["section"] = this.section;
|
|
43272
|
-
data["pageNumber"] = this.pageNumber;
|
|
43273
|
-
data["sheetZone"] = this.sheetZone;
|
|
43274
|
-
data["places"] = this.places;
|
|
43275
|
-
data["nominal"] = this.nominal;
|
|
43276
|
-
data["nominalText"] = this.nominalText;
|
|
43277
|
-
data["type"] = this.type;
|
|
43278
|
-
data["subType"] = this.subType;
|
|
43279
|
-
data["unitOfMeasure"] = this.unitOfMeasure;
|
|
43280
|
-
data["typeCharacter"] = this.typeCharacter;
|
|
43281
|
-
data["plusTolerance"] = this.plusTolerance;
|
|
43282
|
-
data["minusTolerance"] = this.minusTolerance;
|
|
43283
|
-
data["upperLimit"] = this.upperLimit;
|
|
43284
|
-
data["lowerLimit"] = this.lowerLimit;
|
|
43285
|
-
data["comments"] = this.comments;
|
|
43286
|
-
data["updatedByUser"] = this.updatedByUser;
|
|
43287
|
-
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
43288
|
-
data["createdByUser"] = this.createdByUser;
|
|
43289
|
-
data["createdDate"] = this.createdDate ? this.createdDate.toISOString() : undefined;
|
|
43290
|
-
data["frequency"] = this.frequency;
|
|
43291
|
-
data["frequencyParameter"] = this.frequencyParameter;
|
|
43292
|
-
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
43293
|
-
data["balloonSequence"] = this.balloonSequence;
|
|
43294
|
-
data["balloonQuantity"] = this.balloonQuantity;
|
|
43295
|
-
data["plusToleranceText"] = this.plusToleranceText;
|
|
43296
|
-
data["minusToleranceText"] = this.minusToleranceText;
|
|
43297
|
-
data["coatingThickness"] = this.coatingThickness;
|
|
43298
|
-
data["canCopy"] = this.canCopy;
|
|
43299
|
-
data["valueType"] = this.valueType;
|
|
43300
|
-
data["inspectionMethod"] = this.inspectionMethod;
|
|
43301
|
-
data["process"] = this.process;
|
|
43302
|
-
data["classification"] = this.classification;
|
|
43303
|
-
data["fitGrade"] = this.fitGrade;
|
|
43304
|
-
data["fitType"] = this.fitType;
|
|
43305
|
-
data["forReference"] = this.forReference;
|
|
43306
|
-
return data;
|
|
43307
|
-
}
|
|
43308
|
-
}
|
|
43309
|
-
export class PagedResultOfMeasurementFormNeedDto {
|
|
43310
|
-
constructor(data) {
|
|
43311
|
-
if (data) {
|
|
43312
|
-
for (var property in data) {
|
|
43313
|
-
if (data.hasOwnProperty(property))
|
|
43314
|
-
this[property] = data[property];
|
|
43315
|
-
}
|
|
43316
|
-
}
|
|
43317
|
-
if (!data) {
|
|
43318
|
-
this.results = [];
|
|
43319
|
-
}
|
|
43320
|
-
}
|
|
43321
|
-
init(_data) {
|
|
43322
|
-
if (_data) {
|
|
43323
|
-
if (Array.isArray(_data["results"])) {
|
|
43324
|
-
this.results = [];
|
|
43325
|
-
for (let item of _data["results"])
|
|
43326
|
-
this.results.push(MeasurementFormNeedDto.fromJS(item));
|
|
43327
|
-
}
|
|
43328
|
-
this.continuationToken = _data["continuationToken"];
|
|
43329
|
-
}
|
|
43330
|
-
}
|
|
43331
|
-
static fromJS(data) {
|
|
43332
|
-
data = typeof data === 'object' ? data : {};
|
|
43333
|
-
let result = new PagedResultOfMeasurementFormNeedDto();
|
|
43334
|
-
result.init(data);
|
|
43335
|
-
return result;
|
|
43336
|
-
}
|
|
43337
|
-
toJSON(data) {
|
|
43338
|
-
data = typeof data === 'object' ? data : {};
|
|
43339
|
-
if (Array.isArray(this.results)) {
|
|
43340
|
-
data["results"] = [];
|
|
43341
|
-
for (let item of this.results)
|
|
43342
|
-
data["results"].push(item.toJSON());
|
|
43343
|
-
}
|
|
43344
|
-
data["continuationToken"] = this.continuationToken;
|
|
43345
|
-
return data;
|
|
43346
|
-
}
|
|
43347
|
-
}
|
|
43348
|
-
export class MeasurementFormNeedDto {
|
|
43349
|
-
constructor(data) {
|
|
43350
|
-
if (data) {
|
|
43351
|
-
for (var property in data) {
|
|
43352
|
-
if (data.hasOwnProperty(property))
|
|
43353
|
-
this[property] = data[property];
|
|
43354
|
-
}
|
|
43355
|
-
}
|
|
43356
|
-
}
|
|
43357
|
-
init(_data) {
|
|
43358
|
-
if (_data) {
|
|
43359
|
-
this.id = _data["id"];
|
|
43360
|
-
this.requirementDate = _data["requirementDate"] ? new Date(_data["requirementDate"].toString()) : undefined;
|
|
43361
|
-
this.customerId = _data["customerId"];
|
|
43362
|
-
this.customerName = _data["customerName"];
|
|
43363
|
-
this.partNumber = _data["partNumber"];
|
|
43364
|
-
this.partRevision = _data["partRevision"];
|
|
43365
|
-
this.partName = _data["partName"];
|
|
43366
|
-
this.drawing = _data["drawing"];
|
|
43367
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
43368
|
-
this.workorder = _data["workorder"];
|
|
43369
|
-
this.operation = _data["operation"];
|
|
43370
|
-
this.resource = _data["resource"];
|
|
43371
|
-
this.resourceId = _data["resourceId"];
|
|
43372
|
-
this.resourceName = _data["resourceName"];
|
|
43373
|
-
this.assignedTo = _data["assignedTo"] ? UserDto.fromJS(_data["assignedTo"]) : undefined;
|
|
43374
|
-
this.isGeneratedRequirement = _data["isGeneratedRequirement"];
|
|
43375
|
-
this.measurementSchemaId = _data["measurementSchemaId"];
|
|
43376
|
-
this.drawingUrl = _data["drawingUrl"];
|
|
43377
|
-
}
|
|
43378
|
-
}
|
|
43379
|
-
static fromJS(data) {
|
|
43380
|
-
data = typeof data === 'object' ? data : {};
|
|
43381
|
-
let result = new MeasurementFormNeedDto();
|
|
43382
|
-
result.init(data);
|
|
43383
|
-
return result;
|
|
43384
|
-
}
|
|
43385
|
-
toJSON(data) {
|
|
43386
|
-
data = typeof data === 'object' ? data : {};
|
|
43387
|
-
data["id"] = this.id;
|
|
43388
|
-
data["requirementDate"] = this.requirementDate ? this.requirementDate.toISOString() : undefined;
|
|
43389
|
-
data["customerId"] = this.customerId;
|
|
43390
|
-
data["customerName"] = this.customerName;
|
|
43391
|
-
data["partNumber"] = this.partNumber;
|
|
43392
|
-
data["partRevision"] = this.partRevision;
|
|
43393
|
-
data["partName"] = this.partName;
|
|
43394
|
-
data["drawing"] = this.drawing;
|
|
43395
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
43396
|
-
data["workorder"] = this.workorder;
|
|
43397
|
-
data["operation"] = this.operation;
|
|
43398
|
-
data["resource"] = this.resource;
|
|
43399
|
-
data["resourceId"] = this.resourceId;
|
|
43400
|
-
data["resourceName"] = this.resourceName;
|
|
43401
|
-
data["assignedTo"] = this.assignedTo ? this.assignedTo.toJSON() : undefined;
|
|
43402
|
-
data["isGeneratedRequirement"] = this.isGeneratedRequirement;
|
|
43403
|
-
data["measurementSchemaId"] = this.measurementSchemaId;
|
|
43404
|
-
data["drawingUrl"] = this.drawingUrl;
|
|
43405
|
-
return data;
|
|
43406
|
-
}
|
|
43407
|
-
}
|
|
43408
|
-
export class ListMeasurementFormNeedsRequest {
|
|
43409
|
-
constructor(data) {
|
|
43410
|
-
if (data) {
|
|
43411
|
-
for (var property in data) {
|
|
43412
|
-
if (data.hasOwnProperty(property))
|
|
43413
|
-
this[property] = data[property];
|
|
43414
|
-
}
|
|
43415
|
-
}
|
|
43416
|
-
}
|
|
43417
|
-
init(_data) {
|
|
43418
|
-
if (_data) {
|
|
43419
|
-
this.pageSize = _data["pageSize"];
|
|
43420
|
-
this.customerId = _data["customerId"];
|
|
43421
|
-
this.customerName = _data["customerName"];
|
|
43422
|
-
this.partName = _data["partName"];
|
|
43423
|
-
this.partNumber = _data["partNumber"];
|
|
43424
|
-
this.partRevision = _data["partRevision"];
|
|
43425
|
-
this.drawing = _data["drawing"];
|
|
43426
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
43427
|
-
this.filter = _data["filter"];
|
|
43428
|
-
this.continuationToken = _data["continuationToken"];
|
|
43429
|
-
this.onlyWithoutDrawingUrl = _data["onlyWithoutDrawingUrl"];
|
|
43430
|
-
}
|
|
43431
|
-
}
|
|
43432
|
-
static fromJS(data) {
|
|
43433
|
-
data = typeof data === 'object' ? data : {};
|
|
43434
|
-
let result = new ListMeasurementFormNeedsRequest();
|
|
43435
|
-
result.init(data);
|
|
43436
|
-
return result;
|
|
43437
|
-
}
|
|
43438
|
-
toJSON(data) {
|
|
43439
|
-
data = typeof data === 'object' ? data : {};
|
|
43440
|
-
data["pageSize"] = this.pageSize;
|
|
43441
|
-
data["customerId"] = this.customerId;
|
|
43442
|
-
data["customerName"] = this.customerName;
|
|
43443
|
-
data["partName"] = this.partName;
|
|
43444
|
-
data["partNumber"] = this.partNumber;
|
|
43445
|
-
data["partRevision"] = this.partRevision;
|
|
43446
|
-
data["drawing"] = this.drawing;
|
|
43447
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
43448
|
-
data["filter"] = this.filter;
|
|
43449
|
-
data["continuationToken"] = this.continuationToken;
|
|
43450
|
-
data["onlyWithoutDrawingUrl"] = this.onlyWithoutDrawingUrl;
|
|
43451
|
-
return data;
|
|
43452
|
-
}
|
|
43453
|
-
}
|
|
43454
|
-
export class SetMeasurementFormNeedUserRequest {
|
|
43024
|
+
export class SetMeasurementFormNeedUserRequest {
|
|
43455
43025
|
constructor(data) {
|
|
43456
43026
|
if (data) {
|
|
43457
43027
|
for (var property in data) {
|
|
@@ -44183,7 +43753,7 @@ export class MeasurementFormInstanceDto {
|
|
|
44183
43753
|
}
|
|
44184
43754
|
if (!data) {
|
|
44185
43755
|
this.schemas = [];
|
|
44186
|
-
this.
|
|
43756
|
+
this.serialNumbers = [];
|
|
44187
43757
|
this.suppliers = [];
|
|
44188
43758
|
this.progress = new MeasurementFormProgressDto();
|
|
44189
43759
|
}
|
|
@@ -44212,6 +43782,11 @@ export class MeasurementFormInstanceDto {
|
|
|
44212
43782
|
for (let item of _data["sequences"])
|
|
44213
43783
|
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
44214
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
|
+
}
|
|
44215
43790
|
if (Array.isArray(_data["suppliers"])) {
|
|
44216
43791
|
this.suppliers = [];
|
|
44217
43792
|
for (let item of _data["suppliers"])
|
|
@@ -44252,6 +43827,11 @@ export class MeasurementFormInstanceDto {
|
|
|
44252
43827
|
for (let item of this.sequences)
|
|
44253
43828
|
data["sequences"].push(item.toJSON());
|
|
44254
43829
|
}
|
|
43830
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
43831
|
+
data["serialNumbers"] = [];
|
|
43832
|
+
for (let item of this.serialNumbers)
|
|
43833
|
+
data["serialNumbers"].push(item.toJSON());
|
|
43834
|
+
}
|
|
44255
43835
|
if (Array.isArray(this.suppliers)) {
|
|
44256
43836
|
data["suppliers"] = [];
|
|
44257
43837
|
for (let item of this.suppliers)
|
|
@@ -44344,6 +43924,36 @@ export class MeasurementFormWorkorderSequenceDto {
|
|
|
44344
43924
|
return data;
|
|
44345
43925
|
}
|
|
44346
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
|
+
}
|
|
44347
43957
|
export class MeasurementFormWorkorderSupplierDto {
|
|
44348
43958
|
constructor(data) {
|
|
44349
43959
|
if (data) {
|
|
@@ -44468,6 +44078,7 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
44468
44078
|
}
|
|
44469
44079
|
if (!data) {
|
|
44470
44080
|
this.sequences = [];
|
|
44081
|
+
this.serialNumbers = [];
|
|
44471
44082
|
}
|
|
44472
44083
|
}
|
|
44473
44084
|
init(_data) {
|
|
@@ -44481,6 +44092,11 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
44481
44092
|
for (let item of _data["sequences"])
|
|
44482
44093
|
this.sequences.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
44483
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
|
+
}
|
|
44484
44100
|
}
|
|
44485
44101
|
}
|
|
44486
44102
|
static fromJS(data) {
|
|
@@ -44500,6 +44116,11 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
44500
44116
|
for (let item of this.sequences)
|
|
44501
44117
|
data["sequences"].push(item.toJSON());
|
|
44502
44118
|
}
|
|
44119
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
44120
|
+
data["serialNumbers"] = [];
|
|
44121
|
+
for (let item of this.serialNumbers)
|
|
44122
|
+
data["serialNumbers"].push(item.toJSON());
|
|
44123
|
+
}
|
|
44503
44124
|
return data;
|
|
44504
44125
|
}
|
|
44505
44126
|
}
|
|
@@ -44531,6 +44152,34 @@ export class CreateMeasurementFormInstanceRequestSequence {
|
|
|
44531
44152
|
return data;
|
|
44532
44153
|
}
|
|
44533
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
|
+
}
|
|
44534
44183
|
export class UpdateMeasurementFormInstanceRequest {
|
|
44535
44184
|
constructor(data) {
|
|
44536
44185
|
if (data) {
|
|
@@ -44540,7 +44189,7 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
44540
44189
|
}
|
|
44541
44190
|
}
|
|
44542
44191
|
if (!data) {
|
|
44543
|
-
this.
|
|
44192
|
+
this.serialNumbers = [];
|
|
44544
44193
|
this.suppliers = [];
|
|
44545
44194
|
}
|
|
44546
44195
|
}
|
|
@@ -44551,6 +44200,11 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
44551
44200
|
for (let item of _data["sequences"])
|
|
44552
44201
|
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
44553
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
|
+
}
|
|
44554
44208
|
if (Array.isArray(_data["suppliers"])) {
|
|
44555
44209
|
this.suppliers = [];
|
|
44556
44210
|
for (let item of _data["suppliers"])
|
|
@@ -44571,6 +44225,11 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
44571
44225
|
for (let item of this.sequences)
|
|
44572
44226
|
data["sequences"].push(item.toJSON());
|
|
44573
44227
|
}
|
|
44228
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
44229
|
+
data["serialNumbers"] = [];
|
|
44230
|
+
for (let item of this.serialNumbers)
|
|
44231
|
+
data["serialNumbers"].push(item.toJSON());
|
|
44232
|
+
}
|
|
44574
44233
|
if (Array.isArray(this.suppliers)) {
|
|
44575
44234
|
data["suppliers"] = [];
|
|
44576
44235
|
for (let item of this.suppliers)
|
|
@@ -44754,6 +44413,7 @@ export class MeasurementFormElementValueDto {
|
|
|
44754
44413
|
this.bonus = _data["bonus"];
|
|
44755
44414
|
this.completed = _data["completed"];
|
|
44756
44415
|
this.sequence = _data["sequence"];
|
|
44416
|
+
this.serialNumber = _data["serialNumber"];
|
|
44757
44417
|
this.value = _data["value"];
|
|
44758
44418
|
this.updatedByUser = _data["updatedByUser"];
|
|
44759
44419
|
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
@@ -44778,6 +44438,7 @@ export class MeasurementFormElementValueDto {
|
|
|
44778
44438
|
data["bonus"] = this.bonus;
|
|
44779
44439
|
data["completed"] = this.completed;
|
|
44780
44440
|
data["sequence"] = this.sequence;
|
|
44441
|
+
data["serialNumber"] = this.serialNumber;
|
|
44781
44442
|
data["value"] = this.value;
|
|
44782
44443
|
data["updatedByUser"] = this.updatedByUser;
|
|
44783
44444
|
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
@@ -44879,6 +44540,7 @@ export class MeasurementFormElementValueAuditDto {
|
|
|
44879
44540
|
this.value = _data["value"];
|
|
44880
44541
|
this.bonus = _data["bonus"];
|
|
44881
44542
|
this.sequence = _data["sequence"];
|
|
44543
|
+
this.serialNumber = _data["serialNumber"];
|
|
44882
44544
|
this.elementId = _data["elementId"];
|
|
44883
44545
|
this.updatedByUser = _data["updatedByUser"];
|
|
44884
44546
|
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
@@ -44904,6 +44566,7 @@ export class MeasurementFormElementValueAuditDto {
|
|
|
44904
44566
|
data["value"] = this.value;
|
|
44905
44567
|
data["bonus"] = this.bonus;
|
|
44906
44568
|
data["sequence"] = this.sequence;
|
|
44569
|
+
data["serialNumber"] = this.serialNumber;
|
|
44907
44570
|
data["elementId"] = this.elementId;
|
|
44908
44571
|
data["updatedByUser"] = this.updatedByUser;
|
|
44909
44572
|
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
@@ -45004,6 +44667,7 @@ export class SaveValueRequest {
|
|
|
45004
44667
|
this.schemaId = _data["schemaId"];
|
|
45005
44668
|
this.elementId = _data["elementId"];
|
|
45006
44669
|
this.sequence = _data["sequence"];
|
|
44670
|
+
this.serialNumber = _data["serialNumber"];
|
|
45007
44671
|
this.value = _data["value"];
|
|
45008
44672
|
this.bonus = _data["bonus"];
|
|
45009
44673
|
}
|
|
@@ -45021,6 +44685,7 @@ export class SaveValueRequest {
|
|
|
45021
44685
|
data["schemaId"] = this.schemaId;
|
|
45022
44686
|
data["elementId"] = this.elementId;
|
|
45023
44687
|
data["sequence"] = this.sequence;
|
|
44688
|
+
data["serialNumber"] = this.serialNumber;
|
|
45024
44689
|
data["value"] = this.value;
|
|
45025
44690
|
data["bonus"] = this.bonus;
|
|
45026
44691
|
return data;
|
|
@@ -45040,6 +44705,7 @@ export class SaveToolRequest {
|
|
|
45040
44705
|
this.schemaId = _data["schemaId"];
|
|
45041
44706
|
this.elementId = _data["elementId"];
|
|
45042
44707
|
this.sequence = _data["sequence"];
|
|
44708
|
+
this.serialNumber = _data["serialNumber"];
|
|
45043
44709
|
if (Array.isArray(_data["tools"])) {
|
|
45044
44710
|
this.tools = [];
|
|
45045
44711
|
for (let item of _data["tools"])
|
|
@@ -45059,6 +44725,7 @@ export class SaveToolRequest {
|
|
|
45059
44725
|
data["schemaId"] = this.schemaId;
|
|
45060
44726
|
data["elementId"] = this.elementId;
|
|
45061
44727
|
data["sequence"] = this.sequence;
|
|
44728
|
+
data["serialNumber"] = this.serialNumber;
|
|
45062
44729
|
if (Array.isArray(this.tools)) {
|
|
45063
44730
|
data["tools"] = [];
|
|
45064
44731
|
for (let item of this.tools)
|
|
@@ -45082,6 +44749,7 @@ export class SaveCommentRequest {
|
|
|
45082
44749
|
this.schemaId = _data["schemaId"];
|
|
45083
44750
|
this.elementId = _data["elementId"];
|
|
45084
44751
|
this.sequence = _data["sequence"];
|
|
44752
|
+
this.serialNumber = _data["serialNumber"];
|
|
45085
44753
|
this.comment = _data["comment"];
|
|
45086
44754
|
}
|
|
45087
44755
|
}
|
|
@@ -45096,6 +44764,7 @@ export class SaveCommentRequest {
|
|
|
45096
44764
|
data["schemaId"] = this.schemaId;
|
|
45097
44765
|
data["elementId"] = this.elementId;
|
|
45098
44766
|
data["sequence"] = this.sequence;
|
|
44767
|
+
data["serialNumber"] = this.serialNumber;
|
|
45099
44768
|
data["comment"] = this.comment;
|
|
45100
44769
|
return data;
|
|
45101
44770
|
}
|
|
@@ -45376,6 +45045,11 @@ export class ExportDimensionReportRequest {
|
|
|
45376
45045
|
for (let item of _data["sequences"])
|
|
45377
45046
|
this.sequences.push(item);
|
|
45378
45047
|
}
|
|
45048
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
45049
|
+
this.serialNumbers = [];
|
|
45050
|
+
for (let item of _data["serialNumbers"])
|
|
45051
|
+
this.serialNumbers.push(item);
|
|
45052
|
+
}
|
|
45379
45053
|
this.customerPO = _data["customerPO"];
|
|
45380
45054
|
this.workOrder = _data["workOrder"];
|
|
45381
45055
|
this.comment = _data["comment"];
|
|
@@ -45398,6 +45072,11 @@ export class ExportDimensionReportRequest {
|
|
|
45398
45072
|
for (let item of this.sequences)
|
|
45399
45073
|
data["sequences"].push(item);
|
|
45400
45074
|
}
|
|
45075
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
45076
|
+
data["serialNumbers"] = [];
|
|
45077
|
+
for (let item of this.serialNumbers)
|
|
45078
|
+
data["serialNumbers"].push(item);
|
|
45079
|
+
}
|
|
45401
45080
|
data["customerPO"] = this.customerPO;
|
|
45402
45081
|
data["workOrder"] = this.workOrder;
|
|
45403
45082
|
data["comment"] = this.comment;
|
|
@@ -45468,173 +45147,6 @@ export class SchemaInstanceElementDto {
|
|
|
45468
45147
|
return data;
|
|
45469
45148
|
}
|
|
45470
45149
|
}
|
|
45471
|
-
export class ImportMeasurementFormInstanceRequest {
|
|
45472
|
-
constructor(data) {
|
|
45473
|
-
if (data) {
|
|
45474
|
-
for (var property in data) {
|
|
45475
|
-
if (data.hasOwnProperty(property))
|
|
45476
|
-
this[property] = data[property];
|
|
45477
|
-
}
|
|
45478
|
-
}
|
|
45479
|
-
if (!data) {
|
|
45480
|
-
this.partInfo = new ImportMeasurementFormPartDto();
|
|
45481
|
-
this.sequences = [];
|
|
45482
|
-
this.schemas = [];
|
|
45483
|
-
}
|
|
45484
|
-
}
|
|
45485
|
-
init(_data) {
|
|
45486
|
-
if (_data) {
|
|
45487
|
-
this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
|
|
45488
|
-
this.customerId = _data["customerId"];
|
|
45489
|
-
this.customerGroupId = _data["customerGroupId"];
|
|
45490
|
-
this.customerName = _data["customerName"];
|
|
45491
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45492
|
-
this.quantity = _data["quantity"];
|
|
45493
|
-
if (Array.isArray(_data["sequences"])) {
|
|
45494
|
-
this.sequences = [];
|
|
45495
|
-
for (let item of _data["sequences"])
|
|
45496
|
-
this.sequences.push(WorkorderImportTraceItemDto.fromJS(item));
|
|
45497
|
-
}
|
|
45498
|
-
this.status = _data["status"];
|
|
45499
|
-
this.statusChangedBy = _data["statusChangedBy"];
|
|
45500
|
-
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
|
|
45501
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
45502
|
-
this.createdBy = _data["createdBy"];
|
|
45503
|
-
this.updatedBy = _data["updatedBy"];
|
|
45504
|
-
if (Array.isArray(_data["schemas"])) {
|
|
45505
|
-
this.schemas = [];
|
|
45506
|
-
for (let item of _data["schemas"])
|
|
45507
|
-
this.schemas.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
|
|
45508
|
-
}
|
|
45509
|
-
}
|
|
45510
|
-
}
|
|
45511
|
-
static fromJS(data) {
|
|
45512
|
-
data = typeof data === 'object' ? data : {};
|
|
45513
|
-
let result = new ImportMeasurementFormInstanceRequest();
|
|
45514
|
-
result.init(data);
|
|
45515
|
-
return result;
|
|
45516
|
-
}
|
|
45517
|
-
toJSON(data) {
|
|
45518
|
-
data = typeof data === 'object' ? data : {};
|
|
45519
|
-
data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : undefined;
|
|
45520
|
-
data["customerId"] = this.customerId;
|
|
45521
|
-
data["customerGroupId"] = this.customerGroupId;
|
|
45522
|
-
data["customerName"] = this.customerName;
|
|
45523
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45524
|
-
data["quantity"] = this.quantity;
|
|
45525
|
-
if (Array.isArray(this.sequences)) {
|
|
45526
|
-
data["sequences"] = [];
|
|
45527
|
-
for (let item of this.sequences)
|
|
45528
|
-
data["sequences"].push(item.toJSON());
|
|
45529
|
-
}
|
|
45530
|
-
data["status"] = this.status;
|
|
45531
|
-
data["statusChangedBy"] = this.statusChangedBy;
|
|
45532
|
-
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
|
|
45533
|
-
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
45534
|
-
data["createdBy"] = this.createdBy;
|
|
45535
|
-
data["updatedBy"] = this.updatedBy;
|
|
45536
|
-
if (Array.isArray(this.schemas)) {
|
|
45537
|
-
data["schemas"] = [];
|
|
45538
|
-
for (let item of this.schemas)
|
|
45539
|
-
data["schemas"].push(item.toJSON());
|
|
45540
|
-
}
|
|
45541
|
-
return data;
|
|
45542
|
-
}
|
|
45543
|
-
}
|
|
45544
|
-
export class ImportMeasurementFormPartDto {
|
|
45545
|
-
constructor(data) {
|
|
45546
|
-
if (data) {
|
|
45547
|
-
for (var property in data) {
|
|
45548
|
-
if (data.hasOwnProperty(property))
|
|
45549
|
-
this[property] = data[property];
|
|
45550
|
-
}
|
|
45551
|
-
}
|
|
45552
|
-
}
|
|
45553
|
-
init(_data) {
|
|
45554
|
-
if (_data) {
|
|
45555
|
-
this.partNumber = _data["partNumber"];
|
|
45556
|
-
this.partName = _data["partName"];
|
|
45557
|
-
this.partRevision = _data["partRevision"];
|
|
45558
|
-
this.drawing = _data["drawing"];
|
|
45559
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
45560
|
-
}
|
|
45561
|
-
}
|
|
45562
|
-
static fromJS(data) {
|
|
45563
|
-
data = typeof data === 'object' ? data : {};
|
|
45564
|
-
let result = new ImportMeasurementFormPartDto();
|
|
45565
|
-
result.init(data);
|
|
45566
|
-
return result;
|
|
45567
|
-
}
|
|
45568
|
-
toJSON(data) {
|
|
45569
|
-
data = typeof data === 'object' ? data : {};
|
|
45570
|
-
data["partNumber"] = this.partNumber;
|
|
45571
|
-
data["partName"] = this.partName;
|
|
45572
|
-
data["partRevision"] = this.partRevision;
|
|
45573
|
-
data["drawing"] = this.drawing;
|
|
45574
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
45575
|
-
return data;
|
|
45576
|
-
}
|
|
45577
|
-
}
|
|
45578
|
-
export class WorkorderImportTraceItemDto {
|
|
45579
|
-
constructor(data) {
|
|
45580
|
-
if (data) {
|
|
45581
|
-
for (var property in data) {
|
|
45582
|
-
if (data.hasOwnProperty(property))
|
|
45583
|
-
this[property] = data[property];
|
|
45584
|
-
}
|
|
45585
|
-
}
|
|
45586
|
-
}
|
|
45587
|
-
init(_data) {
|
|
45588
|
-
if (_data) {
|
|
45589
|
-
this.sequence = _data["sequence"];
|
|
45590
|
-
this.serialNumber = _data["serialNumber"];
|
|
45591
|
-
this.lot = _data["lot"];
|
|
45592
|
-
this.active = _data["active"];
|
|
45593
|
-
}
|
|
45594
|
-
}
|
|
45595
|
-
static fromJS(data) {
|
|
45596
|
-
data = typeof data === 'object' ? data : {};
|
|
45597
|
-
let result = new WorkorderImportTraceItemDto();
|
|
45598
|
-
result.init(data);
|
|
45599
|
-
return result;
|
|
45600
|
-
}
|
|
45601
|
-
toJSON(data) {
|
|
45602
|
-
data = typeof data === 'object' ? data : {};
|
|
45603
|
-
data["sequence"] = this.sequence;
|
|
45604
|
-
data["serialNumber"] = this.serialNumber;
|
|
45605
|
-
data["lot"] = this.lot;
|
|
45606
|
-
data["active"] = this.active;
|
|
45607
|
-
return data;
|
|
45608
|
-
}
|
|
45609
|
-
}
|
|
45610
|
-
export class ImportMeasurementSchemaInstanceDto {
|
|
45611
|
-
constructor(data) {
|
|
45612
|
-
if (data) {
|
|
45613
|
-
for (var property in data) {
|
|
45614
|
-
if (data.hasOwnProperty(property))
|
|
45615
|
-
this[property] = data[property];
|
|
45616
|
-
}
|
|
45617
|
-
}
|
|
45618
|
-
}
|
|
45619
|
-
init(_data) {
|
|
45620
|
-
if (_data) {
|
|
45621
|
-
this.id = _data["id"];
|
|
45622
|
-
this.version = _data["version"];
|
|
45623
|
-
}
|
|
45624
|
-
}
|
|
45625
|
-
static fromJS(data) {
|
|
45626
|
-
data = typeof data === 'object' ? data : {};
|
|
45627
|
-
let result = new ImportMeasurementSchemaInstanceDto();
|
|
45628
|
-
result.init(data);
|
|
45629
|
-
return result;
|
|
45630
|
-
}
|
|
45631
|
-
toJSON(data) {
|
|
45632
|
-
data = typeof data === 'object' ? data : {};
|
|
45633
|
-
data["id"] = this.id;
|
|
45634
|
-
data["version"] = this.version;
|
|
45635
|
-
return data;
|
|
45636
|
-
}
|
|
45637
|
-
}
|
|
45638
45150
|
export class IotTypeSourceDto {
|
|
45639
45151
|
constructor(data) {
|
|
45640
45152
|
if (data) {
|