@ignos/api-client 20251114.0.13234-alpha → 20251120.0.13297

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 MeasurementFormsInstancesClient extends AuthorizedApiBase {
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
- listMeasurementForms(pageSize, search, continuationToken, tenantId, inactive, includeInactiveSupplierAccess) {
20390
- let url_ = this.baseUrl + "/measurementforms/instances?";
20391
- if (pageSize === null)
20392
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
20393
- else if (pageSize !== undefined)
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: "GET",
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.processListMeasurementForms(_response);
20404
+ return this.processApproveMeasurementFormInstance(_response);
20416
20405
  });
20417
20406
  }
20418
- processListMeasurementForms(response) {
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 = PagedResultOfMeasurementFormInstanceOverviewDto.fromJS(resultData200);
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
- postListMeasurementForms(request) {
20441
- let url_ = this.baseUrl + "/measurementforms/instances/list";
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.processPostListMeasurementForms(_response);
20444
+ return this.processDisapproveMeasurementFormInstance(_response);
20456
20445
  });
20457
20446
  }
20458
- processPostListMeasurementForms(response) {
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 = PagedResultOfMeasurementFormInstanceOverviewDto.fromJS(resultData200);
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
- listMeasurementFormsByStatus(status, statusChangedSince, onlyWithReports, pageSize, search, continuationToken) {
20481
- let url_ = this.baseUrl + "/measurementforms/instances/bystatus?";
20482
- if (status === null)
20483
- throw new globalThis.Error("The parameter 'status' cannot be null.");
20484
- else if (status !== undefined)
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: "GET",
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.processListMeasurementFormsByStatus(_response);
20484
+ return this.processExportDimensionReportValues(_response);
20509
20485
  });
20510
20486
  }
20511
- processListMeasurementFormsByStatus(response) {
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 = PagedResultOfMeasurementFormInstanceDto.fromJS(resultData200);
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
- postListMeasurementFormsByStatus(request) {
20534
- let url_ = this.baseUrl + "/measurementforms/instances/bystatus";
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
- body: content_,
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.processPostListMeasurementFormsByStatus(_response);
20543
+ return this.processListMeasurementForms(_response);
20549
20544
  });
20550
20545
  }
20551
- processPostListMeasurementFormsByStatus(response) {
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 = PagedResultOfMeasurementFormInstanceDto.fromJS(resultData200);
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
- deleteInstancesBulk(request) {
20574
- let url_ = this.baseUrl + "/measurementforms/instances/bulkdelete";
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: "DELETE",
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.processDeleteInstancesBulk(_response);
20583
+ return this.processPostListMeasurementForms(_response);
20588
20584
  });
20589
20585
  }
20590
- processDeleteInstancesBulk(response) {
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 === 204) {
20593
+ if (status === 200) {
20598
20594
  return response.text().then((_responseText) => {
20599
- return;
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
- createMeasurementFormInstance(id) {
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: "POST",
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.processCreateMeasurementFormInstance(_response);
20665
+ return this.processListMeasurementFormInstanceFeedback(_response);
20667
20666
  });
20668
20667
  }
20669
- processCreateMeasurementFormInstance(response) {
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
- result200 = MeasurementFormInstanceDto.fromJS(resultData200);
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
- updateMeasurementFormInstance(id, request) {
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
- body: content_,
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.processUpdateMeasurementFormInstance(_response);
20711
+ return this.processCompleteMeasurementFormInstance(_response);
20710
20712
  });
20711
20713
  }
20712
- processUpdateMeasurementFormInstance(response) {
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
- listMeasurementFormInstanceFeedback(id) {
20735
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/feedback";
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.processListMeasurementFormInstanceFeedback(_response);
20758
+ return this.processGetMeasurementFormInstanceSchema(_response);
20750
20759
  });
20751
20760
  }
20752
- processListMeasurementFormInstanceFeedback(response) {
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
- if (Array.isArray(resultData200)) {
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
- createMeasurementFormInstance2(id, request) {
20779
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
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
- body: content_,
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.processCreateMeasurementFormInstance2(_response);
20800
+ return this.processGetWorkorderMeasurementFormProgress(_response);
20797
20801
  });
20798
20802
  }
20799
- processCreateMeasurementFormInstance2(response) {
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 = MeasurementFormInstanceDto.fromJS(resultData200);
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
- completeMeasurementFormInstance(id, tenantId) {
20822
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/complete?";
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: "POST",
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.processCompleteMeasurementFormInstance(_response);
20848
+ return this.processGetAuditLog(_response);
20839
20849
  });
20840
20850
  }
20841
- processCompleteMeasurementFormInstance(response) {
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
- result200 = MeasurementFormInstanceDto.fromJS(resultData200);
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
- reactivateMeasurementFormInstance(id) {
20864
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
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: "POST",
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.processReactivateMeasurementFormInstance(_response);
20889
+ return this.processGetValidationRules(_response);
20879
20890
  });
20880
20891
  }
20881
- processReactivateMeasurementFormInstance(response) {
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
- result200 = MeasurementFormInstanceDto.fromJS(resultData200);
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
- approveMeasurementFormInstance(id) {
20904
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
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
- method: "POST",
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.processApproveMeasurementFormInstance(_response);
20938
+ return this.processSaveValue(_response);
20919
20939
  });
20920
20940
  }
20921
- processApproveMeasurementFormInstance(response) {
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 = MeasurementFormInstanceDto.fromJS(resultData200);
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
- disapproveMeasurementFormInstance(id) {
20944
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/disapprove";
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
- method: "POST",
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.processDisapproveMeasurementFormInstance(_response);
20983
+ return this.processSaveTool(_response);
20959
20984
  });
20960
20985
  }
20961
- processDisapproveMeasurementFormInstance(response) {
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 = MeasurementFormInstanceDto.fromJS(resultData200);
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
- cancelMeasurementFormInstance(id) {
20984
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/cancel";
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
- method: "POST",
21018
+ body: content_,
21019
+ method: "PUT",
20991
21020
  headers: {
20992
- "Accept": "application/json"
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.processCancelMeasurementFormInstance(_response);
21027
+ return this.processSaveComment(_response);
20999
21028
  });
21000
21029
  }
