@ignos/api-client 20240531.0.9386 → 20240603.0.9394
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 +8 -4
- package/lib/ignosportal-api.js +23 -16
- package/package.json +1 -1
- package/src/ignosportal-api.ts +29 -17
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -585,8 +585,8 @@ 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(
|
|
589
|
-
createLabel(
|
|
588
|
+
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
589
|
+
createLabel(trackingIds: string[]): Promise<FileResponse>;
|
|
590
590
|
}
|
|
591
591
|
export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
592
592
|
private http;
|
|
@@ -605,9 +605,9 @@ 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
|
-
createLabel(
|
|
610
|
+
createLabel(trackingIds: string[]): Promise<FileResponse>;
|
|
611
611
|
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
612
612
|
}
|
|
613
613
|
export interface IMoveWorkOrdersClient {
|
|
@@ -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_);
|
|
@@ -4132,19 +4131,15 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4132
4131
|
}
|
|
4133
4132
|
return Promise.resolve(null);
|
|
4134
4133
|
}
|
|
4135
|
-
createLabel(
|
|
4136
|
-
let url_ = this.baseUrl + "/move/tracking/
|
|
4137
|
-
if (workOrderId === undefined || workOrderId === null)
|
|
4138
|
-
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
4139
|
-
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
4140
|
-
if (palletCount === null)
|
|
4141
|
-
throw new Error("The parameter 'palletCount' cannot be null.");
|
|
4142
|
-
else if (palletCount !== undefined)
|
|
4143
|
-
url_ += "palletCount=" + encodeURIComponent("" + palletCount) + "&";
|
|
4134
|
+
createLabel(trackingIds) {
|
|
4135
|
+
let url_ = this.baseUrl + "/move/tracking/label";
|
|
4144
4136
|
url_ = url_.replace(/[?&]$/, "");
|
|
4137
|
+
const content_ = JSON.stringify(trackingIds);
|
|
4145
4138
|
let options_ = {
|
|
4139
|
+
body: content_,
|
|
4146
4140
|
method: "POST",
|
|
4147
4141
|
headers: {
|
|
4142
|
+
"Content-Type": "application/json",
|
|
4148
4143
|
"Accept": "application/octet-stream"
|
|
4149
4144
|
}
|
|
4150
4145
|
};
|
|
@@ -22412,6 +22407,11 @@ export class BookingRequestListDto {
|
|
|
22412
22407
|
}
|
|
22413
22408
|
init(_data) {
|
|
22414
22409
|
if (_data) {
|
|
22410
|
+
if (Array.isArray(_data["bookingStatusFilter"])) {
|
|
22411
|
+
this.bookingStatusFilter = [];
|
|
22412
|
+
for (let item of _data["bookingStatusFilter"])
|
|
22413
|
+
this.bookingStatusFilter.push(item);
|
|
22414
|
+
}
|
|
22415
22415
|
this.continuationToken = _data["continuationToken"];
|
|
22416
22416
|
}
|
|
22417
22417
|
}
|
|
@@ -22423,6 +22423,11 @@ export class BookingRequestListDto {
|
|
|
22423
22423
|
}
|
|
22424
22424
|
toJSON(data) {
|
|
22425
22425
|
data = typeof data === 'object' ? data : {};
|
|
22426
|
+
if (Array.isArray(this.bookingStatusFilter)) {
|
|
22427
|
+
data["bookingStatusFilter"] = [];
|
|
22428
|
+
for (let item of this.bookingStatusFilter)
|
|
22429
|
+
data["bookingStatusFilter"].push(item);
|
|
22430
|
+
}
|
|
22426
22431
|
data["continuationToken"] = this.continuationToken;
|
|
22427
22432
|
return data;
|
|
22428
22433
|
}
|
|
@@ -22482,6 +22487,7 @@ export class BookingItemRequestDto {
|
|
|
22482
22487
|
init(_data) {
|
|
22483
22488
|
if (_data) {
|
|
22484
22489
|
this.trackingId = _data["trackingId"];
|
|
22490
|
+
this.comment = _data["comment"];
|
|
22485
22491
|
}
|
|
22486
22492
|
}
|
|
22487
22493
|
static fromJS(data) {
|
|
@@ -22493,6 +22499,7 @@ export class BookingItemRequestDto {
|
|
|
22493
22499
|
toJSON(data) {
|
|
22494
22500
|
data = typeof data === 'object' ? data : {};
|
|
22495
22501
|
data["trackingId"] = this.trackingId;
|
|
22502
|
+
data["comment"] = this.comment;
|
|
22496
22503
|
return data;
|
|
22497
22504
|
}
|
|
22498
22505
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -4224,9 +4224,9 @@ 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
|
-
createLabel(
|
|
4229
|
+
createLabel(trackingIds: string[]): Promise<FileResponse>;
|
|
4230
4230
|
}
|
|
4231
4231
|
|
|
4232
4232
|
export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
@@ -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
|
|
|
@@ -4470,20 +4469,17 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4470
4469
|
return Promise.resolve<void>(null as any);
|
|
4471
4470
|
}
|
|
4472
4471
|
|
|
4473
|
-
createLabel(
|
|
4474
|
-
let url_ = this.baseUrl + "/move/tracking/
|
|
4475
|
-
if (workOrderId === undefined || workOrderId === null)
|
|
4476
|
-
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
4477
|
-
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
4478
|
-
if (palletCount === null)
|
|
4479
|
-
throw new Error("The parameter 'palletCount' cannot be null.");
|
|
4480
|
-
else if (palletCount !== undefined)
|
|
4481
|
-
url_ += "palletCount=" + encodeURIComponent("" + palletCount) + "&";
|
|
4472
|
+
createLabel(trackingIds: string[]): Promise<FileResponse> {
|
|
4473
|
+
let url_ = this.baseUrl + "/move/tracking/label";
|
|
4482
4474
|
url_ = url_.replace(/[?&]$/, "");
|
|
4483
4475
|
|
|
4476
|
+
const content_ = JSON.stringify(trackingIds);
|
|
4477
|
+
|
|
4484
4478
|
let options_: RequestInit = {
|
|
4479
|
+
body: content_,
|
|
4485
4480
|
method: "POST",
|
|
4486
4481
|
headers: {
|
|
4482
|
+
"Content-Type": "application/json",
|
|
4487
4483
|
"Accept": "application/octet-stream"
|
|
4488
4484
|
}
|
|
4489
4485
|
};
|
|
@@ -25600,6 +25596,7 @@ export interface ILocationDto {
|
|
|
25600
25596
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
25601
25597
|
|
|
25602
25598
|
export class BookingRequestListDto implements IBookingRequestListDto {
|
|
25599
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
25603
25600
|
continuationToken?: string | null;
|
|
25604
25601
|
|
|
25605
25602
|
constructor(data?: IBookingRequestListDto) {
|
|
@@ -25613,6 +25610,11 @@ export class BookingRequestListDto implements IBookingRequestListDto {
|
|
|
25613
25610
|
|
|
25614
25611
|
init(_data?: any) {
|
|
25615
25612
|
if (_data) {
|
|
25613
|
+
if (Array.isArray(_data["bookingStatusFilter"])) {
|
|
25614
|
+
this.bookingStatusFilter = [] as any;
|
|
25615
|
+
for (let item of _data["bookingStatusFilter"])
|
|
25616
|
+
this.bookingStatusFilter!.push(item);
|
|
25617
|
+
}
|
|
25616
25618
|
this.continuationToken = _data["continuationToken"];
|
|
25617
25619
|
}
|
|
25618
25620
|
}
|
|
@@ -25626,12 +25628,18 @@ export class BookingRequestListDto implements IBookingRequestListDto {
|
|
|
25626
25628
|
|
|
25627
25629
|
toJSON(data?: any) {
|
|
25628
25630
|
data = typeof data === 'object' ? data : {};
|
|
25631
|
+
if (Array.isArray(this.bookingStatusFilter)) {
|
|
25632
|
+
data["bookingStatusFilter"] = [];
|
|
25633
|
+
for (let item of this.bookingStatusFilter)
|
|
25634
|
+
data["bookingStatusFilter"].push(item);
|
|
25635
|
+
}
|
|
25629
25636
|
data["continuationToken"] = this.continuationToken;
|
|
25630
25637
|
return data;
|
|
25631
25638
|
}
|
|
25632
25639
|
}
|
|
25633
25640
|
|
|
25634
25641
|
export interface IBookingRequestListDto {
|
|
25642
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
25635
25643
|
continuationToken?: string | null;
|
|
25636
25644
|
}
|
|
25637
25645
|
|
|
@@ -25696,6 +25704,7 @@ export interface IBookingRequestDto {
|
|
|
25696
25704
|
|
|
25697
25705
|
export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
25698
25706
|
trackingId!: string;
|
|
25707
|
+
comment?: string | null;
|
|
25699
25708
|
|
|
25700
25709
|
constructor(data?: IBookingItemRequestDto) {
|
|
25701
25710
|
if (data) {
|
|
@@ -25709,6 +25718,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
25709
25718
|
init(_data?: any) {
|
|
25710
25719
|
if (_data) {
|
|
25711
25720
|
this.trackingId = _data["trackingId"];
|
|
25721
|
+
this.comment = _data["comment"];
|
|
25712
25722
|
}
|
|
25713
25723
|
}
|
|
25714
25724
|
|
|
@@ -25722,12 +25732,14 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
25722
25732
|
toJSON(data?: any) {
|
|
25723
25733
|
data = typeof data === 'object' ? data : {};
|
|
25724
25734
|
data["trackingId"] = this.trackingId;
|
|
25735
|
+
data["comment"] = this.comment;
|
|
25725
25736
|
return data;
|
|
25726
25737
|
}
|
|
25727
25738
|
}
|
|
25728
25739
|
|
|
25729
25740
|
export interface IBookingItemRequestDto {
|
|
25730
25741
|
trackingId: string;
|
|
25742
|
+
comment?: string | null;
|
|
25731
25743
|
}
|
|
25732
25744
|
|
|
25733
25745
|
export class BookingUpdateDto implements IBookingUpdateDto {
|