@cranberry-money/shared-constants
Version:
Shared constants for Blueberry platform
36 lines • 1.86 kB
TypeScript
export declare const BANK_ACCOUNT_CATEGORY_SAVINGS = "savings";
export declare const BANK_ACCOUNT_CATEGORY_CHECKING = "checking";
export declare const BANK_ACCOUNT_CATEGORIES: readonly ["savings", "checking"];
export type BankAccountCategory = (typeof BANK_ACCOUNT_CATEGORIES)[number];
export declare const BANK_ACCOUNT_CATEGORY_LABELS: {
readonly savings: "Savings Account";
readonly checking: "Checking Account";
};
export declare const BANK_ACCOUNT_CATEGORY_DESCRIPTIONS: {
readonly savings: "Interest-bearing savings account";
readonly checking: "Everyday checking account";
};
export declare const BANK_ACCOUNT_CATEGORY_OPTIONS: {
value: "savings" | "checking";
label: "Savings Account" | "Checking Account";
description: "Interest-bearing savings account" | "Everyday checking account";
}[];
export interface BankAccountCategoryInfo {
readonly code: BankAccountCategory;
readonly name: string;
readonly description: string;
}
export declare const BANK_ACCOUNT_CATEGORIES_INFO: readonly BankAccountCategoryInfo[];
export declare const getBankAccountCategoryInfo: (code: BankAccountCategory) => BankAccountCategoryInfo | undefined;
export declare const BANK_ACCOUNT_TYPE_OPTIONS: {
value: "savings" | "checking";
label: "Savings Account" | "Checking Account";
description: "Interest-bearing savings account" | "Everyday checking account";
}[];
export type BankAccountType = BankAccountCategory;
export declare const BANK_ACCOUNT_TYPE_LABEL_SAVINGS: "Savings Account";
export declare const BANK_ACCOUNT_TYPE_LABEL_CHECKING: "Checking Account";
export declare const BANK_ACCOUNT_TYPE_DESC_SAVINGS: "Interest-bearing savings account";
export declare const BANK_ACCOUNT_TYPE_DESC_CHECKING: "Everyday checking account";
export type AccountType = BankAccountCategory;
//# sourceMappingURL=bank-accounts.d.ts.map