@cranberry-money/shared-constants 5.0.0 → 5.1.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 (98) hide show
  1. package/dist/api/auth.d.ts +28 -12
  2. package/dist/api/auth.d.ts.map +1 -1
  3. package/dist/api/auth.js +39 -18
  4. package/dist/api/config.d.ts.map +1 -1
  5. package/dist/api/config.js +15 -15
  6. package/dist/api/endpoints.js +31 -28
  7. package/dist/api/http.js +9 -6
  8. package/dist/api/index.js +20 -4
  9. package/dist/business/accounts.d.ts +1 -1
  10. package/dist/business/accounts.d.ts.map +1 -1
  11. package/dist/business/accounts.js +37 -35
  12. package/dist/business/bank-accounts.d.ts +17 -10
  13. package/dist/business/bank-accounts.d.ts.map +1 -1
  14. package/dist/business/bank-accounts.js +63 -51
  15. package/dist/business/banking.js +29 -26
  16. package/dist/business/countries.js +6 -3
  17. package/dist/business/documents.d.ts +12 -6
  18. package/dist/business/documents.d.ts.map +1 -1
  19. package/dist/business/documents.js +46 -43
  20. package/dist/business/index.d.ts +0 -1
  21. package/dist/business/index.d.ts.map +1 -1
  22. package/dist/business/index.js +74 -14
  23. package/dist/business/industries.js +5 -2
  24. package/dist/business/investments.js +56 -53
  25. package/dist/business/status/banks.d.ts +0 -6
  26. package/dist/business/status/banks.d.ts.map +1 -1
  27. package/dist/business/status/banks.js +14 -17
  28. package/dist/business/status/cash-accounts.d.ts.map +1 -1
  29. package/dist/business/status/cash-accounts.js +39 -37
  30. package/dist/business/status/documents.d.ts +4 -4
  31. package/dist/business/status/documents.d.ts.map +1 -1
  32. package/dist/business/status/documents.js +28 -24
  33. package/dist/business/status/index.js +23 -7
  34. package/dist/business/status/instruments.js +24 -21
  35. package/dist/business/status/portfolios.d.ts +0 -6
  36. package/dist/business/status/portfolios.d.ts.map +1 -1
  37. package/dist/business/status/portfolios.js +8 -11
  38. package/dist/business/status/trades.d.ts +12 -15
  39. package/dist/business/status/trades.d.ts.map +1 -1
  40. package/dist/business/status/trades.js +89 -90
  41. package/dist/business/status/withdrawals.d.ts +19 -18
  42. package/dist/business/status/withdrawals.d.ts.map +1 -1
  43. package/dist/business/status/withdrawals.js +102 -111
  44. package/dist/business/trading.js +26 -23
  45. package/dist/financial/currency.d.ts +0 -16
  46. package/dist/financial/currency.d.ts.map +1 -1
  47. package/dist/financial/currency.js +46 -58
  48. package/dist/financial/formatting.d.ts +1 -1
  49. package/dist/financial/formatting.d.ts.map +1 -1
  50. package/dist/financial/formatting.js +39 -24
  51. package/dist/financial/index.js +19 -3
  52. package/dist/financial/instruments.js +28 -25
  53. package/dist/index.d.ts +0 -2
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +21 -9
  56. package/dist/ui/colors.d.ts +10 -10
  57. package/dist/ui/colors.d.ts.map +1 -1
  58. package/dist/ui/colors.js +41 -40
  59. package/dist/ui/display.js +23 -20
  60. package/dist/ui/index.d.ts +0 -1
  61. package/dist/ui/index.d.ts.map +1 -1
  62. package/dist/ui/index.js +19 -4
  63. package/dist/ui/labels/index.js +49 -15
  64. package/dist/utilities/common.d.ts +20 -10
  65. package/dist/utilities/common.d.ts.map +1 -1
  66. package/dist/utilities/common.js +36 -16
  67. package/dist/utilities/defaults.d.ts.map +1 -1
  68. package/dist/utilities/defaults.js +37 -41
  69. package/dist/utilities/index.js +21 -5
  70. package/dist/utilities/sorting.js +16 -13
  71. package/dist/utilities/time.js +12 -9
  72. package/dist/utilities/validation.d.ts.map +1 -1
  73. package/dist/utilities/validation.js +8 -6
  74. package/package.json +1 -1
  75. package/dist/business/holdings.d.ts +0 -34
  76. package/dist/business/holdings.d.ts.map +0 -1
  77. package/dist/business/holdings.js +0 -34
  78. package/dist/common/index.d.ts +0 -2
  79. package/dist/common/index.d.ts.map +0 -1
  80. package/dist/common/index.js +0 -1
  81. package/dist/common/statuses.d.ts +0 -20
  82. package/dist/common/statuses.d.ts.map +0 -1
  83. package/dist/common/statuses.js +0 -19
  84. package/dist/config/defaults.d.ts +0 -79
  85. package/dist/config/defaults.d.ts.map +0 -1
  86. package/dist/config/defaults.js +0 -77
  87. package/dist/config/index.d.ts +0 -8
  88. package/dist/config/index.d.ts.map +0 -1
  89. package/dist/config/index.js +0 -7
  90. package/dist/config/pagination.d.ts +0 -28
  91. package/dist/config/pagination.d.ts.map +0 -1
  92. package/dist/config/pagination.js +0 -40
  93. package/dist/config/thresholds.d.ts +0 -65
  94. package/dist/config/thresholds.d.ts.map +0 -1
  95. package/dist/config/thresholds.js +0 -82
  96. package/dist/ui/status-colors-unified.d.ts +0 -91
  97. package/dist/ui/status-colors-unified.d.ts.map +0 -1
  98. package/dist/ui/status-colors-unified.js +0 -106
@@ -6,16 +6,32 @@ export declare const DEFAULT_TOKEN_REFRESH_BUFFER_MINUTES = 5;
6
6
  export declare const MILLISECONDS_PER_MINUTE: number;
