@cravery/core 0.0.6 → 0.0.8

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 (341) hide show
  1. package/dist/config/collections.d.ts +5 -0
  2. package/dist/config/collections.d.ts.map +1 -1
  3. package/dist/config/collections.js +5 -0
  4. package/dist/config/collections.js.map +1 -1
  5. package/dist/config/common.js +1 -1
  6. package/dist/config/index.d.ts +2 -0
  7. package/dist/config/index.d.ts.map +1 -1
  8. package/dist/config/index.js +2 -0
  9. package/dist/config/index.js.map +1 -1
  10. package/dist/config/limits.d.ts +8 -0
  11. package/dist/config/limits.d.ts.map +1 -0
  12. package/dist/config/limits.js +36 -0
  13. package/dist/config/limits.js.map +1 -0
  14. package/dist/config/subscription.d.ts +2 -0
  15. package/dist/config/subscription.d.ts.map +1 -0
  16. package/dist/config/subscription.js +5 -0
  17. package/dist/config/subscription.js.map +1 -0
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/lib/errors/index.d.ts +11 -2
  23. package/dist/lib/errors/index.d.ts.map +1 -1
  24. package/dist/lib/errors/index.js +31 -4
  25. package/dist/lib/errors/index.js.map +1 -1
  26. package/dist/lib/index.d.ts +1 -0
  27. package/dist/lib/index.d.ts.map +1 -1
  28. package/dist/lib/index.js +1 -0
  29. package/dist/lib/index.js.map +1 -1
  30. package/dist/lib/repository/equipment.repository.d.ts +15 -0
  31. package/dist/lib/repository/equipment.repository.d.ts.map +1 -0
  32. package/dist/lib/repository/equipment.repository.js +65 -0
  33. package/dist/lib/repository/equipment.repository.js.map +1 -0
  34. package/dist/lib/repository/factory.d.ts +10 -0
  35. package/dist/lib/repository/factory.d.ts.map +1 -1
  36. package/dist/lib/repository/factory.js +15 -0
  37. package/dist/lib/repository/factory.js.map +1 -1
  38. package/dist/lib/repository/index.d.ts +5 -0
  39. package/dist/lib/repository/index.d.ts.map +1 -1
  40. package/dist/lib/repository/index.js +5 -0
  41. package/dist/lib/repository/index.js.map +1 -1
  42. package/dist/lib/repository/ingredient.repository.d.ts +15 -0
  43. package/dist/lib/repository/ingredient.repository.d.ts.map +1 -0
  44. package/dist/lib/repository/ingredient.repository.js +65 -0
  45. package/dist/lib/repository/ingredient.repository.js.map +1 -0
  46. package/dist/lib/repository/profile.repository.d.ts +1 -1
  47. package/dist/lib/repository/profile.repository.d.ts.map +1 -1
  48. package/dist/lib/repository/profile.repository.js +1 -1
  49. package/dist/lib/repository/profile.repository.js.map +1 -1
  50. package/dist/lib/repository/recipe-queue.repository.d.ts +10 -0
  51. package/dist/lib/repository/recipe-queue.repository.d.ts.map +1 -0
  52. package/dist/lib/repository/recipe-queue.repository.js +37 -0
  53. package/dist/lib/repository/recipe-queue.repository.js.map +1 -0
  54. package/dist/lib/repository/recipe.repository.d.ts +10 -0
  55. package/dist/lib/repository/recipe.repository.d.ts.map +1 -0
  56. package/dist/lib/repository/recipe.repository.js +40 -0
  57. package/dist/lib/repository/recipe.repository.js.map +1 -0
  58. package/dist/lib/repository/report.repository.d.ts +15 -0
  59. package/dist/lib/repository/report.repository.d.ts.map +1 -0
  60. package/dist/lib/repository/report.repository.js +47 -0
  61. package/dist/lib/repository/report.repository.js.map +1 -0
  62. package/dist/lib/repository/user.repository.d.ts +1 -1
  63. package/dist/lib/repository/user.repository.d.ts.map +1 -1
  64. package/dist/lib/repository/user.repository.js +1 -1
  65. package/dist/lib/repository/user.repository.js.map +1 -1
  66. package/dist/lib/usage/index.d.ts +2 -0
  67. package/dist/lib/usage/index.d.ts.map +1 -0
  68. package/dist/lib/usage/index.js +18 -0
  69. package/dist/lib/usage/index.js.map +1 -0
  70. package/dist/lib/usage/usage.service.d.ts +28 -0
  71. package/dist/lib/usage/usage.service.d.ts.map +1 -0
  72. package/dist/lib/usage/usage.service.js +131 -0
  73. package/dist/lib/usage/usage.service.js.map +1 -0
  74. package/dist/lib/utils/index.d.ts +1 -0
  75. package/dist/lib/utils/index.d.ts.map +1 -1
  76. package/dist/lib/utils/index.js +1 -0
  77. package/dist/lib/utils/index.js.map +1 -1
  78. package/dist/lib/utils/slug.d.ts +13 -0
  79. package/dist/lib/utils/slug.d.ts.map +1 -0
  80. package/dist/lib/utils/slug.js +33 -0
  81. package/dist/lib/utils/slug.js.map +1 -0
  82. package/dist/types/ai/filters.js +1 -1
  83. package/dist/types/ai/filters.js.map +1 -1
  84. package/dist/types/ai/genkit.d.ts +246 -0
  85. package/dist/types/ai/genkit.d.ts.map +1 -0
  86. package/dist/types/ai/genkit.js +68 -0
  87. package/dist/types/ai/genkit.js.map +1 -0
  88. package/dist/types/ai/index.d.ts +1 -0
  89. package/dist/types/ai/index.d.ts.map +1 -1
  90. package/dist/types/ai/index.js +1 -0
  91. package/dist/types/ai/index.js.map +1 -1
  92. package/dist/types/ai/recipe.js +5 -5
  93. package/dist/types/ai/recipe.js.map +1 -1
  94. package/dist/types/ai/translation.js +3 -3
  95. package/dist/types/ai/translation.js.map +1 -1
  96. package/dist/types/asset.d.ts +21 -0
  97. package/dist/types/asset.d.ts.map +1 -0
  98. package/dist/types/asset.js +18 -0
  99. package/dist/types/asset.js.map +1 -0
  100. package/dist/types/enums/allergen.d.ts +19 -0
  101. package/dist/types/enums/allergen.d.ts.map +1 -0
  102. package/dist/types/enums/allergen.js +21 -0
  103. package/dist/types/enums/allergen.js.map +1 -0
  104. package/dist/types/enums/cuisine.d.ts +39 -0
  105. package/dist/types/enums/cuisine.d.ts.map +1 -0
  106. package/dist/types/enums/cuisine.js +41 -0
  107. package/dist/types/enums/cuisine.js.map +1 -0
  108. package/dist/types/enums/dietary_tag.d.ts +21 -0
  109. package/dist/types/enums/dietary_tag.d.ts.map +1 -0
  110. package/dist/types/enums/dietary_tag.js +23 -0
  111. package/dist/types/enums/dietary_tag.js.map +1 -0
  112. package/dist/types/enums/difficulty.d.ts +10 -0
  113. package/dist/types/enums/difficulty.d.ts.map +1 -0
  114. package/dist/types/enums/difficulty.js +12 -0
  115. package/dist/types/enums/difficulty.js.map +1 -0
  116. package/dist/types/enums/image_type.d.ts +8 -0
  117. package/dist/types/enums/image_type.d.ts.map +1 -0
  118. package/dist/types/enums/image_type.js +7 -0
  119. package/dist/types/enums/image_type.js.map +1 -0
  120. package/dist/types/enums/index.d.ts +22 -0
  121. package/dist/types/enums/index.d.ts.map +1 -0
  122. package/dist/types/enums/index.js +38 -0
  123. package/dist/types/enums/index.js.map +1 -0
  124. package/dist/types/enums/locale.d.ts +11 -0
  125. package/dist/types/enums/locale.d.ts.map +1 -0
  126. package/dist/types/enums/locale.js +7 -0
  127. package/dist/types/enums/locale.js.map +1 -0
  128. package/dist/types/enums/meal_type.d.ts +14 -0
  129. package/dist/types/enums/meal_type.d.ts.map +1 -0
  130. package/dist/types/enums/meal_type.js +16 -0
  131. package/dist/types/enums/meal_type.js.map +1 -0
  132. package/dist/types/enums/moderation_status.d.ts +9 -0
  133. package/dist/types/enums/moderation_status.d.ts.map +1 -0
  134. package/dist/types/enums/moderation_status.js +11 -0
  135. package/dist/types/enums/moderation_status.js.map +1 -0
  136. package/dist/types/enums/priority.d.ts +9 -0
  137. package/dist/types/enums/priority.d.ts.map +1 -0
  138. package/dist/types/enums/priority.js +7 -0
  139. package/dist/types/enums/priority.js.map +1 -0
  140. package/dist/types/enums/profile_status.d.ts +10 -0
  141. package/dist/types/enums/profile_status.d.ts.map +1 -0
  142. package/dist/types/enums/profile_status.js +12 -0
  143. package/dist/types/enums/profile_status.js.map +1 -0
  144. package/dist/types/enums/recipe_source.d.ts +10 -0
  145. package/dist/types/enums/recipe_source.d.ts.map +1 -0
  146. package/dist/types/enums/recipe_source.js +7 -0
  147. package/dist/types/enums/recipe_source.js.map +1 -0
  148. package/dist/types/enums/recipe_status.d.ts +13 -0
  149. package/dist/types/enums/recipe_status.d.ts.map +1 -0
  150. package/dist/types/enums/recipe_status.js +15 -0
  151. package/dist/types/enums/recipe_status.js.map +1 -0
  152. package/dist/types/enums/role.d.ts +11 -0
  153. package/dist/types/enums/role.d.ts.map +1 -0
  154. package/dist/types/enums/role.js +13 -0
  155. package/dist/types/enums/role.js.map +1 -0
  156. package/dist/types/enums/severity.d.ts +9 -0
  157. package/dist/types/enums/severity.d.ts.map +1 -0
  158. package/dist/types/enums/severity.js +7 -0
  159. package/dist/types/enums/severity.js.map +1 -0
  160. package/dist/types/enums/spiciness.d.ts +10 -0
  161. package/dist/types/enums/spiciness.d.ts.map +1 -0
  162. package/dist/types/enums/spiciness.js +7 -0
  163. package/dist/types/enums/spiciness.js.map +1 -0
  164. package/dist/types/enums/status.d.ts +11 -0
  165. package/dist/types/enums/status.d.ts.map +1 -0
  166. package/dist/types/enums/status.js +13 -0
  167. package/dist/types/enums/status.js.map +1 -0
  168. package/dist/types/enums/subscription_tier.d.ts +8 -0
  169. package/dist/types/enums/subscription_tier.d.ts.map +1 -0
  170. package/dist/types/enums/subscription_tier.js +6 -0
  171. package/dist/types/enums/subscription_tier.js.map +1 -0
  172. package/dist/types/enums/suggestion_category.d.ts +11 -0
  173. package/dist/types/enums/suggestion_category.d.ts.map +1 -0
  174. package/dist/types/enums/suggestion_category.js +13 -0
  175. package/dist/types/enums/suggestion_category.js.map +1 -0
  176. package/dist/types/enums/temperature_unit.d.ts +8 -0
  177. package/dist/types/enums/temperature_unit.d.ts.map +1 -0
  178. package/dist/types/enums/temperature_unit.js +7 -0
  179. package/dist/types/enums/temperature_unit.js.map +1 -0
  180. package/dist/types/enums/unit.d.ts +43 -0
  181. package/dist/types/enums/unit.d.ts.map +1 -0
  182. package/dist/types/enums/unit.js +53 -0
  183. package/dist/types/enums/unit.js.map +1 -0
  184. package/dist/types/enums/url_type.d.ts +13 -0
  185. package/dist/types/enums/url_type.d.ts.map +1 -0
  186. package/dist/types/enums/url_type.js +15 -0
  187. package/dist/types/enums/url_type.js.map +1 -0
  188. package/dist/types/enums/user_status.d.ts +10 -0
  189. package/dist/types/enums/user_status.d.ts.map +1 -0
  190. package/dist/types/enums/user_status.js +12 -0
  191. package/dist/types/enums/user_status.js.map +1 -0
  192. package/dist/types/equipment-entry.d.ts +21 -0
  193. package/dist/types/equipment-entry.d.ts.map +1 -0
  194. package/dist/types/equipment-entry.js +17 -0
  195. package/dist/types/equipment-entry.js.map +1 -0
  196. package/dist/types/global-asset.d.ts +21 -0
  197. package/dist/types/global-asset.d.ts.map +1 -0
  198. package/dist/types/global-asset.js +18 -0
  199. package/dist/types/global-asset.js.map +1 -0
  200. package/dist/types/iam/index.d.ts +4 -0
  201. package/dist/types/iam/index.d.ts.map +1 -0
  202. package/dist/types/iam/index.js +20 -0
  203. package/dist/types/iam/index.js.map +1 -0
  204. package/dist/types/iam/profile.d.ts +30 -0
  205. package/dist/types/iam/profile.d.ts.map +1 -0
  206. package/dist/types/iam/profile.js +26 -0
  207. package/dist/types/iam/profile.js.map +1 -0
  208. package/dist/types/iam/subscription.d.ts +43 -0
  209. package/dist/types/iam/subscription.d.ts.map +1 -0
  210. package/dist/types/iam/subscription.js +22 -0
  211. package/dist/types/iam/subscription.js.map +1 -0
  212. package/dist/types/iam/user.d.ts +27 -0
  213. package/dist/types/iam/user.d.ts.map +1 -0
  214. package/dist/types/iam/user.js +18 -0
  215. package/dist/types/iam/user.js.map +1 -0
  216. package/dist/types/idempotency.d.ts +32 -0
  217. package/dist/types/idempotency.d.ts.map +1 -0
  218. package/dist/types/idempotency.js +25 -0
  219. package/dist/types/idempotency.js.map +1 -0
  220. package/dist/types/index.d.ts +3 -8
  221. package/dist/types/index.d.ts.map +1 -1
  222. package/dist/types/index.js +3 -8
  223. package/dist/types/index.js.map +1 -1
  224. package/dist/types/ingredient-entry.d.ts +21 -0
  225. package/dist/types/ingredient-entry.d.ts.map +1 -0
  226. package/dist/types/ingredient-entry.js +17 -0
  227. package/dist/types/ingredient-entry.js.map +1 -0
  228. package/dist/types/moderation.d.ts +24 -17
  229. package/dist/types/moderation.d.ts.map +1 -1
  230. package/dist/types/moderation.js +9 -8
  231. package/dist/types/moderation.js.map +1 -1
  232. package/dist/types/rate-limit.d.ts +26 -0
  233. package/dist/types/rate-limit.d.ts.map +1 -0
  234. package/dist/types/rate-limit.js +22 -0
  235. package/dist/types/rate-limit.js.map +1 -0
  236. package/dist/types/recipe/equipment.d.ts +20 -0
  237. package/dist/types/recipe/equipment.d.ts.map +1 -0
  238. package/dist/types/recipe/equipment.js +16 -0
  239. package/dist/types/recipe/equipment.js.map +1 -0
  240. package/dist/types/recipe/index.d.ts +7 -0
  241. package/dist/types/recipe/index.d.ts.map +1 -0
  242. package/dist/types/recipe/index.js +23 -0
  243. package/dist/types/recipe/index.js.map +1 -0
  244. package/dist/types/recipe/ingredient.d.ts +209 -0
  245. package/dist/types/recipe/ingredient.d.ts.map +1 -0
  246. package/dist/types/recipe/ingredient.js +33 -0
  247. package/dist/types/recipe/ingredient.js.map +1 -0
  248. package/dist/types/recipe/instruction.d.ts +32 -0
  249. package/dist/types/recipe/instruction.d.ts.map +1 -0
  250. package/dist/types/recipe/instruction.js +16 -0
  251. package/dist/types/recipe/instruction.js.map +1 -0
  252. package/dist/types/recipe/nutrition.d.ts +18 -0
  253. package/dist/types/recipe/nutrition.d.ts.map +1 -0
  254. package/dist/types/recipe/nutrition.js +20 -0
  255. package/dist/types/recipe/nutrition.js.map +1 -0
  256. package/dist/types/recipe/recipe.d.ts +453 -0
  257. package/dist/types/recipe/recipe.d.ts.map +1 -0
  258. package/dist/types/recipe/recipe.js +82 -0
  259. package/dist/types/recipe/recipe.js.map +1 -0
  260. package/dist/types/recipe/temperature.d.ts +10 -0
  261. package/dist/types/recipe/temperature.d.ts.map +1 -0
  262. package/dist/types/recipe/temperature.js +10 -0
  263. package/dist/types/recipe/temperature.js.map +1 -0
  264. package/dist/types/report.d.ts +91 -0
  265. package/dist/types/report.d.ts.map +1 -0
  266. package/dist/types/report.js +61 -0
  267. package/dist/types/report.js.map +1 -0
  268. package/dist/types/settings.js +6 -6
  269. package/dist/types/settings.js.map +1 -1
  270. package/dist/types/user-recipe-ref.d.ts +29 -0
  271. package/dist/types/user-recipe-ref.d.ts.map +1 -0
  272. package/dist/types/user-recipe-ref.js +22 -0
  273. package/dist/types/user-recipe-ref.js.map +1 -0
  274. package/package.json +25 -1
  275. package/src/config/collections.ts +5 -0
  276. package/src/config/common.ts +1 -1
  277. package/src/config/index.ts +2 -0
  278. package/src/config/limits.ts +41 -0
  279. package/src/config/subscription.ts +1 -0
  280. package/src/index.ts +1 -1
  281. package/src/lib/errors/index.ts +30 -3
  282. package/src/lib/iam.ts +1 -1
  283. package/src/lib/index.ts +1 -0
  284. package/src/lib/repository/equipment.repository.ts +93 -0
  285. package/src/lib/repository/factory.ts +15 -0
  286. package/src/lib/repository/index.ts +5 -0
  287. package/src/lib/repository/ingredient.repository.ts +93 -0
  288. package/src/lib/repository/profile.repository.ts +2 -2
  289. package/src/lib/repository/recipe-queue.repository.ts +49 -0
  290. package/src/lib/repository/recipe.repository.ts +51 -0
  291. package/src/lib/repository/report.repository.ts +79 -0
  292. package/src/lib/repository/user.repository.ts +2 -2
  293. package/src/lib/usage/index.ts +1 -0
  294. package/src/lib/usage/usage.service.ts +187 -0
  295. package/src/lib/utils/index.ts +1 -0
  296. package/src/lib/utils/slug.ts +33 -0
  297. package/src/types/ai/filters.ts +1 -1
  298. package/src/types/ai/genkit.ts +77 -0
  299. package/src/types/ai/index.ts +1 -0
  300. package/src/types/ai/recipe.ts +5 -5
  301. package/src/types/ai/translation.ts +3 -3
  302. package/src/types/asset.ts +19 -0
  303. package/src/{enums → types/enums}/recipe_status.ts +3 -0
  304. package/src/types/iam/index.ts +3 -0
  305. package/src/types/{profile.ts → iam/profile.ts} +1 -1
  306. package/src/types/iam/subscription.ts +23 -0
  307. package/src/types/{user.ts → iam/user.ts} +2 -1
  308. package/src/types/index.ts +3 -8
  309. package/src/types/moderation.ts +11 -9
  310. package/src/types/{equipment.ts → recipe/equipment.ts} +1 -1
  311. package/src/types/recipe/index.ts +6 -0
  312. package/src/types/{ingredient.ts → recipe/ingredient.ts} +1 -1
  313. package/src/types/{recipe.ts → recipe/recipe.ts} +7 -7
  314. package/src/types/report.ts +70 -0
  315. package/src/types/settings.ts +7 -7
  316. package/src/types/subscription.ts +0 -13
  317. /package/src/{enums → types/enums}/allergen.ts +0 -0
  318. /package/src/{enums → types/enums}/cuisine.ts +0 -0
  319. /package/src/{enums → types/enums}/dietary_tag.ts +0 -0
  320. /package/src/{enums → types/enums}/difficulty.ts +0 -0
  321. /package/src/{enums → types/enums}/image_type.ts +0 -0
  322. /package/src/{enums → types/enums}/index.ts +0 -0
  323. /package/src/{enums → types/enums}/locale.ts +0 -0
  324. /package/src/{enums → types/enums}/meal_type.ts +0 -0
  325. /package/src/{enums → types/enums}/moderation_status.ts +0 -0
  326. /package/src/{enums → types/enums}/priority.ts +0 -0
  327. /package/src/{enums → types/enums}/profile_status.ts +0 -0
  328. /package/src/{enums → types/enums}/recipe_source.ts +0 -0
  329. /package/src/{enums → types/enums}/role.ts +0 -0
  330. /package/src/{enums → types/enums}/severity.ts +0 -0
  331. /package/src/{enums → types/enums}/spiciness.ts +0 -0
  332. /package/src/{enums → types/enums}/status.ts +0 -0
  333. /package/src/{enums → types/enums}/subscription_tier.ts +0 -0
  334. /package/src/{enums → types/enums}/suggestion_category.ts +0 -0
  335. /package/src/{enums → types/enums}/temperature_unit.ts +0 -0
  336. /package/src/{enums → types/enums}/unit.ts +0 -0
  337. /package/src/{enums → types/enums}/url_type.ts +0 -0
  338. /package/src/{enums → types/enums}/user_status.ts +0 -0
  339. /package/src/types/{instruction.ts → recipe/instruction.ts} +0 -0
  340. /package/src/types/{nutrition.ts → recipe/nutrition.ts} +0 -0
  341. /package/src/types/{temperature.ts → recipe/temperature.ts} +0 -0
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ export declare const IngredientLocaleSchema: z.ZodObject<{
3
+ description: z.ZodOptional<z.ZodString>;
4
+ locale: z.ZodEnum<{
5
+ en: "en";
6
+ ar: "ar";
7
+ es: "es";
8
+ fr: "fr";
9
+ ru: "ru";
10
+ }>;
11
+ name: z.ZodString;
12
+ }, z.core.$strip>;
13
+ export type IngredientLocale = z.infer<typeof IngredientLocaleSchema>;
14
+ export declare const IngredientEntrySchema: z.ZodObject<{
15
+ createdAt: z.ZodCustom<Timestamp, Timestamp>;
16
+ id: z.ZodString;
17
+ imageUrl: z.ZodOptional<z.ZodString>;
18
+ updatedAt: z.ZodCustom<Timestamp, Timestamp>;
19
+ }, z.core.$strip>;
20
+ export type IngredientEntry = z.infer<typeof IngredientEntrySchema>;
21
+ //# sourceMappingURL=ingredient-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ingredient-entry.d.ts","sourceRoot":"","sources":["../../src/types/ingredient-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sBAAsB;;;;;;;;;;iBAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;iBAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IngredientEntrySchema = exports.IngredientLocaleSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("./enums");
6
+ exports.IngredientLocaleSchema = zod_1.z.object({
7
+ description: zod_1.z.string().max(500).optional(),
8
+ locale: enums_1.LocaleSchema,
9
+ name: zod_1.z.string().min(1).max(100),
10
+ });
11
+ exports.IngredientEntrySchema = zod_1.z.object({
12
+ createdAt: zod_1.z.custom(),
13
+ id: zod_1.z.string(),
14
+ imageUrl: zod_1.z.string().optional(),
15
+ updatedAt: zod_1.z.custom(),
16
+ });
17
+ //# sourceMappingURL=ingredient-entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ingredient-entry.js","sourceRoot":"","sources":["../../src/types/ingredient-entry.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,mCAAuC;AAE1B,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,oBAAY;IACpB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACjC,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAa;IAChC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAa;CACjC,CAAC,CAAC"}
@@ -17,20 +17,6 @@ export declare const ModerationSuggestionSchema: z.ZodObject<{
17
17
  }, z.core.$strip>;
