@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.
- package/mutations/article-input.d.ts +32 -0
- package/package.json +1 -1
- package/queries/article.d.ts +1 -0
|
@@ -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