CmsServerConfig.tables
property · packages/cms-drizzle/src/index.ts:155
readonly tables: CmsTablesCMS / foldkit-cms-drizzle
interface · packages/cms-drizzle/src/index.ts:154
interface CmsServerConfig<User> {
readonly tables: CmsTables
readonly content: ReadonlyArray<ServedContent<Option.Option<User>>>
readonly transaction: Transaction
readonly policy: Policy<User>
readonly authors: ReadonlyArray<PrincipalGuard<User>>
readonly transitions?:
| {
readonly [T in Transition]?:
ReadonlyArray<PrincipalGuard<User>> | undefined
}
| undefined
readonly allow?: (
principal: Option.Option<User>,
transition: Transition,
entry: EntryRow,
) => boolean
readonly now?: () => Date
readonly maxDraftSize?: number
readonly nameOf?: (principal: Option.Option<User>) => string | null
}CmsServerConfig.tablesproperty · packages/cms-drizzle/src/index.ts:155
readonly tables: CmsTablesCmsServerConfig.contentproperty · packages/cms-drizzle/src/index.ts:156
readonly content: ReadonlyArray<ServedContent<Option.Option<User>>>CmsServerConfig.transactionproperty · packages/cms-drizzle/src/index.ts:158
readonly transaction: TransactionHow a publish is made whole: Transaction.statements or Transaction.drizzle.
CmsServerConfig.policyproperty · packages/cms-drizzle/src/index.ts:160
readonly policy: Policy<User>The guard set's bodies, which decide authors and transitions.
CmsServerConfig.authorsproperty · packages/cms-drizzle/src/index.ts:165
readonly authors: ReadonlyArray<PrincipalGuard<User>>Who reads and writes unpublished work: a principal any of these lets. Everyone else is a visitor.
CmsServerConfig.transitionsproperty · packages/cms-drizzle/src/index.ts:170
readonly transitions?:
| {
readonly [T in Transition]?:
ReadonlyArray<PrincipalGuard<User>> | undefined
}
| undefinedWho of the authors may make a transition: any of its guards lets. One not named is any author's.
CmsServerConfig.allowproperty · packages/cms-drizzle/src/index.ts:177
readonly allow?: (
principal: Option.Option<User>,
transition: Transition,
entry: EntryRow,
) => booleanWhether this author may make this transition of this entry, for a rule
about the entry itself: asked after the entry is found, the transition is
one its state offers, and transitions let. Default: they may.
CmsServerConfig.nowproperty · packages/cms-drizzle/src/index.ts:183
readonly now?: () => DateThe server's clock, passed in so a test can hold it.
CmsServerConfig.maxDraftSizeproperty · packages/cms-drizzle/src/index.ts:189
readonly maxDraftSize?: numberThe most a draft may hold, as the characters of its JSON: its values and its form's Model together. An author is trusted with their own content, not with the database's disk. Default: one million.
CmsServerConfig.nameOfproperty · packages/cms-drizzle/src/index.ts:191
readonly nameOf?: (principal: Option.Option<User>) => string | nullWho a principal is, for createdBy and updatedBy.