@ignos/api-client 20240819.0.10052 → 20240820.0.10059

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
 
@@ -12498,11 +12498,11 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12498
12498
  return Promise.resolve<BookingDto>(null as any);
12499
12499
  }
12500
12500
 
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));
12501
+ getParcelBooking(parcelId: string): Promise<BookingDto[]> {
12502
+ let url_ = this.baseUrl + "/move/booking/parcel/{parcelId}";
12503
+ if (parcelId === undefined || parcelId === null)
12504
+ throw new Error("The parameter 'parcelId' must be defined.");
12505
+ url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
12506
12506
  url_ = url_.replace(/[?&]$/, "");
12507
12507
 
12508
12508
  let options_: RequestInit = {
@@ -12515,11 +12515,11 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12515
12515
  return this.transformOptions(options_).then(transformedOptions_ => {
12516
12516
  return this.http.fetch(url_, transformedOptions_);
12517
12517
  }).then((_response: Response) => {
12518
- return this.processGetWorkOrderBooking(_response);
12518
+ return this.processGetParcelBooking(_response);
12519
12519
  });
12520
12520
  }
12521
12521
 
12522
- protected processGetWorkOrderBooking(response: Response): Promise<BookingDto[]> {
12522
+ protected processGetParcelBooking(response: Response): Promise<BookingDto[]> {
12523
12523
  const status = response.status;
12524
12524
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12525
12525
  if (status === 200) {
@@ -13189,15 +13189,76 @@ export class MoveMaterialsClient extends AuthorizedApiBase implements IMoveMater
13189
13189
  }
13190
13190
  }
13191
13191
 
13192
+ export interface IMoveParcelsClient {
13193
+
13194
+ searchParcels(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
13195
+ }
13196
+
13197
+ export class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcelsClient {
13198
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13199
+ private baseUrl: string;
13200
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
13201
+
13202
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13203
+ super(configuration);
13204
+ this.http = http ? http : window as any;
13205
+ this.baseUrl = baseUrl ?? "";
13206
+ }
13207
+
13208
+ searchParcels(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]> {
13209
+ let url_ = this.baseUrl + "/move/parcel/search?";
13210
+ if (input !== undefined && input !== null)
13211
+ url_ += "input=" + encodeURIComponent("" + input) + "&";
13212
+ if (pageSize !== undefined && pageSize !== null)
13213
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
13214
+ url_ = url_.replace(/[?&]$/, "");
13215
+
13216
+ let options_: RequestInit = {
13217
+ method: "GET",
13218
+ headers: {
13219
+ "Accept": "application/json"
13220
+ }
13221
+ };
13222
+
13223
+ return this.transformOptions(options_).then(transformedOptions_ => {
13224
+ return this.http.fetch(url_, transformedOptions_);
13225
+ }).then((_response: Response) => {
13226
+ return this.processSearchParcels(_response);
13227
+ });
13228
+ }
13229
+
13230
+ protected processSearchParcels(response: Response): Promise<SearchParcelDto[]> {
13231
+ const status = response.status;
13232
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13233
+ if (status === 200) {
13234
+ return response.text().then((_responseText) => {
13235
+ let result200: any = null;
13236
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13237
+ if (Array.isArray(resultData200)) {
13238
+ result200 = [] as any;
13239
+ for (let item of resultData200)
13240
+ result200!.push(SearchParcelDto.fromJS(item));
13241
+ }
13242
+ return result200;
13243
+ });
13244
+ } else if (status !== 200 && status !== 204) {
13245
+ return response.text().then((_responseText) => {
13246
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13247
+ });
13248
+ }
13249
+ return Promise.resolve<SearchParcelDto[]>(null as any);
13250
+ }
13251
+ }
13252
+
13192
13253
  export interface IMoveTrackingClient {
13193
13254
 
13194
13255
  listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
13195
13256
 
13196
13257
  getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingHistoryDto>;
13197
13258
 
13198
- getWorkOrderTrackingHistory(workOrderId: string, includeActiveBookings: boolean | undefined): Promise<TrackingWorkOrderDto>;
13259
+ getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
13199
13260
 
13200
- listWorkOrderTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingWorkOrderDto[]>;
13261
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]>;
13201
13262
 
13202
13263
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
13203
13264
 
@@ -13302,11 +13363,11 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13302
13363
  return Promise.resolve<TrackingHistoryDto>(null as any);
13303
13364
  }
13304
13365
 
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));
13366
+ getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
13367
+ let url_ = this.baseUrl + "/move/tracking/parcel/{parcelId}?";
13368
+ if (parcelId === undefined || parcelId === null)
13369
+ throw new Error("The parameter 'parcelId' must be defined.");
13370
+ url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
13310
13371
  if (includeActiveBookings === null)
