@cranberry-money/shared-constants 8.8.0 → 8.9.0
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/package.json +1 -1
- package/dist/api/auth.d.ts +0 -21
- package/dist/api/auth.d.ts.map +0 -1
- package/dist/api/auth.js +0 -23
- package/dist/api/config.d.ts +0 -36
- package/dist/api/config.d.ts.map +0 -1
- package/dist/api/config.js +0 -44
- package/dist/api/endpoints.d.ts +0 -157
- package/dist/api/endpoints.d.ts.map +0 -1
- package/dist/api/endpoints.js +0 -184
- package/dist/api/http.d.ts +0 -57
- package/dist/api/http.d.ts.map +0 -1
- package/dist/api/http.js +0 -62
- package/dist/api/index.d.ts +0 -9
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -8
- package/dist/api/services.d.ts +0 -9
- package/dist/api/services.d.ts.map +0 -1
- package/dist/api/services.js +0 -8
- package/dist/business/accounts.d.ts +0 -38
- package/dist/business/accounts.d.ts.map +0 -1
- package/dist/business/accounts.js +0 -53
- package/dist/business/bank-accounts.d.ts +0 -71
- package/dist/business/bank-accounts.d.ts.map +0 -1
- package/dist/business/bank-accounts.js +0 -69
- package/dist/business/banking.d.ts +0 -44
- package/dist/business/banking.d.ts.map +0 -1
- package/dist/business/banking.js +0 -69
- package/dist/business/cache.d.ts +0 -9
- package/dist/business/cache.d.ts.map +0 -1
- package/dist/business/cache.js +0 -8
- package/dist/business/countries.d.ts +0 -11
- package/dist/business/countries.d.ts.map +0 -1
- package/dist/business/countries.js +0 -11
- package/dist/business/documents.d.ts +0 -48
- package/dist/business/documents.d.ts.map +0 -1
- package/dist/business/documents.js +0 -75
- package/dist/business/holdings.d.ts +0 -34
- package/dist/business/holdings.d.ts.map +0 -1
- package/dist/business/holdings.js +0 -34
- package/dist/business/index.d.ts +0 -16
- package/dist/business/index.d.ts.map +0 -1
- package/dist/business/index.js +0 -27
- package/dist/business/industries.d.ts +0 -9
- package/dist/business/industries.d.ts.map +0 -1
- package/dist/business/industries.js +0 -9
- package/dist/business/investments.d.ts +0 -87
- package/dist/business/investments.d.ts.map +0 -1
- package/dist/business/investments.js +0 -93
- package/dist/business/status/banks.d.ts +0 -29
- package/dist/business/status/banks.d.ts.map +0 -1
- package/dist/business/status/banks.js +0 -35
- package/dist/business/status/cash-accounts.d.ts +0 -56
- package/dist/business/status/cash-accounts.d.ts.map +0 -1
- package/dist/business/status/cash-accounts.js +0 -62
- package/dist/business/status/documents.d.ts +0 -25
- package/dist/business/status/documents.d.ts.map +0 -1
- package/dist/business/status/documents.js +0 -34
- package/dist/business/status/index.d.ts +0 -11
- package/dist/business/status/index.d.ts.map +0 -1
- package/dist/business/status/index.js +0 -10
- package/dist/business/status/instruments.d.ts +0 -42
- package/dist/business/status/instruments.d.ts.map +0 -1
- package/dist/business/status/instruments.js +0 -55
- package/dist/business/status/portfolios.d.ts +0 -18
- package/dist/business/status/portfolios.d.ts.map +0 -1
- package/dist/business/status/portfolios.js +0 -21
- package/dist/business/status/trades.d.ts +0 -89
- package/dist/business/status/trades.d.ts.map +0 -1
- package/dist/business/status/trades.js +0 -130
- package/dist/business/status/withdrawals.d.ts +0 -104
- package/dist/business/status/withdrawals.d.ts.map +0 -1
- package/dist/business/status/withdrawals.js +0 -153
- package/dist/business/trading.d.ts +0 -52
- package/dist/business/trading.d.ts.map +0 -1
- package/dist/business/trading.js +0 -68
- package/dist/common/index.d.ts +0 -2
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js +0 -1
- package/dist/common/statuses.d.ts +0 -18
- package/dist/common/statuses.d.ts.map +0 -1
- package/dist/common/statuses.js +0 -17
- package/dist/config/defaults.d.ts +0 -68
- package/dist/config/defaults.d.ts.map +0 -1
- package/dist/config/defaults.js +0 -66
- package/dist/config/index.d.ts +0 -8
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -7
- package/dist/config/pagination.d.ts +0 -28
- package/dist/config/pagination.d.ts.map +0 -1
- package/dist/config/pagination.js +0 -40
- package/dist/config/thresholds.d.ts +0 -65
- package/dist/config/thresholds.d.ts.map +0 -1
- package/dist/config/thresholds.js +0 -82
- package/dist/financial/currency.d.ts +0 -38
- package/dist/financial/currency.d.ts.map +0 -1
- package/dist/financial/currency.js +0 -75
- package/dist/financial/formatting.d.ts +0 -52
- package/dist/financial/formatting.d.ts.map +0 -1
- package/dist/financial/formatting.js +0 -49
- package/dist/financial/index.d.ts +0 -7
- package/dist/financial/index.d.ts.map +0 -1
- package/dist/financial/index.js +0 -6
- package/dist/financial/instruments.d.ts +0 -51
- package/dist/financial/instruments.d.ts.map +0 -1
- package/dist/financial/instruments.js +0 -68
- package/dist/index.d.ts +0 -15
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -22
- package/dist/ui/cache.d.ts +0 -47
- package/dist/ui/cache.d.ts.map +0 -1
- package/dist/ui/cache.js +0 -45
- package/dist/ui/chart-config.d.ts +0 -35
- package/dist/ui/chart-config.d.ts.map +0 -1
- package/dist/ui/chart-config.js +0 -33
- package/dist/ui/colors.d.ts +0 -53
- package/dist/ui/colors.d.ts.map +0 -1
- package/dist/ui/colors.js +0 -94
- package/dist/ui/display.d.ts +0 -69
- package/dist/ui/display.d.ts.map +0 -1
- package/dist/ui/display.js +0 -80
- package/dist/ui/index.d.ts +0 -13
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/index.js +0 -12
- package/dist/ui/labels/index.d.ts +0 -20
- package/dist/ui/labels/index.d.ts.map +0 -1
- package/dist/ui/labels/index.js +0 -23
- package/dist/ui/navigation.d.ts +0 -45
- package/dist/ui/navigation.d.ts.map +0 -1
- package/dist/ui/navigation.js +0 -47
- package/dist/ui/status-colors-unified.d.ts +0 -91
- package/dist/ui/status-colors-unified.d.ts.map +0 -1
- package/dist/ui/status-colors-unified.js +0 -106
- package/dist/ui/timing.d.ts +0 -26
- package/dist/ui/timing.d.ts.map +0 -1
- package/dist/ui/timing.js +0 -24
- package/dist/ui/zIndex.d.ts +0 -80
- package/dist/ui/zIndex.d.ts.map +0 -1
- package/dist/ui/zIndex.js +0 -77
- package/dist/utilities/common.d.ts +0 -29
- package/dist/utilities/common.d.ts.map +0 -1
- package/dist/utilities/common.js +0 -28
- package/dist/utilities/defaults.d.ts +0 -52
- package/dist/utilities/defaults.d.ts.map +0 -1
- package/dist/utilities/defaults.js +0 -68
- package/dist/utilities/index.d.ts +0 -9
- package/dist/utilities/index.d.ts.map +0 -1
- package/dist/utilities/index.js +0 -8
- package/dist/utilities/sorting.d.ts +0 -45
- package/dist/utilities/sorting.d.ts.map +0 -1
- package/dist/utilities/sorting.js +0 -51
- package/dist/utilities/time.d.ts +0 -53
- package/dist/utilities/time.d.ts.map +0 -1
- package/dist/utilities/time.js +0 -65
- package/dist/utilities/validation.d.ts +0 -57
- package/dist/utilities/validation.d.ts.map +0 -1
- package/dist/utilities/validation.js +0 -65
- package/dist/validation/index.d.ts +0 -27
- package/dist/validation/index.d.ts.map +0 -1
- package/dist/validation/index.js +0 -26
|
@@ -1 +0,0 @@
|
|
|
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;AAG3B,cAAc,SAAS,CAAC"}
|
package/dist/business/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Business domain constants
|
|
3
|
-
*/
|
|
4
|
-
export * from './status';
|
|
5
|
-
export * from './accounts';
|
|
6
|
-
export * from './documents';
|
|
7
|
-
export * from './investments';
|
|
8
|
-
// Export banking constants except the conflicting ones
|
|
9
|
-
export { BANKING_INSTITUTION, BANKING_INSTITUTION_LABELS, VERIFICATION_METHOD, VERIFICATION_METHOD_LABELS, BSB_VALIDATION, ACCOUNT_NUMBER_VALIDATION, } from './banking';
|
|
10
|
-
export * from './trading';
|
|
11
|
-
// Export bank-accounts with alias to avoid conflicts
|
|
12
|
-
export {
|
|
13
|
-
// Re-export with specific names to avoid conflicts
|
|
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,
|
|
15
|
-
// Legacy exports
|
|
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';
|
|
17
|
-
// Don't export the conflicting type aliases and BANK_ACCOUNT_TYPE_LABELS from bank-accounts
|
|
18
|
-
// Export all cash account constants
|
|
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';
|
|
20
|
-
// Export countries constants
|
|
21
|
-
export * from './countries';
|
|
22
|
-
// Export industries constants
|
|
23
|
-
export * from './industries';
|
|
24
|
-
// Export holdings constants
|
|
25
|
-
export * from './holdings';
|
|
26
|
-
// Export cache constants
|
|
27
|
-
export * from './cache';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Industries domain constants
|
|
3
|
-
*/
|
|
4
|
-
export declare const INDUSTRY_GROUPING: {
|
|
5
|
-
readonly NO_SECTOR_KEY: "No Sector";
|
|
6
|
-
};
|
|
7
|
-
export type IndustryGrouping = (typeof INDUSTRY_GROUPING)[keyof typeof INDUSTRY_GROUPING];
|
|
8
|
-
export declare const NO_SECTOR_KEY: "No Sector";
|
|
9
|
-
//# sourceMappingURL=industries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"industries.d.ts","sourceRoot":"","sources":["../../src/business/industries.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,iBAAiB;;CAEpB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAG1F,eAAO,MAAM,aAAa,aAAkC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Industries domain constants
|
|
3
|
-
*/
|
|
4
|
-
// Common industry grouping constants
|
|
5
|
-
export const INDUSTRY_GROUPING = {
|
|
6
|
-
NO_SECTOR_KEY: 'No Sector',
|
|
7
|
-
};
|
|
8
|
-
// Individual exports for easy migration from Blueberry
|
|
9
|
-
export const NO_SECTOR_KEY = INDUSTRY_GROUPING.NO_SECTOR_KEY;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Investment preference constants
|
|
3
|
-
* These constants match the values used in Blueberry frontend
|
|
4
|
-
*/
|
|
5
|
-
export declare const RISK_TOLERANCE: {
|
|
6
|
-
readonly LOW: "low";
|
|
7
|
-
readonly MEDIUM: "medium";
|
|
8
|
-
readonly HIGH: "high";
|
|
9
|
-
};
|
|
10
|
-
export type RiskTolerance = (typeof RISK_TOLERANCE)[keyof typeof RISK_TOLERANCE];
|
|
11
|
-
export declare const RISK_TOLERANCE_LABELS: Record<RiskTolerance, string>;
|
|
12
|
-
export declare const RISK_TOLERANCE_LOW: "low";
|
|
13
|
-
export declare const RISK_TOLERANCE_MEDIUM: "medium";
|
|
14
|
-
export declare const RISK_TOLERANCE_HIGH: "high";
|
|
15
|
-
export declare const RISK_TOLERANCE_LABEL_LOW: string;
|
|
16
|
-
export declare const RISK_TOLERANCE_LABEL_MEDIUM: string;
|
|
17
|
-
export declare const RISK_TOLERANCE_LABEL_HIGH: string;
|
|
18
|
-
export declare const INVESTMENT_HORIZON: {
|
|
19
|
-
readonly SHORT: "short";
|
|
20
|
-
readonly MEDIUM: "medium";
|
|
21
|
-
readonly LONG: "long";
|
|
22
|
-
};
|
|
23
|
-
export type InvestmentHorizon = (typeof INVESTMENT_HORIZON)[keyof typeof INVESTMENT_HORIZON];
|
|
24
|
-
export declare const INVESTMENT_HORIZON_LABELS: Record<InvestmentHorizon, string>;
|
|
25
|
-
export declare const INVESTMENT_HORIZON_SHORT: "short";
|
|
26
|
-
export declare const INVESTMENT_HORIZON_MEDIUM: "medium";
|
|
27
|
-
export declare const INVESTMENT_HORIZON_LONG: "long";
|
|
28
|
-
export declare const INVESTMENT_HORIZON_LABEL_SHORT: string;
|
|
29
|
-
export declare const INVESTMENT_HORIZON_LABEL_MEDIUM: string;
|
|
30
|
-
export declare const INVESTMENT_HORIZON_LABEL_LONG: string;
|
|
31
|
-
export declare const INVESTMENT_EXPERIENCE: {
|
|
32
|
-
readonly NONE: "none";
|
|
33
|
-
readonly SOME: "some";
|
|
34
|
-
readonly EXTENSIVE: "extensive";
|
|
35
|
-
};
|
|
36
|
-
export type InvestmentExperience = (typeof INVESTMENT_EXPERIENCE)[keyof typeof INVESTMENT_EXPERIENCE];
|
|
37
|
-
export declare const INVESTMENT_EXPERIENCE_LABELS: Record<InvestmentExperience, string>;
|
|
38
|
-
export declare const INVESTMENT_EXPERIENCE_NONE: "none";
|
|
39
|
-
export declare const INVESTMENT_EXPERIENCE_SOME: "some";
|
|
40
|
-
export declare const INVESTMENT_EXPERIENCE_EXTENSIVE: "extensive";
|
|
41
|
-
export declare const INVESTMENT_EXPERIENCE_LABEL_NONE: string;
|
|
42
|
-
export declare const INVESTMENT_EXPERIENCE_LABEL_SOME: string;
|
|
43
|
-
export declare const INVESTMENT_EXPERIENCE_LABEL_EXTENSIVE: string;
|
|
44
|
-
export declare const INVESTMENT_OBJECTIVE: {
|
|
45
|
-
readonly CAPITAL_PRESERVATION: "CAPITAL_PRESERVATION";
|
|
46
|
-
readonly INCOME: "INCOME";
|
|
47
|
-
readonly BALANCED: "BALANCED";
|
|
48
|
-
readonly GROWTH: "GROWTH";
|
|
49
|
-
readonly AGGRESSIVE_GROWTH: "AGGRESSIVE_GROWTH";
|
|
50
|
-
};
|
|
51
|
-
export type InvestmentObjective = (typeof INVESTMENT_OBJECTIVE)[keyof typeof INVESTMENT_OBJECTIVE];
|
|
52
|
-
export declare const INVESTMENT_OBJECTIVE_LABELS: Record<InvestmentObjective, string>;
|
|
53
|
-
export declare const RISK_TOLERANCE_OPTIONS: ({
|
|
54
|
-
value: "low";
|
|
55
|
-
label: string;
|
|
56
|
-
} | {
|
|
57
|
-
value: "medium";
|
|
58
|
-
label: string;
|
|
59
|
-
} | {
|
|
60
|
-
value: "high";
|
|
61
|
-
label: string;
|
|
62
|
-
})[];
|
|
63
|
-
export declare const INVESTMENT_HORIZON_OPTIONS: ({
|
|
64
|
-
value: "short";
|
|
65
|
-
label: string;
|
|
66
|
-
} | {
|
|
67
|
-
value: "medium";
|
|
68
|
-
label: string;
|
|
69
|
-
} | {
|
|
70
|
-
value: "long";
|
|
71
|
-
label: string;
|
|
72
|
-
})[];
|
|
73
|
-
export declare const INVESTMENT_EXPERIENCE_OPTIONS: ({
|
|
74
|
-
value: "none";
|
|
75
|
-
label: string;
|
|
76
|
-
} | {
|
|
77
|
-
value: "some";
|
|
78
|
-
label: string;
|
|
79
|
-
} | {
|
|
80
|
-
value: "extensive";
|
|
81
|
-
label: string;
|
|
82
|
-
})[];
|
|
83
|
-
export declare const INVESTMENT_OBJECTIVE_OPTIONS: {
|
|
84
|
-
value: string;
|
|
85
|
-
label: string;
|
|
86
|
-
}[];
|
|
87
|
-
//# sourceMappingURL=investments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"investments.d.ts","sourceRoot":"","sources":["../../src/business/investments.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEjF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAItD,CAAC;AAGX,eAAO,MAAM,kBAAkB,OAAqB,CAAC;AACrD,eAAO,MAAM,qBAAqB,UAAwB,CAAC;AAC3D,eAAO,MAAM,mBAAmB,QAAsB,CAAC;AAEvD,eAAO,MAAM,wBAAwB,QAA4C,CAAC;AAClF,eAAO,MAAM,2BAA2B,QAA+C,CAAC;AACxF,eAAO,MAAM,yBAAyB,QAA6C,CAAC;AAGpF,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE7F,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAI9D,CAAC;AAGX,eAAO,MAAM,wBAAwB,SAA2B,CAAC;AACjE,eAAO,MAAM,yBAAyB,UAA4B,CAAC;AACnE,eAAO,MAAM,uBAAuB,QAA0B,CAAC;AAE/D,eAAO,MAAM,8BAA8B,QAAsD,CAAC;AAClG,eAAO,MAAM,+BAA+B,QAAuD,CAAC;AACpG,eAAO,MAAM,6BAA6B,QAAqD,CAAC;AAGhG,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEtG,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAIpE,CAAC;AAGX,eAAO,MAAM,0BAA0B,QAA6B,CAAC;AACrE,eAAO,MAAM,0BAA0B,QAA6B,CAAC;AACrE,eAAO,MAAM,+BAA+B,aAAkC,CAAC;AAE/E,eAAO,MAAM,gCAAgC,QAA2D,CAAC;AACzG,eAAO,MAAM,gCAAgC,QAA2D,CAAC;AACzG,eAAO,MAAM,qCAAqC,QAAgE,CAAC;AAGnH,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;AAGX,eAAO,MAAM,sBAAsB;;;;;;;;;IAIlC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;IAItC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;IAIzC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;GAGtC,CAAC"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Investment preference constants
|
|
3
|
-
* These constants match the values used in Blueberry frontend
|
|
4
|
-
*/
|
|
5
|
-
// Investment risk tolerance
|
|
6
|
-
export const RISK_TOLERANCE = {
|
|
7
|
-
LOW: 'low',
|
|
8
|
-
MEDIUM: 'medium',
|
|
9
|
-
HIGH: 'high',
|
|
10
|
-
};
|
|
11
|
-
export const RISK_TOLERANCE_LABELS = {
|
|
12
|
-
[RISK_TOLERANCE.LOW]: 'Low',
|
|
13
|
-
[RISK_TOLERANCE.MEDIUM]: 'Medium',
|
|
14
|
-
[RISK_TOLERANCE.HIGH]: 'High',
|
|
15
|
-
};
|
|
16
|
-
// Legacy risk tolerance constants (for backward compatibility if needed)
|
|
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];
|
|
23
|
-
// Investment horizon
|
|
24
|
-
export const INVESTMENT_HORIZON = {
|
|
25
|
-
SHORT: 'short',
|
|
26
|
-
MEDIUM: 'medium',
|
|
27
|
-
LONG: 'long',
|
|
28
|
-
};
|
|
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)',
|
|
33
|
-
};
|
|
34
|
-
// Legacy investment horizon constants (for backward compatibility if needed)
|
|
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];
|
|
41
|
-
// Investment experience
|
|
42
|
-
export const INVESTMENT_EXPERIENCE = {
|
|
43
|
-
NONE: 'none',
|
|
44
|
-
SOME: 'some',
|
|
45
|
-
EXTENSIVE: 'extensive',
|
|
46
|
-
};
|
|
47
|
-
export const INVESTMENT_EXPERIENCE_LABELS = {
|
|
48
|
-
[INVESTMENT_EXPERIENCE.NONE]: 'No experience',
|
|
49
|
-
[INVESTMENT_EXPERIENCE.SOME]: 'Some experience',
|
|
50
|
-
[INVESTMENT_EXPERIENCE.EXTENSIVE]: 'Extensive',
|
|
51
|
-
};
|
|
52
|
-
// Legacy investment experience constants (for backward compatibility if needed)
|
|
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];
|
|
59
|
-
// Investment objectives (keeping these as they weren't in Blueberry's portfolios constants)
|
|
60
|
-
export const INVESTMENT_OBJECTIVE = {
|
|
61
|
-
CAPITAL_PRESERVATION: 'CAPITAL_PRESERVATION',
|
|
62
|
-
INCOME: 'INCOME',
|
|
63
|
-
BALANCED: 'BALANCED',
|
|
64
|
-
GROWTH: 'GROWTH',
|
|
65
|
-
AGGRESSIVE_GROWTH: 'AGGRESSIVE_GROWTH',
|
|
66
|
-
};
|
|
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',
|
|
73
|
-
};
|
|
74
|
-
// Options for forms
|
|
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] },
|
|
79
|
-
];
|
|
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] },
|
|
84
|
-
];
|
|
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] },
|
|
89
|
-
];
|
|
90
|
-
export const INVESTMENT_OBJECTIVE_OPTIONS = Object.entries(INVESTMENT_OBJECTIVE_LABELS).map(([value, label]) => ({
|
|
91
|
-
value,
|
|
92
|
-
label,
|
|
93
|
-
}));
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bank account status constants
|
|
3
|
-
* These constants should match the backend constants in bilberry/banks/constants.py
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Bank account specific status values
|
|
7
|
-
* @intentional-duplicate INACTIVE also exists in COMMON_STATUS and PORTFOLIO_STATUS
|
|
8
|
-
* @reason Domain isolation - bank account statuses should not mix with other domain statuses
|
|
9
|
-
* @see INTENTIONAL-DUPLICATES.md
|
|
10
|
-
*/
|
|
11
|
-
export declare const BANK_ACCOUNT_STATUS: {
|
|
12
|
-
readonly PRIMARY: "PRIMARY";
|
|
13
|
-
readonly VERIFIED: "VERIFIED";
|
|
14
|
-
readonly UNVERIFIED: "UNVERIFIED";
|
|
15
|
-
readonly INACTIVE: "INACTIVE";
|
|
16
|
-
};
|
|
17
|
-
export declare const BANK_ACCOUNT_STATUS_VALUES: {
|
|
18
|
-
readonly PRIMARY: "primary";
|
|
19
|
-
readonly VERIFIED: "verified";
|
|
20
|
-
readonly UNVERIFIED: "unverified";
|
|
21
|
-
readonly INACTIVE: "inactive";
|
|
22
|
-
};
|
|
23
|
-
export type BankAccountStatus = (typeof BANK_ACCOUNT_STATUS)[keyof typeof BANK_ACCOUNT_STATUS];
|
|
24
|
-
export declare const BANK_ACCOUNT_STATUS_LABELS: Record<BankAccountStatus, string>;
|
|
25
|
-
export declare const BANK_ACCOUNT_STATUS_PRIMARY: "primary";
|
|
26
|
-
export declare const BANK_ACCOUNT_STATUS_VERIFIED: "verified";
|
|
27
|
-
export declare const BANK_ACCOUNT_STATUS_UNVERIFIED: "unverified";
|
|
28
|
-
export declare const BANK_ACCOUNT_STATUS_INACTIVE: "inactive";
|
|
29
|
-
//# sourceMappingURL=banks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"banks.d.ts","sourceRoot":"","sources":["../../../src/business/status/banks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC;AAGX,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAG/F,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAK/D,CAAC;AAGX,eAAO,MAAM,2BAA2B,WAAqC,CAAC;AAC9E,eAAO,MAAM,4BAA4B,YAAsC,CAAC;AAChF,eAAO,MAAM,8BAA8B,cAAwC,CAAC;AACpF,eAAO,MAAM,4BAA4B,YAAsC,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bank account status constants
|
|
3
|
-
* These constants should match the backend constants in bilberry/banks/constants.py
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Bank account specific status values
|
|
7
|
-
* @intentional-duplicate INACTIVE also exists in COMMON_STATUS and PORTFOLIO_STATUS
|
|
8
|
-
* @reason Domain isolation - bank account statuses should not mix with other domain statuses
|
|
9
|
-
* @see INTENTIONAL-DUPLICATES.md
|
|
10
|
-
*/
|
|
11
|
-
export const BANK_ACCOUNT_STATUS = {
|
|
12
|
-
PRIMARY: 'PRIMARY',
|
|
13
|
-
VERIFIED: 'VERIFIED',
|
|
14
|
-
UNVERIFIED: 'UNVERIFIED',
|
|
15
|
-
INACTIVE: 'INACTIVE',
|
|
16
|
-
};
|
|
17
|
-
// Lowercase values for Blueberry compatibility
|
|
18
|
-
export const BANK_ACCOUNT_STATUS_VALUES = {
|
|
19
|
-
PRIMARY: 'primary',
|
|
20
|
-
VERIFIED: 'verified',
|
|
21
|
-
UNVERIFIED: 'unverified',
|
|
22
|
-
INACTIVE: 'inactive',
|
|
23
|
-
};
|
|
24
|
-
// Bank account status labels for UI display
|
|
25
|
-
export const BANK_ACCOUNT_STATUS_LABELS = {
|
|
26
|
-
[BANK_ACCOUNT_STATUS.PRIMARY]: 'Primary',
|
|
27
|
-
[BANK_ACCOUNT_STATUS.VERIFIED]: 'Verified',
|
|
28
|
-
[BANK_ACCOUNT_STATUS.UNVERIFIED]: 'Unverified',
|
|
29
|
-
[BANK_ACCOUNT_STATUS.INACTIVE]: 'Inactive',
|
|
30
|
-
};
|
|
31
|
-
// Blueberry compatibility exports (lowercase values)
|
|
32
|
-
export const BANK_ACCOUNT_STATUS_PRIMARY = BANK_ACCOUNT_STATUS_VALUES.PRIMARY;
|
|
33
|
-
export const BANK_ACCOUNT_STATUS_VERIFIED = BANK_ACCOUNT_STATUS_VALUES.VERIFIED;
|
|
34
|
-
export const BANK_ACCOUNT_STATUS_UNVERIFIED = BANK_ACCOUNT_STATUS_VALUES.UNVERIFIED;
|
|
35
|
-
export const BANK_ACCOUNT_STATUS_INACTIVE = BANK_ACCOUNT_STATUS_VALUES.INACTIVE;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cash account transaction status constants
|
|
3
|
-
* These constants should match the backend constants in bilberry/cash_accounts/constants.py
|
|
4
|
-
*/
|
|
5
|
-
export declare const CASH_ACCOUNT_TRANSACTION_TYPE: {
|
|
6
|
-
readonly DEPOSIT: "DEPOSIT";
|
|
7
|
-
readonly WITHDRAWAL: "WITHDRAWAL";
|
|
8
|
-
readonly TRADE_SETTLEMENT: "TRADE_SETTLEMENT";
|
|
9
|
-
readonly DISTRIBUTION: "DISTRIBUTION";
|
|
10
|
-
readonly FEE: "FEE";
|
|
11
|
-
readonly INTEREST: "INTEREST";
|
|
12
|
-
readonly OTHER: "OTHER";
|
|
13
|
-
};
|
|
14
|
-
export type CashAccountTransactionType = (typeof CASH_ACCOUNT_TRANSACTION_TYPE)[keyof typeof CASH_ACCOUNT_TRANSACTION_TYPE];
|
|
15
|
-
export declare const CASH_ACCOUNT_TRANSACTION_TYPE_LABELS: Record<CashAccountTransactionType, string>;
|
|
16
|
-
export declare const CASH_ACCOUNT_TRANSACTION_STATUS: {
|
|
17
|
-
readonly PENDING: "PENDING";
|
|
18
|
-
readonly PROCESSED: "PROCESSED";
|
|
19
|
-
readonly FAILED: "FAILED";
|
|
20
|
-
readonly CANCELLED: "CANCELLED";
|
|
21
|
-
readonly REVERSED: "REVERSED";
|
|
22
|
-
readonly ON_HOLD: "ON_HOLD";
|
|
23
|
-
readonly REFUNDED: "REFUNDED";
|
|
24
|
-
};
|
|
25
|
-
export type CashAccountTransactionStatus = (typeof CASH_ACCOUNT_TRANSACTION_STATUS)[keyof typeof CASH_ACCOUNT_TRANSACTION_STATUS];
|
|
26
|
-
export declare const CASH_ACCOUNT_TRANSACTION_STATUS_LABELS: Record<CashAccountTransactionStatus, string>;
|
|
27
|
-
export declare const TRANSACTION_TYPE_LABEL_DEPOSIT: string;
|
|
28
|
-
export declare const TRANSACTION_TYPE_LABEL_WITHDRAWAL: string;
|
|
29
|
-
export declare const TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT: string;
|
|
30
|
-
export declare const TRANSACTION_TYPE_LABEL_DISTRIBUTION: string;
|
|
31
|
-
export declare const TRANSACTION_TYPE_LABEL_FEE: string;
|
|
32
|
-
export declare const TRANSACTION_TYPE_LABEL_INTEREST: string;
|
|
33
|
-
export declare const TRANSACTION_TYPE_LABEL_OTHER: string;
|
|
34
|
-
export declare const TRANSACTION_TYPE_OPTIONS: readonly [{
|
|
35
|
-
readonly value: "DEPOSIT";
|
|
36
|
-
readonly label: string;
|
|
37
|
-
}, {
|
|
38
|
-
readonly value: "WITHDRAWAL";
|
|
39
|
-
readonly label: string;
|
|
40
|
-
}, {
|
|
41
|
-
readonly value: "TRADE_SETTLEMENT";
|
|
42
|
-
readonly label: string;
|
|
43
|
-
}, {
|
|
44
|
-
readonly value: "DISTRIBUTION";
|
|
45
|
-
readonly label: string;
|
|
46
|
-
}, {
|
|
47
|
-
readonly value: "FEE";
|
|
48
|
-
readonly label: string;
|
|
49
|
-
}, {
|
|
50
|
-
readonly value: "INTEREST";
|
|
51
|
-
readonly label: string;
|
|
52
|
-
}, {
|
|
53
|
-
readonly value: "OTHER";
|
|
54
|
-
readonly label: string;
|
|
55
|
-
}];
|
|
56
|
-
//# sourceMappingURL=cash-accounts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cash-accounts.d.ts","sourceRoot":"","sources":["../../../src/business/status/cash-accounts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,eAAO,MAAM,6BAA6B;;;;;;;;CAQhC,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAGrF,eAAO,MAAM,oCAAoC,EAAE,MAAM,CAAC,0BAA0B,EAAE,MAAM,CAQlF,CAAC;AAGX,eAAO,MAAM,+BAA+B;;;;;;;;CAQlC,CAAC;AAEX,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC;AAGzF,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,4BAA4B,EAAE,MAAM,CAQtF,CAAC;AAGX,eAAO,MAAM,8BAA8B,QACkC,CAAC;AAC9E,eAAO,MAAM,iCAAiC,QACkC,CAAC;AACjF,eAAO,MAAM,uCAAuC,QACkC,CAAC;AACvF,eAAO,MAAM,mCAAmC,QACkC,CAAC;AACnF,eAAO,MAAM,0BAA0B,QAA0E,CAAC;AAClH,eAAO,MAAM,+BAA+B,QACkC,CAAC;AAC/E,eAAO,MAAM,4BAA4B,QAA4E,CAAC;AAGtH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAQ3B,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cash account transaction status constants
|
|
3
|
-
* These constants should match the backend constants in bilberry/cash_accounts/constants.py
|
|
4
|
-
*/
|
|
5
|
-
import { COMMON_STATUS } from '../../common/statuses';
|
|
6
|
-
export const CASH_ACCOUNT_TRANSACTION_TYPE = {
|
|
7
|
-
DEPOSIT: 'DEPOSIT',
|
|
8
|
-
WITHDRAWAL: 'WITHDRAWAL',
|
|
9
|
-
TRADE_SETTLEMENT: 'TRADE_SETTLEMENT',
|
|
10
|
-
DISTRIBUTION: 'DISTRIBUTION',
|
|
11
|
-
FEE: 'FEE',
|
|
12
|
-
INTEREST: 'INTEREST',
|
|
13
|
-
OTHER: 'OTHER',
|
|
14
|
-
};
|
|
15
|
-
// Transaction type labels for UI display (matching Blueberry exactly)
|
|
16
|
-
export const CASH_ACCOUNT_TRANSACTION_TYPE_LABELS = {
|
|
17
|
-
[CASH_ACCOUNT_TRANSACTION_TYPE.DEPOSIT]: 'Deposit',
|
|
18
|
-
[CASH_ACCOUNT_TRANSACTION_TYPE.WITHDRAWAL]: 'Withdrawal',
|
|
19
|
-
[CASH_ACCOUNT_TRANSACTION_TYPE.TRADE_SETTLEMENT]: 'Trade Settlement',
|
|
20
|
-
[CASH_ACCOUNT_TRANSACTION_TYPE.DISTRIBUTION]: 'Distribution',
|
|
21
|
-
[CASH_ACCOUNT_TRANSACTION_TYPE.FEE]: 'Fee',
|
|
22
|
-
[CASH_ACCOUNT_TRANSACTION_TYPE.INTEREST]: 'Interest',
|
|
23
|
-
[CASH_ACCOUNT_TRANSACTION_TYPE.OTHER]: 'Adjustment',
|
|
24
|
-
};
|
|
25
|
-
// Cash account transaction status constants
|
|
26
|
-
export const CASH_ACCOUNT_TRANSACTION_STATUS = {
|
|
27
|
-
PENDING: COMMON_STATUS.PENDING, // Using common status
|
|
28
|
-
PROCESSED: 'PROCESSED',
|
|
29
|
-
FAILED: COMMON_STATUS.FAILED, // Using common status
|
|
30
|
-
CANCELLED: COMMON_STATUS.CANCELLED, // Using common status
|
|
31
|
-
REVERSED: 'REVERSED',
|
|
32
|
-
ON_HOLD: 'ON_HOLD',
|
|
33
|
-
REFUNDED: 'REFUNDED',
|
|
34
|
-
};
|
|
35
|
-
// Transaction status labels for UI display
|
|
36
|
-
export const CASH_ACCOUNT_TRANSACTION_STATUS_LABELS = {
|
|
37
|
-
[CASH_ACCOUNT_TRANSACTION_STATUS.PENDING]: 'Pending',
|
|
38
|
-
[CASH_ACCOUNT_TRANSACTION_STATUS.PROCESSED]: 'Processed',
|
|
39
|
-
[CASH_ACCOUNT_TRANSACTION_STATUS.FAILED]: 'Failed',
|
|
40
|
-
[CASH_ACCOUNT_TRANSACTION_STATUS.CANCELLED]: 'Cancelled',
|
|
41
|
-
[CASH_ACCOUNT_TRANSACTION_STATUS.REVERSED]: 'Reversed',
|
|
42
|
-
[CASH_ACCOUNT_TRANSACTION_STATUS.ON_HOLD]: 'On Hold',
|
|
43
|
-
[CASH_ACCOUNT_TRANSACTION_STATUS.REFUNDED]: 'Refunded',
|
|
44
|
-
};
|
|
45
|
-
// Individual exports for Blueberry compatibility
|
|
46
|
-
export const TRANSACTION_TYPE_LABEL_DEPOSIT = CASH_ACCOUNT_TRANSACTION_TYPE_LABELS[CASH_ACCOUNT_TRANSACTION_TYPE.DEPOSIT];
|
|
47
|
-
export const TRANSACTION_TYPE_LABEL_WITHDRAWAL = CASH_ACCOUNT_TRANSACTION_TYPE_LABELS[CASH_ACCOUNT_TRANSACTION_TYPE.WITHDRAWAL];
|
|
48
|
-
export const TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT = CASH_ACCOUNT_TRANSACTION_TYPE_LABELS[CASH_ACCOUNT_TRANSACTION_TYPE.TRADE_SETTLEMENT];
|
|
49
|
-
export const TRANSACTION_TYPE_LABEL_DISTRIBUTION = CASH_ACCOUNT_TRANSACTION_TYPE_LABELS[CASH_ACCOUNT_TRANSACTION_TYPE.DISTRIBUTION];
|
|
50
|
-
export const TRANSACTION_TYPE_LABEL_FEE = CASH_ACCOUNT_TRANSACTION_TYPE_LABELS[CASH_ACCOUNT_TRANSACTION_TYPE.FEE];
|
|
51
|
-
export const TRANSACTION_TYPE_LABEL_INTEREST = CASH_ACCOUNT_TRANSACTION_TYPE_LABELS[CASH_ACCOUNT_TRANSACTION_TYPE.INTEREST];
|
|
52
|
-
export const TRANSACTION_TYPE_LABEL_OTHER = CASH_ACCOUNT_TRANSACTION_TYPE_LABELS[CASH_ACCOUNT_TRANSACTION_TYPE.OTHER];
|
|
53
|
-
// Transaction type options array for Blueberry compatibility
|
|
54
|
-
export const TRANSACTION_TYPE_OPTIONS = [
|
|
55
|
-
{ value: CASH_ACCOUNT_TRANSACTION_TYPE.DEPOSIT, label: TRANSACTION_TYPE_LABEL_DEPOSIT },
|
|
56
|
-
{ value: CASH_ACCOUNT_TRANSACTION_TYPE.WITHDRAWAL, label: TRANSACTION_TYPE_LABEL_WITHDRAWAL },
|
|
57
|
-
{ value: CASH_ACCOUNT_TRANSACTION_TYPE.TRADE_SETTLEMENT, label: TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT },
|
|
58
|
-
{ value: CASH_ACCOUNT_TRANSACTION_TYPE.DISTRIBUTION, label: TRANSACTION_TYPE_LABEL_DISTRIBUTION },
|
|
59
|
-
{ value: CASH_ACCOUNT_TRANSACTION_TYPE.FEE, label: TRANSACTION_TYPE_LABEL_FEE },
|
|
60
|
-
{ value: CASH_ACCOUNT_TRANSACTION_TYPE.INTEREST, label: TRANSACTION_TYPE_LABEL_INTEREST },
|
|
61
|
-
{ value: CASH_ACCOUNT_TRANSACTION_TYPE.OTHER, label: TRANSACTION_TYPE_LABEL_OTHER },
|
|
62
|
-
];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Document status constants
|
|
3
|
-
* These constants should match the backend constants in bilberry/documents/constants.py
|
|
4
|
-
*/
|
|
5
|
-
export declare const DOCUMENT_STATUS_PENDING = "pending";
|
|
6
|
-
export declare const DOCUMENT_STATUS_GENERATED = "generated";
|
|
7
|
-
export declare const DOCUMENT_STATUS_SIGNED = "signed";
|
|
8
|
-
export declare const DOCUMENT_STATUS_EXPIRED = "expired";
|
|
9
|
-
export declare const DOCUMENT_STATUS: {
|
|
10
|
-
readonly PENDING: "pending";
|
|
11
|
-
readonly GENERATED: "generated";
|
|
12
|
-
readonly SIGNED: "signed";
|
|
13
|
-
readonly EXPIRED: "expired";
|
|
14
|
-
};
|
|
15
|
-
export type DocumentStatus = (typeof DOCUMENT_STATUS)[keyof typeof DOCUMENT_STATUS];
|
|
16
|
-
export declare const DOCUMENT_STATUS_LABEL_PENDING = "Pending";
|
|
17
|
-
export declare const DOCUMENT_STATUS_LABEL_GENERATED = "Generated";
|
|
18
|
-
export declare const DOCUMENT_STATUS_LABEL_SIGNED = "Signed";
|
|
19
|
-
export declare const DOCUMENT_STATUS_LABEL_EXPIRED = "Expired";
|
|
20
|
-
export declare const DOCUMENT_STATUS_LABELS: Record<DocumentStatus, string>;
|
|
21
|
-
export declare const DOCUMENT_STATUS_OPTIONS: {
|
|
22
|
-
value: string;
|
|
23
|
-
label: string;
|
|
24
|
-
}[];
|
|
25
|
-
//# sourceMappingURL=documents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../../src/business/status/documents.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAGpF,eAAO,MAAM,6BAA6B,YAAY,CAAC;AACvD,eAAO,MAAM,+BAA+B,cAAc,CAAC;AAC3D,eAAO,MAAM,4BAA4B,WAAW,CAAC;AACrD,eAAO,MAAM,6BAA6B,YAAY,CAAC;AAGvD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKxD,CAAC;AAGX,eAAO,MAAM,uBAAuB;;;GAKnC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Document status constants
|
|
3
|
-
* These constants should match the backend constants in bilberry/documents/constants.py
|
|
4
|
-
*/
|
|
5
|
-
// Document status constants - matching Blueberry's lowercase values
|
|
6
|
-
export const DOCUMENT_STATUS_PENDING = 'pending';
|
|
7
|
-
export const DOCUMENT_STATUS_GENERATED = 'generated';
|
|
8
|
-
export const DOCUMENT_STATUS_SIGNED = 'signed';
|
|
9
|
-
export const DOCUMENT_STATUS_EXPIRED = 'expired';
|
|
10
|
-
export const DOCUMENT_STATUS = {
|
|
11
|
-
PENDING: DOCUMENT_STATUS_PENDING,
|
|
12
|
-
GENERATED: DOCUMENT_STATUS_GENERATED,
|
|
13
|
-
SIGNED: DOCUMENT_STATUS_SIGNED,
|
|
14
|
-
EXPIRED: DOCUMENT_STATUS_EXPIRED,
|
|
15
|
-
};
|
|
16
|
-
// Document status label constants
|
|
17
|
-
export const DOCUMENT_STATUS_LABEL_PENDING = 'Pending';
|
|
18
|
-
export const DOCUMENT_STATUS_LABEL_GENERATED = 'Generated';
|
|
19
|
-
export const DOCUMENT_STATUS_LABEL_SIGNED = 'Signed';
|
|
20
|
-
export const DOCUMENT_STATUS_LABEL_EXPIRED = 'Expired';
|
|
21
|
-
// Document status labels for UI display
|
|
22
|
-
export const DOCUMENT_STATUS_LABELS = {
|
|
23
|
-
[DOCUMENT_STATUS.PENDING]: DOCUMENT_STATUS_LABEL_PENDING,
|
|
24
|
-
[DOCUMENT_STATUS.GENERATED]: DOCUMENT_STATUS_LABEL_GENERATED,
|
|
25
|
-
[DOCUMENT_STATUS.SIGNED]: DOCUMENT_STATUS_LABEL_SIGNED,
|
|
26
|
-
[DOCUMENT_STATUS.EXPIRED]: DOCUMENT_STATUS_LABEL_EXPIRED,
|
|
27
|
-
};
|
|
28
|
-
// Document status options for forms
|
|
29
|
-
export const DOCUMENT_STATUS_OPTIONS = [
|
|
30
|
-
{ value: DOCUMENT_STATUS_PENDING, label: DOCUMENT_STATUS_LABEL_PENDING },
|
|
31
|
-
{ value: DOCUMENT_STATUS_GENERATED, label: DOCUMENT_STATUS_LABEL_GENERATED },
|
|
32
|
-
{ value: DOCUMENT_STATUS_SIGNED, label: DOCUMENT_STATUS_LABEL_SIGNED },
|
|
33
|
-
{ value: DOCUMENT_STATUS_EXPIRED, label: DOCUMENT_STATUS_LABEL_EXPIRED },
|
|
34
|
-
];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* All status constants across domains
|
|
3
|
-
*/
|
|
4
|
-
export * from './withdrawals';
|
|
5
|
-
export * from './trades';
|
|
6
|
-
export * from './documents';
|
|
7
|
-
export * from './banks';
|
|
8
|
-
export * from './instruments';
|
|
9
|
-
export * from './portfolios';
|
|
10
|
-
export * from './cash-accounts';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/business/status/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* All status constants across domains
|
|
3
|
-
*/
|
|
4
|
-
export * from './withdrawals';
|
|
5
|
-
export * from './trades';
|
|
6
|
-
export * from './documents';
|
|
7
|
-
export * from './banks';
|
|
8
|
-
export * from './instruments';
|
|
9
|
-
export * from './portfolios';
|
|
10
|
-
export * from './cash-accounts';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Instrument and trading status constants
|
|
3
|
-
* These constants should match the backend constants in bilberry/instruments/constants.py
|
|
4
|
-
*/
|
|
5
|
-
export declare const INSTRUMENT_STATUS: {
|
|
6
|
-
readonly ACTIVE: "ACTIVE";
|
|
7
|
-
readonly INACTIVE: "INACTIVE";
|
|
8
|
-
readonly DELISTED: "DELISTED";
|
|
9
|
-
readonly SUSPENDED: "SUSPENDED";
|
|
10
|
-
};
|
|
11
|
-
export declare const INSTRUMENT_STATUS_VALUES: {
|
|
12
|
-
readonly ACTIVE: "active";
|
|
13
|
-
readonly INACTIVE: "inactive";
|
|
14
|
-
readonly DELISTED: "delisted";
|
|
15
|
-
readonly SUSPENDED: "suspended";
|
|
16
|
-
};
|
|
17
|
-
export type InstrumentStatus = (typeof INSTRUMENT_STATUS)[keyof typeof INSTRUMENT_STATUS];
|
|
18
|
-
export declare const INSTRUMENT_STATUS_LABELS: Record<InstrumentStatus, string>;
|
|
19
|
-
export declare const TRADING_STATUS: {
|
|
20
|
-
readonly TRADING: "TRADING";
|
|
21
|
-
readonly HALTED: "HALTED";
|
|
22
|
-
readonly CLOSED: "CLOSED";
|
|
23
|
-
readonly PRE_MARKET: "PRE_MARKET";
|
|
24
|
-
readonly AFTER_HOURS: "AFTER_HOURS";
|
|
25
|
-
};
|
|
26
|
-
export declare const TRADING_STATUS_VALUES: {
|
|
27
|
-
readonly TRADING: "trading";
|
|
28
|
-
readonly HALTED: "halted";
|
|
29
|
-
readonly CLOSED: "closed";
|
|
30
|
-
readonly PRE_MARKET: "pre_market";
|
|
31
|
-
readonly AFTER_HOURS: "after_hours";
|
|
32
|
-
readonly SUSPENDED: "suspended";
|
|
33
|
-
};
|
|
34
|
-
export type TradingStatus = (typeof TRADING_STATUS)[keyof typeof TRADING_STATUS];
|
|
35
|
-
export declare const TRADING_STATUS_LABELS: Record<TradingStatus, string>;
|
|
36
|
-
export declare const INSTRUMENT_STATUS_ACTIVE: "active";
|
|
37
|
-
export declare const INSTRUMENT_STATUS_INACTIVE: "inactive";
|
|
38
|
-
export declare const INSTRUMENT_STATUS_SUSPENDED: "suspended";
|
|
39
|
-
export declare const TRADING_STATUS_TRADING: "trading";
|
|
40
|
-
export declare const TRADING_STATUS_HALTED: "halted";
|
|
41
|
-
export declare const TRADING_STATUS_SUSPENDED: "suspended";
|
|
42
|
-
//# sourceMappingURL=instruments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instruments.d.ts","sourceRoot":"","sources":["../../../src/business/status/instruments.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC;AAGX,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAG1F,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAK5D,CAAC;AAGX,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAGX,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEjF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAMtD,CAAC;AAGX,eAAO,MAAM,wBAAwB,UAAkC,CAAC;AACxE,eAAO,MAAM,0BAA0B,YAAoC,CAAC;AAC5E,eAAO,MAAM,2BAA2B,aAAqC,CAAC;AAE9E,eAAO,MAAM,sBAAsB,WAAgC,CAAC;AACpE,eAAO,MAAM,qBAAqB,UAA+B,CAAC;AAClE,eAAO,MAAM,wBAAwB,aAAkC,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Instrument and trading status constants
|
|
3
|
-
* These constants should match the backend constants in bilberry/instruments/constants.py
|
|
4
|
-
*/
|
|
5
|
-
export const INSTRUMENT_STATUS = {
|
|
6
|
-
ACTIVE: 'ACTIVE',
|
|
7
|
-
INACTIVE: 'INACTIVE',
|
|
8
|
-
DELISTED: 'DELISTED',
|
|
9
|
-
SUSPENDED: 'SUSPENDED',
|
|
10
|
-
};
|
|
11
|
-
// Lowercase values for Blueberry compatibility
|
|
12
|
-
export const INSTRUMENT_STATUS_VALUES = {
|
|
13
|
-
ACTIVE: 'active',
|
|
14
|
-
INACTIVE: 'inactive',
|
|
15
|
-
DELISTED: 'delisted',
|
|
16
|
-
SUSPENDED: 'suspended',
|
|
17
|
-
};
|
|
18
|
-
// Instrument status labels for UI display
|
|
19
|
-
export const INSTRUMENT_STATUS_LABELS = {
|
|
20
|
-
[INSTRUMENT_STATUS.ACTIVE]: 'Active',
|
|
21
|
-
[INSTRUMENT_STATUS.INACTIVE]: 'Inactive',
|
|
22
|
-
[INSTRUMENT_STATUS.DELISTED]: 'Delisted',
|
|
23
|
-
[INSTRUMENT_STATUS.SUSPENDED]: 'Suspended',
|
|
24
|
-
};
|
|
25
|
-
// Trading status
|
|
26
|
-
export const TRADING_STATUS = {
|
|
27
|
-
TRADING: 'TRADING',
|
|
28
|
-
HALTED: 'HALTED',
|
|
29
|
-
CLOSED: 'CLOSED',
|
|
30
|
-
PRE_MARKET: 'PRE_MARKET',
|
|
31
|
-
AFTER_HOURS: 'AFTER_HOURS',
|
|
32
|
-
};
|
|
33
|
-
// Lowercase values for Blueberry compatibility
|
|
34
|
-
export const TRADING_STATUS_VALUES = {
|
|
35
|
-
TRADING: 'trading',
|
|
36
|
-
HALTED: 'halted',
|
|
37
|
-
CLOSED: 'closed',
|
|
38
|
-
PRE_MARKET: 'pre_market',
|
|
39
|
-
AFTER_HOURS: 'after_hours',
|
|
40
|
-
SUSPENDED: 'suspended',
|
|
41
|
-
};
|
|
42
|
-
export const TRADING_STATUS_LABELS = {
|
|
43
|
-
[TRADING_STATUS.TRADING]: 'Trading',
|
|
44
|
-
[TRADING_STATUS.HALTED]: 'Halted',
|
|
45
|
-
[TRADING_STATUS.CLOSED]: 'Closed',
|
|
46
|
-
[TRADING_STATUS.PRE_MARKET]: 'Pre-Market',
|
|
47
|
-
[TRADING_STATUS.AFTER_HOURS]: 'After Hours',
|
|
48
|
-
};
|
|
49
|
-
// Blueberry compatibility exports (lowercase values)
|
|
50
|
-
export const INSTRUMENT_STATUS_ACTIVE = INSTRUMENT_STATUS_VALUES.ACTIVE;
|
|
51
|
-
export const INSTRUMENT_STATUS_INACTIVE = INSTRUMENT_STATUS_VALUES.INACTIVE;
|
|
52
|
-
export const INSTRUMENT_STATUS_SUSPENDED = INSTRUMENT_STATUS_VALUES.SUSPENDED;
|
|
53
|
-
export const TRADING_STATUS_TRADING = TRADING_STATUS_VALUES.TRADING;
|
|
54
|
-
export const TRADING_STATUS_HALTED = TRADING_STATUS_VALUES.HALTED;
|
|
55
|
-
export const TRADING_STATUS_SUSPENDED = TRADING_STATUS_VALUES.SUSPENDED;
|