@ignos/api-client 20250904.0.12514 → 20250910.0.12568

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.
@@ -5852,6 +5852,165 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
5852
5852
  }
5853
5853
  return Promise.resolve(null);
5854
5854
  }
5855
+ listParentTopics() {
5856
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
5857
+ url_ = url_.replace(/[?&]$/, "");
5858
+ let options_ = {
5859
+ method: "GET",
5860
+ headers: {
5861
+ "Accept": "application/json"
5862
+ }
5863
+ };
5864
+ return this.transformOptions(options_).then(transformedOptions_ => {
5865
+ return this.http.fetch(url_, transformedOptions_);
5866
+ }).then((_response) => {
5867
+ return this.processListParentTopics(_response);
5868
+ });
5869
+ }
5870
+ processListParentTopics(response) {
5871
+ const status = response.status;
5872
+ let _headers = {};
5873
+ if (response.headers && response.headers.forEach) {
5874
+ response.headers.forEach((v, k) => _headers[k] = v);
5875
+ }
5876
+ ;
5877
+ if (status === 200) {
5878
+ return response.text().then((_responseText) => {
5879
+ let result200 = null;
5880
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5881
+ if (Array.isArray(resultData200)) {
5882
+ result200 = [];
5883
+ for (let item of resultData200)
5884
+ result200.push(ParentTopicDto.fromJS(item));
5885
+ }
5886
+ return result200;
5887
+ });
5888
+ }
5889
+ else if (status !== 200 && status !== 204) {
5890
+ return response.text().then((_responseText) => {
5891
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5892
+ });
5893
+ }
5894
+ return Promise.resolve(null);
5895
+ }
5896
+ createParentTopic(request) {
5897
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
5898
+ url_ = url_.replace(/[?&]$/, "");
5899
+ const content_ = JSON.stringify(request);
5900
+ let options_ = {
5901
+ body: content_,
5902
+ method: "POST",
5903
+ headers: {
5904
+ "Content-Type": "application/json",
5905
+ "Accept": "application/json"
5906
+ }
5907
+ };
5908
+ return this.transformOptions(options_).then(transformedOptions_ => {
5909
+ return this.http.fetch(url_, transformedOptions_);
5910
+ }).then((_response) => {
5911
+ return this.processCreateParentTopic(_response);
5912
+ });
5913
+ }
5914
+ processCreateParentTopic(response) {
5915
+ const status = response.status;
5916
+ let _headers = {};
5917
+ if (response.headers && response.headers.forEach) {
5918
+ response.headers.forEach((v, k) => _headers[k] = v);
5919
+ }
5920
+ ;
5921
+ if (status === 200) {
5922
+ return response.text().then((_responseText) => {
5923
+ let result200 = null;
5924
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5925
+ result200 = ParentTopicDto.fromJS(resultData200);
5926
+ return result200;
5927
+ });
5928
+ }
5929
+ else if (status !== 200 && status !== 204) {
5930
+ return response.text().then((_responseText) => {
5931
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5932
+ });
5933
+ }
5934
+ return Promise.resolve(null);
5935
+ }
5936
+ updateParentTopic(id, request) {
5937
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
5938
+ if (id === undefined || id === null)
5939
+ throw new Error("The parameter 'id' must be defined.");
5940
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
5941
+ url_ = url_.replace(/[?&]$/, "");
5942
+ const content_ = JSON.stringify(request);
5943
+ let options_ = {
5944
+ body: content_,
5945
+ method: "PUT",
5946
+ headers: {
5947
+ "Content-Type": "application/json",
5948
+ "Accept": "application/json"
5949
+ }
5950
+ };
5951
+ return this.transformOptions(options_).then(transformedOptions_ => {
5952
+ return this.http.fetch(url_, transformedOptions_);
5953
+ }).then((_response) => {
5954
+ return this.processUpdateParentTopic(_response);
5955
+ });
5956
+ }
5957
+ processUpdateParentTopic(response) {
5958
+ const status = response.status;
5959
+ let _headers = {};
5960
+ if (response.headers && response.headers.forEach) {
5961
+ response.headers.forEach((v, k) => _headers[k] = v);
5962
+ }
5963
+ ;
5964
+ if (status === 200) {
5965
+ return response.text().then((_responseText) => {
5966
+ let result200 = null;
5967
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5968
+ result200 = ParentTopicDto.fromJS(resultData200);
5969
+ return result200;
5970
+ });
5971
+ }
5972
+ else if (status !== 200 && status !== 204) {
5973
+ return response.text().then((_responseText) => {
5974
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5975
+ });
5976
+ }
5977
+ return Promise.resolve(null);
5978
+ }
5979
+ deleteParentTopic(id) {
5980
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
5981
+ if (id === undefined || id === null)
5982
+ throw new Error("The parameter 'id' must be defined.");
5983
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
5984
+ url_ = url_.replace(/[?&]$/, "");
5985
+ let options_ = {
5986
+ method: "DELETE",
5987
+ headers: {}
5988
+ };
5989
+ return this.transformOptions(options_).then(transformedOptions_ => {
5990
+ return this.http.fetch(url_, transformedOptions_);
5991
+ }).then((_response) => {
5992
+ return this.processDeleteParentTopic(_response);
5993
+ });
5994
+ }
5995
+ processDeleteParentTopic(response) {
5996
+ const status = response.status;
5997
+ let _headers = {};
5998
+ if (response.headers && response.headers.forEach) {
5999
+ response.headers.forEach((v, k) => _headers[k] = v);
6000
+ }
6001
+ ;
6002
+ if (status === 204) {
6003
+ return response.text().then((_responseText) => {
6004
+ return;
6005
+ });
6006
+ }
6007
+ else if (status !== 200 && status !== 204) {
6008
+ return response.text().then((_responseText) => {
6009
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6010
+ });
6011
+ }
6012
+ return Promise.resolve(null);
6013
+ }
5855
6014
  }
