mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
feat(base): add deleteRows client service + type
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user