13311
13372
  throw new Error("The parameter 'includeActiveBookings' cannot be null.");
13312
13373
  else if (includeActiveBookings !== undefined)
@@ -13323,18 +13384,18 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13323
13384
  return this.transformOptions(options_).then(transformedOptions_ => {
13324
13385
  return this.http.fetch(url_, transformedOptions_);
13325
13386
  }).then((_response: Response) => {
13326
- return this.processGetWorkOrderTrackingHistory(_response);
13387
+ return this.processGetParcelTrackingHistory(_response);
13327
13388
  });
13328
13389
  }
13329
13390
 
13330
- protected processGetWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto> {
13391
+ protected processGetParcelTrackingHistory(response: Response): Promise<TrackingParcelDto> {
13331
13392
  const status = response.status;
13332
13393
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13333
13394
  if (status === 200) {
13334
13395
  return response.text().then((_responseText) => {
13335
13396
  let result200: any = null;
13336
13397
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13337
- result200 = TrackingWorkOrderDto.fromJS(resultData200);
13398
+ result200 = TrackingParcelDto.fromJS(resultData200);
13338
13399
  return result200;
13339
13400
  });
13340
13401
  } else if (status !== 200 && status !== 204) {
@@ -13342,11 +13403,11 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13342
13403
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13343
13404
  });
13344
13405
  }
13345
- return Promise.resolve<TrackingWorkOrderDto>(null as any);
13406
+ return Promise.resolve<TrackingParcelDto>(null as any);
13346
13407
  }
13347
13408
 
13348
- listWorkOrderTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingWorkOrderDto[]> {
13349
- let url_ = this.baseUrl + "/move/tracking/workorder/list";
13409
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]> {
13410
+ let url_ = this.baseUrl + "/move/tracking/parcel/list";
13350
13411
  url_ = url_.replace(/[?&]$/, "");
13351
13412
 
13352
13413
  const content_ = JSON.stringify(trackingParcelList);
@@ -13363,11 +13424,11 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13363
13424
  return this.transformOptions(options_).then(transformedOptions_ => {
13364
13425
  return this.http.fetch(url_, transformedOptions_);
13365
13426
  }).then((_response: Response) => {
13366
- return this.processListWorkOrderTrackingHistory(_response);
13427
+ return this.processListParcelTrackingHistory(_response);
13367
13428
  });
13368
13429
  }
13369
13430
 
13370
- protected processListWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto[]> {
13431
+ protected processListParcelTrackingHistory(response: Response): Promise<TrackingParcelDto[]> {
13371
13432
  const status = response.status;
13372
13433
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13373
13434
  if (status === 200) {
@@ -13377,7 +13438,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13377
13438
  if (Array.isArray(resultData200)) {
13378
13439
  result200 = [] as any;
13379
13440
  for (let item of resultData200)
13380
- result200!.push(TrackingWorkOrderDto.fromJS(item));
13441
+ result200!.push(TrackingParcelDto.fromJS(item));
13381
13442
  }
13382
13443
  return result200;
13383
13444
  });
@@ -13386,7 +13447,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13386
13447
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13387
13448
  });
13388
13449
  }
13389
- return Promise.resolve<TrackingWorkOrderDto[]>(null as any);
13450
+ return Promise.resolve<TrackingParcelDto[]>(null as any);
13390
13451
  }
13391
13452
 
13392
13453
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]> {
@@ -13553,67 +13614,6 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13553
13614
  }
13554
13615
  }
