@cravery/types 0.0.1

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 (464) hide show
  1. package/README.md +18 -0
  2. package/dist/common/allergen.d.ts +3 -0
  3. package/dist/common/allergen.d.ts.map +1 -0
  4. package/dist/common/allergen.js +19 -0
  5. package/dist/common/allergen.js.map +1 -0
  6. package/dist/common/cuisine.d.ts +3 -0
  7. package/dist/common/cuisine.d.ts.map +1 -0
  8. package/dist/common/cuisine.js +79 -0
  9. package/dist/common/cuisine.js.map +1 -0
  10. package/dist/common/currency.d.ts +6 -0
  11. package/dist/common/currency.d.ts.map +1 -0
  12. package/dist/common/currency.js +3 -0
  13. package/dist/common/currency.js.map +1 -0
  14. package/dist/common/currency_code.d.ts +3 -0
  15. package/dist/common/currency_code.d.ts.map +1 -0
  16. package/dist/common/currency_code.js +13 -0
  17. package/dist/common/currency_code.js.map +1 -0
  18. package/dist/common/dietary_tag.d.ts +3 -0
  19. package/dist/common/dietary_tag.d.ts.map +1 -0
  20. package/dist/common/dietary_tag.js +21 -0
  21. package/dist/common/dietary_tag.js.map +1 -0
  22. package/dist/common/difficulty.d.ts +3 -0
  23. package/dist/common/difficulty.d.ts.map +1 -0
  24. package/dist/common/difficulty.js +5 -0
  25. package/dist/common/difficulty.js.map +1 -0
  26. package/dist/common/index.d.ts +14 -0
  27. package/dist/common/index.d.ts.map +1 -0
  28. package/dist/common/index.js +30 -0
  29. package/dist/common/index.js.map +1 -0
  30. package/dist/common/meal_type.d.ts +3 -0
  31. package/dist/common/meal_type.d.ts.map +1 -0
  32. package/dist/common/meal_type.js +16 -0
  33. package/dist/common/meal_type.js.map +1 -0
  34. package/dist/common/measurement_system.d.ts +3 -0
  35. package/dist/common/measurement_system.d.ts.map +1 -0
  36. package/dist/common/measurement_system.js +5 -0
  37. package/dist/common/measurement_system.js.map +1 -0
  38. package/dist/common/nutrition.d.ts +12 -0
  39. package/dist/common/nutrition.d.ts.map +1 -0
  40. package/dist/common/nutrition.js +3 -0
  41. package/dist/common/nutrition.js.map +1 -0
  42. package/dist/common/price.d.ts +6 -0
  43. package/dist/common/price.d.ts.map +1 -0
  44. package/dist/common/price.js +3 -0
  45. package/dist/common/price.js.map +1 -0
  46. package/dist/common/spiciness.d.ts +3 -0
  47. package/dist/common/spiciness.d.ts.map +1 -0
  48. package/dist/common/spiciness.js +11 -0
  49. package/dist/common/spiciness.js.map +1 -0
  50. package/dist/common/temperature.d.ts +6 -0
  51. package/dist/common/temperature.d.ts.map +1 -0
  52. package/dist/common/temperature.js +3 -0
  53. package/dist/common/temperature.js.map +1 -0
  54. package/dist/common/temperature_unit.d.ts +3 -0
  55. package/dist/common/temperature_unit.d.ts.map +1 -0
  56. package/dist/common/temperature_unit.js +5 -0
  57. package/dist/common/temperature_unit.js.map +1 -0
  58. package/dist/common/unit.d.ts +3 -0
  59. package/dist/common/unit.d.ts.map +1 -0
  60. package/dist/common/unit.js +51 -0
  61. package/dist/common/unit.js.map +1 -0
  62. package/dist/core/api.d.ts +16 -0
  63. package/dist/core/api.d.ts.map +1 -0
  64. package/dist/core/api.js +14 -0
  65. package/dist/core/api.js.map +1 -0
  66. package/dist/core/entity.d.ts +8 -0
  67. package/dist/core/entity.d.ts.map +1 -0
  68. package/dist/core/entity.js +3 -0
  69. package/dist/core/entity.js.map +1 -0
  70. package/dist/core/errors.d.ts +44 -0
  71. package/dist/core/errors.d.ts.map +1 -0
  72. package/dist/core/errors.js +108 -0
  73. package/dist/core/errors.js.map +1 -0
  74. package/dist/core/index.d.ts +8 -0
  75. package/dist/core/index.d.ts.map +1 -0
  76. package/dist/core/index.js +24 -0
  77. package/dist/core/index.js.map +1 -0
  78. package/dist/core/locale.d.ts +3 -0
  79. package/dist/core/locale.d.ts.map +1 -0
  80. package/dist/core/locale.js +5 -0
  81. package/dist/core/locale.js.map +1 -0
  82. package/dist/core/pagination.d.ts +14 -0
  83. package/dist/core/pagination.d.ts.map +1 -0
  84. package/dist/core/pagination.js +3 -0
  85. package/dist/core/pagination.js.map +1 -0
  86. package/dist/core/theme.d.ts +3 -0
  87. package/dist/core/theme.d.ts.map +1 -0
  88. package/dist/core/theme.js +5 -0
  89. package/dist/core/theme.js.map +1 -0
  90. package/dist/core/timestamp.d.ts +5 -0
  91. package/dist/core/timestamp.d.ts.map +1 -0
  92. package/dist/core/timestamp.js +3 -0
  93. package/dist/core/timestamp.js.map +1 -0
  94. package/dist/equipment/category.d.ts +3 -0
  95. package/dist/equipment/category.d.ts.map +1 -0
  96. package/dist/equipment/category.js +18 -0
  97. package/dist/equipment/category.js.map +1 -0
  98. package/dist/equipment/entity.d.ts +16 -0
  99. package/dist/equipment/entity.d.ts.map +1 -0
  100. package/dist/equipment/entity.js +3 -0
  101. package/dist/equipment/entity.js.map +1 -0
  102. package/dist/equipment/index.d.ts +5 -0
  103. package/dist/equipment/index.d.ts.map +1 -0
  104. package/dist/equipment/index.js +21 -0
  105. package/dist/equipment/index.js.map +1 -0
  106. package/dist/equipment/recipe.d.ts +13 -0
  107. package/dist/equipment/recipe.d.ts.map +1 -0
  108. package/dist/equipment/recipe.js +3 -0
  109. package/dist/equipment/recipe.js.map +1 -0
  110. package/dist/equipment/user.d.ts +10 -0
  111. package/dist/equipment/user.d.ts.map +1 -0
  112. package/dist/equipment/user.js +3 -0
  113. package/dist/equipment/user.js.map +1 -0
  114. package/dist/feed/category.d.ts +3 -0
  115. package/dist/feed/category.d.ts.map +1 -0
  116. package/dist/feed/category.js +31 -0
  117. package/dist/feed/category.js.map +1 -0
  118. package/dist/feed/index.d.ts +2 -0
  119. package/dist/feed/index.d.ts.map +1 -0
  120. package/dist/feed/index.js +18 -0
  121. package/dist/feed/index.js.map +1 -0
  122. package/dist/feed/recipe.d.ts +19 -0
  123. package/dist/feed/recipe.d.ts.map +1 -0
  124. package/dist/feed/recipe.js +43 -0
  125. package/dist/feed/recipe.js.map +1 -0
  126. package/dist/iam/index.d.ts +3 -0
  127. package/dist/iam/index.d.ts.map +1 -0
  128. package/dist/iam/index.js +19 -0
  129. package/dist/iam/index.js.map +1 -0
  130. package/dist/iam/role.d.ts +3 -0
  131. package/dist/iam/role.d.ts.map +1 -0
  132. package/dist/iam/role.js +11 -0
  133. package/dist/iam/role.js.map +1 -0
  134. package/dist/iam/user.d.ts +12 -0
  135. package/dist/iam/user.d.ts.map +1 -0
  136. package/dist/iam/user.js +3 -0
  137. package/dist/iam/user.js.map +1 -0
  138. package/dist/index.d.ts +14 -0
  139. package/dist/index.d.ts.map +1 -0
  140. package/dist/index.js +30 -0
  141. package/dist/index.js.map +1 -0
  142. package/dist/ingredients/category.d.ts +3 -0
  143. package/dist/ingredients/category.d.ts.map +1 -0
  144. package/dist/ingredients/category.js +31 -0
  145. package/dist/ingredients/category.js.map +1 -0
  146. package/dist/ingredients/entity.d.ts +19 -0
  147. package/dist/ingredients/entity.d.ts.map +1 -0
  148. package/dist/ingredients/entity.js +3 -0
  149. package/dist/ingredients/entity.js.map +1 -0
  150. package/dist/ingredients/group.d.ts +3 -0
  151. package/dist/ingredients/group.d.ts.map +1 -0
  152. package/dist/ingredients/group.js +11 -0
  153. package/dist/ingredients/group.js.map +1 -0
  154. package/dist/ingredients/index.d.ts +7 -0
  155. package/dist/ingredients/index.d.ts.map +1 -0
  156. package/dist/ingredients/index.js +23 -0
  157. package/dist/ingredients/index.js.map +1 -0
  158. package/dist/ingredients/recipe.d.ts +15 -0
  159. package/dist/ingredients/recipe.d.ts.map +1 -0
  160. package/dist/ingredients/recipe.js +3 -0
  161. package/dist/ingredients/recipe.js.map +1 -0
  162. package/dist/ingredients/section.d.ts +16 -0
  163. package/dist/ingredients/section.d.ts.map +1 -0
  164. package/dist/ingredients/section.js +3 -0
  165. package/dist/ingredients/section.js.map +1 -0
  166. package/dist/ingredients/user.d.ts +14 -0
  167. package/dist/ingredients/user.d.ts.map +1 -0
  168. package/dist/ingredients/user.js +3 -0
  169. package/dist/ingredients/user.js.map +1 -0
  170. package/dist/interactions/collection.d.ts +7 -0
  171. package/dist/interactions/collection.d.ts.map +1 -0
  172. package/dist/interactions/collection.js +3 -0
  173. package/dist/interactions/collection.js.map +1 -0
  174. package/dist/interactions/cooked.d.ts +6 -0
  175. package/dist/interactions/cooked.d.ts.map +1 -0
  176. package/dist/interactions/cooked.js +3 -0
  177. package/dist/interactions/cooked.js.map +1 -0
  178. package/dist/interactions/event.d.ts +10 -0
  179. package/dist/interactions/event.d.ts.map +1 -0
  180. package/dist/interactions/event.js +3 -0
  181. package/dist/interactions/event.js.map +1 -0
  182. package/dist/interactions/event_type.d.ts +3 -0
  183. package/dist/interactions/event_type.d.ts.map +1 -0
  184. package/dist/interactions/event_type.js +12 -0
  185. package/dist/interactions/event_type.js.map +1 -0
  186. package/dist/interactions/index.d.ts +6 -0
  187. package/dist/interactions/index.d.ts.map +1 -0
  188. package/dist/interactions/index.js +22 -0
  189. package/dist/interactions/index.js.map +1 -0
  190. package/dist/interactions/rated.d.ts +6 -0
  191. package/dist/interactions/rated.d.ts.map +1 -0
  192. package/dist/interactions/rated.js +3 -0
  193. package/dist/interactions/rated.js.map +1 -0
  194. package/dist/interactions/saved.d.ts +6 -0
  195. package/dist/interactions/saved.d.ts.map +1 -0
  196. package/dist/interactions/saved.js +3 -0
  197. package/dist/interactions/saved.js.map +1 -0
  198. package/dist/limits/index.d.ts +4 -0
  199. package/dist/limits/index.d.ts.map +1 -0
  200. package/dist/limits/index.js +20 -0
  201. package/dist/limits/index.js.map +1 -0
  202. package/dist/limits/limits.d.ts +5 -0
  203. package/dist/limits/limits.d.ts.map +1 -0
  204. package/dist/limits/limits.js +3 -0
  205. package/dist/limits/limits.js.map +1 -0
  206. package/dist/limits/operation.d.ts +3 -0
  207. package/dist/limits/operation.d.ts.map +1 -0
  208. package/dist/limits/operation.js +13 -0
  209. package/dist/limits/operation.js.map +1 -0
  210. package/dist/limits/usage.d.ts +8 -0
  211. package/dist/limits/usage.d.ts.map +1 -0
  212. package/dist/limits/usage.js +3 -0
  213. package/dist/limits/usage.js.map +1 -0
  214. package/dist/mealplan/day.d.ts +6 -0
  215. package/dist/mealplan/day.d.ts.map +1 -0
  216. package/dist/mealplan/day.js +3 -0
  217. package/dist/mealplan/day.js.map +1 -0
  218. package/dist/mealplan/index.d.ts +5 -0
  219. package/dist/mealplan/index.d.ts.map +1 -0
  220. package/dist/mealplan/index.js +21 -0
  221. package/dist/mealplan/index.js.map +1 -0
  222. package/dist/mealplan/meal.d.ts +9 -0
  223. package/dist/mealplan/meal.d.ts.map +1 -0
  224. package/dist/mealplan/meal.js +3 -0
  225. package/dist/mealplan/meal.js.map +1 -0
  226. package/dist/mealplan/plan.d.ts +9 -0
  227. package/dist/mealplan/plan.d.ts.map +1 -0
  228. package/dist/mealplan/plan.js +3 -0
  229. package/dist/mealplan/plan.js.map +1 -0
  230. package/dist/mealplan/slot.d.ts +3 -0
  231. package/dist/mealplan/slot.d.ts.map +1 -0
  232. package/dist/mealplan/slot.js +10 -0
  233. package/dist/mealplan/slot.js.map +1 -0
  234. package/dist/recipes/admin.d.ts +12 -0
  235. package/dist/recipes/admin.d.ts.map +1 -0
  236. package/dist/recipes/admin.js +3 -0
  237. package/dist/recipes/admin.js.map +1 -0
  238. package/dist/recipes/content.d.ts +14 -0
  239. package/dist/recipes/content.d.ts.map +1 -0
  240. package/dist/recipes/content.js +3 -0
  241. package/dist/recipes/content.js.map +1 -0
  242. package/dist/recipes/index.d.ts +5 -0
  243. package/dist/recipes/index.d.ts.map +1 -0
  244. package/dist/recipes/index.js +21 -0
  245. package/dist/recipes/index.js.map +1 -0
  246. package/dist/recipes/instruction.d.ts +18 -0
  247. package/dist/recipes/instruction.d.ts.map +1 -0
  248. package/dist/recipes/instruction.js +3 -0
  249. package/dist/recipes/instruction.js.map +1 -0
  250. package/dist/recipes/meta.d.ts +33 -0
  251. package/dist/recipes/meta.d.ts.map +1 -0
  252. package/dist/recipes/meta.js +3 -0
  253. package/dist/recipes/meta.js.map +1 -0
  254. package/dist/recipes/recipe.d.ts +30 -0
  255. package/dist/recipes/recipe.d.ts.map +1 -0
  256. package/dist/recipes/recipe.js +3 -0
  257. package/dist/recipes/recipe.js.map +1 -0
  258. package/dist/recipes/source.d.ts +3 -0
  259. package/dist/recipes/source.d.ts.map +1 -0
  260. package/dist/recipes/source.js +5 -0
  261. package/dist/recipes/source.js.map +1 -0
  262. package/dist/recipes/stats.d.ts +10 -0
  263. package/dist/recipes/stats.d.ts.map +1 -0
  264. package/dist/recipes/stats.js +3 -0
  265. package/dist/recipes/stats.js.map +1 -0
  266. package/dist/recipes/status.d.ts +3 -0
  267. package/dist/recipes/status.d.ts.map +1 -0
  268. package/dist/recipes/status.js +11 -0
  269. package/dist/recipes/status.js.map +1 -0
  270. package/dist/reports/category.d.ts +3 -0
  271. package/dist/reports/category.d.ts.map +1 -0
  272. package/dist/reports/category.js +14 -0
  273. package/dist/reports/category.js.map +1 -0
  274. package/dist/reports/index.d.ts +9 -0
  275. package/dist/reports/index.d.ts.map +1 -0
  276. package/dist/reports/index.js +25 -0
  277. package/dist/reports/index.js.map +1 -0
  278. package/dist/reports/priority.d.ts +3 -0
  279. package/dist/reports/priority.d.ts.map +1 -0
  280. package/dist/reports/priority.js +10 -0
  281. package/dist/reports/priority.js.map +1 -0
  282. package/dist/reports/report.d.ts +17 -0
  283. package/dist/reports/report.d.ts.map +1 -0
  284. package/dist/reports/report.js +3 -0
  285. package/dist/reports/report.js.map +1 -0
  286. package/dist/reports/status.d.ts +3 -0
  287. package/dist/reports/status.d.ts.map +1 -0
  288. package/dist/reports/status.js +12 -0
  289. package/dist/reports/status.js.map +1 -0
  290. package/dist/reports/submission.d.ts +8 -0
  291. package/dist/reports/submission.d.ts.map +1 -0
  292. package/dist/reports/submission.js +3 -0
  293. package/dist/reports/submission.js.map +1 -0
  294. package/dist/reports/target.d.ts +16 -0
  295. package/dist/reports/target.d.ts.map +1 -0
  296. package/dist/reports/target.js +3 -0
  297. package/dist/reports/target.js.map +1 -0
  298. package/dist/reports/update.d.ts +18 -0
  299. package/dist/reports/update.d.ts.map +1 -0
  300. package/dist/reports/update.js +3 -0
  301. package/dist/reports/update.js.map +1 -0
  302. package/dist/reports/update_type.d.ts +3 -0
  303. package/dist/reports/update_type.d.ts.map +1 -0
  304. package/dist/reports/update_type.js +5 -0
  305. package/dist/reports/update_type.js.map +1 -0
  306. package/dist/settings/index.d.ts +3 -0
  307. package/dist/settings/index.d.ts.map +1 -0
  308. package/dist/settings/index.js +19 -0
  309. package/dist/settings/index.js.map +1 -0
  310. package/dist/settings/notification.d.ts +7 -0
  311. package/dist/settings/notification.d.ts.map +1 -0
  312. package/dist/settings/notification.js +3 -0
  313. package/dist/settings/notification.js.map +1 -0
  314. package/dist/settings/settings.d.ts +19 -0
  315. package/dist/settings/settings.d.ts.map +1 -0
  316. package/dist/settings/settings.js +3 -0
  317. package/dist/settings/settings.js.map +1 -0
  318. package/dist/shopping/index.d.ts +4 -0
  319. package/dist/shopping/index.d.ts.map +1 -0
  320. package/dist/shopping/index.js +20 -0
  321. package/dist/shopping/index.js.map +1 -0
  322. package/dist/shopping/item.d.ts +9 -0
  323. package/dist/shopping/item.d.ts.map +1 -0
  324. package/dist/shopping/item.js +3 -0
  325. package/dist/shopping/item.js.map +1 -0
  326. package/dist/shopping/item_status.d.ts +3 -0
  327. package/dist/shopping/item_status.d.ts.map +1 -0
  328. package/dist/shopping/item_status.js +9 -0
  329. package/dist/shopping/item_status.js.map +1 -0
  330. package/dist/shopping/list.d.ts +9 -0
  331. package/dist/shopping/list.d.ts.map +1 -0
  332. package/dist/shopping/list.js +3 -0
  333. package/dist/shopping/list.js.map +1 -0
  334. package/dist/subscriptions/billing_period.d.ts +3 -0
  335. package/dist/subscriptions/billing_period.d.ts.map +1 -0
  336. package/dist/subscriptions/billing_period.js +5 -0
  337. package/dist/subscriptions/billing_period.js.map +1 -0
  338. package/dist/subscriptions/cost.d.ts +7 -0
  339. package/dist/subscriptions/cost.d.ts.map +1 -0
  340. package/dist/subscriptions/cost.js +3 -0
  341. package/dist/subscriptions/cost.js.map +1 -0
  342. package/dist/subscriptions/index.d.ts +9 -0
  343. package/dist/subscriptions/index.d.ts.map +1 -0
  344. package/dist/subscriptions/index.js +25 -0
  345. package/dist/subscriptions/index.js.map +1 -0
  346. package/dist/subscriptions/member.d.ts +10 -0
  347. package/dist/subscriptions/member.d.ts.map +1 -0
  348. package/dist/subscriptions/member.js +3 -0
  349. package/dist/subscriptions/member.js.map +1 -0
  350. package/dist/subscriptions/member_status.d.ts +3 -0
  351. package/dist/subscriptions/member_status.d.ts.map +1 -0
  352. package/dist/subscriptions/member_status.js +10 -0
  353. package/dist/subscriptions/member_status.js.map +1 -0
  354. package/dist/subscriptions/store.d.ts +3 -0
  355. package/dist/subscriptions/store.d.ts.map +1 -0
  356. package/dist/subscriptions/store.js +10 -0
  357. package/dist/subscriptions/store.js.map +1 -0
  358. package/dist/subscriptions/subscription.d.ts +22 -0
  359. package/dist/subscriptions/subscription.d.ts.map +1 -0
  360. package/dist/subscriptions/subscription.js +3 -0
  361. package/dist/subscriptions/subscription.js.map +1 -0
  362. package/dist/subscriptions/subscription_role.d.ts +3 -0
  363. package/dist/subscriptions/subscription_role.d.ts.map +1 -0
  364. package/dist/subscriptions/subscription_role.js +5 -0
  365. package/dist/subscriptions/subscription_role.js.map +1 -0
  366. package/dist/subscriptions/subscription_status.d.ts +3 -0
  367. package/dist/subscriptions/subscription_status.d.ts.map +1 -0
  368. package/dist/subscriptions/subscription_status.js +14 -0
  369. package/dist/subscriptions/subscription_status.js.map +1 -0
  370. package/dist/subscriptions/subscription_tier.d.ts +3 -0
  371. package/dist/subscriptions/subscription_tier.d.ts.map +1 -0
  372. package/dist/subscriptions/subscription_tier.js +5 -0
  373. package/dist/subscriptions/subscription_tier.js.map +1 -0
  374. package/package.json +35 -0
  375. package/src/common/allergen.ts +16 -0
  376. package/src/common/cuisine.ts +77 -0
  377. package/src/common/currency.ts +6 -0
  378. package/src/common/currency_code.ts +10 -0
  379. package/src/common/dietary_tag.ts +18 -0
  380. package/src/common/difficulty.ts +2 -0
  381. package/src/common/index.ts +13 -0
  382. package/src/common/meal_type.ts +13 -0
  383. package/src/common/measurement_system.ts +2 -0
  384. package/src/common/nutrition.ts +11 -0
  385. package/src/common/spiciness.ts +8 -0
  386. package/src/common/temperature.ts +6 -0
  387. package/src/common/temperature_unit.ts +2 -0
  388. package/src/common/unit.ts +48 -0
  389. package/src/core/api.ts +30 -0
  390. package/src/core/entity.ts +8 -0
  391. package/src/core/errors.ts +118 -0
  392. package/src/core/index.ts +7 -0
  393. package/src/core/locale.ts +2 -0
  394. package/src/core/pagination.ts +15 -0
  395. package/src/core/theme.ts +2 -0
  396. package/src/core/timestamp.ts +4 -0
  397. package/src/equipment/category.ts +15 -0
  398. package/src/equipment/entity.ts +18 -0
  399. package/src/equipment/index.ts +4 -0
  400. package/src/equipment/recipe.ts +14 -0
  401. package/src/equipment/user.ts +10 -0
  402. package/src/feed/index.ts +1 -0
  403. package/src/feed/recipe.ts +61 -0
  404. package/src/iam/index.ts +2 -0
  405. package/src/iam/role.ts +8 -0
  406. package/src/iam/user.ts +12 -0
  407. package/src/index.ts +13 -0
  408. package/src/ingredients/category.ts +28 -0
  409. package/src/ingredients/entity.ts +21 -0
  410. package/src/ingredients/group.ts +8 -0
  411. package/src/ingredients/index.ts +6 -0
  412. package/src/ingredients/recipe.ts +17 -0
  413. package/src/ingredients/section.ts +22 -0
  414. package/src/ingredients/user.ts +14 -0
  415. package/src/interactions/collection.ts +7 -0
  416. package/src/interactions/cooked.ts +6 -0
  417. package/src/interactions/event.ts +10 -0
  418. package/src/interactions/event_type.ts +9 -0
  419. package/src/interactions/index.ts +5 -0
  420. package/src/interactions/rated.ts +6 -0
  421. package/src/interactions/saved.ts +6 -0
  422. package/src/limits/index.ts +3 -0
  423. package/src/limits/limits.ts +6 -0
  424. package/src/limits/operation.ts +10 -0
  425. package/src/limits/usage.ts +9 -0
  426. package/src/mealplan/day.ts +6 -0
  427. package/src/mealplan/index.ts +4 -0
  428. package/src/mealplan/meal.ts +9 -0
  429. package/src/mealplan/plan.ts +9 -0
  430. package/src/mealplan/slot.ts +7 -0
  431. package/src/recipes/admin.ts +12 -0
  432. package/src/recipes/content.ts +14 -0
  433. package/src/recipes/index.ts +4 -0
  434. package/src/recipes/instruction.ts +19 -0
  435. package/src/recipes/meta.ts +42 -0
  436. package/src/recipes/recipe.ts +39 -0
  437. package/src/recipes/source.ts +2 -0
  438. package/src/recipes/stats.ts +9 -0
  439. package/src/recipes/status.ts +8 -0
  440. package/src/reports/category.ts +11 -0
  441. package/src/reports/index.ts +8 -0
  442. package/src/reports/priority.ts +7 -0
  443. package/src/reports/report.ts +18 -0
  444. package/src/reports/status.ts +9 -0
  445. package/src/reports/submission.ts +8 -0
  446. package/src/reports/target.ts +22 -0
  447. package/src/reports/update.ts +21 -0
  448. package/src/reports/update_type.ts +2 -0
  449. package/src/settings/index.ts +2 -0
  450. package/src/settings/notification.ts +6 -0
  451. package/src/settings/settings.ts +27 -0
  452. package/src/shopping/index.ts +3 -0
  453. package/src/shopping/item.ts +9 -0
  454. package/src/shopping/item_status.ts +6 -0
  455. package/src/shopping/list.ts +9 -0
  456. package/src/subscriptions/billing_period.ts +2 -0
  457. package/src/subscriptions/index.ts +8 -0
  458. package/src/subscriptions/member.ts +10 -0
  459. package/src/subscriptions/member_status.ts +7 -0
  460. package/src/subscriptions/store.ts +7 -0
  461. package/src/subscriptions/subscription.ts +22 -0
  462. package/src/subscriptions/subscription_role.ts +2 -0
  463. package/src/subscriptions/subscription_status.ts +11 -0
  464. package/src/subscriptions/subscription_tier.ts +2 -0
