Files
template-app/modules/notes/adapters/convex/index.ts
T

16 lines
1.0 KiB
TypeScript

// The notes module on the Convex profile (spec §5.4). Nothing here re-implements the module:
// the manifest already declares the same `repositoryBindings(...NOTES_ENTITIES)` under the
// `convex` key (module.ts), and the generator (`pnpm convex:gen`) turns the module's procedure
// contracts into convex/generated/notes.ts and its entities into the tables of convex/schema.ts.
//
// What a module's adapters/convex/ folder is FOR, when it needs anything at all: the
// profile-specific pieces that cannot be derived from the contract -- a capability query that
// drops to a Convex index range or a vector index (spec §5.2), or a scheduled function only this
// module runs. Notes needs none of that, so this file is the proof: the module runs unchanged.
import { repositoryBindings } from "@conusai-kit/data"
import { NOTES_ENTITIES } from "../../contract/index.js"
/** The manifest's convex binding, kept next to the profile's other pieces for greppability. */
export const notesConvexBindings = repositoryBindings(...NOTES_ENTITIES)