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, CreateRowInput,
UpdateRowInput, UpdateRowInput,
DeleteRowInput, DeleteRowInput,
DeleteRowsInput,
ReorderRowInput, ReorderRowInput,
CreateViewInput, CreateViewInput,
UpdateViewInput, UpdateViewInput,
@@ -106,6 +107,10 @@ export async function deleteRow(data: DeleteRowInput): Promise<void> {
await api.post("/bases/rows/delete", data); 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( export async function listRows(
baseId: string, baseId: string,
params?: { params?: {
@@ -254,6 +254,12 @@ export type DeleteRowInput = {
requestId?: string; requestId?: string;
}; };
export type DeleteRowsInput = {
baseId: string;
rowIds: string[];
requestId?: string;
};
export type ReorderRowInput = { export type ReorderRowInput = {
rowId: string; rowId: string;
baseId: string; baseId: string;