@ignos/api-client 20250711.0.12192-alpha → 20250728.0.12218-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19918,7 +19918,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
19918
19918
  }
19919
19919
  return Promise.resolve(null);
19920
19920
  }
19921
- getMeasurementFormInstanceSchema(id, schemaId, serialNumber, tenantId) {
19921
+ getMeasurementFormInstanceSchema(id, schemaId, sequence, tenantId) {
19922
19922
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
19923
19923
  if (id === undefined || id === null)
19924
19924
  throw new Error("The parameter 'id' must be defined.");
@@ -19926,8 +19926,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
19926
19926
  if (schemaId === undefined || schemaId === null)
19927
19927
  throw new Error("The parameter 'schemaId' must be defined.");
19928
19928
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
19929
- if (serialNumber !== undefined && serialNumber !== null)
19930
- url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
19929
+ if (sequence !== undefined && sequence !== null)
19930
+ url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
19931
19931
  if (tenantId !== undefined && tenantId !== null)
19932
19932
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
19933
19933
  url_ = url_.replace(/[?&]$/, "");
@@ -20007,7 +20007,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20007
20007
  }
20008
20008
  return Promise.resolve(null);
20009
20009
  }
20010
- getAuditLog(id, tenantId, schemaId, serialNumber, elementId) {
20010
+ getAuditLog(id, tenantId, schemaId, sequence, elementId) {
20011
20011
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
20012
20012
  if (id === undefined || id === null)
20013
20013
  throw new Error("The parameter 'id' must be defined.");
@@ -20016,8 +20016,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20016
20016
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
20017
20017
  if (schemaId !== undefined && schemaId !== null)
20018
20018
  url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
20019
- if (serialNumber !== undefined && serialNumber !== null)
20020
- url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
20019
+ if (sequence !== undefined && sequence !== null)
20020
+ url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
20021
20021
  if (elementId !== undefined && elementId !== null)
20022
20022
  url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
20023
20023
  url_ = url_.replace(/[?&]$/, "");
@@ -20707,6 +20707,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20707
20707
  }
20708
20708
  return Promise.resolve(null);
20709
20709
  }
20710
+ importMeasurementFormInstance(id, request) {
20711
+ let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
20712
+ if (id === undefined || id === null)
20713
+ throw new Error("The parameter 'id' must be defined.");
20714
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
20715
+ url_ = url_.replace(/[?&]$/, "");
20716
+ const content_ = JSON.stringify(request);
20717
+ let options_ = {
20718
+ body: content_,
20719
+ method: "POST",
20720
+ headers: {
20721
+ "Content-Type": "application/json",
20722
+ "Accept": "application/json"
20723
+ }
20724
+ };
20725
+ return this.transformOptions(options_).then(transformedOptions_ => {
20726
+ return this.http.fetch(url_, transformedOptions_);
20727
+ }).then((_response) => {
20728
+ return this.processImportMeasurementFormInstance(_response);
20729
+ });
20730
+ }
20731
+ processImportMeasurementFormInstance(response) {
20732
+ const status = response.status;
20733
+ let _headers = {};
20734
+ if (response.headers && response.headers.forEach) {
20735
+ response.headers.forEach((v, k) => _headers[k] = v);
20736
+ }
20737
+ ;
20738
+ if (status === 200) {
20739
+ return response.text().then((_responseText) => {
20740
+ let result200 = null;
20741
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20742
+ result200 = MeasurementFormInstanceDto.fromJS(resultData200);
20743
+ return result200;
20744
+ });
20745
+ }
20746
+ else if (status !== 200 && status !== 204) {
20747
+ return response.text().then((_responseText) => {
20748
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20749
+ });
20750
+ }
20751
+ return Promise.resolve(null);
20752
+ }
20710
20753
  }
