@cravery/core 0.0.57 → 0.0.59

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 +1 -1
  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 +2 -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 +4 -3
  153. package/dist/types/subscriptions/index.d.ts.map +1 -0
  154. package/dist/types/{iam → subscriptions}/index.js +4 -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 -21
  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 +8 -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
@@ -1,8 +0,0 @@
1
- export declare const RTDB_PATHS: {
2
- AILimits: string;
3
- AIUsage: string;
4
- MonitoringErrors: string;
5
- MonitoringMetrics: string;
6
- RecipeStats: string;
7
- };
8
- //# sourceMappingURL=rtdb.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rtdb.d.ts","sourceRoot":"","sources":["../../src/config/rtdb.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RTDB_PATHS = void 0;
4
- exports.RTDB_PATHS = {
5
- AILimits: "ai/limits",
6
- AIUsage: "ai/usage",
7
- MonitoringErrors: "monitoring/errors",
8
- MonitoringMetrics: "monitoring/metrics",
9
- RecipeStats: "stats/recipes",
10
- };
11
- //# sourceMappingURL=rtdb.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rtdb.js","sourceRoot":"","sources":["../../src/config/rtdb.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,UAAU;IACnB,gBAAgB,EAAE,mBAAmB;IACrC,iBAAiB,EAAE,oBAAoB;IACvC,WAAW,EAAE,eAAe;CAC7B,CAAC"}
@@ -1,4 +0,0 @@
1
- import { SubscriptionCost, SubscriptionTier } from "../types";
2
- export declare const MAX_MEMBERS_FAMILY_PLAN = 4;
3
- export declare const SUBSCRIPTIONCOSTS: Record<Exclude<SubscriptionTier, "free">, SubscriptionCost>;
4
- //# sourceMappingURL=subscription.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/config/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE9D,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,eAAO,MAAM,iBAAiB,EAAE,MAAM,CACpC,OAAO,CAAC,gBAAgB,EAAE,MAAM,CAAC,EACjC,gBAAgB,CAYjB,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SUBSCRIPTIONCOSTS = exports.MAX_MEMBERS_FAMILY_PLAN = void 0;
4
- exports.MAX_MEMBERS_FAMILY_PLAN = 4;
5
- exports.SUBSCRIPTIONCOSTS = {
6
- pro: {
7
- currency: "USD",
8
- monthly: 12.99,
9
- yearly: 99.99,
10
- },
11
- family: {
12
- currency: "USD",
13
- monthly: 22.99,
14
- yearly: 179.99,
15
- },
16
- };
17
- //# sourceMappingURL=subscription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../src/config/subscription.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG,CAAC,CAAC;AAE5B,QAAA,iBAAiB,GAG1B;IACF,GAAG,EAAE;QACH,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,KAAK;KACd;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,MAAM;KACf;CACF,CAAC"}
@@ -1,21 +0,0 @@
1
- /**
2
- * AI model configuration, costs are in USD:
3
- * - multimodal: cost per 1,000,000 input/output tokens
4
- * - image: cost per image (stored in cost.output)
5
- * - embedding: cost per 1,000 input tokens
6
- */
7
- export type AIModel = "Gemini3Flash" | "Gemini25Pro" | "Gemini25Flash" | "Gemini25FlashLite" | "Imagen4Fast" | "GeminiEmbedding001";
8
- export type AIModelType = "multimodal" | "image" | "embedding";
9
- export interface AIModelCost {
10
- input: number;
11
- output: number;
12
- }
13
- export interface AIModelConfig {
14
- id: string;
15
- alias: string;
16
- cost: AIModelCost;
17
- name: string;
18
- type: AIModelType;
19
- }
20
- export type AIConfig = Record<AIModel, AIModelConfig>;
21
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/types/ai/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GACf,cAAc,GACd,aAAa,GACb,eAAe,GACf,mBAAmB,GACnB,aAAa,GACb,oBAAoB,CAAC;AACzB,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,WAAW,CAAC;AAE/D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/types/ai/config.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export * from "./config";
2
- export * from "./recipe";
3
- export * from "./translation";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/ai/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/ai/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,gDAA8B"}
@@ -1,22 +0,0 @@
1
- import { Equipment } from "../equipment";
2
- import { IngredientSection } from "../ingredient";
3
- import { Allergen, Cuisine, DietaryTag, Difficulty, Instruction, MealType, Nutrition, Spiciness } from "../recipe";
4
- export interface AIRecipe {
5
- allergens: Allergen[];
6
- confidence: number;
7
- cuisine: Cuisine;
8
- description: string;
9
- dietaryTags: DietaryTag[];
10
- difficulty: Difficulty;
11
- equipment?: Equipment[];
12
- ingredientSections: IngredientSection[];
13
- instructions: Instruction[];
14
- mealTypes: MealType[];
15
- nutrition?: Nutrition;
16
- servings: number;
17
- spiciness: Spiciness;
18
- time: number;
19
- tips?: string[];
20
- title: string;
21
- }
22
- //# sourceMappingURL=recipe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,WAAW,EACX,QAAQ,EACR,SAAS,EACT,SAAS,EACV,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC;IACxB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,12 +0,0 @@
1
- import { EquipmentContent } from "../equipment";
2
- import { IngredientSectionContent } from "../ingredient";
3
- import { InstructionContent } from "../recipe";
4
- export interface AIRecipeTranslation {
5
- description: string;
6
- equipment?: EquipmentContent[];
7
- ingredientSections: IngredientSectionContent[];
8
- instructions: InstructionContent[];
9
- tips?: string[];
10
- title: string;
11
- }
12
- //# sourceMappingURL=translation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,kBAAkB,EAAE,wBAAwB,EAAE,CAAC;IAC/C,YAAY,EAAE,kBAAkB,EAAE,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- export interface ApiSuccessResponse<T> {
2
- success: true;
3
- data: T;
4
- }
5
- export interface ApiErrorResponse {
6
- success: false;
7
- error: {
8
- code: string;
9
- message: string;
10
- details?: unknown;
11
- };
12
- }
13
- export type ApiResponse<T> = ApiSuccessResponse<T> | ApiErrorResponse;
14
- export declare function success<T>(data: T): ApiSuccessResponse<T>;
15
- export declare function failure(code: string, message: string, details?: unknown): ApiErrorResponse;
16
- //# sourceMappingURL=api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/types/core/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,CAAC,CAAC;CACT;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAEtE,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAEzD;AAED,wBAAgB,OAAO,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,gBAAgB,CAKlB"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.success = success;
4
- exports.failure = failure;
5
- function success(data) {
6
- return { success: true, data };
7
- }
8
- function failure(code, message, details) {
9
- return {
10
- success: false,
11
- error: { code, message, details },
12
- };
13
- }
14
- //# sourceMappingURL=api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/types/core/api.ts"],"names":[],"mappings":";;AAgBA,0BAEC;AAED,0BASC;AAbD,SAAgB,OAAO,CAAI,IAAO;IAChC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACjC,CAAC;AAED,SAAgB,OAAO,CACrB,IAAY,EACZ,OAAe,EACf,OAAiB;IAEjB,OAAO;QACL,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE;KAClC,CAAC;AACJ,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Entity } from "./entity";
2
- export interface Asset extends Entity {
3
- imageUrl?: string;
4
- name: string;
5
- }
6
- //# sourceMappingURL=asset.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/types/core/asset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,KAAM,SAAQ,MAAM;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"asset.js","sourceRoot":"","sources":["../../../src/types/core/asset.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- export interface CursorData {
2
- sortValue: number;
3
- id: string;
4
- }
5
- export type PaginationDirection = "forward" | "backward";
6
- export interface CursorPaginationParams {
7
- limit?: number;
8
- cursor?: string;
9
- direction?: PaginationDirection;
10
- }
11
- export interface CursorPaginatedResult<T> {
12
- data: T[];
13
- startCursor: string | null;
14
- endCursor: string | null;
15
- hasNextPage: boolean;
16
- hasPreviousPage: boolean;
17
- }
18
- //# sourceMappingURL=pagination.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/types/core/pagination.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,UAAU,CAAC;AAEzD,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;CAC1B"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=pagination.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/types/core/pagination.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/types/core/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,SAAS,EACT,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,QAAS,SAAQ,MAAM;IACtC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,aAAa,EAAE,oBAAoB,CAAC;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,EAAE,eAAe,CAAC;IACjC,KAAK,EAAE,KAAK,CAAC;CACd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/types/core/settings.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/iam/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/iam/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,sDAAoC;AACpC,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B;AAC/B,8CAA4B;AAC5B,yCAAuB"}
@@ -1,19 +0,0 @@
1
- import { Entity } from "../core";
2
- export interface Profile extends Entity {
3
- bio?: string;
4
- email: string;
5
- heroUrl?: string;
6
- imageUrl?: string;
7
- name: string;
8
- public: boolean;
9
- verified: boolean;
10
- }
11
- export interface ProfileStats {
12
- followers: number;
13
- following: number;
14
- likes: number;
15
- recipes: number;
16
- saves: number;
17
- updatedAt: number;
18
- }
19
- //# sourceMappingURL=profile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/types/iam/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,MAAM,WAAW,OAAQ,SAAQ,MAAM;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -1,3 +0,0 @@
1
- export declare const PROFILE_STATUS_VALUES: readonly ["active", "deleted", "pending", "suspended"];
2
- export type ProfileStatus = (typeof PROFILE_STATUS_VALUES)[number];
3
- //# sourceMappingURL=profile_status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profile_status.d.ts","sourceRoot":"","sources":["../../../src/types/iam/profile_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,wDAKxB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PROFILE_STATUS_VALUES = void 0;
4
- exports.PROFILE_STATUS_VALUES = [
5
- "active",
6
- "deleted",
7
- "pending",
8
- "suspended",
9
- ];
10
- //# sourceMappingURL=profile_status.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profile_status.js","sourceRoot":"","sources":["../../../src/types/iam/profile_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC,QAAQ;IACR,SAAS;IACT,SAAS;IACT,WAAW;CACH,CAAC"}
@@ -1,23 +0,0 @@
1
- import { Entity, Timestamp } from "../core";
2
- import { SubscriptionRole } from "./subscription_role";
3
- import { SubscriptionStatus } from "./subscription_status";
4
- import { SubscriptionTier } from "./subscription_tier";
5
- export interface Member {
6
- userId: string;
7
- role: SubscriptionRole;
8
- status: SubscriptionStatus;
9
- invitedAt: Timestamp;
10
- joinedAt?: Timestamp;
11
- }
12
- export interface Subscription extends Entity {
13
- expiresAt: Timestamp;
14
- members: Member[];
15
- providerId: string;
16
- tier: SubscriptionTier;
17
- }
18
- export interface SubscriptionCost {
19
- currency: string;
20
- monthly: number;
21
- yearly: number;
22
- }
23
- //# sourceMappingURL=subscription.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription_role.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription_role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,8BAA+B,CAAC;AACrE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription_role.js","sourceRoot":"","sources":["../../../src/types/iam/subscription_role.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription_status.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,kEAM7B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription_status.js","sourceRoot":"","sources":["../../../src/types/iam/subscription_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,UAAU;CACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription_tier.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription_tier.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,oCAAqC,CAAC;AAC3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription_tier.js","sourceRoot":"","sources":["../../../src/types/iam/subscription_tier.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,WAAW,IAAK,SAAQ,MAAM;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;CACnB"}
@@ -1,5 +0,0 @@
1
- export declare const USER_ROLE_VALUES: readonly ["admin", "developer", "moderator", "translator", "user", "guest"];
2
- export type UserRole = (typeof USER_ROLE_VALUES)[number];
3
- export declare const PRIVILEGED_USER_ROLES: UserRole[];
4
- export type PrivilegedUserRole = (typeof PRIVILEGED_USER_ROLES)[number];
5
- //# sourceMappingURL=user_role.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user_role.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user_role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,6EAOnB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,qBAAqB,EAAE,QAAQ,EAK3C,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PRIVILEGED_USER_ROLES = exports.USER_ROLE_VALUES = void 0;
4
- exports.USER_ROLE_VALUES = [
5
- "admin",
6
- "developer",
7
- "moderator",
8
- "translator",
9
- "user",
10
- "guest",
11
- ];
12
- exports.PRIVILEGED_USER_ROLES = [
13
- "admin",
14
- "developer",
15
- "moderator",
16
- "translator",
17
- ];
18
- //# sourceMappingURL=user_role.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user_role.js","sourceRoot":"","sources":["../../../src/types/iam/user_role.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,OAAO;IACP,WAAW;IACX,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;CACC,CAAC;AAGE,QAAA,qBAAqB,GAAe;IAC/C,OAAO;IACP,WAAW;IACX,WAAW;IACX,YAAY;CACb,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const USER_STATUS_VALUES: readonly ["active", "deleted", "pending", "suspended"];
2
- export type UserStatus = (typeof USER_STATUS_VALUES)[number];
3
- //# sourceMappingURL=user_status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user_status.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,wDAKrB,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USER_STATUS_VALUES = void 0;
4
- exports.USER_STATUS_VALUES = [
5
- "active",
6
- "deleted",
7
- "pending",
8
- "suspended",
9
- ];
10
- //# sourceMappingURL=user_status.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user_status.js","sourceRoot":"","sources":["../../../src/types/iam/user_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC,QAAQ;IACR,SAAS;IACT,SAAS;IACT,WAAW;CACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,qSA0B7B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"category.js","sourceRoot":"","sources":["../../../src/types/ingredient/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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/group.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,8DAM1B,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/types/ingredient/group.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACrC,SAAS;IACT,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,OAAO;CACC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/ingredient/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc,EAAE,iBAAiB;CAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ingredient_entity.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient_entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,oBAAqB,SAAQ,MAAM;IAClD,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBACf,SAAQ,oBAAoB,EAAE,uBAAuB;CAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ingredient_entity.js","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient_entity.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ingredient_section.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient_section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7E,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ingredient_section.js","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient_section.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"user_ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/user_ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,cAAe,SAAQ,MAAM;IAC5C,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,CAAC;CACb"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"user_ingredient.js","sourceRoot":"","sources":["../../../src/types/ingredient/user_ingredient.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- export * from "./moderation_status";
2
- export * from "./moderation";
3
- export * from "./priority";
4
- export * from "./severity";
5
- export * from "./suggestion_category";
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC"}
@@ -1,22 +0,0 @@
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("./moderation_status"), exports);
18
- __exportStar(require("./moderation"), exports);
19
- __exportStar(require("./priority"), exports);
20
- __exportStar(require("./severity"), exports);
21
- __exportStar(require("./suggestion_category"), exports);
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/moderation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B;AAC7B,6CAA2B;AAC3B,6CAA2B;AAC3B,wDAAsC"}
@@ -1,37 +0,0 @@
1
- import { Entity, Locale, Timestamp } from "../core";
2
- import { ModerationStatus } from "./moderation_status";
3
- import { Priority } from "./priority";
4
- import { Severity } from "./severity";
5
- import { SuggestionCategory } from "./suggestion_category";
6
- export interface ModerationSuggestion {
7
- category: SuggestionCategory;
8
- field: string;
9
- severity: Severity;
10
- suggestion: string;
11
- }
12
- export interface Moderation extends Entity {
13
- assessedAt?: Timestamp;
14
- originalLocale: Locale;
15
- priority: Priority;
16
- qualityScore?: number;
17
- recipeId: string;
18
- rejectionReason?: string;
19
- reviewedAt?: Timestamp;
20
- reviewedBy?: string;
21
- status: ModerationStatus;
22
- suggestions?: ModerationSuggestion[];
23
- userId: string;
24
- }
25
- export interface ModerateRecipeInput {
26
- moderationId: string;
27
- recipeId: string;
28
- userId: string;
29
- }
30
- export interface ModerateRecipeOutput {
31
- autoApproved: boolean;
32
- autoRejected: boolean;
33
- qualityScore: number;
34
- rejectionReason?: string;
35
- suggestions: ModerationSuggestion[];
36
- }
37
- //# sourceMappingURL=moderation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAW,SAAQ,MAAM;IACxC,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,gBAAgB,CAAC;IACzB,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACrC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=moderation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export declare const MODERATION_STATUS_VALUES: readonly ["approved", "pending", "rejected"];
2
- export type ModerationStatus = (typeof MODERATION_STATUS_VALUES)[number];
3
- //# sourceMappingURL=moderation_status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moderation_status.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/moderation_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,8CAI3B,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MODERATION_STATUS_VALUES = void 0;
4
- exports.MODERATION_STATUS_VALUES = [
5
- "approved",
6
- "pending",
7
- "rejected",
8
- ];
9
- //# sourceMappingURL=moderation_status.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moderation_status.js","sourceRoot":"","sources":["../../../src/types/moderation/moderation_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,UAAU;IACV,SAAS;IACT,UAAU;CACF,CAAC"}