@mx-cartographer/experiences 6.2.1-alpha.al0 → 6.2.1
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,7 @@
|
|
1
|
-
import { Fetch } from '../../common';
|
1
|
+
import { Fetch, Holding } from '../../common';
|
2
2
|
export declare class HoldingApi {
|
3
3
|
fetchInstance: Fetch;
|
4
4
|
constructor(endpoint: string, token: string);
|
5
5
|
getHoldings: () => Promise<any>;
|
6
|
+
updateHoldings: (holding: Holding) => Promise<any>;
|
6
7
|
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
interface HoldingDetail {
|
3
|
+
id: string;
|
4
|
+
description: string;
|
5
|
+
qty: number;
|
6
|
+
holding: string;
|
7
|
+
costBasis: number;
|
8
|
+
totalGainLoss: number;
|
9
|
+
marketValue: number;
|
10
|
+
}
|
11
|
+
interface InvestmentDetailsDrawerProps {
|
12
|
+
isOpen: boolean;
|
13
|
+
onClose: () => void;
|
14
|
+
accountHoldingsData: {
|
15
|
+
accounts: any;
|
16
|
+
holdings: HoldingDetail[];
|
17
|
+
members: any;
|
18
|
+
};
|
19
|
+
}
|
20
|
+
declare const InvestmentDetailsDrawer: React.FC<InvestmentDetailsDrawerProps>;
|
21
|
+
export default InvestmentDetailsDrawer;
|