@frontegg/rest-api
Advanced tools
Comparing version 3.1.24 to 3.1.25
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.1.24 | ||
/** @license Frontegg v3.1.25 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.1.24 | ||
/** @license Frontegg v3.1.25 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -9,2 +9,3 @@ "use strict"; | ||
exports.getUserPhoneNumbers = getUserPhoneNumbers; | ||
exports.preVerifyPhoneNumber = preVerifyPhoneNumber; | ||
exports.verifyDeletePhoneNumber = verifyDeletePhoneNumber; | ||
@@ -29,2 +30,6 @@ exports.verifyPhoneNumber = verifyPhoneNumber; | ||
async function preVerifyPhoneNumber(body) { | ||
return (0, _fetch.Post)(`${_constants.urls.identity.phoneNumbers.v1}/preverify`, body); | ||
} | ||
async function verifyPhoneNumber(body) { | ||
@@ -31,0 +36,0 @@ return (0, _fetch.Post)(`${_constants.urls.identity.phoneNumbers.v1}/verify`, body); |
{ | ||
"name": "@frontegg/rest-api", | ||
"version": "3.1.24", | ||
"version": "3.1.25", | ||
"main": "./node/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
import { FronteggPaginationWrapper } from "../interfaces"; | ||
import { ICreatePhoneNumberResponse, IDeletePhoneNumberResponse, IGetPhoneNumbersQueryParams, IPhoneNumber, IUpdatePhoneNumber, IVerifyPhoneNumber } from "./interfaces"; | ||
import { ICreatePhoneNumberResponse, IDeletePhoneNumberResponse, IGetPhoneNumbersQueryParams, IPhoneNumber, IPreVerifyPhoneNumber, IPreVerifyPhoneNumberResponse, IUpdatePhoneNumber, IVerifyPhoneNumber } from "./interfaces"; | ||
/** | ||
@@ -8,3 +8,3 @@ * Get phone numbers of user | ||
/** | ||
* Create new phone number for user | ||
* Create new phone number for user, by default otc will be sent with this request | ||
*/ | ||
@@ -17,2 +17,6 @@ export declare function createPhoneNumber(body: IUpdatePhoneNumber): Promise<ICreatePhoneNumberResponse>; | ||
/** | ||
* Pre verify phone number, used before verify to send OTC to user | ||
*/ | ||
export declare function preVerifyPhoneNumber(body: IPreVerifyPhoneNumber): Promise<IPreVerifyPhoneNumberResponse>; | ||
/** | ||
* Verify phone number | ||
@@ -19,0 +23,0 @@ */ |
@@ -12,2 +12,5 @@ import { urls } from "../constants"; | ||
} | ||
export async function preVerifyPhoneNumber(body) { | ||
return Post(`${urls.identity.phoneNumbers.v1}/preverify`, body); | ||
} | ||
export async function verifyPhoneNumber(body) { | ||
@@ -14,0 +17,0 @@ return Post(`${urls.identity.phoneNumbers.v1}/verify`, body); |
@@ -18,3 +18,7 @@ import { PaginationOrderEnum } from "../interfaces"; | ||
phoneNumber: string; | ||
verify?: boolean; | ||
}; | ||
export interface IPreVerifyPhoneNumber { | ||
phoneNumber: string; | ||
} | ||
export interface IVerifyPhoneNumber { | ||
@@ -25,2 +29,5 @@ otcToken: string; | ||
export interface ICreatePhoneNumberResponse { | ||
otcToken?: string; | ||
} | ||
export interface IPreVerifyPhoneNumberResponse { | ||
otcToken: string; | ||
@@ -27,0 +34,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
393429
10756