@cranberry-money/shared-constants 4.5.0 → 4.7.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.
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Bank account type constants
3
+ * Note: Bank account status constants are in ./status/banks.ts
4
+ */
5
+ export declare const BANK_ACCOUNT_CATEGORY_SAVINGS = "savings";
6
+ export declare const BANK_ACCOUNT_CATEGORY_CHECKING = "checking";
7
+ export declare const BANK_ACCOUNT_CATEGORY_TRANSACTION = "transaction";
8
+ export declare const BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT = "term_deposit";
9
+ export declare const BANK_ACCOUNT_CATEGORY_OFFSET = "offset";
10
+ export declare const BANK_ACCOUNT_CATEGORIES: readonly ["savings", "checking", "transaction", "term_deposit", "offset"];
11
+ export type BankAccountCategory = typeof BANK_ACCOUNT_CATEGORIES[number];
12
+ export declare const BANK_ACCOUNT_CATEGORY_LABELS: {
13
+ readonly savings: "Savings Account";
14
+ readonly checking: "Checking Account";
15
+ readonly transaction: "Transaction Account";
16
+ readonly term_deposit: "Term Deposit";
17
+ readonly offset: "Offset Account";
18
+ };
19
+ export declare const BANK_ACCOUNT_CATEGORY_DESCRIPTIONS: {
20
+ readonly savings: "Interest-bearing savings account";
21
+ readonly checking: "Everyday checking account";
22
+ readonly transaction: "Daily transaction account";
23
+ readonly term_deposit: "Fixed-term deposit account";
24
+ readonly offset: "Mortgage offset account";
25
+ };
26
+ export declare const BANK_ACCOUNT_CATEGORY_OPTIONS: {
27
+ value: "savings" | "checking" | "transaction" | "term_deposit" | "offset";
28
+ label: "Transaction Account" | "Savings Account" | "Checking Account" | "Term Deposit" | "Offset Account";
29
+ description: "Interest-bearing savings account" | "Everyday checking account" | "Daily transaction account" | "Fixed-term deposit account" | "Mortgage offset account";
30
+ }[];
31
+ export interface BankAccountCategoryInfo {
32
+ readonly code: BankAccountCategory;
33
+ readonly name: string;
34
+ readonly description: string;
35
+ }
36
+ export declare const BANK_ACCOUNT_CATEGORIES_INFO: readonly BankAccountCategoryInfo[];
37
+ export declare const getBankAccountCategoryInfo: (code: BankAccountCategory) => BankAccountCategoryInfo | undefined;
38
+ export interface AccountTypeInfo extends BankAccountCategoryInfo {
39
+ }
40
+ export declare const ACCOUNT_TYPES: readonly BankAccountCategoryInfo[];
41
+ export declare const getAccountTypeInfo: (code: BankAccountCategory) => BankAccountCategoryInfo | undefined;
42
+ export declare const BANK_ACCOUNT_TYPE_SAVINGS = "savings";
43
+ export declare const BANK_ACCOUNT_TYPE_CHECKING = "checking";
44
+ export declare const BANK_ACCOUNT_TYPE_TRANSACTION = "transaction";
45
+ export declare const BANK_ACCOUNT_TYPE_TERM_DEPOSIT = "term_deposit";
46
+ export declare const BANK_ACCOUNT_TYPE_OFFSET = "offset";
47
+ export declare const BANK_ACCOUNT_TYPE_LABELS: {
48
+ readonly savings: "Savings Account";
49
+ readonly checking: "Checking Account";
50
+ readonly transaction: "Transaction Account";
51
+ readonly term_deposit: "Term Deposit";
52
+ readonly offset: "Offset Account";
53
+ };
54
+ export declare const BANK_ACCOUNT_TYPE_OPTIONS: {
55
+ value: "savings" | "checking" | "transaction" | "term_deposit" | "offset";
56
+ label: "Transaction Account" | "Savings Account" | "Checking Account" | "Term Deposit" | "Offset Account";
57
+ description: "Interest-bearing savings account" | "Everyday checking account" | "Daily transaction account" | "Fixed-term deposit account" | "Mortgage offset account";
58
+ }[];
59
+ export type BankAccountType = BankAccountCategory;
60
+ export declare const BANK_ACCOUNT_TYPE_LABEL_SAVINGS: "Savings Account";
61
+ export declare const BANK_ACCOUNT_TYPE_LABEL_CHECKING: "Checking Account";
62
+ export declare const BANK_ACCOUNT_TYPE_LABEL_TRANSACTION: "Transaction Account";
63
+ export declare const BANK_ACCOUNT_TYPE_LABEL_TERM_DEPOSIT: "Term Deposit";
64
+ export declare const BANK_ACCOUNT_TYPE_LABEL_OFFSET: "Offset Account";
65
+ export declare const BANK_ACCOUNT_TYPE_DESC_SAVINGS: "Interest-bearing savings account";
66
+ export declare const BANK_ACCOUNT_TYPE_DESC_CHECKING: "Everyday checking account";
67
+ export declare const BANK_ACCOUNT_TYPE_DESC_TRANSACTION: "Daily transaction account";
68
+ export declare const BANK_ACCOUNT_TYPE_DESC_TERM_DEPOSIT: "Fixed-term deposit account";
69
+ export declare const BANK_ACCOUNT_TYPE_DESC_OFFSET: "Mortgage offset account";
70
+ export type AccountType = BankAccountCategory;
71
+ //# sourceMappingURL=bank-accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bank-accounts.d.ts","sourceRoot":"","sources":["../../src/business/bank-accounts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,6BAA6B,YAAY,CAAC;AACvD,eAAO,MAAM,8BAA8B,aAAa,CAAC;AACzD,eAAO,MAAM,iCAAiC,gBAAgB,CAAC;AAC/D,eAAO,MAAM,kCAAkC,iBAAiB,CAAC;AACjE,eAAO,MAAM,4BAA4B,WAAW,CAAC;AAErD,eAAO,MAAM,uBAAuB,2EAM1B,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAGzE,eAAO,MAAM,4BAA4B;;;;;;CAM/B,CAAC;AAGX,eAAO,MAAM,kCAAkC;;;;;;CAMrC,CAAC;AAGX,eAAO,MAAM,6BAA6B;;;;GAIvC,CAAC;AAGJ,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAGD,eAAO,MAAM,4BAA4B,EAAE,SAAS,uBAAuB,EAIxE,CAAC;AAGJ,eAAO,MAAM,0BAA0B,GAAI,MAAM,mBAAmB,KAAG,uBAAuB,GAAG,SAEhG,CAAC;AAGF,MAAM,WAAW,eAAgB,SAAQ,uBAAuB;CAAG;AACnE,eAAO,MAAM,aAAa,oCAA+B,CAAC;AAC1D,eAAO,MAAM,kBAAkB,SAPkB,mBAAmB,KAAG,uBAAuB,GAAG,SAOrC,CAAC;AAG7D,eAAO,MAAM,yBAAyB,YAAgC,CAAC;AACvE,eAAO,MAAM,0BAA0B,aAAiC,CAAC;AACzE,eAAO,MAAM,6BAA6B,gBAAoC,CAAC;AAC/E,eAAO,MAAM,8BAA8B,iBAAqC,CAAC;AACjF,eAAO,MAAM,wBAAwB,WAA+B,CAAC;AAErE,eAAO,MAAM,wBAAwB;;;;;;CAA+B,CAAC;AACrE,eAAO,MAAM,yBAAyB;;;;GAAgC,CAAC;AACvE,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAElD,eAAO,MAAM,+BAA+B,mBAA8D,CAAC;AAC3G,eAAO,MAAM,gCAAgC,oBAA+D,CAAC;AAC7G,eAAO,MAAM,mCAAmC,uBAAkE,CAAC;AACnH,eAAO,MAAM,oCAAoC,gBAAmE,CAAC;AACrH,eAAO,MAAM,8BAA8B,kBAA6D,CAAC;AAEzG,eAAO,MAAM,8BAA8B,oCAAoE,CAAC;AAChH,eAAO,MAAM,+BAA+B,6BAAqE,CAAC;AAClH,eAAO,MAAM,kCAAkC,6BAAwE,CAAC;AACxH,eAAO,MAAM,mCAAmC,8BAAyE,CAAC;AAC1H,eAAO,MAAM,6BAA6B,2BAAmE,CAAC;AAC9G,MAAM,MAAM,WAAW,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ /**
3
+ * Bank account type constants
4
+ * Note: Bank account status constants are in ./status/banks.ts
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.BANK_ACCOUNT_TYPE_DESC_OFFSET = exports.BANK_ACCOUNT_TYPE_DESC_TERM_DEPOSIT = exports.BANK_ACCOUNT_TYPE_DESC_TRANSACTION = exports.BANK_ACCOUNT_TYPE_DESC_CHECKING = exports.BANK_ACCOUNT_TYPE_DESC_SAVINGS = exports.BANK_ACCOUNT_TYPE_LABEL_OFFSET = exports.BANK_ACCOUNT_TYPE_LABEL_TERM_DEPOSIT = exports.BANK_ACCOUNT_TYPE_LABEL_TRANSACTION = exports.BANK_ACCOUNT_TYPE_LABEL_CHECKING = exports.BANK_ACCOUNT_TYPE_LABEL_SAVINGS = exports.BANK_ACCOUNT_TYPE_OPTIONS = exports.BANK_ACCOUNT_TYPE_LABELS = exports.BANK_ACCOUNT_TYPE_OFFSET = exports.BANK_ACCOUNT_TYPE_TERM_DEPOSIT = exports.BANK_ACCOUNT_TYPE_TRANSACTION = exports.BANK_ACCOUNT_TYPE_CHECKING = exports.BANK_ACCOUNT_TYPE_SAVINGS = exports.getAccountTypeInfo = exports.ACCOUNT_TYPES = exports.getBankAccountCategoryInfo = exports.BANK_ACCOUNT_CATEGORIES_INFO = exports.BANK_ACCOUNT_CATEGORY_OPTIONS = exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS = exports.BANK_ACCOUNT_CATEGORY_LABELS = exports.BANK_ACCOUNT_CATEGORIES = exports.BANK_ACCOUNT_CATEGORY_OFFSET = exports.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT = exports.BANK_ACCOUNT_CATEGORY_TRANSACTION = exports.BANK_ACCOUNT_CATEGORY_CHECKING = exports.BANK_ACCOUNT_CATEGORY_SAVINGS = void 0;
8
+ // Bank Account Type constants
9
+ exports.BANK_ACCOUNT_CATEGORY_SAVINGS = 'savings';
10
+ exports.BANK_ACCOUNT_CATEGORY_CHECKING = 'checking';
11
+ exports.BANK_ACCOUNT_CATEGORY_TRANSACTION = 'transaction';
12
+ exports.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT = 'term_deposit';
13
+ exports.BANK_ACCOUNT_CATEGORY_OFFSET = 'offset';
14
+ exports.BANK_ACCOUNT_CATEGORIES = [
15
+ exports.BANK_ACCOUNT_CATEGORY_SAVINGS,
16
+ exports.BANK_ACCOUNT_CATEGORY_CHECKING,
17
+ exports.BANK_ACCOUNT_CATEGORY_TRANSACTION,
18
+ exports.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT,
19
+ exports.BANK_ACCOUNT_CATEGORY_OFFSET,
20
+ ];
21
+ // Bank Account Type labels
22
+ exports.BANK_ACCOUNT_CATEGORY_LABELS = {
23
+ [exports.BANK_ACCOUNT_CATEGORY_SAVINGS]: 'Savings Account',
24
+ [exports.BANK_ACCOUNT_CATEGORY_CHECKING]: 'Checking Account',
25
+ [exports.BANK_ACCOUNT_CATEGORY_TRANSACTION]: 'Transaction Account',
26
+ [exports.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT]: 'Term Deposit',
27
+ [exports.BANK_ACCOUNT_CATEGORY_OFFSET]: 'Offset Account',
28
+ };
29
+ // Bank Account Type descriptions
30
+ exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS = {
31
+ [exports.BANK_ACCOUNT_CATEGORY_SAVINGS]: 'Interest-bearing savings account',
32
+ [exports.BANK_ACCOUNT_CATEGORY_CHECKING]: 'Everyday checking account',
33
+ [exports.BANK_ACCOUNT_CATEGORY_TRANSACTION]: 'Daily transaction account',
34
+ [exports.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT]: 'Fixed-term deposit account',
35
+ [exports.BANK_ACCOUNT_CATEGORY_OFFSET]: 'Mortgage offset account',
36
+ };
37
+ // Bank Account Type options for forms with descriptions
38
+ exports.BANK_ACCOUNT_CATEGORY_OPTIONS = exports.BANK_ACCOUNT_CATEGORIES.map(type => ({
39
+ value: type,
40
+ label: exports.BANK_ACCOUNT_CATEGORY_LABELS[type],
41
+ description: exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS[type],
42
+ }));
43
+ // Available account types with display information
44
+ exports.BANK_ACCOUNT_CATEGORIES_INFO = exports.BANK_ACCOUNT_CATEGORIES.map(type => ({
45
+ code: type,
46
+ name: exports.BANK_ACCOUNT_CATEGORY_LABELS[type],
47
+ description: exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS[type],
48
+ }));
49
+ // Helper function to get account type info by code
50
+ const getBankAccountCategoryInfo = (code) => {
51
+ return exports.BANK_ACCOUNT_CATEGORIES_INFO.find((type) => type.code === code);
52
+ };
53
+ exports.getBankAccountCategoryInfo = getBankAccountCategoryInfo;
54
+ exports.ACCOUNT_TYPES = exports.BANK_ACCOUNT_CATEGORIES_INFO;
55
+ exports.getAccountTypeInfo = exports.getBankAccountCategoryInfo;
56
+ // Blueberry compatibility exports - individual constants
57
+ exports.BANK_ACCOUNT_TYPE_SAVINGS = exports.BANK_ACCOUNT_CATEGORY_SAVINGS;
58
+ exports.BANK_ACCOUNT_TYPE_CHECKING = exports.BANK_ACCOUNT_CATEGORY_CHECKING;
59
+ exports.BANK_ACCOUNT_TYPE_TRANSACTION = exports.BANK_ACCOUNT_CATEGORY_TRANSACTION;
60
+ exports.BANK_ACCOUNT_TYPE_TERM_DEPOSIT = exports.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT;
61
+ exports.BANK_ACCOUNT_TYPE_OFFSET = exports.BANK_ACCOUNT_CATEGORY_OFFSET;
62
+ exports.BANK_ACCOUNT_TYPE_LABELS = exports.BANK_ACCOUNT_CATEGORY_LABELS;
63
+ exports.BANK_ACCOUNT_TYPE_OPTIONS = exports.BANK_ACCOUNT_CATEGORY_OPTIONS;
64
+ exports.BANK_ACCOUNT_TYPE_LABEL_SAVINGS = exports.BANK_ACCOUNT_CATEGORY_LABELS[exports.BANK_ACCOUNT_CATEGORY_SAVINGS];
65
+ exports.BANK_ACCOUNT_TYPE_LABEL_CHECKING = exports.BANK_ACCOUNT_CATEGORY_LABELS[exports.BANK_ACCOUNT_CATEGORY_CHECKING];
66
+ exports.BANK_ACCOUNT_TYPE_LABEL_TRANSACTION = exports.BANK_ACCOUNT_CATEGORY_LABELS[exports.BANK_ACCOUNT_CATEGORY_TRANSACTION];
67
+ exports.BANK_ACCOUNT_TYPE_LABEL_TERM_DEPOSIT = exports.BANK_ACCOUNT_CATEGORY_LABELS[exports.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT];
68
+ exports.BANK_ACCOUNT_TYPE_LABEL_OFFSET = exports.BANK_ACCOUNT_CATEGORY_LABELS[exports.BANK_ACCOUNT_CATEGORY_OFFSET];
69
+ exports.BANK_ACCOUNT_TYPE_DESC_SAVINGS = exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS[exports.BANK_ACCOUNT_CATEGORY_SAVINGS];
70
+ exports.BANK_ACCOUNT_TYPE_DESC_CHECKING = exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS[exports.BANK_ACCOUNT_CATEGORY_CHECKING];
71
+ exports.BANK_ACCOUNT_TYPE_DESC_TRANSACTION = exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS[exports.BANK_ACCOUNT_CATEGORY_TRANSACTION];
72
+ exports.BANK_ACCOUNT_TYPE_DESC_TERM_DEPOSIT = exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS[exports.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT];
73
+ exports.BANK_ACCOUNT_TYPE_DESC_OFFSET = exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS[exports.BANK_ACCOUNT_CATEGORY_OFFSET];
@@ -5,6 +5,7 @@ export * from './status';
5
5
  export * from './accounts';
