@cranberry-money/shared-constants 4.7.2 → 4.7.4

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,11 @@
1
+ /**
2
+ * Countries domain constants
3
+ */
4
+ export declare const COUNTRY_STATUS: {
5
+ readonly AVAILABLE: true;
6
+ readonly UNAVAILABLE: false;
7
+ };
8
+ export type CountryStatus = typeof COUNTRY_STATUS[keyof typeof COUNTRY_STATUS];
9
+ export declare const COUNTRY_STATUS_AVAILABLE: true;
10
+ export declare const COUNTRY_STATUS_UNAVAILABLE: false;
11
+ //# sourceMappingURL=countries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.d.ts","sourceRoot":"","sources":["../../src/business/countries.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,wBAAwB,MAA2B,CAAC;AACjE,eAAO,MAAM,0BAA0B,OAA6B,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * Countries domain constants
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.COUNTRY_STATUS_UNAVAILABLE = exports.COUNTRY_STATUS_AVAILABLE = exports.COUNTRY_STATUS = void 0;
7
+ // Country availability status
8
+ exports.COUNTRY_STATUS = {
9
+ AVAILABLE: true,
10
+ UNAVAILABLE: false,
11
+ };
12
+ // Individual exports for easy migration from Blueberry
13
+ exports.COUNTRY_STATUS_AVAILABLE = exports.COUNTRY_STATUS.AVAILABLE;
14
+ exports.COUNTRY_STATUS_UNAVAILABLE = exports.COUNTRY_STATUS.UNAVAILABLE;
@@ -8,4 +8,6 @@ export * from './investments';
8
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
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';
11
+ export { CASH_ACCOUNT_TRANSACTION_TYPE, type CashAccountTransactionType, CASH_ACCOUNT_TRANSACTION_TYPE_LABELS, CASH_ACCOUNT_TRANSACTION_STATUS, type CashAccountTransactionStatus, CASH_ACCOUNT_TRANSACTION_STATUS_LABELS, TRANSACTION_TYPE_LABEL_DEPOSIT, TRANSACTION_TYPE_LABEL_WITHDRAWAL, TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT, TRANSACTION_TYPE_LABEL_DISTRIBUTION, TRANSACTION_TYPE_LABEL_FEE, TRANSACTION_TYPE_LABEL_INTEREST, TRANSACTION_TYPE_LABEL_OTHER, TRANSACTION_TYPE_OPTIONS, } from './status/cash-accounts';
12
+ export * from './countries';
11
13
  //# 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;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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/business/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAE9B,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,0BAA0B,EAC1B,cAAc,EACd,yBAAyB,GAC1B,MAAM,WAAW,CAAC;AACnB,cAAc,WAAW,CAAC;AAE1B,OAAO,EAEL,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,6BAA6B,EAC7B,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,0BAA0B,EAE1B,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,+BAA+B,EAC/B,gCAAgC,EAChC,mCAAmC,EACnC,oCAAoC,EACpC,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAC/B,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,KAAK,eAAe,EACpB,aAAa,EACb,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EACL,6BAA6B,EAC7B,KAAK,0BAA0B,EAC/B,oCAAoC,EACpC,+BAA+B,EAC/B,KAAK,4BAA4B,EACjC,sCAAsC,EACtC,8BAA8B,EAC9B,iCAAiC,EACjC,uCAAuC,EACvC,mCAAmC,EACnC,0BAA0B,EAC1B,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAGhC,cAAc,aAAa,CAAC"}
@@ -17,7 +17,7 @@ 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
+ exports.TRANSACTION_TYPE_OPTIONS = exports.TRANSACTION_TYPE_LABEL_OTHER = exports.TRANSACTION_TYPE_LABEL_INTEREST = exports.TRANSACTION_TYPE_LABEL_FEE = exports.TRANSACTION_TYPE_LABEL_DISTRIBUTION = exports.TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT = exports.TRANSACTION_TYPE_LABEL_WITHDRAWAL = exports.TRANSACTION_TYPE_LABEL_DEPOSIT = exports.CASH_ACCOUNT_TRANSACTION_STATUS_LABELS = exports.CASH_ACCOUNT_TRANSACTION_STATUS = exports.CASH_ACCOUNT_TRANSACTION_TYPE_LABELS = exports.CASH_ACCOUNT_TRANSACTION_TYPE = 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;
21
21
  __exportStar(require("./status"), exports);
22
22
  __exportStar(require("./accounts"), exports);
23
23
  __exportStar(require("./documents"), exports);
@@ -65,3 +65,19 @@ Object.defineProperty(exports, "BANK_ACCOUNT_TYPE_DESC_OFFSET", { enumerable: tr
65
65
  Object.defineProperty(exports, "ACCOUNT_TYPES", { enumerable: true, get: function () { return bank_accounts_1.ACCOUNT_TYPES; } });
66
66
  Object.defineProperty(exports, "getAccountTypeInfo", { enumerable: true, get: function () { return bank_accounts_1.getAccountTypeInfo; } });
67
67
  // Don't export the conflicting type aliases and BANK_ACCOUNT_TYPE_LABELS from bank-accounts
68
+ // Export all cash account constants
69
+ var cash_accounts_1 = require("./status/cash-accounts");
70
+ Object.defineProperty(exports, "CASH_ACCOUNT_TRANSACTION_TYPE", { enumerable: true, get: function () { return cash_accounts_1.CASH_ACCOUNT_TRANSACTION_TYPE; } });
71
+ Object.defineProperty(exports, "CASH_ACCOUNT_TRANSACTION_TYPE_LABELS", { enumerable: true, get: function () { return cash_accounts_1.CASH_ACCOUNT_TRANSACTION_TYPE_LABELS; } });
72
+ Object.defineProperty(exports, "CASH_ACCOUNT_TRANSACTION_STATUS", { enumerable: true, get: function () { return cash_accounts_1.CASH_ACCOUNT_TRANSACTION_STATUS; } });
73
+ Object.defineProperty(exports, "CASH_ACCOUNT_TRANSACTION_STATUS_LABELS", { enumerable: true, get: function () { return cash_accounts_1.CASH_ACCOUNT_TRANSACTION_STATUS_LABELS; } });
74
+ Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_DEPOSIT", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_DEPOSIT; } });
75
+ Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_WITHDRAWAL", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_WITHDRAWAL; } });
76
+ Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_TRADE_SETTLEMENT; } });
77
+ Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_DISTRIBUTION", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_DISTRIBUTION; } });
78
+ Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_FEE", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_FEE; } });
79
+ Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_INTEREST", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_INTEREST; } });
80
+ Object.defineProperty(exports, "TRANSACTION_TYPE_LABEL_OTHER", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_LABEL_OTHER; } });
81
+ Object.defineProperty(exports, "TRANSACTION_TYPE_OPTIONS", { enumerable: true, get: function () { return cash_accounts_1.TRANSACTION_TYPE_OPTIONS; } });
82
+ // Export countries constants
83
+ __exportStar(require("./countries"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cranberry-money/shared-constants",
3
- "version": "4.7.2",
3
+ "version": "4.7.4",
4
4
  "description": "Shared constants for MyPortfolio platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",