Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontegg/rest-api

Package Overview
Dependencies
Maintainers
2
Versions
610
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/rest-api - npm Package Compare versions

Comparing version 3.1.21 to 3.1.22

2

index.js

@@ -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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc