Files
template-app/modules/archive/contract/constants.ts
T
2026-11-14 09:56:45 +00:00

18 lines
665 B
TypeScript

// The module's names, in a file with no import: a browser bundle can take them without the schemas.
/** The platform service this module is a client of (B-wave contract §3.14). */
export const ARCHIVE_SERVICE_NAME = "archive"
/** The app permissions of the module. */
export const ARCHIVE_PERMISSIONS = {
read: "archive.document.read",
write: "archive.document.write",
manage: "archive.retention.manage",
} as const
/** What a retention period counts from, as the service names it. */
export const RETENTION_BASES = ["created", "last_version", "event"] as const
/** The most rows one page of a list asks the service for. */
export const PAGE_LIMIT = 50