6
6
  export * from './documents';
7
7
  export * from './investments';
8
- export * from './banking';
8
+ export { BANKING_INSTITUTION, type BankingInstitution, BANKING_INSTITUTION_LABELS, VERIFICATION_METHOD, type VerificationMethod, VERIFICATION_METHOD_LABELS, BSB_VALIDATION, ACCOUNT_NUMBER_VALIDATION, } from './banking';
9
9
  export * from './trading';
10
+ export { BANK_ACCOUNT_CATEGORY_SAVINGS, BANK_ACCOUNT_CATEGORY_CHECKING, BANK_ACCOUNT_CATEGORY_TRANSACTION, BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT, BANK_ACCOUNT_CATEGORY_OFFSET, BANK_ACCOUNT_CATEGORIES, type BankAccountCategory, BANK_ACCOUNT_CATEGORY_LABELS, BANK_ACCOUNT_CATEGORY_DESCRIPTIONS, BANK_ACCOUNT_CATEGORY_OPTIONS, type BankAccountCategoryInfo, BANK_ACCOUNT_CATEGORIES_INFO, getBankAccountCategoryInfo, 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, type AccountTypeInfo, ACCOUNT_TYPES, getAccountTypeInfo, } from './bank-accounts';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/business/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/business/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAE9B,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,0BAA0B,EAC1B,cAAc,EACd,yBAAyB,GAC1B,MAAM,WAAW,CAAC;AACnB,cAAc,WAAW,CAAC;AAE1B,OAAO,EAEL,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,6BAA6B,EAC7B,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,0BAA0B,EAE1B,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,+BAA+B,EAC/B,gCAAgC,EAChC,mCAAmC,EACnC,oCAAoC,EACpC,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAC/B,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,KAAK,eAAe,EACpB,aAAa,EACb,kBAAkB,GACnB,MAAM,iBAAiB,CAAC"}
@@ -17,9 +17,51 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
17
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.getAccountTypeInfo = exports.ACCOUNT_TYPES = exports.BANK_ACCOUNT_TYPE_DESC_OFFSET = exports.BANK_ACCOUNT_TYPE_DESC_TERM_DEPOSIT = exports.BANK_ACCOUNT_TYPE_DESC_TRANSACTION = exports.BANK_ACCOUNT_TYPE_DESC_CHECKING = exports.BANK_ACCOUNT_TYPE_DESC_SAVINGS = exports.BANK_ACCOUNT_TYPE_LABEL_OFFSET = exports.BANK_ACCOUNT_TYPE_LABEL_TERM_DEPOSIT = exports.BANK_ACCOUNT_TYPE_LABEL_TRANSACTION = exports.BANK_ACCOUNT_TYPE_LABEL_CHECKING = exports.BANK_ACCOUNT_TYPE_LABEL_SAVINGS = exports.BANK_ACCOUNT_TYPE_OPTIONS = exports.BANK_ACCOUNT_TYPE_OFFSET = exports.BANK_ACCOUNT_TYPE_TERM_DEPOSIT = exports.BANK_ACCOUNT_TYPE_TRANSACTION = exports.BANK_ACCOUNT_TYPE_CHECKING = exports.BANK_ACCOUNT_TYPE_SAVINGS = exports.getBankAccountCategoryInfo = exports.BANK_ACCOUNT_CATEGORIES_INFO = exports.BANK_ACCOUNT_CATEGORY_OPTIONS = exports.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS = exports.BANK_ACCOUNT_CATEGORY_LABELS = exports.BANK_ACCOUNT_CATEGORIES = exports.BANK_ACCOUNT_CATEGORY_OFFSET = exports.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT = exports.BANK_ACCOUNT_CATEGORY_TRANSACTION = exports.BANK_ACCOUNT_CATEGORY_CHECKING = exports.BANK_ACCOUNT_CATEGORY_SAVINGS = exports.ACCOUNT_NUMBER_VALIDATION = exports.BSB_VALIDATION = exports.VERIFICATION_METHOD_LABELS = exports.VERIFICATION_METHOD = exports.BANKING_INSTITUTION_LABELS = exports.BANKING_INSTITUTION = void 0;
20
21
  __exportStar(require("./status"), exports);
