From e731e017bbeb5506dcdf50e79d861efee07b180d Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 16 Nov 2023 18:54:35 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/abstractclasses/csvparser.ts | 2 ++ ts/interfaces/csvdescriptor.ts | 4 ++++ ts/interfaces/index.ts | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 ts/interfaces/csvdescriptor.ts diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index bce6357..54925a2 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@fin.cx/portablefinance', - version: '1.0.22', + version: '1.0.23', description: 'an interface package for the financeplus organization' } diff --git a/ts/abstractclasses/csvparser.ts b/ts/abstractclasses/csvparser.ts index 3f9d912..0aea94a 100644 --- a/ts/abstractclasses/csvparser.ts +++ b/ts/abstractclasses/csvparser.ts @@ -1,6 +1,8 @@ +import type { ICsvDescriptor } from '../interfaces/csvdescriptor.js'; import { type IMonetaryTransaction } from '../interfaces/transaction.js'; export abstract class AcCsvParser { public abstract paymentProviderName: string; + public abstract addCsvDecriptor(csvDescriptorArg: ICsvDescriptor): void; public abstract getTransactions(): Promise; } diff --git a/ts/interfaces/csvdescriptor.ts b/ts/interfaces/csvdescriptor.ts new file mode 100644 index 0000000..2884d2f --- /dev/null +++ b/ts/interfaces/csvdescriptor.ts @@ -0,0 +1,4 @@ +export interface ICsvDescriptor { + name: string; + contentString: string; +} diff --git a/ts/interfaces/index.ts b/ts/interfaces/index.ts index bb5e531..e9f9a75 100644 --- a/ts/interfaces/index.ts +++ b/ts/interfaces/index.ts @@ -1,3 +1,4 @@ +export * from './csvdescriptor.js'; export * from './paymentaccount.js'; export * from './transaction.js'; export * from './voucher.js';