@frontegg/rest-api 3.0.13 → 3.0.14
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.
|
@@ -64,9 +64,7 @@ export declare function deleteDomainRestriction(id: string): Promise<void>;
|
|
|
64
64
|
/**
|
|
65
65
|
* Get ip restrictions for tenant
|
|
66
66
|
*/
|
|
67
|
-
export declare function getIPRestrictions(): Promise<
|
|
68
|
-
items: IpRestriction[];
|
|
69
|
-
}>;
|
|
67
|
+
export declare function getIPRestrictions(): Promise<IpRestriction[]>;
|
|
70
68
|
/**
|
|
71
69
|
* Get ip restrictions config for tenant
|
|
72
70
|
*/
|
|
@@ -62,7 +62,7 @@ export async function deleteDomainRestriction(id) {
|
|
|
62
62
|
return Delete(`${urls.identity.restrictions.emailDomain.v1}/${id}`);
|
|
63
63
|
}
|
|
64
64
|
export async function getIPRestrictions() {
|
|
65
|
-
return Get(`${urls.identity.restrictions.
|
|
65
|
+
return Get(`${urls.identity.restrictions.ip.v1}`);
|
|
66
66
|
}
|
|
67
67
|
export async function getIPRestrictionsConfig() {
|
|
68
68
|
return Get(`${urls.identity.restrictions.ip.v1}/config`);
|
package/index.js
CHANGED
|
@@ -106,7 +106,7 @@ async function deleteDomainRestriction(id) {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
async function getIPRestrictions() {
|
|
109
|
-
return (0, _fetch.Get)(`${_constants.urls.identity.restrictions.
|
|
109
|
+
return (0, _fetch.Get)(`${_constants.urls.identity.restrictions.ip.v1}`);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
async function getIPRestrictionsConfig() {
|
package/node/index.js
CHANGED