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.23 to 3.1.24

2

index.js

@@ -1,2 +0,2 @@

/** @license Frontegg v3.1.23
/** @license Frontegg v3.1.24
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -1,2 +0,2 @@

/** @license Frontegg v3.1.23
/** @license Frontegg v3.1.24
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -9,3 +9,2 @@ "use strict";

exports.getUserPhoneNumbers = getUserPhoneNumbers;
exports.updatePhoneNumber = updatePhoneNumber;
exports.verifyDeletePhoneNumber = verifyDeletePhoneNumber;

@@ -26,6 +25,2 @@ exports.verifyPhoneNumber = verifyPhoneNumber;

async function updatePhoneNumber(phoneId, body) {
return (0, _fetch.Patch)(`${_constants.urls.identity.phoneNumbers.v1}/${phoneId}`, body);
}
async function deletePhoneNumber(phoneId) {

@@ -35,4 +30,4 @@ return (0, _fetch.Delete)(`${_constants.urls.identity.phoneNumbers.v1}/${phoneId}`);

async function verifyPhoneNumber(phoneId, body) {
return (0, _fetch.Post)(`${_constants.urls.identity.phoneNumbers.v1}/${phoneId}/verify`, body);
async function verifyPhoneNumber(body) {
return (0, _fetch.Post)(`${_constants.urls.identity.phoneNumbers.v1}/verify`, body);
}

@@ -39,0 +34,0 @@

{
"name": "@frontegg/rest-api",
"version": "3.1.23",
"version": "3.1.24",
"main": "./node/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

import { FronteggPaginationWrapper } from "../interfaces";
import { IGetPhoneNumbersQueryParams, IPhoneNumber, IUpdatePhoneNumber, IUpdatePhoneNumberResponse, IVerifyPhoneNumber } from "./interfaces";
import { ICreatePhoneNumberResponse, IDeletePhoneNumberResponse, IGetPhoneNumbersQueryParams, IPhoneNumber, IUpdatePhoneNumber, IVerifyPhoneNumber } from "./interfaces";
/**

@@ -10,15 +10,11 @@ * Get phone numbers of user

*/
export declare function createPhoneNumber(body: IUpdatePhoneNumber): Promise<IUpdatePhoneNumberResponse>;
export declare function createPhoneNumber(body: IUpdatePhoneNumber): Promise<ICreatePhoneNumberResponse>;
/**
* Update existing phone number for user
*/
export declare function updatePhoneNumber(phoneId: string, body: IUpdatePhoneNumber): Promise<IUpdatePhoneNumberResponse>;
/**
* Delete existing phone number for user
*/
export declare function deletePhoneNumber(phoneId: string): Promise<IUpdatePhoneNumberResponse>;
export declare function deletePhoneNumber(phoneId: string): Promise<IDeletePhoneNumberResponse>;
/**
* Verify phone number
*/
export declare function verifyPhoneNumber(phoneId: string, body: IVerifyPhoneNumber): Promise<void>;
export declare function verifyPhoneNumber(body: IVerifyPhoneNumber): Promise<void>;
/**

@@ -25,0 +21,0 @@ * Verify delete phone number

import { urls } from "../constants";
import { Delete, Get, Patch, Post } from "../fetch";
import { Delete, Get, Post } from "../fetch";
export async function getUserPhoneNumbers(queryParams) {

@@ -9,10 +9,7 @@ return Get(`${urls.identity.phoneNumbers.v1}`, queryParams);

}
export async function updatePhoneNumber(phoneId, body) {
return Patch(`${urls.identity.phoneNumbers.v1}/${phoneId}`, body);
}
export async function deletePhoneNumber(phoneId) {
return Delete(`${urls.identity.phoneNumbers.v1}/${phoneId}`);
}
export async function verifyPhoneNumber(phoneId, body) {
return Post(`${urls.identity.phoneNumbers.v1}/${phoneId}/verify`, body);
export async function verifyPhoneNumber(body) {
return Post(`${urls.identity.phoneNumbers.v1}/verify`, body);
}

@@ -19,0 +16,0 @@ export async function verifyDeletePhoneNumber(phoneId, body) {

@@ -23,5 +23,8 @@ import { PaginationOrderEnum } from "../interfaces";

}
export interface IUpdatePhoneNumberResponse {
export interface ICreatePhoneNumberResponse {
otcToken: string;
}
export interface IDeletePhoneNumberResponse {
phoneId: string;
otcToken: string;
}
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