@frontegg/rest-api 3.1.22 → 3.1.23

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.1.22
1
+ /** @license Frontegg v3.1.23
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/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.1.22
1
+ /** @license Frontegg v3.1.23
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.
@@ -16,14 +16,10 @@ exports.updateUserProfileV2 = updateUserProfileV2;
16
16
 
17
17
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
18
18
 
19
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
20
-
21
19
  var _fetch = require("../fetch");
22
20
 
23
21
  var _constants = require("../constants");
24
22
 
25
- const _excluded = ["_presetParams"];
26
-
27
23
  async function GetUserJwt(body) {
28
24
  return (0, _fetch.Post)(`${_constants.urls.identity.users.v3}/me/token`, body);
29
25
  }
@@ -35,14 +31,7 @@ async function getUsersV2(queryParams, options) {
35
31
  }
36
32
 
37
33
  async function getUsersV3(queryParams, options) {
38
- const {
39
- _presetParams
40
- } = queryParams,
41
- params = (0, _objectWithoutPropertiesLoose2.default)(queryParams, _excluded);
42
- const finalQueryParams = (0, _extends2.default)({}, params, {
43
- _presetParams: _presetParams ? JSON.stringify(_presetParams) : undefined
44
- });
45
- return (0, _fetch.Get)(_constants.urls.identity.users.v3, finalQueryParams, {
34
+ return (0, _fetch.Get)(_constants.urls.identity.users.v3, queryParams, {
46
35
  headers: (0, _fetch.extractHeadersFromOptions)(options)
47
36
  });
48
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.1.22",
3
+ "version": "3.1.23",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
package/users/index.js CHANGED
@@ -1,6 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["_presetParams"];
4
2
  import { extractHeadersFromOptions, Get, Post, Put } from '../fetch';
5
3
  import { urls } from '../constants';
6
4
  export async function GetUserJwt(body) {
@@ -12,16 +10,7 @@ export async function getUsersV2(queryParams, options) {
12
10
  });
13
11
  }
14
12
  export async function getUsersV3(queryParams, options) {
15
- const {
16
- _presetParams
17
- } = queryParams,
18
- params = _objectWithoutPropertiesLoose(queryParams, _excluded);
19
-
20
- const finalQueryParams = _extends({}, params, {
21
- _presetParams: _presetParams ? JSON.stringify(_presetParams) : undefined
22
- });
23
-
24
- return Get(urls.identity.users.v3, finalQueryParams, {
13
+ return Get(urls.identity.users.v3, queryParams, {
25
14
  headers: extractHeadersFromOptions(options)
26
15
  });
27
16
  }
@@ -3,7 +3,7 @@ import { ITenantsResponse } from '../tenants/interfaces';
3
3
  import { IRole } from '../roles/interfaces';
4
4
  import { ITeamUserPermission, UserManagedByEnum } from '../teams/interfaces';
5
5
  import { IGroupResponse } from '../groups/interfaces';
6
- import { UserEntitlementsResponse } from "../entitlements/interfaces";
6
+ import { UserEntitlementsResponse } from '../entitlements/interfaces';
7
7
  export declare enum SortByEnum {
8
8
  createdAt = "createdAt",
9
9
  name = "name",
@@ -39,7 +39,7 @@ export interface ISearchUserQueryParamsV3 extends IGetUserQueryParams {
39
39
  _tenantId?: string;
40
40
  _includeSubTenants?: boolean;
41
41
  _preset?: GetUsersFilterPreset;
42
- _presetParams?: GetUsersFilterPresetParams;
42
+ _maxInactiveSeconds?: number;
43
43
  }
44
44
  export interface IUserTenantData {
45
45
  tenantId: string;
@@ -98,9 +98,6 @@ export declare enum GetUsersFilterPreset {
98
98
  BREACHED_PASSWORDS = "breached-passwords",
99
99
  INACTIVE = "inactive"
100
100
  }
101
- export interface GetUsersFilterPresetParams {
102
- _maxInactiveSeconds?: number;
103
- }
104
101
  export interface GetUsersRolesParams {
105
102
  ids: string[];
106
103
  }