@frontegg/rest-api 3.0.16 → 3.0.19
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/auth/secutiry-poilicy/index.d.ts +3 -2
- package/auth/secutiry-poilicy/index.js +2 -2
- package/auth/secutiry-poilicy/interfaces.d.ts +5 -0
- package/constants.js +1 -1
- package/index.js +1 -1
- package/node/auth/secutiry-poilicy/index.js +2 -2
- package/node/constants.js +1 -1
- package/node/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ISaveSecurityPolicyMfa, ISaveSecurityPolicyLockout, ISecurityPolicyMfa, ISecurityPolicyLockout, ISecurityPolicyCaptcha, ISecurityPolicyPasswordHistory, ISaveSecurityPolicyPasswordHistory, ISecurityPolicyPasswordConfig, ISecurityPolicy, DomainRestriction, DomainRestrictionConfig, CreateDomainRestriction, UpdateDomainRestrictionsConfig, IpRestriction, IPRestrictionsConfig, BulkCreateIpRestriction, CreateIpRestriction } from './interfaces';
|
|
1
|
+
import { ISaveSecurityPolicyMfa, ISaveSecurityPolicyLockout, ISecurityPolicyMfa, ISecurityPolicyLockout, ISecurityPolicyCaptcha, ISecurityPolicyPasswordHistory, ISaveSecurityPolicyPasswordHistory, ISecurityPolicyPasswordConfig, ISecurityPolicy, DomainRestriction, DomainRestrictionConfig, CreateDomainRestriction, UpdateDomainRestrictionsConfig, IpRestriction, IPRestrictionsConfig, BulkCreateIpRestriction, CreateIpRestriction, GetIPRestrictionsParams } from './interfaces';
|
|
2
|
+
import { PaginationResult } 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(): Promise<IpRestriction[]
|
|
68
|
+
export declare function getIPRestrictions(params: GetIPRestrictionsParams): Promise<PaginationResult<IpRestriction[]>>;
|
|
68
69
|
/**
|
|
69
70
|
* Get ip restrictions config for tenant
|
|
70
71
|
*/
|
|
@@ -61,8 +61,8 @@ export async function updateDomainRestrictionConfig(body) {
|
|
|
61
61
|
export async function deleteDomainRestriction(id) {
|
|
62
62
|
return Delete(`${urls.identity.restrictions.emailDomain.v1}/${id}`);
|
|
63
63
|
}
|
|
64
|
-
export async function getIPRestrictions() {
|
|
65
|
-
return Get(`${urls.identity.restrictions.ip.v1}
|
|
64
|
+
export async function getIPRestrictions(params) {
|
|
65
|
+
return Get(`${urls.identity.restrictions.ip.v1}`, params);
|
|
66
66
|
}
|
|
67
67
|
export async function getIPRestrictionsConfig() {
|
|
68
68
|
return Get(`${urls.identity.restrictions.ip.v1}/config`);
|
|
@@ -95,6 +95,11 @@ export interface IPRestrictionsConfig {
|
|
|
95
95
|
isActive: boolean;
|
|
96
96
|
strategy?: RestrictionType;
|
|
97
97
|
}
|
|
98
|
+
export interface GetIPRestrictionsParams {
|
|
99
|
+
_offset: number;
|
|
100
|
+
_limit: number;
|
|
101
|
+
_filter: RestrictionType;
|
|
102
|
+
}
|
|
98
103
|
export interface CreateIpRestriction {
|
|
99
104
|
ip: string;
|
|
100
105
|
strategy: RestrictionType;
|
package/constants.js
CHANGED
package/index.js
CHANGED
|
@@ -105,8 +105,8 @@ async function deleteDomainRestriction(id) {
|
|
|
105
105
|
return (0, _fetch.Delete)(`${_constants.urls.identity.restrictions.emailDomain.v1}/${id}`);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
async function getIPRestrictions() {
|
|
109
|
-
return (0, _fetch.Get)(`${_constants.urls.identity.restrictions.ip.v1}
|
|
108
|
+
async function getIPRestrictions(params) {
|
|
109
|
+
return (0, _fetch.Get)(`${_constants.urls.identity.restrictions.ip.v1}`, params);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
async function getIPRestrictionsConfig() {
|
package/node/constants.js
CHANGED
package/node/index.js
CHANGED