Recipes

emits.js 175 lines

Files · 8
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175export const emits = [
  {
    name: "recipe-saved",
    description: "A recipe was saved to the recipe box.",
    schema: {
      type: "object",
      properties: {
        id: {
          type: "integer",
          description:
            "Local saved-recipe identifier, not a schema.org property.",
        },
        name: {
          type: "string",
          description: "Recipe name.",
        },
        description: {
          type: ["string", "null"],
          description: "Recipe description.",
        },
        url: {
          type: ["string", "null"],
          description: "Original recipe URL.",
        },
        author: {
          type: ["string", "null"],
          description: "Author in the supported Text form.",
        },
        date_published: {
          type: ["string", "null"],
          description:
            "datePublished, using the date-only YYYY-MM-DD form in this fixture.",
          pattern: "^\\d{4}-\\d{2}-\\d{2}$",
        },
        prep_time: {
          type: ["string", "null"],
          description: "prepTime as ISO 8601 duration, e.g. PT15M.",
        },
        cook_time: {
          type: ["string", "null"],
          description: "cookTime as ISO 8601 duration, e.g. PT1H.",
        },
        total_time: {
          type: ["string", "null"],
          description: "totalTime as ISO 8601 duration, e.g. PT1H15M.",
        },
        recipe_yield: {
          type: ["string", "null"],
          description:
            "recipeYield in Text form, e.g. 1 loaf or 4 servings; not necessarily numeric.",
        },
        recipe_category: {
          type: ["string", "null"],
          description: "recipeCategory, e.g. dessert.",
        },
        recipe_cuisine: {
          type: ["string", "null"],
          description: "recipeCuisine, e.g. French.",
        },
        recipe_ingredient: {
          type: "string",
          description:
            "Ordered recipeIngredient values in the supported Text form, retaining quantities and units. Stored as JSON array text; use json_each to inspect elements.",
          contentMediaType: "application/json",
        },
        recipe_instructions: {
          type: ["string", "null"],
          description:
            "recipeInstructions in the supported prose Text form; HowToStep objects are outside this subset.",
        },
      },
      required: ["id", "name"],
      additionalProperties: false,
    },
  },
  {
    name: "recipe-updated",
    description:
      "A saved recipe was edited, including its ingredients or timings.",
    schema: {
      type: "object",
      properties: {
        id: {
          type: "integer",
          description:
            "Local saved-recipe identifier, not a schema.org property.",
        },
        name: {
          type: "string",
          description: "Recipe name.",
        },
        description: {
          type: ["string", "null"],
          description: "Recipe description.",
        },
        url: {
          type: ["string", "null"],
          description: "Original recipe URL.",
        },
        author: {
          type: ["string", "null"],
          description: "Author in the supported Text form.",
        },
        date_published: {
          type: ["string", "null"],
          description:
            "datePublished, using the date-only YYYY-MM-DD form in this fixture.",
          pattern: "^\\d{4}-\\d{2}-\\d{2}$",
        },
        prep_time: {
          type: ["string", "null"],
          description: "prepTime as ISO 8601 duration, e.g. PT15M.",
        },
        cook_time: {
          type: ["string", "null"],
          description: "cookTime as ISO 8601 duration, e.g. PT1H.",
        },
        total_time: {
          type: ["string", "null"],
          description: "totalTime as ISO 8601 duration, e.g. PT1H15M.",
        },
        recipe_yield: {
          type: ["string", "null"],
          description:
            "recipeYield in Text form, e.g. 1 loaf or 4 servings; not necessarily numeric.",
        },
        recipe_category: {
          type: ["string", "null"],
          description: "recipeCategory, e.g. dessert.",
        },
        recipe_cuisine: {
          type: ["string", "null"],
          description: "recipeCuisine, e.g. French.",
        },
        recipe_ingredient: {
          type: "string",
          description:
            "Ordered recipeIngredient values in the supported Text form, retaining quantities and units. Stored as JSON array text; use json_each to inspect elements.",
          contentMediaType: "application/json",
        },
        recipe_instructions: {
          type: ["string", "null"],
          description:
            "recipeInstructions in the supported prose Text form; HowToStep objects are outside this subset.",
        },
      },
      required: ["id", "name"],
      additionalProperties: false,
    },
  },
  {
    name: "recipe-removed",
    description: "A saved recipe was removed.",
    schema: {
      type: "object",
      properties: {
        id: {
          type: "integer",
          description:
            "Local saved-recipe identifier, not a schema.org property.",
        },
        name: {
          type: "string",
          description: "Recipe name.",
        },
        url: {
          type: ["string", "null"],
          description: "Original recipe URL.",
        },
      },
      required: ["id", "name"],
      additionalProperties: false,
    },
  },
];