@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.
- package/lib/ignosportal-api.d.ts +88 -88
- package/lib/ignosportal-api.js +190 -190
- package/package.json +1 -1
- package/src/ignosportal-api.ts +269 -269
package/lib/ignosportal-api.js
CHANGED
|
@@ -11680,11 +11680,11 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
11680
11680
|
}
|
|
11681
11681
|
return Promise.resolve(null);
|
|
11682
11682
|
}
|
|
11683
|
-
|
|
11684
|
-
let url_ = this.baseUrl + "/move/booking/
|
|
11685
|
-
if (
|
|
11686
|
-
throw new Error("The parameter '
|
|
11687
|
-
url_ = url_.replace("{
|
|
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.
|
|
11698
|
+
return this.processGetParcelBooking(_response);
|
|
11699
11699
|
});
|
|
11700
11700
|
}
|
|
11701
|
-
|
|
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
|
-
|
|
12440
|
-
let url_ = this.baseUrl + "/move/tracking/
|
|
12441
|
-
if (
|
|
12442
|
-
throw new Error("The parameter '
|
|
12443
|
-
url_ = url_.replace("{
|
|
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.
|
|
12511
|
+
return this.processGetParcelTrackingHistory(_response);
|
|
12459
12512
|
});
|
|
12460
12513
|
}
|
|
12461
|
-
|
|
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 =
|
|
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
|
-
|
|
12484
|
-
let url_ = this.baseUrl + "/move/tracking/
|
|
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.
|
|
12551
|
+
return this.processListParcelTrackingHistory(_response);
|
|
12499
12552
|
});
|
|
12500
12553
|
}
|
|
12501
|
-
|
|
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(
|
|
12568
|
+
result200.push(TrackingParcelDto.fromJS(item));
|
|
12516
12569
|
}
|
|
12517
12570
|
return result200;
|
|
12518
12571
|
});
|
|
@@ -12688,59 +12741,6 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12688
12741
|
return Promise.resolve(null);
|
|
12689
12742
|
}
|
|
12690
12743
|
}
|
|
12691
|
-
export class MoveWorkOrdersClient extends AuthorizedApiBase {
|
|
12692
|
-
constructor(configuration, baseUrl, http) {
|
|
12693
|
-
super(configuration);
|
|
12694
|
-
this.jsonParseReviver = undefined;
|
|
12695
|
-
this.http = http ? http : window;
|
|
12696
|
-
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
12697
|
-
}
|
|
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) + "&";
|
|
12704
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
12705
|
-
let options_ = {
|
|
12706
|
-
method: "GET",
|
|
12707
|
-
headers: {
|
|
12708
|
-
"Accept": "application/json"
|
|
12709
|
-
}
|
|
12710
|
-
};
|
|
12711
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12712
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
12713
|
-
}).then((_response) => {
|
|
12714
|
-
return this.processSearchWorkOrders(_response);
|
|
12715
|
-
});
|
|
12716
|
-
}
|
|
12717
|
-
processSearchWorkOrders(response) {
|
|
12718
|
-
const status = response.status;
|
|
12719
|
-
let _headers = {};
|
|
12720
|
-
if (response.headers && response.headers.forEach) {
|
|
12721
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12722
|
-
}
|
|
12723
|
-
;
|
|
12724
|
-
if (status === 200) {
|
|
12725
|
-
return response.text().then((_responseText) => {
|
|
12726
|
-
let result200 = null;
|
|
12727
|
-
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
|
-
}
|
|
12733
|
-
return result200;
|
|
12734
|
-
});
|
|
12735
|
-
}
|
|
12736
|
-
else if (status !== 200 && status !== 204) {
|
|
12737
|
-
return response.text().then((_responseText) => {
|
|
12738
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12739
|
-
});
|
|
12740
|
-
}
|
|
12741
|
-
return Promise.resolve(null);
|
|
12742
|
-
}
|
|
12743
|
-
}
|
|
12744
12744
|
export class MesClient extends AuthorizedApiBase {
|
|
12745
12745
|
constructor(configuration, baseUrl, http) {
|
|
12746
12746
|
super(configuration);
|
|
@@ -30452,7 +30452,7 @@ export class BookingDto {
|
|
|
30452
30452
|
init(_data) {
|
|
30453
30453
|
if (_data) {
|
|
30454
30454
|
this.bookingId = _data["bookingId"];
|
|
30455
|
-
this.
|
|
30455
|
+
this.parcelKind = _data["parcelKind"];
|
|
30456
30456
|
this.transportKind = _data["transportKind"];
|
|
30457
30457
|
this.status = _data["status"];
|
|
30458
30458
|
if (Array.isArray(_data["items"])) {
|
|
@@ -30481,7 +30481,7 @@ export class BookingDto {
|
|
|
30481
30481
|
toJSON(data) {
|
|
30482
30482
|
data = typeof data === 'object' ? data : {};
|
|
30483
30483
|
data["bookingId"] = this.bookingId;
|
|
30484
|
-
data["
|
|
30484
|
+
data["parcelKind"] = this.parcelKind;
|
|
30485
30485
|
data["transportKind"] = this.transportKind;
|
|
30486
30486
|
data["status"] = this.status;
|
|
30487
30487
|
if (Array.isArray(this.items)) {
|
|
@@ -30515,7 +30515,7 @@ export class BookingItemDto {
|
|
|
30515
30515
|
if (_data) {
|
|
30516
30516
|
this.trackingId = _data["trackingId"];
|
|
30517
30517
|
this.palletNumber = _data["palletNumber"];
|
|
30518
|
-
this.
|
|
30518
|
+
this.parcelId = _data["parcelId"];
|
|
30519
30519
|
this.parcelKind = _data["parcelKind"];
|
|
30520
30520
|
this.material = _data["material"];
|
|
30521
30521
|
this.comment = _data["comment"];
|
|
@@ -30533,7 +30533,7 @@ export class BookingItemDto {
|
|
|
30533
30533
|
data = typeof data === 'object' ? data : {};
|
|
30534
30534
|
data["trackingId"] = this.trackingId;
|
|
30535
30535
|
data["palletNumber"] = this.palletNumber;
|
|
30536
|
-
data["
|
|
30536
|
+
data["parcelId"] = this.parcelId;
|
|
30537
30537
|
data["parcelKind"] = this.parcelKind;
|
|
30538
30538
|
data["material"] = this.material;
|
|
30539
30539
|
data["comment"] = this.comment;
|
|
@@ -30590,10 +30590,10 @@ export class BookingRequestListDto {
|
|
|
30590
30590
|
init(_data) {
|
|
30591
30591
|
if (_data) {
|
|
30592
30592
|
this.pageSize = _data["pageSize"];
|
|
30593
|
-
if (Array.isArray(_data["
|
|
30594
|
-
this.
|
|
30595
|
-
for (let item of _data["
|
|
30596
|
-
this.
|
|
30593
|
+
if (Array.isArray(_data["parcelIdFilter"])) {
|
|
30594
|
+
this.parcelIdFilter = [];
|
|
30595
|
+
for (let item of _data["parcelIdFilter"])
|
|
30596
|
+
this.parcelIdFilter.push(item);
|
|
30597
30597
|
}
|
|
30598
30598
|
if (Array.isArray(_data["materialFilter"])) {
|
|
30599
30599
|
this.materialFilter = [];
|
|
@@ -30625,10 +30625,10 @@ export class BookingRequestListDto {
|
|
|
30625
30625
|
for (let item of _data["bookingStatusFilter"])
|
|
30626
30626
|
this.bookingStatusFilter.push(item);
|
|
30627
30627
|
}
|
|
30628
|
-
if (Array.isArray(_data["
|
|
30629
|
-
this.
|
|
30630
|
-
for (let item of _data["
|
|
30631
|
-
this.
|
|
30628
|
+
if (Array.isArray(_data["parcelKindFilter"])) {
|
|
30629
|
+
this.parcelKindFilter = [];
|
|
30630
|
+
for (let item of _data["parcelKindFilter"])
|
|
30631
|
+
this.parcelKindFilter.push(item);
|
|
30632
30632
|
}
|
|
30633
30633
|
if (Array.isArray(_data["transportKindFilter"])) {
|
|
30634
30634
|
this.transportKindFilter = [];
|
|
@@ -30650,10 +30650,10 @@ export class BookingRequestListDto {
|
|
|
30650
30650
|
toJSON(data) {
|
|
30651
30651
|
data = typeof data === 'object' ? data : {};
|
|
30652
30652
|
data["pageSize"] = this.pageSize;
|
|
30653
|
-
if (Array.isArray(this.
|
|
30654
|
-
data["
|
|
30655
|
-
for (let item of this.
|
|
30656
|
-
data["
|
|
30653
|
+
if (Array.isArray(this.parcelIdFilter)) {
|
|
30654
|
+
data["parcelIdFilter"] = [];
|
|
30655
|
+
for (let item of this.parcelIdFilter)
|
|
30656
|
+
data["parcelIdFilter"].push(item);
|
|
30657
30657
|
}
|
|
30658
30658
|
if (Array.isArray(this.materialFilter)) {
|
|
30659
30659
|
data["materialFilter"] = [];
|
|
@@ -30685,10 +30685,10 @@ export class BookingRequestListDto {
|
|
|
30685
30685
|
for (let item of this.bookingStatusFilter)
|
|
30686
30686
|
data["bookingStatusFilter"].push(item);
|
|
30687
30687
|
}
|
|
30688
|
-
if (Array.isArray(this.
|
|
30689
|
-
data["
|
|
30690
|
-
for (let item of this.
|
|
30691
|
-
data["
|
|
30688
|
+
if (Array.isArray(this.parcelKindFilter)) {
|
|
30689
|
+
data["parcelKindFilter"] = [];
|
|
30690
|
+
for (let item of this.parcelKindFilter)
|
|
30691
|
+
data["parcelKindFilter"].push(item);
|
|
30692
30692
|
}
|
|
30693
30693
|
if (Array.isArray(this.transportKindFilter)) {
|
|
30694
30694
|
data["transportKindFilter"] = [];
|
|
@@ -30714,7 +30714,7 @@ export class BookingUpdateDto {
|
|
|
30714
30714
|
init(_data) {
|
|
30715
30715
|
if (_data) {
|
|
30716
30716
|
this.bookingId = _data["bookingId"];
|
|
30717
|
-
this.
|
|
30717
|
+
this.parcelKind = _data["parcelKind"];
|
|
30718
30718
|
this.transportKind = _data["transportKind"];
|
|
30719
30719
|
this.status = _data["status"];
|
|
30720
30720
|
this.fromLocationId = _data["fromLocationId"];
|
|
@@ -30730,7 +30730,7 @@ export class BookingUpdateDto {
|
|
|
30730
30730
|
toJSON(data) {
|
|
30731
30731
|
data = typeof data === 'object' ? data : {};
|
|
30732
30732
|
data["bookingId"] = this.bookingId;
|
|
30733
|
-
data["
|
|
30733
|
+
data["parcelKind"] = this.parcelKind;
|
|
30734
30734
|
data["transportKind"] = this.transportKind;
|
|
30735
30735
|
data["status"] = this.status;
|
|
30736
30736
|
data["fromLocationId"] = this.fromLocationId;
|
|
@@ -30792,7 +30792,7 @@ export class BookingItemRequestDto {
|
|
|
30792
30792
|
}
|
|
30793
30793
|
init(_data) {
|
|
30794
30794
|
if (_data) {
|
|
30795
|
-
this.
|
|
30795
|
+
this.parcelId = _data["parcelId"];
|
|
30796
30796
|
this.trackingId = _data["trackingId"];
|
|
30797
30797
|
this.comment = _data["comment"];
|
|
30798
30798
|
}
|
|
@@ -30805,7 +30805,7 @@ export class BookingItemRequestDto {
|
|
|
30805
30805
|
}
|
|
30806
30806
|
toJSON(data) {
|
|
30807
30807
|
data = typeof data === 'object' ? data : {};
|
|
30808
|
-
data["
|
|
30808
|
+
data["parcelId"] = this.parcelId;
|
|
30809
30809
|
data["trackingId"] = this.trackingId;
|
|
30810
30810
|
data["comment"] = this.comment;
|
|
30811
30811
|
return data;
|
|
@@ -30822,7 +30822,7 @@ export class BookingGeneralRequestDto {
|
|
|
30822
30822
|
}
|
|
30823
30823
|
init(_data) {
|
|
30824
30824
|
if (_data) {
|
|
30825
|
-
this.
|
|
30825
|
+
this.parcelKind = _data["parcelKind"];
|
|
30826
30826
|
this.transportKind = _data["transportKind"];
|
|
30827
30827
|
this.fromLocationId = _data["fromLocationId"];
|
|
30828
30828
|
this.toLocationId = _data["toLocationId"];
|
|
@@ -30838,7 +30838,7 @@ export class BookingGeneralRequestDto {
|
|
|
30838
30838
|
}
|
|
30839
30839
|
toJSON(data) {
|
|
30840
30840
|
data = typeof data === 'object' ? data : {};
|
|
30841
|
-
data["
|
|
30841
|
+
data["parcelKind"] = this.parcelKind;
|
|
30842
30842
|
data["transportKind"] = this.transportKind;
|
|
30843
30843
|
data["fromLocationId"] = this.fromLocationId;
|
|
30844
30844
|
data["toLocationId"] = this.toLocationId;
|
|
@@ -31035,7 +31035,7 @@ export class LocationSuggestionsItemDto {
|
|
|
31035
31035
|
}
|
|
31036
31036
|
init(_data) {
|
|
31037
31037
|
if (_data) {
|
|
31038
|
-
this.
|
|
31038
|
+
this.parcelId = _data["parcelId"];
|
|
31039
31039
|
}
|
|
31040
31040
|
}
|
|
31041
31041
|
static fromJS(data) {
|
|
@@ -31046,7 +31046,7 @@ export class LocationSuggestionsItemDto {
|
|
|
31046
31046
|
}
|
|
31047
31047
|
toJSON(data) {
|
|
31048
31048
|
data = typeof data === 'object' ? data : {};
|
|
31049
|
-
data["
|
|
31049
|
+
data["parcelId"] = this.parcelId;
|
|
31050
31050
|
return data;
|
|
31051
31051
|
}
|
|
31052
31052
|
}
|
|
@@ -31108,6 +31108,79 @@ export class MaterialUpdateDto {
|
|
|
31108
31108
|
return data;
|
|
31109
31109
|
}
|
|
31110
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
|
+
}
|
|
31111
31184
|
export class TrackingHistoryListDto {
|
|
31112
31185
|
constructor(data) {
|
|
31113
31186
|
if (data) {
|
|
@@ -31164,7 +31237,7 @@ export class TrackingHistoryDto {
|
|
|
31164
31237
|
this.trackingId = _data["trackingId"];
|
|
31165
31238
|
this.palletNumber = _data["palletNumber"];
|
|
31166
31239
|
this.parcelKind = _data["parcelKind"];
|
|
31167
|
-
this.
|
|
31240
|
+
this.parcelId = _data["parcelId"];
|
|
31168
31241
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
31169
31242
|
this.trackingEvents = [];
|
|
31170
31243
|
for (let item of _data["trackingEvents"])
|
|
@@ -31185,7 +31258,7 @@ export class TrackingHistoryDto {
|
|
|
31185
31258
|
data["trackingId"] = this.trackingId;
|
|
31186
31259
|
data["palletNumber"] = this.palletNumber;
|
|
31187
31260
|
data["parcelKind"] = this.parcelKind;
|
|
31188
|
-
data["
|
|
31261
|
+
data["parcelId"] = this.parcelId;
|
|
31189
31262
|
if (Array.isArray(this.trackingEvents)) {
|
|
31190
31263
|
data["trackingEvents"] = [];
|
|
31191
31264
|
for (let item of this.trackingEvents)
|
|
@@ -31248,10 +31321,10 @@ export class TrackingRequestListDto {
|
|
|
31248
31321
|
init(_data) {
|
|
31249
31322
|
if (_data) {
|
|
31250
31323
|
this.pageSize = _data["pageSize"];
|
|
31251
|
-
if (Array.isArray(_data["
|
|
31252
|
-
this.
|
|
31253
|
-
for (let item of _data["
|
|
31254
|
-
this.
|
|
31324
|
+
if (Array.isArray(_data["parcelIdFilter"])) {
|
|
31325
|
+
this.parcelIdFilter = [];
|
|
31326
|
+
for (let item of _data["parcelIdFilter"])
|
|
31327
|
+
this.parcelIdFilter.push(item);
|
|
31255
31328
|
}
|
|
31256
31329
|
if (Array.isArray(_data["parcelKindFilter"])) {
|
|
31257
31330
|
this.parcelKindFilter = [];
|
|
@@ -31286,10 +31359,10 @@ export class TrackingRequestListDto {
|
|
|
31286
31359
|
toJSON(data) {
|
|
31287
31360
|
data = typeof data === 'object' ? data : {};
|
|
31288
31361
|
data["pageSize"] = this.pageSize;
|
|
31289
|
-
if (Array.isArray(this.
|
|
31290
|
-
data["
|
|
31291
|
-
for (let item of this.
|
|
31292
|
-
data["
|
|
31362
|
+
if (Array.isArray(this.parcelIdFilter)) {
|
|
31363
|
+
data["parcelIdFilter"] = [];
|
|
31364
|
+
for (let item of this.parcelIdFilter)
|
|
31365
|
+
data["parcelIdFilter"].push(item);
|
|
31293
31366
|
}
|
|
31294
31367
|
if (Array.isArray(this.parcelKindFilter)) {
|
|
31295
31368
|
data["parcelKindFilter"] = [];
|
|
@@ -31316,7 +31389,7 @@ export class TrackingRequestListDto {
|
|
|
31316
31389
|
return data;
|
|
31317
31390
|
}
|
|
31318
31391
|
}
|
|
31319
|
-
export class
|
|
31392
|
+
export class TrackingParcelDto {
|
|
31320
31393
|
constructor(data) {
|
|
31321
31394
|
if (data) {
|
|
31322
31395
|
for (var property in data) {
|
|
@@ -31330,7 +31403,7 @@ export class TrackingWorkOrderDto {
|
|
|
31330
31403
|
}
|
|
31331
31404
|
init(_data) {
|
|
31332
31405
|
if (_data) {
|
|
31333
|
-
this.
|
|
31406
|
+
this.parcelId = _data["parcelId"];
|
|
31334
31407
|
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
|
|
31335
31408
|
if (Array.isArray(_data["trackingHistory"])) {
|
|
31336
31409
|
this.trackingHistory = [];
|
|
@@ -31342,13 +31415,13 @@ export class TrackingWorkOrderDto {
|
|
|
31342
31415
|
}
|
|
31343
31416
|
static fromJS(data) {
|
|
31344
31417
|
data = typeof data === 'object' ? data : {};
|
|
31345
|
-
let result = new
|
|
31418
|
+
let result = new TrackingParcelDto();
|
|
31346
31419
|
result.init(data);
|
|
31347
31420
|
return result;
|
|
31348
31421
|
}
|
|
31349
31422
|
toJSON(data) {
|
|
31350
31423
|
data = typeof data === 'object' ? data : {};
|
|
31351
|
-
data["
|
|
31424
|
+
data["parcelId"] = this.parcelId;
|
|
31352
31425
|
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
31353
31426
|
if (Array.isArray(this.trackingHistory)) {
|
|
31354
31427
|
data["trackingHistory"] = [];
|
|
@@ -31439,7 +31512,7 @@ export class TrackingHistoryUpdateDto {
|
|
|
31439
31512
|
}
|
|
31440
31513
|
init(_data) {
|
|
31441
31514
|
if (_data) {
|
|
31442
|
-
this.
|
|
31515
|
+
this.parcelId = _data["parcelId"];
|
|
31443
31516
|
}
|
|
31444
31517
|
}
|
|
31445
31518
|
static fromJS(data) {
|
|
@@ -31450,80 +31523,7 @@ export class TrackingHistoryUpdateDto {
|
|
|
31450
31523
|
}
|
|
31451
31524
|
toJSON(data) {
|
|
31452
31525
|
data = typeof data === 'object' ? data : {};
|
|
31453
|
-
data["
|
|
31454
|
-
return data;
|
|
31455
|
-
}
|
|
31456
|
-
}
|
|
31457
|
-
export class SearchWorkOrderDto {
|
|
31458
|
-
constructor(data) {
|
|
31459
|
-
if (data) {
|
|
31460
|
-
for (var property in data) {
|
|
31461
|
-
if (data.hasOwnProperty(property))
|
|
31462
|
-
this[property] = data[property];
|
|
31463
|
-
}
|
|
31464
|
-
}
|
|
31465
|
-
if (!data) {
|
|
31466
|
-
this.items = [];
|
|
31467
|
-
}
|
|
31468
|
-
}
|
|
31469
|
-
init(_data) {
|
|
31470
|
-
if (_data) {
|
|
31471
|
-
this.workOrderId = _data["workOrderId"];
|
|
31472
|
-
this.matchCriteria = _data["matchCriteria"];
|
|
31473
|
-
if (Array.isArray(_data["items"])) {
|
|
31474
|
-
this.items = [];
|
|
31475
|
-
for (let item of _data["items"])
|
|
31476
|
-
this.items.push(SearchWorkOrderItemDto.fromJS(item));
|
|
31477
|
-
}
|
|
31478
|
-
this.partName = _data["partName"];
|
|
31479
|
-
this.partNumber = _data["partNumber"];
|
|
31480
|
-
}
|
|
31481
|
-
}
|
|
31482
|
-
static fromJS(data) {
|
|
31483
|
-
data = typeof data === 'object' ? data : {};
|
|
31484
|
-
let result = new SearchWorkOrderDto();
|
|
31485
|
-
result.init(data);
|
|
31486
|
-
return result;
|
|
31487
|
-
}
|
|
31488
|
-
toJSON(data) {
|
|
31489
|
-
data = typeof data === 'object' ? data : {};
|
|
31490
|
-
data["workOrderId"] = this.workOrderId;
|
|
31491
|
-
data["matchCriteria"] = this.matchCriteria;
|
|
31492
|
-
if (Array.isArray(this.items)) {
|
|
31493
|
-
data["items"] = [];
|
|
31494
|
-
for (let item of this.items)
|
|
31495
|
-
data["items"].push(item.toJSON());
|
|
31496
|
-
}
|
|
31497
|
-
data["partName"] = this.partName;
|
|
31498
|
-
data["partNumber"] = this.partNumber;
|
|
31499
|
-
return data;
|
|
31500
|
-
}
|
|
31501
|
-
}
|
|
31502
|
-
export class SearchWorkOrderItemDto {
|
|
31503
|
-
constructor(data) {
|
|
31504
|
-
if (data) {
|
|
31505
|
-
for (var property in data) {
|
|
31506
|
-
if (data.hasOwnProperty(property))
|
|
31507
|
-
this[property] = data[property];
|
|
31508
|
-
}
|
|
31509
|
-
}
|
|
31510
|
-
}
|
|
31511
|
-
init(_data) {
|
|
31512
|
-
if (_data) {
|
|
31513
|
-
this.trackingId = _data["trackingId"];
|
|
31514
|
-
this.selected = _data["selected"];
|
|
31515
|
-
}
|
|
31516
|
-
}
|
|
31517
|
-
static fromJS(data) {
|
|
31518
|
-
data = typeof data === 'object' ? data : {};
|
|
31519
|
-
let result = new SearchWorkOrderItemDto();
|
|
31520
|
-
result.init(data);
|
|
31521
|
-
return result;
|
|
31522
|
-
}
|
|
31523
|
-
toJSON(data) {
|
|
31524
|
-
data = typeof data === 'object' ? data : {};
|
|
31525
|
-
data["trackingId"] = this.trackingId;
|
|
31526
|
-
data["selected"] = this.selected;
|
|
31526
|
+
data["parcelId"] = this.parcelId;
|
|
31527
31527
|
return data;
|
|
31528
31528
|
}
|
|
31529
31529
|
}
|