18
18
  export type ModerationSuggestion = z.infer<typeof ModerationSuggestionSchema>;
19
19
  export declare const ModerationSchema: z.ZodObject<{
20
- id: z.ZodString;
21
- recipeId: z.ZodString;
22
- userId: z.ZodString;
23
- status: z.ZodEnum<{
24
- approved: "approved";
25
- pending: "pending";
26
- rejected: "rejected";
27
- }>;
28
- priority: z.ZodEnum<{
29
- low: "low";
30
- medium: "medium";
31
- high: "high";
32
- }>;
33
- qualityScore: z.ZodOptional<z.ZodNumber>;
34
20
  aiSuggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
21
  category: z.ZodEnum<{
36
22
  missing_info: "missing_info";
@@ -47,11 +33,32 @@ export declare const ModerationSchema: z.ZodObject<{
47
33
  }>;
48
34
  suggestion: z.ZodString;
49
35
  }, z.core.$strip>>>;
50
- rejectionReason: z.ZodOptional<z.ZodString>;
51
- createdAt: z.ZodCustom<Timestamp, Timestamp>;
52
36
  assessedAt: z.ZodOptional<z.ZodCustom<Timestamp, Timestamp>>;
53
- reviewedBy: z.ZodOptional<z.ZodString>;
37
+ createdAt: z.ZodCustom<Timestamp, Timestamp>;
38
+ id: z.ZodString;
39
+ originalLocale: z.ZodEnum<{
40
+ en: "en";
41
+ ar: "ar";
42
+ es: "es";
43
+ fr: "fr";
44
+ ru: "ru";
45
+ }>;
46
+ priority: z.ZodEnum<{
47
+ low: "low";
48
+ medium: "medium";
49
+ high: "high";
50
+ }>;
51
+ qualityScore: z.ZodOptional<z.ZodNumber>;
52
+ recipeId: z.ZodString;
53
+ rejectionReason: z.ZodOptional<z.ZodString>;
54
54
  reviewedAt: z.ZodOptional<z.ZodCustom<Timestamp, Timestamp>>;
55
+ reviewedBy: z.ZodOptional<z.ZodString>;
56
+ status: z.ZodEnum<{
57
+ approved: "approved";
58
+ pending: "pending";
59
+ rejected: "rejected";
60
+ }>;
61
+ userId: z.ZodString;
55
62
  }, z.core.$strip>;
