@ignos/api-client 20260615.153.1-alpha → 20260615.155.1-alpha
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 +3 -0
- package/lib/ignosportal-api.js +36 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +37 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3434,6 +3434,7 @@ export interface ISuppliersClient {
|
|
|
3434
3434
|
*/
|
|
3435
3435
|
deleteSupplierMappings(): Promise<void>;
|
|
3436
3436
|
lookupOrganization(threeLetterIsoCountry: string | undefined, organizationNumber: string | undefined): Promise<OrganizationDto>;
|
|
3437
|
+
getOrganizationLookupSupportedCountries(): Promise<string[]>;
|
|
3437
3438
|
}
|
|
3438
3439
|
export declare class SuppliersClient extends AuthorizedApiBase implements ISuppliersClient {
|
|
3439
3440
|
private http;
|
|
@@ -3463,6 +3464,8 @@ export declare class SuppliersClient extends AuthorizedApiBase implements ISuppl
|
|
|
3463
3464
|
protected processDeleteSupplierMappings(response: Response): Promise<void>;
|
|
3464
3465
|
lookupOrganization(threeLetterIsoCountry: string | undefined, organizationNumber: string | undefined): Promise<OrganizationDto>;
|
|
3465
3466
|
protected processLookupOrganization(response: Response): Promise<OrganizationDto>;
|
|
3467
|
+
getOrganizationLookupSupportedCountries(): Promise<string[]>;
|
|
3468
|
+
protected processGetOrganizationLookupSupportedCountries(response: Response): Promise<string[]>;
|
|
3466
3469
|
}
|
|
3467
3470
|
export interface AzureRegionDto {
|
|
3468
3471
|
displayName: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -28538,6 +28538,42 @@ export class SuppliersClient extends AuthorizedApiBase {
|
|
|
28538
28538
|
}
|
|
28539
28539
|
return Promise.resolve(null);
|
|
28540
28540
|
}
|
|
28541
|
+
getOrganizationLookupSupportedCountries() {
|
|
28542
|
+
let url_ = this.baseUrl + "/suppliers/organization-lookup-supported-countries";
|
|
28543
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
28544
|
+
let options_ = {
|
|
28545
|
+
method: "GET",
|
|
28546
|
+
headers: {
|
|
28547
|
+
"Accept": "application/json"
|
|
28548
|
+
}
|
|
28549
|
+
};
|
|
28550
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28551
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
28552
|
+
}).then((_response) => {
|
|
28553
|
+
return this.processGetOrganizationLookupSupportedCountries(_response);
|
|
28554
|
+
});
|
|
28555
|
+
}
|
|
28556
|
+
processGetOrganizationLookupSupportedCountries(response) {
|
|
28557
|
+
const status = response.status;
|
|
28558
|
+
let _headers = {};
|
|
28559
|
+
if (response.headers && response.headers.forEach) {
|
|
28560
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
28561
|
+
}
|
|
28562
|
+
;
|
|
28563
|
+
if (status === 200) {
|
|
28564
|
+
return response.text().then((_responseText) => {
|
|
28565
|
+
let result200 = null;
|
|
28566
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
28567
|
+
return result200;
|
|
28568
|
+
});
|
|
28569
|
+
}
|
|
28570
|
+
else if (status !== 200 && status !== 204) {
|
|
28571
|
+
return response.text().then((_responseText) => {
|
|
28572
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28573
|
+
});
|
|
28574
|
+
}
|
|
28575
|
+
return Promise.resolve(null);
|
|
28576
|
+
}
|
|
28541
28577
|
}
|
|
28542
28578
|
export class ApiException extends Error {
|
|
28543
28579
|
constructor(message, status, response, headers, result) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -30206,6 +30206,8 @@ export interface ISuppliersClient {
|
|
|
30206
30206
|
deleteSupplierMappings(): Promise<void>;
|
|
30207
30207
|
|
|
30208
30208
|
lookupOrganization(threeLetterIsoCountry: string | undefined, organizationNumber: string | undefined): Promise<OrganizationDto>;
|
|
30209
|
+
|
|
30210
|
+
getOrganizationLookupSupportedCountries(): Promise<string[]>;
|
|
30209
30211
|
}
|
|
30210
30212
|
|
|
30211
30213
|
export class SuppliersClient extends AuthorizedApiBase implements ISuppliersClient {
|
|
@@ -30513,6 +30515,41 @@ export class SuppliersClient extends AuthorizedApiBase implements ISuppliersClie
|
|
|
30513
30515
|
}
|
|
30514
30516
|
return Promise.resolve<OrganizationDto>(null as any);
|
|
30515
30517
|
}
|
|
30518
|
+
|
|
30519
|
+
getOrganizationLookupSupportedCountries(): Promise<string[]> {
|
|
30520
|
+
let url_ = this.baseUrl + "/suppliers/organization-lookup-supported-countries";
|
|
30521
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
30522
|
+
|
|
30523
|
+
let options_: RequestInit = {
|
|
30524
|
+
method: "GET",
|
|
30525
|
+
headers: {
|
|
30526
|
+
"Accept": "application/json"
|
|
30527
|
+
}
|
|
30528
|
+
};
|
|
30529
|
+
|
|
30530
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
30531
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
30532
|
+
}).then((_response: Response) => {
|
|
30533
|
+
return this.processGetOrganizationLookupSupportedCountries(_response);
|
|
30534
|
+
});
|
|
30535
|
+
}
|
|
30536
|
+
|
|
30537
|
+
protected processGetOrganizationLookupSupportedCountries(response: Response): Promise<string[]> {
|
|
30538
|
+
const status = response.status;
|
|
30539
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
30540
|
+
if (status === 200) {
|
|
30541
|
+
return response.text().then((_responseText) => {
|
|
30542
|
+
let result200: any = null;
|
|
30543
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as string[];
|
|
30544
|
+
return result200;
|
|
30545
|
+
});
|
|
30546
|
+
} else if (status !== 200 && status !== 204) {
|
|
30547
|
+
return response.text().then((_responseText) => {
|
|
30548
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
30549
|
+
});
|
|
30550
|
+
}
|
|
30551
|
+
return Promise.resolve<string[]>(null as any);
|
|
30552
|
+
}
|
|
30516
30553
|
}
|
|
30517
30554
|
|
|
30518
30555
|
export interface AzureRegionDto {
|