squarefi-bff-api-module 1.7.0 → 1.8.0
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/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { fiat_accounts } from './fiat_accounts';
|
|
|
6
6
|
import { issuing } from './issuing';
|
|
7
7
|
import { kyc } from './kyc';
|
|
8
8
|
import { list } from './list';
|
|
9
|
+
import { location } from './location';
|
|
9
10
|
import { orders } from './orders';
|
|
10
11
|
import { tenants } from './tenants';
|
|
11
12
|
import { user } from './user';
|
package/dist/api/index.js
CHANGED
|
@@ -9,6 +9,7 @@ const fiat_accounts_1 = require("./fiat_accounts");
|
|
|
9
9
|
const issuing_1 = require("./issuing");
|
|
10
10
|
const kyc_1 = require("./kyc");
|
|
11
11
|
const list_1 = require("./list");
|
|
12
|
+
const location_1 = require("./location");
|
|
12
13
|
const orders_1 = require("./orders");
|
|
13
14
|
const tenants_1 = require("./tenants");
|
|
14
15
|
const user_1 = require("./user");
|
|
@@ -22,7 +23,7 @@ exports.squarefi_bff_api_client = {
|
|
|
22
23
|
issuing: issuing_1.issuing,
|
|
23
24
|
kyc: kyc_1.kyc,
|
|
24
25
|
list: list_1.list,
|
|
25
|
-
location,
|
|
26
|
+
location: location_1.location,
|
|
26
27
|
orders: orders_1.orders,
|
|
27
28
|
tenants: tenants_1.tenants,
|
|
28
29
|
user: user_1.user,
|
|
@@ -36,7 +36,7 @@ const tokensFactory_1 = require("../utils/tokensFactory");
|
|
|
36
36
|
const apiV1BaseURL = (_a = process.env.API_URL) !== null && _a !== void 0 ? _a : 'ENV variable API_URL is not defined';
|
|
37
37
|
const apiV2BaseURL = (_b = process.env.API_V2_URL) !== null && _b !== void 0 ? _b : 'ENV variable API_V2_URL is not defined';
|
|
38
38
|
const envTenantId = (_c = process.env.TENANT_ID) !== null && _c !== void 0 ? _c : 'ENV variable TENANT_ID is not defined';
|
|
39
|
-
const envLogoutURL = (_d = process.env.LOGOUT_URL) !== null && _d !== void 0 ? _d : 'auth/logout';
|
|
39
|
+
const envLogoutURL = (_d = process.env.LOGOUT_URL) !== null && _d !== void 0 ? _d : '/auth/logout';
|
|
40
40
|
const createApiClient = ({ baseURL, isBearerToken, tenantId }) => {
|
|
41
41
|
const instance = axios_1.default.create({
|
|
42
42
|
baseURL,
|
package/package.json
CHANGED
package/src/api/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { fiat_accounts } from './fiat_accounts';
|
|
|
6
6
|
import { issuing } from './issuing';
|
|
7
7
|
import { kyc } from './kyc';
|
|
8
8
|
import { list } from './list';
|
|
9
|
+
import { location } from './location';
|
|
9
10
|
import { orders } from './orders';
|
|
10
11
|
import { tenants } from './tenants';
|
|
11
12
|
import { user } from './user';
|
|
@@ -13,7 +13,7 @@ import { deleteTokens, refreshTokens } from '../utils/tokensFactory';
|
|
|
13
13
|
const apiV1BaseURL = process.env.API_URL ?? 'ENV variable API_URL is not defined';
|
|
14
14
|
const apiV2BaseURL = process.env.API_V2_URL ?? 'ENV variable API_V2_URL is not defined';
|
|
15
15
|
const envTenantId = process.env.TENANT_ID ?? 'ENV variable TENANT_ID is not defined';
|
|
16
|
-
const envLogoutURL = process.env.LOGOUT_URL ?? 'auth/logout';
|
|
16
|
+
const envLogoutURL = process.env.LOGOUT_URL ?? '/auth/logout';
|
|
17
17
|
|
|
18
18
|
type CreateApiClientOptions = {
|
|
19
19
|
baseURL: string;
|