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

15 lines
550 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 INVENTORY_SERVICE_NAME = "inventory"
/** The app permissions of the module, by what they let a member do. */
export const INVENTORY_PERMISSIONS = {
read: "inventory.item.read",
write: "inventory.item.write",
reserve: "inventory.stock.reserve",
} as const
/** The most rows one page of a list asks the service for. */
export const PAGE_LIMIT = 50