@cravery/core 0.0.25 → 0.0.27

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.
Files changed (286) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +0 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/ai/recipe.d.ts +1 -244
  6. package/dist/types/ai/recipe.d.ts.map +1 -1
  7. package/dist/types/ai/recipe.js +0 -28
  8. package/dist/types/ai/recipe.js.map +1 -1
  9. package/dist/types/ai/translation.d.ts +1 -107
  10. package/dist/types/ai/translation.d.ts.map +1 -1
  11. package/dist/types/ai/translation.js +0 -11
  12. package/dist/types/ai/translation.js.map +1 -1
  13. package/dist/types/core/api.d.ts +4 -4
  14. package/dist/types/core/api.d.ts.map +1 -1
  15. package/dist/types/core/asset.d.ts +2 -22
  16. package/dist/types/core/asset.d.ts.map +1 -1
  17. package/dist/types/core/asset.js +0 -9
  18. package/dist/types/core/asset.js.map +1 -1
  19. package/dist/types/core/entity.d.ts +7 -0
  20. package/dist/types/core/entity.d.ts.map +1 -0
  21. package/dist/types/core/entity.js +3 -0
  22. package/dist/types/core/entity.js.map +1 -0
  23. package/dist/types/core/index.d.ts +5 -1
  24. package/dist/types/core/index.d.ts.map +1 -1
  25. package/dist/types/core/index.js +5 -1
  26. package/dist/types/core/index.js.map +1 -1
  27. package/dist/types/core/locale.d.ts +3 -0
  28. package/dist/types/core/locale.d.ts.map +1 -0
  29. package/dist/types/core/locale.js +5 -0
  30. package/dist/types/core/locale.js.map +1 -0
  31. package/dist/types/core/measurement_system.d.ts +3 -0
  32. package/dist/types/core/measurement_system.d.ts.map +1 -0
  33. package/dist/types/core/measurement_system.js +5 -0
  34. package/dist/types/core/measurement_system.js.map +1 -0
  35. package/dist/types/core/settings.d.ts +5 -88
  36. package/dist/types/core/settings.d.ts.map +1 -1
  37. package/dist/types/core/settings.js +0 -25
  38. package/dist/types/core/settings.js.map +1 -1
  39. package/dist/types/core/theme.d.ts +3 -0
  40. package/dist/types/core/theme.d.ts.map +1 -0
  41. package/dist/types/core/theme.js +5 -0
  42. package/dist/types/core/theme.js.map +1 -0
  43. package/dist/types/core/timestamp.d.ts +5 -0
  44. package/dist/types/core/timestamp.d.ts.map +1 -0
  45. package/dist/types/core/timestamp.js +3 -0
  46. package/dist/types/core/timestamp.js.map +1 -0
  47. package/dist/types/iam/index.d.ts +6 -1
  48. package/dist/types/iam/index.d.ts.map +1 -1
  49. package/dist/types/iam/index.js +6 -1
  50. package/dist/types/iam/index.js.map +1 -1
  51. package/dist/types/iam/profile.d.ts +2 -56
  52. package/dist/types/iam/profile.d.ts.map +1 -1
  53. package/dist/types/iam/profile.js +0 -22
  54. package/dist/types/iam/profile.js.map +1 -1
  55. package/dist/types/iam/profile_status.d.ts +3 -0
  56. package/dist/types/iam/profile_status.d.ts.map +1 -0
  57. package/dist/types/iam/profile_status.js +10 -0
  58. package/dist/types/iam/profile_status.js.map +1 -0
  59. package/dist/types/iam/subscription.d.ts +4 -80
  60. package/dist/types/iam/subscription.d.ts.map +1 -1
  61. package/dist/types/iam/subscription.js +0 -19
  62. package/dist/types/iam/subscription.js.map +1 -1
  63. package/dist/types/iam/subscription_role.d.ts +3 -0
  64. package/dist/types/iam/subscription_role.d.ts.map +1 -0
  65. package/dist/types/iam/subscription_role.js +5 -0
  66. package/dist/types/iam/subscription_role.js.map +1 -0
  67. package/dist/types/iam/subscription_status.d.ts +3 -0
  68. package/dist/types/iam/subscription_status.d.ts.map +1 -0
  69. package/dist/types/iam/subscription_status.js +10 -0
  70. package/dist/types/iam/subscription_status.js.map +1 -0
  71. package/dist/types/iam/subscription_tier.d.ts +3 -0
  72. package/dist/types/iam/subscription_tier.d.ts.map +1 -0
  73. package/dist/types/iam/subscription_tier.js +5 -0
  74. package/dist/types/iam/subscription_tier.js.map +1 -0
  75. package/dist/types/iam/user.d.ts +3 -42
  76. package/dist/types/iam/user.d.ts.map +1 -1
  77. package/dist/types/iam/user.js +0 -16
  78. package/dist/types/iam/user.js.map +1 -1
  79. package/dist/types/iam/user_role.d.ts +5 -0
  80. package/dist/types/iam/user_role.d.ts.map +1 -0
  81. package/dist/types/iam/user_role.js +16 -0
  82. package/dist/types/iam/user_role.js.map +1 -0
  83. package/dist/types/iam/user_status.d.ts +3 -0
  84. package/dist/types/iam/user_status.d.ts.map +1 -0
  85. package/dist/types/iam/user_status.js +10 -0
  86. package/dist/types/iam/user_status.js.map +1 -0
  87. package/dist/types/moderation/index.d.ts +4 -1
  88. package/dist/types/moderation/index.d.ts.map +1 -1
  89. package/dist/types/moderation/index.js +4 -1
  90. package/dist/types/moderation/index.js.map +1 -1
  91. package/dist/types/moderation/moderation.d.ts +5 -137
  92. package/dist/types/moderation/moderation.d.ts.map +1 -1
  93. package/dist/types/moderation/moderation.js +0 -37
  94. package/dist/types/moderation/moderation.js.map +1 -1
  95. package/dist/types/moderation/moderation_status.d.ts +3 -0
  96. package/dist/types/moderation/moderation_status.d.ts.map +1 -0
  97. package/dist/types/moderation/moderation_status.js +9 -0
  98. package/dist/types/moderation/moderation_status.js.map +1 -0
  99. package/dist/types/moderation/priority.d.ts +3 -0
  100. package/dist/types/moderation/priority.d.ts.map +1 -0
  101. package/dist/types/moderation/priority.js +5 -0
  102. package/dist/types/moderation/priority.js.map +1 -0
  103. package/dist/types/moderation/severity.d.ts +3 -0
  104. package/dist/types/moderation/severity.d.ts.map +1 -0
  105. package/dist/types/moderation/severity.js +5 -0
  106. package/dist/types/moderation/severity.js.map +1 -0
  107. package/dist/types/moderation/suggestion_category.d.ts +3 -0
  108. package/dist/types/moderation/suggestion_category.d.ts.map +1 -0
  109. package/dist/types/moderation/suggestion_category.js +11 -0
  110. package/dist/types/moderation/suggestion_category.js.map +1 -0
  111. package/dist/types/recipe/allergen.d.ts +3 -0
  112. package/dist/types/recipe/allergen.d.ts.map +1 -0
  113. package/dist/types/recipe/allergen.js +19 -0
  114. package/dist/types/recipe/allergen.js.map +1 -0
  115. package/dist/types/recipe/cuisine.d.ts +3 -0
  116. package/dist/types/recipe/cuisine.d.ts.map +1 -0
  117. package/dist/types/recipe/cuisine.js +39 -0
  118. package/dist/types/recipe/cuisine.js.map +1 -0
  119. package/dist/types/recipe/dietary_tag.d.ts +3 -0
  120. package/dist/types/recipe/dietary_tag.d.ts.map +1 -0
  121. package/dist/types/recipe/dietary_tag.js +21 -0
  122. package/dist/types/recipe/dietary_tag.js.map +1 -0
  123. package/dist/types/recipe/difficulty.d.ts +3 -0
  124. package/dist/types/recipe/difficulty.d.ts.map +1 -0
  125. package/dist/types/recipe/difficulty.js +10 -0
  126. package/dist/types/recipe/difficulty.js.map +1 -0
  127. package/dist/types/recipe/equipment.d.ts +0 -40
  128. package/dist/types/recipe/equipment.d.ts.map +1 -1
  129. package/dist/types/recipe/equipment.js +0 -12
  130. package/dist/types/recipe/equipment.js.map +1 -1
  131. package/dist/types/recipe/filters.d.ts +5 -30
  132. package/dist/types/recipe/filters.d.ts.map +1 -1
  133. package/dist/types/recipe/filters.js +0 -13
  134. package/dist/types/recipe/filters.js.map +1 -1
  135. package/dist/types/recipe/index.d.ts +10 -1
  136. package/dist/types/recipe/index.d.ts.map +1 -1
  137. package/dist/types/recipe/index.js +10 -1
  138. package/dist/types/recipe/index.js.map +1 -1
  139. package/dist/types/recipe/ingredient.d.ts +1 -169
  140. package/dist/types/recipe/ingredient.d.ts.map +1 -1
  141. package/dist/types/recipe/ingredient.js +0 -29
  142. package/dist/types/recipe/ingredient.js.map +1 -1
  143. package/dist/types/recipe/instruction.d.ts +2 -72
  144. package/dist/types/recipe/instruction.d.ts.map +1 -1
  145. package/dist/types/recipe/instruction.js +0 -13
  146. package/dist/types/recipe/instruction.js.map +1 -1
  147. package/dist/types/recipe/meal_type.d.ts +3 -0
  148. package/dist/types/recipe/meal_type.d.ts.map +1 -0
  149. package/dist/types/recipe/meal_type.js +14 -0
  150. package/dist/types/recipe/meal_type.js.map +1 -0
  151. package/dist/types/recipe/nutrition.d.ts +0 -36
  152. package/dist/types/recipe/nutrition.d.ts.map +1 -1
  153. package/dist/types/recipe/nutrition.js +0 -13
  154. package/dist/types/recipe/nutrition.js.map +1 -1
  155. package/dist/types/recipe/recipe.d.ts +14 -525
  156. package/dist/types/recipe/recipe.d.ts.map +1 -1
  157. package/dist/types/recipe/recipe.js +0 -80
  158. package/dist/types/recipe/recipe.js.map +1 -1
  159. package/dist/types/recipe/recipe_source.d.ts +3 -0
  160. package/dist/types/recipe/recipe_source.d.ts.map +1 -0
  161. package/dist/types/recipe/recipe_source.js +5 -0
  162. package/dist/types/recipe/recipe_source.js.map +1 -0
  163. package/dist/types/recipe/recipe_status.d.ts +3 -0
  164. package/dist/types/recipe/recipe_status.d.ts.map +1 -0
  165. package/dist/types/recipe/recipe_status.js +12 -0
  166. package/dist/types/recipe/recipe_status.js.map +1 -0
  167. package/dist/types/recipe/spiciness.d.ts +3 -0
  168. package/dist/types/recipe/spiciness.d.ts.map +1 -0
  169. package/dist/types/recipe/spiciness.js +5 -0
  170. package/dist/types/recipe/spiciness.js.map +1 -0
  171. package/dist/types/recipe/temperature.d.ts +1 -12
  172. package/dist/types/recipe/temperature.d.ts.map +1 -1
  173. package/dist/types/recipe/temperature.js +0 -7
  174. package/dist/types/recipe/temperature.js.map +1 -1
  175. package/dist/types/recipe/temperature_unit.d.ts +3 -0
  176. package/dist/types/recipe/temperature_unit.d.ts.map +1 -0
  177. package/dist/types/recipe/temperature_unit.js +5 -0
  178. package/dist/types/recipe/temperature_unit.js.map +1 -0
  179. package/dist/types/recipe/unit.d.ts +3 -0
  180. package/dist/types/recipe/unit.d.ts.map +1 -0
  181. package/dist/types/recipe/unit.js +51 -0
  182. package/dist/types/recipe/unit.js.map +1 -0
  183. package/dist/types/report/index.d.ts +4 -1
  184. package/dist/types/report/index.d.ts.map +1 -1
  185. package/dist/types/report/index.js +4 -1
  186. package/dist/types/report/index.js.map +1 -1
  187. package/dist/types/report/report.d.ts +5 -94
  188. package/dist/types/report/report.d.ts.map +1 -1
  189. package/dist/types/report/report.js +0 -29
  190. package/dist/types/report/report.js.map +1 -1
  191. package/dist/types/report/report_priority.d.ts +3 -0
  192. package/dist/types/report/report_priority.d.ts.map +1 -0
  193. package/dist/types/report/report_priority.js +10 -0
  194. package/dist/types/report/report_priority.js.map +1 -0
  195. package/dist/types/report/report_status.d.ts +3 -0
  196. package/dist/types/report/report_status.d.ts.map +1 -0
  197. package/dist/types/report/report_status.js +10 -0
  198. package/dist/types/report/report_status.js.map +1 -0
  199. package/dist/types/report/report_target_type.d.ts +3 -0
  200. package/dist/types/report/report_target_type.d.ts.map +1 -0
  201. package/dist/types/report/report_target_type.js +10 -0
  202. package/dist/types/report/report_target_type.js.map +1 -0
  203. package/dist/types/report/report_type.d.ts +3 -0
  204. package/dist/types/report/report_type.d.ts.map +1 -0
  205. package/dist/types/report/report_type.js +12 -0
  206. package/dist/types/report/report_type.js.map +1 -0
  207. package/package.json +3 -14
  208. package/src/index.ts +0 -1
  209. package/src/types/ai/recipe.ts +10 -47
  210. package/src/types/ai/translation.ts +3 -16
  211. package/src/types/core/api.ts +4 -4
  212. package/src/types/core/asset.ts +2 -14
  213. package/src/types/core/entity.ts +7 -0
  214. package/src/types/core/index.ts +5 -1
  215. package/src/types/core/{enums/locale.ts → locale.ts} +0 -3
  216. package/src/types/core/{enums/measurement_system.ts → measurement_system.ts} +0 -3
  217. package/src/types/core/settings.ts +9 -43
  218. package/src/types/core/{enums/theme.ts → theme.ts} +0 -3
  219. package/src/types/core/timestamp.ts +4 -0
  220. package/src/types/iam/index.ts +6 -1
  221. package/src/types/iam/profile.ts +2 -24
  222. package/src/types/iam/{enums/profile_status.ts → profile_status.ts} +0 -3
  223. package/src/types/iam/subscription.ts +4 -28
  224. package/src/types/iam/{enums/subscription_role.ts → subscription_role.ts} +0 -3
  225. package/src/types/iam/{enums/subscription_status.ts → subscription_status.ts} +0 -3
  226. package/src/types/iam/subscription_tier.ts +2 -0
  227. package/src/types/iam/user.ts +3 -22
  228. package/src/types/iam/user_role.ts +15 -0
  229. package/src/types/iam/{enums/user_status.ts → user_status.ts} +0 -3
  230. package/src/types/moderation/index.ts +4 -1
  231. package/src/types/moderation/moderation.ts +5 -50
  232. package/src/types/moderation/{enums/moderation_status.ts → moderation_status.ts} +0 -3
  233. package/src/types/moderation/{enums/priority.ts → priority.ts} +0 -3
  234. package/src/types/moderation/{enums/severity.ts → severity.ts} +0 -3
  235. package/src/types/moderation/suggestion_category.ts +8 -0
  236. package/src/types/recipe/{enums/allergen.ts → allergen.ts} +0 -3
  237. package/src/types/recipe/{enums/cuisine.ts → cuisine.ts} +0 -3
  238. package/src/types/recipe/{enums/dietary_tag.ts → dietary_tag.ts} +0 -3
  239. package/src/types/recipe/{enums/difficulty.ts → difficulty.ts} +0 -3
  240. package/src/types/recipe/equipment.ts +0 -18
  241. package/src/types/recipe/filters.ts +5 -24
  242. package/src/types/recipe/index.ts +10 -1
  243. package/src/types/recipe/ingredient.ts +1 -37
  244. package/src/types/recipe/instruction.ts +2 -19
  245. package/src/types/recipe/{enums/meal_type.ts → meal_type.ts} +0 -3
  246. package/src/types/recipe/nutrition.ts +0 -18
  247. package/src/types/recipe/recipe.ts +18 -118
  248. package/src/types/recipe/{enums/recipe_source.ts → recipe_source.ts} +0 -3
  249. package/src/types/recipe/{enums/recipe_status.ts → recipe_status.ts} +0 -3
  250. package/src/types/recipe/{enums/spiciness.ts → spiciness.ts} +0 -3
  251. package/src/types/recipe/temperature.ts +1 -7
  252. package/src/types/recipe/{enums/temperature_unit.ts → temperature_unit.ts} +0 -3
  253. package/src/types/recipe/{enums/unit.ts → unit.ts} +0 -3
  254. package/src/types/report/index.ts +4 -1
  255. package/src/types/report/report.ts +5 -40
  256. package/src/types/report/{enums/report_priority.ts → report_priority.ts} +0 -3
  257. package/src/types/report/{enums/report_status.ts → report_status.ts} +0 -3
  258. package/src/types/report/{enums/report_target_type.ts → report_target_type.ts} +0 -3
  259. package/src/types/report/{enums/report_type.ts → report_type.ts} +0 -3
  260. package/src/lib/ai/cost.ts +0 -82
  261. package/src/lib/ai/embedding.ts +0 -49
  262. package/src/lib/ai/errors.ts +0 -43
  263. package/src/lib/ai/flow.ts +0 -134
  264. package/src/lib/ai/genkit.ts +0 -39
  265. package/src/lib/ai/image.ts +0 -27
  266. package/src/lib/ai/index.ts +0 -6
  267. package/src/lib/api.ts +0 -103
  268. package/src/lib/firebase.ts +0 -5
  269. package/src/lib/iam.ts +0 -37
  270. package/src/lib/index.ts +0 -7
  271. package/src/lib/storage.ts +0 -60
  272. package/src/lib/usage/index.ts +0 -1
  273. package/src/lib/usage/usage.service.ts +0 -192
  274. package/src/lib/utils/index.ts +0 -2
  275. package/src/lib/utils/sanitize.ts +0 -38
  276. package/src/lib/utils/slug.ts +0 -33
  277. package/src/types/core/enums/image_type.ts +0 -5
  278. package/src/types/core/enums/index.ts +0 -5
  279. package/src/types/core/enums/url_type.ts +0 -13
  280. package/src/types/iam/enums/index.ts +0 -6
  281. package/src/types/iam/enums/subscription_tier.ts +0 -4
  282. package/src/types/iam/enums/user_role.ts +0 -11
  283. package/src/types/moderation/enums/index.ts +0 -4
  284. package/src/types/moderation/enums/suggestion_category.ts +0 -11
  285. package/src/types/recipe/enums/index.ts +0 -10
  286. package/src/types/report/enums/index.ts +0 -4
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DIFFICULTY_VALUES = void 0;
4
+ exports.DIFFICULTY_VALUES = [
5
+ "beginner",
6
+ "intermediate",
7
+ "advanced",
8
+ "expert",
9
+ ];
10
+ //# sourceMappingURL=difficulty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"difficulty.js","sourceRoot":"","sources":["../../../src/types/recipe/difficulty.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,UAAU;IACV,cAAc;IACd,UAAU;IACV,QAAQ;CACA,CAAC"}
@@ -1,52 +1,12 @@
1
- import { z } from "genkit";
2
1
  export interface EquipmentMeta {
3
2
  required?: boolean;
4
3
  slug: string;
5
4
  }
