@frontegg/rest-api 3.0.99 → 3.0.100

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/constants.d.ts CHANGED
@@ -73,6 +73,9 @@ export declare const urls: {
73
73
  v1: string;
74
74
  };
75
75
  };
76
+ users: {
77
+ v1: string;
78
+ };
76
79
  };
77
80
  roles: {
78
81
  v1: string;
package/constants.js CHANGED
@@ -72,6 +72,9 @@ export const urls = {
72
72
  configuration: {
73
73
  v1: '/identity/resources/tenants/invites/v1/configuration'
74
74
  }
75
+ },
76
+ users: {
77
+ v1: "/identity/resources/tenants/users/v1"
75
78
  }
76
79
  },
77
80
  roles: {
package/fetch.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ContextOptions } from './interfaces';
1
+ import { ContextOptions, UserJwtOptions } from './interfaces';
2
2
  interface RequestOptions {
3
3
  url: string;
4
4
  method: 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
@@ -16,4 +16,7 @@ export declare const Patch: (url: string, body?: any, opts?: Pick<RequestOptions
16
16
  export declare const Put: (url: string, body?: any, opts?: Pick<RequestOptions, "body" | "params" | "contentType" | "responseType" | "headers" | "credentials"> | undefined) => Promise<any>;
17
17
  export declare const Delete: (url: string, body?: any, opts?: Pick<RequestOptions, "body" | "params" | "contentType" | "responseType" | "headers" | "credentials"> | undefined) => Promise<any>;
18
18
  export declare const PostDownload: (url: string, body?: any, params?: any, opts?: any) => Promise<any>;
19
+ export declare const extractHeadersFromOptions: (options?: UserJwtOptions) => {
20
+ Authorization?: string;
21
+ };
19
22
  export {};
package/fetch.js CHANGED
@@ -212,4 +212,7 @@ export const PostDownload = async (url, body, params, opts) => sendRequest(_exte
212
212
  responseType: 'blob',
213
213
  body,
214
214
  params
215
- }, opts));
215
+ }, opts));
216
+ export const extractHeadersFromOptions = (options = {}) => _extends({}, options.jwt ? {
217
+ Authorization: options.jwt
218
+ } : {});
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.99
1
+ /** @license Frontegg v3.0.100
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/interfaces.d.ts CHANGED
@@ -6,6 +6,12 @@ export interface PaginationResult<T> {
6
6
  totalPages: number;
7
7
  items: T[];
8
8
  }
9
+ export interface FronteggPaginationLinks {
10
+ next: string;
11
+ prev: string;
12
+ first: string;
13
+ last: string;
14
+ }
9
15
  export interface FronteggPaginationResult<T> {
10
16
  _metadata: {
11
17
  totalPages: number;
@@ -13,6 +19,9 @@ export interface FronteggPaginationResult<T> {
13
19
  };
14
20
  items: T[];
15
21
  }
22
+ export interface FronteggPaginationWrapper<T> extends FronteggPaginationResult<T> {
23
+ _links?: FronteggPaginationLinks;
24
+ }
16
25
  export interface KeyValuePair {
17
26
  key: string;
18
27
  value: string;
@@ -53,3 +62,6 @@ export interface RedirectOptions {
53
62
  replace?: boolean;
54
63
  preserveQueryParams?: boolean;
55
64
  }
65
+ export interface UserJwtOptions {
66
+ jwt?: string;
67
+ }
package/node/constants.js CHANGED
@@ -78,6 +78,9 @@ const urls = {
78
78
  configuration: {
79
79
  v1: '/identity/resources/tenants/invites/v1/configuration'
80
80
  }
81
+ },
82
+ users: {
83
+ v1: "/identity/resources/tenants/users/v1"
81
84
  }
82
85
  },
83
86
  roles: {
package/node/fetch.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Put = exports.PostDownload = exports.Post = exports.Patch = exports.Get = exports.Delete = void 0;
8
+ exports.extractHeadersFromOptions = exports.Put = exports.PostDownload = exports.Post = exports.Patch = exports.Get = exports.Delete = void 0;
9
9
  exports.getBaseUrl = getBaseUrl;
10
10
 
11
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
@@ -243,4 +243,10 @@ const PostDownload = async (url, body, params, opts) => sendRequest((0, _extends
243
243
  params
244
244
  }, opts));
245
245
 
246
- exports.PostDownload = PostDownload;
246
+ exports.PostDownload = PostDownload;
247
+
248
+ const extractHeadersFromOptions = (options = {}) => (0, _extends2.default)({}, options.jwt ? {
249
+ Authorization: options.jwt
250
+ } : {});
251
+
252
+ exports.extractHeadersFromOptions = extractHeadersFromOptions;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.99
1
+ /** @license Frontegg v3.0.100
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.
@@ -25,8 +25,10 @@ async function addUserToTenantAndSubTenants(body) {
25
25
  return (0, _fetch.Post)(_constants.urls.identity.subTenants.v1, body);
26
26
  }
27
27
 
28
- async function removeUserFromTenantAndSubTenants(body) {
29
- return (0, _fetch.Delete)(_constants.urls.identity.subTenants.v1, body);
28
+ async function removeUserFromTenantAndSubTenants(body, options) {
29
+ return (0, _fetch.Delete)(_constants.urls.identity.subTenants.v1, body, {
30
+ headers: (0, _fetch.extractHeadersFromOptions)(options)
31
+ });
30
32
  }
31
33
 
32
34
  async function addUserRolesForSubTenants(userId, body) {
@@ -37,18 +39,26 @@ async function removeUserRolesFromSubTenants(userId, body) {
37
39
  return (0, _fetch.Delete)(`${_constants.urls.identity.subTenants.v1}/${userId}/roles`, body);
38
40
  }
39
41
 
40
- async function setUserRolesForSubTenants(userId, body) {
41
- return (0, _fetch.Patch)(`${_constants.urls.identity.subTenants.v1}/${userId}/roles`, body);
42
+ async function setUserRolesForSubTenants(userId, body, options) {
43
+ return (0, _fetch.Patch)(`${_constants.urls.identity.subTenants.v1}/${userId}/roles`, body, {
44
+ headers: (0, _fetch.extractHeadersFromOptions)(options)
45
+ });
42
46
  }
43
47
 
44
- async function createSubTenant(body) {
45
- return (0, _fetch.Post)(_constants.urls.tenants.subTenants.v1, body);
48
+ async function createSubTenant(body, options) {
49
+ return (0, _fetch.Post)(_constants.urls.tenants.subTenants.v1, body, {
50
+ headers: (0, _fetch.extractHeadersFromOptions)(options)
51
+ });
46
52
  }
47
53
 
48
- async function deleteSubTenant(tenantId) {
49
- return (0, _fetch.Delete)(`${_constants.urls.tenants.subTenants.v1}/${tenantId}`);
54
+ async function deleteSubTenant(tenantId, options) {
55
+ return (0, _fetch.Delete)(`${_constants.urls.tenants.subTenants.v1}/${tenantId}`, undefined, {
56
+ headers: (0, _fetch.extractHeadersFromOptions)(options)
57
+ });
50
58
  }
51
59
 
52
- async function updateSubAccountAccess(userId, body) {
53
- return (0, _fetch.Put)(`${_constants.urls.identity.subTenants.v1}/${userId}/access`, body);
60
+ async function updateSubAccountAccess(userId, body, options) {
61
+ return (0, _fetch.Put)(`${_constants.urls.identity.subTenants.v1}/${userId}/access`, body, {
62
+ headers: (0, _fetch.extractHeadersFromOptions)(options)
63
+ });
54
64
  }
@@ -7,6 +7,7 @@ exports.getParentTenants = getParentTenants;
7
7
  exports.getSubTenants = getSubTenants;
8
8
  exports.getSubTenantsAsTree = getSubTenantsAsTree;
9
9
  exports.getTenants = getTenants;
10
+ exports.getTenantsUsersCount = getTenantsUsersCount;
10
11
  exports.switchTenant = switchTenant;
11
12
 
12
13
  var _fetch = require("../fetch");
@@ -21,14 +22,24 @@ async function getTenants() {
21
22
  return (0, _fetch.Get)(`${_constants.urls.identity.users.v2}/me/tenants`);
22
23
  }
23
24
 
24
- async function getSubTenants() {
25
- return (0, _fetch.Get)(_constants.urls.tenants.hierarchy.v1);
25
+ async function getSubTenants(options) {
26
+ return (0, _fetch.Get)(_constants.urls.tenants.hierarchy.v1, undefined, {
27
+ headers: (0, _fetch.extractHeadersFromOptions)(options)
28
+ });
26
29
  }
27
30
 
28
- async function getSubTenantsAsTree() {
29
- return (0, _fetch.Get)(_constants.urls.tenants.hierarchy.tree.v1);
31
+ async function getSubTenantsAsTree(options) {
32
+ return (0, _fetch.Get)(_constants.urls.tenants.hierarchy.tree.v1, undefined, {
33
+ headers: (0, _fetch.extractHeadersFromOptions)(options)
34
+ });
30
35
  }
31
36
 
32
- async function getParentTenants() {
33
- return (0, _fetch.Get)(_constants.urls.tenants.hierarchy.parents.v1);
37
+ async function getParentTenants(options) {
38
+ return (0, _fetch.Get)(_constants.urls.tenants.hierarchy.parents.v1, undefined, {
39
+ headers: (0, _fetch.extractHeadersFromOptions)(options)
40
+ });
41
+ }
42
+
43
+ async function getTenantsUsersCount(body) {
44
+ return (0, _fetch.Post)(`${_constants.urls.identity.tenants.users.v1}/count`, body);
34
45
  }
@@ -4,11 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.GetUserJwt = GetUserJwt;
7
+ exports.getUsersV3 = getUsersV3;
7
8
 
8
9
  var _fetch = require("../fetch");
9
10
 
10
11
  var _constants = require("../constants");
11
12
 
12
13
  async function GetUserJwt(body) {
13
- return (0, _fetch.Post)(_constants.urls.identity.users.v3, body);
14
+ return (0, _fetch.Post)(`${_constants.urls.identity.users.v3}/me/token`, body);
15
+ }
16
+
17
+ async function getUsersV3(queryParams, options) {
18
+ return (0, _fetch.Get)(_constants.urls.identity.users.v3, queryParams, {
19
+ headers: (0, _fetch.extractHeadersFromOptions)(options)
20
+ });
14
21
  }
@@ -2,4 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
5
+ });
6
+ exports.SortByEnum = exports.PaginationOrderEnum = void 0;
7
+ let SortByEnum;
8
+ exports.SortByEnum = SortByEnum;
9
+
10
+ (function (SortByEnum) {
11
+ SortByEnum["createdAt"] = "createdAt";
12
+ SortByEnum["name"] = "name";
13
+ SortByEnum["email"] = "email";
14
+ SortByEnum["id"] = "id";
15
+ SortByEnum["verified"] = "verified";
16
+ SortByEnum["isLocked"] = "isLocked";
17
+ SortByEnum["provider"] = "provider";
18
+ SortByEnum["tenantId"] = "tenantId";
19
+ })(SortByEnum || (exports.SortByEnum = SortByEnum = {}));
20
+
21
+ let PaginationOrderEnum;
22
+ exports.PaginationOrderEnum = PaginationOrderEnum;
23
+
24
+ (function (PaginationOrderEnum) {
25
+ PaginationOrderEnum["ASC"] = "ASC";
26
+ PaginationOrderEnum["DESC"] = "DESC";
27
+ })(PaginationOrderEnum || (exports.PaginationOrderEnum = PaginationOrderEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.99",
3
+ "version": "3.0.100",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -1,11 +1,11 @@
1
- import { PaginationResult } from "../interfaces";
1
+ import { PaginationResult, UserJwtOptions } from "../interfaces";
2
2
  import { AddUserToSubTenantsRequest, CreateSubTenantRequest, CreateSubTenantResponse, ILoadAllUsers, ISubTenantUser, RemoveUserFromSubTenantsRequest, UpdateSubAccountAccessRequestDto, UpdateUserRolesForSubTenantsRequestDto } from "./interfaces";
3
3
  export declare function loadAllUsers(params: ILoadAllUsers): Promise<PaginationResult<ISubTenantUser>>;
4
4
  export declare function addUserToTenantAndSubTenants(body: AddUserToSubTenantsRequest): Promise<void>;
5
- export declare function removeUserFromTenantAndSubTenants(body: RemoveUserFromSubTenantsRequest): Promise<void>;
5
+ export declare function removeUserFromTenantAndSubTenants(body: RemoveUserFromSubTenantsRequest, options?: UserJwtOptions): Promise<void>;
6
6
  export declare function addUserRolesForSubTenants(userId: string, body: UpdateUserRolesForSubTenantsRequestDto): Promise<void>;
7
7
  export declare function removeUserRolesFromSubTenants(userId: string, body: UpdateUserRolesForSubTenantsRequestDto): Promise<void>;
8
- export declare function setUserRolesForSubTenants(userId: string, body: UpdateUserRolesForSubTenantsRequestDto): Promise<void>;
9
- export declare function createSubTenant(body: CreateSubTenantRequest): Promise<CreateSubTenantResponse>;
10
- export declare function deleteSubTenant(tenantId: string): Promise<void>;
11
- export declare function updateSubAccountAccess(userId: string, body: UpdateSubAccountAccessRequestDto): Promise<void>;
8
+ export declare function setUserRolesForSubTenants(userId: string, body: UpdateUserRolesForSubTenantsRequestDto, options?: UserJwtOptions): Promise<void>;
9
+ export declare function createSubTenant(body: CreateSubTenantRequest, options?: UserJwtOptions): Promise<CreateSubTenantResponse>;
10
+ export declare function deleteSubTenant(tenantId: string, options?: UserJwtOptions): Promise<void>;
11
+ export declare function updateSubAccountAccess(userId: string, body: UpdateSubAccountAccessRequestDto, options?: UserJwtOptions): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { Delete, Get, Patch, Post, Put } from "../fetch";
1
+ import { Delete, extractHeadersFromOptions, Get, Patch, Post, Put } from "../fetch";
2
2
  import { urls } from "../constants";
3
3
  export async function loadAllUsers(params) {
4
4
  return Get(urls.identity.subTenants.v1, params);
@@ -6,8 +6,10 @@ export async function loadAllUsers(params) {
6
6
  export async function addUserToTenantAndSubTenants(body) {
7
7
  return Post(urls.identity.subTenants.v1, body);
8
8
  }
9
- export async function removeUserFromTenantAndSubTenants(body) {
10
- return Delete(urls.identity.subTenants.v1, body);
9
+ export async function removeUserFromTenantAndSubTenants(body, options) {
10
+ return Delete(urls.identity.subTenants.v1, body, {
11
+ headers: extractHeadersFromOptions(options)
12
+ });
11
13
  }
12
14
  export async function addUserRolesForSubTenants(userId, body) {
13
15
  return Post(`${urls.identity.subTenants.v1}/${userId}/roles`, body);
@@ -15,15 +17,23 @@ export async function addUserRolesForSubTenants(userId, body) {
15
17
  export async function removeUserRolesFromSubTenants(userId, body) {
16
18
  return Delete(`${urls.identity.subTenants.v1}/${userId}/roles`, body);
17
19
  }
18
- export async function setUserRolesForSubTenants(userId, body) {
19
- return Patch(`${urls.identity.subTenants.v1}/${userId}/roles`, body);
20
- }
21
- export async function createSubTenant(body) {
22
- return Post(urls.tenants.subTenants.v1, body);
23
- }
24
- export async function deleteSubTenant(tenantId) {
25
- return Delete(`${urls.tenants.subTenants.v1}/${tenantId}`);
26
- }
27
- export async function updateSubAccountAccess(userId, body) {
28
- return Put(`${urls.identity.subTenants.v1}/${userId}/access`, body);
20
+ export async function setUserRolesForSubTenants(userId, body, options) {
21
+ return Patch(`${urls.identity.subTenants.v1}/${userId}/roles`, body, {
22
+ headers: extractHeadersFromOptions(options)
23
+ });
24
+ }
25
+ export async function createSubTenant(body, options) {
26
+ return Post(urls.tenants.subTenants.v1, body, {
27
+ headers: extractHeadersFromOptions(options)
28
+ });
29
+ }
30
+ export async function deleteSubTenant(tenantId, options) {
31
+ return Delete(`${urls.tenants.subTenants.v1}/${tenantId}`, undefined, {
32
+ headers: extractHeadersFromOptions(options)
33
+ });
34
+ }
35
+ export async function updateSubAccountAccess(userId, body, options) {
36
+ return Put(`${urls.identity.subTenants.v1}/${userId}/access`, body, {
37
+ headers: extractHeadersFromOptions(options)
38
+ });
29
39
  }
@@ -1,4 +1,5 @@
1
- import { IParentTenant, ISubTenant, ISubTenantTree, ISwitchTenant, ITenantsResponse } from "./interfaces";
1
+ import { IGetTenantsUserCountRequest, IGetTenantsUserCountResponse, IParentTenant, ISubTenant, ISubTenantTree, ISwitchTenant, ITenantsResponse } from "./interfaces";
2
+ import { UserJwtOptions } from "../interfaces";
2
3
  /**
3
4
  * switch logged in user to specific tenant by providing tenantId.
4
5
  *
@@ -17,16 +18,17 @@ export declare function getTenants(): Promise<ITenantsResponse[]>;
17
18
  *
18
19
  * ``authorized user``
19
20
  */
