Files
template-app/modules/documents/contract/review.ts
T

14 lines
660 B
TypeScript

// The names of the kernel's review procedures, for a page that calls them. A file of its own and
// with no import, because a browser bundle takes it: the rest of the contract pulls in the data
// layer, which a client component has no business loading.
//
// Approving and rejecting a line are the proposals module's procedures, not this module's: a
// review decision has one implementation, one permission and one audit event whichever screen it
// was made on (decision AT-D22).
export const REVIEW_PROCEDURES = {
approve: "proposals.proposal.approve",
approveMany: "proposals.proposal.approveMany",
reject: "proposals.proposal.reject",
} as const