@ignos/api-client 20240819.0.10052 → 20240820.0.10068
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +90 -122
- package/lib/ignosportal-api.js +189 -409
- package/package.json +1 -1
- package/src/ignosportal-api.ts +273 -521
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) {
|
|
@@ -11884,166 +11884,6 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
11884
11884
|
}
|
|
11885
11885
|
return Promise.resolve(null);
|
|
11886
11886
|
}
|
|
11887
|
-
cancelBooking(bookingUpdate) {
|
|
11888
|
-
let url_ = this.baseUrl + "/move/booking/cancel";
|
|
11889
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
11890
|
-
const content_ = JSON.stringify(bookingUpdate);
|
|
11891
|
-
let options_ = {
|
|
11892
|
-
body: content_,
|
|
11893
|
-
method: "POST",
|
|
11894
|
-
headers: {
|
|
11895
|
-
"Content-Type": "application/json",
|
|
11896
|
-
"Accept": "application/json"
|
|
11897
|
-
}
|
|
11898
|
-
};
|
|
11899
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11900
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
11901
|
-
}).then((_response) => {
|
|
11902
|
-
return this.processCancelBooking(_response);
|
|
11903
|
-
});
|
|
11904
|
-
}
|
|
11905
|
-
processCancelBooking(response) {
|
|
11906
|
-
const status = response.status;
|
|
11907
|
-
let _headers = {};
|
|
11908
|
-
if (response.headers && response.headers.forEach) {
|
|
11909
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11910
|
-
}
|
|
11911
|
-
;
|
|
11912
|
-
if (status === 200) {
|
|
11913
|
-
return response.text().then((_responseText) => {
|
|
11914
|
-
let result200 = null;
|
|
11915
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11916
|
-
result200 = BookingDto.fromJS(resultData200);
|
|
11917
|
-
return result200;
|
|
11918
|
-
});
|
|
11919
|
-
}
|
|
11920
|
-
else if (status !== 200 && status !== 204) {
|
|
11921
|
-
return response.text().then((_responseText) => {
|
|
11922
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11923
|
-
});
|
|
11924
|
-
}
|
|
11925
|
-
return Promise.resolve(null);
|
|
11926
|
-
}
|
|
11927
|
-
revertBooking(bookingUpdate) {
|
|
11928
|
-
let url_ = this.baseUrl + "/move/booking/revert";
|
|
11929
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
11930
|
-
const content_ = JSON.stringify(bookingUpdate);
|
|
11931
|
-
let options_ = {
|
|
11932
|
-
body: content_,
|
|
11933
|
-
method: "POST",
|
|
11934
|
-
headers: {
|
|
11935
|
-
"Content-Type": "application/json",
|
|
11936
|
-
"Accept": "application/json"
|
|
11937
|
-
}
|
|
11938
|
-
};
|
|
11939
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11940
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
11941
|
-
}).then((_response) => {
|
|
11942
|
-
return this.processRevertBooking(_response);
|
|
11943
|
-
});
|
|
11944
|
-
}
|
|
11945
|
-
processRevertBooking(response) {
|
|
11946
|
-
const status = response.status;
|
|
11947
|
-
let _headers = {};
|
|
11948
|
-
if (response.headers && response.headers.forEach) {
|
|
11949
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11950
|
-
}
|
|
11951
|
-
;
|
|
11952
|
-
if (status === 200) {
|
|
11953
|
-
return response.text().then((_responseText) => {
|
|
11954
|
-
let result200 = null;
|
|
11955
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11956
|
-
result200 = BookingDto.fromJS(resultData200);
|
|
11957
|
-
return result200;
|
|
11958
|
-
});
|
|
11959
|
-
}
|
|
11960
|
-
else if (status !== 200 && status !== 204) {
|
|
11961
|
-
return response.text().then((_responseText) => {
|
|
11962
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11963
|
-
});
|
|
11964
|
-
}
|
|
11965
|
-
return Promise.resolve(null);
|
|
11966
|
-
}
|
|
11967
|
-
startDelivery(bookingUpdate) {
|
|
11968
|
-
let url_ = this.baseUrl + "/move/booking/startdelivery";
|
|
11969
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
11970
|
-
const content_ = JSON.stringify(bookingUpdate);
|
|
11971
|
-
let options_ = {
|
|
11972
|
-
body: content_,
|
|
11973
|
-
method: "POST",
|
|
11974
|
-
headers: {
|
|
11975
|
-
"Content-Type": "application/json",
|
|
11976
|
-
"Accept": "application/json"
|
|
11977
|
-
}
|
|
11978
|
-
};
|
|
11979
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11980
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
11981
|
-
}).then((_response) => {
|
|
11982
|
-
return this.processStartDelivery(_response);
|
|
11983
|
-
});
|
|
11984
|
-
}
|
|
11985
|
-
processStartDelivery(response) {
|
|
11986
|
-
const status = response.status;
|
|
11987
|
-
let _headers = {};
|
|
11988
|
-
if (response.headers && response.headers.forEach) {
|
|
11989
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11990
|
-
}
|
|
11991
|
-
;
|
|
11992
|
-
if (status === 200) {
|
|
11993
|
-
return response.text().then((_responseText) => {
|
|
11994
|
-
let result200 = null;
|
|
11995
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11996
|
-
result200 = BookingDto.fromJS(resultData200);
|
|
11997
|
-
return result200;
|
|
11998
|
-
});
|
|
11999
|
-
}
|
|
12000
|
-
else if (status !== 200 && status !== 204) {
|
|
12001
|
-
return response.text().then((_responseText) => {
|
|
12002
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12003
|
-
});
|
|
12004
|
-
}
|
|
12005
|
-
return Promise.resolve(null);
|
|
12006
|
-
}
|
|
12007
|
-
finishDelivery(bookingUpdate) {
|
|
12008
|
-
let url_ = this.baseUrl + "/move/booking/finishdelivery";
|
|
12009
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
12010
|
-
const content_ = JSON.stringify(bookingUpdate);
|
|
12011
|
-
let options_ = {
|
|
12012
|
-
body: content_,
|
|
12013
|
-
method: "POST",
|
|
12014
|
-
headers: {
|
|
12015
|
-
"Content-Type": "application/json",
|
|
12016
|
-
"Accept": "application/json"
|
|
12017
|
-
}
|
|
12018
|
-
};
|
|
12019
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12020
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
12021
|
-
}).then((_response) => {
|
|
12022
|
-
return this.processFinishDelivery(_response);
|
|
12023
|
-
});
|
|
12024
|
-
}
|
|
12025
|
-
processFinishDelivery(response) {
|
|
12026
|
-
const status = response.status;
|
|
12027
|
-
let _headers = {};
|
|
12028
|
-
if (response.headers && response.headers.forEach) {
|
|
12029
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12030
|
-
}
|
|
12031
|
-
;
|
|
12032
|
-
if (status === 200) {
|
|
12033
|
-
return response.text().then((_responseText) => {
|
|
12034
|
-
let result200 = null;
|
|
12035
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12036
|
-
result200 = BookingDto.fromJS(resultData200);
|
|
12037
|
-
return result200;
|
|
12038
|
-
});
|
|
12039
|
-
}
|
|
12040
|
-
else if (status !== 200 && status !== 204) {
|
|
12041
|
-
return response.text().then((_responseText) => {
|
|
12042
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12043
|
-
});
|
|
12044
|
-
}
|
|
12045
|
-
return Promise.resolve(null);
|
|
12046
|
-
}
|
|
12047
11887
|
}
|
|
12048
11888
|
export class MoveLocationsClient extends AuthorizedApiBase {
|
|
12049
11889
|
constructor(configuration, baseUrl, http) {
|
|
@@ -12345,6 +12185,59 @@ export class MoveMaterialsClient extends AuthorizedApiBase {
|
|
|
12345
12185
|
return Promise.resolve(null);
|
|
12346
12186
|
}
|
|
12347
12187
|
}
|
|
12188
|
+
export class MoveParcelsClient extends AuthorizedApiBase {
|
|
12189
|
+
constructor(configuration, baseUrl, http) {
|
|
12190
|
+
super(configuration);
|
|
12191
|
+
this.jsonParseReviver = undefined;
|
|
12192
|
+
this.http = http ? http : window;
|
|
12193
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
12194
|
+
}
|
|
12195
|
+
searchParcels(input, pageSize) {
|
|
12196
|
+
let url_ = this.baseUrl + "/move/parcel/search?";
|
|
12197
|
+
if (input !== undefined && input !== null)
|
|
12198
|
+
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
12199
|
+
if (pageSize !== undefined && pageSize !== null)
|
|
12200
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
12201
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12202
|
+
let options_ = {
|
|
12203
|
+
method: "GET",
|
|
12204
|
+
headers: {
|
|
12205
|
+
"Accept": "application/json"
|
|
12206
|
+
}
|
|
12207
|
+
};
|
|
12208
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12209
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12210
|
+
}).then((_response) => {
|
|
12211
|
+
return this.processSearchParcels(_response);
|
|
12212
|
+
});
|
|
12213
|
+
}
|
|
12214
|
+
processSearchParcels(response) {
|
|
12215
|
+
const status = response.status;
|
|
12216
|
+
let _headers = {};
|
|
12217
|
+
if (response.headers && response.headers.forEach) {
|
|
12218
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12219
|
+
}
|
|
12220
|
+
;
|
|
12221
|
+
if (status === 200) {
|
|
12222
|
+
return response.text().then((_responseText) => {
|
|
12223
|
+
let result200 = null;
|
|
12224
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12225
|
+
if (Array.isArray(resultData200)) {
|
|
12226
|
+
result200 = [];
|
|
12227
|
+
for (let item of resultData200)
|
|
12228
|
+
result200.push(SearchParcelDto.fromJS(item));
|
|
12229
|
+
}
|
|
12230
|
+
return result200;
|
|
12231
|
+
});
|
|
12232
|
+
}
|
|
12233
|
+
else if (status !== 200 && status !== 204) {
|
|
12234
|
+
return response.text().then((_responseText) => {
|
|
12235
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12236
|
+
});
|
|
12237
|
+
}
|
|
12238
|
+
return Promise.resolve(null);
|
|
12239
|
+
}
|
|
12240
|
+
}
|
|
12348
12241
|
export class MoveTrackingClient extends AuthorizedApiBase {
|
|
12349
12242
|
constructor(configuration, baseUrl, http) {
|
|
12350
12243
|
super(configuration);
|
|
@@ -12436,11 +12329,11 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12436
12329
|
}
|
|
12437
12330
|
return Promise.resolve(null);
|
|
12438
12331
|
}
|
|
12439
|
-
|
|
12440
|
-
let url_ = this.baseUrl + "/move/tracking/
|
|
12441
|
-
if (
|
|
12442
|
-
throw new Error("The parameter '
|
|
12443
|
-
url_ = url_.replace("{
|
|
12332
|
+
getParcelTrackingHistory(parcelId, includeActiveBookings) {
|
|
12333
|
+
let url_ = this.baseUrl + "/move/tracking/parcel/{parcelId}?";
|
|
12334
|
+
if (parcelId === undefined || parcelId === null)
|
|
12335
|
+
throw new Error("The parameter 'parcelId' must be defined.");
|
|
12336
|
+
url_ = url_.replace("{parcelId}", encodeURIComponent("" + parcelId));
|
|
12444
12337
|
if (includeActiveBookings === null)
|
|
12445
12338
|
throw new Error("The parameter 'includeActiveBookings' cannot be null.");
|
|
12446
12339
|
else if (includeActiveBookings !== undefined)
|
|
@@ -12455,10 +12348,10 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12455
12348
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12456
12349
|
return this.http.fetch(url_, transformedOptions_);
|
|
12457
12350
|
}).then((_response) => {
|
|
12458
|
-
return this.
|
|
12351
|
+
return this.processGetParcelTrackingHistory(_response);
|
|
12459
12352
|
});
|
|
12460
12353
|
}
|
|
12461
|
-
|
|
12354
|
+
processGetParcelTrackingHistory(response) {
|
|
12462
12355
|
const status = response.status;
|
|
12463
12356
|
let _headers = {};
|
|
12464
12357
|
if (response.headers && response.headers.forEach) {
|
|
@@ -12469,7 +12362,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12469
12362
|
return response.text().then((_responseText) => {
|
|
12470
12363
|
let result200 = null;
|
|
12471
12364
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12472
|
-
result200 =
|
|
12365
|
+
result200 = TrackingParcelDto.fromJS(resultData200);
|
|
12473
12366
|
return result200;
|
|
12474
12367
|
});
|
|
12475
12368
|
}
|
|
@@ -12480,8 +12373,8 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12480
12373
|
}
|
|
12481
12374
|
return Promise.resolve(null);
|
|
12482
12375
|
}
|
|
12483
|
-
|
|
12484
|
-
let url_ = this.baseUrl + "/move/tracking/
|
|
12376
|
+
listParcelTrackingHistory(trackingParcelList) {
|
|
12377
|
+
let url_ = this.baseUrl + "/move/tracking/parcel/list";
|
|
12485
12378
|
url_ = url_.replace(/[?&]$/, "");
|
|
12486
12379
|
const content_ = JSON.stringify(trackingParcelList);
|
|
12487
12380
|
let options_ = {
|
|
@@ -12495,10 +12388,10 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12495
12388
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12496
12389
|
return this.http.fetch(url_, transformedOptions_);
|
|
12497
12390
|
}).then((_response) => {
|
|
12498
|
-
return this.
|
|
12391
|
+
return this.processListParcelTrackingHistory(_response);
|
|
12499
12392
|
});
|
|
12500
12393
|
}
|
|
12501
|
-
|
|
12394
|
+
processListParcelTrackingHistory(response) {
|
|
12502
12395
|
const status = response.status;
|
|
12503
12396
|
let _headers = {};
|
|
12504
12397
|
if (response.headers && response.headers.forEach) {
|
|
@@ -12512,7 +12405,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12512
12405
|
if (Array.isArray(resultData200)) {
|
|
12513
12406
|
result200 = [];
|
|
12514
12407
|
for (let item of resultData200)
|
|
12515
|
-
result200.push(
|
|
12408
|
+
result200.push(TrackingParcelDto.fromJS(item));
|
|
12516
12409
|
}
|
|
12517
12410
|
return result200;
|
|
12518
12411
|
});
|
|
@@ -12688,59 +12581,6 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12688
12581
|
return Promise.resolve(null);
|
|
12689
12582
|
}
|
|
12690
12583
|
}
|
|
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
12584
|
export class MesClient extends AuthorizedApiBase {
|
|
12745
12585
|
constructor(configuration, baseUrl, http) {
|
|
12746
12586
|
super(configuration);
|
|
@@ -30452,7 +30292,7 @@ export class BookingDto {
|
|
|
30452
30292
|
init(_data) {
|
|
30453
30293
|
if (_data) {
|
|
30454
30294
|
this.bookingId = _data["bookingId"];
|
|
30455
|
-
this.
|
|
30295
|
+
this.parcelKind = _data["parcelKind"];
|
|
30456
30296
|
this.transportKind = _data["transportKind"];
|
|
30457
30297
|
this.status = _data["status"];
|
|
30458
30298
|
if (Array.isArray(_data["items"])) {
|
|
@@ -30481,7 +30321,7 @@ export class BookingDto {
|
|
|
30481
30321
|
toJSON(data) {
|
|
30482
30322
|
data = typeof data === 'object' ? data : {};
|
|
30483
30323
|
data["bookingId"] = this.bookingId;
|
|
30484
|
-
data["
|
|
30324
|
+
data["parcelKind"] = this.parcelKind;
|
|
30485
30325
|
data["transportKind"] = this.transportKind;
|
|
30486
30326
|
data["status"] = this.status;
|
|
30487
30327
|
if (Array.isArray(this.items)) {
|
|
@@ -30515,7 +30355,7 @@ export class BookingItemDto {
|
|
|
30515
30355
|
if (_data) {
|
|
30516
30356
|
this.trackingId = _data["trackingId"];
|
|
30517
30357
|
this.palletNumber = _data["palletNumber"];
|
|
30518
|
-
this.
|
|
30358
|
+
this.parcelId = _data["parcelId"];
|
|
30519
30359
|
this.parcelKind = _data["parcelKind"];
|
|
30520
30360
|
this.material = _data["material"];
|
|
30521
30361
|
this.comment = _data["comment"];
|
|
@@ -30533,7 +30373,7 @@ export class BookingItemDto {
|
|
|
30533
30373
|
data = typeof data === 'object' ? data : {};
|
|
30534
30374
|
data["trackingId"] = this.trackingId;
|
|
30535
30375
|
data["palletNumber"] = this.palletNumber;
|
|
30536
|
-
data["
|
|
30376
|
+
data["parcelId"] = this.parcelId;
|
|
30537
30377
|
data["parcelKind"] = this.parcelKind;
|
|
30538
30378
|
data["material"] = this.material;
|
|
30539
30379
|
data["comment"] = this.comment;
|
|
@@ -30590,10 +30430,10 @@ export class BookingRequestListDto {
|
|
|
30590
30430
|
init(_data) {
|
|
30591
30431
|
if (_data) {
|
|
30592
30432
|
this.pageSize = _data["pageSize"];
|
|
30593
|
-
if (Array.isArray(_data["
|
|
30594
|
-
this.
|
|
30595
|
-
for (let item of _data["
|
|
30596
|
-
this.
|
|
30433
|
+
if (Array.isArray(_data["parcelIdFilter"])) {
|
|
30434
|
+
this.parcelIdFilter = [];
|
|
30435
|
+
for (let item of _data["parcelIdFilter"])
|
|
30436
|
+
this.parcelIdFilter.push(item);
|
|
30597
30437
|
}
|
|
30598
30438
|
if (Array.isArray(_data["materialFilter"])) {
|
|
30599
30439
|
this.materialFilter = [];
|
|
@@ -30625,10 +30465,10 @@ export class BookingRequestListDto {
|
|
|
30625
30465
|
for (let item of _data["bookingStatusFilter"])
|
|
30626
30466
|
this.bookingStatusFilter.push(item);
|
|
30627
30467
|
}
|
|
30628
|
-
if (Array.isArray(_data["
|
|
30629
|
-
this.
|
|
30630
|
-
for (let item of _data["
|
|
30631
|
-
this.
|
|
30468
|
+
if (Array.isArray(_data["parcelKindFilter"])) {
|
|
30469
|
+
this.parcelKindFilter = [];
|
|
30470
|
+
for (let item of _data["parcelKindFilter"])
|
|
30471
|
+
this.parcelKindFilter.push(item);
|
|
30632
30472
|
}
|
|
30633
30473
|
if (Array.isArray(_data["transportKindFilter"])) {
|
|
30634
30474
|
this.transportKindFilter = [];
|
|
@@ -30650,10 +30490,10 @@ export class BookingRequestListDto {
|
|
|
30650
30490
|
toJSON(data) {
|
|
30651
30491
|
data = typeof data === 'object' ? data : {};
|
|
30652
30492
|
data["pageSize"] = this.pageSize;
|
|
30653
|
-
if (Array.isArray(this.
|
|
30654
|
-
data["
|
|
30655
|
-
for (let item of this.
|
|
30656
|
-
data["
|
|
30493
|
+
if (Array.isArray(this.parcelIdFilter)) {
|
|
30494
|
+
data["parcelIdFilter"] = [];
|
|
30495
|
+
for (let item of this.parcelIdFilter)
|
|
30496
|
+
data["parcelIdFilter"].push(item);
|
|
30657
30497
|
}
|
|
30658
30498
|
if (Array.isArray(this.materialFilter)) {
|
|
30659
30499
|
data["materialFilter"] = [];
|
|
@@ -30685,10 +30525,10 @@ export class BookingRequestListDto {
|
|
|
30685
30525
|
for (let item of this.bookingStatusFilter)
|
|
30686
30526
|
data["bookingStatusFilter"].push(item);
|
|
30687
30527
|
}
|
|
30688
|
-
if (Array.isArray(this.
|
|
30689
|
-
data["
|
|
30690
|
-
for (let item of this.
|
|
30691
|
-
data["
|
|
30528
|
+
if (Array.isArray(this.parcelKindFilter)) {
|
|
30529
|
+
data["parcelKindFilter"] = [];
|
|
30530
|
+
for (let item of this.parcelKindFilter)
|
|
30531
|
+
data["parcelKindFilter"].push(item);
|
|
30692
30532
|
}
|
|
30693
30533
|
if (Array.isArray(this.transportKindFilter)) {
|
|
30694
30534
|
data["transportKindFilter"] = [];
|
|
@@ -30714,7 +30554,7 @@ export class BookingUpdateDto {
|
|
|
30714
30554
|
init(_data) {
|
|
30715
30555
|
if (_data) {
|
|
30716
30556
|
this.bookingId = _data["bookingId"];
|
|
30717
|
-
this.
|
|
30557
|
+
this.parcelKind = _data["parcelKind"];
|
|
30718
30558
|
this.transportKind = _data["transportKind"];
|
|
30719
30559
|
this.status = _data["status"];
|
|
30720
30560
|
this.fromLocationId = _data["fromLocationId"];
|
|
@@ -30730,7 +30570,7 @@ export class BookingUpdateDto {
|
|
|
30730
30570
|
toJSON(data) {
|
|
30731
30571
|
data = typeof data === 'object' ? data : {};
|
|
30732
30572
|
data["bookingId"] = this.bookingId;
|
|
30733
|
-
data["
|
|
30573
|
+
data["parcelKind"] = this.parcelKind;
|
|
30734
30574
|
data["transportKind"] = this.transportKind;
|
|
30735
30575
|
data["status"] = this.status;
|
|
30736
30576
|
data["fromLocationId"] = this.fromLocationId;
|
|
@@ -30792,7 +30632,7 @@ export class BookingItemRequestDto {
|
|
|
30792
30632
|
}
|
|
30793
30633
|
init(_data) {
|
|
30794
30634
|
if (_data) {
|
|
30795
|
-
this.
|
|
30635
|
+
this.parcelId = _data["parcelId"];
|
|
30796
30636
|
this.trackingId = _data["trackingId"];
|
|
30797
30637
|
this.comment = _data["comment"];
|
|
30798
30638
|
}
|
|
@@ -30805,7 +30645,7 @@ export class BookingItemRequestDto {
|
|
|
30805
30645
|
}
|
|
30806
30646
|
toJSON(data) {
|
|
30807
30647
|
data = typeof data === 'object' ? data : {};
|
|
30808
|
-
data["
|
|
30648
|
+
data["parcelId"] = this.parcelId;
|
|
30809
30649
|
data["trackingId"] = this.trackingId;
|
|
30810
30650
|
data["comment"] = this.comment;
|
|
30811
30651
|
return data;
|
|
@@ -30822,7 +30662,7 @@ export class BookingGeneralRequestDto {
|
|
|
30822
30662
|
}
|
|
30823
30663
|
init(_data) {
|
|
30824
30664
|
if (_data) {
|
|
30825
|
-
this.
|
|
30665
|
+
this.parcelKind = _data["parcelKind"];
|
|
30826
30666
|
this.transportKind = _data["transportKind"];
|
|
30827
30667
|
this.fromLocationId = _data["fromLocationId"];
|
|
30828
30668
|
this.toLocationId = _data["toLocationId"];
|
|
@@ -30838,7 +30678,7 @@ export class BookingGeneralRequestDto {
|
|
|
30838
30678
|
}
|
|
30839
30679
|
toJSON(data) {
|
|
30840
30680
|
data = typeof data === 'object' ? data : {};
|
|
30841
|
-
data["
|
|
30681
|
+
data["parcelKind"] = this.parcelKind;
|
|
30842
30682
|
data["transportKind"] = this.transportKind;
|
|
30843
30683
|
data["fromLocationId"] = this.fromLocationId;
|
|
30844
30684
|
data["toLocationId"] = this.toLocationId;
|
|
@@ -30915,7 +30755,7 @@ export class BookingDeliveryExceptionDto {
|
|
|
30915
30755
|
return data;
|
|
30916
30756
|
}
|
|
30917
30757
|
}
|
|
30918
|
-
export class
|
|
30758
|
+
export class LocationSuggestionsDto {
|
|
30919
30759
|
constructor(data) {
|
|
30920
30760
|
if (data) {
|
|
30921
30761
|
for (var property in data) {
|
|
@@ -30923,25 +30763,46 @@ export class BookingUpdateStatusDto {
|
|
|
30923
30763
|
this[property] = data[property];
|
|
30924
30764
|
}
|
|
30925
30765
|
}
|
|
30766
|
+
if (!data) {
|
|
30767
|
+
this.items = [];
|
|
30768
|
+
}
|
|
30926
30769
|
}
|
|
30927
30770
|
init(_data) {
|
|
30928
30771
|
if (_data) {
|
|
30929
|
-
|
|
30772
|
+
if (Array.isArray(_data["items"])) {
|
|
30773
|
+
this.items = [];
|
|
30774
|
+
for (let item of _data["items"])
|
|
30775
|
+
this.items.push(LocationSuggestionsItemDto.fromJS(item));
|
|
30776
|
+
}
|
|
30777
|
+
if (Array.isArray(_data["locationKindFilter"])) {
|
|
30778
|
+
this.locationKindFilter = [];
|
|
30779
|
+
for (let item of _data["locationKindFilter"])
|
|
30780
|
+
this.locationKindFilter.push(item);
|
|
30781
|
+
}
|
|
30930
30782
|
}
|
|
30931
30783
|
}
|
|
30932
30784
|
static fromJS(data) {
|
|
30933
30785
|
data = typeof data === 'object' ? data : {};
|
|
30934
|
-
let result = new
|
|
30786
|
+
let result = new LocationSuggestionsDto();
|
|
30935
30787
|
result.init(data);
|
|
30936
30788
|
return result;
|
|
30937
30789
|
}
|
|
30938
30790
|
toJSON(data) {
|
|
30939
30791
|
data = typeof data === 'object' ? data : {};
|
|
30940
|
-
|
|
30792
|
+
if (Array.isArray(this.items)) {
|
|
30793
|
+
data["items"] = [];
|
|
30794
|
+
for (let item of this.items)
|
|
30795
|
+
data["items"].push(item.toJSON());
|
|
30796
|
+
}
|
|
30797
|
+
if (Array.isArray(this.locationKindFilter)) {
|
|
30798
|
+
data["locationKindFilter"] = [];
|
|
30799
|
+
for (let item of this.locationKindFilter)
|
|
30800
|
+
data["locationKindFilter"].push(item);
|
|
30801
|
+
}
|
|
30941
30802
|
return data;
|
|
30942
30803
|
}
|
|
30943
30804
|
}
|
|
30944
|
-
export class
|
|
30805
|
+
export class LocationSuggestionsItemDto {
|
|
30945
30806
|
constructor(data) {
|
|
30946
30807
|
if (data) {
|
|
30947
30808
|
for (var property in data) {
|
|
@@ -30952,32 +30813,22 @@ export class BookingDeliveryUpdateDto {
|
|
|
30952
30813
|
}
|
|
30953
30814
|
init(_data) {
|
|
30954
30815
|
if (_data) {
|
|
30955
|
-
this.
|
|
30956
|
-
if (Array.isArray(_data["deliveryExceptions"])) {
|
|
30957
|
-
this.deliveryExceptions = [];
|
|
30958
|
-
for (let item of _data["deliveryExceptions"])
|
|
30959
|
-
this.deliveryExceptions.push(BookingDeliveryExceptionDto.fromJS(item));
|
|
30960
|
-
}
|
|
30816
|
+
this.parcelId = _data["parcelId"];
|
|
30961
30817
|
}
|
|
30962
30818
|
}
|
|
30963
30819
|
static fromJS(data) {
|
|
30964
30820
|
data = typeof data === 'object' ? data : {};
|
|
30965
|
-
let result = new
|
|
30821
|
+
let result = new LocationSuggestionsItemDto();
|
|
30966
30822
|
result.init(data);
|
|
30967
30823
|
return result;
|
|
30968
30824
|
}
|
|
30969
30825
|
toJSON(data) {
|
|
30970
30826
|
data = typeof data === 'object' ? data : {};
|
|
30971
|
-
data["
|
|
30972
|
-
if (Array.isArray(this.deliveryExceptions)) {
|
|
30973
|
-
data["deliveryExceptions"] = [];
|
|
30974
|
-
for (let item of this.deliveryExceptions)
|
|
30975
|
-
data["deliveryExceptions"].push(item.toJSON());
|
|
30976
|
-
}
|
|
30827
|
+
data["parcelId"] = this.parcelId;
|
|
30977
30828
|
return data;
|
|
30978
30829
|
}
|
|
30979
30830
|
}
|
|
30980
|
-
export class
|
|
30831
|
+
export class MaterialDesciptionDto {
|
|
30981
30832
|
constructor(data) {
|
|
30982
30833
|
if (data) {
|
|
30983
30834
|
for (var property in data) {
|
|
@@ -30985,46 +30836,29 @@ export class LocationSuggestionsDto {
|
|
|
30985
30836
|
this[property] = data[property];
|
|
30986
30837
|
}
|
|
30987
30838
|
}
|
|
30988
|
-
if (!data) {
|
|
30989
|
-
this.items = [];
|
|
30990
|
-
}
|
|
30991
30839
|
}
|
|
30992
30840
|
init(_data) {
|
|
30993
30841
|
if (_data) {
|
|
30994
|
-
|
|
30995
|
-
|
|
30996
|
-
|
|
30997
|
-
this.items.push(LocationSuggestionsItemDto.fromJS(item));
|
|
30998
|
-
}
|
|
30999
|
-
if (Array.isArray(_data["locationKindFilter"])) {
|
|
31000
|
-
this.locationKindFilter = [];
|
|
31001
|
-
for (let item of _data["locationKindFilter"])
|
|
31002
|
-
this.locationKindFilter.push(item);
|
|
31003
|
-
}
|
|
30842
|
+
this.materialId = _data["materialId"];
|
|
30843
|
+
this.materialName = _data["materialName"];
|
|
30844
|
+
this.covered = _data["covered"];
|
|
31004
30845
|
}
|
|
31005
30846
|
}
|
|
31006
30847
|
static fromJS(data) {
|
|
31007
30848
|
data = typeof data === 'object' ? data : {};
|
|
31008
|
-
let result = new
|
|
30849
|
+
let result = new MaterialDesciptionDto();
|
|
31009
30850
|
result.init(data);
|
|
31010
30851
|
return result;
|
|
31011
30852
|
}
|
|
31012
30853
|
toJSON(data) {
|
|
31013
30854
|
data = typeof data === 'object' ? data : {};
|
|
31014
|
-
|
|
31015
|
-
|
|
31016
|
-
|
|
31017
|
-
data["items"].push(item.toJSON());
|
|
31018
|
-
}
|
|
31019
|
-
if (Array.isArray(this.locationKindFilter)) {
|
|
31020
|
-
data["locationKindFilter"] = [];
|
|
31021
|
-
for (let item of this.locationKindFilter)
|
|
31022
|
-
data["locationKindFilter"].push(item);
|
|
31023
|
-
}
|
|
30855
|
+
data["materialId"] = this.materialId;
|
|
30856
|
+
data["materialName"] = this.materialName;
|
|
30857
|
+
data["covered"] = this.covered;
|
|
31024
30858
|
return data;
|
|
31025
30859
|
}
|
|
31026
30860
|
}
|
|
31027
|
-
export class
|
|
30861
|
+
export class MaterialUpdateDto {
|
|
31028
30862
|
constructor(data) {
|
|
31029
30863
|
if (data) {
|
|
31030
30864
|
for (var property in data) {
|
|
@@ -31035,22 +30869,24 @@ export class LocationSuggestionsItemDto {
|
|
|
31035
30869
|
}
|
|
31036
30870
|
init(_data) {
|
|
31037
30871
|
if (_data) {
|
|
31038
|
-
this.
|
|
30872
|
+
this.materialName = _data["materialName"];
|
|
30873
|
+
this.covered = _data["covered"];
|
|
31039
30874
|
}
|
|
31040
30875
|
}
|
|
31041
30876
|
static fromJS(data) {
|
|
31042
30877
|
data = typeof data === 'object' ? data : {};
|
|
31043
|
-
let result = new
|
|
30878
|
+
let result = new MaterialUpdateDto();
|
|
31044
30879
|
result.init(data);
|
|
31045
30880
|
return result;
|
|
31046
30881
|
}
|
|
31047
30882
|
toJSON(data) {
|
|
31048
30883
|
data = typeof data === 'object' ? data : {};
|
|
31049
|
-
data["
|
|
30884
|
+
data["materialName"] = this.materialName;
|
|
30885
|
+
data["covered"] = this.covered;
|
|
31050
30886
|
return data;
|
|
31051
30887
|
}
|
|
31052
30888
|
}
|
|
31053
|
-
export class
|
|
30889
|
+
export class SearchParcelDto {
|
|
31054
30890
|
constructor(data) {
|
|
31055
30891
|
if (data) {
|
|
31056
30892
|
for (var property in data) {
|
|
@@ -31058,29 +30894,44 @@ export class MaterialDesciptionDto {
|
|
|
31058
30894
|
this[property] = data[property];
|
|
31059
30895
|
}
|
|
31060
30896
|
}
|
|
30897
|
+
if (!data) {
|
|
30898
|
+
this.items = [];
|
|
30899
|
+
}
|
|
31061
30900
|
}
|
|
31062
30901
|
init(_data) {
|
|
31063
30902
|
if (_data) {
|
|
31064
|
-
this.
|
|
31065
|
-
this.
|
|
31066
|
-
|
|
30903
|
+
this.parcelId = _data["parcelId"];
|
|
30904
|
+
this.matchCriteria = _data["matchCriteria"];
|
|
30905
|
+
if (Array.isArray(_data["items"])) {
|
|
30906
|
+
this.items = [];
|
|
30907
|
+
for (let item of _data["items"])
|
|
30908
|
+
this.items.push(SearchParcelItemDto.fromJS(item));
|
|
30909
|
+
}
|
|
30910
|
+
this.partName = _data["partName"];
|
|
30911
|
+
this.partNumber = _data["partNumber"];
|
|
31067
30912
|
}
|
|
31068
30913
|
}
|
|
31069
30914
|
static fromJS(data) {
|
|
31070
30915
|
data = typeof data === 'object' ? data : {};
|
|
31071
|
-
let result = new
|
|
30916
|
+
let result = new SearchParcelDto();
|
|
31072
30917
|
result.init(data);
|
|
31073
30918
|
return result;
|
|
31074
30919
|
}
|
|
31075
30920
|
toJSON(data) {
|
|
31076
30921
|
data = typeof data === 'object' ? data : {};
|
|
31077
|
-
data["
|
|
31078
|
-
data["
|
|
31079
|
-
|
|
30922
|
+
data["parcelId"] = this.parcelId;
|
|
30923
|
+
data["matchCriteria"] = this.matchCriteria;
|
|
30924
|
+
if (Array.isArray(this.items)) {
|
|
30925
|
+
data["items"] = [];
|
|
30926
|
+
for (let item of this.items)
|
|
30927
|
+
data["items"].push(item.toJSON());
|
|
30928
|
+
}
|
|
30929
|
+
data["partName"] = this.partName;
|
|
30930
|
+
data["partNumber"] = this.partNumber;
|
|
31080
30931
|
return data;
|
|
31081
30932
|
}
|
|
31082
30933
|
}
|
|
31083
|
-
export class
|
|
30934
|
+
export class SearchParcelItemDto {
|
|
31084
30935
|
constructor(data) {
|
|
31085
30936
|
if (data) {
|
|
31086
30937
|
for (var property in data) {
|
|
@@ -31091,20 +30942,20 @@ export class MaterialUpdateDto {
|
|
|
31091
30942
|
}
|
|
31092
30943
|
init(_data) {
|
|
31093
30944
|
if (_data) {
|
|
31094
|
-
this.
|
|
31095
|
-
this.
|
|
30945
|
+
this.trackingId = _data["trackingId"];
|
|
30946
|
+
this.selected = _data["selected"];
|
|
31096
30947
|
}
|
|
31097
30948
|
}
|
|
31098
30949
|
static fromJS(data) {
|
|
31099
30950
|
data = typeof data === 'object' ? data : {};
|
|
31100
|
-
let result = new
|
|
30951
|
+
let result = new SearchParcelItemDto();
|
|
31101
30952
|
result.init(data);
|
|
31102
30953
|
return result;
|
|
31103
30954
|
}
|
|
31104
30955
|
toJSON(data) {
|
|
31105
30956
|
data = typeof data === 'object' ? data : {};
|
|
31106
|
-
data["
|
|
31107
|
-
data["
|
|
30957
|
+
data["trackingId"] = this.trackingId;
|
|
30958
|
+
data["selected"] = this.selected;
|
|
31108
30959
|
return data;
|
|
31109
30960
|
}
|
|
31110
30961
|
}
|
|
@@ -31164,7 +31015,8 @@ export class TrackingHistoryDto {
|
|
|
31164
31015
|
this.trackingId = _data["trackingId"];
|
|
31165
31016
|
this.palletNumber = _data["palletNumber"];
|
|
31166
31017
|
this.parcelKind = _data["parcelKind"];
|
|
31167
|
-
this.
|
|
31018
|
+
this.parcelId = _data["parcelId"];
|
|
31019
|
+
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
|
|
31168
31020
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
31169
31021
|
this.trackingEvents = [];
|
|
31170
31022
|
for (let item of _data["trackingEvents"])
|
|
@@ -31185,7 +31037,8 @@ export class TrackingHistoryDto {
|
|
|
31185
31037
|
data["trackingId"] = this.trackingId;
|
|
31186
31038
|
data["palletNumber"] = this.palletNumber;
|
|
31187
31039
|
data["parcelKind"] = this.parcelKind;
|
|
31188
|
-
data["
|
|
31040
|
+
data["parcelId"] = this.parcelId;
|
|
31041
|
+
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
|
|
31189
31042
|
if (Array.isArray(this.trackingEvents)) {
|
|
31190
31043
|
data["trackingEvents"] = [];
|
|
31191
31044
|
for (let item of this.trackingEvents)
|
|
@@ -31248,10 +31101,10 @@ export class TrackingRequestListDto {
|
|
|
31248
31101
|
init(_data) {
|
|
31249
31102
|
if (_data) {
|
|
31250
31103
|
this.pageSize = _data["pageSize"];
|
|
31251
|
-
if (Array.isArray(_data["
|
|
31252
|
-
this.
|
|
31253
|
-
for (let item of _data["
|
|
31254
|
-
this.
|
|
31104
|
+
if (Array.isArray(_data["parcelIdFilter"])) {
|
|
31105
|
+
this.parcelIdFilter = [];
|
|
31106
|
+
for (let item of _data["parcelIdFilter"])
|
|
31107
|
+
this.parcelIdFilter.push(item);
|
|
31255
31108
|
}
|
|
31256
31109
|
if (Array.isArray(_data["parcelKindFilter"])) {
|
|
31257
31110
|
this.parcelKindFilter = [];
|
|
@@ -31286,10 +31139,10 @@ export class TrackingRequestListDto {
|
|
|
31286
31139
|
toJSON(data) {
|
|
31287
31140
|
data = typeof data === 'object' ? data : {};
|
|
31288
31141
|
data["pageSize"] = this.pageSize;
|
|
31289
|
-
if (Array.isArray(this.
|
|
31290
|
-
data["
|
|
31291
|
-
for (let item of this.
|
|
31292
|
-
data["
|
|
31142
|
+
if (Array.isArray(this.parcelIdFilter)) {
|
|
31143
|
+
data["parcelIdFilter"] = [];
|
|
31144
|
+
for (let item of this.parcelIdFilter)
|
|
31145
|
+
data["parcelIdFilter"].push(item);
|
|
31293
31146
|
}
|
|
31294
31147
|
if (Array.isArray(this.parcelKindFilter)) {
|
|
31295
31148
|
data["parcelKindFilter"] = [];
|
|
@@ -31316,7 +31169,7 @@ export class TrackingRequestListDto {
|
|
|
31316
31169
|
return data;
|
|
31317
31170
|
}
|
|
31318
31171
|
}
|
|
31319
|
-
export class
|
|
31172
|
+
export class TrackingParcelDto {
|
|
31320
31173
|
constructor(data) {
|
|
31321
31174
|
if (data) {
|
|
31322
31175
|
for (var property in data) {
|
|
@@ -31330,7 +31183,7 @@ export class TrackingWorkOrderDto {
|
|
|
31330
31183
|
}
|
|
31331
31184
|
init(_data) {
|
|
31332
31185
|
if (_data) {
|
|
31333
|
-
this.
|
|
31186
|
+
this.parcelId = _data["parcelId"];
|
|
31334
31187
|
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
|
|
31335
31188
|
if (Array.isArray(_data["trackingHistory"])) {
|
|
31336
31189
|
this.trackingHistory = [];
|
|
@@ -31342,13 +31195,13 @@ export class TrackingWorkOrderDto {
|
|
|
31342
31195
|
}
|
|
31343
31196
|
static fromJS(data) {
|
|
31344
31197
|
data = typeof data === 'object' ? data : {};
|
|
31345
|
-
let result = new
|
|
31198
|
+
let result = new TrackingParcelDto();
|
|
31346
31199
|
result.init(data);
|
|
31347
31200
|
return result;
|
|
31348
31201
|
}
|
|
31349
31202
|
toJSON(data) {
|
|
31350
31203
|
data = typeof data === 'object' ? data : {};
|
|
31351
|
-
data["
|
|
31204
|
+
data["parcelId"] = this.parcelId;
|
|
31352
31205
|
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
31353
31206
|
if (Array.isArray(this.trackingHistory)) {
|
|
31354
31207
|
data["trackingHistory"] = [];
|
|
@@ -31439,7 +31292,7 @@ export class TrackingHistoryUpdateDto {
|
|
|
31439
31292
|
}
|
|
31440
31293
|
init(_data) {
|
|
31441
31294
|
if (_data) {
|
|
31442
|
-
this.
|
|
31295
|
+
this.parcelId = _data["parcelId"];
|
|
31443
31296
|
}
|
|
31444
31297
|
}
|
|
31445
31298
|
static fromJS(data) {
|
|
@@ -31450,80 +31303,7 @@ export class TrackingHistoryUpdateDto {
|
|
|
31450
31303
|
}
|
|
31451
31304
|
toJSON(data) {
|
|
31452
31305
|
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;
|
|
31306
|
+
data["parcelId"] = this.parcelId;
|
|
31527
31307
|
return data;
|
|
31528
31308
|
}
|
|
31529
31309
|
}
|