@ignos/api-client 20240823.0.10114 → 20240828.0.10152

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.
@@ -1497,10 +1497,10 @@ export declare class MoveParcelsClient extends AuthorizedApiBase implements IMov
1497
1497
  protected processSearchParcels(response: Response): Promise<SearchParcelDto[]>;
1498
1498
  }
1499
1499
  export interface IMoveTrackingClient {
1500
- listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
1501
- getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingHistoryDto>;
1500
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
1501
+ getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
1502
1502
  getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
1503
- listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]>;
1503
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]>;
1504
1504
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
1505
1505
  createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
1506
1506
  deleteTrackingHistory(trackingId: string): Promise<void>;
@@ -1513,13 +1513,13 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
1513
1513
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
1514
1514
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1515
1515
  });
1516
- listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
1517
- protected processListTrackingHistory(response: Response): Promise<TrackingHistoryListDto>;
1518
- getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingHistoryDto>;
1519
- protected processGetTrackingHistory(response: Response): Promise<TrackingHistoryDto>;
1516
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
1517
+ protected processListTrackingHistory(response: Response): Promise<TrackingParcelListDto>;
1518
+ getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
1519
+ protected processGetTrackingHistory(response: Response): Promise<TrackingParcelDto>;
1520
1520
  getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
1521
1521
  protected processGetParcelTrackingHistory(response: Response): Promise<TrackingParcelDto>;
1522
- listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]>;
1522
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]>;
1523
1523
  protected processListParcelTrackingHistory(response: Response): Promise<TrackingParcelDto[]>;
1524
1524
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
1525
1525
  protected processCreateTrackingEvents(response: Response): Promise<TrackingHistoryDto[]>;