56
63
  export type Moderation = z.infer<typeof ModerationSchema>;
57
64
  export declare const ModerateRecipeInputSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../src/types/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAKrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAa3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAMrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
1
+ {"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../src/types/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAKrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAMrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ModerateRecipeOutputSchema = exports.ModerateRecipeInputSchema = exports.ModerationSchema = exports.ModerationSuggestionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const enums_1 = require("../enums");
5
+ const enums_1 = require("./enums");
6
6
  exports.ModerationSuggestionSchema = zod_1.z.object({
7
7
  category: enums_1.SuggestionCategorySchema,
8
8
  field: zod_1.z.string(),
@@ -10,18 +10,19 @@ exports.ModerationSuggestionSchema = zod_1.z.object({
10
10
  suggestion: zod_1.z.string(),
11
11
  });
12
12
  exports.ModerationSchema = zod_1.z.object({
13
+ aiSuggestions: zod_1.z.array(exports.ModerationSuggestionSchema).optional(),
14
+ assessedAt: zod_1.z.custom().optional(),
15
+ createdAt: zod_1.z.custom(),
13
16
  id: zod_1.z.string(),
14
- recipeId: zod_1.z.string(),
15
- userId: zod_1.z.string(),
16
- status: enums_1.ModerationStatusSchema,
17
+ originalLocale: enums_1.LocaleSchema,
17
18
  priority: enums_1.PrioritySchema,
18
19
  qualityScore: zod_1.z.number().min(0).max(1).optional(),
19
- aiSuggestions: zod_1.z.array(exports.ModerationSuggestionSchema).optional(),
20
+ recipeId: zod_1.z.string(),
20
21
  rejectionReason: zod_1.z.string().optional(),
21
- createdAt: zod_1.z.custom(),
22
- assessedAt: zod_1.z.custom().optional(),
23
- reviewedBy: zod_1.z.string().optional(),
24
22
  reviewedAt: zod_1.z.custom().optional(),
23
+ reviewedBy: zod_1.z.string().optional(),
24
+ status: enums_1.ModerationStatusSchema,
25
+ userId: zod_1.z.string(),
25
26
  });
26
27
  exports.ModerateRecipeInputSchema = zod_1.z.object({
27
28
  moderationId: zod_1.z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../src/types/moderation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,oCAKkB;AAEL,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,QAAQ,EAAE,gCAAwB;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,sBAAc;IACxB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGU,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,8BAAsB;IAC9B,QAAQ,EAAE,sBAAc;IACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjD,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC,CAAC,QAAQ,EAAE;IAC7D,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAa;IAChC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;IAC5C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC;IAChD,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE;IACzB,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE;IACzB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
1
+ {"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../src/types/moderation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,mCAMiB;AAEJ,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,QAAQ,EAAE,gCAAwB;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,sBAAc;IACxB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGU,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC,CAAC,QAAQ,EAAE;IAC7D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;IAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAa;IAChC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,oBAAY;IAC5B,QAAQ,EAAE,sBAAc;IACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;IAC5C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,8BAAsB;IAC9B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC;IAChD,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE;IACzB,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE;IACzB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { z } from "zod";
2
+ export declare const RATE_LIMIT_SCOPE_VALUES: readonly ["global", "user", "user_resource"];
3
+ export declare const RateLimitScopeSchema: z.ZodEnum<{
4
+ user: "user";
5
+ global: "global";
6
+ user_resource: "user_resource";
7
+ }>;
8
+ export type RateLimitScope = (typeof RATE_LIMIT_SCOPE_VALUES)[number];
9
+ export declare const RateLimitConfigSchema: z.ZodObject<{
10
+ key: z.ZodString;
11
+ maxCount: z.ZodNumber;
12
+ scope: z.ZodEnum<{
13
+ user: "user";
14
+ global: "global";
15
+ user_resource: "user_resource";
16
+ }>;
17
+ windowMs: z.ZodNumber;
18
+ }, z.core.$strip>;
19
+ export type RateLimitConfig = z.infer<typeof RateLimitConfigSchema>;
20
+ export declare const RateLimitResultSchema: z.ZodObject<{
21
+ allowed: z.ZodBoolean;
22
+ remaining: z.ZodNumber;
23
+ resetAt: z.ZodNumber;
24
+ }, z.core.$strip>;
25
+ export type RateLimitResult = z.infer<typeof RateLimitResultSchema>;
26
+ //# sourceMappingURL=rate-limit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rate-limit.d.ts","sourceRoot":"","sources":["../../src/types/rate-limit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB,8CAI1B,CAAC;AACX,eAAO,MAAM,oBAAoB;;;;EAAkC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;;;;;iBAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RateLimitResultSchema = exports.RateLimitConfigSchema = exports.RateLimitScopeSchema = exports.RATE_LIMIT_SCOPE_VALUES = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.RATE_LIMIT_SCOPE_VALUES = [
6
+ "global",
7
+ "user",
8
+ "user_resource",
9
+ ];
10
+ exports.RateLimitScopeSchema = zod_1.z.enum(exports.RATE_LIMIT_SCOPE_VALUES);
11
+ exports.RateLimitConfigSchema = zod_1.z.object({
12
+ key: zod_1.z.string(),
13
+ maxCount: zod_1.z.number().int().positive(),
14
+ scope: exports.RateLimitScopeSchema,
15
+ windowMs: zod_1.z.number().int().positive(),
16
+ });
17
+ exports.RateLimitResultSchema = zod_1.z.object({
18
+ allowed: zod_1.z.boolean(),
19
+ remaining: zod_1.z.number().int().nonnegative(),
20
+ resetAt: zod_1.z.number().int(),
21
+ });
22
+ //# sourceMappingURL=rate-limit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rate-limit.js","sourceRoot":"","sources":["../../src/types/rate-limit.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG;IACrC,QAAQ;IACR,MAAM;IACN,eAAe;CACP,CAAC;AACE,QAAA,oBAAoB,GAAG,OAAC,CAAC,IAAI,CAAC,+BAAuB,CAAC,CAAC;AAGvD,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,4BAAoB;IAC3B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACzC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC1B,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+ export declare const EquipmentMetaSchema: z.ZodObject<{
3
+ required: z.ZodOptional<z.ZodBoolean>;
4
+ slug: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type EquipmentMeta = z.infer<typeof EquipmentMetaSchema>;
7
+ export declare const EquipmentContentSchema: z.ZodObject<{
8
+ name: z.ZodString;
9
+ notes: z.ZodOptional<z.ZodString>;
10
+ slug: z.ZodString;
11
+ }, z.core.$strip>;
12
+ export type EquipmentContent = z.infer<typeof EquipmentContentSchema>;
13
+ export declare const EquipmentSchema: z.ZodObject<{
14
+ name: z.ZodString;
15
+ notes: z.ZodOptional<z.ZodString>;
16
+ slug: z.ZodString;
17
+ required: z.ZodOptional<z.ZodBoolean>;
18
+ }, z.core.$strip>;
19
+ export type Equipment = z.infer<typeof EquipmentSchema>;
20
+ //# sourceMappingURL=equipment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,eAAe;;;;;iBAG1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EquipmentSchema = exports.EquipmentContentSchema = exports.EquipmentMetaSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const config_1 = require("../../config");
6
+ exports.EquipmentMetaSchema = zod_1.z.object({
7
+ required: zod_1.z.boolean().optional(),
8
+ slug: zod_1.z.string().regex(config_1.SlugRegex),
9
+ });
10
+ exports.EquipmentContentSchema = zod_1.z.object({
11
+ name: zod_1.z.string().min(1).max(100),
12
+ notes: zod_1.z.string().max(200).optional(),
13
+ slug: zod_1.z.string().regex(config_1.SlugRegex),
14
+ });
15
+ exports.EquipmentSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.EquipmentMetaSchema.shape), exports.EquipmentContentSchema.shape));
16
+ //# sourceMappingURL=equipment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equipment.js","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAAyC;AAE5B,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAS,CAAC;CAClC,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAS,CAAC;CAClC,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,iCAClC,2BAAmB,CAAC,KAAK,GACzB,8BAAsB,CAAC,KAAK,EAC/B,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from "./equipment";
2
+ export * from "./ingredient";
3
+ export * from "./instruction";
4
+ export * from "./nutrition";
5
+ export * from "./recipe";
6
+ export * from "./temperature";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./equipment"), exports);
18
+ __exportStar(require("./ingredient"), exports);
19
+ __exportStar(require("./instruction"), exports);
20
+ __exportStar(require("./nutrition"), exports);
21
+ __exportStar(require("./recipe"), exports);
22
+ __exportStar(require("./temperature"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,gDAA8B;AAC9B,8CAA4B;AAC5B,2CAAyB;AACzB,gDAA8B"}
@@ -0,0 +1,209 @@
1
+ import { z } from "zod";
2
+ export declare const IngredientMetaSchema: z.ZodObject<{
3
+ quantity: z.ZodOptional<z.ZodNumber>;
4
+ required: z.ZodOptional<z.ZodBoolean>;
5
+ slug: z.ZodString;
6
+ unit: z.ZodOptional<z.ZodEnum<{
7
+ ml: "ml";
8
+ l: "l";
9
+ tsp: "tsp";
10
+ tbsp: "tbsp";
11
+ fl_oz: "fl_oz";
12
+ cup: "cup";
13
+ pint: "pint";
14
+ quart: "quart";
15
+ gallon: "gallon";
16
+ mg: "mg";
17
+ g: "g";
18
+ kg: "kg";
19
+ oz: "oz";
20
+ lb: "lb";
21
+ piece: "piece";
22
+ whole: "whole";
23
+ half: "half";
24
+ quarter: "quarter";
25
+ slice: "slice";
26
+ serving: "serving";
27
+ clove: "clove";
28
+ stalk: "stalk";
29
+ sprig: "sprig";
30
+ leaf: "leaf";
31
+ bunch: "bunch";
32
+ head: "head";
33
+ fillet: "fillet";
34
+ stick: "stick";
35
+ sheet: "sheet";
36
+ can: "can";
37
+ package: "package";
38
+ bottle: "bottle";
39
+ jar: "jar";
40
+ handful: "handful";
41
+ pinch: "pinch";
42
+ dash: "dash";
43
+ drop: "drop";
44
+ }>>;
45
+ }, z.core.$strip>;
46
+ export type IngredientMeta = z.infer<typeof IngredientMetaSchema>;
47
+ export declare const IngredientContentSchema: z.ZodObject<{
48
+ name: z.ZodString;
49
+ notes: z.ZodOptional<z.ZodString>;
50
+ slug: z.ZodString;
51
+ }, z.core.$strip>;
52
+ export type IngredientContent = z.infer<typeof IngredientContentSchema>;
53
+ export declare const IngredientSchema: z.ZodObject<{
54
+ name: z.ZodString;
55
+ notes: z.ZodOptional<z.ZodString>;
56
+ slug: z.ZodString;
57
+ quantity: z.ZodOptional<z.ZodNumber>;
58
+ required: z.ZodOptional<z.ZodBoolean>;
59
+ unit: z.ZodOptional<z.ZodEnum<{
60
+ ml: "ml";
61
+ l: "l";
62
+ tsp: "tsp";
63
+ tbsp: "tbsp";
64
+ fl_oz: "fl_oz";
65
+ cup: "cup";
66
+ pint: "pint";
67
+ quart: "quart";
68
+ gallon: "gallon";
69
+ mg: "mg";
70
+ g: "g";
71
+ kg: "kg";
72
+ oz: "oz";
73
+ lb: "lb";
74
+ piece: "piece";
75
+ whole: "whole";
76
+ half: "half";
77
+ quarter: "quarter";
78
+ slice: "slice";
79
+ serving: "serving";
80
+ clove: "clove";
81
+ stalk: "stalk";
82
+ sprig: "sprig";
83
+ leaf: "leaf";
84
+ bunch: "bunch";
85
+ head: "head";
86
+ fillet: "fillet";
87
+ stick: "stick";
88
+ sheet: "sheet";
89
+ can: "can";
90
+ package: "package";
91
+ bottle: "bottle";
92
+ jar: "jar";
93
+ handful: "handful";
94
+ pinch: "pinch";
95
+ dash: "dash";
96
+ drop: "drop";
97
+ }>>;
98
+ }, z.core.$strip>;
99
+ export type Ingredient = z.infer<typeof IngredientSchema>;
100
+ export declare const IngredientSectionMetaSchema: z.ZodObject<{
101
+ ingredients: z.ZodArray<z.ZodObject<{
102
+ quantity: z.ZodOptional<z.ZodNumber>;
103
+ required: z.ZodOptional<z.ZodBoolean>;
104
+ slug: z.ZodString;
105
+ unit: z.ZodOptional<z.ZodEnum<{
106
+ ml: "ml";
107
+ l: "l";
108
+ tsp: "tsp";
109
+ tbsp: "tbsp";
110
+ fl_oz: "fl_oz";
111
+ cup: "cup";
112
+ pint: "pint";
113
+ quart: "quart";
114
+ gallon: "gallon";
115
+ mg: "mg";
116
+ g: "g";
117
+ kg: "kg";
118
+ oz: "oz";
119
+ lb: "lb";
120
+ piece: "piece";
121
+ whole: "whole";
122
+ half: "half";
123
+ quarter: "quarter";
124
+ slice: "slice";
125
+ serving: "serving";
126
+ clove: "clove";
127
+ stalk: "stalk";
128
+ sprig: "sprig";
129
+ leaf: "leaf";
130
+ bunch: "bunch";
131
+ head: "head";
132
+ fillet: "fillet";
133
+ stick: "stick";
134
+ sheet: "sheet";
135
+ can: "can";
136
+ package: "package";
137
+ bottle: "bottle";
138
+ jar: "jar";
139
+ handful: "handful";
140
+ pinch: "pinch";
141
+ dash: "dash";
142
+ drop: "drop";
143
+ }>>;
144
+ }, z.core.$strip>>;
145
+ slug: z.ZodString;
146
+ }, z.core.$strip>;
147
+ export type IngredientSectionMeta = z.infer<typeof IngredientSectionMetaSchema>;
148
+ export declare const IngredientSectionContentSchema: z.ZodObject<{
149
+ ingredients: z.ZodArray<z.ZodObject<{
150
+ name: z.ZodString;
151
+ notes: z.ZodOptional<z.ZodString>;
152
+ slug: z.ZodString;
153
+ }, z.core.$strip>>;
154
+ slug: z.ZodString;
155
+ title: z.ZodOptional<z.ZodString>;
156
+ }, z.core.$strip>;
157
+ export type IngredientSectionContent = z.infer<typeof IngredientSectionContentSchema>;
158
+ export declare const IngredientSectionSchema: z.ZodObject<{
159
+ ingredients: z.ZodArray<z.ZodObject<{
160
+ name: z.ZodString;
161
+ notes: z.ZodOptional<z.ZodString>;
162
+ slug: z.ZodString;
163
+ quantity: z.ZodOptional<z.ZodNumber>;
164
+ required: z.ZodOptional<z.ZodBoolean>;
165
+ unit: z.ZodOptional<z.ZodEnum<{
166
+ ml: "ml";
167
+ l: "l";
168
+ tsp: "tsp";
169
+ tbsp: "tbsp";
170
+ fl_oz: "fl_oz";
171
+ cup: "cup";
172
+ pint: "pint";
173
+ quart: "quart";
174
+ gallon: "gallon";
175
+ mg: "mg";
176
+ g: "g";
177
+ kg: "kg";
178
+ oz: "oz";
179
+ lb: "lb";
180
+ piece: "piece";
181
+ whole: "whole";
182
+ half: "half";
183
+ quarter: "quarter";
184
+ slice: "slice";
185
+ serving: "serving";
186
+ clove: "clove";
187
+ stalk: "stalk";
188
+ sprig: "sprig";
189
+ leaf: "leaf";
190
+ bunch: "bunch";
191
+ head: "head";
192
+ fillet: "fillet";
193
+ stick: "stick";
194
+ sheet: "sheet";
195
+ can: "can";
196
+ package: "package";
197
+ bottle: "bottle";
198
+ jar: "jar";
199
+ handful: "handful";
200
+ pinch: "pinch";
201
+ dash: "dash";
202
+ drop: "drop";
203
+ }>>;
204
+ }, z.core.$strip>>;
205
+ slug: z.ZodString;
206
+ title: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strip>;
208
+ export type IngredientSection = z.infer<typeof IngredientSectionSchema>;
209
+ //# sourceMappingURL=ingredient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,8BAA8B;;;;;;;;iBAIzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IngredientSectionSchema = exports.IngredientSectionContentSchema = exports.IngredientSectionMetaSchema = exports.IngredientSchema = exports.IngredientContentSchema = exports.IngredientMetaSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const config_1 = require("../../config");
6
+ const enums_1 = require("../enums");
7
+ exports.IngredientMetaSchema = zod_1.z.object({
8
+ quantity: zod_1.z.number().positive().optional(),
9
+ required: zod_1.z.boolean().optional(),
10
+ slug: zod_1.z.string().regex(config_1.SlugRegex),
11
+ unit: enums_1.UnitSchema.optional(),
12
+ });
13
+ exports.IngredientContentSchema = zod_1.z.object({
14
+ name: zod_1.z.string().min(1).max(100),
15
+ notes: zod_1.z.string().max(200).optional(),
16
+ slug: zod_1.z.string().regex(config_1.SlugRegex),
17
+ });
18
+ exports.IngredientSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.IngredientMetaSchema.shape), exports.IngredientContentSchema.shape));
19
+ exports.IngredientSectionMetaSchema = zod_1.z.object({
20
+ ingredients: zod_1.z.array(exports.IngredientMetaSchema).min(1),
21
+ slug: zod_1.z.string().regex(config_1.SlugRegex),
22
+ });
23
+ exports.IngredientSectionContentSchema = zod_1.z.object({
24
+ ingredients: zod_1.z.array(exports.IngredientContentSchema).min(1),
25
+ slug: zod_1.z.string().regex(config_1.SlugRegex),
26
+ title: zod_1.z.string().max(100).optional(),
27
+ });
28
+ exports.IngredientSectionSchema = zod_1.z.object({
29
+ ingredients: zod_1.z.array(exports.IngredientSchema).min(1),
30
+ slug: zod_1.z.string().regex(config_1.SlugRegex),
31
+ title: zod_1.z.string().max(100).optional(),
32
+ });
33
+ //# sourceMappingURL=ingredient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAAyC;AACzC,oCAAsC;AAEzB,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAS,CAAC;IACjC,IAAI,EAAE,kBAAU,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAGU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAS,CAAC;CAClC,CAAC,CAAC;AAGU,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,iCACnC,4BAAoB,CAAC,KAAK,GAC1B,+BAAuB,CAAC,KAAK,EAChC,CAAC;AAGU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,4BAAoB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACjD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAS,CAAC;CAClC,CAAC,CAAC;AAGU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACpD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAS,CAAC;IACjC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAKU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAS,CAAC;IACjC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { z } from "zod";
2
+ export declare const InstructionMetaSchema: z.ZodObject<{
3
+ duration: z.ZodOptional<z.ZodNumber>;
4
+ step: z.ZodNumber;
5
+ temperature: z.ZodOptional<z.ZodObject<{
6
+ unit: z.ZodEnum<{
7
+ celsius: "celsius";
8
+ fahrenheit: "fahrenheit";
9
+ }>;
10
+ value: z.ZodNumber;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ export type InstructionMeta = z.infer<typeof InstructionMetaSchema>;
14
+ export declare const InstructionContentSchema: z.ZodObject<{
15
+ step: z.ZodNumber;
16
+ text: z.ZodString;
17
+ }, z.core.$strip>;
18
+ export type InstructionContent = z.infer<typeof InstructionContentSchema>;
19
+ export declare const InstructionSchema: z.ZodObject<{
20
+ step: z.ZodNumber;
21
+ text: z.ZodString;
22
+ duration: z.ZodOptional<z.ZodNumber>;
23
+ temperature: z.ZodOptional<z.ZodObject<{
24
+ unit: z.ZodEnum<{
25
+ celsius: "celsius";
26
+ fahrenheit: "fahrenheit";
27
+ }>;
28
+ value: z.ZodNumber;
29
+ }, z.core.$strip>>;
30
+ }, z.core.$strip>;
31
+ export type Instruction = z.infer<typeof InstructionSchema>;
32
+ //# sourceMappingURL=instruction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,iBAAiB;;;;;;;;;;;iBAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InstructionSchema = exports.InstructionContentSchema = exports.InstructionMetaSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const temperature_1 = require("./temperature");
6
+ exports.InstructionMetaSchema = zod_1.z.object({
7
+ duration: zod_1.z.number().int().positive().optional(),
8
+ step: zod_1.z.number().int().positive(),
9
+ temperature: temperature_1.TemperatureSchema.optional(),
10
+ });
11
+ exports.InstructionContentSchema = zod_1.z.object({
12
+ step: zod_1.z.number().int().positive(),
13
+ text: zod_1.z.string().min(1).max(1000),
14
+ });
15
+ exports.InstructionSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.InstructionMetaSchema.shape), exports.InstructionContentSchema.shape));
16
+ //# sourceMappingURL=instruction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruction.js","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAAkD;AAErC,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,+BAAiB,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAGU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;CAClC,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,iCACpC,6BAAqB,CAAC,KAAK,GAC3B,gCAAwB,CAAC,KAAK,EACjC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Nutrition data per serving.
4
+ * Units: calories (kcal), fat/carbs/protein/fiber/sugar (g), cholesterol/sodium (mg)
5
+ */
6
+ export declare const NutritionSchema: z.ZodObject<{
7
+ calories: z.ZodNumber;
8
+ carbs: z.ZodOptional<z.ZodNumber>;
9
+ cholesterol: z.ZodOptional<z.ZodNumber>;
10
+ fat: z.ZodOptional<z.ZodNumber>;
11
+ fiber: z.ZodOptional<z.ZodNumber>;
12
+ protein: z.ZodOptional<z.ZodNumber>;
13
+ saturatedFat: z.ZodOptional<z.ZodNumber>;
14
+ sodium: z.ZodOptional<z.ZodNumber>;
15
+ sugar: z.ZodOptional<z.ZodNumber>;
16
+ }, z.core.$strip>;
17
+ export type Nutrition = z.infer<typeof NutritionSchema>;
18
+ //# sourceMappingURL=nutrition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nutrition.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/nutrition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;iBAU1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}