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,
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user