feat(base): add deleteRows client service + type

This commit is contained in:
Philipinho
2026-04-18 16:34:19 +01:00
parent e017209d76
commit 0bbcc7ee30
2 changed files with 11 additions and 0 deletions
@@ -13,6 +13,7 @@ import {
CreateRowInput,
UpdateRowInput,
DeleteRowInput,
DeleteRowsInput,
ReorderRowInput,
CreateViewInput,
UpdateViewInput,
@@ -106,6 +107,10 @@ export async function deleteRow(data: DeleteRowInput): Promise<void> {
await api.post("/bases/rows/delete", data);
}
export async function deleteRows(data: DeleteRowsInput): Promise<void> {
await api.post("/bases/rows/delete-many", data);
}
export async function listRows(
baseId: string,
params?: {
@@ -254,6 +254,12 @@ export type DeleteRowInput = {
requestId?: string;
};
export type DeleteRowsInput = {
baseId: string;
rowIds: string[];
requestId?: string;
};
export type ReorderRowInput = {
rowId: string;
baseId: string;