feat(core): Optionally return updated/upserted Data Table rows (no-changelog) (#18735)

This commit is contained in:
Jaakko Husso
2025-08-26 11:50:13 +03:00
committed by GitHub
parent 1e58e24400
commit 8defb2b17c
9 changed files with 602 additions and 145 deletions

View File

@@ -17,6 +17,7 @@ const updateDataStoreRowShape = {
.refine((obj) => Object.keys(obj).length > 0, {
message: 'data must not be empty',
}),
returnData: z.boolean().default(false),
};
export class UpdateDataStoreRowDto extends Z.class(updateDataStoreRowShape) {}

View File

@@ -9,6 +9,7 @@ import {
const upsertDataStoreRowsShape = {
rows: z.array(z.record(dataStoreColumnNameSchema, dataStoreColumnValueSchema)),
matchFields: z.array(dataStoreColumnNameSchema).min(1),
returnData: z.boolean().optional().default(false),
};
export class UpsertDataStoreRowsDto extends Z.class(upsertDataStoreRowsShape) {}