@ignos/api-client 20240620.0.9609 → 20240621.0.9612
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 +26 -4
- package/lib/ignosportal-api.js +80 -12
- package/package.json +1 -1
- package/src/ignosportal-api.ts +106 -15
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -570,8 +570,8 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
570
570
|
protected processFinishDelivery(response: Response): Promise<BookingDto>;
|
|
571
571
|
}
|
|
572
572
|
export interface IMoveLocationsClient {
|
|
573
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
574
|
-
suggestionsLocations(
|
|
573
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
|
|
574
|
+
suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
|
|
575
575
|
}
|
|
576
576
|
export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
577
577
|
private http;
|
|
@@ -580,9 +580,9 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
|
|
|
580
580
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
581
581
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
582
582
|
});
|
|
583
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
583
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
|
|
584
584
|
protected processSearchLocations(response: Response): Promise<LocationDto[]>;
|
|
585
|
-
suggestionsLocations(
|
|
585
|
+
suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
|
|
586
586
|
protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
|
|
587
587
|
}
|
|
588
588
|
export interface IMoveTrackingClient {
|
|
@@ -4272,6 +4272,28 @@ export interface IBookingDeliveryExceptionDto {
|
|
|
4272
4272
|
toLocationId?: string | null;
|
|
4273
4273
|
comment?: string | null;
|
|
4274
4274
|
}
|
|
4275
|
+
export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
4276
|
+
items: LocationSuggestionsItemDto[];
|
|
4277
|
+
locationKindFilter?: LocationKindDto[] | null;
|
|
4278
|
+
constructor(data?: ILocationSuggestionsDto);
|
|
4279
|
+
init(_data?: any): void;
|
|
4280
|
+
static fromJS(data: any): LocationSuggestionsDto;
|
|
4281
|
+
toJSON(data?: any): any;
|
|
4282
|
+
}
|
|
4283
|
+
export interface ILocationSuggestionsDto {
|
|
4284
|
+
items: LocationSuggestionsItemDto[];
|
|
4285
|
+
locationKindFilter?: LocationKindDto[] | null;
|
|
4286
|
+
}
|
|
4287
|
+
export declare class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
|
|
4288
|
+
workOrderId: string;
|
|
4289
|
+
constructor(data?: ILocationSuggestionsItemDto);
|
|
4290
|
+
init(_data?: any): void;
|
|
4291
|
+
static fromJS(data: any): LocationSuggestionsItemDto;
|
|
4292
|
+
toJSON(data?: any): any;
|
|
4293
|
+
}
|
|
4294
|
+
export interface ILocationSuggestionsItemDto {
|
|
4295
|
+
workOrderId: string;
|
|
4296
|
+
}
|
|
4275
4297
|
export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
4276
4298
|
trackingId: string;
|
|
4277
4299
|
palletNumber: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -3882,9 +3882,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
3882
3882
|
let url_ = this.baseUrl + "/move/locations/search?";
|
|
3883
3883
|
if (input !== undefined && input !== null)
|
|
3884
3884
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
3885
|
-
if (locationKinds
|
|
3886
|
-
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
3887
|
-
else if (locationKinds !== undefined)
|
|
3885
|
+
if (locationKinds !== undefined && locationKinds !== null)
|
|
3888
3886
|
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
3889
3887
|
url_ = url_.replace(/[?&]$/, "");
|
|
3890
3888
|
let options_ = {
|
|
@@ -3925,18 +3923,15 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
3925
3923
|
}
|
|
3926
3924
|
return Promise.resolve(null);
|
|
3927
3925
|
}
|
|
3928
|
-
suggestionsLocations(
|
|
3929
|
-
let url_ = this.baseUrl + "/move/locations/suggestions
|
|
3930
|
-
if (workOrderId !== undefined && workOrderId !== null)
|
|
3931
|
-
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
3932
|
-
if (locationKinds === null)
|
|
3933
|
-
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
3934
|
-
else if (locationKinds !== undefined)
|
|
3935
|
-
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
3926
|
+
suggestionsLocations(locationSuggestions) {
|
|
3927
|
+
let url_ = this.baseUrl + "/move/locations/suggestions";
|
|
3936
3928
|
url_ = url_.replace(/[?&]$/, "");
|
|
3929
|
+
const content_ = JSON.stringify(locationSuggestions);
|
|
3937
3930
|
let options_ = {
|
|
3938
|
-
|
|
3931
|
+
body: content_,
|
|
3932
|
+
method: "POST",
|
|
3939
3933
|
headers: {
|
|
3934
|
+
"Content-Type": "application/json",
|
|
3940
3935
|
"Accept": "application/json"
|
|
3941
3936
|
}
|
|
3942
3937
|
};
|
|
@@ -22775,6 +22770,79 @@ export class BookingDeliveryExceptionDto {
|
|
|
22775
22770
|
return data;
|
|
22776
22771
|
}
|
|
22777
22772
|
}
|
|
22773
|
+
export class LocationSuggestionsDto {
|
|
22774
|
+
constructor(data) {
|
|
22775
|
+
if (data) {
|
|
22776
|
+
for (var property in data) {
|
|
22777
|
+
if (data.hasOwnProperty(property))
|
|
22778
|
+
this[property] = data[property];
|
|
22779
|
+
}
|
|
22780
|
+
}
|
|
22781
|
+
if (!data) {
|
|
22782
|
+
this.items = [];
|
|
22783
|
+
}
|
|
22784
|
+
}
|
|
22785
|
+
init(_data) {
|
|
22786
|
+
if (_data) {
|
|
22787
|
+
if (Array.isArray(_data["items"])) {
|
|
22788
|
+
this.items = [];
|
|
22789
|
+
for (let item of _data["items"])
|
|
22790
|
+
this.items.push(LocationSuggestionsItemDto.fromJS(item));
|
|
22791
|
+
}
|
|
22792
|
+
if (Array.isArray(_data["locationKindFilter"])) {
|
|
22793
|
+
this.locationKindFilter = [];
|
|
22794
|
+
for (let item of _data["locationKindFilter"])
|
|
22795
|
+
this.locationKindFilter.push(item);
|
|
22796
|
+
}
|
|
22797
|
+
}
|
|
22798
|
+
}
|
|
22799
|
+
static fromJS(data) {
|
|
22800
|
+
data = typeof data === 'object' ? data : {};
|
|
22801
|
+
let result = new LocationSuggestionsDto();
|
|
22802
|
+
result.init(data);
|
|
22803
|
+
return result;
|
|
22804
|
+
}
|
|
22805
|
+
toJSON(data) {
|
|
22806
|
+
data = typeof data === 'object' ? data : {};
|
|
22807
|
+
if (Array.isArray(this.items)) {
|
|
22808
|
+
data["items"] = [];
|
|
22809
|
+
for (let item of this.items)
|
|
22810
|
+
data["items"].push(item.toJSON());
|
|
22811
|
+
}
|
|
22812
|
+
if (Array.isArray(this.locationKindFilter)) {
|
|
22813
|
+
data["locationKindFilter"] = [];
|
|
22814
|
+
for (let item of this.locationKindFilter)
|
|
22815
|
+
data["locationKindFilter"].push(item);
|
|
22816
|
+
}
|
|
22817
|
+
return data;
|
|
22818
|
+
}
|
|
22819
|
+
}
|
|
22820
|
+
export class LocationSuggestionsItemDto {
|
|
22821
|
+
constructor(data) {
|
|
22822
|
+
if (data) {
|
|
22823
|
+
for (var property in data) {
|
|
22824
|
+
if (data.hasOwnProperty(property))
|
|
22825
|
+
this[property] = data[property];
|
|
22826
|
+
}
|
|
22827
|
+
}
|
|
22828
|
+
}
|
|
22829
|
+
init(_data) {
|
|
22830
|
+
if (_data) {
|
|
22831
|
+
this.workOrderId = _data["workOrderId"];
|
|
22832
|
+
}
|
|
22833
|
+
}
|
|
22834
|
+
static fromJS(data) {
|
|
22835
|
+
data = typeof data === 'object' ? data : {};
|
|
22836
|
+
let result = new LocationSuggestionsItemDto();
|
|
22837
|
+
result.init(data);
|
|
22838
|
+
return result;
|
|
22839
|
+
}
|
|
22840
|
+
toJSON(data) {
|
|
22841
|
+
data = typeof data === 'object' ? data : {};
|
|
22842
|
+
data["workOrderId"] = this.workOrderId;
|
|
22843
|
+
return data;
|
|
22844
|
+
}
|
|
22845
|
+
}
|
|
22778
22846
|
export class TrackingHistoryDto {
|
|
22779
22847
|
constructor(data) {
|
|
22780
22848
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -4187,9 +4187,9 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
4187
4187
|
|
|
4188
4188
|
export interface IMoveLocationsClient {
|
|
4189
4189
|
|
|
4190
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
4190
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
|
|
4191
4191
|
|
|
4192
|
-
suggestionsLocations(
|
|
4192
|
+
suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
|
|
4193
4193
|
}
|
|
4194
4194
|
|
|
4195
4195
|
export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
@@ -4203,13 +4203,11 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
|
|
|
4203
4203
|
this.baseUrl = baseUrl ?? "";
|
|
4204
4204
|
}
|
|
4205
4205
|
|
|
4206
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]> {
|
|
4206
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]> {
|
|
4207
4207
|
let url_ = this.baseUrl + "/move/locations/search?";
|
|
4208
4208
|
if (input !== undefined && input !== null)
|
|
4209
4209
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
4210
|
-
if (locationKinds
|
|
4211
|
-
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
4212
|
-
else if (locationKinds !== undefined)
|
|
4210
|
+
if (locationKinds !== undefined && locationKinds !== null)
|
|
4213
4211
|
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
4214
4212
|
url_ = url_.replace(/[?&]$/, "");
|
|
4215
4213
|
|
|
@@ -4249,19 +4247,17 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
|
|
|
4249
4247
|
return Promise.resolve<LocationDto[]>(null as any);
|
|
4250
4248
|
}
|
|
4251
4249
|
|
|
4252
|
-
suggestionsLocations(
|
|
4253
|
-
let url_ = this.baseUrl + "/move/locations/suggestions
|
|
4254
|
-
if (workOrderId !== undefined && workOrderId !== null)
|
|
4255
|
-
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
4256
|
-
if (locationKinds === null)
|
|
4257
|
-
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
4258
|
-
else if (locationKinds !== undefined)
|
|
4259
|
-
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
4250
|
+
suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]> {
|
|
4251
|
+
let url_ = this.baseUrl + "/move/locations/suggestions";
|
|
4260
4252
|
url_ = url_.replace(/[?&]$/, "");
|
|
4261
4253
|
|
|
4254
|
+
const content_ = JSON.stringify(locationSuggestions);
|
|
4255
|
+
|
|
4262
4256
|
let options_: RequestInit = {
|
|
4263
|
-
|
|
4257
|
+
body: content_,
|
|
4258
|
+
method: "POST",
|
|
4264
4259
|
headers: {
|
|
4260
|
+
"Content-Type": "application/json",
|
|
4265
4261
|
"Accept": "application/json"
|
|
4266
4262
|
}
|
|
4267
4263
|
};
|
|
@@ -26087,6 +26083,101 @@ export interface IBookingDeliveryExceptionDto {
|
|
|
26087
26083
|
comment?: string | null;
|
|
26088
26084
|
}
|
|
26089
26085
|
|
|
26086
|
+
export class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
26087
|
+
items!: LocationSuggestionsItemDto[];
|
|
26088
|
+
locationKindFilter?: LocationKindDto[] | null;
|
|
26089
|
+
|
|
26090
|
+
constructor(data?: ILocationSuggestionsDto) {
|
|
26091
|
+
if (data) {
|
|
26092
|
+
for (var property in data) {
|
|
26093
|
+
if (data.hasOwnProperty(property))
|
|
26094
|
+
(<any>this)[property] = (<any>data)[property];
|
|
26095
|
+
}
|
|
26096
|
+
}
|
|
26097
|
+
if (!data) {
|
|
26098
|
+
this.items = [];
|
|
26099
|
+
}
|
|
26100
|
+
}
|
|
26101
|
+
|
|
26102
|
+
init(_data?: any) {
|
|
26103
|
+
if (_data) {
|
|
26104
|
+
if (Array.isArray(_data["items"])) {
|
|
26105
|
+
this.items = [] as any;
|
|
26106
|
+
for (let item of _data["items"])
|
|
26107
|
+
this.items!.push(LocationSuggestionsItemDto.fromJS(item));
|
|
26108
|
+
}
|
|
26109
|
+
if (Array.isArray(_data["locationKindFilter"])) {
|
|
26110
|
+
this.locationKindFilter = [] as any;
|
|
26111
|
+
for (let item of _data["locationKindFilter"])
|
|
26112
|
+
this.locationKindFilter!.push(item);
|
|
26113
|
+
}
|
|
26114
|
+
}
|
|
26115
|
+
}
|
|
26116
|
+
|
|
26117
|
+
static fromJS(data: any): LocationSuggestionsDto {
|
|
26118
|
+
data = typeof data === 'object' ? data : {};
|
|
26119
|
+
let result = new LocationSuggestionsDto();
|
|
26120
|
+
result.init(data);
|
|
26121
|
+
return result;
|
|
26122
|
+
}
|
|
26123
|
+
|
|
26124
|
+
toJSON(data?: any) {
|
|
26125
|
+
data = typeof data === 'object' ? data : {};
|
|
26126
|
+
if (Array.isArray(this.items)) {
|
|
26127
|
+
data["items"] = [];
|
|
26128
|
+
for (let item of this.items)
|
|
26129
|
+
data["items"].push(item.toJSON());
|
|
26130
|
+
}
|
|
26131
|
+
if (Array.isArray(this.locationKindFilter)) {
|
|
26132
|
+
data["locationKindFilter"] = [];
|
|
26133
|
+
for (let item of this.locationKindFilter)
|
|
26134
|
+
data["locationKindFilter"].push(item);
|
|
26135
|
+
}
|
|
26136
|
+
return data;
|
|
26137
|
+
}
|
|
26138
|
+
}
|
|
26139
|
+
|
|
26140
|
+
export interface ILocationSuggestionsDto {
|
|
26141
|
+
items: LocationSuggestionsItemDto[];
|
|
26142
|
+
locationKindFilter?: LocationKindDto[] | null;
|
|
26143
|
+
}
|
|
26144
|
+
|
|
26145
|
+
export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
|
|
26146
|
+
workOrderId!: string;
|
|
26147
|
+
|
|
26148
|
+
constructor(data?: ILocationSuggestionsItemDto) {
|
|
26149
|
+
if (data) {
|
|
26150
|
+
for (var property in data) {
|
|
26151
|
+
if (data.hasOwnProperty(property))
|
|
26152
|
+
(<any>this)[property] = (<any>data)[property];
|
|
26153
|
+
}
|
|
26154
|
+
}
|
|
26155
|
+
}
|
|
26156
|
+
|
|
26157
|
+
init(_data?: any) {
|
|
26158
|
+
if (_data) {
|
|
26159
|
+
this.workOrderId = _data["workOrderId"];
|
|
26160
|
+
}
|
|
26161
|
+
}
|
|
26162
|
+
|
|
26163
|
+
static fromJS(data: any): LocationSuggestionsItemDto {
|
|
26164
|
+
data = typeof data === 'object' ? data : {};
|
|
26165
|
+
let result = new LocationSuggestionsItemDto();
|
|
26166
|
+
result.init(data);
|
|
26167
|
+
return result;
|
|
26168
|
+
}
|
|
26169
|
+
|
|
26170
|
+
toJSON(data?: any) {
|
|
26171
|
+
data = typeof data === 'object' ? data : {};
|
|
26172
|
+
data["workOrderId"] = this.workOrderId;
|
|
26173
|
+
return data;
|
|
26174
|
+
}
|
|
26175
|
+
}
|
|
26176
|
+
|
|
26177
|
+
export interface ILocationSuggestionsItemDto {
|
|
26178
|
+
workOrderId: string;
|
|
26179
|
+
}
|
|
26180
|
+
|
|
26090
26181
|
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
26091
26182
|
trackingId!: string;
|
|
26092
26183
|
palletNumber!: number;
|