7
7
  export declare const MINUTES_PER_HOUR = 60;
8
8
  export declare const HOURS_PER_DAY = 24;
9
- export declare const TIME_LABEL_EXPIRED = "Expired";
10
- export declare const TIME_LABEL_MINUTE = "minute";
11
- export declare const TIME_LABEL_MINUTES = "minutes";
12
- export declare const TIME_LABEL_HOUR = "hour";
13
- export declare const TIME_LABEL_HOURS = "hours";
14
- export declare const TIME_LABEL_DAY = "day";
15
- export declare const TIME_LABEL_DAYS = "days";
16
- export declare const TIME_LABEL_HOUR_SHORT = "h";
17
- export declare const TIME_LABEL_MINUTE_SHORT = "m";
18
- export declare const TIME_LABEL_DAY_SHORT = "d";
19
- export declare const TOKEN_STORAGE_KEY_ACCESS = "access_token";
20
- export declare const TOKEN_STORAGE_KEY_REFRESH = "refresh_token";
9
+ export declare const TIME_LABEL: {
10
+ readonly EXPIRED: "Expired";
11
+ readonly MINUTE: "minute";
12
+ readonly MINUTES: "minutes";
13
+ readonly HOUR: "hour";
14
+ readonly HOURS: "hours";
15
+ readonly DAY: "day";
16
+ readonly DAYS: "days";
17
+ readonly HOUR_SHORT: "h";
18
+ readonly MINUTE_SHORT: "m";
19
+ readonly DAY_SHORT: "d";
20
+ };
21
+ export declare const TIME_LABEL_EXPIRED: "Expired";
22
+ export declare const TIME_LABEL_MINUTE: "minute";
23
+ export declare const TIME_LABEL_MINUTES: "minutes";
24
+ export declare const TIME_LABEL_HOUR: "hour";
25
+ export declare const TIME_LABEL_HOURS: "hours";
26
+ export declare const TIME_LABEL_DAY: "day";
27
+ export declare const TIME_LABEL_DAYS: "days";
28
+ export declare const TIME_LABEL_HOUR_SHORT: "h";
29
+ export declare const TIME_LABEL_MINUTE_SHORT: "m";
30
+ export declare const TIME_LABEL_DAY_SHORT: "d";
31
+ export declare const TOKEN_STORAGE_KEY: {
32
+ readonly ACCESS: "access_token";
33
+ readonly REFRESH: "refresh_token";
34
+ };
35
+ export declare const TOKEN_STORAGE_KEY_ACCESS: "access_token";
36
+ export declare const TOKEN_STORAGE_KEY_REFRESH: "refresh_token";
21
37
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/api/auth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,oCAAoC,IAAI,CAAC;AACtD,eAAO,MAAM,uBAAuB,QAAY,CAAC;AACjD,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,aAAa,KAAK,CAAC;AAGhC,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,gBAAgB,UAAU,CAAC;AACxC,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAGxC,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AACvD,eAAO,MAAM,yBAAyB,kBAAkB,CAAC"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/api/auth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,oCAAoC,IAAI,CAAC;AACtD,eAAO,MAAM,uBAAuB,QAAY,CAAC;AACjD,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,aAAa,KAAK,CAAC;AAGhC,eAAO,MAAM,UAAU;;;;;;;;;;;CAWb,CAAC;AAGX,eAAO,MAAM,kBAAkB,WAAqB,CAAC;AACrD,eAAO,MAAM,iBAAiB,UAAoB,CAAC;AACnD,eAAO,MAAM,kBAAkB,WAAqB,CAAC;AACrD,eAAO,MAAM,eAAe,QAAkB,CAAC;AAC/C,eAAO,MAAM,gBAAgB,SAAmB,CAAC;AACjD,eAAO,MAAM,cAAc,OAAiB,CAAC;AAC7C,eAAO,MAAM,eAAe,QAAkB,CAAC;AAC/C,eAAO,MAAM,qBAAqB,KAAwB,CAAC;AAC3D,eAAO,MAAM,uBAAuB,KAA0B,CAAC;AAC/D,eAAO,MAAM,oBAAoB,KAAuB,CAAC;AAGzD,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAGX,eAAO,MAAM,wBAAwB,gBAA2B,CAAC;AACjE,eAAO,MAAM,yBAAyB,iBAA4B,CAAC"}
package/dist/api/auth.js CHANGED
@@ -1,23 +1,44 @@
1
+ "use strict";
1
2
  /**
2
3
  * Authentication-related constants
3
4
  * These match the constants from Blueberry's src/services/auth/constants.ts
4
5
  */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TOKEN_STORAGE_KEY_REFRESH = exports.TOKEN_STORAGE_KEY_ACCESS = exports.TOKEN_STORAGE_KEY = exports.TIME_LABEL_DAY_SHORT = exports.TIME_LABEL_MINUTE_SHORT = exports.TIME_LABEL_HOUR_SHORT = exports.TIME_LABEL_DAYS = exports.TIME_LABEL_DAY = exports.TIME_LABEL_HOURS = exports.TIME_LABEL_HOUR = exports.TIME_LABEL_MINUTES = exports.TIME_LABEL_MINUTE = exports.TIME_LABEL_EXPIRED = exports.TIME_LABEL = exports.HOURS_PER_DAY = exports.MINUTES_PER_HOUR = exports.MILLISECONDS_PER_MINUTE = exports.DEFAULT_TOKEN_REFRESH_BUFFER_MINUTES = void 0;
5
8
  // Token management constants