6
- export declare const EquipmentMetaSchema: z.ZodObject<{
7
- required: z.ZodOptional<z.ZodBoolean>;
8
- slug: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- slug: string;
11
- required?: boolean | undefined;
12
- }, {
13
- slug: string;
14
- required?: boolean | undefined;
15
- }>;
16
5
  export interface EquipmentContent {
17
6
  name: string;
18
7
  notes?: string;
19
8
  slug: string;
20
9
  }
21
- export declare const EquipmentContentSchema: z.ZodObject<{
22
- name: z.ZodString;
23
- notes: z.ZodOptional<z.ZodString>;
24
- slug: z.ZodString;
25
- }, "strip", z.ZodTypeAny, {
26
- slug: string;
27
- name: string;
28
- notes?: string | undefined;
29
- }, {
30
- slug: string;
31
- name: string;
32
- notes?: string | undefined;
33
- }>;
34
10
  export interface Equipment extends EquipmentMeta, EquipmentContent {
35
11
  }
36
- export declare const EquipmentSchema: z.ZodObject<{
37
- name: z.ZodString;
38
- notes: z.ZodOptional<z.ZodString>;
39
- slug: z.ZodString;
40
- required: z.ZodOptional<z.ZodBoolean>;
41
- }, "strip", z.ZodTypeAny, {
42
- slug: string;
43
- name: string;
44
- required?: boolean | undefined;
45
- notes?: string | undefined;
46
- }, {
47
- slug: string;
48
- name: string;
49
- required?: boolean | undefined;
50
- notes?: string | undefined;
51
- }>;
52
12
  //# sourceMappingURL=equipment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;EAGK,CAAC;AAEtC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIK,CAAC;AAEzC,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,gBAAgB;CAAG;AAErE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAGK,CAAC"}
