Skip to content

Variable: WorkflowRunListItem ​

ts
const WorkflowRunListItem: z.ZodObject<{
  context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
  correlationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  createdAt: z.ZodCoercedDate<unknown>;
  currentStepId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  decisionId: z.ZodOptional<z.ZodNullable<z.ZodGUID>>;
  definitionId: z.ZodGUID;
  definitionKey: z.ZodString;
  definitionVersion: z.ZodNumber;
  durationMs: z.ZodNumber;
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  finishedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
  id: z.ZodGUID;
  outcome: z.ZodNullable<z.ZodEnum<{
     approve: "approve";
     manual_review: "manual_review";
     reject: "reject";
  }>>;
  replayOf: z.ZodOptional<z.ZodNullable<z.ZodObject<{
     runId: z.ZodGUID;
     stepId: z.ZodString;
  }, z.core.$strip>>>;
  startedAt: z.ZodCoercedDate<unknown>;
  status: z.ZodEnum<{
     cancelled: "cancelled";
     completed: "completed";
     failed: "failed";
     running: "running";
     waiting_callback: "waiting_callback";
     waiting_collection: "waiting_collection";
     waiting_manual: "waiting_manual";
  }>;
  subject: z.ZodOptional<z.ZodObject<{
     country: z.ZodOptional<z.ZodString>;
     displayName: z.ZodString;
     externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
     id: z.ZodGUID;
     kind: z.ZodEnum<{
        merchant: "merchant";
        seller: "seller";
        user: "user";
     }>;
  }, z.core.$strip>>;
  subjectId: z.ZodGUID;
  temporalRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  temporalWorkflowId: z.ZodString;
  tenantId: z.ZodGUID;
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  trigger: z.ZodDefault<z.ZodEnum<{
     api: "api";
     console: "console";
     replay: "replay";
  }>>;
  updatedAt: z.ZodCoercedDate<unknown>;
}, z.core.$strip>;

A run in a list: the run plus its duration, its outcome and whatever expand asked for.

Released under the Apache-2.0 License.