@cranberry-money/shared-services 10.1.440 → 10.1.442
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/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/portfolioAllocations.d.ts +0 -13
- package/dist/portfolioAllocations.d.ts.map +0 -1
- package/dist/portfolioAllocations.js +0 -17
- package/dist/portfolioAllocations.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export { getAccounts } from './user-accounts';
|
|
|
3
3
|
export { getCountries, getAvailableCountries } from './countries';
|
|
4
4
|
export { getAssets, getAssetByUuid } from './assets';
|
|
5
5
|
export { createFinancialProfile, updateFinancialProfile, getFinancialProfiles } from './financialProfile';
|
|
6
|
-
export { getPortfolioAllocations, createAssetAllocation, updateAssetAllocation, deleteAssetAllocation } from './portfolioAllocations';
|
|
7
6
|
export { getPortfolios, createPortfolio, updatePortfolio, deletePortfolio, getPortfolioSnapshots as getPortfolioSnapshotsTimeSeries, addWalletToPortfolio, removeWalletFromPortfolio } from './portfolios';
|
|
8
7
|
export { updateUserProfile, updateUserProfileCompletion, getUserProfiles } from './users';
|
|
9
8
|
export { getIdentityVerificationToken, getIdentityVerificationStatus } from './identityVerification';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAChH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,SAAS,EA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AmB,CAAC;AAC1E,YAAY,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,6 @@ export { getAccounts } from './user-accounts';
|
|
|
3
3
|
export { getCountries, getAvailableCountries } from './countries';
|
|
4
4
|
export { getAssets, getAssetByUuid } from './assets';
|
|
5
5
|
export { createFinancialProfile, updateFinancialProfile, getFinancialProfiles } from './financialProfile';
|
|
6
|
-
export { getPortfolioAllocations, createAssetAllocation, updateAssetAllocation, deleteAssetAllocation } from './portfolioAllocations';
|
|
7
6
|
export { getPortfolios, createPortfolio, updatePortfolio, deletePortfolio, getPortfolioSnapshots as getPortfolioSnapshotsTimeSeries, addWalletToPortfolio, removeWalletFromPortfolio } from './portfolios';
|
|
8
7
|
export { updateUserProfile, updateUserProfileCompletion, getUserProfiles } from './users';
|
|
9
8
|
export { getIdentityVerificationToken, getIdentityVerificationStatus } from './identityVerification';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAChH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,oBAA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CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,UAAU,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.442",
|
|
4
4
|
"description": "Platform-agnostic API services with pure functions and dependency injection. Includes auth, portfolios, assets, countries, sectors, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"prepublishOnly": "npm run clean && npm run typecheck && npm run build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cranberry-money/shared-constants": "^8.15.
|
|
33
|
-
"@cranberry-money/shared-types": "^8.22.
|
|
32
|
+
"@cranberry-money/shared-constants": "^8.15.467",
|
|
33
|
+
"@cranberry-money/shared-types": "^8.22.442",
|
|
34
34
|
"axios": "^1.9.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import type { AssetAllocation, CreateAssetAllocation } from '@cranberry-money/shared-types';
|
|
3
|
-
export declare function getPortfolioAllocations(client: AxiosInstance, portfolioUuid: string): Promise<{
|
|
4
|
-
data: AssetAllocation[];
|
|
5
|
-
}>;
|
|
6
|
-
export declare function createAssetAllocation(client: AxiosInstance, data: CreateAssetAllocation): Promise<{
|
|
7
|
-
data: AssetAllocation;
|
|
8
|
-
}>;
|
|
9
|
-
export declare function updateAssetAllocation(client: AxiosInstance, uuid: string, data: Partial<CreateAssetAllocation>): Promise<{
|
|
10
|
-
data: AssetAllocation;
|
|
11
|
-
}>;
|
|
12
|
-
export declare function deleteAssetAllocation(client: AxiosInstance, uuid: string): Promise<void>;
|
|
13
|
-
//# sourceMappingURL=portfolioAllocations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"portfolioAllocations.d.ts","sourceRoot":"","sources":["../src/portfolioAllocations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAqB,eAAe,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAG/G,wBAAsB,uBAAuB,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,eAAe,EAAE,CAAA;CAAE,CAAC,CAGhI;AAED,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC,CAGlI;AAED,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC,CAGzJ;AAED,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9F"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PORTFOLIO_ENDPOINTS } from '@cranberry-money/shared-constants';
|
|
2
|
-
export async function getPortfolioAllocations(client, portfolioUuid) {
|
|
3
|
-
const response = await client.get(PORTFOLIO_ENDPOINTS.ALLOCATIONS(portfolioUuid));
|
|
4
|
-
return { data: response.data.results };
|
|
5
|
-
}
|
|
6
|
-
export async function createAssetAllocation(client, data) {
|
|
7
|
-
const response = await client.post(PORTFOLIO_ENDPOINTS.ALLOCATIONS(data.portfolio), data);
|
|
8
|
-
return { data: response.data };
|
|
9
|
-
}
|
|
10
|
-
export async function updateAssetAllocation(client, uuid, data) {
|
|
11
|
-
const response = await client.patch(`/api/allocations/${uuid}/`, data);
|
|
12
|
-
return { data: response.data };
|
|
13
|
-
}
|
|
14
|
-
export async function deleteAssetAllocation(client, uuid) {
|
|
15
|
-
await client.delete(`/api/allocations/${uuid}/`);
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=portfolioAllocations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"portfolioAllocations.js","sourceRoot":"","sources":["../src/portfolioAllocations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,MAAqB,EAAE,aAAqB;IACxF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAqC,mBAAmB,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC;IACtH,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,MAAqB,EAAE,IAA2B;IAC5F,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAkB,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,CAAC;IAC3G,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;AACjC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,MAAqB,EAAE,IAAY,EAAE,IAAoC;IACnH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAkB,oBAAoB,IAAI,GAAG,EAAE,IAAI,CAAC,CAAC;IACxF,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;AACjC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,MAAqB,EAAE,IAAY;IAC7E,MAAM,MAAM,CAAC,MAAM,CAAC,oBAAoB,IAAI,GAAG,CAAC,CAAC;AACnD,CAAC"}
|