@frontegg/rest-api 7.80.0 → 7.81.0-alpha.0
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/applications/index.d.ts +6 -1
- package/applications/index.js +3 -0
- package/applications/interfaces.d.ts +8 -0
- package/constants.d.ts +1 -0
- package/constants.js +2 -1
- package/index.js +1 -1
- package/node/applications/index.js +3 -0
- package/node/constants.js +2 -1
- package/node/index.js +1 -1
- package/package.json +1 -1
- package/users/interfaces.d.ts +2 -0
package/applications/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseApiClient } from '../BaseApiClient';
|
|
2
|
-
import { IUserApplicationsIdPayload, IUserApplicationsDataPayload, IApplicationsResponse, IAssignUserToApplicationsBody, IUsersApplicationsIdPayload, IUsersOfApplicationsResponse,
|
|
2
|
+
import { IUserApplicationsIdPayload, IUserApplicationsDataPayload, IApplicationsResponse, IAssignUserToApplicationsBody, IUsersApplicationsIdPayload, IUsersOfApplicationsResponse, IApplicationsTenantAssignmentResponse, IGetUsersOfApplicationsQuery, IUsersApplicationsIdsResponse, ITenantApplicationsResponse } from './interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* UsersApplicationsApi class for handling applications-related operations.
|
|
5
5
|
*/
|
|
@@ -22,6 +22,11 @@ export declare class ApplicationsApi extends BaseApiClient {
|
|
|
22
22
|
* @returns {Promise<ITenantApplicationsResponse[]>} array of objects with tenant id and its applications id array.
|
|
23
23
|
*/
|
|
24
24
|
getTenantsApplications: () => Promise<ITenantApplicationsResponse[]>;
|
|
25
|
+
/**
|
|
26
|
+
* Get applications data array for a specific tenant.
|
|
27
|
+
* @returns {Promise<IApplicationsTenantAssignmentResponse[]>} array of objects with tenant id and its applications assignments.
|
|
28
|
+
*/
|
|
29
|
+
getTenantsApplicationsV2: () => Promise<IApplicationsTenantAssignmentResponse[]>;
|
|
25
30
|
/**
|
|
26
31
|
* Get applications data by array of application ids.
|
|
27
32
|
* @param {IUserApplicationsDataPayload} param0 - array of application ids.
|
package/applications/index.js
CHANGED
|
@@ -21,6 +21,9 @@ export class ApplicationsApi extends BaseApiClient {
|
|
|
21
21
|
this.getTenantsApplications = async () => {
|
|
22
22
|
return this.get(urls.applications.tenant.v1);
|
|
23
23
|
};
|
|
24
|
+
this.getTenantsApplicationsV2 = async () => {
|
|
25
|
+
return this.get(urls.applications.tenant.v2);
|
|
26
|
+
};
|
|
24
27
|
this.getApplicationsData = async ({
|
|
25
28
|
appIds,
|
|
26
29
|
includeFreeAccess = true
|
|
@@ -43,6 +43,14 @@ export type ITenantApplicationsResponse = {
|
|
|
43
43
|
tenantId: string;
|
|
44
44
|
appIds?: string[];
|
|
45
45
|
};
|
|
46
|
+
export type IApplicationTenantAssignment = {
|
|
47
|
+
appId: string;
|
|
48
|
+
accessType: ApplicationAccessType;
|
|
49
|
+
};
|
|
50
|
+
export type IApplicationsTenantAssignmentResponse = {
|
|
51
|
+
tenantId: string;
|
|
52
|
+
assignments: IApplicationTenantAssignment[];
|
|
53
|
+
};
|
|
46
54
|
export type IUsersApplicationsIdsResponse = {
|
|
47
55
|
userId: string;
|
|
48
56
|
appIds: string[];
|
package/constants.d.ts
CHANGED
package/constants.js
CHANGED
|
@@ -281,7 +281,8 @@ export const urls = {
|
|
|
281
281
|
applications: {
|
|
282
282
|
v1: '/applications/resources/applications/v1',
|
|
283
283
|
tenant: {
|
|
284
|
-
v1: '/applications/resources/applications/tenant-assignments/v1'
|
|
284
|
+
v1: '/applications/resources/applications/tenant-assignments/v1',
|
|
285
|
+
v2: '/applications/resources/applications/tenant-assignments/v2'
|
|
285
286
|
}
|
|
286
287
|
},
|
|
287
288
|
velo: {
|
package/index.js
CHANGED
|
@@ -27,6 +27,9 @@ class ApplicationsApi extends _BaseApiClient.BaseApiClient {
|
|
|
27
27
|
this.getTenantsApplications = async () => {
|
|
28
28
|
return this.get(_constants.urls.applications.tenant.v1);
|
|
29
29
|
};
|
|
30
|
+
this.getTenantsApplicationsV2 = async () => {
|
|
31
|
+
return this.get(_constants.urls.applications.tenant.v2);
|
|
32
|
+
};
|
|
30
33
|
this.getApplicationsData = async ({
|
|
31
34
|
appIds,
|
|
32
35
|
includeFreeAccess = true
|
package/node/constants.js
CHANGED
|
@@ -287,7 +287,8 @@ const urls = {
|
|
|
287
287
|
applications: {
|
|
288
288
|
v1: '/applications/resources/applications/v1',
|
|
289
289
|
tenant: {
|
|
290
|
-
v1: '/applications/resources/applications/tenant-assignments/v1'
|
|
290
|
+
v1: '/applications/resources/applications/tenant-assignments/v1',
|
|
291
|
+
v2: '/applications/resources/applications/tenant-assignments/v2'
|
|
291
292
|
}
|
|
292
293
|
},
|
|
293
294
|
velo: {
|
package/node/index.js
CHANGED
package/package.json
CHANGED
package/users/interfaces.d.ts
CHANGED
|
@@ -40,6 +40,8 @@ export interface ISearchUserQueryParamsV3 extends IGetUserQueryParams {
|
|
|
40
40
|
_includeSubTenants?: boolean;
|
|
41
41
|
_preset?: GetUsersFilterPreset;
|
|
42
42
|
_maxInactiveSeconds?: number;
|
|
43
|
+
_identifier?: string;
|
|
44
|
+
_identifierType?: string;
|
|
43
45
|
}
|
|
44
46
|
export interface IUserTenantData {
|
|
45
47
|
tenantId: string;
|