Israeli Bank Importer - v1.44.5
    Preparing search index...

    Interface IReceiptActualApi

    Actual Budget API surface needed by Receipt import sub-modules.

    interface IReceiptActualApi {
        getAccounts: () => Promise<{ id: string; name: string }[]>;
        getCategories: () => Promise<{ id: string; name: string }[]>;
        importTransactions: (
            accountId: string,
            transactions: { account: string; date: string; [key: string]: unknown }[],
        ) => Promise<unknown>;
        q: (
            table: string,
        ) => {
            filter: (
                f: unknown,
            ) => { select: (s: string[]) => { orderBy: (o: unknown) => unknown } };
        };
        aqlQuery: (query: unknown) => Promise<unknown>;
    }
    Index
    getAccounts: () => Promise<{ id: string; name: string }[]>

    Fetches all accounts from Actual Budget.

    getCategories: () => Promise<{ id: string; name: string }[]>

    Fetches all categories from Actual Budget.

    importTransactions: (
        accountId: string,
        transactions: { account: string; date: string; [key: string]: unknown }[],
    ) => Promise<unknown>

    Imports transactions into an Actual Budget account.

    q: (
        table: string,
    ) => {
        filter: (
            f: unknown,
        ) => { select: (s: string[]) => { orderBy: (o: unknown) => unknown } };
    }

    Builds an AQL query for the given table.

    aqlQuery: (query: unknown) => Promise<unknown>

    Executes an AQL query.