@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.
@@ -1,5 +1,5 @@
1
1
  import { BaseApiClient } from '../BaseApiClient';
2
- import { IUserApplicationsIdPayload, IUserApplicationsDataPayload, IApplicationsResponse, IAssignUserToApplicationsBody, IUsersApplicationsIdPayload, IUsersOfApplicationsResponse, ITenantApplicationsResponse, IGetUsersOfApplicationsQuery, IUsersApplicationsIdsResponse } from './interfaces';
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.
@@ -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
@@ -281,6 +281,7 @@ export declare const urls: {
281
281
  v1: string;
282
282
  tenant: {
283
283
  v1: string;
284
+ v2: string;
284
285
  };
285
286
  };
286
287
  velo: {
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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.80.0
1
+ /** @license Frontegg v7.81.0-alpha.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.80.0
1
+ /** @license Frontegg v7.81.0-alpha.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "7.80.0",
3
+ "version": "7.81.0-alpha.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
@@ -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;