19 lines
778 B
TypeScript
19 lines
778 B
TypeScript
// The live collections of the notes module (umbrella TS6.1). The live server announces a change of
|
|
// `notes_note` as `{ entity: "notes.note", id }`, ids only; the browser reads the note back through
|
|
// `notes.note.getMany`, so the procedure's permission and the repository's tenant wall decide what a
|
|
// member sees. `pnpm kit check` refuses a collection without its batch-get procedure.
|
|
|
|
import type { ModuleCollection } from "@conusai-kit/core"
|
|
|
|
export const NOTE_COLLECTION = {
|
|
entity: "notes.note",
|
|
table: "notes_note",
|
|
key: "noteId",
|
|
scopeLevel: "project",
|
|
read: "notes.note.read",
|
|
list: "notes.note.list",
|
|
getMany: "notes.note.getMany",
|
|
} as const satisfies ModuleCollection
|
|
|
|
export const NOTES_COLLECTIONS: readonly ModuleCollection[] = [NOTE_COLLECTION]
|