21
22
  __exportStar(require("./accounts"), exports);
22
23
  __exportStar(require("./documents"), exports);
23
24
  __exportStar(require("./investments"), exports);
24
- __exportStar(require("./banking"), exports);
25
+ // Export banking constants except the conflicting ones
26
+ var banking_1 = require("./banking");
27
+ Object.defineProperty(exports, "BANKING_INSTITUTION", { enumerable: true, get: function () { return banking_1.BANKING_INSTITUTION; } });
28
+ Object.defineProperty(exports, "BANKING_INSTITUTION_LABELS", { enumerable: true, get: function () { return banking_1.BANKING_INSTITUTION_LABELS; } });
29
+ Object.defineProperty(exports, "VERIFICATION_METHOD", { enumerable: true, get: function () { return banking_1.VERIFICATION_METHOD; } });
30
+ Object.defineProperty(exports, "VERIFICATION_METHOD_LABELS", { enumerable: true, get: function () { return banking_1.VERIFICATION_METHOD_LABELS; } });
31
+ Object.defineProperty(exports, "BSB_VALIDATION", { enumerable: true, get: function () { return banking_1.BSB_VALIDATION; } });
32
+ Object.defineProperty(exports, "ACCOUNT_NUMBER_VALIDATION", { enumerable: true, get: function () { return banking_1.ACCOUNT_NUMBER_VALIDATION; } });
25
33
  __exportStar(require("./trading"), exports);