1
+ {"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,gBAAgB;CAAG"}
@@ -1,15 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EquipmentSchema = exports.EquipmentContentSchema = exports.EquipmentMetaSchema = void 0;
4
- const genkit_1 = require("genkit");
5
- exports.EquipmentMetaSchema = genkit_1.z.object({
6
- required: genkit_1.z.boolean().optional(),
7
- slug: genkit_1.z.string(),
8
- });
9
- exports.EquipmentContentSchema = genkit_1.z.object({
10
- name: genkit_1.z.string(),
11
- notes: genkit_1.z.string().optional(),
12
- slug: genkit_1.z.string(),
13
- });
14
- exports.EquipmentSchema = genkit_1.z.object(Object.assign(Object.assign({}, exports.EquipmentMetaSchema.shape), exports.EquipmentContentSchema.shape));
15
3
  //# sourceMappingURL=equipment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"equipment.js","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAOd,QAAA,mBAAmB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,UAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;CACjB,CAAoC,CAAC;AAQzB,QAAA,sBAAsB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;CACjB,CAAuC,CAAC;AAI5B,QAAA,eAAe,GAAG,UAAC,CAAC,MAAM,iCAClC,2BAAmB,CAAC,KAAK,GACzB,8BAAsB,CAAC,KAAK,EACA,CAAC"}
