@basetime/a2w-api-ts
Version:
Client library that communicates with the addtowallet API.
32 lines (31 loc) • 941 B
TypeScript
import { z } from 'zod';
/**
* Schema for the outcome of an exporter run.
*/
export declare const ExporterLogStatusSchema: z.ZodString;
/**
* Outcome of an exporter run.
*/
export type ExporterLogStatus = 'success' | 'error' | 'running' | (string & {});
/**
* Schema for a record of an exporter execution.
*
* Returned by `client.organizations.exporters.getLogs(...)` and `getLog(...)`.
*/
export declare const ExporterLogSchema: z.ZodObject<{
id: z.ZodString;
organization: z.ZodString;
exporter: z.ZodString;
status: z.ZodString;
message: z.ZodOptional<z.ZodString>;
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
rowCount: z.ZodOptional<z.ZodNumber>;
runTime: z.ZodOptional<z.ZodNumber>;
createdDate: z.ZodCoercedDate<unknown>;
}, z.core.$loose>;
/**
* A record of an exporter execution.
*/
export type ExporterLog = z.infer<typeof ExporterLogSchema> & {
status: ExporterLogStatus;
};