6
- export const DEFAULT_TOKEN_REFRESH_BUFFER_MINUTES = 5;
7
- export const MILLISECONDS_PER_MINUTE = 60 * 1000;
8
- export const MINUTES_PER_HOUR = 60;
9
- export const HOURS_PER_DAY = 24;
10
- // Time labels
11
- export const TIME_LABEL_EXPIRED = 'Expired';
12
- export const TIME_LABEL_MINUTE = 'minute';
13
- export const TIME_LABEL_MINUTES = 'minutes';
14
- export const TIME_LABEL_HOUR = 'hour';
15
- export const TIME_LABEL_HOURS = 'hours';
16
- export const TIME_LABEL_DAY = 'day';
17
- export const TIME_LABEL_DAYS = 'days';
18
- export const TIME_LABEL_HOUR_SHORT = 'h';
19
- export const TIME_LABEL_MINUTE_SHORT = 'm';
20
- export const TIME_LABEL_DAY_SHORT = 'd';
21
- // Storage keys
22
- export const TOKEN_STORAGE_KEY_ACCESS = 'access_token';
23
- export const TOKEN_STORAGE_KEY_REFRESH = 'refresh_token';
9
+ exports.DEFAULT_TOKEN_REFRESH_BUFFER_MINUTES = 5;
10
+ exports.MILLISECONDS_PER_MINUTE = 60 * 1000;
11
+ exports.MINUTES_PER_HOUR = 60;
12
+ exports.HOURS_PER_DAY = 24;
13
+ // Time labels - consolidated object notation
14
+ exports.TIME_LABEL = {
15
+ EXPIRED: 'Expired',
16
+ MINUTE: 'minute',
17
+ MINUTES: 'minutes',
18
+ HOUR: 'hour',
19
+ HOURS: 'hours',
20
+ DAY: 'day',
21
+ DAYS: 'days',
22
+ HOUR_SHORT: 'h',
23
+ MINUTE_SHORT: 'm',
24
+ DAY_SHORT: 'd',
25
+ };
26
+ // Backward compatibility: individual exports
27
+ exports.TIME_LABEL_EXPIRED = exports.TIME_LABEL.EXPIRED;
28
+ exports.TIME_LABEL_MINUTE = exports.TIME_LABEL.MINUTE;
29
+ exports.TIME_LABEL_MINUTES = exports.TIME_LABEL.MINUTES;
30
+ exports.TIME_LABEL_HOUR = exports.TIME_LABEL.HOUR;
31
+ exports.TIME_LABEL_HOURS = exports.TIME_LABEL.HOURS;
32
+ exports.TIME_LABEL_DAY = exports.TIME_LABEL.DAY;
33
+ exports.TIME_LABEL_DAYS = exports.TIME_LABEL.DAYS;
34
+ exports.TIME_LABEL_HOUR_SHORT = exports.TIME_LABEL.HOUR_SHORT;
35
+ exports.TIME_LABEL_MINUTE_SHORT = exports.TIME_LABEL.MINUTE_SHORT;
36
+ exports.TIME_LABEL_DAY_SHORT = exports.TIME_LABEL.DAY_SHORT;
37
+ // Storage keys - consolidated object notation
38
+ exports.TOKEN_STORAGE_KEY = {
39
+ ACCESS: 'access_token',
40
+ REFRESH: 'refresh_token',
41
+ };
42
+ // Backward compatibility: individual exports
43
+ exports.TOKEN_STORAGE_KEY_ACCESS = exports.TOKEN_STORAGE_KEY.ACCESS;
44
+ exports.TOKEN_STORAGE_KEY_REFRESH = exports.TOKEN_STORAGE_KEY.REFRESH;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/api/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAI1E,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AAIX,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AAGX,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAoBlB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/api/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAG1E,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AAGX,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AAGX,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAoBlB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
@@ -1,30 +1,30 @@
1
+ "use strict";
1
2
  /**
2
3
  * API configuration constants
3
4
  */
4
- import { PAGINATION_CONFIG, COMMON_THRESHOLDS } from '../config';
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.API_ERROR_CODES = exports.API_RESPONSE_CONFIG = exports.API_CONFIG = exports.API_VERSIONS = void 0;
5
7
  // API Versions