34
+ // Export bank-accounts with alias to avoid conflicts
35
+ var bank_accounts_1 = require("./bank-accounts");
36
+ // Re-export with specific names to avoid conflicts
37
+ Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_SAVINGS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_SAVINGS; } });
38
+ Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_CHECKING", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_CHECKING; } });
39
+ Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_TRANSACTION", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_TRANSACTION; } });
40
+ Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT; } });
41
+ Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_OFFSET", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_OFFSET; } });
42
+ Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORIES", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORIES; } });
43
+ Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_LABELS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_LABELS; } });
44
+ Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_DESCRIPTIONS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_DESCRIPTIONS; } });
45
+ Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORY_OPTIONS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORY_OPTIONS; } });
46
+ Object.defineProperty(exports, "BANK_ACCOUNT_CATEGORIES_INFO", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_CATEGORIES_INFO; } });
47
+ Object.defineProperty(exports, "getBankAccountCategoryInfo", { enumerable: true, get: function () { return bank_accounts_1.getBankAccountCategoryInfo; } });
48
+ // Legacy exports
49
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_SAVINGS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_SAVINGS; } });
50
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_CHECKING", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_CHECKING; } });
51
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_TRANSACTION", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_TRANSACTION; } });
52
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_TERM_DEPOSIT", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_TERM_DEPOSIT; } });
53
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_OFFSET", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_OFFSET; } });
54
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_OPTIONS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_OPTIONS; } });
55
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_LABEL_SAVINGS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_LABEL_SAVINGS; } });
56
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_LABEL_CHECKING", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_LABEL_CHECKING; } });
57
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_LABEL_TRANSACTION", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_LABEL_TRANSACTION; } });
58
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_LABEL_TERM_DEPOSIT", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_LABEL_TERM_DEPOSIT; } });
59
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_LABEL_OFFSET", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_LABEL_OFFSET; } });
60
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_SAVINGS", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_DESC_SAVINGS; } });
61
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_CHECKING", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_DESC_CHECKING; } });
62
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_TRANSACTION", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_DESC_TRANSACTION; } });
63
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_TERM_DEPOSIT", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_DESC_TERM_DEPOSIT; } });
64
+ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_OFFSET", { enumerable: true, get: function () { return bank_accounts_1.BANK_ACCOUNT_TYPE_DESC_OFFSET; } });
65
+ Object.defineProperty(exports, "ACCOUNT_TYPES", { enumerable: true, get: function () { return bank_accounts_1.ACCOUNT_TYPES; } });
66
+ Object.defineProperty(exports, "getAccountTypeInfo", { enumerable: true, get: function () { return bank_accounts_1.getAccountTypeInfo; } });
67
+ // Don't export the conflicting type aliases and BANK_ACCOUNT_TYPE_LABELS from bank-accounts
@@ -8,6 +8,16 @@ export declare const BANK_ACCOUNT_STATUS: {
8
8
  readonly UNVERIFIED: "UNVERIFIED";
9
9
  readonly INACTIVE: "INACTIVE";
10
10
  };
