27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
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 CRM_SERVICE_NAME = "crm"
|
|
|
|
/** The app permissions of the module. */
|
|
export const CRM_PERMISSIONS = {
|
|
read: "crm.party.read",
|
|
write: "crm.party.write",
|
|
} as const
|
|
|
|
/**
|
|
* The identifier scheme that links a party to one of this app's people: its value is the person's
|
|
* partition-bound member reference (`actorRef` of @conusai-kit/business), which an export or an erasure of that
|
|
* person through the platform reaches (B-wave contract §3.8).
|
|
*/
|
|
export const SUBJECT_SCHEME = "conusai.subject"
|
|
|
|
/** The contact kinds the module's form adds; the service keeps postal addresses and Peppol endpoints too. */
|
|
export const CONTACT_KINDS = ["email", "phone", "web"] as const
|
|
|
|
/** What a contact point is for, as the service names it. */
|
|
export const CONTACT_PURPOSES = ["billing", "delivery", "invoice_email", "site"] as const
|
|
|
|
/** The most rows one page of a list asks the service for. */
|
|
export const PAGE_LIMIT = 50
|