@ignos/api-client 20251013.0.12851-alpha → 20251021.0.12920

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.
@@ -14603,6 +14603,47 @@ export class MoveBookingClient extends AuthorizedApiBase {
14603
14603
  }
14604
14604
  return Promise.resolve(null);
14605
14605
  }
14606
+ exportBookings(includeTracking) {
14607
+ let url_ = this.baseUrl + "/move/booking/export?";
14608
+ if (includeTracking === null)
14609
+ throw new globalThis.Error("The parameter 'includeTracking' cannot be null.");
14610
+ else if (includeTracking !== undefined)
14611
+ url_ += "includeTracking=" + encodeURIComponent("" + includeTracking) + "&";
14612
+ url_ = url_.replace(/[?&]$/, "");
14613
+ let options_ = {
14614
+ method: "POST",
14615
+ headers: {
14616
+ "Accept": "application/json"
14617
+ }
14618
+ };
14619
+ return this.transformOptions(options_).then(transformedOptions_ => {
14620
+ return this.http.fetch(url_, transformedOptions_);
14621
+ }).then((_response) => {
14622
+ return this.processExportBookings(_response);
14623
+ });
14624
+ }
14625
+ processExportBookings(response) {
14626
+ const status = response.status;
14627
+ let _headers = {};
14628
+ if (response.headers && response.headers.forEach) {
14629
+ response.headers.forEach((v, k) => _headers[k] = v);
14630
+ }
14631
+ ;
14632
+ if (status === 200) {
14633
+ return response.text().then((_responseText) => {
14634
+ let result200 = null;
14635
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14636
+ result200 = DownloadDto.fromJS(resultData200);
14637
+ return result200;
14638
+ });
14639
+ }
14640
+ else if (status !== 200 && status !== 204) {
14641
+ return response.text().then((_responseText) => {
14642
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14643
+ });
14644
+ }
14645
+ return Promise.resolve(null);
14646
+ }
14606
14647
  }
14607
14648
  export class MoveLocationsClient extends AuthorizedApiBase {
14608
14649
  constructor(configuration, baseUrl, http) {
@@ -15559,6 +15600,43 @@ export class MoveTrackingClient extends AuthorizedApiBase {
15559
15600
  }
15560
15601
  return Promise.resolve(null);
15561
15602
  }
15603
+ exportParcels() {
15604
+ let url_ = this.baseUrl + "/move/tracking/export";
15605
+ url_ = url_.replace(/[?&]$/, "");
15606
+ let options_ = {
15607
+ method: "POST",
15608
+ headers: {
15609
+ "Accept": "application/json"
15610
+ }
15611
+ };
15612
+ return this.transformOptions(options_).then(transformedOptions_ => {
15613
+ return this.http.fetch(url_, transformedOptions_);
15614
+ }).then((_response) => {
15615
+ return this.processExportParcels(_response);
15616
+ });
15617
+ }
15618
+ processExportParcels(response) {
15619
+ const status = response.status;
15620
+ let _headers = {};
15621
+ if (response.headers && response.headers.forEach) {
15622
+ response.headers.forEach((v, k) => _headers[k] = v);
15623
+ }
15624
+ ;
15625
+ if (status === 200) {
15626
+ return response.text().then((_responseText) => {
15627
+ let result200 = null;
15628
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15629
+ result200 = DownloadDto.fromJS(resultData200);
15630
+ return result200;
15631
+ });
15632
+ }
15633
+ else if (status !== 200 && status !== 204) {
15634
+ return response.text().then((_responseText) => {
15635
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15636
+ });
15637
+ }
15638
+ return Promise.resolve(null);
15639
+ }
15562
15640
  }
