@ignos/api-client 20240819.0.10052 → 20240820.0.10068

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.
@@ -12389,7 +12389,7 @@ export interface IMoveBookingClient {
12389
12389
 
12390
12390
  getBooking(bookingId: string): Promise<BookingDto>;
12391
12391
 
12392
- getWorkOrderBooking(workOrderId: string): Promise<BookingDto[]>;
12392
+ getParcelBooking(parcelId: string): Promise<BookingDto[]>;
12393
12393
 
12394
12394
  updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
12395
12395
 
@@ -12398,14 +12398,6 @@ export interface IMoveBookingClient {
12398
12398
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
12399
12399
 
12400
12400
  updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
12401
-
12402
- cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
12403
-
12404
- revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
12405
-
12406
- startDelivery(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
12407
-
12408
- finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
12409
12401
  }
12410
12402
 
12411
12403
  export class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
@@ -12498,11 +12490,11 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12498
12490
  return Promise.resolve<BookingDto>(null as any);
12499
12491
  }
12500
12492
 
12501
- getWorkOrderBooking(workOrderId: string): Promise<BookingDto[]> {
12502
- let url_ = this.baseUrl + "/move/booking/workorder/{workOrderId}";
12503
- if (workOrderId === undefined || workOrderId === null)
12504
- throw new Error("The parameter 'workOrderId' must be defined.");
12505
- url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
12493
+ getParcelBooking(parcelId: string): Promise<BookingDto[]> {
12494
+ let url_ = this.baseUrl + "/move/booking/parcel/{parcelId}";
12495
+ if (parcelId === undefined || parcelId === null)
12496
+ throw new Error("The parameter 'parcelId' must be defined.");
12497
+ url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
12506
12498
  url_ = url_.replace(/[?&]$/, "");
12507
12499
 
12508
12500
  let options_: RequestInit = {
@@ -12515,11 +12507,11 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12515
12507
  return this.transformOptions(options_).then(transformedOptions_ => {
12516
12508
  return this.http.fetch(url_, transformedOptions_);
12517
12509
  }).then((_response: Response) => {
12518
- return this.processGetWorkOrderBooking(_response);
12510
+ return this.processGetParcelBooking(_response);
12519
12511
  });
12520
12512
  }
12521
12513
 
12522
- protected processGetWorkOrderBooking(response: Response): Promise<BookingDto[]> {
12514
+ protected processGetParcelBooking(response: Response): Promise<BookingDto[]> {
12523
12515
  const status = response.status;
12524
12516
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12525
12517
  if (status === 200) {
@@ -12700,166 +12692,6 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12700
12692
  }
12701
12693
  return Promise.resolve<BookingDto>(null as any);
12702
12694
  }
12703
-
12704
- cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto> {
12705
- let url_ = this.baseUrl + "/move/booking/cancel";
12706
- url_ = url_.replace(/[?&]$/, "");
12707
-
12708
- const content_ = JSON.stringify(bookingUpdate);
12709
-
12710
- let options_: RequestInit = {
12711
- body: content_,
12712
- method: "POST",
12713
- headers: {
12714
- "Content-Type": "application/json",
12715
- "Accept": "application/json"
12716
- }
12717
- };
12718
-
12719
- return this.transformOptions(options_).then(transformedOptions_ => {
12720
- return this.http.fetch(url_, transformedOptions_);
12721
- }).then((_response: Response) => {
12722
- return this.processCancelBooking(_response);
12723
- });
12724
- }
12725
-
12726
- protected processCancelBooking(response: Response): Promise<BookingDto> {
12727
- const status = response.status;
12728
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12729
- if (status === 200) {
12730
- return response.text().then((_responseText) => {
12731
- let result200: any = null;
12732
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12733
- result200 = BookingDto.fromJS(resultData200);
12734
- return result200;
12735
- });
12736
- } else if (status !== 200 && status !== 204) {
12737
- return response.text().then((_responseText) => {
12738
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12739
- });
12740
- }
12741
- return Promise.resolve<BookingDto>(null as any);
12742
- }
12743
-
12744
- revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto> {
12745
- let url_ = this.baseUrl + "/move/booking/revert";
12746
- url_ = url_.replace(/[?&]$/, "");
12747
-
12748
- const content_ = JSON.stringify(bookingUpdate);
12749
-
12750
- let options_: RequestInit = {
12751
- body: content_,
12752
- method: "POST",
12753
- headers: {
12754
- "Content-Type": "application/json",
12755
- "Accept": "application/json"
12756
- }
12757
- };
12758
-
12759
- return this.transformOptions(options_).then(transformedOptions_ => {
12760
- return this.http.fetch(url_, transformedOptions_);
12761
- }).then((_response: Response) => {
12762
- return this.processRevertBooking(_response);
12763
- });
12764
- }
12765
-
12766
- protected processRevertBooking(response: Response): Promise<BookingDto> {
12767
- const status = response.status;
12768
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12769
- if (status === 200) {
12770
- return response.text().then((_responseText) => {
12771
- let result200: any = null;
12772
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12773
- result200 = BookingDto.fromJS(resultData200);
12774
- return result200;
12775
- });
12776
- } else if (status !== 200 && status !== 204) {
12777
- return response.text().then((_responseText) => {
12778
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12779
- });
12780
- }
12781
- return Promise.resolve<BookingDto>(null as any);
12782
- }
12783
-
12784
- startDelivery(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto> {
12785
- let url_ = this.baseUrl + "/move/booking/startdelivery";
12786
- url_ = url_.replace(/[?&]$/, "");
12787
-
12788
- const content_ = JSON.stringify(bookingUpdate);
12789
-
12790
- let options_: RequestInit = {
12791
- body: content_,
12792
- method: "POST",
12793
- headers: {
12794
- "Content-Type": "application/json",
12795
- "Accept": "application/json"
12796
- }
12797
- };
12798
-
12799
- return this.transformOptions(options_).then(transformedOptions_ => {
12800
- return this.http.fetch(url_, transformedOptions_);
12801
- }).then((_response: Response) => {
12802
- return this.processStartDelivery(_response);
12803
- });
12804
- }
12805
-
12806
- protected processStartDelivery(response: Response): Promise<BookingDto> {
12807
- const status = response.status;
12808
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12809
- if (status === 200) {
12810
- return response.text().then((_responseText) => {
12811
- let result200: any = null;
12812
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12813
- result200 = BookingDto.fromJS(resultData200);
12814
- return result200;
12815
- });
12816
- } else if (status !== 200 && status !== 204) {
12817
- return response.text().then((_responseText) => {
12818
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12819
- });
12820
- }
12821
- return Promise.resolve<BookingDto>(null as any);
12822
- }
12823
-
12824
- finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto> {
12825
- let url_ = this.baseUrl + "/move/booking/finishdelivery";
12826
- url_ = url_.replace(/[?&]$/, "");
12827
-
12828
- const content_ = JSON.stringify(bookingUpdate);
12829
-
12830
- let options_: RequestInit = {
12831
- body: content_,
12832
- method: "POST",
12833
- headers: {
12834
- "Content-Type": "application/json",
12835
- "Accept": "application/json"
12836
- }
12837
- };
12838
-
12839
- return this.transformOptions(options_).then(transformedOptions_ => {
12840
- return this.http.fetch(url_, transformedOptions_);
12841
- }).then((_response: Response) => {
12842
- return this.processFinishDelivery(_response);
12843
- });
12844
- }
12845
-
12846
- protected processFinishDelivery(response: Response): Promise<BookingDto> {
12847
- const status = response.status;
12848
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12849
- if (status === 200) {
12850
- return response.text().then((_responseText) => {
12851
- let result200: any = null;
12852
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12853
- result200 = BookingDto.fromJS(resultData200);
12854
- return result200;
12855
- });
12856
- } else if (status !== 200 && status !== 204) {
12857
- return response.text().then((_responseText) => {
12858
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12859
- });
12860
- }
12861
- return Promise.resolve<BookingDto>(null as any);
12862
- }
12863
12695
  }
12864
12696
 
12865
12697
  export interface IMoveLocationsClient {
@@ -13189,15 +13021,76 @@ export class MoveMaterialsClient extends AuthorizedApiBase implements IMoveMater
13189
13021
  }
13190
13022
  }
13191
13023
 
13024
+ export interface IMoveParcelsClient {
13025
+
13026
+ searchParcels(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
13027
+ }
13028
+
13029
+ export class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcelsClient {
13030
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13031
+ private baseUrl: string;
13032
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
13033
+
13034
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13035
+ super(configuration);
13036
+ this.http = http ? http : window as any;
13037
+ this.baseUrl = baseUrl ?? "";
13038
+ }
13039
+
13040
+ searchParcels(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]> {
13041
+ let url_ = this.baseUrl + "/move/parcel/search?";
13042
+ if (input !== undefined && input !== null)
13043
+ url_ += "input=" + encodeURIComponent("" + input) + "&";
13044
+ if (pageSize !== undefined && pageSize !== null)
13045
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
13046
+ url_ = url_.replace(/[?&]$/, "");
13047
+
13048
+ let options_: RequestInit = {
13049
+ method: "GET",
13050
+ headers: {
13051
+ "Accept": "application/json"
13052
+ }
13053
+ };
13054
+
13055
+ return this.transformOptions(options_).then(transformedOptions_ => {
13056
+ return this.http.fetch(url_, transformedOptions_);
13057
+ }).then((_response: Response) => {
13058
+ return this.processSearchParcels(_response);
13059
+ });
13060
+ }
13061
+
13062
+ protected processSearchParcels(response: Response): Promise<SearchParcelDto[]> {
13063
+ const status = response.status;
13064
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13065
+ if (status === 200) {
13066
+ return response.text().then((_responseText) => {
13067
+ let result200: any = null;
13068
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13069
+ if (Array.isArray(resultData200)) {
13070
+ result200 = [] as any;
13071
+ for (let item of resultData200)
13072
+ result200!.push(SearchParcelDto.fromJS(item));
13073
+ }
13074
+ return result200;
13075
+ });
13076
+ } else if (status !== 200 && status !== 204) {
13077
+ return response.text().then((_responseText) => {
13078
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13079
+ });
13080
+ }
13081
+ return Promise.resolve<SearchParcelDto[]>(null as any);
13082
+ }
13083
+ }
13084
+
13192
13085
  export interface IMoveTrackingClient {
13193
13086
 
13194
13087
  listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
13195
13088
 
13196
13089
  getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingHistoryDto>;
13197
13090
 
13198
- getWorkOrderTrackingHistory(workOrderId: string, includeActiveBookings: boolean | undefined): Promise<TrackingWorkOrderDto>;
13091
+ getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
13199
13092
 
13200
- listWorkOrderTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingWorkOrderDto[]>;
13093
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]>;
13201
13094
 
13202
13095
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
13203
13096
 
@@ -13302,11 +13195,11 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13302
13195
  return Promise.resolve<TrackingHistoryDto>(null as any);
13303
13196
  }
13304
13197
 
13305
- getWorkOrderTrackingHistory(workOrderId: string, includeActiveBookings: boolean | undefined): Promise<TrackingWorkOrderDto> {
13306
- let url_ = this.baseUrl + "/move/tracking/workorder/{workOrderId}?";
13307
- if (workOrderId === undefined || workOrderId === null)
13308
- throw new Error("The parameter 'workOrderId' must be defined.");
13309
- url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
13198
+ getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
13199
+ let url_ = this.baseUrl + "/move/tracking/parcel/{parcelId}?";
13200
+ if (parcelId === undefined || parcelId === null)
13201
+ throw new Error("The parameter 'parcelId' must be defined.");
13202
+ url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
13310
13203
  if (includeActiveBookings === null)
13311
13204
  throw new Error("The parameter 'includeActiveBookings' cannot be null.");
13312
13205
  else if (includeActiveBookings !== undefined)
@@ -13323,18 +13216,18 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13323
13216
  return this.transformOptions(options_).then(transformedOptions_ => {
13324
13217
  return this.http.fetch(url_, transformedOptions_);
13325
13218
  }).then((_response: Response) => {
13326
- return this.processGetWorkOrderTrackingHistory(_response);
13219
+ return this.processGetParcelTrackingHistory(_response);
13327
13220
  });
13328
13221
  }
13329
13222
 
13330
- protected processGetWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto> {
13223
+ protected processGetParcelTrackingHistory(response: Response): Promise<TrackingParcelDto> {
13331
13224
  const status = response.status;
13332
13225
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13333
13226
  if (status === 200) {
13334
13227
  return response.text().then((_responseText) => {
13335
13228
  let result200: any = null;
13336
13229
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13337
- result200 = TrackingWorkOrderDto.fromJS(resultData200);
13230
+ result200 = TrackingParcelDto.fromJS(resultData200);
13338
13231
  return result200;
13339
13232
  });
13340
13233
  } else if (status !== 200 && status !== 204) {
@@ -13342,11 +13235,11 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13342
13235
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13343
13236
  });
13344
13237
  }
13345
- return Promise.resolve<TrackingWorkOrderDto>(null as any);
13238
+ return Promise.resolve<TrackingParcelDto>(null as any);
13346
13239
  }
13347
13240
 
13348
- listWorkOrderTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingWorkOrderDto[]> {
13349
- let url_ = this.baseUrl + "/move/tracking/workorder/list";
13241
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]> {
13242
+ let url_ = this.baseUrl + "/move/tracking/parcel/list";
13350
13243
  url_ = url_.replace(/[?&]$/, "");
13351
13244
 
13352
13245
  const content_ = JSON.stringify(trackingParcelList);
@@ -13363,11 +13256,11 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13363
13256
  return this.transformOptions(options_).then(transformedOptions_ => {
13364
13257
  return this.http.fetch(url_, transformedOptions_);
13365
13258
  }).then((_response: Response) => {
13366
- return this.processListWorkOrderTrackingHistory(_response);
13259
+ return this.processListParcelTrackingHistory(_response);
13367
13260
  });
13368
13261
  }
13369
13262
 
13370
- protected processListWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto[]> {
13263
+ protected processListParcelTrackingHistory(response: Response): Promise<TrackingParcelDto[]> {
13371
13264
  const status = response.status;
13372
13265
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13373
13266
  if (status === 200) {
@@ -13377,7 +13270,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13377
13270
  if (Array.isArray(resultData200)) {
13378
13271
  result200 = [] as any;
13379
13272
  for (let item of resultData200)
13380
- result200!.push(TrackingWorkOrderDto.fromJS(item));
13273
+ result200!.push(TrackingParcelDto.fromJS(item));
13381
13274
  }
13382
13275
  return result200;
13383
13276
  });
@@ -13386,7 +13279,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13386
13279
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13387
13280
  });
