mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
feat(base): add BASE_ROWS_DELETED event type
This commit is contained in:
@@ -23,6 +23,7 @@ export enum EventName {
|
|||||||
BASE_ROW_CREATED = 'base.row.created',
|
BASE_ROW_CREATED = 'base.row.created',
|
||||||
BASE_ROW_UPDATED = 'base.row.updated',
|
BASE_ROW_UPDATED = 'base.row.updated',
|
||||||
BASE_ROW_DELETED = 'base.row.deleted',
|
BASE_ROW_DELETED = 'base.row.deleted',
|
||||||
|
BASE_ROWS_DELETED = 'base.rows.deleted',
|
||||||
BASE_ROW_RESTORED = 'base.row.restored',
|
BASE_ROW_RESTORED = 'base.row.restored',
|
||||||
BASE_ROW_REORDERED = 'base.row.reordered',
|
BASE_ROW_REORDERED = 'base.row.reordered',
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ export type BaseRowUpdatedEvent = BaseEventBase & {
|
|||||||
updatedCells: Record<string, unknown>;
|
updatedCells: Record<string, unknown>;
|
||||||
};
|
};
|
||||||
export type BaseRowDeletedEvent = BaseEventBase & { rowId: string };
|
export type BaseRowDeletedEvent = BaseEventBase & { rowId: string };
|
||||||
|
export type BaseRowsDeletedEvent = BaseEventBase & { rowIds: string[] };
|
||||||
export type BaseRowRestoredEvent = BaseEventBase & { rowId: string };
|
export type BaseRowRestoredEvent = BaseEventBase & { rowId: string };
|
||||||
export type BaseRowReorderedEvent = BaseEventBase & {
|
export type BaseRowReorderedEvent = BaseEventBase & {
|
||||||
rowId: string;
|
rowId: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user