5856
6015
  export class DowntimeReasonsClient extends AuthorizedApiBase {
5857
6016
  constructor(configuration, baseUrl, http) {
@@ -21082,95 +21241,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21082
21241
  }
21083
21242
  return Promise.resolve(null);
21084
21243
  }
21085
- updateSchemaInstanceElements(id, schemaId, request) {
21086
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
21087
- if (id === undefined || id === null)
21088
- throw new Error("The parameter 'id' must be defined.");
21089
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
21090
- if (schemaId === undefined || schemaId === null)
21091
- throw new Error("The parameter 'schemaId' must be defined.");
21092
- url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
21093
- url_ = url_.replace(/[?&]$/, "");
21094
- const content_ = JSON.stringify(request);
21095
- let options_ = {
21096
- body: content_,
21097
- method: "PUT",
21098
- headers: {
21099
- "Content-Type": "application/json",
21100
- }
21101
- };
21102
- return this.transformOptions(options_).then(transformedOptions_ => {
21103
- return this.http.fetch(url_, transformedOptions_);
21104
- }).then((_response) => {
21105
- return this.processUpdateSchemaInstanceElements(_response);
21106
- });
21107
- }
21108
- processUpdateSchemaInstanceElements(response) {
21109
- const status = response.status;
21110
- let _headers = {};
21111
- if (response.headers && response.headers.forEach) {
21112
- response.headers.forEach((v, k) => _headers[k] = v);
21113
- }
21114
- ;
21115
- if (status === 200) {
21116
- return response.text().then((_responseText) => {
21117
- return;
21118
- });
21119
- }
21120
- else if (status !== 200 && status !== 204) {
21121
- return response.text().then((_responseText) => {
21122
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21123
- });
21124
- }
21125
- return Promise.resolve(null);
21126
- }
21127
- getSchemaInstanceElements(id, schemaId) {
21128
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
21129
- if (id === undefined || id === null)
21130
- throw new Error("The parameter 'id' must be defined.");
21131
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
21132
- if (schemaId === undefined || schemaId === null)
21133
- throw new Error("The parameter 'schemaId' must be defined.");
21134
- url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
21135
- url_ = url_.replace(/[?&]$/, "");
21136
- let options_ = {
21137
- method: "GET",
21138
- headers: {
21139
- "Accept": "application/json"
21140
- }
21141
- };
21142
- return this.transformOptions(options_).then(transformedOptions_ => {
21143
- return this.http.fetch(url_, transformedOptions_);
21144
- }).then((_response) => {
21145
- return this.processGetSchemaInstanceElements(_response);
21146
- });
21147
- }
21148
- processGetSchemaInstanceElements(response) {
21149
- const status = response.status;
21150
- let _headers = {};
21151
- if (response.headers && response.headers.forEach) {
21152
- response.headers.forEach((v, k) => _headers[k] = v);
21153
- }
21154
- ;
21155
- if (status === 200) {
21156
- return response.text().then((_responseText) => {
21157
- let result200 = null;
21158
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21159
- if (Array.isArray(resultData200)) {
21160
- result200 = [];
21161
- for (let item of resultData200)
21162
- result200.push(SchemaInstanceElementDto.fromJS(item));
21163
- }
21164
- return result200;
21165
- });
21166
- }
21167
- else if (status !== 200 && status !== 204) {
21168
- return response.text().then((_responseText) => {
21169
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21170
- });
21171
- }
21172
- return Promise.resolve(null);
21173
- }
21174
21244
  toggleSchemaInstanceElementDocumentedExternallyOverride(id, schemaId, elementId, tenantId) {
21175
21245
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements/{elementId}/toggle-override-documented-externally?";
21176
21246
  if (id === undefined || id === null)
@@ -23796,6 +23866,8 @@ export class WorkOrderDatapoint {
23796
23866
  this.subType = _data["subType"];
23797
23867
  this.startTime = _data["startTime"];
23798
23868
  this.endTime = _data["endTime"];
23869
+ this.partName = _data["partName"];
23870
+ this.partNumber = _data["partNumber"];
23799
23871
  if (_data["metaData"]) {
23800
23872
  this.metaData = {};
23801
23873
  for (let key in _data["metaData"]) {
@@ -23819,6 +23891,8 @@ export class WorkOrderDatapoint {
23819
23891
  data["subType"] = this.subType;
23820
23892
  data["startTime"] = this.startTime;
23821
23893
  data["endTime"] = this.endTime;
23894
+ data["partName"] = this.partName;
23895
+ data["partNumber"] = this.partNumber;
23822
23896
  if (this.metaData) {
23823
23897
  data["metaData"] = {};
23824
23898
  for (let key in this.metaData) {
@@ -29411,6 +29485,7 @@ export class DowntimeReasonDto {
29411
29485
  }
29412
29486
  if (!data) {
29413
29487
  this.machineTypes = [];
29488
+ this.machineGroups = [];
29414
29489
  }
29415
29490
  }
29416
29491
  init(_data) {
@@ -29422,8 +29497,15 @@ export class DowntimeReasonDto {
29422
29497
  for (let item of _data["machineTypes"])
29423
29498
  this.machineTypes.push(item);
29424
29499
  }
29500
+ if (Array.isArray(_data["machineGroups"])) {
29501
+ this.machineGroups = [];
29502
+ for (let item of _data["machineGroups"])
29503
+ this.machineGroups.push(item);
29504
+ }
29425
29505
  this.reasonType = _data["reasonType"];
29426
29506
  this.description = _data["description"];
29507
+ this.parentId = _data["parentId"];
29508
+ this.displayOrder = _data["displayOrder"];
29427
29509
  }
29428
29510
  }
29429
29511
  static fromJS(data) {
@@ -29441,8 +29523,15 @@ export class DowntimeReasonDto {
29441
29523
  for (let item of this.machineTypes)
29442
29524
  data["machineTypes"].push(item);
29443
29525
  }
29526
+ if (Array.isArray(this.machineGroups)) {
29527
+ data["machineGroups"] = [];
29528
+ for (let item of this.machineGroups)
29529
+ data["machineGroups"].push(item);
29530
+ }
29444
29531
  data["reasonType"] = this.reasonType;
29445
29532
  data["description"] = this.description;
29533
+ data["parentId"] = this.parentId;
29534
+ data["displayOrder"] = this.displayOrder;
29446
29535
  return data;
29447
29536
  }
29448
29537
  }
@@ -29466,8 +29555,15 @@ export class CreateDowntimeReason {
29466
29555
  for (let item of _data["machineTypes"])
29467
29556
  this.machineTypes.push(item);
29468
29557
  }
29558
+ if (Array.isArray(_data["machineGroups"])) {
29559
+ this.machineGroups = [];
29560
+ for (let item of _data["machineGroups"])
29561
+ this.machineGroups.push(item);
29562
+ }
29469
29563
  this.reasonType = _data["reasonType"];
29470
29564
  this.description = _data["description"];
29565
+ this.parentId = _data["parentId"];
29566
+ this.displayOrder = _data["displayOrder"];
29471
29567
  }
29472
29568
  }
29473
29569
  static fromJS(data) {
@@ -29484,8 +29580,15 @@ export class CreateDowntimeReason {
29484
29580
  for (let item of this.machineTypes)
29485
29581
  data["machineTypes"].push(item);
29486
29582
  }
29583
+ if (Array.isArray(this.machineGroups)) {
29584
+ data["machineGroups"] = [];
29585
+ for (let item of this.machineGroups)
29586
+ data["machineGroups"].push(item);
29587
+ }
29487
29588
  data["reasonType"] = this.reasonType;
29488
29589
  data["description"] = this.description;
29590
+ data["parentId"] = this.parentId;
29591
+ data["displayOrder"] = this.displayOrder;
29489
29592
  return data;
29490
29593
  }
29491
29594
  }
@@ -29509,8 +29612,15 @@ export class UpdateDowntimeReasonRequest {
29509
29612
  for (let item of _data["machineTypes"])
29510
29613
  this.machineTypes.push(item);
29511
29614
  }
29615
+ if (Array.isArray(_data["machineGroups"])) {
29616
+ this.machineGroups = [];
29617
+ for (let item of _data["machineGroups"])
29618
+ this.machineGroups.push(item);
29619
+ }
29512
29620
  this.reasonType = _data["reasonType"];
29513
29621
  this.description = _data["description"];
29622
+ this.parentId = _data["parentId"];
29623
+ this.displayOrder = _data["displayOrder"];
29514
29624
  }