1
+ {"version":3,"file":"equipment.js","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":""}
@@ -1,5 +1,8 @@
1
- import { z } from "genkit";
2
- import { type Cuisine, type DietaryTag, type Difficulty, type MealType, type Spiciness } from "./enums";
1
+ import { Cuisine } from "./cuisine";
2
+ import { DietaryTag } from "./dietary_tag";
3
+ import { Difficulty } from "./difficulty";
4
+ import { MealType } from "./meal_type";
5
+ import { Spiciness } from "./spiciness";
3
6
  export interface RecipeFilters {
4
7
  cuisines?: Cuisine[];
5
8
  dietaryTags?: DietaryTag[];
@@ -10,32 +13,4 @@ export interface RecipeFilters {
10
13
  spiciness?: Spiciness;
11
14
  timeLimit?: number;
12
15
  }
13
- export declare const RecipeFiltersSchema: z.ZodObject<{
14
- cuisines: z.ZodOptional<z.ZodArray<z.ZodEnum<["african", "american", "brazilian", "british", "caribbean", "chinese", "egyptian", "emirati", "ethiopian", "filipino", "french", "fusion", "german", "greek", "indian", "indonesian", "italian", "japanese", "korean", "lebanese", "malaysian", "mexican", "moroccan", "pakistani", "persian", "russian", "saudi", "spanish", "sudanese", "thai", "turkish", "vietnamese", "other"]>, "many">>;
15
- dietaryTags: z.ZodOptional<z.ZodArray<z.ZodEnum<["dairy_free", "egg_free", "gluten_free", "halal", "high_protein", "keto", "low_carb", "low_fat", "low_sodium", "low_sugar", "nut_free", "pescatarian", "soy_free", "vegan", "vegetarian"]>, "many">>;
16
- difficulty: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced", "expert"]>>;
17
- excludeIngredients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
- includeIngredients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
- mealTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["appetizer", "breakfast", "brunch", "dessert", "dinner", "drink", "lunch", "snack"]>, "many">>;
20
- spiciness: z.ZodOptional<z.ZodEnum<["none", "mild", "medium", "hot"]>>;
21
- timeLimit: z.ZodOptional<z.ZodNumber>;
22
- }, "strip", z.ZodTypeAny, {
23
- cuisines?: ("african" | "american" | "brazilian" | "british" | "caribbean" | "chinese" | "egyptian" | "emirati" | "ethiopian" | "filipino" | "french" | "fusion" | "german" | "greek" | "indian" | "indonesian" | "italian" | "japanese" | "korean" | "lebanese" | "malaysian" | "mexican" | "moroccan" | "pakistani" | "persian" | "russian" | "saudi" | "spanish" | "sudanese" | "thai" | "turkish" | "vietnamese" | "other")[] | undefined;
24
- dietaryTags?: ("dairy_free" | "egg_free" | "gluten_free" | "halal" | "high_protein" | "keto" | "low_carb" | "low_fat" | "low_sodium" | "low_sugar" | "nut_free" | "pescatarian" | "soy_free" | "vegan" | "vegetarian")[] | undefined;
25
- difficulty?: "beginner" | "intermediate" | "advanced" | "expert" | undefined;
26
- excludeIngredients?: string[] | undefined;
27
- includeIngredients?: string[] | undefined;
28
- mealTypes?: ("appetizer" | "breakfast" | "brunch" | "dessert" | "dinner" | "drink" | "lunch" | "snack")[] | undefined;
29
- spiciness?: "none" | "mild" | "medium" | "hot" | undefined;
30
- timeLimit?: number | undefined;
31
- }, {
32
- cuisines?: ("african" | "american" | "brazilian" | "british" | "caribbean" | "chinese" | "egyptian" | "emirati" | "ethiopian" | "filipino" | "french" | "fusion" | "german" | "greek" | "indian" | "indonesian" | "italian" | "japanese" | "korean" | "lebanese" | "malaysian" | "mexican" | "moroccan" | "pakistani" | "persian" | "russian" | "saudi" | "spanish" | "sudanese" | "thai" | "turkish" | "vietnamese" | "other")[] | undefined;
33
- dietaryTags?: ("dairy_free" | "egg_free" | "gluten_free" | "halal" | "high_protein" | "keto" | "low_carb" | "low_fat" | "low_sodium" | "low_sugar" | "nut_free" | "pescatarian" | "soy_free" | "vegan" | "vegetarian")[] | undefined;
34
- difficulty?: "beginner" | "intermediate" | "advanced" | "expert" | undefined;
35
- excludeIngredients?: string[] | undefined;
36
- includeIngredients?: string[] | undefined;
37
- mealTypes?: ("appetizer" | "breakfast" | "brunch" | "dessert" | "dinner" | "drink" | "lunch" | "snack")[] | undefined;
38
- spiciness?: "none" | "mild" | "medium" | "hot" | undefined;
39
- timeLimit?: number | undefined;
40
- }>;
41
16
  //# sourceMappingURL=filters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAML,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,SAAS,EACf,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EASK,CAAC"}
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1,16 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RecipeFiltersSchema = void 0;
4
- const genkit_1 = require("genkit");
5
- const enums_1 = require("./enums");
6
- exports.RecipeFiltersSchema = genkit_1.z.object({
7
- cuisines: genkit_1.z.array(enums_1.CuisineSchema).optional(),
8
- dietaryTags: genkit_1.z.array(enums_1.DietaryTagSchema).optional(),
9
- difficulty: enums_1.DifficultySchema.optional(),
10
- excludeIngredients: genkit_1.z.array(genkit_1.z.string()).optional(),
11
- includeIngredients: genkit_1.z.array(genkit_1.z.string()).optional(),
12
- mealTypes: genkit_1.z.array(enums_1.MealTypeSchema).optional(),
13
- spiciness: enums_1.SpicinessSchema.optional(),
14
- timeLimit: genkit_1.z.number().int().min(5).max(300).optional(),
15
- });
16
3
  //# sourceMappingURL=filters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,mCAWiB;AAaJ,QAAA,mBAAmB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,UAAC,CAAC,KAAK,CAAC,qBAAa,CAAC,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,UAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,wBAAgB,CAAC,QAAQ,EAAE;IACvC,kBAAkB,EAAE,UAAC,CAAC,KAAK,CAAC,UAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,kBAAkB,EAAE,UAAC,CAAC,KAAK,CAAC,UAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,SAAS,EAAE,UAAC,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IAC7C,SAAS,EAAE,uBAAe,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACvD,CAAoC,CAAC"}
1
+ {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":""}
@@ -1,9 +1,18 @@
1
- export * from "./enums";
1
+ export * from "./allergen";
2
+ export * from "./cuisine";
3
+ export * from "./dietary_tag";
4
+ export * from "./difficulty";
2
5
  export * from "./equipment";
3
6
  export * from "./filters";
4
7
  export * from "./ingredient";
5
8
  export * from "./instruction";
9
+ export * from "./meal_type";
6
10
  export * from "./nutrition";
11
+ export * from "./recipe_source";
12
+ export * from "./recipe_status";
7
13
  export * from "./recipe";
14
+ export * from "./spiciness";
15
+ export * from "./temperature_unit";
8
16
  export * from "./temperature";
17
+ export * from "./unit";
9
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
@@ -14,12 +14,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./enums"), exports);
17
+ __exportStar(require("./allergen"), exports);
18
+ __exportStar(require("./cuisine"), exports);
19
+ __exportStar(require("./dietary_tag"), exports);
20
+ __exportStar(require("./difficulty"), exports);
18
21
  __exportStar(require("./equipment"), exports);
19
22
  __exportStar(require("./filters"), exports);
20
23
  __exportStar(require("./ingredient"), exports);
21
24
  __exportStar(require("./instruction"), exports);
25
+ __exportStar(require("./meal_type"), exports);
22
26
  __exportStar(require("./nutrition"), exports);
27
+ __exportStar(require("./recipe_source"), exports);
28
+ __exportStar(require("./recipe_status"), exports);
23
29
  __exportStar(require("./recipe"), exports);
30
+ __exportStar(require("./spiciness"), exports);
31
+ __exportStar(require("./temperature_unit"), exports);
24
32
  __exportStar(require("./temperature"), exports);
33
+ __exportStar(require("./unit"), exports);
25
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,8CAA4B;AAC5B,2CAAyB;AACzB,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,8CAA4B;AAC5B,8CAA4B;AAC5B,kDAAgC;AAChC,kDAAgC;AAChC,2CAAyB;AACzB,8CAA4B;AAC5B,qDAAmC;AACnC,gDAA8B;AAC9B,yCAAuB"}
@@ -1,197 +1,29 @@
1
- import { z } from "genkit";
2
- import { type Unit } from "./enums";
1
+ import { Unit } from "./unit";
3
2
  export interface IngredientMeta {
4
3
  quantity?: number;
5
4
  required?: boolean;
6
5
  slug: string;
7
6
  unit?: Unit;
8
7
  }
9
- export declare const IngredientMetaSchema: z.ZodObject<{
10
- quantity: z.ZodOptional<z.ZodNumber>;
11
- required: z.ZodOptional<z.ZodBoolean>;
12
- slug: z.ZodString;
13
- unit: z.ZodOptional<z.ZodEnum<["ml", "l", "tsp", "tbsp", "fl_oz", "cup", "pint", "quart", "gallon", "mg", "g", "kg", "oz", "lb", "piece", "whole", "half", "quarter", "slice", "serving", "clove", "stalk", "sprig", "leaf", "bunch", "head", "fillet", "stick", "sheet", "can", "package", "bottle", "jar", "handful", "pinch", "dash", "drop"]>>;
14
- }, "strip", z.ZodTypeAny, {
15
- slug: string;
16
- required?: boolean | undefined;
17
- quantity?: number | undefined;
18
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
19
- }, {
20
- slug: string;
21
- required?: boolean | undefined;
22
- quantity?: number | undefined;
23
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
24
- }>;
25
8
  export interface IngredientContent {
26
9
  name: string;
27
10
  notes?: string;
28
11
  slug: string;
29
12
  }
30
- export declare const IngredientContentSchema: z.ZodObject<{
31
- name: z.ZodString;
32
- notes: z.ZodOptional<z.ZodString>;
33
- slug: z.ZodString;
34
- }, "strip", z.ZodTypeAny, {
35
- slug: string;
36
- name: string;
37
- notes?: string | undefined;
38
- }, {
39
- slug: string;
40
- name: string;
41
- notes?: string | undefined;
42
- }>;
43
13
  export interface Ingredient extends IngredientMeta, IngredientContent {
44
14
  }
45
- export declare const IngredientSchema: z.ZodObject<{
46
- name: z.ZodString;
47
- notes: z.ZodOptional<z.ZodString>;
48
- slug: z.ZodString;
49
- quantity: z.ZodOptional<z.ZodNumber>;
50
- required: z.ZodOptional<z.ZodBoolean>;
51
- unit: z.ZodOptional<z.ZodEnum<["ml", "l", "tsp", "tbsp", "fl_oz", "cup", "pint", "quart", "gallon", "mg", "g", "kg", "oz", "lb", "piece", "whole", "half", "quarter", "slice", "serving", "clove", "stalk", "sprig", "leaf", "bunch", "head", "fillet", "stick", "sheet", "can", "package", "bottle", "jar", "handful", "pinch", "dash", "drop"]>>;
52
- }, "strip", z.ZodTypeAny, {
53
- slug: string;
54
- name: string;
55
- required?: boolean | undefined;
56
- notes?: string | undefined;
57
- quantity?: number | undefined;
58
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
59
- }, {
60
- slug: string;
61
- name: string;
62
- required?: boolean | undefined;
63
- notes?: string | undefined;
64
- quantity?: number | undefined;
65
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
66
- }>;
67
15
  export interface IngredientSectionMeta {
68
16
  ingredients: IngredientMeta[];
69
17
  slug: string;
70
18
  }
71
- export declare const IngredientSectionMetaSchema: z.ZodObject<{
72
- ingredients: z.ZodArray<z.ZodObject<{
73
- quantity: z.ZodOptional<z.ZodNumber>;
74
- required: z.ZodOptional<z.ZodBoolean>;
75
- slug: z.ZodString;
76
- unit: z.ZodOptional<z.ZodEnum<["ml", "l", "tsp", "tbsp", "fl_oz", "cup", "pint", "quart", "gallon", "mg", "g", "kg", "oz", "lb", "piece", "whole", "half", "quarter", "slice", "serving", "clove", "stalk", "sprig", "leaf", "bunch", "head", "fillet", "stick", "sheet", "can", "package", "bottle", "jar", "handful", "pinch", "dash", "drop"]>>;
77
- }, "strip", z.ZodTypeAny, {
78
- slug: string;
79
- required?: boolean | undefined;
80
- quantity?: number | undefined;
81
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
82
- }, {
83
- slug: string;
84
- required?: boolean | undefined;
85
- quantity?: number | undefined;
86
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
87
- }>, "many">;
88
- slug: z.ZodString;
89
- }, "strip", z.ZodTypeAny, {
90
- slug: string;
91
- ingredients: {
92
- slug: string;
93
- required?: boolean | undefined;
94
- quantity?: number | undefined;
95
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
96
- }[];
97
- }, {
98
- slug: string;
99
- ingredients: {
100
- slug: string;
101
- required?: boolean | undefined;
102
- quantity?: number | undefined;
103
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
104
- }[];
105
- }>;
106
19
  export interface IngredientSectionContent {
107
20
  ingredients: IngredientContent[];
108
21
  slug: string;
109
22
  title?: string;
110
23
  }
111
- export declare const IngredientSectionContentSchema: z.ZodObject<{
112
- ingredients: z.ZodArray<z.ZodObject<{
113
- name: z.ZodString;
114
- notes: z.ZodOptional<z.ZodString>;
115
- slug: z.ZodString;
116
- }, "strip", z.ZodTypeAny, {
117
- slug: string;
118
- name: string;
119
- notes?: string | undefined;
120
- }, {
121
- slug: string;
122
- name: string;
123
- notes?: string | undefined;
124
- }>, "many">;
125
- slug: z.ZodString;
126
- title: z.ZodOptional<z.ZodString>;
127
- }, "strip", z.ZodTypeAny, {
128
- slug: string;
129
- ingredients: {
130
- slug: string;
131
- name: string;
132
- notes?: string | undefined;
133
- }[];
134
- title?: string | undefined;
135
- }, {
136
- slug: string;
137
- ingredients: {
138
- slug: string;
139
- name: string;
140
- notes?: string | undefined;
141
- }[];
142
- title?: string | undefined;
143
- }>;
144
24
  export interface IngredientSection {
145
25
  ingredients: Ingredient[];
146
26
  slug: string;
147
27
  title?: string;
148
28
  }
149
- export declare const IngredientSectionSchema: z.ZodObject<{
150
- ingredients: z.ZodArray<z.ZodObject<{
151
- name: z.ZodString;
152
- notes: z.ZodOptional<z.ZodString>;
153
- slug: z.ZodString;
154
- quantity: z.ZodOptional<z.ZodNumber>;
155
- required: z.ZodOptional<z.ZodBoolean>;
156
- unit: z.ZodOptional<z.ZodEnum<["ml", "l", "tsp", "tbsp", "fl_oz", "cup", "pint", "quart", "gallon", "mg", "g", "kg", "oz", "lb", "piece", "whole", "half", "quarter", "slice", "serving", "clove", "stalk", "sprig", "leaf", "bunch", "head", "fillet", "stick", "sheet", "can", "package", "bottle", "jar", "handful", "pinch", "dash", "drop"]>>;
157
- }, "strip", z.ZodTypeAny, {
158
- slug: string;
159
- name: string;
160
- required?: boolean | undefined;
161
- notes?: string | undefined;
162
- quantity?: number | undefined;
163
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
164
- }, {
165
- slug: string;
166
- name: string;
167
- required?: boolean | undefined;
168
- notes?: string | undefined;
169
- quantity?: number | undefined;
170
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
171
- }>, "many">;
172
- slug: z.ZodString;
173
- title: z.ZodOptional<z.ZodString>;
174
- }, "strip", z.ZodTypeAny, {
175
- slug: string;
176
- ingredients: {
177
- slug: string;
178
- name: string;
179
- required?: boolean | undefined;
180
- notes?: string | undefined;
181
- quantity?: number | undefined;
182
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
183
- }[];
184
- title?: string | undefined;
185
- }, {
186
- slug: string;
187
- ingredients: {
188
- slug: string;
189
- name: string;
190
- required?: boolean | undefined;
191
- notes?: string | undefined;
192
- quantity?: number | undefined;
193
- unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
194
- }[];
195
- title?: string | undefined;
196
- }>;
197
29
  //# sourceMappingURL=ingredient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAKK,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIK,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,cAAc,EAAE,iBAAiB;CAAG;AAExE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAGK,CAAC;AAEnC,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGK,CAAC;AAE9C,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIK,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIK,CAAC"}
1
+ {"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc,EAAE,iBAAiB;CAAG;AAExE,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,32 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IngredientSectionSchema = exports.IngredientSectionContentSchema = exports.IngredientSectionMetaSchema = exports.IngredientSchema = exports.IngredientContentSchema = exports.IngredientMetaSchema = void 0;
4
- const genkit_1 = require("genkit");
5
- const enums_1 = require("./enums");
6
- exports.IngredientMetaSchema = genkit_1.z.object({
7
- quantity: genkit_1.z.number().optional(),
8
- required: genkit_1.z.boolean().optional(),
9
- slug: genkit_1.z.string(),
10
- unit: enums_1.UnitSchema.optional(),
11
- });
12
- exports.IngredientContentSchema = genkit_1.z.object({
13
- name: genkit_1.z.string(),
14
- notes: genkit_1.z.string().optional(),
15
- slug: genkit_1.z.string(),
16
- });
17
- exports.IngredientSchema = genkit_1.z.object(Object.assign(Object.assign({}, exports.IngredientMetaSchema.shape), exports.IngredientContentSchema.shape));
18
- exports.IngredientSectionMetaSchema = genkit_1.z.object({
19
- ingredients: genkit_1.z.array(exports.IngredientMetaSchema),
20
- slug: genkit_1.z.string(),
21
- });
22
- exports.IngredientSectionContentSchema = genkit_1.z.object({
23
- ingredients: genkit_1.z.array(exports.IngredientContentSchema),
24
- slug: genkit_1.z.string(),
25
- title: genkit_1.z.string().optional(),
26
- });
27
- exports.IngredientSectionSchema = genkit_1.z.object({
28
- ingredients: genkit_1.z.array(exports.IngredientSchema),
29
- slug: genkit_1.z.string(),
30
- title: genkit_1.z.string().optional(),
31
- });
32
3
  //# sourceMappingURL=ingredient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,mCAAgD;AASnC,QAAA,oBAAoB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC3C,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,UAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,kBAAU,CAAC,QAAQ,EAAE;CAC5B,CAAqC,CAAC;AAQ1B,QAAA,uBAAuB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;CACjB,CAAwC,CAAC;AAI7B,QAAA,gBAAgB,GAAG,UAAC,CAAC,MAAM,iCACnC,4BAAoB,CAAC,KAAK,GAC1B,+BAAuB,CAAC,KAAK,EACA,CAAC;AAOtB,QAAA,2BAA2B,GAAG,UAAC,CAAC,MAAM,CAAC;IAClD,WAAW,EAAE,UAAC,CAAC,KAAK,CAAC,4BAAoB,CAAC;IAC1C,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;CACjB,CAA4C,CAAC;AAQjC,QAAA,8BAA8B,GAAG,UAAC,CAAC,MAAM,CAAC;IACrD,WAAW,EAAE,UAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;IAC7C,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAA+C,CAAC;AAQpC,QAAA,uBAAuB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,UAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;IACtC,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAwC,CAAC"}
1
+ {"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":""}
@@ -1,83 +1,13 @@
1
- import { z } from "genkit";
2
- import { type Temperature } from "./temperature";
1
+ import { TemperatureUnit } from "./temperature_unit";
3
2
  export interface InstructionMeta {
4
3
  duration?: number;
5
4
  step: number;
6
- temperature?: Temperature;
5
+ temperature?: TemperatureUnit;
7
6
  }
8
- export declare const InstructionMetaSchema: z.ZodObject<{
9
- duration: z.ZodOptional<z.ZodNumber>;
10
- step: z.ZodNumber;
11
- temperature: z.ZodOptional<z.ZodObject<{
12
- unit: z.ZodEnum<["celsius", "fahrenheit"]>;
13
- value: z.ZodNumber;
14
- }, "strip", z.ZodTypeAny, {
15
- value: number;
16
- unit: "celsius" | "fahrenheit";
17
- }, {
18
- value: number;
19
- unit: "celsius" | "fahrenheit";
20
- }>>;
21
- }, "strip", z.ZodTypeAny, {
22
- step: number;
23
- duration?: number | undefined;
24
- temperature?: {
25
- value: number;
26
- unit: "celsius" | "fahrenheit";
27
- } | undefined;
28
- }, {
29
- step: number;
30
- duration?: number | undefined;
31
- temperature?: {
32
- value: number;
33
- unit: "celsius" | "fahrenheit";
34
- } | undefined;
35
- }>;
36
7
  export interface InstructionContent {
37
8
  step: number;
38
9
  text: string;
39
10
  }
40
- export declare const InstructionContentSchema: z.ZodObject<{
41
- step: z.ZodNumber;
42
- text: z.ZodString;
43
- }, "strip", z.ZodTypeAny, {
44
- text: string;
45
- step: number;
46
- }, {
47
- text: string;
48
- step: number;
49
- }>;
50
11
  export interface Instruction extends InstructionMeta, InstructionContent {
51
12
  }
52
- export declare const InstructionSchema: z.ZodObject<{
53
- step: z.ZodNumber;
54
- text: z.ZodString;
55
- duration: z.ZodOptional<z.ZodNumber>;
56
- temperature: z.ZodOptional<z.ZodObject<{
57
- unit: z.ZodEnum<["celsius", "fahrenheit"]>;
58
- value: z.ZodNumber;
59
- }, "strip", z.ZodTypeAny, {
60
- value: number;
61
- unit: "celsius" | "fahrenheit";
62
- }, {
63
- value: number;
64
- unit: "celsius" | "fahrenheit";
65
- }>>;
66
- }, "strip", z.ZodTypeAny, {
67
- text: string;
68
- step: number;
69
- duration?: number | undefined;
70
- temperature?: {
71
- value: number;
72
- unit: "celsius" | "fahrenheit";
73
- } | undefined;
74
- }, {
75
- text: string;
76
- step: number;
77
- duration?: number | undefined;
78
- temperature?: {
79
- value: number;
80
- unit: "celsius" | "fahrenheit";
81
- } | undefined;
82
- }>;
83
13
  //# sourceMappingURL=instruction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAEpE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIK,CAAC;AAExC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;EAGK,CAAC;AAE3C,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,kBAAkB;CAAG;AAE3E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGK,CAAC"}
1
+ {"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,kBAAkB;CAAG"}
@@ -1,16 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InstructionSchema = exports.InstructionContentSchema = exports.InstructionMetaSchema = void 0;
4
- const genkit_1 = require("genkit");
5
- const temperature_1 = require("./temperature");
6
- exports.InstructionMetaSchema = genkit_1.z.object({
7
- duration: genkit_1.z.number().optional(),
8
- step: genkit_1.z.number(),
9
- temperature: temperature_1.TemperatureSchema.optional(),
10
- });
11
- exports.InstructionContentSchema = genkit_1.z.object({
12
- step: genkit_1.z.number(),
13
- text: genkit_1.z.string(),
14
- });
15
- exports.InstructionSchema = genkit_1.z.object(Object.assign(Object.assign({}, exports.InstructionMetaSchema.shape), exports.InstructionContentSchema.shape));
16
3
  //# sourceMappingURL=instruction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.js","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,+CAAoE;AAQvD,QAAA,qBAAqB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,+BAAiB,CAAC,QAAQ,EAAE;CAC1C,CAAsC,CAAC;AAO3B,QAAA,wBAAwB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE;CACjB,CAAyC,CAAC;AAI9B,QAAA,iBAAiB,GAAG,UAAC,CAAC,MAAM,iCACpC,6BAAqB,CAAC,KAAK,GAC3B,gCAAwB,CAAC,KAAK,EACA,CAAC"}
1
+ {"version":3,"file":"instruction.js","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export declare const MEAL_TYPE_VALUES: readonly ["appetizer", "breakfast", "brunch", "dessert", "dinner", "drink", "lunch", "snack"];
2
+ export type MealType = (typeof MEAL_TYPE_VALUES)[number];
3
+ //# sourceMappingURL=meal_type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meal_type.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/meal_type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,+FASnB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MEAL_TYPE_VALUES = void 0;
4
+ exports.MEAL_TYPE_VALUES = [
5
+ "appetizer",
6
+ "breakfast",
7
+ "brunch",
8
+ "dessert",
9
+ "dinner",
10
+ "drink",
11
+ "lunch",
12
+ "snack",
13
+ ];
14
+ //# sourceMappingURL=meal_type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meal_type.js","sourceRoot":"","sources":["../../../src/types/recipe/meal_type.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,WAAW;IACX,WAAW;IACX,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;CACC,CAAC"}