@ignos/api-client 20240531.0.9386 → 20240603.0.9392
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 +6 -2
- package/lib/ignosportal-api.js +18 -7
- package/package.json +1 -1
- package/src/ignosportal-api.ts +22 -7
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -585,7 +585,7 @@ export interface IMoveTrackingClient {
|
|
|
585
585
|
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
586
586
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<void>;
|
|
587
587
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<void>;
|
|
588
|
-
deleteTrackingHistory(
|
|
588
|
+
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
589
589
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
590
590
|
}
|
|
591
591
|
export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
@@ -605,7 +605,7 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
605
605
|
protected processCreateTrackingEvents(response: Response): Promise<void>;
|
|
606
606
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<void>;
|
|
607
607
|
protected processCreateTrackingHistory(response: Response): Promise<void>;
|
|
608
|
-
deleteTrackingHistory(
|
|
608
|
+
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
609
609
|
protected processDeleteTrackingHistory(response: Response): Promise<void>;
|
|
610
610
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
611
611
|
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
@@ -4158,6 +4158,7 @@ export interface ILocationDto {
|
|
|
4158
4158
|
}
|
|
4159
4159
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
4160
4160
|
export declare class BookingRequestListDto implements IBookingRequestListDto {
|
|
4161
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
4161
4162
|
continuationToken?: string | null;
|
|
4162
4163
|
constructor(data?: IBookingRequestListDto);
|
|
4163
4164
|
init(_data?: any): void;
|
|
@@ -4165,6 +4166,7 @@ export declare class BookingRequestListDto implements IBookingRequestListDto {
|
|
|
4165
4166
|
toJSON(data?: any): any;
|
|
4166
4167
|
}
|
|
4167
4168
|
export interface IBookingRequestListDto {
|
|
4169
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
4168
4170
|
continuationToken?: string | null;
|
|
4169
4171
|
}
|
|
4170
4172
|
export declare class BookingRequestDto implements IBookingRequestDto {
|
|
@@ -4185,6 +4187,7 @@ export interface IBookingRequestDto {
|
|
|
4185
4187
|
}
|
|
4186
4188
|
export declare class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
4187
4189
|
trackingId: string;
|
|
4190
|
+
comment?: string | null;
|
|
4188
4191
|
constructor(data?: IBookingItemRequestDto);
|
|
4189
4192
|
init(_data?: any): void;
|
|
4190
4193
|
static fromJS(data: any): BookingItemRequestDto;
|
|
@@ -4192,6 +4195,7 @@ export declare class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
4192
4195
|
}
|
|
4193
4196
|
export interface IBookingItemRequestDto {
|
|
4194
4197
|
trackingId: string;
|
|
4198
|
+
comment?: string | null;
|
|
4195
4199
|
}
|
|
4196
4200
|
export declare class BookingUpdateDto implements IBookingUpdateDto {
|
|
4197
4201
|
bookingId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -4096,16 +4096,15 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4096
4096
|
}
|
|
4097
4097
|
return Promise.resolve(null);
|
|
4098
4098
|
}
|
|
4099
|
-
deleteTrackingHistory(
|
|
4100
|
-
let url_ = this.baseUrl + "/move/tracking/history";
|
|
4099
|
+
deleteTrackingHistory(trackingId) {
|
|
4100
|
+
let url_ = this.baseUrl + "/move/tracking/history/{trackingId}";
|
|
4101
|
+
if (trackingId === undefined || trackingId === null)
|
|
4102
|
+
throw new Error("The parameter 'trackingId' must be defined.");
|
|
4103
|
+
url_ = url_.replace("{trackingId}", encodeURIComponent("" + trackingId));
|
|
4101
4104
|
url_ = url_.replace(/[?&]$/, "");
|
|
4102
|
-
const content_ = JSON.stringify(trackingUpdates);
|
|
4103
4105
|
let options_ = {
|
|
4104
|
-
body: content_,
|
|
4105
4106
|
method: "DELETE",
|
|
4106
|
-
headers: {
|
|
4107
|
-
"Content-Type": "application/json",
|
|
4108
|
-
}
|
|
4107
|
+
headers: {}
|
|
4109
4108
|
};
|
|
4110
4109
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4111
4110
|
return this.http.fetch(url_, transformedOptions_);
|
|
@@ -22412,6 +22411,11 @@ export class BookingRequestListDto {
|
|
|
22412
22411
|
}
|
|
22413
22412
|
init(_data) {
|
|
22414
22413
|
if (_data) {
|
|
22414
|
+
if (Array.isArray(_data["bookingStatusFilter"])) {
|
|
22415
|
+
this.bookingStatusFilter = [];
|
|
22416
|
+
for (let item of _data["bookingStatusFilter"])
|
|
22417
|
+
this.bookingStatusFilter.push(item);
|
|
22418
|
+
}
|
|
22415
22419
|
this.continuationToken = _data["continuationToken"];
|
|
22416
22420
|
}
|
|
22417
22421
|
}
|
|
@@ -22423,6 +22427,11 @@ export class BookingRequestListDto {
|
|
|
22423
22427
|
}
|
|
22424
22428
|
toJSON(data) {
|
|
22425
22429
|
data = typeof data === 'object' ? data : {};
|
|
22430
|
+
if (Array.isArray(this.bookingStatusFilter)) {
|
|
22431
|
+
data["bookingStatusFilter"] = [];
|
|
22432
|
+
for (let item of this.bookingStatusFilter)
|
|
22433
|
+
data["bookingStatusFilter"].push(item);
|
|
22434
|
+
}
|
|
22426
22435
|
data["continuationToken"] = this.continuationToken;
|
|
22427
22436
|
return data;
|
|
22428
22437
|
}
|
|
@@ -22482,6 +22491,7 @@ export class BookingItemRequestDto {
|
|
|
22482
22491
|
init(_data) {
|
|
22483
22492
|
if (_data) {
|
|
22484
22493
|
this.trackingId = _data["trackingId"];
|
|
22494
|
+
this.comment = _data["comment"];
|
|
22485
22495
|
}
|
|
22486
22496
|
}
|
|
22487
22497
|
static fromJS(data) {
|
|
@@ -22493,6 +22503,7 @@ export class BookingItemRequestDto {
|
|
|
22493
22503
|
toJSON(data) {
|
|
22494
22504
|
data = typeof data === 'object' ? data : {};
|
|
22495
22505
|
data["trackingId"] = this.trackingId;
|
|
22506
|
+
data["comment"] = this.comment;
|
|
22496
22507
|
return data;
|
|
22497
22508
|
}
|
|
22498
22509
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -4224,7 +4224,7 @@ export interface IMoveTrackingClient {
|
|
|
4224
4224
|
|
|
4225
4225
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<void>;
|
|
4226
4226
|
|
|
4227
|
-
deleteTrackingHistory(
|
|
4227
|
+
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
4228
4228
|
|
|
4229
4229
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
4230
4230
|
}
|
|
@@ -4434,17 +4434,16 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4434
4434
|
return Promise.resolve<void>(null as any);
|
|
4435
4435
|
}
|
|
4436
4436
|
|
|
4437
|
-
deleteTrackingHistory(
|
|
4438
|
-
let url_ = this.baseUrl + "/move/tracking/history";
|
|
4437
|
+
deleteTrackingHistory(trackingId: string): Promise<void> {
|
|
4438
|
+
let url_ = this.baseUrl + "/move/tracking/history/{trackingId}";
|
|
4439
|
+
if (trackingId === undefined || trackingId === null)
|
|
4440
|
+
throw new Error("The parameter 'trackingId' must be defined.");
|
|
4441
|
+
url_ = url_.replace("{trackingId}", encodeURIComponent("" + trackingId));
|
|
4439
4442
|
url_ = url_.replace(/[?&]$/, "");
|
|
4440
4443
|
|
|
4441
|
-
const content_ = JSON.stringify(trackingUpdates);
|
|
4442
|
-
|
|
4443
4444
|
let options_: RequestInit = {
|
|
4444
|
-
body: content_,
|
|
4445
4445
|
method: "DELETE",
|
|
4446
4446
|
headers: {
|
|
4447
|
-
"Content-Type": "application/json",
|
|
4448
4447
|
}
|
|
4449
4448
|
};
|
|
4450
4449
|
|
|
@@ -25600,6 +25599,7 @@ export interface ILocationDto {
|
|
|
25600
25599
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
25601
25600
|
|
|
25602
25601
|
export class BookingRequestListDto implements IBookingRequestListDto {
|
|
25602
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
25603
25603
|
continuationToken?: string | null;
|
|
25604
25604
|
|
|
25605
25605
|
constructor(data?: IBookingRequestListDto) {
|
|
@@ -25613,6 +25613,11 @@ export class BookingRequestListDto implements IBookingRequestListDto {
|
|
|
25613
25613
|
|
|
25614
25614
|
init(_data?: any) {
|
|
25615
25615
|
if (_data) {
|
|
25616
|
+
if (Array.isArray(_data["bookingStatusFilter"])) {
|
|
25617
|
+
this.bookingStatusFilter = [] as any;
|
|
25618
|
+
for (let item of _data["bookingStatusFilter"])
|
|
25619
|
+
this.bookingStatusFilter!.push(item);
|
|
25620
|
+
}
|
|
25616
25621
|
this.continuationToken = _data["continuationToken"];
|
|
25617
25622
|
}
|
|
25618
25623
|
}
|
|
@@ -25626,12 +25631,18 @@ export class BookingRequestListDto implements IBookingRequestListDto {
|
|
|
25626
25631
|
|
|
25627
25632
|
toJSON(data?: any) {
|
|
25628
25633
|
data = typeof data === 'object' ? data : {};
|
|
25634
|
+
if (Array.isArray(this.bookingStatusFilter)) {
|
|
25635
|
+
data["bookingStatusFilter"] = [];
|
|
25636
|
+
for (let item of this.bookingStatusFilter)
|
|
25637
|
+
data["bookingStatusFilter"].push(item);
|
|
25638
|
+
}
|
|
25629
25639
|
data["continuationToken"] = this.continuationToken;
|
|
25630
25640
|
return data;
|
|
25631
25641
|
}
|
|
25632
25642
|
}
|
|
25633
25643
|
|
|
25634
25644
|
export interface IBookingRequestListDto {
|
|
25645
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
25635
25646
|
continuationToken?: string | null;
|
|
25636
25647
|
}
|
|
25637
25648
|
|
|
@@ -25696,6 +25707,7 @@ export interface IBookingRequestDto {
|
|
|
25696
25707
|
|
|
25697
25708
|
export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
25698
25709
|
trackingId!: string;
|
|
25710
|
+
comment?: string | null;
|
|
25699
25711
|
|
|
25700
25712
|
constructor(data?: IBookingItemRequestDto) {
|
|
25701
25713
|
if (data) {
|
|
@@ -25709,6 +25721,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
25709
25721
|
init(_data?: any) {
|
|
25710
25722
|
if (_data) {
|
|
25711
25723
|
this.trackingId = _data["trackingId"];
|
|
25724
|
+
this.comment = _data["comment"];
|
|
25712
25725
|
}
|
|
25713
25726
|
}
|
|
25714
25727
|
|
|
@@ -25722,12 +25735,14 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
25722
25735
|
toJSON(data?: any) {
|
|
25723
25736
|
data = typeof data === 'object' ? data : {};
|
|
25724
25737
|
data["trackingId"] = this.trackingId;
|
|
25738
|
+
data["comment"] = this.comment;
|
|
25725
25739
|
return data;
|
|
25726
25740
|
}
|
|
25727
25741
|
}
|
|
25728
25742
|
|
|
25729
25743
|
export interface IBookingItemRequestDto {
|
|
25730
25744
|
trackingId: string;
|
|
25745
|
+
comment?: string | null;
|
|
25731
25746
|
}
|
|
25732
25747
|
|
|
25733
25748
|
export class BookingUpdateDto implements IBookingUpdateDto {
|