20
- export declare function getSubTenants(): Promise<ISubTenant>;
21
+ export declare function getSubTenants(options?: UserJwtOptions): Promise<ISubTenant>;
21
22
  /**
22
23
  * retrieve logged in user's available sub tenants as a tree.
23
24
  *
24
25
  * ``authorized user``
25
26
  */
26
- export declare function getSubTenantsAsTree(): Promise<ISubTenantTree>;
27
+ export declare function getSubTenantsAsTree(options?: UserJwtOptions): Promise<ISubTenantTree>;
27
28
  /**
28
29
  * retrieve logged in user's available parent tenants.
29
30
  *
30
31
  * ``authorized user``
31
32
  */
32
- export declare function getParentTenants(): Promise<IParentTenant[]>;
33
+ export declare function getParentTenants(options?: UserJwtOptions): Promise<IParentTenant[]>;
34
+ export declare function getTenantsUsersCount(body: IGetTenantsUserCountRequest): Promise<IGetTenantsUserCountResponse[]>;
package/tenants/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Get, Put } from "../fetch";
1
+ import { extractHeadersFromOptions, Get, Post, Put } from "../fetch";
2
2
  import { urls } from "../constants";
3
3
  export async function switchTenant(body) {
4
4
  return Put(`${urls.identity.users.v1}/tenant`, body);
@@ -6,12 +6,21 @@ export async function switchTenant(body) {
6
6
  export async function getTenants() {
7
7
  return Get(`${urls.identity.users.v2}/me/tenants`);
8
8
  }
9
- export async function getSubTenants() {
10
- return Get(urls.tenants.hierarchy.v1);
9
+ export async function getSubTenants(options) {
10
+ return Get(urls.tenants.hierarchy.v1, undefined, {
11
+ headers: extractHeadersFromOptions(options)
12
+ });
11
13
  }
12
- export async function getSubTenantsAsTree() {
13
- return Get(urls.tenants.hierarchy.tree.v1);
14
+ export async function getSubTenantsAsTree(options) {
15
+ return Get(urls.tenants.hierarchy.tree.v1, undefined, {
16
+ headers: extractHeadersFromOptions(options)
17
+ });
14
18
  }
15
- export async function getParentTenants() {
16
- return Get(urls.tenants.hierarchy.parents.v1);
19
+ export async function getParentTenants(options) {
20
+ return Get(urls.tenants.hierarchy.parents.v1, undefined, {
21
+ headers: extractHeadersFromOptions(options)
22
+ });
23
+ }
24
+ export async function getTenantsUsersCount(body) {
25
+ return Post(`${urls.identity.tenants.users.v1}/count`, body);
17
26
  }
@@ -71,3 +71,10 @@ export interface IParentTenant {
71
71
  status: string;
72
72
  createdAt: Date;
73
73
  }
74
+ export interface IGetTenantsUserCountRequest {
75
+ tenantIds: string[];
76
+ }
77
+ export interface IGetTenantsUserCountResponse {
78
+ tenantId: string;
79
+ totalUsers: number;
80
+ }
package/users/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
- import { GetUserJwtRequestDto, GetUserJwtResponseDto } from "./interfaces";
1
+ import { GetUserJwtRequestDto, GetUserJwtResponseDto, ISearchUserQueryParamsV3, IUsersV3Data } from "./interfaces";
2
+ import { FronteggPaginationWrapper, UserJwtOptions } from "../interfaces";
2
3
  export declare function GetUserJwt(body: GetUserJwtRequestDto): Promise<GetUserJwtResponseDto>;
4
+ export declare function getUsersV3(queryParams: ISearchUserQueryParamsV3, options?: UserJwtOptions): Promise<FronteggPaginationWrapper<IUsersV3Data>>;
package/users/index.js CHANGED
@@ -1,5 +1,10 @@
1
- import { Post } from "../fetch";
1
+ import { extractHeadersFromOptions, Get, Post } from "../fetch";
2
2
  import { urls } from "../constants";
3
3
  export async function GetUserJwt(body) {
4
- return Post(urls.identity.users.v3, body);
4
+ return Post(`${urls.identity.users.v3}/me/token`, body);
5
+ }
6
+ export async function getUsersV3(queryParams, options) {
7
+ return Get(urls.identity.users.v3, queryParams, {
8
+ headers: extractHeadersFromOptions(options)
9
+ });
5
10
  }
@@ -1,3 +1,17 @@
1
+ export declare enum SortByEnum {
2
+ createdAt = "createdAt",
3
+ name = "name",
4
+ email = "email",
5
+ id = "id",
6
+ verified = "verified",
7
+ isLocked = "isLocked",
8
+ provider = "provider",
9
+ tenantId = "tenantId"
10
+ }
11
+ export declare enum PaginationOrderEnum {
12
+ ASC = "ASC",
13
+ DESC = "DESC"
14
+ }
1
15
  export interface GetUserJwtRequestDto {
2
16
  tenantId: string;
3
17
  }
@@ -6,3 +20,30 @@ export interface GetUserJwtResponseDto {
6
20
  expires: string;
7
21
  expiresIn: number;
8
22
  }
23
+ export interface ISearchUserQueryParamsV3 {
24
+ _limit?: number;
25
+ _offset?: number;
26
+ _email?: string;
27
+ _tenantId?: string;
28
+ ids?: string;
29
+ _sortBy?: SortByEnum;
30
+ _order?: PaginationOrderEnum;
31
+ }
32
+ export interface IUsersV3Data {
33
+ sub?: string;
34
+ verified?: boolean;
35
+ mfaEnrolled?: boolean;
36
+ mfaBypass?: boolean;
37
+ phoneNumber?: string;
38
+ provider?: string;
39
+ tenantId?: string;
40
+ tenantIds?: string[];
41
+ activatedForTenant?: boolean;
42
+ isLocked?: boolean;
43
+ invisible?: boolean;
44
+ superUser?: boolean;
45
+ metadata?: string;
46
+ createdAt?: Date;
47
+ lastLogin?: Date;
48
+ subAccountAccessAllowed?: boolean;
49
+ }
@@ -1 +1,19 @@
1
- export {};
1
+ export let SortByEnum;
2
+
3
+ (function (SortByEnum) {
4
+ SortByEnum["createdAt"] = "createdAt";
5
+ SortByEnum["name"] = "name";
6
+ SortByEnum["email"] = "email";
7
+ SortByEnum["id"] = "id";
8
+ SortByEnum["verified"] = "verified";
9
+ SortByEnum["isLocked"] = "isLocked";
10
+ SortByEnum["provider"] = "provider";
11
+ SortByEnum["tenantId"] = "tenantId";
12
+ })(SortByEnum || (SortByEnum = {}));
13
+
14
+ export let PaginationOrderEnum;
15
+
16
+ (function (PaginationOrderEnum) {
17
+ PaginationOrderEnum["ASC"] = "ASC";
18
+ PaginationOrderEnum["DESC"] = "DESC";
19
+ })(PaginationOrderEnum || (PaginationOrderEnum = {}));