@@ -7873,7 +7873,7 @@ export declare class BookingDto implements IBookingDto {
7873
7873
  parcelKind: ParcelKindDto;
7874
7874
  transportKind: TransportKindDto;
7875
7875
  status: BookingStatusDto;
7876
- items: BookingItemDto[];
7876
+ parcels: BookingParcelDto[];
7877
7877
  fromLocation: LocationDto;
7878
7878
  toLocation: LocationDto;
7879
7879
  created: Date;
@@ -7894,7 +7894,7 @@ export interface IBookingDto {
7894
7894
  parcelKind: ParcelKindDto;
7895
7895
  transportKind: TransportKindDto;
7896
7896
  status: BookingStatusDto;
7897
- items: BookingItemDto[];
7897
+ parcels: BookingParcelDto[];
7898
7898
  fromLocation: LocationDto;
7899
7899
  toLocation: LocationDto;
7900
7900
  created: Date;
@@ -7909,14 +7909,35 @@ export interface IBookingDto {
7909
7909
  export type ParcelKindDto = "Standard" | "OtherInquiries" | "ChipDisposal" | "Garbage";
7910
7910
  export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
7911
7911
  export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Completed";
7912
- export declare class BookingItemDto implements IBookingItemDto {
7913
- trackingId: string;
7914
- palletNumber: number;
7912
+ export declare class BookingParcelDto implements IBookingParcelDto {
7915
7913
  parcelId: string;
7916
7914
  parcelKind: ParcelKindDto;
7915
+ partName?: string | null;
7916
+ partNumber?: string | null;
7917
+ quantity?: number | null;
7917
7918
  material?: string | null;
7918
- comment?: string | null;
7919
7919
  covered: MaterialCoveredDto;
7920
+ items?: BookingItemDto[];
7921
+ constructor(data?: IBookingParcelDto);
7922
+ init(_data?: any): void;
7923
+ static fromJS(data: any): BookingParcelDto;
7924
+ toJSON(data?: any): any;
7925
+ }
7926
+ export interface IBookingParcelDto {
7927
+ parcelId: string;
7928
+ parcelKind: ParcelKindDto;
7929
+ partName?: string | null;
7930
+ partNumber?: string | null;
7931
+ quantity?: number | null;
7932
+ material?: string | null;
7933
+ covered: MaterialCoveredDto;
7934
+ items?: BookingItemDto[];
7935
+ }
7936
+ export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
7937
+ export declare class BookingItemDto implements IBookingItemDto {
7938
+ trackingId: string;
7939
+ palletNumber: number;
7940
+ comment?: string | null;
7920
7941
  toLocationOverride?: LocationDto | null;
7921
7942
  constructor(data?: IBookingItemDto);
7922
7943
  init(_data?: any): void;
@@ -7926,14 +7947,9 @@ export declare class BookingItemDto implements IBookingItemDto {
7926
7947
  export interface IBookingItemDto {
7927
7948
  trackingId: string;
7928
7949
  palletNumber: number;
7929
- parcelId: string;
7930
- parcelKind: ParcelKindDto;
7931
- material?: string | null;
7932
7950
  comment?: string | null;
7933
- covered: MaterialCoveredDto;
7934
7951
  toLocationOverride?: LocationDto | null;
7935
7952
  }
7936
- export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
7937
7953
  export declare class LocationDto implements ILocationDto {
7938
7954
  locationId: string;
7939
7955
  locationName: string;
@@ -8171,27 +8187,48 @@ export interface ISearchParcelItemDto {
8171
8187
  trackingId: string;
8172
8188
  selected: boolean;
8173
8189
  }
8174
- export declare class TrackingHistoryListDto implements ITrackingHistoryListDto {
8175
- results: TrackingHistoryDto[];
8190
+ export declare class TrackingParcelListDto implements ITrackingParcelListDto {
8191
+ results: TrackingParcelDto[];
8176
8192
  continuationToken?: string | null;
8177
- constructor(data?: ITrackingHistoryListDto);
8193
+ constructor(data?: ITrackingParcelListDto);
8178
8194
  init(_data?: any): void;
8179
- static fromJS(data: any): TrackingHistoryListDto;
8195
+ static fromJS(data: any): TrackingParcelListDto;
8180
8196
  toJSON(data?: any): any;
8181
8197
  }
8182
- export interface ITrackingHistoryListDto {
8183
- results: TrackingHistoryDto[];
8198
+ export interface ITrackingParcelListDto {
8199
+ results: TrackingParcelDto[];
8184
8200
  continuationToken?: string | null;
8185
8201
  }
8202
+ export declare class TrackingParcelDto implements ITrackingParcelDto {
8203
+ parcelId: string;
8204
+ parcelKind: ParcelKindDto;
8205
+ partName?: string | null;
8206
+ partNumber?: string | null;
8207
+ quantity?: number | null;
8208
+ material?: string | null;
8209
+ covered?: MaterialCoveredDto | null;
8210
+ items: TrackingHistoryDto[];
8211
+ constructor(data?: ITrackingParcelDto);
8212
+ init(_data?: any): void;
8213
+ static fromJS(data: any): TrackingParcelDto;
8214
+ toJSON(data?: any): any;
8215
+ }
8216
+ export interface ITrackingParcelDto {
8217
+ parcelId: string;
8218
+ parcelKind: ParcelKindDto;
8219
+ partName?: string | null;
8220
+ partNumber?: string | null;
8221
+ quantity?: number | null;
8222
+ material?: string | null;
8223
+ covered?: MaterialCoveredDto | null;
8224
+ items: TrackingHistoryDto[];
8225
+ }
8186
8226
  export declare class TrackingHistoryDto implements ITrackingHistoryDto {
8187
8227
  trackingId: string;
8188
8228
  palletNumber: number;
8189
- parcelKind: ParcelKindDto;
8190
- parcelId: string;
8229
+ activeBooking?: boolean | null;
8191
8230
  currentTracking?: TrackingEventDto | null;
8192
8231
  trackingEvents: TrackingEventDto[];
8193
- material?: string | null;
8194
- activeBooking?: boolean | null;
8195
8232
  constructor(data?: ITrackingHistoryDto);
8196
8233
  init(_data?: any): void;
8197
8234
  static fromJS(data: any): TrackingHistoryDto;
@@ -8200,12 +8237,9 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
8200
8237
  export interface ITrackingHistoryDto {
8201
8238
  trackingId: string;
8202
8239
  palletNumber: number;
8203
- parcelKind: ParcelKindDto;
8204
- parcelId: string;
8240
+ activeBooking?: boolean | null;
8205
8241
  currentTracking?: TrackingEventDto | null;
8206
8242
  trackingEvents: TrackingEventDto[];
8207
- material?: string | null;
8208
- activeBooking?: boolean | null;
8209
8243
  }
8210
8244
  export declare class TrackingEventDto implements ITrackingEventDto {
8211
8245
  id: number;
@@ -8256,31 +8290,15 @@ export interface ITrackingRequestListDto {
8256
8290
  includeActiveBookings?: boolean;
8257
8291
  continuationToken?: string | null;
8258
8292
  }
8259
- export declare class TrackingParcelDto implements ITrackingParcelDto {
8260
- parcelId: string;
8261
- part?: PartDto | null;
8262
- trackingHistory: TrackingHistoryDto[];
8263
- covered: MaterialCoveredDto;
8264
- constructor(data?: ITrackingParcelDto);
8265
- init(_data?: any): void;
8266
- static fromJS(data: any): TrackingParcelDto;
8267
- toJSON(data?: any): any;
8268
- }
8269
- export interface ITrackingParcelDto {
8270
- parcelId: string;
8271
- part?: PartDto | null;
8272
- trackingHistory: TrackingHistoryDto[];
8273
- covered: MaterialCoveredDto;
8274
- }
8275
- export declare class TrackingParcelListDto implements ITrackingParcelListDto {
8293
+ export declare class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
8276
8294
  parcelIds: string[];
8277
8295
  includeActiveBookings: boolean;
8278
- constructor(data?: ITrackingParcelListDto);
8296
+ constructor(data?: ITrackingParcelRequestListDto);
8279
8297
  init(_data?: any): void;
8280
- static fromJS(data: any): TrackingParcelListDto;
8298
+ static fromJS(data: any): TrackingParcelRequestListDto;
8281
8299
  toJSON(data?: any): any;
8282
8300
  }
8283
- export interface ITrackingParcelListDto {
8301
+ export interface ITrackingParcelRequestListDto {
8284
8302
  parcelIds: string[];
8285
8303
  includeActiveBookings: boolean;
8286
8304
  }
@@ -12274,7 +12274,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12274
12274
  return response.text().then((_responseText) => {
12275
12275
  let result200 = null;
12276
12276
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12277
- result200 = TrackingHistoryListDto.fromJS(resultData200);
12277
+ result200 = TrackingParcelListDto.fromJS(resultData200);
12278
12278
  return result200;
12279
12279
  });
12280
12280
  }
@@ -12318,7 +12318,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12318
12318
  return response.text().then((_responseText) => {
12319
12319
  let result200 = null;
12320
12320
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12321
- result200 = TrackingHistoryDto.fromJS(resultData200);
12321
+ result200 = TrackingParcelDto.fromJS(resultData200);
12322
12322
  return result200;
12323
12323
  });
12324
12324
  }
@@ -30417,7 +30417,7 @@ export class BookingDto {
30417
30417
  }
30418
30418
  }
30419
30419
  if (!data) {
30420
- this.items = [];
30420
+ this.parcels = [];
30421
30421
  this.fromLocation = new LocationDto();
30422
30422
  this.toLocation = new LocationDto();
30423
30423
  }
@@ -30428,10 +30428,10 @@ export class BookingDto {
30428
30428
  this.parcelKind = _data["parcelKind"];
30429
30429
  this.transportKind = _data["transportKind"];
30430
30430
  this.status = _data["status"];
30431
- if (Array.isArray(_data["items"])) {
30432
- this.items = [];
30433
- for (let item of _data["items"])
30434
- this.items.push(BookingItemDto.fromJS(item));
30431
+ if (Array.isArray(_data["parcels"])) {
30432
+ this.parcels = [];
30433
+ for (let item of _data["parcels"])
30434
+ this.parcels.push(BookingParcelDto.fromJS(item));
30435
30435
  }
30436
30436
  this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
30437
30437
  this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
@@ -30457,10 +30457,10 @@ export class BookingDto {
30457
30457
  data["parcelKind"] = this.parcelKind;
30458
30458
  data["transportKind"] = this.transportKind;
30459
30459
  data["status"] = this.status;
30460
- if (Array.isArray(this.items)) {
30461
- data["items"] = [];
30462
- for (let item of this.items)
30463
- data["items"].push(item.toJSON());
30460
+ if (Array.isArray(this.parcels)) {
30461
+ data["parcels"] = [];
30462
+ for (let item of this.parcels)
30463
+ data["parcels"].push(item.toJSON());
30464
30464
  }
30465
30465
  data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : undefined;
30466
30466
  data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : undefined;
@@ -30475,7 +30475,7 @@ export class BookingDto {
30475
30475
  return data;
30476
30476
  }
30477
30477
  }
30478
- export class BookingItemDto {
30478
+ export class BookingParcelDto {
30479
30479
  constructor(data) {
30480
30480
  if (data) {
30481
30481
  for (var property in data) {
@@ -30486,13 +30486,57 @@ export class BookingItemDto {
30486
30486
  }
30487
30487
  init(_data) {
30488
30488
  if (_data) {
30489
- this.trackingId = _data["trackingId"];
30490
- this.palletNumber = _data["palletNumber"];
30491
30489
  this.parcelId = _data["parcelId"];
30492
30490
  this.parcelKind = _data["parcelKind"];
30491
+ this.partName = _data["partName"];
30492
+ this.partNumber = _data["partNumber"];
30493
+ this.quantity = _data["quantity"];
30493
30494
  this.material = _data["material"];
30494
- this.comment = _data["comment"];
30495
30495
  this.covered = _data["covered"];
30496
+ if (Array.isArray(_data["items"])) {
30497
+ this.items = [];
30498
+ for (let item of _data["items"])
30499
+ this.items.push(BookingItemDto.fromJS(item));
30500
+ }
30501
+ }
30502
+ }
30503
+ static fromJS(data) {
30504
+ data = typeof data === 'object' ? data : {};
30505
+ let result = new BookingParcelDto();
30506
+ result.init(data);
30507
+ return result;
30508
+ }
30509
+ toJSON(data) {
30510
+ data = typeof data === 'object' ? data : {};
30511
+ data["parcelId"] = this.parcelId;
30512
+ data["parcelKind"] = this.parcelKind;
30513
+ data["partName"] = this.partName;
30514
+ data["partNumber"] = this.partNumber;
30515
+ data["quantity"] = this.quantity;
30516
+ data["material"] = this.material;
30517
+ data["covered"] = this.covered;
30518
+ if (Array.isArray(this.items)) {
30519
+ data["items"] = [];
30520
+ for (let item of this.items)
30521
+ data["items"].push(item.toJSON());
30522
+ }
30523
+ return data;
30524
+ }
30525
+ }
30526
+ export class BookingItemDto {
30527
+ constructor(data) {
30528
+ if (data) {
30529
+ for (var property in data) {
30530
+ if (data.hasOwnProperty(property))
30531
+ this[property] = data[property];
30532
+ }
30533
+ }
30534
+ }
30535
+ init(_data) {
30536
+ if (_data) {
30537
+ this.trackingId = _data["trackingId"];
30538
+ this.palletNumber = _data["palletNumber"];
30539
+ this.comment = _data["comment"];
30496
30540
  this.toLocationOverride = _data["toLocationOverride"] ? LocationDto.fromJS(_data["toLocationOverride"]) : undefined;
30497
30541
  }
30498
30542
  }
@@ -30506,11 +30550,7 @@ export class BookingItemDto {
30506
30550
  data = typeof data === 'object' ? data : {};
30507
30551
  data["trackingId"] = this.trackingId;
30508
30552
  data["palletNumber"] = this.palletNumber;
30509
- data["parcelId"] = this.parcelId;
30510
- data["parcelKind"] = this.parcelKind;
30511
- data["material"] = this.material;
30512
30553
  data["comment"] = this.comment;
30513
- data["covered"] = this.covered;
30514
30554
  data["toLocationOverride"] = this.toLocationOverride ? this.toLocationOverride.toJSON() : undefined;
30515
30555
  return data;
30516
30556
  }
@@ -31092,7 +31132,7 @@ export class SearchParcelItemDto {
31092
31132
  return data;
31093
31133
  }
31094
31134
  }
31095
- export class TrackingHistoryListDto {
31135
+ export class TrackingParcelListDto {
31096
31136
  constructor(data) {
31097
31137
  if (data) {
31098
31138
  for (var property in data) {
@@ -31109,14 +31149,14 @@ export class TrackingHistoryListDto {
31109
31149
  if (Array.isArray(_data["results"])) {
31110
31150
  this.results = [];
31111
31151
  for (let item of _data["results"])
31112
- this.results.push(TrackingHistoryDto.fromJS(item));
31152
+ this.results.push(TrackingParcelDto.fromJS(item));
31113
31153
  }
31114
31154
  this.continuationToken = _data["continuationToken"];
31115
31155
  }
31116
31156
  }
31117
31157
  static fromJS(data) {
31118
31158
  data = typeof data === 'object' ? data : {};
31119
- let result = new TrackingHistoryListDto();
31159
+ let result = new TrackingParcelListDto();
31120
31160
  result.init(data);
31121
31161
  return result;
31122
31162
  }
@@ -31131,6 +31171,57 @@ export class TrackingHistoryListDto {
31131
31171
  return data;
31132
31172
  }
31133
31173
  }
31174
+ export class TrackingParcelDto {
31175
+ constructor(data) {
31176
+ if (data) {
31177
+ for (var property in data) {
31178
+ if (data.hasOwnProperty(property))
31179
+ this[property] = data[property];
31180
+ }
31181
+ }
31182
+ if (!data) {
31183
+ this.items = [];
31184
+ }
31185
+ }
31186
+ init(_data) {
31187
+ if (_data) {
31188
+ this.parcelId = _data["parcelId"];
31189
+ this.parcelKind = _data["parcelKind"];
31190
+ this.partName = _data["partName"];
31191
+ this.partNumber = _data["partNumber"];
31192
+ this.quantity = _data["quantity"];
31193
+ this.material = _data["material"];
31194
+ this.covered = _data["covered"];
31195
+ if (Array.isArray(_data["items"])) {
31196
+ this.items = [];
31197
+ for (let item of _data["items"])
31198
+ this.items.push(TrackingHistoryDto.fromJS(item));
31199
+ }
31200
+ }
31201
+ }
31202
+ static fromJS(data) {
31203
+ data = typeof data === 'object' ? data : {};
31204
+ let result = new TrackingParcelDto();
31205
+ result.init(data);
31206
+ return result;
31207
+ }
31208
+ toJSON(data) {
31209
+ data = typeof data === 'object' ? data : {};
31210
+ data["parcelId"] = this.parcelId;
31211
+ data["parcelKind"] = this.parcelKind;
31212
+ data["partName"] = this.partName;
31213
+ data["partNumber"] = this.partNumber;
31214
+ data["quantity"] = this.quantity;
31215
+ data["material"] = this.material;
31216
+ data["covered"] = this.covered;
31217
+ if (Array.isArray(this.items)) {
31218
+ data["items"] = [];
31219
+ for (let item of this.items)
31220
+ data["items"].push(item.toJSON());
31221
+ }
31222
+ return data;
31223
+ }
31224
+ }
31134
31225
  export class TrackingHistoryDto {
31135
31226
  constructor(data) {
31136
31227
  if (data) {
@@ -31147,16 +31238,13 @@ export class TrackingHistoryDto {
31147
31238
  if (_data) {
31148
31239
  this.trackingId = _data["trackingId"];
31149
31240
  this.palletNumber = _data["palletNumber"];
31150
- this.parcelKind = _data["parcelKind"];
31151
- this.parcelId = _data["parcelId"];
31241
+ this.activeBooking = _data["activeBooking"];
31152
31242
  this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
31153
31243
  if (Array.isArray(_data["trackingEvents"])) {
31154
31244
  this.trackingEvents = [];
31155
31245
  for (let item of _data["trackingEvents"])
31156
31246
  this.trackingEvents.push(TrackingEventDto.fromJS(item));
31157
31247
  }
31158
- this.material = _data["material"];
31159
- this.activeBooking = _data["activeBooking"];
31160
31248
  }
31161
31249
  }
31162
31250
  static fromJS(data) {
@@ -31169,16 +31257,13 @@ export class TrackingHistoryDto {
31169
31257
  data = typeof data === 'object' ? data : {};
31170
31258
  data["trackingId"] = this.trackingId;
31171
31259
  data["palletNumber"] = this.palletNumber;
31172
- data["parcelKind"] = this.parcelKind;
31173
- data["parcelId"] = this.parcelId;
31260
+ data["activeBooking"] = this.activeBooking;
31174
31261
  data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
31175
31262
  if (Array.isArray(this.trackingEvents)) {
31176
31263
  data["trackingEvents"] = [];
31177
31264
  for (let item of this.trackingEvents)
31178
31265
  data["trackingEvents"].push(item.toJSON());
31179
31266
  }
31180
- data["material"] = this.material;
31181
- data["activeBooking"] = this.activeBooking;
31182
31267
  return data;
31183
31268
  }
31184
31269
  }
@@ -31302,50 +31387,7 @@ export class TrackingRequestListDto {
31302
31387
  return data;
31303
31388
  }
31304
31389
  }
31305
- export class TrackingParcelDto {
31306
- constructor(data) {
31307
- if (data) {
31308
- for (var property in data) {
31309
- if (data.hasOwnProperty(property))
31310
- this[property] = data[property];
31311
- }
31312
- }
31313
- if (!data) {
31314
- this.trackingHistory = [];
31315
- }
31316
- }
31317
- init(_data) {
31318
- if (_data) {
31319
- this.parcelId = _data["parcelId"];
31320
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
31321
- if (Array.isArray(_data["trackingHistory"])) {
31322
- this.trackingHistory = [];
31323
- for (let item of _data["trackingHistory"])
31324
- this.trackingHistory.push(TrackingHistoryDto.fromJS(item));
31325
- }
31326
- this.covered = _data["covered"];
31327
- }
31328
- }
31329
- static fromJS(data) {
31330
- data = typeof data === 'object' ? data : {};
31331
- let result = new TrackingParcelDto();
31332
- result.init(data);
31333
- return result;
31334
- }
31335
- toJSON(data) {
31336
- data = typeof data === 'object' ? data : {};
31337
- data["parcelId"] = this.parcelId;
31338
- data["part"] = this.part ? this.part.toJSON() : undefined;
31339
- if (Array.isArray(this.trackingHistory)) {
31340
- data["trackingHistory"] = [];
31341
- for (let item of this.trackingHistory)
31342
- data["trackingHistory"].push(item.toJSON());
31343
- }
31344
- data["covered"] = this.covered;
31345
- return data;
31346
- }
31347
- }
31348
- export class TrackingParcelListDto {
31390
+ export class TrackingParcelRequestListDto {
31349
31391
  constructor(data) {
31350
31392
  if (data) {
31351
31393
  for (var property in data) {
@@ -31369,7 +31411,7 @@ export class TrackingParcelListDto {
31369
31411
  }
31370
31412
  static fromJS(data) {
31371
31413
  data = typeof data === 'object' ? data : {};
31372
- let result = new TrackingParcelListDto();
31414
+ let result = new TrackingParcelRequestListDto();
31373
31415
  result.init(data);
31374
31416
  return result;
31375
31417
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240823.0.10114",
3
+ "version": "20240828.0.10152",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13084,13 +13084,13 @@ export class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcels
13084
13084
 
13085
13085
  export interface IMoveTrackingClient {
13086
13086
 
13087
- listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
13087
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
13088
13088
 
13089
- getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingHistoryDto>;
13089
+ getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
13090
13090
 
13091
13091
  getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
13092
13092
 
13093
- listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]>;
13093
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]>;
13094
13094
 
13095
13095
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
13096
13096
 
@@ -13112,7 +13112,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13112
13112
  this.baseUrl = baseUrl ?? "";
13113
13113
  }
13114
13114
 
13115
- listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto> {
13115
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto> {
13116
13116
  let url_ = this.baseUrl + "/move/tracking/list";
13117
13117
  url_ = url_.replace(/[?&]$/, "");
13118
13118
 
@@ -13134,14 +13134,14 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13134
13134
  });
13135
13135
  }
13136
13136
 
13137
- protected processListTrackingHistory(response: Response): Promise<TrackingHistoryListDto> {
13137
+ protected processListTrackingHistory(response: Response): Promise<TrackingParcelListDto> {
13138
13138
  const status = response.status;
13139
13139
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13140
13140
  if (status === 200) {
13141
13141
  return response.text().then((_responseText) => {
13142
13142
  let result200: any = null;
13143
13143
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13144
- result200 = TrackingHistoryListDto.fromJS(resultData200);
13144
+ result200 = TrackingParcelListDto.fromJS(resultData200);
13145
13145
  return result200;
13146
13146
  });
13147
13147
  } else if (status !== 200 && status !== 204) {
@@ -13149,10 +13149,10 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13149
13149
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13150
13150
  });
13151
13151
  }
13152
- return Promise.resolve<TrackingHistoryListDto>(null as any);
13152
+ return Promise.resolve<TrackingParcelListDto>(null as any);
13153
13153
  }
13154
13154
 
13155
- getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingHistoryDto> {
13155
+ getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
13156
13156
  let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
13157
13157
  if (trackingId === undefined || trackingId === null)
13158
13158
  throw new Error("The parameter 'trackingId' must be defined.");
@@ -13177,14 +13177,14 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13177
13177
  });
13178
13178
  }
13179
13179
 
13180
- protected processGetTrackingHistory(response: Response): Promise<TrackingHistoryDto> {
13180
+ protected processGetTrackingHistory(response: Response): Promise<TrackingParcelDto> {
13181
13181
  const status = response.status;
13182
13182
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13183
13183
  if (status === 200) {
13184
13184
  return response.text().then((_responseText) => {
13185
13185
  let result200: any = null;
13186
13186
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13187
- result200 = TrackingHistoryDto.fromJS(resultData200);
13187
+ result200 = TrackingParcelDto.fromJS(resultData200);
13188
13188
  return result200;
13189
13189
  });
13190
13190
  } else if (status !== 200 && status !== 204) {
@@ -13192,7 +13192,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13192
13192
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13193
13193
  });
13194
13194
  }
13195
- return Promise.resolve<TrackingHistoryDto>(null as any);
13195
+ return Promise.resolve<TrackingParcelDto>(null as any);
13196
13196
  }
13197
13197
 
13198
13198
  getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
@@ -13238,7 +13238,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13238
13238
  return Promise.resolve<TrackingParcelDto>(null as any);
13239
13239
  }
13240
13240
 
13241
- listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]> {
13241
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]> {
13242
13242
  let url_ = this.baseUrl + "/move/tracking/parcel/list";
13243
13243
  url_ = url_.replace(/[?&]$/, "");
13244
13244
 
@@ -37274,7 +37274,7 @@ export class BookingDto implements IBookingDto {
37274
37274
  parcelKind!: ParcelKindDto;
37275
37275
  transportKind!: TransportKindDto;
37276
37276
  status!: BookingStatusDto;
37277
- items!: BookingItemDto[];
37277
+ parcels!: BookingParcelDto[];
37278
37278
  fromLocation!: LocationDto;
37279
37279
  toLocation!: LocationDto;
37280
37280
  created!: Date;
@@ -37294,7 +37294,7 @@ export class BookingDto implements IBookingDto {
37294
37294
  }
37295
37295
  }
37296
37296
  if (!data) {
37297
- this.items = [];
37297
+ this.parcels = [];
37298
37298
  this.fromLocation = new LocationDto();
37299
37299
  this.toLocation = new LocationDto();
37300
37300
  }
@@ -37306,10 +37306,10 @@ export class BookingDto implements IBookingDto {
37306
37306
  this.parcelKind = _data["parcelKind"];
37307
37307
  this.transportKind = _data["transportKind"];
37308
37308
  this.status = _data["status"];
37309
- if (Array.isArray(_data["items"])) {
37310
- this.items = [] as any;
37311
- for (let item of _data["items"])
37312
- this.items!.push(BookingItemDto.fromJS(item));
37309
+ if (Array.isArray(_data["parcels"])) {
37310
+ this.parcels = [] as any;
37311
+ for (let item of _data["parcels"])
37312
+ this.parcels!.push(BookingParcelDto.fromJS(item));
37313
37313
  }
37314
37314
  this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
37315
37315
  this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
@@ -37337,10 +37337,10 @@ export class BookingDto implements IBookingDto {
37337
37337
  data["parcelKind"] = this.parcelKind;
37338
37338
  data["transportKind"] = this.transportKind;
37339
37339
  data["status"] = this.status;
37340
- if (Array.isArray(this.items)) {
37341
- data["items"] = [];
37342
- for (let item of this.items)
37343
- data["items"].push(item.toJSON());
37340
+ if (Array.isArray(this.parcels)) {
37341
+ data["parcels"] = [];
37342
+ for (let item of this.parcels)
37343
+ data["parcels"].push(item.toJSON());
37344
37344
  }
37345
37345
  data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : <any>undefined;
37346
37346
  data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : <any>undefined;
@@ -37361,7 +37361,7 @@ export interface IBookingDto {
37361
37361
  parcelKind: ParcelKindDto;
37362
37362
  transportKind: TransportKindDto;
37363
37363
  status: BookingStatusDto;
37364
- items: BookingItemDto[];
37364
+ parcels: BookingParcelDto[];
37365
37365
  fromLocation: LocationDto;
37366
37366
  toLocation: LocationDto;
37367
37367
  created: Date;
@@ -37380,14 +37380,84 @@ export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoading
37380
37380
 
37381
37381
  export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Completed";
37382
37382
 
37383
- export class BookingItemDto implements IBookingItemDto {
37384
- trackingId!: string;
37385
- palletNumber!: number;
37383
+ export class BookingParcelDto implements IBookingParcelDto {
37386
37384
  parcelId!: string;
37387
37385
  parcelKind!: ParcelKindDto;
37386
+ partName?: string | null;
37387
+ partNumber?: string | null;
37388
+ quantity?: number | null;
37388
37389
  material?: string | null;
37389
- comment?: string | null;
37390
37390
  covered!: MaterialCoveredDto;
37391
+ items?: BookingItemDto[];
37392
+
37393
+ constructor(data?: IBookingParcelDto) {
37394
+ if (data) {
37395
+ for (var property in data) {
37396
+ if (data.hasOwnProperty(property))
37397
+ (<any>this)[property] = (<any>data)[property];
37398
+ }
37399
+ }
37400
+ }
37401
+
37402
+ init(_data?: any) {
37403
+ if (_data) {
37404
+ this.parcelId = _data["parcelId"];
37405
+ this.parcelKind = _data["parcelKind"];
37406
+ this.partName = _data["partName"];
37407
+ this.partNumber = _data["partNumber"];
37408
+ this.quantity = _data["quantity"];
37409
+ this.material = _data["material"];
37410
+ this.covered = _data["covered"];
37411
+ if (Array.isArray(_data["items"])) {
37412
+ this.items = [] as any;
37413
+ for (let item of _data["items"])
37414
+ this.items!.push(BookingItemDto.fromJS(item));
37415
+ }
37416
+ }
37417
+ }
37418
+
37419
+ static fromJS(data: any): BookingParcelDto {
37420
+ data = typeof data === 'object' ? data : {};
37421
+ let result = new BookingParcelDto();
37422
+ result.init(data);
37423
+ return result;
37424
+ }
37425
+
37426
+ toJSON(data?: any) {
37427
+ data = typeof data === 'object' ? data : {};
37428
+ data["parcelId"] = this.parcelId;
37429
+ data["parcelKind"] = this.parcelKind;
37430
+ data["partName"] = this.partName;
37431
+ data["partNumber"] = this.partNumber;
37432
+ data["quantity"] = this.quantity;
37433
+ data["material"] = this.material;
37434
+ data["covered"] = this.covered;
37435
+ if (Array.isArray(this.items)) {
37436
+ data["items"] = [];
37437
+ for (let item of this.items)
37438
+ data["items"].push(item.toJSON());
37439
+ }
37440
+ return data;
37441
+ }
37442
+ }
37443
+
37444
+ export interface IBookingParcelDto {
37445
+ parcelId: string;
37446
+ parcelKind: ParcelKindDto;
37447
+ partName?: string | null;
37448
+ partNumber?: string | null;
37449
+ quantity?: number | null;
37450
+ material?: string | null;
37451
+ covered: MaterialCoveredDto;
37452
+ items?: BookingItemDto[];
37453
+ }
37454
+
37455
+ export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
37456
+
37457
+ export class BookingItemDto implements IBookingItemDto {
37458
+ trackingId!: string;
37459
+ palletNumber!: number;
37460
+ comment?: string | null;
37391
37461
  toLocationOverride?: LocationDto | null;
37392
37462
 
37393
37463
  constructor(data?: IBookingItemDto) {
@@ -37403,11 +37473,7 @@ export class BookingItemDto implements IBookingItemDto {
37403
37473
  if (_data) {
37404
37474
  this.trackingId = _data["trackingId"];
37405
37475
  this.palletNumber = _data["palletNumber"];
37406
- this.parcelId = _data["parcelId"];
37407
- this.parcelKind = _data["parcelKind"];
37408
- this.material = _data["material"];
37409
37476
  this.comment = _data["comment"];
37410
- this.covered = _data["covered"];
37411
37477
  this.toLocationOverride = _data["toLocationOverride"] ? LocationDto.fromJS(_data["toLocationOverride"]) : <any>undefined;
37412
37478
  }
37413
37479
  }
@@ -37423,11 +37489,7 @@ export class BookingItemDto implements IBookingItemDto {
37423
37489
  data = typeof data === 'object' ? data : {};
37424
37490
  data["trackingId"] = this.trackingId;
37425
37491
  data["palletNumber"] = this.palletNumber;
37426
- data["parcelId"] = this.parcelId;
37427
- data["parcelKind"] = this.parcelKind;
37428
- data["material"] = this.material;
37429
37492
  data["comment"] = this.comment;
37430
- data["covered"] = this.covered;
37431
37493
  data["toLocationOverride"] = this.toLocationOverride ? this.toLocationOverride.toJSON() : <any>undefined;
37432
37494
  return data;
37433
37495
  }
@@ -37436,16 +37498,10 @@ export class BookingItemDto implements IBookingItemDto {
37436
37498
  export interface IBookingItemDto {
37437
37499
  trackingId: string;
37438
37500
  palletNumber: number;
37439
- parcelId: string;
37440
- parcelKind: ParcelKindDto;
37441
- material?: string | null;
37442
37501
  comment?: string | null;
37443
- covered: MaterialCoveredDto;
37444
37502
  toLocationOverride?: LocationDto | null;
37445
37503
  }
37446
37504
 
37447
- export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
37448
-
37449
37505
  export class LocationDto implements ILocationDto {
37450
37506
  locationId!: string;
37451
37507
  locationName!: string;
@@ -38265,11 +38321,11 @@ export interface ISearchParcelItemDto {
38265
38321
  selected: boolean;
38266
38322
  }
38267
38323
 
38268
- export class TrackingHistoryListDto implements ITrackingHistoryListDto {
38269
- results!: TrackingHistoryDto[];
38324
+ export class TrackingParcelListDto implements ITrackingParcelListDto {
38325
+ results!: TrackingParcelDto[];
38270
38326
  continuationToken?: string | null;
38271
38327
 
38272
- constructor(data?: ITrackingHistoryListDto) {
38328
+ constructor(data?: ITrackingParcelListDto) {
38273
38329
  if (data) {
38274
38330
  for (var property in data) {
38275
38331
  if (data.hasOwnProperty(property))
@@ -38286,15 +38342,15 @@ export class TrackingHistoryListDto implements ITrackingHistoryListDto {
38286
38342
  if (Array.isArray(_data["results"])) {
38287
38343
  this.results = [] as any;
38288
38344
  for (let item of _data["results"])
38289
- this.results!.push(TrackingHistoryDto.fromJS(item));
38345
+ this.results!.push(TrackingParcelDto.fromJS(item));
38290
38346
  }
38291
38347
  this.continuationToken = _data["continuationToken"];
38292
38348
  }
38293
38349
  }
38294
38350
 
38295
- static fromJS(data: any): TrackingHistoryListDto {
38351
+ static fromJS(data: any): TrackingParcelListDto {
38296
38352
  data = typeof data === 'object' ? data : {};
38297
- let result = new TrackingHistoryListDto();
38353
+ let result = new TrackingParcelListDto();
38298
38354
  result.init(data);
38299
38355
  return result;
38300
38356
  }
@@ -38311,20 +38367,92 @@ export class TrackingHistoryListDto implements ITrackingHistoryListDto {
38311
38367
  }
38312
38368
  }
38313
38369
 
38314
- export interface ITrackingHistoryListDto {
38315
- results: TrackingHistoryDto[];
38370
+ export interface ITrackingParcelListDto {
38371
+ results: TrackingParcelDto[];
38316
38372
  continuationToken?: string | null;
38317
38373
  }
38318
38374
 
38375
+ export class TrackingParcelDto implements ITrackingParcelDto {
38376
+ parcelId!: string;
38377
+ parcelKind!: ParcelKindDto;
38378
+ partName?: string | null;
38379
+ partNumber?: string | null;
38380
+ quantity?: number | null;
38381
+ material?: string | null;
38382
+ covered?: MaterialCoveredDto | null;
38383
+ items!: TrackingHistoryDto[];
38384
+
38385
+ constructor(data?: ITrackingParcelDto) {
38386
+ if (data) {
38387
+ for (var property in data) {
38388
+ if (data.hasOwnProperty(property))
38389
+ (<any>this)[property] = (<any>data)[property];
38390
+ }
38391
+ }
38392
+ if (!data) {
38393
+ this.items = [];
38394
+ }
38395
+ }
38396
+
38397
+ init(_data?: any) {
38398
+ if (_data) {
38399
+ this.parcelId = _data["parcelId"];
38400
+ this.parcelKind = _data["parcelKind"];
38401
+ this.partName = _data["partName"];
38402
+ this.partNumber = _data["partNumber"];
38403
+ this.quantity = _data["quantity"];
38404
+ this.material = _data["material"];
38405
+ this.covered = _data["covered"];
38406
+ if (Array.isArray(_data["items"])) {
38407
+ this.items = [] as any;
38408
+ for (let item of _data["items"])
38409
+ this.items!.push(TrackingHistoryDto.fromJS(item));
38410
+ }
38411
+ }
38412
+ }
38413
+
38414
+ static fromJS(data: any): TrackingParcelDto {
38415
+ data = typeof data === 'object' ? data : {};
38416
+ let result = new TrackingParcelDto();
38417
+ result.init(data);
38418
+ return result;
38419
+ }
38420
+
38421
+ toJSON(data?: any) {
38422
+ data = typeof data === 'object' ? data : {};
38423
+ data["parcelId"] = this.parcelId;
38424
+ data["parcelKind"] = this.parcelKind;
38425
+ data["partName"] = this.partName;
38426
+ data["partNumber"] = this.partNumber;
38427
+ data["quantity"] = this.quantity;
38428
+ data["material"] = this.material;
38429
+ data["covered"] = this.covered;
38430
+ if (Array.isArray(this.items)) {
38431
+ data["items"] = [];
38432
+ for (let item of this.items)
38433
+ data["items"].push(item.toJSON());
38434
+ }
38435
+ return data;
38436
+ }
38437
+ }
38438
+
38439
+ export interface ITrackingParcelDto {
38440
+ parcelId: string;
38441
+ parcelKind: ParcelKindDto;
38442
+ partName?: string | null;
38443
+ partNumber?: string | null;
38444
+ quantity?: number | null;
38445
+ material?: string | null;
38446
+ covered?: MaterialCoveredDto | null;
38447
+ items: TrackingHistoryDto[];
38448
+ }
38449
+
38319
38450
  export class TrackingHistoryDto implements ITrackingHistoryDto {
38320
38451
  trackingId!: string;
38321
38452
  palletNumber!: number;
38322
- parcelKind!: ParcelKindDto;
38323
- parcelId!: string;
38453
+ activeBooking?: boolean | null;
38324
38454
  currentTracking?: TrackingEventDto | null;
38325
38455
  trackingEvents!: TrackingEventDto[];
38326
- material?: string | null;
38327
- activeBooking?: boolean | null;
38328
38456
 
38329
38457
  constructor(data?: ITrackingHistoryDto) {
38330
38458
  if (data) {
@@ -38342,16 +38470,13 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38342
38470
  if (_data) {
38343
38471
  this.trackingId = _data["trackingId"];
38344
38472
  this.palletNumber = _data["palletNumber"];
38345
- this.parcelKind = _data["parcelKind"];
38346
- this.parcelId = _data["parcelId"];
38473
+ this.activeBooking = _data["activeBooking"];
38347
38474
  this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : <any>undefined;
38348
38475
  if (Array.isArray(_data["trackingEvents"])) {
38349
38476
  this.trackingEvents = [] as any;
38350
38477
  for (let item of _data["trackingEvents"])
38351
38478
  this.trackingEvents!.push(TrackingEventDto.fromJS(item));
38352
38479
  }
38353
- this.material = _data["material"];
38354
- this.activeBooking = _data["activeBooking"];
38355
38480
  }
38356
38481
  }
38357
38482
 
@@ -38366,16 +38491,13 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38366
38491
  data = typeof data === 'object' ? data : {};
38367
38492
  data["trackingId"] = this.trackingId;
38368
38493
  data["palletNumber"] = this.palletNumber;
38369
- data["parcelKind"] = this.parcelKind;
38370
- data["parcelId"] = this.parcelId;
38494
+ data["activeBooking"] = this.activeBooking;
38371
38495
  data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : <any>undefined;
38372
38496
  if (Array.isArray(this.trackingEvents)) {
38373
38497
  data["trackingEvents"] = [];
38374
38498
  for (let item of this.trackingEvents)
38375
38499
  data["trackingEvents"].push(item.toJSON());
38376
38500
  }
38377
- data["material"] = this.material;
38378
- data["activeBooking"] = this.activeBooking;
38379
38501
  return data;
38380
38502
  }
38381
38503
  }
@@ -38383,12 +38505,9 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38383
38505
  export interface ITrackingHistoryDto {
38384
38506
  trackingId: string;
38385
38507
  palletNumber: number;
38386
- parcelKind: ParcelKindDto;
38387
- parcelId: string;
38508
+ activeBooking?: boolean | null;
38388
38509
  currentTracking?: TrackingEventDto | null;
38389
38510
  trackingEvents: TrackingEventDto[];
38390
- material?: string | null;
38391
- activeBooking?: boolean | null;
38392
38511
  }
38393
38512
 
38394
38513
  export class TrackingEventDto implements ITrackingEventDto {
@@ -38561,70 +38680,11 @@ export interface ITrackingRequestListDto {
38561
38680
  continuationToken?: string | null;
38562
38681
  }
38563
38682
 
38564
- export class TrackingParcelDto implements ITrackingParcelDto {
38565
- parcelId!: string;
38566
- part?: PartDto | null;
38567
- trackingHistory!: TrackingHistoryDto[];
38568
- covered!: MaterialCoveredDto;
38569
-
38570
- constructor(data?: ITrackingParcelDto) {
38571
- if (data) {
38572
- for (var property in data) {
38573
- if (data.hasOwnProperty(property))
38574
- (<any>this)[property] = (<any>data)[property];
38575
- }
38576
- }
38577
- if (!data) {
38578
- this.trackingHistory = [];
38579
- }
38580
- }
38581
-
38582
- init(_data?: any) {
38583
- if (_data) {
38584
- this.parcelId = _data["parcelId"];
38585
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
38586
- if (Array.isArray(_data["trackingHistory"])) {
38587
- this.trackingHistory = [] as any;
38588
- for (let item of _data["trackingHistory"])
38589
- this.trackingHistory!.push(TrackingHistoryDto.fromJS(item));
38590
- }
38591
- this.covered = _data["covered"];
38592
- }
38593
- }
38594
-
38595
- static fromJS(data: any): TrackingParcelDto {
38596
- data = typeof data === 'object' ? data : {};
38597
- let result = new TrackingParcelDto();
38598
- result.init(data);
38599
- return result;
38600
- }
38601
-
38602
- toJSON(data?: any) {
38603
- data = typeof data === 'object' ? data : {};
38604
- data["parcelId"] = this.parcelId;
38605
- data["part"] = this.part ? this.part.toJSON() : <any>undefined;
38606
- if (Array.isArray(this.trackingHistory)) {
38607
- data["trackingHistory"] = [];
38608
- for (let item of this.trackingHistory)
38609
- data["trackingHistory"].push(item.toJSON());
38610
- }
38611
- data["covered"] = this.covered;
38612
- return data;
38613
- }
38614
- }
38615
-
38616
- export interface ITrackingParcelDto {
38617
- parcelId: string;
38618
- part?: PartDto | null;
38619
- trackingHistory: TrackingHistoryDto[];
38620
- covered: MaterialCoveredDto;
38621
- }
38622
-
38623
- export class TrackingParcelListDto implements ITrackingParcelListDto {
38683
+ export class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
38624
38684
  parcelIds!: string[];
38625
38685
  includeActiveBookings!: boolean;
38626
38686
 
38627
- constructor(data?: ITrackingParcelListDto) {
38687
+ constructor(data?: ITrackingParcelRequestListDto) {
38628
38688
  if (data) {
38629
38689
  for (var property in data) {
38630
38690
  if (data.hasOwnProperty(property))
@@ -38647,9 +38707,9 @@ export class TrackingParcelListDto implements ITrackingParcelListDto {
38647
38707
  }
38648
38708
  }
38649
38709
 
38650
- static fromJS(data: any): TrackingParcelListDto {
38710
+ static fromJS(data: any): TrackingParcelRequestListDto {
38651
38711
  data = typeof data === 'object' ? data : {};
38652
- let result = new TrackingParcelListDto();
38712
+ let result = new TrackingParcelRequestListDto();
38653
38713
  result.init(data);
38654
38714
  return result;
38655
38715
  }
@@ -38666,7 +38726,7 @@ export class TrackingParcelListDto implements ITrackingParcelListDto {
38666
38726
  }
38667
38727
  }
38668
38728
 
38669
- export interface ITrackingParcelListDto {
38729
+ export interface ITrackingParcelRequestListDto {
38670
38730
  parcelIds: string[];
38671
38731
  includeActiveBookings: boolean;
38672
38732
  }