@cravery/core 0.0.56 → 0.0.58

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 (533) hide show
  1. package/README.md +80 -80
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +0 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/types/core/entity.d.ts +4 -2
  7. package/dist/types/core/entity.d.ts.map +1 -1
  8. package/dist/types/core/errors.d.ts +1 -3
  9. package/dist/types/core/errors.d.ts.map +1 -1
  10. package/dist/types/core/errors.js +11 -13
  11. package/dist/types/core/errors.js.map +1 -1
  12. package/dist/types/core/index.d.ts +0 -3
  13. package/dist/types/core/index.d.ts.map +1 -1
  14. package/dist/types/core/index.js +0 -3
  15. package/dist/types/core/index.js.map +1 -1
  16. package/dist/types/core/locale.d.ts +1 -1
  17. package/dist/types/core/locale.d.ts.map +1 -1
  18. package/dist/types/core/locale.js +1 -1
  19. package/dist/types/core/locale.js.map +1 -1
  20. package/dist/types/core/measurement_system.d.ts +1 -1
  21. package/dist/types/core/measurement_system.js +1 -1
  22. package/dist/types/core/measurement_system.js.map +1 -1
  23. package/dist/types/core/theme.d.ts +1 -1
  24. package/dist/types/core/theme.js +1 -1
  25. package/dist/types/core/theme.js.map +1 -1
  26. package/dist/types/equipment/equipment.d.ts +2 -2
  27. package/dist/types/equipment/equipment.d.ts.map +1 -1
  28. package/dist/types/equipment/equipment_entity.d.ts +2 -2
  29. package/dist/types/equipment/equipment_entity.d.ts.map +1 -1
  30. package/dist/types/equipment/user_equipment.d.ts +1 -1
  31. package/dist/types/equipment/user_equipment.d.ts.map +1 -1
  32. package/dist/types/index.d.ts +6 -6
  33. package/dist/types/index.d.ts.map +1 -1
  34. package/dist/types/index.js +6 -6
  35. package/dist/types/index.js.map +1 -1
  36. package/dist/types/ingredients/category.d.ts.map +1 -0
  37. package/dist/types/ingredients/category.js.map +1 -0
  38. package/dist/types/ingredients/group.d.ts.map +1 -0
  39. package/dist/types/ingredients/group.js.map +1 -0
  40. package/dist/types/ingredients/index.d.ts.map +1 -0
  41. package/dist/types/ingredients/index.js.map +1 -0
  42. package/dist/types/{ingredient → ingredients}/ingredient.d.ts +3 -3
  43. package/dist/types/ingredients/ingredient.d.ts.map +1 -0
  44. package/dist/types/ingredients/ingredient.js.map +1 -0
  45. package/dist/types/{ingredient → ingredients}/ingredient_entity.d.ts +4 -2
  46. package/dist/types/ingredients/ingredient_entity.d.ts.map +1 -0
  47. package/dist/types/ingredients/ingredient_entity.js.map +1 -0
  48. package/dist/types/ingredients/ingredient_section.d.ts.map +1 -0
  49. package/dist/types/ingredients/ingredient_section.js.map +1 -0
  50. package/dist/types/{ingredient → ingredients}/user_ingredient.d.ts +2 -2
  51. package/dist/types/ingredients/user_ingredient.d.ts.map +1 -0
  52. package/dist/types/ingredients/user_ingredient.js.map +1 -0
  53. package/dist/types/recipes/allergen.d.ts.map +1 -0
  54. package/dist/types/recipes/allergen.js.map +1 -0
  55. package/dist/types/recipes/comment.d.ts.map +1 -0
  56. package/dist/types/{recipe → recipes}/comment.js.map +1 -1
  57. package/dist/types/recipes/cuisine.d.ts +3 -0
  58. package/dist/types/recipes/cuisine.d.ts.map +1 -0
  59. package/dist/types/recipes/cuisine.js +79 -0
  60. package/dist/types/recipes/cuisine.js.map +1 -0
  61. package/dist/types/recipes/dietary_tag.d.ts.map +1 -0
  62. package/dist/types/recipes/dietary_tag.js.map +1 -0
  63. package/dist/types/recipes/difficulty.d.ts +3 -0
  64. package/dist/types/recipes/difficulty.d.ts.map +1 -0
  65. package/dist/types/{recipe → recipes}/difficulty.js +3 -3
  66. package/dist/types/recipes/difficulty.js.map +1 -0
  67. package/dist/types/{recipe → recipes}/index.d.ts +0 -2
  68. package/dist/types/recipes/index.d.ts.map +1 -0
  69. package/dist/types/{recipe → recipes}/index.js +1 -2
  70. package/dist/types/recipes/index.js.map +1 -0
  71. package/dist/types/{recipe → recipes}/instruction.d.ts +1 -1
  72. package/dist/types/recipes/instruction.d.ts.map +1 -0
  73. package/dist/types/recipes/instruction.js.map +1 -0
  74. package/dist/types/recipes/meal_type.d.ts +3 -0
  75. package/dist/types/recipes/meal_type.d.ts.map +1 -0
  76. package/dist/types/{recipe → recipes}/meal_type.js +2 -0
  77. package/dist/types/recipes/meal_type.js.map +1 -0
  78. package/dist/types/recipes/nutrition.d.ts.map +1 -0
  79. package/dist/types/recipes/nutrition.js.map +1 -0
  80. package/dist/types/{recipe → recipes}/recipe.d.ts +3 -12
  81. package/dist/types/recipes/recipe.d.ts.map +1 -0
  82. package/dist/types/{ai → recipes}/recipe.js.map +1 -1
  83. package/dist/types/recipes/recipe_source.d.ts.map +1 -0
  84. package/dist/types/recipes/recipe_source.js.map +1 -0
  85. package/dist/types/recipes/recipe_stats.d.ts +9 -0
  86. package/dist/types/recipes/recipe_stats.d.ts.map +1 -0
  87. package/dist/types/{ai/translation.js → recipes/recipe_stats.js} +1 -1
  88. package/dist/types/recipes/recipe_stats.js.map +1 -0
  89. package/dist/types/{recipe → recipes}/spiciness.d.ts +1 -1
  90. package/dist/types/recipes/spiciness.d.ts.map +1 -0
  91. package/dist/types/{recipe → recipes}/spiciness.js +1 -1
  92. package/dist/types/recipes/spiciness.js.map +1 -0
  93. package/dist/types/recipes/temperature.d.ts.map +1 -0
  94. package/dist/types/recipes/temperature.js.map +1 -0
  95. package/dist/types/recipes/temperature_unit.d.ts.map +1 -0
  96. package/dist/types/recipes/temperature_unit.js.map +1 -0
  97. package/dist/types/recipes/unit.d.ts.map +1 -0
  98. package/dist/types/recipes/unit.js.map +1 -0
  99. package/dist/types/reports/category.d.ts +3 -0
  100. package/dist/types/reports/category.d.ts.map +1 -0
  101. package/dist/types/reports/category.js +12 -0
  102. package/dist/types/reports/category.js.map +1 -0
  103. package/dist/types/reports/index.d.ts +9 -0
  104. package/dist/types/reports/index.d.ts.map +1 -0
  105. package/dist/types/{submission → reports}/index.js +7 -4
  106. package/dist/types/reports/index.js.map +1 -0
  107. package/dist/types/{report/report_priority.d.ts → reports/priority.d.ts} +1 -1
  108. package/dist/types/reports/priority.d.ts.map +1 -0
  109. package/dist/types/{report/report_priority.js → reports/priority.js} +1 -1
  110. package/dist/types/reports/priority.js.map +1 -0
  111. package/dist/types/reports/report.d.ts +17 -0
  112. package/dist/types/reports/report.d.ts.map +1 -0
  113. package/dist/types/{report → reports}/report.js.map +1 -1
  114. package/dist/types/{report/report_status.d.ts → reports/status.d.ts} +1 -1
  115. package/dist/types/reports/status.d.ts.map +1 -0
  116. package/dist/types/{report/report_status.js → reports/status.js} +1 -1
  117. package/dist/types/reports/status.js.map +1 -0
  118. package/dist/types/reports/submission.d.ts +8 -0
  119. package/dist/types/reports/submission.d.ts.map +1 -0
  120. package/dist/types/reports/submission.js.map +1 -0
  121. package/dist/types/reports/target.d.ts +20 -0
  122. package/dist/types/reports/target.d.ts.map +1 -0
  123. package/dist/types/{ai/config.js → reports/target.js} +1 -1
  124. package/dist/types/reports/target.js.map +1 -0
  125. package/dist/types/reports/update.d.ts +19 -0
  126. package/dist/types/reports/update.d.ts.map +1 -0
  127. package/dist/types/reports/update.js +3 -0
  128. package/dist/types/reports/update.js.map +1 -0
  129. package/dist/types/reports/update_type.d.ts +3 -0
  130. package/dist/types/reports/update_type.d.ts.map +1 -0
  131. package/dist/types/reports/update_type.js +9 -0
  132. package/dist/types/reports/update_type.js.map +1 -0
  133. package/dist/types/settings/index.d.ts +3 -0
  134. package/dist/types/settings/index.d.ts.map +1 -0
  135. package/dist/types/{ai → settings}/index.js +2 -3
  136. package/dist/types/settings/index.js.map +1 -0
  137. package/dist/types/settings/notification.d.ts +7 -0
  138. package/dist/types/settings/notification.d.ts.map +1 -0
  139. package/dist/types/settings/notification.js +3 -0
  140. package/dist/types/settings/notification.js.map +1 -0
  141. package/dist/types/{core → settings}/settings.d.ts +4 -11
  142. package/dist/types/settings/settings.d.ts.map +1 -0
  143. package/dist/types/settings/settings.js.map +1 -0
  144. package/dist/types/subscriptions/billing_period.d.ts +3 -0
  145. package/dist/types/subscriptions/billing_period.d.ts.map +1 -0
  146. package/dist/types/subscriptions/billing_period.js +5 -0
  147. package/dist/types/subscriptions/billing_period.js.map +1 -0
  148. package/dist/types/subscriptions/cost.d.ts +6 -0
  149. package/dist/types/subscriptions/cost.d.ts.map +1 -0
  150. package/dist/types/{core/asset.js → subscriptions/cost.js} +1 -1
  151. package/dist/types/subscriptions/cost.js.map +1 -0
  152. package/dist/types/{iam → subscriptions}/index.d.ts +0 -3
  153. package/dist/types/subscriptions/index.d.ts.map +1 -0
  154. package/dist/types/{iam → subscriptions}/index.js +0 -3
  155. package/dist/types/subscriptions/index.js.map +1 -0
  156. package/dist/types/subscriptions/member.d.ts +11 -0
  157. package/dist/types/subscriptions/member.d.ts.map +1 -0
  158. package/dist/types/subscriptions/member.js +3 -0
  159. package/dist/types/subscriptions/member.js.map +1 -0
  160. package/dist/types/subscriptions/store.d.ts +3 -0
  161. package/dist/types/subscriptions/store.d.ts.map +1 -0
  162. package/dist/types/subscriptions/store.js +5 -0
  163. package/dist/types/subscriptions/store.js.map +1 -0
  164. package/dist/types/subscriptions/subscription.d.ts +21 -0
  165. package/dist/types/subscriptions/subscription.d.ts.map +1 -0
  166. package/dist/types/subscriptions/subscription.js.map +1 -0
  167. package/dist/types/subscriptions/subscription_role.d.ts.map +1 -0
  168. package/dist/types/subscriptions/subscription_role.js.map +1 -0
  169. package/dist/types/{iam → subscriptions}/subscription_status.d.ts +1 -1
  170. package/dist/types/subscriptions/subscription_status.d.ts.map +1 -0
  171. package/dist/types/{iam → subscriptions}/subscription_status.js +3 -0
  172. package/dist/types/subscriptions/subscription_status.js.map +1 -0
  173. package/dist/types/subscriptions/subscription_tier.d.ts.map +1 -0
  174. package/dist/types/subscriptions/subscription_tier.js.map +1 -0
  175. package/dist/types/users/bookmark.d.ts +5 -0
  176. package/dist/types/users/bookmark.d.ts.map +1 -0
  177. package/dist/types/users/bookmark.js +3 -0
  178. package/dist/types/users/bookmark.js.map +1 -0
  179. package/dist/types/users/index.d.ts +5 -0
  180. package/dist/types/users/index.d.ts.map +1 -0
  181. package/dist/types/{report → users}/index.js +4 -4
  182. package/dist/types/users/index.js.map +1 -0
  183. package/dist/types/users/profile.d.ts +8 -0
  184. package/dist/types/users/profile.d.ts.map +1 -0
  185. package/dist/types/{iam → users}/profile.js.map +1 -1
  186. package/dist/types/{iam → users}/user.d.ts +2 -2
  187. package/dist/types/users/user.d.ts.map +1 -0
  188. package/dist/types/{iam → users}/user.js.map +1 -1
  189. package/dist/types/users/user_role.d.ts +3 -0
  190. package/dist/types/users/user_role.d.ts.map +1 -0
  191. package/dist/types/users/user_role.js +11 -0
  192. package/dist/types/users/user_role.js.map +1 -0
  193. package/package.json +34 -45
  194. package/src/index.ts +1 -2
  195. package/src/types/core/entity.ts +13 -10
  196. package/src/types/core/entity_status.ts +9 -9
  197. package/src/types/core/errors.ts +119 -124
  198. package/src/types/core/index.ts +8 -11
  199. package/src/types/core/locale.ts +2 -2
  200. package/src/types/core/measurement_system.ts +2 -2
  201. package/src/types/core/price.ts +4 -4
  202. package/src/types/core/theme.ts +2 -2
  203. package/src/types/core/timestamp.ts +4 -4
  204. package/src/types/equipment/category.ts +15 -15
  205. package/src/types/equipment/equipment.ts +12 -12
  206. package/src/types/equipment/equipment_entity.ts +17 -17
  207. package/src/types/equipment/index.ts +4 -4
  208. package/src/types/equipment/user_equipment.ts +9 -9
  209. package/src/types/index.ts +6 -6
  210. package/src/types/{ingredient → ingredients}/category.ts +28 -28
  211. package/src/types/{ingredient → ingredients}/group.ts +8 -8
  212. package/src/types/{ingredient → ingredients}/index.ts +6 -6
  213. package/src/types/{ingredient → ingredients}/ingredient.ts +16 -16
  214. package/src/types/{ingredient → ingredients}/ingredient_entity.ts +21 -19
  215. package/src/types/{ingredient → ingredients}/ingredient_section.ts +18 -18
  216. package/src/types/{ingredient → ingredients}/user_ingredient.ts +14 -14
  217. package/src/types/{recipe → recipes}/allergen.ts +16 -16
  218. package/src/types/{recipe → recipes}/comment.ts +8 -8
  219. package/src/types/recipes/cuisine.ts +90 -0
  220. package/src/types/{recipe → recipes}/dietary_tag.ts +18 -18
  221. package/src/types/{recipe → recipes}/difficulty.ts +7 -7
  222. package/src/types/{recipe → recipes}/index.ts +14 -15
  223. package/src/types/{recipe → recipes}/instruction.ts +19 -19
  224. package/src/types/{recipe → recipes}/meal_type.ts +13 -11
  225. package/src/types/{recipe → recipes}/nutrition.ts +11 -11
  226. package/src/types/{recipe → recipes}/recipe.ts +81 -91
  227. package/src/types/{recipe → recipes}/recipe_source.ts +2 -2
  228. package/src/types/recipes/recipe_stats.ts +8 -0
  229. package/src/types/{recipe → recipes}/spiciness.ts +2 -2
  230. package/src/types/{recipe → recipes}/temperature.ts +6 -6
  231. package/src/types/{recipe → recipes}/temperature_unit.ts +2 -2
  232. package/src/types/{recipe → recipes}/unit.ts +48 -48
  233. package/src/types/reports/category.ts +9 -0
  234. package/src/types/reports/index.ts +8 -0
  235. package/src/types/{report/report_priority.ts → reports/priority.ts} +7 -7
  236. package/src/types/reports/report.ts +18 -0
  237. package/src/types/{report/report_status.ts → reports/status.ts} +9 -9
  238. package/src/types/reports/submission.ts +8 -0
  239. package/src/types/reports/target.ts +19 -0
  240. package/src/types/reports/update.ts +22 -0
  241. package/src/types/reports/update_type.ts +6 -0
  242. package/src/types/settings/index.ts +2 -0
  243. package/src/types/settings/notification.ts +6 -0
  244. package/src/types/{core → settings}/settings.ts +26 -34
  245. package/src/types/subscriptions/billing_period.ts +2 -0
  246. package/src/types/subscriptions/cost.ts +5 -0
  247. package/src/types/{iam → subscriptions}/index.ts +4 -7
  248. package/src/types/subscriptions/member.ts +11 -0
  249. package/src/types/subscriptions/store.ts +2 -0
  250. package/src/types/subscriptions/subscription.ts +21 -0
  251. package/src/types/{iam → subscriptions}/subscription_role.ts +2 -2
  252. package/src/types/{iam → subscriptions}/subscription_status.ts +11 -8
  253. package/src/types/{iam → subscriptions}/subscription_tier.ts +2 -2
  254. package/src/types/users/bookmark.ts +5 -0
  255. package/src/types/users/index.ts +4 -0
  256. package/src/types/users/profile.ts +8 -0
  257. package/src/types/{iam → users}/user.ts +11 -11
  258. package/src/types/users/user_role.ts +8 -0
  259. package/dist/config/ai.d.ts +0 -3
  260. package/dist/config/ai.d.ts.map +0 -1
  261. package/dist/config/ai.js +0 -48
  262. package/dist/config/ai.js.map +0 -1
  263. package/dist/config/collections.d.ts +0 -16
  264. package/dist/config/collections.d.ts.map +0 -1
  265. package/dist/config/collections.js +0 -19
  266. package/dist/config/collections.js.map +0 -1
  267. package/dist/config/common.d.ts +0 -2
  268. package/dist/config/common.d.ts.map +0 -1
  269. package/dist/config/common.js +0 -5
  270. package/dist/config/common.js.map +0 -1
  271. package/dist/config/firestore.d.ts +0 -19
  272. package/dist/config/firestore.d.ts.map +0 -1
  273. package/dist/config/firestore.js +0 -22
  274. package/dist/config/firestore.js.map +0 -1
  275. package/dist/config/index.d.ts +0 -7
  276. package/dist/config/index.d.ts.map +0 -1
  277. package/dist/config/index.js +0 -23
  278. package/dist/config/index.js.map +0 -1
  279. package/dist/config/limits.d.ts +0 -8
  280. package/dist/config/limits.d.ts.map +0 -1
  281. package/dist/config/limits.js +0 -48
  282. package/dist/config/limits.js.map +0 -1
  283. package/dist/config/rtdb.d.ts +0 -8
  284. package/dist/config/rtdb.d.ts.map +0 -1
  285. package/dist/config/rtdb.js +0 -11
  286. package/dist/config/rtdb.js.map +0 -1
  287. package/dist/config/subscription.d.ts +0 -4
  288. package/dist/config/subscription.d.ts.map +0 -1
  289. package/dist/config/subscription.js +0 -17
  290. package/dist/config/subscription.js.map +0 -1
  291. package/dist/types/ai/config.d.ts +0 -21
  292. package/dist/types/ai/config.d.ts.map +0 -1
  293. package/dist/types/ai/config.js.map +0 -1
  294. package/dist/types/ai/index.d.ts +0 -4
  295. package/dist/types/ai/index.d.ts.map +0 -1
  296. package/dist/types/ai/index.js.map +0 -1
  297. package/dist/types/ai/recipe.d.ts +0 -22
  298. package/dist/types/ai/recipe.d.ts.map +0 -1
  299. package/dist/types/ai/translation.d.ts +0 -12
  300. package/dist/types/ai/translation.d.ts.map +0 -1
  301. package/dist/types/ai/translation.js.map +0 -1
  302. package/dist/types/core/api.d.ts +0 -16
  303. package/dist/types/core/api.d.ts.map +0 -1
  304. package/dist/types/core/api.js +0 -14
  305. package/dist/types/core/api.js.map +0 -1
  306. package/dist/types/core/asset.d.ts +0 -6
  307. package/dist/types/core/asset.d.ts.map +0 -1
  308. package/dist/types/core/asset.js.map +0 -1
  309. package/dist/types/core/pagination.d.ts +0 -18
  310. package/dist/types/core/pagination.d.ts.map +0 -1
  311. package/dist/types/core/pagination.js +0 -3
  312. package/dist/types/core/pagination.js.map +0 -1
  313. package/dist/types/core/settings.d.ts.map +0 -1
  314. package/dist/types/core/settings.js.map +0 -1
  315. package/dist/types/iam/index.d.ts.map +0 -1
  316. package/dist/types/iam/index.js.map +0 -1
  317. package/dist/types/iam/profile.d.ts +0 -19
  318. package/dist/types/iam/profile.d.ts.map +0 -1
  319. package/dist/types/iam/profile_status.d.ts +0 -3
  320. package/dist/types/iam/profile_status.d.ts.map +0 -1
  321. package/dist/types/iam/profile_status.js +0 -10
  322. package/dist/types/iam/profile_status.js.map +0 -1
  323. package/dist/types/iam/subscription.d.ts +0 -23
  324. package/dist/types/iam/subscription.d.ts.map +0 -1
  325. package/dist/types/iam/subscription.js.map +0 -1
  326. package/dist/types/iam/subscription_role.d.ts.map +0 -1
  327. package/dist/types/iam/subscription_role.js.map +0 -1
  328. package/dist/types/iam/subscription_status.d.ts.map +0 -1
  329. package/dist/types/iam/subscription_status.js.map +0 -1
  330. package/dist/types/iam/subscription_tier.d.ts.map +0 -1
  331. package/dist/types/iam/subscription_tier.js.map +0 -1
  332. package/dist/types/iam/user.d.ts.map +0 -1
  333. package/dist/types/iam/user_role.d.ts +0 -5
  334. package/dist/types/iam/user_role.d.ts.map +0 -1
  335. package/dist/types/iam/user_role.js +0 -18
  336. package/dist/types/iam/user_role.js.map +0 -1
  337. package/dist/types/iam/user_status.d.ts +0 -3
  338. package/dist/types/iam/user_status.d.ts.map +0 -1
  339. package/dist/types/iam/user_status.js +0 -10
  340. package/dist/types/iam/user_status.js.map +0 -1
  341. package/dist/types/ingredient/category.d.ts.map +0 -1
  342. package/dist/types/ingredient/category.js.map +0 -1
  343. package/dist/types/ingredient/group.d.ts.map +0 -1
  344. package/dist/types/ingredient/group.js.map +0 -1
  345. package/dist/types/ingredient/index.d.ts.map +0 -1
  346. package/dist/types/ingredient/index.js.map +0 -1
  347. package/dist/types/ingredient/ingredient.d.ts.map +0 -1
  348. package/dist/types/ingredient/ingredient.js.map +0 -1
  349. package/dist/types/ingredient/ingredient_entity.d.ts.map +0 -1
  350. package/dist/types/ingredient/ingredient_entity.js.map +0 -1
  351. package/dist/types/ingredient/ingredient_section.d.ts.map +0 -1
  352. package/dist/types/ingredient/ingredient_section.js.map +0 -1
  353. package/dist/types/ingredient/user_ingredient.d.ts.map +0 -1
  354. package/dist/types/ingredient/user_ingredient.js.map +0 -1
  355. package/dist/types/moderation/index.d.ts +0 -6
  356. package/dist/types/moderation/index.d.ts.map +0 -1
  357. package/dist/types/moderation/index.js +0 -22
  358. package/dist/types/moderation/index.js.map +0 -1
  359. package/dist/types/moderation/moderation.d.ts +0 -37
  360. package/dist/types/moderation/moderation.d.ts.map +0 -1
  361. package/dist/types/moderation/moderation.js +0 -3
  362. package/dist/types/moderation/moderation.js.map +0 -1
  363. package/dist/types/moderation/moderation_status.d.ts +0 -3
  364. package/dist/types/moderation/moderation_status.d.ts.map +0 -1
  365. package/dist/types/moderation/moderation_status.js +0 -9
  366. package/dist/types/moderation/moderation_status.js.map +0 -1
  367. package/dist/types/moderation/priority.d.ts +0 -3
  368. package/dist/types/moderation/priority.d.ts.map +0 -1
  369. package/dist/types/moderation/priority.js +0 -5
  370. package/dist/types/moderation/priority.js.map +0 -1
  371. package/dist/types/moderation/severity.d.ts +0 -3
  372. package/dist/types/moderation/severity.d.ts.map +0 -1
  373. package/dist/types/moderation/severity.js +0 -5
  374. package/dist/types/moderation/severity.js.map +0 -1
  375. package/dist/types/moderation/suggestion_category.d.ts +0 -3
  376. package/dist/types/moderation/suggestion_category.d.ts.map +0 -1
  377. package/dist/types/moderation/suggestion_category.js +0 -11
  378. package/dist/types/moderation/suggestion_category.js.map +0 -1
  379. package/dist/types/recipe/allergen.d.ts.map +0 -1
  380. package/dist/types/recipe/allergen.js.map +0 -1
  381. package/dist/types/recipe/comment.d.ts.map +0 -1
  382. package/dist/types/recipe/cuisine.d.ts +0 -3
  383. package/dist/types/recipe/cuisine.d.ts.map +0 -1
  384. package/dist/types/recipe/cuisine.js +0 -42
  385. package/dist/types/recipe/cuisine.js.map +0 -1
  386. package/dist/types/recipe/dietary_tag.d.ts.map +0 -1
  387. package/dist/types/recipe/dietary_tag.js.map +0 -1
  388. package/dist/types/recipe/difficulty.d.ts +0 -3
  389. package/dist/types/recipe/difficulty.d.ts.map +0 -1
  390. package/dist/types/recipe/difficulty.js.map +0 -1
  391. package/dist/types/recipe/equipment.d.ts +0 -12
  392. package/dist/types/recipe/equipment.d.ts.map +0 -1
  393. package/dist/types/recipe/equipment.js +0 -3
  394. package/dist/types/recipe/equipment.js.map +0 -1
  395. package/dist/types/recipe/filters.d.ts +0 -16
  396. package/dist/types/recipe/filters.d.ts.map +0 -1
  397. package/dist/types/recipe/filters.js +0 -3
  398. package/dist/types/recipe/filters.js.map +0 -1
  399. package/dist/types/recipe/index.d.ts.map +0 -1
  400. package/dist/types/recipe/index.js.map +0 -1
  401. package/dist/types/recipe/ingredient.d.ts +0 -29
  402. package/dist/types/recipe/ingredient.d.ts.map +0 -1
  403. package/dist/types/recipe/ingredient.js +0 -3
  404. package/dist/types/recipe/ingredient.js.map +0 -1
  405. package/dist/types/recipe/instruction.d.ts.map +0 -1
  406. package/dist/types/recipe/instruction.js.map +0 -1
  407. package/dist/types/recipe/meal_type.d.ts +0 -3
  408. package/dist/types/recipe/meal_type.d.ts.map +0 -1
  409. package/dist/types/recipe/meal_type.js.map +0 -1
  410. package/dist/types/recipe/nutrition.d.ts.map +0 -1
  411. package/dist/types/recipe/nutrition.js.map +0 -1
  412. package/dist/types/recipe/recipe.d.ts.map +0 -1
  413. package/dist/types/recipe/recipe.js +0 -3
  414. package/dist/types/recipe/recipe.js.map +0 -1
  415. package/dist/types/recipe/recipe_source.d.ts.map +0 -1
  416. package/dist/types/recipe/recipe_source.js.map +0 -1
  417. package/dist/types/recipe/recipe_status.d.ts +0 -3
  418. package/dist/types/recipe/recipe_status.d.ts.map +0 -1
  419. package/dist/types/recipe/recipe_status.js +0 -11
  420. package/dist/types/recipe/recipe_status.js.map +0 -1
  421. package/dist/types/recipe/spiciness.d.ts.map +0 -1
  422. package/dist/types/recipe/spiciness.js.map +0 -1
  423. package/dist/types/recipe/temperature.d.ts.map +0 -1
  424. package/dist/types/recipe/temperature.js.map +0 -1
  425. package/dist/types/recipe/temperature_unit.d.ts.map +0 -1
  426. package/dist/types/recipe/temperature_unit.js.map +0 -1
  427. package/dist/types/recipe/unit.d.ts.map +0 -1
  428. package/dist/types/recipe/unit.js.map +0 -1
  429. package/dist/types/report/index.d.ts +0 -5
  430. package/dist/types/report/index.d.ts.map +0 -1
  431. package/dist/types/report/index.js.map +0 -1
  432. package/dist/types/report/report.d.ts +0 -27
  433. package/dist/types/report/report.d.ts.map +0 -1
  434. package/dist/types/report/report_priority.d.ts.map +0 -1
  435. package/dist/types/report/report_priority.js.map +0 -1
  436. package/dist/types/report/report_status.d.ts.map +0 -1
  437. package/dist/types/report/report_status.js.map +0 -1
  438. package/dist/types/report/report_target_type.d.ts +0 -3
  439. package/dist/types/report/report_target_type.d.ts.map +0 -1
  440. package/dist/types/report/report_target_type.js +0 -10
  441. package/dist/types/report/report_target_type.js.map +0 -1
  442. package/dist/types/report/report_type.d.ts +0 -3
  443. package/dist/types/report/report_type.d.ts.map +0 -1
  444. package/dist/types/report/report_type.js +0 -12
  445. package/dist/types/report/report_type.js.map +0 -1
  446. package/dist/types/submission/index.d.ts +0 -6
  447. package/dist/types/submission/index.d.ts.map +0 -1
  448. package/dist/types/submission/index.js.map +0 -1
  449. package/dist/types/submission/severity.d.ts +0 -3
  450. package/dist/types/submission/severity.d.ts.map +0 -1
  451. package/dist/types/submission/severity.js +0 -5
  452. package/dist/types/submission/severity.js.map +0 -1
  453. package/dist/types/submission/submission.d.ts +0 -16
  454. package/dist/types/submission/submission.d.ts.map +0 -1
  455. package/dist/types/submission/submission.js.map +0 -1
  456. package/dist/types/submission/submission_status.d.ts +0 -3
  457. package/dist/types/submission/submission_status.d.ts.map +0 -1
  458. package/dist/types/submission/submission_status.js +0 -9
  459. package/dist/types/submission/submission_status.js.map +0 -1
  460. package/dist/types/submission/suggestion.d.ts +0 -9
  461. package/dist/types/submission/suggestion.d.ts.map +0 -1
  462. package/dist/types/submission/suggestion.js +0 -3
  463. package/dist/types/submission/suggestion.js.map +0 -1
  464. package/dist/types/submission/suggestion_category.d.ts +0 -3
  465. package/dist/types/submission/suggestion_category.d.ts.map +0 -1
  466. package/dist/types/submission/suggestion_category.js +0 -11
  467. package/dist/types/submission/suggestion_category.js.map +0 -1
  468. package/src/config/ai.ts +0 -46
  469. package/src/config/common.ts +0 -1
  470. package/src/config/firestore.ts +0 -18
  471. package/src/config/index.ts +0 -6
  472. package/src/config/limits.ts +0 -53
  473. package/src/config/rtdb.ts +0 -7
  474. package/src/config/subscription.ts +0 -19
  475. package/src/types/ai/config.ts +0 -29
  476. package/src/types/ai/index.ts +0 -3
  477. package/src/types/ai/recipe.ts +0 -31
  478. package/src/types/ai/translation.ts +0 -12
  479. package/src/types/core/api.ts +0 -30
  480. package/src/types/core/pagination.ts +0 -20
  481. package/src/types/iam/profile.ts +0 -20
  482. package/src/types/iam/subscription.ts +0 -25
  483. package/src/types/iam/user_role.ts +0 -17
  484. package/src/types/recipe/cuisine.ts +0 -39
  485. package/src/types/recipe/filters.ts +0 -16
  486. package/src/types/report/index.ts +0 -4
  487. package/src/types/report/report.ts +0 -28
  488. package/src/types/report/report_target_type.ts +0 -7
  489. package/src/types/submission/index.ts +0 -5
  490. package/src/types/submission/severity.ts +0 -2
  491. package/src/types/submission/submission.ts +0 -16
  492. package/src/types/submission/submission_status.ts +0 -6
  493. package/src/types/submission/suggestion.ts +0 -9
  494. package/src/types/submission/suggestion_category.ts +0 -8
  495. /package/dist/types/{ingredient → ingredients}/category.d.ts +0 -0
  496. /package/dist/types/{ingredient → ingredients}/category.js +0 -0
  497. /package/dist/types/{ingredient → ingredients}/group.d.ts +0 -0
  498. /package/dist/types/{ingredient → ingredients}/group.js +0 -0
  499. /package/dist/types/{ingredient → ingredients}/index.d.ts +0 -0
  500. /package/dist/types/{ingredient → ingredients}/index.js +0 -0
  501. /package/dist/types/{ingredient → ingredients}/ingredient.js +0 -0
  502. /package/dist/types/{ingredient → ingredients}/ingredient_entity.js +0 -0
  503. /package/dist/types/{ingredient → ingredients}/ingredient_section.d.ts +0 -0
  504. /package/dist/types/{ingredient → ingredients}/ingredient_section.js +0 -0
  505. /package/dist/types/{ingredient → ingredients}/user_ingredient.js +0 -0
  506. /package/dist/types/{recipe → recipes}/allergen.d.ts +0 -0
  507. /package/dist/types/{recipe → recipes}/allergen.js +0 -0
  508. /package/dist/types/{recipe → recipes}/comment.d.ts +0 -0
  509. /package/dist/types/{recipe → recipes}/comment.js +0 -0
  510. /package/dist/types/{recipe → recipes}/dietary_tag.d.ts +0 -0
  511. /package/dist/types/{recipe → recipes}/dietary_tag.js +0 -0
  512. /package/dist/types/{recipe → recipes}/instruction.js +0 -0
  513. /package/dist/types/{recipe → recipes}/nutrition.d.ts +0 -0
  514. /package/dist/types/{recipe → recipes}/nutrition.js +0 -0
  515. /package/dist/types/{ai → recipes}/recipe.js +0 -0
  516. /package/dist/types/{recipe → recipes}/recipe_source.d.ts +0 -0
  517. /package/dist/types/{recipe → recipes}/recipe_source.js +0 -0
  518. /package/dist/types/{recipe → recipes}/temperature.d.ts +0 -0
  519. /package/dist/types/{recipe → recipes}/temperature.js +0 -0
  520. /package/dist/types/{recipe → recipes}/temperature_unit.d.ts +0 -0
  521. /package/dist/types/{recipe → recipes}/temperature_unit.js +0 -0
  522. /package/dist/types/{recipe → recipes}/unit.d.ts +0 -0
  523. /package/dist/types/{recipe → recipes}/unit.js +0 -0
  524. /package/dist/types/{report → reports}/report.js +0 -0
  525. /package/dist/types/{submission → reports}/submission.js +0 -0
  526. /package/dist/types/{core → settings}/settings.js +0 -0
  527. /package/dist/types/{iam → subscriptions}/subscription.js +0 -0
  528. /package/dist/types/{iam → subscriptions}/subscription_role.d.ts +0 -0
  529. /package/dist/types/{iam → subscriptions}/subscription_role.js +0 -0
  530. /package/dist/types/{iam → subscriptions}/subscription_tier.d.ts +0 -0
  531. /package/dist/types/{iam → subscriptions}/subscription_tier.js +0 -0
  532. /package/dist/types/{iam → users}/profile.js +0 -0
  533. /package/dist/types/{iam → users}/user.js +0 -0
