Skip to content

Commit fef2d04

Browse files
committed
fix(types): mirror the two-arm bulk confirmText in the ObjectGrid zod schema
The zod-mirror parity ledger compares ObjectGridBulkActionDefSchema with BulkActionDef member for member, so the mirror takes the same string or template-envelope union.
1 parent bbb06a1 commit fef2d04

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/types/src/zod/objectql.zod.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,9 @@ const ObjectGridBulkActionDefSchema = z.strictObject({
584584
operation: stripImportedDefaults(SpecBulkActionOperationSchema),
585585
patch: z.record(z.string(), z.unknown()).optional(),
586586
params: z.array(ObjectGridBulkActionParamSchema).optional(),
587-
confirmText: z.string().optional(),
587+
// The twin's two arms (objectui#13183): a string, or the `template` envelope a
588+
// parsed def carries once the spec makes the slot a template slot (objectstack#24947).
589+
confirmText: z.union([z.string(), z.object({ dialect: z.literal('template').optional(), source: z.string() })]).optional(),
588590
confirmLabel: z.string().optional(),
589591
visible: z.union([ExpressionWireSchema, stripImportedDefaults(SpecBulkActionDefSchema).shape.visible]).optional(),
590592
requiredPermissions: z.array(z.string()).optional(),

0 commit comments

Comments
 (0)