@@ -0,0 +1,17 @@
1
+ import { Unit } from "../common";
2
+
3
+ export interface RecipeIngredientMeta {
4
+ slug: string;
5
+ optional?: boolean;
6
+ quantity?: number;
7
+ unit?: Unit;
8
+ }
9
+
10
+ export interface RecipeIngredientContent {
11
+ name: string;
12
+ slug: string;
13
+ notes?: string;
14
+ }
15
+
16
+ export interface RecipeIngredient
17
+ extends RecipeIngredientMeta, RecipeIngredientContent {}
@@ -0,0 +1,22 @@
1
+ import {
2
+ RecipeIngredient,
3
+ RecipeIngredientContent,
4
+ RecipeIngredientMeta,
5
+ } from "./recipe";
6
+
7
+ export interface IngredientSectionMeta {
8
+ ingredients: RecipeIngredientMeta[];
9
+ slug: string;
10
+ }
11
+
12
+ export interface IngredientSectionContent {
13
+ ingredients: RecipeIngredientContent[];
14
+ slug: string;
15
+ title?: string;
16
+ }
17
+
18
+ export interface IngredientSection {
19
+ ingredients: RecipeIngredient[];
20
+ slug: string;
21
+ title?: string;
22
+ }
@@ -0,0 +1,14 @@
1
+ import { Currency, Unit } from "../common";
2
+ import { Entity, Timestamp } from "../core";
3
+ import { IngredientCategory } from "./category";
4
+ import { IngredientGroup } from "./group";
5
+
6
+ export interface UserIngredient extends Entity {
7
+ category: IngredientCategory;
8
+ cost: Currency;
9
+ expiresAt: Timestamp | null;
10
+ group: IngredientGroup;
11
+ slug: string;
12
+ quantity?: number;
13
+ unit?: Unit;
14
+ }
@@ -0,0 +1,7 @@
1
+ import { Entity } from "src/core";
2
+
3
+ export interface RecipeCollection extends Entity {
4
+ userId: string;
5
+ name: string;
6
+ recipeIds: string[];
7
+ }
@@ -0,0 +1,6 @@
1
+ import { Entity } from "../core";
2
+
3
+ export interface CookedRecipe extends Entity {
4
+ recipeId: string;
5
+ count: number;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { InteractionEventType } from "./event_type";
2
+
3
+ export interface InteractionEvent {
4
+ userId: string;
5
+ recipeId: string;
6
+ eventType: InteractionEventType;
7
+ value?: number;
8
+ region?: string;
9
+ timestamp: number;
10
+ }
@@ -0,0 +1,9 @@
1
+ export const INTERACTION_EVENT_TYPES = [
2
+ "save",
3
+ "unsave",
4
+ "cook",
5
+ "rate",
6
+ "unrate",
7
+ "share",
8
+ ] as const;
9
+ export type InteractionEventType = (typeof INTERACTION_EVENT_TYPES)[number];
@@ -0,0 +1,5 @@
1
+ export * from "./cooked";
2
+ export * from "./event_type";
3
+ export * from "./event";
4
+ export * from "./rated";
5
+ export * from "./saved";
@@ -0,0 +1,6 @@
1
+ import { Entity } from "../core";
2
+
3
+ export interface RatedRecipe extends Entity {
4
+ recipeId: string;
5
+ value: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { Entity } from "../core";
2
+
3
+ export interface SavedRecipe extends Entity {
4
+ recipeId: string;
5
+ searchTerms?: string[];
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./limits";
2
+ export * from "./operation";
3
+ export * from "./usage";
@@ -0,0 +1,6 @@
1
+ import { SubscriptionTier } from "../subscriptions";
2
+ import { Operation } from "./operation";
3
+
4
+ export type TierLimits = Record<SubscriptionTier, number>;
5
+
6
+ export type LimitsConfig = Record<Operation, TierLimits>;
@@ -0,0 +1,10 @@
1
+ export const OPERATION_VALUES = [
2
+ "assistant",
3
+ "mealPlan",
4
+ "recipeFromUrl",
5
+ "recipeFromImage",
6
+ "recipeFromText",
7
+ "scanIngredients",
8
+ "scanEquipment",
9
+ ] as const;
10
+ export type Operation = (typeof OPERATION_VALUES)[number];
@@ -0,0 +1,9 @@
1
+ import { Timestamp } from "../core";
2
+ import { Operation } from "./operation";
3
+
4
+ export type UsageCounts = Partial<Record<Operation, number>>;
5
+
6
+ export interface UsagePeriod {
7
+ counts: UsageCounts;
8
+ updatedAt: Timestamp;
9
+ }
@@ -0,0 +1,6 @@
1
+ import { PlannedMeal } from "./meal";
2
+
3
+ export interface MealPlanDay {
4
+ date: string; // ISO: "2026-01-19"
5
+ meals: PlannedMeal[];
6
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./day";
2
+ export * from "./meal";
3
+ export * from "./plan";
4
+ export * from "./slot";
@@ -0,0 +1,9 @@
1
+ import { MealSlot } from "./slot";
2
+
3
+ export interface PlannedMeal {
4
+ completed: boolean;
5
+ recipeId: string;
6
+ servings: number;
7
+ slot: MealSlot;
8
+ notes?: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { Entity } from "../core";
2
+ import { MealPlanDay } from "./day";
3
+
4
+ export interface MealPlan extends Entity {
5
+ startDate: string;
6
+ endDate: string;
7
+ days: MealPlanDay[];
8
+ name?: string;
9
+ }
@@ -0,0 +1,7 @@
1
+ export const MEAL_SLOT_VALUES = [
2
+ "breakfast",
3
+ "lunch",
4
+ "dinner",
5
+ "snack",
6
+ ] as const;
7
+ export type MealSlot = (typeof MEAL_SLOT_VALUES)[number];
@@ -0,0 +1,12 @@
1
+ import { Locale } from "../core";
2
+ import { Recipe } from "./recipe";
3
+ import { RecipeSource } from "./source";
4
+
5
+ export interface AdminRecipe extends Recipe {
6
+ confidence: number;
7
+ createdBy: string;
8
+ originalLocale: Locale;
9
+ searchTerms: string[];
10
+ source: RecipeSource;
11
+ sourceRef: string;
12
+ }
@@ -0,0 +1,14 @@
1
+ import { Locale } from "../core/locale";
2
+ import { RecipeEquipmentContent } from "../equipment";
3
+ import { IngredientSectionContent } from "../ingredients";
4
+ import { InstructionContent } from "./instruction";
5
+
6
+ export interface RecipeContent {
7
+ description: string;
8
+ equipment?: RecipeEquipmentContent[];
9
+ ingredientSections: IngredientSectionContent[];
10
+ instructions: InstructionContent[];
11
+ locale: Locale;
12
+ tips?: string[];
13
+ title: string;
14
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./instruction";
2
+ export * from "./recipe";
3
+ export * from "./source";
4
+ export * from "./stats";
@@ -0,0 +1,19 @@
1
+ import { Temperature } from "../common";
2
+
3
+ export interface InstructionMeta {
4
+ step: number;
5
+ duration?: number;
6
+ equipment?: string[];
7
+ ingredients?: string[];
8
+ optional?: boolean;
9
+ temperature?: Temperature;
10
+ }
11
+
12
+ export interface InstructionContent {
13
+ step: number;
14
+ text: string;
15
+ tip?: string;
16
+ warning?: string;
17
+ }
18
+
19
+ export interface Instruction extends InstructionMeta, InstructionContent {}
@@ -0,0 +1,42 @@
1
+ import { Entity } from "../core";
2
+ import { Locale } from "../core/locale";
3
+ import {
4
+ Allergen,
5
+ Cuisine,
6
+ Currency,
7
+ DietaryTag,
8
+ Difficulty,
9
+ MealType,
10
+ Nutrition,
11
+ Spiciness,
12
+ } from "../common";
13
+ import { RecipeEquipmentMeta } from "../equipment";
14
+ import { IngredientSectionMeta } from "../ingredients";
15
+ import { InstructionMeta } from "./instruction";
16
+ import { RecipeSource } from "./source";
17
+ import { RecipeStatus } from "./status";
18
+
19
+ export interface RecipeMeta extends Entity {
20
+ allergens: Allergen[];
21
+ confidence: number;
22
+ cost: Currency;
23
+ createdBy: string;
24
+ cuisines: Cuisine[];
25
+ dietaryTags: DietaryTag[];
26
+ difficulty: Difficulty;
27
+ duration: number;
28
+ equipment: RecipeEquipmentMeta[];
29
+ images: string[];
30
+ ingredientSections: IngredientSectionMeta[];
31
+ instructions: InstructionMeta[];
32
+ mealTypes: MealType[];
33
+ nutrition: Nutrition;
34
+ originalLocale: Locale;
35
+ searchTerms: string[];
36
+ servings: number;
37
+ source: RecipeSource;
38
+ sourceRef: string;
39
+ spiciness: Spiciness;
40
+ status: RecipeStatus;
41
+ videoUrl?: string;
42
+ }
@@ -0,0 +1,39 @@
1
+ import { Entity } from "../core";
2
+ import { Locale } from "../core/locale";
3
+ import {
4
+ Allergen,
5
+ Cuisine,
6
+ Currency,
7
+ DietaryTag,
8
+ Difficulty,
9
+ MealType,
10
+ Nutrition,
11
+ Spiciness,
12
+ } from "../common";
13
+ import { RecipeEquipment } from "../equipment";
14
+ import { IngredientSection } from "../ingredients";
15
+ import { Instruction } from "./instruction";
16
+ import { RecipeStatus } from "./status";
17
+
18
+ export interface Recipe extends Entity {
19
+ allergens: Allergen[];
20
+ cuisines: Cuisine[];
21
+ cost: Currency;
22
+ description: string;
23
+ dietaryTags: DietaryTag[];
24
+ difficulty: Difficulty;
25
+ duration: number;
26
+ equipment: RecipeEquipment[];
27
+ images: string[];
28
+ ingredientSections: IngredientSection[];
29
+ instructions: Instruction[];
30
+ locale: Locale;
31
+ mealTypes: MealType[];
32
+ nutrition: Nutrition;
33
+ servings: number;
34
+ spiciness: Spiciness;
35
+ status: RecipeStatus;
36
+ tips: string[];
37
+ title: string;
38
+ videoUrl?: string;
39
+ }
@@ -0,0 +1,2 @@
1
+ export const RECIPE_SOURCE_VALUES = ["image", "text", "url"] as const;
2
+ export type RecipeSource = (typeof RECIPE_SOURCE_VALUES)[number];
@@ -0,0 +1,9 @@
1
+ export interface RecipeStats {
2
+ cooks: number;
3
+ ratingCount: number;
4
+ ratingSum: number;
5
+ saves: number;
6
+ shares: number;
7
+ score: number;
8
+ updatedAt: number;
9
+ }
@@ -0,0 +1,8 @@
1
+ export const RECIPE_STATUS_VALUES = [
2
+ "active",
3
+ "archived",
4
+ "deleted",
5
+ "flagged",
6
+ "pending",
7
+ ] as const;
8
+ export type RecipeStatus = (typeof RECIPE_STATUS_VALUES)[number];
@@ -0,0 +1,11 @@
1
+ export const REPORT_CATEGORY_VALUES = [
2
+ "copyright",
3
+ "harassment",
4
+ "inappropriate",
5
+ "low_confidence",
6
+ "misinformation",
7
+ "not_recipe",
8
+ "other",
9
+ "spam",
10
+ ] as const;
11
+ export type ReportCategory = (typeof REPORT_CATEGORY_VALUES)[number];
@@ -0,0 +1,8 @@
1
+ export * from "./category";
2
+ export * from "./priority";
3
+ export * from "./report";
4
+ export * from "./status";
5
+ export * from "./submission";
6
+ export * from "./target";
7
+ export * from "./update_type";
8
+ export * from "./update";
@@ -0,0 +1,7 @@
1
+ export const REPORT_PRIORITY_VALUES = [
2
+ "critical",
3
+ "high",
4
+ "medium",
5
+ "low",
6
+ ] as const;
7
+ export type ReportPriority = (typeof REPORT_PRIORITY_VALUES)[number];
@@ -0,0 +1,18 @@
1
+ import { Entity } from "../core";
2
+ import { ReportPriority } from "./priority";
3
+ import { ReportStatus } from "./status";
4
+ import { ReportSubmission } from "./submission";
5
+ import { ReportTarget } from "./target";
6
+ import { ReportUpdate } from "./update";
7
+
8
+ export interface Report extends Entity {
9
+ priority: ReportPriority;
10
+ status: ReportStatus;
11
+ reporterId: string;
12
+ submission: ReportSubmission;
13
+ target: ReportTarget;
14
+ }
15
+
16
+ export interface UpdatedReport extends Report {
17
+ updates: ReportUpdate[];
18
+ }
@@ -0,0 +1,9 @@
1
+ export const REPORT_STATUS_VALUES = [
2
+ "closed",
3
+ "escalated",
4
+ "in_progress",
5
+ "pending",
6
+ "rejected",
7
+ "resolved",
8
+ ] as const;
9
+ export type ReportStatus = (typeof REPORT_STATUS_VALUES)[number];
@@ -0,0 +1,8 @@
1
+ import { ReportCategory } from "./category";
2
+
3
+ export interface ReportSubmission {
4
+ category: ReportCategory;
5
+ description: string;
6
+ contentSnapshot?: string;
7
+ imageHashes?: string[];
8
+ }
@@ -0,0 +1,22 @@
1
+ import { RecipeSource } from "../recipes";
2
+
3
+ export interface ExtractionTarget {
4
+ type: "extraction";
5
+ source: RecipeSource;
6
+ sourceRef: string;
7
+ }
8
+
9
+ export interface ImageTarget {
10
+ type: "image";
11
+ imageUrl: string;
12
+ }
13
+
14
+ export interface RecipeTarget {
15
+ type: "recipe";
16
+ recipeId: string;
17
+ }
18
+
19
+ export type ReportTarget =
20
+ | ExtractionTarget
21
+ | ImageTarget
22
+ | RecipeTarget;
@@ -0,0 +1,21 @@
1
+ import { Entity } from "../core";
2
+ import { ReportUpdateType } from "./update_type";
3
+
4
+ export interface ReportUpdateBase extends Entity {
5
+ content: string;
6
+ reportId: string;
7
+ type: ReportUpdateType;
8
+ }
9
+
10
+ export interface AIUpdate extends ReportUpdateBase {
11
+ type: "ai";
12
+ score: number;
13
+ reasoning: string;
14
+ }
15
+
16
+ export interface ResolutionUpdate extends ReportUpdateBase {
17
+ type: "resolution";
18
+ action: "dismissed" | "warning_issued" | "content_removed" | "user_suspended";
19
+ }
20
+
21
+ export type ReportUpdate = AIUpdate | ReportUpdateBase | ResolutionUpdate;
@@ -0,0 +1,2 @@
1
+ export const REPORT_UPDATE_TYPE_VALUES = ["ai", "note", "resolution"] as const;
2
+ export type ReportUpdateType = (typeof REPORT_UPDATE_TYPE_VALUES)[number];
@@ -0,0 +1,2 @@
1
+ export * from "./notification";
2
+ export * from "./settings";
@@ -0,0 +1,6 @@
1
+ export interface NotificationSettings {
2
+ email: boolean;
3
+ push: boolean;
4
+ marketing: boolean;
5
+ weeklyDigest: boolean;
6
+ }
@@ -0,0 +1,27 @@
1
+ import {
2
+ Allergen,
3
+ Cuisine,
4
+ DietaryTag,
5
+ Difficulty,
6
+ MeasurementSystem,
7
+ Spiciness,
8
+ TemperatureUnit,
9
+ } from "../common";
10
+ import { Entity, Locale, Theme } from "../core";
11
+ import { NotificationSettings } from "./notification";
12
+
13
+ export interface Settings extends Entity {
14
+ allergens: Allergen[];
15
+ cuisines: Cuisine[];
16
+ defaultServings: number;
17
+ dietaryTags: DietaryTag[];
18
+ excludedIngredients: string[];
19
+ locale: Locale;
20
+ measurementSystem: MeasurementSystem;
21
+ notifications: NotificationSettings;
22
+ skillLevel: Difficulty;
23
+ spiciness: Spiciness;
24
+ temperatureUnit: TemperatureUnit;
25
+ textScale: number;
26
+ theme: Theme;
27
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./item_status";
2
+ export * from "./item";
3
+ export * from "./list";
@@ -0,0 +1,9 @@
1
+ import { Unit } from "../common";
2
+ import { ShoppingItemStatus } from "./item_status";
3
+
4
+ export interface ShoppingItem {
5
+ slug: string;
6
+ quantity: number;
7
+ unit: Unit;
8
+ status: ShoppingItemStatus;
9
+ }
@@ -0,0 +1,6 @@
1
+ export const SHOPPING_ITEM_STATUS_VALUES = [
2
+ "pending",
3
+ "purchased",
4
+ "skipped",
5
+ ] as const;
6
+ export type ShoppingItemStatus = (typeof SHOPPING_ITEM_STATUS_VALUES)[number];
@@ -0,0 +1,9 @@
1
+ import { Entity } from "../core";
2
+ import { ShoppingItem } from "./item";
3
+
4
+ export interface ShoppingList extends Entity {
5
+ name?: string;
6
+ items: ShoppingItem[];
7
+ planId: string;
8
+ archived: boolean;
9
+ }
@@ -0,0 +1,2 @@
1
+ export const BILLING_PERIOD_VALUES = ["monthly", "yearly"] as const;
2
+ export type BillingPeriod = (typeof BILLING_PERIOD_VALUES)[number];
@@ -0,0 +1,8 @@
1
+ export * from "./billing_period";
2
+ export * from "./member_status";
3
+ export * from "./member";
4
+ export * from "./store";
5
+ export * from "./subscription_role";
6
+ export * from "./subscription_status";
7
+ export * from "./subscription_tier";
8
+ export * from "./subscription";
@@ -0,0 +1,10 @@
1
+ import { Timestamp } from "../core";
2
+ import { MemberStatus } from "./member_status";
3
+ import { SubscriptionRole } from "./subscription_role";
4
+
5
+ export interface Member {
6
+ joinedAt: Timestamp | null;
7
+ role: SubscriptionRole;
8
+ status: MemberStatus;
9
+ userId: string;
10
+ }
@@ -0,0 +1,7 @@
1
+ export const MEMBER_STATUS_VALUES = [
2
+ "invited",
3
+ "active",
4
+ "declined",
5
+ "removed",
6
+ ] as const;
7
+ export type MemberStatus = (typeof MEMBER_STATUS_VALUES)[number];
@@ -0,0 +1,7 @@
1
+ export const SUBSCRIPTION_STORE_VALUES = [
2
+ "app_store",
3
+ "play_store",
4
+ "promotional",
5
+ "stripe",
6
+ ] as const;
7
+ export type SubscriptionStore = (typeof SUBSCRIPTION_STORE_VALUES)[number];
@@ -0,0 +1,22 @@
1
+ import { Entity, Timestamp } from "../core";
2
+ import { BillingPeriod } from "./billing_period";
3
+ import { Member } from "./member";
4
+ import { SubscriptionStore } from "./store";
5
+ import { SubscriptionStatus } from "./subscription_status";
6
+ import { SubscriptionTier } from "./subscription_tier";
7
+
8
+ export interface Subscription extends Entity {
9
+ billingPeriod: BillingPeriod;
10
+ cancelledAt: Timestamp | null;
11
+ customerId: string;
12
+ entitlementId: string;
13
+ expiresAt: Timestamp;
14
+ members: Member[];
15
+ productId: string;
16
+ purchasedAt: Timestamp;
17
+ renewable: boolean;
18
+ status: SubscriptionStatus;
19
+ store: SubscriptionStore;
20
+ tier: SubscriptionTier;
21
+ trialExpiresAt: Timestamp | null;
22
+ }
@@ -0,0 +1,2 @@
1
+ export const SUBSCRIPTION_ROLE_VALUES = ["member", "owner"] as const;
2
+ export type SubscriptionRole = (typeof SUBSCRIPTION_ROLE_VALUES)[number];
@@ -0,0 +1,11 @@
1
+ export const SUBSCRIPTION_STATUS_VALUES = [
2
+ "active",
3
+ "deleted",
4
+ "expired",
5
+ "grace",
6
+ "paused",
7
+ "pending",
8
+ "rejected",
9
+ "trialing",
10
+ ] as const;
11
+ export type SubscriptionStatus = (typeof SUBSCRIPTION_STATUS_VALUES)[number];
@@ -0,0 +1,2 @@
1
+ export const SUBSCRIPTION_TIER_VALUES = ["family", "free", "pro"] as const;
2
+ export type SubscriptionTier = (typeof SUBSCRIPTION_TIER_VALUES)[number];