@ignos/api-client 20240910.0.10294 → 20240910.0.10302
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 +2 -26
- package/lib/ignosportal-api.js +9 -89
- package/package.json +1 -1
- package/src/ignosportal-api.ts +10 -115
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1481,7 +1481,7 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1481
1481
|
}
|
|
1482
1482
|
export interface IMoveLocationsClient {
|
|
1483
1483
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1484
|
-
suggestionsLocations(
|
|
1484
|
+
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
1485
1485
|
}
|
|
1486
1486
|
export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
1487
1487
|
private http;
|
|
@@ -1492,7 +1492,7 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
|
|
|
1492
1492
|
});
|
|
1493
1493
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1494
1494
|
protected processSearchLocations(response: Response): Promise<LocationDto[]>;
|
|
1495
|
-
suggestionsLocations(
|
|
1495
|
+
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
1496
1496
|
protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
|
|
1497
1497
|
}
|
|
1498
1498
|
export interface IMoveMaterialsClient {
|
|
@@ -8196,30 +8196,6 @@ export interface IBookingStatusUpdateDto {
|
|
|
8196
8196
|
deliveryExceptionComment?: string | null;
|
|
8197
8197
|
}
|
|
8198
8198
|
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environment" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
8199
|
-
export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
8200
|
-
items: LocationSuggestionsItemDto[];
|
|
8201
|
-
locationKindFilter?: LocationKindDto[] | null;
|
|
8202
|
-
locationProfiles?: LocationProfileDto[] | null;
|
|
8203
|
-
constructor(data?: ILocationSuggestionsDto);
|
|
8204
|
-
init(_data?: any): void;
|
|
8205
|
-
static fromJS(data: any): LocationSuggestionsDto;
|
|
8206
|
-
toJSON(data?: any): any;
|
|
8207
|
-
}
|
|
8208
|
-
export interface ILocationSuggestionsDto {
|
|
8209
|
-
items: LocationSuggestionsItemDto[];
|
|
8210
|
-
locationKindFilter?: LocationKindDto[] | null;
|
|
8211
|
-
locationProfiles?: LocationProfileDto[] | null;
|
|
8212
|
-
}
|
|
8213
|
-
export declare class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
|
|
8214
|
-
parcelId: string;
|
|
8215
|
-
constructor(data?: ILocationSuggestionsItemDto);
|
|
8216
|
-
init(_data?: any): void;
|
|
8217
|
-
static fromJS(data: any): LocationSuggestionsItemDto;
|
|
8218
|
-
toJSON(data?: any): any;
|
|
8219
|
-
}
|
|
8220
|
-
export interface ILocationSuggestionsItemDto {
|
|
8221
|
-
parcelId: string;
|
|
8222
|
-
}
|
|
8223
8199
|
export declare class MaterialDesciptionDto implements IMaterialDesciptionDto {
|
|
8224
8200
|
materialId: string;
|
|
8225
8201
|
materialName: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -12231,15 +12231,18 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
12231
12231
|
}
|
|
12232
12232
|
return Promise.resolve(null);
|
|
12233
12233
|
}
|
|
12234
|
-
suggestionsLocations(
|
|
12235
|
-
let url_ = this.baseUrl + "/move/locations/suggestions";
|
|
12234
|
+
suggestionsLocations(locationProfiles, count) {
|
|
12235
|
+
let url_ = this.baseUrl + "/move/locations/suggestions?";
|
|
12236
|
+
if (locationProfiles !== undefined && locationProfiles !== null)
|
|
12237
|
+
locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
|
|
12238
|
+
if (count === null)
|
|
12239
|
+
throw new Error("The parameter 'count' cannot be null.");
|
|
12240
|
+
else if (count !== undefined)
|
|
12241
|
+
url_ += "count=" + encodeURIComponent("" + count) + "&";
|
|
12236
12242
|
url_ = url_.replace(/[?&]$/, "");
|
|
12237
|
-
const content_ = JSON.stringify(locationSuggestions);
|
|
12238
12243
|
let options_ = {
|
|
12239
|
-
|
|
12240
|
-
method: "POST",
|
|
12244
|
+
method: "GET",
|
|
12241
12245
|
headers: {
|
|
12242
|
-
"Content-Type": "application/json",
|
|
12243
12246
|
"Accept": "application/json"
|
|
12244
12247
|
}
|
|
12245
12248
|
};
|
|
@@ -31397,89 +31400,6 @@ export class BookingStatusUpdateDto {
|
|
|
31397
31400
|
return data;
|
|
31398
31401
|
}
|
|
31399
31402
|
}
|
|
31400
|
-
export class LocationSuggestionsDto {
|
|
31401
|
-
constructor(data) {
|
|
31402
|
-
if (data) {
|
|
31403
|
-
for (var property in data) {
|
|
31404
|
-
if (data.hasOwnProperty(property))
|
|
31405
|
-
this[property] = data[property];
|
|
31406
|
-
}
|
|
31407
|
-
}
|
|
31408
|
-
if (!data) {
|
|
31409
|
-
this.items = [];
|
|
31410
|
-
}
|
|
31411
|
-
}
|
|
31412
|
-
init(_data) {
|
|
31413
|
-
if (_data) {
|
|
31414
|
-
if (Array.isArray(_data["items"])) {
|
|
31415
|
-
this.items = [];
|
|
31416
|
-
for (let item of _data["items"])
|
|
31417
|
-
this.items.push(LocationSuggestionsItemDto.fromJS(item));
|
|
31418
|
-
}
|
|
31419
|
-
if (Array.isArray(_data["locationKindFilter"])) {
|
|
31420
|
-
this.locationKindFilter = [];
|
|
31421
|
-
for (let item of _data["locationKindFilter"])
|
|
31422
|
-
this.locationKindFilter.push(item);
|
|
31423
|
-
}
|
|
31424
|
-
if (Array.isArray(_data["locationProfiles"])) {
|
|
31425
|
-
this.locationProfiles = [];
|
|
31426
|
-
for (let item of _data["locationProfiles"])
|
|
31427
|
-
this.locationProfiles.push(item);
|
|
31428
|
-
}
|
|
31429
|
-
}
|
|
31430
|
-
}
|
|
31431
|
-
static fromJS(data) {
|
|
31432
|
-
data = typeof data === 'object' ? data : {};
|
|
31433
|
-
let result = new LocationSuggestionsDto();
|
|
31434
|
-
result.init(data);
|
|
31435
|
-
return result;
|
|
31436
|
-
}
|
|
31437
|
-
toJSON(data) {
|
|
31438
|
-
data = typeof data === 'object' ? data : {};
|
|
31439
|
-
if (Array.isArray(this.items)) {
|
|
31440
|
-
data["items"] = [];
|
|
31441
|
-
for (let item of this.items)
|
|
31442
|
-
data["items"].push(item.toJSON());
|
|
31443
|
-
}
|
|
31444
|
-
if (Array.isArray(this.locationKindFilter)) {
|
|
31445
|
-
data["locationKindFilter"] = [];
|
|
31446
|
-
for (let item of this.locationKindFilter)
|
|
31447
|
-
data["locationKindFilter"].push(item);
|
|
31448
|
-
}
|
|
31449
|
-
if (Array.isArray(this.locationProfiles)) {
|
|
31450
|
-
data["locationProfiles"] = [];
|
|
31451
|
-
for (let item of this.locationProfiles)
|
|
31452
|
-
data["locationProfiles"].push(item);
|
|
31453
|
-
}
|
|
31454
|
-
return data;
|
|
31455
|
-
}
|
|
31456
|
-
}
|
|
31457
|
-
export class LocationSuggestionsItemDto {
|
|
31458
|
-
constructor(data) {
|
|
31459
|
-
if (data) {
|
|
31460
|
-
for (var property in data) {
|
|
31461
|
-
if (data.hasOwnProperty(property))
|
|
31462
|
-
this[property] = data[property];
|
|
31463
|
-
}
|
|
31464
|
-
}
|
|
31465
|
-
}
|
|
31466
|
-
init(_data) {
|
|
31467
|
-
if (_data) {
|
|
31468
|
-
this.parcelId = _data["parcelId"];
|
|
31469
|
-
}
|
|
31470
|
-
}
|
|
31471
|
-
static fromJS(data) {
|
|
31472
|
-
data = typeof data === 'object' ? data : {};
|
|
31473
|
-
let result = new LocationSuggestionsItemDto();
|
|
31474
|
-
result.init(data);
|
|
31475
|
-
return result;
|
|
31476
|
-
}
|
|
31477
|
-
toJSON(data) {
|
|
31478
|
-
data = typeof data === 'object' ? data : {};
|
|
31479
|
-
data["parcelId"] = this.parcelId;
|
|
31480
|
-
return data;
|
|
31481
|
-
}
|
|
31482
|
-
}
|
|
31483
31403
|
export class MaterialDesciptionDto {
|
|
31484
31404
|
constructor(data) {
|
|
31485
31405
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -13011,7 +13011,7 @@ export interface IMoveLocationsClient {
|
|
|
13011
13011
|
|
|
13012
13012
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
13013
13013
|
|
|
13014
|
-
suggestionsLocations(
|
|
13014
|
+
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
13015
13015
|
}
|
|
13016
13016
|
|
|
13017
13017
|
export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
@@ -13071,17 +13071,19 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
|
|
|
13071
13071
|
return Promise.resolve<LocationDto[]>(null as any);
|
|
13072
13072
|
}
|
|
13073
13073
|
|
|
13074
|
-
suggestionsLocations(
|
|
13075
|
-
let url_ = this.baseUrl + "/move/locations/suggestions";
|
|
13074
|
+
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]> {
|
|
13075
|
+
let url_ = this.baseUrl + "/move/locations/suggestions?";
|
|
13076
|
+
if (locationProfiles !== undefined && locationProfiles !== null)
|
|
13077
|
+
locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
|
|
13078
|
+
if (count === null)
|
|
13079
|
+
throw new Error("The parameter 'count' cannot be null.");
|
|
13080
|
+
else if (count !== undefined)
|
|
13081
|
+
url_ += "count=" + encodeURIComponent("" + count) + "&";
|
|
13076
13082
|
url_ = url_.replace(/[?&]$/, "");
|
|
13077
13083
|
|
|
13078
|
-
const content_ = JSON.stringify(locationSuggestions);
|
|
13079
|
-
|
|
13080
13084
|
let options_: RequestInit = {
|
|
13081
|
-
|
|
13082
|
-
method: "POST",
|
|
13085
|
+
method: "GET",
|
|
13083
13086
|
headers: {
|
|
13084
|
-
"Content-Type": "application/json",
|
|
13085
13087
|
"Accept": "application/json"
|
|
13086
13088
|
}
|
|
13087
13089
|
};
|
|
@@ -38577,113 +38579,6 @@ export interface IBookingStatusUpdateDto {
|
|
|
38577
38579
|
|
|
38578
38580
|
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environment" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
38579
38581
|
|
|
38580
|
-
export class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
38581
|
-
items!: LocationSuggestionsItemDto[];
|
|
38582
|
-
locationKindFilter?: LocationKindDto[] | null;
|
|
38583
|
-
locationProfiles?: LocationProfileDto[] | null;
|
|
38584
|
-
|
|
38585
|
-
constructor(data?: ILocationSuggestionsDto) {
|
|
38586
|
-
if (data) {
|
|
38587
|
-
for (var property in data) {
|
|
38588
|
-
if (data.hasOwnProperty(property))
|
|
38589
|
-
(<any>this)[property] = (<any>data)[property];
|
|
38590
|
-
}
|
|
38591
|
-
}
|
|
38592
|
-
if (!data) {
|
|
38593
|
-
this.items = [];
|
|
38594
|
-
}
|
|
38595
|
-
}
|
|
38596
|
-
|
|
38597
|
-
init(_data?: any) {
|
|
38598
|
-
if (_data) {
|
|
38599
|
-
if (Array.isArray(_data["items"])) {
|
|
38600
|
-
this.items = [] as any;
|
|
38601
|
-
for (let item of _data["items"])
|
|
38602
|
-
this.items!.push(LocationSuggestionsItemDto.fromJS(item));
|
|
38603
|
-
}
|
|
38604
|
-
if (Array.isArray(_data["locationKindFilter"])) {
|
|
38605
|
-
this.locationKindFilter = [] as any;
|
|
38606
|
-
for (let item of _data["locationKindFilter"])
|
|
38607
|
-
this.locationKindFilter!.push(item);
|
|
38608
|
-
}
|
|
38609
|
-
if (Array.isArray(_data["locationProfiles"])) {
|
|
38610
|
-
this.locationProfiles = [] as any;
|
|
38611
|
-
for (let item of _data["locationProfiles"])
|
|
38612
|
-
this.locationProfiles!.push(item);
|
|
38613
|
-
}
|
|
38614
|
-
}
|
|
38615
|
-
}
|
|
38616
|
-
|
|
38617
|
-
static fromJS(data: any): LocationSuggestionsDto {
|
|
38618
|
-
data = typeof data === 'object' ? data : {};
|
|
38619
|
-
let result = new LocationSuggestionsDto();
|
|
38620
|
-
result.init(data);
|
|
38621
|
-
return result;
|
|
38622
|
-
}
|
|
38623
|
-
|
|
38624
|
-
toJSON(data?: any) {
|
|
38625
|
-
data = typeof data === 'object' ? data : {};
|
|
38626
|
-
if (Array.isArray(this.items)) {
|
|
38627
|
-
data["items"] = [];
|
|
38628
|
-
for (let item of this.items)
|
|
38629
|
-
data["items"].push(item.toJSON());
|
|
38630
|
-
}
|
|
38631
|
-
if (Array.isArray(this.locationKindFilter)) {
|
|
38632
|
-
data["locationKindFilter"] = [];
|
|
38633
|
-
for (let item of this.locationKindFilter)
|
|
38634
|
-
data["locationKindFilter"].push(item);
|
|
38635
|
-
}
|
|
38636
|
-
if (Array.isArray(this.locationProfiles)) {
|
|
38637
|
-
data["locationProfiles"] = [];
|
|
38638
|
-
for (let item of this.locationProfiles)
|
|
38639
|
-
data["locationProfiles"].push(item);
|
|
38640
|
-
}
|
|
38641
|
-
return data;
|
|
38642
|
-
}
|
|
38643
|
-
}
|
|
38644
|
-
|
|
38645
|
-
export interface ILocationSuggestionsDto {
|
|
38646
|
-
items: LocationSuggestionsItemDto[];
|
|
38647
|
-
locationKindFilter?: LocationKindDto[] | null;
|
|
38648
|
-
locationProfiles?: LocationProfileDto[] | null;
|
|
38649
|
-
}
|
|
38650
|
-
|
|
38651
|
-
export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
|
|
38652
|
-
parcelId!: string;
|
|
38653
|
-
|
|
38654
|
-
constructor(data?: ILocationSuggestionsItemDto) {
|
|
38655
|
-
if (data) {
|
|
38656
|
-
for (var property in data) {
|
|
38657
|
-
if (data.hasOwnProperty(property))
|
|
38658
|
-
(<any>this)[property] = (<any>data)[property];
|
|
38659
|
-
}
|
|
38660
|
-
}
|
|
38661
|
-
}
|
|
38662
|
-
|
|
38663
|
-
init(_data?: any) {
|
|
38664
|
-
if (_data) {
|
|
38665
|
-
this.parcelId = _data["parcelId"];
|
|
38666
|
-
}
|
|
38667
|
-
}
|
|
38668
|
-
|
|
38669
|
-
static fromJS(data: any): LocationSuggestionsItemDto {
|
|
38670
|
-
data = typeof data === 'object' ? data : {};
|
|
38671
|
-
let result = new LocationSuggestionsItemDto();
|
|
38672
|
-
result.init(data);
|
|
38673
|
-
return result;
|
|
38674
|
-
}
|
|
38675
|
-
|
|
38676
|
-
toJSON(data?: any) {
|
|
38677
|
-
data = typeof data === 'object' ? data : {};
|
|
38678
|
-
data["parcelId"] = this.parcelId;
|
|
38679
|
-
return data;
|
|
38680
|
-
}
|
|
38681
|
-
}
|
|
38682
|
-
|
|
38683
|
-
export interface ILocationSuggestionsItemDto {
|
|
38684
|
-
parcelId: string;
|
|
38685
|
-
}
|
|
38686
|
-
|
|
38687
38582
|
export class MaterialDesciptionDto implements IMaterialDesciptionDto {
|
|
38688
38583
|
materialId!: string;
|
|
38689
38584
|
materialName!: string;
|