@ignos/api-client 20251114.0.13234-alpha → 20251209.0.13462-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +343 -288
- package/lib/ignosportal-api.js +1009 -972
- package/package.json +1 -1
- package/src/ignosportal-api.ts +1528 -1436
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,10 +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
|
-
|
|
22820
|
+
processStopWorkorderOperationV2(response) {
|
|
22799
22821
|
const status = response.status;
|
|
22800
22822
|
let _headers = {};
|
|
22801
22823
|
if (response.headers && response.headers.forEach) {
|
|
@@ -22818,10 +22840,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22818
22840
|
return Promise.resolve(null);
|
|
22819
22841
|
}
|
|
22820
22842
|
/**
|
|
22821
|
-
*
|
|
22843
|
+
* Sync work order operation
|
|
22822
22844
|
*/
|
|
22823
|
-
|
|
22824
|
-
let url_ = this.baseUrl + "/
|
|
22845
|
+
syncWorkorderOperation(id, operation, request) {
|
|
22846
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/sync";
|
|
22825
22847
|
if (id === undefined || id === null)
|
|
22826
22848
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22827
22849
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -22841,59 +22863,10 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
22841
22863
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22842
22864
|
return this.http.fetch(url_, transformedOptions_);
|
|
22843
22865
|
}).then((_response) => {
|
|
22844
|
-
return this.
|
|
22866
|
+
return this.processSyncWorkorderOperation(_response);
|
|
22845
22867
|
});
|
|
22846
22868
|
}
|
|
22847
|
-
|
|
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) {
|
|
22869
|
+
processSyncWorkorderOperation(response) {
|
|
22897
22870
|
const status = response.status;
|
|
22898
22871
|
let _headers = {};
|
|
22899
22872
|
if (response.headers && response.headers.forEach) {
|
|
@@ -27474,6 +27447,8 @@ export class MrbTemplateDto {
|
|
|
27474
27447
|
this.sharedAccessUri = _data["sharedAccessUri"];
|
|
27475
27448
|
this.contentIndicator = _data["contentIndicator"];
|
|
27476
27449
|
this.noContentIndicator = _data["noContentIndicator"];
|
|
27450
|
+
this.showSerialNumbersOnFrontPage = _data["showSerialNumbersOnFrontPage"];
|
|
27451
|
+
this.showSerialNumbersOnCoC = _data["showSerialNumbersOnCoC"];
|
|
27477
27452
|
if (Array.isArray(_data["elements"])) {
|
|
27478
27453
|
this.elements = [];
|
|
27479
27454
|
for (let item of _data["elements"])
|
|
@@ -27500,6 +27475,8 @@ export class MrbTemplateDto {
|
|
|
27500
27475
|
data["sharedAccessUri"] = this.sharedAccessUri;
|
|
27501
27476
|
data["contentIndicator"] = this.contentIndicator;
|
|
27502
27477
|
data["noContentIndicator"] = this.noContentIndicator;
|
|
27478
|
+
data["showSerialNumbersOnFrontPage"] = this.showSerialNumbersOnFrontPage;
|
|
27479
|
+
data["showSerialNumbersOnCoC"] = this.showSerialNumbersOnCoC;
|
|
27503
27480
|
if (Array.isArray(this.elements)) {
|
|
27504
27481
|
data["elements"] = [];
|
|
27505
27482
|
for (let item of this.elements)
|
|
@@ -27868,6 +27845,7 @@ export class MrbCompanySettingsDto {
|
|
|
27868
27845
|
this.hideVendorBatchInfo = _data["hideVendorBatchInfo"];
|
|
27869
27846
|
this.lotLabel = _data["lotLabel"];
|
|
27870
27847
|
this.vendorBatchLabel = _data["vendorBatchLabel"];
|
|
27848
|
+
this.ownArticleLabel = _data["ownArticleLabel"];
|
|
27871
27849
|
this.coCStatement = _data["coCStatement"];
|
|
27872
27850
|
if (Array.isArray(_data["addressLines"])) {
|
|
27873
27851
|
this.addressLines = [];
|
|
@@ -27900,6 +27878,7 @@ export class MrbCompanySettingsDto {
|
|
|
27900
27878
|
data["hideVendorBatchInfo"] = this.hideVendorBatchInfo;
|
|
27901
27879
|
data["lotLabel"] = this.lotLabel;
|
|
27902
27880
|
data["vendorBatchLabel"] = this.vendorBatchLabel;
|
|
27881
|
+
data["ownArticleLabel"] = this.ownArticleLabel;
|
|
27903
27882
|
data["coCStatement"] = this.coCStatement;
|
|
27904
27883
|
if (Array.isArray(this.addressLines)) {
|
|
27905
27884
|
data["addressLines"] = [];
|
|
@@ -27940,6 +27919,7 @@ export class UpsertMrbCompanySettings {
|
|
|
27940
27919
|
this.hideVendorBatchInfo = _data["hideVendorBatchInfo"];
|
|
27941
27920
|
this.lotLabel = _data["lotLabel"];
|
|
27942
27921
|
this.vendorBatchLabel = _data["vendorBatchLabel"];
|
|
27922
|
+
this.ownArticleLabel = _data["ownArticleLabel"];
|
|
27943
27923
|
this.coCStatement = _data["coCStatement"];
|
|
27944
27924
|
if (Array.isArray(_data["addressLines"])) {
|
|
27945
27925
|
this.addressLines = [];
|
|
@@ -27972,6 +27952,7 @@ export class UpsertMrbCompanySettings {
|
|
|
27972
27952
|
data["hideVendorBatchInfo"] = this.hideVendorBatchInfo;
|
|
27973
27953
|
data["lotLabel"] = this.lotLabel;
|
|
27974
27954
|
data["vendorBatchLabel"] = this.vendorBatchLabel;
|
|
27955
|
+
data["ownArticleLabel"] = this.ownArticleLabel;
|
|
27975
27956
|
data["coCStatement"] = this.coCStatement;
|
|
27976
27957
|
if (Array.isArray(this.addressLines)) {
|
|
27977
27958
|
data["addressLines"] = [];
|
|
@@ -44688,34 +44669,6 @@ export class AddResourceTypeForNeedsGenerator {
|
|
|
44688
44669
|
return data;
|
|
44689
44670
|
}
|
|
44690
44671
|
}
|
|
44691
|
-
export class MeasurementFrequencyDto {
|
|
44692
|
-
constructor(data) {
|
|
44693
|
-
if (data) {
|
|
44694
|
-
for (var property in data) {
|
|
44695
|
-
if (data.hasOwnProperty(property))
|
|
44696
|
-
this[property] = data[property];
|
|
44697
|
-
}
|
|
44698
|
-
}
|
|
44699
|
-
}
|
|
44700
|
-
init(_data) {
|
|
44701
|
-
if (_data) {
|
|
44702
|
-
this.id = _data["id"];
|
|
44703
|
-
this.name = _data["name"];
|
|
44704
|
-
}
|
|
44705
|
-
}
|
|
44706
|
-
static fromJS(data) {
|
|
44707
|
-
data = typeof data === 'object' ? data : {};
|
|
44708
|
-
let result = new MeasurementFrequencyDto();
|
|
44709
|
-
result.init(data);
|
|
44710
|
-
return result;
|
|
44711
|
-
}
|
|
44712
|
-
toJSON(data) {
|
|
44713
|
-
data = typeof data === 'object' ? data : {};
|
|
44714
|
-
data["id"] = this.id;
|
|
44715
|
-
data["name"] = this.name;
|
|
44716
|
-
return data;
|
|
44717
|
-
}
|
|
44718
|
-
}
|
|
44719
44672
|
export class PagedResultOfSchemaFeedbackDto {
|
|
44720
44673
|
constructor(data) {
|
|
44721
44674
|
if (data) {
|
|
@@ -44955,7 +44908,7 @@ export class ListMeasurementFormSchemasRequest {
|
|
|
44955
44908
|
return data;
|
|
44956
44909
|
}
|
|
44957
44910
|
}
|
|
44958
|
-
export class
|
|
44911
|
+
export class MeasurementFrequencyDto {
|
|
44959
44912
|
constructor(data) {
|
|
44960
44913
|
if (data) {
|
|
44961
44914
|
for (var property in data) {
|
|
@@ -44963,38 +44916,27 @@ export class PagedResultOfMeasurementFormInstanceOverviewDto {
|
|
|
44963
44916
|
this[property] = data[property];
|
|
44964
44917
|
}
|
|
44965
44918
|
}
|
|
44966
|
-
if (!data) {
|
|
44967
|
-
this.results = [];
|
|
44968
|
-
}
|
|
44969
44919
|
}
|
|
44970
44920
|
init(_data) {
|
|
44971
44921
|
if (_data) {
|
|
44972
|
-
|
|
44973
|
-
|
|
44974
|
-
for (let item of _data["results"])
|
|
44975
|
-
this.results.push(MeasurementFormInstanceOverviewDto.fromJS(item));
|
|
44976
|
-
}
|
|
44977
|
-
this.continuationToken = _data["continuationToken"];
|
|
44922
|
+
this.id = _data["id"];
|
|
44923
|
+
this.name = _data["name"];
|
|
44978
44924
|
}
|
|
44979
44925
|
}
|
|
44980
44926
|
static fromJS(data) {
|
|
44981
44927
|
data = typeof data === 'object' ? data : {};
|
|
44982
|
-
let result = new
|
|
44928
|
+
let result = new MeasurementFrequencyDto();
|
|
44983
44929
|
result.init(data);
|
|
44984
44930
|
return result;
|
|
44985
44931
|
}
|
|
44986
44932
|
toJSON(data) {
|
|
44987
44933
|
data = typeof data === 'object' ? data : {};
|
|
44988
|
-
|
|
44989
|
-
|
|
44990
|
-
for (let item of this.results)
|
|
44991
|
-
data["results"].push(item ? item.toJSON() : undefined);
|
|
44992
|
-
}
|
|
44993
|
-
data["continuationToken"] = this.continuationToken;
|
|
44934
|
+
data["id"] = this.id;
|
|
44935
|
+
data["name"] = this.name;
|
|
44994
44936
|
return data;
|
|
44995
44937
|
}
|
|
44996
44938
|
}
|
|
44997
|
-
export class
|
|
44939
|
+
export class MeasurementFormInstanceDto {
|
|
44998
44940
|
constructor(data) {
|
|
44999
44941
|
if (data) {
|
|
45000
44942
|
for (var property in data) {
|
|
@@ -45004,6 +44946,8 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
45004
44946
|
}
|
|
45005
44947
|
if (!data) {
|
|
45006
44948
|
this.schemas = [];
|
|
44949
|
+
this.serialNumbers = [];
|
|
44950
|
+
this.suppliers = [];
|
|
45007
44951
|
this.progress = new MeasurementFormProgressDto();
|
|
45008
44952
|
}
|
|
45009
44953
|
}
|
|
@@ -45011,28 +44955,44 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
45011
44955
|
if (_data) {
|
|
45012
44956
|
this.id = _data["id"];
|
|
45013
44957
|
this.readonly = _data["readonly"];
|
|
45014
|
-
this.partName = _data["partName"];
|
|
45015
44958
|
this.partNumber = _data["partNumber"];
|
|
44959
|
+
this.partName = _data["partName"];
|
|
45016
44960
|
this.partRevision = _data["partRevision"];
|
|
45017
44961
|
this.drawing = _data["drawing"];
|
|
45018
44962
|
this.drawingRevision = _data["drawingRevision"];
|
|
45019
|
-
this.drawingUrl = _data["drawingUrl"];
|
|
45020
44963
|
this.customerId = _data["customerId"];
|
|
45021
44964
|
this.customerName = _data["customerName"];
|
|
45022
44965
|
this.quantity = _data["quantity"];
|
|
45023
44966
|
this.status = _data["status"];
|
|
44967
|
+
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
|
|
45024
44968
|
if (Array.isArray(_data["schemas"])) {
|
|
45025
44969
|
this.schemas = [];
|
|
45026
44970
|
for (let item of _data["schemas"])
|
|
45027
|
-
this.schemas.push(
|
|
44971
|
+
this.schemas.push(MeasurementFormWorkorderSchemaDto.fromJS(item));
|
|
44972
|
+
}
|
|
44973
|
+
if (Array.isArray(_data["sequences"])) {
|
|
44974
|
+
this.sequences = [];
|
|
44975
|
+
for (let item of _data["sequences"])
|
|
44976
|
+
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
44977
|
+
}
|
|
44978
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
44979
|
+
this.serialNumbers = [];
|
|
44980
|
+
for (let item of _data["serialNumbers"])
|
|
44981
|
+
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
44982
|
+
}
|
|
44983
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
44984
|
+
this.suppliers = [];
|
|
44985
|
+
for (let item of _data["suppliers"])
|
|
44986
|
+
this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
45028
44987
|
}
|
|
45029
|
-
this.supplierData = _data["supplierData"] ? MeasurementFormInstanceSupplierDto.fromJS(_data["supplierData"]) : undefined;
|
|
45030
44988
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
44989
|
+
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
44990
|
+
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined;
|
|
45031
44991
|
}
|
|
45032
44992
|
}
|
|
45033
44993
|
static fromJS(data) {
|
|
45034
44994
|
data = typeof data === 'object' ? data : {};
|
|
45035
|
-
let result = new
|
|
44995
|
+
let result = new MeasurementFormInstanceDto();
|
|
45036
44996
|
result.init(data);
|
|
45037
44997
|
return result;
|
|
45038
44998
|
}
|
|
@@ -45040,27 +45000,43 @@ export class MeasurementFormInstanceOverviewDto {
|
|
|
45040
45000
|
data = typeof data === 'object' ? data : {};
|
|
45041
45001
|
data["id"] = this.id;
|
|
45042
45002
|
data["readonly"] = this.readonly;
|
|
45043
|
-
data["partName"] = this.partName;
|
|
45044
45003
|
data["partNumber"] = this.partNumber;
|
|
45004
|
+
data["partName"] = this.partName;
|
|
45045
45005
|
data["partRevision"] = this.partRevision;
|
|
45046
45006
|
data["drawing"] = this.drawing;
|
|
45047
45007
|
data["drawingRevision"] = this.drawingRevision;
|
|
45048
|
-
data["drawingUrl"] = this.drawingUrl;
|
|
45049
45008
|
data["customerId"] = this.customerId;
|
|
45050
45009
|
data["customerName"] = this.customerName;
|
|
45051
45010
|
data["quantity"] = this.quantity;
|
|
45052
45011
|
data["status"] = this.status;
|
|
45012
|
+
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
|
|
45053
45013
|
if (Array.isArray(this.schemas)) {
|
|
45054
45014
|
data["schemas"] = [];
|
|
45055
45015
|
for (let item of this.schemas)
|
|
45056
45016
|
data["schemas"].push(item ? item.toJSON() : undefined);
|
|
45057
45017
|
}
|
|
45058
|
-
|
|
45018
|
+
if (Array.isArray(this.sequences)) {
|
|
45019
|
+
data["sequences"] = [];
|
|
45020
|
+
for (let item of this.sequences)
|
|
45021
|
+
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
45022
|
+
}
|
|
45023
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
45024
|
+
data["serialNumbers"] = [];
|
|
45025
|
+
for (let item of this.serialNumbers)
|
|
45026
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
45027
|
+
}
|
|
45028
|
+
if (Array.isArray(this.suppliers)) {
|
|
45029
|
+
data["suppliers"] = [];
|
|
45030
|
+
for (let item of this.suppliers)
|
|
45031
|
+
data["suppliers"].push(item ? item.toJSON() : undefined);
|
|
45032
|
+
}
|
|
45059
45033
|
data["progress"] = this.progress ? this.progress.toJSON() : undefined;
|
|
45034
|
+
data["approvedReportUrl"] = this.approvedReportUrl;
|
|
45035
|
+
data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : undefined;
|
|
45060
45036
|
return data;
|
|
45061
45037
|
}
|
|
45062
45038
|
}
|
|
45063
|
-
export class
|
|
45039
|
+
export class MeasurementFormWorkorderSchemaDto {
|
|
45064
45040
|
constructor(data) {
|
|
45065
45041
|
if (data) {
|
|
45066
45042
|
for (var property in data) {
|
|
@@ -45068,25 +45044,50 @@ export class MeasurementFormInstanceSchemaOverviewDto {
|
|
|
45068
45044
|
this[property] = data[property];
|
|
45069
45045
|
}
|
|
45070
45046
|
}
|
|
45047
|
+
if (!data) {
|
|
45048
|
+
this.progress = new MeasurementFormProgressDto();
|
|
45049
|
+
}
|
|
45071
45050
|
}
|
|
45072
45051
|
init(_data) {
|
|
45073
45052
|
if (_data) {
|
|
45074
45053
|
this.id = _data["id"];
|
|
45054
|
+
this.partNumber = _data["partNumber"];
|
|
45055
|
+
this.partRevision = _data["partRevision"];
|
|
45056
|
+
this.drawing = _data["drawing"];
|
|
45057
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
45058
|
+
this.customerId = _data["customerId"];
|
|
45059
|
+
this.drawingUrl = _data["drawingUrl"];
|
|
45060
|
+
this.markedDrawingUrl = _data["markedDrawingUrl"];
|
|
45061
|
+
this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
|
|
45062
|
+
this.versionId = _data["versionId"];
|
|
45063
|
+
this.specification = _data["specification"];
|
|
45064
|
+
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
45075
45065
|
}
|
|
45076
45066
|
}
|
|
45077
45067
|
static fromJS(data) {
|
|
45078
45068
|
data = typeof data === 'object' ? data : {};
|
|
45079
|
-
let result = new
|
|
45069
|
+
let result = new MeasurementFormWorkorderSchemaDto();
|
|
45080
45070
|
result.init(data);
|
|
45081
45071
|
return result;
|
|
45082
45072
|
}
|
|
45083
45073
|
toJSON(data) {
|
|
45084
45074
|
data = typeof data === 'object' ? data : {};
|
|
45085
45075
|
data["id"] = this.id;
|
|
45076
|
+
data["partNumber"] = this.partNumber;
|
|
45077
|
+
data["partRevision"] = this.partRevision;
|
|
45078
|
+
data["drawing"] = this.drawing;
|
|
45079
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
45080
|
+
data["customerId"] = this.customerId;
|
|
45081
|
+
data["drawingUrl"] = this.drawingUrl;
|
|
45082
|
+
data["markedDrawingUrl"] = this.markedDrawingUrl;
|
|
45083
|
+
data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
|
|
45084
|
+
data["versionId"] = this.versionId;
|
|
45085
|
+
data["specification"] = this.specification;
|
|
45086
|
+
data["progress"] = this.progress ? this.progress.toJSON() : undefined;
|
|
45086
45087
|
return data;
|
|
45087
45088
|
}
|
|
45088
45089
|
}
|
|
45089
|
-
export class
|
|
45090
|
+
export class MeasurementFormProgressDto {
|
|
45090
45091
|
constructor(data) {
|
|
45091
45092
|
if (data) {
|
|
45092
45093
|
for (var property in data) {
|
|
@@ -45097,32 +45098,28 @@ export class MeasurementFormInstanceSupplierDto {
|
|
|
45097
45098
|
}
|
|
45098
45099
|
init(_data) {
|
|
45099
45100
|
if (_data) {
|
|
45100
|
-
this.
|
|
45101
|
-
this.
|
|
45102
|
-
this.
|
|
45103
|
-
this.
|
|
45104
|
-
this.procurementLine = _data["procurementLine"];
|
|
45105
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45101
|
+
this.id = _data["id"];
|
|
45102
|
+
this.requiredValues = _data["requiredValues"];
|
|
45103
|
+
this.values = _data["values"];
|
|
45104
|
+
this.progress = _data["progress"];
|
|
45106
45105
|
}
|
|
45107
45106
|
}
|
|
45108
45107
|
static fromJS(data) {
|
|
45109
45108
|
data = typeof data === 'object' ? data : {};
|
|
45110
|
-
let result = new
|
|
45109
|
+
let result = new MeasurementFormProgressDto();
|
|
45111
45110
|
result.init(data);
|
|
45112
45111
|
return result;
|
|
45113
45112
|
}
|
|
45114
45113
|
toJSON(data) {
|
|
45115
45114
|
data = typeof data === 'object' ? data : {};
|
|
45116
|
-
data["
|
|
45117
|
-
data["
|
|
45118
|
-
data["
|
|
45119
|
-
data["
|
|
45120
|
-
data["procurementLine"] = this.procurementLine;
|
|
45121
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45115
|
+
data["id"] = this.id;
|
|
45116
|
+
data["requiredValues"] = this.requiredValues;
|
|
45117
|
+
data["values"] = this.values;
|
|
45118
|
+
data["progress"] = this.progress;
|
|
45122
45119
|
return data;
|
|
45123
45120
|
}
|
|
45124
45121
|
}
|
|
45125
|
-
export class
|
|
45122
|
+
export class MeasurementFormWorkorderSequenceDto {
|
|
45126
45123
|
constructor(data) {
|
|
45127
45124
|
if (data) {
|
|
45128
45125
|
for (var property in data) {
|
|
@@ -45133,28 +45130,26 @@ export class MeasurementFormProgressDto {
|
|
|
45133
45130
|
}
|
|
45134
45131
|
init(_data) {
|
|
45135
45132
|
if (_data) {
|
|
45136
|
-
this.
|
|
45137
|
-
this.
|
|
45138
|
-
this.
|
|
45139
|
-
this.progress = _data["progress"];
|
|
45133
|
+
this.lot = _data["lot"];
|
|
45134
|
+
this.sequence = _data["sequence"];
|
|
45135
|
+
this.serialNumber = _data["serialNumber"];
|
|
45140
45136
|
}
|
|
45141
45137
|
}
|
|
45142
45138
|
static fromJS(data) {
|
|
45143
45139
|
data = typeof data === 'object' ? data : {};
|
|
45144
|
-
let result = new
|
|
45140
|
+
let result = new MeasurementFormWorkorderSequenceDto();
|
|
45145
45141
|
result.init(data);
|
|
45146
45142
|
return result;
|
|
45147
45143
|
}
|
|
45148
45144
|
toJSON(data) {
|
|
45149
45145
|
data = typeof data === 'object' ? data : {};
|
|
45150
|
-
data["
|
|
45151
|
-
data["
|
|
45152
|
-
data["
|
|
45153
|
-
data["progress"] = this.progress;
|
|
45146
|
+
data["lot"] = this.lot;
|
|
45147
|
+
data["sequence"] = this.sequence;
|
|
45148
|
+
data["serialNumber"] = this.serialNumber;
|
|
45154
45149
|
return data;
|
|
45155
45150
|
}
|
|
45156
45151
|
}
|
|
45157
|
-
export class
|
|
45152
|
+
export class MeasurementFormWorkorderSerialNumberDto {
|
|
45158
45153
|
constructor(data) {
|
|
45159
45154
|
if (data) {
|
|
45160
45155
|
for (var property in data) {
|
|
@@ -45165,32 +45160,26 @@ export class ListMeasurementFormsRequest {
|
|
|
45165
45160
|
}
|
|
45166
45161
|
init(_data) {
|
|
45167
45162
|
if (_data) {
|
|
45168
|
-
this.
|
|
45169
|
-
this.
|
|
45170
|
-
this.
|
|
45171
|
-
this.tenantId = _data["tenantId"];
|
|
45172
|
-
this.inactive = _data["inactive"];
|
|
45173
|
-
this.includeInactiveSupplierAccess = _data["includeInactiveSupplierAccess"];
|
|
45163
|
+
this.lot = _data["lot"];
|
|
45164
|
+
this.serialNumber = _data["serialNumber"];
|
|
45165
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
45174
45166
|
}
|
|
45175
45167
|
}
|
|
45176
45168
|
static fromJS(data) {
|
|
45177
45169
|
data = typeof data === 'object' ? data : {};
|
|
45178
|
-
let result = new
|
|
45170
|
+
let result = new MeasurementFormWorkorderSerialNumberDto();
|
|
45179
45171
|
result.init(data);
|
|
45180
45172
|
return result;
|
|
45181
45173
|
}
|
|
45182
45174
|
toJSON(data) {
|
|
45183
45175
|
data = typeof data === 'object' ? data : {};
|
|
45184
|
-
data["
|
|
45185
|
-
data["
|
|
45186
|
-
data["
|
|
45187
|
-
data["tenantId"] = this.tenantId;
|
|
45188
|
-
data["inactive"] = this.inactive;
|
|
45189
|
-
data["includeInactiveSupplierAccess"] = this.includeInactiveSupplierAccess;
|
|
45176
|
+
data["lot"] = this.lot;
|
|
45177
|
+
data["serialNumber"] = this.serialNumber;
|
|
45178
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
45190
45179
|
return data;
|
|
45191
45180
|
}
|
|
45192
45181
|
}
|
|
45193
|
-
export class
|
|
45182
|
+
export class MeasurementFormWorkorderSupplierDto {
|
|
45194
45183
|
constructor(data) {
|
|
45195
45184
|
if (data) {
|
|
45196
45185
|
for (var property in data) {
|
|
@@ -45198,38 +45187,35 @@ export class PagedResultOfMeasurementFormInstanceDto {
|
|
|
45198
45187
|
this[property] = data[property];
|
|
45199
45188
|
}
|
|
45200
45189
|
}
|
|
45201
|
-
if (!data) {
|
|
45202
|
-
this.results = [];
|
|
45203
|
-
}
|
|
45204
45190
|
}
|
|
45205
45191
|
init(_data) {
|
|
45206
45192
|
if (_data) {
|
|
45207
|
-
|
|
45208
|
-
|
|
45209
|
-
|
|
45210
|
-
|
|
45211
|
-
|
|
45212
|
-
this.
|
|
45193
|
+
this.supplierId = _data["supplierId"];
|
|
45194
|
+
this.supplierName = _data["supplierName"];
|
|
45195
|
+
this.available = _data["available"];
|
|
45196
|
+
this.procurementOrder = _data["procurementOrder"];
|
|
45197
|
+
this.procurementLine = _data["procurementLine"];
|
|
45198
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45213
45199
|
}
|
|
45214
45200
|
}
|
|
45215
45201
|
static fromJS(data) {
|
|
45216
45202
|
data = typeof data === 'object' ? data : {};
|
|
45217
|
-
let result = new
|
|
45203
|
+
let result = new MeasurementFormWorkorderSupplierDto();
|
|
45218
45204
|
result.init(data);
|
|
45219
45205
|
return result;
|
|
45220
45206
|
}
|
|
45221
45207
|
toJSON(data) {
|
|
45222
45208
|
data = typeof data === 'object' ? data : {};
|
|
45223
|
-
|
|
45224
|
-
|
|
45225
|
-
|
|
45226
|
-
|
|
45227
|
-
|
|
45228
|
-
data["
|
|
45209
|
+
data["supplierId"] = this.supplierId;
|
|
45210
|
+
data["supplierName"] = this.supplierName;
|
|
45211
|
+
data["available"] = this.available;
|
|
45212
|
+
data["procurementOrder"] = this.procurementOrder;
|
|
45213
|
+
data["procurementLine"] = this.procurementLine;
|
|
45214
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45229
45215
|
return data;
|
|
45230
45216
|
}
|
|
45231
45217
|
}
|
|
45232
|
-
export class
|
|
45218
|
+
export class PagedResultOfMeasurementFormInstanceOverviewDto {
|
|
45233
45219
|
constructor(data) {
|
|
45234
45220
|
if (data) {
|
|
45235
45221
|
for (var property in data) {
|
|
@@ -45238,98 +45224,37 @@ export class MeasurementFormInstanceDto {
|
|
|
45238
45224
|
}
|
|
45239
45225
|
}
|
|
45240
45226
|
if (!data) {
|
|
45241
|
-
this.
|
|
45242
|
-
this.serialNumbers = [];
|
|
45243
|
-
this.suppliers = [];
|
|
45244
|
-
this.progress = new MeasurementFormProgressDto();
|
|
45227
|
+
this.results = [];
|
|
45245
45228
|
}
|
|
45246
45229
|
}
|
|
45247
45230
|
init(_data) {
|
|
45248
45231
|
if (_data) {
|
|
45249
|
-
|
|
45250
|
-
|
|
45251
|
-
|
|
45252
|
-
|
|
45253
|
-
this.partRevision = _data["partRevision"];
|
|
45254
|
-
this.drawing = _data["drawing"];
|
|
45255
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
45256
|
-
this.customerId = _data["customerId"];
|
|
45257
|
-
this.customerName = _data["customerName"];
|
|
45258
|
-
this.quantity = _data["quantity"];
|
|
45259
|
-
this.status = _data["status"];
|
|
45260
|
-
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
|
|
45261
|
-
if (Array.isArray(_data["schemas"])) {
|
|
45262
|
-
this.schemas = [];
|
|
45263
|
-
for (let item of _data["schemas"])
|
|
45264
|
-
this.schemas.push(MeasurementFormWorkorderSchemaDto.fromJS(item));
|
|
45265
|
-
}
|
|
45266
|
-
if (Array.isArray(_data["sequences"])) {
|
|
45267
|
-
this.sequences = [];
|
|
45268
|
-
for (let item of _data["sequences"])
|
|
45269
|
-
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
45270
|
-
}
|
|
45271
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
45272
|
-
this.serialNumbers = [];
|
|
45273
|
-
for (let item of _data["serialNumbers"])
|
|
45274
|
-
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
45275
|
-
}
|
|
45276
|
-
if (Array.isArray(_data["suppliers"])) {
|
|
45277
|
-
this.suppliers = [];
|
|
45278
|
-
for (let item of _data["suppliers"])
|
|
45279
|
-
this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
45232
|
+
if (Array.isArray(_data["results"])) {
|
|
45233
|
+
this.results = [];
|
|
45234
|
+
for (let item of _data["results"])
|
|
45235
|
+
this.results.push(MeasurementFormInstanceOverviewDto.fromJS(item));
|
|
45280
45236
|
}
|
|
45281
|
-
this.
|
|
45282
|
-
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
45283
|
-
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined;
|
|
45237
|
+
this.continuationToken = _data["continuationToken"];
|
|
45284
45238
|
}
|
|
45285
45239
|
}
|
|
45286
45240
|
static fromJS(data) {
|
|
45287
45241
|
data = typeof data === 'object' ? data : {};
|
|
45288
|
-
let result = new
|
|
45242
|
+
let result = new PagedResultOfMeasurementFormInstanceOverviewDto();
|
|
45289
45243
|
result.init(data);
|
|
45290
45244
|
return result;
|
|
45291
45245
|
}
|
|
45292
45246
|
toJSON(data) {
|
|
45293
45247
|
data = typeof data === 'object' ? data : {};
|
|
45294
|
-
|
|
45295
|
-
|
|
45296
|
-
|
|
45297
|
-
|
|
45298
|
-
data["partRevision"] = this.partRevision;
|
|
45299
|
-
data["drawing"] = this.drawing;
|
|
45300
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
45301
|
-
data["customerId"] = this.customerId;
|
|
45302
|
-
data["customerName"] = this.customerName;
|
|
45303
|
-
data["quantity"] = this.quantity;
|
|
45304
|
-
data["status"] = this.status;
|
|
45305
|
-
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
|
|
45306
|
-
if (Array.isArray(this.schemas)) {
|
|
45307
|
-
data["schemas"] = [];
|
|
45308
|
-
for (let item of this.schemas)
|
|
45309
|
-
data["schemas"].push(item ? item.toJSON() : undefined);
|
|
45310
|
-
}
|
|
45311
|
-
if (Array.isArray(this.sequences)) {
|
|
45312
|
-
data["sequences"] = [];
|
|
45313
|
-
for (let item of this.sequences)
|
|
45314
|
-
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
45315
|
-
}
|
|
45316
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
45317
|
-
data["serialNumbers"] = [];
|
|
45318
|
-
for (let item of this.serialNumbers)
|
|
45319
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
45320
|
-
}
|
|
45321
|
-
if (Array.isArray(this.suppliers)) {
|
|
45322
|
-
data["suppliers"] = [];
|
|
45323
|
-
for (let item of this.suppliers)
|
|
45324
|
-
data["suppliers"].push(item ? item.toJSON() : undefined);
|
|
45248
|
+
if (Array.isArray(this.results)) {
|
|
45249
|
+
data["results"] = [];
|
|
45250
|
+
for (let item of this.results)
|
|
45251
|
+
data["results"].push(item ? item.toJSON() : undefined);
|
|
45325
45252
|
}
|
|
45326
|
-
data["
|
|
45327
|
-
data["approvedReportUrl"] = this.approvedReportUrl;
|
|
45328
|
-
data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : undefined;
|
|
45253
|
+
data["continuationToken"] = this.continuationToken;
|
|
45329
45254
|
return data;
|
|
45330
45255
|
}
|
|
45331
45256
|
}
|
|
45332
|
-
export class
|
|
45257
|
+
export class MeasurementFormInstanceOverviewDto {
|
|
45333
45258
|
constructor(data) {
|
|
45334
45259
|
if (data) {
|
|
45335
45260
|
for (var property in data) {
|
|
@@ -45338,79 +45263,64 @@ export class MeasurementFormWorkorderSchemaDto {
|
|
|
45338
45263
|
}
|
|
45339
45264
|
}
|
|
45340
45265
|
if (!data) {
|
|
45266
|
+
this.schemas = [];
|
|
45341
45267
|
this.progress = new MeasurementFormProgressDto();
|
|
45342
45268
|
}
|
|
45343
45269
|
}
|
|
45344
45270
|
init(_data) {
|
|
45345
45271
|
if (_data) {
|
|
45346
45272
|
this.id = _data["id"];
|
|
45273
|
+
this.readonly = _data["readonly"];
|
|
45274
|
+
this.partName = _data["partName"];
|
|
45347
45275
|
this.partNumber = _data["partNumber"];
|
|
45348
45276
|
this.partRevision = _data["partRevision"];
|
|
45349
45277
|
this.drawing = _data["drawing"];
|
|
45350
45278
|
this.drawingRevision = _data["drawingRevision"];
|
|
45351
|
-
this.customerId = _data["customerId"];
|
|
45352
45279
|
this.drawingUrl = _data["drawingUrl"];
|
|
45353
|
-
this.
|
|
45354
|
-
this.
|
|
45355
|
-
this.
|
|
45356
|
-
this.
|
|
45280
|
+
this.customerId = _data["customerId"];
|
|
45281
|
+
this.customerName = _data["customerName"];
|
|
45282
|
+
this.quantity = _data["quantity"];
|
|
45283
|
+
this.status = _data["status"];
|
|
45284
|
+
if (Array.isArray(_data["schemas"])) {
|
|
45285
|
+
this.schemas = [];
|
|
45286
|
+
for (let item of _data["schemas"])
|
|
45287
|
+
this.schemas.push(MeasurementFormInstanceSchemaOverviewDto.fromJS(item));
|
|
45288
|
+
}
|
|
45289
|
+
this.supplierData = _data["supplierData"] ? MeasurementFormInstanceSupplierDto.fromJS(_data["supplierData"]) : undefined;
|
|
45357
45290
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
45358
45291
|
}
|
|
45359
45292
|
}
|
|
45360
45293
|
static fromJS(data) {
|
|
45361
45294
|
data = typeof data === 'object' ? data : {};
|
|
45362
|
-
let result = new
|
|
45295
|
+
let result = new MeasurementFormInstanceOverviewDto();
|
|
45363
45296
|
result.init(data);
|
|
45364
45297
|
return result;
|
|
45365
45298
|
}
|
|
45366
45299
|
toJSON(data) {
|
|
45367
45300
|
data = typeof data === 'object' ? data : {};
|
|
45368
45301
|
data["id"] = this.id;
|
|
45302
|
+
data["readonly"] = this.readonly;
|
|
45303
|
+
data["partName"] = this.partName;
|
|
45369
45304
|
data["partNumber"] = this.partNumber;
|
|
45370
45305
|
data["partRevision"] = this.partRevision;
|
|
45371
45306
|
data["drawing"] = this.drawing;
|
|
45372
45307
|
data["drawingRevision"] = this.drawingRevision;
|
|
45373
|
-
data["customerId"] = this.customerId;
|
|
45374
45308
|
data["drawingUrl"] = this.drawingUrl;
|
|
45375
|
-
data["
|
|
45376
|
-
data["
|
|
45377
|
-
data["
|
|
45378
|
-
data["
|
|
45379
|
-
|
|
45380
|
-
|
|
45381
|
-
|
|
45382
|
-
|
|
45383
|
-
export class MeasurementFormWorkorderSequenceDto {
|
|
45384
|
-
constructor(data) {
|
|
45385
|
-
if (data) {
|
|
45386
|
-
for (var property in data) {
|
|
45387
|
-
if (data.hasOwnProperty(property))
|
|
45388
|
-
this[property] = data[property];
|
|
45389
|
-
}
|
|
45390
|
-
}
|
|
45391
|
-
}
|
|
45392
|
-
init(_data) {
|
|
45393
|
-
if (_data) {
|
|
45394
|
-
this.lot = _data["lot"];
|
|
45395
|
-
this.sequence = _data["sequence"];
|
|
45396
|
-
this.serialNumber = _data["serialNumber"];
|
|
45309
|
+
data["customerId"] = this.customerId;
|
|
45310
|
+
data["customerName"] = this.customerName;
|
|
45311
|
+
data["quantity"] = this.quantity;
|
|
45312
|
+
data["status"] = this.status;
|
|
45313
|
+
if (Array.isArray(this.schemas)) {
|
|
45314
|
+
data["schemas"] = [];
|
|
45315
|
+
for (let item of this.schemas)
|
|
45316
|
+
data["schemas"].push(item ? item.toJSON() : undefined);
|
|
45397
45317
|
}
|
|
45398
|
-
|
|
45399
|
-
|
|
45400
|
-
data = typeof data === 'object' ? data : {};
|
|
45401
|
-
let result = new MeasurementFormWorkorderSequenceDto();
|
|
45402
|
-
result.init(data);
|
|
45403
|
-
return result;
|
|
45404
|
-
}
|
|
45405
|
-
toJSON(data) {
|
|
45406
|
-
data = typeof data === 'object' ? data : {};
|
|
45407
|
-
data["lot"] = this.lot;
|
|
45408
|
-
data["sequence"] = this.sequence;
|
|
45409
|
-
data["serialNumber"] = this.serialNumber;
|
|
45318
|
+
data["supplierData"] = this.supplierData ? this.supplierData.toJSON() : undefined;
|
|
45319
|
+
data["progress"] = this.progress ? this.progress.toJSON() : undefined;
|
|
45410
45320
|
return data;
|
|
45411
45321
|
}
|
|
45412
45322
|
}
|
|
45413
|
-
export class
|
|
45323
|
+
export class MeasurementFormInstanceSchemaOverviewDto {
|
|
45414
45324
|
constructor(data) {
|
|
45415
45325
|
if (data) {
|
|
45416
45326
|
for (var property in data) {
|
|
@@ -45421,26 +45331,22 @@ export class MeasurementFormWorkorderSerialNumberDto {
|
|
|
45421
45331
|
}
|
|
45422
45332
|
init(_data) {
|
|
45423
45333
|
if (_data) {
|
|
45424
|
-
this.
|
|
45425
|
-
this.serialNumber = _data["serialNumber"];
|
|
45426
|
-
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
45334
|
+
this.id = _data["id"];
|
|
45427
45335
|
}
|
|
45428
45336
|
}
|
|
45429
45337
|
static fromJS(data) {
|
|
45430
45338
|
data = typeof data === 'object' ? data : {};
|
|
45431
|
-
let result = new
|
|
45339
|
+
let result = new MeasurementFormInstanceSchemaOverviewDto();
|
|
45432
45340
|
result.init(data);
|
|
45433
45341
|
return result;
|
|
45434
45342
|
}
|
|
45435
45343
|
toJSON(data) {
|
|
45436
45344
|
data = typeof data === 'object' ? data : {};
|
|
45437
|
-
data["
|
|
45438
|
-
data["serialNumber"] = this.serialNumber;
|
|
45439
|
-
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
45345
|
+
data["id"] = this.id;
|
|
45440
45346
|
return data;
|
|
45441
45347
|
}
|
|
45442
45348
|
}
|
|
45443
|
-
export class
|
|
45349
|
+
export class MeasurementFormInstanceSupplierDto {
|
|
45444
45350
|
constructor(data) {
|
|
45445
45351
|
if (data) {
|
|
45446
45352
|
for (var property in data) {
|
|
@@ -45461,7 +45367,7 @@ export class MeasurementFormWorkorderSupplierDto {
|
|
|
45461
45367
|
}
|
|
45462
45368
|
static fromJS(data) {
|
|
45463
45369
|
data = typeof data === 'object' ? data : {};
|
|
45464
|
-
let result = new
|
|
45370
|
+
let result = new MeasurementFormInstanceSupplierDto();
|
|
45465
45371
|
result.init(data);
|
|
45466
45372
|
return result;
|
|
45467
45373
|
}
|
|
@@ -45476,44 +45382,7 @@ export class MeasurementFormWorkorderSupplierDto {
|
|
|
45476
45382
|
return data;
|
|
45477
45383
|
}
|
|
45478
45384
|
}
|
|
45479
|
-
export class
|
|
45480
|
-
constructor(data) {
|
|
45481
|
-
if (data) {
|
|
45482
|
-
for (var property in data) {
|
|
45483
|
-
if (data.hasOwnProperty(property))
|
|
45484
|
-
this[property] = data[property];
|
|
45485
|
-
}
|
|
45486
|
-
}
|
|
45487
|
-
if (!data) {
|
|
45488
|
-
this.ids = [];
|
|
45489
|
-
}
|
|
45490
|
-
}
|
|
45491
|
-
init(_data) {
|
|
45492
|
-
if (_data) {
|
|
45493
|
-
if (Array.isArray(_data["ids"])) {
|
|
45494
|
-
this.ids = [];
|
|
45495
|
-
for (let item of _data["ids"])
|
|
45496
|
-
this.ids.push(item);
|
|
45497
|
-
}
|
|
45498
|
-
}
|
|
45499
|
-
}
|
|
45500
|
-
static fromJS(data) {
|
|
45501
|
-
data = typeof data === 'object' ? data : {};
|
|
45502
|
-
let result = new DeleteMeasurementFormsInstancesBulkRequest();
|
|
45503
|
-
result.init(data);
|
|
45504
|
-
return result;
|
|
45505
|
-
}
|
|
45506
|
-
toJSON(data) {
|
|
45507
|
-
data = typeof data === 'object' ? data : {};
|
|
45508
|
-
if (Array.isArray(this.ids)) {
|
|
45509
|
-
data["ids"] = [];
|
|
45510
|
-
for (let item of this.ids)
|
|
45511
|
-
data["ids"].push(item);
|
|
45512
|
-
}
|
|
45513
|
-
return data;
|
|
45514
|
-
}
|
|
45515
|
-
}
|
|
45516
|
-
export class ListMeasurementFormsByStatusRequest {
|
|
45385
|
+
export class ListMeasurementFormsRequest {
|
|
45517
45386
|
constructor(data) {
|
|
45518
45387
|
if (data) {
|
|
45519
45388
|
for (var property in data) {
|
|
@@ -45524,28 +45393,28 @@ export class ListMeasurementFormsByStatusRequest {
|
|
|
45524
45393
|
}
|
|
45525
45394
|
init(_data) {
|
|
45526
45395
|
if (_data) {
|
|
45527
|
-
this.status = _data["status"];
|
|
45528
|
-
this.statusChangedSince = _data["statusChangedSince"] ? new Date(_data["statusChangedSince"].toString()) : undefined;
|
|
45529
|
-
this.onlyWithReports = _data["onlyWithReports"];
|
|
45530
45396
|
this.pageSize = _data["pageSize"];
|
|
45531
45397
|
this.search = _data["search"];
|
|
45532
45398
|
this.continuationToken = _data["continuationToken"];
|
|
45399
|
+
this.tenantId = _data["tenantId"];
|
|
45400
|
+
this.inactive = _data["inactive"];
|
|
45401
|
+
this.includeInactiveSupplierAccess = _data["includeInactiveSupplierAccess"];
|
|
45533
45402
|
}
|
|
45534
45403
|
}
|
|
45535
45404
|
static fromJS(data) {
|
|
45536
45405
|
data = typeof data === 'object' ? data : {};
|
|
45537
|
-
let result = new
|
|
45406
|
+
let result = new ListMeasurementFormsRequest();
|
|
45538
45407
|
result.init(data);
|
|
45539
45408
|
return result;
|
|
45540
45409
|
}
|
|
45541
45410
|
toJSON(data) {
|
|
45542
45411
|
data = typeof data === 'object' ? data : {};
|
|
45543
|
-
data["status"] = this.status;
|
|
45544
|
-
data["statusChangedSince"] = this.statusChangedSince ? this.statusChangedSince.toISOString() : undefined;
|
|
45545
|
-
data["onlyWithReports"] = this.onlyWithReports;
|
|
45546
45412
|
data["pageSize"] = this.pageSize;
|
|
45547
45413
|
data["search"] = this.search;
|
|
45548
45414
|
data["continuationToken"] = this.continuationToken;
|
|
45415
|
+
data["tenantId"] = this.tenantId;
|
|
45416
|
+
data["inactive"] = this.inactive;
|
|
45417
|
+
data["includeInactiveSupplierAccess"] = this.includeInactiveSupplierAccess;
|
|
45549
45418
|
return data;
|
|
45550
45419
|
}
|
|
45551
45420
|
}
|
|
@@ -45593,7 +45462,7 @@ export class MeasurementFormInstanceFeedbackDto {
|
|
|
45593
45462
|
return data;
|
|
45594
45463
|
}
|
|
45595
45464
|
}
|
|
45596
|
-
export class
|
|
45465
|
+
export class MeasurementFormInstanceSchemaDto {
|
|
45597
45466
|
constructor(data) {
|
|
45598
45467
|
if (data) {
|
|
45599
45468
|
for (var property in data) {
|
|
@@ -45602,184 +45471,15 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
45602
45471
|
}
|
|
45603
45472
|
}
|
|
45604
45473
|
if (!data) {
|
|
45605
|
-
this.
|
|
45474
|
+
this.elements = [];
|
|
45606
45475
|
}
|
|
45607
45476
|
}
|
|
45608
45477
|
init(_data) {
|
|
45609
45478
|
if (_data) {
|
|
45610
|
-
|
|
45611
|
-
|
|
45612
|
-
|
|
45613
|
-
|
|
45614
|
-
if (Array.isArray(_data["sequences"])) {
|
|
45615
|
-
this.sequences = [];
|
|
45616
|
-
for (let item of _data["sequences"])
|
|
45617
|
-
this.sequences.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
45618
|
-
}
|
|
45619
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
45620
|
-
this.serialNumbers = [];
|
|
45621
|
-
for (let item of _data["serialNumbers"])
|
|
45622
|
-
this.serialNumbers.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
|
|
45623
|
-
}
|
|
45624
|
-
}
|
|
45625
|
-
}
|
|
45626
|
-
static fromJS(data) {
|
|
45627
|
-
data = typeof data === 'object' ? data : {};
|
|
45628
|
-
let result = new CreateMeasurementFormInstanceRequest();
|
|
45629
|
-
result.init(data);
|
|
45630
|
-
return result;
|
|
45631
|
-
}
|
|
45632
|
-
toJSON(data) {
|
|
45633
|
-
data = typeof data === 'object' ? data : {};
|
|
45634
|
-
data["schemaId"] = this.schemaId;
|
|
45635
|
-
data["customerId"] = this.customerId;
|
|
45636
|
-
data["customerName"] = this.customerName;
|
|
45637
|
-
data["purchaseOrder"] = this.purchaseOrder;
|
|
45638
|
-
if (Array.isArray(this.sequences)) {
|
|
45639
|
-
data["sequences"] = [];
|
|
45640
|
-
for (let item of this.sequences)
|
|
45641
|
-
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
45642
|
-
}
|
|
45643
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
45644
|
-
data["serialNumbers"] = [];
|
|
45645
|
-
for (let item of this.serialNumbers)
|
|
45646
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
45647
|
-
}
|
|
45648
|
-
return data;
|
|
45649
|
-
}
|
|
45650
|
-
}
|
|
45651
|
-
export class CreateMeasurementFormInstanceRequestSequence {
|
|
45652
|
-
constructor(data) {
|
|
45653
|
-
if (data) {
|
|
45654
|
-
for (var property in data) {
|
|
45655
|
-
if (data.hasOwnProperty(property))
|
|
45656
|
-
this[property] = data[property];
|
|
45657
|
-
}
|
|
45658
|
-
}
|
|
45659
|
-
}
|
|
45660
|
-
init(_data) {
|
|
45661
|
-
if (_data) {
|
|
45662
|
-
this.sequenceNumber = _data["sequenceNumber"];
|
|
45663
|
-
this.serialNumber = _data["serialNumber"];
|
|
45664
|
-
}
|
|
45665
|
-
}
|
|
45666
|
-
static fromJS(data) {
|
|
45667
|
-
data = typeof data === 'object' ? data : {};
|
|
45668
|
-
let result = new CreateMeasurementFormInstanceRequestSequence();
|
|
45669
|
-
result.init(data);
|
|
45670
|
-
return result;
|
|
45671
|
-
}
|
|
45672
|
-
toJSON(data) {
|
|
45673
|
-
data = typeof data === 'object' ? data : {};
|
|
45674
|
-
data["sequenceNumber"] = this.sequenceNumber;
|
|
45675
|
-
data["serialNumber"] = this.serialNumber;
|
|
45676
|
-
return data;
|
|
45677
|
-
}
|
|
45678
|
-
}
|
|
45679
|
-
export class CreateMeasurementFormInstanceRequestSerialNumber {
|
|
45680
|
-
constructor(data) {
|
|
45681
|
-
if (data) {
|
|
45682
|
-
for (var property in data) {
|
|
45683
|
-
if (data.hasOwnProperty(property))
|
|
45684
|
-
this[property] = data[property];
|
|
45685
|
-
}
|
|
45686
|
-
}
|
|
45687
|
-
}
|
|
45688
|
-
init(_data) {
|
|
45689
|
-
if (_data) {
|
|
45690
|
-
this.serialNumber = _data["serialNumber"];
|
|
45691
|
-
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
45692
|
-
}
|
|
45693
|
-
}
|
|
45694
|
-
static fromJS(data) {
|
|
45695
|
-
data = typeof data === 'object' ? data : {};
|
|
45696
|
-
let result = new CreateMeasurementFormInstanceRequestSerialNumber();
|
|
45697
|
-
result.init(data);
|
|
45698
|
-
return result;
|
|
45699
|
-
}
|
|
45700
|
-
toJSON(data) {
|
|
45701
|
-
data = typeof data === 'object' ? data : {};
|
|
45702
|
-
data["serialNumber"] = this.serialNumber;
|
|
45703
|
-
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
45704
|
-
return data;
|
|
45705
|
-
}
|
|
45706
|
-
}
|
|
45707
|
-
export class UpdateMeasurementFormInstanceRequest {
|
|
45708
|
-
constructor(data) {
|
|
45709
|
-
if (data) {
|
|
45710
|
-
for (var property in data) {
|
|
45711
|
-
if (data.hasOwnProperty(property))
|
|
45712
|
-
this[property] = data[property];
|
|
45713
|
-
}
|
|
45714
|
-
}
|
|
45715
|
-
if (!data) {
|
|
45716
|
-
this.serialNumbers = [];
|
|
45717
|
-
this.suppliers = [];
|
|
45718
|
-
}
|
|
45719
|
-
}
|
|
45720
|
-
init(_data) {
|
|
45721
|
-
if (_data) {
|
|
45722
|
-
if (Array.isArray(_data["sequences"])) {
|
|
45723
|
-
this.sequences = [];
|
|
45724
|
-
for (let item of _data["sequences"])
|
|
45725
|
-
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
45726
|
-
}
|
|
45727
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
45728
|
-
this.serialNumbers = [];
|
|
45729
|
-
for (let item of _data["serialNumbers"])
|
|
45730
|
-
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
45731
|
-
}
|
|
45732
|
-
if (Array.isArray(_data["suppliers"])) {
|
|
45733
|
-
this.suppliers = [];
|
|
45734
|
-
for (let item of _data["suppliers"])
|
|
45735
|
-
this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
45736
|
-
}
|
|
45737
|
-
}
|
|
45738
|
-
}
|
|
45739
|
-
static fromJS(data) {
|
|
45740
|
-
data = typeof data === 'object' ? data : {};
|
|
45741
|
-
let result = new UpdateMeasurementFormInstanceRequest();
|
|
45742
|
-
result.init(data);
|
|
45743
|
-
return result;
|
|
45744
|
-
}
|
|
45745
|
-
toJSON(data) {
|
|
45746
|
-
data = typeof data === 'object' ? data : {};
|
|
45747
|
-
if (Array.isArray(this.sequences)) {
|
|
45748
|
-
data["sequences"] = [];
|
|
45749
|
-
for (let item of this.sequences)
|
|
45750
|
-
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
45751
|
-
}
|
|
45752
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
45753
|
-
data["serialNumbers"] = [];
|
|
45754
|
-
for (let item of this.serialNumbers)
|
|
45755
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
45756
|
-
}
|
|
45757
|
-
if (Array.isArray(this.suppliers)) {
|
|
45758
|
-
data["suppliers"] = [];
|
|
45759
|
-
for (let item of this.suppliers)
|
|
45760
|
-
data["suppliers"].push(item ? item.toJSON() : undefined);
|
|
45761
|
-
}
|
|
45762
|
-
return data;
|
|
45763
|
-
}
|
|
45764
|
-
}
|
|
45765
|
-
export class MeasurementFormInstanceSchemaDto {
|
|
45766
|
-
constructor(data) {
|
|
45767
|
-
if (data) {
|
|
45768
|
-
for (var property in data) {
|
|
45769
|
-
if (data.hasOwnProperty(property))
|
|
45770
|
-
this[property] = data[property];
|
|
45771
|
-
}
|
|
45772
|
-
}
|
|
45773
|
-
if (!data) {
|
|
45774
|
-
this.elements = [];
|
|
45775
|
-
}
|
|
45776
|
-
}
|
|
45777
|
-
init(_data) {
|
|
45778
|
-
if (_data) {
|
|
45779
|
-
if (Array.isArray(_data["elements"])) {
|
|
45780
|
-
this.elements = [];
|
|
45781
|
-
for (let item of _data["elements"])
|
|
45782
|
-
this.elements.push(MeasurementFormInstanceElementDto.fromJS(item));
|
|
45479
|
+
if (Array.isArray(_data["elements"])) {
|
|
45480
|
+
this.elements = [];
|
|
45481
|
+
for (let item of _data["elements"])
|
|
45482
|
+
this.elements.push(MeasurementFormInstanceElementDto.fromJS(item));
|
|
45783
45483
|
}
|
|
45784
45484
|
this.isCompleted = _data["isCompleted"];
|
|
45785
45485
|
this.comment = _data["comment"];
|
|
@@ -46425,26 +46125,287 @@ export class SchemaFeedbackCreatedDto {
|
|
|
46425
46125
|
}
|
|
46426
46126
|
static fromJS(data) {
|
|
46427
46127
|
data = typeof data === 'object' ? data : {};
|
|
46428
|
-
let result = new SchemaFeedbackCreatedDto();
|
|
46128
|
+
let result = new SchemaFeedbackCreatedDto();
|
|
46129
|
+
result.init(data);
|
|
46130
|
+
return result;
|
|
46131
|
+
}
|
|
46132
|
+
toJSON(data) {
|
|
46133
|
+
data = typeof data === 'object' ? data : {};
|
|
46134
|
+
data["id"] = this.id;
|
|
46135
|
+
data["workOrder"] = this.workOrder;
|
|
46136
|
+
data["schemaId"] = this.schemaId;
|
|
46137
|
+
data["versionId"] = this.versionId;
|
|
46138
|
+
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
46139
|
+
data["balloonId"] = this.balloonId;
|
|
46140
|
+
data["reference"] = this.reference;
|
|
46141
|
+
data["feedback"] = this.feedback;
|
|
46142
|
+
data["from"] = this.from;
|
|
46143
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
46144
|
+
return data;
|
|
46145
|
+
}
|
|
46146
|
+
}
|
|
46147
|
+
export class CreateMeasurementFormSchemaFeedbackRequest {
|
|
46148
|
+
constructor(data) {
|
|
46149
|
+
if (data) {
|
|
46150
|
+
for (var property in data) {
|
|
46151
|
+
if (data.hasOwnProperty(property))
|
|
46152
|
+
this[property] = data[property];
|
|
46153
|
+
}
|
|
46154
|
+
}
|
|
46155
|
+
}
|
|
46156
|
+
init(_data) {
|
|
46157
|
+
if (_data) {
|
|
46158
|
+
this.balloonId = _data["balloonId"];
|
|
46159
|
+
this.reference = _data["reference"];
|
|
46160
|
+
this.feedback = _data["feedback"];
|
|
46161
|
+
}
|
|
46162
|
+
}
|
|
46163
|
+
static fromJS(data) {
|
|
46164
|
+
data = typeof data === 'object' ? data : {};
|
|
46165
|
+
let result = new CreateMeasurementFormSchemaFeedbackRequest();
|
|
46166
|
+
result.init(data);
|
|
46167
|
+
return result;
|
|
46168
|
+
}
|
|
46169
|
+
toJSON(data) {
|
|
46170
|
+
data = typeof data === 'object' ? data : {};
|
|
46171
|
+
data["balloonId"] = this.balloonId;
|
|
46172
|
+
data["reference"] = this.reference;
|
|
46173
|
+
data["feedback"] = this.feedback;
|
|
46174
|
+
return data;
|
|
46175
|
+
}
|
|
46176
|
+
}
|
|
46177
|
+
export class MeasurementFormSupplierAccessInstanceDto {
|
|
46178
|
+
constructor(data) {
|
|
46179
|
+
if (data) {
|
|
46180
|
+
for (var property in data) {
|
|
46181
|
+
if (data.hasOwnProperty(property))
|
|
46182
|
+
this[property] = data[property];
|
|
46183
|
+
}
|
|
46184
|
+
}
|
|
46185
|
+
if (!data) {
|
|
46186
|
+
this.suppliers = [];
|
|
46187
|
+
}
|
|
46188
|
+
}
|
|
46189
|
+
init(_data) {
|
|
46190
|
+
if (_data) {
|
|
46191
|
+
this.id = _data["id"];
|
|
46192
|
+
this.readonly = _data["readonly"];
|
|
46193
|
+
this.partNumber = _data["partNumber"];
|
|
46194
|
+
this.partRevision = _data["partRevision"];
|
|
46195
|
+
this.drawing = _data["drawing"];
|
|
46196
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
46197
|
+
this.customerId = _data["customerId"];
|
|
46198
|
+
this.quantity = _data["quantity"];
|
|
46199
|
+
this.status = _data["status"];
|
|
46200
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
46201
|
+
this.suppliers = [];
|
|
46202
|
+
for (let item of _data["suppliers"])
|
|
46203
|
+
this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
46204
|
+
}
|
|
46205
|
+
}
|
|
46206
|
+
}
|
|
46207
|
+
static fromJS(data) {
|
|
46208
|
+
data = typeof data === 'object' ? data : {};
|
|
46209
|
+
let result = new MeasurementFormSupplierAccessInstanceDto();
|
|
46210
|
+
result.init(data);
|
|
46211
|
+
return result;
|
|
46212
|
+
}
|
|
46213
|
+
toJSON(data) {
|
|
46214
|
+
data = typeof data === 'object' ? data : {};
|
|
46215
|
+
data["id"] = this.id;
|
|
46216
|
+
data["readonly"] = this.readonly;
|
|
46217
|
+
data["partNumber"] = this.partNumber;
|
|
46218
|
+
data["partRevision"] = this.partRevision;
|
|
46219
|
+
data["drawing"] = this.drawing;
|
|
46220
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
46221
|
+
data["customerId"] = this.customerId;
|
|
46222
|
+
data["quantity"] = this.quantity;
|
|
46223
|
+
data["status"] = this.status;
|
|
46224
|
+
if (Array.isArray(this.suppliers)) {
|
|
46225
|
+
data["suppliers"] = [];
|
|
46226
|
+
for (let item of this.suppliers)
|
|
46227
|
+
data["suppliers"].push(item ? item.toJSON() : undefined);
|
|
46228
|
+
}
|
|
46229
|
+
return data;
|
|
46230
|
+
}
|
|
46231
|
+
}
|
|
46232
|
+
export class UpsertSupplierToMeasurementFormInstanceRequest {
|
|
46233
|
+
constructor(data) {
|
|
46234
|
+
if (data) {
|
|
46235
|
+
for (var property in data) {
|
|
46236
|
+
if (data.hasOwnProperty(property))
|
|
46237
|
+
this[property] = data[property];
|
|
46238
|
+
}
|
|
46239
|
+
}
|
|
46240
|
+
}
|
|
46241
|
+
init(_data) {
|
|
46242
|
+
if (_data) {
|
|
46243
|
+
this.procurementOrder = _data["procurementOrder"];
|
|
46244
|
+
this.procurementLine = _data["procurementLine"];
|
|
46245
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
46246
|
+
}
|
|
46247
|
+
}
|
|
46248
|
+
static fromJS(data) {
|
|
46249
|
+
data = typeof data === 'object' ? data : {};
|
|
46250
|
+
let result = new UpsertSupplierToMeasurementFormInstanceRequest();
|
|
46251
|
+
result.init(data);
|
|
46252
|
+
return result;
|
|
46253
|
+
}
|
|
46254
|
+
toJSON(data) {
|
|
46255
|
+
data = typeof data === 'object' ? data : {};
|
|
46256
|
+
data["procurementOrder"] = this.procurementOrder;
|
|
46257
|
+
data["procurementLine"] = this.procurementLine;
|
|
46258
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
46259
|
+
return data;
|
|
46260
|
+
}
|
|
46261
|
+
}
|
|
46262
|
+
export class ExportDimensionReportV2Request {
|
|
46263
|
+
constructor(data) {
|
|
46264
|
+
if (data) {
|
|
46265
|
+
for (var property in data) {
|
|
46266
|
+
if (data.hasOwnProperty(property))
|
|
46267
|
+
this[property] = data[property];
|
|
46268
|
+
}
|
|
46269
|
+
}
|
|
46270
|
+
}
|
|
46271
|
+
init(_data) {
|
|
46272
|
+
if (_data) {
|
|
46273
|
+
this.tenantId = _data["tenantId"];
|
|
46274
|
+
this.type = _data["type"];
|
|
46275
|
+
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined;
|
|
46276
|
+
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
46277
|
+
this.specificSerialNumbers = [];
|
|
46278
|
+
for (let item of _data["specificSerialNumbers"])
|
|
46279
|
+
this.specificSerialNumbers.push(item);
|
|
46280
|
+
}
|
|
46281
|
+
}
|
|
46282
|
+
}
|
|
46283
|
+
static fromJS(data) {
|
|
46284
|
+
data = typeof data === 'object' ? data : {};
|
|
46285
|
+
let result = new ExportDimensionReportV2Request();
|
|
46286
|
+
result.init(data);
|
|
46287
|
+
return result;
|
|
46288
|
+
}
|
|
46289
|
+
toJSON(data) {
|
|
46290
|
+
data = typeof data === 'object' ? data : {};
|
|
46291
|
+
data["tenantId"] = this.tenantId;
|
|
46292
|
+
data["type"] = this.type;
|
|
46293
|
+
data["extras"] = this.extras ? this.extras.toJSON() : undefined;
|
|
46294
|
+
if (Array.isArray(this.specificSerialNumbers)) {
|
|
46295
|
+
data["specificSerialNumbers"] = [];
|
|
46296
|
+
for (let item of this.specificSerialNumbers)
|
|
46297
|
+
data["specificSerialNumbers"].push(item);
|
|
46298
|
+
}
|
|
46299
|
+
return data;
|
|
46300
|
+
}
|
|
46301
|
+
}
|
|
46302
|
+
export class DimensionReportExtras {
|
|
46303
|
+
constructor(data) {
|
|
46304
|
+
if (data) {
|
|
46305
|
+
for (var property in data) {
|
|
46306
|
+
if (data.hasOwnProperty(property))
|
|
46307
|
+
this[property] = data[property];
|
|
46308
|
+
}
|
|
46309
|
+
}
|
|
46310
|
+
}
|
|
46311
|
+
init(_data) {
|
|
46312
|
+
if (_data) {
|
|
46313
|
+
this.customerPO = _data["customerPO"];
|
|
46314
|
+
this.workOrderNumber = _data["workOrderNumber"];
|
|
46315
|
+
this.comment = _data["comment"];
|
|
46316
|
+
}
|
|
46317
|
+
}
|
|
46318
|
+
static fromJS(data) {
|
|
46319
|
+
data = typeof data === 'object' ? data : {};
|
|
46320
|
+
let result = new DimensionReportExtras();
|
|
46321
|
+
result.init(data);
|
|
46322
|
+
return result;
|
|
46323
|
+
}
|
|
46324
|
+
toJSON(data) {
|
|
46325
|
+
data = typeof data === 'object' ? data : {};
|
|
46326
|
+
data["customerPO"] = this.customerPO;
|
|
46327
|
+
data["workOrderNumber"] = this.workOrderNumber;
|
|
46328
|
+
data["comment"] = this.comment;
|
|
46329
|
+
return data;
|
|
46330
|
+
}
|
|
46331
|
+
}
|
|
46332
|
+
export class PagedResultOfMeasurementFormInstanceDto {
|
|
46333
|
+
constructor(data) {
|
|
46334
|
+
if (data) {
|
|
46335
|
+
for (var property in data) {
|
|
46336
|
+
if (data.hasOwnProperty(property))
|
|
46337
|
+
this[property] = data[property];
|
|
46338
|
+
}
|
|
46339
|
+
}
|
|
46340
|
+
if (!data) {
|
|
46341
|
+
this.results = [];
|
|
46342
|
+
}
|
|
46343
|
+
}
|
|
46344
|
+
init(_data) {
|
|
46345
|
+
if (_data) {
|
|
46346
|
+
if (Array.isArray(_data["results"])) {
|
|
46347
|
+
this.results = [];
|
|
46348
|
+
for (let item of _data["results"])
|
|
46349
|
+
this.results.push(MeasurementFormInstanceDto.fromJS(item));
|
|
46350
|
+
}
|
|
46351
|
+
this.continuationToken = _data["continuationToken"];
|
|
46352
|
+
}
|
|
46353
|
+
}
|
|
46354
|
+
static fromJS(data) {
|
|
46355
|
+
data = typeof data === 'object' ? data : {};
|
|
46356
|
+
let result = new PagedResultOfMeasurementFormInstanceDto();
|
|
46357
|
+
result.init(data);
|
|
46358
|
+
return result;
|
|
46359
|
+
}
|
|
46360
|
+
toJSON(data) {
|
|
46361
|
+
data = typeof data === 'object' ? data : {};
|
|
46362
|
+
if (Array.isArray(this.results)) {
|
|
46363
|
+
data["results"] = [];
|
|
46364
|
+
for (let item of this.results)
|
|
46365
|
+
data["results"].push(item ? item.toJSON() : undefined);
|
|
46366
|
+
}
|
|
46367
|
+
data["continuationToken"] = this.continuationToken;
|
|
46368
|
+
return data;
|
|
46369
|
+
}
|
|
46370
|
+
}
|
|
46371
|
+
export class DeleteMeasurementFormsInstancesBulkRequest {
|
|
46372
|
+
constructor(data) {
|
|
46373
|
+
if (data) {
|
|
46374
|
+
for (var property in data) {
|
|
46375
|
+
if (data.hasOwnProperty(property))
|
|
46376
|
+
this[property] = data[property];
|
|
46377
|
+
}
|
|
46378
|
+
}
|
|
46379
|
+
if (!data) {
|
|
46380
|
+
this.ids = [];
|
|
46381
|
+
}
|
|
46382
|
+
}
|
|
46383
|
+
init(_data) {
|
|
46384
|
+
if (_data) {
|
|
46385
|
+
if (Array.isArray(_data["ids"])) {
|
|
46386
|
+
this.ids = [];
|
|
46387
|
+
for (let item of _data["ids"])
|
|
46388
|
+
this.ids.push(item);
|
|
46389
|
+
}
|
|
46390
|
+
}
|
|
46391
|
+
}
|
|
46392
|
+
static fromJS(data) {
|
|
46393
|
+
data = typeof data === 'object' ? data : {};
|
|
46394
|
+
let result = new DeleteMeasurementFormsInstancesBulkRequest();
|
|
46429
46395
|
result.init(data);
|
|
46430
46396
|
return result;
|
|
46431
46397
|
}
|
|
46432
46398
|
toJSON(data) {
|
|
46433
46399
|
data = typeof data === 'object' ? data : {};
|
|
46434
|
-
|
|
46435
|
-
|
|
46436
|
-
|
|
46437
|
-
|
|
46438
|
-
|
|
46439
|
-
data["balloonId"] = this.balloonId;
|
|
46440
|
-
data["reference"] = this.reference;
|
|
46441
|
-
data["feedback"] = this.feedback;
|
|
46442
|
-
data["from"] = this.from;
|
|
46443
|
-
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
46400
|
+
if (Array.isArray(this.ids)) {
|
|
46401
|
+
data["ids"] = [];
|
|
46402
|
+
for (let item of this.ids)
|
|
46403
|
+
data["ids"].push(item);
|
|
46404
|
+
}
|
|
46444
46405
|
return data;
|
|
46445
46406
|
}
|
|
46446
46407
|
}
|
|
46447
|
-
export class
|
|
46408
|
+
export class ListMeasurementFormsByStatusRequest {
|
|
46448
46409
|
constructor(data) {
|
|
46449
46410
|
if (data) {
|
|
46450
46411
|
for (var property in data) {
|
|
@@ -46455,26 +46416,32 @@ export class CreateMeasurementFormSchemaFeedbackRequest {
|
|
|
46455
46416
|
}
|
|
46456
46417
|
init(_data) {
|
|
46457
46418
|
if (_data) {
|
|
46458
|
-
this.
|
|
46459
|
-
this.
|
|
46460
|
-
this.
|
|
46419
|
+
this.status = _data["status"];
|
|
46420
|
+
this.statusChangedSince = _data["statusChangedSince"] ? new Date(_data["statusChangedSince"].toString()) : undefined;
|
|
46421
|
+
this.onlyWithReports = _data["onlyWithReports"];
|
|
46422
|
+
this.pageSize = _data["pageSize"];
|
|
46423
|
+
this.search = _data["search"];
|
|
46424
|
+
this.continuationToken = _data["continuationToken"];
|
|
46461
46425
|
}
|
|
46462
46426
|
}
|
|
46463
46427
|
static fromJS(data) {
|
|
46464
46428
|
data = typeof data === 'object' ? data : {};
|
|
46465
|
-
let result = new
|
|
46429
|
+
let result = new ListMeasurementFormsByStatusRequest();
|
|
46466
46430
|
result.init(data);
|
|
46467
46431
|
return result;
|
|
46468
46432
|
}
|
|
46469
46433
|
toJSON(data) {
|
|
46470
46434
|
data = typeof data === 'object' ? data : {};
|
|
46471
|
-
data["
|
|
46472
|
-
data["
|
|
46473
|
-
data["
|
|
46435
|
+
data["status"] = this.status;
|
|
46436
|
+
data["statusChangedSince"] = this.statusChangedSince ? this.statusChangedSince.toISOString() : undefined;
|
|
46437
|
+
data["onlyWithReports"] = this.onlyWithReports;
|
|
46438
|
+
data["pageSize"] = this.pageSize;
|
|
46439
|
+
data["search"] = this.search;
|
|
46440
|
+
data["continuationToken"] = this.continuationToken;
|
|
46474
46441
|
return data;
|
|
46475
46442
|
}
|
|
46476
46443
|
}
|
|
46477
|
-
export class
|
|
46444
|
+
export class CreateMeasurementFormInstanceRequest {
|
|
46478
46445
|
constructor(data) {
|
|
46479
46446
|
if (data) {
|
|
46480
46447
|
for (var property in data) {
|
|
@@ -46483,53 +46450,53 @@ export class MeasurementFormSupplierAccessInstanceDto {
|
|
|
46483
46450
|
}
|
|
46484
46451
|
}
|
|
46485
46452
|
if (!data) {
|
|
46486
|
-
this.
|
|
46453
|
+
this.serialNumbers = [];
|
|
46487
46454
|
}
|
|
46488
46455
|
}
|
|
46489
46456
|
init(_data) {
|
|
46490
46457
|
if (_data) {
|
|
46491
|
-
this.
|
|
46492
|
-
this.readonly = _data["readonly"];
|
|
46493
|
-
this.partNumber = _data["partNumber"];
|
|
46494
|
-
this.partRevision = _data["partRevision"];
|
|
46495
|
-
this.drawing = _data["drawing"];
|
|
46496
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
46458
|
+
this.schemaId = _data["schemaId"];
|
|
46497
46459
|
this.customerId = _data["customerId"];
|
|
46498
|
-
this.
|
|
46499
|
-
this.
|
|
46500
|
-
if (Array.isArray(_data["
|
|
46501
|
-
this.
|
|
46502
|
-
for (let item of _data["
|
|
46503
|
-
this.
|
|
46460
|
+
this.customerName = _data["customerName"];
|
|
46461
|
+
this.purchaseOrder = _data["purchaseOrder"];
|
|
46462
|
+
if (Array.isArray(_data["sequences"])) {
|
|
46463
|
+
this.sequences = [];
|
|
46464
|
+
for (let item of _data["sequences"])
|
|
46465
|
+
this.sequences.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
46466
|
+
}
|
|
46467
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
46468
|
+
this.serialNumbers = [];
|
|
46469
|
+
for (let item of _data["serialNumbers"])
|
|
46470
|
+
this.serialNumbers.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
|
|
46504
46471
|
}
|
|
46505
46472
|
}
|
|
46506
46473
|
}
|
|
46507
46474
|
static fromJS(data) {
|
|
46508
46475
|
data = typeof data === 'object' ? data : {};
|
|
46509
|
-
let result = new
|
|
46476
|
+
let result = new CreateMeasurementFormInstanceRequest();
|
|
46510
46477
|
result.init(data);
|
|
46511
46478
|
return result;
|
|
46512
46479
|
}
|
|
46513
46480
|
toJSON(data) {
|
|
46514
46481
|
data = typeof data === 'object' ? data : {};
|
|
46515
|
-
data["
|
|
46516
|
-
data["readonly"] = this.readonly;
|
|
46517
|
-
data["partNumber"] = this.partNumber;
|
|
46518
|
-
data["partRevision"] = this.partRevision;
|
|
46519
|
-
data["drawing"] = this.drawing;
|
|
46520
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
46482
|
+
data["schemaId"] = this.schemaId;
|
|
46521
46483
|
data["customerId"] = this.customerId;
|
|
46522
|
-
data["
|
|
46523
|
-
data["
|
|
46524
|
-
if (Array.isArray(this.
|
|
46525
|
-
data["
|
|
46526
|
-
for (let item of this.
|
|
46527
|
-
data["
|
|
46484
|
+
data["customerName"] = this.customerName;
|
|
46485
|
+
data["purchaseOrder"] = this.purchaseOrder;
|
|
46486
|
+
if (Array.isArray(this.sequences)) {
|
|
46487
|
+
data["sequences"] = [];
|
|
46488
|
+
for (let item of this.sequences)
|
|
46489
|
+
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
46490
|
+
}
|
|
46491
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
46492
|
+
data["serialNumbers"] = [];
|
|
46493
|
+
for (let item of this.serialNumbers)
|
|
46494
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
46528
46495
|
}
|
|
46529
46496
|
return data;
|
|
46530
46497
|
}
|
|
46531
46498
|
}
|
|
46532
|
-
export class
|
|
46499
|
+
export class CreateMeasurementFormInstanceRequestSequence {
|
|
46533
46500
|
constructor(data) {
|
|
46534
46501
|
if (data) {
|
|
46535
46502
|
for (var property in data) {
|
|
@@ -46540,26 +46507,24 @@ export class UpsertSupplierToMeasurementFormInstanceRequest {
|
|
|
46540
46507
|
}
|
|
46541
46508
|
init(_data) {
|
|
46542
46509
|
if (_data) {
|
|
46543
|
-
this.
|
|
46544
|
-
this.
|
|
46545
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
46510
|
+
this.sequenceNumber = _data["sequenceNumber"];
|
|
46511
|
+
this.serialNumber = _data["serialNumber"];
|
|
46546
46512
|
}
|
|
46547
46513
|
}
|
|
46548
46514
|
static fromJS(data) {
|
|
46549
46515
|
data = typeof data === 'object' ? data : {};
|
|
46550
|
-
let result = new
|
|
46516
|
+
let result = new CreateMeasurementFormInstanceRequestSequence();
|
|
46551
46517
|
result.init(data);
|
|
46552
46518
|
return result;
|
|
46553
46519
|
}
|
|
46554
46520
|
toJSON(data) {
|
|
46555
46521
|
data = typeof data === 'object' ? data : {};
|
|
46556
|
-
data["
|
|
46557
|
-
data["
|
|
46558
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
46522
|
+
data["sequenceNumber"] = this.sequenceNumber;
|
|
46523
|
+
data["serialNumber"] = this.serialNumber;
|
|
46559
46524
|
return data;
|
|
46560
46525
|
}
|
|
46561
46526
|
}
|
|
46562
|
-
export class
|
|
46527
|
+
export class CreateMeasurementFormInstanceRequestSerialNumber {
|
|
46563
46528
|
constructor(data) {
|
|
46564
46529
|
if (data) {
|
|
46565
46530
|
for (var property in data) {
|
|
@@ -46570,36 +46535,24 @@ export class ExportDimensionReportV2Request {
|
|
|
46570
46535
|
}
|
|
46571
46536
|
init(_data) {
|
|
46572
46537
|
if (_data) {
|
|
46573
|
-
this.
|
|
46574
|
-
this.
|
|
46575
|
-
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined;
|
|
46576
|
-
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
46577
|
-
this.specificSerialNumbers = [];
|
|
46578
|
-
for (let item of _data["specificSerialNumbers"])
|
|
46579
|
-
this.specificSerialNumbers.push(item);
|
|
46580
|
-
}
|
|
46538
|
+
this.serialNumber = _data["serialNumber"];
|
|
46539
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
46581
46540
|
}
|
|
46582
46541
|
}
|
|
46583
46542
|
static fromJS(data) {
|
|
46584
46543
|
data = typeof data === 'object' ? data : {};
|
|
46585
|
-
let result = new
|
|
46544
|
+
let result = new CreateMeasurementFormInstanceRequestSerialNumber();
|
|
46586
46545
|
result.init(data);
|
|
46587
46546
|
return result;
|
|
46588
46547
|
}
|
|
46589
46548
|
toJSON(data) {
|
|
46590
46549
|
data = typeof data === 'object' ? data : {};
|
|
46591
|
-
data["
|
|
46592
|
-
data["
|
|
46593
|
-
data["extras"] = this.extras ? this.extras.toJSON() : undefined;
|
|
46594
|
-
if (Array.isArray(this.specificSerialNumbers)) {
|
|
46595
|
-
data["specificSerialNumbers"] = [];
|
|
46596
|
-
for (let item of this.specificSerialNumbers)
|
|
46597
|
-
data["specificSerialNumbers"].push(item);
|
|
46598
|
-
}
|
|
46550
|
+
data["serialNumber"] = this.serialNumber;
|
|
46551
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
46599
46552
|
return data;
|
|
46600
46553
|
}
|
|
46601
46554
|
}
|
|
46602
|
-
export class
|
|
46555
|
+
export class UpdateMeasurementFormInstanceRequest {
|
|
46603
46556
|
constructor(data) {
|
|
46604
46557
|
if (data) {
|
|
46605
46558
|
for (var property in data) {
|
|
@@ -46607,25 +46560,53 @@ export class DimensionReportExtras {
|
|
|
46607
46560
|
this[property] = data[property];
|
|
46608
46561
|
}
|
|
46609
46562
|
}
|
|
46563
|
+
if (!data) {
|
|
46564
|
+
this.serialNumbers = [];
|
|
46565
|
+
this.suppliers = [];
|
|
46566
|
+
}
|
|
46610
46567
|
}
|
|
46611
46568
|
init(_data) {
|
|
46612
46569
|
if (_data) {
|
|
46613
|
-
|
|
46614
|
-
|
|
46615
|
-
|
|
46570
|
+
if (Array.isArray(_data["sequences"])) {
|
|
46571
|
+
this.sequences = [];
|
|
46572
|
+
for (let item of _data["sequences"])
|
|
46573
|
+
this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
46574
|
+
}
|
|
46575
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
46576
|
+
this.serialNumbers = [];
|
|
46577
|
+
for (let item of _data["serialNumbers"])
|
|
46578
|
+
this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
46579
|
+
}
|
|
46580
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
46581
|
+
this.suppliers = [];
|
|
46582
|
+
for (let item of _data["suppliers"])
|
|
46583
|
+
this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
46584
|
+
}
|
|
46616
46585
|
}
|
|
46617
46586
|
}
|
|
46618
46587
|
static fromJS(data) {
|
|
46619
46588
|
data = typeof data === 'object' ? data : {};
|
|
46620
|
-
let result = new
|
|
46589
|
+
let result = new UpdateMeasurementFormInstanceRequest();
|
|
46621
46590
|
result.init(data);
|
|
46622
46591
|
return result;
|
|
46623
46592
|
}
|
|
46624
46593
|
toJSON(data) {
|
|
46625
46594
|
data = typeof data === 'object' ? data : {};
|
|
46626
|
-
|
|
46627
|
-
|
|
46628
|
-
|
|
46595
|
+
if (Array.isArray(this.sequences)) {
|
|
46596
|
+
data["sequences"] = [];
|
|
46597
|
+
for (let item of this.sequences)
|
|
46598
|
+
data["sequences"].push(item ? item.toJSON() : undefined);
|
|
46599
|
+
}
|
|
46600
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
46601
|
+
data["serialNumbers"] = [];
|
|
46602
|
+
for (let item of this.serialNumbers)
|
|
46603
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined);
|
|
46604
|
+
}
|
|
46605
|
+
if (Array.isArray(this.suppliers)) {
|
|
46606
|
+
data["suppliers"] = [];
|
|
46607
|
+
for (let item of this.suppliers)
|
|
46608
|
+
data["suppliers"].push(item ? item.toJSON() : undefined);
|
|
46609
|
+
}
|
|
46629
46610
|
return data;
|
|
46630
46611
|
}
|
|
46631
46612
|
}
|
|
@@ -47479,7 +47460,7 @@ export class ResourceExistDto {
|
|
|
47479
47460
|
return data;
|
|
47480
47461
|
}
|
|
47481
47462
|
}
|
|
47482
|
-
export class
|
|
47463
|
+
export class RegisterWorkorderOperationEventRequest {
|
|
47483
47464
|
constructor(data) {
|
|
47484
47465
|
if (data) {
|
|
47485
47466
|
for (var property in data) {
|
|
@@ -47490,42 +47471,44 @@ export class StartWorkOperationRequest {
|
|
|
47490
47471
|
}
|
|
47491
47472
|
init(_data) {
|
|
47492
47473
|
if (_data) {
|
|
47474
|
+
this.workorderDescription = _data["workorderDescription"];
|
|
47475
|
+
this.operationDescription = _data["operationDescription"];
|
|
47493
47476
|
this.isSetup = _data["isSetup"];
|
|
47494
47477
|
this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
|
|
47495
47478
|
this.resourceId = _data["resourceId"];
|
|
47496
47479
|
this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined;
|
|
47497
47480
|
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
|
|
47498
47481
|
this.workorderQuantity = _data["workorderQuantity"];
|
|
47499
|
-
this.
|
|
47482
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
47483
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
47500
47484
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
47501
47485
|
this.materialPartName = _data["materialPartName"];
|
|
47502
47486
|
this.materialItemGroup = _data["materialItemGroup"];
|
|
47503
|
-
this.workorderDescription = _data["workorderDescription"];
|
|
47504
|
-
this.operationDescription = _data["operationDescription"];
|
|
47505
47487
|
this.externalId = _data["externalId"];
|
|
47506
47488
|
this.companyId = _data["companyId"];
|
|
47507
47489
|
}
|
|
47508
47490
|
}
|
|
47509
47491
|
static fromJS(data) {
|
|
47510
47492
|
data = typeof data === 'object' ? data : {};
|
|
47511
|
-
let result = new
|
|
47493
|
+
let result = new RegisterWorkorderOperationEventRequest();
|
|
47512
47494
|
result.init(data);
|
|
47513
47495
|
return result;
|
|
47514
47496
|
}
|
|
47515
47497
|
toJSON(data) {
|
|
47516
47498
|
data = typeof data === 'object' ? data : {};
|
|
47499
|
+
data["workorderDescription"] = this.workorderDescription;
|
|
47500
|
+
data["operationDescription"] = this.operationDescription;
|
|
47517
47501
|
data["isSetup"] = this.isSetup;
|
|
47518
47502
|
data["employee"] = this.employee ? this.employee.toJSON() : undefined;
|
|
47519
47503
|
data["resourceId"] = this.resourceId;
|
|
47520
47504
|
data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined;
|
|
47521
47505
|
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
47522
47506
|
data["workorderQuantity"] = this.workorderQuantity;
|
|
47523
|
-
data["
|
|
47507
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
47508
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
47524
47509
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
47525
47510
|
data["materialPartName"] = this.materialPartName;
|
|
47526
47511
|
data["materialItemGroup"] = this.materialItemGroup;
|
|
47527
|
-
data["workorderDescription"] = this.workorderDescription;
|
|
47528
|
-
data["operationDescription"] = this.operationDescription;
|
|
47529
47512
|
data["externalId"] = this.externalId;
|
|
47530
47513
|
data["companyId"] = this.companyId;
|
|
47531
47514
|
return data;
|
|
@@ -47561,6 +47544,58 @@ export class CustomerOrderInfoDto {
|
|
|
47561
47544
|
return data;
|
|
47562
47545
|
}
|
|
47563
47546
|
}
|
|
47547
|
+
export class StartWorkOperationRequest {
|
|
47548
|
+
constructor(data) {
|
|
47549
|
+
if (data) {
|
|
47550
|
+
for (var property in data) {
|
|
47551
|
+
if (data.hasOwnProperty(property))
|
|
47552
|
+
this[property] = data[property];
|
|
47553
|
+
}
|
|
47554
|
+
}
|
|
47555
|
+
}
|
|
47556
|
+
init(_data) {
|
|
47557
|
+
if (_data) {
|
|
47558
|
+
this.isSetup = _data["isSetup"];
|
|
47559
|
+
this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
|
|
47560
|
+
this.resourceId = _data["resourceId"];
|
|
47561
|
+
this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined;
|
|
47562
|
+
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
|
|
47563
|
+
this.workorderQuantity = _data["workorderQuantity"];
|
|
47564
|
+
this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined;
|
|
47565
|
+
this.materialPartNumber = _data["materialPartNumber"];
|
|
47566
|
+
this.materialPartName = _data["materialPartName"];
|
|
47567
|
+
this.materialItemGroup = _data["materialItemGroup"];
|
|
47568
|
+
this.workorderDescription = _data["workorderDescription"];
|
|
47569
|
+
this.operationDescription = _data["operationDescription"];
|
|
47570
|
+
this.externalId = _data["externalId"];
|
|
47571
|
+
this.companyId = _data["companyId"];
|
|
47572
|
+
}
|
|
47573
|
+
}
|
|
47574
|
+
static fromJS(data) {
|
|
47575
|
+
data = typeof data === 'object' ? data : {};
|
|
47576
|
+
let result = new StartWorkOperationRequest();
|
|
47577
|
+
result.init(data);
|
|
47578
|
+
return result;
|
|
47579
|
+
}
|
|
47580
|
+
toJSON(data) {
|
|
47581
|
+
data = typeof data === 'object' ? data : {};
|
|
47582
|
+
data["isSetup"] = this.isSetup;
|
|
47583
|
+
data["employee"] = this.employee ? this.employee.toJSON() : undefined;
|
|
47584
|
+
data["resourceId"] = this.resourceId;
|
|
47585
|
+
data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined;
|
|
47586
|
+
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
47587
|
+
data["workorderQuantity"] = this.workorderQuantity;
|
|
47588
|
+
data["time"] = this.time ? this.time.toISOString() : undefined;
|
|
47589
|
+
data["materialPartNumber"] = this.materialPartNumber;
|
|
47590
|
+
data["materialPartName"] = this.materialPartName;
|
|
47591
|
+
data["materialItemGroup"] = this.materialItemGroup;
|
|
47592
|
+
data["workorderDescription"] = this.workorderDescription;
|
|
47593
|
+
data["operationDescription"] = this.operationDescription;
|
|
47594
|
+
data["externalId"] = this.externalId;
|
|
47595
|
+
data["companyId"] = this.companyId;
|
|
47596
|
+
return data;
|
|
47597
|
+
}
|
|
47598
|
+
}
|
|
47564
47599
|
export class StopWorkOperationRequest {
|
|
47565
47600
|
constructor(data) {
|
|
47566
47601
|
if (data) {
|
|
@@ -47577,6 +47612,7 @@ export class StopWorkOperationRequest {
|
|
|
47577
47612
|
this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined;
|
|
47578
47613
|
this.resourceId = _data["resourceId"];
|
|
47579
47614
|
this.companyId = _data["companyId"];
|
|
47615
|
+
this.ignoreNotFoundEvents = _data["ignoreNotFoundEvents"];
|
|
47580
47616
|
}
|
|
47581
47617
|
}
|
|
47582
47618
|
static fromJS(data) {
|
|
@@ -47592,10 +47628,11 @@ export class StopWorkOperationRequest {
|
|
|
47592
47628
|
data["time"] = this.time ? this.time.toISOString() : undefined;
|
|
47593
47629
|
data["resourceId"] = this.resourceId;
|
|
47594
47630
|
data["companyId"] = this.companyId;
|
|
47631
|
+
data["ignoreNotFoundEvents"] = this.ignoreNotFoundEvents;
|
|
47595
47632
|
return data;
|
|
47596
47633
|
}
|
|
47597
47634
|
}
|
|
47598
|
-
export class
|
|
47635
|
+
export class SyncWorkorderOperationRequest {
|
|
47599
47636
|
constructor(data) {
|
|
47600
47637
|
if (data) {
|
|
47601
47638
|
for (var property in data) {
|
|
@@ -47625,7 +47662,7 @@ export class RegisterWorkorderOperationEventRequest {
|
|
|
47625
47662
|
}
|
|
47626
47663
|
static fromJS(data) {
|
|
47627
47664
|
data = typeof data === 'object' ? data : {};
|
|
47628
|
-
let result = new
|
|
47665
|
+
let result = new SyncWorkorderOperationRequest();
|
|
47629
47666
|
result.init(data);
|
|
47630
47667
|
return result;
|
|
47631
47668
|
}
|