squarefi-bff-api-module 1.19.2 → 1.19.4

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/dist/api/totp.js CHANGED
@@ -5,7 +5,9 @@ const apiClientFactory_1 = require("../utils/apiClientFactory");
5
5
  exports.totp = {
6
6
  otp_verification: {
7
7
  create: (data) => {
8
- return apiClientFactory_1.apiClientTOTP.postRequest('/api/otp-verification', { data });
8
+ return apiClientFactory_1.apiClientTOTP.postRequest('/api/otp-verification/create', {
9
+ data,
10
+ });
9
11
  },
10
12
  request: (data) => {
11
13
  return apiClientFactory_1.apiClientTOTP.postRequest('/api/otp-verification/request', {
@@ -1398,7 +1398,7 @@ export declare namespace API {
1398
1398
  }
1399
1399
  namespace TOTP {
1400
1400
  namespace OTPVerification {
1401
- type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP';
1401
+ type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';
1402
1402
  type OTPVerificationStatus = 'PENDING' | 'APPROVED' | 'DENIED';
1403
1403
  type OTPVerificationChannelInfo = {
1404
1404
  channel: OTPVerificationChannelType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.19.2",
3
+ "version": "1.19.4",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/api/totp.ts CHANGED
@@ -4,7 +4,9 @@ import { API } from './types/types';
4
4
  export const totp = {
5
5
  otp_verification: {
6
6
  create: (data: API.TOTP.OTPVerification.Create.Request): Promise<API.TOTP.OTPVerification.Create.Response> => {
7
- return apiClientTOTP.postRequest<API.TOTP.OTPVerification.Create.Response>('/api/otp-verification', { data });
7
+ return apiClientTOTP.postRequest<API.TOTP.OTPVerification.Create.Response>('/api/otp-verification/create', {
8
+ data,
9
+ });
8
10
  },
9
11
  request: (
10
12
  data: API.TOTP.OTPVerification.RequestOtp.Request
@@ -1697,7 +1697,7 @@ export namespace API {
1697
1697
 
1698
1698
  export namespace TOTP {
1699
1699
  export namespace OTPVerification {
1700
- export type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP';
1700
+ export type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';
1701
1701
  export type OTPVerificationStatus = 'PENDING' | 'APPROVED' | 'DENIED';
1702
1702
  export type OTPVerificationChannelInfo = {
1703
1703
  channel: OTPVerificationChannelType;