@ignos/api-client 20240819.0.10050 → 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,12 +13614,12 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13553
13614
  }
13554
13615
  }
13555
13616
 
13556
- export interface IMoveWorkOrdersClient {
13617
+ export interface IMesClient {
13557
13618
 
13558
- searchWorkOrders(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchWorkOrderDto[]>;
13619
+ getWorkerDetailsForCurrentUser(): Promise<WorkerDto>;
13559
13620
  }
13560
13621
 
13561
- export class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWorkOrdersClient {
13622
+ export class MesClient extends AuthorizedApiBase implements IMesClient {
13562
13623
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13563
13624
  private baseUrl: string;
13564
13625
  protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
@@ -13569,12 +13630,8 @@ export class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWork
13569
13630
  this.baseUrl = baseUrl ?? "";
13570
13631
  }
13571
13632
 
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) + "&";
13633
+ getWorkerDetailsForCurrentUser(): Promise<WorkerDto> {
13634
+ let url_ = this.baseUrl + "/mes/workers/me";
13578
13635
  url_ = url_.replace(/[?&]$/, "");
13579
13636
 
13580
13637
  let options_: RequestInit = {
@@ -13587,22 +13644,18 @@ export class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWork
13587
13644
  return this.transformOptions(options_).then(transformedOptions_ => {
13588
13645
  return this.http.fetch(url_, transformedOptions_);
13589
13646
  }).then((_response: Response) => {
13590
- return this.processSearchWorkOrders(_response);
13647
+ return this.processGetWorkerDetailsForCurrentUser(_response);
13591
13648
  });
13592
13649
  }
13593
13650
 
13594
- protected processSearchWorkOrders(response: Response): Promise<SearchWorkOrderDto[]> {
13651
+ protected processGetWorkerDetailsForCurrentUser(response: Response): Promise<WorkerDto> {
13595
13652
  const status = response.status;
13596
13653
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13597
13654
  if (status === 200) {
13598
13655
  return response.text().then((_responseText) => {
13599
13656
  let result200: any = null;
13600
13657
  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
- }
13658
+ result200 = WorkerDto.fromJS(resultData200);
13606
13659
  return result200;
13607
13660
  });
13608
13661
  } else if (status !== 200 && status !== 204) {
@@ -13610,16 +13663,16 @@ export class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWork
13610
13663
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13611
13664
  });
13612
13665
  }
13613
- return Promise.resolve<SearchWorkOrderDto[]>(null as any);
13666
+ return Promise.resolve<WorkerDto>(null as any);
13614
13667
  }
13615
13668
  }
13616
13669
 
