@ignos/api-client 20261023.320.1-alpha → 20261026.322.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 +13 -3
- package/package.json +1 -1
- package/src/ignosportal-api.ts +17 -5
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3673,7 +3673,7 @@ export interface IExternalAccessClient {
|
|
|
3673
3673
|
deleteCompanyUser(id: string, companyId: string | null | undefined): Promise<void>;
|
|
3674
3674
|
migrateLegacyCompanyUsersToEntra(): Promise<CompanyUserDto[]>;
|
|
3675
3675
|
listRoles(): Promise<ExternalRoleDto[]>;
|
|
3676
|
-
listCompanyCustomers(): Promise<
|
|
3676
|
+
listCompanyCustomers(): Promise<CompanyCustomersDto>;
|
|
3677
3677
|
deleteCompanyCustomer(tenantId: string): Promise<void>;
|
|
3678
3678
|
}
|
|
3679
3679
|
export declare class ExternalAccessClient extends AuthorizedApiBase implements IExternalAccessClient {
|
|
@@ -3694,8 +3694,8 @@ export declare class ExternalAccessClient extends AuthorizedApiBase implements I
|
|
|
3694
3694
|
protected processMigrateLegacyCompanyUsersToEntra(response: Response): Promise<CompanyUserDto[]>;
|
|
3695
3695
|
listRoles(): Promise<ExternalRoleDto[]>;
|
|
3696
3696
|
protected processListRoles(response: Response): Promise<ExternalRoleDto[]>;
|
|
3697
|
-
listCompanyCustomers(): Promise<
|
|
3698
|
-
protected processListCompanyCustomers(response: Response): Promise<
|
|
3697
|
+
listCompanyCustomers(): Promise<CompanyCustomersDto>;
|
|
3698
|
+
protected processListCompanyCustomers(response: Response): Promise<CompanyCustomersDto>;
|
|
3699
3699
|
deleteCompanyCustomer(tenantId: string): Promise<void>;
|
|
3700
3700
|
protected processDeleteCompanyCustomer(response: Response): Promise<void>;
|
|
3701
3701
|
}
|
|
@@ -4085,6 +4085,8 @@ export interface UserDetailsDto {
|
|
|
4085
4085
|
isInvitedUser?: boolean;
|
|
4086
4086
|
isSupplier?: boolean;
|
|
4087
4087
|
companyId?: string | null;
|
|
4088
|
+
entraTenantId?: string | null;
|
|
4089
|
+
homeEntraTenantId?: string | null;
|
|
4088
4090
|
}
|
|
4089
4091
|
export interface UserDto {
|
|
4090
4092
|
id?: string | null;
|
|
@@ -10666,6 +10668,10 @@ export interface ExternalRoleDto {
|
|
|
10666
10668
|
id: string;
|
|
10667
10669
|
name: string;
|
|
10668
10670
|
}
|
|
10671
|
+
export interface CompanyCustomersDto {
|
|
10672
|
+
customers: CompanyCustomerDto[];
|
|
10673
|
+
homeEntraTenant?: HomeEntraTenantDto | null;
|
|
10674
|
+
}
|
|
10669
10675
|
export interface CompanyCustomerDto {
|
|
10670
10676
|
customerTenantId?: string | null;
|
|
10671
10677
|
customerAzureAdTenantId?: string | null;
|
|
@@ -10674,6 +10680,10 @@ export interface CompanyCustomerDto {
|
|
|
10674
10680
|
supplierName?: string | null;
|
|
10675
10681
|
customerIgnosPortalPrefix?: string | null;
|
|
10676
10682
|
}
|
|
10683
|
+
export interface HomeEntraTenantDto {
|
|
10684
|
+
entraTenantId: string;
|
|
10685
|
+
isIgnosCustomer: boolean;
|
|
10686
|
+
}
|
|
10677
10687
|
export interface CompanyDto {
|
|
10678
10688
|
id: string;
|
|
10679
10689
|
name: string;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -32121,7 +32121,7 @@ export interface IExternalAccessClient {
|
|
|
32121
32121
|
|
|
32122
32122
|
listRoles(): Promise<ExternalRoleDto[]>;
|
|
32123
32123
|
|
|
32124
|
-
listCompanyCustomers(): Promise<
|
|
32124
|
+
listCompanyCustomers(): Promise<CompanyCustomersDto>;
|
|
32125
32125
|
|
|
32126
32126
|
deleteCompanyCustomer(tenantId: string): Promise<void>;
|
|
32127
32127
|
}
|
|
@@ -32361,7 +32361,7 @@ export class ExternalAccessClient extends AuthorizedApiBase implements IExternal
|
|
|
32361
32361
|
return Promise.resolve<ExternalRoleDto[]>(null as any);
|
|
32362
32362
|
}
|
|
32363
32363
|
|
|
32364
|
-
listCompanyCustomers(): Promise<
|
|
32364
|
+
listCompanyCustomers(): Promise<CompanyCustomersDto> {
|
|
32365
32365
|
let url_ = this.baseUrl + "/externalaccess/customers";
|
|
32366
32366
|
url_ = url_.replace(/[?&]$/, "");
|
|
32367
32367
|
|
|
@@ -32379,13 +32379,13 @@ export class ExternalAccessClient extends AuthorizedApiBase implements IExternal
|
|
|
32379
32379
|
});
|
|
32380
32380
|
}
|
|
32381
32381
|
|
|
32382
|
-
protected processListCompanyCustomers(response: Response): Promise<
|
|
32382
|
+
protected processListCompanyCustomers(response: Response): Promise<CompanyCustomersDto> {
|
|
32383
32383
|
const status = response.status;
|
|
32384
32384
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
32385
32385
|
if (status === 200) {
|
|
32386
32386
|
return response.text().then((_responseText) => {
|
|
32387
32387
|
let result200: any = null;
|
|
32388
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
32388
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CompanyCustomersDto;
|
|
32389
32389
|
return result200;
|
|
32390
32390
|
});
|
|
32391
32391
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -32393,7 +32393,7 @@ export class ExternalAccessClient extends AuthorizedApiBase implements IExternal
|
|
|
32393
32393
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
32394
32394
|
});
|
|
32395
32395
|
}
|
|
32396
|
-
return Promise.resolve<
|
|
32396
|
+
return Promise.resolve<CompanyCustomersDto>(null as any);
|
|
32397
32397
|
}
|
|
32398
32398
|
|
|
32399
32399
|
deleteCompanyCustomer(tenantId: string): Promise<void> {
|
|
@@ -33372,6 +33372,8 @@ export interface UserDetailsDto {
|
|
|
33372
33372
|
isInvitedUser?: boolean;
|
|
33373
33373
|
isSupplier?: boolean;
|
|
33374
33374
|
companyId?: string | null;
|
|
33375
|
+
entraTenantId?: string | null;
|
|
33376
|
+
homeEntraTenantId?: string | null;
|
|
33375
33377
|
}
|
|
33376
33378
|
|
|
33377
33379
|
export interface UserDto {
|
|
@@ -40848,6 +40850,11 @@ export interface ExternalRoleDto {
|
|
|
40848
40850
|
name: string;
|
|
40849
40851
|
}
|
|
40850
40852
|
|
|
40853
|
+
export interface CompanyCustomersDto {
|
|
40854
|
+
customers: CompanyCustomerDto[];
|
|
40855
|
+
homeEntraTenant?: HomeEntraTenantDto | null;
|
|
40856
|
+
}
|
|
40857
|
+
|
|
40851
40858
|
export interface CompanyCustomerDto {
|
|
40852
40859
|
customerTenantId?: string | null;
|
|
40853
40860
|
customerAzureAdTenantId?: string | null;
|
|
@@ -40857,6 +40864,11 @@ export interface CompanyCustomerDto {
|
|
|
40857
40864
|
customerIgnosPortalPrefix?: string | null;
|
|
40858
40865
|
}
|
|
40859
40866
|
|
|
40867
|
+
export interface HomeEntraTenantDto {
|
|
40868
|
+
entraTenantId: string;
|
|
40869
|
+
isIgnosCustomer: boolean;
|
|
40870
|
+
}
|
|
40871
|
+
|
|
40860
40872
|
export interface CompanyDto {
|
|
40861
40873
|
id: string;
|
|
40862
40874
|
name: string;
|