UNPKG

@basetime/a2w-api-ts

Version:

Client library that communicates with the addtowallet API.

38 lines (37 loc) 965 B
import { z } from 'zod'; /** * Schema for the status of a workflow job. */ export declare const WorkflowJobStatusSchema: z.ZodEnum<{ error: "error"; success: "success"; pending: "pending"; running: "running"; }>; /** * The status of a workflow job. */ export type WorkflowJobStatus = z.infer<typeof WorkflowJobStatusSchema>; /** * Schema for a workflow job. */ export declare const WorkflowJobSchema: z.ZodObject<{ id: z.ZodString; organizationId: z.ZodString; workflowId: z.ZodOptional<z.ZodString>; code: z.ZodString; context: z.ZodUnknown; status: z.ZodEnum<{ error: "error"; success: "success"; pending: "pending"; running: "running"; }>; runTime: z.ZodNumber; error: z.ZodNullable<z.ZodString>; createdDate: z.ZodCoercedDate<unknown>; }, z.core.$loose>; /** * Entity for the workflowJobs collection. */ export type WorkflowJob = z.infer<typeof WorkflowJobSchema>;