@ignos/api-client 20260417.112.1-alpha → 20260417.113.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 +8 -0
- package/lib/ignosportal-api.js +36 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +43 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3352,6 +3352,7 @@ export interface IExternalClient {
|
|
|
3352
3352
|
acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
|
|
3353
3353
|
acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
|
|
3354
3354
|
acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto>;
|
|
3355
|
+
listTenantsWithSuppliers(): Promise<TenantWithSupplierDto[]>;
|
|
3355
3356
|
}
|
|
3356
3357
|
export declare class ExternalClient extends AuthorizedApiBase implements IExternalClient {
|
|
3357
3358
|
private http;
|
|
@@ -3371,6 +3372,8 @@ export declare class ExternalClient extends AuthorizedApiBase implements IExtern
|
|
|
3371
3372
|
protected processAcceptSupplierInviteExistingCompany(response: Response): Promise<SupplierInviteDto>;
|
|
3372
3373
|
acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto>;
|
|
3373
3374
|
protected processAcceptSupplierInviteCustomer(response: Response): Promise<SupplierInviteDto>;
|
|
3375
|
+
listTenantsWithSuppliers(): Promise<TenantWithSupplierDto[]>;
|
|
3376
|
+
protected processListTenantsWithSuppliers(response: Response): Promise<TenantWithSupplierDto[]>;
|
|
3374
3377
|
}
|
|
3375
3378
|
export interface ISuppliersClient {
|
|
3376
3379
|
listSupplierInvites(): Promise<SupplierInviteDto[]>;
|
|
@@ -9401,6 +9404,11 @@ export interface AcceptSupplierInviteCustomer {
|
|
|
9401
9404
|
tenantId?: string;
|
|
9402
9405
|
organizationNumber?: string;
|
|
9403
9406
|
}
|
|
9407
|
+
export interface TenantWithSupplierDto {
|
|
9408
|
+
tenantId: string;
|
|
9409
|
+
customerName: string;
|
|
9410
|
+
supplierTenantEntraId: string;
|
|
9411
|
+
}
|
|
9404
9412
|
export interface CreateSupplierInvite {
|
|
9405
9413
|
supplierId: string;
|
|
9406
9414
|
supplierName?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -27499,6 +27499,42 @@ export class ExternalClient extends AuthorizedApiBase {
|
|
|
27499
27499
|
}
|
|
27500
27500
|
return Promise.resolve(null);
|
|
27501
27501
|
}
|
|
27502
|
+
listTenantsWithSuppliers() {
|
|
27503
|
+
let url_ = this.baseUrl + "/external/tenantswithsuppliers";
|
|
27504
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27505
|
+
let options_ = {
|
|
27506
|
+
method: "GET",
|
|
27507
|
+
headers: {
|
|
27508
|
+
"Accept": "application/json"
|
|
27509
|
+
}
|
|
27510
|
+
};
|
|
27511
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27512
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27513
|
+
}).then((_response) => {
|
|
27514
|
+
return this.processListTenantsWithSuppliers(_response);
|
|
27515
|
+
});
|
|
27516
|
+
}
|
|
27517
|
+
processListTenantsWithSuppliers(response) {
|
|
27518
|
+
const status = response.status;
|
|
27519
|
+
let _headers = {};
|
|
27520
|
+
if (response.headers && response.headers.forEach) {
|
|
27521
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27522
|
+
}
|
|
27523
|
+
;
|
|
27524
|
+
if (status === 200) {
|
|
27525
|
+
return response.text().then((_responseText) => {
|
|
27526
|
+
let result200 = null;
|
|
27527
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27528
|
+
return result200;
|
|
27529
|
+
});
|
|
27530
|
+
}
|
|
27531
|
+
else if (status !== 200 && status !== 204) {
|
|
27532
|
+
return response.text().then((_responseText) => {
|
|
27533
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27534
|
+
});
|
|
27535
|
+
}
|
|
27536
|
+
return Promise.resolve(null);
|
|
27537
|
+
}
|
|
27502
27538
|
}
|
|
27503
27539
|
export class SuppliersClient extends AuthorizedApiBase {
|
|
27504
27540
|
constructor(configuration, baseUrl, http) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -29180,6 +29180,8 @@ export interface IExternalClient {
|
|
|
29180
29180
|
acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
|
|
29181
29181
|
|
|
29182
29182
|
acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto>;
|
|
29183
|
+
|
|
29184
|
+
listTenantsWithSuppliers(): Promise<TenantWithSupplierDto[]>;
|
|
29183
29185
|
}
|
|
29184
29186
|
|
|
29185
29187
|
export class ExternalClient extends AuthorizedApiBase implements IExternalClient {
|
|
@@ -29416,6 +29418,41 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
|
|
|
29416
29418
|
}
|
|
29417
29419
|
return Promise.resolve<SupplierInviteDto>(null as any);
|
|
29418
29420
|
}
|
|
29421
|
+
|
|
29422
|
+
listTenantsWithSuppliers(): Promise<TenantWithSupplierDto[]> {
|
|
29423
|
+
let url_ = this.baseUrl + "/external/tenantswithsuppliers";
|
|
29424
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29425
|
+
|
|
29426
|
+
let options_: RequestInit = {
|
|
29427
|
+
method: "GET",
|
|
29428
|
+
headers: {
|
|
29429
|
+
"Accept": "application/json"
|
|
29430
|
+
}
|
|
29431
|
+
};
|
|
29432
|
+
|
|
29433
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29434
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29435
|
+
}).then((_response: Response) => {
|
|
29436
|
+
return this.processListTenantsWithSuppliers(_response);
|
|
29437
|
+
});
|
|
29438
|
+
}
|
|
29439
|
+
|
|
29440
|
+
protected processListTenantsWithSuppliers(response: Response): Promise<TenantWithSupplierDto[]> {
|
|
29441
|
+
const status = response.status;
|
|
29442
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29443
|
+
if (status === 200) {
|
|
29444
|
+
return response.text().then((_responseText) => {
|
|
29445
|
+
let result200: any = null;
|
|
29446
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as TenantWithSupplierDto[];
|
|
29447
|
+
return result200;
|
|
29448
|
+
});
|
|
29449
|
+
} else if (status !== 200 && status !== 204) {
|
|
29450
|
+
return response.text().then((_responseText) => {
|
|
29451
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29452
|
+
});
|
|
29453
|
+
}
|
|
29454
|
+
return Promise.resolve<TenantWithSupplierDto[]>(null as any);
|
|
29455
|
+
}
|
|
29419
29456
|
}
|
|
29420
29457
|
|
|
29421
29458
|
export interface ISuppliersClient {
|
|
@@ -36526,6 +36563,12 @@ export interface AcceptSupplierInviteCustomer {
|
|
|
36526
36563
|
organizationNumber?: string;
|
|
36527
36564
|
}
|
|
36528
36565
|
|
|
36566
|
+
export interface TenantWithSupplierDto {
|
|
36567
|
+
tenantId: string;
|
|
36568
|
+
customerName: string;
|
|
36569
|
+
supplierTenantEntraId: string;
|
|
36570
|
+
}
|
|
36571
|
+
|
|
36529
36572
|
export interface CreateSupplierInvite {
|
|
36530
36573
|
supplierId: string;
|
|
36531
36574
|
supplierName?: string | null;
|