21001
- processCancelMeasurementFormInstance(response) {
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 === 200) {
21037
+ if (status === 204) {
21009
21038
  return response.text().then((_responseText) => {
21010
- let result200 = null;
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
- getMeasurementFormInstanceSchema(id, schemaId, serialNumber, tenantId) {
21024
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
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
- method: "GET",
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.processGetMeasurementFormInstanceSchema(_response);
21069
+ return this.processBatchInsertValues(_response);
21046
21070
  });
21047
21071
  }
21048
- processGetMeasurementFormInstanceSchema(response) {
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 = MeasurementFormInstanceSchemaDto.fromJS(resultData200);
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
- getWorkorderMeasurementFormProgress(id, tenantId) {
21071
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
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
- method: "GET",
21107
+ body: content_,
21108
+ method: "PUT",
21080
21109
  headers: {
21081
- "Accept": "application/json"
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.processGetWorkorderMeasurementFormProgress(_response);
21116
+ return this.processSaveMeasurementFormInstanceSchemaComment(_response);
21088
21117
  });
21089
21118
  }
21090
- processGetWorkorderMeasurementFormProgress(response) {
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 === 200) {
21126
+ if (status === 204) {
21098
21127
  return response.text().then((_responseText) => {
21099
- let result200 = null;
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
- getAuditLog(id, tenantId, schemaId, serialNumber, elementId) {
21113
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
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
- method: "GET",
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.processGetAuditLog(_response);
21161
+ return this.processCreateMeasurementFormInstanceSchemaFeedback(_response);
21136
21162
  });
21137
21163
  }
21138
- processGetAuditLog(response) {
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
- if (Array.isArray(resultData200)) {
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
- getValidationRules() {
21165
- let url_ = this.baseUrl + "/measurementforms/instances/validationrules";
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.processGetValidationRules(_response);
21201
+ return this.processListSupplierMeasurementFormInstances(_response);
21177
21202
  });
21178
21203
  }
21179
- processGetValidationRules(response) {
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(ValidationRuleDto.fromJS(item));
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
- saveValue(id, tenantId, request) {
21206
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/value?";
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 (tenantId !== undefined && tenantId !== null)
21211
- url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
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.processSaveValue(_response);
21250
+ return this.processUpsertSupplierToMeasurmentFormInstance(_response);
21226
21251
  });
21227
21252
  }
21228
- processSaveValue(response) {
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 === 200) {
21260
+ if (status === 204) {
21236
21261
  return response.text().then((_responseText) => {
21237
- let result200 = null;
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
- saveTool(id, tenantId, request) {
21251
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/tool?";
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 (tenantId !== undefined && tenantId !== null)
21256
- url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
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
- body: content_,
21261
- method: "PUT",
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.processSaveTool(_response);
21288
+ return this.processRemoveSupplierFromMeasurmentFormInstance(_response);
21271
21289
  });
21272
21290
  }
21273
- processSaveTool(response) {
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 === 200) {
21298
+ if (status === 204) {
21281
21299
  return response.text().then((_responseText) => {
21282
- let result200 = null;
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
- saveComment(id, tenantId, request) {
21296
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/comment?";
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: "PUT",
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.processSaveComment(_response);
21331
+ return this.processExportDimensionReportV2(_response);
21315
21332
  });
21316
21333
  }
21317
- processSaveComment(response) {
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 === 204) {
21341
+ if (status === 200) {
21325
21342
  return response.text().then((_responseText) => {
21326
- return;
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
- batchInsertValues(id, tenantId, request) {
21337
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/batchvalues?";
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.processBatchInsertValues(_response);
21374
+ return this.processExportDimensionReport(_response);
21357
21375
  });
21358
21376
  }
21359
- processBatchInsertValues(response) {
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 = BatchInsertValuesResponseDto.fromJS(resultData200);
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
- saveMeasurementFormInstanceSchemaComment(id, schemaId, tenantId, request) {
21382
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/comment?";
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
- body: content_,
21395
- method: "PUT",
21414
+ method: "POST",
21396
21415
  headers: {
21397
- "Content-Type": "application/json",
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.processSaveMeasurementFormInstanceSchemaComment(_response);
21422
+ return this.processCreateMeasurementFormInstance(_response);
21404
21423
  });
21405
21424
  }
21406
- processSaveMeasurementFormInstanceSchemaComment(response) {
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 === 204) {
21432
+ if (status === 200) {
21414
21433
  return response.text().then((_responseText) => {
21415
- return;
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
- createMeasurementFormInstanceSchemaFeedback(id, schemaId, tenantId, request) {
21426
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/feedback?";
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: "POST",
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.processCreateMeasurementFormInstanceSchemaFeedback(_response);
21465
+ return this.processUpdateMeasurementFormInstance(_response);
21449
21466
  });
21450
21467
  }
21451
- processCreateMeasurementFormInstanceSchemaFeedback(response) {
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 = SchemaFeedbackCreatedDto.fromJS(resultData200);
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
- listSupplierMeasurementFormInstances(supplierId) {
21474
- let url_ = this.baseUrl + "/measurementforms/instances/suppliers/{supplierId}";
21475
- if (supplierId === undefined || supplierId === null)
21476
- throw new globalThis.Error("The parameter 'supplierId' must be defined.");
21477
- url_ = url_.replace("{supplierId}", encodeURIComponent("" + supplierId));
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.processListSupplierMeasurementFormInstances(_response);
21518
+ return this.processListMeasurementFormsByStatus(_response);
21489
21519
  });
21490
21520
  }
21491
- processListSupplierMeasurementFormInstances(response) {
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
- if (Array.isArray(resultData200)) {
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
- upsertSupplierToMeasurmentFormInstance(id, supplierId, request) {
21518
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/suppliers/{supplierId}";
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: "PUT",
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.processUpsertSupplierToMeasurmentFormInstance(_response);
21558
+ return this.processPostListMeasurementFormsByStatus(_response);
21538
21559
  });
21539
21560
  }
21540
- processUpsertSupplierToMeasurmentFormInstance(response) {
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 === 204) {
21568
+ if (status === 200) {
21548
21569
  return response.text().then((_responseText) => {
21549
- return;
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
- removeSupplierFromMeasurmentFormInstance(id, supplierId) {
21560
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/suppliers/{supplierId}";
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.processRemoveSupplierFromMeasurmentFormInstance(_response);
21597
+ return this.processDeleteInstancesBulk(_response);
21576
21598
  });
21577
21599
  }
21578
- processRemoveSupplierFromMeasurmentFormInstance(response) {
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
- * @deprecated
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.processExportDimensionReportV2(_response);
21637
+ return this.processCreateMeasurementFormInstance2(_response);
21619
21638
  });
21620
21639
  }
21621
- processExportDimensionReportV2(response) {
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 = DownloadDto.fromJS(resultData200);
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
- exportDimensionReport(id, request) {
21644
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
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.processExportDimensionReport(_response);
21677
+ return this.processReactivateMeasurementFormInstance(_response);
21662
21678
  });
21663
21679
  }
21664
- processExportDimensionReport(response) {
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 = DownloadDto.fromJS(resultData200);
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
- exportDimensionReportValues(id) {
21687
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
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.processExportDimensionReportValues(_response);
21717
+ return this.processCancelMeasurementFormInstance(_response);
21702
21718
  });
21703
21719
  }
21704
- processExportDimensionReportValues(response) {
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 = DownloadDto.fromJS(resultData200);
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 start work or setup on a workorder operation.
22681
- * @deprecated
22696
+ * Register a completed work order operation event
22682
22697
  */
22683
- startWorkorderOperation(id, operation, request) {
22684
- let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/start";
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.processStartWorkorderOperation(_response);
22719
+ return this.processRegisterWorkorderOperationEvent(_response);
22704
22720
  });
22705
22721
  }
22706
- processStartWorkorderOperation(response) {
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 === 204) {
22729
+ if (status === 200) {
22714
22730
  return response.text().then((_responseText) => {
22715
- return;
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 end work or setup on a workorder operation.
22727
- * @deprecated
22745
+ * Register start work or setup on a workorder operation.
22728
22746
  */
22729
- stopWorkorderOperation(id, operation, request) {
22730
- let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/stop";
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.processStopWorkorderOperation(_response);
22768
+ return this.processStartWorkorderOperationV2(_response);
22750
22769
  });
22751
22770
  }
22752
- processStopWorkorderOperation(response) {
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 === 204) {
22778
+ if (status === 200) {
22760
22779
  return response.text().then((_responseText) => {
22761
- return;
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 a completed work order operation event
22794
+ * Register end work or setup on a workorder operation.
22773
22795
  */
22774
- registerWorkorderOperationEvent(id, operation, request) {
22775
- let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/events";
22796
+ stopWorkorderOperationV2(id, operation, request) {
22797
+ let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/stop";
22776
22798
  if (id === undefined || id === null)
22777
22799
  throw new globalThis.Error("The parameter 'id' must be defined.");
22778
22800
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -22792,108 +22814,10 @@ export class WorkordersClient extends AuthorizedApiBase {
22792
22814
  return this.transformOptions(options_).then(transformedOptions_ => {
22793
22815
  return this.http.fetch(url_, transformedOptions_);
22794
22816
  }).then((_response) => {
22795
- return this.processRegisterWorkorderOperationEvent(_response);
22817
+ return this.processStopWorkorderOperationV2(_response);
22796
22818
  });
22797
22819
  }
22798
- processRegisterWorkorderOperationEvent(response) {
22799
- const status = response.status;
22800
- let _headers = {};
22801
- if (response.headers && response.headers.forEach) {
22802
- response.headers.forEach((v, k) => _headers[k] = v);
22803
- }
22804
- ;
22805
- if (status === 200) {
22806
- return response.text().then((_responseText) => {
22807
- let result200 = null;
22808
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22809
- result200 = WorkorderOperationEventDto.fromJS(resultData200);
22810
- return result200;
22811
- });
22812
- }
22813
- else if (status !== 200 && status !== 204) {
22814
- return response.text().then((_responseText) => {
22815
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22816
- });
22817
- }
22818
- return Promise.resolve(null);
22819
- }
22820
- /**
22821
- * Register start work or setup on a workorder operation.
22822
- */
22823
- startWorkorderOperationV2(id, operation, request) {
22824
- let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/start";
22825
- if (id === undefined || id === null)
22826
- throw new globalThis.Error("The parameter 'id' must be defined.");
22827
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22828
- if (operation === undefined || operation === null)
22829
- throw new globalThis.Error("The parameter 'operation' must be defined.");
22830
- url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
22831
- url_ = url_.replace(/[?&]$/, "");
22832
- const content_ = JSON.stringify(request);
22833
- let options_ = {
22834
- body: content_,
22835
- method: "POST",
22836
- headers: {
22837
- "Content-Type": "application/json",
22838
- "Accept": "application/json"
22839
- }
22840
- };
22841
- return this.transformOptions(options_).then(transformedOptions_ => {
22842
- return this.http.fetch(url_, transformedOptions_);
22843
- }).then((_response) => {
22844
- return this.processStartWorkorderOperationV2(_response);
22845
- });
22846
- }
22847
- processStartWorkorderOperationV2(response) {
22848
- const status = response.status;
22849
- let _headers = {};
22850
- if (response.headers && response.headers.forEach) {
22851
- response.headers.forEach((v, k) => _headers[k] = v);
22852
- }
22853
- ;
22854
- if (status === 200) {
22855
- return response.text().then((_responseText) => {
22856
- let result200 = null;
22857
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22858
- result200 = WorkorderOperationEventDto.fromJS(resultData200);
22859
- return result200;
22860
- });
22861
- }
22862
- else if (status !== 200 && status !== 204) {
22863
- return response.text().then((_responseText) => {
22864
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22865
- });
22866
- }
22867
- return Promise.resolve(null);
22868
- }
22869
- /**
22870
- * Register end work or setup on a workorder operation.
22871
- */
22872
- stopWorkorderOperationV2(id, operation, request) {
22873
- let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/stop";
22874
- if (id === undefined || id === null)
22875
- throw new globalThis.Error("The parameter 'id' must be defined.");
22876
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22877
- if (operation === undefined || operation === null)
22878
- throw new globalThis.Error("The parameter 'operation' must be defined.");
22879
- url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
22880
- url_ = url_.replace(/[?&]$/, "");
22881
- const content_ = JSON.stringify(request);
22882
- let options_ = {
22883
- body: content_,
22884
- method: "POST",
22885
- headers: {
22886
- "Content-Type": "application/json",
22887
- "Accept": "application/json"
22888
- }
22889
- };
22890
- return this.transformOptions(options_).then(transformedOptions_ => {
22891
- return this.http.fetch(url_, transformedOptions_);
22892
- }).then((_response) => {
22893
- return this.processStopWorkorderOperationV2(_response);
22894
- });
22895
- }
22896
- processStopWorkorderOperationV2(response) {
22820
+ processStopWorkorderOperationV2(response) {
22897
22821
  const status = response.status;
22898
22822
  let _headers = {};
22899
22823
  if (response.headers && response.headers.forEach) {
@@ -22908,6 +22832,11 @@ export class WorkordersClient extends AuthorizedApiBase {
22908
22832
  return result200;
22909
22833
  });
22910
22834
  }
22835
+ else if (status === 204) {
22836
+ return response.text().then((_responseText) => {
22837
+ return throwException("A server side error occurred.", status, _responseText, _headers);
22838
+ });
22839
+ }
22911
22840
  else if (status !== 200 && status !== 204) {
22912
22841
  return response.text().then((_responseText) => {
22913
22842
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -28093,10 +28022,6 @@ export class PartDto {
28093
28022
  this.partNumber = _data["partNumber"];
28094
28023
  this.partRevision = _data["partRevision"];
28095
28024
  this.partName = _data["partName"];
28096
- this.customerPartNumber = _data["customerPartNumber"];
28097
- this.customerPartRevision = _data["customerPartRevision"];
28098
- this.customerPartName = _data["customerPartName"];
28099
- this.vendorPartNumber = _data["vendorPartNumber"];
28100
28025
  this.drawing = _data["drawing"];
28101
28026
  this.drawingRevision = _data["drawingRevision"];
28102
28027
  this.material = _data["material"];
@@ -28114,10 +28039,6 @@ export class PartDto {
28114
28039
  data["partNumber"] = this.partNumber;
28115
28040
  data["partRevision"] = this.partRevision;
28116
28041
  data["partName"] = this.partName;
28117
- data["customerPartNumber"] = this.customerPartNumber;
28118
- data["customerPartRevision"] = this.customerPartRevision;
28119
- data["customerPartName"] = this.customerPartName;
28120
- data["vendorPartNumber"] = this.vendorPartNumber;
28121
28042
  data["drawing"] = this.drawing;
28122
28043
  data["drawingRevision"] = this.drawingRevision;
28123
28044
  data["material"] = this.material;
@@ -44688,34 +44609,6 @@ export class AddResourceTypeForNeedsGenerator {
44688
44609
  return data;
44689
44610
  }
44690
44611
  }
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
44612
  export class PagedResultOfSchemaFeedbackDto {
44720
44613
  constructor(data) {
44721
44614
  if (data) {
@@ -44955,7 +44848,7 @@ export class ListMeasurementFormSchemasRequest {
44955
44848
  return data;
44956
44849
  }
44957
44850
  }
44958
- export class PagedResultOfMeasurementFormInstanceOverviewDto {
44851
+ export class MeasurementFrequencyDto {
44959
44852
  constructor(data) {
44960
44853
  if (data) {
44961
44854
  for (var property in data) {
@@ -44963,38 +44856,27 @@ export class PagedResultOfMeasurementFormInstanceOverviewDto {
44963
44856
  this[property] = data[property];
44964
44857
  }
44965
44858
  }
44966
- if (!data) {
44967
- this.results = [];
44968
- }
44969
44859
  }
44970
44860
  init(_data) {
44971
44861
  if (_data) {
44972
- if (Array.isArray(_data["results"])) {
44973
- this.results = [];
44974
- for (let item of _data["results"])
44975
- this.results.push(MeasurementFormInstanceOverviewDto.fromJS(item));
44976
- }
44977
- this.continuationToken = _data["continuationToken"];
44862
+ this.id = _data["id"];
44863
+ this.name = _data["name"];
44978
44864
  }
44979
44865
  }
44980
44866
  static fromJS(data) {
44981
44867
  data = typeof data === 'object' ? data : {};
44982
- let result = new PagedResultOfMeasurementFormInstanceOverviewDto();
44868
+ let result = new MeasurementFrequencyDto();
44983
44869
  result.init(data);
44984
44870
  return result;
44985
44871
  }
44986
44872
  toJSON(data) {
44987
44873
  data = typeof data === 'object' ? data : {};
44988
- if (Array.isArray(this.results)) {
44989
- data["results"] = [];
44990
- for (let item of this.results)
44991
- data["results"].push(item ? item.toJSON() : undefined);
44992
- }
44993
- data["continuationToken"] = this.continuationToken;
44874
+ data["id"] = this.id;
44875
+ data["name"] = this.name;
44994
44876
  return data;
44995
44877
  }
44996
44878
  }
44997
- export class MeasurementFormInstanceOverviewDto {
44879
+ export class MeasurementFormInstanceDto {
44998
44880
  constructor(data) {
44999
44881
  if (data) {
45000
44882
  for (var property in data) {
@@ -45004,6 +44886,8 @@ export class MeasurementFormInstanceOverviewDto {
45004
44886
  }
45005
44887
  if (!data) {
45006
44888
  this.schemas = [];
44889
+ this.serialNumbers = [];
44890
+ this.suppliers = [];
45007
44891
  this.progress = new MeasurementFormProgressDto();
45008
44892
  }
45009
44893
  }
@@ -45011,28 +44895,44 @@ export class MeasurementFormInstanceOverviewDto {
45011
44895
  if (_data) {
45012
44896
  this.id = _data["id"];
45013
44897
  this.readonly = _data["readonly"];
45014
- this.partName = _data["partName"];
45015
44898
  this.partNumber = _data["partNumber"];
44899
+ this.partName = _data["partName"];
45016
44900
  this.partRevision = _data["partRevision"];
45017
44901
  this.drawing = _data["drawing"];
45018
44902
  this.drawingRevision = _data["drawingRevision"];
45019
- this.drawingUrl = _data["drawingUrl"];
45020
44903
  this.customerId = _data["customerId"];
45021
44904
  this.customerName = _data["customerName"];
45022
44905
  this.quantity = _data["quantity"];
45023
44906
  this.status = _data["status"];
44907
+ this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
45024
44908
  if (Array.isArray(_data["schemas"])) {
45025
44909
  this.schemas = [];
45026
44910
  for (let item of _data["schemas"])
45027
- this.schemas.push(MeasurementFormInstanceSchemaOverviewDto.fromJS(item));
44911
+ this.schemas.push(MeasurementFormWorkorderSchemaDto.fromJS(item));
44912
+ }
44913
+ if (Array.isArray(_data["sequences"])) {
44914
+ this.sequences = [];
44915
+ for (let item of _data["sequences"])
44916
+ this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
44917
+ }
44918
+ if (Array.isArray(_data["serialNumbers"])) {
44919
+ this.serialNumbers = [];
44920
+ for (let item of _data["serialNumbers"])
44921
+ this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
44922
+ }
44923
+ if (Array.isArray(_data["suppliers"])) {
44924
+ this.suppliers = [];
44925
+ for (let item of _data["suppliers"])
44926
+ this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
45028
44927
  }
45029
- this.supplierData = _data["supplierData"] ? MeasurementFormInstanceSupplierDto.fromJS(_data["supplierData"]) : undefined;
45030
44928
  this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
44929
+ this.approvedReportUrl = _data["approvedReportUrl"];
44930
+ this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined;
45031
44931
  }
45032
44932
  }
45033
44933
  static fromJS(data) {
45034
44934
  data = typeof data === 'object' ? data : {};
45035
- let result = new MeasurementFormInstanceOverviewDto();
44935
+ let result = new MeasurementFormInstanceDto();
45036
44936
  result.init(data);
45037
44937
  return result;
45038
44938
  }
@@ -45040,27 +44940,43 @@ export class MeasurementFormInstanceOverviewDto {
45040
44940
  data = typeof data === 'object' ? data : {};
45041
44941
  data["id"] = this.id;
45042
44942
  data["readonly"] = this.readonly;
45043
- data["partName"] = this.partName;
45044
44943
  data["partNumber"] = this.partNumber;
44944
+ data["partName"] = this.partName;
45045
44945
  data["partRevision"] = this.partRevision;
45046
44946
  data["drawing"] = this.drawing;
45047
44947
  data["drawingRevision"] = this.drawingRevision;
45048
- data["drawingUrl"] = this.drawingUrl;
45049
44948
  data["customerId"] = this.customerId;
45050
44949
  data["customerName"] = this.customerName;
45051
44950
  data["quantity"] = this.quantity;
45052
44951
  data["status"] = this.status;
44952
+ data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
45053
44953
  if (Array.isArray(this.schemas)) {
45054
44954
  data["schemas"] = [];
45055
44955
  for (let item of this.schemas)
45056
44956
  data["schemas"].push(item ? item.toJSON() : undefined);
45057
44957
  }
45058
- data["supplierData"] = this.supplierData ? this.supplierData.toJSON() : undefined;
44958
+ if (Array.isArray(this.sequences)) {
44959
+ data["sequences"] = [];
44960
+ for (let item of this.sequences)
44961
+ data["sequences"].push(item ? item.toJSON() : undefined);
44962
+ }
44963
+ if (Array.isArray(this.serialNumbers)) {
44964
+ data["serialNumbers"] = [];
44965
+ for (let item of this.serialNumbers)
44966
+ data["serialNumbers"].push(item ? item.toJSON() : undefined);
44967
+ }
44968
+ if (Array.isArray(this.suppliers)) {
44969
+ data["suppliers"] = [];
44970
+ for (let item of this.suppliers)
44971
+ data["suppliers"].push(item ? item.toJSON() : undefined);
44972
+ }
45059
44973
  data["progress"] = this.progress ? this.progress.toJSON() : undefined;
44974
+ data["approvedReportUrl"] = this.approvedReportUrl;
44975
+ data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : undefined;
45060
44976
  return data;
45061
44977
  }
45062
44978
  }
45063
- export class MeasurementFormInstanceSchemaOverviewDto {
44979
+ export class MeasurementFormWorkorderSchemaDto {
45064
44980
  constructor(data) {
45065
44981
  if (data) {
45066
44982
  for (var property in data) {
@@ -45068,25 +44984,50 @@ export class MeasurementFormInstanceSchemaOverviewDto {
45068
44984
  this[property] = data[property];
45069
44985
  }
45070
44986
  }
44987
+ if (!data) {
44988
+ this.progress = new MeasurementFormProgressDto();
44989
+ }
45071
44990
  }
45072
44991
  init(_data) {
45073
44992
  if (_data) {
45074
44993
  this.id = _data["id"];
44994
+ this.partNumber = _data["partNumber"];
44995
+ this.partRevision = _data["partRevision"];
44996
+ this.drawing = _data["drawing"];
44997
+ this.drawingRevision = _data["drawingRevision"];
44998
+ this.customerId = _data["customerId"];
44999
+ this.drawingUrl = _data["drawingUrl"];
45000
+ this.markedDrawingUrl = _data["markedDrawingUrl"];
45001
+ this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
45002
+ this.versionId = _data["versionId"];
45003
+ this.specification = _data["specification"];
45004
+ this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
45075
45005
  }
45076
45006
  }
45077
45007
  static fromJS(data) {
45078
45008
  data = typeof data === 'object' ? data : {};
45079
- let result = new MeasurementFormInstanceSchemaOverviewDto();
45009
+ let result = new MeasurementFormWorkorderSchemaDto();
45080
45010
  result.init(data);
45081
45011
  return result;
45082
45012
  }
45083
45013
  toJSON(data) {
45084
45014
  data = typeof data === 'object' ? data : {};
45085
45015
  data["id"] = this.id;
45016
+ data["partNumber"] = this.partNumber;
45017
+ data["partRevision"] = this.partRevision;
45018
+ data["drawing"] = this.drawing;
45019
+ data["drawingRevision"] = this.drawingRevision;
45020
+ data["customerId"] = this.customerId;
45021
+ data["drawingUrl"] = this.drawingUrl;
45022
+ data["markedDrawingUrl"] = this.markedDrawingUrl;
45023
+ data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
45024
+ data["versionId"] = this.versionId;
45025
+ data["specification"] = this.specification;
45026
+ data["progress"] = this.progress ? this.progress.toJSON() : undefined;
45086
45027
  return data;
45087
45028
  }
45088
45029
  }
45089
- export class MeasurementFormInstanceSupplierDto {
45030
+ export class MeasurementFormProgressDto {
45090
45031
  constructor(data) {
45091
45032
  if (data) {
45092
45033
  for (var property in data) {
@@ -45097,32 +45038,28 @@ export class MeasurementFormInstanceSupplierDto {
45097
45038
  }
45098
45039
  init(_data) {
45099
45040
  if (_data) {
45100
- this.supplierId = _data["supplierId"];
45101
- this.supplierName = _data["supplierName"];
45102
- this.available = _data["available"];
45103
- this.procurementOrder = _data["procurementOrder"];
45104
- this.procurementLine = _data["procurementLine"];
45105
- this.externalOrderNumber = _data["externalOrderNumber"];
45041
+ this.id = _data["id"];
45042
+ this.requiredValues = _data["requiredValues"];
45043
+ this.values = _data["values"];
45044
+ this.progress = _data["progress"];
45106
45045
  }
45107
45046
  }
45108
45047
  static fromJS(data) {
45109
45048
  data = typeof data === 'object' ? data : {};
45110
- let result = new MeasurementFormInstanceSupplierDto();
45049
+ let result = new MeasurementFormProgressDto();
45111
45050
  result.init(data);
45112
45051
  return result;
45113
45052
  }
45114
45053
  toJSON(data) {
45115
45054
  data = typeof data === 'object' ? data : {};
45116
- data["supplierId"] = this.supplierId;
45117
- data["supplierName"] = this.supplierName;
45118
- data["available"] = this.available;
45119
- data["procurementOrder"] = this.procurementOrder;
45120
- data["procurementLine"] = this.procurementLine;
45121
- data["externalOrderNumber"] = this.externalOrderNumber;
45055
+ data["id"] = this.id;
45056
+ data["requiredValues"] = this.requiredValues;
45057
+ data["values"] = this.values;
45058
+ data["progress"] = this.progress;
45122
45059
  return data;
45123
45060
  }
45124
45061
  }
45125
- export class MeasurementFormProgressDto {
45062
+ export class MeasurementFormWorkorderSequenceDto {
45126
45063
  constructor(data) {
45127
45064
  if (data) {
45128
45065
  for (var property in data) {
@@ -45133,28 +45070,26 @@ export class MeasurementFormProgressDto {
45133
45070
  }
45134
45071
  init(_data) {
45135
45072
  if (_data) {
45136
- this.id = _data["id"];
45137
- this.requiredValues = _data["requiredValues"];
45138
- this.values = _data["values"];
45139
- this.progress = _data["progress"];
45073
+ this.lot = _data["lot"];
45074
+ this.sequence = _data["sequence"];
45075
+ this.serialNumber = _data["serialNumber"];
45140
45076
  }
45141
45077
  }
45142
45078
  static fromJS(data) {
45143
45079
  data = typeof data === 'object' ? data : {};
45144
- let result = new MeasurementFormProgressDto();
45080
+ let result = new MeasurementFormWorkorderSequenceDto();
45145
45081
  result.init(data);
45146
45082
  return result;
45147
45083
  }
45148
45084
  toJSON(data) {
45149
45085
  data = typeof data === 'object' ? data : {};
45150
- data["id"] = this.id;
45151
- data["requiredValues"] = this.requiredValues;
45152
- data["values"] = this.values;
45153
- data["progress"] = this.progress;
45086
+ data["lot"] = this.lot;
45087
+ data["sequence"] = this.sequence;
45088
+ data["serialNumber"] = this.serialNumber;
45154
45089
  return data;
45155
45090
  }
45156
45091
  }
45157
- export class ListMeasurementFormsRequest {
45092
+ export class MeasurementFormWorkorderSerialNumberDto {
45158
45093
  constructor(data) {
45159
45094
  if (data) {
45160
45095
  for (var property in data) {
@@ -45165,32 +45100,62 @@ export class ListMeasurementFormsRequest {
45165
45100
  }
45166
45101
  init(_data) {
45167
45102
  if (_data) {
45168
- this.pageSize = _data["pageSize"];
45169
- this.search = _data["search"];
45170
- this.continuationToken = _data["continuationToken"];
45171
- this.tenantId = _data["tenantId"];
45172
- this.inactive = _data["inactive"];
45173
- this.includeInactiveSupplierAccess = _data["includeInactiveSupplierAccess"];
45103
+ this.lot = _data["lot"];
45104
+ this.serialNumber = _data["serialNumber"];
45105
+ this.customerSerialNumber = _data["customerSerialNumber"];
45174
45106
  }
45175
45107
  }
45176
45108
  static fromJS(data) {
45177
45109
  data = typeof data === 'object' ? data : {};
45178
- let result = new ListMeasurementFormsRequest();
45110
+ let result = new MeasurementFormWorkorderSerialNumberDto();
45179
45111
  result.init(data);
45180
45112
  return result;
45181
45113
  }
45182
45114
  toJSON(data) {
45183
45115
  data = typeof data === 'object' ? data : {};
45184
- data["pageSize"] = this.pageSize;
45185
- data["search"] = this.search;
45186
- data["continuationToken"] = this.continuationToken;
45187
- data["tenantId"] = this.tenantId;
45188
- data["inactive"] = this.inactive;
45189
- data["includeInactiveSupplierAccess"] = this.includeInactiveSupplierAccess;
45116
+ data["lot"] = this.lot;
45117
+ data["serialNumber"] = this.serialNumber;
45118
+ data["customerSerialNumber"] = this.customerSerialNumber;
45190
45119
  return data;
45191
45120
  }
45192
45121
  }
45193
- export class PagedResultOfMeasurementFormInstanceDto {
45122
+ export class MeasurementFormWorkorderSupplierDto {
45123
+ constructor(data) {
45124
+ if (data) {
45125
+ for (var property in data) {
45126
+ if (data.hasOwnProperty(property))
45127
+ this[property] = data[property];
45128
+ }
45129
+ }
45130
+ }
45131
+ init(_data) {
45132
+ if (_data) {
45133
+ this.supplierId = _data["supplierId"];
45134
+ this.supplierName = _data["supplierName"];
45135
+ this.available = _data["available"];
45136
+ this.procurementOrder = _data["procurementOrder"];
45137
+ this.procurementLine = _data["procurementLine"];
45138
+ this.externalOrderNumber = _data["externalOrderNumber"];
45139
+ }
45140
+ }
45141
+ static fromJS(data) {
45142
+ data = typeof data === 'object' ? data : {};
45143
+ let result = new MeasurementFormWorkorderSupplierDto();
45144
+ result.init(data);
45145
+ return result;
45146
+ }
45147
+ toJSON(data) {
45148
+ data = typeof data === 'object' ? data : {};
45149
+ data["supplierId"] = this.supplierId;
45150
+ data["supplierName"] = this.supplierName;
45151
+ data["available"] = this.available;
45152
+ data["procurementOrder"] = this.procurementOrder;
45153
+ data["procurementLine"] = this.procurementLine;
45154
+ data["externalOrderNumber"] = this.externalOrderNumber;
45155
+ return data;
45156
+ }
45157
+ }
45158
+ export class PagedResultOfMeasurementFormInstanceOverviewDto {
45194
45159
  constructor(data) {
45195
45160
  if (data) {
45196
45161
  for (var property in data) {
@@ -45207,14 +45172,14 @@ export class PagedResultOfMeasurementFormInstanceDto {
45207
45172
  if (Array.isArray(_data["results"])) {
45208
45173
  this.results = [];
45209
45174
  for (let item of _data["results"])
45210
- this.results.push(MeasurementFormInstanceDto.fromJS(item));
45175
+ this.results.push(MeasurementFormInstanceOverviewDto.fromJS(item));
45211
45176
  }
45212
45177
  this.continuationToken = _data["continuationToken"];
45213
45178
  }
45214
45179
  }
45215
45180
  static fromJS(data) {
45216
45181
  data = typeof data === 'object' ? data : {};
45217
- let result = new PagedResultOfMeasurementFormInstanceDto();
45182
+ let result = new PagedResultOfMeasurementFormInstanceOverviewDto();
45218
45183
  result.init(data);
45219
45184
  return result;
45220
45185
  }
@@ -45229,7 +45194,7 @@ export class PagedResultOfMeasurementFormInstanceDto {
45229
45194
  return data;
45230
45195
  }
45231
45196
  }
45232
- export class MeasurementFormInstanceDto {
45197
+ export class MeasurementFormInstanceOverviewDto {
45233
45198
  constructor(data) {
45234
45199
  if (data) {
45235
45200
  for (var property in data) {
@@ -45239,8 +45204,6 @@ export class MeasurementFormInstanceDto {
45239
45204
  }
45240
45205
  if (!data) {
45241
45206
  this.schemas = [];
45242
- this.serialNumbers = [];
45243
- this.suppliers = [];
45244
45207
  this.progress = new MeasurementFormProgressDto();
45245
45208
  }
45246
45209
  }
@@ -45248,44 +45211,28 @@ export class MeasurementFormInstanceDto {
45248
45211
  if (_data) {
45249
45212
  this.id = _data["id"];
45250
45213
  this.readonly = _data["readonly"];
45251
- this.partNumber = _data["partNumber"];
45252
45214
  this.partName = _data["partName"];
45215
+ this.partNumber = _data["partNumber"];
45253
45216
  this.partRevision = _data["partRevision"];
45254
45217
  this.drawing = _data["drawing"];
45255
45218
  this.drawingRevision = _data["drawingRevision"];
45219
+ this.drawingUrl = _data["drawingUrl"];
45256
45220
  this.customerId = _data["customerId"];
45257
45221
  this.customerName = _data["customerName"];
45258
45222
  this.quantity = _data["quantity"];
45259
45223
  this.status = _data["status"];
45260
- this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
45261
45224
  if (Array.isArray(_data["schemas"])) {
45262
45225
  this.schemas = [];
45263
45226
  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));
45227
+ this.schemas.push(MeasurementFormInstanceSchemaOverviewDto.fromJS(item));
45280
45228
  }
45229
+ this.supplierData = _data["supplierData"] ? MeasurementFormInstanceSupplierDto.fromJS(_data["supplierData"]) : undefined;
45281
45230
  this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
45282
- this.approvedReportUrl = _data["approvedReportUrl"];
45283
- this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined;
45284
45231
  }
45285
45232
  }
45286
45233
  static fromJS(data) {
45287
45234
  data = typeof data === 'object' ? data : {};
45288
- let result = new MeasurementFormInstanceDto();
45235
+ let result = new MeasurementFormInstanceOverviewDto();
45289
45236
  result.init(data);
45290
45237
  return result;
45291
45238
  }
@@ -45293,43 +45240,27 @@ export class MeasurementFormInstanceDto {
45293
45240
  data = typeof data === 'object' ? data : {};
45294
45241
  data["id"] = this.id;
45295
45242
  data["readonly"] = this.readonly;
45296
- data["partNumber"] = this.partNumber;
45297
45243
  data["partName"] = this.partName;
45244
+ data["partNumber"] = this.partNumber;
45298
45245
  data["partRevision"] = this.partRevision;
45299
45246
  data["drawing"] = this.drawing;
45300
45247
  data["drawingRevision"] = this.drawingRevision;
45248
+ data["drawingUrl"] = this.drawingUrl;
45301
45249
  data["customerId"] = this.customerId;
45302
45250
  data["customerName"] = this.customerName;
45303
45251
  data["quantity"] = this.quantity;
45304
45252
  data["status"] = this.status;
45305
- data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
45306
45253
  if (Array.isArray(this.schemas)) {
45307
45254
  data["schemas"] = [];
45308
45255
  for (let item of this.schemas)
45309
45256
  data["schemas"].push(item ? item.toJSON() : undefined);
45310
45257
  }
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);
45325
- }
45258
+ data["supplierData"] = this.supplierData ? this.supplierData.toJSON() : undefined;
45326
45259
  data["progress"] = this.progress ? this.progress.toJSON() : undefined;
45327
- data["approvedReportUrl"] = this.approvedReportUrl;
45328
- data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : undefined;
45329
45260
  return data;
45330
45261
  }
45331
45262
  }
45332
- export class MeasurementFormWorkorderSchemaDto {
45263
+ export class MeasurementFormInstanceSchemaOverviewDto {
45333
45264
  constructor(data) {
45334
45265
  if (data) {
45335
45266
  for (var property in data) {
@@ -45337,50 +45268,25 @@ export class MeasurementFormWorkorderSchemaDto {
45337
45268
  this[property] = data[property];
45338
45269
  }
45339
45270
  }
45340
- if (!data) {
45341
- this.progress = new MeasurementFormProgressDto();
45342
- }
45343
45271
  }
45344
45272
  init(_data) {
45345
45273
  if (_data) {
45346
45274
  this.id = _data["id"];
45347
- this.partNumber = _data["partNumber"];
45348
- this.partRevision = _data["partRevision"];
45349
- this.drawing = _data["drawing"];
45350
- this.drawingRevision = _data["drawingRevision"];
45351
- this.customerId = _data["customerId"];
45352
- this.drawingUrl = _data["drawingUrl"];
45353
- this.markedDrawingUrl = _data["markedDrawingUrl"];
45354
- this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
45355
- this.versionId = _data["versionId"];
45356
- this.specification = _data["specification"];
45357
- this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
45358
45275
  }
45359
45276
  }
45360
45277
  static fromJS(data) {
45361
45278
  data = typeof data === 'object' ? data : {};
45362
- let result = new MeasurementFormWorkorderSchemaDto();
45279
+ let result = new MeasurementFormInstanceSchemaOverviewDto();
45363
45280
  result.init(data);
45364
45281
  return result;
45365
45282
  }
45366
45283
  toJSON(data) {
45367
45284
  data = typeof data === 'object' ? data : {};
45368
45285
  data["id"] = this.id;
45369
- data["partNumber"] = this.partNumber;
45370
- data["partRevision"] = this.partRevision;
45371
- data["drawing"] = this.drawing;
45372
- data["drawingRevision"] = this.drawingRevision;
45373
- data["customerId"] = this.customerId;
45374
- data["drawingUrl"] = this.drawingUrl;
45375
- data["markedDrawingUrl"] = this.markedDrawingUrl;
45376
- data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
45377
- data["versionId"] = this.versionId;
45378
- data["specification"] = this.specification;
45379
- data["progress"] = this.progress ? this.progress.toJSON() : undefined;
45380
45286
  return data;
45381
45287
  }
45382
45288
  }
45383
- export class MeasurementFormWorkorderSequenceDto {
45289
+ export class MeasurementFormInstanceSupplierDto {
45384
45290
  constructor(data) {
45385
45291
  if (data) {
45386
45292
  for (var property in data) {
@@ -45391,26 +45297,32 @@ export class MeasurementFormWorkorderSequenceDto {
45391
45297
  }
45392
45298
  init(_data) {
45393
45299
  if (_data) {
45394
- this.lot = _data["lot"];
45395
- this.sequence = _data["sequence"];
45396
- this.serialNumber = _data["serialNumber"];
45300
+ this.supplierId = _data["supplierId"];
45301
+ this.supplierName = _data["supplierName"];
45302
+ this.available = _data["available"];
45303
+ this.procurementOrder = _data["procurementOrder"];
45304
+ this.procurementLine = _data["procurementLine"];
45305
+ this.externalOrderNumber = _data["externalOrderNumber"];
45397
45306
  }
45398
45307
  }
45399
45308
  static fromJS(data) {
45400
45309
  data = typeof data === 'object' ? data : {};
45401
- let result = new MeasurementFormWorkorderSequenceDto();
45310
+ let result = new MeasurementFormInstanceSupplierDto();
45402
45311
  result.init(data);
45403
45312
  return result;
45404
45313
  }
45405
45314
  toJSON(data) {
45406
45315
  data = typeof data === 'object' ? data : {};
45407
- data["lot"] = this.lot;
45408
- data["sequence"] = this.sequence;
45409
- data["serialNumber"] = this.serialNumber;
45316
+ data["supplierId"] = this.supplierId;
45317
+ data["supplierName"] = this.supplierName;
45318
+ data["available"] = this.available;
45319
+ data["procurementOrder"] = this.procurementOrder;
45320
+ data["procurementLine"] = this.procurementLine;
45321
+ data["externalOrderNumber"] = this.externalOrderNumber;
45410
45322
  return data;
45411
45323
  }
45412
45324
  }
45413
- export class MeasurementFormWorkorderSerialNumberDto {
45325
+ export class ListMeasurementFormsRequest {
45414
45326
  constructor(data) {
45415
45327
  if (data) {
45416
45328
  for (var property in data) {
@@ -45421,26 +45333,32 @@ export class MeasurementFormWorkorderSerialNumberDto {
45421
45333
  }
45422
45334
  init(_data) {
45423
45335
  if (_data) {
45424
- this.lot = _data["lot"];
45425
- this.serialNumber = _data["serialNumber"];
45426
- this.customerSerialNumber = _data["customerSerialNumber"];
45336
+ this.pageSize = _data["pageSize"];
45337
+ this.search = _data["search"];
45338
+ this.continuationToken = _data["continuationToken"];
45339
+ this.tenantId = _data["tenantId"];
45340
+ this.inactive = _data["inactive"];
45341
+ this.includeInactiveSupplierAccess = _data["includeInactiveSupplierAccess"];
45427
45342
  }
45428
45343
  }
45429
45344
  static fromJS(data) {
45430
45345
  data = typeof data === 'object' ? data : {};
45431
- let result = new MeasurementFormWorkorderSerialNumberDto();
45346
+ let result = new ListMeasurementFormsRequest();
45432
45347
  result.init(data);
45433
45348
  return result;
45434
45349
  }
45435
45350
  toJSON(data) {
45436
45351
  data = typeof data === 'object' ? data : {};
45437
- data["lot"] = this.lot;
45438
- data["serialNumber"] = this.serialNumber;
45439
- data["customerSerialNumber"] = this.customerSerialNumber;
45352
+ data["pageSize"] = this.pageSize;
45353
+ data["search"] = this.search;
45354
+ data["continuationToken"] = this.continuationToken;
45355
+ data["tenantId"] = this.tenantId;
45356
+ data["inactive"] = this.inactive;
45357
+ data["includeInactiveSupplierAccess"] = this.includeInactiveSupplierAccess;
45440
45358
  return data;
45441
45359
  }
45442
45360
  }
45443
- export class MeasurementFormWorkorderSupplierDto {
45361
+ export class MeasurementFormInstanceFeedbackDto {
45444
45362
  constructor(data) {
45445
45363
  if (data) {
45446
45364
  for (var property in data) {
@@ -45451,32 +45369,40 @@ export class MeasurementFormWorkorderSupplierDto {
45451
45369
  }
45452
45370
  init(_data) {
45453
45371
  if (_data) {
45454
- this.supplierId = _data["supplierId"];
45455
- this.supplierName = _data["supplierName"];
45456
- this.available = _data["available"];
45457
- this.procurementOrder = _data["procurementOrder"];
45458
- this.procurementLine = _data["procurementLine"];
45459
- this.externalOrderNumber = _data["externalOrderNumber"];
45372
+ this.id = _data["id"];
45373
+ this.workOrder = _data["workOrder"];
45374
+ this.schemaId = _data["schemaId"];
45375
+ this.versionId = _data["versionId"];
45376
+ this.schemaInstanceId = _data["schemaInstanceId"];
45377
+ this.balloonId = _data["balloonId"];
45378
+ this.reference = _data["reference"];
45379
+ this.feedback = _data["feedback"];
45380
+ this.from = _data["from"];
45381
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
45460
45382
  }
45461
45383
  }
45462
45384
  static fromJS(data) {
45463
45385
  data = typeof data === 'object' ? data : {};
45464
- let result = new MeasurementFormWorkorderSupplierDto();
45386
+ let result = new MeasurementFormInstanceFeedbackDto();
45465
45387
  result.init(data);
45466
45388
  return result;
45467
45389
  }
45468
45390
  toJSON(data) {
45469
45391
  data = typeof data === 'object' ? data : {};
45470
- data["supplierId"] = this.supplierId;
45471
- data["supplierName"] = this.supplierName;
45472
- data["available"] = this.available;
45473
- data["procurementOrder"] = this.procurementOrder;
45474
- data["procurementLine"] = this.procurementLine;
45475
- data["externalOrderNumber"] = this.externalOrderNumber;
45392
+ data["id"] = this.id;
45393
+ data["workOrder"] = this.workOrder;
45394
+ data["schemaId"] = this.schemaId;
45395
+ data["versionId"] = this.versionId;
45396
+ data["schemaInstanceId"] = this.schemaInstanceId;
45397
+ data["balloonId"] = this.balloonId;
45398
+ data["reference"] = this.reference;
45399
+ data["feedback"] = this.feedback;
45400
+ data["from"] = this.from;
45401
+ data["created"] = this.created ? this.created.toISOString() : undefined;
45476
45402
  return data;
45477
45403
  }
45478
45404
  }
45479
- export class DeleteMeasurementFormsInstancesBulkRequest {
45405
+ export class MeasurementFormInstanceSchemaDto {
45480
45406
  constructor(data) {
45481
45407
  if (data) {
45482
45408
  for (var property in data) {
@@ -45485,35 +45411,39 @@ export class DeleteMeasurementFormsInstancesBulkRequest {
45485
45411
  }
45486
45412
  }
45487
45413
  if (!data) {
45488
- this.ids = [];
45414
+ this.elements = [];
45489
45415
  }
45490
45416
  }
45491
45417
  init(_data) {
45492
45418
  if (_data) {
45493
- if (Array.isArray(_data["ids"])) {
45494
- this.ids = [];
45495
- for (let item of _data["ids"])
45496
- this.ids.push(item);
45419
+ if (Array.isArray(_data["elements"])) {
45420
+ this.elements = [];
45421
+ for (let item of _data["elements"])
45422
+ this.elements.push(MeasurementFormInstanceElementDto.fromJS(item));
45497
45423
  }
45424
+ this.isCompleted = _data["isCompleted"];
45425
+ this.comment = _data["comment"];
45498
45426
  }
45499
45427
  }
45500
45428
  static fromJS(data) {
45501
45429
  data = typeof data === 'object' ? data : {};
45502
- let result = new DeleteMeasurementFormsInstancesBulkRequest();
45430
+ let result = new MeasurementFormInstanceSchemaDto();
45503
45431
  result.init(data);
45504
45432
  return result;
45505
45433
  }
45506
45434
  toJSON(data) {
45507
45435
  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);
45436
+ if (Array.isArray(this.elements)) {
45437
+ data["elements"] = [];
45438
+ for (let item of this.elements)
45439
+ data["elements"].push(item ? item.toJSON() : undefined);
45512
45440
  }
45441
+ data["isCompleted"] = this.isCompleted;
45442
+ data["comment"] = this.comment;
45513
45443
  return data;
45514
45444
  }
45515
45445
  }
45516
- export class ListMeasurementFormsByStatusRequest {
45446
+ export class MeasurementFormInstanceElementDto {
45517
45447
  constructor(data) {
45518
45448
  if (data) {
45519
45449
  for (var property in data) {
@@ -45521,35 +45451,122 @@ export class ListMeasurementFormsByStatusRequest {
45521
45451
  this[property] = data[property];
45522
45452
  }
45523
45453
  }
45454
+ if (!data) {
45455
+ this.values = [];
45456
+ }
45524
45457
  }
45525
45458
  init(_data) {
45526
45459
  if (_data) {
45527
- this.status = _data["status"];
45528
- this.statusChangedSince = _data["statusChangedSince"] ? new Date(_data["statusChangedSince"].toString()) : undefined;
45529
- this.onlyWithReports = _data["onlyWithReports"];
45530
- this.pageSize = _data["pageSize"];
45531
- this.search = _data["search"];
45532
- this.continuationToken = _data["continuationToken"];
45460
+ this.id = _data["id"];
45461
+ this.imageUrl = _data["imageUrl"];
45462
+ this.thumbnailUrl = _data["thumbnailUrl"];
45463
+ this.balloonId = _data["balloonId"];
45464
+ this.reference = _data["reference"];
45465
+ this.section = _data["section"];
45466
+ this.pageNumber = _data["pageNumber"];
45467
+ this.sheetZone = _data["sheetZone"];
45468
+ this.completed = _data["completed"];
45469
+ this.places = _data["places"];
45470
+ this.nominal = _data["nominal"];
45471
+ this.type = _data["type"];
45472
+ this.subType = _data["subType"];
45473
+ this.unitOfMeasure = _data["unitOfMeasure"];
45474
+ this.typeCharacter = _data["typeCharacter"];
45475
+ this.upperLimit = _data["upperLimit"];
45476
+ this.lowerLimit = _data["lowerLimit"];
45477
+ this.comments = _data["comments"];
45478
+ this.updatedByUser = _data["updatedByUser"];
45479
+ this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
45480
+ this.createdByUser = _data["createdByUser"];
45481
+ this.createdDate = _data["createdDate"] ? new Date(_data["createdDate"].toString()) : undefined;
45482
+ this.frequency = _data["frequency"];
45483
+ this.frequencyParameter = _data["frequencyParameter"];
45484
+ this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
45485
+ this.isDocumentedExternally = _data["isDocumentedExternally"];
45486
+ this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
45487
+ this.balloonSequence = _data["balloonSequence"];
45488
+ this.referenceIndex = _data["referenceIndex"];
45489
+ this.balloonQuantity = _data["balloonQuantity"];
45490
+ this.referenceQuantity = _data["referenceQuantity"];
45491
+ this.plusTolerance = _data["plusTolerance"];
45492
+ this.minusTolerance = _data["minusTolerance"];
45493
+ this.coatingThickness = _data["coatingThickness"];
45494
+ this.canCopy = _data["canCopy"];
45495
+ this.valueType = _data["valueType"];
45496
+ this.bonusType = _data["bonusType"];
45497
+ this.lowerWarningThreshold = _data["lowerWarningThreshold"];
45498
+ this.upperWarningThreshold = _data["upperWarningThreshold"];
45499
+ this.minimumDecimals = _data["minimumDecimals"];
45500
+ this.maximumDecimals = _data["maximumDecimals"];
45501
+ this.machiningDimensions = _data["machiningDimensions"];
45502
+ this.isStarted = _data["isStarted"];
45503
+ if (Array.isArray(_data["values"])) {
45504
+ this.values = [];
45505
+ for (let item of _data["values"])
45506
+ this.values.push(MeasurementFormElementValueDto.fromJS(item));
45507
+ }
45533
45508
  }
45534
45509
  }
45535
45510
  static fromJS(data) {
45536
45511
  data = typeof data === 'object' ? data : {};
45537
- let result = new ListMeasurementFormsByStatusRequest();
45512
+ let result = new MeasurementFormInstanceElementDto();
45538
45513
  result.init(data);
45539
45514
  return result;
45540
45515
  }
45541
45516
  toJSON(data) {
45542
45517
  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
- data["pageSize"] = this.pageSize;
45547
- data["search"] = this.search;
45548
- data["continuationToken"] = this.continuationToken;
45518
+ data["id"] = this.id;
45519
+ data["imageUrl"] = this.imageUrl;
45520
+ data["thumbnailUrl"] = this.thumbnailUrl;
45521
+ data["balloonId"] = this.balloonId;
45522
+ data["reference"] = this.reference;
45523
+ data["section"] = this.section;
45524
+ data["pageNumber"] = this.pageNumber;
45525
+ data["sheetZone"] = this.sheetZone;
45526
+ data["completed"] = this.completed;
45527
+ data["places"] = this.places;
45528
+ data["nominal"] = this.nominal;
45529
+ data["type"] = this.type;
45530
+ data["subType"] = this.subType;
45531
+ data["unitOfMeasure"] = this.unitOfMeasure;
45532
+ data["typeCharacter"] = this.typeCharacter;
45533
+ data["upperLimit"] = this.upperLimit;
45534
+ data["lowerLimit"] = this.lowerLimit;
45535
+ data["comments"] = this.comments;
45536
+ data["updatedByUser"] = this.updatedByUser;
45537
+ data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
45538
+ data["createdByUser"] = this.createdByUser;
45539
+ data["createdDate"] = this.createdDate ? this.createdDate.toISOString() : undefined;
45540
+ data["frequency"] = this.frequency;
45541
+ data["frequencyParameter"] = this.frequencyParameter;
45542
+ data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
45543
+ data["isDocumentedExternally"] = this.isDocumentedExternally;
45544
+ data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
45545
+ data["balloonSequence"] = this.balloonSequence;
45546
+ data["referenceIndex"] = this.referenceIndex;
45547
+ data["balloonQuantity"] = this.balloonQuantity;
45548
+ data["referenceQuantity"] = this.referenceQuantity;
45549
+ data["plusTolerance"] = this.plusTolerance;
45550
+ data["minusTolerance"] = this.minusTolerance;
45551
+ data["coatingThickness"] = this.coatingThickness;
45552
+ data["canCopy"] = this.canCopy;
45553
+ data["valueType"] = this.valueType;
45554
+ data["bonusType"] = this.bonusType;
45555
+ data["lowerWarningThreshold"] = this.lowerWarningThreshold;
45556
+ data["upperWarningThreshold"] = this.upperWarningThreshold;
45557
+ data["minimumDecimals"] = this.minimumDecimals;
45558
+ data["maximumDecimals"] = this.maximumDecimals;
45559
+ data["machiningDimensions"] = this.machiningDimensions;
45560
+ data["isStarted"] = this.isStarted;
45561
+ if (Array.isArray(this.values)) {
45562
+ data["values"] = [];
45563
+ for (let item of this.values)
45564
+ data["values"].push(item ? item.toJSON() : undefined);
45565
+ }
45549
45566
  return data;
45550
45567
  }
45551
45568
  }
45552
- export class MeasurementFormInstanceFeedbackDto {
45569
+ export class MeasurementFormElementValueDto {
45553
45570
  constructor(data) {
45554
45571
  if (data) {
45555
45572
  for (var property in data) {
@@ -45557,43 +45574,56 @@ export class MeasurementFormInstanceFeedbackDto {
45557
45574
  this[property] = data[property];
45558
45575
  }
45559
45576
  }
45577
+ if (!data) {
45578
+ this.tools = [];
45579
+ }
45560
45580
  }
45561
45581
  init(_data) {
45562
45582
  if (_data) {
45563
- this.id = _data["id"];
45564
- this.workOrder = _data["workOrder"];
45565
- this.schemaId = _data["schemaId"];
45566
- this.versionId = _data["versionId"];
45567
- this.schemaInstanceId = _data["schemaInstanceId"];
45568
- this.balloonId = _data["balloonId"];
45569
- this.reference = _data["reference"];
45570
- this.feedback = _data["feedback"];
45571
- this.from = _data["from"];
45572
- this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
45583
+ this.bonus = _data["bonus"];
45584
+ this.completed = _data["completed"];
45585
+ this.sequence = _data["sequence"];
45586
+ this.serialNumber = _data["serialNumber"];
45587
+ this.value = _data["value"];
45588
+ this.updatedByUser = _data["updatedByUser"];
45589
+ this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
45590
+ if (Array.isArray(_data["tools"])) {
45591
+ this.tools = [];
45592
+ for (let item of _data["tools"])
45593
+ this.tools.push(MeasurementFormToolValueDto.fromJS(item));
45594
+ }
45595
+ this.comment = _data["comment"];
45596
+ this.isOutsideTolerances = _data["isOutsideTolerances"];
45597
+ this.isCloseToTolerances = _data["isCloseToTolerances"];
45573
45598
  }
45574
45599
  }
45575
45600
  static fromJS(data) {
45576
45601
  data = typeof data === 'object' ? data : {};
45577
- let result = new MeasurementFormInstanceFeedbackDto();
45602
+ let result = new MeasurementFormElementValueDto();
45578
45603
  result.init(data);
45579
45604
  return result;
45580
45605
  }
45581
45606
  toJSON(data) {
45582
45607
  data = typeof data === 'object' ? data : {};
45583
- data["id"] = this.id;
45584
- data["workOrder"] = this.workOrder;
45585
- data["schemaId"] = this.schemaId;
45586
- data["versionId"] = this.versionId;
45587
- data["schemaInstanceId"] = this.schemaInstanceId;
45588
- data["balloonId"] = this.balloonId;
45589
- data["reference"] = this.reference;
45590
- data["feedback"] = this.feedback;
45591
- data["from"] = this.from;
45592
- data["created"] = this.created ? this.created.toISOString() : undefined;
45608
+ data["bonus"] = this.bonus;
45609
+ data["completed"] = this.completed;
45610
+ data["sequence"] = this.sequence;
45611
+ data["serialNumber"] = this.serialNumber;
45612
+ data["value"] = this.value;
45613
+ data["updatedByUser"] = this.updatedByUser;
45614
+ data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
45615
+ if (Array.isArray(this.tools)) {
45616
+ data["tools"] = [];
45617
+ for (let item of this.tools)
45618
+ data["tools"].push(item ? item.toJSON() : undefined);
45619
+ }
45620
+ data["comment"] = this.comment;
45621
+ data["isOutsideTolerances"] = this.isOutsideTolerances;
45622
+ data["isCloseToTolerances"] = this.isCloseToTolerances;
45593
45623
  return data;
45594
45624
  }
45595
45625
  }
45596
- export class CreateMeasurementFormInstanceRequest {
45626
+ export class MeasurementFormToolValueDto {
45597
45627
  constructor(data) {
45598
45628
  if (data) {
45599
45629
  for (var property in data) {
@@ -45601,54 +45631,29 @@ export class CreateMeasurementFormInstanceRequest {
45601
45631
  this[property] = data[property];
45602
45632
  }
45603
45633
  }
45604
- if (!data) {
45605
- this.serialNumbers = [];
45606
- }
45607
45634
  }
45608
45635
  init(_data) {
45609
45636
  if (_data) {
45610
- this.schemaId = _data["schemaId"];
45611
- this.customerId = _data["customerId"];
45612
- this.customerName = _data["customerName"];
45613
- this.purchaseOrder = _data["purchaseOrder"];
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
- }
45637
+ this.tool = _data["tool"];
45638
+ this.type = _data["type"];
45639
+ this.subType = _data["subType"];
45624
45640
  }
45625
45641
  }
45626
45642
  static fromJS(data) {
45627
45643
  data = typeof data === 'object' ? data : {};
45628
- let result = new CreateMeasurementFormInstanceRequest();
45644
+ let result = new MeasurementFormToolValueDto();
45629
45645
  result.init(data);
45630
45646
  return result;
45631
45647
  }
45632
45648
  toJSON(data) {
45633
45649
  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
- }
45650
+ data["tool"] = this.tool;
45651
+ data["type"] = this.type;
45652
+ data["subType"] = this.subType;
45648
45653
  return data;
45649
45654
  }
45650
45655
  }
45651
- export class CreateMeasurementFormInstanceRequestSequence {
45656
+ export class MeasurementFormInstanceProgressDto {
45652
45657
  constructor(data) {
45653
45658
  if (data) {
45654
45659
  for (var property in data) {
@@ -45659,24 +45664,32 @@ export class CreateMeasurementFormInstanceRequestSequence {
45659
45664
  }
45660
45665
  init(_data) {
45661
45666
  if (_data) {
45662
- this.sequenceNumber = _data["sequenceNumber"];
45663
- this.serialNumber = _data["serialNumber"];
45667
+ this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : undefined;
45668
+ if (Array.isArray(_data["schemas"])) {
45669
+ this.schemas = [];
45670
+ for (let item of _data["schemas"])
45671
+ this.schemas.push(MeasurementFormProgressDto.fromJS(item));
45672
+ }
45664
45673
  }
45665
45674
  }
45666
45675
  static fromJS(data) {
45667
45676
  data = typeof data === 'object' ? data : {};
45668
- let result = new CreateMeasurementFormInstanceRequestSequence();
45677
+ let result = new MeasurementFormInstanceProgressDto();
45669
45678
  result.init(data);
45670
45679
  return result;
45671
45680
  }
45672
45681
  toJSON(data) {
45673
45682
  data = typeof data === 'object' ? data : {};
45674
- data["sequenceNumber"] = this.sequenceNumber;
45675
- data["serialNumber"] = this.serialNumber;
45683
+ data["progress"] = this.progress ? this.progress.toJSON() : undefined;
45684
+ if (Array.isArray(this.schemas)) {
45685
+ data["schemas"] = [];
45686
+ for (let item of this.schemas)
45687
+ data["schemas"].push(item ? item.toJSON() : undefined);
45688
+ }
45676
45689
  return data;
45677
45690
  }
45678
45691
  }
45679
- export class CreateMeasurementFormInstanceRequestSerialNumber {
45692
+ export class MeasurementFormElementValueAuditDto {
45680
45693
  constructor(data) {
45681
45694
  if (data) {
45682
45695
  for (var property in data) {
@@ -45684,27 +45697,58 @@ export class CreateMeasurementFormInstanceRequestSerialNumber {
45684
45697
  this[property] = data[property];
45685
45698
  }
45686
45699
  }
45700
+ if (!data) {
45701
+ this.tools = [];
45702
+ }
45687
45703
  }
45688
45704
  init(_data) {
45689
45705
  if (_data) {
45706
+ this.workorder = _data["workorder"];
45707
+ this.operation = _data["operation"];
45708
+ this.resourceName = _data["resourceName"];
45709
+ this.schemaId = _data["schemaId"];
45710
+ this.value = _data["value"];
45711
+ this.bonus = _data["bonus"];
45712
+ this.sequence = _data["sequence"];
45690
45713
  this.serialNumber = _data["serialNumber"];
45691
- this.customerSerialNumber = _data["customerSerialNumber"];
45714
+ this.elementId = _data["elementId"];
45715
+ this.updatedByUser = _data["updatedByUser"];
45716
+ this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
45717
+ if (Array.isArray(_data["tools"])) {
45718
+ this.tools = [];
45719
+ for (let item of _data["tools"])
45720
+ this.tools.push(MeasurementFormToolValueDto.fromJS(item));
45721
+ }
45692
45722
  }
45693
45723
  }
45694
45724
  static fromJS(data) {
45695
45725
  data = typeof data === 'object' ? data : {};
45696
- let result = new CreateMeasurementFormInstanceRequestSerialNumber();
45726
+ let result = new MeasurementFormElementValueAuditDto();
45697
45727
  result.init(data);
45698
45728
  return result;
45699
45729
  }
45700
45730
  toJSON(data) {
45701
45731
  data = typeof data === 'object' ? data : {};
45732
+ data["workorder"] = this.workorder;
45733
+ data["operation"] = this.operation;
45734
+ data["resourceName"] = this.resourceName;
45735
+ data["schemaId"] = this.schemaId;
45736
+ data["value"] = this.value;
45737
+ data["bonus"] = this.bonus;
45738
+ data["sequence"] = this.sequence;
45702
45739
  data["serialNumber"] = this.serialNumber;
45703
- data["customerSerialNumber"] = this.customerSerialNumber;
45740
+ data["elementId"] = this.elementId;
45741
+ data["updatedByUser"] = this.updatedByUser;
45742
+ data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
45743
+ if (Array.isArray(this.tools)) {
45744
+ data["tools"] = [];
45745
+ for (let item of this.tools)
45746
+ data["tools"].push(item ? item.toJSON() : undefined);
45747
+ }
45704
45748
  return data;
45705
45749
  }
45706
45750
  }
45707
- export class UpdateMeasurementFormInstanceRequest {
45751
+ export class ValidationRuleDto {
45708
45752
  constructor(data) {
45709
45753
  if (data) {
45710
45754
  for (var property in data) {
@@ -45712,57 +45756,27 @@ export class UpdateMeasurementFormInstanceRequest {
45712
45756
  this[property] = data[property];
45713
45757
  }
45714
45758
  }
45715
- if (!data) {
45716
- this.serialNumbers = [];
45717
- this.suppliers = [];
45718
- }
45719
45759
  }
45720
45760
  init(_data) {
45721
45761
  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
- }
45762
+ this.id = _data["id"];
45763
+ this.name = _data["name"];
45737
45764
  }
45738
45765
  }
45739
45766
  static fromJS(data) {
45740
45767
  data = typeof data === 'object' ? data : {};
45741
- let result = new UpdateMeasurementFormInstanceRequest();
45768
+ let result = new ValidationRuleDto();
45742
45769
  result.init(data);
45743
45770
  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
- }
45771
+ }
45772
+ toJSON(data) {
45773
+ data = typeof data === 'object' ? data : {};
45774
+ data["id"] = this.id;
45775
+ data["name"] = this.name;
45762
45776
  return data;
45763
45777
  }
45764
45778
  }
45765
- export class MeasurementFormInstanceSchemaDto {
45779
+ export class SaveValueResponseDto {
45766
45780
  constructor(data) {
45767
45781
  if (data) {
45768
45782
  for (var property in data) {
@@ -45771,39 +45785,43 @@ export class MeasurementFormInstanceSchemaDto {
45771
45785
  }
45772
45786
  }
45773
45787
  if (!data) {
45774
- this.elements = [];
45788
+ this.tools = [];
45775
45789
  }
45776
45790
  }
45777
45791
  init(_data) {
45778
45792
  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));
45793
+ this.elementCompleted = _data["elementCompleted"];
45794
+ this.warning = _data["warning"];
45795
+ this.isOutsideTolerances = _data["isOutsideTolerances"];
45796
+ this.isCloseToTolerances = _data["isCloseToTolerances"];
45797
+ if (Array.isArray(_data["tools"])) {
45798
+ this.tools = [];
45799
+ for (let item of _data["tools"])
45800
+ this.tools.push(MeasurementFormToolValueDto.fromJS(item));
45783
45801
  }
45784
- this.isCompleted = _data["isCompleted"];
45785
- this.comment = _data["comment"];
45786
45802
  }
45787
45803
  }
45788
45804
  static fromJS(data) {
45789
45805
  data = typeof data === 'object' ? data : {};
45790
- let result = new MeasurementFormInstanceSchemaDto();
45806
+ let result = new SaveValueResponseDto();
45791
45807
  result.init(data);
45792
45808
  return result;
45793
45809
  }
45794
45810
  toJSON(data) {
45795
45811
  data = typeof data === 'object' ? data : {};
45796
- if (Array.isArray(this.elements)) {
45797
- data["elements"] = [];
45798
- for (let item of this.elements)
45799
- data["elements"].push(item ? item.toJSON() : undefined);
45812
+ data["elementCompleted"] = this.elementCompleted;
45813
+ data["warning"] = this.warning;
45814
+ data["isOutsideTolerances"] = this.isOutsideTolerances;
45815
+ data["isCloseToTolerances"] = this.isCloseToTolerances;
45816
+ if (Array.isArray(this.tools)) {
45817
+ data["tools"] = [];
45818
+ for (let item of this.tools)
45819
+ data["tools"].push(item ? item.toJSON() : undefined);
45800
45820
  }
45801
- data["isCompleted"] = this.isCompleted;
45802
- data["comment"] = this.comment;
45803
45821
  return data;
45804
45822
  }
45805
45823
  }
45806
- export class MeasurementFormInstanceElementDto {
45824
+ export class SaveValueRequest {
45807
45825
  constructor(data) {
45808
45826
  if (data) {
45809
45827
  for (var property in data) {
@@ -45811,122 +45829,39 @@ export class MeasurementFormInstanceElementDto {
45811
45829
  this[property] = data[property];
45812
45830
  }
45813
45831
  }
45814
- if (!data) {
45815
- this.values = [];
45816
- }
45817
45832
  }
45818
45833
  init(_data) {
45819
45834
  if (_data) {
45820
- this.id = _data["id"];
45821
- this.imageUrl = _data["imageUrl"];
45822
- this.thumbnailUrl = _data["thumbnailUrl"];
45823
- this.balloonId = _data["balloonId"];
45824
- this.reference = _data["reference"];
45825
- this.section = _data["section"];
45826
- this.pageNumber = _data["pageNumber"];
45827
- this.sheetZone = _data["sheetZone"];
45828
- this.completed = _data["completed"];
45829
- this.places = _data["places"];
45830
- this.nominal = _data["nominal"];
45831
- this.type = _data["type"];
45832
- this.subType = _data["subType"];
45833
- this.unitOfMeasure = _data["unitOfMeasure"];
45834
- this.typeCharacter = _data["typeCharacter"];
45835
- this.upperLimit = _data["upperLimit"];
45836
- this.lowerLimit = _data["lowerLimit"];
45837
- this.comments = _data["comments"];
45838
- this.updatedByUser = _data["updatedByUser"];
45839
- this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
45840
- this.createdByUser = _data["createdByUser"];
45841
- this.createdDate = _data["createdDate"] ? new Date(_data["createdDate"].toString()) : undefined;
45842
- this.frequency = _data["frequency"];
45843
- this.frequencyParameter = _data["frequencyParameter"];
45844
- this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
45845
- this.isDocumentedExternally = _data["isDocumentedExternally"];
45846
- this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
45847
- this.balloonSequence = _data["balloonSequence"];
45848
- this.referenceIndex = _data["referenceIndex"];
45849
- this.balloonQuantity = _data["balloonQuantity"];
45850
- this.referenceQuantity = _data["referenceQuantity"];
45851
- this.plusTolerance = _data["plusTolerance"];
45852
- this.minusTolerance = _data["minusTolerance"];
45853
- this.coatingThickness = _data["coatingThickness"];
45854
- this.canCopy = _data["canCopy"];
45855
- this.valueType = _data["valueType"];
45856
- this.bonusType = _data["bonusType"];
45857
- this.lowerWarningThreshold = _data["lowerWarningThreshold"];
45858
- this.upperWarningThreshold = _data["upperWarningThreshold"];
45859
- this.minimumDecimals = _data["minimumDecimals"];
45860
- this.maximumDecimals = _data["maximumDecimals"];
45861
- this.machiningDimensions = _data["machiningDimensions"];
45862
- this.isStarted = _data["isStarted"];
45863
- if (Array.isArray(_data["values"])) {
45864
- this.values = [];
45865
- for (let item of _data["values"])
45866
- this.values.push(MeasurementFormElementValueDto.fromJS(item));
45867
- }
45835
+ this.operation = _data["operation"];
45836
+ this.resourceName = _data["resourceName"];
45837
+ this.schemaId = _data["schemaId"];
45838
+ this.elementId = _data["elementId"];
45839
+ this.sequence = _data["sequence"];
45840
+ this.serialNumber = _data["serialNumber"];
45841
+ this.value = _data["value"];
45842
+ this.bonus = _data["bonus"];
45868
45843
  }
45869
45844
  }
45870
45845
  static fromJS(data) {
45871
45846
  data = typeof data === 'object' ? data : {};
45872
- let result = new MeasurementFormInstanceElementDto();
45847
+ let result = new SaveValueRequest();
45873
45848
  result.init(data);
45874
45849
  return result;
45875
45850
  }
45876
45851
  toJSON(data) {
45877
45852
  data = typeof data === 'object' ? data : {};
45878
- data["id"] = this.id;
45879
- data["imageUrl"] = this.imageUrl;
45880
- data["thumbnailUrl"] = this.thumbnailUrl;
45881
- data["balloonId"] = this.balloonId;
45882
- data["reference"] = this.reference;
45883
- data["section"] = this.section;
45884
- data["pageNumber"] = this.pageNumber;
45885
- data["sheetZone"] = this.sheetZone;
45886
- data["completed"] = this.completed;
45887
- data["places"] = this.places;
45888
- data["nominal"] = this.nominal;
45889
- data["type"] = this.type;
45890
- data["subType"] = this.subType;
45891
- data["unitOfMeasure"] = this.unitOfMeasure;
45892
- data["typeCharacter"] = this.typeCharacter;
45893
- data["upperLimit"] = this.upperLimit;
45894
- data["lowerLimit"] = this.lowerLimit;
45895
- data["comments"] = this.comments;
45896
- data["updatedByUser"] = this.updatedByUser;
45897
- data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
45898
- data["createdByUser"] = this.createdByUser;
45899
- data["createdDate"] = this.createdDate ? this.createdDate.toISOString() : undefined;
45900
- data["frequency"] = this.frequency;
45901
- data["frequencyParameter"] = this.frequencyParameter;
45902
- data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
45903
- data["isDocumentedExternally"] = this.isDocumentedExternally;
45904
- data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
45905
- data["balloonSequence"] = this.balloonSequence;
45906
- data["referenceIndex"] = this.referenceIndex;
45907
- data["balloonQuantity"] = this.balloonQuantity;
45908
- data["referenceQuantity"] = this.referenceQuantity;
45909
- data["plusTolerance"] = this.plusTolerance;
45910
- data["minusTolerance"] = this.minusTolerance;
45911
- data["coatingThickness"] = this.coatingThickness;
45912
- data["canCopy"] = this.canCopy;
45913
- data["valueType"] = this.valueType;
45914
- data["bonusType"] = this.bonusType;
45915
- data["lowerWarningThreshold"] = this.lowerWarningThreshold;
45916
- data["upperWarningThreshold"] = this.upperWarningThreshold;
45917
- data["minimumDecimals"] = this.minimumDecimals;
45918
- data["maximumDecimals"] = this.maximumDecimals;
45919
- data["machiningDimensions"] = this.machiningDimensions;
45920
- data["isStarted"] = this.isStarted;
45921
- if (Array.isArray(this.values)) {
45922
- data["values"] = [];
45923
- for (let item of this.values)
45924
- data["values"].push(item ? item.toJSON() : undefined);
45925
- }
45853
+ data["operation"] = this.operation;
45854
+ data["resourceName"] = this.resourceName;
45855
+ data["schemaId"] = this.schemaId;
45856
+ data["elementId"] = this.elementId;
45857
+ data["sequence"] = this.sequence;
45858
+ data["serialNumber"] = this.serialNumber;
45859
+ data["value"] = this.value;
45860
+ data["bonus"] = this.bonus;
45926
45861
  return data;
45927
45862
  }
45928
45863
  }
45929
- export class MeasurementFormElementValueDto {
45864
+ export class SaveToolRequest {
45930
45865
  constructor(data) {
45931
45866
  if (data) {
45932
45867
  for (var property in data) {
@@ -45934,56 +45869,43 @@ export class MeasurementFormElementValueDto {
45934
45869
  this[property] = data[property];
45935
45870
  }
45936
45871
  }
45937
- if (!data) {
45938
- this.tools = [];
45939
- }
45940
45872
  }
45941
45873
  init(_data) {
45942
45874
  if (_data) {
45943
- this.bonus = _data["bonus"];
45944
- this.completed = _data["completed"];
45875
+ this.schemaId = _data["schemaId"];
45876
+ this.elementId = _data["elementId"];
45945
45877
  this.sequence = _data["sequence"];
45946
45878
  this.serialNumber = _data["serialNumber"];
45947
- this.value = _data["value"];
45948
- this.updatedByUser = _data["updatedByUser"];
45949
- this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
45950
45879
  if (Array.isArray(_data["tools"])) {
45951
45880
  this.tools = [];
45952
45881
  for (let item of _data["tools"])
45953
- this.tools.push(MeasurementFormToolValueDto.fromJS(item));
45882
+ this.tools.push(item);
45954
45883
  }
45955
- this.comment = _data["comment"];
45956
- this.isOutsideTolerances = _data["isOutsideTolerances"];
45957
- this.isCloseToTolerances = _data["isCloseToTolerances"];
45884
+ this.force = _data["force"];
45958
45885
  }
45959
45886
  }
45960
45887
  static fromJS(data) {
45961
45888
  data = typeof data === 'object' ? data : {};
45962
- let result = new MeasurementFormElementValueDto();
45889
+ let result = new SaveToolRequest();
45963
45890
  result.init(data);
45964
45891
  return result;
45965
45892
  }
45966
45893
  toJSON(data) {
45967
45894
  data = typeof data === 'object' ? data : {};
45968
- data["bonus"] = this.bonus;
45969
- data["completed"] = this.completed;
45895
+ data["schemaId"] = this.schemaId;
45896
+ data["elementId"] = this.elementId;
45970
45897
  data["sequence"] = this.sequence;
45971
45898
  data["serialNumber"] = this.serialNumber;
45972
- data["value"] = this.value;
45973
- data["updatedByUser"] = this.updatedByUser;
45974
- data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
45975
45899
  if (Array.isArray(this.tools)) {
45976
45900
  data["tools"] = [];
45977
45901
  for (let item of this.tools)
45978
- data["tools"].push(item ? item.toJSON() : undefined);
45902
+ data["tools"].push(item);
45979
45903
  }
45980
- data["comment"] = this.comment;
45981
- data["isOutsideTolerances"] = this.isOutsideTolerances;
45982
- data["isCloseToTolerances"] = this.isCloseToTolerances;
45904
+ data["force"] = this.force;
45983
45905
  return data;
45984
45906
  }
45985
45907
  }
45986
- export class MeasurementFormToolValueDto {
45908
+ export class SaveCommentRequest {
45987
45909
  constructor(data) {
45988
45910
  if (data) {
45989
45911
  for (var property in data) {
@@ -45994,26 +45916,30 @@ export class MeasurementFormToolValueDto {
45994
45916
  }
45995
45917
  init(_data) {
45996
45918
  if (_data) {
45997
- this.tool = _data["tool"];
45998
- this.type = _data["type"];
45999
- this.subType = _data["subType"];
45919
+ this.schemaId = _data["schemaId"];
45920
+ this.elementId = _data["elementId"];
45921
+ this.sequence = _data["sequence"];
45922
+ this.serialNumber = _data["serialNumber"];
45923
+ this.comment = _data["comment"];
46000
45924
  }
46001
45925
  }
46002
45926
  static fromJS(data) {
46003
45927
  data = typeof data === 'object' ? data : {};
46004
- let result = new MeasurementFormToolValueDto();
45928
+ let result = new SaveCommentRequest();
46005
45929
  result.init(data);
46006
45930
  return result;
46007
45931
  }
46008
45932
  toJSON(data) {
46009
45933
  data = typeof data === 'object' ? data : {};
46010
- data["tool"] = this.tool;
46011
- data["type"] = this.type;
46012
- data["subType"] = this.subType;
45934
+ data["schemaId"] = this.schemaId;
45935
+ data["elementId"] = this.elementId;
45936
+ data["sequence"] = this.sequence;
45937
+ data["serialNumber"] = this.serialNumber;
45938
+ data["comment"] = this.comment;
46013
45939
  return data;
46014
45940
  }
46015
45941
  }
46016
- export class MeasurementFormInstanceProgressDto {
45942
+ export class BatchInsertValuesResponseDto {
46017
45943
  constructor(data) {
46018
45944
  if (data) {
46019
45945
  for (var property in data) {
@@ -46021,35 +45947,30 @@ export class MeasurementFormInstanceProgressDto {
46021
45947
  this[property] = data[property];
46022
45948
  }
46023
45949
  }
45950
+ if (!data) {
45951
+ this.elementWithValues = new MeasurementFormInstanceElementDto();
45952
+ }
46024
45953
  }
46025
45954
  init(_data) {
46026
45955
  if (_data) {
46027
- this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : undefined;
46028
- if (Array.isArray(_data["schemas"])) {
46029
- this.schemas = [];
46030
- for (let item of _data["schemas"])
46031
- this.schemas.push(MeasurementFormProgressDto.fromJS(item));
46032
- }
45956
+ this.elementWithValues = _data["elementWithValues"] ? MeasurementFormInstanceElementDto.fromJS(_data["elementWithValues"]) : new MeasurementFormInstanceElementDto();
45957
+ this.toolWarning = _data["toolWarning"];
46033
45958
  }
46034
45959
  }
46035
45960
  static fromJS(data) {
46036
45961
  data = typeof data === 'object' ? data : {};
46037
- let result = new MeasurementFormInstanceProgressDto();
45962
+ let result = new BatchInsertValuesResponseDto();
46038
45963
  result.init(data);
46039
45964
  return result;
46040
45965
  }
46041
45966
  toJSON(data) {
46042
45967
  data = typeof data === 'object' ? data : {};
46043
- data["progress"] = this.progress ? this.progress.toJSON() : undefined;
46044
- if (Array.isArray(this.schemas)) {
46045
- data["schemas"] = [];
46046
- for (let item of this.schemas)
46047
- data["schemas"].push(item ? item.toJSON() : undefined);
46048
- }
45968
+ data["elementWithValues"] = this.elementWithValues ? this.elementWithValues.toJSON() : undefined;
45969
+ data["toolWarning"] = this.toolWarning;
46049
45970
  return data;
46050
45971
  }
46051
45972
  }
46052
- export class MeasurementFormElementValueAuditDto {
45973
+ export class BatchInsertValueRequest {
46053
45974
  constructor(data) {
46054
45975
  if (data) {
46055
45976
  for (var property in data) {
@@ -46057,58 +45978,43 @@ export class MeasurementFormElementValueAuditDto {
46057
45978
  this[property] = data[property];
46058
45979
  }
46059
45980
  }
46060
- if (!data) {
46061
- this.tools = [];
46062
- }
46063
45981
  }
46064
45982
  init(_data) {
46065
45983
  if (_data) {
46066
- this.workorder = _data["workorder"];
45984
+ this.schemaId = _data["schemaId"];
45985
+ this.elementId = _data["elementId"];
46067
45986
  this.operation = _data["operation"];
46068
45987
  this.resourceName = _data["resourceName"];
46069
- this.schemaId = _data["schemaId"];
46070
45988
  this.value = _data["value"];
46071
- this.bonus = _data["bonus"];
46072
- this.sequence = _data["sequence"];
46073
- this.serialNumber = _data["serialNumber"];
46074
- this.elementId = _data["elementId"];
46075
- this.updatedByUser = _data["updatedByUser"];
46076
- this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
46077
45989
  if (Array.isArray(_data["tools"])) {
46078
45990
  this.tools = [];
46079
45991
  for (let item of _data["tools"])
46080
- this.tools.push(MeasurementFormToolValueDto.fromJS(item));
45992
+ this.tools.push(item);
46081
45993
  }
46082
45994
  }
46083
45995
  }
46084
45996
  static fromJS(data) {
46085
45997
  data = typeof data === 'object' ? data : {};
46086
- let result = new MeasurementFormElementValueAuditDto();
45998
+ let result = new BatchInsertValueRequest();
46087
45999
  result.init(data);
46088
46000
  return result;
46089
46001
  }
46090
46002
  toJSON(data) {
46091
46003
  data = typeof data === 'object' ? data : {};
46092
- data["workorder"] = this.workorder;
46004
+ data["schemaId"] = this.schemaId;
46005
+ data["elementId"] = this.elementId;
46093
46006
  data["operation"] = this.operation;
46094
46007
  data["resourceName"] = this.resourceName;
46095
- data["schemaId"] = this.schemaId;
46096
46008
  data["value"] = this.value;
46097
- data["bonus"] = this.bonus;
46098
- data["sequence"] = this.sequence;
46099
- data["serialNumber"] = this.serialNumber;
46100
- data["elementId"] = this.elementId;
46101
- data["updatedByUser"] = this.updatedByUser;
46102
- data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
46103
46009
  if (Array.isArray(this.tools)) {
46104
46010
  data["tools"] = [];
46105
46011
  for (let item of this.tools)
46106
- data["tools"].push(item ? item.toJSON() : undefined);
46012
+ data["tools"].push(item);
46107
46013
  }
46108
46014
  return data;
46109
46015
  }
46110
46016
  }
46111
- export class ValidationRuleDto {
46017
+ export class SaveMeasurementFormInstanceSchemaCommentRequest {
46112
46018
  constructor(data) {
46113
46019
  if (data) {
46114
46020
  for (var property in data) {
@@ -46119,24 +46025,22 @@ export class ValidationRuleDto {
46119
46025
  }
46120
46026
  init(_data) {
46121
46027
  if (_data) {
46122
- this.id = _data["id"];
46123
- this.name = _data["name"];
46028
+ this.comment = _data["comment"];
46124
46029
  }
46125
46030
  }
46126
46031
  static fromJS(data) {
46127
46032
  data = typeof data === 'object' ? data : {};
46128
- let result = new ValidationRuleDto();
46033
+ let result = new SaveMeasurementFormInstanceSchemaCommentRequest();
46129
46034
  result.init(data);
46130
46035
  return result;
46131
46036
  }
46132
46037
  toJSON(data) {
46133
46038
  data = typeof data === 'object' ? data : {};
46134
- data["id"] = this.id;
46135
- data["name"] = this.name;
46039
+ data["comment"] = this.comment;
46136
46040
  return data;
46137
46041
  }
46138
46042
  }
46139
- export class SaveValueResponseDto {
46043
+ export class SchemaFeedbackCreatedDto {
46140
46044
  constructor(data) {
46141
46045
  if (data) {
46142
46046
  for (var property in data) {
@@ -46144,44 +46048,43 @@ export class SaveValueResponseDto {
46144
46048
  this[property] = data[property];
46145
46049
  }
46146
46050
  }
46147
- if (!data) {
46148
- this.tools = [];
46149
- }
46150
46051
  }
46151
46052
  init(_data) {
46152
46053
  if (_data) {
46153
- this.elementCompleted = _data["elementCompleted"];
46154
- this.warning = _data["warning"];
46155
- this.isOutsideTolerances = _data["isOutsideTolerances"];
46156
- this.isCloseToTolerances = _data["isCloseToTolerances"];
46157
- if (Array.isArray(_data["tools"])) {
46158
- this.tools = [];
46159
- for (let item of _data["tools"])
46160
- this.tools.push(MeasurementFormToolValueDto.fromJS(item));
46161
- }
46054
+ this.id = _data["id"];
46055
+ this.workOrder = _data["workOrder"];
46056
+ this.schemaId = _data["schemaId"];
46057
+ this.versionId = _data["versionId"];
46058
+ this.schemaInstanceId = _data["schemaInstanceId"];
46059
+ this.balloonId = _data["balloonId"];
46060
+ this.reference = _data["reference"];
46061
+ this.feedback = _data["feedback"];
46062
+ this.from = _data["from"];
46063
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
46162
46064
  }
46163
46065
  }
46164
46066
  static fromJS(data) {
46165
46067
  data = typeof data === 'object' ? data : {};
46166
- let result = new SaveValueResponseDto();
46068
+ let result = new SchemaFeedbackCreatedDto();
46167
46069
  result.init(data);
46168
46070
  return result;
46169
46071
  }
46170
46072
  toJSON(data) {
46171
46073
  data = typeof data === 'object' ? data : {};
46172
- data["elementCompleted"] = this.elementCompleted;
46173
- data["warning"] = this.warning;
46174
- data["isOutsideTolerances"] = this.isOutsideTolerances;
46175
- data["isCloseToTolerances"] = this.isCloseToTolerances;
46176
- if (Array.isArray(this.tools)) {
46177
- data["tools"] = [];
46178
- for (let item of this.tools)
46179
- data["tools"].push(item ? item.toJSON() : undefined);
46180
- }
46074
+ data["id"] = this.id;
46075
+ data["workOrder"] = this.workOrder;
46076
+ data["schemaId"] = this.schemaId;
46077
+ data["versionId"] = this.versionId;
46078
+ data["schemaInstanceId"] = this.schemaInstanceId;
46079
+ data["balloonId"] = this.balloonId;
46080
+ data["reference"] = this.reference;
46081
+ data["feedback"] = this.feedback;
46082
+ data["from"] = this.from;
46083
+ data["created"] = this.created ? this.created.toISOString() : undefined;
46181
46084
  return data;
46182
46085
  }
46183
46086
  }
46184
- export class SaveValueRequest {
46087
+ export class CreateMeasurementFormSchemaFeedbackRequest {
46185
46088
  constructor(data) {
46186
46089
  if (data) {
46187
46090
  for (var property in data) {
@@ -46192,36 +46095,26 @@ export class SaveValueRequest {
46192
46095
  }
46193
46096
  init(_data) {
46194
46097
  if (_data) {
46195
- this.operation = _data["operation"];
46196
- this.resourceName = _data["resourceName"];
46197
- this.schemaId = _data["schemaId"];
46198
- this.elementId = _data["elementId"];
46199
- this.sequence = _data["sequence"];
46200
- this.serialNumber = _data["serialNumber"];
46201
- this.value = _data["value"];
46202
- this.bonus = _data["bonus"];
46098
+ this.balloonId = _data["balloonId"];
46099
+ this.reference = _data["reference"];
46100
+ this.feedback = _data["feedback"];
46203
46101
  }
46204
46102
  }
46205
46103
  static fromJS(data) {
46206
46104
  data = typeof data === 'object' ? data : {};
46207
- let result = new SaveValueRequest();
46105
+ let result = new CreateMeasurementFormSchemaFeedbackRequest();
46208
46106
  result.init(data);
46209
46107
  return result;
46210
46108
  }
46211
46109
  toJSON(data) {
46212
46110
  data = typeof data === 'object' ? data : {};
46213
- data["operation"] = this.operation;
46214
- data["resourceName"] = this.resourceName;
46215
- data["schemaId"] = this.schemaId;
46216
- data["elementId"] = this.elementId;
46217
- data["sequence"] = this.sequence;
46218
- data["serialNumber"] = this.serialNumber;
46219
- data["value"] = this.value;
46220
- data["bonus"] = this.bonus;
46111
+ data["balloonId"] = this.balloonId;
46112
+ data["reference"] = this.reference;
46113
+ data["feedback"] = this.feedback;
46221
46114
  return data;
46222
46115
  }
46223
46116
  }
46224
- export class SaveToolRequest {
46117
+ export class MeasurementFormSupplierAccessInstanceDto {
46225
46118
  constructor(data) {
46226
46119
  if (data) {
46227
46120
  for (var property in data) {
@@ -46229,43 +46122,54 @@ export class SaveToolRequest {
46229
46122
  this[property] = data[property];
46230
46123
  }
46231
46124
  }
46125
+ if (!data) {
46126
+ this.suppliers = [];
46127
+ }
46232
46128
  }
46233
46129
  init(_data) {
46234
46130
  if (_data) {
46235
- this.schemaId = _data["schemaId"];
46236
- this.elementId = _data["elementId"];
46237
- this.sequence = _data["sequence"];
46238
- this.serialNumber = _data["serialNumber"];
46239
- if (Array.isArray(_data["tools"])) {
46240
- this.tools = [];
46241
- for (let item of _data["tools"])
46242
- this.tools.push(item);
46131
+ this.id = _data["id"];
46132
+ this.readonly = _data["readonly"];
46133
+ this.partNumber = _data["partNumber"];
46134
+ this.partRevision = _data["partRevision"];
46135
+ this.drawing = _data["drawing"];
46136
+ this.drawingRevision = _data["drawingRevision"];
46137
+ this.customerId = _data["customerId"];
46138
+ this.quantity = _data["quantity"];
46139
+ this.status = _data["status"];
46140
+ if (Array.isArray(_data["suppliers"])) {
46141
+ this.suppliers = [];
46142
+ for (let item of _data["suppliers"])
46143
+ this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
46243
46144
  }
46244
- this.force = _data["force"];
46245
46145
  }
46246
46146
  }
46247
46147
  static fromJS(data) {
46248
46148
  data = typeof data === 'object' ? data : {};
46249
- let result = new SaveToolRequest();
46149
+ let result = new MeasurementFormSupplierAccessInstanceDto();
46250
46150
  result.init(data);
46251
46151
  return result;
46252
46152
  }
46253
46153
  toJSON(data) {
46254
46154
  data = typeof data === 'object' ? data : {};
46255
- data["schemaId"] = this.schemaId;
46256
- data["elementId"] = this.elementId;
46257
- data["sequence"] = this.sequence;
46258
- data["serialNumber"] = this.serialNumber;
46259
- if (Array.isArray(this.tools)) {
46260
- data["tools"] = [];
46261
- for (let item of this.tools)
46262
- data["tools"].push(item);
46155
+ data["id"] = this.id;
46156
+ data["readonly"] = this.readonly;
46157
+ data["partNumber"] = this.partNumber;
46158
+ data["partRevision"] = this.partRevision;
46159
+ data["drawing"] = this.drawing;
46160
+ data["drawingRevision"] = this.drawingRevision;
46161
+ data["customerId"] = this.customerId;
46162
+ data["quantity"] = this.quantity;
46163
+ data["status"] = this.status;
46164
+ if (Array.isArray(this.suppliers)) {
46165
+ data["suppliers"] = [];
46166
+ for (let item of this.suppliers)
46167
+ data["suppliers"].push(item ? item.toJSON() : undefined);
46263
46168
  }
46264
- data["force"] = this.force;
46265
46169
  return data;
46266
46170
  }
46267
46171
  }
46268
- export class SaveCommentRequest {
46172
+ export class UpsertSupplierToMeasurementFormInstanceRequest {
46269
46173
  constructor(data) {
46270
46174
  if (data) {
46271
46175
  for (var property in data) {
@@ -46276,30 +46180,26 @@ export class SaveCommentRequest {
46276
46180
  }
46277
46181
  init(_data) {
46278
46182
  if (_data) {
46279
- this.schemaId = _data["schemaId"];
46280
- this.elementId = _data["elementId"];
46281
- this.sequence = _data["sequence"];
46282
- this.serialNumber = _data["serialNumber"];
46283
- this.comment = _data["comment"];
46183
+ this.procurementOrder = _data["procurementOrder"];
46184
+ this.procurementLine = _data["procurementLine"];
46185
+ this.externalOrderNumber = _data["externalOrderNumber"];
46284
46186
  }
46285
46187
  }
46286
46188
  static fromJS(data) {
46287
46189
  data = typeof data === 'object' ? data : {};
46288
- let result = new SaveCommentRequest();
46190
+ let result = new UpsertSupplierToMeasurementFormInstanceRequest();
46289
46191
  result.init(data);
46290
46192
  return result;
46291
46193
  }
46292
46194
  toJSON(data) {
46293
46195
  data = typeof data === 'object' ? data : {};
46294
- data["schemaId"] = this.schemaId;
46295
- data["elementId"] = this.elementId;
46296
- data["sequence"] = this.sequence;
46297
- data["serialNumber"] = this.serialNumber;
46298
- data["comment"] = this.comment;
46196
+ data["procurementOrder"] = this.procurementOrder;
46197
+ data["procurementLine"] = this.procurementLine;
46198
+ data["externalOrderNumber"] = this.externalOrderNumber;
46299
46199
  return data;
46300
46200
  }
46301
46201
  }
46302
- export class BatchInsertValuesResponseDto {
46202
+ export class ExportDimensionReportV2Request {
46303
46203
  constructor(data) {
46304
46204
  if (data) {
46305
46205
  for (var property in data) {
@@ -46307,30 +46207,39 @@ export class BatchInsertValuesResponseDto {
46307
46207
  this[property] = data[property];
46308
46208
  }
46309
46209
  }
46310
- if (!data) {
46311
- this.elementWithValues = new MeasurementFormInstanceElementDto();
46312
- }
46313
46210
  }
46314
46211
  init(_data) {
46315
46212
  if (_data) {
46316
- this.elementWithValues = _data["elementWithValues"] ? MeasurementFormInstanceElementDto.fromJS(_data["elementWithValues"]) : new MeasurementFormInstanceElementDto();
46317
- this.toolWarning = _data["toolWarning"];
46213
+ this.tenantId = _data["tenantId"];
46214
+ this.type = _data["type"];
46215
+ this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined;
46216
+ if (Array.isArray(_data["specificSerialNumbers"])) {
46217
+ this.specificSerialNumbers = [];
46218
+ for (let item of _data["specificSerialNumbers"])
46219
+ this.specificSerialNumbers.push(item);
46220
+ }
46318
46221
  }
46319
46222
  }
46320
46223
  static fromJS(data) {
46321
46224
  data = typeof data === 'object' ? data : {};
46322
- let result = new BatchInsertValuesResponseDto();
46225
+ let result = new ExportDimensionReportV2Request();
46323
46226
  result.init(data);
46324
46227
  return result;
46325
46228
  }
46326
46229
  toJSON(data) {
46327
46230
  data = typeof data === 'object' ? data : {};
46328
- data["elementWithValues"] = this.elementWithValues ? this.elementWithValues.toJSON() : undefined;
46329
- data["toolWarning"] = this.toolWarning;
46231
+ data["tenantId"] = this.tenantId;
46232
+ data["type"] = this.type;
46233
+ data["extras"] = this.extras ? this.extras.toJSON() : undefined;
46234
+ if (Array.isArray(this.specificSerialNumbers)) {
46235
+ data["specificSerialNumbers"] = [];
46236
+ for (let item of this.specificSerialNumbers)
46237
+ data["specificSerialNumbers"].push(item);
46238
+ }
46330
46239
  return data;
46331
46240
  }
46332
46241
  }
46333
- export class BatchInsertValueRequest {
46242
+ export class DimensionReportExtras {
46334
46243
  constructor(data) {
46335
46244
  if (data) {
46336
46245
  for (var property in data) {
@@ -46341,40 +46250,26 @@ export class BatchInsertValueRequest {
46341
46250
  }
46342
46251
  init(_data) {
46343
46252
  if (_data) {
46344
- this.schemaId = _data["schemaId"];
46345
- this.elementId = _data["elementId"];
46346
- this.operation = _data["operation"];
46347
- this.resourceName = _data["resourceName"];
46348
- this.value = _data["value"];
46349
- if (Array.isArray(_data["tools"])) {
46350
- this.tools = [];
46351
- for (let item of _data["tools"])
46352
- this.tools.push(item);
46353
- }
46253
+ this.customerPO = _data["customerPO"];
46254
+ this.workOrderNumber = _data["workOrderNumber"];
46255
+ this.comment = _data["comment"];
46354
46256
  }
46355
46257
  }
46356
46258
  static fromJS(data) {
46357
46259
  data = typeof data === 'object' ? data : {};
46358
- let result = new BatchInsertValueRequest();
46260
+ let result = new DimensionReportExtras();
46359
46261
  result.init(data);
46360
46262
  return result;
46361
46263
  }
46362
46264
  toJSON(data) {
46363
46265
  data = typeof data === 'object' ? data : {};
46364
- data["schemaId"] = this.schemaId;
46365
- data["elementId"] = this.elementId;
46366
- data["operation"] = this.operation;
46367
- data["resourceName"] = this.resourceName;
46368
- data["value"] = this.value;
46369
- if (Array.isArray(this.tools)) {
46370
- data["tools"] = [];
46371
- for (let item of this.tools)
46372
- data["tools"].push(item);
46373
- }
46266
+ data["customerPO"] = this.customerPO;
46267
+ data["workOrderNumber"] = this.workOrderNumber;
46268
+ data["comment"] = this.comment;
46374
46269
  return data;
46375
46270
  }
46376
46271
  }
46377
- export class SaveMeasurementFormInstanceSchemaCommentRequest {
46272
+ export class PagedResultOfMeasurementFormInstanceDto {
46378
46273
  constructor(data) {
46379
46274
  if (data) {
46380
46275
  for (var property in data) {
@@ -46382,25 +46277,38 @@ export class SaveMeasurementFormInstanceSchemaCommentRequest {
46382
46277
  this[property] = data[property];
46383
46278
  }
46384
46279
  }
46280
+ if (!data) {
46281
+ this.results = [];
46282
+ }
46385
46283
  }
46386
46284
  init(_data) {
46387
46285
  if (_data) {
46388
- this.comment = _data["comment"];
46286
+ if (Array.isArray(_data["results"])) {
46287
+ this.results = [];
46288
+ for (let item of _data["results"])
46289
+ this.results.push(MeasurementFormInstanceDto.fromJS(item));
46290
+ }
46291
+ this.continuationToken = _data["continuationToken"];
46389
46292
  }
46390
46293
  }
46391
46294
  static fromJS(data) {
46392
46295
  data = typeof data === 'object' ? data : {};
46393
- let result = new SaveMeasurementFormInstanceSchemaCommentRequest();
46296
+ let result = new PagedResultOfMeasurementFormInstanceDto();
46394
46297
  result.init(data);
46395
46298
  return result;
46396
46299
  }
46397
46300
  toJSON(data) {
46398
46301
  data = typeof data === 'object' ? data : {};
46399
- data["comment"] = this.comment;
46302
+ if (Array.isArray(this.results)) {
46303
+ data["results"] = [];
46304
+ for (let item of this.results)
46305
+ data["results"].push(item ? item.toJSON() : undefined);
46306
+ }
46307
+ data["continuationToken"] = this.continuationToken;
46400
46308
  return data;
46401
46309
  }
46402
46310
  }
46403
- export class SchemaFeedbackCreatedDto {
46311
+ export class DeleteMeasurementFormsInstancesBulkRequest {
46404
46312
  constructor(data) {
46405
46313
  if (data) {
46406
46314
  for (var property in data) {
@@ -46408,43 +46316,36 @@ export class SchemaFeedbackCreatedDto {
46408
46316
  this[property] = data[property];
46409
46317
  }
46410
46318
  }
46411
- }
46412
- init(_data) {
46413
- if (_data) {
46414
- this.id = _data["id"];
46415
- this.workOrder = _data["workOrder"];
46416
- this.schemaId = _data["schemaId"];
46417
- this.versionId = _data["versionId"];
46418
- this.schemaInstanceId = _data["schemaInstanceId"];
46419
- this.balloonId = _data["balloonId"];
46420
- this.reference = _data["reference"];
46421
- this.feedback = _data["feedback"];
46422
- this.from = _data["from"];
46423
- this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
46319
+ if (!data) {
46320
+ this.ids = [];
46321
+ }
46322
+ }
46323
+ init(_data) {
46324
+ if (_data) {
46325
+ if (Array.isArray(_data["ids"])) {
46326
+ this.ids = [];
46327
+ for (let item of _data["ids"])
46328
+ this.ids.push(item);
46329
+ }
46424
46330
  }
46425
46331
  }
46426
46332
  static fromJS(data) {
46427
46333
  data = typeof data === 'object' ? data : {};
46428
- let result = new SchemaFeedbackCreatedDto();
46334
+ let result = new DeleteMeasurementFormsInstancesBulkRequest();
46429
46335
  result.init(data);
46430
46336
  return result;
46431
46337
  }
46432
46338
  toJSON(data) {
46433
46339
  data = typeof data === 'object' ? data : {};
46434
- data["id"] = this.id;
46435
- data["workOrder"] = this.workOrder;
46436
- data["schemaId"] = this.schemaId;
46437
- data["versionId"] = this.versionId;
46438
- data["schemaInstanceId"] = this.schemaInstanceId;
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;
46340
+ if (Array.isArray(this.ids)) {
46341
+ data["ids"] = [];
46342
+ for (let item of this.ids)
46343
+ data["ids"].push(item);
46344
+ }
46444
46345
  return data;
46445
46346
  }
46446
46347
  }
46447
- export class CreateMeasurementFormSchemaFeedbackRequest {
46348
+ export class ListMeasurementFormsByStatusRequest {
46448
46349
  constructor(data) {
46449
46350
  if (data) {
46450
46351
  for (var property in data) {
@@ -46455,26 +46356,32 @@ export class CreateMeasurementFormSchemaFeedbackRequest {
46455
46356
  }
46456
46357
  init(_data) {
46457
46358
  if (_data) {
46458
- this.balloonId = _data["balloonId"];
46459
- this.reference = _data["reference"];
46460
- this.feedback = _data["feedback"];
46359
+ this.status = _data["status"];
46360
+ this.statusChangedSince = _data["statusChangedSince"] ? new Date(_data["statusChangedSince"].toString()) : undefined;
46361
+ this.onlyWithReports = _data["onlyWithReports"];
46362
+ this.pageSize = _data["pageSize"];
46363
+ this.search = _data["search"];
46364
+ this.continuationToken = _data["continuationToken"];
46461
46365
  }
46462
46366
  }
46463
46367
  static fromJS(data) {
46464
46368
  data = typeof data === 'object' ? data : {};
46465
- let result = new CreateMeasurementFormSchemaFeedbackRequest();
46369
+ let result = new ListMeasurementFormsByStatusRequest();
46466
46370
  result.init(data);
46467
46371
  return result;
46468
46372
  }
46469
46373
  toJSON(data) {
46470
46374
  data = typeof data === 'object' ? data : {};
46471
- data["balloonId"] = this.balloonId;
46472
- data["reference"] = this.reference;
46473
- data["feedback"] = this.feedback;
46375
+ data["status"] = this.status;
46376
+ data["statusChangedSince"] = this.statusChangedSince ? this.statusChangedSince.toISOString() : undefined;
46377
+ data["onlyWithReports"] = this.onlyWithReports;
46378
+ data["pageSize"] = this.pageSize;
46379
+ data["search"] = this.search;
46380
+ data["continuationToken"] = this.continuationToken;
46474
46381
  return data;
46475
46382
  }
46476
46383
  }
46477
- export class MeasurementFormSupplierAccessInstanceDto {
46384
+ export class CreateMeasurementFormInstanceRequest {
46478
46385
  constructor(data) {
46479
46386
  if (data) {
46480
46387
  for (var property in data) {
@@ -46483,53 +46390,53 @@ export class MeasurementFormSupplierAccessInstanceDto {
46483
46390
  }
46484
46391
  }
46485
46392
  if (!data) {
46486
- this.suppliers = [];
46393
+ this.serialNumbers = [];
46487
46394
  }
46488
46395
  }
46489
46396
  init(_data) {
46490
46397
  if (_data) {
46491
- this.id = _data["id"];
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"];
46398
+ this.schemaId = _data["schemaId"];
46497
46399
  this.customerId = _data["customerId"];
46498
- this.quantity = _data["quantity"];
46499
- this.status = _data["status"];
46500
- if (Array.isArray(_data["suppliers"])) {
46501
- this.suppliers = [];
46502
- for (let item of _data["suppliers"])
46503
- this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
46400
+ this.customerName = _data["customerName"];
46401
+ this.purchaseOrder = _data["purchaseOrder"];
46402
+ if (Array.isArray(_data["sequences"])) {
46403
+ this.sequences = [];
46404
+ for (let item of _data["sequences"])
46405
+ this.sequences.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
46406
+ }
46407
+ if (Array.isArray(_data["serialNumbers"])) {
46408
+ this.serialNumbers = [];
46409
+ for (let item of _data["serialNumbers"])
46410
+ this.serialNumbers.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
46504
46411
  }
46505
46412
  }
46506
46413
  }
46507
46414
  static fromJS(data) {
46508
46415
  data = typeof data === 'object' ? data : {};
46509
- let result = new MeasurementFormSupplierAccessInstanceDto();
46416
+ let result = new CreateMeasurementFormInstanceRequest();
46510
46417
  result.init(data);
46511
46418
  return result;
46512
46419
  }
46513
46420
  toJSON(data) {
46514
46421
  data = typeof data === 'object' ? data : {};
46515
- data["id"] = this.id;
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;
46422
+ data["schemaId"] = this.schemaId;
46521
46423
  data["customerId"] = this.customerId;
46522
- data["quantity"] = this.quantity;
46523
- data["status"] = this.status;
46524
- if (Array.isArray(this.suppliers)) {
46525
- data["suppliers"] = [];
46526
- for (let item of this.suppliers)
46527
- data["suppliers"].push(item ? item.toJSON() : undefined);
46424
+ data["customerName"] = this.customerName;
46425
+ data["purchaseOrder"] = this.purchaseOrder;
46426
+ if (Array.isArray(this.sequences)) {
46427
+ data["sequences"] = [];
46428
+ for (let item of this.sequences)
46429
+ data["sequences"].push(item ? item.toJSON() : undefined);
46430
+ }
46431
+ if (Array.isArray(this.serialNumbers)) {
46432
+ data["serialNumbers"] = [];
46433
+ for (let item of this.serialNumbers)
46434
+ data["serialNumbers"].push(item ? item.toJSON() : undefined);
46528
46435
  }
46529
46436
  return data;
46530
46437
  }
46531
46438
  }
46532
- export class UpsertSupplierToMeasurementFormInstanceRequest {
46439
+ export class CreateMeasurementFormInstanceRequestSequence {
46533
46440
  constructor(data) {
46534
46441
  if (data) {
46535
46442
  for (var property in data) {
@@ -46540,26 +46447,24 @@ export class UpsertSupplierToMeasurementFormInstanceRequest {
46540
46447
  }
46541
46448
  init(_data) {
46542
46449
  if (_data) {
46543
- this.procurementOrder = _data["procurementOrder"];
46544
- this.procurementLine = _data["procurementLine"];
46545
- this.externalOrderNumber = _data["externalOrderNumber"];
46450
+ this.sequenceNumber = _data["sequenceNumber"];
46451
+ this.serialNumber = _data["serialNumber"];
46546
46452
  }
46547
46453
  }
46548
46454
  static fromJS(data) {
46549
46455
  data = typeof data === 'object' ? data : {};
46550
- let result = new UpsertSupplierToMeasurementFormInstanceRequest();
46456
+ let result = new CreateMeasurementFormInstanceRequestSequence();
46551
46457
  result.init(data);
46552
46458
  return result;
46553
46459
  }
46554
46460
  toJSON(data) {
46555
46461
  data = typeof data === 'object' ? data : {};
46556
- data["procurementOrder"] = this.procurementOrder;
46557
- data["procurementLine"] = this.procurementLine;
46558
- data["externalOrderNumber"] = this.externalOrderNumber;
46462
+ data["sequenceNumber"] = this.sequenceNumber;
46463
+ data["serialNumber"] = this.serialNumber;
46559
46464
  return data;
46560
46465
  }
46561
46466
  }
46562
- export class ExportDimensionReportV2Request {
46467
+ export class CreateMeasurementFormInstanceRequestSerialNumber {
46563
46468
  constructor(data) {
46564
46469
  if (data) {
46565
46470
  for (var property in data) {
@@ -46570,36 +46475,24 @@ export class ExportDimensionReportV2Request {
46570
46475
  }
46571
46476
  init(_data) {
46572
46477
  if (_data) {
46573
- this.tenantId = _data["tenantId"];
46574
- this.type = _data["type"];
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
- }
46478
+ this.serialNumber = _data["serialNumber"];
46479
+ this.customerSerialNumber = _data["customerSerialNumber"];
46581
46480
  }
46582
46481
  }
46583
46482
  static fromJS(data) {
46584
46483
  data = typeof data === 'object' ? data : {};
46585
- let result = new ExportDimensionReportV2Request();
46484
+ let result = new CreateMeasurementFormInstanceRequestSerialNumber();
46586
46485
  result.init(data);
46587
46486
  return result;
46588
46487
  }
46589
46488
  toJSON(data) {
46590
46489
  data = typeof data === 'object' ? data : {};
46591
- data["tenantId"] = this.tenantId;
46592
- data["type"] = this.type;
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
- }
46490
+ data["serialNumber"] = this.serialNumber;
46491
+ data["customerSerialNumber"] = this.customerSerialNumber;
46599
46492
  return data;
46600
46493
  }
46601
46494
  }
46602
- export class DimensionReportExtras {
46495
+ export class UpdateMeasurementFormInstanceRequest {
46603
46496
  constructor(data) {
46604
46497
  if (data) {
46605
46498
  for (var property in data) {
@@ -46607,25 +46500,53 @@ export class DimensionReportExtras {
46607
46500
  this[property] = data[property];
46608
46501
  }
46609
46502
  }
46503
+ if (!data) {
46504
+ this.serialNumbers = [];
46505
+ this.suppliers = [];
46506
+ }
46610
46507
  }
46611
46508
  init(_data) {
46612
46509
  if (_data) {
46613
- this.customerPO = _data["customerPO"];
46614
- this.workOrderNumber = _data["workOrderNumber"];
46615
- this.comment = _data["comment"];
46510
+ if (Array.isArray(_data["sequences"])) {
46511
+ this.sequences = [];
46512
+ for (let item of _data["sequences"])
46513
+ this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
46514
+ }
46515
+ if (Array.isArray(_data["serialNumbers"])) {
46516
+ this.serialNumbers = [];
46517
+ for (let item of _data["serialNumbers"])
46518
+ this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
46519
+ }
46520
+ if (Array.isArray(_data["suppliers"])) {
46521
+ this.suppliers = [];
46522
+ for (let item of _data["suppliers"])
46523
+ this.suppliers.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
46524
+ }
46616
46525
  }
46617
46526
  }
46618
46527
  static fromJS(data) {
46619
46528
  data = typeof data === 'object' ? data : {};
46620
- let result = new DimensionReportExtras();
46529
+ let result = new UpdateMeasurementFormInstanceRequest();
46621
46530
  result.init(data);
46622
46531
  return result;
46623
46532
  }
46624
46533
  toJSON(data) {
46625
46534
  data = typeof data === 'object' ? data : {};
46626
- data["customerPO"] = this.customerPO;
46627
- data["workOrderNumber"] = this.workOrderNumber;
46628
- data["comment"] = this.comment;
46535
+ if (Array.isArray(this.sequences)) {
46536
+ data["sequences"] = [];
46537
+ for (let item of this.sequences)
46538
+ data["sequences"].push(item ? item.toJSON() : undefined);
46539
+ }
46540
+ if (Array.isArray(this.serialNumbers)) {
46541
+ data["serialNumbers"] = [];
46542
+ for (let item of this.serialNumbers)
46543
+ data["serialNumbers"].push(item ? item.toJSON() : undefined);
46544
+ }
46545
+ if (Array.isArray(this.suppliers)) {
46546
+ data["suppliers"] = [];
46547
+ for (let item of this.suppliers)
46548
+ data["suppliers"].push(item ? item.toJSON() : undefined);
46549
+ }
46629
46550
  return data;
46630
46551
  }
46631
46552
  }
@@ -47479,7 +47400,7 @@ export class ResourceExistDto {
47479
47400
  return data;
47480
47401
  }
47481
47402
  }
47482
- export class StartWorkOperationRequest {
47403
+ export class RegisterWorkorderOperationEventRequest {
47483
47404
  constructor(data) {
47484
47405
  if (data) {
47485
47406
  for (var property in data) {
@@ -47490,42 +47411,44 @@ export class StartWorkOperationRequest {
47490
47411
  }
47491
47412
  init(_data) {
47492
47413
  if (_data) {
47414
+ this.workorderDescription = _data["workorderDescription"];
47415
+ this.operationDescription = _data["operationDescription"];
47493
47416
  this.isSetup = _data["isSetup"];
47494
47417
  this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
47495
47418
  this.resourceId = _data["resourceId"];
47496
47419
  this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined;
47497
47420
  this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
47498
47421
  this.workorderQuantity = _data["workorderQuantity"];
47499
- this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined;
47422
+ this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
47423
+ this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
47500
47424
  this.materialPartNumber = _data["materialPartNumber"];
47501
47425
  this.materialPartName = _data["materialPartName"];
47502
47426
  this.materialItemGroup = _data["materialItemGroup"];
47503
- this.workorderDescription = _data["workorderDescription"];
47504
- this.operationDescription = _data["operationDescription"];
47505
47427
  this.externalId = _data["externalId"];
47506
47428
  this.companyId = _data["companyId"];
47507
47429
  }
47508
47430
  }
47509
47431
  static fromJS(data) {
47510
47432
  data = typeof data === 'object' ? data : {};
47511
- let result = new StartWorkOperationRequest();
47433
+ let result = new RegisterWorkorderOperationEventRequest();
47512
47434
  result.init(data);
47513
47435
  return result;
47514
47436
  }
47515
47437
  toJSON(data) {
47516
47438
  data = typeof data === 'object' ? data : {};
47439
+ data["workorderDescription"] = this.workorderDescription;
47440
+ data["operationDescription"] = this.operationDescription;
47517
47441
  data["isSetup"] = this.isSetup;
47518
47442
  data["employee"] = this.employee ? this.employee.toJSON() : undefined;
47519
47443
  data["resourceId"] = this.resourceId;
47520
47444
  data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined;
47521
47445
  data["part"] = this.part ? this.part.toJSON() : undefined;
47522
47446
  data["workorderQuantity"] = this.workorderQuantity;
47523
- data["time"] = this.time ? this.time.toISOString() : undefined;
47447
+ data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
47448
+ data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
47524
47449
  data["materialPartNumber"] = this.materialPartNumber;
47525
47450
  data["materialPartName"] = this.materialPartName;
47526
47451
  data["materialItemGroup"] = this.materialItemGroup;
47527
- data["workorderDescription"] = this.workorderDescription;
47528
- data["operationDescription"] = this.operationDescription;
47529
47452
  data["externalId"] = this.externalId;
47530
47453
  data["companyId"] = this.companyId;
47531
47454
  return data;
@@ -47561,7 +47484,7 @@ export class CustomerOrderInfoDto {
47561
47484
  return data;
47562
47485
  }
47563
47486
  }
47564
- export class StopWorkOperationRequest {
47487
+ export class StartWorkOperationRequest {
47565
47488
  constructor(data) {
47566
47489
  if (data) {
47567
47490
  for (var property in data) {
@@ -47574,14 +47497,23 @@ export class StopWorkOperationRequest {
47574
47497
  if (_data) {
47575
47498
  this.isSetup = _data["isSetup"];
47576
47499
  this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
47577
- this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined;
47578
47500
  this.resourceId = _data["resourceId"];
47501
+ this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined;
47502
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
47503
+ this.workorderQuantity = _data["workorderQuantity"];
47504
+ this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined;
47505
+ this.materialPartNumber = _data["materialPartNumber"];
47506
+ this.materialPartName = _data["materialPartName"];
47507
+ this.materialItemGroup = _data["materialItemGroup"];
47508
+ this.workorderDescription = _data["workorderDescription"];
47509
+ this.operationDescription = _data["operationDescription"];
47510
+ this.externalId = _data["externalId"];
47579
47511
  this.companyId = _data["companyId"];
47580
47512
  }
47581
47513
  }
47582
47514
  static fromJS(data) {
47583
47515
  data = typeof data === 'object' ? data : {};
47584
- let result = new StopWorkOperationRequest();
47516
+ let result = new StartWorkOperationRequest();
47585
47517
  result.init(data);
47586
47518
  return result;
47587
47519
  }
@@ -47589,13 +47521,22 @@ export class StopWorkOperationRequest {
47589
47521
  data = typeof data === 'object' ? data : {};
47590
47522
  data["isSetup"] = this.isSetup;
47591
47523
  data["employee"] = this.employee ? this.employee.toJSON() : undefined;
47592
- data["time"] = this.time ? this.time.toISOString() : undefined;
47593
47524
  data["resourceId"] = this.resourceId;
47525
+ data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined;
47526
+ data["part"] = this.part ? this.part.toJSON() : undefined;
47527
+ data["workorderQuantity"] = this.workorderQuantity;
47528
+ data["time"] = this.time ? this.time.toISOString() : undefined;
47529
+ data["materialPartNumber"] = this.materialPartNumber;
47530
+ data["materialPartName"] = this.materialPartName;
47531
+ data["materialItemGroup"] = this.materialItemGroup;
47532
+ data["workorderDescription"] = this.workorderDescription;
47533
+ data["operationDescription"] = this.operationDescription;
47534
+ data["externalId"] = this.externalId;
47594
47535
  data["companyId"] = this.companyId;
47595
47536
  return data;
47596
47537
  }
47597
47538
  }
47598
- export class RegisterWorkorderOperationEventRequest {
47539
+ export class StopWorkOperationRequest {
47599
47540
  constructor(data) {
47600
47541
  if (data) {
47601
47542
  for (var property in data) {
@@ -47606,46 +47547,28 @@ export class RegisterWorkorderOperationEventRequest {
47606
47547
  }
47607
47548
  init(_data) {
47608
47549
  if (_data) {
47609
- this.workorderDescription = _data["workorderDescription"];
47610
- this.operationDescription = _data["operationDescription"];
47611
47550
  this.isSetup = _data["isSetup"];
47612
47551
  this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
47552
+ this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined;
47613
47553
  this.resourceId = _data["resourceId"];
47614
- this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined;
47615
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
47616
- this.workorderQuantity = _data["workorderQuantity"];
47617
- this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
47618
- this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
47619
- this.materialPartNumber = _data["materialPartNumber"];
47620
- this.materialPartName = _data["materialPartName"];
47621
- this.materialItemGroup = _data["materialItemGroup"];
47622
- this.externalId = _data["externalId"];
47623
47554
  this.companyId = _data["companyId"];
47555
+ this.ignoreNotFoundEvents = _data["ignoreNotFoundEvents"];
47624
47556
  }
47625
47557
  }
47626
47558
  static fromJS(data) {
47627
47559
  data = typeof data === 'object' ? data : {};
47628
- let result = new RegisterWorkorderOperationEventRequest();
47560
+ let result = new StopWorkOperationRequest();
47629
47561
  result.init(data);
47630
47562
  return result;
47631
47563
  }
47632
47564
  toJSON(data) {
47633
47565
  data = typeof data === 'object' ? data : {};
47634
- data["workorderDescription"] = this.workorderDescription;
47635
- data["operationDescription"] = this.operationDescription;
47636
47566
  data["isSetup"] = this.isSetup;
47637
47567
  data["employee"] = this.employee ? this.employee.toJSON() : undefined;
47568
+ data["time"] = this.time ? this.time.toISOString() : undefined;
47638
47569
  data["resourceId"] = this.resourceId;
47639
- data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined;
47640
- data["part"] = this.part ? this.part.toJSON() : undefined;
47641
- data["workorderQuantity"] = this.workorderQuantity;
47642
- data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
47643
- data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
47644
- data["materialPartNumber"] = this.materialPartNumber;
47645
- data["materialPartName"] = this.materialPartName;
47646
- data["materialItemGroup"] = this.materialItemGroup;
47647
- data["externalId"] = this.externalId;
47648
47570
  data["companyId"] = this.companyId;
47571
+ data["ignoreNotFoundEvents"] = this.ignoreNotFoundEvents;
47649
47572
  return data;
47650
47573
  }
47651
47574
  }