Type Alias: CreateAllergenDtoPayload
@arolariu/website / types/invoices/Allergen / CreateAllergenDtoPayload
Type Alias: CreateAllergenDtoPayload
CreateAllergenDtoPayload =
Partial<Allergen>
Defined in: types/invoices/Allergen.ts:88
DTO payload for creating a new allergen entry.
Remarks
Partial Fields: All fields are optional during creation as allergens may be partially identified by AI and enriched later.
Validation:
If learnMoreAddress is provided, it must be a valid HTTPS URL
pointing to a trusted health information source.
Example
const payload: CreateAllergenDtoPayload = {
name: "Peanuts",
description: "Tree nut allergen"
};
See
Allergen for the created entity structure
// was this page useful?