@cranberry-money/shared-services 10.1.39 → 10.1.43
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import type { InvestmentPreference,
|
|
2
|
+
import type { InvestmentPreference, PaginatedResponse } from '@cranberry-money/shared-types';
|
|
3
3
|
type PaginatedInvestmentPreferences = PaginatedResponse<InvestmentPreference>;
|
|
4
|
-
export declare const createInvestmentPreference: (apiClient: AxiosInstance, data:
|
|
5
|
-
export declare const updateInvestmentPreference: (apiClient: AxiosInstance, uuid: string, data:
|
|
4
|
+
export declare const createInvestmentPreference: (apiClient: AxiosInstance, data: InvestmentPreference) => Promise<import("axios").AxiosResponse<InvestmentPreference, any>>;
|
|
5
|
+
export declare const updateInvestmentPreference: (apiClient: AxiosInstance, uuid: string, data: InvestmentPreference) => Promise<import("axios").AxiosResponse<InvestmentPreference, any>>;
|
|
6
6
|
export declare const deleteInvestmentPreference: (apiClient: AxiosInstance, uuid: string) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
7
7
|
export declare const getInvestmentPreferences: (apiClient: AxiosInstance) => Promise<import("axios").AxiosResponse<PaginatedInvestmentPreferences, any>>;
|
|
8
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"investmentPreferences.d.ts","sourceRoot":"","sources":["../src/investmentPreferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"investmentPreferences.d.ts","sourceRoot":"","sources":["../src/investmentPreferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AAEvC,KAAK,8BAA8B,GAAG,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;AAE9E,eAAO,MAAM,0BAA0B,GAAI,WAAW,aAAa,EAAE,MAAM,oBAAoB,sEAE9F,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,WAAW,aAAa,EACxB,MAAM,MAAM,EACZ,MAAM,oBAAoB,sEAG3B,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,sDAEhF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,WAAW,aAAa,gFAEhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"investmentPreferences.js","sourceRoot":"","sources":["../src/investmentPreferences.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"investmentPreferences.js","sourceRoot":"","sources":["../src/investmentPreferences.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AAQrF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,SAAwB,EAAE,IAA0B,EAAE,EAAE;IACjG,OAAO,SAAS,CAAC,IAAI,CAAuB,gCAAgC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC3F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,SAAwB,EACxB,IAAY,EACZ,IAA0B,EAC1B,EAAE;IACF,OAAO,SAAS,CAAC,KAAK,CAAuB,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;AACpG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,SAAwB,EAAE,IAAY,EAAE,EAAE;IACnF,OAAO,SAAS,CAAC,MAAM,CAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,SAAwB,EAAE,EAAE;IACnE,OAAO,SAAS,CAAC,GAAG,CAAiC,gCAAgC,CAAC,IAAI,CAAC,CAAC;AAC9F,CAAC,CAAC"}
|
package/dist/portfolios.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import type { Portfolio,
|
|
2
|
+
import type { Portfolio, 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
|
-
export declare const createPortfolio: (apiClient: AxiosInstance, data:
|
|
6
|
-
export declare const updatePortfolio: (apiClient: AxiosInstance, uuid: string, data:
|
|
5
|
+
export declare const createPortfolio: (apiClient: AxiosInstance, data: Portfolio) => Promise<import("axios").AxiosResponse<Portfolio, any>>;
|
|
6
|
+
export declare const updatePortfolio: (apiClient: AxiosInstance, uuid: string, data: Portfolio) => Promise<import("axios").AxiosResponse<Portfolio, any>>;
|
|
7
7
|
export declare const getPortfolioByUuid: (apiClient: AxiosInstance, uuid: string) => Promise<import("axios").AxiosResponse<Portfolio, any>>;
|
|
8
8
|
export declare const generateRebalancingTrades: (apiClient: AxiosInstance, portfolioUuid: string) => Promise<import("axios").AxiosResponse<RebalancingTradesGenerationResponse, any>>;
|
|
9
9
|
export {};
|
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,
|
|
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,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,SAAS,2DAExE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,EAAE,MAAM,SAAS,2DAEtF,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"}
|
package/dist/portfolios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolios.js","sourceRoot":"","sources":["../src/portfolios.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"portfolios.js","sourceRoot":"","sources":["../src/portfolios.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AASxE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAwB,EAAE,EAAE;IACxD,OAAO,SAAS,CAAC,GAAG,CAAsB,mBAAmB,CAAC,IAAI,CAAC,CAAC;AACtE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAwB,EAAE,IAAe,EAAE,EAAE;IAC3E,OAAO,SAAS,CAAC,IAAI,CAAY,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAwB,EAAE,IAAY,EAAE,IAAe,EAAE,EAAE;IACzF,OAAO,SAAS,CAAC,KAAK,CAAY,GAAG,mBAAmB,CAAC,IAAI,GAAG,IAAI,GAAG,EAAE,IAAI,CAAC,CAAC;AACjF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,SAAwB,EAAE,IAAY,EAAE,EAAE;IAC3E,OAAO,SAAS,CAAC,GAAG,CAAY,GAAG,mBAAmB,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC;AACzE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,SAAwB,EAAE,aAAqB,EAAE,EAAE;IAC3F,OAAO,SAAS,CAAC,IAAI,CACnB,GAAG,mBAAmB,CAAC,IAAI,GAAG,aAAa,+BAA+B,CAC3E,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cranberry-money/shared-services",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.43",
|
|
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",
|