11
+ export declare const BANK_ACCOUNT_STATUS_VALUES: {
12
+ readonly PRIMARY: "primary";
13
+ readonly VERIFIED: "verified";
14
+ readonly UNVERIFIED: "unverified";
15
+ readonly INACTIVE: "inactive";
16
+ };
11
17
  export type BankAccountStatus = typeof BANK_ACCOUNT_STATUS[keyof typeof BANK_ACCOUNT_STATUS];
12
18
  export declare const BANK_ACCOUNT_STATUS_LABELS: Record<BankAccountStatus, string>;
19
+ export declare const BANK_ACCOUNT_STATUS_PRIMARY: "primary";
20
+ export declare const BANK_ACCOUNT_STATUS_VERIFIED: "verified";
21
+ export declare const BANK_ACCOUNT_STATUS_UNVERIFIED: "unverified";
22
+ export declare const BANK_ACCOUNT_STATUS_INACTIVE: "inactive";
13
23
  //# sourceMappingURL=banks.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"banks.d.ts","sourceRoot":"","sources":["../../../src/business/status/banks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC;AAGX,eAAO,MAAM,0BAA0B;;;;;CAK7B,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;AAGX,eAAO,MAAM,2BAA2B,WAAqC,CAAC;AAC9E,eAAO,MAAM,4BAA4B,YAAsC,CAAC;AAChF,eAAO,MAAM,8BAA8B,cAAwC,CAAC;AACpF,eAAO,MAAM,4BAA4B,YAAsC,CAAC"}
@@ -4,13 +4,20 @@
4
4
  * These constants should match the backend constants in bilberry/banks/constants.py
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.BANK_ACCOUNT_STATUS_LABELS = exports.BANK_ACCOUNT_STATUS = void 0;
7
+ exports.BANK_ACCOUNT_STATUS_INACTIVE = exports.BANK_ACCOUNT_STATUS_UNVERIFIED = exports.BANK_ACCOUNT_STATUS_VERIFIED = exports.BANK_ACCOUNT_STATUS_PRIMARY = exports.BANK_ACCOUNT_STATUS_LABELS = exports.BANK_ACCOUNT_STATUS_VALUES = exports.BANK_ACCOUNT_STATUS = void 0;
8
8
  exports.BANK_ACCOUNT_STATUS = {
9
9
  PRIMARY: 'PRIMARY',
10
10
  VERIFIED: 'VERIFIED',
11
11
  UNVERIFIED: 'UNVERIFIED',
12
12
  INACTIVE: 'INACTIVE',
13
13
  };
14
+ // Lowercase values for Blueberry compatibility
15
+ exports.BANK_ACCOUNT_STATUS_VALUES = {
16
+ PRIMARY: 'primary',
17
+ VERIFIED: 'verified',
18
+ UNVERIFIED: 'unverified',
19
+ INACTIVE: 'inactive',
20
+ };
14
21
  // Bank account status labels for UI display
