diff --git a/src/common/rest/get-product-interests/index.ts b/src/common/rest/get-product-interests/index.ts new file mode 100644 index 00000000..04fa3d44 --- /dev/null +++ b/src/common/rest/get-product-interests/index.ts @@ -0,0 +1,24 @@ +import { MethodMetadata } from '..'; +import { Headers } from '../../helpers/axios'; +import { useRestCall } from '../../helpers/rest-calls'; + +const path = 'product-interest'; + +export function useMethod({ pathParameters, body }: any) { + const { data, error, loading, getData } = useRestCall({ + pathParameters, + headers: Headers, + body, + metadata, + }); + return { data, error, loading, getData }; + } + +export const metadata: MethodMetadata = { + author: 'Gabriela Golmar', + authorPicture: '', + description: 'pulls the full list of product interests', + name: path, + method: 'GET', + parameters: [], +}; \ No newline at end of file diff --git a/src/common/rest/index.ts b/src/common/rest/index.ts index 2ff656d2..e8a4d861 100644 --- a/src/common/rest/index.ts +++ b/src/common/rest/index.ts @@ -21,6 +21,7 @@ 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'; +import * as getProductInterests from './get-product-interests' export interface Parameter { key: number; @@ -63,4 +64,5 @@ export const masaRestClient = { getCountries, postUser, postCountry, + getProductInterests, };