@ignos/api-client 20250710.0.12146 → 20250711.0.12189-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, sequence, tenantId) {
19921
+ getMeasurementFormInstanceSchema(id, schemaId, serialNumber, 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 (sequence !== undefined && sequence !== null)
19930
- url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
19929
+ if (serialNumber !== undefined && serialNumber !== null)
19930
+ url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
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, sequence, elementId) {
20010
+ getAuditLog(id, tenantId, schemaId, serialNumber, 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 (sequence !== undefined && sequence !== null)
20020
- url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
20019
+ if (serialNumber !== undefined && serialNumber !== null)
20020
+ url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
20021
20021
  if (elementId !== undefined && elementId !== null)
20022
20022
  url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
20023
20023
  url_ = url_.replace(/[?&]$/, "");
@@ -20707,49 +20707,6 @@ 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
- }
20753
20710
  }
20754
20711
  export class ElectricalClient extends AuthorizedApiBase {
20755
20712
  constructor(configuration, baseUrl, http) {
@@ -43713,6 +43670,11 @@ export class MeasurementFormInstanceDto {
43713
43670
  for (let item of _data["sequences"])
43714
43671
  this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
43715
43672
  }
43673
+ if (Array.isArray(_data["serialNumbers"])) {
43674
+ this.serialNumbers = [];
43675
+ for (let item of _data["serialNumbers"])
43676
+ this.serialNumbers.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
43677
+ }
43716
43678
  if (Array.isArray(_data["suppliers"])) {
43717
43679
  this.suppliers = [];
43718
43680
  for (let item of _data["suppliers"])
@@ -43752,6 +43714,11 @@ export class MeasurementFormInstanceDto {
43752
43714
  for (let item of this.sequences)
43753
43715
  data["sequences"].push(item.toJSON());
43754
43716
  }
43717
+ if (Array.isArray(this.serialNumbers)) {
43718
+ data["serialNumbers"] = [];
43719
+ for (let item of this.serialNumbers)
43720
+ data["serialNumbers"].push(item.toJSON());
43721
+ }
43755
43722
  if (Array.isArray(this.suppliers)) {
43756
43723
  data["suppliers"] = [];
43757
43724
  for (let item of this.suppliers)
@@ -44040,7 +44007,7 @@ export class UpdateMeasurementFormInstanceRequest {
44040
44007
  }
44041
44008
  }
44042
44009
  if (!data) {
44043
- this.sequences = [];
44010
+ this.serialNumbers = [];
44044
44011
  this.suppliers = [];
44045
44012
  }
44046
44013
  }
@@ -44051,6 +44018,11 @@ export class UpdateMeasurementFormInstanceRequest {
44051
44018
  for (let item of _data["sequences"])
44052
44019
  this.sequences.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
44053
44020
  }
44021
+ if (Array.isArray(_data["serialNumbers"])) {
44022
+ this.serialNumbers = [];
44023
+ for (let item of _data["serialNumbers"])
44024
+ this.serialNumbers.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
44025
+ }
44054
44026
  if (Array.isArray(_data["suppliers"])) {
44055
44027
  this.suppliers = [];
44056
44028
  for (let item of _data["suppliers"])
@@ -44071,6 +44043,11 @@ export class UpdateMeasurementFormInstanceRequest {
44071
44043
  for (let item of this.sequences)
44072
44044
  data["sequences"].push(item.toJSON());
44073
44045
  }
44046
+ if (Array.isArray(this.serialNumbers)) {
44047
+ data["serialNumbers"] = [];
44048
+ for (let item of this.serialNumbers)
44049
+ data["serialNumbers"].push(item.toJSON());
44050
+ }
44074
44051
  if (Array.isArray(this.suppliers)) {
44075
44052
  data["suppliers"] = [];
44076
44053
  for (let item of this.suppliers)
@@ -44079,6 +44056,36 @@ export class UpdateMeasurementFormInstanceRequest {
44079
44056
  return data;
44080
44057
  }
44081
44058
  }
44059
+ export class MeasurementFormWorkorderSerialNumberDto {
44060
+ constructor(data) {
44061
+ if (data) {
44062
+ for (var property in data) {
44063
+ if (data.hasOwnProperty(property))
44064
+ this[property] = data[property];
44065
+ }
44066
+ }
44067
+ }
44068
+ init(_data) {
44069
+ if (_data) {
44070
+ this.lot = _data["lot"];
44071
+ this.serialNumber = _data["serialNumber"];
44072
+ this.customerSerialNumber = _data["customerSerialNumber"];
44073
+ }
44074
+ }
44075
+ static fromJS(data) {
44076
+ data = typeof data === 'object' ? data : {};
44077
+ let result = new MeasurementFormWorkorderSerialNumberDto();
44078
+ result.init(data);
44079
+ return result;
44080
+ }
44081
+ toJSON(data) {
44082
+ data = typeof data === 'object' ? data : {};
44083
+ data["lot"] = this.lot;
44084
+ data["serialNumber"] = this.serialNumber;
44085
+ data["customerSerialNumber"] = this.customerSerialNumber;
44086
+ return data;
44087
+ }
44088
+ }
44082
44089
  export class MeasurementFormInstanceSchemaDto {
44083
44090
  constructor(data) {
44084
44091
  if (data) {
@@ -44504,6 +44511,7 @@ export class SaveValueRequest {
44504
44511
  this.schemaId = _data["schemaId"];
44505
44512
  this.elementId = _data["elementId"];
44506
44513
  this.sequence = _data["sequence"];
44514
+ this.serialNumber = _data["serialNumber"];
44507
44515
  this.value = _data["value"];
44508
44516
  this.bonus = _data["bonus"];
44509
44517
  }
@@ -44521,6 +44529,7 @@ export class SaveValueRequest {
44521
44529
  data["schemaId"] = this.schemaId;
44522
44530
  data["elementId"] = this.elementId;
44523
44531
  data["sequence"] = this.sequence;
44532
+ data["serialNumber"] = this.serialNumber;
44524
44533
  data["value"] = this.value;
44525
44534
  data["bonus"] = this.bonus;
44526
44535
  return data;
@@ -44540,6 +44549,7 @@ export class SaveToolRequest {
44540
44549
  this.schemaId = _data["schemaId"];
44541
44550
  this.elementId = _data["elementId"];
44542
44551
  this.sequence = _data["sequence"];
44552
+ this.serialNumber = _data["serialNumber"];
44543
44553
  if (Array.isArray(_data["tools"])) {
44544
44554
  this.tools = [];
44545
44555
  for (let item of _data["tools"])
@@ -44559,6 +44569,7 @@ export class SaveToolRequest {
44559
44569
  data["schemaId"] = this.schemaId;
44560
44570
  data["elementId"] = this.elementId;
44561
44571
  data["sequence"] = this.sequence;
44572
+ data["serialNumber"] = this.serialNumber;
44562
44573
  if (Array.isArray(this.tools)) {
44563
44574
  data["tools"] = [];
44564
44575
  for (let item of this.tools)
@@ -44582,6 +44593,7 @@ export class SaveCommentRequest {
44582
44593
  this.schemaId = _data["schemaId"];
44583
44594
  this.elementId = _data["elementId"];
44584
44595
  this.sequence = _data["sequence"];
44596
+ this.serialNumber = _data["serialNumber"];
44585
44597
  this.comment = _data["comment"];
44586
44598
  }
44587
44599
  }
@@ -44596,6 +44608,7 @@ export class SaveCommentRequest {
44596
44608
  data["schemaId"] = this.schemaId;
44597
44609
  data["elementId"] = this.elementId;
44598
44610
  data["sequence"] = this.sequence;
44611
+ data["serialNumber"] = this.serialNumber;
44599
44612
  data["comment"] = this.comment;
44600
44613
  return data;
44601
44614
  }
@@ -44876,6 +44889,11 @@ export class ExportDimensionReportRequest {
44876
44889
  for (let item of _data["sequences"])
44877
44890
  this.sequences.push(item);
44878
44891
  }
44892
+ if (Array.isArray(_data["serialNumbers"])) {
44893
+ this.serialNumbers = [];
44894
+ for (let item of _data["serialNumbers"])
44895
+ this.serialNumbers.push(item);
44896
+ }
44879
44897
  this.customerPO = _data["customerPO"];
44880
44898
  this.workOrder = _data["workOrder"];
44881
44899
  this.comment = _data["comment"];
@@ -44898,6 +44916,11 @@ export class ExportDimensionReportRequest {
44898
44916
  for (let item of this.sequences)
44899
44917
  data["sequences"].push(item);
44900
44918
  }
44919
+ if (Array.isArray(this.serialNumbers)) {
44920
+ data["serialNumbers"] = [];
44921
+ for (let item of this.serialNumbers)
44922
+ data["serialNumbers"].push(item);
44923
+ }
44901
44924
  data["customerPO"] = this.customerPO;
44902
44925
  data["workOrder"] = this.workOrder;
44903
44926
  data["comment"] = this.comment;
@@ -44968,173 +44991,6 @@ export class SchemaInstanceElementDto {
44968
44991
  return data;
44969
44992
  }
44970
44993
  }
44971
- export class ImportMeasurementFormInstanceRequest {
44972
- constructor(data) {
44973
- if (data) {
44974
- for (var property in data) {
44975
- if (data.hasOwnProperty(property))
44976
- this[property] = data[property];
44977
- }
44978
- }
44979
- if (!data) {
44980
- this.partInfo = new ImportMeasurementFormPartDto();
44981
- this.sequences = [];
44982
- this.schemas = [];
44983
- }
44984
- }
44985
- init(_data) {
44986
- if (_data) {
44987
- this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
44988
- this.customerId = _data["customerId"];
44989
- this.customerGroupId = _data["customerGroupId"];
44990
- this.customerName = _data["customerName"];
44991
- this.externalOrderNumber = _data["externalOrderNumber"];
44992
- this.quantity = _data["quantity"];
44993
- if (Array.isArray(_data["sequences"])) {
44994
- this.sequences = [];
44995
- for (let item of _data["sequences"])
44996
- this.sequences.push(WorkorderImportTraceItemDto.fromJS(item));
44997
- }
44998
- this.status = _data["status"];
44999
- this.statusChangedBy = _data["statusChangedBy"];
45000
- this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
45001
- this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
45002
- this.createdBy = _data["createdBy"];
45003
- this.updatedBy = _data["updatedBy"];
45004
- if (Array.isArray(_data["schemas"])) {
45005
- this.schemas = [];
45006
- for (let item of _data["schemas"])
45007
- this.schemas.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
45008
- }
45009
- }
45010
- }
45011
- static fromJS(data) {
45012
- data = typeof data === 'object' ? data : {};
45013
- let result = new ImportMeasurementFormInstanceRequest();
45014
- result.init(data);
45015
- return result;
45016
- }
45017
- toJSON(data) {
45018
- data = typeof data === 'object' ? data : {};
45019
- data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : undefined;
45020
- data["customerId"] = this.customerId;
45021
- data["customerGroupId"] = this.customerGroupId;
45022
- data["customerName"] = this.customerName;
45023
- data["externalOrderNumber"] = this.externalOrderNumber;
45024
- data["quantity"] = this.quantity;
45025
- if (Array.isArray(this.sequences)) {
45026
- data["sequences"] = [];
45027
- for (let item of this.sequences)
45028
- data["sequences"].push(item.toJSON());
45029
- }
45030
- data["status"] = this.status;
45031
- data["statusChangedBy"] = this.statusChangedBy;
45032
- data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
45033
- data["created"] = this.created ? this.created.toISOString() : undefined;
45034
- data["createdBy"] = this.createdBy;
45035
- data["updatedBy"] = this.updatedBy;
45036
- if (Array.isArray(this.schemas)) {
45037
- data["schemas"] = [];
45038
- for (let item of this.schemas)
45039
- data["schemas"].push(item.toJSON());
45040
- }
45041
- return data;
45042
- }
45043
- }
45044
- export class ImportMeasurementFormPartDto {
45045
- constructor(data) {
45046
- if (data) {
45047
- for (var property in data) {
45048
- if (data.hasOwnProperty(property))
45049
- this[property] = data[property];
45050
- }
45051
- }
45052
- }
45053
- init(_data) {
45054
- if (_data) {
45055
- this.partNumber = _data["partNumber"];
45056
- this.partName = _data["partName"];
45057
- this.partRevision = _data["partRevision"];
45058
- this.drawing = _data["drawing"];
45059
- this.drawingRevision = _data["drawingRevision"];
45060
- }
45061
- }
45062
- static fromJS(data) {
45063
- data = typeof data === 'object' ? data : {};
45064
- let result = new ImportMeasurementFormPartDto();
45065
- result.init(data);
45066
- return result;
45067
- }
45068
- toJSON(data) {
45069
- data = typeof data === 'object' ? data : {};
45070
- data["partNumber"] = this.partNumber;
45071
- data["partName"] = this.partName;
45072
- data["partRevision"] = this.partRevision;
45073
- data["drawing"] = this.drawing;
45074
- data["drawingRevision"] = this.drawingRevision;
45075
- return data;
45076
- }
45077
- }
45078
- export class WorkorderImportTraceItemDto {
45079
- constructor(data) {
45080
- if (data) {
45081
- for (var property in data) {
45082
- if (data.hasOwnProperty(property))
45083
- this[property] = data[property];
45084
- }
45085
- }
45086
- }
45087
- init(_data) {
45088
- if (_data) {
45089
- this.sequence = _data["sequence"];
45090
- this.serialNumber = _data["serialNumber"];
45091
- this.lot = _data["lot"];
45092
- this.active = _data["active"];
45093
- }
45094
- }
45095
- static fromJS(data) {
45096
- data = typeof data === 'object' ? data : {};
45097
- let result = new WorkorderImportTraceItemDto();
45098
- result.init(data);
45099
- return result;
45100
- }
45101
- toJSON(data) {
45102
- data = typeof data === 'object' ? data : {};
45103
- data["sequence"] = this.sequence;
45104
- data["serialNumber"] = this.serialNumber;
45105
- data["lot"] = this.lot;
45106
- data["active"] = this.active;
45107
- return data;
45108
- }
45109
- }
45110
- export class ImportMeasurementSchemaInstanceDto {
45111
- constructor(data) {
45112
- if (data) {
45113
- for (var property in data) {
45114
- if (data.hasOwnProperty(property))
45115
- this[property] = data[property];
45116
- }
45117
- }
45118
- }
45119
- init(_data) {
45120
- if (_data) {
45121
- this.id = _data["id"];
45122
- this.version = _data["version"];
45123
- }
45124
- }
45125
- static fromJS(data) {
45126
- data = typeof data === 'object' ? data : {};
45127
- let result = new ImportMeasurementSchemaInstanceDto();
45128
- result.init(data);
45129
- return result;
45130
- }
45131
- toJSON(data) {
45132
- data = typeof data === 'object' ? data : {};
45133
- data["id"] = this.id;
45134
- data["version"] = this.version;
45135
- return data;
45136
- }
45137
- }
45138
44994
  export class IotTypeSourceDto {
45139
44995
  constructor(data) {
45140
44996
  if (data) {
@@ -46084,8 +45940,10 @@ export class WorkOrderTraceItemDto {
46084
45940
  if (_data) {
46085
45941
  this.sequence = _data["sequence"];
46086
45942
  this.serialNumber = _data["serialNumber"];
45943
+ this.customerSerialNumber = _data["customerSerialNumber"];
46087
45944
  this.lot = _data["lot"];
46088
45945
  this.active = _data["active"];
45946
+ this.isLegacy = _data["isLegacy"];
46089
45947
  }
46090
45948
  }
46091
45949
  static fromJS(data) {
@@ -46098,8 +45956,10 @@ export class WorkOrderTraceItemDto {
46098
45956
  data = typeof data === 'object' ? data : {};
46099
45957
  data["sequence"] = this.sequence;
46100
45958
  data["serialNumber"] = this.serialNumber;
45959
+ data["customerSerialNumber"] = this.customerSerialNumber;
46101
45960
  data["lot"] = this.lot;
46102
45961
  data["active"] = this.active;
45962
+ data["isLegacy"] = this.isLegacy;
46103
45963
  return data;
46104
45964
  }
46105
45965
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250710.0.12146",
3
+ "version": "20250711.0.12189-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",