@frontegg/rest-api 3.0.18 → 3.0.21

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,4 +1,5 @@
1
1
  import { ISaveSecurityPolicyMfa, ISaveSecurityPolicyLockout, ISecurityPolicyMfa, ISecurityPolicyLockout, ISecurityPolicyCaptcha, ISecurityPolicyPasswordHistory, ISaveSecurityPolicyPasswordHistory, ISecurityPolicyPasswordConfig, ISecurityPolicy, DomainRestriction, DomainRestrictionConfig, CreateDomainRestriction, UpdateDomainRestrictionsConfig, IpRestriction, IPRestrictionsConfig, BulkCreateIpRestriction, CreateIpRestriction, GetIPRestrictionsParams } from './interfaces';
2
+ import { FronteggPaginationResult } from '../../interfaces';
2
3
  /**
3
4
  * Get global secure access configuration
4
5
  */
@@ -64,7 +65,7 @@ export declare function deleteDomainRestriction(id: string): Promise<void>;
64
65
  /**
65
66
  * Get ip restrictions for tenant
66
67
  */
67
- export declare function getIPRestrictions(params: GetIPRestrictionsParams): Promise<IpRestriction[]>;
68
+ export declare function getIPRestrictions(params: GetIPRestrictionsParams): Promise<FronteggPaginationResult<IpRestriction[]>>;
68
69
  /**
69
70
  * Get ip restrictions config for tenant
70
71
  */
@@ -102,8 +102,8 @@ export interface GetIPRestrictionsParams {
102
102
  }
103
103
  export interface CreateIpRestriction {
104
104
  ip: string;
105
- strategy: RestrictionType;
106
- isActive: boolean;
105
+ strategy?: RestrictionType;
106
+ isActive?: boolean;
107
107
  description?: string;
108
108
  }
109
109
  export interface UpdateIpRestriction {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.18
1
+ /** @license Frontegg v3.0.21
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,13 @@ export interface PaginationResult<T> {
6
6
  totalPages: number;
7
7
  items: T[];
8
8
  }
9
+ export interface FronteggPaginationResult<T> {
10
+ _metadata: {
11
+ totalPages: number;
12
+ totalItems: number;
13
+ };
14
+ items: T[];
15
+ }
9
16
  export interface KeyValuePair {
10
17
  key: string;
11
18
  value: string;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.18
1
+ /** @license Frontegg v3.0.21
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": "3.0.18",
3
+ "version": "3.0.21",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {