@cranberry-money/shared-services 10.0.13 → 10.0.21
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/banks.d.ts +1 -1
- package/dist/banks.d.ts.map +1 -1
- package/dist/cashAccountTransactions.d.ts +1 -1
- package/dist/cashAccountTransactions.d.ts.map +1 -1
- package/dist/portfolios.d.ts +1 -1
- package/dist/portfolios.d.ts.map +1 -1
- package/dist/withdrawalLiquidations.d.ts +1 -1
- package/dist/withdrawalLiquidations.d.ts.map +1 -1
- package/dist/withdrawalRequests.d.ts +1 -1
- package/dist/withdrawalRequests.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/banks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BankAccount, BankAccountQueryParams, PaginatedResponse } from '@cranberry-money/shared-types';
|
|
3
3
|
export declare const getBankAccounts: (apiClient: AxiosInstance, params?: BankAccountQueryParams) => Promise<import("axios").AxiosResponse<PaginatedResponse<BankAccount>, any>>;
|
|
4
4
|
export declare const getBankAccountByUuid: (apiClient: AxiosInstance, uuid: string) => Promise<import("axios").AxiosResponse<BankAccount, any>>;
|
|
5
5
|
//# sourceMappingURL=banks.d.ts.map
|
package/dist/banks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banks.d.ts","sourceRoot":"","sources":["../src/banks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"banks.d.ts","sourceRoot":"","sources":["../src/banks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,WAAW,EACX,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,eAAe,GAAI,WAAW,aAAa,EAAE,SAAS,sBAAsB,gFA+BxF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,6DAE1E,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import type { PaginatedResponse,
|
|
2
|
+
import type { PaginatedResponse, CashAccountTransaction, CashAccountTransactionQueryParams } from '@cranberry-money/shared-types';
|
|
3
3
|
import { formatTransactionAmount, getTransactionTypeLabel } from '@cranberry-money/shared-utils';
|
|
4
4
|
export type PaginatedCashAccountTransactions = PaginatedResponse<CashAccountTransaction>;
|
|
5
5
|
export declare const getCashAccountTransactions: (apiClient: AxiosInstance, params?: CashAccountTransactionQueryParams) => Promise<import("axios").AxiosResponse<PaginatedCashAccountTransactions, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cashAccountTransactions.d.ts","sourceRoot":"","sources":["../src/cashAccountTransactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EACV,iBAAiB,EACjB
|
|
1
|
+
{"version":3,"file":"cashAccountTransactions.d.ts","sourceRoot":"","sources":["../src/cashAccountTransactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,iCAAiC,EAClC,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAEjG,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;AAEzF,eAAO,MAAM,0BAA0B,GAAI,WAAW,aAAa,EAAE,SAAS,iCAAiC,kFA4B9G,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,wEAErF,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAC9C,WAAW,aAAa,EACxB,iBAAiB,MAAM,EACvB,SAAS,IAAI,CAAC,iCAAiC,EAAE,cAAc,CAAC,kFAMjE,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,WAAW,aAAa,EACxB,WAAW,MAAM,EACjB,SAAS,MAAM,EACf,SAAS,IAAI,CAAC,iCAAiC,EAAE,YAAY,GAAG,UAAU,CAAC,kFAO5E,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,WAAW,aAAa,EACxB,OAAM,MAAyC,EAC/C,SAAS,IAAI,CAAC,iCAAiC,EAAE,YAAY,GAAG,UAAU,CAAC,kFAQ5E,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,CAAC"}
|
package/dist/portfolios.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import type { Portfolio, CreatePortfolio, UpdatePortfolio,
|
|
2
|
+
import type { Portfolio, CreatePortfolio, UpdatePortfolio, RebalancingTradesGenerationResponse, PaginatedResponse } from '@cranberry-money/shared-types';
|
|
3
3
|
type PaginatedPortfolios = PaginatedResponse<Portfolio>;
|
|
4
4
|
export declare const getPortfolios: (apiClient: AxiosInstance) => Promise<import("axios").AxiosResponse<PaginatedPortfolios, any>>;
|
|
5
5
|
export declare const createPortfolio: (apiClient: AxiosInstance, data: CreatePortfolio) => Promise<import("axios").AxiosResponse<Portfolio, any>>;
|
package/dist/portfolios.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolios.d.ts","sourceRoot":"","sources":["../src/portfolios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"portfolios.d.ts","sourceRoot":"","sources":["../src/portfolios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,eAAe,EACf,mCAAmC,EACnC,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AAEvC,KAAK,mBAAmB,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;AAExD,eAAO,MAAM,aAAa,GAAI,WAAW,aAAa,qEAErD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,WAAW,aAAa,EAAE,MAAM,eAAe,2DAE9E,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,EAAE,MAAM,eAAe,2DAE5F,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,2DAExE,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,WAAW,aAAa,EAAE,eAAe,MAAM,qFAIxF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import type {
|
|
2
|
+
import type { WithdrawalAssetLiquidation, CreateWithdrawalAssetLiquidation, UpdateWithdrawalAssetLiquidation, WithdrawalAssetLiquidationQueryParams, PaginatedResponse } from '@cranberry-money/shared-types';
|
|
3
3
|
export declare const getWithdrawalAssetLiquidations: (apiClient: AxiosInstance, params?: WithdrawalAssetLiquidationQueryParams) => Promise<import("axios").AxiosResponse<PaginatedResponse<WithdrawalAssetLiquidation>, any>>;
|
|
4
4
|
export declare const createWithdrawalAssetLiquidation: (apiClient: AxiosInstance, data: CreateWithdrawalAssetLiquidation) => Promise<import("axios").AxiosResponse<WithdrawalAssetLiquidation, any>>;
|
|
5
5
|
export declare const updateWithdrawalAssetLiquidation: (apiClient: AxiosInstance, uuid: string, data: UpdateWithdrawalAssetLiquidation) => Promise<import("axios").AxiosResponse<WithdrawalAssetLiquidation, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawalLiquidations.d.ts","sourceRoot":"","sources":["../src/withdrawalLiquidations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"withdrawalLiquidations.d.ts","sourceRoot":"","sources":["../src/withdrawalLiquidations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,qCAAqC,EACrC,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,8BAA8B,GACzC,WAAW,aAAa,EACxB,SAAS,qCAAqC,+FA+C/C,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,WAAW,aAAa,EAAE,MAAM,gCAAgC,4EAEhH,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAC3C,WAAW,aAAa,EACxB,MAAM,MAAM,EACZ,MAAM,gCAAgC,4EAGvC,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,4EAEzF,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,sDAEtF,CAAC;AAEF,eAAO,MAAM,uCAAuC,GAAI,WAAW,aAAa,EAAE,uBAAuB,MAAM,+FAE9G,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import type {
|
|
2
|
+
import type { WithdrawalRequest, CreateWithdrawalRequest, UpdateWithdrawalRequest, WithdrawalRequestQueryParams, PaginatedResponse } from '@cranberry-money/shared-types';
|
|
3
3
|
export declare const getWithdrawalRequests: (apiClient: AxiosInstance, params?: WithdrawalRequestQueryParams) => Promise<import("axios").AxiosResponse<PaginatedResponse<WithdrawalRequest>, any>>;
|
|
4
4
|
export declare const createWithdrawalRequest: (apiClient: AxiosInstance, data: CreateWithdrawalRequest) => Promise<import("axios").AxiosResponse<WithdrawalRequest, any>>;
|
|
5
5
|
export declare const updateWithdrawalRequest: (apiClient: AxiosInstance, uuid: string, data: UpdateWithdrawalRequest) => Promise<import("axios").AxiosResponse<WithdrawalRequest, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawalRequests.d.ts","sourceRoot":"","sources":["../src/withdrawalRequests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"withdrawalRequests.d.ts","sourceRoot":"","sources":["../src/withdrawalRequests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,4BAA4B,EAC5B,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,qBAAqB,GAAI,WAAW,aAAa,EAAE,SAAS,4BAA4B,sFAqCpG,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,WAAW,aAAa,EAAE,MAAM,uBAAuB,mEAE9F,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,EAAE,MAAM,uBAAuB,mEAE5G,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,mEAEhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,sDAE7E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cranberry-money/shared-services",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.21",
|
|
4
4
|
"description": "Platform-agnostic API services with pure functions and dependency injection. Includes auth, portfolios, instruments, countries, sectors, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|