@frontegg/rest-api 3.1.19 → 3.1.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.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.1.19
1
+ /** @license Frontegg v3.1.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/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.1.19
1
+ /** @license Frontegg v3.1.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.
@@ -7,6 +7,7 @@ exports.createPhoneNumber = createPhoneNumber;
7
7
  exports.deletePhoneNumber = deletePhoneNumber;
8
8
  exports.getAllUserPhoneNumbers = getAllUserPhoneNumbers;
9
9
  exports.updatePhoneNumber = updatePhoneNumber;
10
+ exports.verifyDeletePhoneNumber = verifyDeletePhoneNumber;
10
11
  exports.verifyPhoneNumber = verifyPhoneNumber;
11
12
 
12
13
  var _constants = require("../constants");
@@ -31,4 +32,8 @@ async function deletePhoneNumber(phoneId) {
31
32
 
32
33
  async function verifyPhoneNumber(body) {
33
34
  return (0, _fetch.Post)(`${_constants.urls.identity.phoneNumbers.v1}/verify`, body);
35
+ }
36
+
37
+ async function verifyDeletePhoneNumber(phoneId, body) {
38
+ return (0, _fetch.Post)(`${_constants.urls.identity.phoneNumbers.v1}/${phoneId}/delete/verify`, body);
34
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.1.19",
3
+ "version": "3.1.21",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -15,8 +15,12 @@ export declare function updatePhoneNumber(phoneId: string, body: IUpdatePhoneNum
15
15
  /**
16
16
  * Delete existing phone number for user
17
17
  */
18
- export declare function deletePhoneNumber(phoneId: string): Promise<void>;
18
+ export declare function deletePhoneNumber(phoneId: string): Promise<IUpdatePhoneNumberResponse>;
19
19
  /**
20
20
  * Verify phone number
21
21
  */
22
22
  export declare function verifyPhoneNumber(body: IVerifyPhoneNumber): Promise<void>;
23
+ /**
24
+ * Verify delete phone number
25
+ */
26
+ export declare function verifyDeletePhoneNumber(phoneId: string, body: IVerifyPhoneNumber): Promise<void>;
@@ -14,4 +14,7 @@ export async function deletePhoneNumber(phoneId) {
14
14
  }
15
15
  export async function verifyPhoneNumber(body) {
16
16
  return Post(`${urls.identity.phoneNumbers.v1}/verify`, body);
17
+ }
18
+ export async function verifyDeletePhoneNumber(phoneId, body) {
19
+ return Post(`${urls.identity.phoneNumbers.v1}/${phoneId}/delete/verify`, body);
17
20
  }