@secondstaxorg/sscomp 1.4.5 → 1.4.6
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.es.js +61 -60
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1161 -1023
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +12 -11
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -1
- package/types/components/CookieConsent/CookieConsent.d.ts +3 -0
- package/types/components/CookieConsent/type.d.ts +9 -0
- package/types/components/CountrySelector/CountrySelector.d.ts +3 -0
- package/types/components/CountrySelector/type.d.ts +24 -0
- package/types/components/CurrencyPairs/CurrencyPairsTable.d.ts +3 -0
- package/types/components/CurrencyPairs/type.d.ts +6 -0
- package/types/components/DatePicker/DatePicker.d.ts +3 -0
- package/types/components/DatePicker/type.d.ts +18 -0
- package/types/components/DateRangePicker/DateRangePicker.d.ts +3 -0
- package/types/components/DateRangePicker/type.d.ts +16 -0
- package/types/components/DropdownList/DropdownList.d.ts +3 -0
- package/types/components/DropdownList/type.d.ts +21 -0
- package/types/components/ExchangeRates/ExchangeRates.d.ts +4 -0
- package/types/components/ExchangeRates/type.d.ts +15 -0
- package/types/components/Indices/Indices.d.ts +3 -0
- package/types/components/Indices/type.d.ts +9 -0
- package/types/components/LPRequestTable/LPRequestTable.d.ts +3 -0
- package/types/components/LPRequestTable/type.d.ts +15 -0
- package/types/components/LPSideNav/LPSideNav.d.ts +1 -2
- package/types/components/LPSideNav/type.d.ts +9 -0
- package/types/components/LPTopBar/LPTopBar.d.ts +3 -0
- package/types/components/LPTopBar/type.d.ts +15 -0
- package/types/components/LoadingShimmer/LoadingShimmer.d.ts +3 -0
- package/types/components/LoadingShimmer/type.d.ts +9 -0
- package/types/components/LoadingSpinner/LoadingSpinner.d.ts +6 -0
- package/types/components/MarketData/MarketData.d.ts +3 -0
- package/types/components/MarketData/type.d.ts +3 -0
- package/types/components/MarketMovers/MarketMovers.d.ts +3 -0
- package/types/components/MarketMovers/type.d.ts +6 -0
- package/types/components/MenuBar/MenuBar.d.ts +3 -0
- package/types/components/MenuBar/type.d.ts +6 -0
- package/types/components/NewsCard/NewsCard.d.ts +3 -0
- package/types/components/NewsCard/type.d.ts +24 -0
- package/types/components/NewsFilterBar/NewsFilterBar.d.ts +3 -0
- package/types/components/NewsFilterBar/type.d.ts +12 -0
- package/types/components/NewsSourceTag/NewsSourceTag.d.ts +3 -0
- package/types/components/NewsSourceTag/type.d.ts +9 -0
- package/types/components/NewsTitleBar/NewsTitleBar.d.ts +3 -0
- package/types/components/NewsTitleBar/type.d.ts +3 -0
- package/types/components/OffersCard/type.d.ts +12 -0
- package/types/components/PasswordField/PasswordField.d.ts +3 -0
- package/types/components/PasswordField/type.d.ts +15 -0
- package/types/components/PaymentMethodsTable/PaymentMethods.d.ts +3 -0
- package/types/components/PaymentMethodsTable/type.d.ts +6 -0
- package/types/components/PopupModal/PopupModal.d.ts +3 -0
- package/types/components/PopupModal/type.d.ts +21 -0
- package/types/components/ProvidersTable/ProvidersTable.d.ts +3 -0
- package/types/components/ProvidersTable/type.d.ts +6 -0
- package/types/components/RateHistory/RateHistory.d.ts +3 -0
- package/types/components/RateHistory/type.d.ts +3 -0
- package/types/components/ReportsTable/type.d.ts +6 -0
- package/types/components/RequestForm/RequestForm.d.ts +3 -0
- package/types/components/RequestForm/type.d.ts +9 -0
- package/types/components/Ribbon/Ribbon.d.ts +3 -0
- package/types/components/Ribbon/type.d.ts +6 -0
- package/types/components/SearchBar/SearchBar.d.ts +3 -0
- package/types/components/SearchBar/type.d.ts +6 -0
- package/types/components/SearchResultsBar/SearchResultsBar.d.ts +3 -0
- package/types/components/SearchResultsBar/type.d.ts +9 -0
- package/types/components/Selector/types.d.ts +6 -0
- package/types/components/SmallNewsCard/SmallNewsCard.d.ts +3 -0
- package/types/components/SmallNewsCard/type.d.ts +21 -0
- package/types/components/StatusBadge/StatusBadge.d.ts +3 -0
- package/types/components/StatusBadge/type.d.ts +9 -0
- package/types/components/StocksTicker/StocksTicker.d.ts +3 -0
- package/types/components/StocksTicker/type.d.ts +3 -0
- package/types/components/SystemConfigTable/SystemConfigTable.d.ts +3 -0
- package/types/components/SystemConfigTable/type.d.ts +12 -1
- package/types/components/Tab/Tab.d.ts +3 -0
- package/types/components/Tab/type.d.ts +12 -0
- package/types/components/TextArea/TextArea.d.ts +3 -0
- package/types/components/TextArea/type.d.ts +12 -0
- package/types/components/TextField/TextField.d.ts +3 -0
- package/types/components/TextField/type.d.ts +12 -0
- package/types/components/TransactionDetails/TransactionDetails.d.ts +3 -0
- package/types/components/TransactionDetails/type.d.ts +18 -0
- package/types/components/TransactionDetailsWithPayment/TransactionDetailsWithPayment.d.ts +3 -0
- package/types/components/TransactionDetailsWithPayment/type.d.ts +15 -0
- package/types/components/UpdateUserActions/UpdateUserActions.d.ts +3 -0
- package/types/components/UpdateUserActions/type.d.ts +15 -0
- package/types/components/UserActions/UserActions.d.ts +3 -0
- package/types/components/UserActions/type.d.ts +18 -0
- package/types/components/UserRolesTable/UserRolesTable.d.ts +3 -0
- package/types/components/UserRolesTable/type.d.ts +6 -0
- package/types/components/UsersTable/UsersTable.d.ts +3 -0
- package/types/components/UsersTable/type.d.ts +13 -1
- package/types/components/WidgetTitle/WidgetTitle.d.ts +3 -0
- package/types/components/WidgetTitle/type.d.ts +3 -0
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export interface OffersProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array of offers to be displayed in the offers card
|
|
4
|
+
*/
|
|
2
5
|
offers: {
|
|
3
6
|
providerName: string;
|
|
4
7
|
providerLogo?: string;
|
|
@@ -11,7 +14,13 @@ export interface OffersProps {
|
|
|
11
14
|
providerId: string;
|
|
12
15
|
rate: number;
|
|
13
16
|
}[];
|
|
17
|
+
/**
|
|
18
|
+
* Specify when the offers are being loaded
|
|
19
|
+
*/
|
|
14
20
|
loading: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Callback function for receiving the selected offer
|
|
23
|
+
*/
|
|
15
24
|
selectedOffer: (a: {
|
|
16
25
|
providerName: string;
|
|
17
26
|
providerLogo?: string;
|
|
@@ -24,5 +33,8 @@ export interface OffersProps {
|
|
|
24
33
|
providerId: string;
|
|
25
34
|
rate: number;
|
|
26
35
|
}) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Boolean to specify whether there's data available
|
|
38
|
+
*/
|
|
27
39
|
dataAvailable: boolean;
|
|
28
40
|
}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface PasswordFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Label of the password field in the form
|
|
5
|
+
*/
|
|
3
6
|
label?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Subtext of the label
|
|
9
|
+
*/
|
|
4
10
|
subtext?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Specify whether the field is disabled
|
|
13
|
+
*/
|
|
5
14
|
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Error message to be displayed in the case of an error
|
|
17
|
+
*/
|
|
6
18
|
errMsg?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Placeholder text for the password field in the form
|
|
21
|
+
*/
|
|
7
22
|
placeholder?: string;
|
|
8
23
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PaymentMethodsProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Component to display a table listing the payment methods accepted in the LP app
|
|
5
|
+
*/
|
|
3
6
|
declare const PaymentMethodsTable: (props: PaymentMethodsProps) => JSX.Element;
|
|
4
7
|
export default PaymentMethodsTable;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export interface PaymentMethodsProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array containing a list of payment methods and their associated information
|
|
4
|
+
*/
|
|
2
5
|
methods: {
|
|
3
6
|
pymtModeCode: string;
|
|
4
7
|
pymtModeName: string;
|
|
5
8
|
pymtModeShortName: string;
|
|
6
9
|
remarks: string;
|
|
7
10
|
}[];
|
|
11
|
+
/**
|
|
12
|
+
* Callback function to receive the selected item when clicked
|
|
13
|
+
*/
|
|
8
14
|
callback: (a: {
|
|
9
15
|
pymtModeCode: string;
|
|
10
16
|
pymtModeName: string;
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
export interface PopupModalProps {
|
|
2
|
+
/**
|
|
3
|
+
* Title of the modal
|
|
4
|
+
*/
|
|
2
5
|
title: string;
|
|
6
|
+
/**
|
|
7
|
+
* Content of the modal
|
|
8
|
+
*/
|
|
3
9
|
content: string;
|
|
10
|
+
/**
|
|
11
|
+
* Function to be called when the primary button is clicked. The primary button is the one on the right.
|
|
12
|
+
*/
|
|
4
13
|
primaryAction: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* Text to be displayed on the primary button
|
|
16
|
+
*/
|
|
5
17
|
primaryBtnText: string;
|
|
18
|
+
/**
|
|
19
|
+
* Function to be called when the secondary button is clicked. When this prop is not provided, only the primary button is displayed.
|
|
20
|
+
*/
|
|
6
21
|
secondaryAction?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Text to be displayed on the primary button
|
|
24
|
+
*/
|
|
7
25
|
secondaryBtnText?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Callback function to close the modal
|
|
28
|
+
*/
|
|
8
29
|
closeFxn: () => void;
|
|
9
30
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProvidersProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Component to display a table listing the providers signed on to the LP application
|
|
5
|
+
*/
|
|
3
6
|
declare const ProvidersTable: (props: ProvidersProps) => JSX.Element;
|
|
4
7
|
export default ProvidersTable;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export interface ProvidersProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array containing a list of providers to be listed in the table
|
|
4
|
+
*/
|
|
2
5
|
providers: {
|
|
3
6
|
providerId: string;
|
|
4
7
|
name: string;
|
|
@@ -6,6 +9,9 @@ export interface ProvidersProps {
|
|
|
6
9
|
phone: string;
|
|
7
10
|
status: Status;
|
|
8
11
|
}[];
|
|
12
|
+
/**
|
|
13
|
+
* Callback function to receive the selected provider when clicked
|
|
14
|
+
*/
|
|
9
15
|
callback: (a: {
|
|
10
16
|
providerId: string;
|
|
11
17
|
name: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RateHistoryProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Component displaying cards of historical rates for a given provider in the LP application
|
|
5
|
+
*/
|
|
3
6
|
declare const RateHistory: (props: RateHistoryProps) => JSX.Element;
|
|
4
7
|
export default RateHistory;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export interface ReportsProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array containing items to be listed in the table along with their accompanying information
|
|
4
|
+
*/
|
|
2
5
|
reports: {
|
|
3
6
|
clientId: string;
|
|
4
7
|
symbol: string;
|
|
@@ -10,6 +13,9 @@ export interface ReportsProps {
|
|
|
10
13
|
currencyFlag: string;
|
|
11
14
|
dateAdded: string;
|
|
12
15
|
}[];
|
|
16
|
+
/**
|
|
17
|
+
* Callback function that passes out the selected item as an object when clicked
|
|
18
|
+
*/
|
|
13
19
|
callback: (selReport: {
|
|
14
20
|
clientId: string;
|
|
15
21
|
symbol: string;
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
export interface RequestFormProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array containing symbols to be listed in the dropdown component in the form
|
|
4
|
+
*/
|
|
2
5
|
symbols: {
|
|
3
6
|
name: string;
|
|
4
7
|
shortName: string;
|
|
5
8
|
countryFlag?: string;
|
|
6
9
|
price: string;
|
|
7
10
|
}[];
|
|
11
|
+
/**
|
|
12
|
+
* Array containing the base currencies to be exchanged from
|
|
13
|
+
*/
|
|
8
14
|
currencies: {
|
|
9
15
|
currencyShortName: string;
|
|
10
16
|
currencyLongName: string;
|
|
11
17
|
countryFlag?: string;
|
|
12
18
|
}[];
|
|
19
|
+
/**
|
|
20
|
+
* Callback function to pass out the selections to get the offers
|
|
21
|
+
*/
|
|
13
22
|
returnedData: (a: {
|
|
14
23
|
symbol: string;
|
|
15
24
|
quantity: number;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LinksType } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Menu item displayed at the top of the LP app containing links to different products of the SSX ecosystem
|
|
5
|
+
*/
|
|
3
6
|
declare const Ribbon: (props: LinksType) => JSX.Element;
|
|
4
7
|
export default Ribbon;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export interface LinksType {
|
|
2
|
+
/**
|
|
3
|
+
* Array of links to be displayed in the ribbon containing the label and their respective URL
|
|
4
|
+
*/
|
|
2
5
|
links: {
|
|
3
6
|
label: string;
|
|
4
7
|
url: string;
|
|
5
8
|
}[];
|
|
9
|
+
/**
|
|
10
|
+
* Background colour of the ribbon when rendered
|
|
11
|
+
*/
|
|
6
12
|
bgColor: 'dark' | 'light';
|
|
7
13
|
}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
export interface NewsBarProps {
|
|
2
|
+
/**
|
|
3
|
+
* Title to be displayed as the title of the search
|
|
4
|
+
*/
|
|
2
5
|
title: string;
|
|
6
|
+
/**
|
|
7
|
+
* Number of hits from the search
|
|
8
|
+
*/
|
|
3
9
|
totalRes?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Number of items from the total that are being displayed
|
|
12
|
+
*/
|
|
4
13
|
resultsDisplayed?: number;
|
|
5
14
|
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export interface SelectorProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array containing items to be listed in the component
|
|
4
|
+
*/
|
|
2
5
|
itemsList: {
|
|
3
6
|
value?: string;
|
|
4
7
|
label: string;
|
|
5
8
|
}[];
|
|
9
|
+
/**
|
|
10
|
+
* Callback function passing out the selected item when clicked
|
|
11
|
+
*/
|
|
6
12
|
selectedItem: (a: {
|
|
7
13
|
label: string;
|
|
8
14
|
value?: string;
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
export interface SmallNewsCardProps {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the news item
|
|
4
|
+
*/
|
|
2
5
|
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Title of the news item
|
|
8
|
+
*/
|
|
3
9
|
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* URL to the featured of the news item
|
|
12
|
+
*/
|
|
4
13
|
featuredImgUrl: string;
|
|
14
|
+
/**
|
|
15
|
+
* Source of the news item
|
|
16
|
+
*/
|
|
5
17
|
source: string;
|
|
18
|
+
/**
|
|
19
|
+
* Date when the news item was published
|
|
20
|
+
*/
|
|
6
21
|
date: string;
|
|
22
|
+
/**
|
|
23
|
+
* URL to the flag of the source country
|
|
24
|
+
*/
|
|
7
25
|
sourceCountryFlagUrl: string;
|
|
26
|
+
/**
|
|
27
|
+
* URL to the news item
|
|
28
|
+
*/
|
|
8
29
|
storyUrl: string;
|
|
9
30
|
}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
export interface statusProps {
|
|
2
|
+
/**
|
|
3
|
+
* The status of the item
|
|
4
|
+
*/
|
|
2
5
|
status: 'default' | 'warning' | 'primary' | 'neutral' | 'success' | 'error';
|
|
6
|
+
/**
|
|
7
|
+
* Label of the status
|
|
8
|
+
*/
|
|
3
9
|
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* How wide should the badge be
|
|
12
|
+
*/
|
|
4
13
|
width?: number;
|
|
5
14
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SystemConfigProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Table displaying the configurations of the system in the LP application
|
|
5
|
+
*/
|
|
3
6
|
declare const SystemConfigTable: (props: SystemConfigProps) => JSX.Element;
|
|
4
7
|
export default SystemConfigTable;
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
export interface SystemConfigProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array of configurations and their associated data
|
|
4
|
+
*/
|
|
2
5
|
configs: {
|
|
3
6
|
configCode: string;
|
|
4
7
|
configName: string;
|
|
5
8
|
configValue: string;
|
|
6
9
|
remarks: string;
|
|
7
10
|
}[];
|
|
8
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Callback function to pass out the object of the selected item when clicked
|
|
13
|
+
*/
|
|
14
|
+
callback: (a: {
|
|
15
|
+
configCode: string;
|
|
16
|
+
configName: string;
|
|
17
|
+
configValue: string;
|
|
18
|
+
remarks: string;
|
|
19
|
+
}) => void;
|
|
9
20
|
srchActive?: boolean;
|
|
10
21
|
}
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
export interface TabType {
|
|
3
|
+
/**
|
|
4
|
+
* Array of tabs and their associated component content
|
|
5
|
+
*/
|
|
3
6
|
tabs: {
|
|
4
7
|
tabName: string;
|
|
5
8
|
tabComponent: ReactNode;
|
|
6
9
|
activeBgHexColor?: string;
|
|
7
10
|
}[];
|
|
11
|
+
/**
|
|
12
|
+
* Background of the tabs
|
|
13
|
+
*/
|
|
8
14
|
bgHexColor?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Color of an inactive tab
|
|
17
|
+
*/
|
|
9
18
|
inactiveTabBgHexColor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Callback function returning the value of the currently active tab when selected
|
|
21
|
+
*/
|
|
10
22
|
selectedTab?: (a: string | number) => void;
|
|
11
23
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextAreaProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Component to display a textarea field in a form. This mimics the behavior of a regular HTML <code><textarea></code> element and accepts the same props as it along with the custom ones defined.
|
|
5
|
+
*/
|
|
3
6
|
declare const TextArea: (props: TextAreaProps) => JSX.Element;
|
|
4
7
|
export default TextArea;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Label of the field to be displayed in the form
|
|
5
|
+
*/
|
|
3
6
|
label?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Subtext of the label
|
|
9
|
+
*/
|
|
4
10
|
subtext?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Error message to be displayed in the case of an error
|
|
13
|
+
*/
|
|
5
14
|
errMsg?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Initial value to be displayed
|
|
17
|
+
*/
|
|
6
18
|
initialVal?: string | number;
|
|
7
19
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextFieldProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Component to display an input field component in a form. This mimics the behavior of a regular HTML <code><input></code> element and accepts the same props as it along with the custom ones defined.
|
|
5
|
+
*/
|
|
3
6
|
declare const TextField: (props: TextFieldProps) => JSX.Element;
|
|
4
7
|
export default TextField;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface TextFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Label of the input field
|
|
5
|
+
*/
|
|
3
6
|
label?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Subtext of the label
|
|
9
|
+
*/
|
|
4
10
|
subtext?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Error message to be displayed in the case of an error
|
|
13
|
+
*/
|
|
5
14
|
errMsg?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The initial value of the field to be displayed in the component
|
|
17
|
+
*/
|
|
6
18
|
initialVal?: string | number;
|
|
7
19
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TxnDetsProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Component to display the details of a transaction when selected from the transactions list table
|
|
5
|
+
*/
|
|
3
6
|
declare const TransactionDetails: (props: TxnDetsProps) => JSX.Element;
|
|
4
7
|
export default TransactionDetails;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
export interface TxnDetsProps {
|
|
2
|
+
/**
|
|
3
|
+
* Name of user who made the transaction
|
|
4
|
+
*/
|
|
2
5
|
requestedBy: string;
|
|
6
|
+
/**
|
|
7
|
+
* Date when the transaction took place
|
|
8
|
+
*/
|
|
3
9
|
requestDate: string;
|
|
10
|
+
/**
|
|
11
|
+
* Client ID for use by the broker for their internal identification of transactions
|
|
12
|
+
*/
|
|
4
13
|
clientID?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The amount involved in the transaction in both the base currency and the exchange currency
|
|
16
|
+
*/
|
|
5
17
|
amount: {
|
|
6
18
|
baseAmount: number;
|
|
7
19
|
baseFlag: string;
|
|
@@ -11,10 +23,16 @@ export interface TxnDetsProps {
|
|
|
11
23
|
exchCurr: string;
|
|
12
24
|
exchRate: number;
|
|
13
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* The provider selected at the time of transaction
|
|
28
|
+
*/
|
|
14
29
|
provider: {
|
|
15
30
|
name: string;
|
|
16
31
|
logo?: string;
|
|
17
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* Details of the destination bank account where the exchanged funds will be deposited
|
|
35
|
+
*/
|
|
18
36
|
destAcctDets?: {
|
|
19
37
|
bankLogo?: string;
|
|
20
38
|
acctNo: number;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TxnDetsWPymntProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Component to display the details of a transaction along with payment information after the broker has sent the base amount to the provider when selected from the transactions list table
|
|
5
|
+
*/
|
|
3
6
|
declare const TransactionDetailsWithPayment: (props: TxnDetsWPymntProps) => JSX.Element;
|
|
4
7
|
export default TransactionDetailsWithPayment;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export interface TxnDetsWPymntProps {
|
|
2
|
+
/**
|
|
3
|
+
* Name of user who made the request
|
|
4
|
+
*/
|
|
2
5
|
requestedBy: string;
|
|
6
|
+
/**
|
|
7
|
+
* Date when the transaction occurred
|
|
8
|
+
*/
|
|
3
9
|
requestDate: string;
|
|
10
|
+
/**
|
|
11
|
+
* Amount involved in the transaction in the base currency and exchange currency
|
|
12
|
+
*/
|
|
4
13
|
amount: {
|
|
5
14
|
baseAmount: number;
|
|
6
15
|
baseFlag: string;
|
|
@@ -10,10 +19,16 @@ export interface TxnDetsWPymntProps {
|
|
|
10
19
|
exchCurr: string;
|
|
11
20
|
exchRate: number;
|
|
12
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Provider selected at the time of the transaction and URL to their corresponding logo
|
|
24
|
+
*/
|
|
13
25
|
provider: {
|
|
14
26
|
name: string;
|
|
15
27
|
logo?: string;
|
|
16
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Payment details from the payment that the broker made to the provider
|
|
31
|
+
*/
|
|
17
32
|
paymentDets: {
|
|
18
33
|
payeeName: string;
|
|
19
34
|
bankCountry: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UpdateUserActionsProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Component to handle the update of user actions in the LP application
|
|
5
|
+
*/
|
|
3
6
|
declare const UpdateUserActions: (props: UpdateUserActionsProps) => JSX.Element;
|
|
4
7
|
export default UpdateUserActions;
|
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
export interface UpdateUserActionsProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array of options available to the user
|
|
4
|
+
*/
|
|
2
5
|
availableOptions: {
|
|
3
6
|
optionName: string;
|
|
4
7
|
optionId: string;
|
|
5
8
|
}[];
|
|
9
|
+
/**
|
|
10
|
+
* Array of options that the user currently has under their account
|
|
11
|
+
*/
|
|
6
12
|
currentOptions: {
|
|
7
13
|
optionName: string;
|
|
8
14
|
optionId: string;
|
|
9
15
|
}[];
|
|
16
|
+
/**
|
|
17
|
+
* Title for available options
|
|
18
|
+
*/
|
|
10
19
|
titleAvailable?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Title for current options
|
|
22
|
+
*/
|
|
11
23
|
titleCurrent?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Callback function to handle the selected options that were added for the user or removed
|
|
26
|
+
*/
|
|
12
27
|
selOptions: (a: {
|
|
13
28
|
added: [];
|
|
14
29
|
removed: [];
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UserActionsProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Component to handle tha addition of user actions for a user in the LP application
|
|
5
|
+
*/
|
|
3
6
|
declare const UpdateUserActions: (props: UserActionsProps) => JSX.Element;
|
|
4
7
|
export default UpdateUserActions;
|