20711
20754
  export class ElectricalClient extends AuthorizedApiBase {
20712
20755
  constructor(configuration, baseUrl, http) {
@@ -22679,6 +22722,192 @@ export class WorkordersClient extends AuthorizedApiBase {
22679
22722
  }
22680
22723
  return Promise.resolve(null);
22681
22724
  }
22725
+ getDiscussionMessages(id) {
22726
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
22727
+ if (id === undefined || id === null)
22728
+ throw new Error("The parameter 'id' must be defined.");
22729
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
22730
+ url_ = url_.replace(/[?&]$/, "");
22731
+ let options_ = {
22732
+ method: "GET",
22733
+ headers: {
22734
+ "Accept": "application/json"
22735
+ }
22736
+ };
22737
+ return this.transformOptions(options_).then(transformedOptions_ => {
22738
+ return this.http.fetch(url_, transformedOptions_);
22739
+ }).then((_response) => {
22740
+ return this.processGetDiscussionMessages(_response);
22741
+ });
22742
+ }
22743
+ processGetDiscussionMessages(response) {
22744
+ const status = response.status;
22745
+ let _headers = {};
22746
+ if (response.headers && response.headers.forEach) {
22747
+ response.headers.forEach((v, k) => _headers[k] = v);
22748
+ }
22749
+ ;
22750
+ if (status === 200) {
22751
+ return response.text().then((_responseText) => {
22752
+ let result200 = null;
22753
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22754
+ if (Array.isArray(resultData200)) {
22755
+ result200 = [];
22756
+ for (let item of resultData200)
22757
+ result200.push(WorkorderDiscussionMessage.fromJS(item));
22758
+ }
22759
+ return result200;
22760
+ });
22761
+ }
22762
+ else if (status !== 200 && status !== 204) {
22763
+ return response.text().then((_responseText) => {
22764
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22765
+ });
22766
+ }
22767
+ return Promise.resolve(null);
22768
+ }
22769
+ addDiscussionMessage(id, request) {
22770
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
22771
+ if (id === undefined || id === null)
22772
+ throw new Error("The parameter 'id' must be defined.");
22773
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
22774
+ url_ = url_.replace(/[?&]$/, "");
22775
+ const content_ = JSON.stringify(request);
22776
+ let options_ = {
22777
+ body: content_,
22778
+ method: "POST",
22779
+ headers: {
22780
+ "Content-Type": "application/json",
22781
+ "Accept": "application/json"
22782
+ }
22783
+ };
22784
+ return this.transformOptions(options_).then(transformedOptions_ => {
22785
+ return this.http.fetch(url_, transformedOptions_);
22786
+ }).then((_response) => {
22787
+ return this.processAddDiscussionMessage(_response);
22788
+ });
22789
+ }
22790
+ processAddDiscussionMessage(response) {
22791
+ const status = response.status;
22792
+ let _headers = {};
22793
+ if (response.headers && response.headers.forEach) {
22794
+ response.headers.forEach((v, k) => _headers[k] = v);
22795
+ }
22796
+ ;
22797
+ if (status === 201) {
22798
+ return response.text().then((_responseText) => {
22799
+ let result201 = null;
22800
+ let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22801
+ result201 = WorkorderDiscussionMessage.fromJS(resultData201);
22802
+ return result201;
22803
+ });
22804
+ }
22805
+ else if (status !== 200 && status !== 204) {
22806
+ return response.text().then((_responseText) => {
22807
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22808
+ });
22809
+ }
22810
+ return Promise.resolve(null);
22811
+ }
22812
+ updateMessage(id, messageId, content) {
22813
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
22814
+ if (id === undefined || id === null)
22815
+ throw new Error("The parameter 'id' must be defined.");
22816
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
22817
+ if (messageId === undefined || messageId === null)
22818
+ throw new Error("The parameter 'messageId' must be defined.");
22819
+ url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
22820
+ url_ = url_.replace(/[?&]$/, "");
22821
+ const content_ = JSON.stringify(content);
22822
+ let options_ = {
22823
+ body: content_,
22824
+ method: "PUT",
22825
+ headers: {
22826
+ "Content-Type": "application/json",
22827
+ "Accept": "application/octet-stream"
22828
+ }
22829
+ };
22830
+ return this.transformOptions(options_).then(transformedOptions_ => {
22831
+ return this.http.fetch(url_, transformedOptions_);
22832
+ }).then((_response) => {
22833
+ return this.processUpdateMessage(_response);
22834
+ });
22835
+ }
22836
+ processUpdateMessage(response) {
22837
+ const status = response.status;
22838
+ let _headers = {};
22839
+ if (response.headers && response.headers.forEach) {
22840
+ response.headers.forEach((v, k) => _headers[k] = v);
22841
+ }
22842
+ ;
22843
+ if (status === 200 || status === 206) {
22844
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
22845
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
22846
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
22847
+ if (fileName) {
22848
+ fileName = decodeURIComponent(fileName);
22849
+ }
22850
+ else {
22851
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
22852
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
22853
+ }
22854
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
22855
+ }
22856
+ else if (status !== 200 && status !== 204) {
22857
+ return response.text().then((_responseText) => {
22858
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22859
+ });
22860
+ }
22861
+ return Promise.resolve(null);
22862
+ }
22863
+ deleteMessage(id, messageId) {
22864
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
22865
+ if (id === undefined || id === null)
22866
+ throw new Error("The parameter 'id' must be defined.");
22867
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
22868
+ if (messageId === undefined || messageId === null)
22869
+ throw new Error("The parameter 'messageId' must be defined.");
22870
+ url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
22871
+ url_ = url_.replace(/[?&]$/, "");
22872
+ let options_ = {
22873
+ method: "DELETE",
22874
+ headers: {
22875
+ "Accept": "application/octet-stream"
22876
+ }
22877
+ };
22878
+ return this.transformOptions(options_).then(transformedOptions_ => {
22879
+ return this.http.fetch(url_, transformedOptions_);
22880
+ }).then((_response) => {
22881
+ return this.processDeleteMessage(_response);
22882
+ });
22883
+ }
22884
+ processDeleteMessage(response) {
22885
+ const status = response.status;
22886
+ let _headers = {};
22887
+ if (response.headers && response.headers.forEach) {
22888
+ response.headers.forEach((v, k) => _headers[k] = v);
22889
+ }
22890
+ ;
22891
+ if (status === 200 || status === 206) {
22892
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
22893
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
22894
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
22895
+ if (fileName) {
22896
+ fileName = decodeURIComponent(fileName);
22897
+ }
22898
+ else {
22899
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
22900
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
22901
+ }
22902
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
22903
+ }
22904
+ else if (status !== 200 && status !== 204) {
22905
+ return response.text().then((_responseText) => {
22906
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22907
+ });
22908
+ }
22909
+ return Promise.resolve(null);
22910
+ }
22682
22911
  }
