UNPKG

@woocommerce/data

Version:
34 lines 1.47 kB
import { ImportStatusQuery, ImportStatus, ImportTotals, ImportTotalsQuery } from './types'; export declare function setImportStarted(activeImport: boolean): { type: "SET_IMPORT_STARTED"; activeImport: boolean; }; export declare function setImportPeriod(date: string, dateModified: boolean): { type: "SET_IMPORT_PERIOD"; date: string; } | { type: "SET_IMPORT_DATE"; date: string; }; export declare function setSkipPrevious(skipPrevious: boolean): { type: "SET_SKIP_IMPORTED"; skipPrevious: boolean; }; export declare function setImportStatus(query: ImportStatusQuery, importStatus: ImportStatus): { type: "SET_IMPORT_STATUS"; importStatus: ImportStatus; query: number; }; export declare function setImportTotals(query: ImportTotalsQuery, importTotals: ImportTotals): { type: "SET_IMPORT_TOTALS"; importTotals: ImportTotals; query: ImportTotalsQuery; }; export declare function setImportError(queryOrPath: ImportStatusQuery | ImportTotalsQuery | string, error: unknown): { type: "SET_IMPORT_ERROR"; error: unknown; query: string | number | ImportTotalsQuery; }; export declare function updateImportation(path: string, importStarted?: boolean): Generator<unknown, unknown, unknown>; export type Action = ReturnType<typeof setImportStarted | typeof setImportPeriod | typeof setImportStatus | typeof setImportTotals | typeof setImportError | typeof setSkipPrevious>; //# sourceMappingURL=actions.d.ts.map