export interface Product {
id: UUID;
name: string;
origin: ContextID;
status: 'active' | 'archived';
}
/**
* Strictly-typed domain logic
* shared across the monorepo.
*/
export const validateCycle = (
cycle: SharingCycle
): Result<boolean> => {
return cycle.isValid ?
Ok(true) :
Err('Invalid domain state');
};