@frontegg/rest-api
Advanced tools
Comparing version 3.1.21 to 3.1.22
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.1.21 | ||
/** @license Frontegg v3.1.22 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.1.21 | ||
/** @license Frontegg v3.1.22 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -8,3 +8,3 @@ "use strict"; | ||
exports.deletePhoneNumber = deletePhoneNumber; | ||
exports.getAllUserPhoneNumbers = getAllUserPhoneNumbers; | ||
exports.getUserPhoneNumbers = getUserPhoneNumbers; | ||
exports.updatePhoneNumber = updatePhoneNumber; | ||
@@ -18,3 +18,3 @@ exports.verifyDeletePhoneNumber = verifyDeletePhoneNumber; | ||
async function getAllUserPhoneNumbers(queryParams) { | ||
async function getUserPhoneNumbers(queryParams) { | ||
return (0, _fetch.Get)(`${_constants.urls.identity.phoneNumbers.v1}`, queryParams); | ||
@@ -35,4 +35,4 @@ } | ||
async function verifyPhoneNumber(body) { | ||
return (0, _fetch.Post)(`${_constants.urls.identity.phoneNumbers.v1}/verify`, body); | ||
async function verifyPhoneNumber(phoneId, body) { | ||
return (0, _fetch.Post)(`${_constants.urls.identity.phoneNumbers.v1}/${phoneId}/verify`, body); | ||
} | ||
@@ -39,0 +39,0 @@ |
{ | ||
"name": "@frontegg/rest-api", | ||
"version": "3.1.21", | ||
"version": "3.1.22", | ||
"main": "./node/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
import { FronteggPaginationWrapper } from "../interfaces"; | ||
import { IGetPhoneNumbersQueryParams, IPhoneNumber, IUpdatePhoneNumber, IUpdatePhoneNumberResponse, IVerifyPhoneNumber } from "./interfaces"; | ||
/** | ||
* Get all phone numbers of user | ||
* Get phone numbers of user | ||
*/ | ||
export declare function getAllUserPhoneNumbers(queryParams: IGetPhoneNumbersQueryParams): Promise<FronteggPaginationWrapper<IPhoneNumber[]>>; | ||
export declare function getUserPhoneNumbers(queryParams: IGetPhoneNumbersQueryParams): Promise<FronteggPaginationWrapper<IPhoneNumber>>; | ||
/** | ||
@@ -22,3 +22,3 @@ * Create new phone number for user | ||
*/ | ||
export declare function verifyPhoneNumber(body: IVerifyPhoneNumber): Promise<void>; | ||
export declare function verifyPhoneNumber(phoneId: string, body: IVerifyPhoneNumber): Promise<void>; | ||
/** | ||
@@ -25,0 +25,0 @@ * Verify delete phone number |
import { urls } from "../constants"; | ||
import { Delete, Get, Patch, Post } from "../fetch"; | ||
export async function getAllUserPhoneNumbers(queryParams) { | ||
export async function getUserPhoneNumbers(queryParams) { | ||
return Get(`${urls.identity.phoneNumbers.v1}`, queryParams); | ||
@@ -15,4 +15,4 @@ } | ||
} | ||
export async function verifyPhoneNumber(body) { | ||
return Post(`${urls.identity.phoneNumbers.v1}/verify`, body); | ||
export async function verifyPhoneNumber(phoneId, body) { | ||
return Post(`${urls.identity.phoneNumbers.v1}/${phoneId}/verify`, body); | ||
} | ||
@@ -19,0 +19,0 @@ export async function verifyDeletePhoneNumber(phoneId, body) { |
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
394064