@cranberry-money/shared-types 8.22.300 → 8.22.303
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,6 +1,11 @@
|
|
|
1
1
|
import type { SnapshotReason } from '@cranberry-money/shared-constants';
|
|
2
2
|
import type { BaseEntity } from '../common';
|
|
3
3
|
import type { Asset } from './asset';
|
|
4
|
+
import type { Instrument } from './instrument';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated AssetHolding is deprecated. Use WalletHolding instead.
|
|
7
|
+
* Wallet holdings are now the primary source of truth.
|
|
8
|
+
*/
|
|
4
9
|
export interface AssetHolding extends BaseEntity {
|
|
5
10
|
portfolio: string;
|
|
6
11
|
asset: Asset;
|
|
@@ -30,4 +35,35 @@ export interface AssetHoldingSnapshot {
|
|
|
30
35
|
createdAt: string;
|
|
31
36
|
updatedAt: string;
|
|
32
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Individual wallet holding for a specific instrument
|
|
40
|
+
*/
|
|
41
|
+
export interface WalletHolding extends BaseEntity {
|
|
42
|
+
wallet: string;
|
|
43
|
+
walletAddress: string;
|
|
44
|
+
instrument: Instrument;
|
|
45
|
+
instrumentSymbol: string;
|
|
46
|
+
instrumentName: string;
|
|
47
|
+
quantity: string;
|
|
48
|
+
currentValue: string;
|
|
49
|
+
lastSyncedAt: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Aggregated holdings for a portfolio across all wallets
|
|
53
|
+
*/
|
|
54
|
+
export interface PortfolioHoldingsResponse {
|
|
55
|
+
portfolio: string;
|
|
56
|
+
totalValue: string;
|
|
57
|
+
holdings: Array<{
|
|
58
|
+
instrument: Instrument;
|
|
59
|
+
totalQuantity: string;
|
|
60
|
+
totalValue: string;
|
|
61
|
+
wallets: Array<{
|
|
62
|
+
walletUuid: string;
|
|
63
|
+
walletAddress: string;
|
|
64
|
+
quantity: string;
|
|
65
|
+
value: string;
|
|
66
|
+
}>;
|
|
67
|
+
}>;
|
|
68
|
+
}
|
|
33
69
|
//# sourceMappingURL=holdings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"holdings.d.ts","sourceRoot":"","sources":["../../src/domain/holdings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"holdings.d.ts","sourceRoot":"","sources":["../../src/domain/holdings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAMD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC;QACd,UAAU,EAAE,UAAU,CAAC;QACvB,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,KAAK,CAAC;YACb,UAAU,EAAE,MAAM,CAAC;YACnB,aAAa,EAAE,MAAM,CAAC;YACtB,QAAQ,EAAE,MAAM,CAAC;YACjB,KAAK,EAAE,MAAM,CAAC;SACf,CAAC,CAAC;KACJ,CAAC,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cranberry-money/shared-types",
|
|
3
|
-
"version": "8.22.
|
|
3
|
+
"version": "8.22.303",
|
|
4
4
|
"description": "Shared TypeScript type definitions for Blueberry platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prepublishOnly": "npm run clean && npm run typecheck && npm run build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cranberry-money/shared-constants": "^8.15.
|
|
32
|
+
"@cranberry-money/shared-constants": "^8.15.328",
|
|
33
33
|
"@types/react": "^19.1.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|