13555
13616
 
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
13617
  export interface IMesClient {
13618
13618
 
13619
13619
  getWorkerDetailsForCurrentUser(): Promise<WorkerDto>;
@@ -37287,7 +37287,7 @@ export interface IBookingListDto {
37287
37287
 
37288
37288
  export class BookingDto implements IBookingDto {
37289
37289
  bookingId!: string;
37290
- bookingKind!: BookingKindDto;
37290
+ parcelKind!: ParcelKindDto;
37291
37291
  transportKind!: TransportKindDto;
37292
37292
  status!: BookingStatusDto;
37293
37293
  items!: BookingItemDto[];
@@ -37319,7 +37319,7 @@ export class BookingDto implements IBookingDto {
37319
37319
  init(_data?: any) {
37320
37320
  if (_data) {
37321
37321
  this.bookingId = _data["bookingId"];
37322
- this.bookingKind = _data["bookingKind"];
37322
+ this.parcelKind = _data["parcelKind"];
37323
37323
  this.transportKind = _data["transportKind"];
37324
37324
  this.status = _data["status"];
37325
37325
  if (Array.isArray(_data["items"])) {
@@ -37350,7 +37350,7 @@ export class BookingDto implements IBookingDto {
37350
37350
  toJSON(data?: any) {
37351
37351
  data = typeof data === 'object' ? data : {};
37352
37352
  data["bookingId"] = this.bookingId;
37353
- data["bookingKind"] = this.bookingKind;
37353
+ data["parcelKind"] = this.parcelKind;
37354
37354
  data["transportKind"] = this.transportKind;
37355
37355
  data["status"] = this.status;
37356
37356
  if (Array.isArray(this.items)) {
@@ -37374,7 +37374,7 @@ export class BookingDto implements IBookingDto {
37374
37374
 
37375
37375
  export interface IBookingDto {
37376
37376
  bookingId: string;
37377
- bookingKind: BookingKindDto;
37377
+ parcelKind: ParcelKindDto;
37378
37378
  transportKind: TransportKindDto;
37379
37379
  status: BookingStatusDto;
37380
37380
  items: BookingItemDto[];
@@ -37390,7 +37390,7 @@ export interface IBookingDto {
37390
37390
  completed?: Date | null;
37391
37391
  }
37392
37392
 
37393
- export type BookingKindDto = "Forklift" | "General" | "ChipDisposal" | "Garbage";
37393
+ export type ParcelKindDto = "Forklift" | "General" | "ChipDisposal" | "Garbage";
37394
37394
 
37395
37395
  export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
37396
37396
 
@@ -37399,8 +37399,8 @@ export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Complet
37399
37399
  export class BookingItemDto implements IBookingItemDto {
37400
37400
  trackingId!: string;
37401
37401
  palletNumber!: number;
37402
- workOrderId!: string;
37403
- parcelKind!: BookingKindDto;
37402
+ parcelId!: string;
37403
+ parcelKind!: ParcelKindDto;
37404
37404
  material?: string | null;
37405
37405
  comment?: string | null;
37406
37406
  covered!: MaterialCoveredDto;
@@ -37419,7 +37419,7 @@ export class BookingItemDto implements IBookingItemDto {
37419
37419
  if (_data) {
37420
37420
  this.trackingId = _data["trackingId"];
37421
37421
  this.palletNumber = _data["palletNumber"];
37422
- this.workOrderId = _data["workOrderId"];
37422
+ this.parcelId = _data["parcelId"];
37423
37423
  this.parcelKind = _data["parcelKind"];
37424
37424
  this.material = _data["material"];
37425
37425
  this.comment = _data["comment"];
@@ -37439,7 +37439,7 @@ export class BookingItemDto implements IBookingItemDto {
37439
37439
  data = typeof data === 'object' ? data : {};
37440
37440
  data["trackingId"] = this.trackingId;
37441
37441
  data["palletNumber"] = this.palletNumber;
37442
- data["workOrderId"] = this.workOrderId;
37442
+ data["parcelId"] = this.parcelId;
37443
37443
  data["parcelKind"] = this.parcelKind;
37444
37444
  data["material"] = this.material;
37445
37445
  data["comment"] = this.comment;
@@ -37452,8 +37452,8 @@ export class BookingItemDto implements IBookingItemDto {
37452
37452
  export interface IBookingItemDto {
37453
37453
  trackingId: string;
37454
37454
  palletNumber: number;
37455
- workOrderId: string;
37456
- parcelKind: BookingKindDto;
37455
+ parcelId: string;
37456
+ parcelKind: ParcelKindDto;
37457
37457
  material?: string | null;
37458
37458
  comment?: string | null;
37459
37459
  covered: MaterialCoveredDto;
@@ -37522,14 +37522,14 @@ export type LocationKindDto = "Warehouse" | "Zone" | "Location";
37522
37522
 
37523
37523
  export class BookingRequestListDto implements IBookingRequestListDto {
37524
37524
  pageSize?: number | null;
37525
- workOrderIdFilter?: string[] | null;
37525
+ parcelIdFilter?: string[] | null;
37526
37526
  materialFilter?: string[] | null;
37527
37527
  locationIdFromFilter?: string[] | null;
37528
37528
  locationIdToFilter?: string[] | null;
37529
37529
  zoneIdFromFilter?: string[] | null;
37530
37530
  zoneIdToFilter?: string[] | null;
37531
37531
  bookingStatusFilter?: BookingStatusDto[] | null;
37532
- bookingKindFilter?: BookingKindDto[] | null;
37532
+ parcelKindFilter?: ParcelKindDto[] | null;
37533
37533
  transportKindFilter?: TransportKindDto[] | null;
37534
37534
  taskFilter?: BookingTaskDto | null;
37535
37535
  createdByFilter?: BookingCreatedByDto | null;
@@ -37548,10 +37548,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37548
37548
  init(_data?: any) {
37549
37549
  if (_data) {
37550
37550
  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);
37551
+ if (Array.isArray(_data["parcelIdFilter"])) {
37552
+ this.parcelIdFilter = [] as any;
37553
+ for (let item of _data["parcelIdFilter"])
37554
+ this.parcelIdFilter!.push(item);
37555
37555
  }
37556
37556
  if (Array.isArray(_data["materialFilter"])) {
37557
37557
  this.materialFilter = [] as any;
@@ -37583,10 +37583,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37583
37583
  for (let item of _data["bookingStatusFilter"])
37584
37584
  this.bookingStatusFilter!.push(item);
37585
37585
  }
37586
- if (Array.isArray(_data["bookingKindFilter"])) {
37587
- this.bookingKindFilter = [] as any;
37588
- for (let item of _data["bookingKindFilter"])
37589
- this.bookingKindFilter!.push(item);
37586
+ if (Array.isArray(_data["parcelKindFilter"])) {
37587
+ this.parcelKindFilter = [] as any;
37588
+ for (let item of _data["parcelKindFilter"])
37589
+ this.parcelKindFilter!.push(item);
37590
37590
  }
37591
37591
  if (Array.isArray(_data["transportKindFilter"])) {
37592
37592
  this.transportKindFilter = [] as any;
@@ -37610,10 +37610,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37610
37610
  toJSON(data?: any) {
37611
37611
  data = typeof data === 'object' ? data : {};
37612
37612
  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);
37613
+ if (Array.isArray(this.parcelIdFilter)) {
37614
+ data["parcelIdFilter"] = [];
37615
+ for (let item of this.parcelIdFilter)
37616
+ data["parcelIdFilter"].push(item);
37617
37617
  }
37618
37618
  if (Array.isArray(this.materialFilter)) {
37619
37619
  data["materialFilter"] = [];
@@ -37645,10 +37645,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37645
37645
  for (let item of this.bookingStatusFilter)
37646
37646
  data["bookingStatusFilter"].push(item);
37647
37647
  }
37648
- if (Array.isArray(this.bookingKindFilter)) {
37649
- data["bookingKindFilter"] = [];
37650
- for (let item of this.bookingKindFilter)
37651
- data["bookingKindFilter"].push(item);
37648
+ if (Array.isArray(this.parcelKindFilter)) {
37649
+ data["parcelKindFilter"] = [];
37650
+ for (let item of this.parcelKindFilter)
37651
+ data["parcelKindFilter"].push(item);
37652
37652
  }
37653
37653
  if (Array.isArray(this.transportKindFilter)) {
37654
37654
  data["transportKindFilter"] = [];
@@ -37665,14 +37665,14 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37665
37665
 
37666
37666
  export interface IBookingRequestListDto {
37667
37667
  pageSize?: number | null;
37668
- workOrderIdFilter?: string[] | null;
37668
+ parcelIdFilter?: string[] | null;
37669
37669
  materialFilter?: string[] | null;
37670
37670
  locationIdFromFilter?: string[] | null;
37671
37671
  locationIdToFilter?: string[] | null;
37672
37672
  zoneIdFromFilter?: string[] | null;
37673
37673
  zoneIdToFilter?: string[] | null;
37674
37674
  bookingStatusFilter?: BookingStatusDto[] | null;
37675
- bookingKindFilter?: BookingKindDto[] | null;
37675
+ parcelKindFilter?: ParcelKindDto[] | null;
37676
37676
  transportKindFilter?: TransportKindDto[] | null;
37677
37677
  taskFilter?: BookingTaskDto | null;
37678
37678
  createdByFilter?: BookingCreatedByDto | null;
@@ -37688,7 +37688,7 @@ export type BookingOrderDto = "Ascending" | "Descending";
37688
37688
 
37689
37689
  export class BookingUpdateDto implements IBookingUpdateDto {
37690
37690
  bookingId!: string;
37691
- bookingKind!: BookingKindDto;
37691
+ parcelKind!: ParcelKindDto;
37692
37692
  transportKind!: TransportKindDto;
37693
37693
  status!: BookingStatusDto;
37694
37694
  fromLocationId!: string;
@@ -37706,7 +37706,7 @@ export class BookingUpdateDto implements IBookingUpdateDto {
37706
37706
  init(_data?: any) {
37707
37707
  if (_data) {
37708
37708
  this.bookingId = _data["bookingId"];
37709
- this.bookingKind = _data["bookingKind"];
37709
+ this.parcelKind = _data["parcelKind"];
37710
37710
  this.transportKind = _data["transportKind"];
37711
37711
  this.status = _data["status"];
37712
37712
  this.fromLocationId = _data["fromLocationId"];
@@ -37724,7 +37724,7 @@ export class BookingUpdateDto implements IBookingUpdateDto {
37724
37724
  toJSON(data?: any) {
37725
37725
  data = typeof data === 'object' ? data : {};
37726
37726
  data["bookingId"] = this.bookingId;
37727
- data["bookingKind"] = this.bookingKind;
37727
+ data["parcelKind"] = this.parcelKind;
37728
37728
  data["transportKind"] = this.transportKind;
37729
37729
  data["status"] = this.status;
37730
37730
  data["fromLocationId"] = this.fromLocationId;
@@ -37735,7 +37735,7 @@ export class BookingUpdateDto implements IBookingUpdateDto {
37735
37735
 
37736
37736
  export interface IBookingUpdateDto {
37737
37737
  bookingId: string;
37738
- bookingKind: BookingKindDto;
37738
+ parcelKind: ParcelKindDto;
37739
37739
  transportKind: TransportKindDto;
37740
37740
  status: BookingStatusDto;
37741
37741
  fromLocationId: string;
@@ -37802,7 +37802,7 @@ export interface IBookingTransportRequestDto {
37802
37802
  }
37803
37803
 
37804
37804
  export class BookingItemRequestDto implements IBookingItemRequestDto {
37805
- workOrderId?: string | null;
37805
+ parcelId?: string | null;
37806
37806
  trackingId?: string | null;
37807
37807
  comment?: string | null;
37808
37808
 
@@ -37817,7 +37817,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
37817
37817
 
37818
37818
  init(_data?: any) {
37819
37819
  if (_data) {
37820
- this.workOrderId = _data["workOrderId"];
37820
+ this.parcelId = _data["parcelId"];
37821
37821
  this.trackingId = _data["trackingId"];
37822
37822
  this.comment = _data["comment"];
37823
37823
  }
@@ -37832,7 +37832,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
37832
37832
 
37833
37833
  toJSON(data?: any) {
37834
37834
  data = typeof data === 'object' ? data : {};
37835
- data["workOrderId"] = this.workOrderId;
37835
+ data["parcelId"] = this.parcelId;
37836
37836
  data["trackingId"] = this.trackingId;
37837
37837
  data["comment"] = this.comment;
37838
37838
  return data;
@@ -37840,13 +37840,13 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
37840
37840
  }
37841
37841
 
37842
37842
  export interface IBookingItemRequestDto {
37843
- workOrderId?: string | null;
37843
+ parcelId?: string | null;
37844
37844
  trackingId?: string | null;
37845
37845
  comment?: string | null;
37846
37846
  }
37847
37847
 
37848
37848
  export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37849
- bookingKind!: BookingKindDto;
37849
+ parcelKind!: ParcelKindDto;
37850
37850
  transportKind!: TransportKindDto;
37851
37851
  fromLocationId!: string;
37852
37852
  toLocationId!: string;
@@ -37864,7 +37864,7 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37864
37864
 
37865
37865
  init(_data?: any) {
37866
37866
  if (_data) {
37867
- this.bookingKind = _data["bookingKind"];
37867
+ this.parcelKind = _data["parcelKind"];
37868
37868
  this.transportKind = _data["transportKind"];
37869
37869
  this.fromLocationId = _data["fromLocationId"];
37870
37870
  this.toLocationId = _data["toLocationId"];
@@ -37882,7 +37882,7 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37882
37882
 
37883
37883
  toJSON(data?: any) {
37884
37884
  data = typeof data === 'object' ? data : {};
37885
- data["bookingKind"] = this.bookingKind;
37885
+ data["parcelKind"] = this.parcelKind;
37886
37886
  data["transportKind"] = this.transportKind;
37887
37887
  data["fromLocationId"] = this.fromLocationId;
37888
37888
  data["toLocationId"] = this.toLocationId;
@@ -37893,7 +37893,7 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37893
37893
  }
37894
37894
 
37895
37895
  export interface IBookingGeneralRequestDto {
37896
- bookingKind: BookingKindDto;
37896
+ parcelKind: ParcelKindDto;
37897
37897
  transportKind: TransportKindDto;
37898
37898
  fromLocationId: string;
37899
37899
  toLocationId: string;
@@ -38141,7 +38141,7 @@ export interface ILocationSuggestionsDto {
38141
38141
  }
38142
38142
 
38143
38143
  export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
38144
- workOrderId!: string;
38144
+ parcelId!: string;
38145
38145
 
38146
38146
  constructor(data?: ILocationSuggestionsItemDto) {
38147
38147
  if (data) {
@@ -38154,7 +38154,7 @@ export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
38154
38154
 
38155
38155
  init(_data?: any) {
38156
38156
  if (_data) {
38157
- this.workOrderId = _data["workOrderId"];
38157
+ this.parcelId = _data["parcelId"];
38158
38158
  }
38159
38159
  }
38160
38160
 
@@ -38167,13 +38167,13 @@ export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
38167
38167
 
38168
38168
  toJSON(data?: any) {
38169
38169
  data = typeof data === 'object' ? data : {};
38170
- data["workOrderId"] = this.workOrderId;
38170
+ data["parcelId"] = this.parcelId;
38171
38171
  return data;
38172
38172
  }
38173
38173
  }
38174
38174
 
38175
38175
  export interface ILocationSuggestionsItemDto {
38176
- workOrderId: string;
38176
+ parcelId: string;
38177
38177
  }
38178
38178
 
38179
38179
  export class MaterialDesciptionDto implements IMaterialDesciptionDto {
@@ -38260,6 +38260,111 @@ export interface IMaterialUpdateDto {
38260
38260
  covered: MaterialCoveredDto;
38261
38261
  }
38262
38262
 
38263
+ export class SearchParcelDto implements ISearchParcelDto {
38264
+ parcelId!: string;
38265
+ matchCriteria!: SearchMatchCriteriaDto;
38266
+ items!: SearchParcelItemDto[];
38267
+ partName?: string | null;
38268
+ partNumber?: string | null;
38269
+
38270
+ constructor(data?: ISearchParcelDto) {
38271
+ if (data) {
38272
+ for (var property in data) {
38273
+ if (data.hasOwnProperty(property))
38274
+ (<any>this)[property] = (<any>data)[property];
38275
+ }
38276
+ }
38277
+ if (!data) {
38278
+ this.items = [];
38279
+ }
38280
+ }
38281
+
38282
+ init(_data?: any) {
38283
+ if (_data) {
38284
+ this.parcelId = _data["parcelId"];
38285
+ this.matchCriteria = _data["matchCriteria"];
38286
+ if (Array.isArray(_data["items"])) {
38287
+ this.items = [] as any;
38288
+ for (let item of _data["items"])
38289
+ this.items!.push(SearchParcelItemDto.fromJS(item));
38290
+ }
38291
+ this.partName = _data["partName"];
38292
+ this.partNumber = _data["partNumber"];
38293
+ }
38294
+ }
38295
+
38296
+ static fromJS(data: any): SearchParcelDto {
38297
+ data = typeof data === 'object' ? data : {};
38298
+ let result = new SearchParcelDto();
38299
+ result.init(data);
38300
+ return result;
38301
+ }
38302
+
38303
+ toJSON(data?: any) {
38304
+ data = typeof data === 'object' ? data : {};
38305
+ data["parcelId"] = this.parcelId;
38306
+ data["matchCriteria"] = this.matchCriteria;
38307
+ if (Array.isArray(this.items)) {
38308
+ data["items"] = [];
38309
+ for (let item of this.items)
38310
+ data["items"].push(item.toJSON());
38311
+ }
38312
+ data["partName"] = this.partName;
38313
+ data["partNumber"] = this.partNumber;
38314
+ return data;
38315
+ }
38316
+ }
38317
+
38318
+ export interface ISearchParcelDto {
38319
+ parcelId: string;
38320
+ matchCriteria: SearchMatchCriteriaDto;
38321
+ items: SearchParcelItemDto[];
38322
+ partName?: string | null;
38323
+ partNumber?: string | null;
38324
+ }
38325
+
38326
+ export type SearchMatchCriteriaDto = "Tracking" | "WorkOrder" | "Parcel";
38327
+
38328
+ export class SearchParcelItemDto implements ISearchParcelItemDto {
38329
+ trackingId!: string;
38330
+ selected!: boolean;
38331
+
38332
+ constructor(data?: ISearchParcelItemDto) {
38333
+ if (data) {
38334
+ for (var property in data) {
38335
+ if (data.hasOwnProperty(property))
38336
+ (<any>this)[property] = (<any>data)[property];
38337
+ }
38338
+ }
38339
+ }
38340
+
38341
+ init(_data?: any) {
38342
+ if (_data) {
38343
+ this.trackingId = _data["trackingId"];
38344
+ this.selected = _data["selected"];
38345
+ }
38346
+ }
38347
+
38348
+ static fromJS(data: any): SearchParcelItemDto {
38349
+ data = typeof data === 'object' ? data : {};
38350
+ let result = new SearchParcelItemDto();
38351
+ result.init(data);
38352
+ return result;
38353
+ }
38354
+
38355
+ toJSON(data?: any) {
38356
+ data = typeof data === 'object' ? data : {};
38357
+ data["trackingId"] = this.trackingId;
38358
+ data["selected"] = this.selected;
38359
+ return data;
38360
+ }
38361
+ }
38362
+
38363
+ export interface ISearchParcelItemDto {
38364
+ trackingId: string;
38365
+ selected: boolean;
38366
+ }
38367
+
38263
38368
  export class TrackingHistoryListDto implements ITrackingHistoryListDto {
38264
38369
  results!: TrackingHistoryDto[];
38265
38370
  continuationToken?: string | null;
@@ -38314,8 +38419,8 @@ export interface ITrackingHistoryListDto {
38314
38419
  export class TrackingHistoryDto implements ITrackingHistoryDto {
38315
38420
  trackingId!: string;
38316
38421
  palletNumber!: number;
38317
- parcelKind!: BookingKindDto;
38318
- workOrderId!: string;
38422
+ parcelKind!: ParcelKindDto;
38423
+ parcelId!: string;
38319
38424
  trackingEvents!: TrackingEventDto[];
38320
38425
  material?: string | null;
38321
38426
  activeBooking?: boolean | null;
@@ -38337,7 +38442,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38337
38442
  this.trackingId = _data["trackingId"];
38338
38443
  this.palletNumber = _data["palletNumber"];
38339
38444
  this.parcelKind = _data["parcelKind"];
38340
- this.workOrderId = _data["workOrderId"];
38445
+ this.parcelId = _data["parcelId"];
38341
38446
  if (Array.isArray(_data["trackingEvents"])) {
38342
38447
  this.trackingEvents = [] as any;
38343
38448
  for (let item of _data["trackingEvents"])
@@ -38360,7 +38465,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38360
38465
  data["trackingId"] = this.trackingId;
38361
38466
  data["palletNumber"] = this.palletNumber;
38362
38467
  data["parcelKind"] = this.parcelKind;
38363
- data["workOrderId"] = this.workOrderId;
38468
+ data["parcelId"] = this.parcelId;
38364
38469
  if (Array.isArray(this.trackingEvents)) {
38365
38470
  data["trackingEvents"] = [];
38366
38471
  for (let item of this.trackingEvents)
@@ -38375,8 +38480,8 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38375
38480
  export interface ITrackingHistoryDto {
38376
38481
  trackingId: string;
38377
38482
  palletNumber: number;
38378
- parcelKind: BookingKindDto;
38379
- workOrderId: string;
38483
+ parcelKind: ParcelKindDto;
38484
+ parcelId: string;
38380
38485
  trackingEvents: TrackingEventDto[];
38381
38486
  material?: string | null;
38382
38487
  activeBooking?: boolean | null;
@@ -38450,8 +38555,8 @@ export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress
38450
38555
 
38451
38556
  export class TrackingRequestListDto implements ITrackingRequestListDto {
38452
38557
  pageSize?: number | null;
38453
- workOrderIdFilter?: string[] | null;
38454
- parcelKindFilter?: BookingKindDto[] | null;
38558
+ parcelIdFilter?: string[] | null;
38559
+ parcelKindFilter?: ParcelKindDto[] | null;
38455
38560
  locationIdFilter?: string[] | null;
38456
38561
  zoneIdFilter?: string[] | null;
38457
38562
  materialFilter?: string[] | null;
@@ -38470,10 +38575,10 @@ export class TrackingRequestListDto implements ITrackingRequestListDto {
38470
38575
  init(_data?: any) {
38471
38576
  if (_data) {
38472
38577
  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);
38578
+ if (Array.isArray(_data["parcelIdFilter"])) {
38579
+ this.parcelIdFilter = [] as any;
38580
+ for (let item of _data["parcelIdFilter"])
38581
+ this.parcelIdFilter!.push(item);
38477
38582
  }
38478
38583
  if (Array.isArray(_data["parcelKindFilter"])) {
38479
38584
  this.parcelKindFilter = [] as any;
@@ -38510,10 +38615,10 @@ export class TrackingRequestListDto implements ITrackingRequestListDto {
38510
38615
  toJSON(data?: any) {
38511
38616
  data = typeof data === 'object' ? data : {};
38512
38617
  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);
38618
+ if (Array.isArray(this.parcelIdFilter)) {
38619
+ data["parcelIdFilter"] = [];
38620
+ for (let item of this.parcelIdFilter)
38621
+ data["parcelIdFilter"].push(item);
38517
38622
  }
38518
38623
  if (Array.isArray(this.parcelKindFilter)) {
38519
38624
  data["parcelKindFilter"] = [];
@@ -38543,8 +38648,8 @@ export class TrackingRequestListDto implements ITrackingRequestListDto {
38543
38648
 
38544
38649
  export interface ITrackingRequestListDto {
38545
38650
  pageSize?: number | null;
38546
- workOrderIdFilter?: string[] | null;
38547
- parcelKindFilter?: BookingKindDto[] | null;
38651
+ parcelIdFilter?: string[] | null;
38652
+ parcelKindFilter?: ParcelKindDto[] | null;
38548
38653
  locationIdFilter?: string[] | null;
38549
38654
  zoneIdFilter?: string[] | null;
38550
38655
  materialFilter?: string[] | null;
@@ -38552,13 +38657,13 @@ export interface ITrackingRequestListDto {
38552
38657
  continuationToken?: string | null;
38553
38658
  }
38554
38659
 
38555
- export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38556
- workOrderId!: string;
38660
+ export class TrackingParcelDto implements ITrackingParcelDto {
38661
+ parcelId!: string;
38557
38662
  part?: PartDto | null;
38558
38663
  trackingHistory!: TrackingHistoryDto[];
38559
38664
  covered!: MaterialCoveredDto;
38560
38665
 
38561
- constructor(data?: ITrackingWorkOrderDto) {
38666
+ constructor(data?: ITrackingParcelDto) {
38562
38667
  if (data) {
38563
38668
  for (var property in data) {
38564
38669
  if (data.hasOwnProperty(property))
@@ -38572,7 +38677,7 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38572
38677
 
38573
38678
  init(_data?: any) {
38574
38679
  if (_data) {
38575
- this.workOrderId = _data["workOrderId"];
38680
+ this.parcelId = _data["parcelId"];
38576
38681
  this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
38577
38682
  if (Array.isArray(_data["trackingHistory"])) {
38578
38683
  this.trackingHistory = [] as any;
@@ -38583,16 +38688,16 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38583
38688
  }
38584
38689
  }
38585
38690
 
38586
- static fromJS(data: any): TrackingWorkOrderDto {
38691
+ static fromJS(data: any): TrackingParcelDto {
38587
38692
  data = typeof data === 'object' ? data : {};
38588
- let result = new TrackingWorkOrderDto();
38693
+ let result = new TrackingParcelDto();
38589
38694
  result.init(data);
38590
38695
  return result;
38591
38696
  }
38592
38697
 
38593
38698
  toJSON(data?: any) {
38594
38699
  data = typeof data === 'object' ? data : {};
38595
- data["workOrderId"] = this.workOrderId;
38700
+ data["parcelId"] = this.parcelId;
38596
38701
  data["part"] = this.part ? this.part.toJSON() : <any>undefined;
38597
38702
  if (Array.isArray(this.trackingHistory)) {
38598
38703
  data["trackingHistory"] = [];
@@ -38604,8 +38709,8 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38604
38709
  }
38605
38710
  }
38606
38711
 
38607
- export interface ITrackingWorkOrderDto {
38608
- workOrderId: string;
38712
+ export interface ITrackingParcelDto {
38713
+ parcelId: string;
38609
38714
  part?: PartDto | null;
38610
38715
  trackingHistory: TrackingHistoryDto[];
38611
38716
  covered: MaterialCoveredDto;
@@ -38707,7 +38812,7 @@ export interface ITrackingUpdateDto {
38707
38812
  }
38708
38813
 
38709
38814
  export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
38710
- workOrderId!: string;
38815
+ parcelId!: string;
38711
38816
 
38712
38817
  constructor(data?: ITrackingHistoryUpdateDto) {
38713
38818
  if (data) {
@@ -38720,7 +38825,7 @@ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
38720
38825
 
38721
38826
  init(_data?: any) {
38722
38827
  if (_data) {
38723
- this.workOrderId = _data["workOrderId"];
38828
+ this.parcelId = _data["parcelId"];
38724
38829
  }
38725
38830
  }
38726
38831
 
@@ -38733,118 +38838,13 @@ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
38733
38838
 
38734
38839
  toJSON(data?: any) {
38735
38840
  data = typeof data === 'object' ? data : {};
38736
- data["workOrderId"] = this.workOrderId;
38841
+ data["parcelId"] = this.parcelId;
38737
38842
  return data;
38738
38843
  }
38739
38844
  }
38740
38845
 
38741
38846
  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;
38847
+ parcelId: string;
38848
38848
  }
38849
38849
 
38850
38850
  export class WorkerDto implements IWorkerDto {