15563
15641
  export class ParcelCategoryClient extends AuthorizedApiBase {
15564
15642
  constructor(configuration, baseUrl, http) {
@@ -37574,6 +37652,7 @@ export class BookingItemDto {
37574
37652
  this.palletNumber = _data["palletNumber"];
37575
37653
  this.comment = _data["comment"];
37576
37654
  this.category = _data["category"];
37655
+ this.trackingHistory = _data["trackingHistory"] ? TrackingHistoryDto.fromJS(_data["trackingHistory"]) : undefined;
37577
37656
  }
37578
37657
  }
37579
37658
  static fromJS(data) {
@@ -37588,6 +37667,104 @@ export class BookingItemDto {
37588
37667
  data["palletNumber"] = this.palletNumber;
37589
37668
  data["comment"] = this.comment;
37590
37669
  data["category"] = this.category;
37670
+ data["trackingHistory"] = this.trackingHistory ? this.trackingHistory.toJSON() : undefined;
37671
+ return data;
37672
+ }
37673
+ }
37674
+ export class TrackingHistoryDto {
37675
+ constructor(data) {
37676
+ if (data) {
37677
+ for (var property in data) {
37678
+ if (data.hasOwnProperty(property))
37679
+ this[property] = data[property];
37680
+ }
37681
+ }
37682
+ if (!data) {
37683
+ this.trackingEvents = [];
37684
+ }
37685
+ }
37686
+ init(_data) {
37687
+ if (_data) {
37688
+ this.trackingId = _data["trackingId"];
37689
+ this.palletNumber = _data["palletNumber"];
37690
+ this.activeBooking = _data["activeBooking"];
37691
+ this.materialOperation = _data["materialOperation"];
37692
+ this.materialLine = _data["materialLine"];
37693
+ this.materialPartName = _data["materialPartName"];
37694
+ this.materialPartNumber = _data["materialPartNumber"];
37695
+ this.category = _data["category"];
37696
+ this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
37697
+ if (Array.isArray(_data["trackingEvents"])) {
37698
+ this.trackingEvents = [];
37699
+ for (let item of _data["trackingEvents"])
37700
+ this.trackingEvents.push(TrackingEventDto.fromJS(item));
37701
+ }
37702
+ this.suggestions = _data["suggestions"] ? SuggestionsItemDto.fromJS(_data["suggestions"]) : undefined;
37703
+ }
37704
+ }
37705
+ static fromJS(data) {
37706
+ data = typeof data === 'object' ? data : {};
37707
+ let result = new TrackingHistoryDto();
37708
+ result.init(data);
37709
+ return result;
37710
+ }
37711
+ toJSON(data) {
37712
+ data = typeof data === 'object' ? data : {};
37713
+ data["trackingId"] = this.trackingId;
37714
+ data["palletNumber"] = this.palletNumber;
37715
+ data["activeBooking"] = this.activeBooking;
37716
+ data["materialOperation"] = this.materialOperation;
37717
+ data["materialLine"] = this.materialLine;
37718
+ data["materialPartName"] = this.materialPartName;
37719
+ data["materialPartNumber"] = this.materialPartNumber;
37720
+ data["category"] = this.category;
37721
+ data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
37722
+ if (Array.isArray(this.trackingEvents)) {
37723
+ data["trackingEvents"] = [];
37724
+ for (let item of this.trackingEvents)
37725
+ data["trackingEvents"].push(item ? item.toJSON() : undefined);
37726
+ }
37727
+ data["suggestions"] = this.suggestions ? this.suggestions.toJSON() : undefined;
37728
+ return data;
37729
+ }
37730
+ }
37731
+ export class TrackingEventDto {
37732
+ constructor(data) {
37733
+ if (data) {
37734
+ for (var property in data) {
37735
+ if (data.hasOwnProperty(property))
37736
+ this[property] = data[property];
37737
+ }
37738
+ }
37739
+ }
37740
+ init(_data) {
37741
+ if (_data) {
37742
+ this.id = _data["id"];
37743
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
37744
+ this.createdBy = _data["createdBy"];
37745
+ this.createdById = _data["createdById"];
37746
+ this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : undefined;
37747
+ this.status = _data["status"];
37748
+ this.bookingId = _data["bookingId"];
37749
+ this.comment = _data["comment"];
37750
+ }
37751
+ }
37752
+ static fromJS(data) {
37753
+ data = typeof data === 'object' ? data : {};
37754
+ let result = new TrackingEventDto();
37755
+ result.init(data);
37756
+ return result;
37757
+ }
37758
+ toJSON(data) {
37759
+ data = typeof data === 'object' ? data : {};
37760
+ data["id"] = this.id;
37761
+ data["created"] = this.created ? this.created.toISOString() : undefined;
37762
+ data["createdBy"] = this.createdBy;
37763
+ data["createdById"] = this.createdById;
37764
+ data["location"] = this.location ? this.location.toJSON() : undefined;
37765
+ data["status"] = this.status;
37766
+ data["bookingId"] = this.bookingId;
37767
+ data["comment"] = this.comment;
37591
37768
  return data;
37592
37769
  }
37593
37770
  }
@@ -37627,6 +37804,60 @@ export class LocationDto {
37627
37804
  return data;
37628
37805
  }
37629
37806
  }
