@ignos/api-client 20240515.0.9279 → 20240524.0.9327

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.
@@ -5798,11 +5798,11 @@ export class LocateTrackingClient extends AuthorizedApiBase {
5798
5798
  this.http = http ? http : window;
5799
5799
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
5800
5800
  }
5801
- listTrackingHistory(workOrderId) {
5802
- let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
5803
- if (workOrderId === undefined || workOrderId === null)
5804
- throw new Error("The parameter 'workOrderId' must be defined.");
5805
- url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
5801
+ listTrackingHistory(trackingId) {
5802
+ let url_ = this.baseUrl + "/locate/tracking/{trackingId}";
5803
+ if (trackingId === undefined || trackingId === null)
5804
+ throw new Error("The parameter 'trackingId' must be defined.");
5805
+ url_ = url_.replace("{trackingId}", encodeURIComponent("" + trackingId));
5806
5806
  url_ = url_.replace(/[?&]$/, "");
5807
5807
  let options_ = {
5808
5808
  method: "GET",
@@ -5838,28 +5838,25 @@ export class LocateTrackingClient extends AuthorizedApiBase {
5838
5838
  }
5839
5839
  return Promise.resolve(null);
5840
5840
  }
5841
- createTrackingEvent(workOrderId, locateTrackingUpdate) {
5842
- let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
5841
+ listWorkOrderTrackingHistory(workOrderId) {
5842
+ let url_ = this.baseUrl + "/locate/tracking/workorder/{workOrderId}";
5843
5843
  if (workOrderId === undefined || workOrderId === null)
5844
5844
  throw new Error("The parameter 'workOrderId' must be defined.");
5845
5845
  url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
5846
5846
  url_ = url_.replace(/[?&]$/, "");
5847
- const content_ = JSON.stringify(locateTrackingUpdate);
5848
5847
  let options_ = {
5849
- body: content_,
5850
- method: "POST",
5848
+ method: "GET",
5851
5849
  headers: {
5852
- "Content-Type": "application/json",
5853
5850
  "Accept": "application/json"
5854
5851
  }
5855
5852
  };
5856
5853
  return this.transformOptions(options_).then(transformedOptions_ => {
5857
5854
  return this.http.fetch(url_, transformedOptions_);
5858
5855
  }).then((_response) => {
5859
- return this.processCreateTrackingEvent(_response);
5856
+ return this.processListWorkOrderTrackingHistory(_response);
5860
5857
  });
5861
5858
  }
5862
- processCreateTrackingEvent(response) {
5859
+ processListWorkOrderTrackingHistory(response) {
5863
5860
  const status = response.status;
5864
5861
  let _headers = {};
5865
5862
  if (response.headers && response.headers.forEach) {
@@ -5870,7 +5867,7 @@ export class LocateTrackingClient extends AuthorizedApiBase {
5870
5867
  return response.text().then((_responseText) => {
5871
5868
  let result200 = null;
5872
5869
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5873
- result200 = TrackingHistoryDto.fromJS(resultData200);
5870
+ result200 = TrackingWorkOrderDto.fromJS(resultData200);
5874
5871
  return result200;
5875
5872
  });
5876
5873
  }
@@ -5881,43 +5878,105 @@ export class LocateTrackingClient extends AuthorizedApiBase {
5881
5878
  }
5882
5879
  return Promise.resolve(null);
5883
5880
  }
5884
- updateTrackingEvent(workOrderId, trackingEventId, locateTrackingUpdate) {
5885
- let url_ = this.baseUrl + "/locate/tracking/{workOrderId}/{trackingEventId}";
5886
- if (workOrderId === undefined || workOrderId === null)
5887
- throw new Error("The parameter 'workOrderId' must be defined.");
5888
- url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
5889
- if (trackingEventId === undefined || trackingEventId === null)
5890
- throw new Error("The parameter 'trackingEventId' must be defined.");
5891
- url_ = url_.replace("{trackingEventId}", encodeURIComponent("" + trackingEventId));
5881
+ createTrackingEvents(locateTrackingUpdates) {
5882
+ let url_ = this.baseUrl + "/locate/tracking/event";
5892
5883
  url_ = url_.replace(/[?&]$/, "");
5893
- const content_ = JSON.stringify(locateTrackingUpdate);
5884
+ const content_ = JSON.stringify(locateTrackingUpdates);
5894
5885
  let options_ = {
5895
5886
  body: content_,
5896
- method: "PUT",
5887
+ method: "POST",
5897
5888
  headers: {
5898
5889
  "Content-Type": "application/json",
5899
- "Accept": "application/json"
5900
5890
  }
5901
5891
  };
5902
5892
  return this.transformOptions(options_).then(transformedOptions_ => {
5903
5893
  return this.http.fetch(url_, transformedOptions_);
5904
5894
  }).then((_response) => {
5905
- return this.processUpdateTrackingEvent(_response);
5895
+ return this.processCreateTrackingEvents(_response);
5906
5896
  });
5907
5897
  }
5908
- processUpdateTrackingEvent(response) {
5898
+ processCreateTrackingEvents(response) {
5909
5899
  const status = response.status;
5910
5900
  let _headers = {};
5911
5901
  if (response.headers && response.headers.forEach) {
5912
5902
  response.headers.forEach((v, k) => _headers[k] = v);
5913
5903
  }
5914
5904
  ;
5915
- if (status === 200) {
5905
+ if (status === 204) {
5916
5906
  return response.text().then((_responseText) => {
5917
- let result200 = null;
5918
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5919
- result200 = TrackingHistoryDto.fromJS(resultData200);
5920
- return result200;
5907
+ return;
5908
+ });
5909
+ }
5910
+ else if (status !== 200 && status !== 204) {
5911
+ return response.text().then((_responseText) => {
5912
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5913
+ });
5914
+ }
5915
+ return Promise.resolve(null);
5916
+ }
5917
+ createTrackingHistory(locateTrackingUpdates) {
5918
+ let url_ = this.baseUrl + "/locate/tracking/history";
5919
+ url_ = url_.replace(/[?&]$/, "");
5920
+ const content_ = JSON.stringify(locateTrackingUpdates);
5921
+ let options_ = {
5922
+ body: content_,
5923
+ method: "POST",
5924
+ headers: {
5925
+ "Content-Type": "application/json",
5926
+ }
5927
+ };
5928
+ return this.transformOptions(options_).then(transformedOptions_ => {
5929
+ return this.http.fetch(url_, transformedOptions_);
5930
+ }).then((_response) => {
5931
+ return this.processCreateTrackingHistory(_response);
5932
+ });
5933
+ }
5934
+ processCreateTrackingHistory(response) {
5935
+ const status = response.status;
5936
+ let _headers = {};
5937
+ if (response.headers && response.headers.forEach) {
5938
+ response.headers.forEach((v, k) => _headers[k] = v);
5939
+ }
5940
+ ;
5941
+ if (status === 204) {
5942
+ return response.text().then((_responseText) => {
5943
+ return;
5944
+ });
5945
+ }
5946
+ else if (status !== 200 && status !== 204) {
5947
+ return response.text().then((_responseText) => {
5948
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5949
+ });
5950
+ }
5951
+ return Promise.resolve(null);
5952
+ }
5953
+ deleteTrackingHistory(locateTrackingUpdates) {
5954
+ let url_ = this.baseUrl + "/locate/tracking/history";
5955
+ url_ = url_.replace(/[?&]$/, "");
5956
+ const content_ = JSON.stringify(locateTrackingUpdates);
5957
+ let options_ = {
5958
+ body: content_,
5959
+ method: "DELETE",
5960
+ headers: {
5961
+ "Content-Type": "application/json",
5962
+ }
5963
+ };
5964
+ return this.transformOptions(options_).then(transformedOptions_ => {
5965
+ return this.http.fetch(url_, transformedOptions_);
5966
+ }).then((_response) => {
5967
+ return this.processDeleteTrackingHistory(_response);
5968
+ });
5969
+ }
5970
+ processDeleteTrackingHistory(response) {
5971
+ const status = response.status;
5972
+ let _headers = {};
5973
+ if (response.headers && response.headers.forEach) {
5974
+ response.headers.forEach((v, k) => _headers[k] = v);
5975
+ }
5976
+ ;
5977
+ if (status === 204) {
5978
+ return response.text().then((_responseText) => {
5979
+ return;
5921
5980
  });
5922
5981
  }
5923
5982
  else if (status !== 200 && status !== 204) {
@@ -22373,6 +22432,7 @@ export class CreateMeasuringToolRequest {
22373
22432
  this.precision = _data["precision"];
22374
22433
  this.uploadKey = _data["uploadKey"];
22375
22434
  this.filename = _data["filename"];
22435
+ this.initialCalibrationDate = _data["initialCalibrationDate"] ? new Date(_data["initialCalibrationDate"].toString()) : undefined;
22376
22436
  }
22377
22437
  }
22378
22438
  static fromJS(data) {
@@ -22398,6 +22458,7 @@ export class CreateMeasuringToolRequest {
22398
22458
  data["precision"] = this.precision;
22399
22459
  data["uploadKey"] = this.uploadKey;
22400
22460
  data["filename"] = this.filename;
22461
+ data["initialCalibrationDate"] = this.initialCalibrationDate ? this.initialCalibrationDate.toISOString() : undefined;
22401
22462
  return data;
22402
22463
  }
22403
22464
  }
@@ -24008,6 +24069,7 @@ export class MachineUtilizationV2Dto {
24008
24069
  }
24009
24070
  init(_data) {
24010
24071
  if (_data) {
24072
+ this.id = _data["id"];
24011
24073
  this.name = _data["name"];
24012
24074
  this.description = _data["description"];
24013
24075
  this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
@@ -24021,6 +24083,7 @@ export class MachineUtilizationV2Dto {
24021
24083
  }
24022
24084
  toJSON(data) {
24023
24085
  data = typeof data === 'object' ? data : {};
24086
+ data["id"] = this.id;
24024
24087
  data["name"] = this.name;
24025
24088
  data["description"] = this.description;
24026
24089
  data["utilization"] = this.utilization ? this.utilization.toJSON() : undefined;
@@ -24432,18 +24495,18 @@ export class TrackingHistoryDto {
24432
24495
  }
24433
24496
  if (!data) {
24434
24497
  this.trackingEvents = [];
24435
- this.part = new PartDto();
24436
24498
  }
24437
24499
  }
24438
24500
  init(_data) {
24439
24501
  if (_data) {
24502
+ this.trackingId = _data["trackingId"];
24503
+ this.palletNumber = _data["palletNumber"];
24440
24504
  this.workOrderId = _data["workOrderId"];
24441
24505
  if (Array.isArray(_data["trackingEvents"])) {
24442
24506
  this.trackingEvents = [];
24443
24507
  for (let item of _data["trackingEvents"])
24444
24508
  this.trackingEvents.push(TrackingEventDto.fromJS(item));
24445
24509
  }
24446
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
24447
24510
  }
24448
24511
  }
24449
24512
  static fromJS(data) {
@@ -24454,13 +24517,14 @@ export class TrackingHistoryDto {
24454
24517
  }
24455
24518
  toJSON(data) {
24456
24519
  data = typeof data === 'object' ? data : {};
24520
+ data["trackingId"] = this.trackingId;
24521
+ data["palletNumber"] = this.palletNumber;
24457
24522
  data["workOrderId"] = this.workOrderId;
24458
24523
  if (Array.isArray(this.trackingEvents)) {
24459
24524
  data["trackingEvents"] = [];
24460
24525
  for (let item of this.trackingEvents)
24461
24526
  data["trackingEvents"].push(item.toJSON());
24462
24527
  }
24463
- data["part"] = this.part ? this.part.toJSON() : undefined;
24464
24528
  return data;
24465
24529
  }
24466
24530
  }
@@ -24481,12 +24545,10 @@ export class TrackingEventDto {
24481
24545
  this.id = _data["id"];
24482
24546
  this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
24483
24547
  this.createdBy = _data["createdBy"];
24484
- this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : undefined;
24485
- this.updatedBy = _data["updatedBy"];
24486
24548
  this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : new LocationDto();
24487
- this.active = _data["active"];
24488
- this.comments = _data["comments"];
24489
- this.pallets = _data["pallets"];
24549
+ this.status = _data["status"];
24550
+ this.bookingId = _data["bookingId"];
24551
+ this.comment = _data["comment"];
24490
24552
  }
24491
24553
  }
24492
24554
  static fromJS(data) {
@@ -24500,12 +24562,52 @@ export class TrackingEventDto {
24500
24562
  data["id"] = this.id;
24501
24563
  data["created"] = this.created ? this.created.toISOString() : undefined;
24502
24564
  data["createdBy"] = this.createdBy;
24503
- data["updated"] = this.updated ? this.updated.toISOString() : undefined;
24504
- data["updatedBy"] = this.updatedBy;
24505
24565
  data["location"] = this.location ? this.location.toJSON() : undefined;
24506
- data["active"] = this.active;
24507
- data["comments"] = this.comments;
24508
- data["pallets"] = this.pallets;
24566
+ data["status"] = this.status;
24567
+ data["bookingId"] = this.bookingId;
24568
+ data["comment"] = this.comment;
24569
+ return data;
24570
+ }
24571
+ }
24572
+ export class TrackingWorkOrderDto {
24573
+ constructor(data) {
24574
+ if (data) {
24575
+ for (var property in data) {
24576
+ if (data.hasOwnProperty(property))
24577
+ this[property] = data[property];
24578
+ }
24579
+ }
24580
+ if (!data) {
24581
+ this.part = new PartDto();
24582
+ this.trackingHistory = [];
24583
+ }
24584
+ }
24585
+ init(_data) {
24586
+ if (_data) {
24587
+ this.workOrderId = _data["workOrderId"];
24588
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
24589
+ if (Array.isArray(_data["trackingHistory"])) {
24590
+ this.trackingHistory = [];
24591
+ for (let item of _data["trackingHistory"])
24592
+ this.trackingHistory.push(TrackingHistoryDto.fromJS(item));
24593
+ }
24594
+ }
24595
+ }
24596
+ static fromJS(data) {
24597
+ data = typeof data === 'object' ? data : {};
24598
+ let result = new TrackingWorkOrderDto();
24599
+ result.init(data);
24600
+ return result;
24601
+ }
24602
+ toJSON(data) {
24603
+ data = typeof data === 'object' ? data : {};
24604
+ data["workOrderId"] = this.workOrderId;
24605
+ data["part"] = this.part ? this.part.toJSON() : undefined;
24606
+ if (Array.isArray(this.trackingHistory)) {
24607
+ data["trackingHistory"] = [];
24608
+ for (let item of this.trackingHistory)
24609
+ data["trackingHistory"].push(item.toJSON());
24610
+ }
24509
24611
  return data;
24510
24612
  }
24511
24613
  }
@@ -24520,9 +24622,9 @@ export class TrackingUpdateDto {
24520
24622
  }
24521
24623
  init(_data) {
24522
24624
  if (_data) {
24625
+ this.trackingId = _data["trackingId"];
24523
24626
  this.locationId = _data["locationId"];
24524
- this.comments = _data["comments"];
24525
- this.pallets = _data["pallets"];
24627
+ this.comment = _data["comment"];
24526
24628
  }
24527
24629
  }
24528
24630
  static fromJS(data) {
@@ -24533,9 +24635,39 @@ export class TrackingUpdateDto {
24533
24635
  }
24534
24636
  toJSON(data) {
24535
24637
  data = typeof data === 'object' ? data : {};
24638
+ data["trackingId"] = this.trackingId;
24536
24639
  data["locationId"] = this.locationId;
24537
- data["comments"] = this.comments;
24538
- data["pallets"] = this.pallets;
24640
+ data["comment"] = this.comment;
24641
+ return data;
24642
+ }
24643
+ }
24644
+ export class TrackingHistoryUpdateDto {
24645
+ constructor(data) {
24646
+ if (data) {
24647
+ for (var property in data) {
24648
+ if (data.hasOwnProperty(property))
24649
+ this[property] = data[property];
24650
+ }
24651
+ }
24652
+ }
24653
+ init(_data) {
24654
+ if (_data) {
24655
+ this.workOrderId = _data["workOrderId"];
24656
+ this.locationId = _data["locationId"];
24657
+ this.comment = _data["comment"];
24658
+ }
24659
+ }
24660
+ static fromJS(data) {
24661
+ data = typeof data === 'object' ? data : {};
24662
+ let result = new TrackingHistoryUpdateDto();
24663
+ result.init(data);
24664
+ return result;
24665
+ }
24666
+ toJSON(data) {
24667
+ data = typeof data === 'object' ? data : {};
24668
+ data["workOrderId"] = this.workOrderId;
24669
+ data["locationId"] = this.locationId;
24670
+ data["comment"] = this.comment;
24539
24671
  return data;
24540
24672
  }
24541
24673
  }
@@ -27048,6 +27180,7 @@ export class CncToolDto {
27048
27180
  this.diameter = _data["diameter"];
27049
27181
  this.grade = _data["grade"];
27050
27182
  this.radius = _data["radius"];
27183
+ this.chamfer = _data["chamfer"];
27051
27184
  this.width = _data["width"];
27052
27185
  this.pitch = _data["pitch"];
27053
27186
  this.length = _data["length"];
@@ -27086,6 +27219,7 @@ export class CncToolDto {
27086
27219
  data["diameter"] = this.diameter;
27087
27220
  data["grade"] = this.grade;
27088
27221
  data["radius"] = this.radius;
27222
+ data["chamfer"] = this.chamfer;
27089
27223
  data["width"] = this.width;
27090
27224
  data["pitch"] = this.pitch;
27091
27225
  data["length"] = this.length;
@@ -27345,6 +27479,8 @@ export class CncToolSubTypeDto {
27345
27479
  this.gradeHelperText = _data["gradeHelperText"];
27346
27480
  this.radius = _data["radius"];
27347
27481
  this.radiusHelperText = _data["radiusHelperText"];
27482
+ this.chamfer = _data["chamfer"];
27483
+ this.chamferHelperText = _data["chamferHelperText"];
27348
27484
  this.width = _data["width"];
27349
27485
  this.widthHelperText = _data["widthHelperText"];
27350
27486
  this.pitch = _data["pitch"];
@@ -27388,6 +27524,8 @@ export class CncToolSubTypeDto {
27388
27524
  data["gradeHelperText"] = this.gradeHelperText;
27389
27525
  data["radius"] = this.radius;
27390
27526
  data["radiusHelperText"] = this.radiusHelperText;
27527
+ data["chamfer"] = this.chamfer;
27528
+ data["chamferHelperText"] = this.chamferHelperText;
27391
27529
  data["width"] = this.width;
27392
27530
  data["widthHelperText"] = this.widthHelperText;
27393
27531
  data["pitch"] = this.pitch;
@@ -27431,6 +27569,7 @@ export class CreateCncMachineOperationToolRequest {
27431
27569
  this.diameter = _data["diameter"];
27432
27570
  this.grade = _data["grade"];
27433
27571
  this.radius = _data["radius"];
27572
+ this.chamfer = _data["chamfer"];
27434
27573
  this.width = _data["width"];
27435
27574
  this.pitch = _data["pitch"];
27436
27575
  this.length = _data["length"];
@@ -27460,6 +27599,7 @@ export class CreateCncMachineOperationToolRequest {
27460
27599
  data["diameter"] = this.diameter;
27461
27600
  data["grade"] = this.grade;
27462
27601
  data["radius"] = this.radius;
27602
+ data["chamfer"] = this.chamfer;
27463
27603
  data["width"] = this.width;
27464
27604
  data["pitch"] = this.pitch;
27465
27605
  data["length"] = this.length;
@@ -27493,6 +27633,7 @@ export class UpdateCncMachineOperationToolRequest {
27493
27633
  this.diameter = _data["diameter"];
27494
27634
  this.grade = _data["grade"];
27495
27635
  this.radius = _data["radius"];
27636
+ this.chamfer = _data["chamfer"];
27496
27637
  this.width = _data["width"];
27497
27638
  this.pitch = _data["pitch"];
27498
27639
  this.length = _data["length"];
@@ -27522,6 +27663,7 @@ export class UpdateCncMachineOperationToolRequest {
27522
27663
  data["diameter"] = this.diameter;
27523
27664
  data["grade"] = this.grade;
27524
27665
  data["radius"] = this.radius;
27666
+ data["chamfer"] = this.chamfer;
27525
27667
  data["width"] = this.width;
27526
27668
  data["pitch"] = this.pitch;
27527
27669
  data["length"] = this.length;
@@ -27583,6 +27725,7 @@ export class UpdateCncMachineToolRequest {
27583
27725
  this.diameter = _data["diameter"];
27584
27726
  this.grade = _data["grade"];
27585
27727
  this.radius = _data["radius"];
27728
+ this.chamfer = _data["chamfer"];
27586
27729
  this.width = _data["width"];
27587
27730
  this.pitch = _data["pitch"];
27588
27731
  this.length = _data["length"];
@@ -27612,6 +27755,7 @@ export class UpdateCncMachineToolRequest {
27612
27755
  data["diameter"] = this.diameter;
27613
27756
  data["grade"] = this.grade;
27614
27757
  data["radius"] = this.radius;
27758
+ data["chamfer"] = this.chamfer;
27615
27759
  data["width"] = this.width;
27616
27760
  data["pitch"] = this.pitch;
27617
27761
  data["length"] = this.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240515.0.9279",
3
+ "version": "20240524.0.9327",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",