domain/lib.rs
1//! Typed domain contracts for NVA Pet Resorts labor-cost automation.
2//!
3//! The crate is the code-derived source of truth for a 170-location pet-resort operating model:
4//! customers, pets, reservations, source-system provenance, safety policies, payment/deposit
5//! states, documents, messages, workflow events, and audit evidence. Types in this crate describe
6//! what an agent or adapter may know and what must remain draft/review-gated before any live staff,
7//! customer, payment, medical, or capacity action.
8//!
9//! Crosswalk navigation for docs readers: start with the entity index and contract
10//! crosswalks before treating a type as operational authority. `domain` is where
11//! provider/staff evidence is normalized into semantic values; workflow use,
12//! persistence, runtime exposure, and tests are linked from
13//! `docs/entity-atlas/contract-crosswalk/{surface-inventory,source-provider-flows,workflow-packets,storage-persistence,runtime-exposure}.md`.
14
15/// Agent prompt and packet contracts for review-gated operating workflows.
16pub mod agent;
17/// Analytics contracts for labor, revenue, occupancy, and exception reporting.
18pub mod analytics;
19/// Audit contracts that preserve evidence for source facts and automation decisions.
20pub mod audit;
21/// Boarding contracts for accommodation, deposits, handoffs, housekeeping, and upsells.
22pub mod boarding;
23/// Care-profile contracts for feeding, medication, handling, and pet-safety notes.
24pub mod care;
25/// Customer identity/contact value contracts for portal and messaging workflows.
26pub mod customer;
27/// Manager daily-briefing contracts for occupancy, staffing, risk, and action summaries.
28pub mod daily_brief;
29/// Data-quality contracts for repairing uncertain source records before automation uses them.
30pub mod data_quality;
31/// Daycare contracts for eligibility, attendance, yard assignment, coverage, and throughput.
32pub mod daycare;
33/// Document intake, verification, storage, and retention contracts.
34pub mod document;
35/// Normalized core entity contracts for locations, customers, pets, reservations, and records.
36pub mod entities;
37/// Grooming contracts for appointments, services, estimates, rebooking, and history.
38pub mod grooming;
39/// Incident contracts for safety events, evidence, escalation, and follow-up.
40pub mod incident;
41/// Lead intake and follow-up contracts for prospective customer conversion workflows.
42pub mod lead;
43/// Location contracts that scope local resort capability, policy, and timezone facts.
44pub mod location;
45/// Message contracts for draft, approval, queueing, delivery, and suppression state.
46pub mod message;
47/// Money contracts for typed resort charges and deposits.
48pub mod money;
49/// Operations contracts for service offerings, capacity, labor, and location execution.
50pub mod operations;
51/// Payment contracts for deposits, references, collection, waiver, and refund state.
52pub mod payment;
53/// Pet identity and care-label contracts used across reservations and safety workflows.
54pub mod pet;
55/// Policy contracts that decide what is safe to automate and what must be reviewed.
56pub mod policy;
57/// Portal account contracts for provider/customer access boundaries.
58pub mod portal;
59/// Reputation contracts for review monitoring, response drafting, and escalation workflows.
60pub mod reputation;
61/// Reservation contracts for age rules, add-ons, transitions, and service eligibility.
62pub mod reservation;
63/// Retail contracts for POS, inventory, recommendations, vendors, and reorder signals.
64pub mod retail;
65/// Source-system provenance contracts for Gingr/import facts and normalization assumptions.
66pub mod source;
67/// Staff contracts for scheduling, roles, training, and shift/labor context.
68pub mod staff;
69/// Temperament contracts for group-play safety and behavior review evidence.
70pub mod temperament;
71/// Training contracts for programs, progress, trainer availability, and upsell workflows.
72pub mod training;
73/// Vaccine contracts for compliance, proof, expiry, and review requirements.
74pub mod vaccine;
75/// Workflow contracts for tasks, events, reviews, and recommended actions.
76pub mod workflow;