Skip to content

craft-hub / softwareInstallationRunsSchema

Variable: softwareInstallationRunsSchema ​

const softwareInstallationRunsSchema: ZodObject<{ runs: ZodArray<ZodObject<{ createdAt: ZodISODateTime; id: ZodString; items: ZodArray<ZodObject<{ log: ZodString; message: ZodOptional<ZodString>; progress: ZodOptional<ZodDiscriminatedUnion<[..., ..., ...], "phase">>; softwareId: ZodString; state: ZodEnum<{ cancelled: "cancelled"; failed: "failed"; installed: "installed"; interrupted: "interrupted"; manual: "manual"; queued: "queued"; running: "running"; skipped: "skipped"; }>; title: ZodObject<{ en: ZodString; zh: ZodOptional<...>; }, $strict>; }, $strict>>; planId: ZodString; retryOf: ZodOptional<ZodString>; sourceId: ZodString; state: ZodEnum<{ cancelled: "cancelled"; cancelling: "cancelling"; completed: "completed"; failed: "failed"; interrupted: "interrupted"; queued: "queued"; running: "running"; waiting: "waiting"; }>; updatedAt: ZodISODateTime; version: ZodLiteral<1>; }, $strict>>; version: ZodLiteral<1>; }, $strict>

Defined in: packages/craft-hub/src/software-catalog.ts:106

Recent progress survives client refreshes and is bounded by the adapter.

Released under the MIT License.