squarefi-bff-api-module 1.19.2 → 1.19.3

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', {
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.3",
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