qeai-sdk 2.0.0

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 (441) hide show
  1. package/dist/constants/auth-commands.constant.d.ts +25 -0
  2. package/dist/constants/auth-commands.constant.js +25 -0
  3. package/dist/constants/category-commands.constant.d.ts +35 -0
  4. package/dist/constants/category-commands.constant.js +35 -0
  5. package/dist/constants/chain-commands.constant.d.ts +35 -0
  6. package/dist/constants/chain-commands.constant.js +35 -0
  7. package/dist/constants/index.d.ts +29 -0
  8. package/dist/constants/index.js +39 -0
  9. package/dist/constants/ingredient-commands.constant.d.ts +38 -0
  10. package/dist/constants/ingredient-commands.constant.js +38 -0
  11. package/dist/constants/order-commands.constant.d.ts +34 -0
  12. package/dist/constants/order-commands.constant.js +34 -0
  13. package/dist/constants/payment-commands.constant.d.ts +31 -0
  14. package/dist/constants/payment-commands.constant.js +31 -0
  15. package/dist/constants/payment-events.constant.d.ts +17 -0
  16. package/dist/constants/payment-events.constant.js +17 -0
  17. package/dist/constants/product-commands.constant.d.ts +119 -0
  18. package/dist/constants/product-commands.constant.js +126 -0
  19. package/dist/constants/product-events.constant.d.ts +32 -0
  20. package/dist/constants/product-events.constant.js +32 -0
  21. package/dist/constants/question-commands.constant.d.ts +43 -0
  22. package/dist/constants/question-commands.constant.js +43 -0
  23. package/dist/constants/restaurant-commands.constant.d.ts +33 -0
  24. package/dist/constants/restaurant-commands.constant.js +33 -0
  25. package/dist/constants/tag-commands.constant.d.ts +44 -0
  26. package/dist/constants/tag-commands.constant.js +44 -0
  27. package/dist/dtos/auth/index.d.ts +10 -0
  28. package/dist/dtos/auth/index.js +10 -0
  29. package/dist/dtos/auth/login-user.dto.d.ts +24 -0
  30. package/dist/dtos/auth/login-user.dto.js +44 -0
  31. package/dist/dtos/auth/register-user.dto.d.ts +30 -0
  32. package/dist/dtos/auth/register-user.dto.js +56 -0
  33. package/dist/dtos/categories/create-category.dto.d.ts +38 -0
  34. package/dist/dtos/categories/create-category.dto.js +69 -0
  35. package/dist/dtos/categories/delete-category.dto.d.ts +24 -0
  36. package/dist/dtos/categories/delete-category.dto.js +44 -0
  37. package/dist/dtos/categories/index.d.ts +11 -0
  38. package/dist/dtos/categories/index.js +11 -0
  39. package/dist/dtos/categories/update-category.dto.d.ts +26 -0
  40. package/dist/dtos/categories/update-category.dto.js +48 -0
  41. package/dist/dtos/chain/create-chain.dto.d.ts +43 -0
  42. package/dist/dtos/chain/create-chain.dto.js +75 -0
  43. package/dist/dtos/chain/delete-chain.dto.d.ts +24 -0
  44. package/dist/dtos/chain/delete-chain.dto.js +44 -0
  45. package/dist/dtos/chain/index.d.ts +11 -0
  46. package/dist/dtos/chain/index.js +11 -0
  47. package/dist/dtos/chain/update-chain.dto.d.ts +26 -0
  48. package/dist/dtos/chain/update-chain.dto.js +48 -0
  49. package/dist/dtos/common/index.d.ts +9 -0
  50. package/dist/dtos/common/index.js +9 -0
  51. package/dist/dtos/common/pagination.dto.d.ts +27 -0
  52. package/dist/dtos/common/pagination.dto.js +50 -0
  53. package/dist/dtos/index.d.ts +28 -0
  54. package/dist/dtos/index.js +40 -0
  55. package/dist/dtos/ingredients/create-ingredient.dto.d.ts +31 -0
  56. package/dist/dtos/ingredients/create-ingredient.dto.js +58 -0
  57. package/dist/dtos/ingredients/delete-ingredient.dto.d.ts +24 -0
  58. package/dist/dtos/ingredients/delete-ingredient.dto.js +44 -0
  59. package/dist/dtos/ingredients/index.d.ts +12 -0
  60. package/dist/dtos/ingredients/index.js +12 -0
  61. package/dist/dtos/ingredients/search-by-name.dto.d.ts +18 -0
  62. package/dist/dtos/ingredients/search-by-name.dto.js +33 -0
  63. package/dist/dtos/ingredients/update-ingredient.dto.d.ts +26 -0
  64. package/dist/dtos/ingredients/update-ingredient.dto.js +48 -0
  65. package/dist/dtos/orders/change-order-status.dto.d.ts +25 -0
  66. package/dist/dtos/orders/change-order-status.dto.js +43 -0
  67. package/dist/dtos/orders/create-order.dto.d.ts +62 -0
  68. package/dist/dtos/orders/create-order.dto.js +111 -0
  69. package/dist/dtos/orders/index.d.ts +14 -0
  70. package/dist/dtos/orders/index.js +14 -0
  71. package/dist/dtos/orders/order-item.dto.d.ts +65 -0
  72. package/dist/dtos/orders/order-item.dto.js +120 -0
  73. package/dist/dtos/orders/order-pagination.dto.d.ts +19 -0
  74. package/dist/dtos/orders/order-pagination.dto.js +34 -0
  75. package/dist/dtos/orders/paid-order.dto.d.ts +30 -0
  76. package/dist/dtos/orders/paid-order.dto.js +54 -0
  77. package/dist/dtos/orders/update-order.dto.d.ts +13 -0
  78. package/dist/dtos/orders/update-order.dto.js +13 -0
  79. package/dist/dtos/payments/index.d.ts +11 -0
  80. package/dist/dtos/payments/index.js +11 -0
  81. package/dist/dtos/payments/payment-session-item.dto.d.ts +70 -0
  82. package/dist/dtos/payments/payment-session-item.dto.js +129 -0
  83. package/dist/dtos/payments/payment-session.dto.d.ts +63 -0
  84. package/dist/dtos/payments/payment-session.dto.js +111 -0
  85. package/dist/dtos/payments/webhook-data.dto.d.ts +39 -0
  86. package/dist/dtos/payments/webhook-data.dto.js +68 -0
  87. package/dist/dtos/products/create-product.dto.d.ts +54 -0
  88. package/dist/dtos/products/create-product.dto.js +99 -0
  89. package/dist/dtos/products/delete-product.dto.d.ts +24 -0
  90. package/dist/dtos/products/delete-product.dto.js +44 -0
  91. package/dist/dtos/products/index.d.ts +12 -0
  92. package/dist/dtos/products/index.js +13 -0
  93. package/dist/dtos/products/submodules/index.d.ts +6 -0
  94. package/dist/dtos/products/submodules/index.js +7 -0
  95. package/dist/dtos/products/submodules/product-image/bulk-create-product-image.dto.d.ts +26 -0
  96. package/dist/dtos/products/submodules/product-image/bulk-create-product-image.dto.js +50 -0
  97. package/dist/dtos/products/submodules/product-image/create-product-image.dto.d.ts +32 -0
  98. package/dist/dtos/products/submodules/product-image/create-product-image.dto.js +59 -0
  99. package/dist/dtos/products/submodules/product-image/index.d.ts +12 -0
  100. package/dist/dtos/products/submodules/product-image/index.js +12 -0
  101. package/dist/dtos/products/submodules/product-image/set-primary-image.dto.d.ts +24 -0
  102. package/dist/dtos/products/submodules/product-image/set-primary-image.dto.js +46 -0
  103. package/dist/dtos/products/submodules/product-image/update-product-image.dto.d.ts +30 -0
  104. package/dist/dtos/products/submodules/product-image/update-product-image.dto.js +57 -0
  105. package/dist/dtos/products/submodules/product-question/create-product-question.dto.d.ts +40 -0
  106. package/dist/dtos/products/submodules/product-question/create-product-question.dto.js +76 -0
  107. package/dist/dtos/products/submodules/product-question/find-by-product-id-and-type.dto.d.ts +25 -0
  108. package/dist/dtos/products/submodules/product-question/find-by-product-id-and-type.dto.js +47 -0
  109. package/dist/dtos/products/submodules/product-question/index.d.ts +12 -0
  110. package/dist/dtos/products/submodules/product-question/index.js +12 -0
  111. package/dist/dtos/products/submodules/product-question/replace-by-product-id.dto.d.ts +27 -0
  112. package/dist/dtos/products/submodules/product-question/replace-by-product-id.dto.js +51 -0
  113. package/dist/dtos/products/submodules/product-question/update-product-question.dto.d.ts +32 -0
  114. package/dist/dtos/products/submodules/product-question/update-product-question.dto.js +63 -0
  115. package/dist/dtos/products/submodules/product-recipe/create-product-recipe.dto.d.ts +38 -0
  116. package/dist/dtos/products/submodules/product-recipe/create-product-recipe.dto.js +70 -0
  117. package/dist/dtos/products/submodules/product-recipe/index.d.ts +11 -0
  118. package/dist/dtos/products/submodules/product-recipe/index.js +11 -0
  119. package/dist/dtos/products/submodules/product-recipe/replace-by-product-id.dto.d.ts +27 -0
  120. package/dist/dtos/products/submodules/product-recipe/replace-by-product-id.dto.js +51 -0
  121. package/dist/dtos/products/submodules/product-recipe/update-product-recipe.dto.d.ts +37 -0
  122. package/dist/dtos/products/submodules/product-recipe/update-product-recipe.dto.js +71 -0
  123. package/dist/dtos/products/submodules/product-schedule/create-product-schedule.dto.d.ts +38 -0
  124. package/dist/dtos/products/submodules/product-schedule/create-product-schedule.dto.js +78 -0
  125. package/dist/dtos/products/submodules/product-schedule/index.d.ts +12 -0
  126. package/dist/dtos/products/submodules/product-schedule/index.js +12 -0
  127. package/dist/dtos/products/submodules/product-schedule/is-available-at-time.dto.d.ts +31 -0
  128. package/dist/dtos/products/submodules/product-schedule/is-available-at-time.dto.js +60 -0
  129. package/dist/dtos/products/submodules/product-schedule/replace-by-product-id.dto.d.ts +27 -0
  130. package/dist/dtos/products/submodules/product-schedule/replace-by-product-id.dto.js +51 -0
  131. package/dist/dtos/products/submodules/product-schedule/update-product-schedule.dto.d.ts +38 -0
  132. package/dist/dtos/products/submodules/product-schedule/update-product-schedule.dto.js +79 -0
  133. package/dist/dtos/products/submodules/product-size/create-product-size.dto.d.ts +39 -0
  134. package/dist/dtos/products/submodules/product-size/create-product-size.dto.js +73 -0
  135. package/dist/dtos/products/submodules/product-size/index.d.ts +12 -0
  136. package/dist/dtos/products/submodules/product-size/index.js +12 -0
  137. package/dist/dtos/products/submodules/product-size/product-size-data.dto.d.ts +32 -0
  138. package/dist/dtos/products/submodules/product-size/product-size-data.dto.js +60 -0
  139. package/dist/dtos/products/submodules/product-size/replace-by-product-id.dto.d.ts +27 -0
  140. package/dist/dtos/products/submodules/product-size/replace-by-product-id.dto.js +51 -0
  141. package/dist/dtos/products/submodules/product-size/update-product-size.dto.d.ts +37 -0
  142. package/dist/dtos/products/submodules/product-size/update-product-size.dto.js +72 -0
  143. package/dist/dtos/products/submodules/product-tag/create-product-tag.dto.d.ts +24 -0
  144. package/dist/dtos/products/submodules/product-tag/create-product-tag.dto.js +46 -0
  145. package/dist/dtos/products/submodules/product-tag/find-product-tag.dto.d.ts +24 -0
  146. package/dist/dtos/products/submodules/product-tag/find-product-tag.dto.js +46 -0
  147. package/dist/dtos/products/submodules/product-tag/index.d.ts +12 -0
  148. package/dist/dtos/products/submodules/product-tag/index.js +12 -0
  149. package/dist/dtos/products/submodules/product-tag/remove-product-tag.dto.d.ts +24 -0
  150. package/dist/dtos/products/submodules/product-tag/remove-product-tag.dto.js +46 -0
  151. package/dist/dtos/products/submodules/product-tag/replace-by-product-id.dto.d.ts +26 -0
  152. package/dist/dtos/products/submodules/product-tag/replace-by-product-id.dto.js +48 -0
  153. package/dist/dtos/products/update-product.dto.d.ts +27 -0
  154. package/dist/dtos/products/update-product.dto.js +48 -0
  155. package/dist/dtos/questions/create-question.dto.d.ts +54 -0
  156. package/dist/dtos/questions/create-question.dto.js +96 -0
  157. package/dist/dtos/questions/delete-question.dto.d.ts +24 -0
  158. package/dist/dtos/questions/delete-question.dto.js +44 -0
  159. package/dist/dtos/questions/index.d.ts +12 -0
  160. package/dist/dtos/questions/index.js +12 -0
  161. package/dist/dtos/questions/search-by-name.dto.d.ts +18 -0
  162. package/dist/dtos/questions/search-by-name.dto.js +33 -0
  163. package/dist/dtos/questions/update-question.dto.d.ts +26 -0
  164. package/dist/dtos/questions/update-question.dto.js +48 -0
  165. package/dist/dtos/restaurants/create-restaurant.dto.d.ts +57 -0
  166. package/dist/dtos/restaurants/create-restaurant.dto.js +100 -0
  167. package/dist/dtos/restaurants/delete-restaurant.dto.d.ts +24 -0
  168. package/dist/dtos/restaurants/delete-restaurant.dto.js +44 -0
  169. package/dist/dtos/restaurants/index.d.ts +11 -0
  170. package/dist/dtos/restaurants/index.js +11 -0
  171. package/dist/dtos/restaurants/update-restaurant.dto.d.ts +26 -0
  172. package/dist/dtos/restaurants/update-restaurant.dto.js +48 -0
  173. package/dist/dtos/tags/create-tag.dto.d.ts +24 -0
  174. package/dist/dtos/tags/create-tag.dto.js +46 -0
  175. package/dist/dtos/tags/delete-tag.dto.d.ts +24 -0
  176. package/dist/dtos/tags/delete-tag.dto.js +44 -0
  177. package/dist/dtos/tags/index.d.ts +12 -0
  178. package/dist/dtos/tags/index.js +12 -0
  179. package/dist/dtos/tags/search-by-name.dto.d.ts +18 -0
  180. package/dist/dtos/tags/search-by-name.dto.js +33 -0
  181. package/dist/dtos/tags/update-tag.dto.d.ts +26 -0
  182. package/dist/dtos/tags/update-tag.dto.js +48 -0
  183. package/dist/dtos/translations/create-translation.dto.d.ts +36 -0
  184. package/dist/dtos/translations/create-translation.dto.js +74 -0
  185. package/dist/dtos/translations/delete-translation.dto.d.ts +10 -0
  186. package/dist/dtos/translations/delete-translation.dto.js +25 -0
  187. package/dist/dtos/translations/find-translations-by-entity.dto.d.ts +16 -0
  188. package/dist/dtos/translations/find-translations-by-entity.dto.js +35 -0
  189. package/dist/dtos/translations/index.d.ts +4 -0
  190. package/dist/dtos/translations/index.js +4 -0
  191. package/dist/dtos/translations/update-translation.dto.d.ts +12 -0
  192. package/dist/dtos/translations/update-translation.dto.js +27 -0
  193. package/dist/enums/auth-provider.enum.d.ts +68 -0
  194. package/dist/enums/auth-provider.enum.js +69 -0
  195. package/dist/enums/currency.enum.d.ts +21 -0
  196. package/dist/enums/currency.enum.js +22 -0
  197. package/dist/enums/http-status-code.enum.d.ts +78 -0
  198. package/dist/enums/http-status-code.enum.js +84 -0
  199. package/dist/enums/http-status-text.enum.d.ts +91 -0
  200. package/dist/enums/http-status-text.enum.js +92 -0
  201. package/dist/enums/index.d.ts +12 -0
  202. package/dist/enums/index.js +12 -0
  203. package/dist/enums/language-code.enum.d.ts +19 -0
  204. package/dist/enums/language-code.enum.js +20 -0
  205. package/dist/enums/order-status.enum.d.ts +68 -0
  206. package/dist/enums/order-status.enum.js +69 -0
  207. package/dist/enums/order-type.enum.d.ts +45 -0
  208. package/dist/enums/order-type.enum.js +46 -0
  209. package/dist/enums/product-status.enum.d.ts +55 -0
  210. package/dist/enums/product-status.enum.js +56 -0
  211. package/dist/enums/question-product-type.enum.d.ts +37 -0
  212. package/dist/enums/question-product-type.enum.js +38 -0
  213. package/dist/enums/question-type.enum.d.ts +52 -0
  214. package/dist/enums/question-type.enum.js +53 -0
  215. package/dist/enums/role.enum.d.ts +67 -0
  216. package/dist/enums/role.enum.js +68 -0
  217. package/dist/enums/translation-entity-type.enum.d.ts +42 -0
  218. package/dist/enums/translation-entity-type.enum.js +43 -0
  219. package/dist/index.d.ts +5 -0
  220. package/dist/index.js +5 -0
  221. package/dist/interfaces/auth/access-token.interface.d.ts +24 -0
  222. package/dist/interfaces/auth/access-token.interface.js +1 -0
  223. package/dist/interfaces/auth/access-user.interface.d.ts +17 -0
  224. package/dist/interfaces/auth/access-user.interface.js +1 -0
  225. package/dist/interfaces/auth/account.interface.d.ts +85 -0
  226. package/dist/interfaces/auth/account.interface.js +1 -0
  227. package/dist/interfaces/auth/full-token.interface.d.ts +12 -0
  228. package/dist/interfaces/auth/full-token.interface.js +1 -0
  229. package/dist/interfaces/auth/index.d.ts +17 -0
  230. package/dist/interfaces/auth/index.js +18 -0
  231. package/dist/interfaces/auth/payload-jwt.interface.d.ts +39 -0
  232. package/dist/interfaces/auth/payload-jwt.interface.js +1 -0
  233. package/dist/interfaces/auth/refresh-token.interface.d.ts +25 -0
  234. package/dist/interfaces/auth/refresh-token.interface.js +1 -0
  235. package/dist/interfaces/auth/responses/auth-response.interface.d.ts +37 -0
  236. package/dist/interfaces/auth/responses/auth-response.interface.js +1 -0
  237. package/dist/interfaces/auth/responses/index.d.ts +2 -0
  238. package/dist/interfaces/auth/responses/index.js +2 -0
  239. package/dist/interfaces/auth/responses/refresh-token-response.interface.d.ts +29 -0
  240. package/dist/interfaces/auth/responses/refresh-token-response.interface.js +1 -0
  241. package/dist/interfaces/auth/user.interface.d.ts +53 -0
  242. package/dist/interfaces/auth/user.interface.js +1 -0
  243. package/dist/interfaces/auth/validate-user.interface.d.ts +36 -0
  244. package/dist/interfaces/auth/validate-user.interface.js +1 -0
  245. package/dist/interfaces/categories/categories-list-response.interface.d.ts +17 -0
  246. package/dist/interfaces/categories/categories-list-response.interface.js +1 -0
  247. package/dist/interfaces/categories/category-response.interface.d.ts +16 -0
  248. package/dist/interfaces/categories/category-response.interface.js +1 -0
  249. package/dist/interfaces/categories/category.interface.d.ts +76 -0
  250. package/dist/interfaces/categories/category.interface.js +1 -0
  251. package/dist/interfaces/categories/index.d.ts +11 -0
  252. package/dist/interfaces/categories/index.js +11 -0
  253. package/dist/interfaces/chains/chain-response.interface.d.ts +16 -0
  254. package/dist/interfaces/chains/chain-response.interface.js +1 -0
  255. package/dist/interfaces/chains/chain.interface.d.ts +79 -0
  256. package/dist/interfaces/chains/chain.interface.js +1 -0
  257. package/dist/interfaces/chains/chains-list-response.interface.d.ts +17 -0
  258. package/dist/interfaces/chains/chains-list-response.interface.js +1 -0
  259. package/dist/interfaces/chains/index.d.ts +11 -0
  260. package/dist/interfaces/chains/index.js +11 -0
  261. package/dist/interfaces/common/api-error-response.interface.d.ts +26 -0
  262. package/dist/interfaces/common/api-error-response.interface.js +1 -0
  263. package/dist/interfaces/common/api-error.interface.d.ts +43 -0
  264. package/dist/interfaces/common/api-error.interface.js +1 -0
  265. package/dist/interfaces/common/api-pagination-response.interface.d.ts +9 -0
  266. package/dist/interfaces/common/api-pagination-response.interface.js +1 -0
  267. package/dist/interfaces/common/api-response.interface.d.ts +36 -0
  268. package/dist/interfaces/common/api-response.interface.js +1 -0
  269. package/dist/interfaces/common/index.d.ts +13 -0
  270. package/dist/interfaces/common/index.js +13 -0
  271. package/dist/interfaces/common/rpc-error.interface.d.ts +36 -0
  272. package/dist/interfaces/common/rpc-error.interface.js +1 -0
  273. package/dist/interfaces/index.d.ts +30 -0
  274. package/dist/interfaces/index.js +42 -0
  275. package/dist/interfaces/ingredients/index.d.ts +11 -0
  276. package/dist/interfaces/ingredients/index.js +11 -0
  277. package/dist/interfaces/ingredients/ingredient-response.interface.d.ts +16 -0
  278. package/dist/interfaces/ingredients/ingredient-response.interface.js +1 -0
  279. package/dist/interfaces/ingredients/ingredient.interface.d.ts +79 -0
  280. package/dist/interfaces/ingredients/ingredient.interface.js +1 -0
  281. package/dist/interfaces/ingredients/ingredients-list-response.interface.d.ts +17 -0
  282. package/dist/interfaces/ingredients/ingredients-list-response.interface.js +1 -0
  283. package/dist/interfaces/orders/index.d.ts +14 -0
  284. package/dist/interfaces/orders/index.js +15 -0
  285. package/dist/interfaces/orders/order-created.interface.d.ts +46 -0
  286. package/dist/interfaces/orders/order-created.interface.js +1 -0
  287. package/dist/interfaces/orders/order-creation-strategy.interface.d.ts +17 -0
  288. package/dist/interfaces/orders/order-creation-strategy.interface.js +1 -0
  289. package/dist/interfaces/orders/order-item.interface.d.ts +70 -0
  290. package/dist/interfaces/orders/order-item.interface.js +1 -0
  291. package/dist/interfaces/orders/order-with-products.interface.d.ts +34 -0
  292. package/dist/interfaces/orders/order-with-products.interface.js +1 -0
  293. package/dist/interfaces/orders/order.interface.d.ts +114 -0
  294. package/dist/interfaces/orders/order.interface.js +1 -0
  295. package/dist/interfaces/orders/responses/change-order-status-response.interface.d.ts +5 -0
  296. package/dist/interfaces/orders/responses/change-order-status-response.interface.js +1 -0
  297. package/dist/interfaces/orders/responses/create-order-response.interface.d.ts +7 -0
  298. package/dist/interfaces/orders/responses/create-order-response.interface.js +1 -0
  299. package/dist/interfaces/orders/responses/index.d.ts +4 -0
  300. package/dist/interfaces/orders/responses/index.js +4 -0
  301. package/dist/interfaces/orders/responses/order-with-products-response.interface.d.ts +5 -0
  302. package/dist/interfaces/orders/responses/order-with-products-response.interface.js +1 -0
  303. package/dist/interfaces/orders/responses/orders-list-response.interface.d.ts +6 -0
  304. package/dist/interfaces/orders/responses/orders-list-response.interface.js +1 -0
  305. package/dist/interfaces/payments/audit-storage-strategy.interface.d.ts +19 -0
  306. package/dist/interfaces/payments/audit-storage-strategy.interface.js +1 -0
  307. package/dist/interfaces/payments/culqi-session-response.interface.d.ts +7 -0
  308. package/dist/interfaces/payments/culqi-session-response.interface.js +1 -0
  309. package/dist/interfaces/payments/index.d.ts +17 -0
  310. package/dist/interfaces/payments/index.js +18 -0
  311. package/dist/interfaces/payments/payment-audit-data.interface.d.ts +81 -0
  312. package/dist/interfaces/payments/payment-audit-data.interface.js +1 -0
  313. package/dist/interfaces/payments/payment-method-config.interface.d.ts +86 -0
  314. package/dist/interfaces/payments/payment-method-config.interface.js +1 -0
  315. package/dist/interfaces/payments/payment-provider.interface.d.ts +27 -0
  316. package/dist/interfaces/payments/payment-provider.interface.js +1 -0
  317. package/dist/interfaces/payments/payment-session-item.interface.d.ts +30 -0
  318. package/dist/interfaces/payments/payment-session-item.interface.js +1 -0
  319. package/dist/interfaces/payments/payment-succeeded-payload.interface.d.ts +29 -0
  320. package/dist/interfaces/payments/payment-succeeded-payload.interface.js +1 -0
  321. package/dist/interfaces/payments/responses/payment-callback-response.interface.d.ts +8 -0
  322. package/dist/interfaces/payments/responses/payment-callback-response.interface.js +1 -0
  323. package/dist/interfaces/payments/stripe-session-response.interface.d.ts +29 -0
  324. package/dist/interfaces/payments/stripe-session-response.interface.js +1 -0
  325. package/dist/interfaces/products/index.d.ts +16 -0
  326. package/dist/interfaces/products/index.js +17 -0
  327. package/dist/interfaces/products/product-image.interface.d.ts +55 -0
  328. package/dist/interfaces/products/product-image.interface.js +1 -0
  329. package/dist/interfaces/products/product-recipe.interface.d.ts +50 -0
  330. package/dist/interfaces/products/product-recipe.interface.js +1 -0
  331. package/dist/interfaces/products/product-schedule.interface.d.ts +45 -0
  332. package/dist/interfaces/products/product-schedule.interface.js +1 -0
  333. package/dist/interfaces/products/product-size.interface.d.ts +62 -0
  334. package/dist/interfaces/products/product-size.interface.js +1 -0
  335. package/dist/interfaces/products/product-tag.interface.d.ts +28 -0
  336. package/dist/interfaces/products/product-tag.interface.js +1 -0
  337. package/dist/interfaces/products/product-translation.interface.d.ts +43 -0
  338. package/dist/interfaces/products/product-translation.interface.js +1 -0
  339. package/dist/interfaces/products/product.interface.d.ts +113 -0
  340. package/dist/interfaces/products/product.interface.js +1 -0
  341. package/dist/interfaces/products/response/complete-product-response.interface.d.ts +5 -0
  342. package/dist/interfaces/products/response/complete-product-response.interface.js +1 -0
  343. package/dist/interfaces/products/response/index.d.ts +6 -0
  344. package/dist/interfaces/products/response/index.js +6 -0
  345. package/dist/interfaces/products/response/product-response.interface.d.ts +5 -0
  346. package/dist/interfaces/products/response/product-response.interface.js +1 -0
  347. package/dist/interfaces/products/response/products-list-response.interface.d.ts +6 -0
  348. package/dist/interfaces/products/response/products-list-response.interface.js +1 -0
  349. package/dist/interfaces/products/response/simple-product-response.interface.d.ts +3 -0
  350. package/dist/interfaces/products/response/simple-product-response.interface.js +1 -0
  351. package/dist/interfaces/products/response/sub-resources/create-tag-response.interface.d.ts +4 -0
  352. package/dist/interfaces/products/response/sub-resources/create-tag-response.interface.js +1 -0
  353. package/dist/interfaces/products/response/sub-resources/delete-sub-resource-response.interface.d.ts +9 -0
  354. package/dist/interfaces/products/response/sub-resources/delete-sub-resource-response.interface.js +1 -0
  355. package/dist/interfaces/products/response/sub-resources/find-product-image-response.interface.d.ts +4 -0
  356. package/dist/interfaces/products/response/sub-resources/find-product-image-response.interface.js +1 -0
  357. package/dist/interfaces/products/response/sub-resources/find-product-question-response.interface.d.ts +4 -0
  358. package/dist/interfaces/products/response/sub-resources/find-product-question-response.interface.js +1 -0
  359. package/dist/interfaces/products/response/sub-resources/find-product-recipe-response.interface.d.ts +4 -0
  360. package/dist/interfaces/products/response/sub-resources/find-product-recipe-response.interface.js +1 -0
  361. package/dist/interfaces/products/response/sub-resources/find-product-schedule-response.interface.d.ts +4 -0
  362. package/dist/interfaces/products/response/sub-resources/find-product-schedule-response.interface.js +1 -0
  363. package/dist/interfaces/products/response/sub-resources/find-product-size-response.interface.d.ts +4 -0
  364. package/dist/interfaces/products/response/sub-resources/find-product-size-response.interface.js +1 -0
  365. package/dist/interfaces/products/response/sub-resources/find-product-tag-response.interface.d.ts +4 -0
  366. package/dist/interfaces/products/response/sub-resources/find-product-tag-response.interface.js +1 -0
  367. package/dist/interfaces/products/response/sub-resources/find-sub-resource-response.interface.d.ts +4 -0
  368. package/dist/interfaces/products/response/sub-resources/find-sub-resource-response.interface.js +1 -0
  369. package/dist/interfaces/products/response/sub-resources/index.d.ts +25 -0
  370. package/dist/interfaces/products/response/sub-resources/index.js +25 -0
  371. package/dist/interfaces/products/response/sub-resources/list-product-images-response.interface.d.ts +4 -0
  372. package/dist/interfaces/products/response/sub-resources/list-product-images-response.interface.js +1 -0
  373. package/dist/interfaces/products/response/sub-resources/list-product-questions-response.interface.d.ts +4 -0
  374. package/dist/interfaces/products/response/sub-resources/list-product-questions-response.interface.js +1 -0
  375. package/dist/interfaces/products/response/sub-resources/list-product-recipes-response.interface.d.ts +4 -0
  376. package/dist/interfaces/products/response/sub-resources/list-product-recipes-response.interface.js +1 -0
  377. package/dist/interfaces/products/response/sub-resources/list-product-schedules-response.interface.d.ts +4 -0
  378. package/dist/interfaces/products/response/sub-resources/list-product-schedules-response.interface.js +1 -0
  379. package/dist/interfaces/products/response/sub-resources/list-product-sizes-response.interface.d.ts +4 -0
  380. package/dist/interfaces/products/response/sub-resources/list-product-sizes-response.interface.js +1 -0
  381. package/dist/interfaces/products/response/sub-resources/list-sub-resource-response.interface.d.ts +8 -0
  382. package/dist/interfaces/products/response/sub-resources/list-sub-resource-response.interface.js +1 -0
  383. package/dist/interfaces/products/response/sub-resources/product-schedule-availability.interface.d.ts +7 -0
  384. package/dist/interfaces/products/response/sub-resources/product-schedule-availability.interface.js +1 -0
  385. package/dist/interfaces/products/response/sub-resources/question-relationship.interface.d.ts +7 -0
  386. package/dist/interfaces/products/response/sub-resources/question-relationship.interface.js +1 -0
  387. package/dist/interfaces/products/response/sub-resources/recipe-relationship.interface.d.ts +9 -0
  388. package/dist/interfaces/products/response/sub-resources/recipe-relationship.interface.js +1 -0
  389. package/dist/interfaces/products/response/sub-resources/replace-sub-products-response.interface.d.ts +9 -0
  390. package/dist/interfaces/products/response/sub-resources/replace-sub-products-response.interface.js +1 -0
  391. package/dist/interfaces/products/response/sub-resources/sub-resource-response.interface.d.ts +10 -0
  392. package/dist/interfaces/products/response/sub-resources/sub-resource-response.interface.js +1 -0
  393. package/dist/interfaces/products/response/sub-resources/write-image-response.interface.d.ts +12 -0
  394. package/dist/interfaces/products/response/sub-resources/write-image-response.interface.js +1 -0
  395. package/dist/interfaces/products/response/sub-resources/write-question-product-response.interface.d.ts +4 -0
  396. package/dist/interfaces/products/response/sub-resources/write-question-product-response.interface.js +1 -0
  397. package/dist/interfaces/products/response/sub-resources/write-recipe-response.interface.d.ts +4 -0
  398. package/dist/interfaces/products/response/sub-resources/write-recipe-response.interface.js +1 -0
  399. package/dist/interfaces/products/response/sub-resources/write-schedule-response.interface.d.ts +4 -0
  400. package/dist/interfaces/products/response/sub-resources/write-schedule-response.interface.js +1 -0
  401. package/dist/interfaces/products/response/sub-resources/write-size-response.interface.d.ts +4 -0
  402. package/dist/interfaces/products/response/sub-resources/write-size-response.interface.js +1 -0
  403. package/dist/interfaces/questions/index.d.ts +3 -0
  404. package/dist/interfaces/questions/index.js +3 -0
  405. package/dist/interfaces/questions/question-response.interface.d.ts +16 -0
  406. package/dist/interfaces/questions/question-response.interface.js +1 -0
  407. package/dist/interfaces/questions/question.interface.d.ts +15 -0
  408. package/dist/interfaces/questions/question.interface.js +1 -0
  409. package/dist/interfaces/questions/questions-list-response.interface.d.ts +17 -0
  410. package/dist/interfaces/questions/questions-list-response.interface.js +1 -0
  411. package/dist/interfaces/restaurants/index.d.ts +11 -0
  412. package/dist/interfaces/restaurants/index.js +11 -0
  413. package/dist/interfaces/restaurants/restaurant-response.interface.d.ts +16 -0
  414. package/dist/interfaces/restaurants/restaurant-response.interface.js +1 -0
  415. package/dist/interfaces/restaurants/restaurant.interface.d.ts +96 -0
  416. package/dist/interfaces/restaurants/restaurant.interface.js +1 -0
  417. package/dist/interfaces/restaurants/restaurants-list-response.interface.d.ts +17 -0
  418. package/dist/interfaces/restaurants/restaurants-list-response.interface.js +1 -0
  419. package/dist/interfaces/tags/index.d.ts +11 -0
  420. package/dist/interfaces/tags/index.js +11 -0
  421. package/dist/interfaces/tags/tag-response.interface.d.ts +16 -0
  422. package/dist/interfaces/tags/tag-response.interface.js +1 -0
  423. package/dist/interfaces/tags/tag.interface.d.ts +64 -0
  424. package/dist/interfaces/tags/tag.interface.js +1 -0
  425. package/dist/interfaces/tags/tags-list-response.interface.d.ts +17 -0
  426. package/dist/interfaces/tags/tags-list-response.interface.js +1 -0
  427. package/dist/interfaces/translations/index.d.ts +11 -0
  428. package/dist/interfaces/translations/index.js +11 -0
  429. package/dist/interfaces/translations/translation-response.interface.d.ts +16 -0
  430. package/dist/interfaces/translations/translation-response.interface.js +1 -0
  431. package/dist/interfaces/translations/translation.interface.d.ts +77 -0
  432. package/dist/interfaces/translations/translation.interface.js +1 -0
  433. package/dist/interfaces/translations/translations-list-response.interface.d.ts +16 -0
  434. package/dist/interfaces/translations/translations-list-response.interface.js +1 -0
  435. package/dist/types/index.d.ts +1 -0
  436. package/dist/types/index.js +1 -0
  437. package/dist/types/order-mode.type.d.ts +14 -0
  438. package/dist/types/order-mode.type.js +1 -0
  439. package/package.json +27 -0
  440. package/tsconfig.json +25 -0
  441. package/tsconfig.node.json +9 -0
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Auth service command subjects.
3
+ *
4
+ * Centralized constant containing all subject/message keys
5
+ * for commands handled by the Auth microservice.
6
+ * Each key corresponds to a MessagePattern used in inter-service communication.
7
+ *
8
+ * Usage examples:
9
+ * - AUTH_COMMANDS.REGISTER_USER: Subject for registering a new user.
10
+ * - AUTH_COMMANDS.LOGIN_USER: Subject for user login.
11
+ * - AUTH_COMMANDS.REFRESH_TOKEN: Subject for refreshing user JWT tokens.
12
+ *
13
+ * Keeping these values centralized ensures consistency,
14
+ * discoverability, and maintainability across the codebase.
15
+ *
16
+ * @since 2.0.0
17
+ */
18
+ export declare const AUTH_COMMANDS: {
19
+ /** Register a new user */
20
+ readonly REGISTER_USER: "auth.register-user";
21
+ /** Log in an existing user */
22
+ readonly LOGIN_USER: "auth.login-user";
23
+ /** Refresh the user's authentication token (JWT) */
24
+ readonly REFRESH_TOKEN: "auth.refresh-token";
25
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Auth service command subjects.
3
+ *
4
+ * Centralized constant containing all subject/message keys
5
+ * for commands handled by the Auth microservice.
6
+ * Each key corresponds to a MessagePattern used in inter-service communication.
7
+ *
8
+ * Usage examples:
9
+ * - AUTH_COMMANDS.REGISTER_USER: Subject for registering a new user.
10
+ * - AUTH_COMMANDS.LOGIN_USER: Subject for user login.
11
+ * - AUTH_COMMANDS.REFRESH_TOKEN: Subject for refreshing user JWT tokens.
12
+ *
13
+ * Keeping these values centralized ensures consistency,
14
+ * discoverability, and maintainability across the codebase.
15
+ *
16
+ * @since 2.0.0
17
+ */
18
+ export const AUTH_COMMANDS = {
19
+ /** Register a new user */
20
+ REGISTER_USER: 'auth.register-user',
21
+ /** Log in an existing user */
22
+ LOGIN_USER: 'auth.login-user',
23
+ /** Refresh the user's authentication token (JWT) */
24
+ REFRESH_TOKEN: 'auth.refresh-token',
25
+ };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Category service command subjects.
3
+ *
4
+ * Centralized constant with all subject/message keys
5
+ * for commands between client(s) and the Category microservice.
6
+ * Each key corresponds to a MessagePattern handled by the microservice.
7
+ *
8
+ * Naming convention:
9
+ * - Keys use SCREAMING_SNAKE_CASE.
10
+ * - Subject values use kebab-case between dots, matching the category domain.
11
+ *
12
+ * Usage examples:
13
+ * - CATEGORY_COMMANDS.CREATE: Subject for creating a category.
14
+ * - CATEGORY_COMMANDS.FIND_ALL: Subject for listing all categories (with pagination).
15
+ * - CATEGORY_COMMANDS.FIND_ONE: Subject for retrieving a category by ID.
16
+ * - CATEGORY_COMMANDS.UPDATE: Subject for updating a category.
17
+ * - CATEGORY_COMMANDS.DELETE: Subject for soft deleting a category.
18
+ *
19
+ * Keeping these values centralized ensures consistency, discoverability,
20
+ * and maintainability across the codebase.
21
+ *
22
+ * @since 2.0.0
23
+ */
24
+ export declare const CATEGORY_COMMANDS: {
25
+ /** Create a new category */
26
+ readonly CREATE: "category.create";
27
+ /** Retrieve all categories with pagination support */
28
+ readonly FIND_ALL: "category.find-all";
29
+ /** Retrieve a specific category by ID */
30
+ readonly FIND_ONE: "category.find-one";
31
+ /** Update a category by ID */
32
+ readonly UPDATE: "category.update";
33
+ /** Soft delete a category (mark as inactive) by ID */
34
+ readonly DELETE: "category.delete";
35
+ };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Category service command subjects.
3
+ *
4
+ * Centralized constant with all subject/message keys
5
+ * for commands between client(s) and the Category microservice.
6
+ * Each key corresponds to a MessagePattern handled by the microservice.
7
+ *
8
+ * Naming convention:
9
+ * - Keys use SCREAMING_SNAKE_CASE.
10
+ * - Subject values use kebab-case between dots, matching the category domain.
11
+ *
12
+ * Usage examples:
13
+ * - CATEGORY_COMMANDS.CREATE: Subject for creating a category.
14
+ * - CATEGORY_COMMANDS.FIND_ALL: Subject for listing all categories (with pagination).
15
+ * - CATEGORY_COMMANDS.FIND_ONE: Subject for retrieving a category by ID.
16
+ * - CATEGORY_COMMANDS.UPDATE: Subject for updating a category.
17
+ * - CATEGORY_COMMANDS.DELETE: Subject for soft deleting a category.
18
+ *
19
+ * Keeping these values centralized ensures consistency, discoverability,
20
+ * and maintainability across the codebase.
21
+ *
22
+ * @since 2.0.0
23
+ */
24
+ export const CATEGORY_COMMANDS = {
25
+ /** Create a new category */
26
+ CREATE: 'category.create',
27
+ /** Retrieve all categories with pagination support */
28
+ FIND_ALL: 'category.find-all',
29
+ /** Retrieve a specific category by ID */
30
+ FIND_ONE: 'category.find-one',
31
+ /** Update a category by ID */
32
+ UPDATE: 'category.update',
33
+ /** Soft delete a category (mark as inactive) by ID */
34
+ DELETE: 'category.delete',
35
+ };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Chain service command subjects.
3
+ *
4
+ * Centralized constant with all subject/message keys
5
+ * for commands between client(s) and the Chain microservice.
6
+ * Each key corresponds to a MessagePattern handled by the microservice.
7
+ *
8
+ * Naming convention:
9
+ * - Keys use SCREAMING_SNAKE_CASE.
10
+ * - Subject values use kebab-case between dots, matching the chain domain.
11
+ *
12
+ * Usage examples:
13
+ * - CHAIN_COMMANDS.CREATE: Subject for creating a chain.
14
+ * - CHAIN_COMMANDS.FIND_ALL: Subject for listing all chains (with pagination).
15
+ * - CHAIN_COMMANDS.FIND_ONE: Subject for retrieving a chain by ID.
16
+ * - CHAIN_COMMANDS.UPDATE: Subject for updating a chain.
17
+ * - CHAIN_COMMANDS.DELETE: Subject for deleting a chain.
18
+ *
19
+ * Centralizing these values ensures consistency, discoverability,
20
+ * and maintainability across the codebase.
21
+ *
22
+ * @since 2.0.0
23
+ */
24
+ export declare const CHAIN_COMMANDS: {
25
+ /** Create a new chain */
26
+ readonly CREATE: "chain.create";
27
+ /** Retrieve all chains with pagination support */
28
+ readonly FIND_ALL: "chain.find-all";
29
+ /** Retrieve a specific chain by ID */
30
+ readonly FIND_ONE: "chain.find-one";
31
+ /** Update a chain by ID */
32
+ readonly UPDATE: "chain.update";
33
+ /** Delete a chain by ID */
34
+ readonly DELETE: "chain.delete";
35
+ };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Chain service command subjects.
3
+ *
4
+ * Centralized constant with all subject/message keys
5
+ * for commands between client(s) and the Chain microservice.
6
+ * Each key corresponds to a MessagePattern handled by the microservice.
7
+ *
8
+ * Naming convention:
9
+ * - Keys use SCREAMING_SNAKE_CASE.
10
+ * - Subject values use kebab-case between dots, matching the chain domain.
11
+ *
12
+ * Usage examples:
13
+ * - CHAIN_COMMANDS.CREATE: Subject for creating a chain.
14
+ * - CHAIN_COMMANDS.FIND_ALL: Subject for listing all chains (with pagination).
15
+ * - CHAIN_COMMANDS.FIND_ONE: Subject for retrieving a chain by ID.
16
+ * - CHAIN_COMMANDS.UPDATE: Subject for updating a chain.
17
+ * - CHAIN_COMMANDS.DELETE: Subject for deleting a chain.
18
+ *
19
+ * Centralizing these values ensures consistency, discoverability,
20
+ * and maintainability across the codebase.
21
+ *
22
+ * @since 2.0.0
23
+ */
24
+ export const CHAIN_COMMANDS = {
25
+ /** Create a new chain */
26
+ CREATE: 'chain.create',
27
+ /** Retrieve all chains with pagination support */
28
+ FIND_ALL: 'chain.find-all',
29
+ /** Retrieve a specific chain by ID */
30
+ FIND_ONE: 'chain.find-one',
31
+ /** Update a chain by ID */
32
+ UPDATE: 'chain.update',
33
+ /** Delete a chain by ID */
34
+ DELETE: 'chain.delete',
35
+ };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Centralized exports for all command and event constants.
3
+ *
4
+ * This barrel file exports all constants used for inter-service communication
5
+ * in the QeHay microservices architecture, including:
6
+ * - Command subjects (MessagePattern keys for requests)
7
+ * - Event subjects (domain events emitted by services)
8
+ *
9
+ * Usage examples:
10
+ * - import { AUTH_COMMANDS, ORDER_COMMANDS } from 'looroh-sdk-qhay-interfaces';
11
+ * - import { PRODUCT_EVENTS, PAYMENT_EVENTS } from 'looroh-sdk-qhay-interfaces';
12
+ *
13
+ * Centralizing exports here ensures consistency, discoverability,
14
+ * and maintainability across the codebase.
15
+ *
16
+ * @since 2.0.0
17
+ */
18
+ export * from './auth-commands.constant';
19
+ export * from './category-commands.constant';
20
+ export * from './chain-commands.constant';
21
+ export * from './ingredient-commands.constant';
22
+ export * from './order-commands.constant';
23
+ export * from './payment-commands.constant';
24
+ export * from './payment-events.constant';
25
+ export * from './product-commands.constant';
26
+ export * from './product-events.constant';
27
+ export * from './question-commands.constant';
28
+ export * from './restaurant-commands.constant';
29
+ export * from './tag-commands.constant';
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Centralized exports for all command and event constants.
3
+ *
4
+ * This barrel file exports all constants used for inter-service communication
5
+ * in the QeHay microservices architecture, including:
6
+ * - Command subjects (MessagePattern keys for requests)
7
+ * - Event subjects (domain events emitted by services)
8
+ *
9
+ * Usage examples:
10
+ * - import { AUTH_COMMANDS, ORDER_COMMANDS } from 'looroh-sdk-qhay-interfaces';
11
+ * - import { PRODUCT_EVENTS, PAYMENT_EVENTS } from 'looroh-sdk-qhay-interfaces';
12
+ *
13
+ * Centralizing exports here ensures consistency, discoverability,
14
+ * and maintainability across the codebase.
15
+ *
16
+ * @since 2.0.0
17
+ */
18
+ // Auth commands
19
+ export * from './auth-commands.constant';
20
+ // Category commands
21
+ export * from './category-commands.constant';
22
+ // Chain commands
23
+ export * from './chain-commands.constant';
24
+ // Ingredient commands
25
+ export * from './ingredient-commands.constant';
26
+ // Order commands
27
+ export * from './order-commands.constant';
28
+ // Payment commands and events
29
+ export * from './payment-commands.constant';
30
+ export * from './payment-events.constant';
31
+ // Product commands and events
32
+ export * from './product-commands.constant';
33
+ export * from './product-events.constant';
34
+ // Question commands
35
+ export * from './question-commands.constant';
36
+ // Restaurant commands
37
+ export * from './restaurant-commands.constant';
38
+ // Tag commands
39
+ export * from './tag-commands.constant';
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Ingredient service command subjects.
3
+ *
4
+ * Centralized constant with all subject/message keys
5
+ * for commands between client(s) and the Ingredient microservice.
6
+ * Each key corresponds to a MessagePattern handled by the microservice.
7
+ *
8
+ * Naming convention:
9
+ * - Keys use SCREAMING_SNAKE_CASE.
10
+ * - Subject values use kebab-case between dots, matching the ingredient domain.
11
+ *
12
+ * Usage examples:
13
+ * - INGREDIENT_COMMANDS.CREATE: Subject for creating an ingredient.
14
+ * - INGREDIENT_COMMANDS.FIND_ALL: Subject for listing all ingredients (with pagination).
15
+ * - INGREDIENT_COMMANDS.FIND_ONE: Subject for retrieving an ingredient by ID.
16
+ * - INGREDIENT_COMMANDS.UPDATE: Subject for updating an ingredient.
17
+ * - INGREDIENT_COMMANDS.DELETE: Subject for soft deleting an ingredient.
18
+ * - INGREDIENT_COMMANDS.SEARCH_BY_NAME: Subject for searching ingredients by name.
19
+ *
20
+ * Keeping these values centralized ensures consistency, discoverability,
21
+ * and maintainability across the codebase.
22
+ *
23
+ * @since 2.0.0
24
+ */
25
+ export declare const INGREDIENT_COMMANDS: {
26
+ /** Create a new ingredient */
27
+ readonly CREATE: "ingredient.create";
28
+ /** Retrieve all ingredients with pagination support */
29
+ readonly FIND_ALL: "ingredient.find-all";
30
+ /** Retrieve a specific ingredient by ID */
31
+ readonly FIND_ONE: "ingredient.find-one";
32
+ /** Update an ingredient by ID */
33
+ readonly UPDATE: "ingredient.update";
34
+ /** Soft delete an ingredient (mark as inactive) by ID */
35
+ readonly DELETE: "ingredient.delete";
36
+ /** Search ingredients by name */
37
+ readonly SEARCH_BY_NAME: "ingredient.search-by-name";
38
+ };
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Ingredient service command subjects.
3
+ *
4
+ * Centralized constant with all subject/message keys
5
+ * for commands between client(s) and the Ingredient microservice.
6
+ * Each key corresponds to a MessagePattern handled by the microservice.
7
+ *
8
+ * Naming convention:
9
+ * - Keys use SCREAMING_SNAKE_CASE.
10
+ * - Subject values use kebab-case between dots, matching the ingredient domain.
11
+ *
12
+ * Usage examples:
13
+ * - INGREDIENT_COMMANDS.CREATE: Subject for creating an ingredient.
14
+ * - INGREDIENT_COMMANDS.FIND_ALL: Subject for listing all ingredients (with pagination).
15
+ * - INGREDIENT_COMMANDS.FIND_ONE: Subject for retrieving an ingredient by ID.
16
+ * - INGREDIENT_COMMANDS.UPDATE: Subject for updating an ingredient.
17
+ * - INGREDIENT_COMMANDS.DELETE: Subject for soft deleting an ingredient.
18
+ * - INGREDIENT_COMMANDS.SEARCH_BY_NAME: Subject for searching ingredients by name.
19
+ *
20
+ * Keeping these values centralized ensures consistency, discoverability,
21
+ * and maintainability across the codebase.
22
+ *
23
+ * @since 2.0.0
24
+ */
25
+ export const INGREDIENT_COMMANDS = {
26
+ /** Create a new ingredient */
27
+ CREATE: 'ingredient.create',
28
+ /** Retrieve all ingredients with pagination support */
29
+ FIND_ALL: 'ingredient.find-all',
30
+ /** Retrieve a specific ingredient by ID */
31
+ FIND_ONE: 'ingredient.find-one',
32
+ /** Update an ingredient by ID */
33
+ UPDATE: 'ingredient.update',
34
+ /** Soft delete an ingredient (mark as inactive) by ID */
35
+ DELETE: 'ingredient.delete',
36
+ /** Search ingredients by name */
37
+ SEARCH_BY_NAME: 'ingredient.search-by-name',
38
+ };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Order service command subjects.
3
+ *
4
+ * Centralized constant with all subject/message keys
5
+ * for commands between client(s) and the Order microservice.
6
+ * Each key corresponds to a subject (pattern) handled by the microservice controller.
7
+ *
8
+ * Naming convention:
9
+ * - Keys use SCREAMING_SNAKE_CASE.
10
+ * - Subject values use kebab-case between dots, matching the order domain.
11
+ *
12
+ * Usage examples:
13
+ * - ORDER_COMMANDS.CREATE: Subject for creating an order.
14
+ * - ORDER_COMMANDS.FIND_ALL: Subject for listing all orders.
15
+ * - ORDER_COMMANDS.FIND_ONE: Subject for retrieving a single order by its id.
16
+ * - ORDER_COMMANDS.FIND_ALL_BY_STATUS: Subject for retrieving all orders by status.
17
+ * - ORDER_COMMANDS.CHANGE_STATUS: Subject for changing the status of an order.
18
+ *
19
+ * Maintaining these values in a centralized constant ensures consistency, discoverability, and maintainability across the codebase.
20
+ *
21
+ * @since 2.0.0
22
+ */
23
+ export declare const ORDER_COMMANDS: {
24
+ /** Create a new order */
25
+ readonly CREATE: "order.create";
26
+ /** Retrieve all orders with optional pagination/filtering */
27
+ readonly FIND_ALL: "order.find-all";
28
+ /** Retrieve a single order by its unique identifier */
29
+ readonly FIND_ONE: "order.find-one";
30
+ /** Retrieve all orders by status */
31
+ readonly FIND_ALL_BY_STATUS: "order.find-all";
32
+ /** Change the status of a specific order */
33
+ readonly CHANGE_STATUS: "order.change-status";
34
+ };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Order service command subjects.
3
+ *
4
+ * Centralized constant with all subject/message keys
5
+ * for commands between client(s) and the Order microservice.
6
+ * Each key corresponds to a subject (pattern) handled by the microservice controller.
7
+ *
8
+ * Naming convention:
9
+ * - Keys use SCREAMING_SNAKE_CASE.
10
+ * - Subject values use kebab-case between dots, matching the order domain.
11
+ *
12
+ * Usage examples:
13
+ * - ORDER_COMMANDS.CREATE: Subject for creating an order.
14
+ * - ORDER_COMMANDS.FIND_ALL: Subject for listing all orders.
15
+ * - ORDER_COMMANDS.FIND_ONE: Subject for retrieving a single order by its id.
16
+ * - ORDER_COMMANDS.FIND_ALL_BY_STATUS: Subject for retrieving all orders by status.
17
+ * - ORDER_COMMANDS.CHANGE_STATUS: Subject for changing the status of an order.
18
+ *
19
+ * Maintaining these values in a centralized constant ensures consistency, discoverability, and maintainability across the codebase.
20
+ *
21
+ * @since 2.0.0
22
+ */
23
+ export const ORDER_COMMANDS = {
24
+ /** Create a new order */
25
+ CREATE: 'order.create',
26
+ /** Retrieve all orders with optional pagination/filtering */
27
+ FIND_ALL: 'order.find-all',
28
+ /** Retrieve a single order by its unique identifier */
29
+ FIND_ONE: 'order.find-one',
30
+ /** Retrieve all orders by status */
31
+ FIND_ALL_BY_STATUS: 'order.find-all', // The subject is reused with status filter
32
+ /** Change the status of a specific order */
33
+ CHANGE_STATUS: 'order.change-status',
34
+ };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Payment service command subjects.
3
+ *
4
+ * Centralized constant containing all subject/message keys
5
+ * handled by the Payment microservice. Each key corresponds to a subject (pattern)
6
+ * used in inter-service or client-to-microservice communication.
7
+ *
8
+ * Naming convention:
9
+ * - Keys use SCREAMING_SNAKE_CASE.
10
+ * - Subject values use kebab-case between dots, matching the payment domain.
11
+ *
12
+ * Usage examples:
13
+ * - PAYMENT_COMMANDS.CREATE_PAYMENT_SESSION: Subject for creating a payment session.
14
+ * - PAYMENT_COMMANDS.PAYMENT_SUCCESS: Subject for handling payment success event.
15
+ * - PAYMENT_COMMANDS.PAYMENT_CANCEL: Subject for handling payment cancel event.
16
+ * - PAYMENT_COMMANDS.PAYMENT_STRIPE_WEBHOOK: Subject for handling Stripe webhook events.
17
+ *
18
+ * Maintaining these values in a centralized constant ensures consistency, discoverability, and maintainability across the codebase.
19
+ *
20
+ * @since 2.0.0
21
+ */
22
+ export declare const PAYMENT_COMMANDS: {
23
+ /** Create a new payment session */
24
+ readonly PAYMENT_CREATE_SESSION: "payment.create-session";
25
+ /** Handle successful payment callback */
26
+ readonly PAYMENT_SUCCESS: "payment.success";
27
+ /** Handle canceled payment callback */
28
+ readonly PAYMENT_CANCEL: "payment.cancel";
29
+ /** Handle webhook events from Stripe or similar providers */
30
+ readonly PAYMENT_STRIPE_WEBHOOK: "payment.stripe-webhook";
31
+ };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Payment service command subjects.
3
+ *
4
+ * Centralized constant containing all subject/message keys
5
+ * handled by the Payment microservice. Each key corresponds to a subject (pattern)
6
+ * used in inter-service or client-to-microservice communication.
7
+ *
8
+ * Naming convention:
9
+ * - Keys use SCREAMING_SNAKE_CASE.
10
+ * - Subject values use kebab-case between dots, matching the payment domain.
11
+ *
12
+ * Usage examples:
13
+ * - PAYMENT_COMMANDS.CREATE_PAYMENT_SESSION: Subject for creating a payment session.
14
+ * - PAYMENT_COMMANDS.PAYMENT_SUCCESS: Subject for handling payment success event.
15
+ * - PAYMENT_COMMANDS.PAYMENT_CANCEL: Subject for handling payment cancel event.
16
+ * - PAYMENT_COMMANDS.PAYMENT_STRIPE_WEBHOOK: Subject for handling Stripe webhook events.
17
+ *
18
+ * Maintaining these values in a centralized constant ensures consistency, discoverability, and maintainability across the codebase.
19
+ *
20
+ * @since 2.0.0
21
+ */
22
+ export const PAYMENT_COMMANDS = {
23
+ /** Create a new payment session */
24
+ PAYMENT_CREATE_SESSION: 'payment.create-session',
25
+ /** Handle successful payment callback */
26
+ PAYMENT_SUCCESS: 'payment.success',
27
+ /** Handle canceled payment callback */
28
+ PAYMENT_CANCEL: 'payment.cancel',
29
+ /** Handle webhook events from Stripe or similar providers */
30
+ PAYMENT_STRIPE_WEBHOOK: 'payment.stripe-webhook',
31
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Payment-related event subjects.
3
+ *
4
+ * Centralized constant containing all event subject names
5
+ * that represent domain events emitted by the Payment microservice.
6
+ *
7
+ * Usage example:
8
+ * - PAYMENT_EVENTS.SUCCEEDED: Emitted when a payment is successfully processed.
9
+ *
10
+ * Keeping these values centralized ensures consistency, discoverability, and maintainability.
11
+ *
12
+ * @since 2.0.0
13
+ */
14
+ export declare const PAYMENT_EVENTS: {
15
+ /** Emitted when a payment is successfully processed */
16
+ readonly SUCCEEDED: "payment.succeeded";
17
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Payment-related event subjects.
3
+ *
4
+ * Centralized constant containing all event subject names
5
+ * that represent domain events emitted by the Payment microservice.
6
+ *
7
+ * Usage example:
8
+ * - PAYMENT_EVENTS.SUCCEEDED: Emitted when a payment is successfully processed.
9
+ *
10
+ * Keeping these values centralized ensures consistency, discoverability, and maintainability.
11
+ *
12
+ * @since 2.0.0
13
+ */
14
+ export const PAYMENT_EVENTS = {
15
+ /** Emitted when a payment is successfully processed */
16
+ SUCCEEDED: "payment.succeeded",
17
+ };
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Product service command subjects.
3
+ *
4
+ * Centralized constant with all subject/message keys
5
+ * for commands between client(s) and the Product microservice.
6
+ * This includes core product commands and those for product submodules
7
+ * such as tag, size, schedule, image, question, and recipe management.
8
+ *
9
+ * Each key corresponds to a MessagePattern handled somewhere in the Product service.
10
+ *
11
+ * Usage examples:
12
+ * - PRODUCT_COMMANDS.CREATE: Subject for creating a product.
13
+ * - PRODUCT_COMMANDS.TAG_CREATE: Subject for creating a product-tag relationship.
14
+ * - PRODUCT_COMMANDS.SIZE_FIND_ALL: Subject for listing all sizes for a product.
15
+ * - PRODUCT_COMMANDS.SCHEDULE_REMOVE_BY_PRODUCT: Subject for deleting all schedules for a product.
16
+ * - etc.
17
+ *
18
+ * Keeping these values centralized ensures consistency, discoverability and maintainability across the codebase.
19
+ *
20
+ * @since 2.0.0
21
+ */
22
+ export declare const PRODUCT_COMMANDS: {
23
+ /** Create a new product */
24
+ readonly CREATE: "product.create";
25
+ /** Retrieve all products with pagination support */
26
+ readonly FIND_ALL: "product.find-all";
27
+ /** Retrieve a specific product by ID */
28
+ readonly FIND_ONE: "product.find-one";
29
+ /** Update a product by ID */
30
+ readonly UPDATE: "product.update";
31
+ /** Soft delete a product (mark as inactive) */
32
+ readonly DELETE: "product.delete";
33
+ /** Validate a list of product IDs */
34
+ readonly VALIDATE_PRODUCTS: "product.validate-products";
35
+ /** Create relationship between product and tag */
36
+ readonly TAG_CREATE: "product-tag.create";
37
+ /** Retrieve all tags for a product */
38
+ readonly TAG_FIND_BY_PRODUCT: "product-tag.find-by-product-id";
39
+ /** Retrieve a specific tag for a product */
40
+ readonly TAG_FIND_ONE: "product-tag.find-one";
41
+ /** Replace all tags for a product */
42
+ readonly TAG_REPLACE_BY_PRODUCT: "product-tag.replace-by-product-id";
43
+ /** Remove relationship between product and tag */
44
+ readonly TAG_REMOVE: "product-tag.remove";
45
+ /** Remove all tag relationships for a product */
46
+ readonly TAG_REMOVE_BY_PRODUCT: "product-tag.remove-by-product-id";
47
+ /** Create a new product size */
48
+ readonly SIZE_CREATE: "product-size.create";
49
+ /** Retrieve all sizes for a product */
50
+ readonly SIZE_FIND_BY_PRODUCT: "product-size.find-by-product-id";
51
+ /** Retrieve specific size for a product by size ID */
52
+ readonly SIZE_FIND_ONE: "product-size.find-one";
53
+ /** Replace all sizes for a product */
54
+ readonly SIZE_REPLACE_BY_PRODUCT: "product-size.replace-by-product-id";
55
+ /** Update a size by ID */
56
+ readonly SIZE_UPDATE: "product-size.update";
57
+ /** Remove size by ID */
58
+ readonly SIZE_REMOVE: "product-size.remove";
59
+ /** Remove all sizes for a product */
60
+ readonly SIZE_REMOVE_BY_PRODUCT: "product-size.remove-by-product-id";
61
+ /** Create a new schedule for a product */
62
+ readonly SCHEDULE_CREATE: "product-schedule.create";
63
+ /** Retrieve all schedules for a product */
64
+ readonly SCHEDULE_FIND_BY_PRODUCT: "product-schedule.find-by-product-id";
65
+ /** Replace all schedules for a product */
66
+ readonly SCHEDULE_REPLACE_BY_PRODUCT: "product-schedule.replace-by-product-id";
67
+ /** Check if a product is available at a specific time */
68
+ readonly SCHEDULE_IS_AVAILABLE_AT_TIME: "product-schedule.is-available-at-time";
69
+ /** Retrieve specific product schedule by ID */
70
+ readonly SCHEDULE_FIND_ONE: "product-schedule.find-one";
71
+ /** Update a product schedule by ID */
72
+ readonly SCHEDULE_UPDATE: "product-schedule.update";
73
+ /** Remove a product schedule by ID */
74
+ readonly SCHEDULE_REMOVE: "product-schedule.remove";
75
+ /** Remove all schedules for a product */
76
+ readonly SCHEDULE_REMOVE_BY_PRODUCT: "product-schedule.remove-by-product-id";
77
+ /** Create a new image for a product */
78
+ readonly IMAGE_CREATE: "product-image.create";
79
+ /** Retrieve all images for a product */
80
+ readonly IMAGE_FIND_BY_PRODUCT: "product-image.find-by-product-id";
81
+ /** Retrieve specific image for a product by ID */
82
+ readonly IMAGE_FIND_ONE: "product-image.find-one";
83
+ /** Replace all images for a product */
84
+ readonly IMAGE_REPLACE_BY_PRODUCT: "product-image.replace-by-product-id";
85
+ /** Update a product image by ID */
86
+ readonly IMAGE_UPDATE: "product-image.update";
87
+ /** Remove a product image by ID */
88
+ readonly IMAGE_REMOVE: "product-image.remove";
89
+ /** Remove all images for a product */
90
+ readonly IMAGE_REMOVE_BY_PRODUCT: "product-image.remove-by-product-id";
91
+ /** Create a new question for a product */
92
+ readonly QUESTION_CREATE: "product-question.create";
93
+ /** Retrieve all questions for a product */
94
+ readonly QUESTION_FIND_BY_PRODUCT: "product-question.find-by-product-id";
95
+ /** Retrieve specific product question by ID */
96
+ readonly QUESTION_FIND_ONE: "product-question.find-one";
97
+ /** Replace all questions for a product */
98
+ readonly QUESTION_REPLACE_BY_PRODUCT: "product-question.replace-by-product-id";
99
+ /** Update a product question by ID */
100
+ readonly QUESTION_UPDATE: "product-question.update";
101
+ /** Remove a product question by ID */
102
+ readonly QUESTION_REMOVE: "product-question.remove";
103
+ /** Remove all product questions for a product */
104
+ readonly QUESTION_REMOVE_BY_PRODUCT: "product-question.remove-by-product-id";
105
+ /** Create a new recipe for a product */
106
+ readonly RECIPE_CREATE: "product-recipe.create";
107
+ /** Retrieve all recipes for a product */
108
+ readonly RECIPE_FIND_BY_PRODUCT: "product-recipe.find-by-product-id";
109
+ /** Retrieve specific product recipe by ID */
110
+ readonly RECIPE_FIND_ONE: "product-recipe.find-one";
111
+ /** Replace all recipes for a product */
112
+ readonly RECIPE_REPLACE_BY_PRODUCT: "product-recipe.replace-by-product-id";
113
+ /** Update a product recipe by ID */
114
+ readonly RECIPE_UPDATE: "product-recipe.update";
115
+ /** Remove a product recipe by ID */
116
+ readonly RECIPE_REMOVE: "product-recipe.remove";
117
+ /** Remove all recipes for a product */
118
+ readonly RECIPE_REMOVE_BY_PRODUCT: "product-recipe.remove-by-product-id";
119
+ };