@cranberry-money/shared-constants 4.9.0 → 4.9.2
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/api/auth.js +16 -19
- package/dist/api/config.js +4 -7
- package/dist/api/endpoints.js +28 -31
- package/dist/api/http.js +6 -9
- package/dist/api/index.js +4 -20
- package/dist/business/accounts.js +34 -37
- package/dist/business/bank-accounts.js +50 -54
- package/dist/business/banking.js +26 -29
- package/dist/business/countries.js +3 -6
- package/dist/business/documents.js +41 -44
- package/dist/business/holdings.d.ts +34 -0
- package/dist/business/holdings.d.ts.map +1 -0
- package/dist/business/holdings.js +34 -0
- package/dist/business/index.d.ts +1 -0
- package/dist/business/index.d.ts.map +1 -1
- package/dist/business/index.js +14 -74
- package/dist/business/industries.js +2 -5
- package/dist/business/investments.js +53 -56
- package/dist/business/status/banks.js +11 -14
- package/dist/business/status/cash-accounts.js +33 -36
- package/dist/business/status/documents.js +23 -26
- package/dist/business/status/index.js +7 -23
- package/dist/business/status/instruments.js +21 -24
- package/dist/business/status/portfolios.js +5 -8
- package/dist/business/status/trades.d.ts +15 -27
- package/dist/business/status/trades.d.ts.map +1 -1
- package/dist/business/status/trades.js +81 -75
- package/dist/business/status/withdrawals.d.ts +34 -62
- package/dist/business/status/withdrawals.d.ts.map +1 -1
- package/dist/business/status/withdrawals.js +117 -100
- package/dist/business/trading.js +23 -26
- package/dist/financial/currency.js +42 -45
- package/dist/financial/formatting.js +9 -12
- package/dist/financial/index.js +3 -19
- package/dist/financial/instruments.js +25 -28
- package/dist/index.js +5 -21
- package/dist/ui/colors.js +37 -41
- package/dist/ui/display.js +20 -23
- package/dist/ui/index.js +3 -19
- package/dist/ui/labels/index.js +15 -49
- package/dist/utilities/common.js +18 -21
- package/dist/utilities/defaults.js +6 -9
- package/dist/utilities/index.js +5 -21
- package/dist/utilities/sorting.js +13 -16
- package/dist/utilities/time.js +9 -12
- package/dist/utilities/validation.js +3 -6
- package/package.json +1 -1
package/dist/business/banking.js
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Banking-related business constants
|
|
4
3
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ACCOUNT_NUMBER_VALIDATION = exports.BSB_VALIDATION = exports.VERIFICATION_METHOD_LABELS = exports.VERIFICATION_METHOD = exports.BANKING_INSTITUTION_LABELS = exports.BANKING_INSTITUTION = exports.BANK_ACCOUNT_TYPE_LABELS = exports.BANK_ACCOUNT_TYPE = void 0;
|
|
7
4
|
// Bank account types
|
|
8
|
-
|
|
5
|
+
export const BANK_ACCOUNT_TYPE = {
|
|
9
6
|
CHECKING: 'CHECKING',
|
|
10
7
|
SAVINGS: 'SAVINGS',
|
|
11
8
|
BUSINESS: 'BUSINESS',
|
|
12
9
|
INVESTMENT: 'INVESTMENT',
|
|
13
10
|
OTHER: 'OTHER',
|
|
14
11
|
};
|
|
15
|
-
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
12
|
+
export const BANK_ACCOUNT_TYPE_LABELS = {
|
|
13
|
+
[BANK_ACCOUNT_TYPE.CHECKING]: 'Checking Account',
|
|
14
|
+
[BANK_ACCOUNT_TYPE.SAVINGS]: 'Savings Account',
|
|
15
|
+
[BANK_ACCOUNT_TYPE.BUSINESS]: 'Business Account',
|
|
16
|
+
[BANK_ACCOUNT_TYPE.INVESTMENT]: 'Investment Account',
|
|
17
|
+
[BANK_ACCOUNT_TYPE.OTHER]: 'Other',
|
|
21
18
|
};
|
|
22
19
|
// Banking institutions (Australia-focused)
|
|
23
|
-
|
|
20
|
+
export const BANKING_INSTITUTION = {
|
|
24
21
|
// Big Four
|
|
25
22
|
CBA: 'CBA',
|
|
26
23
|
ANZ: 'ANZ',
|
|
@@ -34,38 +31,38 @@ exports.BANKING_INSTITUTION = {
|
|
|
34
31
|
// Other
|
|
35
32
|
OTHER: 'OTHER',
|
|
36
33
|
};
|
|
37
|
-
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
34
|
+
export const BANKING_INSTITUTION_LABELS = {
|
|
35
|
+
[BANKING_INSTITUTION.CBA]: 'Commonwealth Bank',
|
|
36
|
+
[BANKING_INSTITUTION.ANZ]: 'ANZ Bank',
|
|
37
|
+
[BANKING_INSTITUTION.NAB]: 'National Australia Bank',
|
|
38
|
+
[BANKING_INSTITUTION.WESTPAC]: 'Westpac',
|
|
39
|
+
[BANKING_INSTITUTION.MACQUARIE]: 'Macquarie Bank',
|
|
40
|
+
[BANKING_INSTITUTION.ING]: 'ING Australia',
|
|
41
|
+
[BANKING_INSTITUTION.BENDIGO]: 'Bendigo Bank',
|
|
42
|
+
[BANKING_INSTITUTION.SUNCORP]: 'Suncorp Bank',
|
|
43
|
+
[BANKING_INSTITUTION.OTHER]: 'Other',
|
|
47
44
|
};
|
|
48
45
|
// Account verification methods
|
|
49
|
-
|
|
46
|
+
export const VERIFICATION_METHOD = {
|
|
50
47
|
MICRO_DEPOSIT: 'MICRO_DEPOSIT',
|
|
51
48
|
INSTANT: 'INSTANT',
|
|
52
49
|
MANUAL: 'MANUAL',
|
|
53
50
|
DOCUMENT: 'DOCUMENT',
|
|
54
51
|
};
|
|
55
|
-
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
52
|
+
export const VERIFICATION_METHOD_LABELS = {
|
|
53
|
+
[VERIFICATION_METHOD.MICRO_DEPOSIT]: 'Micro Deposit',
|
|
54
|
+
[VERIFICATION_METHOD.INSTANT]: 'Instant Verification',
|
|
55
|
+
[VERIFICATION_METHOD.MANUAL]: 'Manual Verification',
|
|
56
|
+
[VERIFICATION_METHOD.DOCUMENT]: 'Document Verification',
|
|
60
57
|
};
|
|
61
58
|
// BSB validation (Australian Bank State Branch)
|
|
62
|
-
|
|
59
|
+
export const BSB_VALIDATION = {
|
|
63
60
|
LENGTH: 6,
|
|
64
61
|
PATTERN: /^\d{6}$/,
|
|
65
62
|
FORMAT_PATTERN: /^\d{3}-?\d{3}$/,
|
|
66
63
|
};
|
|
67
64
|
// Account number validation
|
|
68
|
-
|
|
65
|
+
export const ACCOUNT_NUMBER_VALIDATION = {
|
|
69
66
|
MIN_LENGTH: 4,
|
|
70
67
|
MAX_LENGTH: 10,
|
|
71
68
|
PATTERN: /^\d{4,10}$/,
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Countries domain constants
|
|
4
3
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.COUNTRY_STATUS_UNAVAILABLE = exports.COUNTRY_STATUS_AVAILABLE = exports.COUNTRY_STATUS = void 0;
|
|
7
4
|
// Country availability status
|
|
8
|
-
|
|
5
|
+
export const COUNTRY_STATUS = {
|
|
9
6
|
AVAILABLE: true,
|
|
10
7
|
UNAVAILABLE: false,
|
|
11
8
|
};
|
|
12
9
|
// Individual exports for easy migration from Blueberry
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
export const COUNTRY_STATUS_AVAILABLE = COUNTRY_STATUS.AVAILABLE;
|
|
11
|
+
export const COUNTRY_STATUS_UNAVAILABLE = COUNTRY_STATUS.UNAVAILABLE;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Document-related business constants
|
|
4
3
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CONTENT_TYPE_ANY = exports.RESPONSE_TYPE_BLOB = exports.DOWNLOAD_ATTRIBUTE = exports.DOWNLOAD_LINK_ELEMENT_TAG = exports.DOCUMENT_MIME_TYPES = exports.DOCUMENT_FORMAT = exports.DOCUMENT_CATEGORY_LABELS = exports.DOCUMENT_CATEGORY = exports.DOCUMENT_TYPE_OPTIONS = exports.DOCUMENT_TYPE_LABELS = exports.DOCUMENT_TYPE_LABEL_AGREEMENT = exports.DOCUMENT_TYPE_LABEL_SOA = exports.DOCUMENT_TYPE_LABEL_MDA = exports.DOCUMENT_TYPE = exports.DOCUMENT_TYPE_AGREEMENT = exports.DOCUMENT_TYPE_SOA = exports.DOCUMENT_TYPE_MDA = void 0;
|
|
7
4
|
// Document type constants - matching Blueberry's lowercase values
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export const DOCUMENT_TYPE_MDA = 'mda';
|
|
6
|
+
export const DOCUMENT_TYPE_SOA = 'soa';
|
|
7
|
+
export const DOCUMENT_TYPE_AGREEMENT = 'agreement';
|
|
11
8
|
// Document types
|
|
12
|
-
|
|
13
|
-
MDA:
|
|
14
|
-
SOA:
|
|
15
|
-
AGREEMENT:
|
|
9
|
+
export const DOCUMENT_TYPE = {
|
|
10
|
+
MDA: DOCUMENT_TYPE_MDA,
|
|
11
|
+
SOA: DOCUMENT_TYPE_SOA,
|
|
12
|
+
AGREEMENT: DOCUMENT_TYPE_AGREEMENT,
|
|
16
13
|
STATEMENT: 'STATEMENT',
|
|
17
14
|
REPORT: 'REPORT',
|
|
18
15
|
CONFIRMATION: 'CONFIRMATION',
|
|
@@ -20,27 +17,27 @@ exports.DOCUMENT_TYPE = {
|
|
|
20
17
|
OTHER: 'OTHER',
|
|
21
18
|
};
|
|
22
19
|
// Document type label constants
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
20
|
+
export const DOCUMENT_TYPE_LABEL_MDA = 'Management Discretionary Agreement';
|
|
21
|
+
export const DOCUMENT_TYPE_LABEL_SOA = 'Statement of Advice';
|
|
22
|
+
export const DOCUMENT_TYPE_LABEL_AGREEMENT = 'Client Agreement';
|
|
23
|
+
export const DOCUMENT_TYPE_LABELS = {
|
|
24
|
+
[DOCUMENT_TYPE.MDA]: DOCUMENT_TYPE_LABEL_MDA,
|
|
25
|
+
[DOCUMENT_TYPE.SOA]: DOCUMENT_TYPE_LABEL_SOA,
|
|
26
|
+
[DOCUMENT_TYPE.AGREEMENT]: DOCUMENT_TYPE_LABEL_AGREEMENT,
|
|
27
|
+
[DOCUMENT_TYPE.STATEMENT]: 'Statement',
|
|
28
|
+
[DOCUMENT_TYPE.REPORT]: 'Report',
|
|
29
|
+
[DOCUMENT_TYPE.CONFIRMATION]: 'Confirmation',
|
|
30
|
+
[DOCUMENT_TYPE.TAX_DOCUMENT]: 'Tax Document',
|
|
31
|
+
[DOCUMENT_TYPE.OTHER]: 'Other',
|
|
35
32
|
};
|
|
36
33
|
// Document type options for forms
|
|
37
|
-
|
|
38
|
-
{ value:
|
|
39
|
-
{ value:
|
|
40
|
-
{ value:
|
|
34
|
+
export const DOCUMENT_TYPE_OPTIONS = [
|
|
35
|
+
{ value: DOCUMENT_TYPE_MDA, label: DOCUMENT_TYPE_LABEL_MDA },
|
|
36
|
+
{ value: DOCUMENT_TYPE_SOA, label: DOCUMENT_TYPE_LABEL_SOA },
|
|
37
|
+
{ value: DOCUMENT_TYPE_AGREEMENT, label: DOCUMENT_TYPE_LABEL_AGREEMENT },
|
|
41
38
|
];
|
|
42
39
|
// Document categories
|
|
43
|
-
|
|
40
|
+
export const DOCUMENT_CATEGORY = {
|
|
44
41
|
ONBOARDING: 'ONBOARDING',
|
|
45
42
|
ACCOUNT: 'ACCOUNT',
|
|
46
43
|
TRADING: 'TRADING',
|
|
@@ -48,31 +45,31 @@ exports.DOCUMENT_CATEGORY = {
|
|
|
48
45
|
COMPLIANCE: 'COMPLIANCE',
|
|
49
46
|
GENERAL: 'GENERAL',
|
|
50
47
|
};
|
|
51
|
-
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
[
|
|
48
|
+
export const DOCUMENT_CATEGORY_LABELS = {
|
|
49
|
+
[DOCUMENT_CATEGORY.ONBOARDING]: 'Onboarding',
|
|
50
|
+
[DOCUMENT_CATEGORY.ACCOUNT]: 'Account',
|
|
51
|
+
[DOCUMENT_CATEGORY.TRADING]: 'Trading',
|
|
52
|
+
[DOCUMENT_CATEGORY.TAX]: 'Tax',
|
|
53
|
+
[DOCUMENT_CATEGORY.COMPLIANCE]: 'Compliance',
|
|
54
|
+
[DOCUMENT_CATEGORY.GENERAL]: 'General',
|
|
58
55
|
};
|
|
59
56
|
// Document formats
|
|
60
|
-
|
|
57
|
+
export const DOCUMENT_FORMAT = {
|
|
61
58
|
PDF: 'PDF',
|
|
62
59
|
DOCX: 'DOCX',
|
|
63
60
|
CSV: 'CSV',
|
|
64
61
|
XLSX: 'XLSX',
|
|
65
62
|
};
|
|
66
63
|
// Document mime types
|
|
67
|
-
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
64
|
+
export const DOCUMENT_MIME_TYPES = {
|
|
65
|
+
[DOCUMENT_FORMAT.PDF]: 'application/pdf',
|
|
66
|
+
[DOCUMENT_FORMAT.DOCX]: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
67
|
+
[DOCUMENT_FORMAT.CSV]: 'text/csv',
|
|
68
|
+
[DOCUMENT_FORMAT.XLSX]: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
72
69
|
};
|
|
73
70
|
// Download-related constants
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
export const DOWNLOAD_LINK_ELEMENT_TAG = 'a';
|
|
72
|
+
export const DOWNLOAD_ATTRIBUTE = 'download';
|
|
76
73
|
// HTTP constants for documents
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
export const RESPONSE_TYPE_BLOB = 'blob';
|
|
75
|
+
export const CONTENT_TYPE_ANY = '*/*';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Holdings and snapshot related constants
|
|
3
|
+
* These constants should match the backend constants
|
|
4
|
+
*/
|
|
5
|
+
export declare const SNAPSHOT_REASON_TRADE = "TRADE";
|
|
6
|
+
export declare const SNAPSHOT_REASON_REBALANCE = "REBALANCE";
|
|
7
|
+
export declare const SNAPSHOT_REASON_VALUATION = "VALUATION";
|
|
8
|
+
export declare const SNAPSHOT_REASON_AUDIT = "AUDIT";
|
|
9
|
+
export declare const SNAPSHOT_REASON: {
|
|
10
|
+
readonly TRADE: "TRADE";
|
|
11
|
+
readonly REBALANCE: "REBALANCE";
|
|
12
|
+
readonly VALUATION: "VALUATION";
|
|
13
|
+
readonly AUDIT: "AUDIT";
|
|
14
|
+
};
|
|
15
|
+
export type SnapshotReason = (typeof SNAPSHOT_REASON)[keyof typeof SNAPSHOT_REASON];
|
|
16
|
+
export declare const SNAPSHOT_REASON_LABEL_TRADE = "Trade Execution";
|
|
17
|
+
export declare const SNAPSHOT_REASON_LABEL_REBALANCE = "Portfolio Rebalance";
|
|
18
|
+
export declare const SNAPSHOT_REASON_LABEL_VALUATION = "Valuation Update";
|
|
19
|
+
export declare const SNAPSHOT_REASON_LABEL_AUDIT = "Audit Record";
|
|
20
|
+
export declare const SNAPSHOT_REASON_LABELS: Record<SnapshotReason, string>;
|
|
21
|
+
export declare const SNAPSHOT_REASON_OPTIONS: readonly [{
|
|
22
|
+
readonly value: "TRADE";
|
|
23
|
+
readonly label: "Trade Execution";
|
|
24
|
+
}, {
|
|
25
|
+
readonly value: "REBALANCE";
|
|
26
|
+
readonly label: "Portfolio Rebalance";
|
|
27
|
+
}, {
|
|
28
|
+
readonly value: "VALUATION";
|
|
29
|
+
readonly label: "Valuation Update";
|
|
30
|
+
}, {
|
|
31
|
+
readonly value: "AUDIT";
|
|
32
|
+
readonly label: "Audit Record";
|
|
33
|
+
}];
|
|
34
|
+
//# sourceMappingURL=holdings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holdings.d.ts","sourceRoot":"","sources":["../../src/business/holdings.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAGpF,eAAO,MAAM,2BAA2B,oBAAoB,CAAC;AAC7D,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AACrE,eAAO,MAAM,+BAA+B,qBAAqB,CAAC;AAClE,eAAO,MAAM,2BAA2B,iBAAiB,CAAC;AAG1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKxD,CAAC;AAGX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAK1B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Holdings and snapshot related constants
|
|
3
|
+
* These constants should match the backend constants
|
|
4
|
+
*/
|
|
5
|
+
// Asset holding snapshot reason constants
|
|
6
|
+
export const SNAPSHOT_REASON_TRADE = 'TRADE';
|
|
7
|
+
export const SNAPSHOT_REASON_REBALANCE = 'REBALANCE';
|
|
8
|
+
export const SNAPSHOT_REASON_VALUATION = 'VALUATION';
|
|
9
|
+
export const SNAPSHOT_REASON_AUDIT = 'AUDIT';
|
|
10
|
+
export const SNAPSHOT_REASON = {
|
|
11
|
+
TRADE: SNAPSHOT_REASON_TRADE,
|
|
12
|
+
REBALANCE: SNAPSHOT_REASON_REBALANCE,
|
|
13
|
+
VALUATION: SNAPSHOT_REASON_VALUATION,
|
|
14
|
+
AUDIT: SNAPSHOT_REASON_AUDIT,
|
|
15
|
+
};
|
|
16
|
+
// Snapshot reason label constants
|
|
17
|
+
export const SNAPSHOT_REASON_LABEL_TRADE = 'Trade Execution';
|
|
18
|
+
export const SNAPSHOT_REASON_LABEL_REBALANCE = 'Portfolio Rebalance';
|
|
19
|
+
export const SNAPSHOT_REASON_LABEL_VALUATION = 'Valuation Update';
|
|
20
|
+
export const SNAPSHOT_REASON_LABEL_AUDIT = 'Audit Record';
|
|
21
|
+
// Snapshot reason labels for UI display
|
|
22
|
+
export const SNAPSHOT_REASON_LABELS = {
|
|
23
|
+
[SNAPSHOT_REASON.TRADE]: SNAPSHOT_REASON_LABEL_TRADE,
|
|
24
|
+
[SNAPSHOT_REASON.REBALANCE]: SNAPSHOT_REASON_LABEL_REBALANCE,
|
|
25
|
+
[SNAPSHOT_REASON.VALUATION]: SNAPSHOT_REASON_LABEL_VALUATION,
|
|
26
|
+
[SNAPSHOT_REASON.AUDIT]: SNAPSHOT_REASON_LABEL_AUDIT,
|
|
27
|
+
};
|
|
28
|
+
// Snapshot reason options for forms
|
|
29
|
+
export const SNAPSHOT_REASON_OPTIONS = [
|
|
30
|
+
{ value: SNAPSHOT_REASON_TRADE, label: SNAPSHOT_REASON_LABEL_TRADE },
|
|
31
|
+
{ value: SNAPSHOT_REASON_REBALANCE, label: SNAPSHOT_REASON_LABEL_REBALANCE },
|
|
32
|
+
{ value: SNAPSHOT_REASON_VALUATION, label: SNAPSHOT_REASON_LABEL_VALUATION },
|
|
33
|
+
{ value: SNAPSHOT_REASON_AUDIT, label: SNAPSHOT_REASON_LABEL_AUDIT },
|
|
34
|
+
];
|
package/dist/business/index.d.ts
CHANGED
|
@@ -11,4 +11,5 @@ export { BANK_ACCOUNT_CATEGORY_SAVINGS, BANK_ACCOUNT_CATEGORY_CHECKING, BANK_ACC
|
|
|
11
11
|
export { CASH_ACCOUNT_TRANSACTION_TYPE, type CashAccountTransactionType, CASH_ACCOUNT_TRANSACTION_TYPE_LABELS, CASH_ACCOUNT_TRANSACTION_STATUS, type CashAccountTransactionStatus, CASH_ACCOUNT_TRANSACTION_STATUS_LABELS, TRANSACTION_TYPE_LABEL_DEPOSIT, TRANSACTION_TYPE_LABEL_WITHDRAWAL, TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT, TRANSACTION_TYPE_LABEL_DISTRIBUTION, TRANSACTION_TYPE_LABEL_FEE, TRANSACTION_TYPE_LABEL_INTEREST, TRANSACTION_TYPE_LABEL_OTHER, TRANSACTION_TYPE_OPTIONS, } from './status/cash-accounts';
|
|
12
12
|
export * from './countries';
|
|
13
13
|
export * from './industries';
|
|
14
|
+
export * from './holdings';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/business/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAE9B,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,0BAA0B,EAC1B,cAAc,EACd,yBAAyB,GAC1B,MAAM,WAAW,CAAC;AACnB,cAAc,WAAW,CAAC;AAE1B,OAAO,EAEL,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,6BAA6B,EAC7B,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,0BAA0B,EAE1B,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,+BAA+B,EAC/B,gCAAgC,EAChC,mCAAmC,EACnC,oCAAoC,EACpC,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAC/B,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,KAAK,eAAe,EACpB,aAAa,EACb,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EACL,6BAA6B,EAC7B,KAAK,0BAA0B,EAC/B,oCAAoC,EACpC,+BAA+B,EAC/B,KAAK,4BAA4B,EACjC,sCAAsC,EACtC,8BAA8B,EAC9B,iCAAiC,EACjC,uCAAuC,EACvC,mCAAmC,EACnC,0BAA0B,EAC1B,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAGhC,cAAc,aAAa,CAAC;AAG5B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/business/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAE9B,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,0BAA0B,EAC1B,cAAc,EACd,yBAAyB,GAC1B,MAAM,WAAW,CAAC;AACnB,cAAc,WAAW,CAAC;AAE1B,OAAO,EAEL,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,6BAA6B,EAC7B,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,0BAA0B,EAE1B,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,+BAA+B,EAC/B,gCAAgC,EAChC,mCAAmC,EACnC,oCAAoC,EACpC,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAC/B,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,KAAK,eAAe,EACpB,aAAa,EACb,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EACL,6BAA6B,EAC7B,KAAK,0BAA0B,EAC/B,oCAAoC,EACpC,+BAA+B,EAC/B,KAAK,4BAA4B,EACjC,sCAAsC,EACtC,8BAA8B,EAC9B,iCAAiC,EACjC,uCAAuC,EACvC,mCAAmC,EACnC,0BAA0B,EAC1B,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAGhC,cAAc,aAAa,CAAC;AAG5B,cAAc,cAAc,CAAC;AAG7B,cAAc,YAAY,CAAC"}
|
package/dist/business/index.js
CHANGED
|
@@ -1,85 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Business domain constants
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.TRANSACTION_TYPE_OPTIONS = exports.TRANSACTION_TYPE_LABEL_OTHER = exports.TRANSACTION_TYPE_LABEL_INTEREST = exports.TRANSACTION_TYPE_LABEL_FEE = exports.TRANSACTION_TYPE_LABEL_DISTRIBUTION = exports.TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT = exports.TRANSACTION_TYPE_LABEL_WITHDRAWAL = exports.TRANSACTION_TYPE_LABEL_DEPOSIT = exports.CASH_ACCOUNT_TRANSACTION_STATUS_LABELS = exports.CASH_ACCOUNT_TRANSACTION_STATUS = exports.CASH_ACCOUNT_TRANSACTION_TYPE_LABELS = exports.CASH_ACCOUNT_TRANSACTION_TYPE = exports.getAccountTypeInfo = exports.ACCOUNT_TYPES = exports.BANK_ACCOUNT_TYPE_DESC_OFFSET = exports.BANK_ACCOUNT_TYPE_DESC_TERM_DEPOSIT = exports.BANK_ACCOUNT_TYPE_DESC_TRANSACTION = exports.BANK_ACCOUNT_TYPE_DESC_CHECKING = exports.BANK_ACCOUNT_TYPE_DESC_SAVINGS = exports.BANK_ACCOUNT_TYPE_LABEL_OFFSET = exports.BANK_ACCOUNT_TYPE_LABEL_TERM_DEPOSIT = exports.BANK_ACCOUNT_TYPE_LABEL_TRANSACTION = exports.BANK_ACCOUNT_TYPE_LABEL_CHECKING = exports.BANK_ACCOUNT_TYPE_LABEL_SAVINGS = exports.BANK_ACCOUNT_TYPE_OPTIONS = exports.BANK_ACCOUNT_TYPE_OFFSET = exports.BANK_ACCOUNT_TYPE_TERM_DEPOSIT = exports.BANK_ACCOUNT_TYPE_TRANSACTION = exports.BANK_ACCOUNT_TYPE_CHECKING = exports.BANK_ACCOUNT_TYPE_SAVINGS = exports.getBankAccountCategoryInfo = exports.BANK_ACCOUNT_CATEGORIES_INFO = exports.BANK_ACCOUNT_CATEGORY_OPTIONS = exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS = exports.BANK_ACCOUNT_CATEGORY_LABELS = exports.BANK_ACCOUNT_CATEGORIES = exports.BANK_ACCOUNT_CATEGORY_OFFSET = exports.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT = exports.BANK_ACCOUNT_CATEGORY_TRANSACTION = exports.BANK_ACCOUNT_CATEGORY_CHECKING = exports.BANK_ACCOUNT_CATEGORY_SAVINGS = exports.ACCOUNT_NUMBER_VALIDATION = exports.BSB_VALIDATION = exports.VERIFICATION_METHOD_LABELS = exports.VERIFICATION_METHOD = exports.BANKING_INSTITUTION_LABELS = exports.BANKING_INSTITUTION = void 0;
|
|
21
|
-
__exportStar(require("./status"), exports);
|
|
22
|
-
__exportStar(require("./accounts"), exports);
|
|
23
|
-
__exportStar(require("./documents"), exports);
|
|
24
|
-
__exportStar(require("./investments"), exports);
|
|
4
|
+
export * from './status';
|
|
5
|
+
export * from './accounts';
|
|
6
|
+
export * from './documents';
|
|
7
|
+
export * from './investments';
|
|
25
8
|
// Export banking constants except the conflicting ones
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Object.defineProperty(exports, "BANKING_INSTITUTION_LABELS", { enumerable: true, get: function () { return banking_1.BANKING_INSTITUTION_LABELS; } });
|
|
29
|
-
Object.defineProperty(exports, "VERIFICATION_METHOD", { enumerable: true, get: function () { return banking_1.VERIFICATION_METHOD; } });
|
|
30
|
-
Object.defineProperty(exports, "VERIFICATION_METHOD_LABELS", { enumerable: true, get: function () { return banking_1.VERIFICATION_METHOD_LABELS; } });
|
|
31
|
-
Object.defineProperty(exports, "BSB_VALIDATION", { enumerable: true, get: function () { return banking_1.BSB_VALIDATION; } });
|
|
32
|
-
Object.defineProperty(exports, "ACCOUNT_NUMBER_VALIDATION", { enumerable: true, get: function () { return banking_1.ACCOUNT_NUMBER_VALIDATION; } });
|
|
33
|
-
__exportStar(require("./trading"), exports);
|
|
9
|
+
export { BANKING_INSTITUTION, BANKING_INSTITUTION_LABELS, VERIFICATION_METHOD, VERIFICATION_METHOD_LABELS, BSB_VALIDATION, ACCOUNT_NUMBER_VALIDATION, } from './banking';
|
|
10
|
+
export * from './trading';
|
|
34
11
|
// Export bank-accounts with alias to avoid conflicts
|
|
35
|
-
|
|
12
|
+
export {
|
|
36
13
|
// Re-export with specific names to avoid conflicts
|
|
37
|
-
|
|
38
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_CHECKING", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_CHECKING; } });
|
|
39
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_TRANSACTION", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_TRANSACTION; } });
|
|
40
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT; } });
|
|
41
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_OFFSET", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_OFFSET; } });
|
|
42
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORIES", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORIES; } });
|
|
43
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_LABELS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_LABELS; } });
|
|
44
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_DESCRIPTIONS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS; } });
|
|
45
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_OPTIONS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_OPTIONS; } });
|
|
46
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORIES_INFO", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORIES_INFO; } });
|
|
47
|
-
Object.defineProperty(exports, "getBankAccountCategoryInfo", { enumerable: true, get: function () { return bank_accounts_1.getBankAccountCategoryInfo; } });
|
|
14
|
+
BANK_ACCOUNT_CATEGORY_SAVINGS, BANK_ACCOUNT_CATEGORY_CHECKING, BANK_ACCOUNT_CATEGORY_TRANSACTION, BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT, BANK_ACCOUNT_CATEGORY_OFFSET, BANK_ACCOUNT_CATEGORIES, BANK_ACCOUNT_CATEGORY_LABELS, BANK_ACCOUNT_CATEGORY_DESCRIPTIONS, BANK_ACCOUNT_CATEGORY_OPTIONS, BANK_ACCOUNT_CATEGORIES_INFO, getBankAccountCategoryInfo,
|
|
48
15
|
// Legacy exports
|
|
49
|
-
|
|
50
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_CHECKING", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_CHECKING; } });
|
|
51
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_TRANSACTION", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_TRANSACTION; } });
|
|
52
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_TERM_DEPOSIT", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_TERM_DEPOSIT; } });
|
|
53
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_OFFSET", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_OFFSET; } });
|
|
54
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_OPTIONS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_OPTIONS; } });
|
|
55
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_LABEL_SAVINGS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_LABEL_SAVINGS; } });
|
|
56
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_LABEL_CHECKING", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_LABEL_CHECKING; } });
|
|
57
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_LABEL_TRANSACTION", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_LABEL_TRANSACTION; } });
|
|
58
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_LABEL_TERM_DEPOSIT", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_LABEL_TERM_DEPOSIT; } });
|
|
59
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_LABEL_OFFSET", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_LABEL_OFFSET; } });
|
|
60
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_SAVINGS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_DESC_SAVINGS; } });
|
|
61
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_CHECKING", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_DESC_CHECKING; } });
|
|
62
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_TRANSACTION", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_DESC_TRANSACTION; } });
|
|
63
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_TERM_DEPOSIT", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_DESC_TERM_DEPOSIT; } });
|
|
64
|
-
Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_OFFSET", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_DESC_OFFSET; } });
|
|
65
|
-
Object.defineProperty(exports, "ACCOUNT_TYPES", { enumerable: true, get: function () { return bank_accounts_1.ACCOUNT_TYPES; } });
|
|
66
|
-
Object.defineProperty(exports, "getAccountTypeInfo", { enumerable: true, get: function () { return bank_accounts_1.getAccountTypeInfo; } });
|
|
16
|
+
BANK_ACCOUNT_TYPE_SAVINGS, BANK_ACCOUNT_TYPE_CHECKING, BANK_ACCOUNT_TYPE_TRANSACTION, BANK_ACCOUNT_TYPE_TERM_DEPOSIT, BANK_ACCOUNT_TYPE_OFFSET, BANK_ACCOUNT_TYPE_OPTIONS, BANK_ACCOUNT_TYPE_LABEL_SAVINGS, BANK_ACCOUNT_TYPE_LABEL_CHECKING, BANK_ACCOUNT_TYPE_LABEL_TRANSACTION, BANK_ACCOUNT_TYPE_LABEL_TERM_DEPOSIT, BANK_ACCOUNT_TYPE_LABEL_OFFSET, BANK_ACCOUNT_TYPE_DESC_SAVINGS, BANK_ACCOUNT_TYPE_DESC_CHECKING, BANK_ACCOUNT_TYPE_DESC_TRANSACTION, BANK_ACCOUNT_TYPE_DESC_TERM_DEPOSIT, BANK_ACCOUNT_TYPE_DESC_OFFSET, ACCOUNT_TYPES, getAccountTypeInfo, } from './bank-accounts';
|
|
67
17
|
// Don't export the conflicting type aliases and BANK_ACCOUNT_TYPE_LABELS from bank-accounts
|
|
68
18
|
// Export all cash account constants
|
|
69
|
-
|
|
70
|
-
Object.defineProperty(exports, "CASH_ACCOUNT_TRANSACTION_TYPE", { enumerable: true, get: function () { return cash_accounts_1.CASH_ACCOUNT_TRANSACTION_TYPE; } });
|
|
71
|
-
Object.defineProperty(exports, "CASH_ACCOUNT_TRANSACTION_TYPE_LABELS", { enumerable: true, get: function () { return cash_accounts_1.CASH_ACCOUNT_TRANSACTION_TYPE_LABELS; } });
|
|
72
|
-
Object.defineProperty(exports, "CASH_ACCOUNT_TRANSACTION_STATUS", { enumerable: true, get: function () { return cash_accounts_1.CASH_ACCOUNT_TRANSACTION_STATUS; } });
|
|
73
|
-
Object.defineProperty(exports, "CASH_ACCOUNT_TRANSACTION_STATUS_LABELS", { enumerable: true, get: function () { return cash_accounts_1.CASH_ACCOUNT_TRANSACTION_STATUS_LABELS; } });
|
|
74
|
-
Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_DEPOSIT", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_DEPOSIT; } });
|
|
75
|
-
Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_WITHDRAWAL", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_WITHDRAWAL; } });
|
|
76
|
-
Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT; } });
|
|
77
|
-
Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_DISTRIBUTION", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_DISTRIBUTION; } });
|
|
78
|
-
Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_FEE", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_FEE; } });
|
|
79
|
-
Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_INTEREST", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_INTEREST; } });
|
|
80
|
-
Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_OTHER", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_OTHER; } });
|
|
81
|
-
Object.defineProperty(exports, "TRANSACTION_TYPE_OPTIONS", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_OPTIONS; } });
|
|
19
|
+
export { CASH_ACCOUNT_TRANSACTION_TYPE, CASH_ACCOUNT_TRANSACTION_TYPE_LABELS, CASH_ACCOUNT_TRANSACTION_STATUS, CASH_ACCOUNT_TRANSACTION_STATUS_LABELS, TRANSACTION_TYPE_LABEL_DEPOSIT, TRANSACTION_TYPE_LABEL_WITHDRAWAL, TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT, TRANSACTION_TYPE_LABEL_DISTRIBUTION, TRANSACTION_TYPE_LABEL_FEE, TRANSACTION_TYPE_LABEL_INTEREST, TRANSACTION_TYPE_LABEL_OTHER, TRANSACTION_TYPE_OPTIONS, } from './status/cash-accounts';
|
|
82
20
|
// Export countries constants
|
|
83
|
-
|
|
21
|
+
export * from './countries';
|
|
84
22
|
// Export industries constants
|
|
85
|
-
|
|
23
|
+
export * from './industries';
|
|
24
|
+
// Export holdings constants
|
|
25
|
+
export * from './holdings';
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Industries domain constants
|
|
4
3
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NO_SECTOR_KEY = exports.INDUSTRY_GROUPING = void 0;
|
|
7
4
|
// Common industry grouping constants
|
|
8
|
-
|
|
5
|
+
export const INDUSTRY_GROUPING = {
|
|
9
6
|
NO_SECTOR_KEY: 'No Sector',
|
|
10
7
|
};
|
|
11
8
|
// Individual exports for easy migration from Blueberry
|
|
12
|
-
|
|
9
|
+
export const NO_SECTOR_KEY = INDUSTRY_GROUPING.NO_SECTOR_KEY;
|
|
@@ -1,96 +1,93 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Investment preference constants
|
|
4
3
|
* These constants match the values used in Blueberry frontend
|
|
5
4
|
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.INVESTMENT_OBJECTIVE_OPTIONS = exports.INVESTMENT_EXPERIENCE_OPTIONS = exports.INVESTMENT_HORIZON_OPTIONS = exports.RISK_TOLERANCE_OPTIONS = exports.INVESTMENT_OBJECTIVE_LABELS = exports.INVESTMENT_OBJECTIVE = exports.INVESTMENT_EXPERIENCE_LABEL_EXTENSIVE = exports.INVESTMENT_EXPERIENCE_LABEL_SOME = exports.INVESTMENT_EXPERIENCE_LABEL_NONE = exports.INVESTMENT_EXPERIENCE_EXTENSIVE = exports.INVESTMENT_EXPERIENCE_SOME = exports.INVESTMENT_EXPERIENCE_NONE = exports.INVESTMENT_EXPERIENCE_LABELS = exports.INVESTMENT_EXPERIENCE = exports.INVESTMENT_HORIZON_LABEL_LONG = exports.INVESTMENT_HORIZON_LABEL_MEDIUM = exports.INVESTMENT_HORIZON_LABEL_SHORT = exports.INVESTMENT_HORIZON_LONG = exports.INVESTMENT_HORIZON_MEDIUM = exports.INVESTMENT_HORIZON_SHORT = exports.INVESTMENT_HORIZON_LABELS = exports.INVESTMENT_HORIZON = exports.RISK_TOLERANCE_LABEL_HIGH = exports.RISK_TOLERANCE_LABEL_MEDIUM = exports.RISK_TOLERANCE_LABEL_LOW = exports.RISK_TOLERANCE_HIGH = exports.RISK_TOLERANCE_MEDIUM = exports.RISK_TOLERANCE_LOW = exports.RISK_TOLERANCE_LABELS = exports.RISK_TOLERANCE = void 0;
|
|
8
5
|
// Investment risk tolerance
|
|
9
|
-
|
|
6
|
+
export const RISK_TOLERANCE = {
|
|
10
7
|
LOW: 'low',
|
|
11
8
|
MEDIUM: 'medium',
|
|
12
9
|
HIGH: 'high',
|
|
13
10
|
};
|
|
14
|
-
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
11
|
+
export const RISK_TOLERANCE_LABELS = {
|
|
12
|
+
[RISK_TOLERANCE.LOW]: 'Low',
|
|
13
|
+
[RISK_TOLERANCE.MEDIUM]: 'Medium',
|
|
14
|
+
[RISK_TOLERANCE.HIGH]: 'High',
|
|
18
15
|
};
|
|
19
16
|
// Legacy risk tolerance constants (for backward compatibility if needed)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
export const RISK_TOLERANCE_LOW = RISK_TOLERANCE.LOW;
|
|
18
|
+
export const RISK_TOLERANCE_MEDIUM = RISK_TOLERANCE.MEDIUM;
|
|
19
|
+
export const RISK_TOLERANCE_HIGH = RISK_TOLERANCE.HIGH;
|
|
20
|
+
export const RISK_TOLERANCE_LABEL_LOW = RISK_TOLERANCE_LABELS[RISK_TOLERANCE.LOW];
|
|
21
|
+
export const RISK_TOLERANCE_LABEL_MEDIUM = RISK_TOLERANCE_LABELS[RISK_TOLERANCE.MEDIUM];
|
|
22
|
+
export const RISK_TOLERANCE_LABEL_HIGH = RISK_TOLERANCE_LABELS[RISK_TOLERANCE.HIGH];
|
|
26
23
|
// Investment horizon
|
|
27
|
-
|
|
24
|
+
export const INVESTMENT_HORIZON = {
|
|
28
25
|
SHORT: 'short',
|
|
29
26
|
MEDIUM: 'medium',
|
|
30
27
|
LONG: 'long',
|
|
31
28
|
};
|
|
32
|
-
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
29
|
+
export const INVESTMENT_HORIZON_LABELS = {
|
|
30
|
+
[INVESTMENT_HORIZON.SHORT]: 'Short-term (0–3 yrs)',
|
|
31
|
+
[INVESTMENT_HORIZON.MEDIUM]: 'Medium-term (3–7 yrs)',
|
|
32
|
+
[INVESTMENT_HORIZON.LONG]: 'Long-term (7+ yrs)',
|
|
36
33
|
};
|
|
37
34
|
// Legacy investment horizon constants (for backward compatibility if needed)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
export const INVESTMENT_HORIZON_SHORT = INVESTMENT_HORIZON.SHORT;
|
|
36
|
+
export const INVESTMENT_HORIZON_MEDIUM = INVESTMENT_HORIZON.MEDIUM;
|
|
37
|
+
export const INVESTMENT_HORIZON_LONG = INVESTMENT_HORIZON.LONG;
|
|
38
|
+
export const INVESTMENT_HORIZON_LABEL_SHORT = INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.SHORT];
|
|
39
|
+
export const INVESTMENT_HORIZON_LABEL_MEDIUM = INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.MEDIUM];
|
|
40
|
+
export const INVESTMENT_HORIZON_LABEL_LONG = INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.LONG];
|
|
44
41
|
// Investment experience
|
|
45
|
-
|
|
42
|
+
export const INVESTMENT_EXPERIENCE = {
|
|
46
43
|
NONE: 'none',
|
|
47
44
|
SOME: 'some',
|
|
48
45
|
EXTENSIVE: 'extensive',
|
|
49
46
|
};
|
|
50
|
-
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
47
|
+
export const INVESTMENT_EXPERIENCE_LABELS = {
|
|
48
|
+
[INVESTMENT_EXPERIENCE.NONE]: 'No experience',
|
|
49
|
+
[INVESTMENT_EXPERIENCE.SOME]: 'Some experience',
|
|
50
|
+
[INVESTMENT_EXPERIENCE.EXTENSIVE]: 'Extensive',
|
|
54
51
|
};
|
|
55
52
|
// Legacy investment experience constants (for backward compatibility if needed)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
export const INVESTMENT_EXPERIENCE_NONE = INVESTMENT_EXPERIENCE.NONE;
|
|
54
|
+
export const INVESTMENT_EXPERIENCE_SOME = INVESTMENT_EXPERIENCE.SOME;
|
|
55
|
+
export const INVESTMENT_EXPERIENCE_EXTENSIVE = INVESTMENT_EXPERIENCE.EXTENSIVE;
|
|
56
|
+
export const INVESTMENT_EXPERIENCE_LABEL_NONE = INVESTMENT_EXPERIENCE_LABELS[INVESTMENT_EXPERIENCE.NONE];
|
|
57
|
+
export const INVESTMENT_EXPERIENCE_LABEL_SOME = INVESTMENT_EXPERIENCE_LABELS[INVESTMENT_EXPERIENCE.SOME];
|
|
58
|
+
export const INVESTMENT_EXPERIENCE_LABEL_EXTENSIVE = INVESTMENT_EXPERIENCE_LABELS[INVESTMENT_EXPERIENCE.EXTENSIVE];
|
|
62
59
|
// Investment objectives (keeping these as they weren't in Blueberry's portfolios constants)
|
|
63
|
-
|
|
60
|
+
export const INVESTMENT_OBJECTIVE = {
|
|
64
61
|
CAPITAL_PRESERVATION: 'CAPITAL_PRESERVATION',
|
|
65
62
|
INCOME: 'INCOME',
|
|
66
63
|
BALANCED: 'BALANCED',
|
|
67
64
|
GROWTH: 'GROWTH',
|
|
68
65
|
AGGRESSIVE_GROWTH: 'AGGRESSIVE_GROWTH',
|
|
69
66
|
};
|
|
70
|
-
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
67
|
+
export const INVESTMENT_OBJECTIVE_LABELS = {
|
|
68
|
+
[INVESTMENT_OBJECTIVE.CAPITAL_PRESERVATION]: 'Capital Preservation',
|
|
69
|
+
[INVESTMENT_OBJECTIVE.INCOME]: 'Income Generation',
|
|
70
|
+
[INVESTMENT_OBJECTIVE.BALANCED]: 'Balanced',
|
|
71
|
+
[INVESTMENT_OBJECTIVE.GROWTH]: 'Growth',
|
|
72
|
+
[INVESTMENT_OBJECTIVE.AGGRESSIVE_GROWTH]: 'Aggressive Growth',
|
|
76
73
|
};
|
|
77
74
|
// Options for forms
|
|
78
|
-
|
|
79
|
-
{ value:
|
|
80
|
-
{ value:
|
|
81
|
-
{ value:
|
|
75
|
+
export const RISK_TOLERANCE_OPTIONS = [
|
|
76
|
+
{ value: RISK_TOLERANCE.LOW, label: RISK_TOLERANCE_LABELS[RISK_TOLERANCE.LOW] },
|
|
77
|
+
{ value: RISK_TOLERANCE.MEDIUM, label: RISK_TOLERANCE_LABELS[RISK_TOLERANCE.MEDIUM] },
|
|
78
|
+
{ value: RISK_TOLERANCE.HIGH, label: RISK_TOLERANCE_LABELS[RISK_TOLERANCE.HIGH] },
|
|
82
79
|
];
|
|
83
|
-
|
|
84
|
-
{ value:
|
|
85
|
-
{ value:
|
|
86
|
-
{ value:
|
|
80
|
+
export const INVESTMENT_HORIZON_OPTIONS = [
|
|
81
|
+
{ value: INVESTMENT_HORIZON.SHORT, label: INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.SHORT] },
|
|
82
|
+
{ value: INVESTMENT_HORIZON.MEDIUM, label: INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.MEDIUM] },
|
|
83
|
+
{ value: INVESTMENT_HORIZON.LONG, label: INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.LONG] },
|
|
87
84
|
];
|
|
88
|
-
|
|
89
|
-
{ value:
|
|
90
|
-
{ value:
|
|
91
|
-
{ value:
|
|
85
|
+
export const INVESTMENT_EXPERIENCE_OPTIONS = [
|
|
86
|
+
{ value: INVESTMENT_EXPERIENCE.NONE, label: INVESTMENT_EXPERIENCE_LABELS[INVESTMENT_EXPERIENCE.NONE] },
|
|
87
|
+
{ value: INVESTMENT_EXPERIENCE.SOME, label: INVESTMENT_EXPERIENCE_LABELS[INVESTMENT_EXPERIENCE.SOME] },
|
|
88
|
+
{ value: INVESTMENT_EXPERIENCE.EXTENSIVE, label: INVESTMENT_EXPERIENCE_LABELS[INVESTMENT_EXPERIENCE.EXTENSIVE] },
|
|
92
89
|
];
|
|
93
|
-
|
|
90
|
+
export const INVESTMENT_OBJECTIVE_OPTIONS = Object.entries(INVESTMENT_OBJECTIVE_LABELS).map(([value, label]) => ({
|
|
94
91
|
value,
|
|
95
92
|
label,
|
|
96
93
|
}));
|