@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.
@@ -11680,11 +11680,11 @@ export class MoveBookingClient extends AuthorizedApiBase {
11680
11680
  }
11681
11681
  return Promise.resolve(null);
11682
11682
  }
11683
- getWorkOrderBooking(workOrderId) {
11684
- let url_ = this.baseUrl + "/move/booking/workorder/{workOrderId}";
11685
- if (workOrderId === undefined || workOrderId === null)
11686
- throw new Error("The parameter 'workOrderId' must be defined.");
11687
- url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
11683
+ getParcelBooking(parcelId) {
11684
+ let url_ = this.baseUrl + "/move/booking/parcel/{parcelId}";
11685
+ if (parcelId === undefined || parcelId === null)
11686
+ throw new Error("The parameter 'parcelId' must be defined.");
11687
+ url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
11688
11688
  url_ = url_.replace(/[?&]$/, "");
11689
11689
  let options_ = {
11690
11690
  method: "GET",
@@ -11695,10 +11695,10 @@ export class MoveBookingClient extends AuthorizedApiBase {
11695
11695
  return this.transformOptions(options_).then(transformedOptions_ => {
11696
11696
  return this.http.fetch(url_, transformedOptions_);
11697
11697
  }).then((_response) => {
11698
- return this.processGetWorkOrderBooking(_response);
11698
+ return this.processGetParcelBooking(_response);
11699
11699
  });
11700
11700
  }
11701
- processGetWorkOrderBooking(response) {
11701
+ processGetParcelBooking(response) {
11702
11702
  const status = response.status;
11703
11703
  let _headers = {};
11704
11704
  if (response.headers && response.headers.forEach) {
@@ -12345,6 +12345,59 @@ export class MoveMaterialsClient extends AuthorizedApiBase {
12345
12345
  return Promise.resolve(null);
12346
12346
  }
12347
12347
  }
12348
+ export class MoveParcelsClient extends AuthorizedApiBase {
12349
+ constructor(configuration, baseUrl, http) {
12350
+ super(configuration);
12351
+ this.jsonParseReviver = undefined;
12352
+ this.http = http ? http : window;
12353
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
12354
+ }
12355
+ searchParcels(input, pageSize) {
12356
+ let url_ = this.baseUrl + "/move/parcel/search?";
12357
+ if (input !== undefined && input !== null)
12358
+ url_ += "input=" + encodeURIComponent("" + input) + "&";
12359
+ if (pageSize !== undefined && pageSize !== null)
12360
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
12361
+ url_ = url_.replace(/[?&]$/, "");
12362
+ let options_ = {
12363
+ method: "GET",
12364
+ headers: {
12365
+ "Accept": "application/json"
12366
+ }
12367
+ };
12368
+ return this.transformOptions(options_).then(transformedOptions_ => {
12369
+ return this.http.fetch(url_, transformedOptions_);
12370
+ }).then((_response) => {
12371
+ return this.processSearchParcels(_response);
12372
+ });
12373
+ }
12374
+ processSearchParcels(response) {
12375
+ const status = response.status;
12376
+ let _headers = {};
12377
+ if (response.headers && response.headers.forEach) {
12378
+ response.headers.forEach((v, k) => _headers[k] = v);
12379
+ }
12380
+ ;
12381
+ if (status === 200) {
12382
+ return response.text().then((_responseText) => {
12383
+ let result200 = null;
12384
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12385
+ if (Array.isArray(resultData200)) {
12386
+ result200 = [];
12387
+ for (let item of resultData200)
12388
+ result200.push(SearchParcelDto.fromJS(item));
12389
+ }
12390
+ return result200;
12391
+ });
12392
+ }
12393
+ else if (status !== 200 && status !== 204) {
12394
+ return response.text().then((_responseText) => {
12395
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12396
+ });
12397
+ }
12398
+ return Promise.resolve(null);
12399
+ }
12400
+ }
12348
12401
  export class MoveTrackingClient extends AuthorizedApiBase {
12349
12402
  constructor(configuration, baseUrl, http) {
12350
12403
  super(configuration);
@@ -12436,11 +12489,11 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12436
12489
  }
12437
12490
  return Promise.resolve(null);
12438
12491
  }
12439
- getWorkOrderTrackingHistory(workOrderId, includeActiveBookings) {
12440
- let url_ = this.baseUrl + "/move/tracking/workorder/{workOrderId}?";
12441
- if (workOrderId === undefined || workOrderId === null)
12442
- throw new Error("The parameter 'workOrderId' must be defined.");
12443
- url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
12492
+ getParcelTrackingHistory(parcelId, includeActiveBookings) {
12493
+ let url_ = this.baseUrl + "/move/tracking/parcel/{parcelId}?";
12494
+ if (parcelId === undefined || parcelId === null)
12495
+ throw new Error("The parameter 'parcelId' must be defined.");
12496
+ url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
12444
12497
  if (includeActiveBookings === null)
12445
12498
  throw new Error("The parameter 'includeActiveBookings' cannot be null.");
12446
12499
  else if (includeActiveBookings !== undefined)
@@ -12455,10 +12508,10 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12455
12508
  return this.transformOptions(options_).then(transformedOptions_ => {
12456
12509
  return this.http.fetch(url_, transformedOptions_);
12457
12510
  }).then((_response) => {
12458
- return this.processGetWorkOrderTrackingHistory(_response);
12511
+ return this.processGetParcelTrackingHistory(_response);
12459
12512
  });
12460
12513
  }
12461
- processGetWorkOrderTrackingHistory(response) {
12514
+ processGetParcelTrackingHistory(response) {
12462
12515
  const status = response.status;
12463
12516
  let _headers = {};
12464
12517
  if (response.headers && response.headers.forEach) {
@@ -12469,7 +12522,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12469
12522
  return response.text().then((_responseText) => {
12470
12523
  let result200 = null;
12471
12524
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12472
- result200 = TrackingWorkOrderDto.fromJS(resultData200);
12525
+ result200 = TrackingParcelDto.fromJS(resultData200);
12473
12526
  return result200;
12474
12527
  });
12475
12528
  }
@@ -12480,8 +12533,8 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12480
12533
  }
12481
12534
  return Promise.resolve(null);
12482
12535
  }
12483
- listWorkOrderTrackingHistory(trackingParcelList) {
12484
- let url_ = this.baseUrl + "/move/tracking/workorder/list";
12536
+ listParcelTrackingHistory(trackingParcelList) {
12537
+ let url_ = this.baseUrl + "/move/tracking/parcel/list";
12485
12538
  url_ = url_.replace(/[?&]$/, "");
12486
12539
  const content_ = JSON.stringify(trackingParcelList);
12487
12540
  let options_ = {
@@ -12495,10 +12548,10 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12495
12548
  return this.transformOptions(options_).then(transformedOptions_ => {
12496
12549
  return this.http.fetch(url_, transformedOptions_);
12497
12550
  }).then((_response) => {
12498
- return this.processListWorkOrderTrackingHistory(_response);
12551
+ return this.processListParcelTrackingHistory(_response);
12499
12552
  });
12500
12553
  }
12501
- processListWorkOrderTrackingHistory(response) {
12554
+ processListParcelTrackingHistory(response) {
12502
12555
  const status = response.status;
12503
12556
  let _headers = {};
12504
12557
  if (response.headers && response.headers.forEach) {
@@ -12512,7 +12565,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12512
12565
  if (Array.isArray(resultData200)) {
12513
12566
  result200 = [];
12514
12567
  for (let item of resultData200)
12515
- result200.push(TrackingWorkOrderDto.fromJS(item));
12568
+ result200.push(TrackingParcelDto.fromJS(item));
12516
12569
  }
12517
12570
  return result200;
12518
12571
  });
@@ -12688,19 +12741,15 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12688
12741
  return Promise.resolve(null);
12689
12742
  }
12690
12743
  }
12691
- export class MoveWorkOrdersClient extends AuthorizedApiBase {
12744
+ export class MesClient extends AuthorizedApiBase {
12692
12745
  constructor(configuration, baseUrl, http) {
12693
12746
  super(configuration);
12694
12747
  this.jsonParseReviver = undefined;
12695
12748
  this.http = http ? http : window;
12696
12749
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
12697
12750
  }
12698
- searchWorkOrders(input, pageSize) {
12699
- let url_ = this.baseUrl + "/move/workorders/search?";
12700
- if (input !== undefined && input !== null)
12701
- url_ += "input=" + encodeURIComponent("" + input) + "&";
12702
- if (pageSize !== undefined && pageSize !== null)
12703
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
12751
+ getWorkerDetailsForCurrentUser() {
12752
+ let url_ = this.baseUrl + "/mes/workers/me";
12704
12753
  url_ = url_.replace(/[?&]$/, "");
12705
12754
  let options_ = {
12706
12755
  method: "GET",
@@ -12711,10 +12760,10 @@ export class MoveWorkOrdersClient extends AuthorizedApiBase {
12711
12760
  return this.transformOptions(options_).then(transformedOptions_ => {
12712
12761
  return this.http.fetch(url_, transformedOptions_);
12713
12762
  }).then((_response) => {
12714
- return this.processSearchWorkOrders(_response);
12763
+ return this.processGetWorkerDetailsForCurrentUser(_response);
12715
12764
  });
12716
12765
  }
12717
- processSearchWorkOrders(response) {
12766
+ processGetWorkerDetailsForCurrentUser(response) {
12718
12767
  const status = response.status;
12719
12768
  let _headers = {};
12720
12769
  if (response.headers && response.headers.forEach) {
@@ -12725,11 +12774,7 @@ export class MoveWorkOrdersClient extends AuthorizedApiBase {
12725
12774
  return response.text().then((_responseText) => {
12726
12775
  let result200 = null;
12727
12776
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12728
- if (Array.isArray(resultData200)) {
12729
- result200 = [];
12730
- for (let item of resultData200)
12731
- result200.push(SearchWorkOrderDto.fromJS(item));
12732
- }
12777
+ result200 = WorkerDto.fromJS(resultData200);
12733
12778
  return result200;
12734
12779
  });
12735
12780
  }
@@ -12741,15 +12786,21 @@ export class MoveWorkOrdersClient extends AuthorizedApiBase {
12741
12786
  return Promise.resolve(null);
12742
12787
  }
12743
12788
  }
12744
- export class MesClient extends AuthorizedApiBase {
12789
+ export class MesDocumentsClient extends AuthorizedApiBase {
12745
12790
  constructor(configuration, baseUrl, http) {
12746
12791
  super(configuration);
12747
12792
  this.jsonParseReviver = undefined;
12748
12793
  this.http = http ? http : window;
12749
12794
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
12750
12795
  }
12751
- getWorkerDetailsForCurrentUser() {
12752
- let url_ = this.baseUrl + "/mes/workers/me";
12796
+ getDocument(drawingNumber, id) {
12797
+ let url_ = this.baseUrl + "/mes/documents/drawings/{drawingNumber}/{id}";
12798
+ if (drawingNumber === undefined || drawingNumber === null)
12799
+ throw new Error("The parameter 'drawingNumber' must be defined.");
12800
+ url_ = url_.replace("{drawingNumber}", encodeURIComponent("" + drawingNumber));
12801
+ if (id === undefined || id === null)
12802
+ throw new Error("The parameter 'id' must be defined.");
12803
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
12753
12804
  url_ = url_.replace(/[?&]$/, "");
12754
12805
  let options_ = {
12755
12806
  method: "GET",
@@ -12760,10 +12811,10 @@ export class MesClient extends AuthorizedApiBase {
12760
12811
  return this.transformOptions(options_).then(transformedOptions_ => {
12761
12812
  return this.http.fetch(url_, transformedOptions_);
12762
12813
  }).then((_response) => {
12763
- return this.processGetWorkerDetailsForCurrentUser(_response);
12814
+ return this.processGetDocument(_response);
12764
12815
  });
12765
12816
  }
12766
- processGetWorkerDetailsForCurrentUser(response) {
12817
+ processGetDocument(response) {
12767
12818
  const status = response.status;
12768
12819
  let _headers = {};
12769
12820
  if (response.headers && response.headers.forEach) {
@@ -12774,7 +12825,7 @@ export class MesClient extends AuthorizedApiBase {
12774
12825
  return response.text().then((_responseText) => {
12775
12826
  let result200 = null;
12776
12827
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12777
- result200 = WorkerDto.fromJS(resultData200);
12828
+ result200 = DocumentLinkDto.fromJS(resultData200);
12778
12829
  return result200;
12779
12830
  });
12780
12831
  }
@@ -12786,21 +12837,19 @@ export class MesClient extends AuthorizedApiBase {
12786
12837
  return Promise.resolve(null);
12787
12838
  }
12788
12839
  }
12789
- export class MesDocumentsClient extends AuthorizedApiBase {
12840
+ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
12790
12841
  constructor(configuration, baseUrl, http) {
12791
12842
  super(configuration);
12792
12843
  this.jsonParseReviver = undefined;
12793
12844
  this.http = http ? http : window;
12794
12845
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
12795
12846
  }
12796
- getDocument(drawingNumber, id) {
12797
- let url_ = this.baseUrl + "/mes/documents/drawings/{drawingNumber}/{id}";
12798
- if (drawingNumber === undefined || drawingNumber === null)
12799
- throw new Error("The parameter 'drawingNumber' must be defined.");
12800
- url_ = url_.replace("{drawingNumber}", encodeURIComponent("" + drawingNumber));
12801
- if (id === undefined || id === null)
12802
- throw new Error("The parameter 'id' must be defined.");
12803
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
12847
+ getEngineeringChangeOrders(partNumber) {
12848
+ let url_ = this.baseUrl + "/mes/mesengineeringchangeorders?";
12849
+ if (partNumber === null)
12850
+ throw new Error("The parameter 'partNumber' cannot be null.");
12851
+ else if (partNumber !== undefined)
12852
+ url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
12804
12853
  url_ = url_.replace(/[?&]$/, "");
12805
12854
  let options_ = {
12806
12855
  method: "GET",
@@ -12811,10 +12860,10 @@ export class MesDocumentsClient extends AuthorizedApiBase {
12811
12860
  return this.transformOptions(options_).then(transformedOptions_ => {
12812
12861
  return this.http.fetch(url_, transformedOptions_);
12813
12862
  }).then((_response) => {
12814
- return this.processGetDocument(_response);
12863
+ return this.processGetEngineeringChangeOrders(_response);
12815
12864
  });
12816
12865
  }
12817
- processGetDocument(response) {
12866
+ processGetEngineeringChangeOrders(response) {
12818
12867
  const status = response.status;
12819
12868
  let _headers = {};
12820
12869
  if (response.headers && response.headers.forEach) {
@@ -12825,7 +12874,11 @@ export class MesDocumentsClient extends AuthorizedApiBase {
12825
12874
  return response.text().then((_responseText) => {
12826
12875
  let result200 = null;
12827
12876
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12828
- result200 = DocumentLinkDto.fromJS(resultData200);
12877
+ if (Array.isArray(resultData200)) {
12878
+ result200 = [];
12879
+ for (let item of resultData200)
12880
+ result200.push(EngineeringChangeOrderDto.fromJS(item));
12881
+ }
12829
12882
  return result200;
12830
12883
  });
12831
12884
  }
@@ -30399,7 +30452,7 @@ export class BookingDto {
30399
30452
  init(_data) {
30400
30453
  if (_data) {
30401
30454
  this.bookingId = _data["bookingId"];
30402
- this.bookingKind = _data["bookingKind"];
30455
+ this.parcelKind = _data["parcelKind"];
30403
30456
  this.transportKind = _data["transportKind"];
30404
30457
  this.status = _data["status"];
30405
30458
  if (Array.isArray(_data["items"])) {
@@ -30428,7 +30481,7 @@ export class BookingDto {
30428
30481
  toJSON(data) {
30429
30482
  data = typeof data === 'object' ? data : {};
30430
30483
  data["bookingId"] = this.bookingId;
30431
- data["bookingKind"] = this.bookingKind;
30484
+ data["parcelKind"] = this.parcelKind;
30432
30485
  data["transportKind"] = this.transportKind;
30433
30486
  data["status"] = this.status;
30434
30487
  if (Array.isArray(this.items)) {
@@ -30462,7 +30515,7 @@ export class BookingItemDto {
30462
30515
  if (_data) {
30463
30516
  this.trackingId = _data["trackingId"];
30464
30517
  this.palletNumber = _data["palletNumber"];
30465
- this.workOrderId = _data["workOrderId"];
30518
+ this.parcelId = _data["parcelId"];
30466
30519
  this.parcelKind = _data["parcelKind"];
30467
30520
  this.material = _data["material"];
30468
30521
  this.comment = _data["comment"];
@@ -30480,7 +30533,7 @@ export class BookingItemDto {
30480
30533
  data = typeof data === 'object' ? data : {};
30481
30534
  data["trackingId"] = this.trackingId;
30482
30535
  data["palletNumber"] = this.palletNumber;
30483
- data["workOrderId"] = this.workOrderId;
30536
+ data["parcelId"] = this.parcelId;
30484
30537
  data["parcelKind"] = this.parcelKind;
30485
30538
  data["material"] = this.material;
30486
30539
  data["comment"] = this.comment;
@@ -30537,10 +30590,10 @@ export class BookingRequestListDto {
30537
30590
  init(_data) {
30538
30591
  if (_data) {
30539
30592
  this.pageSize = _data["pageSize"];
30540
- if (Array.isArray(_data["workOrderIdFilter"])) {
30541
- this.workOrderIdFilter = [];
30542
- for (let item of _data["workOrderIdFilter"])
30543
- this.workOrderIdFilter.push(item);
30593
+ if (Array.isArray(_data["parcelIdFilter"])) {
30594
+ this.parcelIdFilter = [];
30595
+ for (let item of _data["parcelIdFilter"])
30596
+ this.parcelIdFilter.push(item);
30544
30597
  }
30545
30598
  if (Array.isArray(_data["materialFilter"])) {
30546
30599
  this.materialFilter = [];
@@ -30572,10 +30625,10 @@ export class BookingRequestListDto {
30572
30625
  for (let item of _data["bookingStatusFilter"])
30573
30626
  this.bookingStatusFilter.push(item);
30574
30627
  }
30575
- if (Array.isArray(_data["bookingKindFilter"])) {
30576
- this.bookingKindFilter = [];
30577
- for (let item of _data["bookingKindFilter"])
30578
- this.bookingKindFilter.push(item);
30628
+ if (Array.isArray(_data["parcelKindFilter"])) {
30629
+ this.parcelKindFilter = [];
30630
+ for (let item of _data["parcelKindFilter"])
30631
+ this.parcelKindFilter.push(item);
30579
30632
  }
30580
30633
  if (Array.isArray(_data["transportKindFilter"])) {
30581
30634
  this.transportKindFilter = [];
@@ -30597,10 +30650,10 @@ export class BookingRequestListDto {
30597
30650
  toJSON(data) {
30598
30651
  data = typeof data === 'object' ? data : {};
30599
30652
  data["pageSize"] = this.pageSize;
30600
- if (Array.isArray(this.workOrderIdFilter)) {
30601
- data["workOrderIdFilter"] = [];
30602
- for (let item of this.workOrderIdFilter)
30603
- data["workOrderIdFilter"].push(item);
30653
+ if (Array.isArray(this.parcelIdFilter)) {
30654
+ data["parcelIdFilter"] = [];
30655
+ for (let item of this.parcelIdFilter)
30656
+ data["parcelIdFilter"].push(item);
30604
30657
  }
30605
30658
  if (Array.isArray(this.materialFilter)) {
30606
30659
  data["materialFilter"] = [];
@@ -30632,10 +30685,10 @@ export class BookingRequestListDto {
30632
30685
  for (let item of this.bookingStatusFilter)
30633
30686
  data["bookingStatusFilter"].push(item);
30634
30687
  }
30635
- if (Array.isArray(this.bookingKindFilter)) {
30636
- data["bookingKindFilter"] = [];
30637
- for (let item of this.bookingKindFilter)
30638
- data["bookingKindFilter"].push(item);
30688
+ if (Array.isArray(this.parcelKindFilter)) {
30689
+ data["parcelKindFilter"] = [];
30690
+ for (let item of this.parcelKindFilter)
30691
+ data["parcelKindFilter"].push(item);
30639
30692
  }
30640
30693
  if (Array.isArray(this.transportKindFilter)) {
30641
30694
  data["transportKindFilter"] = [];
@@ -30661,7 +30714,7 @@ export class BookingUpdateDto {
30661
30714
  init(_data) {
30662
30715
  if (_data) {
30663
30716
  this.bookingId = _data["bookingId"];
30664
- this.bookingKind = _data["bookingKind"];
30717
+ this.parcelKind = _data["parcelKind"];
30665
30718
  this.transportKind = _data["transportKind"];
30666
30719
  this.status = _data["status"];
30667
30720
  this.fromLocationId = _data["fromLocationId"];
@@ -30677,7 +30730,7 @@ export class BookingUpdateDto {
30677
30730
  toJSON(data) {
30678
30731
  data = typeof data === 'object' ? data : {};
30679
30732
  data["bookingId"] = this.bookingId;
30680
- data["bookingKind"] = this.bookingKind;
30733
+ data["parcelKind"] = this.parcelKind;
30681
30734
  data["transportKind"] = this.transportKind;
30682
30735
  data["status"] = this.status;
30683
30736
  data["fromLocationId"] = this.fromLocationId;
@@ -30739,7 +30792,7 @@ export class BookingItemRequestDto {
30739
30792
  }
30740
30793
  init(_data) {
30741
30794
  if (_data) {
30742
- this.workOrderId = _data["workOrderId"];
30795
+ this.parcelId = _data["parcelId"];
30743
30796
  this.trackingId = _data["trackingId"];
30744
30797
  this.comment = _data["comment"];
30745
30798
  }
@@ -30752,7 +30805,7 @@ export class BookingItemRequestDto {
30752
30805
  }
30753
30806
  toJSON(data) {
30754
30807
  data = typeof data === 'object' ? data : {};
30755
- data["workOrderId"] = this.workOrderId;
30808
+ data["parcelId"] = this.parcelId;
30756
30809
  data["trackingId"] = this.trackingId;
30757
30810
  data["comment"] = this.comment;
30758
30811
  return data;
@@ -30769,7 +30822,7 @@ export class BookingGeneralRequestDto {
30769
30822
  }
30770
30823
  init(_data) {
30771
30824
  if (_data) {
30772
- this.bookingKind = _data["bookingKind"];
30825
+ this.parcelKind = _data["parcelKind"];
30773
30826
  this.transportKind = _data["transportKind"];
30774
30827
  this.fromLocationId = _data["fromLocationId"];
30775
30828
  this.toLocationId = _data["toLocationId"];
@@ -30785,7 +30838,7 @@ export class BookingGeneralRequestDto {
30785
30838
  }
30786
30839
  toJSON(data) {
30787
30840
  data = typeof data === 'object' ? data : {};
30788
- data["bookingKind"] = this.bookingKind;
30841
+ data["parcelKind"] = this.parcelKind;
30789
30842
  data["transportKind"] = this.transportKind;
30790
30843
  data["fromLocationId"] = this.fromLocationId;
30791
30844
  data["toLocationId"] = this.toLocationId;
@@ -30982,7 +31035,7 @@ export class LocationSuggestionsItemDto {
30982
31035
  }
30983
31036
  init(_data) {
30984
31037
  if (_data) {
30985
- this.workOrderId = _data["workOrderId"];
31038
+ this.parcelId = _data["parcelId"];
30986
31039
  }
30987
31040
  }
30988
31041
  static fromJS(data) {
@@ -30993,7 +31046,7 @@ export class LocationSuggestionsItemDto {
30993
31046
  }
30994
31047
  toJSON(data) {
30995
31048
  data = typeof data === 'object' ? data : {};
30996
- data["workOrderId"] = this.workOrderId;
31049
+ data["parcelId"] = this.parcelId;
30997
31050
  return data;
30998
31051
  }
30999
31052
  }
@@ -31055,6 +31108,79 @@ export class MaterialUpdateDto {
31055
31108
  return data;
31056
31109
  }
31057
31110
  }
31111
+ export class SearchParcelDto {
31112
+ constructor(data) {
31113
+ if (data) {
31114
+ for (var property in data) {
31115
+ if (data.hasOwnProperty(property))
31116
+ this[property] = data[property];
31117
+ }
31118
+ }
31119
+ if (!data) {
31120
+ this.items = [];
31121
+ }
31122
+ }
31123
+ init(_data) {
31124
+ if (_data) {
31125
+ this.parcelId = _data["parcelId"];
31126
+ this.matchCriteria = _data["matchCriteria"];
31127
+ if (Array.isArray(_data["items"])) {
31128
+ this.items = [];
31129
+ for (let item of _data["items"])
31130
+ this.items.push(SearchParcelItemDto.fromJS(item));
31131
+ }
31132
+ this.partName = _data["partName"];
31133
+ this.partNumber = _data["partNumber"];
31134
+ }
31135
+ }
31136
+ static fromJS(data) {
31137
+ data = typeof data === 'object' ? data : {};
31138
+ let result = new SearchParcelDto();
31139
+ result.init(data);
31140
+ return result;
31141
+ }
31142
+ toJSON(data) {
31143
+ data = typeof data === 'object' ? data : {};
31144
+ data["parcelId"] = this.parcelId;
31145
+ data["matchCriteria"] = this.matchCriteria;
31146
+ if (Array.isArray(this.items)) {
31147
+ data["items"] = [];
31148
+ for (let item of this.items)
31149
+ data["items"].push(item.toJSON());
31150
+ }
31151
+ data["partName"] = this.partName;
31152
+ data["partNumber"] = this.partNumber;
31153
+ return data;
31154
+ }
31155
+ }
31156
+ export class SearchParcelItemDto {
31157
+ constructor(data) {
31158
+ if (data) {
31159
+ for (var property in data) {
31160
+ if (data.hasOwnProperty(property))
31161
+ this[property] = data[property];
31162
+ }
31163
+ }
31164
+ }
31165
+ init(_data) {
31166
+ if (_data) {
31167
+ this.trackingId = _data["trackingId"];
31168
+ this.selected = _data["selected"];
31169
+ }
31170
+ }
31171
+ static fromJS(data) {
31172
+ data = typeof data === 'object' ? data : {};
31173
+ let result = new SearchParcelItemDto();
31174
+ result.init(data);
31175
+ return result;
31176
+ }
31177
+ toJSON(data) {
31178
+ data = typeof data === 'object' ? data : {};
31179
+ data["trackingId"] = this.trackingId;
31180
+ data["selected"] = this.selected;
31181
+ return data;
31182
+ }
31183
+ }
31058
31184
  export class TrackingHistoryListDto {
31059
31185
  constructor(data) {
31060
31186
  if (data) {
@@ -31111,7 +31237,7 @@ export class TrackingHistoryDto {
31111
31237
  this.trackingId = _data["trackingId"];
31112
31238
  this.palletNumber = _data["palletNumber"];
31113
31239
  this.parcelKind = _data["parcelKind"];
31114
- this.workOrderId = _data["workOrderId"];
31240
+ this.parcelId = _data["parcelId"];
31115
31241
  if (Array.isArray(_data["trackingEvents"])) {
31116
31242
  this.trackingEvents = [];
31117
31243
  for (let item of _data["trackingEvents"])
@@ -31132,7 +31258,7 @@ export class TrackingHistoryDto {
31132
31258
  data["trackingId"] = this.trackingId;
31133
31259
  data["palletNumber"] = this.palletNumber;
31134
31260
  data["parcelKind"] = this.parcelKind;
31135
- data["workOrderId"] = this.workOrderId;
31261
+ data["parcelId"] = this.parcelId;
31136
31262
  if (Array.isArray(this.trackingEvents)) {
31137
31263
  data["trackingEvents"] = [];
31138
31264
  for (let item of this.trackingEvents)
@@ -31195,10 +31321,10 @@ export class TrackingRequestListDto {
31195
31321
  init(_data) {
31196
31322
  if (_data) {
31197
31323
  this.pageSize = _data["pageSize"];
31198
- if (Array.isArray(_data["workOrderIdFilter"])) {
31199
- this.workOrderIdFilter = [];
31200
- for (let item of _data["workOrderIdFilter"])
31201
- this.workOrderIdFilter.push(item);
31324
+ if (Array.isArray(_data["parcelIdFilter"])) {
31325
+ this.parcelIdFilter = [];
31326
+ for (let item of _data["parcelIdFilter"])
31327
+ this.parcelIdFilter.push(item);
31202
31328
  }
31203
31329
  if (Array.isArray(_data["parcelKindFilter"])) {
31204
31330
  this.parcelKindFilter = [];
@@ -31233,10 +31359,10 @@ export class TrackingRequestListDto {
31233
31359
  toJSON(data) {
31234
31360
  data = typeof data === 'object' ? data : {};
31235
31361
  data["pageSize"] = this.pageSize;
31236
- if (Array.isArray(this.workOrderIdFilter)) {
31237
- data["workOrderIdFilter"] = [];
31238
- for (let item of this.workOrderIdFilter)
31239
- data["workOrderIdFilter"].push(item);
31362
+ if (Array.isArray(this.parcelIdFilter)) {
31363
+ data["parcelIdFilter"] = [];
31364
+ for (let item of this.parcelIdFilter)
31365
+ data["parcelIdFilter"].push(item);
31240
31366
  }
31241
31367
  if (Array.isArray(this.parcelKindFilter)) {
31242
31368
  data["parcelKindFilter"] = [];
@@ -31263,7 +31389,7 @@ export class TrackingRequestListDto {
31263
31389
  return data;
31264
31390
  }
31265
31391
  }
31266
- export class TrackingWorkOrderDto {
31392
+ export class TrackingParcelDto {
31267
31393
  constructor(data) {
31268
31394
  if (data) {
31269
31395
  for (var property in data) {
@@ -31277,7 +31403,7 @@ export class TrackingWorkOrderDto {
31277
31403
  }
31278
31404
  init(_data) {
31279
31405
  if (_data) {
31280
- this.workOrderId = _data["workOrderId"];
31406
+ this.parcelId = _data["parcelId"];
31281
31407
  this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
31282
31408
  if (Array.isArray(_data["trackingHistory"])) {
31283
31409
  this.trackingHistory = [];
@@ -31289,13 +31415,13 @@ export class TrackingWorkOrderDto {
31289
31415
  }
31290
31416
  static fromJS(data) {
31291
31417
  data = typeof data === 'object' ? data : {};
31292
- let result = new TrackingWorkOrderDto();
31418
+ let result = new TrackingParcelDto();
31293
31419
  result.init(data);
31294
31420
  return result;
31295
31421
  }
31296
31422
  toJSON(data) {
31297
31423
  data = typeof data === 'object' ? data : {};
31298
- data["workOrderId"] = this.workOrderId;
31424
+ data["parcelId"] = this.parcelId;
31299
31425
  data["part"] = this.part ? this.part.toJSON() : undefined;
31300
31426
  if (Array.isArray(this.trackingHistory)) {
31301
31427
  data["trackingHistory"] = [];
@@ -31386,7 +31512,7 @@ export class TrackingHistoryUpdateDto {
31386
31512
  }
31387
31513
  init(_data) {
31388
31514
  if (_data) {
31389
- this.workOrderId = _data["workOrderId"];
31515
+ this.parcelId = _data["parcelId"];
31390
31516
  }
31391
31517
  }
31392
31518
  static fromJS(data) {
@@ -31397,56 +31523,11 @@ export class TrackingHistoryUpdateDto {
31397
31523
  }
31398
31524
  toJSON(data) {
31399
31525
  data = typeof data === 'object' ? data : {};
31400
- data["workOrderId"] = this.workOrderId;
31401
- return data;
31402
- }
31403
- }
31404
- export class SearchWorkOrderDto {
31405
- constructor(data) {
31406
- if (data) {
31407
- for (var property in data) {
31408
- if (data.hasOwnProperty(property))
31409
- this[property] = data[property];
31410
- }
31411
- }
31412
- if (!data) {
31413
- this.items = [];
31414
- }
31415
- }
31416
- init(_data) {
31417
- if (_data) {
31418
- this.workOrderId = _data["workOrderId"];
31419
- this.matchCriteria = _data["matchCriteria"];
31420
- if (Array.isArray(_data["items"])) {
31421
- this.items = [];
31422
- for (let item of _data["items"])
31423
- this.items.push(SearchWorkOrderItemDto.fromJS(item));
31424
- }
31425
- this.partName = _data["partName"];
31426
- this.partNumber = _data["partNumber"];
31427
- }
31428
- }
31429
- static fromJS(data) {
31430
- data = typeof data === 'object' ? data : {};
31431
- let result = new SearchWorkOrderDto();
31432
- result.init(data);
31433
- return result;
31434
- }
31435
- toJSON(data) {
31436
- data = typeof data === 'object' ? data : {};
31437
- data["workOrderId"] = this.workOrderId;
31438
- data["matchCriteria"] = this.matchCriteria;
31439
- if (Array.isArray(this.items)) {
31440
- data["items"] = [];
31441
- for (let item of this.items)
31442
- data["items"].push(item.toJSON());
31443
- }
31444
- data["partName"] = this.partName;
31445
- data["partNumber"] = this.partNumber;
31526
+ data["parcelId"] = this.parcelId;
31446
31527
  return data;
31447
31528
  }
31448
31529
  }
31449
- export class SearchWorkOrderItemDto {
31530
+ export class WorkerDto {
31450
31531
  constructor(data) {
31451
31532
  if (data) {
31452
31533
  for (var property in data) {
@@ -31457,24 +31538,24 @@ export class SearchWorkOrderItemDto {
31457
31538
  }
31458
31539
  init(_data) {
31459
31540
  if (_data) {
31460
- this.trackingId = _data["trackingId"];
31461
- this.selected = _data["selected"];
31541
+ this.personnelNumber = _data["personnelNumber"];
31542
+ this.badgeId = _data["badgeId"];
31462
31543
  }
31463
31544
  }
31464
31545
  static fromJS(data) {
31465
31546
  data = typeof data === 'object' ? data : {};
31466
- let result = new SearchWorkOrderItemDto();
31547
+ let result = new WorkerDto();
31467
31548
  result.init(data);
31468
31549
  return result;
31469
31550
  }
31470
31551
  toJSON(data) {
31471
31552
  data = typeof data === 'object' ? data : {};
31472
- data["trackingId"] = this.trackingId;
31473
- data["selected"] = this.selected;
31553
+ data["personnelNumber"] = this.personnelNumber;
31554
+ data["badgeId"] = this.badgeId;
31474
31555
  return data;
31475
31556
  }
31476
31557
  }
31477
- export class WorkerDto {
31558
+ export class DocumentLinkDto {
31478
31559
  constructor(data) {
31479
31560
  if (data) {
31480
31561
  for (var property in data) {
@@ -31485,24 +31566,22 @@ export class WorkerDto {
31485
31566
  }
31486
31567
  init(_data) {
31487
31568
  if (_data) {
31488
- this.personnelNumber = _data["personnelNumber"];
31489
- this.badgeId = _data["badgeId"];
31569
+ this.url = _data["url"];
31490
31570
  }
31491
31571
  }
31492
31572
  static fromJS(data) {
31493
31573
  data = typeof data === 'object' ? data : {};
31494
- let result = new WorkerDto();
31574
+ let result = new DocumentLinkDto();
31495
31575
  result.init(data);
31496
31576
  return result;
31497
31577
  }
31498
31578
  toJSON(data) {
31499
31579
  data = typeof data === 'object' ? data : {};
31500
- data["personnelNumber"] = this.personnelNumber;
31501
- data["badgeId"] = this.badgeId;
31580
+ data["url"] = this.url;
31502
31581
  return data;
31503
31582
  }
31504
31583
  }
31505
- export class DocumentLinkDto {
31584
+ export class EngineeringChangeOrderDto {
31506
31585
  constructor(data) {
31507
31586
  if (data) {
31508
31587
  for (var property in data) {
@@ -31513,18 +31592,28 @@ export class DocumentLinkDto {
31513
31592
  }
31514
31593
  init(_data) {
31515
31594
  if (_data) {
31516
- this.url = _data["url"];
31595
+ this.orderNumber = _data["orderNumber"];
31596
+ this.title = _data["title"];
31597
+ this.category = _data["category"];
31598
+ this.description = _data["description"];
31599
+ this.project = _data["project"];
31600
+ this.status = _data["status"];
31517
31601
  }
31518
31602
  }
31519
31603
  static fromJS(data) {
31520
31604
  data = typeof data === 'object' ? data : {};
31521
- let result = new DocumentLinkDto();
31605
+ let result = new EngineeringChangeOrderDto();
31522
31606
  result.init(data);
31523
31607
  return result;
31524
31608
  }
31525
31609
  toJSON(data) {
31526
31610
  data = typeof data === 'object' ? data : {};
31527
- data["url"] = this.url;
31611
+ data["orderNumber"] = this.orderNumber;
31612
+ data["title"] = this.title;
31613
+ data["category"] = this.category;
31614
+ data["description"] = this.description;
31615
+ data["project"] = this.project;
31616
+ data["status"] = this.status;
31528
31617
  return data;
31529
31618
  }
31530
31619
  }