15
22
  exports.BANK_ACCOUNT_STATUS_LABELS = {
16
23
  [exports.BANK_ACCOUNT_STATUS.PRIMARY]: 'Primary',
@@ -18,3 +25,8 @@ exports.BANK_ACCOUNT_STATUS_LABELS = {
18
25
  [exports.BANK_ACCOUNT_STATUS.UNVERIFIED]: 'Unverified',
19
26
  [exports.BANK_ACCOUNT_STATUS.INACTIVE]: 'Inactive',
20
27
  };
28
+ // Blueberry compatibility exports (lowercase values)
29
+ exports.BANK_ACCOUNT_STATUS_PRIMARY = exports.BANK_ACCOUNT_STATUS_VALUES.PRIMARY;
30
+ exports.BANK_ACCOUNT_STATUS_VERIFIED = exports.BANK_ACCOUNT_STATUS_VALUES.VERIFIED;
31
+ exports.BANK_ACCOUNT_STATUS_UNVERIFIED = exports.BANK_ACCOUNT_STATUS_VALUES.UNVERIFIED;
32
+ exports.BANK_ACCOUNT_STATUS_INACTIVE = exports.BANK_ACCOUNT_STATUS_VALUES.INACTIVE;
@@ -13,4 +13,15 @@ export declare const CASH_ACCOUNT_TRANSACTION_TYPE: {
13
13
  };
14
14
  export type CashAccountTransactionType = typeof CASH_ACCOUNT_TRANSACTION_TYPE[keyof typeof CASH_ACCOUNT_TRANSACTION_TYPE];
15
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>;
16
27
  //# sourceMappingURL=cash-accounts.d.ts.map
@@ -1 +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"}
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;AAGX,eAAO,MAAM,+BAA+B;;;;;;;;CAQlC,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,OAAO,+BAA+B,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC;AAGhI,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,4BAA4B,EAAE,MAAM,CAQtF,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * These constants should match the backend constants in bilberry/cash_accounts/constants.py
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.CASH_ACCOUNT_TRANSACTION_TYPE_LABELS = exports.CASH_ACCOUNT_TRANSACTION_TYPE = void 0;
7
+ exports.CASH_ACCOUNT_TRANSACTION_STATUS_LABELS = exports.CASH_ACCOUNT_TRANSACTION_STATUS = exports.CASH_ACCOUNT_TRANSACTION_TYPE_LABELS = exports.CASH_ACCOUNT_TRANSACTION_TYPE = void 0;
8
8
  exports.CASH_ACCOUNT_TRANSACTION_TYPE = {
9
9
  DEPOSIT: 'DEPOSIT',
10
10
  WITHDRAWAL: 'WITHDRAWAL',
@@ -24,3 +24,23 @@ exports.CASH_ACCOUNT_TRANSACTION_TYPE_LABELS = {
24
24
  [exports.CASH_ACCOUNT_TRANSACTION_TYPE.DIVIDEND]: 'Dividend',
25
25
  [exports.CASH_ACCOUNT_TRANSACTION_TYPE.INTEREST]: 'Interest',
26
26
  };
27
+ // Cash account transaction status constants
28
+ exports.CASH_ACCOUNT_TRANSACTION_STATUS = {
29
+ PENDING: 'PENDING',
30
+ PROCESSED: 'PROCESSED',
31
+ FAILED: 'FAILED',
32
+ CANCELLED: 'CANCELLED',
33
+ REVERSED: 'REVERSED',
34
+ ON_HOLD: 'ON_HOLD',
35
+ REFUNDED: 'REFUNDED',
36
+ };
37
+ // Transaction status labels for UI display
38
+ exports.CASH_ACCOUNT_TRANSACTION_STATUS_LABELS = {
39
+ [exports.CASH_ACCOUNT_TRANSACTION_STATUS.PENDING]: 'Pending',
40
+ [exports.CASH_ACCOUNT_TRANSACTION_STATUS.PROCESSED]: 'Processed',
41
+ [exports.CASH_ACCOUNT_TRANSACTION_STATUS.FAILED]: 'Failed',
42
+ [exports.CASH_ACCOUNT_TRANSACTION_STATUS.CANCELLED]: 'Cancelled',
43
+ [exports.CASH_ACCOUNT_TRANSACTION_STATUS.REVERSED]: 'Reversed',
44
+ [exports.CASH_ACCOUNT_TRANSACTION_STATUS.ON_HOLD]: 'On Hold',
45
+ [exports.CASH_ACCOUNT_TRANSACTION_STATUS.REFUNDED]: 'Refunded',
46
+ };
@@ -8,6 +8,12 @@ export declare const INSTRUMENT_STATUS: {
8
8
  readonly DELISTED: "DELISTED";
9
9
  readonly SUSPENDED: "SUSPENDED";
10
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
+ };
11
17
  export type InstrumentStatus = typeof INSTRUMENT_STATUS[keyof typeof INSTRUMENT_STATUS];
12
18
  export declare const INSTRUMENT_STATUS_LABELS: Record<InstrumentStatus, string>;
13
19
  export declare const TRADING_STATUS: {
@@ -17,6 +23,20 @@ export declare const TRADING_STATUS: {
17
23
  readonly PRE_MARKET: "PRE_MARKET";
18
24
  readonly AFTER_HOURS: "AFTER_HOURS";
19
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
+ };
20
34
  export type TradingStatus = typeof TRADING_STATUS[keyof typeof TRADING_STATUS];
21
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";
22
42
  //# sourceMappingURL=instruments.d.ts.map
@@ -1 +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"}
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,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;AAGX,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,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;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"}
@@ -4,13 +4,20 @@
4
4
  * These constants should match the backend constants in bilberry/instruments/constants.py
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TRADING_STATUS_LABELS = exports.TRADING_STATUS = exports.INSTRUMENT_STATUS_LABELS = exports.INSTRUMENT_STATUS = void 0;
7
+ exports.TRADING_STATUS_SUSPENDED = exports.TRADING_STATUS_HALTED = exports.TRADING_STATUS_TRADING = exports.INSTRUMENT_STATUS_SUSPENDED = exports.INSTRUMENT_STATUS_INACTIVE = exports.INSTRUMENT_STATUS_ACTIVE = exports.TRADING_STATUS_LABELS = exports.TRADING_STATUS_VALUES = exports.TRADING_STATUS = exports.INSTRUMENT_STATUS_LABELS = exports.INSTRUMENT_STATUS_VALUES = exports.INSTRUMENT_STATUS = void 0;
8
8
  exports.INSTRUMENT_STATUS = {
9
9
  ACTIVE: 'ACTIVE',
10
10
  INACTIVE: 'INACTIVE',
11
11
  DELISTED: 'DELISTED',
12
12
  SUSPENDED: 'SUSPENDED',
13
13
  };
14
+ // Lowercase values for Blueberry compatibility
15
+ exports.INSTRUMENT_STATUS_VALUES = {
16
+ ACTIVE: 'active',
17
+ INACTIVE: 'inactive',
18
+ DELISTED: 'delisted',
19
+ SUSPENDED: 'suspended',
20
+ };
14
21
  // Instrument status labels for UI display
15
22
  exports.INSTRUMENT_STATUS_LABELS = {
16
23
  [exports.INSTRUMENT_STATUS.ACTIVE]: 'Active',
@@ -26,6 +33,15 @@ exports.TRADING_STATUS = {
26
33
  PRE_MARKET: 'PRE_MARKET',
27
34
  AFTER_HOURS: 'AFTER_HOURS',
28
35
  };
36
+ // Lowercase values for Blueberry compatibility
37
+ exports.TRADING_STATUS_VALUES = {
38
+ TRADING: 'trading',
39
+ HALTED: 'halted',
40
+ CLOSED: 'closed',
41
+ PRE_MARKET: 'pre_market',
42
+ AFTER_HOURS: 'after_hours',
43
+ SUSPENDED: 'suspended',
44
+ };
29
45
  exports.TRADING_STATUS_LABELS = {
30
46
  [exports.TRADING_STATUS.TRADING]: 'Trading',
31
47
  [exports.TRADING_STATUS.HALTED]: 'Halted',
@@ -33,3 +49,10 @@ exports.TRADING_STATUS_LABELS = {
33
49
  [exports.TRADING_STATUS.PRE_MARKET]: 'Pre-Market',
34
50
  [exports.TRADING_STATUS.AFTER_HOURS]: 'After Hours',
35
51
  };
52
+ // Blueberry compatibility exports (lowercase values)
53
+ exports.INSTRUMENT_STATUS_ACTIVE = exports.INSTRUMENT_STATUS_VALUES.ACTIVE;
54
+ exports.INSTRUMENT_STATUS_INACTIVE = exports.INSTRUMENT_STATUS_VALUES.INACTIVE;
55
+ exports.INSTRUMENT_STATUS_SUSPENDED = exports.INSTRUMENT_STATUS_VALUES.SUSPENDED;
56
+ exports.TRADING_STATUS_TRADING = exports.TRADING_STATUS_VALUES.TRADING;
57
+ exports.TRADING_STATUS_HALTED = exports.TRADING_STATUS_VALUES.HALTED;
58
+ exports.TRADING_STATUS_SUSPENDED = exports.TRADING_STATUS_VALUES.SUSPENDED;
@@ -24,6 +24,8 @@ export declare const CURRENCY_OPTIONS: {
24
24
  }[];
25
25
  export declare const CURRENCY_AUD: "AUD";
26
26
  export declare const CURRENCY_USD: "USD";
27
+ export declare const CURRENCY_EUR: "EUR";
28
+ export declare const CURRENCY_GBP: "GBP";
27
29
  export declare const CURRENCY_LABEL_AUD: string;
28
30
  export declare const CURRENCY_LABEL_USD: string;
29
31
  //# sourceMappingURL=currency.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../src/financial/currency.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,cAAc;;;;;;;;;;;CAWjB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAG9E,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAWhD,CAAC;AAGX,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAW9C,CAAC;AAGX,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAWjD,CAAC;AAGX,eAAO,MAAM,gBAAgB,OAAqB,CAAC;AAGnD,eAAO,MAAM,gBAAgB;;;GAG1B,CAAC;AAGJ,eAAO,MAAM,YAAY,OAAqB,CAAC;AAC/C,eAAO,MAAM,YAAY,OAAqB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,QAAqC,CAAC;AACrE,eAAO,MAAM,kBAAkB,QAAqC,CAAC"}
1
+ {"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../src/financial/currency.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,cAAc;;;;;;;;;;;CAWjB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAG9E,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAWhD,CAAC;AAGX,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAW9C,CAAC;AAGX,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAWjD,CAAC;AAGX,eAAO,MAAM,gBAAgB,OAAqB,CAAC;AAGnD,eAAO,MAAM,gBAAgB;;;GAG1B,CAAC;AAGJ,eAAO,MAAM,YAAY,OAAqB,CAAC;AAC/C,eAAO,MAAM,YAAY,OAAqB,CAAC;AAC/C,eAAO,MAAM,YAAY,OAAqB,CAAC;AAC/C,eAAO,MAAM,YAAY,OAAqB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,QAAqC,CAAC;AACrE,eAAO,MAAM,kBAAkB,QAAqC,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * Currency-related constants
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CURRENCY_LABEL_USD = exports.CURRENCY_LABEL_AUD = exports.CURRENCY_USD = exports.CURRENCY_AUD = exports.CURRENCY_OPTIONS = exports.DEFAULT_CURRENCY = exports.CURRENCY_DECIMALS = exports.CURRENCY_NAMES = exports.CURRENCY_SYMBOLS = exports.CURRENCY_CODES = void 0;
6
+ exports.CURRENCY_LABEL_USD = exports.CURRENCY_LABEL_AUD = exports.CURRENCY_GBP = exports.CURRENCY_EUR = exports.CURRENCY_USD = exports.CURRENCY_AUD = exports.CURRENCY_OPTIONS = exports.DEFAULT_CURRENCY = exports.CURRENCY_DECIMALS = exports.CURRENCY_NAMES = exports.CURRENCY_SYMBOLS = exports.CURRENCY_CODES = void 0;
7
7
  // Currency codes (ISO 4217)
8
8
  exports.CURRENCY_CODES = {
9
9
  AUD: 'AUD',
@@ -66,5 +66,7 @@ exports.CURRENCY_OPTIONS = Object.entries(exports.CURRENCY_NAMES).map(([code, na
66
66
  // Blueberry compatibility exports
67
67
  exports.CURRENCY_AUD = exports.CURRENCY_CODES.AUD;
68
68
  exports.CURRENCY_USD = exports.CURRENCY_CODES.USD;
69
+ exports.CURRENCY_EUR = exports.CURRENCY_CODES.EUR;
70
+ exports.CURRENCY_GBP = exports.CURRENCY_CODES.GBP;
69
71
  exports.CURRENCY_LABEL_AUD = exports.CURRENCY_NAMES[exports.CURRENCY_CODES.AUD];
70
72
  exports.CURRENCY_LABEL_USD = exports.CURRENCY_NAMES[exports.CURRENCY_CODES.USD];
@@ -10,6 +10,15 @@ export declare const INSTRUMENT_TYPE: {
10
10
  readonly CRYPTO: "CRYPTO";
11
11
  readonly INDEX: "INDEX";
12
12
  };
13
+ export declare const INSTRUMENT_TYPE_VALUES: {
14
+ readonly ETF: "etf";
15
+ readonly FUND: "fund";
16
+ readonly STOCK: "stock";
17
+ readonly BOND: "bond";
18
+ readonly COMMODITY: "commodity";
19
+ readonly CRYPTO: "crypto";
20
+ readonly INDEX: "index";
21
+ };
13
22
  export type InstrumentType = typeof INSTRUMENT_TYPE[keyof typeof INSTRUMENT_TYPE];
14
23
  export declare const INSTRUMENT_TYPE_LABELS: Record<InstrumentType, string>;
15
24
  export declare const ASSET_CLASS: {
@@ -32,4 +41,7 @@ export declare const MARKET_IDENTIFIER: {
32
41
  };
33
42
  export type MarketIdentifier = typeof MARKET_IDENTIFIER[keyof typeof MARKET_IDENTIFIER];
34
43
  export declare const EXCHANGE_SUFFIX: Record<MarketIdentifier, string>;
44
+ export declare const INSTRUMENT_TYPE_ETF: "etf";
45
+ export declare const INSTRUMENT_TYPE_FUND: "fund";
46
+ export declare const INSTRUMENT_TYPE_STOCK: "stock";
35
47
  //# sourceMappingURL=instruments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instruments.d.ts","sourceRoot":"","sources":["../../src/financial/instruments.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,eAAe;;;;;;;;CAQlB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAGlF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAQxD,CAAC;AAGX,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAOhD,CAAC;AAGX,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAGxF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAOnD,CAAC"}
1
+ {"version":3,"file":"instruments.d.ts","sourceRoot":"","sources":["../../src/financial/instruments.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,eAAe;;;;;;;;CAQlB,CAAC;AAGX,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAGlF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAQxD,CAAC;AAGX,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAOhD,CAAC;AAGX,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAGxF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAOnD,CAAC;AAGX,eAAO,MAAM,mBAAmB,OAA6B,CAAC;AAC9D,eAAO,MAAM,oBAAoB,QAA8B,CAAC;AAChE,eAAO,MAAM,qBAAqB,SAA+B,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * Financial instrument constants
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.EXCHANGE_SUFFIX = exports.MARKET_IDENTIFIER = exports.ASSET_CLASS_LABELS = exports.ASSET_CLASS = exports.INSTRUMENT_TYPE_LABELS = exports.INSTRUMENT_TYPE = void 0;
6
+ exports.INSTRUMENT_TYPE_STOCK = exports.INSTRUMENT_TYPE_FUND = exports.INSTRUMENT_TYPE_ETF = exports.EXCHANGE_SUFFIX = exports.MARKET_IDENTIFIER = exports.ASSET_CLASS_LABELS = exports.ASSET_CLASS = exports.INSTRUMENT_TYPE_LABELS = exports.INSTRUMENT_TYPE_VALUES = exports.INSTRUMENT_TYPE = void 0;
7
7
  // Instrument types
8
8
  exports.INSTRUMENT_TYPE = {
9
9
  ETF: 'ETF',
@@ -14,6 +14,16 @@ exports.INSTRUMENT_TYPE = {
14
14
  CRYPTO: 'CRYPTO',
15
15
  INDEX: 'INDEX',
16
16
  };
17
+ // Lowercase values for Blueberry compatibility
18
+ exports.INSTRUMENT_TYPE_VALUES = {
19
+ ETF: 'etf',
20
+ FUND: 'fund',
21
+ STOCK: 'stock',
22
+ BOND: 'bond',
23
+ COMMODITY: 'commodity',
24
+ CRYPTO: 'crypto',
25
+ INDEX: 'index',
26
+ };
17
27
  // Instrument type labels
18
28
  exports.INSTRUMENT_TYPE_LABELS = {
19
29
  [exports.INSTRUMENT_TYPE.ETF]: 'Exchange-Traded Fund',
@@ -59,3 +69,7 @@ exports.EXCHANGE_SUFFIX = {
59
69
  [exports.MARKET_IDENTIFIER.TSX]: '.TO',
60
70
  [exports.MARKET_IDENTIFIER.HKEX]: '.HK',
61
71
  };
72
+ // Blueberry compatibility exports (lowercase values)
73
+ exports.INSTRUMENT_TYPE_ETF = exports.INSTRUMENT_TYPE_VALUES.ETF;
74
+ exports.INSTRUMENT_TYPE_FUND = exports.INSTRUMENT_TYPE_VALUES.FUND;
75
+ exports.INSTRUMENT_TYPE_STOCK = exports.INSTRUMENT_TYPE_VALUES.STOCK;
@@ -40,4 +40,6 @@ export declare const DEFAULT_SORT_CONFIG: {
40
40
  readonly direction: "desc";
41
41
  };
42
42
  };
43
+ export declare const SORT_DIRECTION_ASC: "asc";
44
+ export declare const SORT_DIRECTION_DESC: "desc";
43
45
  //# sourceMappingURL=sorting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sorting.d.ts","sourceRoot":"","sources":["../../src/utilities/sorting.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAG/E,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAuBd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAGrE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAiBtB,CAAC"}
1
+ {"version":3,"file":"sorting.d.ts","sourceRoot":"","sources":["../../src/utilities/sorting.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAG/E,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAuBd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAGrE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAiBtB,CAAC;AAGX,eAAO,MAAM,kBAAkB,OAAqB,CAAC;AACrD,eAAO,MAAM,mBAAmB,QAAsB,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * Sorting-related constants
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DEFAULT_SORT_CONFIG = exports.SORT_FIELDS = exports.SORT_DIRECTION = void 0;
6
+ exports.SORT_DIRECTION_DESC = exports.SORT_DIRECTION_ASC = exports.DEFAULT_SORT_CONFIG = exports.SORT_FIELDS = exports.SORT_DIRECTION = void 0;
7
7
  // Sort directions
8
8
  exports.SORT_DIRECTION = {
9
9
  ASC: 'asc',
@@ -49,3 +49,6 @@ exports.DEFAULT_SORT_CONFIG = {
49
49
  direction: exports.SORT_DIRECTION.DESC,
50
50
  },
51
51
  };
52
+ // Blueberry compatibility exports
53
+ exports.SORT_DIRECTION_ASC = exports.SORT_DIRECTION.ASC;
54
+ exports.SORT_DIRECTION_DESC = exports.SORT_DIRECTION.DESC;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cranberry-money/shared-constants",
3
- "version": "4.5.0",
3
+ "version": "4.7.0",
4
4
  "description": "Shared constants for MyPortfolio platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",