@ignos/api-client 20240828.0.10156 → 20240829.0.10171
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 +11 -8
- package/lib/ignosportal-api.js +23 -3
- package/package.json +1 -1
- package/src/ignosportal-api.ts +36 -12
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1422,8 +1422,8 @@ export interface IMoveBookingClient {
|
|
|
1422
1422
|
getBooking(bookingId: string): Promise<BookingDto>;
|
|
1423
1423
|
getParcelBooking(parcelId: string): Promise<BookingDto[]>;
|
|
1424
1424
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
1425
|
-
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
|
|
1426
|
-
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
|
|
1425
|
+
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
1426
|
+
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
1427
1427
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
1428
1428
|
}
|
|
1429
1429
|
export declare class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
|
|
@@ -1441,15 +1441,15 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1441
1441
|
protected processGetParcelBooking(response: Response): Promise<BookingDto[]>;
|
|
1442
1442
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
1443
1443
|
protected processUpdateBooking(response: Response): Promise<BookingDto>;
|
|
1444
|
-
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
|
|
1445
|
-
protected processCreateBookingTransport(response: Response): Promise<BookingDto>;
|
|
1446
|
-
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
|
|
1447
|
-
protected processCreateBookingGeneral(response: Response): Promise<BookingDto>;
|
|
1444
|
+
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
1445
|
+
protected processCreateBookingTransport(response: Response): Promise<BookingDto[]>;
|
|
1446
|
+
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
1447
|
+
protected processCreateBookingGeneral(response: Response): Promise<BookingDto[]>;
|
|
1448
1448
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
1449
1449
|
protected processUpdateBookingStatus(response: Response): Promise<BookingDto>;
|
|
1450
1450
|
}
|
|
1451
1451
|
export interface IMoveLocationsClient {
|
|
1452
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1452
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1453
1453
|
suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
|
|
1454
1454
|
}
|
|
1455
1455
|
export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
@@ -1459,7 +1459,7 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
|
|
|
1459
1459
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
1460
1460
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
1461
1461
|
});
|
|
1462
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1462
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1463
1463
|
protected processSearchLocations(response: Response): Promise<LocationDto[]>;
|
|
1464
1464
|
suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
|
|
1465
1465
|
protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
|
|
@@ -8136,9 +8136,11 @@ export interface IBookingDeliveryExceptionDto {
|
|
|
8136
8136
|
toLocationId?: string | null;
|
|
8137
8137
|
comment?: string | null;
|
|
8138
8138
|
}
|
|
8139
|
+
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
8139
8140
|
export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
8140
8141
|
items: LocationSuggestionsItemDto[];
|
|
8141
8142
|
locationKindFilter?: LocationKindDto[] | null;
|
|
8143
|
+
locationProfiles?: LocationProfileDto[] | null;
|
|
8142
8144
|
constructor(data?: ILocationSuggestionsDto);
|
|
8143
8145
|
init(_data?: any): void;
|
|
8144
8146
|
static fromJS(data: any): LocationSuggestionsDto;
|
|
@@ -8147,6 +8149,7 @@ export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
|
8147
8149
|
export interface ILocationSuggestionsDto {
|
|
8148
8150
|
items: LocationSuggestionsItemDto[];
|
|
8149
8151
|
locationKindFilter?: LocationKindDto[] | null;
|
|
8152
|
+
locationProfiles?: LocationProfileDto[] | null;
|
|
8150
8153
|
}
|
|
8151
8154
|
export declare class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
|
|
8152
8155
|
parcelId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -11876,7 +11876,11 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
11876
11876
|
return response.text().then((_responseText) => {
|
|
11877
11877
|
let result200 = null;
|
|
11878
11878
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11879
|
-
|
|
11879
|
+
if (Array.isArray(resultData200)) {
|
|
11880
|
+
result200 = [];
|
|
11881
|
+
for (let item of resultData200)
|
|
11882
|
+
result200.push(BookingDto.fromJS(item));
|
|
11883
|
+
}
|
|
11880
11884
|
return result200;
|
|
11881
11885
|
});
|
|
11882
11886
|
}
|
|
@@ -11916,7 +11920,11 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
11916
11920
|
return response.text().then((_responseText) => {
|
|
11917
11921
|
let result200 = null;
|
|
11918
11922
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11919
|
-
|
|
11923
|
+
if (Array.isArray(resultData200)) {
|
|
11924
|
+
result200 = [];
|
|
11925
|
+
for (let item of resultData200)
|
|
11926
|
+
result200.push(BookingDto.fromJS(item));
|
|
11927
|
+
}
|
|
11920
11928
|
return result200;
|
|
11921
11929
|
});
|
|
11922
11930
|
}
|
|
@@ -11975,12 +11983,14 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
11975
11983
|
this.http = http ? http : window;
|
|
11976
11984
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
11977
11985
|
}
|
|
11978
|
-
searchLocations(input, locationKinds) {
|
|
11986
|
+
searchLocations(input, locationKinds, locationProfiles) {
|
|
11979
11987
|
let url_ = this.baseUrl + "/move/locations/search?";
|
|
11980
11988
|
if (input !== undefined && input !== null)
|
|
11981
11989
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
11982
11990
|
if (locationKinds !== undefined && locationKinds !== null)
|
|
11983
11991
|
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
11992
|
+
if (locationProfiles !== undefined && locationProfiles !== null)
|
|
11993
|
+
locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
|
|
11984
11994
|
url_ = url_.replace(/[?&]$/, "");
|
|
11985
11995
|
let options_ = {
|
|
11986
11996
|
method: "GET",
|
|
@@ -31089,6 +31099,11 @@ export class LocationSuggestionsDto {
|
|
|
31089
31099
|
for (let item of _data["locationKindFilter"])
|
|
31090
31100
|
this.locationKindFilter.push(item);
|
|
31091
31101
|
}
|
|
31102
|
+
if (Array.isArray(_data["locationProfiles"])) {
|
|
31103
|
+
this.locationProfiles = [];
|
|
31104
|
+
for (let item of _data["locationProfiles"])
|
|
31105
|
+
this.locationProfiles.push(item);
|
|
31106
|
+
}
|
|
31092
31107
|
}
|
|
31093
31108
|
}
|
|
31094
31109
|
static fromJS(data) {
|
|
@@ -31109,6 +31124,11 @@ export class LocationSuggestionsDto {
|
|
|
31109
31124
|
for (let item of this.locationKindFilter)
|
|
31110
31125
|
data["locationKindFilter"].push(item);
|
|
31111
31126
|
}
|
|
31127
|
+
if (Array.isArray(this.locationProfiles)) {
|
|
31128
|
+
data["locationProfiles"] = [];
|
|
31129
|
+
for (let item of this.locationProfiles)
|
|
31130
|
+
data["locationProfiles"].push(item);
|
|
31131
|
+
}
|
|
31112
31132
|
return data;
|
|
31113
31133
|
}
|
|
31114
31134
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -12479,9 +12479,9 @@ export interface IMoveBookingClient {
|
|
|
12479
12479
|
|
|
12480
12480
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
12481
12481
|
|
|
12482
|
-
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
|
|
12482
|
+
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
12483
12483
|
|
|
12484
|
-
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
|
|
12484
|
+
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
12485
12485
|
|
|
12486
12486
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
12487
12487
|
}
|
|
@@ -12659,7 +12659,7 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
12659
12659
|
return Promise.resolve<BookingDto>(null as any);
|
|
12660
12660
|
}
|
|
12661
12661
|
|
|
12662
|
-
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto> {
|
|
12662
|
+
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]> {
|
|
12663
12663
|
let url_ = this.baseUrl + "/move/booking/transport";
|
|
12664
12664
|
url_ = url_.replace(/[?&]$/, "");
|
|
12665
12665
|
|
|
@@ -12681,14 +12681,18 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
12681
12681
|
});
|
|
12682
12682
|
}
|
|
12683
12683
|
|
|
12684
|
-
protected processCreateBookingTransport(response: Response): Promise<BookingDto> {
|
|
12684
|
+
protected processCreateBookingTransport(response: Response): Promise<BookingDto[]> {
|
|
12685
12685
|
const status = response.status;
|
|
12686
12686
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12687
12687
|
if (status === 200) {
|
|
12688
12688
|
return response.text().then((_responseText) => {
|
|
12689
12689
|
let result200: any = null;
|
|
12690
12690
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12691
|
-
|
|
12691
|
+
if (Array.isArray(resultData200)) {
|
|
12692
|
+
result200 = [] as any;
|
|
12693
|
+
for (let item of resultData200)
|
|
12694
|
+
result200!.push(BookingDto.fromJS(item));
|
|
12695
|
+
}
|
|
12692
12696
|
return result200;
|
|
12693
12697
|
});
|
|
12694
12698
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -12696,10 +12700,10 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
12696
12700
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12697
12701
|
});
|
|
12698
12702
|
}
|
|
12699
|
-
return Promise.resolve<BookingDto>(null as any);
|
|
12703
|
+
return Promise.resolve<BookingDto[]>(null as any);
|
|
12700
12704
|
}
|
|
12701
12705
|
|
|
12702
|
-
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto> {
|
|
12706
|
+
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]> {
|
|
12703
12707
|
let url_ = this.baseUrl + "/move/booking/general";
|
|
12704
12708
|
url_ = url_.replace(/[?&]$/, "");
|
|
12705
12709
|
|
|
@@ -12721,14 +12725,18 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
12721
12725
|
});
|
|
12722
12726
|
}
|
|
12723
12727
|
|
|
12724
|
-
protected processCreateBookingGeneral(response: Response): Promise<BookingDto> {
|
|
12728
|
+
protected processCreateBookingGeneral(response: Response): Promise<BookingDto[]> {
|
|
12725
12729
|
const status = response.status;
|
|
12726
12730
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12727
12731
|
if (status === 200) {
|
|
12728
12732
|
return response.text().then((_responseText) => {
|
|
12729
12733
|
let result200: any = null;
|
|
12730
12734
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12731
|
-
|
|
12735
|
+
if (Array.isArray(resultData200)) {
|
|
12736
|
+
result200 = [] as any;
|
|
12737
|
+
for (let item of resultData200)
|
|
12738
|
+
result200!.push(BookingDto.fromJS(item));
|
|
12739
|
+
}
|
|
12732
12740
|
return result200;
|
|
12733
12741
|
});
|
|
12734
12742
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -12736,7 +12744,7 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
12736
12744
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12737
12745
|
});
|
|
12738
12746
|
}
|
|
12739
|
-
return Promise.resolve<BookingDto>(null as any);
|
|
12747
|
+
return Promise.resolve<BookingDto[]>(null as any);
|
|
12740
12748
|
}
|
|
12741
12749
|
|
|
12742
12750
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto> {
|
|
@@ -12782,7 +12790,7 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
12782
12790
|
|
|
12783
12791
|
export interface IMoveLocationsClient {
|
|
12784
12792
|
|
|
12785
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
|
|
12793
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
12786
12794
|
|
|
12787
12795
|
suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
|
|
12788
12796
|
}
|
|
@@ -12798,12 +12806,14 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
|
|
|
12798
12806
|
this.baseUrl = baseUrl ?? "";
|
|
12799
12807
|
}
|
|
12800
12808
|
|
|
12801
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]> {
|
|
12809
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]> {
|
|
12802
12810
|
let url_ = this.baseUrl + "/move/locations/search?";
|
|
12803
12811
|
if (input !== undefined && input !== null)
|
|
12804
12812
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
12805
12813
|
if (locationKinds !== undefined && locationKinds !== null)
|
|
12806
12814
|
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
12815
|
+
if (locationProfiles !== undefined && locationProfiles !== null)
|
|
12816
|
+
locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
|
|
12807
12817
|
url_ = url_.replace(/[?&]$/, "");
|
|
12808
12818
|
|
|
12809
12819
|
let options_: RequestInit = {
|
|
@@ -38199,9 +38209,12 @@ export interface IBookingDeliveryExceptionDto {
|
|
|
38199
38209
|
comment?: string | null;
|
|
38200
38210
|
}
|
|
38201
38211
|
|
|
38212
|
+
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
38213
|
+
|
|
38202
38214
|
export class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
38203
38215
|
items!: LocationSuggestionsItemDto[];
|
|
38204
38216
|
locationKindFilter?: LocationKindDto[] | null;
|
|
38217
|
+
locationProfiles?: LocationProfileDto[] | null;
|
|
38205
38218
|
|
|
38206
38219
|
constructor(data?: ILocationSuggestionsDto) {
|
|
38207
38220
|
if (data) {
|
|
@@ -38227,6 +38240,11 @@ export class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
|
38227
38240
|
for (let item of _data["locationKindFilter"])
|
|
38228
38241
|
this.locationKindFilter!.push(item);
|
|
38229
38242
|
}
|
|
38243
|
+
if (Array.isArray(_data["locationProfiles"])) {
|
|
38244
|
+
this.locationProfiles = [] as any;
|
|
38245
|
+
for (let item of _data["locationProfiles"])
|
|
38246
|
+
this.locationProfiles!.push(item);
|
|
38247
|
+
}
|
|
38230
38248
|
}
|
|
38231
38249
|
}
|
|
38232
38250
|
|
|
@@ -38249,6 +38267,11 @@ export class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
|
38249
38267
|
for (let item of this.locationKindFilter)
|
|
38250
38268
|
data["locationKindFilter"].push(item);
|
|
38251
38269
|
}
|
|
38270
|
+
if (Array.isArray(this.locationProfiles)) {
|
|
38271
|
+
data["locationProfiles"] = [];
|
|
38272
|
+
for (let item of this.locationProfiles)
|
|
38273
|
+
data["locationProfiles"].push(item);
|
|
38274
|
+
}
|
|
38252
38275
|
return data;
|
|
38253
38276
|
}
|
|
38254
38277
|
}
|
|
@@ -38256,6 +38279,7 @@ export class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
|
38256
38279
|
export interface ILocationSuggestionsDto {
|
|
38257
38280
|
items: LocationSuggestionsItemDto[];
|
|
38258
38281
|
locationKindFilter?: LocationKindDto[] | null;
|
|
38282
|
+
locationProfiles?: LocationProfileDto[] | null;
|
|
38259
38283
|
}
|
|
38260
38284
|
|
|
38261
38285
|
export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
|