@decocms/bindings 1.0.6 → 1.0.8
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 +1 -1
- package/src/well-known/workflow.ts +10 -4
package/package.json
CHANGED
|
@@ -164,10 +164,6 @@ 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"),
|
|
171
167
|
gateway_id: z
|
|
172
168
|
.string()
|
|
173
169
|
.describe("ID of the gateway that will be used to execute the workflow"),
|
|
@@ -202,7 +198,17 @@ export const WorkflowExecutionSchema = BaseCollectionEntitySchema.extend({
|
|
|
202
198
|
),
|
|
203
199
|
error: z
|
|
204
200
|
.unknown()
|
|
201
|
+
.nullish()
|
|
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
|
|