22683
22912
  export class AzureRegionDto {
22684
22913
  constructor(data) {
@@ -43642,7 +43871,7 @@ export class MeasurementFormInstanceDto {
43642
43871
  }
43643
43872
  if (!data) {
43644
43873
  this.schemas = [];
43645
- this.serialNumbers = [];
43874
+ this.sequences = [];
43646
43875
  this.suppliers = [];
43647
43876
  this.progress = new MeasurementFormProgressDto();
43648
43877
  }
@@ -43670,11 +43899,6 @@ export class MeasurementFormInstanceDto {
43670
43899
  for (let item of _data["sequences"])
43671
43900
  this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
43672
43901
  }
43673
- if (Array.isArray(_data["serialNumbers"])) {
43674
- this.serialNumbers = [];
43675
- for (let item of _data["serialNumbers"])
43676
- this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
43677
- }
43678
43902
  if (Array.isArray(_data["suppliers"])) {
43679
43903
  this.suppliers = [];
43680
43904
  for (let item of _data["suppliers"])
@@ -43714,11 +43938,6 @@ export class MeasurementFormInstanceDto {
43714
43938
  for (let item of this.sequences)
43715
43939
  data["sequences"].push(item.toJSON());
43716
43940
  }
43717
- if (Array.isArray(this.serialNumbers)) {
43718
- data["serialNumbers"] = [];
43719
- for (let item of this.serialNumbers)
43720
- data["serialNumbers"].push(item.toJSON());
43721
- }
43722
43941
  if (Array.isArray(this.suppliers)) {
43723
43942
  data["suppliers"] = [];
43724
43943
  for (let item of this.suppliers)
@@ -43811,36 +44030,6 @@ export class MeasurementFormWorkorderSequenceDto {
43811
44030
  return data;
43812
44031
  }
43813
44032
  }
43814
- export class MeasurementFormWorkorderSerialNumberDto {
43815
- constructor(data) {
43816
- if (data) {
43817
- for (var property in data) {
43818
- if (data.hasOwnProperty(property))
43819
- this[property] = data[property];
43820
- }
43821
- }
43822
- }
43823
- init(_data) {
43824
- if (_data) {
43825
- this.lot = _data["lot"];
43826
- this.serialNumber = _data["serialNumber"];
43827
- this.customerSerialNumber = _data["customerSerialNumber"];
43828
- }
43829
- }
43830
- static fromJS(data) {
43831
- data = typeof data === 'object' ? data : {};
43832
- let result = new MeasurementFormWorkorderSerialNumberDto();
43833
- result.init(data);
43834
- return result;
43835
- }
43836
- toJSON(data) {
43837
- data = typeof data === 'object' ? data : {};
43838
- data["lot"] = this.lot;
43839
- data["serialNumber"] = this.serialNumber;
43840
- data["customerSerialNumber"] = this.customerSerialNumber;
43841
- return data;
43842
- }
43843
- }
43844
44033
  export class MeasurementFormWorkorderSupplierDto {
43845
44034
  constructor(data) {
43846
44035
  if (data) {
@@ -44037,7 +44226,7 @@ export class UpdateMeasurementFormInstanceRequest {
44037
44226
  }
44038
44227
  }
44039
44228
  if (!data) {
44040
- this.serialNumbers = [];
44229
+ this.sequences = [];
44041
44230
  this.suppliers = [];
44042
44231
  }
44043
44232
  }
@@ -44048,11 +44237,6 @@ export class UpdateMeasurementFormInstanceRequest {
44048
44237
  for (let item of _data["sequences"])
44049
44238
  this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
44050
44239
  }
44051
- if (Array.isArray(_data["serialNumbers"])) {
44052
- this.serialNumbers = [];
44053
- for (let item of _data["serialNumbers"])
44054
- this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
44055
- }
44056
44240
  if (Array.isArray(_data["suppliers"])) {
44057
44241
  this.suppliers = [];
44058
44242
  for (let item of _data["suppliers"])
@@ -44073,11 +44257,6 @@ export class UpdateMeasurementFormInstanceRequest {
44073
44257
  for (let item of this.sequences)
44074
44258
  data["sequences"].push(item.toJSON());
44075
44259
  }
44076
- if (Array.isArray(this.serialNumbers)) {
44077
- data["serialNumbers"] = [];
44078
- for (let item of this.serialNumbers)
44079
- data["serialNumbers"].push(item.toJSON());
44080
- }
44081
44260
  if (Array.isArray(this.suppliers)) {
44082
44261
  data["suppliers"] = [];
44083
44262
  for (let item of this.suppliers)
@@ -44261,7 +44440,6 @@ export class MeasurementFormElementValueDto {
44261
44440
  this.bonus = _data["bonus"];
44262
44441
  this.completed = _data["completed"];
44263
44442
  this.sequence = _data["sequence"];
44264
- this.serialNumber = _data["serialNumber"];
44265
44443
  this.value = _data["value"];
44266
44444
  this.updatedByUser = _data["updatedByUser"];
44267
44445
  this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
@@ -44286,7 +44464,6 @@ export class MeasurementFormElementValueDto {
44286
44464
  data["bonus"] = this.bonus;
44287
44465
  data["completed"] = this.completed;
44288
44466
  data["sequence"] = this.sequence;
44289
- data["serialNumber"] = this.serialNumber;
44290
44467
  data["value"] = this.value;
44291
44468
  data["updatedByUser"] = this.updatedByUser;
44292
44469
  data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
@@ -44388,7 +44565,6 @@ export class MeasurementFormElementValueAuditDto {
44388
44565
  this.value = _data["value"];
44389
44566
  this.bonus = _data["bonus"];
44390
44567
  this.sequence = _data["sequence"];
44391
- this.serialNumber = _data["serialNumber"];
44392
44568
  this.elementId = _data["elementId"];
44393
44569
  this.updatedByUser = _data["updatedByUser"];
44394
44570
  this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
@@ -44414,7 +44590,6 @@ export class MeasurementFormElementValueAuditDto {
44414
44590
  data["value"] = this.value;
44415
44591
  data["bonus"] = this.bonus;
44416
44592
  data["sequence"] = this.sequence;
44417
- data["serialNumber"] = this.serialNumber;
44418
44593
  data["elementId"] = this.elementId;
44419
44594
  data["updatedByUser"] = this.updatedByUser;
44420
44595
  data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
@@ -44515,7 +44690,6 @@ export class SaveValueRequest {
44515
44690
  this.schemaId = _data["schemaId"];
44516
44691
  this.elementId = _data["elementId"];
44517
44692
  this.sequence = _data["sequence"];
44518
- this.serialNumber = _data["serialNumber"];
44519
44693
  this.value = _data["value"];
44520
44694
  this.bonus = _data["bonus"];
44521
44695
  }
@@ -44533,7 +44707,6 @@ export class SaveValueRequest {
44533
44707
  data["schemaId"] = this.schemaId;
44534
44708
  data["elementId"] = this.elementId;
44535
44709
  data["sequence"] = this.sequence;
44536
- data["serialNumber"] = this.serialNumber;
44537
44710
  data["value"] = this.value;
44538
44711
  data["bonus"] = this.bonus;
44539
44712
  return data;
@@ -44553,7 +44726,6 @@ export class SaveToolRequest {
44553
44726
  this.schemaId = _data["schemaId"];
44554
44727
  this.elementId = _data["elementId"];
44555
44728
  this.sequence = _data["sequence"];
44556
- this.serialNumber = _data["serialNumber"];
44557
44729
  if (Array.isArray(_data["tools"])) {
44558
44730
  this.tools = [];
44559
44731
  for (let item of _data["tools"])
@@ -44573,7 +44745,6 @@ export class SaveToolRequest {
44573
44745
  data["schemaId"] = this.schemaId;
44574
44746
  data["elementId"] = this.elementId;
44575
44747
  data["sequence"] = this.sequence;
44576
- data["serialNumber"] = this.serialNumber;
44577
44748
  if (Array.isArray(this.tools)) {
44578
44749
  data["tools"] = [];
44579
44750
  for (let item of this.tools)
@@ -44597,7 +44768,6 @@ export class SaveCommentRequest {
44597
44768
  this.schemaId = _data["schemaId"];
44598
44769
  this.elementId = _data["elementId"];
44599
44770
  this.sequence = _data["sequence"];
44600
- this.serialNumber = _data["serialNumber"];
44601
44771
  this.comment = _data["comment"];
44602
44772
  }
44603
44773
  }
@@ -44612,7 +44782,6 @@ export class SaveCommentRequest {
44612
44782
  data["schemaId"] = this.schemaId;
44613
44783
  data["elementId"] = this.elementId;
44614
44784
  data["sequence"] = this.sequence;
44615
- data["serialNumber"] = this.serialNumber;
44616
44785
  data["comment"] = this.comment;
44617
44786
  return data;
44618
44787
  }
@@ -44893,11 +45062,6 @@ export class ExportDimensionReportRequest {
44893
45062
  for (let item of _data["sequences"])
44894
45063
  this.sequences.push(item);
44895
45064
  }
44896
- if (Array.isArray(_data["serialNumbers"])) {
44897
- this.serialNumbers = [];
44898
- for (let item of _data["serialNumbers"])
44899
- this.serialNumbers.push(item);
44900
- }
44901
45065
  this.customerPO = _data["customerPO"];
44902
45066
  this.workOrder = _data["workOrder"];
44903
45067
  this.comment = _data["comment"];
@@ -44920,11 +45084,6 @@ export class ExportDimensionReportRequest {
44920
45084
  for (let item of this.sequences)
44921
45085
  data["sequences"].push(item);
44922
45086
  }
44923
- if (Array.isArray(this.serialNumbers)) {
44924
- data["serialNumbers"] = [];
44925
- for (let item of this.serialNumbers)
44926
- data["serialNumbers"].push(item);
44927
- }
44928
45087
  data["customerPO"] = this.customerPO;
44929
45088
  data["workOrder"] = this.workOrder;
44930
45089
  data["comment"] = this.comment;
@@ -44995,7 +45154,7 @@ export class SchemaInstanceElementDto {
44995
45154
  return data;
44996
45155
  }
44997
45156
  }
44998
- export class IotTypeSourceDto {
45157
+ export class ImportMeasurementFormInstanceRequest {
44999
45158
  constructor(data) {
45000
45159
  if (data) {
45001
45160
  for (var property in data) {
@@ -45003,12 +45162,179 @@ export class IotTypeSourceDto {
45003
45162
  this[property] = data[property];
45004
45163
  }
45005
45164
  }
45165
+ if (!data) {
45166
+ this.partInfo = new ImportMeasurementFormPartDto();
45167
+ this.sequences = [];
45168
+ this.schemas = [];
45169
+ }
45006
45170
  }
45007
45171
  init(_data) {
45008
45172
  if (_data) {
45009
- this.id = _data["id"];
45010
- this.name = _data["name"];
45011
- }
45173
+ this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
45174
+ this.customerId = _data["customerId"];
45175
+ this.customerGroupId = _data["customerGroupId"];
45176
+ this.customerName = _data["customerName"];
45177
+ this.externalOrderNumber = _data["externalOrderNumber"];
45178
+ this.quantity = _data["quantity"];
45179
+ if (Array.isArray(_data["sequences"])) {
45180
+ this.sequences = [];
45181
+ for (let item of _data["sequences"])
45182
+ this.sequences.push(WorkorderImportTraceItemDto.fromJS(item));
45183
+ }
45184
+ this.status = _data["status"];
45185
+ this.statusChangedBy = _data["statusChangedBy"];
45186
+ this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
45187
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
45188
+ this.createdBy = _data["createdBy"];
45189
+ this.updatedBy = _data["updatedBy"];
45190
+ if (Array.isArray(_data["schemas"])) {
45191
+ this.schemas = [];
45192
+ for (let item of _data["schemas"])
45193
+ this.schemas.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
45194
+ }
45195
+ }
45196
+ }
45197
+ static fromJS(data) {
45198
+ data = typeof data === 'object' ? data : {};
45199
+ let result = new ImportMeasurementFormInstanceRequest();
45200
+ result.init(data);
45201
+ return result;
45202
+ }
45203
+ toJSON(data) {
45204
+ data = typeof data === 'object' ? data : {};
45205
+ data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : undefined;
45206
+ data["customerId"] = this.customerId;
45207
+ data["customerGroupId"] = this.customerGroupId;
45208
+ data["customerName"] = this.customerName;
45209
+ data["externalOrderNumber"] = this.externalOrderNumber;
45210
+ data["quantity"] = this.quantity;
45211
+ if (Array.isArray(this.sequences)) {
45212
+ data["sequences"] = [];
45213
+ for (let item of this.sequences)
45214
+ data["sequences"].push(item.toJSON());
45215
+ }
45216
+ data["status"] = this.status;
45217
+ data["statusChangedBy"] = this.statusChangedBy;
45218
+ data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
45219
+ data["created"] = this.created ? this.created.toISOString() : undefined;
45220
+ data["createdBy"] = this.createdBy;
45221
+ data["updatedBy"] = this.updatedBy;
45222
+ if (Array.isArray(this.schemas)) {
45223
+ data["schemas"] = [];
45224
+ for (let item of this.schemas)
45225
+ data["schemas"].push(item.toJSON());
45226
+ }
45227
+ return data;
45228
+ }
45229
+ }
45230
+ export class ImportMeasurementFormPartDto {
45231
+ constructor(data) {
45232
+ if (data) {
45233
+ for (var property in data) {
45234
+ if (data.hasOwnProperty(property))
45235
+ this[property] = data[property];
45236
+ }
45237
+ }
45238
+ }
45239
+ init(_data) {
45240
+ if (_data) {
45241
+ this.partNumber = _data["partNumber"];
45242
+ this.partName = _data["partName"];
45243
+ this.partRevision = _data["partRevision"];
45244
+ this.drawing = _data["drawing"];
45245
+ this.drawingRevision = _data["drawingRevision"];
45246
+ }
45247
+ }
45248
+ static fromJS(data) {
45249
+ data = typeof data === 'object' ? data : {};
45250
+ let result = new ImportMeasurementFormPartDto();
45251
+ result.init(data);
45252
+ return result;
45253
+ }
45254
+ toJSON(data) {
45255
+ data = typeof data === 'object' ? data : {};
45256
+ data["partNumber"] = this.partNumber;
45257
+ data["partName"] = this.partName;
45258
+ data["partRevision"] = this.partRevision;
45259
+ data["drawing"] = this.drawing;
45260
+ data["drawingRevision"] = this.drawingRevision;
45261
+ return data;
45262
+ }
45263
+ }
45264
+ export class WorkorderImportTraceItemDto {
45265
+ constructor(data) {
45266
+ if (data) {
45267
+ for (var property in data) {
45268
+ if (data.hasOwnProperty(property))
45269
+ this[property] = data[property];
45270
+ }
45271
+ }
45272
+ }
45273
+ init(_data) {
45274
+ if (_data) {
45275
+ this.sequence = _data["sequence"];
45276
+ this.serialNumber = _data["serialNumber"];
45277
+ this.lot = _data["lot"];
45278
+ this.active = _data["active"];
45279
+ }
45280
+ }
45281
+ static fromJS(data) {
45282
+ data = typeof data === 'object' ? data : {};
45283
+ let result = new WorkorderImportTraceItemDto();
45284
+ result.init(data);
45285
+ return result;
45286
+ }
45287
+ toJSON(data) {
45288
+ data = typeof data === 'object' ? data : {};
45289
+ data["sequence"] = this.sequence;
45290
+ data["serialNumber"] = this.serialNumber;
45291
+ data["lot"] = this.lot;
45292
+ data["active"] = this.active;
45293
+ return data;
45294
+ }
45295
+ }
45296
+ export class ImportMeasurementSchemaInstanceDto {
45297
+ constructor(data) {
45298
+ if (data) {
45299
+ for (var property in data) {
45300
+ if (data.hasOwnProperty(property))
45301
+ this[property] = data[property];
45302
+ }
45303
+ }
45304
+ }
45305
+ init(_data) {
45306
+ if (_data) {
45307
+ this.id = _data["id"];
45308
+ this.version = _data["version"];
45309
+ }
45310
+ }
45311
+ static fromJS(data) {
45312
+ data = typeof data === 'object' ? data : {};
45313
+ let result = new ImportMeasurementSchemaInstanceDto();
45314
+ result.init(data);
45315
+ return result;
45316
+ }
45317
+ toJSON(data) {
45318
+ data = typeof data === 'object' ? data : {};
45319
+ data["id"] = this.id;
45320
+ data["version"] = this.version;
45321
+ return data;
45322
+ }
45323
+ }
45324
+ export class IotTypeSourceDto {
45325
+ constructor(data) {
45326
+ if (data) {
45327
+ for (var property in data) {
45328
+ if (data.hasOwnProperty(property))
45329
+ this[property] = data[property];
45330
+ }
45331
+ }
45332
+ }
45333
+ init(_data) {
45334
+ if (_data) {
45335
+ this.id = _data["id"];
45336
+ this.name = _data["name"];
45337
+ }
45012
45338
  }
45013
45339
  static fromJS(data) {
45014
45340
  data = typeof data === 'object' ? data : {};
@@ -45944,10 +46270,8 @@ export class WorkOrderTraceItemDto {
45944
46270
  if (_data) {
45945
46271
  this.sequence = _data["sequence"];
45946
46272
  this.serialNumber = _data["serialNumber"];
45947
- this.customerSerialNumber = _data["customerSerialNumber"];
45948
46273
  this.lot = _data["lot"];
45949
46274
  this.active = _data["active"];
45950
- this.isLegacy = _data["isLegacy"];
45951
46275
  }
45952
46276
  }
45953
46277
  static fromJS(data) {
@@ -45960,10 +46284,8 @@ export class WorkOrderTraceItemDto {
45960
46284
  data = typeof data === 'object' ? data : {};
45961
46285
  data["sequence"] = this.sequence;
45962
46286
  data["serialNumber"] = this.serialNumber;
45963
- data["customerSerialNumber"] = this.customerSerialNumber;
45964
46287
  data["lot"] = this.lot;
45965
46288
  data["active"] = this.active;
45966
- data["isLegacy"] = this.isLegacy;
45967
46289
  return data;
45968
46290
  }
45969
46291
  }
@@ -46461,6 +46783,164 @@ export class CreateWorkOrderMapping {
46461
46783
  return data;
46462
46784
  }
46463
46785
  }
46786
+ export class TableEntityBase {
46787
+ constructor(data) {
46788
+ if (data) {
46789
+ for (var property in data) {
46790
+ if (data.hasOwnProperty(property))
46791
+ this[property] = data[property];
46792
+ }
46793
+ }
46794
+ }
46795
+ init(_data) {
46796
+ if (_data) {
46797
+ this.partitionKey = _data["partitionKey"];
46798
+ this.rowKey = _data["rowKey"];
46799
+ this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : undefined;
46800
+ this.eTag = _data["eTag"] ? ETag.fromJS(_data["eTag"]) : undefined;
46801
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
46802
+ this.createdBy = _data["createdBy"];
46803
+ this.createdById = _data["createdById"];
46804
+ this.updatedBy = _data["updatedBy"];
46805
+ this.updatedById = _data["updatedById"];
46806
+ this.insertAuditInfo = _data["insertAuditInfo"] ? AuditInfo.fromJS(_data["insertAuditInfo"]) : undefined;
46807
+ }
46808
+ }
46809
+ static fromJS(data) {
46810
+ data = typeof data === 'object' ? data : {};
46811
+ let result = new TableEntityBase();
46812
+ result.init(data);
46813
+ return result;
46814
+ }
46815
+ toJSON(data) {
46816
+ data = typeof data === 'object' ? data : {};
46817
+ data["partitionKey"] = this.partitionKey;
46818
+ data["rowKey"] = this.rowKey;
46819
+ data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : undefined;
46820
+ data["eTag"] = this.eTag ? this.eTag.toJSON() : undefined;
46821
+ data["created"] = this.created ? this.created.toISOString() : undefined;
46822
+ data["createdBy"] = this.createdBy;
46823
+ data["createdById"] = this.createdById;
46824
+ data["updatedBy"] = this.updatedBy;
46825
+ data["updatedById"] = this.updatedById;
46826
+ data["insertAuditInfo"] = this.insertAuditInfo ? this.insertAuditInfo.toJSON() : undefined;
46827
+ return data;
46828
+ }
46829
+ }
46830
+ export class WorkorderDiscussionMessage extends TableEntityBase {
46831
+ constructor(data) {
46832
+ super(data);
46833
+ }
46834
+ init(_data) {
46835
+ super.init(_data);
46836
+ if (_data) {
46837
+ this.content = _data["content"];
46838
+ this.senderUpn = _data["senderUpn"];
46839
+ this.senderName = _data["senderName"];
46840
+ this.operationId = _data["operationId"];
46841
+ this.resourceId = _data["resourceId"];
46842
+ }
46843
+ }
46844
+ static fromJS(data) {
46845
+ data = typeof data === 'object' ? data : {};
46846
+ let result = new WorkorderDiscussionMessage();
46847
+ result.init(data);
46848
+ return result;
46849
+ }
46850
+ toJSON(data) {
46851
+ data = typeof data === 'object' ? data : {};
46852
+ data["content"] = this.content;
46853
+ data["senderUpn"] = this.senderUpn;
46854
+ data["senderName"] = this.senderName;
46855
+ data["operationId"] = this.operationId;
46856
+ data["resourceId"] = this.resourceId;
46857
+ super.toJSON(data);
46858
+ return data;
46859
+ }
46860
+ }
46861
+ /** Represents an HTTP ETag. */
46862
+ export class ETag {
46863
+ constructor(data) {
46864
+ if (data) {
46865
+ for (var property in data) {
46866
+ if (data.hasOwnProperty(property))
46867
+ this[property] = data[property];
46868
+ }
46869
+ }
46870
+ }
46871
+ init(_data) {
46872
+ }
46873
+ static fromJS(data) {
46874
+ data = typeof data === 'object' ? data : {};
46875
+ let result = new ETag();
46876
+ result.init(data);
46877
+ return result;
46878
+ }
46879
+ toJSON(data) {
46880
+ data = typeof data === 'object' ? data : {};
46881
+ return data;
46882
+ }
46883
+ }
46884
+ export class AuditInfo {
46885
+ constructor(data) {
46886
+ if (data) {
46887
+ for (var property in data) {
46888
+ if (data.hasOwnProperty(property))
46889
+ this[property] = data[property];
46890
+ }
46891
+ }
46892
+ }
46893
+ init(_data) {
46894
+ if (_data) {
46895
+ this.objectId = _data["objectId"];
46896
+ this.userId = _data["userId"];
46897
+ this.userFullName = _data["userFullName"];
46898
+ }
46899
+ }
46900
+ static fromJS(data) {
46901
+ data = typeof data === 'object' ? data : {};
46902
+ let result = new AuditInfo();
46903
+ result.init(data);
46904
+ return result;
46905
+ }
46906
+ toJSON(data) {
46907
+ data = typeof data === 'object' ? data : {};
46908
+ data["objectId"] = this.objectId;
46909
+ data["userId"] = this.userId;
46910
+ data["userFullName"] = this.userFullName;
46911
+ return data;
46912
+ }
46913
+ }
46914
+ export class AddDiscussionMessageRequest {
46915
+ constructor(data) {
46916
+ if (data) {
46917
+ for (var property in data) {
46918
+ if (data.hasOwnProperty(property))
46919
+ this[property] = data[property];
46920
+ }
46921
+ }
46922
+ }
46923
+ init(_data) {
46924
+ if (_data) {
46925
+ this.message = _data["message"];
46926
+ this.operationId = _data["operationId"];
46927
+ this.resourceId = _data["resourceId"];
46928
+ }
46929
+ }
46930
+ static fromJS(data) {
46931
+ data = typeof data === 'object' ? data : {};
46932
+ let result = new AddDiscussionMessageRequest();
46933
+ result.init(data);
46934
+ return result;
46935
+ }
46936
+ toJSON(data) {
46937
+ data = typeof data === 'object' ? data : {};
46938
+ data["message"] = this.message;
46939
+ data["operationId"] = this.operationId;
46940
+ data["resourceId"] = this.resourceId;
46941
+ return data;
46942
+ }
46943
+ }
46464
46944
  function formatDate(d) {
46465
46945
  return d.getFullYear() + '-' +
46466
46946
  (d.getMonth() < 9 ? ('0' + (d.getMonth() + 1)) : (d.getMonth() + 1)) + '-' +