mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
migrate to typescript
This commit is contained in:
@@ -0,0 +1,139 @@
|
||||
export const SUPPORTED_IMAGE_EXTENSIONS: string = '.jpg,.jpeg,.png,.gif,.webp';
|
||||
|
||||
export interface ImportFileType {
|
||||
readonly type: string;
|
||||
readonly name: string;
|
||||
readonly extensions: string;
|
||||
readonly subTypes?: ImportFileTypeSubType[];
|
||||
readonly document?: {
|
||||
readonly supportMultiLanguages: boolean | string;
|
||||
readonly anchor: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ImportFileTypeSubType {
|
||||
readonly type: string;
|
||||
readonly name: string;
|
||||
readonly extensions?: string;
|
||||
}
|
||||
|
||||
export const SUPPORTED_IMPORT_FILE_TYPES: ImportFileType[] = [
|
||||
{
|
||||
type: 'ezbookkeeping',
|
||||
name: 'ezbookkeeping Data Export File',
|
||||
extensions: '.csv,.tsv',
|
||||
subTypes: [
|
||||
{
|
||||
type: 'ezbookkeeping_csv',
|
||||
name: 'CSV (Comma-separated values) File',
|
||||
extensions: '.csv',
|
||||
},
|
||||
{
|
||||
type: 'ezbookkeeping_tsv',
|
||||
name: 'TSV (Tab-separated values) File',
|
||||
extensions: '.tsv',
|
||||
}
|
||||
],
|
||||
document: {
|
||||
supportMultiLanguages: true,
|
||||
anchor: 'export-transactions'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'ofx',
|
||||
name: 'Open Financial Exchange (OFX) File',
|
||||
extensions: '.ofx'
|
||||
},
|
||||
{
|
||||
type: 'qfx',
|
||||
name: 'Quicken Financial Exchange (QFX) File',
|
||||
extensions: '.qfx'
|
||||
},
|
||||
{
|
||||
type: 'qif',
|
||||
name: 'Quicken Interchange Format (QIF) File',
|
||||
extensions: '.qif',
|
||||
subTypes: [
|
||||
{
|
||||
type: 'qif_ymd',
|
||||
name: 'Year-month-day format',
|
||||
},
|
||||
{
|
||||
type: 'qif_mdy',
|
||||
name: 'Month-day-year format',
|
||||
},
|
||||
{
|
||||
type: 'qif_dmy',
|
||||
name: 'Day-month-year format',
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'iif',
|
||||
name: 'Intuit Interchange Format (IIF) File',
|
||||
extensions: '.iif'
|
||||
},
|
||||
{
|
||||
type: 'gnucash',
|
||||
name: 'GnuCash XML Database File',
|
||||
extensions: '.gnucash',
|
||||
document: {
|
||||
supportMultiLanguages: true,
|
||||
anchor: 'how-to-get-gnucash-xml-database-file'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'firefly_iii_csv',
|
||||
name: 'Firefly III Data Export File',
|
||||
extensions: '.csv',
|
||||
document: {
|
||||
supportMultiLanguages: true,
|
||||
anchor: 'how-to-get-firefly-iii-data-export-file'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'feidee_mymoney_csv',
|
||||
name: 'Feidee MyMoney (App) Data Export File',
|
||||
extensions: '.csv',
|
||||
document: {
|
||||
supportMultiLanguages: 'zh-Hans',
|
||||
anchor: '如何获取随手记app数据导出文件'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'feidee_mymoney_xls',
|
||||
name: 'Feidee MyMoney (Web) Data Export File',
|
||||
extensions: '.xls',
|
||||
document: {
|
||||
supportMultiLanguages: 'zh-Hans',
|
||||
anchor: '如何获取随手记web版数据导出文件'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'alipay_app_csv',
|
||||
name: 'Alipay (App) Transaction Flow File',
|
||||
extensions: '.csv',
|
||||
document: {
|
||||
supportMultiLanguages: 'zh-Hans',
|
||||
anchor: '如何获取支付宝app交易流水文件'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'alipay_web_csv',
|
||||
name: 'Alipay (Web) Transaction Flow File',
|
||||
extensions: '.csv',
|
||||
document: {
|
||||
supportMultiLanguages: 'zh-Hans',
|
||||
anchor: '如何获取支付宝网页版交易流水文件'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'wechat_pay_app_csv',
|
||||
name: 'WeChat Pay Billing File',
|
||||
extensions: '.csv',
|
||||
document: {
|
||||
supportMultiLanguages: 'zh-Hans',
|
||||
anchor: '如何获取微信支付账单文件'
|
||||
}
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user