@ignos/api-client 20240905.0.10262 → 20240906.0.10268
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 +47 -0
- package/lib/ignosportal-api.js +138 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +184 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1504,6 +1504,7 @@ export declare class MoveParcelsClient extends AuthorizedApiBase implements IMov
|
|
|
1504
1504
|
}
|
|
1505
1505
|
export interface IMoveTrackingClient {
|
|
1506
1506
|
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
1507
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto>;
|
|
1507
1508
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
1508
1509
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
1509
1510
|
listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]>;
|
|
@@ -1522,6 +1523,8 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
1522
1523
|
});
|
|
1523
1524
|
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
1524
1525
|
protected processListTrackingHistory(response: Response): Promise<TrackingParcelListDto>;
|
|
1526
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto>;
|
|
1527
|
+
protected processListTrackingHistoryFlattened(response: Response): Promise<TrackingParcelFlattenedListDto>;
|
|
1525
1528
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
1526
1529
|
protected processGetTrackingHistory(response: Response): Promise<TrackingParcelDto>;
|
|
1527
1530
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
@@ -8312,6 +8315,50 @@ export interface ITrackingRequestListDto {
|
|
|
8312
8315
|
includeActiveBookings?: boolean;
|
|
8313
8316
|
continuationToken?: string | null;
|
|
8314
8317
|
}
|
|
8318
|
+
export declare class TrackingParcelFlattenedListDto implements ITrackingParcelFlattenedListDto {
|
|
8319
|
+
results: TrackingHistoryFlattenedDto[];
|
|
8320
|
+
continuationToken?: string | null;
|
|
8321
|
+
constructor(data?: ITrackingParcelFlattenedListDto);
|
|
8322
|
+
init(_data?: any): void;
|
|
8323
|
+
static fromJS(data: any): TrackingParcelFlattenedListDto;
|
|
8324
|
+
toJSON(data?: any): any;
|
|
8325
|
+
}
|
|
8326
|
+
export interface ITrackingParcelFlattenedListDto {
|
|
8327
|
+
results: TrackingHistoryFlattenedDto[];
|
|
8328
|
+
continuationToken?: string | null;
|
|
8329
|
+
}
|
|
8330
|
+
export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto {
|
|
8331
|
+
parcelId: string;
|
|
8332
|
+
parcelKind: ParcelKindDto;
|
|
8333
|
+
partName?: string | null;
|
|
8334
|
+
partNumber?: string | null;
|
|
8335
|
+
quantity?: number | null;
|
|
8336
|
+
material?: string | null;
|
|
8337
|
+
covered?: MaterialCoveredDto | null;
|
|
8338
|
+
trackingId: string;
|
|
8339
|
+
palletNumber: number;
|
|
8340
|
+
activeBooking?: boolean | null;
|
|
8341
|
+
currentTracking?: TrackingEventDto | null;
|
|
8342
|
+
trackingEvents: TrackingEventDto[];
|
|
8343
|
+
constructor(data?: ITrackingHistoryFlattenedDto);
|
|
8344
|
+
init(_data?: any): void;
|
|
8345
|
+
static fromJS(data: any): TrackingHistoryFlattenedDto;
|
|
8346
|
+
toJSON(data?: any): any;
|
|
8347
|
+
}
|
|
8348
|
+
export interface ITrackingHistoryFlattenedDto {
|
|
8349
|
+
parcelId: string;
|
|
8350
|
+
parcelKind: ParcelKindDto;
|
|
8351
|
+
partName?: string | null;
|
|
8352
|
+
partNumber?: string | null;
|
|
8353
|
+
quantity?: number | null;
|
|
8354
|
+
material?: string | null;
|
|
8355
|
+
covered?: MaterialCoveredDto | null;
|
|
8356
|
+
trackingId: string;
|
|
8357
|
+
palletNumber: number;
|
|
8358
|
+
activeBooking?: boolean | null;
|
|
8359
|
+
currentTracking?: TrackingEventDto | null;
|
|
8360
|
+
trackingEvents: TrackingEventDto[];
|
|
8361
|
+
}
|
|
8315
8362
|
export declare class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
|
|
8316
8363
|
parcelIds: string[];
|
|
8317
8364
|
includeActiveBookings: boolean;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -12378,6 +12378,46 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12378
12378
|
}
|
|
12379
12379
|
return Promise.resolve(null);
|
|
12380
12380
|
}
|
|
12381
|
+
listTrackingHistoryFlattened(request) {
|
|
12382
|
+
let url_ = this.baseUrl + "/move/tracking/list/flattened";
|
|
12383
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12384
|
+
const content_ = JSON.stringify(request);
|
|
12385
|
+
let options_ = {
|
|
12386
|
+
body: content_,
|
|
12387
|
+
method: "POST",
|
|
12388
|
+
headers: {
|
|
12389
|
+
"Content-Type": "application/json",
|
|
12390
|
+
"Accept": "application/json"
|
|
12391
|
+
}
|
|
12392
|
+
};
|
|
12393
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12394
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12395
|
+
}).then((_response) => {
|
|
12396
|
+
return this.processListTrackingHistoryFlattened(_response);
|
|
12397
|
+
});
|
|
12398
|
+
}
|
|
12399
|
+
processListTrackingHistoryFlattened(response) {
|
|
12400
|
+
const status = response.status;
|
|
12401
|
+
let _headers = {};
|
|
12402
|
+
if (response.headers && response.headers.forEach) {
|
|
12403
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12404
|
+
}
|
|
12405
|
+
;
|
|
12406
|
+
if (status === 200) {
|
|
12407
|
+
return response.text().then((_responseText) => {
|
|
12408
|
+
let result200 = null;
|
|
12409
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12410
|
+
result200 = TrackingParcelFlattenedListDto.fromJS(resultData200);
|
|
12411
|
+
return result200;
|
|
12412
|
+
});
|
|
12413
|
+
}
|
|
12414
|
+
else if (status !== 200 && status !== 204) {
|
|
12415
|
+
return response.text().then((_responseText) => {
|
|
12416
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12417
|
+
});
|
|
12418
|
+
}
|
|
12419
|
+
return Promise.resolve(null);
|
|
12420
|
+
}
|
|
12381
12421
|
getTrackingHistory(trackingId, includeActiveBookings) {
|
|
12382
12422
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
|
|
12383
12423
|
if (trackingId === undefined || trackingId === null)
|
|
@@ -31532,6 +31572,104 @@ export class TrackingRequestListDto {
|
|
|
31532
31572
|
return data;
|
|
31533
31573
|
}
|
|
31534
31574
|
}
|
|
31575
|
+
export class TrackingParcelFlattenedListDto {
|
|
31576
|
+
constructor(data) {
|
|
31577
|
+
if (data) {
|
|
31578
|
+
for (var property in data) {
|
|
31579
|
+
if (data.hasOwnProperty(property))
|
|
31580
|
+
this[property] = data[property];
|
|
31581
|
+
}
|
|
31582
|
+
}
|
|
31583
|
+
if (!data) {
|
|
31584
|
+
this.results = [];
|
|
31585
|
+
}
|
|
31586
|
+
}
|
|
31587
|
+
init(_data) {
|
|
31588
|
+
if (_data) {
|
|
31589
|
+
if (Array.isArray(_data["results"])) {
|
|
31590
|
+
this.results = [];
|
|
31591
|
+
for (let item of _data["results"])
|
|
31592
|
+
this.results.push(TrackingHistoryFlattenedDto.fromJS(item));
|
|
31593
|
+
}
|
|
31594
|
+
this.continuationToken = _data["continuationToken"];
|
|
31595
|
+
}
|
|
31596
|
+
}
|
|
31597
|
+
static fromJS(data) {
|
|
31598
|
+
data = typeof data === 'object' ? data : {};
|
|
31599
|
+
let result = new TrackingParcelFlattenedListDto();
|
|
31600
|
+
result.init(data);
|
|
31601
|
+
return result;
|
|
31602
|
+
}
|
|
31603
|
+
toJSON(data) {
|
|
31604
|
+
data = typeof data === 'object' ? data : {};
|
|
31605
|
+
if (Array.isArray(this.results)) {
|
|
31606
|
+
data["results"] = [];
|
|
31607
|
+
for (let item of this.results)
|
|
31608
|
+
data["results"].push(item.toJSON());
|
|
31609
|
+
}
|
|
31610
|
+
data["continuationToken"] = this.continuationToken;
|
|
31611
|
+
return data;
|
|
31612
|
+
}
|
|
31613
|
+
}
|
|
31614
|
+
export class TrackingHistoryFlattenedDto {
|
|
31615
|
+
constructor(data) {
|
|
31616
|
+
if (data) {
|
|
31617
|
+
for (var property in data) {
|
|
31618
|
+
if (data.hasOwnProperty(property))
|
|
31619
|
+
this[property] = data[property];
|
|
31620
|
+
}
|
|
31621
|
+
}
|
|
31622
|
+
if (!data) {
|
|
31623
|
+
this.trackingEvents = [];
|
|
31624
|
+
}
|
|
31625
|
+
}
|
|
31626
|
+
init(_data) {
|
|
31627
|
+
if (_data) {
|
|
31628
|
+
this.parcelId = _data["parcelId"];
|
|
31629
|
+
this.parcelKind = _data["parcelKind"];
|
|
31630
|
+
this.partName = _data["partName"];
|
|
31631
|
+
this.partNumber = _data["partNumber"];
|
|
31632
|
+
this.quantity = _data["quantity"];
|
|
31633
|
+
this.material = _data["material"];
|
|
31634
|
+
this.covered = _data["covered"];
|
|
31635
|
+
this.trackingId = _data["trackingId"];
|
|
31636
|
+
this.palletNumber = _data["palletNumber"];
|
|
31637
|
+
this.activeBooking = _data["activeBooking"];
|
|
31638
|
+
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
|
|
31639
|
+
if (Array.isArray(_data["trackingEvents"])) {
|
|
31640
|
+
this.trackingEvents = [];
|
|
31641
|
+
for (let item of _data["trackingEvents"])
|
|
31642
|
+
this.trackingEvents.push(TrackingEventDto.fromJS(item));
|
|
31643
|
+
}
|
|
31644
|
+
}
|
|
31645
|
+
}
|
|
31646
|
+
static fromJS(data) {
|
|
31647
|
+
data = typeof data === 'object' ? data : {};
|
|
31648
|
+
let result = new TrackingHistoryFlattenedDto();
|
|
31649
|
+
result.init(data);
|
|
31650
|
+
return result;
|
|
31651
|
+
}
|
|
31652
|
+
toJSON(data) {
|
|
31653
|
+
data = typeof data === 'object' ? data : {};
|
|
31654
|
+
data["parcelId"] = this.parcelId;
|
|
31655
|
+
data["parcelKind"] = this.parcelKind;
|
|
31656
|
+
data["partName"] = this.partName;
|
|
31657
|
+
data["partNumber"] = this.partNumber;
|
|
31658
|
+
data["quantity"] = this.quantity;
|
|
31659
|
+
data["material"] = this.material;
|
|
31660
|
+
data["covered"] = this.covered;
|
|
31661
|
+
data["trackingId"] = this.trackingId;
|
|
31662
|
+
data["palletNumber"] = this.palletNumber;
|
|
31663
|
+
data["activeBooking"] = this.activeBooking;
|
|
31664
|
+
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
|
|
31665
|
+
if (Array.isArray(this.trackingEvents)) {
|
|
31666
|
+
data["trackingEvents"] = [];
|
|
31667
|
+
for (let item of this.trackingEvents)
|
|
31668
|
+
data["trackingEvents"].push(item.toJSON());
|
|
31669
|
+
}
|
|
31670
|
+
return data;
|
|
31671
|
+
}
|
|
31672
|
+
}
|
|
31535
31673
|
export class TrackingParcelRequestListDto {
|
|
31536
31674
|
constructor(data) {
|
|
31537
31675
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -13182,6 +13182,8 @@ export interface IMoveTrackingClient {
|
|
|
13182
13182
|
|
|
13183
13183
|
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
13184
13184
|
|
|
13185
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto>;
|
|
13186
|
+
|
|
13185
13187
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
13186
13188
|
|
|
13187
13189
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
@@ -13250,6 +13252,46 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13250
13252
|
return Promise.resolve<TrackingParcelListDto>(null as any);
|
|
13251
13253
|
}
|
|
13252
13254
|
|
|
13255
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto> {
|
|
13256
|
+
let url_ = this.baseUrl + "/move/tracking/list/flattened";
|
|
13257
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
13258
|
+
|
|
13259
|
+
const content_ = JSON.stringify(request);
|
|
13260
|
+
|
|
13261
|
+
let options_: RequestInit = {
|
|
13262
|
+
body: content_,
|
|
13263
|
+
method: "POST",
|
|
13264
|
+
headers: {
|
|
13265
|
+
"Content-Type": "application/json",
|
|
13266
|
+
"Accept": "application/json"
|
|
13267
|
+
}
|
|
13268
|
+
};
|
|
13269
|
+
|
|
13270
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13271
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
13272
|
+
}).then((_response: Response) => {
|
|
13273
|
+
return this.processListTrackingHistoryFlattened(_response);
|
|
13274
|
+
});
|
|
13275
|
+
}
|
|
13276
|
+
|
|
13277
|
+
protected processListTrackingHistoryFlattened(response: Response): Promise<TrackingParcelFlattenedListDto> {
|
|
13278
|
+
const status = response.status;
|
|
13279
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13280
|
+
if (status === 200) {
|
|
13281
|
+
return response.text().then((_responseText) => {
|
|
13282
|
+
let result200: any = null;
|
|
13283
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13284
|
+
result200 = TrackingParcelFlattenedListDto.fromJS(resultData200);
|
|
13285
|
+
return result200;
|
|
13286
|
+
});
|
|
13287
|
+
} else if (status !== 200 && status !== 204) {
|
|
13288
|
+
return response.text().then((_responseText) => {
|
|
13289
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13290
|
+
});
|
|
13291
|
+
}
|
|
13292
|
+
return Promise.resolve<TrackingParcelFlattenedListDto>(null as any);
|
|
13293
|
+
}
|
|
13294
|
+
|
|
13253
13295
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
|
|
13254
13296
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
|
|
13255
13297
|
if (trackingId === undefined || trackingId === null)
|
|
@@ -38844,6 +38886,148 @@ export interface ITrackingRequestListDto {
|
|
|
38844
38886
|
continuationToken?: string | null;
|
|
38845
38887
|
}
|
|
38846
38888
|
|
|
38889
|
+
export class TrackingParcelFlattenedListDto implements ITrackingParcelFlattenedListDto {
|
|
38890
|
+
results!: TrackingHistoryFlattenedDto[];
|
|
38891
|
+
continuationToken?: string | null;
|
|
38892
|
+
|
|
38893
|
+
constructor(data?: ITrackingParcelFlattenedListDto) {
|
|
38894
|
+
if (data) {
|
|
38895
|
+
for (var property in data) {
|
|
38896
|
+
if (data.hasOwnProperty(property))
|
|
38897
|
+
(<any>this)[property] = (<any>data)[property];
|
|
38898
|
+
}
|
|
38899
|
+
}
|
|
38900
|
+
if (!data) {
|
|
38901
|
+
this.results = [];
|
|
38902
|
+
}
|
|
38903
|
+
}
|
|
38904
|
+
|
|
38905
|
+
init(_data?: any) {
|
|
38906
|
+
if (_data) {
|
|
38907
|
+
if (Array.isArray(_data["results"])) {
|
|
38908
|
+
this.results = [] as any;
|
|
38909
|
+
for (let item of _data["results"])
|
|
38910
|
+
this.results!.push(TrackingHistoryFlattenedDto.fromJS(item));
|
|
38911
|
+
}
|
|
38912
|
+
this.continuationToken = _data["continuationToken"];
|
|
38913
|
+
}
|
|
38914
|
+
}
|
|
38915
|
+
|
|
38916
|
+
static fromJS(data: any): TrackingParcelFlattenedListDto {
|
|
38917
|
+
data = typeof data === 'object' ? data : {};
|
|
38918
|
+
let result = new TrackingParcelFlattenedListDto();
|
|
38919
|
+
result.init(data);
|
|
38920
|
+
return result;
|
|
38921
|
+
}
|
|
38922
|
+
|
|
38923
|
+
toJSON(data?: any) {
|
|
38924
|
+
data = typeof data === 'object' ? data : {};
|
|
38925
|
+
if (Array.isArray(this.results)) {
|
|
38926
|
+
data["results"] = [];
|
|
38927
|
+
for (let item of this.results)
|
|
38928
|
+
data["results"].push(item.toJSON());
|
|
38929
|
+
}
|
|
38930
|
+
data["continuationToken"] = this.continuationToken;
|
|
38931
|
+
return data;
|
|
38932
|
+
}
|
|
38933
|
+
}
|
|
38934
|
+
|
|
38935
|
+
export interface ITrackingParcelFlattenedListDto {
|
|
38936
|
+
results: TrackingHistoryFlattenedDto[];
|
|
38937
|
+
continuationToken?: string | null;
|
|
38938
|
+
}
|
|
38939
|
+
|
|
38940
|
+
export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto {
|
|
38941
|
+
parcelId!: string;
|
|
38942
|
+
parcelKind!: ParcelKindDto;
|
|
38943
|
+
partName?: string | null;
|
|
38944
|
+
partNumber?: string | null;
|
|
38945
|
+
quantity?: number | null;
|
|
38946
|
+
material?: string | null;
|
|
38947
|
+
covered?: MaterialCoveredDto | null;
|
|
38948
|
+
trackingId!: string;
|
|
38949
|
+
palletNumber!: number;
|
|
38950
|
+
activeBooking?: boolean | null;
|
|
38951
|
+
currentTracking?: TrackingEventDto | null;
|
|
38952
|
+
trackingEvents!: TrackingEventDto[];
|
|
38953
|
+
|
|
38954
|
+
constructor(data?: ITrackingHistoryFlattenedDto) {
|
|
38955
|
+
if (data) {
|
|
38956
|
+
for (var property in data) {
|
|
38957
|
+
if (data.hasOwnProperty(property))
|
|
38958
|
+
(<any>this)[property] = (<any>data)[property];
|
|
38959
|
+
}
|
|
38960
|
+
}
|
|
38961
|
+
if (!data) {
|
|
38962
|
+
this.trackingEvents = [];
|
|
38963
|
+
}
|
|
38964
|
+
}
|
|
38965
|
+
|
|
38966
|
+
init(_data?: any) {
|
|
38967
|
+
if (_data) {
|
|
38968
|
+
this.parcelId = _data["parcelId"];
|
|
38969
|
+
this.parcelKind = _data["parcelKind"];
|
|
38970
|
+
this.partName = _data["partName"];
|
|
38971
|
+
this.partNumber = _data["partNumber"];
|
|
38972
|
+
this.quantity = _data["quantity"];
|
|
38973
|
+
this.material = _data["material"];
|
|
38974
|
+
this.covered = _data["covered"];
|
|
38975
|
+
this.trackingId = _data["trackingId"];
|
|
38976
|
+
this.palletNumber = _data["palletNumber"];
|
|
38977
|
+
this.activeBooking = _data["activeBooking"];
|
|
38978
|
+
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : <any>undefined;
|
|
38979
|
+
if (Array.isArray(_data["trackingEvents"])) {
|
|
38980
|
+
this.trackingEvents = [] as any;
|
|
38981
|
+
for (let item of _data["trackingEvents"])
|
|
38982
|
+
this.trackingEvents!.push(TrackingEventDto.fromJS(item));
|
|
38983
|
+
}
|
|
38984
|
+
}
|
|
38985
|
+
}
|
|
38986
|
+
|
|
38987
|
+
static fromJS(data: any): TrackingHistoryFlattenedDto {
|
|
38988
|
+
data = typeof data === 'object' ? data : {};
|
|
38989
|
+
let result = new TrackingHistoryFlattenedDto();
|
|
38990
|
+
result.init(data);
|
|
38991
|
+
return result;
|
|
38992
|
+
}
|
|
38993
|
+
|
|
38994
|
+
toJSON(data?: any) {
|
|
38995
|
+
data = typeof data === 'object' ? data : {};
|
|
38996
|
+
data["parcelId"] = this.parcelId;
|
|
38997
|
+
data["parcelKind"] = this.parcelKind;
|
|
38998
|
+
data["partName"] = this.partName;
|
|
38999
|
+
data["partNumber"] = this.partNumber;
|
|
39000
|
+
data["quantity"] = this.quantity;
|
|
39001
|
+
data["material"] = this.material;
|
|
39002
|
+
data["covered"] = this.covered;
|
|
39003
|
+
data["trackingId"] = this.trackingId;
|
|
39004
|
+
data["palletNumber"] = this.palletNumber;
|
|
39005
|
+
data["activeBooking"] = this.activeBooking;
|
|
39006
|
+
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : <any>undefined;
|
|
39007
|
+
if (Array.isArray(this.trackingEvents)) {
|
|
39008
|
+
data["trackingEvents"] = [];
|
|
39009
|
+
for (let item of this.trackingEvents)
|
|
39010
|
+
data["trackingEvents"].push(item.toJSON());
|
|
39011
|
+
}
|
|
39012
|
+
return data;
|
|
39013
|
+
}
|
|
39014
|
+
}
|
|
39015
|
+
|
|
39016
|
+
export interface ITrackingHistoryFlattenedDto {
|
|
39017
|
+
parcelId: string;
|
|
39018
|
+
parcelKind: ParcelKindDto;
|
|
39019
|
+
partName?: string | null;
|
|
39020
|
+
partNumber?: string | null;
|
|
39021
|
+
quantity?: number | null;
|
|
39022
|
+
material?: string | null;
|
|
39023
|
+
covered?: MaterialCoveredDto | null;
|
|
39024
|
+
trackingId: string;
|
|
39025
|
+
palletNumber: number;
|
|
39026
|
+
activeBooking?: boolean | null;
|
|
39027
|
+
currentTracking?: TrackingEventDto | null;
|
|
39028
|
+
trackingEvents: TrackingEventDto[];
|
|
39029
|
+
}
|
|
39030
|
+
|
|
38847
39031
|
export class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
|
|
38848
39032
|
parcelIds!: string[];
|
|
38849
39033
|
includeActiveBookings!: boolean;
|