@ignos/api-client 20240830.0.10204 → 20240830.0.10208

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.
@@ -7901,7 +7901,7 @@ export declare class BookingDto implements IBookingDto {
7901
7901
  parcelKind: ParcelKindDto;
7902
7902
  transportKind: TransportKindDto;
7903
7903
  status: BookingStatusDto;
7904
- parcels: BookingParcelDto[];
7904
+ parcel: BookingParcelDto;
7905
7905
  fromLocation: LocationDto;
7906
7906
  toLocation: LocationDto;
7907
7907
  created: Date;
@@ -7922,7 +7922,7 @@ export interface IBookingDto {
7922
7922
  parcelKind: ParcelKindDto;
7923
7923
  transportKind: TransportKindDto;
7924
7924
  status: BookingStatusDto;
7925
- parcels: BookingParcelDto[];
7925
+ parcel: BookingParcelDto;
7926
7926
  fromLocation: LocationDto;
7927
7927
  toLocation: LocationDto;
7928
7928
  created: Date;
@@ -7945,7 +7945,7 @@ export declare class BookingParcelDto implements IBookingParcelDto {
7945
7945
  quantity?: number | null;
7946
7946
  material?: string | null;
7947
7947
  covered: MaterialCoveredDto;
7948
- items?: BookingItemDto[];
7948
+ item?: BookingItemDto;
7949
7949
  constructor(data?: IBookingParcelDto);
7950
7950
  init(_data?: any): void;
7951
7951
  static fromJS(data: any): BookingParcelDto;
@@ -7959,14 +7959,13 @@ export interface IBookingParcelDto {
7959
7959
  quantity?: number | null;
7960
7960
  material?: string | null;
7961
7961
  covered: MaterialCoveredDto;
7962
- items?: BookingItemDto[];
7962
+ item?: BookingItemDto;
7963
7963
  }
7964
7964
  export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
7965
7965
  export declare class BookingItemDto implements IBookingItemDto {
7966
7966
  trackingId: string;
7967
7967
  palletNumber: number;
7968
7968
  comment?: string | null;
7969
- toLocationOverride?: LocationDto | null;
7970
7969
  constructor(data?: IBookingItemDto);
7971
7970
  init(_data?: any): void;
7972
7971
  static fromJS(data: any): BookingItemDto;
@@ -7976,7 +7975,6 @@ export interface IBookingItemDto {
7976
7975
  trackingId: string;
7977
7976
  palletNumber: number;
7978
7977
  comment?: string | null;
7979
- toLocationOverride?: LocationDto | null;
7980
7978
  }
7981
7979
  export declare class LocationDto implements ILocationDto {
7982
7980
  locationId: string;
@@ -8111,7 +8109,8 @@ export interface IBookingGeneralRequestDto {
8111
8109
  export declare class BookingStatusUpdateDto implements IBookingStatusUpdateDto {
8112
8110
  bookingId: string;
8113
8111
  status: BookingStatusDto;
8114
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
8112
+ deliveryExceptionToLocationId?: string | null;
8113
+ deliveryExceptionComment?: string | null;
8115
8114
  constructor(data?: IBookingStatusUpdateDto);
8116
8115
  init(_data?: any): void;
8117
8116
  static fromJS(data: any): BookingStatusUpdateDto;
@@ -8120,21 +8119,8 @@ export declare class BookingStatusUpdateDto implements IBookingStatusUpdateDto {
8120
8119
  export interface IBookingStatusUpdateDto {
8121
8120
  bookingId: string;
8122
8121
  status: BookingStatusDto;
8123
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
8124
- }
8125
- export declare class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto {
8126
- trackingId: string;
8127
- toLocationId?: string | null;
8128
- comment?: string | null;
8129
- constructor(data?: IBookingDeliveryExceptionDto);
8130
- init(_data?: any): void;
8131
- static fromJS(data: any): BookingDeliveryExceptionDto;
8132
- toJSON(data?: any): any;
8133
- }
8134
- export interface IBookingDeliveryExceptionDto {
8135
- trackingId: string;
8136
- toLocationId?: string | null;
8137
- comment?: string | null;
8122
+ deliveryExceptionToLocationId?: string | null;
8123
+ deliveryExceptionComment?: string | null;
8138
8124
  }
8139
8125
  export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
8140
8126
  export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
@@ -30564,7 +30564,7 @@ export class BookingDto {
30564
30564
  }
30565
30565
  }
30566
30566
  if (!data) {
30567
- this.parcels = [];
30567
+ this.parcel = new BookingParcelDto();
30568
30568
  this.fromLocation = new LocationDto();
30569
30569
  this.toLocation = new LocationDto();
30570
30570
  }
@@ -30575,11 +30575,7 @@ export class BookingDto {
30575
30575
  this.parcelKind = _data["parcelKind"];
30576
30576
  this.transportKind = _data["transportKind"];
30577
30577
  this.status = _data["status"];
30578
- if (Array.isArray(_data["parcels"])) {
30579
- this.parcels = [];
30580
- for (let item of _data["parcels"])
30581
- this.parcels.push(BookingParcelDto.fromJS(item));
30582
- }
30578
+ this.parcel = _data["parcel"] ? BookingParcelDto.fromJS(_data["parcel"]) : new BookingParcelDto();
30583
30579
  this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
30584
30580
  this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
30585
30581
  this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
@@ -30604,11 +30600,7 @@ export class BookingDto {
30604
30600
  data["parcelKind"] = this.parcelKind;
30605
30601
  data["transportKind"] = this.transportKind;
30606
30602
  data["status"] = this.status;
30607
- if (Array.isArray(this.parcels)) {
30608
- data["parcels"] = [];
30609
- for (let item of this.parcels)
30610
- data["parcels"].push(item.toJSON());
30611
- }
30603
+ data["parcel"] = this.parcel ? this.parcel.toJSON() : undefined;
30612
30604
  data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : undefined;
30613
30605
  data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : undefined;
30614
30606
  data["created"] = this.created ? this.created.toISOString() : undefined;
@@ -30640,11 +30632,7 @@ export class BookingParcelDto {
30640
30632
  this.quantity = _data["quantity"];
30641
30633
  this.material = _data["material"];
30642
30634
  this.covered = _data["covered"];
30643
- if (Array.isArray(_data["items"])) {
30644
- this.items = [];
30645
- for (let item of _data["items"])
30646
- this.items.push(BookingItemDto.fromJS(item));
30647
- }
30635
+ this.item = _data["item"] ? BookingItemDto.fromJS(_data["item"]) : undefined;
30648
30636
  }
30649
30637
  }
30650
30638
  static fromJS(data) {
@@ -30662,11 +30650,7 @@ export class BookingParcelDto {
30662
30650
  data["quantity"] = this.quantity;
30663
30651
  data["material"] = this.material;
30664
30652
  data["covered"] = this.covered;
30665
- if (Array.isArray(this.items)) {
30666
- data["items"] = [];
30667
- for (let item of this.items)
30668
- data["items"].push(item.toJSON());
30669
- }
30653
+ data["item"] = this.item ? this.item.toJSON() : undefined;
30670
30654
  return data;
30671
30655
  }
30672
30656
  }
@@ -30684,7 +30668,6 @@ export class BookingItemDto {
30684
30668
  this.trackingId = _data["trackingId"];
30685
30669
  this.palletNumber = _data["palletNumber"];
30686
30670
  this.comment = _data["comment"];
30687
- this.toLocationOverride = _data["toLocationOverride"] ? LocationDto.fromJS(_data["toLocationOverride"]) : undefined;
30688
30671
  }
30689
30672
  }
30690
30673
  static fromJS(data) {
@@ -30698,7 +30681,6 @@ export class BookingItemDto {
30698
30681
  data["trackingId"] = this.trackingId;
30699
30682
  data["palletNumber"] = this.palletNumber;
30700
30683
  data["comment"] = this.comment;
30701
- data["toLocationOverride"] = this.toLocationOverride ? this.toLocationOverride.toJSON() : undefined;
30702
30684
  return data;
30703
30685
  }
30704
30686
  }
@@ -31020,11 +31002,8 @@ export class BookingStatusUpdateDto {
31020
31002
  if (_data) {
31021
31003
  this.bookingId = _data["bookingId"];
31022
31004
  this.status = _data["status"];
31023
- if (Array.isArray(_data["deliveryExceptions"])) {
31024
- this.deliveryExceptions = [];
31025
- for (let item of _data["deliveryExceptions"])
31026
- this.deliveryExceptions.push(BookingDeliveryExceptionDto.fromJS(item));
31027
- }
31005
+ this.deliveryExceptionToLocationId = _data["deliveryExceptionToLocationId"];
31006
+ this.deliveryExceptionComment = _data["deliveryExceptionComment"];
31028
31007
  }
31029
31008
  }
31030
31009
  static fromJS(data) {
@@ -31037,41 +31016,8 @@ export class BookingStatusUpdateDto {
31037
31016
  data = typeof data === 'object' ? data : {};
31038
31017
  data["bookingId"] = this.bookingId;
31039
31018
  data["status"] = this.status;
31040
- if (Array.isArray(this.deliveryExceptions)) {
31041
- data["deliveryExceptions"] = [];
31042
- for (let item of this.deliveryExceptions)
31043
- data["deliveryExceptions"].push(item.toJSON());
31044
- }
31045
- return data;
31046
- }
31047
- }
31048
- export class BookingDeliveryExceptionDto {
31049
- constructor(data) {
31050
- if (data) {
31051
- for (var property in data) {
31052
- if (data.hasOwnProperty(property))
31053
- this[property] = data[property];
31054
- }
31055
- }
31056
- }
31057
- init(_data) {
31058
- if (_data) {
31059
- this.trackingId = _data["trackingId"];
31060
- this.toLocationId = _data["toLocationId"];
31061
- this.comment = _data["comment"];
31062
- }
31063
- }
31064
- static fromJS(data) {
31065
- data = typeof data === 'object' ? data : {};
31066
- let result = new BookingDeliveryExceptionDto();
31067
- result.init(data);
31068
- return result;
31069
- }
31070
- toJSON(data) {
31071
- data = typeof data === 'object' ? data : {};
31072
- data["trackingId"] = this.trackingId;
31073
- data["toLocationId"] = this.toLocationId;
31074
- data["comment"] = this.comment;
31019
+ data["deliveryExceptionToLocationId"] = this.deliveryExceptionToLocationId;
31020
+ data["deliveryExceptionComment"] = this.deliveryExceptionComment;
31075
31021
  return data;
31076
31022
  }
31077
31023
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240830.0.10204",
3
+ "version": "20240830.0.10208",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -37446,7 +37446,7 @@ export class BookingDto implements IBookingDto {
37446
37446
  parcelKind!: ParcelKindDto;
37447
37447
  transportKind!: TransportKindDto;
37448
37448
  status!: BookingStatusDto;
37449
- parcels!: BookingParcelDto[];
37449
+ parcel!: BookingParcelDto;
37450
37450
  fromLocation!: LocationDto;
37451
37451
  toLocation!: LocationDto;
37452
37452
  created!: Date;
@@ -37466,7 +37466,7 @@ export class BookingDto implements IBookingDto {
37466
37466
  }
37467
37467
  }
37468
37468
  if (!data) {
37469
- this.parcels = [];
37469
+ this.parcel = new BookingParcelDto();
37470
37470
  this.fromLocation = new LocationDto();
37471
37471
  this.toLocation = new LocationDto();
37472
37472
  }
@@ -37478,11 +37478,7 @@ export class BookingDto implements IBookingDto {
37478
37478
  this.parcelKind = _data["parcelKind"];
37479
37479
  this.transportKind = _data["transportKind"];
37480
37480
  this.status = _data["status"];
37481
- if (Array.isArray(_data["parcels"])) {
37482
- this.parcels = [] as any;
37483
- for (let item of _data["parcels"])
37484
- this.parcels!.push(BookingParcelDto.fromJS(item));
37485
- }
37481
+ this.parcel = _data["parcel"] ? BookingParcelDto.fromJS(_data["parcel"]) : new BookingParcelDto();
37486
37482
  this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
37487
37483
  this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
37488
37484
  this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
@@ -37509,11 +37505,7 @@ export class BookingDto implements IBookingDto {
37509
37505
  data["parcelKind"] = this.parcelKind;
37510
37506
  data["transportKind"] = this.transportKind;
37511
37507
  data["status"] = this.status;
37512
- if (Array.isArray(this.parcels)) {
37513
- data["parcels"] = [];
37514
- for (let item of this.parcels)
37515
- data["parcels"].push(item.toJSON());
37516
- }
37508
+ data["parcel"] = this.parcel ? this.parcel.toJSON() : <any>undefined;
37517
37509
  data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : <any>undefined;
37518
37510
  data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : <any>undefined;
37519
37511
  data["created"] = this.created ? this.created.toISOString() : <any>undefined;
@@ -37533,7 +37525,7 @@ export interface IBookingDto {
37533
37525
  parcelKind: ParcelKindDto;
37534
37526
  transportKind: TransportKindDto;
37535
37527
  status: BookingStatusDto;
37536
- parcels: BookingParcelDto[];
37528
+ parcel: BookingParcelDto;
37537
37529
  fromLocation: LocationDto;
37538
37530
  toLocation: LocationDto;
37539
37531
  created: Date;
@@ -37560,7 +37552,7 @@ export class BookingParcelDto implements IBookingParcelDto {
37560
37552
  quantity?: number | null;
37561
37553
  material?: string | null;
37562
37554
  covered!: MaterialCoveredDto;
37563
- items?: BookingItemDto[];
37555
+ item?: BookingItemDto;
37564
37556
 
37565
37557
  constructor(data?: IBookingParcelDto) {
37566
37558
  if (data) {
@@ -37580,11 +37572,7 @@ export class BookingParcelDto implements IBookingParcelDto {
37580
37572
  this.quantity = _data["quantity"];
37581
37573
  this.material = _data["material"];
37582
37574
  this.covered = _data["covered"];
37583
- if (Array.isArray(_data["items"])) {
37584
- this.items = [] as any;
37585
- for (let item of _data["items"])
37586
- this.items!.push(BookingItemDto.fromJS(item));
37587
- }
37575
+ this.item = _data["item"] ? BookingItemDto.fromJS(_data["item"]) : <any>undefined;
37588
37576
  }
37589
37577
  }
37590
37578
 
@@ -37604,11 +37592,7 @@ export class BookingParcelDto implements IBookingParcelDto {
37604
37592
  data["quantity"] = this.quantity;
37605
37593
  data["material"] = this.material;
37606
37594
  data["covered"] = this.covered;
37607
- if (Array.isArray(this.items)) {
37608
- data["items"] = [];
37609
- for (let item of this.items)
37610
- data["items"].push(item.toJSON());
37611
- }
37595
+ data["item"] = this.item ? this.item.toJSON() : <any>undefined;
37612
37596
  return data;
37613
37597
  }
37614
37598
  }
@@ -37621,7 +37605,7 @@ export interface IBookingParcelDto {
37621
37605
  quantity?: number | null;
37622
37606
  material?: string | null;
37623
37607
  covered: MaterialCoveredDto;
37624
- items?: BookingItemDto[];
37608
+ item?: BookingItemDto;
37625
37609
  }
37626
37610
 
37627
37611
  export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
@@ -37630,7 +37614,6 @@ export class BookingItemDto implements IBookingItemDto {
37630
37614
  trackingId!: string;
37631
37615
  palletNumber!: number;
37632
37616
  comment?: string | null;
37633
- toLocationOverride?: LocationDto | null;
37634
37617
 
37635
37618
  constructor(data?: IBookingItemDto) {
37636
37619
  if (data) {
@@ -37646,7 +37629,6 @@ export class BookingItemDto implements IBookingItemDto {
37646
37629
  this.trackingId = _data["trackingId"];
37647
37630
  this.palletNumber = _data["palletNumber"];
37648
37631
  this.comment = _data["comment"];
37649
- this.toLocationOverride = _data["toLocationOverride"] ? LocationDto.fromJS(_data["toLocationOverride"]) : <any>undefined;
37650
37632
  }
37651
37633
  }
37652
37634
 
@@ -37662,7 +37644,6 @@ export class BookingItemDto implements IBookingItemDto {
37662
37644
  data["trackingId"] = this.trackingId;
37663
37645
  data["palletNumber"] = this.palletNumber;
37664
37646
  data["comment"] = this.comment;
37665
- data["toLocationOverride"] = this.toLocationOverride ? this.toLocationOverride.toJSON() : <any>undefined;
37666
37647
  return data;
37667
37648
  }
37668
37649
  }
@@ -37671,7 +37652,6 @@ export interface IBookingItemDto {
37671
37652
  trackingId: string;
37672
37653
  palletNumber: number;
37673
37654
  comment?: string | null;
37674
- toLocationOverride?: LocationDto | null;
37675
37655
  }
37676
37656
 
37677
37657
  export class LocationDto implements ILocationDto {
@@ -38116,7 +38096,8 @@ export interface IBookingGeneralRequestDto {
38116
38096
  export class BookingStatusUpdateDto implements IBookingStatusUpdateDto {
38117
38097
  bookingId!: string;
38118
38098
  status!: BookingStatusDto;
38119
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
38099
+ deliveryExceptionToLocationId?: string | null;
38100
+ deliveryExceptionComment?: string | null;
38120
38101
 
38121
38102
  constructor(data?: IBookingStatusUpdateDto) {
38122
38103
  if (data) {
@@ -38131,11 +38112,8 @@ export class BookingStatusUpdateDto implements IBookingStatusUpdateDto {
38131
38112
  if (_data) {
38132
38113
  this.bookingId = _data["bookingId"];
38133
38114
  this.status = _data["status"];
38134
- if (Array.isArray(_data["deliveryExceptions"])) {
38135
- this.deliveryExceptions = [] as any;
38136
- for (let item of _data["deliveryExceptions"])
38137
- this.deliveryExceptions!.push(BookingDeliveryExceptionDto.fromJS(item));
38138
- }
38115
+ this.deliveryExceptionToLocationId = _data["deliveryExceptionToLocationId"];
38116
+ this.deliveryExceptionComment = _data["deliveryExceptionComment"];
38139
38117
  }
38140
38118
  }
38141
38119
 
@@ -38150,11 +38128,8 @@ export class BookingStatusUpdateDto implements IBookingStatusUpdateDto {
38150
38128
  data = typeof data === 'object' ? data : {};
38151
38129
  data["bookingId"] = this.bookingId;
38152
38130
  data["status"] = this.status;
38153
- if (Array.isArray(this.deliveryExceptions)) {
38154
- data["deliveryExceptions"] = [];
38155
- for (let item of this.deliveryExceptions)
38156
- data["deliveryExceptions"].push(item.toJSON());
38157
- }
38131
+ data["deliveryExceptionToLocationId"] = this.deliveryExceptionToLocationId;
38132
+ data["deliveryExceptionComment"] = this.deliveryExceptionComment;
38158
38133
  return data;
38159
38134
  }
38160
38135
  }
@@ -38162,51 +38137,8 @@ export class BookingStatusUpdateDto implements IBookingStatusUpdateDto {
38162
38137
  export interface IBookingStatusUpdateDto {
38163
38138
  bookingId: string;
38164
38139
  status: BookingStatusDto;
38165
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
38166
- }
38167
-
38168
- export class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto {
38169
- trackingId!: string;
38170
- toLocationId?: string | null;
38171
- comment?: string | null;
38172
-
38173
- constructor(data?: IBookingDeliveryExceptionDto) {
38174
- if (data) {
38175
- for (var property in data) {
38176
- if (data.hasOwnProperty(property))
38177
- (<any>this)[property] = (<any>data)[property];
38178
- }
38179
- }
38180
- }
38181
-
38182
- init(_data?: any) {
38183
- if (_data) {
38184
- this.trackingId = _data["trackingId"];
38185
- this.toLocationId = _data["toLocationId"];
38186
- this.comment = _data["comment"];
38187
- }
38188
- }
38189
-
38190
- static fromJS(data: any): BookingDeliveryExceptionDto {
38191
- data = typeof data === 'object' ? data : {};
38192
- let result = new BookingDeliveryExceptionDto();
38193
- result.init(data);
38194
- return result;
38195
- }
38196
-
38197
- toJSON(data?: any) {
38198
- data = typeof data === 'object' ? data : {};
38199
- data["trackingId"] = this.trackingId;
38200
- data["toLocationId"] = this.toLocationId;
38201
- data["comment"] = this.comment;
38202
- return data;
38203
- }
38204
- }
38205
-
38206
- export interface IBookingDeliveryExceptionDto {
38207
- trackingId: string;
38208
- toLocationId?: string | null;
38209
- comment?: string | null;
38140
+ deliveryExceptionToLocationId?: string | null;
38141
+ deliveryExceptionComment?: string | null;
38210
38142
  }
38211
38143
 
38212
38144
  export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";