13388
13281
  }
13389
- return Promise.resolve<TrackingWorkOrderDto[]>(null as any);
13282
+ return Promise.resolve<TrackingParcelDto[]>(null as any);
13390
13283
  }
13391
13284
 
13392
13285
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]> {
@@ -13553,67 +13446,6 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13553
13446
  }
13554
13447
  }
13555
13448
 
13556
- export interface IMoveWorkOrdersClient {
13557
-
13558
- searchWorkOrders(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchWorkOrderDto[]>;
13559
- }
13560
-
13561
- export class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWorkOrdersClient {
13562
- private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13563
- private baseUrl: string;
13564
- protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
13565
-
13566
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13567
- super(configuration);
13568
- this.http = http ? http : window as any;
13569
- this.baseUrl = baseUrl ?? "";
13570
- }
13571
-
13572
- searchWorkOrders(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchWorkOrderDto[]> {
13573
- let url_ = this.baseUrl + "/move/workorders/search?";
13574
- if (input !== undefined && input !== null)
13575
- url_ += "input=" + encodeURIComponent("" + input) + "&";
13576
- if (pageSize !== undefined && pageSize !== null)
13577
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
13578
- url_ = url_.replace(/[?&]$/, "");
13579
-
13580
- let options_: RequestInit = {
13581
- method: "GET",
13582
- headers: {
13583
- "Accept": "application/json"
13584
- }
13585
- };
13586
-
13587
- return this.transformOptions(options_).then(transformedOptions_ => {
13588
- return this.http.fetch(url_, transformedOptions_);
13589
- }).then((_response: Response) => {
13590
- return this.processSearchWorkOrders(_response);
13591
- });
13592
- }
13593
-
13594
- protected processSearchWorkOrders(response: Response): Promise<SearchWorkOrderDto[]> {
13595
- const status = response.status;
13596
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13597
- if (status === 200) {
13598
- return response.text().then((_responseText) => {
13599
- let result200: any = null;
13600
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13601
- if (Array.isArray(resultData200)) {
13602
- result200 = [] as any;
13603
- for (let item of resultData200)
13604
- result200!.push(SearchWorkOrderDto.fromJS(item));
13605
- }
13606
- return result200;
13607
- });
13608
- } else if (status !== 200 && status !== 204) {
13609
- return response.text().then((_responseText) => {
13610
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13611
- });
13612
- }
13613
- return Promise.resolve<SearchWorkOrderDto[]>(null as any);
13614
- }
13615
- }
13616
-
13617
13449
  export interface IMesClient {
13618
13450
 
13619
13451
  getWorkerDetailsForCurrentUser(): Promise<WorkerDto>;
@@ -37287,7 +37119,7 @@ export interface IBookingListDto {
37287
37119
 
37288
37120
  export class BookingDto implements IBookingDto {
37289
37121
  bookingId!: string;
37290
- bookingKind!: BookingKindDto;
37122
+ parcelKind!: ParcelKindDto;
37291
37123
  transportKind!: TransportKindDto;
37292
37124
  status!: BookingStatusDto;
37293
37125
  items!: BookingItemDto[];
@@ -37319,7 +37151,7 @@ export class BookingDto implements IBookingDto {
37319
37151
  init(_data?: any) {
37320
37152
  if (_data) {
37321
37153
  this.bookingId = _data["bookingId"];
37322
- this.bookingKind = _data["bookingKind"];
37154
+ this.parcelKind = _data["parcelKind"];
37323
37155
  this.transportKind = _data["transportKind"];
37324
37156
  this.status = _data["status"];
37325
37157
  if (Array.isArray(_data["items"])) {
@@ -37350,7 +37182,7 @@ export class BookingDto implements IBookingDto {
37350
37182
  toJSON(data?: any) {
37351
37183
  data = typeof data === 'object' ? data : {};
37352
37184
  data["bookingId"] = this.bookingId;
37353
- data["bookingKind"] = this.bookingKind;
37185
+ data["parcelKind"] = this.parcelKind;
37354
37186
  data["transportKind"] = this.transportKind;
37355
37187
  data["status"] = this.status;
37356
37188
  if (Array.isArray(this.items)) {
@@ -37374,7 +37206,7 @@ export class BookingDto implements IBookingDto {
37374
37206
 
37375
37207
  export interface IBookingDto {
37376
37208
  bookingId: string;
37377
- bookingKind: BookingKindDto;
37209
+ parcelKind: ParcelKindDto;
37378
37210
  transportKind: TransportKindDto;
37379
37211
  status: BookingStatusDto;
37380
37212
  items: BookingItemDto[];
@@ -37390,7 +37222,7 @@ export interface IBookingDto {
37390
37222
  completed?: Date | null;
37391
37223
  }
37392
37224
 
37393
- export type BookingKindDto = "Forklift" | "General" | "ChipDisposal" | "Garbage";
37225
+ export type ParcelKindDto = "Standard" | "OtherInquiries" | "ChipDisposal" | "Garbage";
37394
37226
 
37395
37227
  export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
37396
37228
 
@@ -37399,8 +37231,8 @@ export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Complet
37399
37231
  export class BookingItemDto implements IBookingItemDto {
37400
37232
  trackingId!: string;
37401
37233
  palletNumber!: number;
37402
- workOrderId!: string;
37403
- parcelKind!: BookingKindDto;
37234
+ parcelId!: string;
37235
+ parcelKind!: ParcelKindDto;
37404
37236
  material?: string | null;
37405
37237
  comment?: string | null;
37406
37238
  covered!: MaterialCoveredDto;
@@ -37419,7 +37251,7 @@ export class BookingItemDto implements IBookingItemDto {
37419
37251
  if (_data) {
37420
37252
  this.trackingId = _data["trackingId"];
37421
37253
  this.palletNumber = _data["palletNumber"];
37422
- this.workOrderId = _data["workOrderId"];
37254
+ this.parcelId = _data["parcelId"];
37423
37255
  this.parcelKind = _data["parcelKind"];
37424
37256
  this.material = _data["material"];
37425
37257
  this.comment = _data["comment"];
@@ -37439,7 +37271,7 @@ export class BookingItemDto implements IBookingItemDto {
37439
37271
  data = typeof data === 'object' ? data : {};
37440
37272
  data["trackingId"] = this.trackingId;
37441
37273
  data["palletNumber"] = this.palletNumber;
37442
- data["workOrderId"] = this.workOrderId;
37274
+ data["parcelId"] = this.parcelId;
37443
37275
  data["parcelKind"] = this.parcelKind;
37444
37276
  data["material"] = this.material;
37445
37277
  data["comment"] = this.comment;
@@ -37452,8 +37284,8 @@ export class BookingItemDto implements IBookingItemDto {
37452
37284
  export interface IBookingItemDto {
37453
37285
  trackingId: string;
37454
37286
  palletNumber: number;
37455
- workOrderId: string;
37456
- parcelKind: BookingKindDto;
37287
+ parcelId: string;
37288
+ parcelKind: ParcelKindDto;
37457
37289
  material?: string | null;
37458
37290
  comment?: string | null;
37459
37291
  covered: MaterialCoveredDto;
@@ -37522,14 +37354,14 @@ export type LocationKindDto = "Warehouse" | "Zone" | "Location";
37522
37354
 
37523
37355
  export class BookingRequestListDto implements IBookingRequestListDto {
37524
37356
  pageSize?: number | null;
37525
- workOrderIdFilter?: string[] | null;
37357
+ parcelIdFilter?: string[] | null;
37526
37358
  materialFilter?: string[] | null;
37527
37359
  locationIdFromFilter?: string[] | null;
37528
37360
  locationIdToFilter?: string[] | null;
37529
37361
  zoneIdFromFilter?: string[] | null;
37530
37362
  zoneIdToFilter?: string[] | null;
37531
37363
  bookingStatusFilter?: BookingStatusDto[] | null;
37532
- bookingKindFilter?: BookingKindDto[] | null;
37364
+ parcelKindFilter?: ParcelKindDto[] | null;
37533
37365
  transportKindFilter?: TransportKindDto[] | null;
37534
37366
  taskFilter?: BookingTaskDto | null;
37535
37367
  createdByFilter?: BookingCreatedByDto | null;
@@ -37548,10 +37380,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37548
37380
  init(_data?: any) {
37549
37381
  if (_data) {
37550
37382
  this.pageSize = _data["pageSize"];
37551
- if (Array.isArray(_data["workOrderIdFilter"])) {
37552
- this.workOrderIdFilter = [] as any;
37553
- for (let item of _data["workOrderIdFilter"])
37554
- this.workOrderIdFilter!.push(item);
37383
+ if (Array.isArray(_data["parcelIdFilter"])) {
37384
+ this.parcelIdFilter = [] as any;
37385
+ for (let item of _data["parcelIdFilter"])
37386
+ this.parcelIdFilter!.push(item);
37555
37387
  }
37556
37388
  if (Array.isArray(_data["materialFilter"])) {
37557
37389
  this.materialFilter = [] as any;
@@ -37583,10 +37415,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37583
37415
  for (let item of _data["bookingStatusFilter"])
37584
37416
  this.bookingStatusFilter!.push(item);
37585
37417
  }
37586
- if (Array.isArray(_data["bookingKindFilter"])) {
37587
- this.bookingKindFilter = [] as any;
37588
- for (let item of _data["bookingKindFilter"])
37589
- this.bookingKindFilter!.push(item);
37418
+ if (Array.isArray(_data["parcelKindFilter"])) {
37419
+ this.parcelKindFilter = [] as any;
37420
+ for (let item of _data["parcelKindFilter"])
37421
+ this.parcelKindFilter!.push(item);
37590
37422
  }
37591
37423
  if (Array.isArray(_data["transportKindFilter"])) {
37592
37424
  this.transportKindFilter = [] as any;
@@ -37610,10 +37442,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37610
37442
  toJSON(data?: any) {
37611
37443
  data = typeof data === 'object' ? data : {};
37612
37444
  data["pageSize"] = this.pageSize;
37613
- if (Array.isArray(this.workOrderIdFilter)) {
37614
- data["workOrderIdFilter"] = [];
37615
- for (let item of this.workOrderIdFilter)
37616
- data["workOrderIdFilter"].push(item);
37445
+ if (Array.isArray(this.parcelIdFilter)) {
37446
+ data["parcelIdFilter"] = [];
37447
+ for (let item of this.parcelIdFilter)
37448
+ data["parcelIdFilter"].push(item);
37617
37449
  }
37618
37450
  if (Array.isArray(this.materialFilter)) {
37619
37451
  data["materialFilter"] = [];
@@ -37645,10 +37477,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37645
37477
  for (let item of this.bookingStatusFilter)
37646
37478
  data["bookingStatusFilter"].push(item);
37647
37479
  }
37648
- if (Array.isArray(this.bookingKindFilter)) {
37649
- data["bookingKindFilter"] = [];
37650
- for (let item of this.bookingKindFilter)
37651
- data["bookingKindFilter"].push(item);
37480
+ if (Array.isArray(this.parcelKindFilter)) {
37481
+ data["parcelKindFilter"] = [];
37482
+ for (let item of this.parcelKindFilter)
37483
+ data["parcelKindFilter"].push(item);
37652
37484
  }
37653
37485
  if (Array.isArray(this.transportKindFilter)) {
37654
37486
  data["transportKindFilter"] = [];
@@ -37665,14 +37497,14 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37665
37497
 
37666
37498
  export interface IBookingRequestListDto {
37667
37499
  pageSize?: number | null;
37668
- workOrderIdFilter?: string[] | null;
37500
+ parcelIdFilter?: string[] | null;
37669
37501
  materialFilter?: string[] | null;
37670
37502
  locationIdFromFilter?: string[] | null;
37671
37503
  locationIdToFilter?: string[] | null;
37672
37504
  zoneIdFromFilter?: string[] | null;
37673
37505
  zoneIdToFilter?: string[] | null;
37674
37506
  bookingStatusFilter?: BookingStatusDto[] | null;
37675
- bookingKindFilter?: BookingKindDto[] | null;
37507
+ parcelKindFilter?: ParcelKindDto[] | null;
37676
37508
  transportKindFilter?: TransportKindDto[] | null;
37677
37509
  taskFilter?: BookingTaskDto | null;
37678
37510
  createdByFilter?: BookingCreatedByDto | null;
@@ -37688,7 +37520,7 @@ export type BookingOrderDto = "Ascending" | "Descending";
37688
37520
 
37689
37521
  export class BookingUpdateDto implements IBookingUpdateDto {
37690
37522
  bookingId!: string;
37691
- bookingKind!: BookingKindDto;
37523
+ parcelKind!: ParcelKindDto;
37692
37524
  transportKind!: TransportKindDto;
37693
37525
  status!: BookingStatusDto;
37694
37526
  fromLocationId!: string;
@@ -37706,7 +37538,7 @@ export class BookingUpdateDto implements IBookingUpdateDto {
37706
37538
  init(_data?: any) {
37707
37539
  if (_data) {
37708
37540
  this.bookingId = _data["bookingId"];
37709
- this.bookingKind = _data["bookingKind"];
37541
+ this.parcelKind = _data["parcelKind"];
37710
37542
  this.transportKind = _data["transportKind"];
37711
37543
  this.status = _data["status"];
37712
37544
  this.fromLocationId = _data["fromLocationId"];
@@ -37724,7 +37556,7 @@ export class BookingUpdateDto implements IBookingUpdateDto {
37724
37556
  toJSON(data?: any) {
37725
37557
  data = typeof data === 'object' ? data : {};
37726
37558
  data["bookingId"] = this.bookingId;
37727
- data["bookingKind"] = this.bookingKind;
37559
+ data["parcelKind"] = this.parcelKind;
37728
37560
  data["transportKind"] = this.transportKind;
37729
37561
  data["status"] = this.status;
37730
37562
  data["fromLocationId"] = this.fromLocationId;
@@ -37735,7 +37567,7 @@ export class BookingUpdateDto implements IBookingUpdateDto {
37735
37567
 
37736
37568
  export interface IBookingUpdateDto {
37737
37569
  bookingId: string;
37738
- bookingKind: BookingKindDto;
37570
+ parcelKind: ParcelKindDto;
37739
37571
  transportKind: TransportKindDto;
37740
37572
  status: BookingStatusDto;
37741
37573
  fromLocationId: string;
@@ -37802,7 +37634,7 @@ export interface IBookingTransportRequestDto {
37802
37634
  }
37803
37635
 
37804
37636
  export class BookingItemRequestDto implements IBookingItemRequestDto {
37805
- workOrderId?: string | null;
37637
+ parcelId?: string | null;
37806
37638
  trackingId?: string | null;
37807
37639
  comment?: string | null;
37808
37640
 
@@ -37817,7 +37649,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
37817
37649
 
37818
37650
  init(_data?: any) {
37819
37651
  if (_data) {
37820
- this.workOrderId = _data["workOrderId"];
37652
+ this.parcelId = _data["parcelId"];
37821
37653
  this.trackingId = _data["trackingId"];
37822
37654
  this.comment = _data["comment"];
37823
37655
  }
@@ -37832,7 +37664,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
37832
37664
 
37833
37665
  toJSON(data?: any) {
37834
37666
  data = typeof data === 'object' ? data : {};
37835
- data["workOrderId"] = this.workOrderId;
37667
+ data["parcelId"] = this.parcelId;
37836
37668
  data["trackingId"] = this.trackingId;
37837
37669
  data["comment"] = this.comment;
37838
37670
  return data;
@@ -37840,13 +37672,13 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
37840
37672
  }
37841
37673
 
37842
37674
  export interface IBookingItemRequestDto {
37843
- workOrderId?: string | null;
37675
+ parcelId?: string | null;
37844
37676
  trackingId?: string | null;
37845
37677
  comment?: string | null;
37846
37678
  }
37847
37679
 
37848
37680
  export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37849
- bookingKind!: BookingKindDto;
37681
+ parcelKind!: ParcelKindDto;
37850
37682
  transportKind!: TransportKindDto;
37851
37683
  fromLocationId!: string;
37852
37684
  toLocationId!: string;
@@ -37864,7 +37696,7 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37864
37696
 
37865
37697
  init(_data?: any) {
37866
37698
  if (_data) {
37867
- this.bookingKind = _data["bookingKind"];
37699
+ this.parcelKind = _data["parcelKind"];
37868
37700
  this.transportKind = _data["transportKind"];
37869
37701
  this.fromLocationId = _data["fromLocationId"];
37870
37702
  this.toLocationId = _data["toLocationId"];
@@ -37882,7 +37714,7 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37882
37714
 
37883
37715
  toJSON(data?: any) {
37884
37716
  data = typeof data === 'object' ? data : {};
37885
- data["bookingKind"] = this.bookingKind;
37717
+ data["parcelKind"] = this.parcelKind;
37886
37718
  data["transportKind"] = this.transportKind;
37887
37719
  data["fromLocationId"] = this.fromLocationId;
37888
37720
  data["toLocationId"] = this.toLocationId;
@@ -37893,7 +37725,7 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37893
37725
  }
37894
37726
 
37895
37727
  export interface IBookingGeneralRequestDto {
37896
- bookingKind: BookingKindDto;
37728
+ parcelKind: ParcelKindDto;
37897
37729
  transportKind: TransportKindDto;
37898
37730
  fromLocationId: string;
37899
37731
  toLocationId: string;
@@ -37997,90 +37829,6 @@ export interface IBookingDeliveryExceptionDto {
37997
37829
  comment?: string | null;
37998
37830
  }
37999
37831
 
38000
- export class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
38001
- bookingId!: string;
38002
-
38003
- constructor(data?: IBookingUpdateStatusDto) {
38004
- if (data) {
38005
- for (var property in data) {
38006
- if (data.hasOwnProperty(property))
38007
- (<any>this)[property] = (<any>data)[property];
38008
- }
38009
- }
38010
- }
38011
-
38012
- init(_data?: any) {
38013
- if (_data) {
38014
- this.bookingId = _data["bookingId"];
38015
- }
38016
- }
38017
-
38018
- static fromJS(data: any): BookingUpdateStatusDto {
38019
- data = typeof data === 'object' ? data : {};
38020
- let result = new BookingUpdateStatusDto();
38021
- result.init(data);
38022
- return result;
38023
- }
38024
-
38025
- toJSON(data?: any) {
38026
- data = typeof data === 'object' ? data : {};
38027
- data["bookingId"] = this.bookingId;
38028
- return data;
38029
- }
38030
- }
38031
-
38032
- export interface IBookingUpdateStatusDto {
38033
- bookingId: string;
38034
- }
38035
-
38036
- export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
38037
- bookingId!: string;
38038
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
38039
-
38040
- constructor(data?: IBookingDeliveryUpdateDto) {
38041
- if (data) {
38042
- for (var property in data) {
38043
- if (data.hasOwnProperty(property))
38044
- (<any>this)[property] = (<any>data)[property];
38045
- }
38046
- }
38047
- }
38048
-
38049
- init(_data?: any) {
38050
- if (_data) {
38051
- this.bookingId = _data["bookingId"];
38052
- if (Array.isArray(_data["deliveryExceptions"])) {
38053
- this.deliveryExceptions = [] as any;
38054
- for (let item of _data["deliveryExceptions"])
38055
- this.deliveryExceptions!.push(BookingDeliveryExceptionDto.fromJS(item));
38056
- }
38057
- }
38058
- }
38059
-
38060
- static fromJS(data: any): BookingDeliveryUpdateDto {
38061
- data = typeof data === 'object' ? data : {};
38062
- let result = new BookingDeliveryUpdateDto();
38063
- result.init(data);
38064
- return result;
38065
- }
38066
-
38067
- toJSON(data?: any) {
38068
- data = typeof data === 'object' ? data : {};
38069
- data["bookingId"] = this.bookingId;
38070
- if (Array.isArray(this.deliveryExceptions)) {
38071
- data["deliveryExceptions"] = [];
38072
- for (let item of this.deliveryExceptions)
38073
- data["deliveryExceptions"].push(item.toJSON());
38074
- }
38075
- return data;
38076
- }
38077
- }
38078
-
38079
- export interface IBookingDeliveryUpdateDto {
38080
- bookingId: string;
38081
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
38082
- }
38083
-
38084
37832
  export class LocationSuggestionsDto implements ILocationSuggestionsDto {
38085
37833
  items!: LocationSuggestionsItemDto[];
38086
37834
  locationKindFilter?: LocationKindDto[] | null;
@@ -38141,7 +37889,7 @@ export interface ILocationSuggestionsDto {
38141
37889
  }
38142
37890
 
38143
37891
  export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
38144
- workOrderId!: string;
37892
+ parcelId!: string;
38145
37893
 
38146
37894
  constructor(data?: ILocationSuggestionsItemDto) {
38147
37895
  if (data) {
@@ -38154,7 +37902,7 @@ export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
38154
37902
 
38155
37903
  init(_data?: any) {
38156
37904
  if (_data) {
38157
- this.workOrderId = _data["workOrderId"];
37905
+ this.parcelId = _data["parcelId"];
38158
37906
  }
38159
37907
  }
38160
37908
 
@@ -38167,13 +37915,13 @@ export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
38167
37915
 
38168
37916
  toJSON(data?: any) {
38169
37917
  data = typeof data === 'object' ? data : {};
38170
- data["workOrderId"] = this.workOrderId;
37918
+ data["parcelId"] = this.parcelId;
38171
37919
  return data;
38172
37920
  }
38173
37921
  }
38174
37922
 
38175
37923
  export interface ILocationSuggestionsItemDto {
38176
- workOrderId: string;
37924
+ parcelId: string;
38177
37925
  }
38178
37926
 
38179
37927
  export class MaterialDesciptionDto implements IMaterialDesciptionDto {
@@ -38260,6 +38008,111 @@ export interface IMaterialUpdateDto {
38260
38008
  covered: MaterialCoveredDto;
38261
38009
  }
38262
38010
 
38011
+ export class SearchParcelDto implements ISearchParcelDto {
38012
+ parcelId!: string;
38013
+ matchCriteria!: SearchMatchCriteriaDto;
38014
+ items!: SearchParcelItemDto[];
38015
+ partName?: string | null;
38016
+ partNumber?: string | null;
38017
+
38018
+ constructor(data?: ISearchParcelDto) {
38019
+ if (data) {
38020
+ for (var property in data) {
38021
+ if (data.hasOwnProperty(property))
38022
+ (<any>this)[property] = (<any>data)[property];
38023
+ }
38024
+ }
38025
+ if (!data) {
38026
+ this.items = [];
38027
+ }
38028
+ }
38029
+
38030
+ init(_data?: any) {
38031
+ if (_data) {
38032
+ this.parcelId = _data["parcelId"];
38033
+ this.matchCriteria = _data["matchCriteria"];
38034
+ if (Array.isArray(_data["items"])) {
38035
+ this.items = [] as any;
38036
+ for (let item of _data["items"])
38037
+ this.items!.push(SearchParcelItemDto.fromJS(item));
38038
+ }
38039
+ this.partName = _data["partName"];
38040
+ this.partNumber = _data["partNumber"];
38041
+ }
38042
+ }
38043
+
38044
+ static fromJS(data: any): SearchParcelDto {
38045
+ data = typeof data === 'object' ? data : {};
38046
+ let result = new SearchParcelDto();
38047
+ result.init(data);
38048
+ return result;
38049
+ }
38050
+
38051
+ toJSON(data?: any) {
38052
+ data = typeof data === 'object' ? data : {};
38053
+ data["parcelId"] = this.parcelId;
38054
+ data["matchCriteria"] = this.matchCriteria;
38055
+ if (Array.isArray(this.items)) {
38056
+ data["items"] = [];
38057
+ for (let item of this.items)
38058
+ data["items"].push(item.toJSON());
38059
+ }
38060
+ data["partName"] = this.partName;
38061
+ data["partNumber"] = this.partNumber;
38062
+ return data;
38063
+ }
38064
+ }
38065
+
38066
+ export interface ISearchParcelDto {
38067
+ parcelId: string;
38068
+ matchCriteria: SearchMatchCriteriaDto;
38069
+ items: SearchParcelItemDto[];
38070
+ partName?: string | null;
38071
+ partNumber?: string | null;
38072
+ }
38073
+
38074
+ export type SearchMatchCriteriaDto = "Tracking" | "WorkOrder" | "Parcel";
38075
+
38076
+ export class SearchParcelItemDto implements ISearchParcelItemDto {
38077
+ trackingId!: string;
38078
+ selected!: boolean;
38079
+
38080
+ constructor(data?: ISearchParcelItemDto) {
38081
+ if (data) {
38082
+ for (var property in data) {
38083
+ if (data.hasOwnProperty(property))
38084
+ (<any>this)[property] = (<any>data)[property];
38085
+ }
38086
+ }
38087
+ }
38088
+
38089
+ init(_data?: any) {
38090
+ if (_data) {
38091
+ this.trackingId = _data["trackingId"];
38092
+ this.selected = _data["selected"];
38093
+ }
38094
+ }
38095
+
38096
+ static fromJS(data: any): SearchParcelItemDto {
38097
+ data = typeof data === 'object' ? data : {};
38098
+ let result = new SearchParcelItemDto();
38099
+ result.init(data);
38100
+ return result;
38101
+ }
38102
+
38103
+ toJSON(data?: any) {
38104
+ data = typeof data === 'object' ? data : {};
38105
+ data["trackingId"] = this.trackingId;
38106
+ data["selected"] = this.selected;
38107
+ return data;
38108
+ }
38109
+ }
38110
+
38111
+ export interface ISearchParcelItemDto {
38112
+ trackingId: string;
38113
+ selected: boolean;
38114
+ }
38115
+
38263
38116
  export class TrackingHistoryListDto implements ITrackingHistoryListDto {
38264
38117
  results!: TrackingHistoryDto[];
38265
38118
  continuationToken?: string | null;
@@ -38314,8 +38167,9 @@ export interface ITrackingHistoryListDto {
38314
38167
  export class TrackingHistoryDto implements ITrackingHistoryDto {
38315
38168
  trackingId!: string;
38316
38169
  palletNumber!: number;
38317
- parcelKind!: BookingKindDto;
38318
- workOrderId!: string;
38170
+ parcelKind!: ParcelKindDto;
38171
+ parcelId!: string;
38172
+ currentTracking?: TrackingEventDto | null;
38319
38173
  trackingEvents!: TrackingEventDto[];
38320
38174
  material?: string | null;
38321
38175
  activeBooking?: boolean | null;
@@ -38337,7 +38191,8 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38337
38191
  this.trackingId = _data["trackingId"];
38338
38192
  this.palletNumber = _data["palletNumber"];
38339
38193
  this.parcelKind = _data["parcelKind"];
38340
- this.workOrderId = _data["workOrderId"];
38194
+ this.parcelId = _data["parcelId"];
38195
+ this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : <any>undefined;
38341
38196
  if (Array.isArray(_data["trackingEvents"])) {
38342
38197
  this.trackingEvents = [] as any;
38343
38198
  for (let item of _data["trackingEvents"])
@@ -38360,7 +38215,8 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38360
38215
  data["trackingId"] = this.trackingId;
38361
38216
  data["palletNumber"] = this.palletNumber;
38362
38217
  data["parcelKind"] = this.parcelKind;
38363
- data["workOrderId"] = this.workOrderId;
38218
+ data["parcelId"] = this.parcelId;
38219
+ data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : <any>undefined;
38364
38220
  if (Array.isArray(this.trackingEvents)) {
38365
38221
  data["trackingEvents"] = [];
38366
38222
  for (let item of this.trackingEvents)
@@ -38375,8 +38231,9 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38375
38231
  export interface ITrackingHistoryDto {
38376
38232
  trackingId: string;
38377
38233
  palletNumber: number;
38378
- parcelKind: BookingKindDto;
38379
- workOrderId: string;
38234
+ parcelKind: ParcelKindDto;
38235
+ parcelId: string;
38236
+ currentTracking?: TrackingEventDto | null;
38380
38237
  trackingEvents: TrackingEventDto[];
38381
38238
  material?: string | null;
38382
38239
  activeBooking?: boolean | null;
@@ -38450,8 +38307,8 @@ export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress
38450
38307
 
38451
38308
  export class TrackingRequestListDto implements ITrackingRequestListDto {
38452
38309
  pageSize?: number | null;
38453
- workOrderIdFilter?: string[] | null;
38454
- parcelKindFilter?: BookingKindDto[] | null;
38310
+ parcelIdFilter?: string[] | null;
38311
+ parcelKindFilter?: ParcelKindDto[] | null;
38455
38312
  locationIdFilter?: string[] | null;
38456
38313
  zoneIdFilter?: string[] | null;
38457
38314
  materialFilter?: string[] | null;
@@ -38470,10 +38327,10 @@ export class TrackingRequestListDto implements ITrackingRequestListDto {
38470
38327
  init(_data?: any) {
38471
38328
  if (_data) {
38472
38329
  this.pageSize = _data["pageSize"];
38473
- if (Array.isArray(_data["workOrderIdFilter"])) {
38474
- this.workOrderIdFilter = [] as any;
38475
- for (let item of _data["workOrderIdFilter"])
38476
- this.workOrderIdFilter!.push(item);
38330
+ if (Array.isArray(_data["parcelIdFilter"])) {
38331
+ this.parcelIdFilter = [] as any;
38332
+ for (let item of _data["parcelIdFilter"])
38333
+ this.parcelIdFilter!.push(item);
38477
38334
  }
38478
38335
  if (Array.isArray(_data["parcelKindFilter"])) {
38479
38336
  this.parcelKindFilter = [] as any;
@@ -38510,10 +38367,10 @@ export class TrackingRequestListDto implements ITrackingRequestListDto {
38510
38367
  toJSON(data?: any) {
38511
38368
  data = typeof data === 'object' ? data : {};
38512
38369
  data["pageSize"] = this.pageSize;
38513
- if (Array.isArray(this.workOrderIdFilter)) {
38514
- data["workOrderIdFilter"] = [];
38515
- for (let item of this.workOrderIdFilter)
38516
- data["workOrderIdFilter"].push(item);
38370
+ if (Array.isArray(this.parcelIdFilter)) {
38371
+ data["parcelIdFilter"] = [];
38372
+ for (let item of this.parcelIdFilter)
38373
+ data["parcelIdFilter"].push(item);
38517
38374
  }
38518
38375
  if (Array.isArray(this.parcelKindFilter)) {
38519
38376
  data["parcelKindFilter"] = [];
@@ -38543,8 +38400,8 @@ export class TrackingRequestListDto implements ITrackingRequestListDto {
38543
38400
 
38544
38401
  export interface ITrackingRequestListDto {
38545
38402
  pageSize?: number | null;
38546
- workOrderIdFilter?: string[] | null;
38547
- parcelKindFilter?: BookingKindDto[] | null;
38403
+ parcelIdFilter?: string[] | null;
38404
+ parcelKindFilter?: ParcelKindDto[] | null;
38548
38405
  locationIdFilter?: string[] | null;
38549
38406
  zoneIdFilter?: string[] | null;
38550
38407
  materialFilter?: string[] | null;
@@ -38552,13 +38409,13 @@ export interface ITrackingRequestListDto {
38552
38409
  continuationToken?: string | null;
38553
38410
  }
38554
38411
 
38555
- export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38556
- workOrderId!: string;
38412
+ export class TrackingParcelDto implements ITrackingParcelDto {
38413
+ parcelId!: string;
38557
38414
  part?: PartDto | null;
38558
38415
  trackingHistory!: TrackingHistoryDto[];
38559
38416
  covered!: MaterialCoveredDto;
38560
38417
 
38561
- constructor(data?: ITrackingWorkOrderDto) {
38418
+ constructor(data?: ITrackingParcelDto) {
38562
38419
  if (data) {
38563
38420
  for (var property in data) {
38564
38421
  if (data.hasOwnProperty(property))
@@ -38572,7 +38429,7 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38572
38429
 
38573
38430
  init(_data?: any) {
38574
38431
  if (_data) {
38575
- this.workOrderId = _data["workOrderId"];
38432
+ this.parcelId = _data["parcelId"];
38576
38433
  this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
38577
38434
  if (Array.isArray(_data["trackingHistory"])) {
38578
38435
  this.trackingHistory = [] as any;
@@ -38583,16 +38440,16 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38583
38440
  }
38584
38441
  }
38585
38442
 
38586
- static fromJS(data: any): TrackingWorkOrderDto {
38443
+ static fromJS(data: any): TrackingParcelDto {
38587
38444
  data = typeof data === 'object' ? data : {};
38588
- let result = new TrackingWorkOrderDto();
38445
+ let result = new TrackingParcelDto();
38589
38446
  result.init(data);
38590
38447
  return result;
38591
38448
  }
38592
38449
 
38593
38450
  toJSON(data?: any) {
38594
38451
  data = typeof data === 'object' ? data : {};
38595
- data["workOrderId"] = this.workOrderId;
38452
+ data["parcelId"] = this.parcelId;
38596
38453
  data["part"] = this.part ? this.part.toJSON() : <any>undefined;
38597
38454
  if (Array.isArray(this.trackingHistory)) {
38598
38455
  data["trackingHistory"] = [];
@@ -38604,8 +38461,8 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38604
38461
  }
38605
38462
  }
38606
38463
 
38607
- export interface ITrackingWorkOrderDto {
38608
- workOrderId: string;
38464
+ export interface ITrackingParcelDto {
38465
+ parcelId: string;
38609
38466
  part?: PartDto | null;
38610
38467
  trackingHistory: TrackingHistoryDto[];
38611
38468
  covered: MaterialCoveredDto;
@@ -38707,7 +38564,7 @@ export interface ITrackingUpdateDto {
38707
38564
  }
38708
38565
 
38709
38566
  export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
38710
- workOrderId!: string;
38567
+ parcelId!: string;
38711
38568
 
38712
38569
  constructor(data?: ITrackingHistoryUpdateDto) {
38713
38570
  if (data) {
@@ -38720,7 +38577,7 @@ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
38720
38577
 
38721
38578
  init(_data?: any) {
38722
38579
  if (_data) {
38723
- this.workOrderId = _data["workOrderId"];
38580
+ this.parcelId = _data["parcelId"];
38724
38581
  }
38725
38582
  }
38726
38583
 
@@ -38733,118 +38590,13 @@ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
38733
38590
 
38734
38591
  toJSON(data?: any) {
38735
38592
  data = typeof data === 'object' ? data : {};
38736
- data["workOrderId"] = this.workOrderId;
38593
+ data["parcelId"] = this.parcelId;
38737
38594
  return data;
38738
38595
  }
38739
38596
  }
38740
38597
 
38741
38598
  export interface ITrackingHistoryUpdateDto {
38742
- workOrderId: string;
38743
- }
38744
-
38745
- export class SearchWorkOrderDto implements ISearchWorkOrderDto {
38746
- workOrderId!: string;
38747
- matchCriteria!: SearchMatchCriteriaDto;
38748
- items!: SearchWorkOrderItemDto[];
38749
- partName?: string | null;
38750
- partNumber?: string | null;
38751
-
38752
- constructor(data?: ISearchWorkOrderDto) {
38753
- if (data) {
38754
- for (var property in data) {
38755
- if (data.hasOwnProperty(property))
38756
- (<any>this)[property] = (<any>data)[property];
38757
- }
38758
- }
38759
- if (!data) {
38760
- this.items = [];
38761
- }
38762
- }
38763
-
38764
- init(_data?: any) {
38765
- if (_data) {
38766
- this.workOrderId = _data["workOrderId"];
38767
- this.matchCriteria = _data["matchCriteria"];
38768
- if (Array.isArray(_data["items"])) {
38769
- this.items = [] as any;
38770
- for (let item of _data["items"])
38771
- this.items!.push(SearchWorkOrderItemDto.fromJS(item));
38772
- }
38773
- this.partName = _data["partName"];
38774
- this.partNumber = _data["partNumber"];
38775
- }
38776
- }
38777
-
38778
- static fromJS(data: any): SearchWorkOrderDto {
38779
- data = typeof data === 'object' ? data : {};
38780
- let result = new SearchWorkOrderDto();
38781
- result.init(data);
38782
- return result;
38783
- }
38784
-
38785
- toJSON(data?: any) {
38786
- data = typeof data === 'object' ? data : {};
38787
- data["workOrderId"] = this.workOrderId;
38788
- data["matchCriteria"] = this.matchCriteria;
38789
- if (Array.isArray(this.items)) {
38790
- data["items"] = [];
38791
- for (let item of this.items)
38792
- data["items"].push(item.toJSON());
38793
- }
38794
- data["partName"] = this.partName;
38795
- data["partNumber"] = this.partNumber;
38796
- return data;
38797
- }
38798
- }
38799
-
38800
- export interface ISearchWorkOrderDto {
38801
- workOrderId: string;
38802
- matchCriteria: SearchMatchCriteriaDto;
38803
- items: SearchWorkOrderItemDto[];
38804
- partName?: string | null;
38805
- partNumber?: string | null;
38806
- }
38807
-
38808
- export type SearchMatchCriteriaDto = "Tracking" | "WorkOrder" | "Parcel";
38809
-
38810
- export class SearchWorkOrderItemDto implements ISearchWorkOrderItemDto {
38811
- trackingId!: string;
38812
- selected!: boolean;
38813
-
38814
- constructor(data?: ISearchWorkOrderItemDto) {
38815
- if (data) {
38816
- for (var property in data) {
38817
- if (data.hasOwnProperty(property))
38818
- (<any>this)[property] = (<any>data)[property];
38819
- }
38820
- }
38821
- }
38822
-
38823
- init(_data?: any) {
38824
- if (_data) {
38825
- this.trackingId = _data["trackingId"];
38826
- this.selected = _data["selected"];
38827
- }
38828
- }
38829
-
38830
- static fromJS(data: any): SearchWorkOrderItemDto {
38831
- data = typeof data === 'object' ? data : {};
38832
- let result = new SearchWorkOrderItemDto();
38833
- result.init(data);
38834
- return result;
38835
- }
38836
-
38837
- toJSON(data?: any) {
38838
- data = typeof data === 'object' ? data : {};
38839
- data["trackingId"] = this.trackingId;
38840
- data["selected"] = this.selected;
38841
- return data;
38842
- }
38843
- }
38844
-
38845
- export interface ISearchWorkOrderItemDto {
38846
- trackingId: string;
38847
- selected: boolean;
38599
+ parcelId: string;
38848
38600
  }
38849
38601
 
38850
38602
  export class WorkerDto implements IWorkerDto {