37807
+ export class SuggestionsItemDto {
37808
+ constructor(data) {
37809
+ if (data) {
37810
+ for (var property in data) {
37811
+ if (data.hasOwnProperty(property))
37812
+ this[property] = data[property];
37813
+ }
37814
+ }
37815
+ if (!data) {
37816
+ this.fromSuggestions = [];
37817
+ this.toSuggestions = [];
37818
+ }
37819
+ }
37820
+ init(_data) {
37821
+ if (_data) {
37822
+ this.trackingId = _data["trackingId"];
37823
+ this.fromAutoFill = _data["fromAutoFill"] ? LocationDto.fromJS(_data["fromAutoFill"]) : undefined;
37824
+ this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : undefined;
37825
+ if (Array.isArray(_data["fromSuggestions"])) {
37826
+ this.fromSuggestions = [];
37827
+ for (let item of _data["fromSuggestions"])
37828
+ this.fromSuggestions.push(LocationDto.fromJS(item));
37829
+ }
37830
+ if (Array.isArray(_data["toSuggestions"])) {
37831
+ this.toSuggestions = [];
37832
+ for (let item of _data["toSuggestions"])
37833
+ this.toSuggestions.push(LocationDto.fromJS(item));
37834
+ }
37835
+ }
37836
+ }
37837
+ static fromJS(data) {
37838
+ data = typeof data === 'object' ? data : {};
37839
+ let result = new SuggestionsItemDto();
37840
+ result.init(data);
37841
+ return result;
37842
+ }
37843
+ toJSON(data) {
37844
+ data = typeof data === 'object' ? data : {};
37845
+ data["trackingId"] = this.trackingId;
37846
+ data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : undefined;
37847
+ data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : undefined;
37848
+ if (Array.isArray(this.fromSuggestions)) {
37849
+ data["fromSuggestions"] = [];
37850
+ for (let item of this.fromSuggestions)
37851
+ data["fromSuggestions"].push(item ? item.toJSON() : undefined);
37852
+ }
37853
+ if (Array.isArray(this.toSuggestions)) {
37854
+ data["toSuggestions"] = [];
37855
+ for (let item of this.toSuggestions)
37856
+ data["toSuggestions"].push(item ? item.toJSON() : undefined);
37857
+ }
37858
+ return data;
37859
+ }
37860
+ }
37630
37861
  export class BookingRequestListDto {
37631
37862
  constructor(data) {
37632
37863
  if (data) {
@@ -38410,60 +38641,6 @@ export class SuggestionsParcelDto {
38410
38641
  return data;
38411
38642
  }
38412
38643
  }
38413
- export class SuggestionsItemDto {
38414
- constructor(data) {
38415
- if (data) {
38416
- for (var property in data) {
38417
- if (data.hasOwnProperty(property))
38418
- this[property] = data[property];
38419
- }
38420
- }
38421
- if (!data) {
38422
- this.fromSuggestions = [];
38423
- this.toSuggestions = [];
38424
- }
38425
- }
38426
- init(_data) {
38427
- if (_data) {
38428
- this.trackingId = _data["trackingId"];
38429
- this.fromAutoFill = _data["fromAutoFill"] ? LocationDto.fromJS(_data["fromAutoFill"]) : undefined;
38430
- this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : undefined;
38431
- if (Array.isArray(_data["fromSuggestions"])) {
38432
- this.fromSuggestions = [];
38433
- for (let item of _data["fromSuggestions"])
38434
- this.fromSuggestions.push(LocationDto.fromJS(item));
38435
- }
38436
- if (Array.isArray(_data["toSuggestions"])) {
38437
- this.toSuggestions = [];
38438
- for (let item of _data["toSuggestions"])
38439
- this.toSuggestions.push(LocationDto.fromJS(item));
38440
- }
38441
- }
38442
- }
38443
- static fromJS(data) {
38444
- data = typeof data === 'object' ? data : {};
38445
- let result = new SuggestionsItemDto();
38446
- result.init(data);
38447
- return result;
38448
- }
38449
- toJSON(data) {
38450
- data = typeof data === 'object' ? data : {};
38451
- data["trackingId"] = this.trackingId;
38452
- data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : undefined;
38453
- data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : undefined;
38454
- if (Array.isArray(this.fromSuggestions)) {
38455
- data["fromSuggestions"] = [];
38456
- for (let item of this.fromSuggestions)
38457
- data["fromSuggestions"].push(item ? item.toJSON() : undefined);
38458
- }
38459
- if (Array.isArray(this.toSuggestions)) {
38460
- data["toSuggestions"] = [];
38461
- for (let item of this.toSuggestions)
38462
- data["toSuggestions"].push(item ? item.toJSON() : undefined);
38463
- }
38464
- return data;
38465
- }
38466
- }
38467
38644
  export class SuggestionsMaterialItemDto {
38468
38645
  constructor(data) {
38469
38646
  if (data) {
@@ -39018,103 +39195,6 @@ export class TrackingParcelDto {
39018
39195
  return data;
39019
39196
  }
39020
39197
  }
39021
- export class TrackingHistoryDto {
39022
- constructor(data) {
39023
- if (data) {
39024
- for (var property in data) {
39025
- if (data.hasOwnProperty(property))
39026
- this[property] = data[property];
39027
- }
39028
- }
39029
- if (!data) {
39030
- this.trackingEvents = [];
39031
- }
39032
- }
39033
- init(_data) {
39034
- if (_data) {
39035
- this.trackingId = _data["trackingId"];
39036
- this.palletNumber = _data["palletNumber"];
39037
- this.activeBooking = _data["activeBooking"];
39038
- this.materialOperation = _data["materialOperation"];
39039
- this.materialLine = _data["materialLine"];
39040
- this.materialPartName = _data["materialPartName"];
39041
- this.materialPartNumber = _data["materialPartNumber"];
39042
- this.category = _data["category"];
39043
- this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
39044
- if (Array.isArray(_data["trackingEvents"])) {
39045
- this.trackingEvents = [];
39046
- for (let item of _data["trackingEvents"])
39047
- this.trackingEvents.push(TrackingEventDto.fromJS(item));
39048
- }
39049
- this.suggestions = _data["suggestions"] ? SuggestionsItemDto.fromJS(_data["suggestions"]) : undefined;
39050
- }
39051
- }
39052
- static fromJS(data) {
39053
- data = typeof data === 'object' ? data : {};
39054
- let result = new TrackingHistoryDto();
39055
- result.init(data);
39056
- return result;
39057
- }
39058
- toJSON(data) {
39059
- data = typeof data === 'object' ? data : {};
39060
- data["trackingId"] = this.trackingId;
39061
- data["palletNumber"] = this.palletNumber;
39062
- data["activeBooking"] = this.activeBooking;
39063
- data["materialOperation"] = this.materialOperation;
39064
- data["materialLine"] = this.materialLine;
39065
- data["materialPartName"] = this.materialPartName;
39066
- data["materialPartNumber"] = this.materialPartNumber;
39067
- data["category"] = this.category;
39068
- data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
39069
- if (Array.isArray(this.trackingEvents)) {
39070
- data["trackingEvents"] = [];
39071
- for (let item of this.trackingEvents)
39072
- data["trackingEvents"].push(item ? item.toJSON() : undefined);
39073
- }
39074
- data["suggestions"] = this.suggestions ? this.suggestions.toJSON() : undefined;
39075
- return data;
39076
- }
39077
- }
39078
- export class TrackingEventDto {
39079
- constructor(data) {
39080
- if (data) {
39081
- for (var property in data) {
39082
- if (data.hasOwnProperty(property))
39083
- this[property] = data[property];
39084
- }
39085
- }
39086
- }
39087
- init(_data) {
39088
- if (_data) {
39089
- this.id = _data["id"];
39090
- this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
39091
- this.createdBy = _data["createdBy"];
39092
- this.createdById = _data["createdById"];
39093
- this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : undefined;
39094
- this.status = _data["status"];
39095
- this.bookingId = _data["bookingId"];
39096
- this.comment = _data["comment"];
39097
- }
39098
- }
39099
- static fromJS(data) {
39100
- data = typeof data === 'object' ? data : {};
39101
- let result = new TrackingEventDto();
39102
- result.init(data);
39103
- return result;
39104
- }
39105
- toJSON(data) {
39106
- data = typeof data === 'object' ? data : {};
39107
- data["id"] = this.id;
39108
- data["created"] = this.created ? this.created.toISOString() : undefined;
39109
- data["createdBy"] = this.createdBy;
39110
- data["createdById"] = this.createdById;
39111
- data["location"] = this.location ? this.location.toJSON() : undefined;
39112
- data["status"] = this.status;
39113
- data["bookingId"] = this.bookingId;
39114
- data["comment"] = this.comment;
39115
- return data;
39116
- }
39117
- }
39118
39198
  export class TrackingRequestListDto {
39119
39199
  constructor(data) {
39120
39200
  if (data) {
@@ -39961,7 +40041,6 @@ export class ProductionOrderOperationDto {
39961
40041
  this.quantity = _data["quantity"];
39962
40042
  this.startedQuantity = _data["startedQuantity"];
39963
40043
  this.ongoingQuantity = _data["ongoingQuantity"];
39964
- this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
39965
40044
  this.availableToStartQuantity = _data["availableToStartQuantity"];
39966
40045
  this.workInstructions = _data["workInstructions"];
39967
40046
  this.note = _data["note"];
@@ -40003,7 +40082,6 @@ export class ProductionOrderOperationDto {
40003
40082
  data["quantity"] = this.quantity;
40004
40083
  data["startedQuantity"] = this.startedQuantity;
40005
40084
  data["ongoingQuantity"] = this.ongoingQuantity;
40006
- data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
40007
40085
  data["availableToStartQuantity"] = this.availableToStartQuantity;
40008
40086
  data["workInstructions"] = this.workInstructions;
40009
40087
  data["note"] = this.note;
@@ -40807,7 +40885,6 @@ export class ProductionScheduleOperationDto {
40807
40885
  this.producedQuantity = _data["producedQuantity"];
40808
40886
  this.scrappedQuantity = _data["scrappedQuantity"];
40809
40887
  this.availableToStartQuantity = _data["availableToStartQuantity"];
40810
- this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
40811
40888
  this.startedQuantity = _data["startedQuantity"];
40812
40889
  this.ongoingQuantity = _data["ongoingQuantity"];
40813
40890
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
@@ -40866,7 +40943,6 @@ export class ProductionScheduleOperationDto {
40866
40943
  data["producedQuantity"] = this.producedQuantity;
40867
40944
  data["scrappedQuantity"] = this.scrappedQuantity;
40868
40945
  data["availableToStartQuantity"] = this.availableToStartQuantity;
40869
- data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
40870
40946
  data["startedQuantity"] = this.startedQuantity;
40871
40947
  data["ongoingQuantity"] = this.ongoingQuantity;
40872
40948
  data["project"] = this.project ? this.project.toJSON() : undefined;
@@ -40925,7 +41001,6 @@ export class SurroundingOperationDto {
40925
41001
  this.resourceDepartmentName = _data["resourceDepartmentName"];
40926
41002
  this.producedQuantity = _data["producedQuantity"];
40927
41003
  this.scrappedQuantity = _data["scrappedQuantity"];
40928
- this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
40929
41004
  this.startedQuantity = _data["startedQuantity"];
40930
41005
  }
40931
41006
  }
@@ -40952,7 +41027,6 @@ export class SurroundingOperationDto {
40952
41027
  data["resourceDepartmentName"] = this.resourceDepartmentName;
40953
41028
  data["producedQuantity"] = this.producedQuantity;
40954
41029
  data["scrappedQuantity"] = this.scrappedQuantity;
40955
- data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
40956
41030
  data["startedQuantity"] = this.startedQuantity;
40957
41031
  return data;
40958
41032
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20251013.0.12851-alpha",
3
+ "version": "20251021.0.12920",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",