feat(base): add FormulaService, FormulaLockService, recompute job type

This commit is contained in:
Philipinho
2026-04-24 00:13:20 +01:00
parent 493613e634
commit 2da8779b34
6 changed files with 229 additions and 0 deletions
@@ -137,3 +137,20 @@ export interface IBaseCellGcJob {
propertyId: string;
workspaceId: string;
}
export interface IBaseFormulaRecomputeJob {
baseId: string;
workspaceId: string;
propertyIds: string[]; // formula properties to recompute
reason:
| 'formula_created'
| 'formula_edited'
| 'dep_type_changed'
| 'dep_deleted'
| 'bulk_import'
| 'manual';
actorId?: string | null;
// When set, scope recompute to these row IDs instead of the whole base.
// Used by the bulk-write path (> FORMULA_INLINE_ROW_THRESHOLD).
rowIds?: string[];
}