package/README.md CHANGED
@@ -1,80 +1,80 @@
1
- # @cravery/core
2
-
3
- [![Cravery](https://img.shields.io/badge/Cravery-Web-02569B?style=for-the-badge)](https://cravery.app)
4
-
5
- Core SDK for Cravery backend services.
6
-
7
- ## Installation
8
-
9
- ```bash
10
- npm install @cravery/core
11
- ```
12
-
13
- ### Peer Dependencies
14
-
15
- This package requires the following peer dependencies:
16
-
17
- ```bash
18
- npm install firebase-admin firebase-functions
19
- ```
20
-
21
- ## Usage
22
-
23
- ```typescript
24
- // Import everything
25
- import { ... } from "@cravery/core";
26
-
27
- // Import types only
28
- import { ... } from "@cravery/core";
29
-
30
- // Import config only
31
- import { ... } from "@cravery/core/config";
32
- ```
33
-
34
- ## Package Structure
35
-
36
- ### Types (`types/`)
37
-
38
- TypeScript type definitions:
39
-
40
- - **enums/** - Domain enums
41
- - `allergen` - Food allergens
42
- - `cuisine` - Cuisine types
43
- - `dietary_tag` - Dietary restrictions
44
- - `difficulty` - Recipe difficulty levels
45
- - `meal_type` - Meal categories
46
- - `spiciness` - Spice levels
47
- - `unit` - Measurement units
48
- - `locale` - Supported locales
49
- - And more...
50
-
51
- - **ai/** - AI-related types
52
- - `config` - AI configuration
53
- - `filters` - AI filter options
54
- - `recipe` - AI recipe generation types
55
- - `translation` - Translation types
56
- - `flow` - AI flow types
57
- - And more...
58
-
59
- - **recipe/** - Recipe domain types
60
- - `recipe` - Core recipe type
61
- - `ingredient` - Ingredient definitions
62
- - `instruction` - Cooking instructions
63
- - `equipment` - Kitchen equipment
64
- - `nutrition` - Nutritional information
65
- - And more...
66
-
67
- - **iam/** - Identity types
68
- - `user` - User entity
69
- - `profile` - User profile
70
- - `subscription` - Subscription details
71
-
72
- ### Config (`config/`)
73
-
74
- Application configuration:
75
-
76
- - `ai` - AI model and provider settings
77
- - `collections` - Firestore collection paths
78
- - `common` - Common configuration values
79
- - `limits` - Rate limits and quotas
80
- - `subscription` - Subscription tier configurations
1
+ # @cravery/core
2
+
3
+ [![Cravery](https://img.shields.io/badge/Cravery-Web-02569B?style=for-the-badge)](https://cravery.app)
4
+
5
+ Core SDK for Cravery backend services.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @cravery/core
11
+ ```
12
+
13
+ ### Peer Dependencies
14
+
15
+ This package requires the following peer dependencies:
16
+
17
+ ```bash
18
+ npm install firebase-admin firebase-functions
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ ```typescript
24
+ // Import everything
25
+ import { ... } from "@cravery/core";
26
+
27
+ // Import types only
28
+ import { ... } from "@cravery/core";
29
+
30
+ // Import config only
31
+ import { ... } from "@cravery/core/config";
32
+ ```
33
+
34
+ ## Package Structure
35
+
36
+ ### Types (`types/`)
37
+
38
+ TypeScript type definitions:
39
+
40
+ - **enums/** - Domain enums
41
+ - `allergen` - Food allergens
42
+ - `cuisine` - Cuisine types
43
+ - `dietary_tag` - Dietary restrictions
44
+ - `difficulty` - Recipe difficulty levels
45
+ - `meal_type` - Meal categories
46
+ - `spiciness` - Spice levels
47
+ - `unit` - Measurement units
48
+ - `locale` - Supported locales
49
+ - And more...
50
+
51
+ - **ai/** - AI-related types
52
+ - `config` - AI configuration
53
+ - `filters` - AI filter options
54
+ - `recipe` - AI recipe generation types
55
+ - `translation` - Translation types
56
+ - `flow` - AI flow types
57
+ - And more...
58
+
59
+ - **recipe/** - Recipe domain types
60
+ - `recipe` - Core recipe type
61
+ - `ingredient` - Ingredient definitions
62
+ - `instruction` - Cooking instructions
63
+ - `equipment` - Kitchen equipment
64
+ - `nutrition` - Nutritional information
65
+ - And more...
66
+
67
+ - **iam/** - Identity types
68
+ - `user` - User entity
69
+ - `profile` - User profile
70
+ - `subscription` - Subscription details
71
+
72
+ ### Config (`config/`)
73
+
74
+ Application configuration:
75
+
76
+ - `ai` - AI model and provider settings
77
+ - `collections` - Firestore collection paths
78
+ - `common` - Common configuration values
79
+ - `limits` - Rate limits and quotas
80
+ - `subscription` - Subscription tier configurations
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- export * from "./config";
2
1
  export * from "./types";
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -14,6 +14,5 @@ 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("./config"), exports);
18
17
  __exportStar(require("./types"), exports);
19
18
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -1,10 +1,12 @@
1
1
  import { EntityStatus } from "./entity_status";
2
2
  import { Timestamp } from "./timestamp";
3
- export interface Entity {
3
+ export interface EntityBase {
4
4
  id: string;
5
5
  createdAt: Timestamp;
6
+ updatedAt: Timestamp;
6
7
  deletedAt?: Timestamp;
8
+ }
9
+ export interface Entity extends EntityBase {
7
10
  status: EntityStatus;
8
- updatedAt: Timestamp;
9
11
  }
10
12
  //# sourceMappingURL=entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/types/core/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/types/core/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,MAAO,SAAQ,UAAU;IACxC,MAAM,EAAE,YAAY,CAAC;CACtB"}
@@ -2,14 +2,12 @@ export declare const APP_ERROR_CODE_VALUES: readonly ["bad_request", "conflict",
2
2
  export type AppErrorCode = (typeof APP_ERROR_CODE_VALUES)[number];
3
3
  export declare class AppError extends Error {
4
4
  readonly code: AppErrorCode;
5
- readonly statusCode: number;
6
5
  readonly context?: Record<string, unknown>;
7
- constructor(code: AppErrorCode, message: string, statusCode?: number, context?: Record<string, unknown>);
6
+ constructor(code: AppErrorCode, message: string, context?: Record<string, unknown>);
8
7
  toJSON(): {
9
8
  name: string;
10
9
  code: "bad_request" | "conflict" | "daily_limit_reached" | "forbidden" | "internal_error" | "low_confidence" | "monthly_limit_reached" | "not_found" | "no_recipe_found" | "unauthorized" | "unsafe_content" | "validation_error";
11
10
  message: string;
12
- statusCode: number;
13
11
  context: Record<string, unknown> | undefined;
14
12
  };
15
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/types/core/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,6NAaxB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,qBAAa,QAAS,SAAQ,KAAK;IACjC,SAAgB,IAAI,EAAE,YAAY,CAAC;IACnC,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAGhD,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,MAAM,EACf,UAAU,GAAE,MAAY,EACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAanC,MAAM;;;;;;;CASP;AAED,qBAAa,eAAgB,SAAQ,QAAQ;gBAC/B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI/D;AAED,qBAAa,aAAc,SAAQ,QAAQ;gBAC7B,OAAO,EAA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AQ;gBAClC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI9D;AAED,qBAAa,kBAAmB,SAAQ,QAAQ;gBAClC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAQlE;AAED,qBAAa,kBAAmB,SAAQ,QAAQ;gBAClC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI9C"}
@@ -16,11 +16,10 @@ exports.APP_ERROR_CODE_VALUES = [
16
16
  "validation_error",
17
17
  ];
18
18
  class AppError extends Error {
19
- constructor(code, message, statusCode = 500, context) {
19
+ constructor(code, message, context) {
20
20
  super(message);
21
21
  this.name = "AppError";
22
22
  this.code = code;
23
- this.statusCode = statusCode;
24
23
  this.context = context;
25
24
  if (Error.captureStackTrace) {
26
25
  Error.captureStackTrace(this, AppError);
@@ -31,7 +30,6 @@ class AppError extends Error {
31
30
  name: this.name,
32
31
  code: this.code,
33
32
  message: this.message,
34
- statusCode: this.statusCode,
35
33
  context: this.context,
36
34
  };
37
35
  }
@@ -39,70 +37,70 @@ class AppError extends Error {
39
37
  exports.AppError = AppError;
40
38
  class ValidationError extends AppError {
41
39
  constructor(message, context) {
42
- super("validation_error", message, 400, context);
40
+ super("validation_error", message, context);
43
41
  this.name = "ValidationError";
44
42
  }
45
43
  }
46
44
  exports.ValidationError = ValidationError;
47
45
  class NotFoundError extends AppError {
48
46
  constructor(message, context) {
49
- super("not_found", message, 404, context);
47
+ super("not_found", message, context);
50
48
  this.name = "NotFoundError";
51
49
  }
52
50
  }
53
51
  exports.NotFoundError = NotFoundError;
54
52
  class UnauthorizedError extends AppError {
55
53
  constructor(message, context) {
56
- super("unauthorized", message, 401, context);
54
+ super("unauthorized", message, context);
57
55
  this.name = "UnauthorizedError";
58
56
  }
59
57
  }
60
58
  exports.UnauthorizedError = UnauthorizedError;
61
59
  class ForbiddenError extends AppError {
62
60
  constructor(message, context) {
63
- super("forbidden", message, 403, context);
61
+ super("forbidden", message, context);
64
62
  this.name = "ForbiddenError";
65
63
  }
66
64
  }
67
65
  exports.ForbiddenError = ForbiddenError;
68
66
  class ConflictError extends AppError {
69
67
  constructor(message, context) {
70
- super("conflict", message, 409, context);
68
+ super("conflict", message, context);
71
69
  this.name = "ConflictError";
72
70
  }
73
71
  }
74
72
  exports.ConflictError = ConflictError;
75
73
  class DailyLimitError extends AppError {
76
74
  constructor(message, context) {
77
- super("daily_limit_reached", message, 429, context);
75
+ super("daily_limit_reached", message, context);
78
76
  this.name = "DailyLimitError";
79
77
  }
80
78
  }
81
79
  exports.DailyLimitError = DailyLimitError;
82
80
  class MonthlyLimitError extends AppError {
83
81
  constructor(message, context) {
84
- super("monthly_limit_reached", message, 429, context);
82
+ super("monthly_limit_reached", message, context);
85
83
  this.name = "MonthlyLimitError";
86
84
  }
87
85
  }
88
86
  exports.MonthlyLimitError = MonthlyLimitError;
89
87
  class NoRecipeFoundError extends AppError {
90
88
  constructor(reason, context) {
91
- super("no_recipe_found", reason, 400, context);
89
+ super("no_recipe_found", reason, context);
92
90
  this.name = "NoRecipeFoundError";
93
91
  }
94
92
  }
95
93
  exports.NoRecipeFoundError = NoRecipeFoundError;
96
94
  class LowConfidenceError extends AppError {
97
95
  constructor(confidence, context) {
98
- super("low_confidence", "We couldn't extract a complete recipe. Try a clearer image or more detailed text.", 400, Object.assign(Object.assign({}, context), { confidence }));
96
+ super("low_confidence", "We couldn't extract a complete recipe. Try a clearer image or more detailed text.", Object.assign(Object.assign({}, context), { confidence }));
99
97
  this.name = "LowConfidenceError";
100
98
  }
101
99
  }
102
100
  exports.LowConfidenceError = LowConfidenceError;
103
101
  class UnsafeContentError extends AppError {
104
102
  constructor(context) {
105
- super("unsafe_content", "This content cannot be processed.", 400, context);
103
+ super("unsafe_content", "This content cannot be processed.", context);
106
104
  this.name = "UnsafeContentError";
107
105
  }
108
106
  }
@@ -1 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D,sCAKC;AAED,MAAa,eAAgB,SAAQ,QAAQ;IAC3C,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,qBAAqB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC/C,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AALD,0CAKC;AAED,MAAa,iBAAkB,SAAQ,QAAQ;IAC7C,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,uBAAuB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AALD,8CAKC;AAED,MAAa,kBAAmB,SAAQ,QAAQ;IAC9C,YAAY,MAAc,EAAE,OAAiC;QAC3D,KAAK,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AALD,gDAKC;AAED,MAAa,kBAAmB,SAAQ,QAAQ;IAC9C,YAAY,UAAkB,EAAE,OAAiC;QAC/D,KAAK,CACH,gBAAgB,EAChB,mFAAmF,kCAC9E,OAAO,KAAE,UAAU,IACzB,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AATD,gDASC;AAED,MAAa,kBAAmB,SAAQ,QAAQ;IAC9C,YAAY,OAAiC;QAC3C,KAAK,CAAC,gBAAgB,EAAE,mCAAmC,EAAE,OAAO,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AALD,gDAKC"}
@@ -1,12 +1,9 @@
1
- export * from "./api";
2
1
  export * from "./entity";
3
2
  export * from "./entity_status";
4
3
  export * from "./errors";
5
4
  export * from "./locale";
6
5
  export * from "./measurement_system";
7
- export * from "./pagination";
8
6
  export * from "./price";
9
- export * from "./settings";
10
7
  export * from "./theme";
11
8
  export * from "./timestamp";
12
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
@@ -14,15 +14,12 @@ 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("./api"), exports);
18
17
  __exportStar(require("./entity"), exports);
19
18
  __exportStar(require("./entity_status"), exports);
20
19
  __exportStar(require("./errors"), exports);
21
20
  __exportStar(require("./locale"), exports);
22
21
  __exportStar(require("./measurement_system"), exports);
23
- __exportStar(require("./pagination"), exports);
24
22
  __exportStar(require("./price"), exports);
25
- __exportStar(require("./settings"), exports);
26
23
  __exportStar(require("./theme"), exports);
27
24
  __exportStar(require("./timestamp"), exports);
28
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,kDAAgC;AAChC,2CAAyB;AACzB,2CAAyB;AACzB,uDAAqC;AACrC,+CAA6B;AAC7B,0CAAwB;AACxB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,kDAAgC;AAChC,2CAAyB;AACzB,2CAAyB;AACzB,uDAAqC;AACrC,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B"}
@@ -1,3 +1,3 @@
1
- export declare const LOCALE_VALUES: readonly ["en", "ar", "es", "fr", "ru"];
1
+ export declare const LOCALE_VALUES: readonly ["en", "ar", "es"];
2
2
  export type Locale = (typeof LOCALE_VALUES)[number];
3
3
  //# sourceMappingURL=locale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/types/core/locale.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,yCAA0C,CAAC;AACrE,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/types/core/locale.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,6BAA8B,CAAC;AACzD,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LOCALE_VALUES = void 0;
4
- exports.LOCALE_VALUES = ["en", "ar", "es", "fr", "ru"];
4
+ exports.LOCALE_VALUES = ["en", "ar", "es"];
5
5
  //# sourceMappingURL=locale.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locale.js","sourceRoot":"","sources":["../../../src/types/core/locale.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC"}
1
+ {"version":3,"file":"locale.js","sourceRoot":"","sources":["../../../src/types/core/locale.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC"}
@@ -1,3 +1,3 @@
1
- export declare const MEASUREMENT_SYSTEM_VALUES: readonly ["metric", "imperial"];
1
+ export declare const MEASUREMENT_SYSTEM_VALUES: readonly ["imperial", "metric"];
2
2
  export type MeasurementSystem = (typeof MEASUREMENT_SYSTEM_VALUES)[number];
3
3
  //# sourceMappingURL=measurement_system.d.ts.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MEASUREMENT_SYSTEM_VALUES = void 0;
4
- exports.MEASUREMENT_SYSTEM_VALUES = ["metric", "imperial"];
4
+ exports.MEASUREMENT_SYSTEM_VALUES = ["imperial", "metric"];
5
5
  //# sourceMappingURL=measurement_system.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"measurement_system.js","sourceRoot":"","sources":["../../../src/types/core/measurement_system.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAU,CAAC"}
1
+ {"version":3,"file":"measurement_system.js","sourceRoot":"","sources":["../../../src/types/core/measurement_system.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAU,CAAC"}
@@ -1,3 +1,3 @@
1
- export declare const THEME_VALUES: readonly ["light", "dark", "system"];
1
+ export declare const THEME_VALUES: readonly ["dark", "light", "system"];
2
2
  export type Theme = (typeof THEME_VALUES)[number];
3
3
  //# sourceMappingURL=theme.d.ts.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.THEME_VALUES = void 0;
4
- exports.THEME_VALUES = ["light", "dark", "system"];
4
+ exports.THEME_VALUES = ["dark", "light", "system"];
5
5
  //# sourceMappingURL=theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/types/core/theme.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC"}
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/types/core/theme.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC"}
@@ -1,11 +1,11 @@
1
1
  export interface EquipmentMeta {
2
- required?: boolean;
3
2
  slug: string;
3
+ optional?: boolean;
4
4
  }
5
5
  export interface EquipmentContent {
6
6
  name: string;
7
- notes?: string;
8
7
  slug: string;
8
+ notes?: string;
9
9
  }
10
10
  export interface Equipment extends EquipmentMeta, EquipmentContent {
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/equipment/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
+ {"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/equipment/equipment.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,gBAAgB;CAAG"}
@@ -2,9 +2,9 @@ import { Entity, Price } from "../core";
2
2
  import { EquipmentCategory } from "./category";
3
3
  export interface EquipmentEntityMeta extends Entity {
4
4
  category: EquipmentCategory;
5
- imageUrl?: string;
6
- price?: Price;
7
5
  slug: string;
6
+ imageUrl?: string | null;
7
+ price?: Price;
8
8
  }
9
9
  export interface EquipmentEntityContent {
10
10
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"equipment_entity.d.ts","sourceRoot":"","sources":["../../../src/types/equipment/equipment_entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,mBAAoB,SAAQ,MAAM;IACjD,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eACf,SAAQ,mBAAmB,EAAE,sBAAsB;CAAG"}
1
+ {"version":3,"file":"equipment_entity.d.ts","sourceRoot":"","sources":["../../../src/types/equipment/equipment_entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,mBAAoB,SAAQ,MAAM;IACjD,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eACf,SAAQ,mBAAmB,EAAE,sBAAsB;CAAG"}
@@ -2,8 +2,8 @@ import { Entity, Price } from "../core";
2
2
  import { EquipmentCategory } from "./category";
3
3
  export interface UserEquipment extends Entity {
4
4
  category: EquipmentCategory;
5
+ slug: string;
5
6
  price?: Price;
6
7
  quantity?: number;
7
- slug: string;
8
8
  }
9
9
  //# sourceMappingURL=user_equipment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user_equipment.d.ts","sourceRoot":"","sources":["../../../src/types/equipment/user_equipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,aAAc,SAAQ,MAAM;IAC3C,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"user_equipment.d.ts","sourceRoot":"","sources":["../../../src/types/equipment/user_equipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,aAAc,SAAQ,MAAM;IAC3C,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,9 +1,9 @@
1
- export * from "./ai";
2
1
  export * from "./core";
3
2
  export * from "./equipment";
4
- export * from "./iam";
5
- export * from "./ingredient";
6
- export * from "./recipe";
7
- export * from "./report";
8
- export * from "./submission";
3
+ export * from "./ingredients";
4
+ export * from "./recipes";
5
+ export * from "./reports";
6
+ export * from "./settings";
7
+ export * from "./subscriptions";
8
+ export * from "./users";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
@@ -14,12 +14,12 @@ 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("./ai"), exports);
18
17
  __exportStar(require("./core"), exports);
19
18
  __exportStar(require("./equipment"), exports);
20
- __exportStar(require("./iam"), exports);
21
- __exportStar(require("./ingredient"), exports);
22
- __exportStar(require("./recipe"), exports);
23
- __exportStar(require("./report"), exports);
24
- __exportStar(require("./submission"), exports);
19
+ __exportStar(require("./ingredients"), exports);
20
+ __exportStar(require("./recipes"), exports);
21
+ __exportStar(require("./reports"), exports);
22
+ __exportStar(require("./settings"), exports);
23
+ __exportStar(require("./subscriptions"), exports);
24
+ __exportStar(require("./users"), exports);
25
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B;AAC3B,kDAAgC;AAChC,0CAAwB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/types/ingredients/category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,qSA0B7B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"category.js","sourceRoot":"","sources":["../../../src/types/ingredients/category.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,QAAQ;IACR,YAAY;IACZ,MAAM;IACN,SAAS;IACT,SAAS;IACT,OAAO;IACP,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,YAAY;IACZ,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,WAAW;IACX,QAAQ;IACR,eAAe;IACf,WAAW;IACX,MAAM;CACE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/types/ingredients/group.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,8DAM1B,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/types/ingredients/group.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACrC,SAAS;IACT,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,OAAO;CACC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/ingredients/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/ingredients/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC"}
@@ -1,14 +1,14 @@
1
- import { Unit } from "../recipe";
1
+ import { Unit } from "../recipes";
2
2
  export interface IngredientMeta {
3
+ slug: string;
3
4
  quantity?: number;
4
5
  required?: boolean;
5
- slug: string;
6
6
  unit?: Unit;
7
7
  }
8
8
  export interface IngredientContent {
9
9
  name: string;
10
- notes?: string;
11
10
  slug: string;
11
+ notes?: string;
12
12
  }
13
13
  export interface Ingredient extends IngredientMeta, IngredientContent {
14
14
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/ingredients/ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc,EAAE,iBAAiB;CAAG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/ingredients/ingredient.ts"],"names":[],"mappings":""}