@thetimes/times-public-api-types 1.0.13733 → 1.0.13748

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,7 +94,39 @@ export type ContentFragmentInput = {
94
94
  image?: ImageFragmentInput | null;
95
95
  video?: VideoFragmentInput | null;
96
96
  interactive?: InteractiveFragmentInput | null;
97
+ recipe?: RecipeFragmentInput | null;
97
98
  };
99
+ export type RecipeFragmentInput = {
100
+ blockId?: string | null;
101
+ recipe: RecipeInput;
102
+ };
103
+ export type RecipeInput = {
104
+ id: UUID;
105
+ servings?: number | null;
106
+ servingsMin?: number | null;
107
+ servingsMax?: number | null;
108
+ totalMinutes: number;
109
+ prepMinutes?: number | null;
110
+ cookMinutes?: number | null;
111
+ ingredients: RecipeIngredientsInput;
112
+ instructions: RecipeInstructionsInput;
113
+ };
114
+ export type RecipeIngredientsInput = {
115
+ items: RecipeIngredientItemInput[];
116
+ };
117
+ export type RecipeIngredientItemInput = {
118
+ type: RecipeIngredientItemType;
119
+ content: string;
120
+ quantityRaw?: string | null;
121
+ quantityValue?: number | null;
122
+ unit?: string | null;
123
+ customUnit?: string | null;
124
+ notes?: string | null;
125
+ };
126
+ export type RecipeInstructionsInput = {
127
+ steps: string[];
128
+ };
129
+ export type RecipeIngredientItemType = "header" | "item";
98
130
  export type ContentFragmentMetadataInput = {
99
131
  display?: Display | null;
100
132
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thetimes/times-public-api-types",
3
- "version": "1.0.13733",
3
+ "version": "1.0.13748",
4
4
  "description": "",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -96,6 +96,7 @@ export type ContentArgs = {
96
96
  maxWordCount?: number;
97
97
  maxCharCount?: number;
98
98
  excludeLiveBlogEntries?: boolean;
99
+ structuredRecipeData?: boolean;
99
100
  };
100
101
  export type SummaryArgs = {
101
102
  maxCharCount?: number;