From e9ec33dab48597e51ee2b087f8ff0c967f0c549b Mon Sep 17 00:00:00 2001 From: Hide on bush Date: Tue, 19 Apr 2022 09:38:23 -0300 Subject: [PATCH] Some updates for posting a user --- package.json | 2 +- src/common/rest/index.ts | 40 ++++++++++++++++-------------- src/common/rest/post-user/index.ts | 2 -- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index e6a05c7a..f5bc2e48 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@masa-finance/tools", - "version": "0.1.5", + "version": "0.1.8", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/common/rest/index.ts b/src/common/rest/index.ts index dfcb5730..2ff656d2 100644 --- a/src/common/rest/index.ts +++ b/src/common/rest/index.ts @@ -2,16 +2,16 @@ import * as auth from './auth'; import * as getClient from './getUser'; import * as postClient from './post-user'; import * as accounts from './accounts'; -import * as getCountries from './get-countries' -import * as postCountry from './post-country' -import * as getVezgoInsight from './get-vezgo-insight' -import * as postVezgoInsight from './post-vezgo-insight' -import * as postVezgoAccounts from './post-vezgo-accounts' -import * as getVezgoAccount from './get-vezgo-account' -import * as getVezgoUserAccounts from './get-vezgo-user-accounts' -import * as postVezgoTransactions from './post-vezgo-transactions' -import * as getVezgoUserTransactions from './get-vezgo-user-transactions' -import * as getVezgoTransaction from './get-vezgo-transaction' +import * as getCountries from './get-countries'; +import * as postCountry from './post-country'; +import * as getVezgoInsight from './get-vezgo-insight'; +import * as postVezgoInsight from './post-vezgo-insight'; +import * as postVezgoAccounts from './post-vezgo-accounts'; +import * as getVezgoAccount from './get-vezgo-account'; +import * as getVezgoUserAccounts from './get-vezgo-user-accounts'; +import * as postVezgoTransactions from './post-vezgo-transactions'; +import * as getVezgoUserTransactions from './get-vezgo-user-transactions'; +import * as getVezgoTransaction from './get-vezgo-transaction'; import * as getPlaidAccount from './plaid/get-plaid-account'; import * as getPlaidLinkToken from './plaid/get-plaid-link-token'; import * as getPlaidTransaction from './plaid/get-plaid-transaction'; @@ -20,6 +20,7 @@ import * as listPlaidTransaction from './plaid/list-plaid-transactions'; import * as getPlaidAccessToken from './plaid/get-plaid-access-token'; import * as savePlaidAccounts from './plaid/save-plaid-accounts'; import * as savePlaidTransaction from './plaid/save-plaid-transactions'; +import * as postUser from './post-user'; export interface Parameter { key: number; @@ -38,14 +39,14 @@ export interface MethodMetadata { method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS'; parameters: Parameter[]; } -export const masaRestClient = { - auth, - accounts, - getClient, - postClient, - getVezgoInsight, - postVezgoInsight, - postVezgoAccounts, +export const masaRestClient = { + auth, + accounts, + getClient, + postClient, + getVezgoInsight, + postVezgoInsight, + postVezgoAccounts, getVezgoAccount, getVezgoUserAccounts, postVezgoTransactions, @@ -60,5 +61,6 @@ export const masaRestClient = { savePlaidAccounts, savePlaidTransaction, getCountries, - postCountry + postUser, + postCountry, }; diff --git a/src/common/rest/post-user/index.ts b/src/common/rest/post-user/index.ts index 13a2432c..6ee86943 100644 --- a/src/common/rest/post-user/index.ts +++ b/src/common/rest/post-user/index.ts @@ -1,6 +1,4 @@ -import { useLazyAxios } from 'use-axios-client'; import { MethodMetadata, Parameter } from '..'; -import { URL } from '../../helpers/axios'; import { useRestCall } from '../../helpers/rest-calls'; const path = 'me';