Skip to main content

Type Alias: UpdateAllergenDtoPayload

@arolariu/website


@arolariu/website / types/invoices/Allergen / UpdateAllergenDtoPayload

Type Alias: UpdateAllergenDtoPayload

UpdateAllergenDtoPayload = Partial<Allergen>

Defined in: types/invoices/Allergen.ts:112

DTO payload for updating an existing allergen entry.

Remarks

Partial Updates: Only provided fields are updated. Omitted fields retain current values.

Use Cases:

  • Correcting AI-detected allergen information
  • Adding missing descriptions or references
  • Updating educational resource links

Example

const updatePayload: UpdateAllergenDtoPayload = {
description: "Updated description with more details",
learnMoreAddress: "https://new-resource.example.com"
};

See

Allergen for the entity structure

// was this page useful?