6
- export const API_VERSIONS = {
8
+ exports.API_VERSIONS = {
7
9
  V1: 'v1',
8
10
  V2: 'v2',
9
11
  };
10
12
  // API Configuration
11
- // Now references common thresholds for consistency
12
- export const API_CONFIG = {
13
- DEFAULT_TIMEOUT: COMMON_THRESHOLDS.DEFAULT_TIMEOUT_MS,
14
- DEFAULT_RETRY_ATTEMPTS: COMMON_THRESHOLDS.DEFAULT_RETRY_ATTEMPTS,
15
- DEFAULT_RETRY_DELAY: COMMON_THRESHOLDS.DEFAULT_RETRY_DELAY_MS,
16
- MAX_RETRY_DELAY: COMMON_THRESHOLDS.MAX_RETRY_DELAY_MS,
17
- REQUEST_DEBOUNCE_MS: COMMON_THRESHOLDS.REQUEST_DEBOUNCE_MS,
13
+ exports.API_CONFIG = {
14
+ DEFAULT_TIMEOUT: 30000, // 30 seconds
15
+ DEFAULT_RETRY_ATTEMPTS: 3,
16
+ DEFAULT_RETRY_DELAY: 1000, // 1 second
17
+ MAX_RETRY_DELAY: 10000, // 10 seconds
18
+ REQUEST_DEBOUNCE_MS: 300,
18
19
  };
19
20
  // API Response Configuration
20
- // @deprecated Use PAGINATION_CONFIG from config/pagination instead
21
- export const API_RESPONSE_CONFIG = {
22
- DEFAULT_PAGE_SIZE: PAGINATION_CONFIG.DEFAULT_PAGE_SIZE,
23
- MAX_PAGE_SIZE: PAGINATION_CONFIG.MAX_PAGE_SIZE,
24
- DEFAULT_SORT_ORDER: PAGINATION_CONFIG.DEFAULT_SORT_ORDER,
21
+ exports.API_RESPONSE_CONFIG = {
22
+ DEFAULT_PAGE_SIZE: 20,
23
+ MAX_PAGE_SIZE: 100,
24
+ DEFAULT_SORT_ORDER: 'desc',
25
25
  };
26
26
  // API Error Codes (custom application codes)
27
- export const API_ERROR_CODES = {
27
+ exports.API_ERROR_CODES = {
28
28
  // Authentication errors
29
29
  INVALID_CREDENTIALS: 'INVALID_CREDENTIALS',
30
30
  TOKEN_EXPIRED: 'TOKEN_EXPIRED',
@@ -1,16 +1,19 @@
1
+ "use strict";
1
2
  /**
2
3
  * API endpoint definitions for all services
3
4
  */
4
- export const API_BASE_PATHS = {
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ASSET_HOLDING_SNAPSHOT_ENDPOINTS = exports.ASSET_HOLDING_ENDPOINTS = exports.ASSET_ALLOCATION_ENDPOINTS = exports.TRANSACTION_ENDPOINTS = exports.WITHDRAWAL_LIQUIDATION_ENDPOINTS = exports.WITHDRAWAL_REQUEST_ENDPOINTS = exports.WITHDRAWAL_ENDPOINTS = exports.USER_PROFILE_ENDPOINTS = exports.USER_ENDPOINTS = exports.TARGET_TRADE_SHEET_ENDPOINTS = exports.TRADE_SHEET_ENDPOINTS = exports.TARGET_TRADE_ENDPOINTS = exports.TRADE_ENDPOINTS = exports.TAX_RESIDENCY_ENDPOINTS = exports.STOCK_EXCHANGE_ENDPOINTS = exports.SECTOR_ENDPOINTS = exports.PORTFOLIO_TEMPLATE_ENDPOINTS = exports.PORTFOLIO_ENDPOINTS = exports.INSTRUMENT_ENDPOINTS = exports.INDUSTRY_ENDPOINTS = exports.DOCUMENT_ENDPOINTS = exports.COUNTRY_ENDPOINTS = exports.CASH_ACCOUNT_TRANSACTION_ENDPOINTS = exports.CASH_ACCOUNT_ENDPOINTS = exports.BANK_ENDPOINTS = exports.AUTH_ENDPOINTS = exports.ACCOUNT_ENDPOINTS = exports.API_BASE_PATHS = void 0;
7
+ exports.API_BASE_PATHS = {
5
8
  V1: '/api',
6
9
  };
7
10
  // Account endpoints
8
- export const ACCOUNT_ENDPOINTS = {
11
+ exports.ACCOUNT_ENDPOINTS = {
9
12
  BASE: '/api/accounts/',
10
13
  DETAIL: (uuid) => `/api/accounts/${uuid}/`,
11
14
  };
12
15
  // Authentication endpoints
13
- export const AUTH_ENDPOINTS = {
16
+ exports.AUTH_ENDPOINTS = {
14
17
  BASE: '/api/auth/',
15
18
  LOGIN: '/api/auth/login/',
16
19
  LOGOUT: '/api/auth/logout/',
@@ -24,30 +27,30 @@ export const AUTH_ENDPOINTS = {
24
27
  TOKEN_REFRESH: '/api/token/refresh/',
25
28
  };
26
29
  // Bank endpoints
27
- export const BANK_ENDPOINTS = {
30
+ exports.BANK_ENDPOINTS = {
28
31
  BASE: '/api/banks/',
29
32
  DETAIL: (uuid) => `/api/banks/${uuid}/`,
30
33
  ACCOUNTS: '/api/bank-accounts/',
31
34
  ACCOUNT_DETAIL: (uuid) => `/api/bank-accounts/${uuid}/`,
32
35
  };
33
36
  // Cash account endpoints
34
- export const CASH_ACCOUNT_ENDPOINTS = {
37
+ exports.CASH_ACCOUNT_ENDPOINTS = {
35
38
  BASE: '/api/cash-accounts/',
36
39
  DETAIL: (uuid) => `/api/cash-accounts/${uuid}/`,
37
40
  TRANSACTIONS: (uuid) => `/api/cash-accounts/${uuid}/transactions/`,
38
41
  };
39
42
  // Cash account transaction endpoints
40
- export const CASH_ACCOUNT_TRANSACTION_ENDPOINTS = {
43
+ exports.CASH_ACCOUNT_TRANSACTION_ENDPOINTS = {
41
44
  BASE: '/api/cash-account-transactions/',
42
45
  DETAIL: (uuid) => `/api/cash-account-transactions/${uuid}/`,
43
46
  };
44
47
  // Country endpoints
45
- export const COUNTRY_ENDPOINTS = {
48
+ exports.COUNTRY_ENDPOINTS = {
46
49
  BASE: '/api/countries/',
47
50
  DETAIL: (uuid) => `/api/countries/${uuid}/`,
48
51
  };
49
52
  // Document endpoints
50
- export const DOCUMENT_ENDPOINTS = {
53
+ exports.DOCUMENT_ENDPOINTS = {
51
54
  BASE: '/api/documents/',
52
55
  DETAIL: (uuid) => `/api/documents/${uuid}/`,
53
56
  DOWNLOAD: (uuid) => `/api/documents/${uuid}/download/`,
@@ -57,19 +60,19 @@ export const DOCUMENT_ENDPOINTS = {
57
60
  SOA: '/api/documents/soa/',
58
61
  };
59
62
  // Industry endpoints
60
- export const INDUSTRY_ENDPOINTS = {
63
+ exports.INDUSTRY_ENDPOINTS = {
61
64
  BASE: '/api/industries/',
62
65
  DETAIL: (uuid) => `/api/industries/${uuid}/`,
63
66
  };
64
67
  // Instrument endpoints
65
- export const INSTRUMENT_ENDPOINTS = {
68
+ exports.INSTRUMENT_ENDPOINTS = {
66
69
  BASE: '/api/instruments/',
67
70
  DETAIL: (uuid) => `/api/instruments/${uuid}/`,
68
71
  PRICES: (uuid) => `/api/instruments/${uuid}/prices/`,
69
72
  QUOTE: (uuid) => `/api/instruments/${uuid}/quote/`,
70
73
  };
71
74
  // Portfolio endpoints
72
- export const PORTFOLIO_ENDPOINTS = {
75
+ exports.PORTFOLIO_ENDPOINTS = {
73
76
  BASE: '/api/portfolios/',
74
77
  DETAIL: (uuid) => `/api/portfolios/${uuid}/`,
75
78
  ALLOCATIONS: (uuid) => `/api/portfolios/${uuid}/allocations/`,
@@ -78,53 +81,53 @@ export const PORTFOLIO_ENDPOINTS = {
78
81
  TRANSACTIONS: (uuid) => `/api/portfolios/${uuid}/transactions/`,
79
82
  };
80
83
  // Portfolio template endpoints
81
- export const PORTFOLIO_TEMPLATE_ENDPOINTS = {
84
+ exports.PORTFOLIO_TEMPLATE_ENDPOINTS = {
82
85
  BASE: '/api/portfolio-templates/',
83
86
  DETAIL: (uuid) => `/api/portfolio-templates/${uuid}/`,
84
87
  ALLOCATIONS: (uuid) => `/api/portfolio-templates/${uuid}/allocations/`,
85
88
  RECOMMENDED: '/api/portfolio-templates/recommended/',
86
89
  };
87
90
  // Sector endpoints
88
- export const SECTOR_ENDPOINTS = {
91
+ exports.SECTOR_ENDPOINTS = {
89
92
  BASE: '/api/sectors/',
90
93
  DETAIL: (uuid) => `/api/sectors/${uuid}/`,
91
94
  };
92
95
  // Stock exchange endpoints
93
- export const STOCK_EXCHANGE_ENDPOINTS = {
96
+ exports.STOCK_EXCHANGE_ENDPOINTS = {
94
97
  BASE: '/api/stock-exchanges/',
95
98
  DETAIL: (uuid) => `/api/stock-exchanges/${uuid}/`,
96
99
  };
97
100
  // Tax residency endpoints
98
- export const TAX_RESIDENCY_ENDPOINTS = {
101
+ exports.TAX_RESIDENCY_ENDPOINTS = {
99
102
  BASE: '/api/tax-residencies/',
100
103
  DETAIL: (uuid) => `/api/tax-residencies/${uuid}/`,
101
104
  };
102
105
  // Trade endpoints
103
- export const TRADE_ENDPOINTS = {
106
+ exports.TRADE_ENDPOINTS = {
104
107
  BASE: '/api/trades/',
105
108
  DETAIL: (uuid) => `/api/trades/${uuid}/`,
106
109
  CANCEL: (uuid) => `/api/trades/${uuid}/cancel/`,
107
110
  CONFIRM: (uuid) => `/api/trades/${uuid}/confirm/`,
108
111
  };
109
112
  // Target trade endpoints
110
- export const TARGET_TRADE_ENDPOINTS = {
113
+ exports.TARGET_TRADE_ENDPOINTS = {
111
114
  BASE: '/api/target-trades/',
112
115
  DETAIL: (uuid) => `/api/target-trades/${uuid}/`,
113
116
  APPROVE: (uuid) => `/api/target-trades/${uuid}/approve/`,
114
117
  SUBMIT: (uuid) => `/api/target-trades/${uuid}/submit/`,
115
118
  };
116
119
  // Trade sheet endpoints
117
- export const TRADE_SHEET_ENDPOINTS = {
120
+ exports.TRADE_SHEET_ENDPOINTS = {
118
121
  BASE: '/api/trade-sheets/',
119
122
  DETAIL: (uuid) => `/api/trade-sheets/${uuid}/`,
120
123
  };
121
124
  // Target trade sheet endpoints
122
- export const TARGET_TRADE_SHEET_ENDPOINTS = {
125
+ exports.TARGET_TRADE_SHEET_ENDPOINTS = {
123
126
  BASE: '/api/target-trade-sheets/',
124
127
  DETAIL: (uuid) => `/api/target-trade-sheets/${uuid}/`,
125
128
  };
126
129
  // User endpoints
127
- export const USER_ENDPOINTS = {
130
+ exports.USER_ENDPOINTS = {
128
131
  BASE: '/api/users/',
129
132
  DETAIL: (uuid) => `/api/users/${uuid}/`,
130
133
  PROFILE: '/api/users/profile/',
@@ -132,12 +135,12 @@ export const USER_ENDPOINTS = {
132
135
  INVESTMENT_PREFERENCES: '/api/users/investment-preferences/',
133
136
  };
134
137
  // User profile endpoints (separate collection resource)
135
- export const USER_PROFILE_ENDPOINTS = {
138
+ exports.USER_PROFILE_ENDPOINTS = {
136
139
  BASE: '/api/user-profiles/',
137
140
  DETAIL: (uuid) => `/api/user-profiles/${uuid}/`,
138
141
  };
139
142
  // Withdrawal endpoints
140
- export const WITHDRAWAL_ENDPOINTS = {
143
+ exports.WITHDRAWAL_ENDPOINTS = {
141
144
  BASE: '/api/withdrawals/',
142
145
  DETAIL: (uuid) => `/api/withdrawals/${uuid}/`,
143
146
  CANCEL: (uuid) => `/api/withdrawals/${uuid}/cancel/`,
@@ -145,7 +148,7 @@ export const WITHDRAWAL_ENDPOINTS = {
145
148
  REJECT: (uuid) => `/api/withdrawals/${uuid}/reject/`,
146
149
  };
147
150
  // Withdrawal request endpoints
148
- export const WITHDRAWAL_REQUEST_ENDPOINTS = {
151
+ exports.WITHDRAWAL_REQUEST_ENDPOINTS = {
149
152
  BASE: '/api/withdrawal-requests/',
150
153
  DETAIL: (uuid) => `/api/withdrawal-requests/${uuid}/`,
151
154
  CANCEL: (uuid) => `/api/withdrawal-requests/${uuid}/cancel/`,
@@ -153,27 +156,27 @@ export const WITHDRAWAL_REQUEST_ENDPOINTS = {
153
156
  REJECT: (uuid) => `/api/withdrawal-requests/${uuid}/reject/`,
154
157
  };
155
158
  // Withdrawal liquidation endpoints
156
- export const WITHDRAWAL_LIQUIDATION_ENDPOINTS = {
159
+ exports.WITHDRAWAL_LIQUIDATION_ENDPOINTS = {
157
160
  BASE: '/api/withdrawal-liquidations/',
158
161
  DETAIL: (uuid) => `/api/withdrawal-liquidations/${uuid}/`,
159
162
  };
160
163
  // Transaction endpoints (cash account transactions)
161
- export const TRANSACTION_ENDPOINTS = {
164
+ exports.TRANSACTION_ENDPOINTS = {
162
165
  BASE: '/api/transactions/',
163
166
  DETAIL: (uuid) => `/api/transactions/${uuid}/`,
164
167
  };
165
168
  // Asset allocation endpoints
166
- export const ASSET_ALLOCATION_ENDPOINTS = {
169
+ exports.ASSET_ALLOCATION_ENDPOINTS = {
167
170
  BASE: '/api/asset-allocations/',
168
171
  DETAIL: (uuid) => `/api/asset-allocations/${uuid}/`,
169
172
  };
170
173
  // Asset holding endpoints
171
- export const ASSET_HOLDING_ENDPOINTS = {
174
+ exports.ASSET_HOLDING_ENDPOINTS = {
172
175
  BASE: '/api/asset-holdings/',
173
176
  DETAIL: (uuid) => `/api/asset-holdings/${uuid}/`,
174
177
  };
175
178
  // Asset holding snapshot endpoints
176
- export const ASSET_HOLDING_SNAPSHOT_ENDPOINTS = {
179
+ exports.ASSET_HOLDING_SNAPSHOT_ENDPOINTS = {
177
180
  BASE: '/api/asset-holding-snapshots/',
178
181
  DETAIL: (id) => `/api/asset-holding-snapshots/${id}/`,
179
182
  };
package/dist/api/http.js CHANGED
@@ -1,8 +1,11 @@
1
+ "use strict";
1
2
  /**
2
3
  * HTTP-related constants
3
4
  */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CONTENT_TYPE_APPLICATION_JSON = exports.HTTP_HEADER_CONTENT_TYPE = exports.HTTP_METHODS = exports.CONTENT_TYPES = exports.HTTP_HEADERS = exports.HTTP_STATUS = void 0;
4
7
  // HTTP Status Codes
5
- export const HTTP_STATUS = {
8
+ exports.HTTP_STATUS = {
6
9
  // 2xx Success
7
10
  OK: 200,
8
11
  CREATED: 201,
@@ -28,7 +31,7 @@ export const HTTP_STATUS = {
28
31
  GATEWAY_TIMEOUT: 504,
29
32
  };
30
33
  // HTTP Headers
31
- export const HTTP_HEADERS = {
34
+ exports.HTTP_HEADERS = {
32
35
  ACCEPT: 'Accept',
33
36
  AUTHORIZATION: 'Authorization',
34
37
  CONTENT_TYPE: 'Content-Type',
@@ -38,7 +41,7 @@ export const HTTP_HEADERS = {
38
41
  X_CSRF_TOKEN: 'X-CSRFToken',
39
42
  };
40
43
  // Content Types
41
- export const CONTENT_TYPES = {
44
+ exports.CONTENT_TYPES = {
42
45
  JSON: 'application/json',
43
46
  FORM_DATA: 'multipart/form-data',
44
47
  URL_ENCODED: 'application/x-www-form-urlencoded',
@@ -48,7 +51,7 @@ export const CONTENT_TYPES = {
48
51
  PDF: 'application/pdf',
49
52
  };
50
53
  // HTTP Methods
51
- export const HTTP_METHODS = {
54
+ exports.HTTP_METHODS = {
52
55
  GET: 'GET',
53
56
  POST: 'POST',
54
57
  PUT: 'PUT',
@@ -58,5 +61,5 @@ export const HTTP_METHODS = {
58
61
  OPTIONS: 'OPTIONS',
59
62
  };
60
63
  // Blueberry compatibility exports
61
- export const HTTP_HEADER_CONTENT_TYPE = HTTP_HEADERS.CONTENT_TYPE;
62
- export const CONTENT_TYPE_APPLICATION_JSON = CONTENT_TYPES.JSON;
64
+ exports.HTTP_HEADER_CONTENT_TYPE = exports.HTTP_HEADERS.CONTENT_TYPE;
65
+ exports.CONTENT_TYPE_APPLICATION_JSON = exports.CONTENT_TYPES.JSON;
package/dist/api/index.js CHANGED
@@ -1,7 +1,23 @@
1
+ "use strict";
1
2
  /**
2
3
  * API-related constants
3
4
  */
4
- export * from './endpoints';
5
- export * from './http';
6
- export * from './config';
7
- export * from './auth';
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("./endpoints"), exports);
21
+ __exportStar(require("./http"), exports);
22
+ __exportStar(require("./config"), exports);
23
+ __exportStar(require("./auth"), exports);
@@ -25,7 +25,7 @@ export declare const SOURCE_OF_FUNDS_LABEL_SALARY = "Salary";
25
25
  export declare const SOURCE_OF_FUNDS_LABEL_SAVINGS = "Savings";
26
26
  export declare const SOURCE_OF_FUNDS_LABEL_INHERITANCE = "Inheritance";
27
27
  export declare const SOURCE_OF_FUNDS_LABEL_GIFT = "Gift";
28
- export declare const SOURCE_OF_FUNDS_LABEL_OTHER: "Other";
28
+ export declare const SOURCE_OF_FUNDS_LABEL_OTHER = "Other";
29
29
  export declare const SOURCE_OF_FUNDS_LABELS: Record<SourceOfFunds, string>;
30
30
  export declare const ACCOUNT_TYPE_OPTIONS: {
31
31
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/business/accounts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO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C;AACzD,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAC3C,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAGnF,eAAO,MAAM,4BAA4B,WAAW,CAAC;AACrD,eAAO,MAAM,6BAA6B,YAAY,CAAC;AACvD,eAAO,MAAM,iCAAiC,gBAAgB,CAAC;AAC/D,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,2BAA2B,UAAU,CAAC;AAEnD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAMvD,CAAC;AAGX,eAAO,MAAM,oBAAoB;;;GAG9B,CAAC;AAGJ,eAAO,MAAM,uBAAuB;;;GAMnC,CAAC"}
@@ -1,54 +1,56 @@
1
+ "use strict";
1
2
  /**
2
3
  * Account-related business constants
3
4
  */
4
- import { COMMON_LABELS } from '../config/defaults';
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SOURCE_OF_FUNDS_OPTIONS = exports.ACCOUNT_TYPE_OPTIONS = exports.SOURCE_OF_FUNDS_LABELS = exports.SOURCE_OF_FUNDS_LABEL_OTHER = exports.SOURCE_OF_FUNDS_LABEL_GIFT = exports.SOURCE_OF_FUNDS_LABEL_INHERITANCE = exports.SOURCE_OF_FUNDS_LABEL_SAVINGS = exports.SOURCE_OF_FUNDS_LABEL_SALARY = exports.SOURCE_OF_FUNDS = exports.SOURCE_OF_FUNDS_OTHER = exports.SOURCE_OF_FUNDS_GIFT = exports.SOURCE_OF_FUNDS_INHERITANCE = exports.SOURCE_OF_FUNDS_SAVINGS = exports.SOURCE_OF_FUNDS_SALARY = exports.ACCOUNT_TYPE_LABELS = exports.ACCOUNT_TYPE = void 0;
5
7
  // Account types
6
- export const ACCOUNT_TYPE = {
8
+ exports.ACCOUNT_TYPE = {
7
9
  TRANSACTION: 'TRANSACTION',
8
10
  SAVINGS: 'SAVINGS',
9
11
  OTHER: 'OTHER',
10
12
  };
11
- export const ACCOUNT_TYPE_LABELS = {
12
- [ACCOUNT_TYPE.TRANSACTION]: 'Transaction Account',
13
- [ACCOUNT_TYPE.SAVINGS]: 'Savings Account',
14
- [ACCOUNT_TYPE.OTHER]: COMMON_LABELS.OTHER,
13
+ exports.ACCOUNT_TYPE_LABELS = {
14
+ [exports.ACCOUNT_TYPE.TRANSACTION]: 'Transaction Account',
15
+ [exports.ACCOUNT_TYPE.SAVINGS]: 'Savings Account',
16
+ [exports.ACCOUNT_TYPE.OTHER]: 'Other',
15
17
  };
16
18
  // Source of funds constants
17
- export const SOURCE_OF_FUNDS_SALARY = 'salary';
18
- export const SOURCE_OF_FUNDS_SAVINGS = 'savings';
19
- export const SOURCE_OF_FUNDS_INHERITANCE = 'inheritance';
20
- export const SOURCE_OF_FUNDS_GIFT = 'gift';
21
- export const SOURCE_OF_FUNDS_OTHER = 'other';
22
- export const SOURCE_OF_FUNDS = {
23
- SALARY: SOURCE_OF_FUNDS_SALARY,
24
- SAVINGS: SOURCE_OF_FUNDS_SAVINGS,
25
- INHERITANCE: SOURCE_OF_FUNDS_INHERITANCE,
26
- GIFT: SOURCE_OF_FUNDS_GIFT,
27
- OTHER: SOURCE_OF_FUNDS_OTHER,
19
+ exports.SOURCE_OF_FUNDS_SALARY = 'salary';
20
+ exports.SOURCE_OF_FUNDS_SAVINGS = 'savings';
21
+ exports.SOURCE_OF_FUNDS_INHERITANCE = 'inheritance';
22
+ exports.SOURCE_OF_FUNDS_GIFT = 'gift';
23
+ exports.SOURCE_OF_FUNDS_OTHER = 'other';
24
+ exports.SOURCE_OF_FUNDS = {
25
+ SALARY: exports.SOURCE_OF_FUNDS_SALARY,
26
+ SAVINGS: exports.SOURCE_OF_FUNDS_SAVINGS,
27
+ INHERITANCE: exports.SOURCE_OF_FUNDS_INHERITANCE,
28
+ GIFT: exports.SOURCE_OF_FUNDS_GIFT,
29
+ OTHER: exports.SOURCE_OF_FUNDS_OTHER,
28
30
  };
29
31
  // Source of funds label constants
30
- export const SOURCE_OF_FUNDS_LABEL_SALARY = 'Salary';
31
- export const SOURCE_OF_FUNDS_LABEL_SAVINGS = 'Savings';
32
- export const SOURCE_OF_FUNDS_LABEL_INHERITANCE = 'Inheritance';
33
- export const SOURCE_OF_FUNDS_LABEL_GIFT = 'Gift';
34
- export const SOURCE_OF_FUNDS_LABEL_OTHER = COMMON_LABELS.OTHER;
35
- export const SOURCE_OF_FUNDS_LABELS = {
36
- [SOURCE_OF_FUNDS.SALARY]: SOURCE_OF_FUNDS_LABEL_SALARY,
37
- [SOURCE_OF_FUNDS.SAVINGS]: SOURCE_OF_FUNDS_LABEL_SAVINGS,
38
- [SOURCE_OF_FUNDS.INHERITANCE]: SOURCE_OF_FUNDS_LABEL_INHERITANCE,
39
- [SOURCE_OF_FUNDS.GIFT]: SOURCE_OF_FUNDS_LABEL_GIFT,
40
- [SOURCE_OF_FUNDS.OTHER]: SOURCE_OF_FUNDS_LABEL_OTHER,
32
+ exports.SOURCE_OF_FUNDS_LABEL_SALARY = 'Salary';
33
+ exports.SOURCE_OF_FUNDS_LABEL_SAVINGS = 'Savings';
34
+ exports.SOURCE_OF_FUNDS_LABEL_INHERITANCE = 'Inheritance';
35
+ exports.SOURCE_OF_FUNDS_LABEL_GIFT = 'Gift';
36
+ exports.SOURCE_OF_FUNDS_LABEL_OTHER = 'Other';
37
+ exports.SOURCE_OF_FUNDS_LABELS = {
38
+ [exports.SOURCE_OF_FUNDS.SALARY]: exports.SOURCE_OF_FUNDS_LABEL_SALARY,
39
+ [exports.SOURCE_OF_FUNDS.SAVINGS]: exports.SOURCE_OF_FUNDS_LABEL_SAVINGS,
40
+ [exports.SOURCE_OF_FUNDS.INHERITANCE]: exports.SOURCE_OF_FUNDS_LABEL_INHERITANCE,
41
+ [exports.SOURCE_OF_FUNDS.GIFT]: exports.SOURCE_OF_FUNDS_LABEL_GIFT,
42
+ [exports.SOURCE_OF_FUNDS.OTHER]: exports.SOURCE_OF_FUNDS_LABEL_OTHER,
41
43
  };
42
44
  // Account options for forms
43
- export const ACCOUNT_TYPE_OPTIONS = Object.entries(ACCOUNT_TYPE_LABELS).map(([value, label]) => ({
45
+ exports.ACCOUNT_TYPE_OPTIONS = Object.entries(exports.ACCOUNT_TYPE_LABELS).map(([value, label]) => ({
44
46
  value,
45
47
  label,
46
48
  }));
47
49
  // Source of funds options
48
- export const SOURCE_OF_FUNDS_OPTIONS = [
49
- { value: SOURCE_OF_FUNDS_SALARY, label: SOURCE_OF_FUNDS_LABEL_SALARY },
50
- { value: SOURCE_OF_FUNDS_SAVINGS, label: SOURCE_OF_FUNDS_LABEL_SAVINGS },
51
- { value: SOURCE_OF_FUNDS_INHERITANCE, label: SOURCE_OF_FUNDS_LABEL_INHERITANCE },
52
- { value: SOURCE_OF_FUNDS_GIFT, label: SOURCE_OF_FUNDS_LABEL_GIFT },
53
- { value: SOURCE_OF_FUNDS_OTHER, label: SOURCE_OF_FUNDS_LABEL_OTHER },
50
+ exports.SOURCE_OF_FUNDS_OPTIONS = [
51
+ { value: exports.SOURCE_OF_FUNDS_SALARY, label: exports.SOURCE_OF_FUNDS_LABEL_SALARY },
52
+ { value: exports.SOURCE_OF_FUNDS_SAVINGS, label: exports.SOURCE_OF_FUNDS_LABEL_SAVINGS },
53
+ { value: exports.SOURCE_OF_FUNDS_INHERITANCE, label: exports.SOURCE_OF_FUNDS_LABEL_INHERITANCE },
54
+ { value: exports.SOURCE_OF_FUNDS_GIFT, label: exports.SOURCE_OF_FUNDS_LABEL_GIFT },
55
+ { value: exports.SOURCE_OF_FUNDS_OTHER, label: exports.SOURCE_OF_FUNDS_LABEL_OTHER },
54
56
  ];
@@ -2,11 +2,13 @@
2
2
  * Bank account type constants
3
3
  * Note: Bank account status constants are in ./status/banks.ts
4
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";
5
+ export declare const BANK_ACCOUNT_CATEGORY: {
6
+ readonly SAVINGS: "savings";
7
+ readonly CHECKING: "checking";
8
+ readonly TRANSACTION: "transaction";
9
+ readonly TERM_DEPOSIT: "term_deposit";
10
+ readonly OFFSET: "offset";
11
+ };
10
12
  export declare const BANK_ACCOUNT_CATEGORIES: readonly ["savings", "checking", "transaction", "term_deposit", "offset"];
11
13
  export type BankAccountCategory = (typeof BANK_ACCOUNT_CATEGORIES)[number];
12
14
  export declare const BANK_ACCOUNT_CATEGORY_LABELS: {
@@ -16,6 +18,11 @@ export declare const BANK_ACCOUNT_CATEGORY_LABELS: {
16
18
  readonly term_deposit: "Term Deposit";
17
19
  readonly offset: "Offset Account";
18
20
  };
21
+ export declare const BANK_ACCOUNT_CATEGORY_SAVINGS: "savings";
22
+ export declare const BANK_ACCOUNT_CATEGORY_CHECKING: "checking";
23
+ export declare const BANK_ACCOUNT_CATEGORY_TRANSACTION: "transaction";
24
+ export declare const BANK_ACCOUNT_CATEGORY_TERM_DEPOSIT: "term_deposit";
25
+ export declare const BANK_ACCOUNT_CATEGORY_OFFSET: "offset";
19
26
  export declare const BANK_ACCOUNT_CATEGORY_DESCRIPTIONS: {
20
27
  readonly savings: "Interest-bearing savings account";
21
28
  readonly checking: "Everyday checking account";
@@ -39,11 +46,11 @@ export interface AccountTypeInfo extends BankAccountCategoryInfo {
39
46
  }
40
47
  export declare const ACCOUNT_TYPES: readonly BankAccountCategoryInfo[];
41
48
  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";
49
+ export declare const BANK_ACCOUNT_TYPE_SAVINGS: "savings";
50
+ export declare const BANK_ACCOUNT_TYPE_CHECKING: "checking";
51
+ export declare const BANK_ACCOUNT_TYPE_TRANSACTION: "transaction";
52
+ export declare const BANK_ACCOUNT_TYPE_TERM_DEPOSIT: "term_deposit";
53
+ export declare const BANK_ACCOUNT_TYPE_OFFSET: "offset";
47
54
  export declare const BANK_ACCOUNT_TYPE_LABELS: {
48
55
  readonly savings: "Savings Account";
49
56
  readonly checking: "Checking Account";
@@ -1 +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,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAG3E,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,MAA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