13617
- export interface IMesClient {
13670
+ export interface IMesDocumentsClient {
13618
13671
 
13619
- getWorkerDetailsForCurrentUser(): Promise<WorkerDto>;
13672
+ getDocument(drawingNumber: string, id: string): Promise<DocumentLinkDto>;
13620
13673
  }
13621
13674
 
13622
- export class MesClient extends AuthorizedApiBase implements IMesClient {
13675
+ export class MesDocumentsClient extends AuthorizedApiBase implements IMesDocumentsClient {
13623
13676
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13624
13677
  private baseUrl: string;
13625
13678
  protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
@@ -13630,8 +13683,14 @@ export class MesClient extends AuthorizedApiBase implements IMesClient {
13630
13683
  this.baseUrl = baseUrl ?? "";
13631
13684
  }
13632
13685
 
13633
- getWorkerDetailsForCurrentUser(): Promise<WorkerDto> {
13634
- let url_ = this.baseUrl + "/mes/workers/me";
13686
+ getDocument(drawingNumber: string, id: string): Promise<DocumentLinkDto> {
13687
+ let url_ = this.baseUrl + "/mes/documents/drawings/{drawingNumber}/{id}";
13688
+ if (drawingNumber === undefined || drawingNumber === null)
13689
+ throw new Error("The parameter 'drawingNumber' must be defined.");
13690
+ url_ = url_.replace("{drawingNumber}", encodeURIComponent("" + drawingNumber));
13691
+ if (id === undefined || id === null)
13692
+ throw new Error("The parameter 'id' must be defined.");
13693
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
13635
13694
  url_ = url_.replace(/[?&]$/, "");
13636
13695
 
13637
13696
  let options_: RequestInit = {
@@ -13644,18 +13703,18 @@ export class MesClient extends AuthorizedApiBase implements IMesClient {
13644
13703
  return this.transformOptions(options_).then(transformedOptions_ => {
13645
13704
  return this.http.fetch(url_, transformedOptions_);
13646
13705
  }).then((_response: Response) => {
13647
- return this.processGetWorkerDetailsForCurrentUser(_response);
13706
+ return this.processGetDocument(_response);
13648
13707
  });
13649
13708
  }
13650
13709
 
13651
- protected processGetWorkerDetailsForCurrentUser(response: Response): Promise<WorkerDto> {
13710
+ protected processGetDocument(response: Response): Promise<DocumentLinkDto> {
13652
13711
  const status = response.status;
13653
13712
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13654
13713
  if (status === 200) {
13655
13714
  return response.text().then((_responseText) => {
13656
13715
  let result200: any = null;
13657
13716
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13658
- result200 = WorkerDto.fromJS(resultData200);
13717
+ result200 = DocumentLinkDto.fromJS(resultData200);
13659
13718
  return result200;
13660
13719
  });
13661
13720
  } else if (status !== 200 && status !== 204) {
@@ -13663,16 +13722,16 @@ export class MesClient extends AuthorizedApiBase implements IMesClient {
13663
13722
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13664
13723
  });
13665
13724
  }
13666
- return Promise.resolve<WorkerDto>(null as any);
13725
+ return Promise.resolve<DocumentLinkDto>(null as any);
13667
13726
  }
13668
13727
  }
13669
13728
 
13670
- export interface IMesDocumentsClient {
13729
+ export interface IMesEngineeringChangeOrdersClient {
13671
13730
 
13672
- getDocument(drawingNumber: string, id: string): Promise<DocumentLinkDto>;
13731
+ getEngineeringChangeOrders(partNumber: string | undefined): Promise<EngineeringChangeOrderDto[]>;
13673
13732
  }
13674
13733
 
13675
- export class MesDocumentsClient extends AuthorizedApiBase implements IMesDocumentsClient {
13734
+ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase implements IMesEngineeringChangeOrdersClient {
13676
13735
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13677
13736
  private baseUrl: string;
13678
13737
  protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
@@ -13683,14 +13742,12 @@ export class MesDocumentsClient extends AuthorizedApiBase implements IMesDocumen
13683
13742
  this.baseUrl = baseUrl ?? "";
13684
13743
  }
13685
13744
 
13686
- getDocument(drawingNumber: string, id: string): Promise<DocumentLinkDto> {
13687
- let url_ = this.baseUrl + "/mes/documents/drawings/{drawingNumber}/{id}";
13688
- if (drawingNumber === undefined || drawingNumber === null)
13689
- throw new Error("The parameter 'drawingNumber' must be defined.");
13690
- url_ = url_.replace("{drawingNumber}", encodeURIComponent("" + drawingNumber));
13691
- if (id === undefined || id === null)
13692
- throw new Error("The parameter 'id' must be defined.");
13693
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
13745
+ getEngineeringChangeOrders(partNumber: string | undefined): Promise<EngineeringChangeOrderDto[]> {
13746
+ let url_ = this.baseUrl + "/mes/mesengineeringchangeorders?";
13747
+ if (partNumber === null)
13748
+ throw new Error("The parameter 'partNumber' cannot be null.");
13749
+ else if (partNumber !== undefined)
13750
+ url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
13694
13751
  url_ = url_.replace(/[?&]$/, "");
13695
13752
 
13696
13753
  let options_: RequestInit = {
@@ -13703,18 +13760,22 @@ export class MesDocumentsClient extends AuthorizedApiBase implements IMesDocumen
13703
13760
  return this.transformOptions(options_).then(transformedOptions_ => {
13704
13761
  return this.http.fetch(url_, transformedOptions_);
13705
13762
  }).then((_response: Response) => {
13706
- return this.processGetDocument(_response);
13763
+ return this.processGetEngineeringChangeOrders(_response);
13707
13764
  });
13708
13765
  }
13709
13766
 
13710
- protected processGetDocument(response: Response): Promise<DocumentLinkDto> {
13767
+ protected processGetEngineeringChangeOrders(response: Response): Promise<EngineeringChangeOrderDto[]> {
13711
13768
  const status = response.status;
13712
13769
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13713
13770
  if (status === 200) {
13714
13771
  return response.text().then((_responseText) => {
13715
13772
  let result200: any = null;
13716
13773
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13717
- result200 = DocumentLinkDto.fromJS(resultData200);
13774
+ if (Array.isArray(resultData200)) {
13775
+ result200 = [] as any;
13776
+ for (let item of resultData200)
13777
+ result200!.push(EngineeringChangeOrderDto.fromJS(item));
13778
+ }
13718
13779
  return result200;
13719
13780
  });
13720
13781
  } else if (status !== 200 && status !== 204) {
@@ -13722,7 +13783,7 @@ export class MesDocumentsClient extends AuthorizedApiBase implements IMesDocumen
13722
13783
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13723
13784
  });
13724
13785
  }
13725
- return Promise.resolve<DocumentLinkDto>(null as any);
13786
+ return Promise.resolve<EngineeringChangeOrderDto[]>(null as any);
13726
13787
  }
13727
13788
  }
13728
13789
 
@@ -37226,7 +37287,7 @@ export interface IBookingListDto {
37226
37287
 
37227
37288
  export class BookingDto implements IBookingDto {
37228
37289
  bookingId!: string;
37229
- bookingKind!: BookingKindDto;
37290
+ parcelKind!: ParcelKindDto;
37230
37291
  transportKind!: TransportKindDto;
37231
37292
  status!: BookingStatusDto;
37232
37293
  items!: BookingItemDto[];
@@ -37258,7 +37319,7 @@ export class BookingDto implements IBookingDto {
37258
37319
  init(_data?: any) {
37259
37320
  if (_data) {
37260
37321
  this.bookingId = _data["bookingId"];
37261
- this.bookingKind = _data["bookingKind"];
37322
+ this.parcelKind = _data["parcelKind"];
37262
37323
  this.transportKind = _data["transportKind"];
37263
37324
  this.status = _data["status"];
37264
37325
  if (Array.isArray(_data["items"])) {
@@ -37289,7 +37350,7 @@ export class BookingDto implements IBookingDto {
37289
37350
  toJSON(data?: any) {
37290
37351
  data = typeof data === 'object' ? data : {};
37291
37352
  data["bookingId"] = this.bookingId;
37292
- data["bookingKind"] = this.bookingKind;
37353
+ data["parcelKind"] = this.parcelKind;
37293
37354
  data["transportKind"] = this.transportKind;
37294
37355
  data["status"] = this.status;
37295
37356
  if (Array.isArray(this.items)) {
@@ -37313,7 +37374,7 @@ export class BookingDto implements IBookingDto {
37313
37374
 
37314
37375
  export interface IBookingDto {
37315
37376
  bookingId: string;
37316
- bookingKind: BookingKindDto;
37377
+ parcelKind: ParcelKindDto;
37317
37378
  transportKind: TransportKindDto;
37318
37379
  status: BookingStatusDto;
37319
37380
  items: BookingItemDto[];
@@ -37329,7 +37390,7 @@ export interface IBookingDto {
37329
37390
  completed?: Date | null;
37330
37391
  }
37331
37392
 
37332
- export type BookingKindDto = "Forklift" | "General" | "ChipDisposal" | "Garbage";
37393
+ export type ParcelKindDto = "Forklift" | "General" | "ChipDisposal" | "Garbage";
37333
37394
 
37334
37395
  export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
37335
37396
 
@@ -37338,8 +37399,8 @@ export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Complet
37338
37399
  export class BookingItemDto implements IBookingItemDto {
37339
37400
  trackingId!: string;
37340
37401
  palletNumber!: number;
37341
- workOrderId!: string;
37342
- parcelKind!: BookingKindDto;
37402
+ parcelId!: string;
37403
+ parcelKind!: ParcelKindDto;
37343
37404
  material?: string | null;
37344
37405
  comment?: string | null;
37345
37406
  covered!: MaterialCoveredDto;
@@ -37358,7 +37419,7 @@ export class BookingItemDto implements IBookingItemDto {
37358
37419
  if (_data) {
37359
37420
  this.trackingId = _data["trackingId"];
37360
37421
  this.palletNumber = _data["palletNumber"];
37361
- this.workOrderId = _data["workOrderId"];
37422
+ this.parcelId = _data["parcelId"];
37362
37423
  this.parcelKind = _data["parcelKind"];
37363
37424
  this.material = _data["material"];
37364
37425
  this.comment = _data["comment"];
@@ -37378,7 +37439,7 @@ export class BookingItemDto implements IBookingItemDto {
37378
37439
  data = typeof data === 'object' ? data : {};
37379
37440
  data["trackingId"] = this.trackingId;
37380
37441
  data["palletNumber"] = this.palletNumber;
37381
- data["workOrderId"] = this.workOrderId;
37442
+ data["parcelId"] = this.parcelId;
37382
37443
  data["parcelKind"] = this.parcelKind;
37383
37444
  data["material"] = this.material;
37384
37445
  data["comment"] = this.comment;
@@ -37391,8 +37452,8 @@ export class BookingItemDto implements IBookingItemDto {
37391
37452
  export interface IBookingItemDto {
37392
37453
  trackingId: string;
37393
37454
  palletNumber: number;
37394
- workOrderId: string;
37395
- parcelKind: BookingKindDto;
37455
+ parcelId: string;
37456
+ parcelKind: ParcelKindDto;
37396
37457
  material?: string | null;
37397
37458
  comment?: string | null;
37398
37459
  covered: MaterialCoveredDto;
@@ -37461,14 +37522,14 @@ export type LocationKindDto = "Warehouse" | "Zone" | "Location";
37461
37522
 
37462
37523
  export class BookingRequestListDto implements IBookingRequestListDto {
37463
37524
  pageSize?: number | null;
37464
- workOrderIdFilter?: string[] | null;
37525
+ parcelIdFilter?: string[] | null;
37465
37526
  materialFilter?: string[] | null;
37466
37527
  locationIdFromFilter?: string[] | null;
37467
37528
  locationIdToFilter?: string[] | null;
37468
37529
  zoneIdFromFilter?: string[] | null;
37469
37530
  zoneIdToFilter?: string[] | null;
37470
37531
  bookingStatusFilter?: BookingStatusDto[] | null;
37471
- bookingKindFilter?: BookingKindDto[] | null;
37532
+ parcelKindFilter?: ParcelKindDto[] | null;
37472
37533
  transportKindFilter?: TransportKindDto[] | null;
37473
37534
  taskFilter?: BookingTaskDto | null;
37474
37535
  createdByFilter?: BookingCreatedByDto | null;
@@ -37487,10 +37548,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37487
37548
  init(_data?: any) {
37488
37549
  if (_data) {
37489
37550
  this.pageSize = _data["pageSize"];
37490
- if (Array.isArray(_data["workOrderIdFilter"])) {
37491
- this.workOrderIdFilter = [] as any;
37492
- for (let item of _data["workOrderIdFilter"])
37493
- 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);
37494
37555
  }
37495
37556
  if (Array.isArray(_data["materialFilter"])) {
37496
37557
  this.materialFilter = [] as any;
@@ -37522,10 +37583,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37522
37583
  for (let item of _data["bookingStatusFilter"])
37523
37584
  this.bookingStatusFilter!.push(item);
37524
37585
  }
37525
- if (Array.isArray(_data["bookingKindFilter"])) {
37526
- this.bookingKindFilter = [] as any;
37527
- for (let item of _data["bookingKindFilter"])
37528
- 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);
37529
37590
  }
37530
37591
  if (Array.isArray(_data["transportKindFilter"])) {
37531
37592
  this.transportKindFilter = [] as any;
@@ -37549,10 +37610,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37549
37610
  toJSON(data?: any) {
37550
37611
  data = typeof data === 'object' ? data : {};
37551
37612
  data["pageSize"] = this.pageSize;
37552
- if (Array.isArray(this.workOrderIdFilter)) {
37553
- data["workOrderIdFilter"] = [];
37554
- for (let item of this.workOrderIdFilter)
37555
- 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);
37556
37617
  }
37557
37618
  if (Array.isArray(this.materialFilter)) {
37558
37619
  data["materialFilter"] = [];
@@ -37584,10 +37645,10 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37584
37645
  for (let item of this.bookingStatusFilter)
37585
37646
  data["bookingStatusFilter"].push(item);
37586
37647
  }
37587
- if (Array.isArray(this.bookingKindFilter)) {
37588
- data["bookingKindFilter"] = [];
37589
- for (let item of this.bookingKindFilter)
37590
- 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);
37591
37652
  }
37592
37653
  if (Array.isArray(this.transportKindFilter)) {
37593
37654
  data["transportKindFilter"] = [];
@@ -37604,14 +37665,14 @@ export class BookingRequestListDto implements IBookingRequestListDto {
37604
37665
 
37605
37666
  export interface IBookingRequestListDto {
37606
37667
  pageSize?: number | null;
37607
- workOrderIdFilter?: string[] | null;
37668
+ parcelIdFilter?: string[] | null;
37608
37669
  materialFilter?: string[] | null;
37609
37670
  locationIdFromFilter?: string[] | null;
37610
37671
  locationIdToFilter?: string[] | null;
37611
37672
  zoneIdFromFilter?: string[] | null;
37612
37673
  zoneIdToFilter?: string[] | null;
37613
37674
  bookingStatusFilter?: BookingStatusDto[] | null;
37614
- bookingKindFilter?: BookingKindDto[] | null;
37675
+ parcelKindFilter?: ParcelKindDto[] | null;
37615
37676
  transportKindFilter?: TransportKindDto[] | null;
37616
37677
  taskFilter?: BookingTaskDto | null;
37617
37678
  createdByFilter?: BookingCreatedByDto | null;
@@ -37627,7 +37688,7 @@ export type BookingOrderDto = "Ascending" | "Descending";
37627
37688
 
37628
37689
  export class BookingUpdateDto implements IBookingUpdateDto {
37629
37690
  bookingId!: string;
37630
- bookingKind!: BookingKindDto;
37691
+ parcelKind!: ParcelKindDto;
37631
37692
  transportKind!: TransportKindDto;
37632
37693
  status!: BookingStatusDto;
37633
37694
  fromLocationId!: string;
@@ -37645,7 +37706,7 @@ export class BookingUpdateDto implements IBookingUpdateDto {
37645
37706
  init(_data?: any) {
37646
37707
  if (_data) {
37647
37708
  this.bookingId = _data["bookingId"];
37648
- this.bookingKind = _data["bookingKind"];
37709
+ this.parcelKind = _data["parcelKind"];
37649
37710
  this.transportKind = _data["transportKind"];
37650
37711
  this.status = _data["status"];
37651
37712
  this.fromLocationId = _data["fromLocationId"];
@@ -37663,7 +37724,7 @@ export class BookingUpdateDto implements IBookingUpdateDto {
37663
37724
  toJSON(data?: any) {
37664
37725
  data = typeof data === 'object' ? data : {};
37665
37726
  data["bookingId"] = this.bookingId;
37666
- data["bookingKind"] = this.bookingKind;
37727
+ data["parcelKind"] = this.parcelKind;
37667
37728
  data["transportKind"] = this.transportKind;
37668
37729
  data["status"] = this.status;
37669
37730
  data["fromLocationId"] = this.fromLocationId;
@@ -37674,7 +37735,7 @@ export class BookingUpdateDto implements IBookingUpdateDto {
37674
37735
 
37675
37736
  export interface IBookingUpdateDto {
37676
37737
  bookingId: string;
37677
- bookingKind: BookingKindDto;
37738
+ parcelKind: ParcelKindDto;
37678
37739
  transportKind: TransportKindDto;
37679
37740
  status: BookingStatusDto;
37680
37741
  fromLocationId: string;
@@ -37741,7 +37802,7 @@ export interface IBookingTransportRequestDto {
37741
37802
  }
37742
37803
 
37743
37804
  export class BookingItemRequestDto implements IBookingItemRequestDto {
37744
- workOrderId?: string | null;
37805
+ parcelId?: string | null;
37745
37806
  trackingId?: string | null;
37746
37807
  comment?: string | null;
37747
37808
 
@@ -37756,7 +37817,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
37756
37817
 
37757
37818
  init(_data?: any) {
37758
37819
  if (_data) {
37759
- this.workOrderId = _data["workOrderId"];
37820
+ this.parcelId = _data["parcelId"];
37760
37821
  this.trackingId = _data["trackingId"];
37761
37822
  this.comment = _data["comment"];
37762
37823
  }
@@ -37771,7 +37832,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
37771
37832
 
37772
37833
  toJSON(data?: any) {
37773
37834
  data = typeof data === 'object' ? data : {};
37774
- data["workOrderId"] = this.workOrderId;
37835
+ data["parcelId"] = this.parcelId;
37775
37836
  data["trackingId"] = this.trackingId;
37776
37837
  data["comment"] = this.comment;
37777
37838
  return data;
@@ -37779,13 +37840,13 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
37779
37840
  }
37780
37841
 
37781
37842
  export interface IBookingItemRequestDto {
37782
- workOrderId?: string | null;
37843
+ parcelId?: string | null;
37783
37844
  trackingId?: string | null;
37784
37845
  comment?: string | null;
37785
37846
  }
37786
37847
 
37787
37848
  export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37788
- bookingKind!: BookingKindDto;
37849
+ parcelKind!: ParcelKindDto;
37789
37850
  transportKind!: TransportKindDto;
37790
37851
  fromLocationId!: string;
37791
37852
  toLocationId!: string;
@@ -37803,7 +37864,7 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37803
37864
 
37804
37865
  init(_data?: any) {
37805
37866
  if (_data) {
37806
- this.bookingKind = _data["bookingKind"];
37867
+ this.parcelKind = _data["parcelKind"];
37807
37868
  this.transportKind = _data["transportKind"];
37808
37869
  this.fromLocationId = _data["fromLocationId"];
37809
37870
  this.toLocationId = _data["toLocationId"];
@@ -37821,7 +37882,7 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37821
37882
 
37822
37883
  toJSON(data?: any) {
37823
37884
  data = typeof data === 'object' ? data : {};
37824
- data["bookingKind"] = this.bookingKind;
37885
+ data["parcelKind"] = this.parcelKind;
37825
37886
  data["transportKind"] = this.transportKind;
37826
37887
  data["fromLocationId"] = this.fromLocationId;
37827
37888
  data["toLocationId"] = this.toLocationId;
@@ -37832,7 +37893,7 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
37832
37893
  }
37833
37894
 
37834
37895
  export interface IBookingGeneralRequestDto {
37835
- bookingKind: BookingKindDto;
37896
+ parcelKind: ParcelKindDto;
37836
37897
  transportKind: TransportKindDto;
37837
37898
  fromLocationId: string;
37838
37899
  toLocationId: string;
@@ -38080,7 +38141,7 @@ export interface ILocationSuggestionsDto {
38080
38141
  }
38081
38142
 
38082
38143
  export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
38083
- workOrderId!: string;
38144
+ parcelId!: string;
38084
38145
 
38085
38146
  constructor(data?: ILocationSuggestionsItemDto) {
38086
38147
  if (data) {
@@ -38093,7 +38154,7 @@ export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
38093
38154
 
38094
38155
  init(_data?: any) {
38095
38156
  if (_data) {
38096
- this.workOrderId = _data["workOrderId"];
38157
+ this.parcelId = _data["parcelId"];
38097
38158
  }
38098
38159
  }
38099
38160
 
@@ -38106,13 +38167,13 @@ export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
38106
38167
 
38107
38168
  toJSON(data?: any) {
38108
38169
  data = typeof data === 'object' ? data : {};
38109
- data["workOrderId"] = this.workOrderId;
38170
+ data["parcelId"] = this.parcelId;
38110
38171
  return data;
38111
38172
  }
38112
38173
  }
38113
38174
 
38114
38175
  export interface ILocationSuggestionsItemDto {
38115
- workOrderId: string;
38176
+ parcelId: string;
38116
38177
  }
38117
38178
 
38118
38179
  export class MaterialDesciptionDto implements IMaterialDesciptionDto {
@@ -38199,6 +38260,111 @@ export interface IMaterialUpdateDto {
38199
38260
  covered: MaterialCoveredDto;
38200
38261
  }
38201
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
+
38202
38368
  export class TrackingHistoryListDto implements ITrackingHistoryListDto {
38203
38369
  results!: TrackingHistoryDto[];
38204
38370
  continuationToken?: string | null;
@@ -38253,8 +38419,8 @@ export interface ITrackingHistoryListDto {
38253
38419
  export class TrackingHistoryDto implements ITrackingHistoryDto {
38254
38420
  trackingId!: string;
38255
38421
  palletNumber!: number;
38256
- parcelKind!: BookingKindDto;
38257
- workOrderId!: string;
38422
+ parcelKind!: ParcelKindDto;
38423
+ parcelId!: string;
38258
38424
  trackingEvents!: TrackingEventDto[];
38259
38425
  material?: string | null;
38260
38426
  activeBooking?: boolean | null;
@@ -38276,7 +38442,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38276
38442
  this.trackingId = _data["trackingId"];
38277
38443
  this.palletNumber = _data["palletNumber"];
38278
38444
  this.parcelKind = _data["parcelKind"];
38279
- this.workOrderId = _data["workOrderId"];
38445
+ this.parcelId = _data["parcelId"];
38280
38446
  if (Array.isArray(_data["trackingEvents"])) {
38281
38447
  this.trackingEvents = [] as any;
38282
38448
  for (let item of _data["trackingEvents"])
@@ -38299,7 +38465,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38299
38465
  data["trackingId"] = this.trackingId;
38300
38466
  data["palletNumber"] = this.palletNumber;
38301
38467
  data["parcelKind"] = this.parcelKind;
38302
- data["workOrderId"] = this.workOrderId;
38468
+ data["parcelId"] = this.parcelId;
38303
38469
  if (Array.isArray(this.trackingEvents)) {
38304
38470
  data["trackingEvents"] = [];
38305
38471
  for (let item of this.trackingEvents)
@@ -38314,8 +38480,8 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38314
38480
  export interface ITrackingHistoryDto {
38315
38481
  trackingId: string;
38316
38482
  palletNumber: number;
38317
- parcelKind: BookingKindDto;
38318
- workOrderId: string;
38483
+ parcelKind: ParcelKindDto;
38484
+ parcelId: string;
38319
38485
  trackingEvents: TrackingEventDto[];
38320
38486
  material?: string | null;
38321
38487
  activeBooking?: boolean | null;
@@ -38389,8 +38555,8 @@ export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress
38389
38555
 
38390
38556
  export class TrackingRequestListDto implements ITrackingRequestListDto {
38391
38557
  pageSize?: number | null;
38392
- workOrderIdFilter?: string[] | null;
38393
- parcelKindFilter?: BookingKindDto[] | null;
38558
+ parcelIdFilter?: string[] | null;
38559
+ parcelKindFilter?: ParcelKindDto[] | null;
38394
38560
  locationIdFilter?: string[] | null;
38395
38561
  zoneIdFilter?: string[] | null;
38396
38562
  materialFilter?: string[] | null;
@@ -38409,10 +38575,10 @@ export class TrackingRequestListDto implements ITrackingRequestListDto {
38409
38575
  init(_data?: any) {
38410
38576
  if (_data) {
38411
38577
  this.pageSize = _data["pageSize"];
38412
- if (Array.isArray(_data["workOrderIdFilter"])) {
38413
- this.workOrderIdFilter = [] as any;
38414
- for (let item of _data["workOrderIdFilter"])
38415
- 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);
38416
38582
  }
38417
38583
  if (Array.isArray(_data["parcelKindFilter"])) {
38418
38584
  this.parcelKindFilter = [] as any;
@@ -38449,10 +38615,10 @@ export class TrackingRequestListDto implements ITrackingRequestListDto {
38449
38615
  toJSON(data?: any) {
38450
38616
  data = typeof data === 'object' ? data : {};
38451
38617
  data["pageSize"] = this.pageSize;
38452
- if (Array.isArray(this.workOrderIdFilter)) {
38453
- data["workOrderIdFilter"] = [];
38454
- for (let item of this.workOrderIdFilter)
38455
- 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);
38456
38622
  }
38457
38623
  if (Array.isArray(this.parcelKindFilter)) {
38458
38624
  data["parcelKindFilter"] = [];
@@ -38482,8 +38648,8 @@ export class TrackingRequestListDto implements ITrackingRequestListDto {
38482
38648
 
38483
38649
  export interface ITrackingRequestListDto {
38484
38650
  pageSize?: number | null;
38485
- workOrderIdFilter?: string[] | null;
38486
- parcelKindFilter?: BookingKindDto[] | null;
38651
+ parcelIdFilter?: string[] | null;
38652
+ parcelKindFilter?: ParcelKindDto[] | null;
38487
38653
  locationIdFilter?: string[] | null;
38488
38654
  zoneIdFilter?: string[] | null;
38489
38655
  materialFilter?: string[] | null;
@@ -38491,13 +38657,13 @@ export interface ITrackingRequestListDto {
38491
38657
  continuationToken?: string | null;
38492
38658
  }
38493
38659
 
38494
- export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38495
- workOrderId!: string;
38660
+ export class TrackingParcelDto implements ITrackingParcelDto {
38661
+ parcelId!: string;
38496
38662
  part?: PartDto | null;
38497
38663
  trackingHistory!: TrackingHistoryDto[];
38498
38664
  covered!: MaterialCoveredDto;
38499
38665
 
38500
- constructor(data?: ITrackingWorkOrderDto) {
38666
+ constructor(data?: ITrackingParcelDto) {
38501
38667
  if (data) {
38502
38668
  for (var property in data) {
38503
38669
  if (data.hasOwnProperty(property))
@@ -38511,7 +38677,7 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38511
38677
 
38512
38678
  init(_data?: any) {
38513
38679
  if (_data) {
38514
- this.workOrderId = _data["workOrderId"];
38680
+ this.parcelId = _data["parcelId"];
38515
38681
  this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
38516
38682
  if (Array.isArray(_data["trackingHistory"])) {
38517
38683
  this.trackingHistory = [] as any;
@@ -38522,16 +38688,16 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38522
38688
  }
38523
38689
  }
38524
38690
 
38525
- static fromJS(data: any): TrackingWorkOrderDto {
38691
+ static fromJS(data: any): TrackingParcelDto {
38526
38692
  data = typeof data === 'object' ? data : {};
38527
- let result = new TrackingWorkOrderDto();
38693
+ let result = new TrackingParcelDto();
38528
38694
  result.init(data);
38529
38695
  return result;
38530
38696
  }
38531
38697
 
38532
38698
  toJSON(data?: any) {
38533
38699
  data = typeof data === 'object' ? data : {};
38534
- data["workOrderId"] = this.workOrderId;
38700
+ data["parcelId"] = this.parcelId;
38535
38701
  data["part"] = this.part ? this.part.toJSON() : <any>undefined;
38536
38702
  if (Array.isArray(this.trackingHistory)) {
38537
38703
  data["trackingHistory"] = [];
@@ -38543,8 +38709,8 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
38543
38709
  }
38544
38710
  }
38545
38711
 
38546
- export interface ITrackingWorkOrderDto {
38547
- workOrderId: string;
38712
+ export interface ITrackingParcelDto {
38713
+ parcelId: string;
38548
38714
  part?: PartDto | null;
38549
38715
  trackingHistory: TrackingHistoryDto[];
38550
38716
  covered: MaterialCoveredDto;
@@ -38646,7 +38812,7 @@ export interface ITrackingUpdateDto {
38646
38812
  }
38647
38813
 
38648
38814
  export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
38649
- workOrderId!: string;
38815
+ parcelId!: string;
38650
38816
 
38651
38817
  constructor(data?: ITrackingHistoryUpdateDto) {
38652
38818
  if (data) {
@@ -38659,7 +38825,7 @@ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
38659
38825
 
38660
38826
  init(_data?: any) {
38661
38827
  if (_data) {
38662
- this.workOrderId = _data["workOrderId"];
38828
+ this.parcelId = _data["parcelId"];
38663
38829
  }
38664
38830
  }
38665
38831
 
@@ -38672,85 +38838,20 @@ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
38672
38838
 
38673
38839
  toJSON(data?: any) {
38674
38840
  data = typeof data === 'object' ? data : {};
38675
- data["workOrderId"] = this.workOrderId;
38841
+ data["parcelId"] = this.parcelId;
38676
38842
  return data;
38677
38843
  }
38678
38844
  }
38679
38845
 
38680
38846
  export interface ITrackingHistoryUpdateDto {
38681
- workOrderId: string;
38682
- }
38683
-
38684
- export class SearchWorkOrderDto implements ISearchWorkOrderDto {
38685
- workOrderId!: string;
38686
- matchCriteria!: SearchMatchCriteriaDto;
38687
- items!: SearchWorkOrderItemDto[];
38688
- partName?: string | null;
38689
- partNumber?: string | null;
38690
-
38691
- constructor(data?: ISearchWorkOrderDto) {
38692
- if (data) {
38693
- for (var property in data) {
38694
- if (data.hasOwnProperty(property))
38695
- (<any>this)[property] = (<any>data)[property];
38696
- }
38697
- }
38698
- if (!data) {
38699
- this.items = [];
38700
- }
38701
- }
38702
-
38703
- init(_data?: any) {
38704
- if (_data) {
38705
- this.workOrderId = _data["workOrderId"];
38706
- this.matchCriteria = _data["matchCriteria"];
38707
- if (Array.isArray(_data["items"])) {
38708
- this.items = [] as any;
38709
- for (let item of _data["items"])
38710
- this.items!.push(SearchWorkOrderItemDto.fromJS(item));
38711
- }
38712
- this.partName = _data["partName"];
38713
- this.partNumber = _data["partNumber"];
38714
- }
38715
- }
38716
-
38717
- static fromJS(data: any): SearchWorkOrderDto {
38718
- data = typeof data === 'object' ? data : {};
38719
- let result = new SearchWorkOrderDto();
38720
- result.init(data);
38721
- return result;
38722
- }
38723
-
38724
- toJSON(data?: any) {
38725
- data = typeof data === 'object' ? data : {};
38726
- data["workOrderId"] = this.workOrderId;
38727
- data["matchCriteria"] = this.matchCriteria;
38728
- if (Array.isArray(this.items)) {
38729
- data["items"] = [];
38730
- for (let item of this.items)
38731
- data["items"].push(item.toJSON());
38732
- }
38733
- data["partName"] = this.partName;
38734
- data["partNumber"] = this.partNumber;
38735
- return data;
38736
- }
38847
+ parcelId: string;
38737
38848
  }
38738
38849
 
38739
- export interface ISearchWorkOrderDto {
38740
- workOrderId: string;
38741
- matchCriteria: SearchMatchCriteriaDto;
38742
- items: SearchWorkOrderItemDto[];
38743
- partName?: string | null;
38744
- partNumber?: string | null;
38745
- }
38746
-
38747
- export type SearchMatchCriteriaDto = "Tracking" | "WorkOrder" | "Parcel";
38748
-
38749
- export class SearchWorkOrderItemDto implements ISearchWorkOrderItemDto {
38750
- trackingId!: string;
38751
- selected!: boolean;
38850
+ export class WorkerDto implements IWorkerDto {
38851
+ personnelNumber?: string | null;
38852
+ badgeId?: string | null;
38752
38853
 
38753
- constructor(data?: ISearchWorkOrderItemDto) {
38854
+ constructor(data?: IWorkerDto) {
38754
38855
  if (data) {
38755
38856
  for (var property in data) {
38756
38857
  if (data.hasOwnProperty(property))
@@ -38761,36 +38862,35 @@ export class SearchWorkOrderItemDto implements ISearchWorkOrderItemDto {
38761
38862
 
38762
38863
  init(_data?: any) {
38763
38864
  if (_data) {
38764
- this.trackingId = _data["trackingId"];
38765
- this.selected = _data["selected"];
38865
+ this.personnelNumber = _data["personnelNumber"];
38866
+ this.badgeId = _data["badgeId"];
38766
38867
  }
38767
38868
  }
38768
38869
 
38769
- static fromJS(data: any): SearchWorkOrderItemDto {
38870
+ static fromJS(data: any): WorkerDto {
38770
38871
  data = typeof data === 'object' ? data : {};
38771
- let result = new SearchWorkOrderItemDto();
38872
+ let result = new WorkerDto();
38772
38873
  result.init(data);
38773
38874
  return result;
38774
38875
  }
38775
38876
 
38776
38877
  toJSON(data?: any) {
38777
38878
  data = typeof data === 'object' ? data : {};
38778
- data["trackingId"] = this.trackingId;
38779
- data["selected"] = this.selected;
38879
+ data["personnelNumber"] = this.personnelNumber;
38880
+ data["badgeId"] = this.badgeId;
38780
38881
  return data;
38781
38882
  }
38782
38883
  }
38783
38884
 
38784
- export interface ISearchWorkOrderItemDto {
38785
- trackingId: string;
38786
- selected: boolean;
38787
- }
38788
-
38789
- export class WorkerDto implements IWorkerDto {
38885
+ export interface IWorkerDto {
38790
38886
  personnelNumber?: string | null;
38791
38887
  badgeId?: string | null;
38888
+ }
38792
38889
 
38793
- constructor(data?: IWorkerDto) {
38890
+ export class DocumentLinkDto implements IDocumentLinkDto {
38891
+ url!: string;
38892
+
38893
+ constructor(data?: IDocumentLinkDto) {
38794
38894
  if (data) {
38795
38895
  for (var property in data) {
38796
38896
  if (data.hasOwnProperty(property))
@@ -38801,35 +38901,37 @@ export class WorkerDto implements IWorkerDto {
38801
38901
 
38802
38902
  init(_data?: any) {
38803
38903
  if (_data) {
38804
- this.personnelNumber = _data["personnelNumber"];
38805
- this.badgeId = _data["badgeId"];
38904
+ this.url = _data["url"];
38806
38905
  }
38807
38906
  }
38808
38907
 
38809
- static fromJS(data: any): WorkerDto {
38908
+ static fromJS(data: any): DocumentLinkDto {
38810
38909
  data = typeof data === 'object' ? data : {};
38811
- let result = new WorkerDto();
38910
+ let result = new DocumentLinkDto();
38812
38911
  result.init(data);
38813
38912
  return result;
38814
38913
  }
38815
38914
 
38816
38915
  toJSON(data?: any) {
38817
38916
  data = typeof data === 'object' ? data : {};
38818
- data["personnelNumber"] = this.personnelNumber;
38819
- data["badgeId"] = this.badgeId;
38917
+ data["url"] = this.url;
38820
38918
  return data;
38821
38919
  }
38822
38920
  }
38823
38921
 
38824
- export interface IWorkerDto {
38825
- personnelNumber?: string | null;
38826
- badgeId?: string | null;
38922
+ export interface IDocumentLinkDto {
38923
+ url: string;
38827
38924
  }
38828
38925
 
38829
- export class DocumentLinkDto implements IDocumentLinkDto {
38830
- url!: string;
38926
+ export class EngineeringChangeOrderDto implements IEngineeringChangeOrderDto {
38927
+ orderNumber!: string;
38928
+ title!: string;
38929
+ category?: string | null;
38930
+ description?: string | null;
38931
+ project?: string | null;
38932
+ status?: string | null;
38831
38933
 
38832
- constructor(data?: IDocumentLinkDto) {
38934
+ constructor(data?: IEngineeringChangeOrderDto) {
38833
38935
  if (data) {
38834
38936
  for (var property in data) {
38835
38937
  if (data.hasOwnProperty(property))
@@ -38840,26 +38942,41 @@ export class DocumentLinkDto implements IDocumentLinkDto {
38840
38942
 
38841
38943
  init(_data?: any) {
38842
38944
  if (_data) {
38843
- this.url = _data["url"];
38945
+ this.orderNumber = _data["orderNumber"];
38946
+ this.title = _data["title"];
38947
+ this.category = _data["category"];
38948
+ this.description = _data["description"];
38949
+ this.project = _data["project"];
38950
+ this.status = _data["status"];
38844
38951
  }
38845
38952
  }
38846
38953
 
38847
- static fromJS(data: any): DocumentLinkDto {
38954
+ static fromJS(data: any): EngineeringChangeOrderDto {
38848
38955
  data = typeof data === 'object' ? data : {};
38849
- let result = new DocumentLinkDto();
38956
+ let result = new EngineeringChangeOrderDto();
38850
38957
  result.init(data);
38851
38958
  return result;
38852
38959
  }
38853
38960
 
38854
38961
  toJSON(data?: any) {
38855
38962
  data = typeof data === 'object' ? data : {};
38856
- data["url"] = this.url;
38963
+ data["orderNumber"] = this.orderNumber;
38964
+ data["title"] = this.title;
38965
+ data["category"] = this.category;
38966
+ data["description"] = this.description;
38967
+ data["project"] = this.project;
38968
+ data["status"] = this.status;
38857
38969
  return data;
38858
38970
  }
38859
38971
  }
38860
38972
 
38861
- export interface IDocumentLinkDto {
38862
- url: string;
38973
+ export interface IEngineeringChangeOrderDto {
38974
+ orderNumber: string;
38975
+ title: string;
38976
+ category?: string | null;
38977
+ description?: string | null;
38978
+ project?: string | null;
38979
+ status?: string | null;
38863
38980
  }
38864
38981
 
38865
38982
  export class AddMesLink implements IAddMesLink {