@ignos/api-client 20251021.0.12920 → 20251021.0.12930

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.
@@ -9698,6 +9698,8 @@ export declare class BookingParcelDto implements IBookingParcelDto {
9698
9698
  parcelKind: ParcelKindDto;
9699
9699
  partName?: string | null;
9700
9700
  partNumber?: string | null;
9701
+ projectId?: string | null;
9702
+ projectName?: string | null;
9701
9703
  quantity?: number | null;
9702
9704
  material?: string | null;
9703
9705
  materialOperation?: number | null;
@@ -9718,6 +9720,8 @@ export interface IBookingParcelDto {
9718
9720
  parcelKind: ParcelKindDto;
9719
9721
  partName?: string | null;
9720
9722
  partNumber?: string | null;
9723
+ projectId?: string | null;
9724
+ projectName?: string | null;
9721
9725
  quantity?: number | null;
9722
9726
  material?: string | null;
9723
9727
  materialOperation?: number | null;
@@ -9735,7 +9739,6 @@ export declare class BookingItemDto implements IBookingItemDto {
9735
9739
  palletNumber: number;
9736
9740
  comment?: string | null;
9737
9741
  category?: string | null;
9738
- trackingHistory?: TrackingHistoryDto | null;
9739
9742
  constructor(data?: IBookingItemDto);
9740
9743
  init(_data?: any): void;
9741
9744
  static fromJS(data: any): BookingItemDto;
@@ -9746,61 +9749,6 @@ export interface IBookingItemDto {
9746
9749
  palletNumber: number;
9747
9750
  comment?: string | null;
9748
9751
  category?: string | null;
9749
- trackingHistory?: TrackingHistoryDto | null;
9750
- }
9751
- export declare class TrackingHistoryDto implements ITrackingHistoryDto {
9752
- trackingId: string;
9753
- palletNumber: number;
9754
- activeBooking?: boolean | null;
9755
- materialOperation?: number | null;
9756
- materialLine?: number | null;
9757
- materialPartName?: string | null;
9758
- materialPartNumber?: string | null;
9759
- category?: string | null;
9760
- currentTracking?: TrackingEventDto | null;
9761
- trackingEvents: TrackingEventDto[];
9762
- suggestions?: SuggestionsItemDto | null;
9763
- constructor(data?: ITrackingHistoryDto);
9764
- init(_data?: any): void;
9765
- static fromJS(data: any): TrackingHistoryDto;
9766
- toJSON(data?: any): any;
9767
- }
9768
- export interface ITrackingHistoryDto {
9769
- trackingId: string;
9770
- palletNumber: number;
9771
- activeBooking?: boolean | null;
9772
- materialOperation?: number | null;
9773
- materialLine?: number | null;
9774
- materialPartName?: string | null;
9775
- materialPartNumber?: string | null;
9776
- category?: string | null;
9777
- currentTracking?: TrackingEventDto | null;
9778
- trackingEvents: TrackingEventDto[];
9779
- suggestions?: SuggestionsItemDto | null;
9780
- }
9781
- export declare class TrackingEventDto implements ITrackingEventDto {
9782
- id: number;
9783
- created: Date;
9784
- createdBy: string;
9785
- createdById: string;
9786
- location?: LocationDto | null;
9787
- status: TrackingStatusDto;
9788
- bookingId?: string | null;
9789
- comment?: string | null;
9790
- constructor(data?: ITrackingEventDto);
9791
- init(_data?: any): void;
9792
- static fromJS(data: any): TrackingEventDto;
9793
- toJSON(data?: any): any;
9794
- }
9795
- export interface ITrackingEventDto {
9796
- id: number;
9797
- created: Date;
9798
- createdBy: string;
9799
- createdById: string;
9800
- location?: LocationDto | null;
9801
- status: TrackingStatusDto;
9802
- bookingId?: string | null;
9803
- comment?: string | null;
9804
9752
  }
9805
9753
  export declare class LocationDto implements ILocationDto {
9806
9754
  locationId: string;
@@ -9823,25 +9771,6 @@ export interface ILocationDto {
9823
9771
  profile?: string | null;
9824
9772
  }
9825
9773
  export type LocationKindDto = "Warehouse" | "Zone" | "Location";
9826
- export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress" | "Completed" | "Created";
9827
- export declare class SuggestionsItemDto implements ISuggestionsItemDto {
9828
- trackingId?: string | null;
9829
- fromAutoFill?: LocationDto | null;
9830
- toAutoFill?: LocationDto | null;
9831
- fromSuggestions: LocationDto[];
9832
- toSuggestions: LocationDto[];
9833
- constructor(data?: ISuggestionsItemDto);
9834
- init(_data?: any): void;
9835
- static fromJS(data: any): SuggestionsItemDto;
9836
- toJSON(data?: any): any;
9837
- }
9838
- export interface ISuggestionsItemDto {
9839
- trackingId?: string | null;
9840
- fromAutoFill?: LocationDto | null;
9841
- toAutoFill?: LocationDto | null;
9842
- fromSuggestions: LocationDto[];
9843
- toSuggestions: LocationDto[];
9844
- }
9845
9774
  export declare class BookingRequestListDto implements IBookingRequestListDto {
9846
9775
  pageSize?: number | null;
9847
9776
  parcelIdFilter?: string[] | null;
@@ -10140,6 +10069,24 @@ export interface ISuggestionsParcelDto {
10140
10069
  parcelId: string;
10141
10070
  items: SuggestionsItemDto[];
10142
10071
  }
10072
+ export declare class SuggestionsItemDto implements ISuggestionsItemDto {
10073
+ trackingId?: string | null;
10074
+ fromAutoFill?: LocationDto | null;
10075
+ toAutoFill?: LocationDto | null;
10076
+ fromSuggestions: LocationDto[];
10077
+ toSuggestions: LocationDto[];
10078
+ constructor(data?: ISuggestionsItemDto);
10079
+ init(_data?: any): void;
10080
+ static fromJS(data: any): SuggestionsItemDto;
10081
+ toJSON(data?: any): any;
10082
+ }
10083
+ export interface ISuggestionsItemDto {
10084
+ trackingId?: string | null;
10085
+ fromAutoFill?: LocationDto | null;
10086
+ toAutoFill?: LocationDto | null;
10087
+ fromSuggestions: LocationDto[];
10088
+ toSuggestions: LocationDto[];
10089
+ }
10143
10090
  export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
10144
10091
  export declare class SuggestionsMaterialItemDto implements ISuggestionsMaterialItemDto {
10145
10092
  lineNumber: number;
@@ -10349,6 +10296,8 @@ export declare class TrackingParcelDto implements ITrackingParcelDto {
10349
10296
  parcelKind: ParcelKindDto;
10350
10297
  partName?: string | null;
10351
10298
  partNumber?: string | null;
10299
+ projectId?: string | null;
10300
+ projectName?: string | null;
10352
10301
  quantity?: number | null;
10353
10302
  material?: string | null;
10354
10303
  covered?: MaterialCoveredDto | null;
@@ -10364,12 +10313,69 @@ export interface ITrackingParcelDto {
10364
10313
  parcelKind: ParcelKindDto;
10365
10314
  partName?: string | null;
10366
10315
  partNumber?: string | null;
10316
+ projectId?: string | null;
10317
+ projectName?: string | null;
10367
10318
  quantity?: number | null;
10368
10319
  material?: string | null;
10369
10320
  covered?: MaterialCoveredDto | null;
10370
10321
  items: TrackingHistoryDto[];
10371
10322
  materialItems: TrackingHistoryDto[];
10372
10323
  }
10324
+ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
10325
+ trackingId: string;
10326
+ palletNumber: number;
10327
+ activeBooking?: boolean | null;
10328
+ materialOperation?: number | null;
10329
+ materialLine?: number | null;
10330
+ materialPartName?: string | null;
10331
+ materialPartNumber?: string | null;
10332
+ category?: string | null;
10333
+ currentTracking?: TrackingEventDto | null;
10334
+ trackingEvents: TrackingEventDto[];
10335
+ suggestions?: SuggestionsItemDto | null;
10336
+ constructor(data?: ITrackingHistoryDto);
10337
+ init(_data?: any): void;
10338
+ static fromJS(data: any): TrackingHistoryDto;
10339
+ toJSON(data?: any): any;
10340
+ }
10341
+ export interface ITrackingHistoryDto {
10342
+ trackingId: string;
10343
+ palletNumber: number;
10344
+ activeBooking?: boolean | null;
10345
+ materialOperation?: number | null;
10346
+ materialLine?: number | null;
10347
+ materialPartName?: string | null;
10348
+ materialPartNumber?: string | null;
10349
+ category?: string | null;
10350
+ currentTracking?: TrackingEventDto | null;
10351
+ trackingEvents: TrackingEventDto[];
10352
+ suggestions?: SuggestionsItemDto | null;
10353
+ }
10354
+ export declare class TrackingEventDto implements ITrackingEventDto {
10355
+ id: number;
10356
+ created: Date;
10357
+ createdBy: string;
10358
+ createdById: string;
10359
+ location?: LocationDto | null;
10360
+ status: TrackingStatusDto;
10361
+ bookingId?: string | null;
10362
+ comment?: string | null;
10363
+ constructor(data?: ITrackingEventDto);
10364
+ init(_data?: any): void;
10365
+ static fromJS(data: any): TrackingEventDto;
10366
+ toJSON(data?: any): any;
10367
+ }
10368
+ export interface ITrackingEventDto {
10369
+ id: number;
10370
+ created: Date;
10371
+ createdBy: string;
10372
+ createdById: string;
10373
+ location?: LocationDto | null;
10374
+ status: TrackingStatusDto;
10375
+ bookingId?: string | null;
10376
+ comment?: string | null;
10377
+ }
10378
+ export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress" | "Completed" | "Created";
10373
10379
  export declare class TrackingRequestListDto implements ITrackingRequestListDto {
10374
10380
  pageSize?: number | null;
10375
10381
  parcelIdFilter?: string[] | null;
@@ -10411,6 +10417,8 @@ export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlat
10411
10417
  parcelKind: ParcelKindDto;
10412
10418
  partName?: string | null;
10413
10419
  partNumber?: string | null;
10420
+ projectId?: string | null;
10421
+ projectName?: string | null;
10414
10422
  quantity?: number | null;
10415
10423
  material?: string | null;
10416
10424
  covered?: MaterialCoveredDto | null;
@@ -10434,6 +10442,8 @@ export interface ITrackingHistoryFlattenedDto {
10434
10442
  parcelKind: ParcelKindDto;
10435
10443
  partName?: string | null;
10436
10444
  partNumber?: string | null;
10445
+ projectId?: string | null;
10446
+ projectName?: string | null;
10437
10447
  quantity?: number | null;
10438
10448
  material?: string | null;
10439
10449
  covered?: MaterialCoveredDto | null;
@@ -37600,6 +37600,8 @@ export class BookingParcelDto {
37600
37600
  this.parcelKind = _data["parcelKind"];
37601
37601
  this.partName = _data["partName"];
37602
37602
  this.partNumber = _data["partNumber"];
37603
+ this.projectId = _data["projectId"];
37604
+ this.projectName = _data["projectName"];
37603
37605
  this.quantity = _data["quantity"];
37604
37606
  this.material = _data["material"];
37605
37607
  this.materialOperation = _data["materialOperation"];
@@ -37624,6 +37626,8 @@ export class BookingParcelDto {
37624
37626
  data["parcelKind"] = this.parcelKind;
37625
37627
  data["partName"] = this.partName;
37626
37628
  data["partNumber"] = this.partNumber;
37629
+ data["projectId"] = this.projectId;
37630
+ data["projectName"] = this.projectName;
37627
37631
  data["quantity"] = this.quantity;
37628
37632
  data["material"] = this.material;
37629
37633
  data["materialOperation"] = this.materialOperation;
@@ -37652,7 +37656,6 @@ export class BookingItemDto {
37652
37656
  this.palletNumber = _data["palletNumber"];
37653
37657
  this.comment = _data["comment"];
37654
37658
  this.category = _data["category"];
37655
- this.trackingHistory = _data["trackingHistory"] ? TrackingHistoryDto.fromJS(_data["trackingHistory"]) : undefined;
37656
37659
  }
37657
37660
  }
37658
37661
  static fromJS(data) {
@@ -37667,104 +37670,6 @@ export class BookingItemDto {
37667
37670
  data["palletNumber"] = this.palletNumber;
37668
37671
  data["comment"] = this.comment;
37669
37672
  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;
37768
37673
  return data;
37769
37674
  }
37770
37675
  }
@@ -37804,60 +37709,6 @@ export class LocationDto {
37804
37709
  return data;
37805
37710
  }
37806
37711
  }
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
- }
37861
37712
  export class BookingRequestListDto {
37862
37713
  constructor(data) {
37863
37714
  if (data) {
@@ -38641,6 +38492,60 @@ export class SuggestionsParcelDto {
38641
38492
  return data;
38642
38493
  }
38643
38494
  }
38495
+ export class SuggestionsItemDto {
38496
+ constructor(data) {
38497
+ if (data) {
38498
+ for (var property in data) {
38499
+ if (data.hasOwnProperty(property))
38500
+ this[property] = data[property];
38501
+ }
38502
+ }
38503
+ if (!data) {
38504
+ this.fromSuggestions = [];
38505
+ this.toSuggestions = [];
38506
+ }
38507
+ }
38508
+ init(_data) {
38509
+ if (_data) {
38510
+ this.trackingId = _data["trackingId"];
38511
+ this.fromAutoFill = _data["fromAutoFill"] ? LocationDto.fromJS(_data["fromAutoFill"]) : undefined;
38512
+ this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : undefined;
38513
+ if (Array.isArray(_data["fromSuggestions"])) {
38514
+ this.fromSuggestions = [];
38515
+ for (let item of _data["fromSuggestions"])
38516
+ this.fromSuggestions.push(LocationDto.fromJS(item));
38517
+ }
38518
+ if (Array.isArray(_data["toSuggestions"])) {
38519
+ this.toSuggestions = [];
38520
+ for (let item of _data["toSuggestions"])
38521
+ this.toSuggestions.push(LocationDto.fromJS(item));
38522
+ }
38523
+ }
38524
+ }
38525
+ static fromJS(data) {
38526
+ data = typeof data === 'object' ? data : {};
38527
+ let result = new SuggestionsItemDto();
38528
+ result.init(data);
38529
+ return result;
38530
+ }
38531
+ toJSON(data) {
38532
+ data = typeof data === 'object' ? data : {};
38533
+ data["trackingId"] = this.trackingId;
38534
+ data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : undefined;
38535
+ data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : undefined;
38536
+ if (Array.isArray(this.fromSuggestions)) {
38537
+ data["fromSuggestions"] = [];
38538
+ for (let item of this.fromSuggestions)
38539
+ data["fromSuggestions"].push(item ? item.toJSON() : undefined);
38540
+ }
38541
+ if (Array.isArray(this.toSuggestions)) {
38542
+ data["toSuggestions"] = [];
38543
+ for (let item of this.toSuggestions)
38544
+ data["toSuggestions"].push(item ? item.toJSON() : undefined);
38545
+ }
38546
+ return data;
38547
+ }
38548
+ }
38644
38549
  export class SuggestionsMaterialItemDto {
38645
38550
  constructor(data) {
38646
38551
  if (data) {
@@ -39152,6 +39057,8 @@ export class TrackingParcelDto {
39152
39057
  this.parcelKind = _data["parcelKind"];
39153
39058
  this.partName = _data["partName"];
39154
39059
  this.partNumber = _data["partNumber"];
39060
+ this.projectId = _data["projectId"];
39061
+ this.projectName = _data["projectName"];
39155
39062
  this.quantity = _data["quantity"];
39156
39063
  this.material = _data["material"];
39157
39064
  this.covered = _data["covered"];
@@ -39179,6 +39086,8 @@ export class TrackingParcelDto {
39179
39086
  data["parcelKind"] = this.parcelKind;
39180
39087
  data["partName"] = this.partName;
39181
39088
  data["partNumber"] = this.partNumber;
39089
+ data["projectId"] = this.projectId;
39090
+ data["projectName"] = this.projectName;
39182
39091
  data["quantity"] = this.quantity;
39183
39092
  data["material"] = this.material;
39184
39093
  data["covered"] = this.covered;
@@ -39195,6 +39104,103 @@ export class TrackingParcelDto {
39195
39104
  return data;
39196
39105
  }
39197
39106
  }
39107
+ export class TrackingHistoryDto {
39108
+ constructor(data) {
39109
+ if (data) {
39110
+ for (var property in data) {
39111
+ if (data.hasOwnProperty(property))
39112
+ this[property] = data[property];
39113
+ }
39114
+ }
39115
+ if (!data) {
39116
+ this.trackingEvents = [];
39117
+ }
39118
+ }
39119
+ init(_data) {
39120
+ if (_data) {
39121
+ this.trackingId = _data["trackingId"];
39122
+ this.palletNumber = _data["palletNumber"];
39123
+ this.activeBooking = _data["activeBooking"];
39124
+ this.materialOperation = _data["materialOperation"];
39125
+ this.materialLine = _data["materialLine"];
39126
+ this.materialPartName = _data["materialPartName"];
39127
+ this.materialPartNumber = _data["materialPartNumber"];
39128
+ this.category = _data["category"];
39129
+ this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
39130
+ if (Array.isArray(_data["trackingEvents"])) {
39131
+ this.trackingEvents = [];
39132
+ for (let item of _data["trackingEvents"])
39133
+ this.trackingEvents.push(TrackingEventDto.fromJS(item));
39134
+ }
39135
+ this.suggestions = _data["suggestions"] ? SuggestionsItemDto.fromJS(_data["suggestions"]) : undefined;
39136
+ }
39137
+ }
39138
+ static fromJS(data) {
39139
+ data = typeof data === 'object' ? data : {};
39140
+ let result = new TrackingHistoryDto();
39141
+ result.init(data);
39142
+ return result;
39143
+ }
39144
+ toJSON(data) {
39145
+ data = typeof data === 'object' ? data : {};
39146
+ data["trackingId"] = this.trackingId;
39147
+ data["palletNumber"] = this.palletNumber;
39148
+ data["activeBooking"] = this.activeBooking;
39149
+ data["materialOperation"] = this.materialOperation;
39150
+ data["materialLine"] = this.materialLine;
39151
+ data["materialPartName"] = this.materialPartName;
39152
+ data["materialPartNumber"] = this.materialPartNumber;
39153
+ data["category"] = this.category;
39154
+ data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
39155
+ if (Array.isArray(this.trackingEvents)) {
39156
+ data["trackingEvents"] = [];
39157
+ for (let item of this.trackingEvents)
39158
+ data["trackingEvents"].push(item ? item.toJSON() : undefined);
39159
+ }
39160
+ data["suggestions"] = this.suggestions ? this.suggestions.toJSON() : undefined;
39161
+ return data;
39162
+ }
39163
+ }
39164
+ export class TrackingEventDto {
39165
+ constructor(data) {
39166
+ if (data) {
39167
+ for (var property in data) {
39168
+ if (data.hasOwnProperty(property))
39169
+ this[property] = data[property];
39170
+ }
39171
+ }
39172
+ }
39173
+ init(_data) {
39174
+ if (_data) {
39175
+ this.id = _data["id"];
39176
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
39177
+ this.createdBy = _data["createdBy"];
39178
+ this.createdById = _data["createdById"];
39179
+ this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : undefined;
39180
+ this.status = _data["status"];
39181
+ this.bookingId = _data["bookingId"];
39182
+ this.comment = _data["comment"];
39183
+ }
39184
+ }
39185
+ static fromJS(data) {
39186
+ data = typeof data === 'object' ? data : {};
39187
+ let result = new TrackingEventDto();
39188
+ result.init(data);
39189
+ return result;
39190
+ }
39191
+ toJSON(data) {
39192
+ data = typeof data === 'object' ? data : {};
39193
+ data["id"] = this.id;
39194
+ data["created"] = this.created ? this.created.toISOString() : undefined;
39195
+ data["createdBy"] = this.createdBy;
39196
+ data["createdById"] = this.createdById;
39197
+ data["location"] = this.location ? this.location.toJSON() : undefined;
39198
+ data["status"] = this.status;
39199
+ data["bookingId"] = this.bookingId;
39200
+ data["comment"] = this.comment;
39201
+ return data;
39202
+ }
39203
+ }
39198
39204
  export class TrackingRequestListDto {
39199
39205
  constructor(data) {
39200
39206
  if (data) {
@@ -39332,6 +39338,8 @@ export class TrackingHistoryFlattenedDto {
39332
39338
  this.parcelKind = _data["parcelKind"];
39333
39339
  this.partName = _data["partName"];
39334
39340
  this.partNumber = _data["partNumber"];
39341
+ this.projectId = _data["projectId"];
39342
+ this.projectName = _data["projectName"];
39335
39343
  this.quantity = _data["quantity"];
39336
39344
  this.material = _data["material"];
39337
39345
  this.covered = _data["covered"];
@@ -39363,6 +39371,8 @@ export class TrackingHistoryFlattenedDto {
39363
39371
  data["parcelKind"] = this.parcelKind;
39364
39372
  data["partName"] = this.partName;
39365
39373
  data["partNumber"] = this.partNumber;
39374
+ data["projectId"] = this.projectId;
39375
+ data["projectName"] = this.projectName;
39366
39376
  data["quantity"] = this.quantity;
39367
39377
  data["material"] = this.material;
39368
39378
  data["covered"] = this.covered;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20251021.0.12920",
3
+ "version": "20251021.0.12930",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -46055,6 +46055,8 @@ export class BookingParcelDto implements IBookingParcelDto {
46055
46055
  parcelKind!: ParcelKindDto;
46056
46056
  partName?: string | null;
46057
46057
  partNumber?: string | null;
46058
+ projectId?: string | null;
46059
+ projectName?: string | null;
46058
46060
  quantity?: number | null;
46059
46061
  material?: string | null;
46060
46062
  materialOperation?: number | null;
@@ -46081,6 +46083,8 @@ export class BookingParcelDto implements IBookingParcelDto {
46081
46083
  this.parcelKind = _data["parcelKind"];
46082
46084
  this.partName = _data["partName"];
46083
46085
  this.partNumber = _data["partNumber"];
46086
+ this.projectId = _data["projectId"];
46087
+ this.projectName = _data["projectName"];
46084
46088
  this.quantity = _data["quantity"];
46085
46089
  this.material = _data["material"];
46086
46090
  this.materialOperation = _data["materialOperation"];
@@ -46107,6 +46111,8 @@ export class BookingParcelDto implements IBookingParcelDto {
46107
46111
  data["parcelKind"] = this.parcelKind;
46108
46112
  data["partName"] = this.partName;
46109
46113
  data["partNumber"] = this.partNumber;
46114
+ data["projectId"] = this.projectId;
46115
+ data["projectName"] = this.projectName;
46110
46116
  data["quantity"] = this.quantity;
46111
46117
  data["material"] = this.material;
46112
46118
  data["materialOperation"] = this.materialOperation;
@@ -46126,6 +46132,8 @@ export interface IBookingParcelDto {
46126
46132
  parcelKind: ParcelKindDto;
46127
46133
  partName?: string | null;
46128
46134
  partNumber?: string | null;
46135
+ projectId?: string | null;
46136
+ projectName?: string | null;
46129
46137
  quantity?: number | null;
46130
46138
  material?: string | null;
46131
46139
  materialOperation?: number | null;
@@ -46145,7 +46153,6 @@ export class BookingItemDto implements IBookingItemDto {
46145
46153
  palletNumber!: number;
46146
46154
  comment?: string | null;
46147
46155
  category?: string | null;
46148
- trackingHistory?: TrackingHistoryDto | null;
46149
46156
 
46150
46157
  constructor(data?: IBookingItemDto) {
46151
46158
  if (data) {
@@ -46162,7 +46169,6 @@ export class BookingItemDto implements IBookingItemDto {
46162
46169
  this.palletNumber = _data["palletNumber"];
46163
46170
  this.comment = _data["comment"];
46164
46171
  this.category = _data["category"];
46165
- this.trackingHistory = _data["trackingHistory"] ? TrackingHistoryDto.fromJS(_data["trackingHistory"]) : undefined as any;
46166
46172
  }
46167
46173
  }
46168
46174
 
@@ -46179,7 +46185,6 @@ export class BookingItemDto implements IBookingItemDto {
46179
46185
  data["palletNumber"] = this.palletNumber;
46180
46186
  data["comment"] = this.comment;
46181
46187
  data["category"] = this.category;
46182
- data["trackingHistory"] = this.trackingHistory ? this.trackingHistory.toJSON() : undefined as any;
46183
46188
  return data;
46184
46189
  }
46185
46190
  }
@@ -46189,158 +46194,6 @@ export interface IBookingItemDto {
46189
46194
  palletNumber: number;
46190
46195
  comment?: string | null;
46191
46196
  category?: string | null;
46192
- trackingHistory?: TrackingHistoryDto | null;
46193
- }
46194
-
46195
- export class TrackingHistoryDto implements ITrackingHistoryDto {
46196
- trackingId!: string;
46197
- palletNumber!: number;
46198
- activeBooking?: boolean | null;
46199
- materialOperation?: number | null;
46200
- materialLine?: number | null;
46201
- materialPartName?: string | null;
46202
- materialPartNumber?: string | null;
46203
- category?: string | null;
46204
- currentTracking?: TrackingEventDto | null;
46205
- trackingEvents!: TrackingEventDto[];
46206
- suggestions?: SuggestionsItemDto | null;
46207
-
46208
- constructor(data?: ITrackingHistoryDto) {
46209
- if (data) {
46210
- for (var property in data) {
46211
- if (data.hasOwnProperty(property))
46212
- (this as any)[property] = (data as any)[property];
46213
- }
46214
- }
46215
- if (!data) {
46216
- this.trackingEvents = [];
46217
- }
46218
- }
46219
-
46220
- init(_data?: any) {
46221
- if (_data) {
46222
- this.trackingId = _data["trackingId"];
46223
- this.palletNumber = _data["palletNumber"];
46224
- this.activeBooking = _data["activeBooking"];
46225
- this.materialOperation = _data["materialOperation"];
46226
- this.materialLine = _data["materialLine"];
46227
- this.materialPartName = _data["materialPartName"];
46228
- this.materialPartNumber = _data["materialPartNumber"];
46229
- this.category = _data["category"];
46230
- this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined as any;
46231
- if (Array.isArray(_data["trackingEvents"])) {
46232
- this.trackingEvents = [] as any;
46233
- for (let item of _data["trackingEvents"])
46234
- this.trackingEvents!.push(TrackingEventDto.fromJS(item));
46235
- }
46236
- this.suggestions = _data["suggestions"] ? SuggestionsItemDto.fromJS(_data["suggestions"]) : undefined as any;
46237
- }
46238
- }
46239
-
46240
- static fromJS(data: any): TrackingHistoryDto {
46241
- data = typeof data === 'object' ? data : {};
46242
- let result = new TrackingHistoryDto();
46243
- result.init(data);
46244
- return result;
46245
- }
46246
-
46247
- toJSON(data?: any) {
46248
- data = typeof data === 'object' ? data : {};
46249
- data["trackingId"] = this.trackingId;
46250
- data["palletNumber"] = this.palletNumber;
46251
- data["activeBooking"] = this.activeBooking;
46252
- data["materialOperation"] = this.materialOperation;
46253
- data["materialLine"] = this.materialLine;
46254
- data["materialPartName"] = this.materialPartName;
46255
- data["materialPartNumber"] = this.materialPartNumber;
46256
- data["category"] = this.category;
46257
- data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined as any;
46258
- if (Array.isArray(this.trackingEvents)) {
46259
- data["trackingEvents"] = [];
46260
- for (let item of this.trackingEvents)
46261
- data["trackingEvents"].push(item ? item.toJSON() : undefined as any);
46262
- }
46263
- data["suggestions"] = this.suggestions ? this.suggestions.toJSON() : undefined as any;
46264
- return data;
46265
- }
46266
- }
46267
-
46268
- export interface ITrackingHistoryDto {
46269
- trackingId: string;
46270
- palletNumber: number;
46271
- activeBooking?: boolean | null;
46272
- materialOperation?: number | null;
46273
- materialLine?: number | null;
46274
- materialPartName?: string | null;
46275
- materialPartNumber?: string | null;
46276
- category?: string | null;
46277
- currentTracking?: TrackingEventDto | null;
46278
- trackingEvents: TrackingEventDto[];
46279
- suggestions?: SuggestionsItemDto | null;
46280
- }
46281
-
46282
- export class TrackingEventDto implements ITrackingEventDto {
46283
- id!: number;
46284
- created!: Date;
46285
- createdBy!: string;
46286
- createdById!: string;
46287
- location?: LocationDto | null;
46288
- status!: TrackingStatusDto;
46289
- bookingId?: string | null;
46290
- comment?: string | null;
46291
-
46292
- constructor(data?: ITrackingEventDto) {
46293
- if (data) {
46294
- for (var property in data) {
46295
- if (data.hasOwnProperty(property))
46296
- (this as any)[property] = (data as any)[property];
46297
- }
46298
- }
46299
- }
46300
-
46301
- init(_data?: any) {
46302
- if (_data) {
46303
- this.id = _data["id"];
46304
- this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
46305
- this.createdBy = _data["createdBy"];
46306
- this.createdById = _data["createdById"];
46307
- this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : undefined as any;
46308
- this.status = _data["status"];
46309
- this.bookingId = _data["bookingId"];
46310
- this.comment = _data["comment"];
46311
- }
46312
- }
46313
-
46314
- static fromJS(data: any): TrackingEventDto {
46315
- data = typeof data === 'object' ? data : {};
46316
- let result = new TrackingEventDto();
46317
- result.init(data);
46318
- return result;
46319
- }
46320
-
46321
- toJSON(data?: any) {
46322
- data = typeof data === 'object' ? data : {};
46323
- data["id"] = this.id;
46324
- data["created"] = this.created ? this.created.toISOString() : undefined as any;
46325
- data["createdBy"] = this.createdBy;
46326
- data["createdById"] = this.createdById;
46327
- data["location"] = this.location ? this.location.toJSON() : undefined as any;
46328
- data["status"] = this.status;
46329
- data["bookingId"] = this.bookingId;
46330
- data["comment"] = this.comment;
46331
- return data;
46332
- }
46333
- }
46334
-
46335
- export interface ITrackingEventDto {
46336
- id: number;
46337
- created: Date;
46338
- createdBy: string;
46339
- createdById: string;
46340
- location?: LocationDto | null;
46341
- status: TrackingStatusDto;
46342
- bookingId?: string | null;
46343
- comment?: string | null;
46344
46197
  }
46345
46198
 
46346
46199
  export class LocationDto implements ILocationDto {
@@ -46401,80 +46254,6 @@ export interface ILocationDto {
46401
46254
 
46402
46255
  export type LocationKindDto = "Warehouse" | "Zone" | "Location";
46403
46256
 
46404
- export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress" | "Completed" | "Created";
46405
-
46406
- export class SuggestionsItemDto implements ISuggestionsItemDto {
46407
- trackingId?: string | null;
46408
- fromAutoFill?: LocationDto | null;
46409
- toAutoFill?: LocationDto | null;
46410
- fromSuggestions!: LocationDto[];
46411
- toSuggestions!: LocationDto[];
46412
-
46413
- constructor(data?: ISuggestionsItemDto) {
46414
- if (data) {
46415
- for (var property in data) {
46416
- if (data.hasOwnProperty(property))
46417
- (this as any)[property] = (data as any)[property];
46418
- }
46419
- }
46420
- if (!data) {
46421
- this.fromSuggestions = [];
46422
- this.toSuggestions = [];
46423
- }
46424
- }
46425
-
46426
- init(_data?: any) {
46427
- if (_data) {
46428
- this.trackingId = _data["trackingId"];
46429
- this.fromAutoFill = _data["fromAutoFill"] ? LocationDto.fromJS(_data["fromAutoFill"]) : undefined as any;
46430
- this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : undefined as any;
46431
- if (Array.isArray(_data["fromSuggestions"])) {
46432
- this.fromSuggestions = [] as any;
46433
- for (let item of _data["fromSuggestions"])
46434
- this.fromSuggestions!.push(LocationDto.fromJS(item));
46435
- }
46436
- if (Array.isArray(_data["toSuggestions"])) {
46437
- this.toSuggestions = [] as any;
46438
- for (let item of _data["toSuggestions"])
46439
- this.toSuggestions!.push(LocationDto.fromJS(item));
46440
- }
46441
- }
46442
- }
46443
-
46444
- static fromJS(data: any): SuggestionsItemDto {
46445
- data = typeof data === 'object' ? data : {};
46446
- let result = new SuggestionsItemDto();
46447
- result.init(data);
46448
- return result;
46449
- }
46450
-
46451
- toJSON(data?: any) {
46452
- data = typeof data === 'object' ? data : {};
46453
- data["trackingId"] = this.trackingId;
46454
- data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : undefined as any;
46455
- data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : undefined as any;
46456
- if (Array.isArray(this.fromSuggestions)) {
46457
- data["fromSuggestions"] = [];
46458
- for (let item of this.fromSuggestions)
46459
- data["fromSuggestions"].push(item ? item.toJSON() : undefined as any);
46460
- }
46461
- if (Array.isArray(this.toSuggestions)) {
46462
- data["toSuggestions"] = [];
46463
- for (let item of this.toSuggestions)
46464
- data["toSuggestions"].push(item ? item.toJSON() : undefined as any);
46465
- }
46466
- return data;
46467
- }
46468
- }
46469
-
46470
- export interface ISuggestionsItemDto {
46471
- trackingId?: string | null;
46472
- fromAutoFill?: LocationDto | null;
46473
- toAutoFill?: LocationDto | null;
46474
- fromSuggestions: LocationDto[];
46475
- toSuggestions: LocationDto[];
46476
- }
46477
-
46478
46257
  export class BookingRequestListDto implements IBookingRequestListDto {
46479
46258
  pageSize?: number | null;
46480
46259
  parcelIdFilter?: string[] | null;
@@ -47556,6 +47335,78 @@ export interface ISuggestionsParcelDto {
47556
47335
  items: SuggestionsItemDto[];
47557
47336
  }
47558
47337
 
47338
+ export class SuggestionsItemDto implements ISuggestionsItemDto {
47339
+ trackingId?: string | null;
47340
+ fromAutoFill?: LocationDto | null;
47341
+ toAutoFill?: LocationDto | null;
47342
+ fromSuggestions!: LocationDto[];
47343
+ toSuggestions!: LocationDto[];
47344
+
47345
+ constructor(data?: ISuggestionsItemDto) {
47346
+ if (data) {
47347
+ for (var property in data) {
47348
+ if (data.hasOwnProperty(property))
47349
+ (this as any)[property] = (data as any)[property];
47350
+ }
47351
+ }
47352
+ if (!data) {
47353
+ this.fromSuggestions = [];
47354
+ this.toSuggestions = [];
47355
+ }
47356
+ }
47357
+
47358
+ init(_data?: any) {
47359
+ if (_data) {
47360
+ this.trackingId = _data["trackingId"];
47361
+ this.fromAutoFill = _data["fromAutoFill"] ? LocationDto.fromJS(_data["fromAutoFill"]) : undefined as any;
47362
+ this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : undefined as any;
47363
+ if (Array.isArray(_data["fromSuggestions"])) {
47364
+ this.fromSuggestions = [] as any;
47365
+ for (let item of _data["fromSuggestions"])
47366
+ this.fromSuggestions!.push(LocationDto.fromJS(item));
47367
+ }
47368
+ if (Array.isArray(_data["toSuggestions"])) {
47369
+ this.toSuggestions = [] as any;
47370
+ for (let item of _data["toSuggestions"])
47371
+ this.toSuggestions!.push(LocationDto.fromJS(item));
47372
+ }
47373
+ }
47374
+ }
47375
+
47376
+ static fromJS(data: any): SuggestionsItemDto {
47377
+ data = typeof data === 'object' ? data : {};
47378
+ let result = new SuggestionsItemDto();
47379
+ result.init(data);
47380
+ return result;
47381
+ }
47382
+
47383
+ toJSON(data?: any) {
47384
+ data = typeof data === 'object' ? data : {};
47385
+ data["trackingId"] = this.trackingId;
47386
+ data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : undefined as any;
47387
+ data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : undefined as any;
47388
+ if (Array.isArray(this.fromSuggestions)) {
47389
+ data["fromSuggestions"] = [];
47390
+ for (let item of this.fromSuggestions)
47391
+ data["fromSuggestions"].push(item ? item.toJSON() : undefined as any);
47392
+ }
47393
+ if (Array.isArray(this.toSuggestions)) {
47394
+ data["toSuggestions"] = [];
47395
+ for (let item of this.toSuggestions)
47396
+ data["toSuggestions"].push(item ? item.toJSON() : undefined as any);
47397
+ }
47398
+ return data;
47399
+ }
47400
+ }
47401
+
47402
+ export interface ISuggestionsItemDto {
47403
+ trackingId?: string | null;
47404
+ fromAutoFill?: LocationDto | null;
47405
+ toAutoFill?: LocationDto | null;
47406
+ fromSuggestions: LocationDto[];
47407
+ toSuggestions: LocationDto[];
47408
+ }
47409
+
47559
47410
  export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
47560
47411
 
47561
47412
  export class SuggestionsMaterialItemDto implements ISuggestionsMaterialItemDto {
@@ -48259,6 +48110,8 @@ export class TrackingParcelDto implements ITrackingParcelDto {
48259
48110
  parcelKind!: ParcelKindDto;
48260
48111
  partName?: string | null;
48261
48112
  partNumber?: string | null;
48113
+ projectId?: string | null;
48114
+ projectName?: string | null;
48262
48115
  quantity?: number | null;
48263
48116
  material?: string | null;
48264
48117
  covered?: MaterialCoveredDto | null;
@@ -48284,6 +48137,8 @@ export class TrackingParcelDto implements ITrackingParcelDto {
48284
48137
  this.parcelKind = _data["parcelKind"];
48285
48138
  this.partName = _data["partName"];
48286
48139
  this.partNumber = _data["partNumber"];
48140
+ this.projectId = _data["projectId"];
48141
+ this.projectName = _data["projectName"];
48287
48142
  this.quantity = _data["quantity"];
48288
48143
  this.material = _data["material"];
48289
48144
  this.covered = _data["covered"];
@@ -48313,6 +48168,8 @@ export class TrackingParcelDto implements ITrackingParcelDto {
48313
48168
  data["parcelKind"] = this.parcelKind;
48314
48169
  data["partName"] = this.partName;
48315
48170
  data["partNumber"] = this.partNumber;
48171
+ data["projectId"] = this.projectId;
48172
+ data["projectName"] = this.projectName;
48316
48173
  data["quantity"] = this.quantity;
48317
48174
  data["material"] = this.material;
48318
48175
  data["covered"] = this.covered;
@@ -48335,6 +48192,8 @@ export interface ITrackingParcelDto {
48335
48192
  parcelKind: ParcelKindDto;
48336
48193
  partName?: string | null;
48337
48194
  partNumber?: string | null;
48195
+ projectId?: string | null;
48196
+ projectName?: string | null;
48338
48197
  quantity?: number | null;
48339
48198
  material?: string | null;
48340
48199
  covered?: MaterialCoveredDto | null;
@@ -48342,6 +48201,159 @@ export interface ITrackingParcelDto {
48342
48201
  materialItems: TrackingHistoryDto[];
48343
48202
  }
48344
48203
 
48204
+ export class TrackingHistoryDto implements ITrackingHistoryDto {
48205
+ trackingId!: string;
48206
+ palletNumber!: number;
48207
+ activeBooking?: boolean | null;
48208
+ materialOperation?: number | null;
48209
+ materialLine?: number | null;
48210
+ materialPartName?: string | null;
48211
+ materialPartNumber?: string | null;
48212
+ category?: string | null;
48213
+ currentTracking?: TrackingEventDto | null;
48214
+ trackingEvents!: TrackingEventDto[];
48215
+ suggestions?: SuggestionsItemDto | null;
48216
+
48217
+ constructor(data?: ITrackingHistoryDto) {
48218
+ if (data) {
48219
+ for (var property in data) {
48220
+ if (data.hasOwnProperty(property))
48221
+ (this as any)[property] = (data as any)[property];
48222
+ }
48223
+ }
48224
+ if (!data) {
48225
+ this.trackingEvents = [];
48226
+ }
48227
+ }
48228
+
48229
+ init(_data?: any) {
48230
+ if (_data) {
48231
+ this.trackingId = _data["trackingId"];
48232
+ this.palletNumber = _data["palletNumber"];
48233
+ this.activeBooking = _data["activeBooking"];
48234
+ this.materialOperation = _data["materialOperation"];
48235
+ this.materialLine = _data["materialLine"];
48236
+ this.materialPartName = _data["materialPartName"];
48237
+ this.materialPartNumber = _data["materialPartNumber"];
48238
+ this.category = _data["category"];
48239
+ this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined as any;
48240
+ if (Array.isArray(_data["trackingEvents"])) {
48241
+ this.trackingEvents = [] as any;
48242
+ for (let item of _data["trackingEvents"])
48243
+ this.trackingEvents!.push(TrackingEventDto.fromJS(item));
48244
+ }
48245
+ this.suggestions = _data["suggestions"] ? SuggestionsItemDto.fromJS(_data["suggestions"]) : undefined as any;
48246
+ }
48247
+ }
48248
+
48249
+ static fromJS(data: any): TrackingHistoryDto {
48250
+ data = typeof data === 'object' ? data : {};
48251
+ let result = new TrackingHistoryDto();
48252
+ result.init(data);
48253
+ return result;
48254
+ }
48255
+
48256
+ toJSON(data?: any) {
48257
+ data = typeof data === 'object' ? data : {};
48258
+ data["trackingId"] = this.trackingId;
48259
+ data["palletNumber"] = this.palletNumber;
48260
+ data["activeBooking"] = this.activeBooking;
48261
+ data["materialOperation"] = this.materialOperation;
48262
+ data["materialLine"] = this.materialLine;
48263
+ data["materialPartName"] = this.materialPartName;
48264
+ data["materialPartNumber"] = this.materialPartNumber;
48265
+ data["category"] = this.category;
48266
+ data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined as any;
48267
+ if (Array.isArray(this.trackingEvents)) {
48268
+ data["trackingEvents"] = [];
48269
+ for (let item of this.trackingEvents)
48270
+ data["trackingEvents"].push(item ? item.toJSON() : undefined as any);
48271
+ }
48272
+ data["suggestions"] = this.suggestions ? this.suggestions.toJSON() : undefined as any;
48273
+ return data;
48274
+ }
48275
+ }
48276
+
48277
+ export interface ITrackingHistoryDto {
48278
+ trackingId: string;
48279
+ palletNumber: number;
48280
+ activeBooking?: boolean | null;
48281
+ materialOperation?: number | null;
48282
+ materialLine?: number | null;
48283
+ materialPartName?: string | null;
48284
+ materialPartNumber?: string | null;
48285
+ category?: string | null;
48286
+ currentTracking?: TrackingEventDto | null;
48287
+ trackingEvents: TrackingEventDto[];
48288
+ suggestions?: SuggestionsItemDto | null;
48289
+ }
48290
+
48291
+ export class TrackingEventDto implements ITrackingEventDto {
48292
+ id!: number;
48293
+ created!: Date;
48294
+ createdBy!: string;
48295
+ createdById!: string;
48296
+ location?: LocationDto | null;
48297
+ status!: TrackingStatusDto;
48298
+ bookingId?: string | null;
48299
+ comment?: string | null;
48300
+
48301
+ constructor(data?: ITrackingEventDto) {
48302
+ if (data) {
48303
+ for (var property in data) {
48304
+ if (data.hasOwnProperty(property))
48305
+ (this as any)[property] = (data as any)[property];
48306
+ }
48307
+ }
48308
+ }
48309
+
48310
+ init(_data?: any) {
48311
+ if (_data) {
48312
+ this.id = _data["id"];
48313
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
48314
+ this.createdBy = _data["createdBy"];
48315
+ this.createdById = _data["createdById"];
48316
+ this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : undefined as any;
48317
+ this.status = _data["status"];
48318
+ this.bookingId = _data["bookingId"];
48319
+ this.comment = _data["comment"];
48320
+ }
48321
+ }
48322
+
48323
+ static fromJS(data: any): TrackingEventDto {
48324
+ data = typeof data === 'object' ? data : {};
48325
+ let result = new TrackingEventDto();
48326
+ result.init(data);
48327
+ return result;
48328
+ }
48329
+
48330
+ toJSON(data?: any) {
48331
+ data = typeof data === 'object' ? data : {};
48332
+ data["id"] = this.id;
48333
+ data["created"] = this.created ? this.created.toISOString() : undefined as any;
48334
+ data["createdBy"] = this.createdBy;
48335
+ data["createdById"] = this.createdById;
48336
+ data["location"] = this.location ? this.location.toJSON() : undefined as any;
48337
+ data["status"] = this.status;
48338
+ data["bookingId"] = this.bookingId;
48339
+ data["comment"] = this.comment;
48340
+ return data;
48341
+ }
48342
+ }
48343
+
48344
+ export interface ITrackingEventDto {
48345
+ id: number;
48346
+ created: Date;
48347
+ createdBy: string;
48348
+ createdById: string;
48349
+ location?: LocationDto | null;
48350
+ status: TrackingStatusDto;
48351
+ bookingId?: string | null;
48352
+ comment?: string | null;
48353
+ }
48354
+
48355
+ export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress" | "Completed" | "Created";
48356
+
48345
48357
  export class TrackingRequestListDto implements ITrackingRequestListDto {
48346
48358
  pageSize?: number | null;
48347
48359
  parcelIdFilter?: string[] | null;
@@ -48502,6 +48514,8 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
48502
48514
  parcelKind!: ParcelKindDto;
48503
48515
  partName?: string | null;
48504
48516
  partNumber?: string | null;
48517
+ projectId?: string | null;
48518
+ projectName?: string | null;
48505
48519
  quantity?: number | null;
48506
48520
  material?: string | null;
48507
48521
  covered?: MaterialCoveredDto | null;
@@ -48534,6 +48548,8 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
48534
48548
  this.parcelKind = _data["parcelKind"];
48535
48549
  this.partName = _data["partName"];
48536
48550
  this.partNumber = _data["partNumber"];
48551
+ this.projectId = _data["projectId"];
48552
+ this.projectName = _data["projectName"];
48537
48553
  this.quantity = _data["quantity"];
48538
48554
  this.material = _data["material"];
48539
48555
  this.covered = _data["covered"];
@@ -48567,6 +48583,8 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
48567
48583
  data["parcelKind"] = this.parcelKind;
48568
48584
  data["partName"] = this.partName;
48569
48585
  data["partNumber"] = this.partNumber;
48586
+ data["projectId"] = this.projectId;
48587
+ data["projectName"] = this.projectName;
48570
48588
  data["quantity"] = this.quantity;
48571
48589
  data["material"] = this.material;
48572
48590
  data["covered"] = this.covered;
@@ -48593,6 +48611,8 @@ export interface ITrackingHistoryFlattenedDto {
48593
48611
  parcelKind: ParcelKindDto;
48594
48612
  partName?: string | null;
48595
48613
  partNumber?: string | null;
48614
+ projectId?: string | null;
48615
+ projectName?: string | null;
48596
48616
  quantity?: number | null;
48597
48617
  material?: string | null;
48598
48618
  covered?: MaterialCoveredDto | null;