@accounter/modern-poalim-scraper
Version:
A new architecture for Israeli bank scrapers to hopefully merge into [Israeli-bank-scrapers](https://github.com/eshaham/israeli-bank-scrapers) when they are ready
45 lines (44 loc) • 1.45 kB
TypeScript
import type { Page } from 'puppeteer';
import type { IsracardCardsTransactionsList } from '../__generated__/isracardCardsTransactionsList.js';
import type { IsracardDashboardMonth } from '../__generated__/isracardDashboardMonth.js';
export declare function amex(page: Page, credentials: AmexCredentials, options?: AmexOptions): Promise<{
getMonthDashboard: (RequestedMonthDate: Date) => Promise<{
isValid: boolean;
errors: unknown;
data: IsracardDashboardMonth | null;
} | {
data: IsracardDashboardMonth | null;
}>;
getDashboards: () => Promise<({
isValid: boolean;
errors: unknown;
data: IsracardDashboardMonth | null;
} | {
data: IsracardDashboardMonth | null;
})[]>;
getMonthTransactions: (RequestedMonthDate: Date) => Promise<{
isValid: boolean;
errors: unknown;
data: IsracardCardsTransactionsList | null;
} | {
data: IsracardCardsTransactionsList | null;
isValid: null;
}>;
getTransactions: () => Promise<({
isValid: boolean;
errors: unknown;
data: IsracardCardsTransactionsList | null;
} | {
data: IsracardCardsTransactionsList | null;
isValid: null;
})[]>;
}>;
export declare class AmexOptions {
validateSchema: boolean;
duration?: number;
}
export declare class AmexCredentials {
ID: string;
password: string;
card6Digits: string;
}