@ignos/api-client 20260129.0.13918-alpha → 20260129.0.13920-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 +40 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +41 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3193,6 +3193,7 @@ export interface ISuppliersClient {
|
|
|
3193
3193
|
* Delete all supplier mappings between old supplier ids and new supplier ids.
|
|
3194
3194
|
*/
|
|
3195
3195
|
deleteSupplierMappings(): Promise<void>;
|
|
3196
|
+
getSupplierCompany(id: string): Promise<CompanyDto>;
|
|
3196
3197
|
}
|
|
3197
3198
|
export declare class SuppliersClient extends AuthorizedApiBase implements ISuppliersClient {
|
|
3198
3199
|
private http;
|
|
@@ -3221,6 +3222,8 @@ export declare class SuppliersClient extends AuthorizedApiBase implements ISuppl
|
|
|
3221
3222
|
*/
|
|
3222
3223
|
deleteSupplierMappings(): Promise<void>;
|
|
3223
3224
|
protected processDeleteSupplierMappings(response: Response): Promise<void>;
|
|
3225
|
+
getSupplierCompany(id: string): Promise<CompanyDto>;
|
|
3226
|
+
protected processGetSupplierCompany(response: Response): Promise<CompanyDto>;
|
|
3224
3227
|
}
|
|
3225
3228
|
export declare class AzureRegionDto implements IAzureRegionDto {
|
|
3226
3229
|
displayName: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -26570,6 +26570,46 @@ export class SuppliersClient extends AuthorizedApiBase {
|
|
|
26570
26570
|
}
|
|
26571
26571
|
return Promise.resolve(null);
|
|
26572
26572
|
}
|
|
26573
|
+
getSupplierCompany(id) {
|
|
26574
|
+
let url_ = this.baseUrl + "/suppliers/suppliercompany/{id}";
|
|
26575
|
+
if (id === undefined || id === null)
|
|
26576
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26577
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26578
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
26579
|
+
let options_ = {
|
|
26580
|
+
method: "GET",
|
|
26581
|
+
headers: {
|
|
26582
|
+
"Accept": "application/json"
|
|
26583
|
+
}
|
|
26584
|
+
};
|
|
26585
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26586
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
26587
|
+
}).then((_response) => {
|
|
26588
|
+
return this.processGetSupplierCompany(_response);
|
|
26589
|
+
});
|
|
26590
|
+
}
|
|
26591
|
+
processGetSupplierCompany(response) {
|
|
26592
|
+
const status = response.status;
|
|
26593
|
+
let _headers = {};
|
|
26594
|
+
if (response.headers && response.headers.forEach) {
|
|
26595
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
26596
|
+
}
|
|
26597
|
+
;
|
|
26598
|
+
if (status === 200) {
|
|
26599
|
+
return response.text().then((_responseText) => {
|
|
26600
|
+
let result200 = null;
|
|
26601
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
26602
|
+
result200 = CompanyDto.fromJS(resultData200);
|
|
26603
|
+
return result200;
|
|
26604
|
+
});
|
|
26605
|
+
}
|
|
26606
|
+
else if (status !== 200 && status !== 204) {
|
|
26607
|
+
return response.text().then((_responseText) => {
|
|
26608
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26609
|
+
});
|
|
26610
|
+
}
|
|
26611
|
+
return Promise.resolve(null);
|
|
26612
|
+
}
|
|
26573
26613
|
}
|
|
26574
26614
|
export class AzureRegionDto {
|
|
26575
26615
|
constructor(data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -28076,6 +28076,8 @@ export interface ISuppliersClient {
|
|
|
28076
28076
|
* Delete all supplier mappings between old supplier ids and new supplier ids.
|
|
28077
28077
|
*/
|
|
28078
28078
|
deleteSupplierMappings(): Promise<void>;
|
|
28079
|
+
|
|
28080
|
+
getSupplierCompany(id: string): Promise<CompanyDto>;
|
|
28079
28081
|
}
|
|
28080
28082
|
|
|
28081
28083
|
export class SuppliersClient extends AuthorizedApiBase implements ISuppliersClient {
|
|
@@ -28352,6 +28354,45 @@ export class SuppliersClient extends AuthorizedApiBase implements ISuppliersClie
|
|
|
28352
28354
|
}
|
|
28353
28355
|
return Promise.resolve<void>(null as any);
|
|
28354
28356
|
}
|
|
28357
|
+
|
|
28358
|
+
getSupplierCompany(id: string): Promise<CompanyDto> {
|
|
28359
|
+
let url_ = this.baseUrl + "/suppliers/suppliercompany/{id}";
|
|
28360
|
+
if (id === undefined || id === null)
|
|
28361
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
28362
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
28363
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
28364
|
+
|
|
28365
|
+
let options_: RequestInit = {
|
|
28366
|
+
method: "GET",
|
|
28367
|
+
headers: {
|
|
28368
|
+
"Accept": "application/json"
|
|
28369
|
+
}
|
|
28370
|
+
};
|
|
28371
|
+
|
|
28372
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28373
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
28374
|
+
}).then((_response: Response) => {
|
|
28375
|
+
return this.processGetSupplierCompany(_response);
|
|
28376
|
+
});
|
|
28377
|
+
}
|
|
28378
|
+
|
|
28379
|
+
protected processGetSupplierCompany(response: Response): Promise<CompanyDto> {
|
|
28380
|
+
const status = response.status;
|
|
28381
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
28382
|
+
if (status === 200) {
|
|
28383
|
+
return response.text().then((_responseText) => {
|
|
28384
|
+
let result200: any = null;
|
|
28385
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
28386
|
+
result200 = CompanyDto.fromJS(resultData200);
|
|
28387
|
+
return result200;
|
|
28388
|
+
});
|
|
28389
|
+
} else if (status !== 200 && status !== 204) {
|
|
28390
|
+
return response.text().then((_responseText) => {
|
|
28391
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28392
|
+
});
|
|
28393
|
+
}
|
|
28394
|
+
return Promise.resolve<CompanyDto>(null as any);
|
|
28395
|
+
}
|
|
28355
28396
|
}
|
|
28356
28397
|
|
|
28357
28398
|
export class AzureRegionDto implements IAzureRegionDto {
|