@ignos/api-client 20240823.0.10114 → 20240828.0.10156
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 +99 -53
- package/lib/ignosportal-api.js +254 -75
- package/package.json +1 -1
- package/src/ignosportal-api.ts +351 -129
package/src/ignosportal-api.ts
CHANGED
|
@@ -8437,6 +8437,10 @@ export interface ICncSetupClient {
|
|
|
8437
8437
|
|
|
8438
8438
|
listCncMachineOperationsAttachments(id: string): Promise<FileDto[]>;
|
|
8439
8439
|
|
|
8440
|
+
getCncMachineOperationNotes(id: string): Promise<MarkdownNotesDto>;
|
|
8441
|
+
|
|
8442
|
+
saveCncMachineOperationNotes(id: string, request: SaveMarkdownNotes): Promise<MarkdownNotesDto>;
|
|
8443
|
+
|
|
8440
8444
|
deleteCncMachineOperationAttachment(operationId: string, filename: string): Promise<void>;
|
|
8441
8445
|
|
|
8442
8446
|
listCncMachineOperationsByPart(id: string): Promise<CncMachineOperationDto[]>;
|
|
@@ -9894,6 +9898,88 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
9894
9898
|
return Promise.resolve<FileDto[]>(null as any);
|
|
9895
9899
|
}
|
|
9896
9900
|
|
|
9901
|
+
getCncMachineOperationNotes(id: string): Promise<MarkdownNotesDto> {
|
|
9902
|
+
let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
|
|
9903
|
+
if (id === undefined || id === null)
|
|
9904
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
9905
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9906
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9907
|
+
|
|
9908
|
+
let options_: RequestInit = {
|
|
9909
|
+
method: "GET",
|
|
9910
|
+
headers: {
|
|
9911
|
+
"Accept": "application/json"
|
|
9912
|
+
}
|
|
9913
|
+
};
|
|
9914
|
+
|
|
9915
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9916
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
9917
|
+
}).then((_response: Response) => {
|
|
9918
|
+
return this.processGetCncMachineOperationNotes(_response);
|
|
9919
|
+
});
|
|
9920
|
+
}
|
|
9921
|
+
|
|
9922
|
+
protected processGetCncMachineOperationNotes(response: Response): Promise<MarkdownNotesDto> {
|
|
9923
|
+
const status = response.status;
|
|
9924
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
9925
|
+
if (status === 200) {
|
|
9926
|
+
return response.text().then((_responseText) => {
|
|
9927
|
+
let result200: any = null;
|
|
9928
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9929
|
+
result200 = MarkdownNotesDto.fromJS(resultData200);
|
|
9930
|
+
return result200;
|
|
9931
|
+
});
|
|
9932
|
+
} else if (status !== 200 && status !== 204) {
|
|
9933
|
+
return response.text().then((_responseText) => {
|
|
9934
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9935
|
+
});
|
|
9936
|
+
}
|
|
9937
|
+
return Promise.resolve<MarkdownNotesDto>(null as any);
|
|
9938
|
+
}
|
|
9939
|
+
|
|
9940
|
+
saveCncMachineOperationNotes(id: string, request: SaveMarkdownNotes): Promise<MarkdownNotesDto> {
|
|
9941
|
+
let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
|
|
9942
|
+
if (id === undefined || id === null)
|
|
9943
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
9944
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9945
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9946
|
+
|
|
9947
|
+
const content_ = JSON.stringify(request);
|
|
9948
|
+
|
|
9949
|
+
let options_: RequestInit = {
|
|
9950
|
+
body: content_,
|
|
9951
|
+
method: "PUT",
|
|
9952
|
+
headers: {
|
|
9953
|
+
"Content-Type": "application/json",
|
|
9954
|
+
"Accept": "application/json"
|
|
9955
|
+
}
|
|
9956
|
+
};
|
|
9957
|
+
|
|
9958
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9959
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
9960
|
+
}).then((_response: Response) => {
|
|
9961
|
+
return this.processSaveCncMachineOperationNotes(_response);
|
|
9962
|
+
});
|
|
9963
|
+
}
|
|
9964
|
+
|
|
9965
|
+
protected processSaveCncMachineOperationNotes(response: Response): Promise<MarkdownNotesDto> {
|
|
9966
|
+
const status = response.status;
|
|
9967
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
9968
|
+
if (status === 200) {
|
|
9969
|
+
return response.text().then((_responseText) => {
|
|
9970
|
+
let result200: any = null;
|
|
9971
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9972
|
+
result200 = MarkdownNotesDto.fromJS(resultData200);
|
|
9973
|
+
return result200;
|
|
9974
|
+
});
|
|
9975
|
+
} else if (status !== 200 && status !== 204) {
|
|
9976
|
+
return response.text().then((_responseText) => {
|
|
9977
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9978
|
+
});
|
|
9979
|
+
}
|
|
9980
|
+
return Promise.resolve<MarkdownNotesDto>(null as any);
|
|
9981
|
+
}
|
|
9982
|
+
|
|
9897
9983
|
deleteCncMachineOperationAttachment(operationId: string, filename: string): Promise<void> {
|
|
9898
9984
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/attachments/{filename}";
|
|
9899
9985
|
if (operationId === undefined || operationId === null)
|
|
@@ -13084,13 +13170,13 @@ export class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcels
|
|
|
13084
13170
|
|
|
13085
13171
|
export interface IMoveTrackingClient {
|
|
13086
13172
|
|
|
13087
|
-
listTrackingHistory(request: TrackingRequestListDto): Promise<
|
|
13173
|
+
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
13088
13174
|
|
|
13089
|
-
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<
|
|
13175
|
+
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
13090
13176
|
|
|
13091
13177
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
13092
13178
|
|
|
13093
|
-
listParcelTrackingHistory(trackingParcelList:
|
|
13179
|
+
listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]>;
|
|
13094
13180
|
|
|
13095
13181
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
13096
13182
|
|
|
@@ -13112,7 +13198,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13112
13198
|
this.baseUrl = baseUrl ?? "";
|
|
13113
13199
|
}
|
|
13114
13200
|
|
|
13115
|
-
listTrackingHistory(request: TrackingRequestListDto): Promise<
|
|
13201
|
+
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto> {
|
|
13116
13202
|
let url_ = this.baseUrl + "/move/tracking/list";
|
|
13117
13203
|
url_ = url_.replace(/[?&]$/, "");
|
|
13118
13204
|
|
|
@@ -13134,14 +13220,14 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13134
13220
|
});
|
|
13135
13221
|
}
|
|
13136
13222
|
|
|
13137
|
-
protected processListTrackingHistory(response: Response): Promise<
|
|
13223
|
+
protected processListTrackingHistory(response: Response): Promise<TrackingParcelListDto> {
|
|
13138
13224
|
const status = response.status;
|
|
13139
13225
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13140
13226
|
if (status === 200) {
|
|
13141
13227
|
return response.text().then((_responseText) => {
|
|
13142
13228
|
let result200: any = null;
|
|
13143
13229
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13144
|
-
result200 =
|
|
13230
|
+
result200 = TrackingParcelListDto.fromJS(resultData200);
|
|
13145
13231
|
return result200;
|
|
13146
13232
|
});
|
|
13147
13233
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -13149,10 +13235,10 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13149
13235
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13150
13236
|
});
|
|
13151
13237
|
}
|
|
13152
|
-
return Promise.resolve<
|
|
13238
|
+
return Promise.resolve<TrackingParcelListDto>(null as any);
|
|
13153
13239
|
}
|
|
13154
13240
|
|
|
13155
|
-
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<
|
|
13241
|
+
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
|
|
13156
13242
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
|
|
13157
13243
|
if (trackingId === undefined || trackingId === null)
|
|
13158
13244
|
throw new Error("The parameter 'trackingId' must be defined.");
|
|
@@ -13177,14 +13263,14 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13177
13263
|
});
|
|
13178
13264
|
}
|
|
13179
13265
|
|
|
13180
|
-
protected processGetTrackingHistory(response: Response): Promise<
|
|
13266
|
+
protected processGetTrackingHistory(response: Response): Promise<TrackingParcelDto> {
|
|
13181
13267
|
const status = response.status;
|
|
13182
13268
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13183
13269
|
if (status === 200) {
|
|
13184
13270
|
return response.text().then((_responseText) => {
|
|
13185
13271
|
let result200: any = null;
|
|
13186
13272
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13187
|
-
result200 =
|
|
13273
|
+
result200 = TrackingParcelDto.fromJS(resultData200);
|
|
13188
13274
|
return result200;
|
|
13189
13275
|
});
|
|
13190
13276
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -13192,7 +13278,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13192
13278
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13193
13279
|
});
|
|
13194
13280
|
}
|
|
13195
|
-
return Promise.resolve<
|
|
13281
|
+
return Promise.resolve<TrackingParcelDto>(null as any);
|
|
13196
13282
|
}
|
|
13197
13283
|
|
|
13198
13284
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
|
|
@@ -13238,7 +13324,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13238
13324
|
return Promise.resolve<TrackingParcelDto>(null as any);
|
|
13239
13325
|
}
|
|
13240
13326
|
|
|
13241
|
-
listParcelTrackingHistory(trackingParcelList:
|
|
13327
|
+
listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]> {
|
|
13242
13328
|
let url_ = this.baseUrl + "/move/tracking/parcel/list";
|
|
13243
13329
|
url_ = url_.replace(/[?&]$/, "");
|
|
13244
13330
|
|
|
@@ -34603,6 +34689,82 @@ export interface IUpdateProgramFileRequest {
|
|
|
34603
34689
|
deleted: boolean;
|
|
34604
34690
|
}
|
|
34605
34691
|
|
|
34692
|
+
export class MarkdownNotesDto implements IMarkdownNotesDto {
|
|
34693
|
+
content!: string;
|
|
34694
|
+
|
|
34695
|
+
constructor(data?: IMarkdownNotesDto) {
|
|
34696
|
+
if (data) {
|
|
34697
|
+
for (var property in data) {
|
|
34698
|
+
if (data.hasOwnProperty(property))
|
|
34699
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34700
|
+
}
|
|
34701
|
+
}
|
|
34702
|
+
}
|
|
34703
|
+
|
|
34704
|
+
init(_data?: any) {
|
|
34705
|
+
if (_data) {
|
|
34706
|
+
this.content = _data["content"];
|
|
34707
|
+
}
|
|
34708
|
+
}
|
|
34709
|
+
|
|
34710
|
+
static fromJS(data: any): MarkdownNotesDto {
|
|
34711
|
+
data = typeof data === 'object' ? data : {};
|
|
34712
|
+
let result = new MarkdownNotesDto();
|
|
34713
|
+
result.init(data);
|
|
34714
|
+
return result;
|
|
34715
|
+
}
|
|
34716
|
+
|
|
34717
|
+
toJSON(data?: any) {
|
|
34718
|
+
data = typeof data === 'object' ? data : {};
|
|
34719
|
+
data["content"] = this.content;
|
|
34720
|
+
return data;
|
|
34721
|
+
}
|
|
34722
|
+
}
|
|
34723
|
+
|
|
34724
|
+
export interface IMarkdownNotesDto {
|
|
34725
|
+
content: string;
|
|
34726
|
+
}
|
|
34727
|
+
|
|
34728
|
+
export class SaveMarkdownNotes implements ISaveMarkdownNotes {
|
|
34729
|
+
id!: string;
|
|
34730
|
+
markdown!: string;
|
|
34731
|
+
|
|
34732
|
+
constructor(data?: ISaveMarkdownNotes) {
|
|
34733
|
+
if (data) {
|
|
34734
|
+
for (var property in data) {
|
|
34735
|
+
if (data.hasOwnProperty(property))
|
|
34736
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34737
|
+
}
|
|
34738
|
+
}
|
|
34739
|
+
}
|
|
34740
|
+
|
|
34741
|
+
init(_data?: any) {
|
|
34742
|
+
if (_data) {
|
|
34743
|
+
this.id = _data["id"];
|
|
34744
|
+
this.markdown = _data["markdown"];
|
|
34745
|
+
}
|
|
34746
|
+
}
|
|
34747
|
+
|
|
34748
|
+
static fromJS(data: any): SaveMarkdownNotes {
|
|
34749
|
+
data = typeof data === 'object' ? data : {};
|
|
34750
|
+
let result = new SaveMarkdownNotes();
|
|
34751
|
+
result.init(data);
|
|
34752
|
+
return result;
|
|
34753
|
+
}
|
|
34754
|
+
|
|
34755
|
+
toJSON(data?: any) {
|
|
34756
|
+
data = typeof data === 'object' ? data : {};
|
|
34757
|
+
data["id"] = this.id;
|
|
34758
|
+
data["markdown"] = this.markdown;
|
|
34759
|
+
return data;
|
|
34760
|
+
}
|
|
34761
|
+
}
|
|
34762
|
+
|
|
34763
|
+
export interface ISaveMarkdownNotes {
|
|
34764
|
+
id: string;
|
|
34765
|
+
markdown: string;
|
|
34766
|
+
}
|
|
34767
|
+
|
|
34606
34768
|
export class CncToolTypeDto implements ICncToolTypeDto {
|
|
34607
34769
|
id!: string;
|
|
34608
34770
|
name!: string;
|
|
@@ -37274,7 +37436,7 @@ export class BookingDto implements IBookingDto {
|
|
|
37274
37436
|
parcelKind!: ParcelKindDto;
|
|
37275
37437
|
transportKind!: TransportKindDto;
|
|
37276
37438
|
status!: BookingStatusDto;
|
|
37277
|
-
|
|
37439
|
+
parcels!: BookingParcelDto[];
|
|
37278
37440
|
fromLocation!: LocationDto;
|
|
37279
37441
|
toLocation!: LocationDto;
|
|
37280
37442
|
created!: Date;
|
|
@@ -37294,7 +37456,7 @@ export class BookingDto implements IBookingDto {
|
|
|
37294
37456
|
}
|
|
37295
37457
|
}
|
|
37296
37458
|
if (!data) {
|
|
37297
|
-
this.
|
|
37459
|
+
this.parcels = [];
|
|
37298
37460
|
this.fromLocation = new LocationDto();
|
|
37299
37461
|
this.toLocation = new LocationDto();
|
|
37300
37462
|
}
|
|
@@ -37306,10 +37468,10 @@ export class BookingDto implements IBookingDto {
|
|
|
37306
37468
|
this.parcelKind = _data["parcelKind"];
|
|
37307
37469
|
this.transportKind = _data["transportKind"];
|
|
37308
37470
|
this.status = _data["status"];
|
|
37309
|
-
if (Array.isArray(_data["
|
|
37310
|
-
this.
|
|
37311
|
-
for (let item of _data["
|
|
37312
|
-
this.
|
|
37471
|
+
if (Array.isArray(_data["parcels"])) {
|
|
37472
|
+
this.parcels = [] as any;
|
|
37473
|
+
for (let item of _data["parcels"])
|
|
37474
|
+
this.parcels!.push(BookingParcelDto.fromJS(item));
|
|
37313
37475
|
}
|
|
37314
37476
|
this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
|
|
37315
37477
|
this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
|
|
@@ -37337,10 +37499,10 @@ export class BookingDto implements IBookingDto {
|
|
|
37337
37499
|
data["parcelKind"] = this.parcelKind;
|
|
37338
37500
|
data["transportKind"] = this.transportKind;
|
|
37339
37501
|
data["status"] = this.status;
|
|
37340
|
-
if (Array.isArray(this.
|
|
37341
|
-
data["
|
|
37342
|
-
for (let item of this.
|
|
37343
|
-
data["
|
|
37502
|
+
if (Array.isArray(this.parcels)) {
|
|
37503
|
+
data["parcels"] = [];
|
|
37504
|
+
for (let item of this.parcels)
|
|
37505
|
+
data["parcels"].push(item.toJSON());
|
|
37344
37506
|
}
|
|
37345
37507
|
data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : <any>undefined;
|
|
37346
37508
|
data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : <any>undefined;
|
|
@@ -37361,7 +37523,7 @@ export interface IBookingDto {
|
|
|
37361
37523
|
parcelKind: ParcelKindDto;
|
|
37362
37524
|
transportKind: TransportKindDto;
|
|
37363
37525
|
status: BookingStatusDto;
|
|
37364
|
-
|
|
37526
|
+
parcels: BookingParcelDto[];
|
|
37365
37527
|
fromLocation: LocationDto;
|
|
37366
37528
|
toLocation: LocationDto;
|
|
37367
37529
|
created: Date;
|
|
@@ -37380,14 +37542,84 @@ export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoading
|
|
|
37380
37542
|
|
|
37381
37543
|
export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Completed";
|
|
37382
37544
|
|
|
37383
|
-
export class
|
|
37384
|
-
trackingId!: string;
|
|
37385
|
-
palletNumber!: number;
|
|
37545
|
+
export class BookingParcelDto implements IBookingParcelDto {
|
|
37386
37546
|
parcelId!: string;
|
|
37387
37547
|
parcelKind!: ParcelKindDto;
|
|
37548
|
+
partName?: string | null;
|
|
37549
|
+
partNumber?: string | null;
|
|
37550
|
+
quantity?: number | null;
|
|
37388
37551
|
material?: string | null;
|
|
37389
|
-
comment?: string | null;
|
|
37390
37552
|
covered!: MaterialCoveredDto;
|
|
37553
|
+
items?: BookingItemDto[];
|
|
37554
|
+
|
|
37555
|
+
constructor(data?: IBookingParcelDto) {
|
|
37556
|
+
if (data) {
|
|
37557
|
+
for (var property in data) {
|
|
37558
|
+
if (data.hasOwnProperty(property))
|
|
37559
|
+
(<any>this)[property] = (<any>data)[property];
|
|
37560
|
+
}
|
|
37561
|
+
}
|
|
37562
|
+
}
|
|
37563
|
+
|
|
37564
|
+
init(_data?: any) {
|
|
37565
|
+
if (_data) {
|
|
37566
|
+
this.parcelId = _data["parcelId"];
|
|
37567
|
+
this.parcelKind = _data["parcelKind"];
|
|
37568
|
+
this.partName = _data["partName"];
|
|
37569
|
+
this.partNumber = _data["partNumber"];
|
|
37570
|
+
this.quantity = _data["quantity"];
|
|
37571
|
+
this.material = _data["material"];
|
|
37572
|
+
this.covered = _data["covered"];
|
|
37573
|
+
if (Array.isArray(_data["items"])) {
|
|
37574
|
+
this.items = [] as any;
|
|
37575
|
+
for (let item of _data["items"])
|
|
37576
|
+
this.items!.push(BookingItemDto.fromJS(item));
|
|
37577
|
+
}
|
|
37578
|
+
}
|
|
37579
|
+
}
|
|
37580
|
+
|
|
37581
|
+
static fromJS(data: any): BookingParcelDto {
|
|
37582
|
+
data = typeof data === 'object' ? data : {};
|
|
37583
|
+
let result = new BookingParcelDto();
|
|
37584
|
+
result.init(data);
|
|
37585
|
+
return result;
|
|
37586
|
+
}
|
|
37587
|
+
|
|
37588
|
+
toJSON(data?: any) {
|
|
37589
|
+
data = typeof data === 'object' ? data : {};
|
|
37590
|
+
data["parcelId"] = this.parcelId;
|
|
37591
|
+
data["parcelKind"] = this.parcelKind;
|
|
37592
|
+
data["partName"] = this.partName;
|
|
37593
|
+
data["partNumber"] = this.partNumber;
|
|
37594
|
+
data["quantity"] = this.quantity;
|
|
37595
|
+
data["material"] = this.material;
|
|
37596
|
+
data["covered"] = this.covered;
|
|
37597
|
+
if (Array.isArray(this.items)) {
|
|
37598
|
+
data["items"] = [];
|
|
37599
|
+
for (let item of this.items)
|
|
37600
|
+
data["items"].push(item.toJSON());
|
|
37601
|
+
}
|
|
37602
|
+
return data;
|
|
37603
|
+
}
|
|
37604
|
+
}
|
|
37605
|
+
|
|
37606
|
+
export interface IBookingParcelDto {
|
|
37607
|
+
parcelId: string;
|
|
37608
|
+
parcelKind: ParcelKindDto;
|
|
37609
|
+
partName?: string | null;
|
|
37610
|
+
partNumber?: string | null;
|
|
37611
|
+
quantity?: number | null;
|
|
37612
|
+
material?: string | null;
|
|
37613
|
+
covered: MaterialCoveredDto;
|
|
37614
|
+
items?: BookingItemDto[];
|
|
37615
|
+
}
|
|
37616
|
+
|
|
37617
|
+
export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
|
|
37618
|
+
|
|
37619
|
+
export class BookingItemDto implements IBookingItemDto {
|
|
37620
|
+
trackingId!: string;
|
|
37621
|
+
palletNumber!: number;
|
|
37622
|
+
comment?: string | null;
|
|
37391
37623
|
toLocationOverride?: LocationDto | null;
|
|
37392
37624
|
|
|
37393
37625
|
constructor(data?: IBookingItemDto) {
|
|
@@ -37403,11 +37635,7 @@ export class BookingItemDto implements IBookingItemDto {
|
|
|
37403
37635
|
if (_data) {
|
|
37404
37636
|
this.trackingId = _data["trackingId"];
|
|
37405
37637
|
this.palletNumber = _data["palletNumber"];
|
|
37406
|
-
this.parcelId = _data["parcelId"];
|
|
37407
|
-
this.parcelKind = _data["parcelKind"];
|
|
37408
|
-
this.material = _data["material"];
|
|
37409
37638
|
this.comment = _data["comment"];
|
|
37410
|
-
this.covered = _data["covered"];
|
|
37411
37639
|
this.toLocationOverride = _data["toLocationOverride"] ? LocationDto.fromJS(_data["toLocationOverride"]) : <any>undefined;
|
|
37412
37640
|
}
|
|
37413
37641
|
}
|
|
@@ -37423,11 +37651,7 @@ export class BookingItemDto implements IBookingItemDto {
|
|
|
37423
37651
|
data = typeof data === 'object' ? data : {};
|
|
37424
37652
|
data["trackingId"] = this.trackingId;
|
|
37425
37653
|
data["palletNumber"] = this.palletNumber;
|
|
37426
|
-
data["parcelId"] = this.parcelId;
|
|
37427
|
-
data["parcelKind"] = this.parcelKind;
|
|
37428
|
-
data["material"] = this.material;
|
|
37429
37654
|
data["comment"] = this.comment;
|
|
37430
|
-
data["covered"] = this.covered;
|
|
37431
37655
|
data["toLocationOverride"] = this.toLocationOverride ? this.toLocationOverride.toJSON() : <any>undefined;
|
|
37432
37656
|
return data;
|
|
37433
37657
|
}
|
|
@@ -37436,16 +37660,10 @@ export class BookingItemDto implements IBookingItemDto {
|
|
|
37436
37660
|
export interface IBookingItemDto {
|
|
37437
37661
|
trackingId: string;
|
|
37438
37662
|
palletNumber: number;
|
|
37439
|
-
parcelId: string;
|
|
37440
|
-
parcelKind: ParcelKindDto;
|
|
37441
|
-
material?: string | null;
|
|
37442
37663
|
comment?: string | null;
|
|
37443
|
-
covered: MaterialCoveredDto;
|
|
37444
37664
|
toLocationOverride?: LocationDto | null;
|
|
37445
37665
|
}
|
|
37446
37666
|
|
|
37447
|
-
export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
|
|
37448
|
-
|
|
37449
37667
|
export class LocationDto implements ILocationDto {
|
|
37450
37668
|
locationId!: string;
|
|
37451
37669
|
locationName!: string;
|
|
@@ -38265,11 +38483,11 @@ export interface ISearchParcelItemDto {
|
|
|
38265
38483
|
selected: boolean;
|
|
38266
38484
|
}
|
|
38267
38485
|
|
|
38268
|
-
export class
|
|
38269
|
-
results!:
|
|
38486
|
+
export class TrackingParcelListDto implements ITrackingParcelListDto {
|
|
38487
|
+
results!: TrackingParcelDto[];
|
|
38270
38488
|
continuationToken?: string | null;
|
|
38271
38489
|
|
|
38272
|
-
constructor(data?:
|
|
38490
|
+
constructor(data?: ITrackingParcelListDto) {
|
|
38273
38491
|
if (data) {
|
|
38274
38492
|
for (var property in data) {
|
|
38275
38493
|
if (data.hasOwnProperty(property))
|
|
@@ -38286,15 +38504,15 @@ export class TrackingHistoryListDto implements ITrackingHistoryListDto {
|
|
|
38286
38504
|
if (Array.isArray(_data["results"])) {
|
|
38287
38505
|
this.results = [] as any;
|
|
38288
38506
|
for (let item of _data["results"])
|
|
38289
|
-
this.results!.push(
|
|
38507
|
+
this.results!.push(TrackingParcelDto.fromJS(item));
|
|
38290
38508
|
}
|
|
38291
38509
|
this.continuationToken = _data["continuationToken"];
|
|
38292
38510
|
}
|
|
38293
38511
|
}
|
|
38294
38512
|
|
|
38295
|
-
static fromJS(data: any):
|
|
38513
|
+
static fromJS(data: any): TrackingParcelListDto {
|
|
38296
38514
|
data = typeof data === 'object' ? data : {};
|
|
38297
|
-
let result = new
|
|
38515
|
+
let result = new TrackingParcelListDto();
|
|
38298
38516
|
result.init(data);
|
|
38299
38517
|
return result;
|
|
38300
38518
|
}
|
|
@@ -38311,20 +38529,92 @@ export class TrackingHistoryListDto implements ITrackingHistoryListDto {
|
|
|
38311
38529
|
}
|
|
38312
38530
|
}
|
|
38313
38531
|
|
|
38314
|
-
export interface
|
|
38315
|
-
results:
|
|
38532
|
+
export interface ITrackingParcelListDto {
|
|
38533
|
+
results: TrackingParcelDto[];
|
|
38316
38534
|
continuationToken?: string | null;
|
|
38317
38535
|
}
|
|
38318
38536
|
|
|
38537
|
+
export class TrackingParcelDto implements ITrackingParcelDto {
|
|
38538
|
+
parcelId!: string;
|
|
38539
|
+
parcelKind!: ParcelKindDto;
|
|
38540
|
+
partName?: string | null;
|
|
38541
|
+
partNumber?: string | null;
|
|
38542
|
+
quantity?: number | null;
|
|
38543
|
+
material?: string | null;
|
|
38544
|
+
covered?: MaterialCoveredDto | null;
|
|
38545
|
+
items!: TrackingHistoryDto[];
|
|
38546
|
+
|
|
38547
|
+
constructor(data?: ITrackingParcelDto) {
|
|
38548
|
+
if (data) {
|
|
38549
|
+
for (var property in data) {
|
|
38550
|
+
if (data.hasOwnProperty(property))
|
|
38551
|
+
(<any>this)[property] = (<any>data)[property];
|
|
38552
|
+
}
|
|
38553
|
+
}
|
|
38554
|
+
if (!data) {
|
|
38555
|
+
this.items = [];
|
|
38556
|
+
}
|
|
38557
|
+
}
|
|
38558
|
+
|
|
38559
|
+
init(_data?: any) {
|
|
38560
|
+
if (_data) {
|
|
38561
|
+
this.parcelId = _data["parcelId"];
|
|
38562
|
+
this.parcelKind = _data["parcelKind"];
|
|
38563
|
+
this.partName = _data["partName"];
|
|
38564
|
+
this.partNumber = _data["partNumber"];
|
|
38565
|
+
this.quantity = _data["quantity"];
|
|
38566
|
+
this.material = _data["material"];
|
|
38567
|
+
this.covered = _data["covered"];
|
|
38568
|
+
if (Array.isArray(_data["items"])) {
|
|
38569
|
+
this.items = [] as any;
|
|
38570
|
+
for (let item of _data["items"])
|
|
38571
|
+
this.items!.push(TrackingHistoryDto.fromJS(item));
|
|
38572
|
+
}
|
|
38573
|
+
}
|
|
38574
|
+
}
|
|
38575
|
+
|
|
38576
|
+
static fromJS(data: any): TrackingParcelDto {
|
|
38577
|
+
data = typeof data === 'object' ? data : {};
|
|
38578
|
+
let result = new TrackingParcelDto();
|
|
38579
|
+
result.init(data);
|
|
38580
|
+
return result;
|
|
38581
|
+
}
|
|
38582
|
+
|
|
38583
|
+
toJSON(data?: any) {
|
|
38584
|
+
data = typeof data === 'object' ? data : {};
|
|
38585
|
+
data["parcelId"] = this.parcelId;
|
|
38586
|
+
data["parcelKind"] = this.parcelKind;
|
|
38587
|
+
data["partName"] = this.partName;
|
|
38588
|
+
data["partNumber"] = this.partNumber;
|
|
38589
|
+
data["quantity"] = this.quantity;
|
|
38590
|
+
data["material"] = this.material;
|
|
38591
|
+
data["covered"] = this.covered;
|
|
38592
|
+
if (Array.isArray(this.items)) {
|
|
38593
|
+
data["items"] = [];
|
|
38594
|
+
for (let item of this.items)
|
|
38595
|
+
data["items"].push(item.toJSON());
|
|
38596
|
+
}
|
|
38597
|
+
return data;
|
|
38598
|
+
}
|
|
38599
|
+
}
|
|
38600
|
+
|
|
38601
|
+
export interface ITrackingParcelDto {
|
|
38602
|
+
parcelId: string;
|
|
38603
|
+
parcelKind: ParcelKindDto;
|
|
38604
|
+
partName?: string | null;
|
|
38605
|
+
partNumber?: string | null;
|
|
38606
|
+
quantity?: number | null;
|
|
38607
|
+
material?: string | null;
|
|
38608
|
+
covered?: MaterialCoveredDto | null;
|
|
38609
|
+
items: TrackingHistoryDto[];
|
|
38610
|
+
}
|
|
38611
|
+
|
|
38319
38612
|
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
38320
38613
|
trackingId!: string;
|
|
38321
38614
|
palletNumber!: number;
|
|
38322
|
-
|
|
38323
|
-
parcelId!: string;
|
|
38615
|
+
activeBooking?: boolean | null;
|
|
38324
38616
|
currentTracking?: TrackingEventDto | null;
|
|
38325
38617
|
trackingEvents!: TrackingEventDto[];
|
|
38326
|
-
material?: string | null;
|
|
38327
|
-
activeBooking?: boolean | null;
|
|
38328
38618
|
|
|
38329
38619
|
constructor(data?: ITrackingHistoryDto) {
|
|
38330
38620
|
if (data) {
|
|
@@ -38342,16 +38632,13 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
38342
38632
|
if (_data) {
|
|
38343
38633
|
this.trackingId = _data["trackingId"];
|
|
38344
38634
|
this.palletNumber = _data["palletNumber"];
|
|
38345
|
-
this.
|
|
38346
|
-
this.parcelId = _data["parcelId"];
|
|
38635
|
+
this.activeBooking = _data["activeBooking"];
|
|
38347
38636
|
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : <any>undefined;
|
|
38348
38637
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
38349
38638
|
this.trackingEvents = [] as any;
|
|
38350
38639
|
for (let item of _data["trackingEvents"])
|
|
38351
38640
|
this.trackingEvents!.push(TrackingEventDto.fromJS(item));
|
|
38352
38641
|
}
|
|
38353
|
-
this.material = _data["material"];
|
|
38354
|
-
this.activeBooking = _data["activeBooking"];
|
|
38355
38642
|
}
|
|
38356
38643
|
}
|
|
38357
38644
|
|
|
@@ -38366,16 +38653,13 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
38366
38653
|
data = typeof data === 'object' ? data : {};
|
|
38367
38654
|
data["trackingId"] = this.trackingId;
|
|
38368
38655
|
data["palletNumber"] = this.palletNumber;
|
|
38369
|
-
data["
|
|
38370
|
-
data["parcelId"] = this.parcelId;
|
|
38656
|
+
data["activeBooking"] = this.activeBooking;
|
|
38371
38657
|
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : <any>undefined;
|
|
38372
38658
|
if (Array.isArray(this.trackingEvents)) {
|
|
38373
38659
|
data["trackingEvents"] = [];
|
|
38374
38660
|
for (let item of this.trackingEvents)
|
|
38375
38661
|
data["trackingEvents"].push(item.toJSON());
|
|
38376
38662
|
}
|
|
38377
|
-
data["material"] = this.material;
|
|
38378
|
-
data["activeBooking"] = this.activeBooking;
|
|
38379
38663
|
return data;
|
|
38380
38664
|
}
|
|
38381
38665
|
}
|
|
@@ -38383,12 +38667,9 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
38383
38667
|
export interface ITrackingHistoryDto {
|
|
38384
38668
|
trackingId: string;
|
|
38385
38669
|
palletNumber: number;
|
|
38386
|
-
|
|
38387
|
-
parcelId: string;
|
|
38670
|
+
activeBooking?: boolean | null;
|
|
38388
38671
|
currentTracking?: TrackingEventDto | null;
|
|
38389
38672
|
trackingEvents: TrackingEventDto[];
|
|
38390
|
-
material?: string | null;
|
|
38391
|
-
activeBooking?: boolean | null;
|
|
38392
38673
|
}
|
|
38393
38674
|
|
|
38394
38675
|
export class TrackingEventDto implements ITrackingEventDto {
|
|
@@ -38561,70 +38842,11 @@ export interface ITrackingRequestListDto {
|
|
|
38561
38842
|
continuationToken?: string | null;
|
|
38562
38843
|
}
|
|
38563
38844
|
|
|
38564
|
-
export class
|
|
38565
|
-
parcelId!: string;
|
|
38566
|
-
part?: PartDto | null;
|
|
38567
|
-
trackingHistory!: TrackingHistoryDto[];
|
|
38568
|
-
covered!: MaterialCoveredDto;
|
|
38569
|
-
|
|
38570
|
-
constructor(data?: ITrackingParcelDto) {
|
|
38571
|
-
if (data) {
|
|
38572
|
-
for (var property in data) {
|
|
38573
|
-
if (data.hasOwnProperty(property))
|
|
38574
|
-
(<any>this)[property] = (<any>data)[property];
|
|
38575
|
-
}
|
|
38576
|
-
}
|
|
38577
|
-
if (!data) {
|
|
38578
|
-
this.trackingHistory = [];
|
|
38579
|
-
}
|
|
38580
|
-
}
|
|
38581
|
-
|
|
38582
|
-
init(_data?: any) {
|
|
38583
|
-
if (_data) {
|
|
38584
|
-
this.parcelId = _data["parcelId"];
|
|
38585
|
-
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
|
|
38586
|
-
if (Array.isArray(_data["trackingHistory"])) {
|
|
38587
|
-
this.trackingHistory = [] as any;
|
|
38588
|
-
for (let item of _data["trackingHistory"])
|
|
38589
|
-
this.trackingHistory!.push(TrackingHistoryDto.fromJS(item));
|
|
38590
|
-
}
|
|
38591
|
-
this.covered = _data["covered"];
|
|
38592
|
-
}
|
|
38593
|
-
}
|
|
38594
|
-
|
|
38595
|
-
static fromJS(data: any): TrackingParcelDto {
|
|
38596
|
-
data = typeof data === 'object' ? data : {};
|
|
38597
|
-
let result = new TrackingParcelDto();
|
|
38598
|
-
result.init(data);
|
|
38599
|
-
return result;
|
|
38600
|
-
}
|
|
38601
|
-
|
|
38602
|
-
toJSON(data?: any) {
|
|
38603
|
-
data = typeof data === 'object' ? data : {};
|
|
38604
|
-
data["parcelId"] = this.parcelId;
|
|
38605
|
-
data["part"] = this.part ? this.part.toJSON() : <any>undefined;
|
|
38606
|
-
if (Array.isArray(this.trackingHistory)) {
|
|
38607
|
-
data["trackingHistory"] = [];
|
|
38608
|
-
for (let item of this.trackingHistory)
|
|
38609
|
-
data["trackingHistory"].push(item.toJSON());
|
|
38610
|
-
}
|
|
38611
|
-
data["covered"] = this.covered;
|
|
38612
|
-
return data;
|
|
38613
|
-
}
|
|
38614
|
-
}
|
|
38615
|
-
|
|
38616
|
-
export interface ITrackingParcelDto {
|
|
38617
|
-
parcelId: string;
|
|
38618
|
-
part?: PartDto | null;
|
|
38619
|
-
trackingHistory: TrackingHistoryDto[];
|
|
38620
|
-
covered: MaterialCoveredDto;
|
|
38621
|
-
}
|
|
38622
|
-
|
|
38623
|
-
export class TrackingParcelListDto implements ITrackingParcelListDto {
|
|
38845
|
+
export class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
|
|
38624
38846
|
parcelIds!: string[];
|
|
38625
38847
|
includeActiveBookings!: boolean;
|
|
38626
38848
|
|
|
38627
|
-
constructor(data?:
|
|
38849
|
+
constructor(data?: ITrackingParcelRequestListDto) {
|
|
38628
38850
|
if (data) {
|
|
38629
38851
|
for (var property in data) {
|
|
38630
38852
|
if (data.hasOwnProperty(property))
|
|
@@ -38647,9 +38869,9 @@ export class TrackingParcelListDto implements ITrackingParcelListDto {
|
|
|
38647
38869
|
}
|
|
38648
38870
|
}
|
|
38649
38871
|
|
|
38650
|
-
static fromJS(data: any):
|
|
38872
|
+
static fromJS(data: any): TrackingParcelRequestListDto {
|
|
38651
38873
|
data = typeof data === 'object' ? data : {};
|
|
38652
|
-
let result = new
|
|
38874
|
+
let result = new TrackingParcelRequestListDto();
|
|
38653
38875
|
result.init(data);
|
|
38654
38876
|
return result;
|
|
38655
38877
|
}
|
|
@@ -38666,7 +38888,7 @@ export class TrackingParcelListDto implements ITrackingParcelListDto {
|
|
|
38666
38888
|
}
|
|
38667
38889
|
}
|
|
38668
38890
|
|
|
38669
|
-
export interface
|
|
38891
|
+
export interface ITrackingParcelRequestListDto {
|
|
38670
38892
|
parcelIds: string[];
|
|
38671
38893
|
includeActiveBookings: boolean;
|
|
38672
38894
|
}
|