29515
29625
  }
29516
29626
  static fromJS(data) {
@@ -29527,8 +29637,15 @@ export class UpdateDowntimeReasonRequest {
29527
29637
  for (let item of this.machineTypes)
29528
29638
  data["machineTypes"].push(item);
29529
29639
  }
29640
+ if (Array.isArray(this.machineGroups)) {
29641
+ data["machineGroups"] = [];
29642
+ for (let item of this.machineGroups)
29643
+ data["machineGroups"].push(item);
29644
+ }
29530
29645
  data["reasonType"] = this.reasonType;
29531
29646
  data["description"] = this.description;
29647
+ data["parentId"] = this.parentId;
29648
+ data["displayOrder"] = this.displayOrder;
29532
29649
  return data;
29533
29650
  }
29534
29651
  }
@@ -29558,6 +29675,108 @@ export class MachineTypeDto {
29558
29675
  return data;
29559
29676
  }
29560
29677
  }
29678
+ export class ParentTopicDto {
29679
+ constructor(data) {
29680
+ if (data) {
29681
+ for (var property in data) {
29682
+ if (data.hasOwnProperty(property))
29683
+ this[property] = data[property];
29684
+ }
29685
+ }
29686
+ }
29687
+ init(_data) {
29688
+ if (_data) {
29689
+ this.id = _data["id"];
29690
+ this.name = _data["name"];
29691
+ this.description = _data["description"];
29692
+ this.displayOrder = _data["displayOrder"];
29693
+ if (Array.isArray(_data["subReasons"])) {
29694
+ this.subReasons = [];
29695
+ for (let item of _data["subReasons"])
29696
+ this.subReasons.push(DowntimeReasonDto.fromJS(item));
29697
+ }
29698
+ }
29699
+ }
29700
+ static fromJS(data) {
29701
+ data = typeof data === 'object' ? data : {};
29702
+ let result = new ParentTopicDto();
29703
+ result.init(data);
29704
+ return result;
29705
+ }
29706
+ toJSON(data) {
29707
+ data = typeof data === 'object' ? data : {};
29708
+ data["id"] = this.id;
29709
+ data["name"] = this.name;
29710
+ data["description"] = this.description;
29711
+ data["displayOrder"] = this.displayOrder;
29712
+ if (Array.isArray(this.subReasons)) {
29713
+ data["subReasons"] = [];
29714
+ for (let item of this.subReasons)
29715
+ data["subReasons"].push(item.toJSON());
29716
+ }
29717
+ return data;
29718
+ }
29719
+ }
29720
+ export class CreateParentTopicRequest {
29721
+ constructor(data) {
29722
+ if (data) {
29723
+ for (var property in data) {
29724
+ if (data.hasOwnProperty(property))
29725
+ this[property] = data[property];
29726
+ }
29727
+ }
29728
+ }
29729
+ init(_data) {
29730
+ if (_data) {
29731
+ this.name = _data["name"];
29732
+ this.description = _data["description"];
29733
+ this.displayOrder = _data["displayOrder"];
29734
+ }
29735
+ }
29736
+ static fromJS(data) {
29737
+ data = typeof data === 'object' ? data : {};
29738
+ let result = new CreateParentTopicRequest();
29739
+ result.init(data);
29740
+ return result;
29741
+ }
29742
+ toJSON(data) {
29743
+ data = typeof data === 'object' ? data : {};
29744
+ data["name"] = this.name;
29745
+ data["description"] = this.description;
29746
+ data["displayOrder"] = this.displayOrder;
29747
+ return data;
29748
+ }
29749
+ }
29750
+ export class UpdateParentTopicRequest {
29751
+ constructor(data) {
29752
+ if (data) {
29753
+ for (var property in data) {
29754
+ if (data.hasOwnProperty(property))
29755
+ this[property] = data[property];
29756
+ }
29757
+ }
29758
+ }
29759
+ init(_data) {
29760
+ if (_data) {
29761
+ this.name = _data["name"];
29762
+ this.description = _data["description"];
29763
+ this.displayOrder = _data["displayOrder"];
29764
+ }
29765
+ }
29766
+ static fromJS(data) {
29767
+ data = typeof data === 'object' ? data : {};
29768
+ let result = new UpdateParentTopicRequest();
29769
+ result.init(data);
29770
+ return result;
29771
+ }
29772
+ toJSON(data) {
29773
+ data = typeof data === 'object' ? data : {};
29774
+ data["name"] = this.name;
29775
+ data["description"] = this.description;
29776
+ data["displayOrder"] = this.displayOrder;
29777
+ return data;
29778
+ }
29779
+ }
29561
29780
  export class CreateDowntimePeriodReason {
29562
29781
  constructor(data) {
29563
29782
  if (data) {
@@ -45553,72 +45772,6 @@ export class ExportDimensionReportRequest {
45553
45772
  return data;
45554
45773
  }
45555
45774
  }
45556
- export class UpdateSchemaInstanceElementsRequest {
45557
- constructor(data) {
45558
- if (data) {
45559
- for (var property in data) {
45560
- if (data.hasOwnProperty(property))
45561
- this[property] = data[property];
45562
- }
45563
- }
45564
- }
45565
- init(_data) {
45566
- if (_data) {
45567
- if (Array.isArray(_data["elements"])) {
45568
- this.elements = [];
45569
- for (let item of _data["elements"])
45570
- this.elements.push(SchemaInstanceElementDto.fromJS(item));
45571
- }
45572
- }
45573
- }
45574
- static fromJS(data) {
45575
- data = typeof data === 'object' ? data : {};
45576
- let result = new UpdateSchemaInstanceElementsRequest();
45577
- result.init(data);
45578
- return result;
45579
- }
45580
- toJSON(data) {
45581
- data = typeof data === 'object' ? data : {};
45582
- if (Array.isArray(this.elements)) {
45583
- data["elements"] = [];
45584
- for (let item of this.elements)
45585
- data["elements"].push(item.toJSON());
45586
- }
45587
- return data;
45588
- }
45589
- }
45590
- export class SchemaInstanceElementDto {
45591
- constructor(data) {
45592
- if (data) {
45593
- for (var property in data) {
45594
- if (data.hasOwnProperty(property))
45595
- this[property] = data[property];
45596
- }
45597
- }
45598
- }
45599
- init(_data) {
45600
- if (_data) {
45601
- this.elementId = _data["elementId"];
45602
- this.balloonId = _data["balloonId"];
45603
- this.reference = _data["reference"];
45604
- this.disabled = _data["disabled"];
45605
- }
45606
- }
45607
- static fromJS(data) {
45608
- data = typeof data === 'object' ? data : {};
45609
- let result = new SchemaInstanceElementDto();
45610
- result.init(data);
45611
- return result;
45612
- }
45613
- toJSON(data) {
45614
- data = typeof data === 'object' ? data : {};
45615
- data["elementId"] = this.elementId;
45616
- data["balloonId"] = this.balloonId;
45617
- data["reference"] = this.reference;
45618
- data["disabled"] = this.disabled;
45619
- return data;
45620
- }
45621
- }
45622
45775
  export class ProductionCompanyDto {
45623
45776
  constructor(data) {
45624
45777
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250904.0.12514",
3
+ "version": "20250910.0.12568",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",