@cranberry-money/shared-constants 4.2.0 → 4.3.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.
Files changed (97) hide show
  1. package/dist/api/config.d.ts +36 -0
  2. package/dist/api/config.d.ts.map +1 -0
  3. package/dist/api/config.js +44 -0
  4. package/dist/api/endpoints.d.ts +125 -0
  5. package/dist/api/endpoints.d.ts.map +1 -0
  6. package/dist/api/endpoints.js +150 -0
  7. package/dist/api/http.d.ts +55 -0
  8. package/dist/api/http.d.ts.map +1 -0
  9. package/dist/api/http.js +62 -0
  10. package/dist/api/index.d.ts +7 -0
  11. package/dist/api/index.d.ts.map +1 -0
  12. package/dist/api/index.js +22 -0
  13. package/dist/business/accounts.d.ts +30 -0
  14. package/dist/business/accounts.d.ts.map +1 -0
  15. package/dist/business/accounts.js +45 -0
  16. package/dist/business/banking.d.ts +44 -0
  17. package/dist/business/banking.d.ts.map +1 -0
  18. package/dist/business/banking.js +72 -0
  19. package/dist/business/documents.d.ts +34 -0
  20. package/dist/business/documents.d.ts.map +1 -0
  21. package/dist/business/documents.js +58 -0
  22. package/dist/business/index.d.ts +10 -0
  23. package/dist/business/index.d.ts.map +1 -0
  24. package/dist/business/index.js +25 -0
  25. package/dist/business/investments.d.ts +87 -0
  26. package/dist/business/investments.d.ts.map +1 -0
  27. package/dist/business/investments.js +96 -0
  28. package/dist/business/status/banks.d.ts +13 -0
  29. package/dist/business/status/banks.d.ts.map +1 -0
  30. package/dist/business/status/banks.js +20 -0
  31. package/dist/business/status/cash-accounts.d.ts +16 -0
  32. package/dist/business/status/cash-accounts.d.ts.map +1 -0
  33. package/dist/business/status/cash-accounts.js +26 -0
  34. package/dist/business/status/documents.d.ts +13 -0
  35. package/dist/business/status/documents.d.ts.map +1 -0
  36. package/dist/business/status/documents.js +20 -0
  37. package/dist/business/status/index.d.ts +11 -0
  38. package/dist/business/status/index.d.ts.map +1 -0
  39. package/dist/business/status/index.js +26 -0
  40. package/dist/business/status/instruments.d.ts +22 -0
  41. package/dist/business/status/instruments.d.ts.map +1 -0
  42. package/dist/business/status/instruments.js +35 -0
  43. package/dist/business/status/portfolios.d.ts +12 -0
  44. package/dist/business/status/portfolios.d.ts.map +1 -0
  45. package/dist/business/status/portfolios.js +18 -0
  46. package/dist/business/status/trades.d.ts +83 -0
  47. package/dist/business/status/trades.d.ts.map +1 -0
  48. package/dist/business/status/trades.js +127 -0
  49. package/dist/business/status/withdrawals.d.ts +33 -0
  50. package/dist/business/status/withdrawals.d.ts.map +1 -0
  51. package/dist/business/status/withdrawals.js +54 -0
  52. package/dist/business/trading.d.ts +52 -0
  53. package/dist/business/trading.d.ts.map +1 -0
  54. package/dist/business/trading.js +71 -0
  55. package/dist/financial/currency.d.ts +25 -0
  56. package/dist/financial/currency.d.ts.map +1 -0
  57. package/dist/financial/currency.js +65 -0
  58. package/dist/financial/formatting.d.ts +52 -0
  59. package/dist/financial/formatting.d.ts.map +1 -0
  60. package/dist/financial/formatting.js +64 -0
  61. package/dist/financial/index.d.ts +7 -0
  62. package/dist/financial/index.d.ts.map +1 -0
  63. package/dist/financial/index.js +22 -0
  64. package/dist/financial/instruments.d.ts +35 -0
  65. package/dist/financial/instruments.d.ts.map +1 -0
  66. package/dist/financial/instruments.js +61 -0
  67. package/dist/index.d.ts +12 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.js +32 -0
  70. package/dist/ui/colors.d.ts +43 -0
  71. package/dist/ui/colors.d.ts.map +1 -0
  72. package/dist/ui/colors.js +84 -0
  73. package/dist/ui/display.d.ts +69 -0
  74. package/dist/ui/display.d.ts.map +1 -0
  75. package/dist/ui/display.js +83 -0
  76. package/dist/ui/index.d.ts +7 -0
  77. package/dist/ui/index.d.ts.map +1 -0
  78. package/dist/ui/index.js +22 -0
  79. package/dist/ui/labels/index.d.ts +20 -0
  80. package/dist/ui/labels/index.d.ts.map +1 -0
  81. package/dist/ui/labels/index.js +57 -0
  82. package/dist/utilities/defaults.d.ts +39 -0
  83. package/dist/utilities/defaults.d.ts.map +1 -0
  84. package/dist/utilities/defaults.js +46 -0
  85. package/dist/utilities/index.d.ts +8 -0
  86. package/dist/utilities/index.d.ts.map +1 -0
  87. package/dist/utilities/index.js +23 -0
  88. package/dist/utilities/sorting.d.ts +43 -0
  89. package/dist/utilities/sorting.d.ts.map +1 -0
  90. package/dist/utilities/sorting.js +51 -0
  91. package/dist/utilities/time.d.ts +43 -0
  92. package/dist/utilities/time.d.ts.map +1 -0
  93. package/dist/utilities/time.js +52 -0
  94. package/dist/utilities/validation.d.ts +57 -0
  95. package/dist/utilities/validation.d.ts.map +1 -0
  96. package/dist/utilities/validation.js +68 -0
  97. package/package.json +1 -1
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /**
3
+ * Banking-related business constants
4
+ */
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
+ // Bank account types
8
+ exports.BANK_ACCOUNT_TYPE = {
9
+ CHECKING: 'CHECKING',
10
+ SAVINGS: 'SAVINGS',
11
+ BUSINESS: 'BUSINESS',
12
+ INVESTMENT: 'INVESTMENT',
13
+ OTHER: 'OTHER',
14
+ };
15
+ exports.BANK_ACCOUNT_TYPE_LABELS = {
16
+ [exports.BANK_ACCOUNT_TYPE.CHECKING]: 'Checking Account',
17
+ [exports.BANK_ACCOUNT_TYPE.SAVINGS]: 'Savings Account',
18
+ [exports.BANK_ACCOUNT_TYPE.BUSINESS]: 'Business Account',
19
+ [exports.BANK_ACCOUNT_TYPE.INVESTMENT]: 'Investment Account',
20
+ [exports.BANK_ACCOUNT_TYPE.OTHER]: 'Other',
21
+ };
22
+ // Banking institutions (Australia-focused)
23
+ exports.BANKING_INSTITUTION = {
24
+ // Big Four
25
+ CBA: 'CBA',
26
+ ANZ: 'ANZ',
27
+ NAB: 'NAB',
28
+ WESTPAC: 'WESTPAC',
29
+ // Other major banks
30
+ MACQUARIE: 'MACQUARIE',
31
+ ING: 'ING',
32
+ BENDIGO: 'BENDIGO',
33
+ SUNCORP: 'SUNCORP',
34
+ // Other
35
+ OTHER: 'OTHER',
36
+ };
37
+ exports.BANKING_INSTITUTION_LABELS = {
38
+ [exports.BANKING_INSTITUTION.CBA]: 'Commonwealth Bank',
39
+ [exports.BANKING_INSTITUTION.ANZ]: 'ANZ Bank',
40
+ [exports.BANKING_INSTITUTION.NAB]: 'National Australia Bank',
41
+ [exports.BANKING_INSTITUTION.WESTPAC]: 'Westpac',
42
+ [exports.BANKING_INSTITUTION.MACQUARIE]: 'Macquarie Bank',
43
+ [exports.BANKING_INSTITUTION.ING]: 'ING Australia',
44
+ [exports.BANKING_INSTITUTION.BENDIGO]: 'Bendigo Bank',
45
+ [exports.BANKING_INSTITUTION.SUNCORP]: 'Suncorp Bank',
46
+ [exports.BANKING_INSTITUTION.OTHER]: 'Other',
47
+ };
48
+ // Account verification methods
49
+ exports.VERIFICATION_METHOD = {
50
+ MICRO_DEPOSIT: 'MICRO_DEPOSIT',
51
+ INSTANT: 'INSTANT',
52
+ MANUAL: 'MANUAL',
53
+ DOCUMENT: 'DOCUMENT',
54
+ };
55
+ exports.VERIFICATION_METHOD_LABELS = {
56
+ [exports.VERIFICATION_METHOD.MICRO_DEPOSIT]: 'Micro Deposit',
57
+ [exports.VERIFICATION_METHOD.INSTANT]: 'Instant Verification',
58
+ [exports.VERIFICATION_METHOD.MANUAL]: 'Manual Verification',
59
+ [exports.VERIFICATION_METHOD.DOCUMENT]: 'Document Verification',
60
+ };
61
+ // BSB validation (Australian Bank State Branch)
62
+ exports.BSB_VALIDATION = {
63
+ LENGTH: 6,
64
+ PATTERN: /^\d{6}$/,
65
+ FORMAT_PATTERN: /^\d{3}-?\d{3}$/,
66
+ };
67
+ // Account number validation
68
+ exports.ACCOUNT_NUMBER_VALIDATION = {
69
+ MIN_LENGTH: 4,
70
+ MAX_LENGTH: 10,
71
+ PATTERN: /^\d{4,10}$/,
72
+ };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Document-related business constants
3
+ */
4
+ export declare const DOCUMENT_TYPE: {
5
+ readonly MDA: "MDA";
6
+ readonly SOA: "SOA";
7
+ readonly AGREEMENT: "AGREEMENT";
8
+ readonly STATEMENT: "STATEMENT";
9
+ readonly REPORT: "REPORT";
10
+ readonly CONFIRMATION: "CONFIRMATION";
11
+ readonly TAX_DOCUMENT: "TAX_DOCUMENT";
12
+ readonly OTHER: "OTHER";
13
+ };
14
+ export type DocumentType = typeof DOCUMENT_TYPE[keyof typeof DOCUMENT_TYPE];
15
+ export declare const DOCUMENT_TYPE_LABELS: Record<DocumentType, string>;
16
+ export declare const DOCUMENT_CATEGORY: {
17
+ readonly ONBOARDING: "ONBOARDING";
18
+ readonly ACCOUNT: "ACCOUNT";
19
+ readonly TRADING: "TRADING";
20
+ readonly TAX: "TAX";
21
+ readonly COMPLIANCE: "COMPLIANCE";
22
+ readonly GENERAL: "GENERAL";
23
+ };
24
+ export type DocumentCategory = typeof DOCUMENT_CATEGORY[keyof typeof DOCUMENT_CATEGORY];
25
+ export declare const DOCUMENT_CATEGORY_LABELS: Record<DocumentCategory, string>;
26
+ export declare const DOCUMENT_FORMAT: {
27
+ readonly PDF: "PDF";
28
+ readonly DOCX: "DOCX";
29
+ readonly CSV: "CSV";
30
+ readonly XLSX: "XLSX";
31
+ };
32
+ export type DocumentFormat = typeof DOCUMENT_FORMAT[keyof typeof DOCUMENT_FORMAT];
33
+ export declare const DOCUMENT_MIME_TYPES: Record<DocumentFormat, string>;
34
+ //# sourceMappingURL=documents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../src/business/documents.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CASpD,CAAC;AAGX,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAExF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAO5D,CAAC;AAGX,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAGlF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKrD,CAAC"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /**
3
+ * Document-related business constants
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DOCUMENT_MIME_TYPES = exports.DOCUMENT_FORMAT = exports.DOCUMENT_CATEGORY_LABELS = exports.DOCUMENT_CATEGORY = exports.DOCUMENT_TYPE_LABELS = exports.DOCUMENT_TYPE = void 0;
7
+ // Document types
8
+ exports.DOCUMENT_TYPE = {
9
+ MDA: 'MDA',
10
+ SOA: 'SOA',
11
+ AGREEMENT: 'AGREEMENT',
12
+ STATEMENT: 'STATEMENT',
13
+ REPORT: 'REPORT',
14
+ CONFIRMATION: 'CONFIRMATION',
15
+ TAX_DOCUMENT: 'TAX_DOCUMENT',
16
+ OTHER: 'OTHER',
17
+ };
18
+ exports.DOCUMENT_TYPE_LABELS = {
19
+ [exports.DOCUMENT_TYPE.MDA]: 'Managed Discretionary Account',
20
+ [exports.DOCUMENT_TYPE.SOA]: 'Statement of Advice',
21
+ [exports.DOCUMENT_TYPE.AGREEMENT]: 'Agreement',
22
+ [exports.DOCUMENT_TYPE.STATEMENT]: 'Statement',
23
+ [exports.DOCUMENT_TYPE.REPORT]: 'Report',
24
+ [exports.DOCUMENT_TYPE.CONFIRMATION]: 'Confirmation',
25
+ [exports.DOCUMENT_TYPE.TAX_DOCUMENT]: 'Tax Document',
26
+ [exports.DOCUMENT_TYPE.OTHER]: 'Other',
27
+ };
28
+ // Document categories
29
+ exports.DOCUMENT_CATEGORY = {
30
+ ONBOARDING: 'ONBOARDING',
31
+ ACCOUNT: 'ACCOUNT',
32
+ TRADING: 'TRADING',
33
+ TAX: 'TAX',
34
+ COMPLIANCE: 'COMPLIANCE',
35
+ GENERAL: 'GENERAL',
36
+ };
37
+ exports.DOCUMENT_CATEGORY_LABELS = {
38
+ [exports.DOCUMENT_CATEGORY.ONBOARDING]: 'Onboarding',
39
+ [exports.DOCUMENT_CATEGORY.ACCOUNT]: 'Account',
40
+ [exports.DOCUMENT_CATEGORY.TRADING]: 'Trading',
41
+ [exports.DOCUMENT_CATEGORY.TAX]: 'Tax',
42
+ [exports.DOCUMENT_CATEGORY.COMPLIANCE]: 'Compliance',
43
+ [exports.DOCUMENT_CATEGORY.GENERAL]: 'General',
44
+ };
45
+ // Document formats
46
+ exports.DOCUMENT_FORMAT = {
47
+ PDF: 'PDF',
48
+ DOCX: 'DOCX',
49
+ CSV: 'CSV',
50
+ XLSX: 'XLSX',
51
+ };
52
+ // Document mime types
53
+ exports.DOCUMENT_MIME_TYPES = {
54
+ [exports.DOCUMENT_FORMAT.PDF]: 'application/pdf',
55
+ [exports.DOCUMENT_FORMAT.DOCX]: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
56
+ [exports.DOCUMENT_FORMAT.CSV]: 'text/csv',
57
+ [exports.DOCUMENT_FORMAT.XLSX]: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
58
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Business domain constants
3
+ */
4
+ export * from './status';
5
+ export * from './accounts';
6
+ export * from './documents';
7
+ export * from './investments';
8
+ export * from './banking';
9
+ export * from './trading';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /**
3
+ * Business domain constants
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
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
+ __exportStar(require("./status"), exports);
21
+ __exportStar(require("./accounts"), exports);
22
+ __exportStar(require("./documents"), exports);
23
+ __exportStar(require("./investments"), exports);
24
+ __exportStar(require("./banking"), exports);
25
+ __exportStar(require("./trading"), exports);
@@ -0,0 +1,87 @@
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
@@ -0,0 +1 @@
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,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAE/E,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,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE3F,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,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEpG,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,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEjG,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"}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ /**
3
+ * Investment preference constants
4
+ * These constants match the values used in Blueberry frontend
5
+ */
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
+ // Investment risk tolerance
9
+ exports.RISK_TOLERANCE = {
10
+ LOW: 'low',
11
+ MEDIUM: 'medium',
12
+ HIGH: 'high',
13
+ };
14
+ exports.RISK_TOLERANCE_LABELS = {
15
+ [exports.RISK_TOLERANCE.LOW]: 'Low',
16
+ [exports.RISK_TOLERANCE.MEDIUM]: 'Medium',
17
+ [exports.RISK_TOLERANCE.HIGH]: 'High',
18
+ };
19
+ // Legacy risk tolerance constants (for backward compatibility if needed)
20
+ exports.RISK_TOLERANCE_LOW = exports.RISK_TOLERANCE.LOW;
21
+ exports.RISK_TOLERANCE_MEDIUM = exports.RISK_TOLERANCE.MEDIUM;
22
+ exports.RISK_TOLERANCE_HIGH = exports.RISK_TOLERANCE.HIGH;
23
+ exports.RISK_TOLERANCE_LABEL_LOW = exports.RISK_TOLERANCE_LABELS[exports.RISK_TOLERANCE.LOW];
24
+ exports.RISK_TOLERANCE_LABEL_MEDIUM = exports.RISK_TOLERANCE_LABELS[exports.RISK_TOLERANCE.MEDIUM];
25
+ exports.RISK_TOLERANCE_LABEL_HIGH = exports.RISK_TOLERANCE_LABELS[exports.RISK_TOLERANCE.HIGH];
26
+ // Investment horizon
27
+ exports.INVESTMENT_HORIZON = {
28
+ SHORT: 'short',
29
+ MEDIUM: 'medium',
30
+ LONG: 'long',
31
+ };
32
+ exports.INVESTMENT_HORIZON_LABELS = {
33
+ [exports.INVESTMENT_HORIZON.SHORT]: 'Short-term (0–3 yrs)',
34
+ [exports.INVESTMENT_HORIZON.MEDIUM]: 'Medium-term (3–7 yrs)',
35
+ [exports.INVESTMENT_HORIZON.LONG]: 'Long-term (7+ yrs)',
36
+ };
37
+ // Legacy investment horizon constants (for backward compatibility if needed)
38
+ exports.INVESTMENT_HORIZON_SHORT = exports.INVESTMENT_HORIZON.SHORT;
39
+ exports.INVESTMENT_HORIZON_MEDIUM = exports.INVESTMENT_HORIZON.MEDIUM;
40
+ exports.INVESTMENT_HORIZON_LONG = exports.INVESTMENT_HORIZON.LONG;
41
+ exports.INVESTMENT_HORIZON_LABEL_SHORT = exports.INVESTMENT_HORIZON_LABELS[exports.INVESTMENT_HORIZON.SHORT];
42
+ exports.INVESTMENT_HORIZON_LABEL_MEDIUM = exports.INVESTMENT_HORIZON_LABELS[exports.INVESTMENT_HORIZON.MEDIUM];
43
+ exports.INVESTMENT_HORIZON_LABEL_LONG = exports.INVESTMENT_HORIZON_LABELS[exports.INVESTMENT_HORIZON.LONG];
44
+ // Investment experience
45
+ exports.INVESTMENT_EXPERIENCE = {
46
+ NONE: 'none',
47
+ SOME: 'some',
48
+ EXTENSIVE: 'extensive',
49
+ };
50
+ exports.INVESTMENT_EXPERIENCE_LABELS = {
51
+ [exports.INVESTMENT_EXPERIENCE.NONE]: 'No experience',
52
+ [exports.INVESTMENT_EXPERIENCE.SOME]: 'Some experience',
53
+ [exports.INVESTMENT_EXPERIENCE.EXTENSIVE]: 'Extensive',
54
+ };
55
+ // Legacy investment experience constants (for backward compatibility if needed)
56
+ exports.INVESTMENT_EXPERIENCE_NONE = exports.INVESTMENT_EXPERIENCE.NONE;
57
+ exports.INVESTMENT_EXPERIENCE_SOME = exports.INVESTMENT_EXPERIENCE.SOME;
58
+ exports.INVESTMENT_EXPERIENCE_EXTENSIVE = exports.INVESTMENT_EXPERIENCE.EXTENSIVE;
59
+ exports.INVESTMENT_EXPERIENCE_LABEL_NONE = exports.INVESTMENT_EXPERIENCE_LABELS[exports.INVESTMENT_EXPERIENCE.NONE];
60
+ exports.INVESTMENT_EXPERIENCE_LABEL_SOME = exports.INVESTMENT_EXPERIENCE_LABELS[exports.INVESTMENT_EXPERIENCE.SOME];
61
+ exports.INVESTMENT_EXPERIENCE_LABEL_EXTENSIVE = exports.INVESTMENT_EXPERIENCE_LABELS[exports.INVESTMENT_EXPERIENCE.EXTENSIVE];
62
+ // Investment objectives (keeping these as they weren't in Blueberry's portfolios constants)
63
+ exports.INVESTMENT_OBJECTIVE = {
64
+ CAPITAL_PRESERVATION: 'CAPITAL_PRESERVATION',
65
+ INCOME: 'INCOME',
66
+ BALANCED: 'BALANCED',
67
+ GROWTH: 'GROWTH',
68
+ AGGRESSIVE_GROWTH: 'AGGRESSIVE_GROWTH',
69
+ };
70
+ exports.INVESTMENT_OBJECTIVE_LABELS = {
71
+ [exports.INVESTMENT_OBJECTIVE.CAPITAL_PRESERVATION]: 'Capital Preservation',
72
+ [exports.INVESTMENT_OBJECTIVE.INCOME]: 'Income Generation',
73
+ [exports.INVESTMENT_OBJECTIVE.BALANCED]: 'Balanced',
74
+ [exports.INVESTMENT_OBJECTIVE.GROWTH]: 'Growth',
75
+ [exports.INVESTMENT_OBJECTIVE.AGGRESSIVE_GROWTH]: 'Aggressive Growth',
76
+ };
77
+ // Options for forms
78
+ exports.RISK_TOLERANCE_OPTIONS = [
79
+ { value: exports.RISK_TOLERANCE.LOW, label: exports.RISK_TOLERANCE_LABELS[exports.RISK_TOLERANCE.LOW] },
80
+ { value: exports.RISK_TOLERANCE.MEDIUM, label: exports.RISK_TOLERANCE_LABELS[exports.RISK_TOLERANCE.MEDIUM] },
81
+ { value: exports.RISK_TOLERANCE.HIGH, label: exports.RISK_TOLERANCE_LABELS[exports.RISK_TOLERANCE.HIGH] },
82
+ ];
83
+ exports.INVESTMENT_HORIZON_OPTIONS = [
84
+ { value: exports.INVESTMENT_HORIZON.SHORT, label: exports.INVESTMENT_HORIZON_LABELS[exports.INVESTMENT_HORIZON.SHORT] },
85
+ { value: exports.INVESTMENT_HORIZON.MEDIUM, label: exports.INVESTMENT_HORIZON_LABELS[exports.INVESTMENT_HORIZON.MEDIUM] },
86
+ { value: exports.INVESTMENT_HORIZON.LONG, label: exports.INVESTMENT_HORIZON_LABELS[exports.INVESTMENT_HORIZON.LONG] },
87
+ ];
88
+ exports.INVESTMENT_EXPERIENCE_OPTIONS = [
89
+ { value: exports.INVESTMENT_EXPERIENCE.NONE, label: exports.INVESTMENT_EXPERIENCE_LABELS[exports.INVESTMENT_EXPERIENCE.NONE] },
90
+ { value: exports.INVESTMENT_EXPERIENCE.SOME, label: exports.INVESTMENT_EXPERIENCE_LABELS[exports.INVESTMENT_EXPERIENCE.SOME] },
91
+ { value: exports.INVESTMENT_EXPERIENCE.EXTENSIVE, label: exports.INVESTMENT_EXPERIENCE_LABELS[exports.INVESTMENT_EXPERIENCE.EXTENSIVE] },
92
+ ];
93
+ exports.INVESTMENT_OBJECTIVE_OPTIONS = Object.entries(exports.INVESTMENT_OBJECTIVE_LABELS).map(([value, label]) => ({
94
+ value,
95
+ label,
96
+ }));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Bank account status constants
3
+ * These constants should match the backend constants in bilberry/banks/constants.py
4
+ */
5
+ export declare const BANK_ACCOUNT_STATUS: {
6
+ readonly PRIMARY: "PRIMARY";
7
+ readonly VERIFIED: "VERIFIED";
8
+ readonly UNVERIFIED: "UNVERIFIED";
9
+ readonly INACTIVE: "INACTIVE";
10
+ };
11
+ export type BankAccountStatus = typeof BANK_ACCOUNT_STATUS[keyof typeof BANK_ACCOUNT_STATUS];
12
+ export declare const BANK_ACCOUNT_STATUS_LABELS: Record<BankAccountStatus, string>;
13
+ //# sourceMappingURL=banks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banks.d.ts","sourceRoot":"","sources":["../../../src/business/status/banks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,mBAAmB,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAG7F,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAK/D,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * Bank account status constants
4
+ * These constants should match the backend constants in bilberry/banks/constants.py
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.BANK_ACCOUNT_STATUS_LABELS = exports.BANK_ACCOUNT_STATUS = void 0;
8
+ exports.BANK_ACCOUNT_STATUS = {
9
+ PRIMARY: 'PRIMARY',
10
+ VERIFIED: 'VERIFIED',
11
+ UNVERIFIED: 'UNVERIFIED',
12
+ INACTIVE: 'INACTIVE',
13
+ };
14
+ // Bank account status labels for UI display
15
+ exports.BANK_ACCOUNT_STATUS_LABELS = {
16
+ [exports.BANK_ACCOUNT_STATUS.PRIMARY]: 'Primary',
17
+ [exports.BANK_ACCOUNT_STATUS.VERIFIED]: 'Verified',
18
+ [exports.BANK_ACCOUNT_STATUS.UNVERIFIED]: 'Unverified',
19
+ [exports.BANK_ACCOUNT_STATUS.INACTIVE]: 'Inactive',
20
+ };
@@ -0,0 +1,16 @@
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_BUY: "TRADE_BUY";
9
+ readonly TRADE_SELL: "TRADE_SELL";
10
+ readonly FEE: "FEE";
11
+ readonly DIVIDEND: "DIVIDEND";
12
+ readonly INTEREST: "INTEREST";
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
+ //# sourceMappingURL=cash-accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cash-accounts.d.ts","sourceRoot":"","sources":["../../../src/business/status/cash-accounts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;CAQhC,CAAC;AAEX,MAAM,MAAM,0BAA0B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAG1H,eAAO,MAAM,oCAAoC,EAAE,MAAM,CAAC,0BAA0B,EAAE,MAAM,CAQlF,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /**
3
+ * Cash account transaction status constants
4
+ * These constants should match the backend constants in bilberry/cash_accounts/constants.py
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.CASH_ACCOUNT_TRANSACTION_TYPE_LABELS = exports.CASH_ACCOUNT_TRANSACTION_TYPE = void 0;
8
+ exports.CASH_ACCOUNT_TRANSACTION_TYPE = {
9
+ DEPOSIT: 'DEPOSIT',
10
+ WITHDRAWAL: 'WITHDRAWAL',
11
+ TRADE_BUY: 'TRADE_BUY',
12
+ TRADE_SELL: 'TRADE_SELL',
13
+ FEE: 'FEE',
14
+ DIVIDEND: 'DIVIDEND',
15
+ INTEREST: 'INTEREST',
16
+ };
17
+ // Transaction type labels for UI display
18
+ exports.CASH_ACCOUNT_TRANSACTION_TYPE_LABELS = {
19
+ [exports.CASH_ACCOUNT_TRANSACTION_TYPE.DEPOSIT]: 'Deposit',
20
+ [exports.CASH_ACCOUNT_TRANSACTION_TYPE.WITHDRAWAL]: 'Withdrawal',
21
+ [exports.CASH_ACCOUNT_TRANSACTION_TYPE.TRADE_BUY]: 'Buy Trade',
22
+ [exports.CASH_ACCOUNT_TRANSACTION_TYPE.TRADE_SELL]: 'Sell Trade',
23
+ [exports.CASH_ACCOUNT_TRANSACTION_TYPE.FEE]: 'Fee',
24
+ [exports.CASH_ACCOUNT_TRANSACTION_TYPE.DIVIDEND]: 'Dividend',
25
+ [exports.CASH_ACCOUNT_TRANSACTION_TYPE.INTEREST]: 'Interest',
26
+ };
@@ -0,0 +1,13 @@
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: {
6
+ readonly PENDING: "PENDING";
7
+ readonly GENERATED: "GENERATED";
8
+ readonly SIGNED: "SIGNED";
9
+ readonly EXPIRED: "EXPIRED";
10
+ };
11
+ export type DocumentStatus = typeof DOCUMENT_STATUS[keyof typeof DOCUMENT_STATUS];
12
+ export declare const DOCUMENT_STATUS_LABELS: Record<DocumentStatus, string>;
13
+ //# sourceMappingURL=documents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../../src/business/status/documents.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAGlF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKxD,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * Document status constants
4
+ * These constants should match the backend constants in bilberry/documents/constants.py
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.DOCUMENT_STATUS_LABELS = exports.DOCUMENT_STATUS = void 0;
8
+ exports.DOCUMENT_STATUS = {
9
+ PENDING: 'PENDING',
10
+ GENERATED: 'GENERATED',
11
+ SIGNED: 'SIGNED',
12
+ EXPIRED: 'EXPIRED',
13
+ };
14
+ // Document status labels for UI display
15
+ exports.DOCUMENT_STATUS_LABELS = {
16
+ [exports.DOCUMENT_STATUS.PENDING]: 'Pending',
17
+ [exports.DOCUMENT_STATUS.GENERATED]: 'Generated',
18
+ [exports.DOCUMENT_STATUS.SIGNED]: 'Signed',
19
+ [exports.DOCUMENT_STATUS.EXPIRED]: 'Expired',
20
+ };
@@ -0,0 +1,11 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /**
3
+ * All status constants across domains
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
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
+ __exportStar(require("./withdrawals"), exports);
21
+ __exportStar(require("./trades"), exports);
22
+ __exportStar(require("./documents"), exports);
23
+ __exportStar(require("./banks"), exports);
24
+ __exportStar(require("./instruments"), exports);
25
+ __exportStar(require("./portfolios"), exports);
26
+ __exportStar(require("./cash-accounts"), exports);
@@ -0,0 +1,22 @@
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 type InstrumentStatus = typeof INSTRUMENT_STATUS[keyof typeof INSTRUMENT_STATUS];
12
+ export declare const INSTRUMENT_STATUS_LABELS: Record<InstrumentStatus, string>;
13
+ export declare const TRADING_STATUS: {
14
+ readonly TRADING: "TRADING";
15
+ readonly HALTED: "HALTED";
16
+ readonly CLOSED: "CLOSED";
17
+ readonly PRE_MARKET: "PRE_MARKET";
18
+ readonly AFTER_HOURS: "AFTER_HOURS";
19
+ };
20
+ export type TradingStatus = typeof TRADING_STATUS[keyof typeof TRADING_STATUS];
21
+ export declare const TRADING_STATUS_LABELS: Record<TradingStatus, string>;
22
+ //# sourceMappingURL=instruments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruments.d.ts","sourceRoot":"","sources":["../../../src/business/status/instruments.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAGxF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAK5D,CAAC;AAGX,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAE/E,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAMtD,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * Instrument and trading status constants
4
+ * These constants should match the backend constants in bilberry/instruments/constants.py
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TRADING_STATUS_LABELS = exports.TRADING_STATUS = exports.INSTRUMENT_STATUS_LABELS = exports.INSTRUMENT_STATUS = void 0;
8
+ exports.INSTRUMENT_STATUS = {
9
+ ACTIVE: 'ACTIVE',
10
+ INACTIVE: 'INACTIVE',
11
+ DELISTED: 'DELISTED',
12
+ SUSPENDED: 'SUSPENDED',
13
+ };
14
+ // Instrument status labels for UI display
15
+ exports.INSTRUMENT_STATUS_LABELS = {
16
+ [exports.INSTRUMENT_STATUS.ACTIVE]: 'Active',
17
+ [exports.INSTRUMENT_STATUS.INACTIVE]: 'Inactive',
18
+ [exports.INSTRUMENT_STATUS.DELISTED]: 'Delisted',
19
+ [exports.INSTRUMENT_STATUS.SUSPENDED]: 'Suspended',
20
+ };
21
+ // Trading status
22
+ exports.TRADING_STATUS = {
23
+ TRADING: 'TRADING',
24
+ HALTED: 'HALTED',
25
+ CLOSED: 'CLOSED',
26
+ PRE_MARKET: 'PRE_MARKET',
27
+ AFTER_HOURS: 'AFTER_HOURS',
28
+ };
29
+ exports.TRADING_STATUS_LABELS = {
30
+ [exports.TRADING_STATUS.TRADING]: 'Trading',
31
+ [exports.TRADING_STATUS.HALTED]: 'Halted',
32
+ [exports.TRADING_STATUS.CLOSED]: 'Closed',
33
+ [exports.TRADING_STATUS.PRE_MARKET]: 'Pre-Market',
34
+ [exports.TRADING_STATUS.AFTER_HOURS]: 'After Hours',
35
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Portfolio status constants
3
+ * These constants should match the backend constants in bilberry/portfolios/constants.py
4
+ */
5
+ export declare const PORTFOLIO_STATUS: {
6
+ readonly ACTIVE: "ACTIVE";
7
+ readonly INACTIVE: "INACTIVE";
8
+ readonly CLOSED: "CLOSED";
9
+ };
10
+ export type PortfolioStatus = typeof PORTFOLIO_STATUS[keyof typeof PORTFOLIO_STATUS];
11
+ export declare const PORTFOLIO_STATUS_LABELS: Record<PortfolioStatus, string>;
12
+ //# sourceMappingURL=portfolios.d.ts.map