@cranberry-money/shared-constants 8.15.267 → 8.15.269
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/business/accounts.d.ts +20 -7
- package/dist/business/accounts.d.ts.map +1 -1
- package/dist/business/accounts.js +27 -9
- package/dist/business/accounts.js.map +1 -1
- package/dist/business/investments.d.ts +27 -62
- package/dist/business/investments.d.ts.map +1 -1
- package/dist/business/investments.js +27 -57
- package/dist/business/investments.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Account and Source of Funds Constants
|
|
3
|
+
*
|
|
4
|
+
* AML/CTF Compliance: Source of funds options align with ARCA AML/CTF Program
|
|
5
|
+
* requirements (Part B, Section 16.1, Step 4).
|
|
6
|
+
* Reference: ARCA AML/CTF documentation
|
|
7
|
+
*/
|
|
1
8
|
export declare const ACCOUNT_TYPE: {
|
|
2
9
|
readonly TRANSACTION: "TRANSACTION";
|
|
3
10
|
readonly SAVINGS: "SAVINGS";
|
|
@@ -5,29 +12,35 @@ export declare const ACCOUNT_TYPE: {
|
|
|
5
12
|
};
|
|
6
13
|
export type AccountType = (typeof ACCOUNT_TYPE)[keyof typeof ACCOUNT_TYPE];
|
|
7
14
|
export declare const ACCOUNT_TYPE_LABELS: Record<AccountType, string>;
|
|
8
|
-
export declare const
|
|
15
|
+
export declare const ACCOUNT_TYPE_OPTIONS: {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}[];
|
|
19
|
+
export declare const SOURCE_OF_FUNDS_EMPLOYMENT_INCOME = "employment_income";
|
|
9
20
|
export declare const SOURCE_OF_FUNDS_SAVINGS = "savings";
|
|
21
|
+
export declare const SOURCE_OF_FUNDS_INVESTMENT_INCOME = "investment_income";
|
|
22
|
+
export declare const SOURCE_OF_FUNDS_SALE_OF_ASSETS = "sale_of_assets";
|
|
10
23
|
export declare const SOURCE_OF_FUNDS_INHERITANCE = "inheritance";
|
|
11
24
|
export declare const SOURCE_OF_FUNDS_GIFT = "gift";
|
|
12
25
|
export declare const SOURCE_OF_FUNDS_OTHER = "other";
|
|
13
26
|
export declare const SOURCE_OF_FUNDS: {
|
|
14
|
-
readonly
|
|
27
|
+
readonly EMPLOYMENT_INCOME: "employment_income";
|
|
15
28
|
readonly SAVINGS: "savings";
|
|
29
|
+
readonly INVESTMENT_INCOME: "investment_income";
|
|
30
|
+
readonly SALE_OF_ASSETS: "sale_of_assets";
|
|
16
31
|
readonly INHERITANCE: "inheritance";
|
|
17
32
|
readonly GIFT: "gift";
|
|
18
33
|
readonly OTHER: "other";
|
|
19
34
|
};
|
|
20
35
|
export type SourceOfFunds = (typeof SOURCE_OF_FUNDS)[keyof typeof SOURCE_OF_FUNDS];
|
|
21
|
-
export declare const
|
|
36
|
+
export declare const SOURCE_OF_FUNDS_LABEL_EMPLOYMENT_INCOME = "Employment income";
|
|
22
37
|
export declare const SOURCE_OF_FUNDS_LABEL_SAVINGS = "Savings";
|
|
38
|
+
export declare const SOURCE_OF_FUNDS_LABEL_INVESTMENT_INCOME = "Investment income";
|
|
39
|
+
export declare const SOURCE_OF_FUNDS_LABEL_SALE_OF_ASSETS = "Sale of assets";
|
|
23
40
|
export declare const SOURCE_OF_FUNDS_LABEL_INHERITANCE = "Inheritance";
|
|
24
41
|
export declare const SOURCE_OF_FUNDS_LABEL_GIFT = "Gift";
|
|
25
42
|
export declare const SOURCE_OF_FUNDS_LABEL_OTHER = "Other";
|
|
26
43
|
export declare const SOURCE_OF_FUNDS_LABELS: Record<SourceOfFunds, string>;
|
|
27
|
-
export declare const ACCOUNT_TYPE_OPTIONS: {
|
|
28
|
-
value: string;
|
|
29
|
-
label: string;
|
|
30
|
-
}[];
|
|
31
44
|
export declare const SOURCE_OF_FUNDS_OPTIONS: {
|
|
32
45
|
value: string;
|
|
33
46
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/business/accounts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE3E,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIlD,CAAC;AAEX,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/business/accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE3E,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIlD,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;GAG9B,CAAC;AAGJ,eAAO,MAAM,iCAAiC,sBAAsB,CAAC;AACrE,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,iCAAiC,sBAAsB,CAAC;AACrE,eAAO,MAAM,8BAA8B,mBAAmB,CAAC;AAC/D,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AACzD,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAC3C,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C,eAAO,MAAM,eAAe;;;;;;;;CAQlB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEnF,eAAO,MAAM,uCAAuC,sBAAsB,CAAC;AAC3E,eAAO,MAAM,6BAA6B,YAAY,CAAC;AACvD,eAAO,MAAM,uCAAuC,sBAAsB,CAAC;AAC3E,eAAO,MAAM,oCAAoC,mBAAmB,CAAC;AACrE,eAAO,MAAM,iCAAiC,gBAAgB,CAAC;AAC/D,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,2BAA2B,UAAU,CAAC;AAEnD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAQvD,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;GAQnC,CAAC"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Account and Source of Funds Constants
|
|
3
|
+
*
|
|
4
|
+
* AML/CTF Compliance: Source of funds options align with ARCA AML/CTF Program
|
|
5
|
+
* requirements (Part B, Section 16.1, Step 4).
|
|
6
|
+
* Reference: ARCA AML/CTF documentation
|
|
7
|
+
*/
|
|
1
8
|
export const ACCOUNT_TYPE = {
|
|
2
9
|
TRANSACTION: 'TRANSACTION',
|
|
3
10
|
SAVINGS: 'SAVINGS',
|
|
@@ -8,37 +15,48 @@ export const ACCOUNT_TYPE_LABELS = {
|
|
|
8
15
|
[ACCOUNT_TYPE.SAVINGS]: 'Savings Account',
|
|
9
16
|
[ACCOUNT_TYPE.OTHER]: 'Other',
|
|
10
17
|
};
|
|
11
|
-
export const
|
|
18
|
+
export const ACCOUNT_TYPE_OPTIONS = Object.entries(ACCOUNT_TYPE_LABELS).map(([value, label]) => ({
|
|
19
|
+
value,
|
|
20
|
+
label,
|
|
21
|
+
}));
|
|
22
|
+
// AML/CTF: Source of Funds (ARCA AML Section 16.1, Step 4)
|
|
23
|
+
export const SOURCE_OF_FUNDS_EMPLOYMENT_INCOME = 'employment_income';
|
|
12
24
|
export const SOURCE_OF_FUNDS_SAVINGS = 'savings';
|
|
25
|
+
export const SOURCE_OF_FUNDS_INVESTMENT_INCOME = 'investment_income';
|
|
26
|
+
export const SOURCE_OF_FUNDS_SALE_OF_ASSETS = 'sale_of_assets';
|
|
13
27
|
export const SOURCE_OF_FUNDS_INHERITANCE = 'inheritance';
|
|
14
28
|
export const SOURCE_OF_FUNDS_GIFT = 'gift';
|
|
15
29
|
export const SOURCE_OF_FUNDS_OTHER = 'other';
|
|
16
30
|
export const SOURCE_OF_FUNDS = {
|
|
17
|
-
|
|
31
|
+
EMPLOYMENT_INCOME: SOURCE_OF_FUNDS_EMPLOYMENT_INCOME,
|
|
18
32
|
SAVINGS: SOURCE_OF_FUNDS_SAVINGS,
|
|
33
|
+
INVESTMENT_INCOME: SOURCE_OF_FUNDS_INVESTMENT_INCOME,
|
|
34
|
+
SALE_OF_ASSETS: SOURCE_OF_FUNDS_SALE_OF_ASSETS,
|
|
19
35
|
INHERITANCE: SOURCE_OF_FUNDS_INHERITANCE,
|
|
20
36
|
GIFT: SOURCE_OF_FUNDS_GIFT,
|
|
21
37
|
OTHER: SOURCE_OF_FUNDS_OTHER,
|
|
22
38
|
};
|
|
23
|
-
export const
|
|
39
|
+
export const SOURCE_OF_FUNDS_LABEL_EMPLOYMENT_INCOME = 'Employment income';
|
|
24
40
|
export const SOURCE_OF_FUNDS_LABEL_SAVINGS = 'Savings';
|
|
41
|
+
export const SOURCE_OF_FUNDS_LABEL_INVESTMENT_INCOME = 'Investment income';
|
|
42
|
+
export const SOURCE_OF_FUNDS_LABEL_SALE_OF_ASSETS = 'Sale of assets';
|
|
25
43
|
export const SOURCE_OF_FUNDS_LABEL_INHERITANCE = 'Inheritance';
|
|
26
44
|
export const SOURCE_OF_FUNDS_LABEL_GIFT = 'Gift';
|
|
27
45
|
export const SOURCE_OF_FUNDS_LABEL_OTHER = 'Other';
|
|
28
46
|
export const SOURCE_OF_FUNDS_LABELS = {
|
|
29
|
-
[SOURCE_OF_FUNDS.
|
|
47
|
+
[SOURCE_OF_FUNDS.EMPLOYMENT_INCOME]: SOURCE_OF_FUNDS_LABEL_EMPLOYMENT_INCOME,
|
|
30
48
|
[SOURCE_OF_FUNDS.SAVINGS]: SOURCE_OF_FUNDS_LABEL_SAVINGS,
|
|
49
|
+
[SOURCE_OF_FUNDS.INVESTMENT_INCOME]: SOURCE_OF_FUNDS_LABEL_INVESTMENT_INCOME,
|
|
50
|
+
[SOURCE_OF_FUNDS.SALE_OF_ASSETS]: SOURCE_OF_FUNDS_LABEL_SALE_OF_ASSETS,
|
|
31
51
|
[SOURCE_OF_FUNDS.INHERITANCE]: SOURCE_OF_FUNDS_LABEL_INHERITANCE,
|
|
32
52
|
[SOURCE_OF_FUNDS.GIFT]: SOURCE_OF_FUNDS_LABEL_GIFT,
|
|
33
53
|
[SOURCE_OF_FUNDS.OTHER]: SOURCE_OF_FUNDS_LABEL_OTHER,
|
|
34
54
|
};
|
|
35
|
-
export const ACCOUNT_TYPE_OPTIONS = Object.entries(ACCOUNT_TYPE_LABELS).map(([value, label]) => ({
|
|
36
|
-
value,
|
|
37
|
-
label,
|
|
38
|
-
}));
|
|
39
55
|
export const SOURCE_OF_FUNDS_OPTIONS = [
|
|
40
|
-
{ value:
|
|
56
|
+
{ value: SOURCE_OF_FUNDS_EMPLOYMENT_INCOME, label: SOURCE_OF_FUNDS_LABEL_EMPLOYMENT_INCOME },
|
|
41
57
|
{ value: SOURCE_OF_FUNDS_SAVINGS, label: SOURCE_OF_FUNDS_LABEL_SAVINGS },
|
|
58
|
+
{ value: SOURCE_OF_FUNDS_INVESTMENT_INCOME, label: SOURCE_OF_FUNDS_LABEL_INVESTMENT_INCOME },
|
|
59
|
+
{ value: SOURCE_OF_FUNDS_SALE_OF_ASSETS, label: SOURCE_OF_FUNDS_LABEL_SALE_OF_ASSETS },
|
|
42
60
|
{ value: SOURCE_OF_FUNDS_INHERITANCE, label: SOURCE_OF_FUNDS_LABEL_INHERITANCE },
|
|
43
61
|
{ value: SOURCE_OF_FUNDS_GIFT, label: SOURCE_OF_FUNDS_LABEL_GIFT },
|
|
44
62
|
{ value: SOURCE_OF_FUNDS_OTHER, label: SOURCE_OF_FUNDS_LABEL_OTHER },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/business/accounts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC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F,EAAE,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,6BAA6B,EAAE;IACxE,EAAE,KAAK,EAAE,iCAAiC,EAAE,KAAK,EAAE,uCAAuC,EAAE;IAC5F,EAAE,KAAK,EAAE,8BAA8B,EAAE,KAAK,EAAE,oCAAoC,EAAE;IACtF,EAAE,KAAK,EAAE,2BAA2B,EAAE,KAAK,EAAE,iCAAiC,EAAE;IAChF,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,0BAA0B,EAAE;IAClE,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,2BAA2B,EAAE;CACrE,CAAC"}
|
|
@@ -1,36 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Investment Preferences Constants
|
|
3
|
+
*
|
|
4
|
+
* AML/CTF Compliance: Intended use options align with ARCA AML/CTF Program
|
|
5
|
+
* requirements (Part B, Section 16.1, Step 4).
|
|
6
|
+
* Reference: ARCA AML/CTF documentation
|
|
7
|
+
*/
|
|
8
|
+
export declare const INTENDED_USE: {
|
|
9
|
+
readonly LONG_TERM: "long_term_investment";
|
|
10
|
+
readonly TRADING: "trading_crypto";
|
|
11
|
+
readonly SAVINGS: "savings";
|
|
12
|
+
readonly OTHER: "other";
|
|
5
13
|
};
|
|
6
|
-
export type
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const INVESTMENT_HORIZON_SHORT: "short";
|
|
22
|
-
export declare const INVESTMENT_HORIZON_MEDIUM: "medium";
|
|
23
|
-
export declare const INVESTMENT_HORIZON_LONG: "long";
|
|
24
|
-
export declare const INVESTMENT_HORIZON_LABEL_SHORT: string;
|
|
25
|
-
export declare const INVESTMENT_HORIZON_LABEL_MEDIUM: string;
|
|
26
|
-
export declare const INVESTMENT_HORIZON_LABEL_LONG: string;
|
|
27
|
-
export declare const INVESTMENT_EXPERIENCE: {
|
|
28
|
-
readonly NONE: "none";
|
|
29
|
-
readonly SOME: "some";
|
|
30
|
-
readonly EXTENSIVE: "extensive";
|
|
31
|
-
};
|
|
32
|
-
export type InvestmentExperience = (typeof INVESTMENT_EXPERIENCE)[keyof typeof INVESTMENT_EXPERIENCE];
|
|
33
|
-
export declare const INVESTMENT_EXPERIENCE_LABELS: Record<InvestmentExperience, string>;
|
|
14
|
+
export type IntendedUse = (typeof INTENDED_USE)[keyof typeof INTENDED_USE];
|
|
15
|
+
export declare const INTENDED_USE_LABELS: Record<IntendedUse, string>;
|
|
16
|
+
export declare const INTENDED_USE_OPTIONS: ({
|
|
17
|
+
value: "long_term_investment";
|
|
18
|
+
label: string;
|
|
19
|
+
} | {
|
|
20
|
+
value: "trading_crypto";
|
|
21
|
+
label: string;
|
|
22
|
+
} | {
|
|
23
|
+
value: "savings";
|
|
24
|
+
label: string;
|
|
25
|
+
} | {
|
|
26
|
+
value: "other";
|
|
27
|
+
label: string;
|
|
28
|
+
})[];
|
|
34
29
|
export declare const INVESTMENT_OBJECTIVE: {
|
|
35
30
|
readonly CAPITAL_PRESERVATION: "CAPITAL_PRESERVATION";
|
|
36
31
|
readonly INCOME: "INCOME";
|
|
@@ -40,36 +35,6 @@ export declare const INVESTMENT_OBJECTIVE: {
|
|
|
40
35
|
};
|
|
41
36
|
export type InvestmentObjective = (typeof INVESTMENT_OBJECTIVE)[keyof typeof INVESTMENT_OBJECTIVE];
|
|
42
37
|
export declare const INVESTMENT_OBJECTIVE_LABELS: Record<InvestmentObjective, string>;
|
|
43
|
-
export declare const RISK_TOLERANCE_OPTIONS: ({
|
|
44
|
-
value: "low";
|
|
45
|
-
label: string;
|
|
46
|
-
} | {
|
|
47
|
-
value: "medium";
|
|
48
|
-
label: string;
|
|
49
|
-
} | {
|
|
50
|
-
value: "high";
|
|
51
|
-
label: string;
|
|
52
|
-
})[];
|
|
53
|
-
export declare const INVESTMENT_HORIZON_OPTIONS: ({
|
|
54
|
-
value: "short";
|
|
55
|
-
label: string;
|
|
56
|
-
} | {
|
|
57
|
-
value: "medium";
|
|
58
|
-
label: string;
|
|
59
|
-
} | {
|
|
60
|
-
value: "long";
|
|
61
|
-
label: string;
|
|
62
|
-
})[];
|
|
63
|
-
export declare const INVESTMENT_EXPERIENCE_OPTIONS: ({
|
|
64
|
-
value: "none";
|
|
65
|
-
label: string;
|
|
66
|
-
} | {
|
|
67
|
-
value: "some";
|
|
68
|
-
label: string;
|
|
69
|
-
} | {
|
|
70
|
-
value: "extensive";
|
|
71
|
-
label: string;
|
|
72
|
-
})[];
|
|
73
38
|
export declare const INVESTMENT_OBJECTIVE_OPTIONS: {
|
|
74
39
|
value: string;
|
|
75
40
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"investments.d.ts","sourceRoot":"","sources":["../../src/business/investments.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"investments.d.ts","sourceRoot":"","sources":["../../src/business/investments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE3E,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAKlD,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;IAKhC,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnG,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAMlE,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;GAGtC,CAAC"}
|
|
@@ -1,45 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export const INVESTMENT_HORIZON_MEDIUM = INVESTMENT_HORIZON.MEDIUM;
|
|
29
|
-
export const INVESTMENT_HORIZON_LONG = INVESTMENT_HORIZON.LONG;
|
|
30
|
-
export const INVESTMENT_HORIZON_LABEL_SHORT = INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.SHORT];
|
|
31
|
-
export const INVESTMENT_HORIZON_LABEL_MEDIUM = INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.MEDIUM];
|
|
32
|
-
export const INVESTMENT_HORIZON_LABEL_LONG = INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.LONG];
|
|
33
|
-
export const INVESTMENT_EXPERIENCE = {
|
|
34
|
-
NONE: 'none',
|
|
35
|
-
SOME: 'some',
|
|
36
|
-
EXTENSIVE: 'extensive',
|
|
37
|
-
};
|
|
38
|
-
export const INVESTMENT_EXPERIENCE_LABELS = {
|
|
39
|
-
[INVESTMENT_EXPERIENCE.NONE]: 'No experience',
|
|
40
|
-
[INVESTMENT_EXPERIENCE.SOME]: 'Some experience',
|
|
41
|
-
[INVESTMENT_EXPERIENCE.EXTENSIVE]: 'Extensive',
|
|
42
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Investment Preferences Constants
|
|
3
|
+
*
|
|
4
|
+
* AML/CTF Compliance: Intended use options align with ARCA AML/CTF Program
|
|
5
|
+
* requirements (Part B, Section 16.1, Step 4).
|
|
6
|
+
* Reference: ARCA AML/CTF documentation
|
|
7
|
+
*/
|
|
8
|
+
// AML/CTF: Intended Use (ARCA AML Section 16.1, Step 4)
|
|
9
|
+
export const INTENDED_USE = {
|
|
10
|
+
LONG_TERM: 'long_term_investment',
|
|
11
|
+
TRADING: 'trading_crypto',
|
|
12
|
+
SAVINGS: 'savings',
|
|
13
|
+
OTHER: 'other',
|
|
14
|
+
};
|
|
15
|
+
export const INTENDED_USE_LABELS = {
|
|
16
|
+
[INTENDED_USE.LONG_TERM]: 'Long-term investment',
|
|
17
|
+
[INTENDED_USE.TRADING]: 'Trading crypto currencies',
|
|
18
|
+
[INTENDED_USE.SAVINGS]: 'Savings',
|
|
19
|
+
[INTENDED_USE.OTHER]: 'Other',
|
|
20
|
+
};
|
|
21
|
+
export const INTENDED_USE_OPTIONS = [
|
|
22
|
+
{ value: INTENDED_USE.LONG_TERM, label: INTENDED_USE_LABELS[INTENDED_USE.LONG_TERM] },
|
|
23
|
+
{ value: INTENDED_USE.TRADING, label: INTENDED_USE_LABELS[INTENDED_USE.TRADING] },
|
|
24
|
+
{ value: INTENDED_USE.SAVINGS, label: INTENDED_USE_LABELS[INTENDED_USE.SAVINGS] },
|
|
25
|
+
{ value: INTENDED_USE.OTHER, label: INTENDED_USE_LABELS[INTENDED_USE.OTHER] },
|
|
26
|
+
];
|
|
27
|
+
// Investment Objective (used elsewhere in the app - keep for now)
|
|
43
28
|
export const INVESTMENT_OBJECTIVE = {
|
|
44
29
|
CAPITAL_PRESERVATION: 'CAPITAL_PRESERVATION',
|
|
45
30
|
INCOME: 'INCOME',
|
|
@@ -54,21 +39,6 @@ export const INVESTMENT_OBJECTIVE_LABELS = {
|
|
|
54
39
|
[INVESTMENT_OBJECTIVE.GROWTH]: 'Growth',
|
|
55
40
|
[INVESTMENT_OBJECTIVE.AGGRESSIVE_GROWTH]: 'Aggressive Growth',
|
|
56
41
|
};
|
|
57
|
-
export const RISK_TOLERANCE_OPTIONS = [
|
|
58
|
-
{ value: RISK_TOLERANCE.LOW, label: RISK_TOLERANCE_LABELS[RISK_TOLERANCE.LOW] },
|
|
59
|
-
{ value: RISK_TOLERANCE.MEDIUM, label: RISK_TOLERANCE_LABELS[RISK_TOLERANCE.MEDIUM] },
|
|
60
|
-
{ value: RISK_TOLERANCE.HIGH, label: RISK_TOLERANCE_LABELS[RISK_TOLERANCE.HIGH] },
|
|
61
|
-
];
|
|
62
|
-
export const INVESTMENT_HORIZON_OPTIONS = [
|
|
63
|
-
{ value: INVESTMENT_HORIZON.SHORT, label: INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.SHORT] },
|
|
64
|
-
{ value: INVESTMENT_HORIZON.MEDIUM, label: INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.MEDIUM] },
|
|
65
|
-
{ value: INVESTMENT_HORIZON.LONG, label: INVESTMENT_HORIZON_LABELS[INVESTMENT_HORIZON.LONG] },
|
|
66
|
-
];
|
|
67
|
-
export const INVESTMENT_EXPERIENCE_OPTIONS = [
|
|
68
|
-
{ value: INVESTMENT_EXPERIENCE.NONE, label: INVESTMENT_EXPERIENCE_LABELS[INVESTMENT_EXPERIENCE.NONE] },
|
|
69
|
-
{ value: INVESTMENT_EXPERIENCE.SOME, label: INVESTMENT_EXPERIENCE_LABELS[INVESTMENT_EXPERIENCE.SOME] },
|
|
70
|
-
{ value: INVESTMENT_EXPERIENCE.EXTENSIVE, label: INVESTMENT_EXPERIENCE_LABELS[INVESTMENT_EXPERIENCE.EXTENSIVE] },
|
|
71
|
-
];
|
|
72
42
|
export const INVESTMENT_OBJECTIVE_OPTIONS = Object.entries(INVESTMENT_OBJECTIVE_LABELS).map(([value, label]) => ({
|
|
73
43
|
value,
|
|
74
44
|
label,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"investments.js","sourceRoot":"","sources":["../../src/business/investments.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"investments.js","sourceRoot":"","sources":["../../src/business/investments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wDAAwD;AACxD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,SAAS,EAAE,sBAAsB;IACjC,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AAIX,MAAM,CAAC,MAAM,mBAAmB,GAAgC;IAC9D,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,sBAAsB;IAChD,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,2BAA2B;IACnD,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,SAAS;IACjC,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,OAAO;CACrB,CAAC;AAEX,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,EAAE,KAAK,EAAE,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,mBAAmB,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE;IACrF,EAAE,KAAK,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,EAAE,mBAAmB,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;IACjF,EAAE,KAAK,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,EAAE,mBAAmB,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;IACjF,EAAE,KAAK,EAAE,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,mBAAmB,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;CAC9E,CAAC;AAEF,kEAAkE;AAClE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,oBAAoB,EAAE,sBAAsB;IAC5C,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,iBAAiB,EAAE,mBAAmB;CAC9B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