@decocms/bindings 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/bindings",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check": "tsc --noEmit",
@@ -164,10 +164,7 @@ export type WorkflowExecutionStatus = z.infer<
164
164
  * Includes lock columns and retry tracking.
165
165
  */
166
166
  export const WorkflowExecutionSchema = BaseCollectionEntitySchema.extend({
167
- steps: z
168
- .array(StepSchema)
169
- .describe("Steps that make up the workflow")
170
- .describe("Workflow that was executed"),
167
+ steps: z.array(StepSchema).describe("Steps that make up the workflow"),
171
168
  gateway_id: z
172
169
  .string()
173
170
  .describe("ID of the gateway that will be used to execute the workflow"),
@@ -203,6 +200,15 @@ export const WorkflowExecutionSchema = BaseCollectionEntitySchema.extend({
203
200
  error: z
204
201
  .unknown()
205
202
  .describe("Error that occurred during the workflow execution"),
203
+ completed_steps: z
204
+ .object({
205
+ success: z
206
+ .array(z.string())
207
+ .describe("Names of the steps that were completed successfully"),
208
+ error: z.array(z.string()).describe("Names of the steps that errored"),
209
+ })
210
+ .optional()
211
+ .describe("Names of the steps that were completed and their status"),
206
212
  });
207
213
  export type WorkflowExecution = z.infer<typeof WorkflowExecutionSchema>;
208
214