@ignos/api-client 20251112.0.13205 → 20251120.0.13297
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 +317 -317
- package/lib/ignosportal-api.js +1154 -1223
- package/package.json +1 -1
- package/src/ignosportal-api.ts +1441 -1507
package/lib/ignosportal-api.js
CHANGED
|
@@ -19790,47 +19790,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
19790
19790
|
}
|
|
19791
19791
|
return Promise.resolve(null);
|
|
19792
19792
|
}
|
|
19793
|
-
listFrequencies() {
|
|
19794
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/frequencies";
|
|
19795
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
19796
|
-
let options_ = {
|
|
19797
|
-
method: "GET",
|
|
19798
|
-
headers: {
|
|
19799
|
-
"Accept": "application/json"
|
|
19800
|
-
}
|
|
19801
|
-
};
|
|
19802
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19803
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
19804
|
-
}).then((_response) => {
|
|
19805
|
-
return this.processListFrequencies(_response);
|
|
19806
|
-
});
|
|
19807
|
-
}
|
|
19808
|
-
processListFrequencies(response) {
|
|
19809
|
-
const status = response.status;
|
|
19810
|
-
let _headers = {};
|
|
19811
|
-
if (response.headers && response.headers.forEach) {
|
|
19812
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
19813
|
-
}
|
|
19814
|
-
;
|
|
19815
|
-
if (status === 200) {
|
|
19816
|
-
return response.text().then((_responseText) => {
|
|
19817
|
-
let result200 = null;
|
|
19818
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19819
|
-
if (Array.isArray(resultData200)) {
|
|
19820
|
-
result200 = [];
|
|
19821
|
-
for (let item of resultData200)
|
|
19822
|
-
result200.push(MeasurementFrequencyDto.fromJS(item));
|
|
19823
|
-
}
|
|
19824
|
-
return result200;
|
|
19825
|
-
});
|
|
19826
|
-
}
|
|
19827
|
-
else if (status !== 200 && status !== 204) {
|
|
19828
|
-
return response.text().then((_responseText) => {
|
|
19829
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19830
|
-
});
|
|
19831
|
-
}
|
|
19832
|
-
return Promise.resolve(null);
|
|
19833
|
-
}
|
|
19834
19793
|
listMeasurementFormInstanceSchemaFeedback(pageSize, search, continuationToken) {
|
|
19835
19794
|
let url_ = this.baseUrl + "/measurementforms/schemas/feedback?";
|
|
19836
19795
|
if (pageSize === null)
|
|
@@ -20213,6 +20172,47 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
20213
20172
|
}
|
|
20214
20173
|
return Promise.resolve(null);
|
|
20215
20174
|
}
|
|
20175
|
+
listFrequencies() {
|
|
20176
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/frequencies";
|
|
20177
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20178
|
+
let options_ = {
|
|
20179
|
+
method: "GET",
|
|
20180
|
+
headers: {
|
|
20181
|
+
"Accept": "application/json"
|
|
20182
|
+
}
|
|
20183
|
+
};
|
|
20184
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20185
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20186
|
+
}).then((_response) => {
|
|
20187
|
+
return this.processListFrequencies(_response);
|
|
20188
|
+
});
|
|
20189
|
+
}
|
|
20190
|
+
processListFrequencies(response) {
|
|
20191
|
+
const status = response.status;
|
|
20192
|
+
let _headers = {};
|
|
20193
|
+
if (response.headers && response.headers.forEach) {
|
|
20194
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20195
|
+
}
|
|
20196
|
+
;
|
|
20197
|
+
if (status === 200) {
|
|
20198
|
+
return response.text().then((_responseText) => {
|
|
20199
|
+
let result200 = null;
|
|
20200
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20201
|
+
if (Array.isArray(resultData200)) {
|
|
20202
|
+
result200 = [];
|
|
20203
|
+
for (let item of resultData200)
|
|
20204
|
+
result200.push(MeasurementFrequencyDto.fromJS(item));
|
|
20205
|
+
}
|
|
20206
|
+
return result200;
|
|
20207
|
+
});
|
|
20208
|
+
}
|
|
20209
|
+
else if (status !== 200 && status !== 204) {
|
|
20210
|
+
return response.text().then((_responseText) => {
|
|
20211
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20212
|
+
});
|
|
20213
|
+
}
|
|
20214
|
+
return Promise.resolve(null);
|
|
20215
|
+
}
|
|
20216
20216
|
}
|
|
20217
20217
|
export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
20218
20218
|
constructor(configuration, baseUrl, http) {
|
|
@@ -20379,32 +20379,21 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
|
20379
20379
|
return Promise.resolve(null);
|
|
20380
20380
|
}
|
|
20381
20381
|
}
|
|
20382
|
-
export class
|
|
20382
|
+
export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase {
|
|
20383
20383
|
constructor(configuration, baseUrl, http) {
|
|
20384
20384
|
super(configuration);
|
|
20385
20385
|
this.jsonParseReviver = undefined;
|
|
20386
20386
|
this.http = http ? http : window;
|
|
20387
20387
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20388
20388
|
}
|
|
20389
|
-
|
|
20390
|
-
let url_ = this.baseUrl + "/measurementforms/instances
|
|
20391
|
-
if (
|
|
20392
|
-
throw new globalThis.Error("The parameter '
|
|
20393
|
-
|
|
20394
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
20395
|
-
if (search !== undefined && search !== null)
|
|
20396
|
-
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
20397
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
20398
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
20399
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
20400
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20401
|
-
if (inactive !== undefined && inactive !== null)
|
|
20402
|
-
url_ += "inactive=" + encodeURIComponent("" + inactive) + "&";
|
|
20403
|
-
if (includeInactiveSupplierAccess !== undefined && includeInactiveSupplierAccess !== null)
|
|
20404
|
-
url_ += "includeInactiveSupplierAccess=" + encodeURIComponent("" + includeInactiveSupplierAccess) + "&";
|
|
20389
|
+
approveMeasurementFormInstance(id) {
|
|
20390
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
|
|
20391
|
+
if (id === undefined || id === null)
|
|
20392
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20393
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20405
20394
|
url_ = url_.replace(/[?&]$/, "");
|
|
20406
20395
|
let options_ = {
|
|
20407
|
-
method: "
|
|
20396
|
+
method: "POST",
|
|
20408
20397
|
headers: {
|
|
20409
20398
|
"Accept": "application/json"
|
|
20410
20399
|
}
|
|
@@ -20412,10 +20401,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20412
20401
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20413
20402
|
return this.http.fetch(url_, transformedOptions_);
|
|
20414
20403
|
}).then((_response) => {
|
|
20415
|
-
return this.
|
|
20404
|
+
return this.processApproveMeasurementFormInstance(_response);
|
|
20416
20405
|
});
|
|
20417
20406
|
}
|
|
20418
|
-
|
|
20407
|
+
processApproveMeasurementFormInstance(response) {
|
|
20419
20408
|
const status = response.status;
|
|
20420
20409
|
let _headers = {};
|
|
20421
20410
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20426,7 +20415,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20426
20415
|
return response.text().then((_responseText) => {
|
|
20427
20416
|
let result200 = null;
|
|
20428
20417
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20429
|
-
result200 =
|
|
20418
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
20430
20419
|
return result200;
|
|
20431
20420
|
});
|
|
20432
20421
|
}
|
|
@@ -20437,25 +20426,25 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20437
20426
|
}
|
|
20438
20427
|
return Promise.resolve(null);
|
|
20439
20428
|
}
|
|
20440
|
-
|
|
20441
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
20429
|
+
disapproveMeasurementFormInstance(id) {
|
|
20430
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/disapprove";
|
|
20431
|
+
if (id === undefined || id === null)
|
|
20432
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20433
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20442
20434
|
url_ = url_.replace(/[?&]$/, "");
|
|
20443
|
-
const content_ = JSON.stringify(request);
|
|
20444
20435
|
let options_ = {
|
|
20445
|
-
body: content_,
|
|
20446
20436
|
method: "POST",
|
|
20447
20437
|
headers: {
|
|
20448
|
-
"Content-Type": "application/json",
|
|
20449
20438
|
"Accept": "application/json"
|
|
20450
20439
|
}
|
|
20451
20440
|
};
|
|
20452
20441
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20453
20442
|
return this.http.fetch(url_, transformedOptions_);
|
|
20454
20443
|
}).then((_response) => {
|
|
20455
|
-
return this.
|
|
20444
|
+
return this.processDisapproveMeasurementFormInstance(_response);
|
|
20456
20445
|
});
|
|
20457
20446
|
}
|
|
20458
|
-
|
|
20447
|
+
processDisapproveMeasurementFormInstance(response) {
|
|
20459
20448
|
const status = response.status;
|
|
20460
20449
|
let _headers = {};
|
|
20461
20450
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20466,7 +20455,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20466
20455
|
return response.text().then((_responseText) => {
|
|
20467
20456
|
let result200 = null;
|
|
20468
20457
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20469
|
-
result200 =
|
|
20458
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
20470
20459
|
return result200;
|
|
20471
20460
|
});
|
|
20472
20461
|
}
|
|
@@ -20477,27 +20466,14 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20477
20466
|
}
|
|
20478
20467
|
return Promise.resolve(null);
|
|
20479
20468
|
}
|
|
20480
|
-
|
|
20481
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
20482
|
-
if (
|
|
20483
|
-
throw new globalThis.Error("The parameter '
|
|
20484
|
-
|
|
20485
|
-
url_ += "status=" + encodeURIComponent("" + status) + "&";
|
|
20486
|
-
if (statusChangedSince !== undefined && statusChangedSince !== null)
|
|
20487
|
-
url_ += "statusChangedSince=" + encodeURIComponent(statusChangedSince ? "" + statusChangedSince.toISOString() : "") + "&";
|
|
20488
|
-
if (onlyWithReports !== undefined && onlyWithReports !== null)
|
|
20489
|
-
url_ += "onlyWithReports=" + encodeURIComponent("" + onlyWithReports) + "&";
|
|
20490
|
-
if (pageSize === null)
|
|
20491
|
-
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
20492
|
-
else if (pageSize !== undefined)
|
|
20493
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
20494
|
-
if (search !== undefined && search !== null)
|
|
20495
|
-
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
20496
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
20497
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
20469
|
+
exportDimensionReportValues(id) {
|
|
20470
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
20471
|
+
if (id === undefined || id === null)
|
|
20472
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20473
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20498
20474
|
url_ = url_.replace(/[?&]$/, "");
|
|
20499
20475
|
let options_ = {
|
|
20500
|
-
method: "
|
|
20476
|
+
method: "POST",
|
|
20501
20477
|
headers: {
|
|
20502
20478
|
"Accept": "application/json"
|
|
20503
20479
|
}
|
|
@@ -20505,10 +20481,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20505
20481
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20506
20482
|
return this.http.fetch(url_, transformedOptions_);
|
|
20507
20483
|
}).then((_response) => {
|
|
20508
|
-
return this.
|
|
20484
|
+
return this.processExportDimensionReportValues(_response);
|
|
20509
20485
|
});
|
|
20510
20486
|
}
|
|
20511
|
-
|
|
20487
|
+
processExportDimensionReportValues(response) {
|
|
20512
20488
|
const status = response.status;
|
|
20513
20489
|
let _headers = {};
|
|
20514
20490
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20519,7 +20495,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20519
20495
|
return response.text().then((_responseText) => {
|
|
20520
20496
|
let result200 = null;
|
|
20521
20497
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20522
|
-
result200 =
|
|
20498
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
20523
20499
|
return result200;
|
|
20524
20500
|
});
|
|
20525
20501
|
}
|
|
@@ -20530,25 +20506,44 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20530
20506
|
}
|
|
20531
20507
|
return Promise.resolve(null);
|
|
20532
20508
|
}
|
|
20533
|
-
|
|
20534
|
-
|
|
20509
|
+
}
|
|
20510
|
+
export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
20511
|
+
constructor(configuration, baseUrl, http) {
|
|
20512
|
+
super(configuration);
|
|
20513
|
+
this.jsonParseReviver = undefined;
|
|
20514
|
+
this.http = http ? http : window;
|
|
20515
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20516
|
+
}
|
|
20517
|
+
listMeasurementForms(pageSize, search, continuationToken, tenantId, inactive, includeInactiveSupplierAccess) {
|
|
20518
|
+
let url_ = this.baseUrl + "/measurementforms/instances?";
|
|
20519
|
+
if (pageSize === null)
|
|
20520
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
20521
|
+
else if (pageSize !== undefined)
|
|
20522
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
20523
|
+
if (search !== undefined && search !== null)
|
|
20524
|
+
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
20525
|
+
if (continuationToken !== undefined && continuationToken !== null)
|
|
20526
|
+
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
20527
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
20528
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20529
|
+
if (inactive !== undefined && inactive !== null)
|
|
20530
|
+
url_ += "inactive=" + encodeURIComponent("" + inactive) + "&";
|
|
20531
|
+
if (includeInactiveSupplierAccess !== undefined && includeInactiveSupplierAccess !== null)
|
|
20532
|
+
url_ += "includeInactiveSupplierAccess=" + encodeURIComponent("" + includeInactiveSupplierAccess) + "&";
|
|
20535
20533
|
url_ = url_.replace(/[?&]$/, "");
|
|
20536
|
-
const content_ = JSON.stringify(request);
|
|
20537
20534
|
let options_ = {
|
|
20538
|
-
|
|
20539
|
-
method: "POST",
|
|
20535
|
+
method: "GET",
|
|
20540
20536
|
headers: {
|
|
20541
|
-
"Content-Type": "application/json",
|
|
20542
20537
|
"Accept": "application/json"
|
|
20543
20538
|
}
|
|
20544
20539
|
};
|
|
20545
20540
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20546
20541
|
return this.http.fetch(url_, transformedOptions_);
|
|
20547
20542
|
}).then((_response) => {
|
|
20548
|
-
return this.
|
|
20543
|
+
return this.processListMeasurementForms(_response);
|
|
20549
20544
|
});
|
|
20550
20545
|
}
|
|
20551
|
-
|
|
20546
|
+
processListMeasurementForms(response) {
|
|
20552
20547
|
const status = response.status;
|
|
20553
20548
|
let _headers = {};
|
|
20554
20549
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20559,7 +20554,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20559
20554
|
return response.text().then((_responseText) => {
|
|
20560
20555
|
let result200 = null;
|
|
20561
20556
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20562
|
-
result200 =
|
|
20557
|
+
result200 = PagedResultOfMeasurementFormInstanceOverviewDto.fromJS(resultData200);
|
|
20563
20558
|
return result200;
|
|
20564
20559
|
});
|
|
20565
20560
|
}
|
|
@@ -20570,33 +20565,37 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20570
20565
|
}
|
|
20571
20566
|
return Promise.resolve(null);
|
|
20572
20567
|
}
|
|
20573
|
-
|
|
20574
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
20568
|
+
postListMeasurementForms(request) {
|
|
20569
|
+
let url_ = this.baseUrl + "/measurementforms/instances/list";
|
|
20575
20570
|
url_ = url_.replace(/[?&]$/, "");
|
|
20576
20571
|
const content_ = JSON.stringify(request);
|
|
20577
20572
|
let options_ = {
|
|
20578
20573
|
body: content_,
|
|
20579
|
-
method: "
|
|
20574
|
+
method: "POST",
|
|
20580
20575
|
headers: {
|
|
20581
20576
|
"Content-Type": "application/json",
|
|
20577
|
+
"Accept": "application/json"
|
|
20582
20578
|
}
|
|
20583
20579
|
};
|
|
20584
20580
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20585
20581
|
return this.http.fetch(url_, transformedOptions_);
|
|
20586
20582
|
}).then((_response) => {
|
|
20587
|
-
return this.
|
|
20583
|
+
return this.processPostListMeasurementForms(_response);
|
|
20588
20584
|
});
|
|
20589
20585
|
}
|
|
20590
|
-
|
|
20586
|
+
processPostListMeasurementForms(response) {
|
|
20591
20587
|
const status = response.status;
|
|
20592
20588
|
let _headers = {};
|
|
20593
20589
|
if (response.headers && response.headers.forEach) {
|
|
20594
20590
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20595
20591
|
}
|
|
20596
20592
|
;
|
|
20597
|
-
if (status ===
|
|
20593
|
+
if (status === 200) {
|
|
20598
20594
|
return response.text().then((_responseText) => {
|
|
20599
|
-
|
|
20595
|
+
let result200 = null;
|
|
20596
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20597
|
+
result200 = PagedResultOfMeasurementFormInstanceOverviewDto.fromJS(resultData200);
|
|
20598
|
+
return result200;
|
|
20600
20599
|
});
|
|
20601
20600
|
}
|
|
20602
20601
|
else if (status !== 200 && status !== 204) {
|
|
@@ -20648,14 +20647,14 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20648
20647
|
}
|
|
20649
20648
|
return Promise.resolve(null);
|
|
20650
20649
|
}
|
|
20651
|
-
|
|
20652
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
20650
|
+
listMeasurementFormInstanceFeedback(id) {
|
|
20651
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/feedback";
|
|
20653
20652
|
if (id === undefined || id === null)
|
|
20654
20653
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20655
20654
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20656
20655
|
url_ = url_.replace(/[?&]$/, "");
|
|
20657
20656
|
let options_ = {
|
|
20658
|
-
method: "
|
|
20657
|
+
method: "GET",
|
|
20659
20658
|
headers: {
|
|
20660
20659
|
"Accept": "application/json"
|
|
20661
20660
|
}
|
|
@@ -20663,10 +20662,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20663
20662
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20664
20663
|
return this.http.fetch(url_, transformedOptions_);
|
|
20665
20664
|
}).then((_response) => {
|
|
20666
|
-
return this.
|
|
20665
|
+
return this.processListMeasurementFormInstanceFeedback(_response);
|
|
20667
20666
|
});
|
|
20668
20667
|
}
|
|
20669
|
-
|
|
20668
|
+
processListMeasurementFormInstanceFeedback(response) {
|
|
20670
20669
|
const status = response.status;
|
|
20671
20670
|
let _headers = {};
|
|
20672
20671
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20677,7 +20676,11 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20677
20676
|
return response.text().then((_responseText) => {
|
|
20678
20677
|
let result200 = null;
|
|
20679
20678
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20680
|
-
|
|
20679
|
+
if (Array.isArray(resultData200)) {
|
|
20680
|
+
result200 = [];
|
|
20681
|
+
for (let item of resultData200)
|
|
20682
|
+
result200.push(MeasurementFormInstanceFeedbackDto.fromJS(item));
|
|
20683
|
+
}
|
|
20681
20684
|
return result200;
|
|
20682
20685
|
});
|
|
20683
20686
|
}
|
|
@@ -20688,28 +20691,27 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20688
20691
|
}
|
|
20689
20692
|
return Promise.resolve(null);
|
|
20690
20693
|
}
|
|
20691
|
-
|
|
20692
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
20694
|
+
completeMeasurementFormInstance(id, tenantId) {
|
|
20695
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/complete?";
|
|
20693
20696
|
if (id === undefined || id === null)
|
|
20694
20697
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20695
20698
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20699
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
20700
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20696
20701
|
url_ = url_.replace(/[?&]$/, "");
|
|
20697
|
-
const content_ = JSON.stringify(request);
|
|
20698
20702
|
let options_ = {
|
|
20699
|
-
|
|
20700
|
-
method: "PUT",
|
|
20703
|
+
method: "POST",
|
|
20701
20704
|
headers: {
|
|
20702
|
-
"Content-Type": "application/json",
|
|
20703
20705
|
"Accept": "application/json"
|
|
20704
20706
|
}
|
|
20705
20707
|
};
|
|
20706
20708
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20707
20709
|
return this.http.fetch(url_, transformedOptions_);
|
|
20708
20710
|
}).then((_response) => {
|
|
20709
|
-
return this.
|
|
20711
|
+
return this.processCompleteMeasurementFormInstance(_response);
|
|
20710
20712
|
});
|
|
20711
20713
|
}
|
|
20712
|
-
|
|
20714
|
+
processCompleteMeasurementFormInstance(response) {
|
|
20713
20715
|
const status = response.status;
|
|
20714
20716
|
let _headers = {};
|
|
20715
20717
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20731,11 +20733,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20731
20733
|
}
|
|
20732
20734
|
return Promise.resolve(null);
|
|
20733
20735
|
}
|
|
20734
|
-
|
|
20735
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
20736
|
+
getMeasurementFormInstanceSchema(id, schemaId, serialNumber, tenantId) {
|
|
20737
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
|
|
20736
20738
|
if (id === undefined || id === null)
|
|
20737
20739
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20738
20740
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20741
|
+
if (schemaId === undefined || schemaId === null)
|
|
20742
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
20743
|
+
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
20744
|
+
if (serialNumber !== undefined && serialNumber !== null)
|
|
20745
|
+
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
20746
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
20747
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20739
20748
|
url_ = url_.replace(/[?&]$/, "");
|
|
20740
20749
|
let options_ = {
|
|
20741
20750
|
method: "GET",
|
|
@@ -20746,10 +20755,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20746
20755
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20747
20756
|
return this.http.fetch(url_, transformedOptions_);
|
|
20748
20757
|
}).then((_response) => {
|
|
20749
|
-
return this.
|
|
20758
|
+
return this.processGetMeasurementFormInstanceSchema(_response);
|
|
20750
20759
|
});
|
|
20751
20760
|
}
|
|
20752
|
-
|
|
20761
|
+
processGetMeasurementFormInstanceSchema(response) {
|
|
20753
20762
|
const status = response.status;
|
|
20754
20763
|
let _headers = {};
|
|
20755
20764
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20760,11 +20769,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20760
20769
|
return response.text().then((_responseText) => {
|
|
20761
20770
|
let result200 = null;
|
|
20762
20771
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20763
|
-
|
|
20764
|
-
result200 = [];
|
|
20765
|
-
for (let item of resultData200)
|
|
20766
|
-
result200.push(MeasurementFormInstanceFeedbackDto.fromJS(item));
|
|
20767
|
-
}
|
|
20772
|
+
result200 = MeasurementFormInstanceSchemaDto.fromJS(resultData200);
|
|
20768
20773
|
return result200;
|
|
20769
20774
|
});
|
|
20770
20775
|
}
|
|
@@ -20775,28 +20780,27 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20775
20780
|
}
|
|
20776
20781
|
return Promise.resolve(null);
|
|
20777
20782
|
}
|
|
20778
|
-
|
|
20779
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
20783
|
+
getWorkorderMeasurementFormProgress(id, tenantId) {
|
|
20784
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
20780
20785
|
if (id === undefined || id === null)
|
|
20781
20786
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20782
20787
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20788
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
20789
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20783
20790
|
url_ = url_.replace(/[?&]$/, "");
|
|
20784
|
-
const content_ = JSON.stringify(request);
|
|
20785
20791
|
let options_ = {
|
|
20786
|
-
|
|
20787
|
-
method: "POST",
|
|
20792
|
+
method: "GET",
|
|
20788
20793
|
headers: {
|
|
20789
|
-
"Content-Type": "application/json",
|
|
20790
20794
|
"Accept": "application/json"
|
|
20791
20795
|
}
|
|
20792
20796
|
};
|
|
20793
20797
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20794
20798
|
return this.http.fetch(url_, transformedOptions_);
|
|
20795
20799
|
}).then((_response) => {
|
|
20796
|
-
return this.
|
|
20800
|
+
return this.processGetWorkorderMeasurementFormProgress(_response);
|
|
20797
20801
|
});
|
|
20798
20802
|
}
|
|
20799
|
-
|
|
20803
|
+
processGetWorkorderMeasurementFormProgress(response) {
|
|
20800
20804
|
const status = response.status;
|
|
20801
20805
|
let _headers = {};
|
|
20802
20806
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20807,7 +20811,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20807
20811
|
return response.text().then((_responseText) => {
|
|
20808
20812
|
let result200 = null;
|
|
20809
20813
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20810
|
-
result200 =
|
|
20814
|
+
result200 = MeasurementFormInstanceProgressDto.fromJS(resultData200);
|
|
20811
20815
|
return result200;
|
|
20812
20816
|
});
|
|
20813
20817
|
}
|
|
@@ -20818,16 +20822,22 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20818
20822
|
}
|
|
20819
20823
|
return Promise.resolve(null);
|
|
20820
20824
|
}
|
|
20821
|
-
|
|
20822
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
20825
|
+
getAuditLog(id, tenantId, schemaId, serialNumber, elementId) {
|
|
20826
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
|
|
20823
20827
|
if (id === undefined || id === null)
|
|
20824
20828
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20825
20829
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20826
20830
|
if (tenantId !== undefined && tenantId !== null)
|
|
20827
20831
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20832
|
+
if (schemaId !== undefined && schemaId !== null)
|
|
20833
|
+
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
20834
|
+
if (serialNumber !== undefined && serialNumber !== null)
|
|
20835
|
+
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
20836
|
+
if (elementId !== undefined && elementId !== null)
|
|
20837
|
+
url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
|
|
20828
20838
|
url_ = url_.replace(/[?&]$/, "");
|
|
20829
20839
|
let options_ = {
|
|
20830
|
-
method: "
|
|
20840
|
+
method: "GET",
|
|
20831
20841
|
headers: {
|
|
20832
20842
|
"Accept": "application/json"
|
|
20833
20843
|
}
|
|
@@ -20835,10 +20845,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20835
20845
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20836
20846
|
return this.http.fetch(url_, transformedOptions_);
|
|
20837
20847
|
}).then((_response) => {
|
|
20838
|
-
return this.
|
|
20848
|
+
return this.processGetAuditLog(_response);
|
|
20839
20849
|
});
|
|
20840
20850
|
}
|
|
20841
|
-
|
|
20851
|
+
processGetAuditLog(response) {
|
|
20842
20852
|
const status = response.status;
|
|
20843
20853
|
let _headers = {};
|
|
20844
20854
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20849,7 +20859,11 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20849
20859
|
return response.text().then((_responseText) => {
|
|
20850
20860
|
let result200 = null;
|
|
20851
20861
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20852
|
-
|
|
20862
|
+
if (Array.isArray(resultData200)) {
|
|
20863
|
+
result200 = [];
|
|
20864
|
+
for (let item of resultData200)
|
|
20865
|
+
result200.push(MeasurementFormElementValueAuditDto.fromJS(item));
|
|
20866
|
+
}
|
|
20853
20867
|
return result200;
|
|
20854
20868
|
});
|
|
20855
20869
|
}
|
|
@@ -20860,14 +20874,11 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20860
20874
|
}
|
|
20861
20875
|
return Promise.resolve(null);
|
|
20862
20876
|
}
|
|
20863
|
-
|
|
20864
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
20865
|
-
if (id === undefined || id === null)
|
|
20866
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20867
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20877
|
+
getValidationRules() {
|
|
20878
|
+
let url_ = this.baseUrl + "/measurementforms/instances/validationrules";
|
|
20868
20879
|
url_ = url_.replace(/[?&]$/, "");
|
|
20869
20880
|
let options_ = {
|
|
20870
|
-
method: "
|
|
20881
|
+
method: "GET",
|
|
20871
20882
|
headers: {
|
|
20872
20883
|
"Accept": "application/json"
|
|
20873
20884
|
}
|
|
@@ -20875,10 +20886,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20875
20886
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20876
20887
|
return this.http.fetch(url_, transformedOptions_);
|
|
20877
20888
|
}).then((_response) => {
|
|
20878
|
-
return this.
|
|
20889
|
+
return this.processGetValidationRules(_response);
|
|
20879
20890
|
});
|
|
20880
20891
|
}
|
|
20881
|
-
|
|
20892
|
+
processGetValidationRules(response) {
|
|
20882
20893
|
const status = response.status;
|
|
20883
20894
|
let _headers = {};
|
|
20884
20895
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20889,7 +20900,11 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20889
20900
|
return response.text().then((_responseText) => {
|
|
20890
20901
|
let result200 = null;
|
|
20891
20902
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20892
|
-
|
|
20903
|
+
if (Array.isArray(resultData200)) {
|
|
20904
|
+
result200 = [];
|
|
20905
|
+
for (let item of resultData200)
|
|
20906
|
+
result200.push(ValidationRuleDto.fromJS(item));
|
|
20907
|
+
}
|
|
20893
20908
|
return result200;
|
|
20894
20909
|
});
|
|
20895
20910
|
}
|
|
@@ -20900,25 +20915,30 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20900
20915
|
}
|
|
20901
20916
|
return Promise.resolve(null);
|
|
20902
20917
|
}
|
|
20903
|
-
|
|
20904
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
20918
|
+
saveValue(id, tenantId, request) {
|
|
20919
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/value?";
|
|
20905
20920
|
if (id === undefined || id === null)
|
|
20906
20921
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20907
20922
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20923
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
20924
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20908
20925
|
url_ = url_.replace(/[?&]$/, "");
|
|
20926
|
+
const content_ = JSON.stringify(request);
|
|
20909
20927
|
let options_ = {
|
|
20910
|
-
|
|
20928
|
+
body: content_,
|
|
20929
|
+
method: "PUT",
|
|
20911
20930
|
headers: {
|
|
20931
|
+
"Content-Type": "application/json",
|
|
20912
20932
|
"Accept": "application/json"
|
|
20913
20933
|
}
|
|
20914
20934
|
};
|
|
20915
20935
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20916
20936
|
return this.http.fetch(url_, transformedOptions_);
|
|
20917
20937
|
}).then((_response) => {
|
|
20918
|
-
return this.
|
|
20938
|
+
return this.processSaveValue(_response);
|
|
20919
20939
|
});
|
|
20920
20940
|
}
|
|
20921
|
-
|
|
20941
|
+
processSaveValue(response) {
|
|
20922
20942
|
const status = response.status;
|
|
20923
20943
|
let _headers = {};
|
|
20924
20944
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20929,7 +20949,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20929
20949
|
return response.text().then((_responseText) => {
|
|
20930
20950
|
let result200 = null;
|
|
20931
20951
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20932
|
-
result200 =
|
|
20952
|
+
result200 = SaveValueResponseDto.fromJS(resultData200);
|
|
20933
20953
|
return result200;
|
|
20934
20954
|
});
|
|
20935
20955
|
}
|
|
@@ -20940,25 +20960,30 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20940
20960
|
}
|
|
20941
20961
|
return Promise.resolve(null);
|
|
20942
20962
|
}
|
|
20943
|
-
|
|
20944
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
20963
|
+
saveTool(id, tenantId, request) {
|
|
20964
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/tool?";
|
|
20945
20965
|
if (id === undefined || id === null)
|
|
20946
20966
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20947
20967
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20968
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
20969
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20948
20970
|
url_ = url_.replace(/[?&]$/, "");
|
|
20971
|
+
const content_ = JSON.stringify(request);
|
|
20949
20972
|
let options_ = {
|
|
20950
|
-
|
|
20973
|
+
body: content_,
|
|
20974
|
+
method: "PUT",
|
|
20951
20975
|
headers: {
|
|
20976
|
+
"Content-Type": "application/json",
|
|
20952
20977
|
"Accept": "application/json"
|
|
20953
20978
|
}
|
|
20954
20979
|
};
|
|
20955
20980
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20956
20981
|
return this.http.fetch(url_, transformedOptions_);
|
|
20957
20982
|
}).then((_response) => {
|
|
20958
|
-
return this.
|
|
20983
|
+
return this.processSaveTool(_response);
|
|
20959
20984
|
});
|
|
20960
20985
|
}
|
|
20961
|
-
|
|
20986
|
+
processSaveTool(response) {
|
|
20962
20987
|
const status = response.status;
|
|
20963
20988
|
let _headers = {};
|
|
20964
20989
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20969,7 +20994,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20969
20994
|
return response.text().then((_responseText) => {
|
|
20970
20995
|
let result200 = null;
|
|
20971
20996
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20972
|
-
result200 =
|
|
20997
|
+
result200 = SaveValueResponseDto.fromJS(resultData200);
|
|
20973
20998
|
return result200;
|
|
20974
20999
|
});
|
|
20975
21000
|
}
|
|
@@ -20980,37 +21005,38 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20980
21005
|
}
|
|
20981
21006
|
return Promise.resolve(null);
|
|
20982
21007
|
}
|
|
20983
|
-
|
|
20984
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21008
|
+
saveComment(id, tenantId, request) {
|
|
21009
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/comment?";
|
|
20985
21010
|
if (id === undefined || id === null)
|
|
20986
21011
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
20987
21012
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21013
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
21014
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20988
21015
|
url_ = url_.replace(/[?&]$/, "");
|
|
21016
|
+
const content_ = JSON.stringify(request);
|
|
20989
21017
|
let options_ = {
|
|
20990
|
-
|
|
21018
|
+
body: content_,
|
|
21019
|
+
method: "PUT",
|
|
20991
21020
|
headers: {
|
|
20992
|
-
"
|
|
21021
|
+
"Content-Type": "application/json",
|
|
20993
21022
|
}
|
|
20994
21023
|
};
|
|
20995
21024
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20996
21025
|
return this.http.fetch(url_, transformedOptions_);
|
|
20997
21026
|
}).then((_response) => {
|
|
20998
|
-
return this.
|
|
21027
|
+
return this.processSaveComment(_response);
|
|
20999
21028
|
});
|
|
21000
21029
|
}
|
|
21001
|
-
|
|
21030
|
+
processSaveComment(response) {
|
|
21002
21031
|
const status = response.status;
|
|
21003
21032
|
let _headers = {};
|
|
21004
21033
|
if (response.headers && response.headers.forEach) {
|
|
21005
21034
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21006
21035
|
}
|
|
21007
21036
|
;
|
|
21008
|
-
if (status ===
|
|
21037
|
+
if (status === 204) {
|
|
21009
21038
|
return response.text().then((_responseText) => {
|
|
21010
|
-
|
|
21011
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21012
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
21013
|
-
return result200;
|
|
21039
|
+
return;
|
|
21014
21040
|
});
|
|
21015
21041
|
}
|
|
21016
21042
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21020,32 +21046,30 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21020
21046
|
}
|
|
21021
21047
|
return Promise.resolve(null);
|
|
21022
21048
|
}
|
|
21023
|
-
|
|
21024
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21049
|
+
batchInsertValues(id, tenantId, request) {
|
|
21050
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/batchvalues?";
|
|
21025
21051
|
if (id === undefined || id === null)
|
|
21026
21052
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21027
21053
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21028
|
-
if (schemaId === undefined || schemaId === null)
|
|
21029
|
-
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
21030
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21031
|
-
if (serialNumber !== undefined && serialNumber !== null)
|
|
21032
|
-
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
21033
21054
|
if (tenantId !== undefined && tenantId !== null)
|
|
21034
21055
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21035
21056
|
url_ = url_.replace(/[?&]$/, "");
|
|
21057
|
+
const content_ = JSON.stringify(request);
|
|
21036
21058
|
let options_ = {
|
|
21037
|
-
|
|
21059
|
+
body: content_,
|
|
21060
|
+
method: "POST",
|
|
21038
21061
|
headers: {
|
|
21062
|
+
"Content-Type": "application/json",
|
|
21039
21063
|
"Accept": "application/json"
|
|
21040
21064
|
}
|
|
21041
21065
|
};
|
|
21042
21066
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21043
21067
|
return this.http.fetch(url_, transformedOptions_);
|
|
21044
21068
|
}).then((_response) => {
|
|
21045
|
-
return this.
|
|
21069
|
+
return this.processBatchInsertValues(_response);
|
|
21046
21070
|
});
|
|
21047
21071
|
}
|
|
21048
|
-
|
|
21072
|
+
processBatchInsertValues(response) {
|
|
21049
21073
|
const status = response.status;
|
|
21050
21074
|
let _headers = {};
|
|
21051
21075
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21056,7 +21080,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21056
21080
|
return response.text().then((_responseText) => {
|
|
21057
21081
|
let result200 = null;
|
|
21058
21082
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21059
|
-
result200 =
|
|
21083
|
+
result200 = BatchInsertValuesResponseDto.fromJS(resultData200);
|
|
21060
21084
|
return result200;
|
|
21061
21085
|
});
|
|
21062
21086
|
}
|
|
@@ -21067,39 +21091,41 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21067
21091
|
}
|
|
21068
21092
|
return Promise.resolve(null);
|
|
21069
21093
|
}
|
|
21070
|
-
|
|
21071
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21094
|
+
saveMeasurementFormInstanceSchemaComment(id, schemaId, tenantId, request) {
|
|
21095
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/comment?";
|
|
21072
21096
|
if (id === undefined || id === null)
|
|
21073
21097
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21074
21098
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21099
|
+
if (schemaId === undefined || schemaId === null)
|
|
21100
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
21101
|
+
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21075
21102
|
if (tenantId !== undefined && tenantId !== null)
|
|
21076
21103
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21077
21104
|
url_ = url_.replace(/[?&]$/, "");
|
|
21105
|
+
const content_ = JSON.stringify(request);
|
|
21078
21106
|
let options_ = {
|
|
21079
|
-
|
|
21107
|
+
body: content_,
|
|
21108
|
+
method: "PUT",
|
|
21080
21109
|
headers: {
|
|
21081
|
-
"
|
|
21110
|
+
"Content-Type": "application/json",
|
|
21082
21111
|
}
|
|
21083
21112
|
};
|
|
21084
21113
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21085
21114
|
return this.http.fetch(url_, transformedOptions_);
|
|
21086
21115
|
}).then((_response) => {
|
|
21087
|
-
return this.
|
|
21116
|
+
return this.processSaveMeasurementFormInstanceSchemaComment(_response);
|
|
21088
21117
|
});
|
|
21089
21118
|
}
|
|
21090
|
-
|
|
21119
|
+
processSaveMeasurementFormInstanceSchemaComment(response) {
|
|
21091
21120
|
const status = response.status;
|
|
21092
21121
|
let _headers = {};
|
|
21093
21122
|
if (response.headers && response.headers.forEach) {
|
|
21094
21123
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21095
21124
|
}
|
|
21096
21125
|
;
|
|
21097
|
-
if (status ===
|
|
21126
|
+
if (status === 204) {
|
|
21098
21127
|
return response.text().then((_responseText) => {
|
|
21099
|
-
|
|
21100
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21101
|
-
result200 = MeasurementFormInstanceProgressDto.fromJS(resultData200);
|
|
21102
|
-
return result200;
|
|
21128
|
+
return;
|
|
21103
21129
|
});
|
|
21104
21130
|
}
|
|
21105
21131
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21109,33 +21135,33 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21109
21135
|
}
|
|
21110
21136
|
return Promise.resolve(null);
|
|
21111
21137
|
}
|
|
21112
|
-
|
|
21113
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21138
|
+
createMeasurementFormInstanceSchemaFeedback(id, schemaId, tenantId, request) {
|
|
21139
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/feedback?";
|
|
21114
21140
|
if (id === undefined || id === null)
|
|
21115
21141
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21116
21142
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21143
|
+
if (schemaId === undefined || schemaId === null)
|
|
21144
|
+
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
21145
|
+
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21117
21146
|
if (tenantId !== undefined && tenantId !== null)
|
|
21118
21147
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21119
|
-
if (schemaId !== undefined && schemaId !== null)
|
|
21120
|
-
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
21121
|
-
if (serialNumber !== undefined && serialNumber !== null)
|
|
21122
|
-
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
21123
|
-
if (elementId !== undefined && elementId !== null)
|
|
21124
|
-
url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
|
|
21125
21148
|
url_ = url_.replace(/[?&]$/, "");
|
|
21149
|
+
const content_ = JSON.stringify(request);
|
|
21126
21150
|
let options_ = {
|
|
21127
|
-
|
|
21151
|
+
body: content_,
|
|
21152
|
+
method: "POST",
|
|
21128
21153
|
headers: {
|
|
21154
|
+
"Content-Type": "application/json",
|
|
21129
21155
|
"Accept": "application/json"
|
|
21130
21156
|
}
|
|
21131
21157
|
};
|
|
21132
21158
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21133
21159
|
return this.http.fetch(url_, transformedOptions_);
|
|
21134
21160
|
}).then((_response) => {
|
|
21135
|
-
return this.
|
|
21161
|
+
return this.processCreateMeasurementFormInstanceSchemaFeedback(_response);
|
|
21136
21162
|
});
|
|
21137
21163
|
}
|
|
21138
|
-
|
|
21164
|
+
processCreateMeasurementFormInstanceSchemaFeedback(response) {
|
|
21139
21165
|
const status = response.status;
|
|
21140
21166
|
let _headers = {};
|
|
21141
21167
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21146,11 +21172,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21146
21172
|
return response.text().then((_responseText) => {
|
|
21147
21173
|
let result200 = null;
|
|
21148
21174
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21149
|
-
|
|
21150
|
-
result200 = [];
|
|
21151
|
-
for (let item of resultData200)
|
|
21152
|
-
result200.push(MeasurementFormElementValueAuditDto.fromJS(item));
|
|
21153
|
-
}
|
|
21175
|
+
result200 = SchemaFeedbackCreatedDto.fromJS(resultData200);
|
|
21154
21176
|
return result200;
|
|
21155
21177
|
});
|
|
21156
21178
|
}
|
|
@@ -21161,8 +21183,11 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21161
21183
|
}
|
|
21162
21184
|
return Promise.resolve(null);
|
|
21163
21185
|
}
|
|
21164
|
-
|
|
21165
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
21186
|
+
listSupplierMeasurementFormInstances(supplierId) {
|
|
21187
|
+
let url_ = this.baseUrl + "/measurementforms/instances/suppliers/{supplierId}";
|
|
21188
|
+
if (supplierId === undefined || supplierId === null)
|
|
21189
|
+
throw new globalThis.Error("The parameter 'supplierId' must be defined.");
|
|
21190
|
+
url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
|
|
21166
21191
|
url_ = url_.replace(/[?&]$/, "");
|
|
21167
21192
|
let options_ = {
|
|
21168
21193
|
method: "GET",
|
|
@@ -21173,10 +21198,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21173
21198
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21174
21199
|
return this.http.fetch(url_, transformedOptions_);
|
|
21175
21200
|
}).then((_response) => {
|
|
21176
|
-
return this.
|
|
21201
|
+
return this.processListSupplierMeasurementFormInstances(_response);
|
|
21177
21202
|
});
|
|
21178
21203
|
}
|
|
21179
|
-
|
|
21204
|
+
processListSupplierMeasurementFormInstances(response) {
|
|
21180
21205
|
const status = response.status;
|
|
21181
21206
|
let _headers = {};
|
|
21182
21207
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21190,7 +21215,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21190
21215
|
if (Array.isArray(resultData200)) {
|
|
21191
21216
|
result200 = [];
|
|
21192
21217
|
for (let item of resultData200)
|
|
21193
|
-
result200.push(
|
|
21218
|
+
result200.push(MeasurementFormSupplierAccessInstanceDto.fromJS(item));
|
|
21194
21219
|
}
|
|
21195
21220
|
return result200;
|
|
21196
21221
|
});
|
|
@@ -21202,13 +21227,14 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21202
21227
|
}
|
|
21203
21228
|
return Promise.resolve(null);
|
|
21204
21229
|
}
|
|
21205
|
-
|
|
21206
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21230
|
+
upsertSupplierToMeasurmentFormInstance(id, supplierId, request) {
|
|
21231
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/suppliers/{supplierId}";
|
|
21207
21232
|
if (id === undefined || id === null)
|
|
21208
21233
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21209
21234
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21210
|
-
if (
|
|
21211
|
-
|
|
21235
|
+
if (supplierId === undefined || supplierId === null)
|
|
21236
|
+
throw new globalThis.Error("The parameter 'supplierId' must be defined.");
|
|
21237
|
+
url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
|
|
21212
21238
|
url_ = url_.replace(/[?&]$/, "");
|
|
21213
21239
|
const content_ = JSON.stringify(request);
|
|
21214
21240
|
let options_ = {
|
|
@@ -21216,28 +21242,24 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21216
21242
|
method: "PUT",
|
|
21217
21243
|
headers: {
|
|
21218
21244
|
"Content-Type": "application/json",
|
|
21219
|
-
"Accept": "application/json"
|
|
21220
21245
|
}
|
|
21221
21246
|
};
|
|
21222
21247
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21223
21248
|
return this.http.fetch(url_, transformedOptions_);
|
|
21224
21249
|
}).then((_response) => {
|
|
21225
|
-
return this.
|
|
21250
|
+
return this.processUpsertSupplierToMeasurmentFormInstance(_response);
|
|
21226
21251
|
});
|
|
21227
21252
|
}
|
|
21228
|
-
|
|
21253
|
+
processUpsertSupplierToMeasurmentFormInstance(response) {
|
|
21229
21254
|
const status = response.status;
|
|
21230
21255
|
let _headers = {};
|
|
21231
21256
|
if (response.headers && response.headers.forEach) {
|
|
21232
21257
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21233
21258
|
}
|
|
21234
21259
|
;
|
|
21235
|
-
if (status ===
|
|
21260
|
+
if (status === 204) {
|
|
21236
21261
|
return response.text().then((_responseText) => {
|
|
21237
|
-
|
|
21238
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21239
|
-
result200 = SaveValueResponseDto.fromJS(resultData200);
|
|
21240
|
-
return result200;
|
|
21262
|
+
return;
|
|
21241
21263
|
});
|
|
21242
21264
|
}
|
|
21243
21265
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21247,42 +21269,35 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21247
21269
|
}
|
|
21248
21270
|
return Promise.resolve(null);
|
|
21249
21271
|
}
|
|
21250
|
-
|
|
21251
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21272
|
+
removeSupplierFromMeasurmentFormInstance(id, supplierId) {
|
|
21273
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/suppliers/{supplierId}";
|
|
21252
21274
|
if (id === undefined || id === null)
|
|
21253
21275
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21254
21276
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21255
|
-
if (
|
|
21256
|
-
|
|
21277
|
+
if (supplierId === undefined || supplierId === null)
|
|
21278
|
+
throw new globalThis.Error("The parameter 'supplierId' must be defined.");
|
|
21279
|
+
url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
|
|
21257
21280
|
url_ = url_.replace(/[?&]$/, "");
|
|
21258
|
-
const content_ = JSON.stringify(request);
|
|
21259
21281
|
let options_ = {
|
|
21260
|
-
|
|
21261
|
-
|
|
21262
|
-
headers: {
|
|
21263
|
-
"Content-Type": "application/json",
|
|
21264
|
-
"Accept": "application/json"
|
|
21265
|
-
}
|
|
21282
|
+
method: "DELETE",
|
|
21283
|
+
headers: {}
|
|
21266
21284
|
};
|
|
21267
21285
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21268
21286
|
return this.http.fetch(url_, transformedOptions_);
|
|
21269
21287
|
}).then((_response) => {
|
|
21270
|
-
return this.
|
|
21288
|
+
return this.processRemoveSupplierFromMeasurmentFormInstance(_response);
|
|
21271
21289
|
});
|
|
21272
21290
|
}
|
|
21273
|
-
|
|
21291
|
+
processRemoveSupplierFromMeasurmentFormInstance(response) {
|
|
21274
21292
|
const status = response.status;
|
|
21275
21293
|
let _headers = {};
|
|
21276
21294
|
if (response.headers && response.headers.forEach) {
|
|
21277
21295
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21278
21296
|
}
|
|
21279
21297
|
;
|
|
21280
|
-
if (status ===
|
|
21298
|
+
if (status === 204) {
|
|
21281
21299
|
return response.text().then((_responseText) => {
|
|
21282
|
-
|
|
21283
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21284
|
-
result200 = SaveValueResponseDto.fromJS(resultData200);
|
|
21285
|
-
return result200;
|
|
21300
|
+
return;
|
|
21286
21301
|
});
|
|
21287
21302
|
}
|
|
21288
21303
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21292,38 +21307,43 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21292
21307
|
}
|
|
21293
21308
|
return Promise.resolve(null);
|
|
21294
21309
|
}
|
|
21295
|
-
|
|
21296
|
-
|
|
21310
|
+
/**
|
|
21311
|
+
* @deprecated
|
|
21312
|
+
*/
|
|
21313
|
+
exportDimensionReportV2(id, request) {
|
|
21314
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
21297
21315
|
if (id === undefined || id === null)
|
|
21298
21316
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21299
21317
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21300
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
21301
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21302
21318
|
url_ = url_.replace(/[?&]$/, "");
|
|
21303
21319
|
const content_ = JSON.stringify(request);
|
|
21304
21320
|
let options_ = {
|
|
21305
21321
|
body: content_,
|
|
21306
|
-
method: "
|
|
21322
|
+
method: "POST",
|
|
21307
21323
|
headers: {
|
|
21308
21324
|
"Content-Type": "application/json",
|
|
21325
|
+
"Accept": "application/json"
|
|
21309
21326
|
}
|
|
21310
21327
|
};
|
|
21311
21328
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21312
21329
|
return this.http.fetch(url_, transformedOptions_);
|
|
21313
21330
|
}).then((_response) => {
|
|
21314
|
-
return this.
|
|
21331
|
+
return this.processExportDimensionReportV2(_response);
|
|
21315
21332
|
});
|
|
21316
21333
|
}
|
|
21317
|
-
|
|
21334
|
+
processExportDimensionReportV2(response) {
|
|
21318
21335
|
const status = response.status;
|
|
21319
21336
|
let _headers = {};
|
|
21320
21337
|
if (response.headers && response.headers.forEach) {
|
|
21321
21338
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21322
21339
|
}
|
|
21323
21340
|
;
|
|
21324
|
-
if (status ===
|
|
21341
|
+
if (status === 200) {
|
|
21325
21342
|
return response.text().then((_responseText) => {
|
|
21326
|
-
|
|
21343
|
+
let result200 = null;
|
|
21344
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21345
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
21346
|
+
return result200;
|
|
21327
21347
|
});
|
|
21328
21348
|
}
|
|
21329
21349
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21333,13 +21353,11 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21333
21353
|
}
|
|
21334
21354
|
return Promise.resolve(null);
|
|
21335
21355
|
}
|
|
21336
|
-
|
|
21337
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21356
|
+
exportDimensionReport(id, request) {
|
|
21357
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
|
|
21338
21358
|
if (id === undefined || id === null)
|
|
21339
21359
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21340
21360
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21341
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
21342
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21343
21361
|
url_ = url_.replace(/[?&]$/, "");
|
|
21344
21362
|
const content_ = JSON.stringify(request);
|
|
21345
21363
|
let options_ = {
|
|
@@ -21353,10 +21371,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21353
21371
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21354
21372
|
return this.http.fetch(url_, transformedOptions_);
|
|
21355
21373
|
}).then((_response) => {
|
|
21356
|
-
return this.
|
|
21374
|
+
return this.processExportDimensionReport(_response);
|
|
21357
21375
|
});
|
|
21358
21376
|
}
|
|
21359
|
-
|
|
21377
|
+
processExportDimensionReport(response) {
|
|
21360
21378
|
const status = response.status;
|
|
21361
21379
|
let _headers = {};
|
|
21362
21380
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21367,7 +21385,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21367
21385
|
return response.text().then((_responseText) => {
|
|
21368
21386
|
let result200 = null;
|
|
21369
21387
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21370
|
-
result200 =
|
|
21388
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
21371
21389
|
return result200;
|
|
21372
21390
|
});
|
|
21373
21391
|
}
|
|
@@ -21378,41 +21396,45 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21378
21396
|
}
|
|
21379
21397
|
return Promise.resolve(null);
|
|
21380
21398
|
}
|
|
21381
|
-
|
|
21382
|
-
|
|
21399
|
+
}
|
|
21400
|
+
export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiBase {
|
|
21401
|
+
constructor(configuration, baseUrl, http) {
|
|
21402
|
+
super(configuration);
|
|
21403
|
+
this.jsonParseReviver = undefined;
|
|
21404
|
+
this.http = http ? http : window;
|
|
21405
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21406
|
+
}
|
|
21407
|
+
createMeasurementFormInstance(id) {
|
|
21408
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
21383
21409
|
if (id === undefined || id === null)
|
|
21384
21410
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21385
21411
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21386
|
-
if (schemaId === undefined || schemaId === null)
|
|
21387
|
-
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
21388
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21389
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
21390
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21391
21412
|
url_ = url_.replace(/[?&]$/, "");
|
|
21392
|
-
const content_ = JSON.stringify(request);
|
|
21393
21413
|
let options_ = {
|
|
21394
|
-
|
|
21395
|
-
method: "PUT",
|
|
21414
|
+
method: "POST",
|
|
21396
21415
|
headers: {
|
|
21397
|
-
"
|
|
21416
|
+
"Accept": "application/json"
|
|
21398
21417
|
}
|
|
21399
21418
|
};
|
|
21400
21419
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21401
21420
|
return this.http.fetch(url_, transformedOptions_);
|
|
21402
21421
|
}).then((_response) => {
|
|
21403
|
-
return this.
|
|
21422
|
+
return this.processCreateMeasurementFormInstance(_response);
|
|
21404
21423
|
});
|
|
21405
21424
|
}
|
|
21406
|
-
|
|
21425
|
+
processCreateMeasurementFormInstance(response) {
|
|
21407
21426
|
const status = response.status;
|
|
21408
21427
|
let _headers = {};
|
|
21409
21428
|
if (response.headers && response.headers.forEach) {
|
|
21410
21429
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21411
21430
|
}
|
|
21412
21431
|
;
|
|
21413
|
-
if (status ===
|
|
21432
|
+
if (status === 200) {
|
|
21414
21433
|
return response.text().then((_responseText) => {
|
|
21415
|
-
|
|
21434
|
+
let result200 = null;
|
|
21435
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21436
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
21437
|
+
return result200;
|
|
21416
21438
|
});
|
|
21417
21439
|
}
|
|
21418
21440
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21422,21 +21444,16 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21422
21444
|
}
|
|
21423
21445
|
return Promise.resolve(null);
|
|
21424
21446
|
}
|
|
21425
|
-
|
|
21426
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}
|
|
21447
|
+
updateMeasurementFormInstance(id, request) {
|
|
21448
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
21427
21449
|
if (id === undefined || id === null)
|
|
21428
21450
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21429
21451
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21430
|
-
if (schemaId === undefined || schemaId === null)
|
|
21431
|
-
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
21432
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21433
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
21434
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21435
21452
|
url_ = url_.replace(/[?&]$/, "");
|
|
21436
21453
|
const content_ = JSON.stringify(request);
|
|
21437
21454
|
let options_ = {
|
|
21438
21455
|
body: content_,
|
|
21439
|
-
method: "
|
|
21456
|
+
method: "PUT",
|
|
21440
21457
|
headers: {
|
|
21441
21458
|
"Content-Type": "application/json",
|
|
21442
21459
|
"Accept": "application/json"
|
|
@@ -21445,10 +21462,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21445
21462
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21446
21463
|
return this.http.fetch(url_, transformedOptions_);
|
|
21447
21464
|
}).then((_response) => {
|
|
21448
|
-
return this.
|
|
21465
|
+
return this.processUpdateMeasurementFormInstance(_response);
|
|
21449
21466
|
});
|
|
21450
21467
|
}
|
|
21451
|
-
|
|
21468
|
+
processUpdateMeasurementFormInstance(response) {
|
|
21452
21469
|
const status = response.status;
|
|
21453
21470
|
let _headers = {};
|
|
21454
21471
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21459,7 +21476,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21459
21476
|
return response.text().then((_responseText) => {
|
|
21460
21477
|
let result200 = null;
|
|
21461
21478
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21462
|
-
result200 =
|
|
21479
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
21463
21480
|
return result200;
|
|
21464
21481
|
});
|
|
21465
21482
|
}
|
|
@@ -21470,11 +21487,24 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21470
21487
|
}
|
|
21471
21488
|
return Promise.resolve(null);
|
|
21472
21489
|
}
|
|
21473
|
-
|
|
21474
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
21475
|
-
if (
|
|
21476
|
-
throw new globalThis.Error("The parameter '
|
|
21477
|
-
|
|
21490
|
+
listMeasurementFormsByStatus(status, statusChangedSince, onlyWithReports, pageSize, search, continuationToken) {
|
|
21491
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bystatus?";
|
|
21492
|
+
if (status === null)
|
|
21493
|
+
throw new globalThis.Error("The parameter 'status' cannot be null.");
|
|
21494
|
+
else if (status !== undefined)
|
|
21495
|
+
url_ += "status=" + encodeURIComponent("" + status) + "&";
|
|
21496
|
+
if (statusChangedSince !== undefined && statusChangedSince !== null)
|
|
21497
|
+
url_ += "statusChangedSince=" + encodeURIComponent(statusChangedSince ? "" + statusChangedSince.toISOString() : "") + "&";
|
|
21498
|
+
if (onlyWithReports !== undefined && onlyWithReports !== null)
|
|
21499
|
+
url_ += "onlyWithReports=" + encodeURIComponent("" + onlyWithReports) + "&";
|
|
21500
|
+
if (pageSize === null)
|
|
21501
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
21502
|
+
else if (pageSize !== undefined)
|
|
21503
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
21504
|
+
if (search !== undefined && search !== null)
|
|
21505
|
+
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
21506
|
+
if (continuationToken !== undefined && continuationToken !== null)
|
|
21507
|
+
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
21478
21508
|
url_ = url_.replace(/[?&]$/, "");
|
|
21479
21509
|
let options_ = {
|
|
21480
21510
|
method: "GET",
|
|
@@ -21485,10 +21515,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21485
21515
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21486
21516
|
return this.http.fetch(url_, transformedOptions_);
|
|
21487
21517
|
}).then((_response) => {
|
|
21488
|
-
return this.
|
|
21518
|
+
return this.processListMeasurementFormsByStatus(_response);
|
|
21489
21519
|
});
|
|
21490
21520
|
}
|
|
21491
|
-
|
|
21521
|
+
processListMeasurementFormsByStatus(response) {
|
|
21492
21522
|
const status = response.status;
|
|
21493
21523
|
let _headers = {};
|
|
21494
21524
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21499,11 +21529,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21499
21529
|
return response.text().then((_responseText) => {
|
|
21500
21530
|
let result200 = null;
|
|
21501
21531
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21502
|
-
|
|
21503
|
-
result200 = [];
|
|
21504
|
-
for (let item of resultData200)
|
|
21505
|
-
result200.push(MeasurementFormSupplierAccessInstanceDto.fromJS(item));
|
|
21506
|
-
}
|
|
21532
|
+
result200 = PagedResultOfMeasurementFormInstanceDto.fromJS(resultData200);
|
|
21507
21533
|
return result200;
|
|
21508
21534
|
});
|
|
21509
21535
|
}
|
|
@@ -21514,39 +21540,37 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21514
21540
|
}
|
|
21515
21541
|
return Promise.resolve(null);
|
|
21516
21542
|
}
|
|
21517
|
-
|
|
21518
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
21519
|
-
if (id === undefined || id === null)
|
|
21520
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21521
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21522
|
-
if (supplierId === undefined || supplierId === null)
|
|
21523
|
-
throw new globalThis.Error("The parameter 'supplierId' must be defined.");
|
|
21524
|
-
url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
|
|
21543
|
+
postListMeasurementFormsByStatus(request) {
|
|
21544
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bystatus";
|
|
21525
21545
|
url_ = url_.replace(/[?&]$/, "");
|
|
21526
21546
|
const content_ = JSON.stringify(request);
|
|
21527
21547
|
let options_ = {
|
|
21528
21548
|
body: content_,
|
|
21529
|
-
method: "
|
|
21549
|
+
method: "POST",
|
|
21530
21550
|
headers: {
|
|
21531
21551
|
"Content-Type": "application/json",
|
|
21552
|
+
"Accept": "application/json"
|
|
21532
21553
|
}
|
|
21533
21554
|
};
|
|
21534
21555
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21535
21556
|
return this.http.fetch(url_, transformedOptions_);
|
|
21536
21557
|
}).then((_response) => {
|
|
21537
|
-
return this.
|
|
21558
|
+
return this.processPostListMeasurementFormsByStatus(_response);
|
|
21538
21559
|
});
|
|
21539
21560
|
}
|
|
21540
|
-
|
|
21561
|
+
processPostListMeasurementFormsByStatus(response) {
|
|
21541
21562
|
const status = response.status;
|
|
21542
21563
|
let _headers = {};
|
|
21543
21564
|
if (response.headers && response.headers.forEach) {
|
|
21544
21565
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21545
21566
|
}
|
|
21546
21567
|
;
|
|
21547
|
-
if (status ===
|
|
21568
|
+
if (status === 200) {
|
|
21548
21569
|
return response.text().then((_responseText) => {
|
|
21549
|
-
|
|
21570
|
+
let result200 = null;
|
|
21571
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21572
|
+
result200 = PagedResultOfMeasurementFormInstanceDto.fromJS(resultData200);
|
|
21573
|
+
return result200;
|
|
21550
21574
|
});
|
|
21551
21575
|
}
|
|
21552
21576
|
else if (status !== 200 && status !== 204) {
|
|
@@ -21556,26 +21580,24 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21556
21580
|
}
|
|
21557
21581
|
return Promise.resolve(null);
|
|
21558
21582
|
}
|
|
21559
|
-
|
|
21560
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
21561
|
-
if (id === undefined || id === null)
|
|
21562
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21563
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21564
|
-
if (supplierId === undefined || supplierId === null)
|
|
21565
|
-
throw new globalThis.Error("The parameter 'supplierId' must be defined.");
|
|
21566
|
-
url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
|
|
21583
|
+
deleteInstancesBulk(request) {
|
|
21584
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bulkdelete";
|
|
21567
21585
|
url_ = url_.replace(/[?&]$/, "");
|
|
21586
|
+
const content_ = JSON.stringify(request);
|
|
21568
21587
|
let options_ = {
|
|
21588
|
+
body: content_,
|
|
21569
21589
|
method: "DELETE",
|
|
21570
|
-
headers: {
|
|
21590
|
+
headers: {
|
|
21591
|
+
"Content-Type": "application/json",
|
|
21592
|
+
}
|
|
21571
21593
|
};
|
|
21572
21594
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21573
21595
|
return this.http.fetch(url_, transformedOptions_);
|
|
21574
21596
|
}).then((_response) => {
|
|
21575
|
-
return this.
|
|
21597
|
+
return this.processDeleteInstancesBulk(_response);
|
|
21576
21598
|
});
|
|
21577
21599
|
}
|
|
21578
|
-
|
|
21600
|
+
processDeleteInstancesBulk(response) {
|
|
21579
21601
|
const status = response.status;
|
|
21580
21602
|
let _headers = {};
|
|
21581
21603
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21594,11 +21616,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21594
21616
|
}
|
|
21595
21617
|
return Promise.resolve(null);
|
|
21596
21618
|
}
|
|
21597
|
-
|
|
21598
|
-
|
|
21599
|
-
*/
|
|
21600
|
-
exportDimensionReportV2(id, request) {
|
|
21601
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
21619
|
+
createMeasurementFormInstance2(id, request) {
|
|
21620
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
21602
21621
|
if (id === undefined || id === null)
|
|
21603
21622
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21604
21623
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -21615,10 +21634,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21615
21634
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21616
21635
|
return this.http.fetch(url_, transformedOptions_);
|
|
21617
21636
|
}).then((_response) => {
|
|
21618
|
-
return this.
|
|
21637
|
+
return this.processCreateMeasurementFormInstance2(_response);
|
|
21619
21638
|
});
|
|
21620
21639
|
}
|
|
21621
|
-
|
|
21640
|
+
processCreateMeasurementFormInstance2(response) {
|
|
21622
21641
|
const status = response.status;
|
|
21623
21642
|
let _headers = {};
|
|
21624
21643
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21629,7 +21648,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21629
21648
|
return response.text().then((_responseText) => {
|
|
21630
21649
|
let result200 = null;
|
|
21631
21650
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21632
|
-
result200 =
|
|
21651
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
21633
21652
|
return result200;
|
|
21634
21653
|
});
|
|
21635
21654
|
}
|
|
@@ -21640,28 +21659,25 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21640
21659
|
}
|
|
21641
21660
|
return Promise.resolve(null);
|
|
21642
21661
|
}
|
|
21643
|
-
|
|
21644
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21662
|
+
reactivateMeasurementFormInstance(id) {
|
|
21663
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
|
|
21645
21664
|
if (id === undefined || id === null)
|
|
21646
21665
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21647
21666
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21648
21667
|
url_ = url_.replace(/[?&]$/, "");
|
|
21649
|
-
const content_ = JSON.stringify(request);
|
|
21650
21668
|
let options_ = {
|
|
21651
|
-
body: content_,
|
|
21652
21669
|
method: "POST",
|
|
21653
21670
|
headers: {
|
|
21654
|
-
"Content-Type": "application/json",
|
|
21655
21671
|
"Accept": "application/json"
|
|
21656
21672
|
}
|
|
21657
21673
|
};
|
|
21658
21674
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21659
21675
|
return this.http.fetch(url_, transformedOptions_);
|
|
21660
21676
|
}).then((_response) => {
|
|
21661
|
-
return this.
|
|
21677
|
+
return this.processReactivateMeasurementFormInstance(_response);
|
|
21662
21678
|
});
|
|
21663
21679
|
}
|
|
21664
|
-
|
|
21680
|
+
processReactivateMeasurementFormInstance(response) {
|
|
21665
21681
|
const status = response.status;
|
|
21666
21682
|
let _headers = {};
|
|
21667
21683
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21672,7 +21688,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21672
21688
|
return response.text().then((_responseText) => {
|
|
21673
21689
|
let result200 = null;
|
|
21674
21690
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21675
|
-
result200 =
|
|
21691
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
21676
21692
|
return result200;
|
|
21677
21693
|
});
|
|
21678
21694
|
}
|
|
@@ -21683,8 +21699,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21683
21699
|
}
|
|
21684
21700
|
return Promise.resolve(null);
|
|
21685
21701
|
}
|
|
21686
|
-
|
|
21687
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21702
|
+
cancelMeasurementFormInstance(id) {
|
|
21703
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/cancel";
|
|
21688
21704
|
if (id === undefined || id === null)
|
|
21689
21705
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21690
21706
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -21698,10 +21714,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21698
21714
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21699
21715
|
return this.http.fetch(url_, transformedOptions_);
|
|
21700
21716
|
}).then((_response) => {
|
|
21701
|
-
return this.
|
|
21717
|
+
return this.processCancelMeasurementFormInstance(_response);
|
|
21702
21718
|
});
|
|
21703
21719
|
}
|
|
21704
|
-
|
|
21720
|
+
processCancelMeasurementFormInstance(response) {
|
|
21705
21721
|
const status = response.status;
|
|
21706
21722
|
let _headers = {};
|
|
21707
21723
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21712,7 +21728,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21712
21728
|
return response.text().then((_responseText) => {
|
|
21713
21729
|
let result200 = null;
|
|
21714
21730
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21715
|
-
result200 =
|
|
21731
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
21716
21732
|
return result200;
|
|
21717
21733
|
});
|
|
21718
21734
|
}
|
|
@@ -22677,11 +22693,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22677
22693
|
return Promise.resolve(null);
|
|
22678
22694
|
}
|
|
22679
22695
|
/**
|
|
22680
|
-
* Register
|
|
22681
|
-
* @deprecated
|
|
22696
|
+
* Register a completed work order operation event
|
|
22682
22697
|
*/
|
|
22683
|
-
|
|
22684
|
-
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/
|
|
22698
|
+
registerWorkorderOperationEvent(id, operation, request) {
|
|
22699
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/events";
|
|
22685
22700
|
if (id === undefined || id === null)
|
|
22686
22701
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22687
22702
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -22695,24 +22710,28 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22695
22710
|
method: "POST",
|
|
22696
22711
|
headers: {
|
|
22697
22712
|
"Content-Type": "application/json",
|
|
22713
|
+
"Accept": "application/json"
|
|
22698
22714
|
}
|
|
22699
22715
|
};
|
|
22700
22716
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22701
22717
|
return this.http.fetch(url_, transformedOptions_);
|
|
22702
22718
|
}).then((_response) => {
|
|
22703
|
-
return this.
|
|
22719
|
+
return this.processRegisterWorkorderOperationEvent(_response);
|
|
22704
22720
|
});
|
|
22705
22721
|
}
|
|
22706
|
-
|
|
22722
|
+
processRegisterWorkorderOperationEvent(response) {
|
|
22707
22723
|
const status = response.status;
|
|
22708
22724
|
let _headers = {};
|
|
22709
22725
|
if (response.headers && response.headers.forEach) {
|
|
22710
22726
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22711
22727
|
}
|
|
22712
22728
|
;
|
|
22713
|
-
if (status ===
|
|
22729
|
+
if (status === 200) {
|
|
22714
22730
|
return response.text().then((_responseText) => {
|
|
22715
|
-
|
|
22731
|
+
let result200 = null;
|
|
22732
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22733
|
+
result200 = WorkorderOperationEventDto.fromJS(resultData200);
|
|
22734
|
+
return result200;
|
|
22716
22735
|
});
|
|
22717
22736
|
}
|
|
22718
22737
|
else if (status !== 200 && status !== 204) {
|
|
@@ -22723,11 +22742,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22723
22742
|
return Promise.resolve(null);
|
|
22724
22743
|
}
|
|
22725
22744
|
/**
|
|
22726
|
-
* Register
|
|
22727
|
-
* @deprecated
|
|
22745
|
+
* Register start work or setup on a workorder operation.
|
|
22728
22746
|
*/
|
|
22729
|
-
|
|
22730
|
-
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/
|
|
22747
|
+
startWorkorderOperationV2(id, operation, request) {
|
|
22748
|
+
let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/start";
|
|
22731
22749
|
if (id === undefined || id === null)
|
|
22732
22750
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22733
22751
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -22741,24 +22759,28 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22741
22759
|
method: "POST",
|
|
22742
22760
|
headers: {
|
|
22743
22761
|
"Content-Type": "application/json",
|
|
22762
|
+
"Accept": "application/json"
|
|
22744
22763
|
}
|
|
22745
22764
|
};
|
|
22746
22765
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22747
22766
|
return this.http.fetch(url_, transformedOptions_);
|
|
22748
22767
|
}).then((_response) => {
|
|
22749
|
-
return this.
|
|
22768
|
+
return this.processStartWorkorderOperationV2(_response);
|
|
22750
22769
|
});
|
|
22751
22770
|
}
|
|
22752
|
-
|
|
22771
|
+
processStartWorkorderOperationV2(response) {
|
|
22753
22772
|
const status = response.status;
|
|
22754
22773
|
let _headers = {};
|
|
22755
22774
|
if (response.headers && response.headers.forEach) {
|
|
22756
22775
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22757
22776
|
}
|
|
22758
22777
|
;
|
|
22759
|
-
if (status ===
|
|
22778
|
+
if (status === 200) {
|
|
22760
22779
|
return response.text().then((_responseText) => {
|
|
22761
|
-
|
|
22780
|
+
let result200 = null;
|
|
22781
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22782
|
+
result200 = WorkorderOperationEventDto.fromJS(resultData200);
|
|
22783
|
+
return result200;
|
|
22762
22784
|
});
|
|
22763
22785
|
}
|
|
22764
22786
|
else if (status !== 200 && status !== 204) {
|
|
@@ -22769,10 +22791,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22769
22791
|
return Promise.resolve(null);
|
|
22770
22792
|
}
|
|
22771
22793
|
/**
|
|
22772
|
-
* Register
|
|
22794
|
+
* Register end work or setup on a workorder operation.
|
|
22773
22795
|
*/
|
|
22774
|
-
|
|
22775
|
-
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/
|
|
22796
|
+
stopWorkorderOperationV2(id, operation, request) {
|
|
22797
|
+
let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/stop";
|
|
22776
22798
|
if (id === undefined || id === null)
|
|
22777
22799
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22778
22800
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -22792,108 +22814,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22792
22814
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22793
22815
|
return this.http.fetch(url_, transformedOptions_);
|
|
22794
22816
|
}).then((_response) => {
|
|
22795
|
-
return this.
|
|
22817
|
+
return this.processStopWorkorderOperationV2(_response);
|
|
22796
22818
|
});
|
|
22797
22819
|
}
|
|
22798
|
-
|
|
22799
|
-
const status = response.status;
|
|
22800
|
-
let _headers = {};
|
|
22801
|
-
if (response.headers && response.headers.forEach) {
|
|
22802
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22803
|
-
}
|
|
22804
|
-
;
|
|
22805
|
-
if (status === 200) {
|
|
22806
|
-
return response.text().then((_responseText) => {
|
|
22807
|
-
let result200 = null;
|
|
22808
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22809
|
-
result200 = WorkorderOperationEventDto.fromJS(resultData200);
|
|
22810
|
-
return result200;
|
|
22811
|
-
});
|
|
22812
|
-
}
|
|
22813
|
-
else if (status !== 200 && status !== 204) {
|
|
22814
|
-
return response.text().then((_responseText) => {
|
|
22815
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22816
|
-
});
|
|
22817
|
-
}
|
|
22818
|
-
return Promise.resolve(null);
|
|
22819
|
-
}
|
|
22820
|
-
/**
|
|
22821
|
-
* Register start work or setup on a workorder operation.
|
|
22822
|
-
*/
|
|
22823
|
-
startWorkorderOperationV2(id, operation, request) {
|
|
22824
|
-
let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/start";
|
|
22825
|
-
if (id === undefined || id === null)
|
|
22826
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22827
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22828
|
-
if (operation === undefined || operation === null)
|
|
22829
|
-
throw new globalThis.Error("The parameter 'operation' must be defined.");
|
|
22830
|
-
url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
|
|
22831
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22832
|
-
const content_ = JSON.stringify(request);
|
|
22833
|
-
let options_ = {
|
|
22834
|
-
body: content_,
|
|
22835
|
-
method: "POST",
|
|
22836
|
-
headers: {
|
|
22837
|
-
"Content-Type": "application/json",
|
|
22838
|
-
"Accept": "application/json"
|
|
22839
|
-
}
|
|
22840
|
-
};
|
|
22841
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22842
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22843
|
-
}).then((_response) => {
|
|
22844
|
-
return this.processStartWorkorderOperationV2(_response);
|
|
22845
|
-
});
|
|
22846
|
-
}
|
|
22847
|
-
processStartWorkorderOperationV2(response) {
|
|
22848
|
-
const status = response.status;
|
|
22849
|
-
let _headers = {};
|
|
22850
|
-
if (response.headers && response.headers.forEach) {
|
|
22851
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22852
|
-
}
|
|
22853
|
-
;
|
|
22854
|
-
if (status === 200) {
|
|
22855
|
-
return response.text().then((_responseText) => {
|
|
22856
|
-
let result200 = null;
|
|
22857
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22858
|
-
result200 = WorkorderOperationEventDto.fromJS(resultData200);
|
|
22859
|
-
return result200;
|
|
22860
|
-
});
|
|
22861
|
-
}
|
|
22862
|
-
else if (status !== 200 && status !== 204) {
|
|
22863
|
-
return response.text().then((_responseText) => {
|
|
22864
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22865
|
-
});
|
|
22866
|
-
}
|
|
22867
|
-
return Promise.resolve(null);
|
|
22868
|
-
}
|
|
22869
|
-
/**
|
|
22870
|
-
* Register end work or setup on a workorder operation.
|
|
22871
|
-
*/
|
|
22872
|
-
stopWorkorderOperationV2(id, operation, request) {
|
|
22873
|
-
let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/stop";
|
|
22874
|
-
if (id === undefined || id === null)
|
|
22875
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22876
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22877
|
-
if (operation === undefined || operation === null)
|
|
22878
|
-
throw new globalThis.Error("The parameter 'operation' must be defined.");
|
|
22879
|
-
url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
|
|
22880
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22881
|
-
const content_ = JSON.stringify(request);
|
|
22882
|
-
let options_ = {
|
|
22883
|
-
body: content_,
|
|
22884
|
-
method: "POST",
|
|
22885
|
-
headers: {
|
|
22886
|
-
"Content-Type": "application/json",
|
|
22887
|
-
"Accept": "application/json"
|
|
22888
|
-
}
|
|
22889
|
-
};
|
|
22890
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22891
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22892
|
-
}).then((_response) => {
|
|
22893
|
-
return this.processStopWorkorderOperationV2(_response);
|
|
22894
|
-
});
|
|
22895
|
-
}
|
|
22896
|
-
processStopWorkorderOperationV2(response) {
|
|
22820
|
+
processStopWorkorderOperationV2(response) {
|
|
22897
22821
|
const status = response.status;
|
|
22898
22822
|
let _headers = {};
|
|
22899
22823
|
if (response.headers && response.headers.forEach) {
|
|
@@ -22908,6 +22832,11 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22908
22832
|
return result200;
|
|
22909
22833
|
});
|
|
22910
22834
|
}
|
|
22835
|
+
else if (status === 204) {
|
|
22836
|
+
return response.text().then((_responseText) => {
|
|
22837
|
+
return throwException("A server side error occurred.", status, _responseText, _headers);
|
|
22838
|
+
});
|
|
22839
|
+
}
|
|
22911
22840
|
else if (status !== 200 && status !== 204) {
|
|
22912
22841
|
return response.text().then((_responseText) => {
|
|
22913
22842
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -44680,34 +44609,6 @@ export class AddResourceTypeForNeedsGenerator {
|
|
|
44680
44609
|
return data;
|
|
44681
44610
|
}
|
|
44682
44611
|
}
|
|
44683
|
-
export class MeasurementFrequencyDto {
|
|
44684
|
-
constructor(data) {
|
|
44685
|
-
if (data) {
|
|
44686
|
-
for (var property in data) {
|
|
44687
|
-
if (data.hasOwnProperty(property))
|
|
44688
|
-
this[property] = data[property];
|
|
44689
|
-
}
|
|
44690
|
-
}
|
|
44691
|
-
}
|
|
44692
|
-
init(_data) {
|
|
44693
|
-
if (_data) {
|
|
44694
|
-
this.id = _data["id"];
|
|
44695
|
-
this.name = _data["name"];
|
|
44696
|
-
}
|
|
44697
|
-
}
|
|
44698
|
-
static fromJS(data) {
|
|
44699
|
-
data = typeof data === 'object' ? data : {};
|
|
44700
|
-
let result = new MeasurementFrequencyDto();
|
|
44701
|
-
result.init(data);
|
|
44702
|
-
return result;
|
|
44703
|
-
}
|
|
44704
|
-
toJSON(data) {
|
|
44705
|
-
data = typeof data === 'object' ? data : {};
|
|
44706
|
-
data["id"] = this.id;
|
|
44707
|
-
data["name"] = this.name;
|
|
44708
|
-
return data;
|
|
44709
|
-
}
|
|
44710
|
-
}
|
|
44711
44612
|
export class PagedResultOfSchemaFeedbackDto {
|
|
44712
44613
|
constructor(data) {
|
|
44713
44614
|
if (data) {
|
|
@@ -44947,7 +44848,7 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
44947
44848
|
return data;
|
|
44948
44849
|
}
|
|
44949
44850
|
}
|
|
44950
|
-
export class
|
|
44851
|
+
export class MeasurementFrequencyDto {
|
|
44951
44852
|
constructor(data) {
|
|
44952
44853
|
if (data) {
|
|
44953
44854
|
for (var property in data) {
|
|
@@ -44955,38 +44856,27 @@ export class PagedResultOfMeasurementFormInstanceOverviewDto {
|
|
|
44955
44856
|
this[property] = data[property];
|
|
44956
44857
|
}
|
|
44957
44858
|
}
|
|
44958
|
-
if (!data) {
|
|
44959
|
-
this.results = [];
|
|
44960
|
-
}
|
|
44961
44859
|
}
|
|
44962
44860
|
init(_data) {
|
|
44963
44861
|
if (_data) {
|
|
44964
|
-
|
|
44965
|
-
|
|
44966
|
-
for (let item of _data["results"])
|
|
44967
|
-
this.results.push(MeasurementFormInstanceOverviewDto.fromJS(item));
|
|
44968
|
-
}
|
|
44969
|
-
this.continuationToken = _data["continuationToken"];
|
|
44862
|
+
this.id = _data["id"];
|
|
44863
|
+
this.name = _data["name"];
|
|
44970
44864
|
}
|
|
44971
44865
|
}
|
|
44972
44866
|
static fromJS(data) {
|
|
44973
44867
|
data = typeof data === 'object' ? data : {};
|
|
44974
|
-
let result = new
|
|
44868
|
+
let result = new MeasurementFrequencyDto();
|
|
44975
44869
|
result.init(data);
|
|
44976
44870
|
return result;
|
|
44977
44871
|
}
|
|
44978
44872
|
toJSON(data) {
|
|
44979
44873
|
data = typeof data === 'object' ? data : {};
|
|
44980
|
-
|
|
44981
|
-
|
|
44982
|
-
for (let item of this.results)
|
|
44983
|
-
data["results"].push(item ? item.toJSON() : undefined);
|
|
44984
|
-
}
|
|
44985
|
-
data["continuationToken"] = this.continuationToken;
|
|
44874
|
+
data["id"] = this.id;
|
|
44875
|
+
data["name"] = this.name;
|
|
44986
44876
|
return data;
|
|
44987
44877
|
}
|
|
44988
44878
|
}
|
|
44989
|
-
export class
|
|
44879
|
+
export class MeasurementFormInstanceDto {
|
|
44990
44880
|
constructor(data) {
|
|
44991
44881
|
if (data) {
|
|
44992
44882
|
for (var property in data) {
|
|
@@ -44996,6 +44886,8 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
44996
44886
|
}
|
|
44997
44887
|
if (!data) {
|
|
44998
44888
|
this.schemas = [];
|
|
44889
|
+
this.serialNumbers = [];
|
|
44890
|
+
this.suppliers = [];
|
|
44999
44891
|
this.progress = new MeasurementFormProgressDto();
|
|
45000
44892
|
}
|
|
45001
44893
|
}
|
|
@@ -45003,28 +44895,44 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
45003
44895
|
if (_data) {
|
|
45004
44896
|
this.id = _data["id"];
|
|
45005
44897
|
this.readonly = _data["readonly"];
|
|
45006
|
-
this.partName = _data["partName"];
|
|
45007
44898
|
this.partNumber = _data["partNumber"];
|
|
44899
|
+
this.partName = _data["partName"];
|
|
45008
44900
|
this.partRevision = _data["partRevision"];
|
|
45009
44901
|
this.drawing = _data["drawing"];
|
|
45010
44902
|
this.drawingRevision = _data["drawingRevision"];
|
|
45011
|
-
this.drawingUrl = _data["drawingUrl"];
|
|
45012
44903
|
this.customerId = _data["customerId"];
|
|
45013
44904
|
this.customerName = _data["customerName"];
|
|
45014
44905
|
this.quantity = _data["quantity"];
|
|
45015
44906
|
this.status = _data["status"];
|
|
44907
|
+
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
|
|
45016
44908
|
if (Array.isArray(_data["schemas"])) {
|
|
45017
44909
|
this.schemas = [];
|
|
45018
44910
|
for (let item of _data["schemas"])
|
|
45019
|
-
this.schemas.push(
|
|
44911
|
+
this.schemas.push(MeasurementFormWorkorderSchemaDto.fromJS(item));
|
|
44912
|
+
}
|
|
44913
|
+
if (Array.isArray(_data["sequences"])) {
|
|
44914
|
+
this.sequences = [];
|
|
44915
|
+
for (let item of _data["sequences"])
|
|
44916
|
+
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
44917
|
+
}
|
|
44918
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
44919
|
+
this.serialNumbers = [];
|
|
44920
|
+
for (let item of _data["serialNumbers"])
|
|
44921
|
+
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
44922
|
+
}
|
|
44923
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
44924
|
+
this.suppliers = [];
|
|
44925
|
+
for (let item of _data["suppliers"])
|
|
44926
|
+
this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
45020
44927
|
}
|
|
45021
|
-
this.supplierData = _data["supplierData"] ? MeasurementFormInstanceSupplierDto.fromJS(_data["supplierData"]) : undefined;
|
|
45022
44928
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
44929
|
+
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
44930
|
+
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined;
|
|
45023
44931
|
}
|
|
45024
44932
|
}
|
|
45025
44933
|
static fromJS(data) {
|
|
45026
44934
|
data = typeof data === 'object' ? data : {};
|
|
45027
|
-
let result = new
|
|
44935
|
+
let result = new MeasurementFormInstanceDto();
|
|
45028
44936
|
result.init(data);
|
|
45029
44937
|
return result;
|
|
45030
44938
|
}
|
|
@@ -45032,27 +44940,43 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
45032
44940
|
data = typeof data === 'object' ? data : {};
|
|
45033
44941
|
data["id"] = this.id;
|
|
45034
44942
|
data["readonly"] = this.readonly;
|
|
45035
|
-
data["partName"] = this.partName;
|
|
45036
44943
|
data["partNumber"] = this.partNumber;
|
|
44944
|
+
data["partName"] = this.partName;
|
|
45037
44945
|
data["partRevision"] = this.partRevision;
|
|
45038
44946
|
data["drawing"] = this.drawing;
|
|
45039
44947
|
data["drawingRevision"] = this.drawingRevision;
|
|
45040
|
-
data["drawingUrl"] = this.drawingUrl;
|
|
45041
44948
|
data["customerId"] = this.customerId;
|
|
45042
44949
|
data["customerName"] = this.customerName;
|
|
45043
44950
|
data["quantity"] = this.quantity;
|
|
45044
44951
|
data["status"] = this.status;
|
|
44952
|
+
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
|
|
45045
44953
|
if (Array.isArray(this.schemas)) {
|
|
45046
44954
|
data["schemas"] = [];
|
|
45047
44955
|
for (let item of this.schemas)
|
|
45048
44956
|
data["schemas"].push(item ? item.toJSON() : undefined);
|
|
45049
44957
|
}
|
|
45050
|
-
|
|
44958
|
+
if (Array.isArray(this.sequences)) {
|
|
44959
|
+
data["sequences"] = [];
|
|
44960
|
+
for (let item of this.sequences)
|
|
44961
|
+
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
44962
|
+
}
|
|
44963
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
44964
|
+
data["serialNumbers"] = [];
|
|
44965
|
+
for (let item of this.serialNumbers)
|
|
44966
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
44967
|
+
}
|
|
44968
|
+
if (Array.isArray(this.suppliers)) {
|
|
44969
|
+
data["suppliers"] = [];
|
|
44970
|
+
for (let item of this.suppliers)
|
|
44971
|
+
data["suppliers"].push(item ? item.toJSON() : undefined);
|
|
44972
|
+
}
|
|
45051
44973
|
data["progress"] = this.progress ? this.progress.toJSON() : undefined;
|
|
44974
|
+
data["approvedReportUrl"] = this.approvedReportUrl;
|
|
44975
|
+
data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : undefined;
|
|
45052
44976
|
return data;
|
|
45053
44977
|
}
|
|
45054
44978
|
}
|
|
45055
|
-
export class
|
|
44979
|
+
export class MeasurementFormWorkorderSchemaDto {
|
|
45056
44980
|
constructor(data) {
|
|
45057
44981
|
if (data) {
|
|
45058
44982
|
for (var property in data) {
|
|
@@ -45060,25 +44984,50 @@ export class MeasurementFormInstanceSchemaOverviewDto {
|
|
|
45060
44984
|
this[property] = data[property];
|
|
45061
44985
|
}
|
|
45062
44986
|
}
|
|
44987
|
+
if (!data) {
|
|
44988
|
+
this.progress = new MeasurementFormProgressDto();
|
|
44989
|
+
}
|
|
45063
44990
|
}
|
|
45064
44991
|
init(_data) {
|
|
45065
44992
|
if (_data) {
|
|
45066
44993
|
this.id = _data["id"];
|
|
44994
|
+
this.partNumber = _data["partNumber"];
|
|
44995
|
+
this.partRevision = _data["partRevision"];
|
|
44996
|
+
this.drawing = _data["drawing"];
|
|
44997
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
44998
|
+
this.customerId = _data["customerId"];
|
|
44999
|
+
this.drawingUrl = _data["drawingUrl"];
|
|
45000
|
+
this.markedDrawingUrl = _data["markedDrawingUrl"];
|
|
45001
|
+
this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
|
|
45002
|
+
this.versionId = _data["versionId"];
|
|
45003
|
+
this.specification = _data["specification"];
|
|
45004
|
+
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
45067
45005
|
}
|
|
45068
45006
|
}
|
|
45069
45007
|
static fromJS(data) {
|
|
45070
45008
|
data = typeof data === 'object' ? data : {};
|
|
45071
|
-
let result = new
|
|
45009
|
+
let result = new MeasurementFormWorkorderSchemaDto();
|
|
45072
45010
|
result.init(data);
|
|
45073
45011
|
return result;
|
|
45074
45012
|
}
|
|
45075
45013
|
toJSON(data) {
|
|
45076
45014
|
data = typeof data === 'object' ? data : {};
|
|
45077
45015
|
data["id"] = this.id;
|
|
45016
|
+
data["partNumber"] = this.partNumber;
|
|
45017
|
+
data["partRevision"] = this.partRevision;
|
|
45018
|
+
data["drawing"] = this.drawing;
|
|
45019
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
45020
|
+
data["customerId"] = this.customerId;
|
|
45021
|
+
data["drawingUrl"] = this.drawingUrl;
|
|
45022
|
+
data["markedDrawingUrl"] = this.markedDrawingUrl;
|
|
45023
|
+
data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
|
|
45024
|
+
data["versionId"] = this.versionId;
|
|
45025
|
+
data["specification"] = this.specification;
|
|
45026
|
+
data["progress"] = this.progress ? this.progress.toJSON() : undefined;
|
|
45078
45027
|
return data;
|
|
45079
45028
|
}
|
|
45080
45029
|
}
|
|
45081
|
-
export class
|
|
45030
|
+
export class MeasurementFormProgressDto {
|
|
45082
45031
|
constructor(data) {
|
|
45083
45032
|
if (data) {
|
|
45084
45033
|
for (var property in data) {
|
|
@@ -45089,32 +45038,28 @@ export class MeasurementFormInstanceSupplierDto {
|
|
|
45089
45038
|
}
|
|
45090
45039
|
init(_data) {
|
|
45091
45040
|
if (_data) {
|
|
45092
|
-
this.
|
|
45093
|
-
this.
|
|
45094
|
-
this.
|
|
45095
|
-
this.
|
|
45096
|
-
this.procurementLine = _data["procurementLine"];
|
|
45097
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45041
|
+
this.id = _data["id"];
|
|
45042
|
+
this.requiredValues = _data["requiredValues"];
|
|
45043
|
+
this.values = _data["values"];
|
|
45044
|
+
this.progress = _data["progress"];
|
|
45098
45045
|
}
|
|
45099
45046
|
}
|
|
45100
45047
|
static fromJS(data) {
|
|
45101
45048
|
data = typeof data === 'object' ? data : {};
|
|
45102
|
-
let result = new
|
|
45049
|
+
let result = new MeasurementFormProgressDto();
|
|
45103
45050
|
result.init(data);
|
|
45104
45051
|
return result;
|
|
45105
45052
|
}
|
|
45106
45053
|
toJSON(data) {
|
|
45107
45054
|
data = typeof data === 'object' ? data : {};
|
|
45108
|
-
data["
|
|
45109
|
-
data["
|
|
45110
|
-
data["
|
|
45111
|
-
data["
|
|
45112
|
-
data["procurementLine"] = this.procurementLine;
|
|
45113
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45055
|
+
data["id"] = this.id;
|
|
45056
|
+
data["requiredValues"] = this.requiredValues;
|
|
45057
|
+
data["values"] = this.values;
|
|
45058
|
+
data["progress"] = this.progress;
|
|
45114
45059
|
return data;
|
|
45115
45060
|
}
|
|
45116
45061
|
}
|
|
45117
|
-
export class
|
|
45062
|
+
export class MeasurementFormWorkorderSequenceDto {
|
|
45118
45063
|
constructor(data) {
|
|
45119
45064
|
if (data) {
|
|
45120
45065
|
for (var property in data) {
|
|
@@ -45125,28 +45070,26 @@ export class MeasurementFormProgressDto {
|
|
|
45125
45070
|
}
|
|
45126
45071
|
init(_data) {
|
|
45127
45072
|
if (_data) {
|
|
45128
|
-
this.
|
|
45129
|
-
this.
|
|
45130
|
-
this.
|
|
45131
|
-
this.progress = _data["progress"];
|
|
45073
|
+
this.lot = _data["lot"];
|
|
45074
|
+
this.sequence = _data["sequence"];
|
|
45075
|
+
this.serialNumber = _data["serialNumber"];
|
|
45132
45076
|
}
|
|
45133
45077
|
}
|
|
45134
45078
|
static fromJS(data) {
|
|
45135
45079
|
data = typeof data === 'object' ? data : {};
|
|
45136
|
-
let result = new
|
|
45080
|
+
let result = new MeasurementFormWorkorderSequenceDto();
|
|
45137
45081
|
result.init(data);
|
|
45138
45082
|
return result;
|
|
45139
45083
|
}
|
|
45140
45084
|
toJSON(data) {
|
|
45141
45085
|
data = typeof data === 'object' ? data : {};
|
|
45142
|
-
data["
|
|
45143
|
-
data["
|
|
45144
|
-
data["
|
|
45145
|
-
data["progress"] = this.progress;
|
|
45086
|
+
data["lot"] = this.lot;
|
|
45087
|
+
data["sequence"] = this.sequence;
|
|
45088
|
+
data["serialNumber"] = this.serialNumber;
|
|
45146
45089
|
return data;
|
|
45147
45090
|
}
|
|
45148
45091
|
}
|
|
45149
|
-
export class
|
|
45092
|
+
export class MeasurementFormWorkorderSerialNumberDto {
|
|
45150
45093
|
constructor(data) {
|
|
45151
45094
|
if (data) {
|
|
45152
45095
|
for (var property in data) {
|
|
@@ -45157,32 +45100,62 @@ export class ListMeasurementFormsRequest {
|
|
|
45157
45100
|
}
|
|
45158
45101
|
init(_data) {
|
|
45159
45102
|
if (_data) {
|
|
45160
|
-
this.
|
|
45161
|
-
this.
|
|
45162
|
-
this.
|
|
45163
|
-
this.tenantId = _data["tenantId"];
|
|
45164
|
-
this.inactive = _data["inactive"];
|
|
45165
|
-
this.includeInactiveSupplierAccess = _data["includeInactiveSupplierAccess"];
|
|
45103
|
+
this.lot = _data["lot"];
|
|
45104
|
+
this.serialNumber = _data["serialNumber"];
|
|
45105
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
45166
45106
|
}
|
|
45167
45107
|
}
|
|
45168
45108
|
static fromJS(data) {
|
|
45169
45109
|
data = typeof data === 'object' ? data : {};
|
|
45170
|
-
let result = new
|
|
45110
|
+
let result = new MeasurementFormWorkorderSerialNumberDto();
|
|
45171
45111
|
result.init(data);
|
|
45172
45112
|
return result;
|
|
45173
45113
|
}
|
|
45174
45114
|
toJSON(data) {
|
|
45175
45115
|
data = typeof data === 'object' ? data : {};
|
|
45176
|
-
data["
|
|
45177
|
-
data["
|
|
45178
|
-
data["
|
|
45179
|
-
data["tenantId"] = this.tenantId;
|
|
45180
|
-
data["inactive"] = this.inactive;
|
|
45181
|
-
data["includeInactiveSupplierAccess"] = this.includeInactiveSupplierAccess;
|
|
45116
|
+
data["lot"] = this.lot;
|
|
45117
|
+
data["serialNumber"] = this.serialNumber;
|
|
45118
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
45182
45119
|
return data;
|
|
45183
45120
|
}
|
|
45184
45121
|
}
|
|
45185
|
-
export class
|
|
45122
|
+
export class MeasurementFormWorkorderSupplierDto {
|
|
45123
|
+
constructor(data) {
|
|
45124
|
+
if (data) {
|
|
45125
|
+
for (var property in data) {
|
|
45126
|
+
if (data.hasOwnProperty(property))
|
|
45127
|
+
this[property] = data[property];
|
|
45128
|
+
}
|
|
45129
|
+
}
|
|
45130
|
+
}
|
|
45131
|
+
init(_data) {
|
|
45132
|
+
if (_data) {
|
|
45133
|
+
this.supplierId = _data["supplierId"];
|
|
45134
|
+
this.supplierName = _data["supplierName"];
|
|
45135
|
+
this.available = _data["available"];
|
|
45136
|
+
this.procurementOrder = _data["procurementOrder"];
|
|
45137
|
+
this.procurementLine = _data["procurementLine"];
|
|
45138
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45139
|
+
}
|
|
45140
|
+
}
|
|
45141
|
+
static fromJS(data) {
|
|
45142
|
+
data = typeof data === 'object' ? data : {};
|
|
45143
|
+
let result = new MeasurementFormWorkorderSupplierDto();
|
|
45144
|
+
result.init(data);
|
|
45145
|
+
return result;
|
|
45146
|
+
}
|
|
45147
|
+
toJSON(data) {
|
|
45148
|
+
data = typeof data === 'object' ? data : {};
|
|
45149
|
+
data["supplierId"] = this.supplierId;
|
|
45150
|
+
data["supplierName"] = this.supplierName;
|
|
45151
|
+
data["available"] = this.available;
|
|
45152
|
+
data["procurementOrder"] = this.procurementOrder;
|
|
45153
|
+
data["procurementLine"] = this.procurementLine;
|
|
45154
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45155
|
+
return data;
|
|
45156
|
+
}
|
|
45157
|
+
}
|
|
45158
|
+
export class PagedResultOfMeasurementFormInstanceOverviewDto {
|
|
45186
45159
|
constructor(data) {
|
|
45187
45160
|
if (data) {
|
|
45188
45161
|
for (var property in data) {
|
|
@@ -45199,14 +45172,14 @@ export class PagedResultOfMeasurementFormInstanceDto {
|
|
|
45199
45172
|
if (Array.isArray(_data["results"])) {
|
|
45200
45173
|
this.results = [];
|
|
45201
45174
|
for (let item of _data["results"])
|
|
45202
|
-
this.results.push(
|
|
45175
|
+
this.results.push(MeasurementFormInstanceOverviewDto.fromJS(item));
|
|
45203
45176
|
}
|
|
45204
45177
|
this.continuationToken = _data["continuationToken"];
|
|
45205
45178
|
}
|
|
45206
45179
|
}
|
|
45207
45180
|
static fromJS(data) {
|
|
45208
45181
|
data = typeof data === 'object' ? data : {};
|
|
45209
|
-
let result = new
|
|
45182
|
+
let result = new PagedResultOfMeasurementFormInstanceOverviewDto();
|
|
45210
45183
|
result.init(data);
|
|
45211
45184
|
return result;
|
|
45212
45185
|
}
|
|
@@ -45221,7 +45194,7 @@ export class PagedResultOfMeasurementFormInstanceDto {
|
|
|
45221
45194
|
return data;
|
|
45222
45195
|
}
|
|
45223
45196
|
}
|
|
45224
|
-
export class
|
|
45197
|
+
export class MeasurementFormInstanceOverviewDto {
|
|
45225
45198
|
constructor(data) {
|
|
45226
45199
|
if (data) {
|
|
45227
45200
|
for (var property in data) {
|
|
@@ -45231,8 +45204,6 @@ export class MeasurementFormInstanceDto {
|
|
|
45231
45204
|
}
|
|
45232
45205
|
if (!data) {
|
|
45233
45206
|
this.schemas = [];
|
|
45234
|
-
this.serialNumbers = [];
|
|
45235
|
-
this.suppliers = [];
|
|
45236
45207
|
this.progress = new MeasurementFormProgressDto();
|
|
45237
45208
|
}
|
|
45238
45209
|
}
|
|
@@ -45240,44 +45211,28 @@ export class MeasurementFormInstanceDto {
|
|
|
45240
45211
|
if (_data) {
|
|
45241
45212
|
this.id = _data["id"];
|
|
45242
45213
|
this.readonly = _data["readonly"];
|
|
45243
|
-
this.partNumber = _data["partNumber"];
|
|
45244
45214
|
this.partName = _data["partName"];
|
|
45215
|
+
this.partNumber = _data["partNumber"];
|
|
45245
45216
|
this.partRevision = _data["partRevision"];
|
|
45246
45217
|
this.drawing = _data["drawing"];
|
|
45247
45218
|
this.drawingRevision = _data["drawingRevision"];
|
|
45219
|
+
this.drawingUrl = _data["drawingUrl"];
|
|
45248
45220
|
this.customerId = _data["customerId"];
|
|
45249
45221
|
this.customerName = _data["customerName"];
|
|
45250
45222
|
this.quantity = _data["quantity"];
|
|
45251
45223
|
this.status = _data["status"];
|
|
45252
|
-
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
|
|
45253
45224
|
if (Array.isArray(_data["schemas"])) {
|
|
45254
45225
|
this.schemas = [];
|
|
45255
45226
|
for (let item of _data["schemas"])
|
|
45256
|
-
this.schemas.push(
|
|
45257
|
-
}
|
|
45258
|
-
if (Array.isArray(_data["sequences"])) {
|
|
45259
|
-
this.sequences = [];
|
|
45260
|
-
for (let item of _data["sequences"])
|
|
45261
|
-
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
45262
|
-
}
|
|
45263
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
45264
|
-
this.serialNumbers = [];
|
|
45265
|
-
for (let item of _data["serialNumbers"])
|
|
45266
|
-
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
45267
|
-
}
|
|
45268
|
-
if (Array.isArray(_data["suppliers"])) {
|
|
45269
|
-
this.suppliers = [];
|
|
45270
|
-
for (let item of _data["suppliers"])
|
|
45271
|
-
this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
45227
|
+
this.schemas.push(MeasurementFormInstanceSchemaOverviewDto.fromJS(item));
|
|
45272
45228
|
}
|
|
45229
|
+
this.supplierData = _data["supplierData"] ? MeasurementFormInstanceSupplierDto.fromJS(_data["supplierData"]) : undefined;
|
|
45273
45230
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
45274
|
-
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
45275
|
-
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined;
|
|
45276
45231
|
}
|
|
45277
45232
|
}
|
|
45278
45233
|
static fromJS(data) {
|
|
45279
45234
|
data = typeof data === 'object' ? data : {};
|
|
45280
|
-
let result = new
|
|
45235
|
+
let result = new MeasurementFormInstanceOverviewDto();
|
|
45281
45236
|
result.init(data);
|
|
45282
45237
|
return result;
|
|
45283
45238
|
}
|
|
@@ -45285,43 +45240,27 @@ export class MeasurementFormInstanceDto {
|
|
|
45285
45240
|
data = typeof data === 'object' ? data : {};
|
|
45286
45241
|
data["id"] = this.id;
|
|
45287
45242
|
data["readonly"] = this.readonly;
|
|
45288
|
-
data["partNumber"] = this.partNumber;
|
|
45289
45243
|
data["partName"] = this.partName;
|
|
45244
|
+
data["partNumber"] = this.partNumber;
|
|
45290
45245
|
data["partRevision"] = this.partRevision;
|
|
45291
45246
|
data["drawing"] = this.drawing;
|
|
45292
45247
|
data["drawingRevision"] = this.drawingRevision;
|
|
45248
|
+
data["drawingUrl"] = this.drawingUrl;
|
|
45293
45249
|
data["customerId"] = this.customerId;
|
|
45294
45250
|
data["customerName"] = this.customerName;
|
|
45295
45251
|
data["quantity"] = this.quantity;
|
|
45296
45252
|
data["status"] = this.status;
|
|
45297
|
-
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
|
|
45298
45253
|
if (Array.isArray(this.schemas)) {
|
|
45299
45254
|
data["schemas"] = [];
|
|
45300
45255
|
for (let item of this.schemas)
|
|
45301
45256
|
data["schemas"].push(item ? item.toJSON() : undefined);
|
|
45302
45257
|
}
|
|
45303
|
-
|
|
45304
|
-
data["sequences"] = [];
|
|
45305
|
-
for (let item of this.sequences)
|
|
45306
|
-
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
45307
|
-
}
|
|
45308
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
45309
|
-
data["serialNumbers"] = [];
|
|
45310
|
-
for (let item of this.serialNumbers)
|
|
45311
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
45312
|
-
}
|
|
45313
|
-
if (Array.isArray(this.suppliers)) {
|
|
45314
|
-
data["suppliers"] = [];
|
|
45315
|
-
for (let item of this.suppliers)
|
|
45316
|
-
data["suppliers"].push(item ? item.toJSON() : undefined);
|
|
45317
|
-
}
|
|
45258
|
+
data["supplierData"] = this.supplierData ? this.supplierData.toJSON() : undefined;
|
|
45318
45259
|
data["progress"] = this.progress ? this.progress.toJSON() : undefined;
|
|
45319
|
-
data["approvedReportUrl"] = this.approvedReportUrl;
|
|
45320
|
-
data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : undefined;
|
|
45321
45260
|
return data;
|
|
45322
45261
|
}
|
|
45323
45262
|
}
|
|
45324
|
-
export class
|
|
45263
|
+
export class MeasurementFormInstanceSchemaOverviewDto {
|
|
45325
45264
|
constructor(data) {
|
|
45326
45265
|
if (data) {
|
|
45327
45266
|
for (var property in data) {
|
|
@@ -45329,50 +45268,25 @@ export class MeasurementFormWorkorderSchemaDto {
|
|
|
45329
45268
|
this[property] = data[property];
|
|
45330
45269
|
}
|
|
45331
45270
|
}
|
|
45332
|
-
if (!data) {
|
|
45333
|
-
this.progress = new MeasurementFormProgressDto();
|
|
45334
|
-
}
|
|
45335
45271
|
}
|
|
45336
45272
|
init(_data) {
|
|
45337
45273
|
if (_data) {
|
|
45338
45274
|
this.id = _data["id"];
|
|
45339
|
-
this.partNumber = _data["partNumber"];
|
|
45340
|
-
this.partRevision = _data["partRevision"];
|
|
45341
|
-
this.drawing = _data["drawing"];
|
|
45342
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
45343
|
-
this.customerId = _data["customerId"];
|
|
45344
|
-
this.drawingUrl = _data["drawingUrl"];
|
|
45345
|
-
this.markedDrawingUrl = _data["markedDrawingUrl"];
|
|
45346
|
-
this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
|
|
45347
|
-
this.versionId = _data["versionId"];
|
|
45348
|
-
this.specification = _data["specification"];
|
|
45349
|
-
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
45350
45275
|
}
|
|
45351
45276
|
}
|
|
45352
45277
|
static fromJS(data) {
|
|
45353
45278
|
data = typeof data === 'object' ? data : {};
|
|
45354
|
-
let result = new
|
|
45279
|
+
let result = new MeasurementFormInstanceSchemaOverviewDto();
|
|
45355
45280
|
result.init(data);
|
|
45356
45281
|
return result;
|
|
45357
45282
|
}
|
|
45358
45283
|
toJSON(data) {
|
|
45359
45284
|
data = typeof data === 'object' ? data : {};
|
|
45360
45285
|
data["id"] = this.id;
|
|
45361
|
-
data["partNumber"] = this.partNumber;
|
|
45362
|
-
data["partRevision"] = this.partRevision;
|
|
45363
|
-
data["drawing"] = this.drawing;
|
|
45364
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
45365
|
-
data["customerId"] = this.customerId;
|
|
45366
|
-
data["drawingUrl"] = this.drawingUrl;
|
|
45367
|
-
data["markedDrawingUrl"] = this.markedDrawingUrl;
|
|
45368
|
-
data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
|
|
45369
|
-
data["versionId"] = this.versionId;
|
|
45370
|
-
data["specification"] = this.specification;
|
|
45371
|
-
data["progress"] = this.progress ? this.progress.toJSON() : undefined;
|
|
45372
45286
|
return data;
|
|
45373
45287
|
}
|
|
45374
45288
|
}
|
|
45375
|
-
export class
|
|
45289
|
+
export class MeasurementFormInstanceSupplierDto {
|
|
45376
45290
|
constructor(data) {
|
|
45377
45291
|
if (data) {
|
|
45378
45292
|
for (var property in data) {
|
|
@@ -45383,26 +45297,32 @@ export class MeasurementFormWorkorderSequenceDto {
|
|
|
45383
45297
|
}
|
|
45384
45298
|
init(_data) {
|
|
45385
45299
|
if (_data) {
|
|
45386
|
-
this.
|
|
45387
|
-
this.
|
|
45388
|
-
this.
|
|
45300
|
+
this.supplierId = _data["supplierId"];
|
|
45301
|
+
this.supplierName = _data["supplierName"];
|
|
45302
|
+
this.available = _data["available"];
|
|
45303
|
+
this.procurementOrder = _data["procurementOrder"];
|
|
45304
|
+
this.procurementLine = _data["procurementLine"];
|
|
45305
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45389
45306
|
}
|
|
45390
45307
|
}
|
|
45391
45308
|
static fromJS(data) {
|
|
45392
45309
|
data = typeof data === 'object' ? data : {};
|
|
45393
|
-
let result = new
|
|
45310
|
+
let result = new MeasurementFormInstanceSupplierDto();
|
|
45394
45311
|
result.init(data);
|
|
45395
45312
|
return result;
|
|
45396
45313
|
}
|
|
45397
45314
|
toJSON(data) {
|
|
45398
45315
|
data = typeof data === 'object' ? data : {};
|
|
45399
|
-
data["
|
|
45400
|
-
data["
|
|
45401
|
-
data["
|
|
45316
|
+
data["supplierId"] = this.supplierId;
|
|
45317
|
+
data["supplierName"] = this.supplierName;
|
|
45318
|
+
data["available"] = this.available;
|
|
45319
|
+
data["procurementOrder"] = this.procurementOrder;
|
|
45320
|
+
data["procurementLine"] = this.procurementLine;
|
|
45321
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45402
45322
|
return data;
|
|
45403
45323
|
}
|
|
45404
45324
|
}
|
|
45405
|
-
export class
|
|
45325
|
+
export class ListMeasurementFormsRequest {
|
|
45406
45326
|
constructor(data) {
|
|
45407
45327
|
if (data) {
|
|
45408
45328
|
for (var property in data) {
|
|
@@ -45413,26 +45333,32 @@ export class MeasurementFormWorkorderSerialNumberDto {
|
|
|
45413
45333
|
}
|
|
45414
45334
|
init(_data) {
|
|
45415
45335
|
if (_data) {
|
|
45416
|
-
this.
|
|
45417
|
-
this.
|
|
45418
|
-
this.
|
|
45336
|
+
this.pageSize = _data["pageSize"];
|
|
45337
|
+
this.search = _data["search"];
|
|
45338
|
+
this.continuationToken = _data["continuationToken"];
|
|
45339
|
+
this.tenantId = _data["tenantId"];
|
|
45340
|
+
this.inactive = _data["inactive"];
|
|
45341
|
+
this.includeInactiveSupplierAccess = _data["includeInactiveSupplierAccess"];
|
|
45419
45342
|
}
|
|
45420
45343
|
}
|
|
45421
45344
|
static fromJS(data) {
|
|
45422
45345
|
data = typeof data === 'object' ? data : {};
|
|
45423
|
-
let result = new
|
|
45346
|
+
let result = new ListMeasurementFormsRequest();
|
|
45424
45347
|
result.init(data);
|
|
45425
45348
|
return result;
|
|
45426
45349
|
}
|
|
45427
45350
|
toJSON(data) {
|
|
45428
45351
|
data = typeof data === 'object' ? data : {};
|
|
45429
|
-
data["
|
|
45430
|
-
data["
|
|
45431
|
-
data["
|
|
45352
|
+
data["pageSize"] = this.pageSize;
|
|
45353
|
+
data["search"] = this.search;
|
|
45354
|
+
data["continuationToken"] = this.continuationToken;
|
|
45355
|
+
data["tenantId"] = this.tenantId;
|
|
45356
|
+
data["inactive"] = this.inactive;
|
|
45357
|
+
data["includeInactiveSupplierAccess"] = this.includeInactiveSupplierAccess;
|
|
45432
45358
|
return data;
|
|
45433
45359
|
}
|
|
45434
45360
|
}
|
|
45435
|
-
export class
|
|
45361
|
+
export class MeasurementFormInstanceFeedbackDto {
|
|
45436
45362
|
constructor(data) {
|
|
45437
45363
|
if (data) {
|
|
45438
45364
|
for (var property in data) {
|
|
@@ -45443,32 +45369,40 @@ export class MeasurementFormWorkorderSupplierDto {
|
|
|
45443
45369
|
}
|
|
45444
45370
|
init(_data) {
|
|
45445
45371
|
if (_data) {
|
|
45446
|
-
this.
|
|
45447
|
-
this.
|
|
45448
|
-
this.
|
|
45449
|
-
this.
|
|
45450
|
-
this.
|
|
45451
|
-
this.
|
|
45372
|
+
this.id = _data["id"];
|
|
45373
|
+
this.workOrder = _data["workOrder"];
|
|
45374
|
+
this.schemaId = _data["schemaId"];
|
|
45375
|
+
this.versionId = _data["versionId"];
|
|
45376
|
+
this.schemaInstanceId = _data["schemaInstanceId"];
|
|
45377
|
+
this.balloonId = _data["balloonId"];
|
|
45378
|
+
this.reference = _data["reference"];
|
|
45379
|
+
this.feedback = _data["feedback"];
|
|
45380
|
+
this.from = _data["from"];
|
|
45381
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
45452
45382
|
}
|
|
45453
45383
|
}
|
|
45454
45384
|
static fromJS(data) {
|
|
45455
45385
|
data = typeof data === 'object' ? data : {};
|
|
45456
|
-
let result = new
|
|
45386
|
+
let result = new MeasurementFormInstanceFeedbackDto();
|
|
45457
45387
|
result.init(data);
|
|
45458
45388
|
return result;
|
|
45459
45389
|
}
|
|
45460
45390
|
toJSON(data) {
|
|
45461
45391
|
data = typeof data === 'object' ? data : {};
|
|
45462
|
-
data["
|
|
45463
|
-
data["
|
|
45464
|
-
data["
|
|
45465
|
-
data["
|
|
45466
|
-
data["
|
|
45467
|
-
data["
|
|
45392
|
+
data["id"] = this.id;
|
|
45393
|
+
data["workOrder"] = this.workOrder;
|
|
45394
|
+
data["schemaId"] = this.schemaId;
|
|
45395
|
+
data["versionId"] = this.versionId;
|
|
45396
|
+
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
45397
|
+
data["balloonId"] = this.balloonId;
|
|
45398
|
+
data["reference"] = this.reference;
|
|
45399
|
+
data["feedback"] = this.feedback;
|
|
45400
|
+
data["from"] = this.from;
|
|
45401
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
45468
45402
|
return data;
|
|
45469
45403
|
}
|
|
45470
45404
|
}
|
|
45471
|
-
export class
|
|
45405
|
+
export class MeasurementFormInstanceSchemaDto {
|
|
45472
45406
|
constructor(data) {
|
|
45473
45407
|
if (data) {
|
|
45474
45408
|
for (var property in data) {
|
|
@@ -45477,35 +45411,39 @@ export class DeleteMeasurementFormsInstancesBulkRequest {
|
|
|
45477
45411
|
}
|
|
45478
45412
|
}
|
|
45479
45413
|
if (!data) {
|
|
45480
|
-
this.
|
|
45414
|
+
this.elements = [];
|
|
45481
45415
|
}
|
|
45482
45416
|
}
|
|
45483
45417
|
init(_data) {
|
|
45484
45418
|
if (_data) {
|
|
45485
|
-
if (Array.isArray(_data["
|
|
45486
|
-
this.
|
|
45487
|
-
for (let item of _data["
|
|
45488
|
-
this.
|
|
45419
|
+
if (Array.isArray(_data["elements"])) {
|
|
45420
|
+
this.elements = [];
|
|
45421
|
+
for (let item of _data["elements"])
|
|
45422
|
+
this.elements.push(MeasurementFormInstanceElementDto.fromJS(item));
|
|
45489
45423
|
}
|
|
45424
|
+
this.isCompleted = _data["isCompleted"];
|
|
45425
|
+
this.comment = _data["comment"];
|
|
45490
45426
|
}
|
|
45491
45427
|
}
|
|
45492
45428
|
static fromJS(data) {
|
|
45493
45429
|
data = typeof data === 'object' ? data : {};
|
|
45494
|
-
let result = new
|
|
45430
|
+
let result = new MeasurementFormInstanceSchemaDto();
|
|
45495
45431
|
result.init(data);
|
|
45496
45432
|
return result;
|
|
45497
45433
|
}
|
|
45498
45434
|
toJSON(data) {
|
|
45499
45435
|
data = typeof data === 'object' ? data : {};
|
|
45500
|
-
if (Array.isArray(this.
|
|
45501
|
-
data["
|
|
45502
|
-
for (let item of this.
|
|
45503
|
-
data["
|
|
45436
|
+
if (Array.isArray(this.elements)) {
|
|
45437
|
+
data["elements"] = [];
|
|
45438
|
+
for (let item of this.elements)
|
|
45439
|
+
data["elements"].push(item ? item.toJSON() : undefined);
|
|
45504
45440
|
}
|
|
45441
|
+
data["isCompleted"] = this.isCompleted;
|
|
45442
|
+
data["comment"] = this.comment;
|
|
45505
45443
|
return data;
|
|
45506
45444
|
}
|
|
45507
45445
|
}
|
|
45508
|
-
export class
|
|
45446
|
+
export class MeasurementFormInstanceElementDto {
|
|
45509
45447
|
constructor(data) {
|
|
45510
45448
|
if (data) {
|
|
45511
45449
|
for (var property in data) {
|
|
@@ -45513,35 +45451,122 @@ export class ListMeasurementFormsByStatusRequest {
|
|
|
45513
45451
|
this[property] = data[property];
|
|
45514
45452
|
}
|
|
45515
45453
|
}
|
|
45454
|
+
if (!data) {
|
|
45455
|
+
this.values = [];
|
|
45456
|
+
}
|
|
45516
45457
|
}
|
|
45517
45458
|
init(_data) {
|
|
45518
45459
|
if (_data) {
|
|
45519
|
-
this.
|
|
45520
|
-
this.
|
|
45521
|
-
this.
|
|
45522
|
-
this.
|
|
45523
|
-
this.
|
|
45524
|
-
this.
|
|
45460
|
+
this.id = _data["id"];
|
|
45461
|
+
this.imageUrl = _data["imageUrl"];
|
|
45462
|
+
this.thumbnailUrl = _data["thumbnailUrl"];
|
|
45463
|
+
this.balloonId = _data["balloonId"];
|
|
45464
|
+
this.reference = _data["reference"];
|
|
45465
|
+
this.section = _data["section"];
|
|
45466
|
+
this.pageNumber = _data["pageNumber"];
|
|
45467
|
+
this.sheetZone = _data["sheetZone"];
|
|
45468
|
+
this.completed = _data["completed"];
|
|
45469
|
+
this.places = _data["places"];
|
|
45470
|
+
this.nominal = _data["nominal"];
|
|
45471
|
+
this.type = _data["type"];
|
|
45472
|
+
this.subType = _data["subType"];
|
|
45473
|
+
this.unitOfMeasure = _data["unitOfMeasure"];
|
|
45474
|
+
this.typeCharacter = _data["typeCharacter"];
|
|
45475
|
+
this.upperLimit = _data["upperLimit"];
|
|
45476
|
+
this.lowerLimit = _data["lowerLimit"];
|
|
45477
|
+
this.comments = _data["comments"];
|
|
45478
|
+
this.updatedByUser = _data["updatedByUser"];
|
|
45479
|
+
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
45480
|
+
this.createdByUser = _data["createdByUser"];
|
|
45481
|
+
this.createdDate = _data["createdDate"] ? new Date(_data["createdDate"].toString()) : undefined;
|
|
45482
|
+
this.frequency = _data["frequency"];
|
|
45483
|
+
this.frequencyParameter = _data["frequencyParameter"];
|
|
45484
|
+
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
45485
|
+
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
45486
|
+
this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
|
|
45487
|
+
this.balloonSequence = _data["balloonSequence"];
|
|
45488
|
+
this.referenceIndex = _data["referenceIndex"];
|
|
45489
|
+
this.balloonQuantity = _data["balloonQuantity"];
|
|
45490
|
+
this.referenceQuantity = _data["referenceQuantity"];
|
|
45491
|
+
this.plusTolerance = _data["plusTolerance"];
|
|
45492
|
+
this.minusTolerance = _data["minusTolerance"];
|
|
45493
|
+
this.coatingThickness = _data["coatingThickness"];
|
|
45494
|
+
this.canCopy = _data["canCopy"];
|
|
45495
|
+
this.valueType = _data["valueType"];
|
|
45496
|
+
this.bonusType = _data["bonusType"];
|
|
45497
|
+
this.lowerWarningThreshold = _data["lowerWarningThreshold"];
|
|
45498
|
+
this.upperWarningThreshold = _data["upperWarningThreshold"];
|
|
45499
|
+
this.minimumDecimals = _data["minimumDecimals"];
|
|
45500
|
+
this.maximumDecimals = _data["maximumDecimals"];
|
|
45501
|
+
this.machiningDimensions = _data["machiningDimensions"];
|
|
45502
|
+
this.isStarted = _data["isStarted"];
|
|
45503
|
+
if (Array.isArray(_data["values"])) {
|
|
45504
|
+
this.values = [];
|
|
45505
|
+
for (let item of _data["values"])
|
|
45506
|
+
this.values.push(MeasurementFormElementValueDto.fromJS(item));
|
|
45507
|
+
}
|
|
45525
45508
|
}
|
|
45526
45509
|
}
|
|
45527
45510
|
static fromJS(data) {
|
|
45528
45511
|
data = typeof data === 'object' ? data : {};
|
|
45529
|
-
let result = new
|
|
45512
|
+
let result = new MeasurementFormInstanceElementDto();
|
|
45530
45513
|
result.init(data);
|
|
45531
45514
|
return result;
|
|
45532
45515
|
}
|
|
45533
45516
|
toJSON(data) {
|
|
45534
45517
|
data = typeof data === 'object' ? data : {};
|
|
45535
|
-
data["
|
|
45536
|
-
data["
|
|
45537
|
-
data["
|
|
45538
|
-
data["
|
|
45539
|
-
data["
|
|
45540
|
-
data["
|
|
45518
|
+
data["id"] = this.id;
|
|
45519
|
+
data["imageUrl"] = this.imageUrl;
|
|
45520
|
+
data["thumbnailUrl"] = this.thumbnailUrl;
|
|
45521
|
+
data["balloonId"] = this.balloonId;
|
|
45522
|
+
data["reference"] = this.reference;
|
|
45523
|
+
data["section"] = this.section;
|
|
45524
|
+
data["pageNumber"] = this.pageNumber;
|
|
45525
|
+
data["sheetZone"] = this.sheetZone;
|
|
45526
|
+
data["completed"] = this.completed;
|
|
45527
|
+
data["places"] = this.places;
|
|
45528
|
+
data["nominal"] = this.nominal;
|
|
45529
|
+
data["type"] = this.type;
|
|
45530
|
+
data["subType"] = this.subType;
|
|
45531
|
+
data["unitOfMeasure"] = this.unitOfMeasure;
|
|
45532
|
+
data["typeCharacter"] = this.typeCharacter;
|
|
45533
|
+
data["upperLimit"] = this.upperLimit;
|
|
45534
|
+
data["lowerLimit"] = this.lowerLimit;
|
|
45535
|
+
data["comments"] = this.comments;
|
|
45536
|
+
data["updatedByUser"] = this.updatedByUser;
|
|
45537
|
+
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
45538
|
+
data["createdByUser"] = this.createdByUser;
|
|
45539
|
+
data["createdDate"] = this.createdDate ? this.createdDate.toISOString() : undefined;
|
|
45540
|
+
data["frequency"] = this.frequency;
|
|
45541
|
+
data["frequencyParameter"] = this.frequencyParameter;
|
|
45542
|
+
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
45543
|
+
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
45544
|
+
data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
|
|
45545
|
+
data["balloonSequence"] = this.balloonSequence;
|
|
45546
|
+
data["referenceIndex"] = this.referenceIndex;
|
|
45547
|
+
data["balloonQuantity"] = this.balloonQuantity;
|
|
45548
|
+
data["referenceQuantity"] = this.referenceQuantity;
|
|
45549
|
+
data["plusTolerance"] = this.plusTolerance;
|
|
45550
|
+
data["minusTolerance"] = this.minusTolerance;
|
|
45551
|
+
data["coatingThickness"] = this.coatingThickness;
|
|
45552
|
+
data["canCopy"] = this.canCopy;
|
|
45553
|
+
data["valueType"] = this.valueType;
|
|
45554
|
+
data["bonusType"] = this.bonusType;
|
|
45555
|
+
data["lowerWarningThreshold"] = this.lowerWarningThreshold;
|
|
45556
|
+
data["upperWarningThreshold"] = this.upperWarningThreshold;
|
|
45557
|
+
data["minimumDecimals"] = this.minimumDecimals;
|
|
45558
|
+
data["maximumDecimals"] = this.maximumDecimals;
|
|
45559
|
+
data["machiningDimensions"] = this.machiningDimensions;
|
|
45560
|
+
data["isStarted"] = this.isStarted;
|
|
45561
|
+
if (Array.isArray(this.values)) {
|
|
45562
|
+
data["values"] = [];
|
|
45563
|
+
for (let item of this.values)
|
|
45564
|
+
data["values"].push(item ? item.toJSON() : undefined);
|
|
45565
|
+
}
|
|
45541
45566
|
return data;
|
|
45542
45567
|
}
|
|
45543
45568
|
}
|
|
45544
|
-
export class
|
|
45569
|
+
export class MeasurementFormElementValueDto {
|
|
45545
45570
|
constructor(data) {
|
|
45546
45571
|
if (data) {
|
|
45547
45572
|
for (var property in data) {
|
|
@@ -45549,43 +45574,56 @@ export class MeasurementFormInstanceFeedbackDto {
|
|
|
45549
45574
|
this[property] = data[property];
|
|
45550
45575
|
}
|
|
45551
45576
|
}
|
|
45577
|
+
if (!data) {
|
|
45578
|
+
this.tools = [];
|
|
45579
|
+
}
|
|
45552
45580
|
}
|
|
45553
45581
|
init(_data) {
|
|
45554
45582
|
if (_data) {
|
|
45555
|
-
this.
|
|
45556
|
-
this.
|
|
45557
|
-
this.
|
|
45558
|
-
this.
|
|
45559
|
-
this.
|
|
45560
|
-
this.
|
|
45561
|
-
this.
|
|
45562
|
-
|
|
45563
|
-
|
|
45564
|
-
|
|
45583
|
+
this.bonus = _data["bonus"];
|
|
45584
|
+
this.completed = _data["completed"];
|
|
45585
|
+
this.sequence = _data["sequence"];
|
|
45586
|
+
this.serialNumber = _data["serialNumber"];
|
|
45587
|
+
this.value = _data["value"];
|
|
45588
|
+
this.updatedByUser = _data["updatedByUser"];
|
|
45589
|
+
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
45590
|
+
if (Array.isArray(_data["tools"])) {
|
|
45591
|
+
this.tools = [];
|
|
45592
|
+
for (let item of _data["tools"])
|
|
45593
|
+
this.tools.push(MeasurementFormToolValueDto.fromJS(item));
|
|
45594
|
+
}
|
|
45595
|
+
this.comment = _data["comment"];
|
|
45596
|
+
this.isOutsideTolerances = _data["isOutsideTolerances"];
|
|
45597
|
+
this.isCloseToTolerances = _data["isCloseToTolerances"];
|
|
45565
45598
|
}
|
|
45566
45599
|
}
|
|
45567
45600
|
static fromJS(data) {
|
|
45568
45601
|
data = typeof data === 'object' ? data : {};
|
|
45569
|
-
let result = new
|
|
45602
|
+
let result = new MeasurementFormElementValueDto();
|
|
45570
45603
|
result.init(data);
|
|
45571
45604
|
return result;
|
|
45572
45605
|
}
|
|
45573
45606
|
toJSON(data) {
|
|
45574
45607
|
data = typeof data === 'object' ? data : {};
|
|
45575
|
-
data["
|
|
45576
|
-
data["
|
|
45577
|
-
data["
|
|
45578
|
-
data["
|
|
45579
|
-
data["
|
|
45580
|
-
data["
|
|
45581
|
-
data["
|
|
45582
|
-
|
|
45583
|
-
|
|
45584
|
-
|
|
45608
|
+
data["bonus"] = this.bonus;
|
|
45609
|
+
data["completed"] = this.completed;
|
|
45610
|
+
data["sequence"] = this.sequence;
|
|
45611
|
+
data["serialNumber"] = this.serialNumber;
|
|
45612
|
+
data["value"] = this.value;
|
|
45613
|
+
data["updatedByUser"] = this.updatedByUser;
|
|
45614
|
+
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
45615
|
+
if (Array.isArray(this.tools)) {
|
|
45616
|
+
data["tools"] = [];
|
|
45617
|
+
for (let item of this.tools)
|
|
45618
|
+
data["tools"].push(item ? item.toJSON() : undefined);
|
|
45619
|
+
}
|
|
45620
|
+
data["comment"] = this.comment;
|
|
45621
|
+
data["isOutsideTolerances"] = this.isOutsideTolerances;
|
|
45622
|
+
data["isCloseToTolerances"] = this.isCloseToTolerances;
|
|
45585
45623
|
return data;
|
|
45586
45624
|
}
|
|
45587
45625
|
}
|
|
45588
|
-
export class
|
|
45626
|
+
export class MeasurementFormToolValueDto {
|
|
45589
45627
|
constructor(data) {
|
|
45590
45628
|
if (data) {
|
|
45591
45629
|
for (var property in data) {
|
|
@@ -45593,54 +45631,29 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
45593
45631
|
this[property] = data[property];
|
|
45594
45632
|
}
|
|
45595
45633
|
}
|
|
45596
|
-
if (!data) {
|
|
45597
|
-
this.serialNumbers = [];
|
|
45598
|
-
}
|
|
45599
45634
|
}
|
|
45600
45635
|
init(_data) {
|
|
45601
45636
|
if (_data) {
|
|
45602
|
-
this.
|
|
45603
|
-
this.
|
|
45604
|
-
this.
|
|
45605
|
-
this.purchaseOrder = _data["purchaseOrder"];
|
|
45606
|
-
if (Array.isArray(_data["sequences"])) {
|
|
45607
|
-
this.sequences = [];
|
|
45608
|
-
for (let item of _data["sequences"])
|
|
45609
|
-
this.sequences.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
45610
|
-
}
|
|
45611
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
45612
|
-
this.serialNumbers = [];
|
|
45613
|
-
for (let item of _data["serialNumbers"])
|
|
45614
|
-
this.serialNumbers.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
|
|
45615
|
-
}
|
|
45637
|
+
this.tool = _data["tool"];
|
|
45638
|
+
this.type = _data["type"];
|
|
45639
|
+
this.subType = _data["subType"];
|
|
45616
45640
|
}
|
|
45617
45641
|
}
|
|
45618
45642
|
static fromJS(data) {
|
|
45619
45643
|
data = typeof data === 'object' ? data : {};
|
|
45620
|
-
let result = new
|
|
45644
|
+
let result = new MeasurementFormToolValueDto();
|
|
45621
45645
|
result.init(data);
|
|
45622
45646
|
return result;
|
|
45623
45647
|
}
|
|
45624
45648
|
toJSON(data) {
|
|
45625
45649
|
data = typeof data === 'object' ? data : {};
|
|
45626
|
-
data["
|
|
45627
|
-
data["
|
|
45628
|
-
data["
|
|
45629
|
-
data["purchaseOrder"] = this.purchaseOrder;
|
|
45630
|
-
if (Array.isArray(this.sequences)) {
|
|
45631
|
-
data["sequences"] = [];
|
|
45632
|
-
for (let item of this.sequences)
|
|
45633
|
-
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
45634
|
-
}
|
|
45635
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
45636
|
-
data["serialNumbers"] = [];
|
|
45637
|
-
for (let item of this.serialNumbers)
|
|
45638
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
45639
|
-
}
|
|
45650
|
+
data["tool"] = this.tool;
|
|
45651
|
+
data["type"] = this.type;
|
|
45652
|
+
data["subType"] = this.subType;
|
|
45640
45653
|
return data;
|
|
45641
45654
|
}
|
|
45642
45655
|
}
|
|
45643
|
-
export class
|
|
45656
|
+
export class MeasurementFormInstanceProgressDto {
|
|
45644
45657
|
constructor(data) {
|
|
45645
45658
|
if (data) {
|
|
45646
45659
|
for (var property in data) {
|
|
@@ -45651,24 +45664,32 @@ export class CreateMeasurementFormInstanceRequestSequence {
|
|
|
45651
45664
|
}
|
|
45652
45665
|
init(_data) {
|
|
45653
45666
|
if (_data) {
|
|
45654
|
-
this.
|
|
45655
|
-
|
|
45667
|
+
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : undefined;
|
|
45668
|
+
if (Array.isArray(_data["schemas"])) {
|
|
45669
|
+
this.schemas = [];
|
|
45670
|
+
for (let item of _data["schemas"])
|
|
45671
|
+
this.schemas.push(MeasurementFormProgressDto.fromJS(item));
|
|
45672
|
+
}
|
|
45656
45673
|
}
|
|
45657
45674
|
}
|
|
45658
45675
|
static fromJS(data) {
|
|
45659
45676
|
data = typeof data === 'object' ? data : {};
|
|
45660
|
-
let result = new
|
|
45677
|
+
let result = new MeasurementFormInstanceProgressDto();
|
|
45661
45678
|
result.init(data);
|
|
45662
45679
|
return result;
|
|
45663
45680
|
}
|
|
45664
45681
|
toJSON(data) {
|
|
45665
45682
|
data = typeof data === 'object' ? data : {};
|
|
45666
|
-
data["
|
|
45667
|
-
|
|
45683
|
+
data["progress"] = this.progress ? this.progress.toJSON() : undefined;
|
|
45684
|
+
if (Array.isArray(this.schemas)) {
|
|
45685
|
+
data["schemas"] = [];
|
|
45686
|
+
for (let item of this.schemas)
|
|
45687
|
+
data["schemas"].push(item ? item.toJSON() : undefined);
|
|
45688
|
+
}
|
|
45668
45689
|
return data;
|
|
45669
45690
|
}
|
|
45670
45691
|
}
|
|
45671
|
-
export class
|
|
45692
|
+
export class MeasurementFormElementValueAuditDto {
|
|
45672
45693
|
constructor(data) {
|
|
45673
45694
|
if (data) {
|
|
45674
45695
|
for (var property in data) {
|
|
@@ -45676,27 +45697,58 @@ export class CreateMeasurementFormInstanceRequestSerialNumber {
|
|
|
45676
45697
|
this[property] = data[property];
|
|
45677
45698
|
}
|
|
45678
45699
|
}
|
|
45700
|
+
if (!data) {
|
|
45701
|
+
this.tools = [];
|
|
45702
|
+
}
|
|
45679
45703
|
}
|
|
45680
45704
|
init(_data) {
|
|
45681
45705
|
if (_data) {
|
|
45706
|
+
this.workorder = _data["workorder"];
|
|
45707
|
+
this.operation = _data["operation"];
|
|
45708
|
+
this.resourceName = _data["resourceName"];
|
|
45709
|
+
this.schemaId = _data["schemaId"];
|
|
45710
|
+
this.value = _data["value"];
|
|
45711
|
+
this.bonus = _data["bonus"];
|
|
45712
|
+
this.sequence = _data["sequence"];
|
|
45682
45713
|
this.serialNumber = _data["serialNumber"];
|
|
45683
|
-
this.
|
|
45714
|
+
this.elementId = _data["elementId"];
|
|
45715
|
+
this.updatedByUser = _data["updatedByUser"];
|
|
45716
|
+
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
45717
|
+
if (Array.isArray(_data["tools"])) {
|
|
45718
|
+
this.tools = [];
|
|
45719
|
+
for (let item of _data["tools"])
|
|
45720
|
+
this.tools.push(MeasurementFormToolValueDto.fromJS(item));
|
|
45721
|
+
}
|
|
45684
45722
|
}
|
|
45685
45723
|
}
|
|
45686
45724
|
static fromJS(data) {
|
|
45687
45725
|
data = typeof data === 'object' ? data : {};
|
|
45688
|
-
let result = new
|
|
45726
|
+
let result = new MeasurementFormElementValueAuditDto();
|
|
45689
45727
|
result.init(data);
|
|
45690
45728
|
return result;
|
|
45691
45729
|
}
|
|
45692
45730
|
toJSON(data) {
|
|
45693
45731
|
data = typeof data === 'object' ? data : {};
|
|
45732
|
+
data["workorder"] = this.workorder;
|
|
45733
|
+
data["operation"] = this.operation;
|
|
45734
|
+
data["resourceName"] = this.resourceName;
|
|
45735
|
+
data["schemaId"] = this.schemaId;
|
|
45736
|
+
data["value"] = this.value;
|
|
45737
|
+
data["bonus"] = this.bonus;
|
|
45738
|
+
data["sequence"] = this.sequence;
|
|
45694
45739
|
data["serialNumber"] = this.serialNumber;
|
|
45695
|
-
data["
|
|
45740
|
+
data["elementId"] = this.elementId;
|
|
45741
|
+
data["updatedByUser"] = this.updatedByUser;
|
|
45742
|
+
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
45743
|
+
if (Array.isArray(this.tools)) {
|
|
45744
|
+
data["tools"] = [];
|
|
45745
|
+
for (let item of this.tools)
|
|
45746
|
+
data["tools"].push(item ? item.toJSON() : undefined);
|
|
45747
|
+
}
|
|
45696
45748
|
return data;
|
|
45697
45749
|
}
|
|
45698
45750
|
}
|
|
45699
|
-
export class
|
|
45751
|
+
export class ValidationRuleDto {
|
|
45700
45752
|
constructor(data) {
|
|
45701
45753
|
if (data) {
|
|
45702
45754
|
for (var property in data) {
|
|
@@ -45704,57 +45756,27 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
45704
45756
|
this[property] = data[property];
|
|
45705
45757
|
}
|
|
45706
45758
|
}
|
|
45707
|
-
if (!data) {
|
|
45708
|
-
this.serialNumbers = [];
|
|
45709
|
-
this.suppliers = [];
|
|
45710
|
-
}
|
|
45711
45759
|
}
|
|
45712
45760
|
init(_data) {
|
|
45713
45761
|
if (_data) {
|
|
45714
|
-
|
|
45715
|
-
|
|
45716
|
-
for (let item of _data["sequences"])
|
|
45717
|
-
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
45718
|
-
}
|
|
45719
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
45720
|
-
this.serialNumbers = [];
|
|
45721
|
-
for (let item of _data["serialNumbers"])
|
|
45722
|
-
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
45723
|
-
}
|
|
45724
|
-
if (Array.isArray(_data["suppliers"])) {
|
|
45725
|
-
this.suppliers = [];
|
|
45726
|
-
for (let item of _data["suppliers"])
|
|
45727
|
-
this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
45728
|
-
}
|
|
45762
|
+
this.id = _data["id"];
|
|
45763
|
+
this.name = _data["name"];
|
|
45729
45764
|
}
|
|
45730
45765
|
}
|
|
45731
45766
|
static fromJS(data) {
|
|
45732
45767
|
data = typeof data === 'object' ? data : {};
|
|
45733
|
-
let result = new
|
|
45768
|
+
let result = new ValidationRuleDto();
|
|
45734
45769
|
result.init(data);
|
|
45735
45770
|
return result;
|
|
45736
|
-
}
|
|
45737
|
-
toJSON(data) {
|
|
45738
|
-
data = typeof data === 'object' ? data : {};
|
|
45739
|
-
|
|
45740
|
-
|
|
45741
|
-
for (let item of this.sequences)
|
|
45742
|
-
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
45743
|
-
}
|
|
45744
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
45745
|
-
data["serialNumbers"] = [];
|
|
45746
|
-
for (let item of this.serialNumbers)
|
|
45747
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
45748
|
-
}
|
|
45749
|
-
if (Array.isArray(this.suppliers)) {
|
|
45750
|
-
data["suppliers"] = [];
|
|
45751
|
-
for (let item of this.suppliers)
|
|
45752
|
-
data["suppliers"].push(item ? item.toJSON() : undefined);
|
|
45753
|
-
}
|
|
45771
|
+
}
|
|
45772
|
+
toJSON(data) {
|
|
45773
|
+
data = typeof data === 'object' ? data : {};
|
|
45774
|
+
data["id"] = this.id;
|
|
45775
|
+
data["name"] = this.name;
|
|
45754
45776
|
return data;
|
|
45755
45777
|
}
|
|
45756
45778
|
}
|
|
45757
|
-
export class
|
|
45779
|
+
export class SaveValueResponseDto {
|
|
45758
45780
|
constructor(data) {
|
|
45759
45781
|
if (data) {
|
|
45760
45782
|
for (var property in data) {
|
|
@@ -45763,39 +45785,43 @@ export class MeasurementFormInstanceSchemaDto {
|
|
|
45763
45785
|
}
|
|
45764
45786
|
}
|
|
45765
45787
|
if (!data) {
|
|
45766
|
-
this.
|
|
45788
|
+
this.tools = [];
|
|
45767
45789
|
}
|
|
45768
45790
|
}
|
|
45769
45791
|
init(_data) {
|
|
45770
45792
|
if (_data) {
|
|
45771
|
-
|
|
45772
|
-
|
|
45773
|
-
|
|
45774
|
-
|
|
45793
|
+
this.elementCompleted = _data["elementCompleted"];
|
|
45794
|
+
this.warning = _data["warning"];
|
|
45795
|
+
this.isOutsideTolerances = _data["isOutsideTolerances"];
|
|
45796
|
+
this.isCloseToTolerances = _data["isCloseToTolerances"];
|
|
45797
|
+
if (Array.isArray(_data["tools"])) {
|
|
45798
|
+
this.tools = [];
|
|
45799
|
+
for (let item of _data["tools"])
|
|
45800
|
+
this.tools.push(MeasurementFormToolValueDto.fromJS(item));
|
|
45775
45801
|
}
|
|
45776
|
-
this.isCompleted = _data["isCompleted"];
|
|
45777
|
-
this.comment = _data["comment"];
|
|
45778
45802
|
}
|
|
45779
45803
|
}
|
|
45780
45804
|
static fromJS(data) {
|
|
45781
45805
|
data = typeof data === 'object' ? data : {};
|
|
45782
|
-
let result = new
|
|
45806
|
+
let result = new SaveValueResponseDto();
|
|
45783
45807
|
result.init(data);
|
|
45784
45808
|
return result;
|
|
45785
45809
|
}
|
|
45786
45810
|
toJSON(data) {
|
|
45787
45811
|
data = typeof data === 'object' ? data : {};
|
|
45788
|
-
|
|
45789
|
-
|
|
45790
|
-
|
|
45791
|
-
|
|
45812
|
+
data["elementCompleted"] = this.elementCompleted;
|
|
45813
|
+
data["warning"] = this.warning;
|
|
45814
|
+
data["isOutsideTolerances"] = this.isOutsideTolerances;
|
|
45815
|
+
data["isCloseToTolerances"] = this.isCloseToTolerances;
|
|
45816
|
+
if (Array.isArray(this.tools)) {
|
|
45817
|
+
data["tools"] = [];
|
|
45818
|
+
for (let item of this.tools)
|
|
45819
|
+
data["tools"].push(item ? item.toJSON() : undefined);
|
|
45792
45820
|
}
|
|
45793
|
-
data["isCompleted"] = this.isCompleted;
|
|
45794
|
-
data["comment"] = this.comment;
|
|
45795
45821
|
return data;
|
|
45796
45822
|
}
|
|
45797
45823
|
}
|
|
45798
|
-
export class
|
|
45824
|
+
export class SaveValueRequest {
|
|
45799
45825
|
constructor(data) {
|
|
45800
45826
|
if (data) {
|
|
45801
45827
|
for (var property in data) {
|
|
@@ -45803,122 +45829,39 @@ export class MeasurementFormInstanceElementDto {
|
|
|
45803
45829
|
this[property] = data[property];
|
|
45804
45830
|
}
|
|
45805
45831
|
}
|
|
45806
|
-
if (!data) {
|
|
45807
|
-
this.values = [];
|
|
45808
|
-
}
|
|
45809
45832
|
}
|
|
45810
45833
|
init(_data) {
|
|
45811
45834
|
if (_data) {
|
|
45812
|
-
this.
|
|
45813
|
-
this.
|
|
45814
|
-
this.
|
|
45815
|
-
this.
|
|
45816
|
-
this.
|
|
45817
|
-
this.
|
|
45818
|
-
this.
|
|
45819
|
-
this.
|
|
45820
|
-
this.completed = _data["completed"];
|
|
45821
|
-
this.places = _data["places"];
|
|
45822
|
-
this.nominal = _data["nominal"];
|
|
45823
|
-
this.type = _data["type"];
|
|
45824
|
-
this.subType = _data["subType"];
|
|
45825
|
-
this.unitOfMeasure = _data["unitOfMeasure"];
|
|
45826
|
-
this.typeCharacter = _data["typeCharacter"];
|
|
45827
|
-
this.upperLimit = _data["upperLimit"];
|
|
45828
|
-
this.lowerLimit = _data["lowerLimit"];
|
|
45829
|
-
this.comments = _data["comments"];
|
|
45830
|
-
this.updatedByUser = _data["updatedByUser"];
|
|
45831
|
-
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
45832
|
-
this.createdByUser = _data["createdByUser"];
|
|
45833
|
-
this.createdDate = _data["createdDate"] ? new Date(_data["createdDate"].toString()) : undefined;
|
|
45834
|
-
this.frequency = _data["frequency"];
|
|
45835
|
-
this.frequencyParameter = _data["frequencyParameter"];
|
|
45836
|
-
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
45837
|
-
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
45838
|
-
this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
|
|
45839
|
-
this.balloonSequence = _data["balloonSequence"];
|
|
45840
|
-
this.referenceIndex = _data["referenceIndex"];
|
|
45841
|
-
this.balloonQuantity = _data["balloonQuantity"];
|
|
45842
|
-
this.referenceQuantity = _data["referenceQuantity"];
|
|
45843
|
-
this.plusTolerance = _data["plusTolerance"];
|
|
45844
|
-
this.minusTolerance = _data["minusTolerance"];
|
|
45845
|
-
this.coatingThickness = _data["coatingThickness"];
|
|
45846
|
-
this.canCopy = _data["canCopy"];
|
|
45847
|
-
this.valueType = _data["valueType"];
|
|
45848
|
-
this.bonusType = _data["bonusType"];
|
|
45849
|
-
this.lowerWarningThreshold = _data["lowerWarningThreshold"];
|
|
45850
|
-
this.upperWarningThreshold = _data["upperWarningThreshold"];
|
|
45851
|
-
this.minimumDecimals = _data["minimumDecimals"];
|
|
45852
|
-
this.maximumDecimals = _data["maximumDecimals"];
|
|
45853
|
-
this.machiningDimensions = _data["machiningDimensions"];
|
|
45854
|
-
this.isStarted = _data["isStarted"];
|
|
45855
|
-
if (Array.isArray(_data["values"])) {
|
|
45856
|
-
this.values = [];
|
|
45857
|
-
for (let item of _data["values"])
|
|
45858
|
-
this.values.push(MeasurementFormElementValueDto.fromJS(item));
|
|
45859
|
-
}
|
|
45835
|
+
this.operation = _data["operation"];
|
|
45836
|
+
this.resourceName = _data["resourceName"];
|
|
45837
|
+
this.schemaId = _data["schemaId"];
|
|
45838
|
+
this.elementId = _data["elementId"];
|
|
45839
|
+
this.sequence = _data["sequence"];
|
|
45840
|
+
this.serialNumber = _data["serialNumber"];
|
|
45841
|
+
this.value = _data["value"];
|
|
45842
|
+
this.bonus = _data["bonus"];
|
|
45860
45843
|
}
|
|
45861
45844
|
}
|
|
45862
45845
|
static fromJS(data) {
|
|
45863
45846
|
data = typeof data === 'object' ? data : {};
|
|
45864
|
-
let result = new
|
|
45847
|
+
let result = new SaveValueRequest();
|
|
45865
45848
|
result.init(data);
|
|
45866
45849
|
return result;
|
|
45867
45850
|
}
|
|
45868
45851
|
toJSON(data) {
|
|
45869
45852
|
data = typeof data === 'object' ? data : {};
|
|
45870
|
-
data["
|
|
45871
|
-
data["
|
|
45872
|
-
data["
|
|
45873
|
-
data["
|
|
45874
|
-
data["
|
|
45875
|
-
data["
|
|
45876
|
-
data["
|
|
45877
|
-
data["
|
|
45878
|
-
data["completed"] = this.completed;
|
|
45879
|
-
data["places"] = this.places;
|
|
45880
|
-
data["nominal"] = this.nominal;
|
|
45881
|
-
data["type"] = this.type;
|
|
45882
|
-
data["subType"] = this.subType;
|
|
45883
|
-
data["unitOfMeasure"] = this.unitOfMeasure;
|
|
45884
|
-
data["typeCharacter"] = this.typeCharacter;
|
|
45885
|
-
data["upperLimit"] = this.upperLimit;
|
|
45886
|
-
data["lowerLimit"] = this.lowerLimit;
|
|
45887
|
-
data["comments"] = this.comments;
|
|
45888
|
-
data["updatedByUser"] = this.updatedByUser;
|
|
45889
|
-
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
45890
|
-
data["createdByUser"] = this.createdByUser;
|
|
45891
|
-
data["createdDate"] = this.createdDate ? this.createdDate.toISOString() : undefined;
|
|
45892
|
-
data["frequency"] = this.frequency;
|
|
45893
|
-
data["frequencyParameter"] = this.frequencyParameter;
|
|
45894
|
-
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
45895
|
-
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
45896
|
-
data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
|
|
45897
|
-
data["balloonSequence"] = this.balloonSequence;
|
|
45898
|
-
data["referenceIndex"] = this.referenceIndex;
|
|
45899
|
-
data["balloonQuantity"] = this.balloonQuantity;
|
|
45900
|
-
data["referenceQuantity"] = this.referenceQuantity;
|
|
45901
|
-
data["plusTolerance"] = this.plusTolerance;
|
|
45902
|
-
data["minusTolerance"] = this.minusTolerance;
|
|
45903
|
-
data["coatingThickness"] = this.coatingThickness;
|
|
45904
|
-
data["canCopy"] = this.canCopy;
|
|
45905
|
-
data["valueType"] = this.valueType;
|
|
45906
|
-
data["bonusType"] = this.bonusType;
|
|
45907
|
-
data["lowerWarningThreshold"] = this.lowerWarningThreshold;
|
|
45908
|
-
data["upperWarningThreshold"] = this.upperWarningThreshold;
|
|
45909
|
-
data["minimumDecimals"] = this.minimumDecimals;
|
|
45910
|
-
data["maximumDecimals"] = this.maximumDecimals;
|
|
45911
|
-
data["machiningDimensions"] = this.machiningDimensions;
|
|
45912
|
-
data["isStarted"] = this.isStarted;
|
|
45913
|
-
if (Array.isArray(this.values)) {
|
|
45914
|
-
data["values"] = [];
|
|
45915
|
-
for (let item of this.values)
|
|
45916
|
-
data["values"].push(item ? item.toJSON() : undefined);
|
|
45917
|
-
}
|
|
45853
|
+
data["operation"] = this.operation;
|
|
45854
|
+
data["resourceName"] = this.resourceName;
|
|
45855
|
+
data["schemaId"] = this.schemaId;
|
|
45856
|
+
data["elementId"] = this.elementId;
|
|
45857
|
+
data["sequence"] = this.sequence;
|
|
45858
|
+
data["serialNumber"] = this.serialNumber;
|
|
45859
|
+
data["value"] = this.value;
|
|
45860
|
+
data["bonus"] = this.bonus;
|
|
45918
45861
|
return data;
|
|
45919
45862
|
}
|
|
45920
45863
|
}
|
|
45921
|
-
export class
|
|
45864
|
+
export class SaveToolRequest {
|
|
45922
45865
|
constructor(data) {
|
|
45923
45866
|
if (data) {
|
|
45924
45867
|
for (var property in data) {
|
|
@@ -45926,56 +45869,43 @@ export class MeasurementFormElementValueDto {
|
|
|
45926
45869
|
this[property] = data[property];
|
|
45927
45870
|
}
|
|
45928
45871
|
}
|
|
45929
|
-
if (!data) {
|
|
45930
|
-
this.tools = [];
|
|
45931
|
-
}
|
|
45932
45872
|
}
|
|
45933
45873
|
init(_data) {
|
|
45934
45874
|
if (_data) {
|
|
45935
|
-
this.
|
|
45936
|
-
this.
|
|
45875
|
+
this.schemaId = _data["schemaId"];
|
|
45876
|
+
this.elementId = _data["elementId"];
|
|
45937
45877
|
this.sequence = _data["sequence"];
|
|
45938
45878
|
this.serialNumber = _data["serialNumber"];
|
|
45939
|
-
this.value = _data["value"];
|
|
45940
|
-
this.updatedByUser = _data["updatedByUser"];
|
|
45941
|
-
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
45942
45879
|
if (Array.isArray(_data["tools"])) {
|
|
45943
45880
|
this.tools = [];
|
|
45944
45881
|
for (let item of _data["tools"])
|
|
45945
|
-
this.tools.push(
|
|
45882
|
+
this.tools.push(item);
|
|
45946
45883
|
}
|
|
45947
|
-
this.
|
|
45948
|
-
this.isOutsideTolerances = _data["isOutsideTolerances"];
|
|
45949
|
-
this.isCloseToTolerances = _data["isCloseToTolerances"];
|
|
45884
|
+
this.force = _data["force"];
|
|
45950
45885
|
}
|
|
45951
45886
|
}
|
|
45952
45887
|
static fromJS(data) {
|
|
45953
45888
|
data = typeof data === 'object' ? data : {};
|
|
45954
|
-
let result = new
|
|
45889
|
+
let result = new SaveToolRequest();
|
|
45955
45890
|
result.init(data);
|
|
45956
45891
|
return result;
|
|
45957
45892
|
}
|
|
45958
45893
|
toJSON(data) {
|
|
45959
45894
|
data = typeof data === 'object' ? data : {};
|
|
45960
|
-
data["
|
|
45961
|
-
data["
|
|
45895
|
+
data["schemaId"] = this.schemaId;
|
|
45896
|
+
data["elementId"] = this.elementId;
|
|
45962
45897
|
data["sequence"] = this.sequence;
|
|
45963
45898
|
data["serialNumber"] = this.serialNumber;
|
|
45964
|
-
data["value"] = this.value;
|
|
45965
|
-
data["updatedByUser"] = this.updatedByUser;
|
|
45966
|
-
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
45967
45899
|
if (Array.isArray(this.tools)) {
|
|
45968
45900
|
data["tools"] = [];
|
|
45969
45901
|
for (let item of this.tools)
|
|
45970
|
-
data["tools"].push(item
|
|
45902
|
+
data["tools"].push(item);
|
|
45971
45903
|
}
|
|
45972
|
-
data["
|
|
45973
|
-
data["isOutsideTolerances"] = this.isOutsideTolerances;
|
|
45974
|
-
data["isCloseToTolerances"] = this.isCloseToTolerances;
|
|
45904
|
+
data["force"] = this.force;
|
|
45975
45905
|
return data;
|
|
45976
45906
|
}
|
|
45977
45907
|
}
|
|
45978
|
-
export class
|
|
45908
|
+
export class SaveCommentRequest {
|
|
45979
45909
|
constructor(data) {
|
|
45980
45910
|
if (data) {
|
|
45981
45911
|
for (var property in data) {
|
|
@@ -45986,26 +45916,30 @@ export class MeasurementFormToolValueDto {
|
|
|
45986
45916
|
}
|
|
45987
45917
|
init(_data) {
|
|
45988
45918
|
if (_data) {
|
|
45989
|
-
this.
|
|
45990
|
-
this.
|
|
45991
|
-
this.
|
|
45919
|
+
this.schemaId = _data["schemaId"];
|
|
45920
|
+
this.elementId = _data["elementId"];
|
|
45921
|
+
this.sequence = _data["sequence"];
|
|
45922
|
+
this.serialNumber = _data["serialNumber"];
|
|
45923
|
+
this.comment = _data["comment"];
|
|
45992
45924
|
}
|
|
45993
45925
|
}
|
|
45994
45926
|
static fromJS(data) {
|
|
45995
45927
|
data = typeof data === 'object' ? data : {};
|
|
45996
|
-
let result = new
|
|
45928
|
+
let result = new SaveCommentRequest();
|
|
45997
45929
|
result.init(data);
|
|
45998
45930
|
return result;
|
|
45999
45931
|
}
|
|
46000
45932
|
toJSON(data) {
|
|
46001
45933
|
data = typeof data === 'object' ? data : {};
|
|
46002
|
-
data["
|
|
46003
|
-
data["
|
|
46004
|
-
data["
|
|
45934
|
+
data["schemaId"] = this.schemaId;
|
|
45935
|
+
data["elementId"] = this.elementId;
|
|
45936
|
+
data["sequence"] = this.sequence;
|
|
45937
|
+
data["serialNumber"] = this.serialNumber;
|
|
45938
|
+
data["comment"] = this.comment;
|
|
46005
45939
|
return data;
|
|
46006
45940
|
}
|
|
46007
45941
|
}
|
|
46008
|
-
export class
|
|
45942
|
+
export class BatchInsertValuesResponseDto {
|
|
46009
45943
|
constructor(data) {
|
|
46010
45944
|
if (data) {
|
|
46011
45945
|
for (var property in data) {
|
|
@@ -46013,35 +45947,30 @@ export class MeasurementFormInstanceProgressDto {
|
|
|
46013
45947
|
this[property] = data[property];
|
|
46014
45948
|
}
|
|
46015
45949
|
}
|
|
45950
|
+
if (!data) {
|
|
45951
|
+
this.elementWithValues = new MeasurementFormInstanceElementDto();
|
|
45952
|
+
}
|
|
46016
45953
|
}
|
|
46017
45954
|
init(_data) {
|
|
46018
45955
|
if (_data) {
|
|
46019
|
-
this.
|
|
46020
|
-
|
|
46021
|
-
this.schemas = [];
|
|
46022
|
-
for (let item of _data["schemas"])
|
|
46023
|
-
this.schemas.push(MeasurementFormProgressDto.fromJS(item));
|
|
46024
|
-
}
|
|
45956
|
+
this.elementWithValues = _data["elementWithValues"] ? MeasurementFormInstanceElementDto.fromJS(_data["elementWithValues"]) : new MeasurementFormInstanceElementDto();
|
|
45957
|
+
this.toolWarning = _data["toolWarning"];
|
|
46025
45958
|
}
|
|
46026
45959
|
}
|
|
46027
45960
|
static fromJS(data) {
|
|
46028
45961
|
data = typeof data === 'object' ? data : {};
|
|
46029
|
-
let result = new
|
|
45962
|
+
let result = new BatchInsertValuesResponseDto();
|
|
46030
45963
|
result.init(data);
|
|
46031
45964
|
return result;
|
|
46032
45965
|
}
|
|
46033
45966
|
toJSON(data) {
|
|
46034
45967
|
data = typeof data === 'object' ? data : {};
|
|
46035
|
-
data["
|
|
46036
|
-
|
|
46037
|
-
data["schemas"] = [];
|
|
46038
|
-
for (let item of this.schemas)
|
|
46039
|
-
data["schemas"].push(item ? item.toJSON() : undefined);
|
|
46040
|
-
}
|
|
45968
|
+
data["elementWithValues"] = this.elementWithValues ? this.elementWithValues.toJSON() : undefined;
|
|
45969
|
+
data["toolWarning"] = this.toolWarning;
|
|
46041
45970
|
return data;
|
|
46042
45971
|
}
|
|
46043
45972
|
}
|
|
46044
|
-
export class
|
|
45973
|
+
export class BatchInsertValueRequest {
|
|
46045
45974
|
constructor(data) {
|
|
46046
45975
|
if (data) {
|
|
46047
45976
|
for (var property in data) {
|
|
@@ -46049,58 +45978,43 @@ export class MeasurementFormElementValueAuditDto {
|
|
|
46049
45978
|
this[property] = data[property];
|
|
46050
45979
|
}
|
|
46051
45980
|
}
|
|
46052
|
-
if (!data) {
|
|
46053
|
-
this.tools = [];
|
|
46054
|
-
}
|
|
46055
45981
|
}
|
|
46056
45982
|
init(_data) {
|
|
46057
45983
|
if (_data) {
|
|
46058
|
-
this.
|
|
45984
|
+
this.schemaId = _data["schemaId"];
|
|
45985
|
+
this.elementId = _data["elementId"];
|
|
46059
45986
|
this.operation = _data["operation"];
|
|
46060
45987
|
this.resourceName = _data["resourceName"];
|
|
46061
|
-
this.schemaId = _data["schemaId"];
|
|
46062
45988
|
this.value = _data["value"];
|
|
46063
|
-
this.bonus = _data["bonus"];
|
|
46064
|
-
this.sequence = _data["sequence"];
|
|
46065
|
-
this.serialNumber = _data["serialNumber"];
|
|
46066
|
-
this.elementId = _data["elementId"];
|
|
46067
|
-
this.updatedByUser = _data["updatedByUser"];
|
|
46068
|
-
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
46069
45989
|
if (Array.isArray(_data["tools"])) {
|
|
46070
45990
|
this.tools = [];
|
|
46071
45991
|
for (let item of _data["tools"])
|
|
46072
|
-
this.tools.push(
|
|
45992
|
+
this.tools.push(item);
|
|
46073
45993
|
}
|
|
46074
45994
|
}
|
|
46075
45995
|
}
|
|
46076
45996
|
static fromJS(data) {
|
|
46077
45997
|
data = typeof data === 'object' ? data : {};
|
|
46078
|
-
let result = new
|
|
45998
|
+
let result = new BatchInsertValueRequest();
|
|
46079
45999
|
result.init(data);
|
|
46080
46000
|
return result;
|
|
46081
46001
|
}
|
|
46082
46002
|
toJSON(data) {
|
|
46083
46003
|
data = typeof data === 'object' ? data : {};
|
|
46084
|
-
data["
|
|
46004
|
+
data["schemaId"] = this.schemaId;
|
|
46005
|
+
data["elementId"] = this.elementId;
|
|
46085
46006
|
data["operation"] = this.operation;
|
|
46086
46007
|
data["resourceName"] = this.resourceName;
|
|
46087
|
-
data["schemaId"] = this.schemaId;
|
|
46088
46008
|
data["value"] = this.value;
|
|
46089
|
-
data["bonus"] = this.bonus;
|
|
46090
|
-
data["sequence"] = this.sequence;
|
|
46091
|
-
data["serialNumber"] = this.serialNumber;
|
|
46092
|
-
data["elementId"] = this.elementId;
|
|
46093
|
-
data["updatedByUser"] = this.updatedByUser;
|
|
46094
|
-
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
46095
46009
|
if (Array.isArray(this.tools)) {
|
|
46096
46010
|
data["tools"] = [];
|
|
46097
46011
|
for (let item of this.tools)
|
|
46098
|
-
data["tools"].push(item
|
|
46012
|
+
data["tools"].push(item);
|
|
46099
46013
|
}
|
|
46100
46014
|
return data;
|
|
46101
46015
|
}
|
|
46102
46016
|
}
|
|
46103
|
-
export class
|
|
46017
|
+
export class SaveMeasurementFormInstanceSchemaCommentRequest {
|
|
46104
46018
|
constructor(data) {
|
|
46105
46019
|
if (data) {
|
|
46106
46020
|
for (var property in data) {
|
|
@@ -46111,24 +46025,22 @@ export class ValidationRuleDto {
|
|
|
46111
46025
|
}
|
|
46112
46026
|
init(_data) {
|
|
46113
46027
|
if (_data) {
|
|
46114
|
-
this.
|
|
46115
|
-
this.name = _data["name"];
|
|
46028
|
+
this.comment = _data["comment"];
|
|
46116
46029
|
}
|
|
46117
46030
|
}
|
|
46118
46031
|
static fromJS(data) {
|
|
46119
46032
|
data = typeof data === 'object' ? data : {};
|
|
46120
|
-
let result = new
|
|
46033
|
+
let result = new SaveMeasurementFormInstanceSchemaCommentRequest();
|
|
46121
46034
|
result.init(data);
|
|
46122
46035
|
return result;
|
|
46123
46036
|
}
|
|
46124
46037
|
toJSON(data) {
|
|
46125
46038
|
data = typeof data === 'object' ? data : {};
|
|
46126
|
-
data["
|
|
46127
|
-
data["name"] = this.name;
|
|
46039
|
+
data["comment"] = this.comment;
|
|
46128
46040
|
return data;
|
|
46129
46041
|
}
|
|
46130
46042
|
}
|
|
46131
|
-
export class
|
|
46043
|
+
export class SchemaFeedbackCreatedDto {
|
|
46132
46044
|
constructor(data) {
|
|
46133
46045
|
if (data) {
|
|
46134
46046
|
for (var property in data) {
|
|
@@ -46136,44 +46048,43 @@ export class SaveValueResponseDto {
|
|
|
46136
46048
|
this[property] = data[property];
|
|
46137
46049
|
}
|
|
46138
46050
|
}
|
|
46139
|
-
if (!data) {
|
|
46140
|
-
this.tools = [];
|
|
46141
|
-
}
|
|
46142
46051
|
}
|
|
46143
46052
|
init(_data) {
|
|
46144
46053
|
if (_data) {
|
|
46145
|
-
this.
|
|
46146
|
-
this.
|
|
46147
|
-
this.
|
|
46148
|
-
this.
|
|
46149
|
-
|
|
46150
|
-
|
|
46151
|
-
|
|
46152
|
-
|
|
46153
|
-
|
|
46054
|
+
this.id = _data["id"];
|
|
46055
|
+
this.workOrder = _data["workOrder"];
|
|
46056
|
+
this.schemaId = _data["schemaId"];
|
|
46057
|
+
this.versionId = _data["versionId"];
|
|
46058
|
+
this.schemaInstanceId = _data["schemaInstanceId"];
|
|
46059
|
+
this.balloonId = _data["balloonId"];
|
|
46060
|
+
this.reference = _data["reference"];
|
|
46061
|
+
this.feedback = _data["feedback"];
|
|
46062
|
+
this.from = _data["from"];
|
|
46063
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
46154
46064
|
}
|
|
46155
46065
|
}
|
|
46156
46066
|
static fromJS(data) {
|
|
46157
46067
|
data = typeof data === 'object' ? data : {};
|
|
46158
|
-
let result = new
|
|
46068
|
+
let result = new SchemaFeedbackCreatedDto();
|
|
46159
46069
|
result.init(data);
|
|
46160
46070
|
return result;
|
|
46161
46071
|
}
|
|
46162
46072
|
toJSON(data) {
|
|
46163
46073
|
data = typeof data === 'object' ? data : {};
|
|
46164
|
-
data["
|
|
46165
|
-
data["
|
|
46166
|
-
data["
|
|
46167
|
-
data["
|
|
46168
|
-
|
|
46169
|
-
|
|
46170
|
-
|
|
46171
|
-
|
|
46172
|
-
|
|
46074
|
+
data["id"] = this.id;
|
|
46075
|
+
data["workOrder"] = this.workOrder;
|
|
46076
|
+
data["schemaId"] = this.schemaId;
|
|
46077
|
+
data["versionId"] = this.versionId;
|
|
46078
|
+
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
46079
|
+
data["balloonId"] = this.balloonId;
|
|
46080
|
+
data["reference"] = this.reference;
|
|
46081
|
+
data["feedback"] = this.feedback;
|
|
46082
|
+
data["from"] = this.from;
|
|
46083
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
46173
46084
|
return data;
|
|
46174
46085
|
}
|
|
46175
46086
|
}
|
|
46176
|
-
export class
|
|
46087
|
+
export class CreateMeasurementFormSchemaFeedbackRequest {
|
|
46177
46088
|
constructor(data) {
|
|
46178
46089
|
if (data) {
|
|
46179
46090
|
for (var property in data) {
|
|
@@ -46184,36 +46095,26 @@ export class SaveValueRequest {
|
|
|
46184
46095
|
}
|
|
46185
46096
|
init(_data) {
|
|
46186
46097
|
if (_data) {
|
|
46187
|
-
this.
|
|
46188
|
-
this.
|
|
46189
|
-
this.
|
|
46190
|
-
this.elementId = _data["elementId"];
|
|
46191
|
-
this.sequence = _data["sequence"];
|
|
46192
|
-
this.serialNumber = _data["serialNumber"];
|
|
46193
|
-
this.value = _data["value"];
|
|
46194
|
-
this.bonus = _data["bonus"];
|
|
46098
|
+
this.balloonId = _data["balloonId"];
|
|
46099
|
+
this.reference = _data["reference"];
|
|
46100
|
+
this.feedback = _data["feedback"];
|
|
46195
46101
|
}
|
|
46196
46102
|
}
|
|
46197
46103
|
static fromJS(data) {
|
|
46198
46104
|
data = typeof data === 'object' ? data : {};
|
|
46199
|
-
let result = new
|
|
46105
|
+
let result = new CreateMeasurementFormSchemaFeedbackRequest();
|
|
46200
46106
|
result.init(data);
|
|
46201
46107
|
return result;
|
|
46202
46108
|
}
|
|
46203
46109
|
toJSON(data) {
|
|
46204
46110
|
data = typeof data === 'object' ? data : {};
|
|
46205
|
-
data["
|
|
46206
|
-
data["
|
|
46207
|
-
data["
|
|
46208
|
-
data["elementId"] = this.elementId;
|
|
46209
|
-
data["sequence"] = this.sequence;
|
|
46210
|
-
data["serialNumber"] = this.serialNumber;
|
|
46211
|
-
data["value"] = this.value;
|
|
46212
|
-
data["bonus"] = this.bonus;
|
|
46111
|
+
data["balloonId"] = this.balloonId;
|
|
46112
|
+
data["reference"] = this.reference;
|
|
46113
|
+
data["feedback"] = this.feedback;
|
|
46213
46114
|
return data;
|
|
46214
46115
|
}
|
|
46215
46116
|
}
|
|
46216
|
-
export class
|
|
46117
|
+
export class MeasurementFormSupplierAccessInstanceDto {
|
|
46217
46118
|
constructor(data) {
|
|
46218
46119
|
if (data) {
|
|
46219
46120
|
for (var property in data) {
|
|
@@ -46221,43 +46122,54 @@ export class SaveToolRequest {
|
|
|
46221
46122
|
this[property] = data[property];
|
|
46222
46123
|
}
|
|
46223
46124
|
}
|
|
46125
|
+
if (!data) {
|
|
46126
|
+
this.suppliers = [];
|
|
46127
|
+
}
|
|
46224
46128
|
}
|
|
46225
46129
|
init(_data) {
|
|
46226
46130
|
if (_data) {
|
|
46227
|
-
this.
|
|
46228
|
-
this.
|
|
46229
|
-
this.
|
|
46230
|
-
this.
|
|
46231
|
-
|
|
46232
|
-
|
|
46233
|
-
|
|
46234
|
-
|
|
46131
|
+
this.id = _data["id"];
|
|
46132
|
+
this.readonly = _data["readonly"];
|
|
46133
|
+
this.partNumber = _data["partNumber"];
|
|
46134
|
+
this.partRevision = _data["partRevision"];
|
|
46135
|
+
this.drawing = _data["drawing"];
|
|
46136
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
46137
|
+
this.customerId = _data["customerId"];
|
|
46138
|
+
this.quantity = _data["quantity"];
|
|
46139
|
+
this.status = _data["status"];
|
|
46140
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
46141
|
+
this.suppliers = [];
|
|
46142
|
+
for (let item of _data["suppliers"])
|
|
46143
|
+
this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
46235
46144
|
}
|
|
46236
|
-
this.force = _data["force"];
|
|
46237
46145
|
}
|
|
46238
46146
|
}
|
|
46239
46147
|
static fromJS(data) {
|
|
46240
46148
|
data = typeof data === 'object' ? data : {};
|
|
46241
|
-
let result = new
|
|
46149
|
+
let result = new MeasurementFormSupplierAccessInstanceDto();
|
|
46242
46150
|
result.init(data);
|
|
46243
46151
|
return result;
|
|
46244
46152
|
}
|
|
46245
46153
|
toJSON(data) {
|
|
46246
46154
|
data = typeof data === 'object' ? data : {};
|
|
46247
|
-
data["
|
|
46248
|
-
data["
|
|
46249
|
-
data["
|
|
46250
|
-
data["
|
|
46251
|
-
|
|
46252
|
-
|
|
46253
|
-
|
|
46254
|
-
|
|
46155
|
+
data["id"] = this.id;
|
|
46156
|
+
data["readonly"] = this.readonly;
|
|
46157
|
+
data["partNumber"] = this.partNumber;
|
|
46158
|
+
data["partRevision"] = this.partRevision;
|
|
46159
|
+
data["drawing"] = this.drawing;
|
|
46160
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
46161
|
+
data["customerId"] = this.customerId;
|
|
46162
|
+
data["quantity"] = this.quantity;
|
|
46163
|
+
data["status"] = this.status;
|
|
46164
|
+
if (Array.isArray(this.suppliers)) {
|
|
46165
|
+
data["suppliers"] = [];
|
|
46166
|
+
for (let item of this.suppliers)
|
|
46167
|
+
data["suppliers"].push(item ? item.toJSON() : undefined);
|
|
46255
46168
|
}
|
|
46256
|
-
data["force"] = this.force;
|
|
46257
46169
|
return data;
|
|
46258
46170
|
}
|
|
46259
46171
|
}
|
|
46260
|
-
export class
|
|
46172
|
+
export class UpsertSupplierToMeasurementFormInstanceRequest {
|
|
46261
46173
|
constructor(data) {
|
|
46262
46174
|
if (data) {
|
|
46263
46175
|
for (var property in data) {
|
|
@@ -46268,30 +46180,26 @@ export class SaveCommentRequest {
|
|
|
46268
46180
|
}
|
|
46269
46181
|
init(_data) {
|
|
46270
46182
|
if (_data) {
|
|
46271
|
-
this.
|
|
46272
|
-
this.
|
|
46273
|
-
this.
|
|
46274
|
-
this.serialNumber = _data["serialNumber"];
|
|
46275
|
-
this.comment = _data["comment"];
|
|
46183
|
+
this.procurementOrder = _data["procurementOrder"];
|
|
46184
|
+
this.procurementLine = _data["procurementLine"];
|
|
46185
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
46276
46186
|
}
|
|
46277
46187
|
}
|
|
46278
46188
|
static fromJS(data) {
|
|
46279
46189
|
data = typeof data === 'object' ? data : {};
|
|
46280
|
-
let result = new
|
|
46190
|
+
let result = new UpsertSupplierToMeasurementFormInstanceRequest();
|
|
46281
46191
|
result.init(data);
|
|
46282
46192
|
return result;
|
|
46283
46193
|
}
|
|
46284
46194
|
toJSON(data) {
|
|
46285
46195
|
data = typeof data === 'object' ? data : {};
|
|
46286
|
-
data["
|
|
46287
|
-
data["
|
|
46288
|
-
data["
|
|
46289
|
-
data["serialNumber"] = this.serialNumber;
|
|
46290
|
-
data["comment"] = this.comment;
|
|
46196
|
+
data["procurementOrder"] = this.procurementOrder;
|
|
46197
|
+
data["procurementLine"] = this.procurementLine;
|
|
46198
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
46291
46199
|
return data;
|
|
46292
46200
|
}
|
|
46293
46201
|
}
|
|
46294
|
-
export class
|
|
46202
|
+
export class ExportDimensionReportV2Request {
|
|
46295
46203
|
constructor(data) {
|
|
46296
46204
|
if (data) {
|
|
46297
46205
|
for (var property in data) {
|
|
@@ -46299,30 +46207,39 @@ export class BatchInsertValuesResponseDto {
|
|
|
46299
46207
|
this[property] = data[property];
|
|
46300
46208
|
}
|
|
46301
46209
|
}
|
|
46302
|
-
if (!data) {
|
|
46303
|
-
this.elementWithValues = new MeasurementFormInstanceElementDto();
|
|
46304
|
-
}
|
|
46305
46210
|
}
|
|
46306
46211
|
init(_data) {
|
|
46307
46212
|
if (_data) {
|
|
46308
|
-
this.
|
|
46309
|
-
this.
|
|
46213
|
+
this.tenantId = _data["tenantId"];
|
|
46214
|
+
this.type = _data["type"];
|
|
46215
|
+
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined;
|
|
46216
|
+
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
46217
|
+
this.specificSerialNumbers = [];
|
|
46218
|
+
for (let item of _data["specificSerialNumbers"])
|
|
46219
|
+
this.specificSerialNumbers.push(item);
|
|
46220
|
+
}
|
|
46310
46221
|
}
|
|
46311
46222
|
}
|
|
46312
46223
|
static fromJS(data) {
|
|
46313
46224
|
data = typeof data === 'object' ? data : {};
|
|
46314
|
-
let result = new
|
|
46225
|
+
let result = new ExportDimensionReportV2Request();
|
|
46315
46226
|
result.init(data);
|
|
46316
46227
|
return result;
|
|
46317
46228
|
}
|
|
46318
46229
|
toJSON(data) {
|
|
46319
46230
|
data = typeof data === 'object' ? data : {};
|
|
46320
|
-
data["
|
|
46321
|
-
data["
|
|
46231
|
+
data["tenantId"] = this.tenantId;
|
|
46232
|
+
data["type"] = this.type;
|
|
46233
|
+
data["extras"] = this.extras ? this.extras.toJSON() : undefined;
|
|
46234
|
+
if (Array.isArray(this.specificSerialNumbers)) {
|
|
46235
|
+
data["specificSerialNumbers"] = [];
|
|
46236
|
+
for (let item of this.specificSerialNumbers)
|
|
46237
|
+
data["specificSerialNumbers"].push(item);
|
|
46238
|
+
}
|
|
46322
46239
|
return data;
|
|
46323
46240
|
}
|
|
46324
46241
|
}
|
|
46325
|
-
export class
|
|
46242
|
+
export class DimensionReportExtras {
|
|
46326
46243
|
constructor(data) {
|
|
46327
46244
|
if (data) {
|
|
46328
46245
|
for (var property in data) {
|
|
@@ -46333,40 +46250,26 @@ export class BatchInsertValueRequest {
|
|
|
46333
46250
|
}
|
|
46334
46251
|
init(_data) {
|
|
46335
46252
|
if (_data) {
|
|
46336
|
-
this.
|
|
46337
|
-
this.
|
|
46338
|
-
this.
|
|
46339
|
-
this.resourceName = _data["resourceName"];
|
|
46340
|
-
this.value = _data["value"];
|
|
46341
|
-
if (Array.isArray(_data["tools"])) {
|
|
46342
|
-
this.tools = [];
|
|
46343
|
-
for (let item of _data["tools"])
|
|
46344
|
-
this.tools.push(item);
|
|
46345
|
-
}
|
|
46253
|
+
this.customerPO = _data["customerPO"];
|
|
46254
|
+
this.workOrderNumber = _data["workOrderNumber"];
|
|
46255
|
+
this.comment = _data["comment"];
|
|
46346
46256
|
}
|
|
46347
46257
|
}
|
|
46348
46258
|
static fromJS(data) {
|
|
46349
46259
|
data = typeof data === 'object' ? data : {};
|
|
46350
|
-
let result = new
|
|
46260
|
+
let result = new DimensionReportExtras();
|
|
46351
46261
|
result.init(data);
|
|
46352
46262
|
return result;
|
|
46353
46263
|
}
|
|
46354
46264
|
toJSON(data) {
|
|
46355
46265
|
data = typeof data === 'object' ? data : {};
|
|
46356
|
-
data["
|
|
46357
|
-
data["
|
|
46358
|
-
data["
|
|
46359
|
-
data["resourceName"] = this.resourceName;
|
|
46360
|
-
data["value"] = this.value;
|
|
46361
|
-
if (Array.isArray(this.tools)) {
|
|
46362
|
-
data["tools"] = [];
|
|
46363
|
-
for (let item of this.tools)
|
|
46364
|
-
data["tools"].push(item);
|
|
46365
|
-
}
|
|
46266
|
+
data["customerPO"] = this.customerPO;
|
|
46267
|
+
data["workOrderNumber"] = this.workOrderNumber;
|
|
46268
|
+
data["comment"] = this.comment;
|
|
46366
46269
|
return data;
|
|
46367
46270
|
}
|
|
46368
46271
|
}
|
|
46369
|
-
export class
|
|
46272
|
+
export class PagedResultOfMeasurementFormInstanceDto {
|
|
46370
46273
|
constructor(data) {
|
|
46371
46274
|
if (data) {
|
|
46372
46275
|
for (var property in data) {
|
|
@@ -46374,25 +46277,38 @@ export class SaveMeasurementFormInstanceSchemaCommentRequest {
|
|
|
46374
46277
|
this[property] = data[property];
|
|
46375
46278
|
}
|
|
46376
46279
|
}
|
|
46280
|
+
if (!data) {
|
|
46281
|
+
this.results = [];
|
|
46282
|
+
}
|
|
46377
46283
|
}
|
|
46378
46284
|
init(_data) {
|
|
46379
46285
|
if (_data) {
|
|
46380
|
-
|
|
46286
|
+
if (Array.isArray(_data["results"])) {
|
|
46287
|
+
this.results = [];
|
|
46288
|
+
for (let item of _data["results"])
|
|
46289
|
+
this.results.push(MeasurementFormInstanceDto.fromJS(item));
|
|
46290
|
+
}
|
|
46291
|
+
this.continuationToken = _data["continuationToken"];
|
|
46381
46292
|
}
|
|
46382
46293
|
}
|
|
46383
46294
|
static fromJS(data) {
|
|
46384
46295
|
data = typeof data === 'object' ? data : {};
|
|
46385
|
-
let result = new
|
|
46296
|
+
let result = new PagedResultOfMeasurementFormInstanceDto();
|
|
46386
46297
|
result.init(data);
|
|
46387
46298
|
return result;
|
|
46388
46299
|
}
|
|
46389
46300
|
toJSON(data) {
|
|
46390
46301
|
data = typeof data === 'object' ? data : {};
|
|
46391
|
-
|
|
46302
|
+
if (Array.isArray(this.results)) {
|
|
46303
|
+
data["results"] = [];
|
|
46304
|
+
for (let item of this.results)
|
|
46305
|
+
data["results"].push(item ? item.toJSON() : undefined);
|
|
46306
|
+
}
|
|
46307
|
+
data["continuationToken"] = this.continuationToken;
|
|
46392
46308
|
return data;
|
|
46393
46309
|
}
|
|
46394
46310
|
}
|
|
46395
|
-
export class
|
|
46311
|
+
export class DeleteMeasurementFormsInstancesBulkRequest {
|
|
46396
46312
|
constructor(data) {
|
|
46397
46313
|
if (data) {
|
|
46398
46314
|
for (var property in data) {
|
|
@@ -46400,43 +46316,36 @@ export class SchemaFeedbackCreatedDto {
|
|
|
46400
46316
|
this[property] = data[property];
|
|
46401
46317
|
}
|
|
46402
46318
|
}
|
|
46403
|
-
|
|
46404
|
-
|
|
46405
|
-
|
|
46406
|
-
|
|
46407
|
-
|
|
46408
|
-
|
|
46409
|
-
|
|
46410
|
-
|
|
46411
|
-
|
|
46412
|
-
|
|
46413
|
-
|
|
46414
|
-
this.from = _data["from"];
|
|
46415
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
46319
|
+
if (!data) {
|
|
46320
|
+
this.ids = [];
|
|
46321
|
+
}
|
|
46322
|
+
}
|
|
46323
|
+
init(_data) {
|
|
46324
|
+
if (_data) {
|
|
46325
|
+
if (Array.isArray(_data["ids"])) {
|
|
46326
|
+
this.ids = [];
|
|
46327
|
+
for (let item of _data["ids"])
|
|
46328
|
+
this.ids.push(item);
|
|
46329
|
+
}
|
|
46416
46330
|
}
|
|
46417
46331
|
}
|
|
46418
46332
|
static fromJS(data) {
|
|
46419
46333
|
data = typeof data === 'object' ? data : {};
|
|
46420
|
-
let result = new
|
|
46334
|
+
let result = new DeleteMeasurementFormsInstancesBulkRequest();
|
|
46421
46335
|
result.init(data);
|
|
46422
46336
|
return result;
|
|
46423
46337
|
}
|
|
46424
46338
|
toJSON(data) {
|
|
46425
46339
|
data = typeof data === 'object' ? data : {};
|
|
46426
|
-
|
|
46427
|
-
|
|
46428
|
-
|
|
46429
|
-
|
|
46430
|
-
|
|
46431
|
-
data["balloonId"] = this.balloonId;
|
|
46432
|
-
data["reference"] = this.reference;
|
|
46433
|
-
data["feedback"] = this.feedback;
|
|
46434
|
-
data["from"] = this.from;
|
|
46435
|
-
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
46340
|
+
if (Array.isArray(this.ids)) {
|
|
46341
|
+
data["ids"] = [];
|
|
46342
|
+
for (let item of this.ids)
|
|
46343
|
+
data["ids"].push(item);
|
|
46344
|
+
}
|
|
46436
46345
|
return data;
|
|
46437
46346
|
}
|
|
46438
46347
|
}
|
|
46439
|
-
export class
|
|
46348
|
+
export class ListMeasurementFormsByStatusRequest {
|
|
46440
46349
|
constructor(data) {
|
|
46441
46350
|
if (data) {
|
|
46442
46351
|
for (var property in data) {
|
|
@@ -46447,26 +46356,32 @@ export class CreateMeasurementFormSchemaFeedbackRequest {
|
|
|
46447
46356
|
}
|
|
46448
46357
|
init(_data) {
|
|
46449
46358
|
if (_data) {
|
|
46450
|
-
this.
|
|
46451
|
-
this.
|
|
46452
|
-
this.
|
|
46359
|
+
this.status = _data["status"];
|
|
46360
|
+
this.statusChangedSince = _data["statusChangedSince"] ? new Date(_data["statusChangedSince"].toString()) : undefined;
|
|
46361
|
+
this.onlyWithReports = _data["onlyWithReports"];
|
|
46362
|
+
this.pageSize = _data["pageSize"];
|
|
46363
|
+
this.search = _data["search"];
|
|
46364
|
+
this.continuationToken = _data["continuationToken"];
|
|
46453
46365
|
}
|
|
46454
46366
|
}
|
|
46455
46367
|
static fromJS(data) {
|
|
46456
46368
|
data = typeof data === 'object' ? data : {};
|
|
46457
|
-
let result = new
|
|
46369
|
+
let result = new ListMeasurementFormsByStatusRequest();
|
|
46458
46370
|
result.init(data);
|
|
46459
46371
|
return result;
|
|
46460
46372
|
}
|
|
46461
46373
|
toJSON(data) {
|
|
46462
46374
|
data = typeof data === 'object' ? data : {};
|
|
46463
|
-
data["
|
|
46464
|
-
data["
|
|
46465
|
-
data["
|
|
46375
|
+
data["status"] = this.status;
|
|
46376
|
+
data["statusChangedSince"] = this.statusChangedSince ? this.statusChangedSince.toISOString() : undefined;
|
|
46377
|
+
data["onlyWithReports"] = this.onlyWithReports;
|
|
46378
|
+
data["pageSize"] = this.pageSize;
|
|
46379
|
+
data["search"] = this.search;
|
|
46380
|
+
data["continuationToken"] = this.continuationToken;
|
|
46466
46381
|
return data;
|
|
46467
46382
|
}
|
|
46468
46383
|
}
|
|
46469
|
-
export class
|
|
46384
|
+
export class CreateMeasurementFormInstanceRequest {
|
|
46470
46385
|
constructor(data) {
|
|
46471
46386
|
if (data) {
|
|
46472
46387
|
for (var property in data) {
|
|
@@ -46475,53 +46390,53 @@ export class MeasurementFormSupplierAccessInstanceDto {
|
|
|
46475
46390
|
}
|
|
46476
46391
|
}
|
|
46477
46392
|
if (!data) {
|
|
46478
|
-
this.
|
|
46393
|
+
this.serialNumbers = [];
|
|
46479
46394
|
}
|
|
46480
46395
|
}
|
|
46481
46396
|
init(_data) {
|
|
46482
46397
|
if (_data) {
|
|
46483
|
-
this.
|
|
46484
|
-
this.readonly = _data["readonly"];
|
|
46485
|
-
this.partNumber = _data["partNumber"];
|
|
46486
|
-
this.partRevision = _data["partRevision"];
|
|
46487
|
-
this.drawing = _data["drawing"];
|
|
46488
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
46398
|
+
this.schemaId = _data["schemaId"];
|
|
46489
46399
|
this.customerId = _data["customerId"];
|
|
46490
|
-
this.
|
|
46491
|
-
this.
|
|
46492
|
-
if (Array.isArray(_data["
|
|
46493
|
-
this.
|
|
46494
|
-
for (let item of _data["
|
|
46495
|
-
this.
|
|
46400
|
+
this.customerName = _data["customerName"];
|
|
46401
|
+
this.purchaseOrder = _data["purchaseOrder"];
|
|
46402
|
+
if (Array.isArray(_data["sequences"])) {
|
|
46403
|
+
this.sequences = [];
|
|
46404
|
+
for (let item of _data["sequences"])
|
|
46405
|
+
this.sequences.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
46406
|
+
}
|
|
46407
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
46408
|
+
this.serialNumbers = [];
|
|
46409
|
+
for (let item of _data["serialNumbers"])
|
|
46410
|
+
this.serialNumbers.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
|
|
46496
46411
|
}
|
|
46497
46412
|
}
|
|
46498
46413
|
}
|
|
46499
46414
|
static fromJS(data) {
|
|
46500
46415
|
data = typeof data === 'object' ? data : {};
|
|
46501
|
-
let result = new
|
|
46416
|
+
let result = new CreateMeasurementFormInstanceRequest();
|
|
46502
46417
|
result.init(data);
|
|
46503
46418
|
return result;
|
|
46504
46419
|
}
|
|
46505
46420
|
toJSON(data) {
|
|
46506
46421
|
data = typeof data === 'object' ? data : {};
|
|
46507
|
-
data["
|
|
46508
|
-
data["readonly"] = this.readonly;
|
|
46509
|
-
data["partNumber"] = this.partNumber;
|
|
46510
|
-
data["partRevision"] = this.partRevision;
|
|
46511
|
-
data["drawing"] = this.drawing;
|
|
46512
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
46422
|
+
data["schemaId"] = this.schemaId;
|
|
46513
46423
|
data["customerId"] = this.customerId;
|
|
46514
|
-
data["
|
|
46515
|
-
data["
|
|
46516
|
-
if (Array.isArray(this.
|
|
46517
|
-
data["
|
|
46518
|
-
for (let item of this.
|
|
46519
|
-
data["
|
|
46424
|
+
data["customerName"] = this.customerName;
|
|
46425
|
+
data["purchaseOrder"] = this.purchaseOrder;
|
|
46426
|
+
if (Array.isArray(this.sequences)) {
|
|
46427
|
+
data["sequences"] = [];
|
|
46428
|
+
for (let item of this.sequences)
|
|
46429
|
+
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
46430
|
+
}
|
|
46431
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
46432
|
+
data["serialNumbers"] = [];
|
|
46433
|
+
for (let item of this.serialNumbers)
|
|
46434
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
46520
46435
|
}
|
|
46521
46436
|
return data;
|
|
46522
46437
|
}
|
|
46523
46438
|
}
|
|
46524
|
-
export class
|
|
46439
|
+
export class CreateMeasurementFormInstanceRequestSequence {
|
|
46525
46440
|
constructor(data) {
|
|
46526
46441
|
if (data) {
|
|
46527
46442
|
for (var property in data) {
|
|
@@ -46532,26 +46447,24 @@ export class UpsertSupplierToMeasurementFormInstanceRequest {
|
|
|
46532
46447
|
}
|
|
46533
46448
|
init(_data) {
|
|
46534
46449
|
if (_data) {
|
|
46535
|
-
this.
|
|
46536
|
-
this.
|
|
46537
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
46450
|
+
this.sequenceNumber = _data["sequenceNumber"];
|
|
46451
|
+
this.serialNumber = _data["serialNumber"];
|
|
46538
46452
|
}
|
|
46539
46453
|
}
|
|
46540
46454
|
static fromJS(data) {
|
|
46541
46455
|
data = typeof data === 'object' ? data : {};
|
|
46542
|
-
let result = new
|
|
46456
|
+
let result = new CreateMeasurementFormInstanceRequestSequence();
|
|
46543
46457
|
result.init(data);
|
|
46544
46458
|
return result;
|
|
46545
46459
|
}
|
|
46546
46460
|
toJSON(data) {
|
|
46547
46461
|
data = typeof data === 'object' ? data : {};
|
|
46548
|
-
data["
|
|
46549
|
-
data["
|
|
46550
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
46462
|
+
data["sequenceNumber"] = this.sequenceNumber;
|
|
46463
|
+
data["serialNumber"] = this.serialNumber;
|
|
46551
46464
|
return data;
|
|
46552
46465
|
}
|
|
46553
46466
|
}
|
|
46554
|
-
export class
|
|
46467
|
+
export class CreateMeasurementFormInstanceRequestSerialNumber {
|
|
46555
46468
|
constructor(data) {
|
|
46556
46469
|
if (data) {
|
|
46557
46470
|
for (var property in data) {
|
|
@@ -46562,36 +46475,24 @@ export class ExportDimensionReportV2Request {
|
|
|
46562
46475
|
}
|
|
46563
46476
|
init(_data) {
|
|
46564
46477
|
if (_data) {
|
|
46565
|
-
this.
|
|
46566
|
-
this.
|
|
46567
|
-
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined;
|
|
46568
|
-
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
46569
|
-
this.specificSerialNumbers = [];
|
|
46570
|
-
for (let item of _data["specificSerialNumbers"])
|
|
46571
|
-
this.specificSerialNumbers.push(item);
|
|
46572
|
-
}
|
|
46478
|
+
this.serialNumber = _data["serialNumber"];
|
|
46479
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
46573
46480
|
}
|
|
46574
46481
|
}
|
|
46575
46482
|
static fromJS(data) {
|
|
46576
46483
|
data = typeof data === 'object' ? data : {};
|
|
46577
|
-
let result = new
|
|
46484
|
+
let result = new CreateMeasurementFormInstanceRequestSerialNumber();
|
|
46578
46485
|
result.init(data);
|
|
46579
46486
|
return result;
|
|
46580
46487
|
}
|
|
46581
46488
|
toJSON(data) {
|
|
46582
46489
|
data = typeof data === 'object' ? data : {};
|
|
46583
|
-
data["
|
|
46584
|
-
data["
|
|
46585
|
-
data["extras"] = this.extras ? this.extras.toJSON() : undefined;
|
|
46586
|
-
if (Array.isArray(this.specificSerialNumbers)) {
|
|
46587
|
-
data["specificSerialNumbers"] = [];
|
|
46588
|
-
for (let item of this.specificSerialNumbers)
|
|
46589
|
-
data["specificSerialNumbers"].push(item);
|
|
46590
|
-
}
|
|
46490
|
+
data["serialNumber"] = this.serialNumber;
|
|
46491
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
46591
46492
|
return data;
|
|
46592
46493
|
}
|
|
46593
46494
|
}
|
|
46594
|
-
export class
|
|
46495
|
+
export class UpdateMeasurementFormInstanceRequest {
|
|
46595
46496
|
constructor(data) {
|
|
46596
46497
|
if (data) {
|
|
46597
46498
|
for (var property in data) {
|
|
@@ -46599,25 +46500,53 @@ export class DimensionReportExtras {
|
|
|
46599
46500
|
this[property] = data[property];
|
|
46600
46501
|
}
|
|
46601
46502
|
}
|
|
46503
|
+
if (!data) {
|
|
46504
|
+
this.serialNumbers = [];
|
|
46505
|
+
this.suppliers = [];
|
|
46506
|
+
}
|
|
46602
46507
|
}
|
|
46603
46508
|
init(_data) {
|
|
46604
46509
|
if (_data) {
|
|
46605
|
-
|
|
46606
|
-
|
|
46607
|
-
|
|
46510
|
+
if (Array.isArray(_data["sequences"])) {
|
|
46511
|
+
this.sequences = [];
|
|
46512
|
+
for (let item of _data["sequences"])
|
|
46513
|
+
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
46514
|
+
}
|
|
46515
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
46516
|
+
this.serialNumbers = [];
|
|
46517
|
+
for (let item of _data["serialNumbers"])
|
|
46518
|
+
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
46519
|
+
}
|
|
46520
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
46521
|
+
this.suppliers = [];
|
|
46522
|
+
for (let item of _data["suppliers"])
|
|
46523
|
+
this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
46524
|
+
}
|
|
46608
46525
|
}
|
|
46609
46526
|
}
|
|
46610
46527
|
static fromJS(data) {
|
|
46611
46528
|
data = typeof data === 'object' ? data : {};
|
|
46612
|
-
let result = new
|
|
46529
|
+
let result = new UpdateMeasurementFormInstanceRequest();
|
|
46613
46530
|
result.init(data);
|
|
46614
46531
|
return result;
|
|
46615
46532
|
}
|
|
46616
46533
|
toJSON(data) {
|
|
46617
46534
|
data = typeof data === 'object' ? data : {};
|
|
46618
|
-
|
|
46619
|
-
|
|
46620
|
-
|
|
46535
|
+
if (Array.isArray(this.sequences)) {
|
|
46536
|
+
data["sequences"] = [];
|
|
46537
|
+
for (let item of this.sequences)
|
|
46538
|
+
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
46539
|
+
}
|
|
46540
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
46541
|
+
data["serialNumbers"] = [];
|
|
46542
|
+
for (let item of this.serialNumbers)
|
|
46543
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
46544
|
+
}
|
|
46545
|
+
if (Array.isArray(this.suppliers)) {
|
|
46546
|
+
data["suppliers"] = [];
|
|
46547
|
+
for (let item of this.suppliers)
|
|
46548
|
+
data["suppliers"].push(item ? item.toJSON() : undefined);
|
|
46549
|
+
}
|
|
46621
46550
|
return data;
|
|
46622
46551
|
}
|
|
46623
46552
|
}
|
|
@@ -47471,7 +47400,7 @@ export class ResourceExistDto {
|
|
|
47471
47400
|
return data;
|
|
47472
47401
|
}
|
|
47473
47402
|
}
|
|
47474
|
-
export class
|
|
47403
|
+
export class RegisterWorkorderOperationEventRequest {
|
|
47475
47404
|
constructor(data) {
|
|
47476
47405
|
if (data) {
|
|
47477
47406
|
for (var property in data) {
|
|
@@ -47482,42 +47411,44 @@ export class StartWorkOperationRequest {
|
|
|
47482
47411
|
}
|
|
47483
47412
|
init(_data) {
|
|
47484
47413
|
if (_data) {
|
|
47414
|
+
this.workorderDescription = _data["workorderDescription"];
|
|
47415
|
+
this.operationDescription = _data["operationDescription"];
|
|
47485
47416
|
this.isSetup = _data["isSetup"];
|
|
47486
47417
|
this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
|
|
47487
47418
|
this.resourceId = _data["resourceId"];
|
|
47488
47419
|
this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined;
|
|
47489
47420
|
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
|
|
47490
47421
|
this.workorderQuantity = _data["workorderQuantity"];
|
|
47491
|
-
this.
|
|
47422
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
47423
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
47492
47424
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
47493
47425
|
this.materialPartName = _data["materialPartName"];
|
|
47494
47426
|
this.materialItemGroup = _data["materialItemGroup"];
|
|
47495
|
-
this.workorderDescription = _data["workorderDescription"];
|
|
47496
|
-
this.operationDescription = _data["operationDescription"];
|
|
47497
47427
|
this.externalId = _data["externalId"];
|
|
47498
47428
|
this.companyId = _data["companyId"];
|
|
47499
47429
|
}
|
|
47500
47430
|
}
|
|
47501
47431
|
static fromJS(data) {
|
|
47502
47432
|
data = typeof data === 'object' ? data : {};
|
|
47503
|
-
let result = new
|
|
47433
|
+
let result = new RegisterWorkorderOperationEventRequest();
|
|
47504
47434
|
result.init(data);
|
|
47505
47435
|
return result;
|
|
47506
47436
|
}
|
|
47507
47437
|
toJSON(data) {
|
|
47508
47438
|
data = typeof data === 'object' ? data : {};
|
|
47439
|
+
data["workorderDescription"] = this.workorderDescription;
|
|
47440
|
+
data["operationDescription"] = this.operationDescription;
|
|
47509
47441
|
data["isSetup"] = this.isSetup;
|
|
47510
47442
|
data["employee"] = this.employee ? this.employee.toJSON() : undefined;
|
|
47511
47443
|
data["resourceId"] = this.resourceId;
|
|
47512
47444
|
data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined;
|
|
47513
47445
|
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
47514
47446
|
data["workorderQuantity"] = this.workorderQuantity;
|
|
47515
|
-
data["
|
|
47447
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
47448
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
47516
47449
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
47517
47450
|
data["materialPartName"] = this.materialPartName;
|
|
47518
47451
|
data["materialItemGroup"] = this.materialItemGroup;
|
|
47519
|
-
data["workorderDescription"] = this.workorderDescription;
|
|
47520
|
-
data["operationDescription"] = this.operationDescription;
|
|
47521
47452
|
data["externalId"] = this.externalId;
|
|
47522
47453
|
data["companyId"] = this.companyId;
|
|
47523
47454
|
return data;
|
|
@@ -47553,7 +47484,7 @@ export class CustomerOrderInfoDto {
|
|
|
47553
47484
|
return data;
|
|
47554
47485
|
}
|
|
47555
47486
|
}
|
|
47556
|
-
export class
|
|
47487
|
+
export class StartWorkOperationRequest {
|
|
47557
47488
|
constructor(data) {
|
|
47558
47489
|
if (data) {
|
|
47559
47490
|
for (var property in data) {
|
|
@@ -47566,14 +47497,23 @@ export class StopWorkOperationRequest {
|
|
|
47566
47497
|
if (_data) {
|
|
47567
47498
|
this.isSetup = _data["isSetup"];
|
|
47568
47499
|
this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
|
|
47569
|
-
this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined;
|
|
47570
47500
|
this.resourceId = _data["resourceId"];
|
|
47501
|
+
this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined;
|
|
47502
|
+
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
|
|
47503
|
+
this.workorderQuantity = _data["workorderQuantity"];
|
|
47504
|
+
this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined;
|
|
47505
|
+
this.materialPartNumber = _data["materialPartNumber"];
|
|
47506
|
+
this.materialPartName = _data["materialPartName"];
|
|
47507
|
+
this.materialItemGroup = _data["materialItemGroup"];
|
|
47508
|
+
this.workorderDescription = _data["workorderDescription"];
|
|
47509
|
+
this.operationDescription = _data["operationDescription"];
|
|
47510
|
+
this.externalId = _data["externalId"];
|
|
47571
47511
|
this.companyId = _data["companyId"];
|
|
47572
47512
|
}
|
|
47573
47513
|
}
|
|
47574
47514
|
static fromJS(data) {
|
|
47575
47515
|
data = typeof data === 'object' ? data : {};
|
|
47576
|
-
let result = new
|
|
47516
|
+
let result = new StartWorkOperationRequest();
|
|
47577
47517
|
result.init(data);
|
|
47578
47518
|
return result;
|
|
47579
47519
|
}
|
|
@@ -47581,13 +47521,22 @@ export class StopWorkOperationRequest {
|
|
|
47581
47521
|
data = typeof data === 'object' ? data : {};
|
|
47582
47522
|
data["isSetup"] = this.isSetup;
|
|
47583
47523
|
data["employee"] = this.employee ? this.employee.toJSON() : undefined;
|
|
47584
|
-
data["time"] = this.time ? this.time.toISOString() : undefined;
|
|
47585
47524
|
data["resourceId"] = this.resourceId;
|
|
47525
|
+
data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined;
|
|
47526
|
+
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
47527
|
+
data["workorderQuantity"] = this.workorderQuantity;
|
|
47528
|
+
data["time"] = this.time ? this.time.toISOString() : undefined;
|
|
47529
|
+
data["materialPartNumber"] = this.materialPartNumber;
|
|
47530
|
+
data["materialPartName"] = this.materialPartName;
|
|
47531
|
+
data["materialItemGroup"] = this.materialItemGroup;
|
|
47532
|
+
data["workorderDescription"] = this.workorderDescription;
|
|
47533
|
+
data["operationDescription"] = this.operationDescription;
|
|
47534
|
+
data["externalId"] = this.externalId;
|
|
47586
47535
|
data["companyId"] = this.companyId;
|
|
47587
47536
|
return data;
|
|
47588
47537
|
}
|
|
47589
47538
|
}
|
|
47590
|
-
export class
|
|
47539
|
+
export class StopWorkOperationRequest {
|
|
47591
47540
|
constructor(data) {
|
|
47592
47541
|
if (data) {
|
|
47593
47542
|
for (var property in data) {
|
|
@@ -47598,46 +47547,28 @@ export class RegisterWorkorderOperationEventRequest {
|
|
|
47598
47547
|
}
|
|
47599
47548
|
init(_data) {
|
|
47600
47549
|
if (_data) {
|
|
47601
|
-
this.workorderDescription = _data["workorderDescription"];
|
|
47602
|
-
this.operationDescription = _data["operationDescription"];
|
|
47603
47550
|
this.isSetup = _data["isSetup"];
|
|
47604
47551
|
this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
|
|
47552
|
+
this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined;
|
|
47605
47553
|
this.resourceId = _data["resourceId"];
|
|
47606
|
-
this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined;
|
|
47607
|
-
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
|
|
47608
|
-
this.workorderQuantity = _data["workorderQuantity"];
|
|
47609
|
-
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
47610
|
-
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
47611
|
-
this.materialPartNumber = _data["materialPartNumber"];
|
|
47612
|
-
this.materialPartName = _data["materialPartName"];
|
|
47613
|
-
this.materialItemGroup = _data["materialItemGroup"];
|
|
47614
|
-
this.externalId = _data["externalId"];
|
|
47615
47554
|
this.companyId = _data["companyId"];
|
|
47555
|
+
this.ignoreNotFoundEvents = _data["ignoreNotFoundEvents"];
|
|
47616
47556
|
}
|
|
47617
47557
|
}
|
|
47618
47558
|
static fromJS(data) {
|
|
47619
47559
|
data = typeof data === 'object' ? data : {};
|
|
47620
|
-
let result = new
|
|
47560
|
+
let result = new StopWorkOperationRequest();
|
|
47621
47561
|
result.init(data);
|
|
47622
47562
|
return result;
|
|
47623
47563
|
}
|
|
47624
47564
|
toJSON(data) {
|
|
47625
47565
|
data = typeof data === 'object' ? data : {};
|
|
47626
|
-
data["workorderDescription"] = this.workorderDescription;
|
|
47627
|
-
data["operationDescription"] = this.operationDescription;
|
|
47628
47566
|
data["isSetup"] = this.isSetup;
|
|
47629
47567
|
data["employee"] = this.employee ? this.employee.toJSON() : undefined;
|
|
47568
|
+
data["time"] = this.time ? this.time.toISOString() : undefined;
|
|
47630
47569
|
data["resourceId"] = this.resourceId;
|
|
47631
|
-
data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined;
|
|
47632
|
-
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
47633
|
-
data["workorderQuantity"] = this.workorderQuantity;
|
|
47634
|
-
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
47635
|
-
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
47636
|
-
data["materialPartNumber"] = this.materialPartNumber;
|
|
47637
|
-
data["materialPartName"] = this.materialPartName;
|
|
47638
|
-
data["materialItemGroup"] = this.materialItemGroup;
|
|
47639
|
-
data["externalId"] = this.externalId;
|
|
47640
47570
|
data["companyId"] = this.companyId;
|
|
47571
|
+
data["ignoreNotFoundEvents"] = this.ignoreNotFoundEvents;
|
|
47641
47572
|
return data;
|
|
47642
47573
|
}
|
|
47643
47574
|
}
|