@ignos/api-client 20241106.0.10663 → 20241106.0.10666
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 +42 -1
- package/package.json +1 -1
- package/src/ignosportal-api.ts +49 -5
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1506,7 +1506,8 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1506
1506
|
export interface IMoveLocationsClient {
|
|
1507
1507
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1508
1508
|
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
1509
|
-
suggestionsParcel(parcelId: string | undefined): Promise<SuggestionsResponseDto>;
|
|
1509
|
+
suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto>;
|
|
1510
|
+
suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto>;
|
|
1510
1511
|
}
|
|
1511
1512
|
export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
1512
1513
|
private http;
|
|
@@ -1519,8 +1520,10 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
|
|
|
1519
1520
|
protected processSearchLocations(response: Response): Promise<LocationDto[]>;
|
|
1520
1521
|
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
1521
1522
|
protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
|
|
1522
|
-
suggestionsParcel(parcelId: string | undefined): Promise<SuggestionsResponseDto>;
|
|
1523
|
+
suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto>;
|
|
1523
1524
|
protected processSuggestionsParcel(response: Response): Promise<SuggestionsResponseDto>;
|
|
1525
|
+
suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto>;
|
|
1526
|
+
protected processSuggestionsGeneral(response: Response): Promise<SuggestionsItemDto>;
|
|
1524
1527
|
}
|
|
1525
1528
|
export interface IMoveMaterialsClient {
|
|
1526
1529
|
listMaterials(): Promise<MaterialDesciptionDto[]>;
|
|
@@ -8292,7 +8295,7 @@ export interface ISuggestionsParcelDto {
|
|
|
8292
8295
|
items: SuggestionsItemDto[];
|
|
8293
8296
|
}
|
|
8294
8297
|
export declare class SuggestionsItemDto implements ISuggestionsItemDto {
|
|
8295
|
-
trackingId
|
|
8298
|
+
trackingId?: string | null;
|
|
8296
8299
|
fromAutoFill?: LocationDto | null;
|
|
8297
8300
|
toAutoFill?: LocationDto | null;
|
|
8298
8301
|
fromSuggestions: LocationDto[];
|
|
@@ -8303,12 +8306,13 @@ export declare class SuggestionsItemDto implements ISuggestionsItemDto {
|
|
|
8303
8306
|
toJSON(data?: any): any;
|
|
8304
8307
|
}
|
|
8305
8308
|
export interface ISuggestionsItemDto {
|
|
8306
|
-
trackingId
|
|
8309
|
+
trackingId?: string | null;
|
|
8307
8310
|
fromAutoFill?: LocationDto | null;
|
|
8308
8311
|
toAutoFill?: LocationDto | null;
|
|
8309
8312
|
fromSuggestions: LocationDto[];
|
|
8310
8313
|
toSuggestions: LocationDto[];
|
|
8311
8314
|
}
|
|
8315
|
+
export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
|
|
8312
8316
|
export declare class MaterialDesciptionDto implements IMaterialDesciptionDto {
|
|
8313
8317
|
materialId: string;
|
|
8314
8318
|
materialName: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -12379,7 +12379,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
12379
12379
|
if (parcelId === null)
|
|
12380
12380
|
throw new Error("The parameter 'parcelId' cannot be null.");
|
|
12381
12381
|
else if (parcelId !== undefined)
|
|
12382
|
-
url_ += "parcelId=" + encodeURIComponent("" +
|
|
12382
|
+
parcelId && parcelId.forEach(item => { url_ += "parcelId=" + encodeURIComponent("" + item) + "&"; });
|
|
12383
12383
|
url_ = url_.replace(/[?&]$/, "");
|
|
12384
12384
|
let options_ = {
|
|
12385
12385
|
method: "GET",
|
|
@@ -12415,6 +12415,47 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
12415
12415
|
}
|
|
12416
12416
|
return Promise.resolve(null);
|
|
12417
12417
|
}
|
|
12418
|
+
suggestionsGeneral(suggestionType) {
|
|
12419
|
+
let url_ = this.baseUrl + "/move/locations/suggestionsgeneral?";
|
|
12420
|
+
if (suggestionType === null)
|
|
12421
|
+
throw new Error("The parameter 'suggestionType' cannot be null.");
|
|
12422
|
+
else if (suggestionType !== undefined)
|
|
12423
|
+
url_ += "suggestionType=" + encodeURIComponent("" + suggestionType) + "&";
|
|
12424
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12425
|
+
let options_ = {
|
|
12426
|
+
method: "GET",
|
|
12427
|
+
headers: {
|
|
12428
|
+
"Accept": "application/json"
|
|
12429
|
+
}
|
|
12430
|
+
};
|
|
12431
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12432
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12433
|
+
}).then((_response) => {
|
|
12434
|
+
return this.processSuggestionsGeneral(_response);
|
|
12435
|
+
});
|
|
12436
|
+
}
|
|
12437
|
+
processSuggestionsGeneral(response) {
|
|
12438
|
+
const status = response.status;
|
|
12439
|
+
let _headers = {};
|
|
12440
|
+
if (response.headers && response.headers.forEach) {
|
|
12441
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12442
|
+
}
|
|
12443
|
+
;
|
|
12444
|
+
if (status === 200) {
|
|
12445
|
+
return response.text().then((_responseText) => {
|
|
12446
|
+
let result200 = null;
|
|
12447
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12448
|
+
result200 = SuggestionsItemDto.fromJS(resultData200);
|
|
12449
|
+
return result200;
|
|
12450
|
+
});
|
|
12451
|
+
}
|
|
12452
|
+
else if (status !== 200 && status !== 204) {
|
|
12453
|
+
return response.text().then((_responseText) => {
|
|
12454
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12455
|
+
});
|
|
12456
|
+
}
|
|
12457
|
+
return Promise.resolve(null);
|
|
12458
|
+
}
|
|
12418
12459
|
}
|
|
12419
12460
|
export class MoveMaterialsClient extends AuthorizedApiBase {
|
|
12420
12461
|
constructor(configuration, baseUrl, http) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -13123,7 +13123,9 @@ export interface IMoveLocationsClient {
|
|
|
13123
13123
|
|
|
13124
13124
|
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
13125
13125
|
|
|
13126
|
-
suggestionsParcel(parcelId: string | undefined): Promise<SuggestionsResponseDto>;
|
|
13126
|
+
suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto>;
|
|
13127
|
+
|
|
13128
|
+
suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto>;
|
|
13127
13129
|
}
|
|
13128
13130
|
|
|
13129
13131
|
export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
@@ -13229,12 +13231,12 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
|
|
|
13229
13231
|
return Promise.resolve<LocationDto[]>(null as any);
|
|
13230
13232
|
}
|
|
13231
13233
|
|
|
13232
|
-
suggestionsParcel(parcelId: string | undefined): Promise<SuggestionsResponseDto> {
|
|
13234
|
+
suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto> {
|
|
13233
13235
|
let url_ = this.baseUrl + "/move/locations/suggestionsparcel?";
|
|
13234
13236
|
if (parcelId === null)
|
|
13235
13237
|
throw new Error("The parameter 'parcelId' cannot be null.");
|
|
13236
13238
|
else if (parcelId !== undefined)
|
|
13237
|
-
url_ += "parcelId=" + encodeURIComponent("" +
|
|
13239
|
+
parcelId && parcelId.forEach(item => { url_ += "parcelId=" + encodeURIComponent("" + item) + "&"; });
|
|
13238
13240
|
url_ = url_.replace(/[?&]$/, "");
|
|
13239
13241
|
|
|
13240
13242
|
let options_: RequestInit = {
|
|
@@ -13268,6 +13270,46 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
|
|
|
13268
13270
|
}
|
|
13269
13271
|
return Promise.resolve<SuggestionsResponseDto>(null as any);
|
|
13270
13272
|
}
|
|
13273
|
+
|
|
13274
|
+
suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto> {
|
|
13275
|
+
let url_ = this.baseUrl + "/move/locations/suggestionsgeneral?";
|
|
13276
|
+
if (suggestionType === null)
|
|
13277
|
+
throw new Error("The parameter 'suggestionType' cannot be null.");
|
|
13278
|
+
else if (suggestionType !== undefined)
|
|
13279
|
+
url_ += "suggestionType=" + encodeURIComponent("" + suggestionType) + "&";
|
|
13280
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
13281
|
+
|
|
13282
|
+
let options_: RequestInit = {
|
|
13283
|
+
method: "GET",
|
|
13284
|
+
headers: {
|
|
13285
|
+
"Accept": "application/json"
|
|
13286
|
+
}
|
|
13287
|
+
};
|
|
13288
|
+
|
|
13289
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13290
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
13291
|
+
}).then((_response: Response) => {
|
|
13292
|
+
return this.processSuggestionsGeneral(_response);
|
|
13293
|
+
});
|
|
13294
|
+
}
|
|
13295
|
+
|
|
13296
|
+
protected processSuggestionsGeneral(response: Response): Promise<SuggestionsItemDto> {
|
|
13297
|
+
const status = response.status;
|
|
13298
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13299
|
+
if (status === 200) {
|
|
13300
|
+
return response.text().then((_responseText) => {
|
|
13301
|
+
let result200: any = null;
|
|
13302
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13303
|
+
result200 = SuggestionsItemDto.fromJS(resultData200);
|
|
13304
|
+
return result200;
|
|
13305
|
+
});
|
|
13306
|
+
} else if (status !== 200 && status !== 204) {
|
|
13307
|
+
return response.text().then((_responseText) => {
|
|
13308
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13309
|
+
});
|
|
13310
|
+
}
|
|
13311
|
+
return Promise.resolve<SuggestionsItemDto>(null as any);
|
|
13312
|
+
}
|
|
13271
13313
|
}
|
|
13272
13314
|
|
|
13273
13315
|
export interface IMoveMaterialsClient {
|
|
@@ -38955,7 +38997,7 @@ export interface ISuggestionsParcelDto {
|
|
|
38955
38997
|
}
|
|
38956
38998
|
|
|
38957
38999
|
export class SuggestionsItemDto implements ISuggestionsItemDto {
|
|
38958
|
-
trackingId
|
|
39000
|
+
trackingId?: string | null;
|
|
38959
39001
|
fromAutoFill?: LocationDto | null;
|
|
38960
39002
|
toAutoFill?: LocationDto | null;
|
|
38961
39003
|
fromSuggestions!: LocationDto[];
|
|
@@ -39019,13 +39061,15 @@ export class SuggestionsItemDto implements ISuggestionsItemDto {
|
|
|
39019
39061
|
}
|
|
39020
39062
|
|
|
39021
39063
|
export interface ISuggestionsItemDto {
|
|
39022
|
-
trackingId
|
|
39064
|
+
trackingId?: string | null;
|
|
39023
39065
|
fromAutoFill?: LocationDto | null;
|
|
39024
39066
|
toAutoFill?: LocationDto | null;
|
|
39025
39067
|
fromSuggestions: LocationDto[];
|
|
39026
39068
|
toSuggestions: LocationDto[];
|
|
39027
39069
|
}
|
|
39028
39070
|
|
|
39071
|
+
export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
|
|
39072
|
+
|
|
39029
39073
|
export class MaterialDesciptionDto implements IMaterialDesciptionDto {
|
|
39030
39074
|
materialId!: string;
|
|
39031
39075
|
materialName!: string;
|