@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.emailDomain.v1}`);
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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.13
1
+ /** @license Frontegg v3.0.14
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.
@@ -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.emailDomain.v1}`);
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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.13
1
+ /** @license Frontegg v3.0.14
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.13",
3
+ "version": "3.0.14",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {