create-auto-app 0.2.3 → 0.3.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 (320) hide show
  1. package/dist/index.js +5 -0
  2. package/dist/index.js.map +1 -1
  3. package/package.json +4 -3
  4. package/templates/.gitkeep +0 -0
  5. package/templates/shopping-app/.context/schema.json +11 -51
  6. package/templates/shopping-app/.context/server/server/package.json +26 -0
  7. package/templates/shopping-app/.context/server/server/scripts/generate-schema.ts +34 -0
  8. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/commands.ts +8 -0
  9. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/decide.specs.ts +46 -0
  10. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/decide.ts +33 -0
  11. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/events.ts +10 -0
  12. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/evolve.ts +28 -0
  13. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/handle.ts +24 -0
  14. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/mutation.resolver.ts +25 -0
  15. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/register.ts +7 -0
  16. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/state.ts +47 -0
  17. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session-/react.specs.ts +51 -0
  18. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session-/react.ts +43 -0
  19. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session-/register.ts +24 -0
  20. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/commands.ts +8 -0
  21. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/decide.specs.ts +38 -0
  22. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/decide.ts +33 -0
  23. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/events.ts +10 -0
  24. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/evolve.ts +28 -0
  25. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/handle.ts +24 -0
  26. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/mutation.resolver.ts +25 -0
  27. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/register.ts +7 -0
  28. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/state.ts +47 -0
  29. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/commands.ts +8 -0
  30. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/decide.specs.ts +61 -0
  31. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/decide.ts +35 -0
  32. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/events.ts +9 -0
  33. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/evolve.ts +28 -0
  34. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/handle.ts +49 -0
  35. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/mutation.resolver.ts +25 -0
  36. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/register.ts +7 -0
  37. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/state.ts +47 -0
  38. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/projection.specs.ts +94 -0
  39. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/projection.ts +37 -0
  40. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/query.resolver.ts +56 -0
  41. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/state.ts +4 -0
  42. package/templates/shopping-app/.context/server/server/src/domain/shared/ReadModel.ts +26 -0
  43. package/templates/shopping-app/{server/src/domain/shared/index.d.ts → .context/server/server/src/domain/shared/index.ts} +0 -1
  44. package/templates/shopping-app/{server/src/domain/shared/reactorSpecification.js → .context/server/server/src/domain/shared/reactorSpecification.ts} +116 -22
  45. package/templates/shopping-app/.context/server/server/src/domain/shared/sendCommand.ts +21 -0
  46. package/templates/shopping-app/{server/src/domain/shared/types.d.ts → .context/server/server/src/domain/shared/types.ts} +17 -5
  47. package/templates/shopping-app/.context/server/server/src/server.ts +43 -0
  48. package/templates/shopping-app/{server/src/utils/index.d.ts → .context/server/server/src/utils/index.ts} +0 -1
  49. package/templates/shopping-app/{server/src/utils/loadProjections.js → .context/server/server/src/utils/loadProjections.ts} +11 -6
  50. package/templates/shopping-app/.context/server/server/src/utils/loadRegisterFiles.ts +41 -0
  51. package/templates/shopping-app/{server/src/utils/loadResolvers.js → .context/server/server/src/utils/loadResolvers.ts} +16 -7
  52. package/templates/shopping-app/.context/server/server/tsconfig.json +13 -0
  53. package/templates/shopping-app/.context/server/server/vitest.config.ts +7 -0
  54. package/templates/shopping-app/auto.config.ts +78 -45
  55. package/templates/shopping-app/client/src/App.tsx +13 -13
  56. package/templates/shopping-app/client/src/components/molecules/QuantitySelector.tsx +4 -4
  57. package/templates/shopping-app/client/src/components/molecules/ShoppingCriteriaForm.tsx +4 -4
  58. package/templates/shopping-app/client/src/components/molecules/SuggestedItemCard.tsx +6 -6
  59. package/templates/shopping-app/client/src/components/organisms/AssistantChatInterface.tsx +3 -3
  60. package/templates/shopping-app/client/src/components/organisms/PageHeader.tsx +2 -3
  61. package/templates/shopping-app/client/src/components/organisms/SuggestedItemsList.tsx +3 -3
  62. package/templates/shopping-app/client/src/index.css +10 -14
  63. package/templates/shopping-app/client/src/pages/AssistantChatPage.tsx +4 -4
  64. package/templates/shopping-app/client/src/pages/SuggestedItemsPage.tsx +4 -4
  65. package/templates/shopping-app/example-integrations/product-catalogue/src/product-catalogue-integration.ts +122 -115
  66. package/templates/shopping-app/flows/shopping-assistant.flow.ts +0 -1
  67. package/templates/shopping-app/package.json +13 -10
  68. package/templates/shopping-app/server/package.json +1 -1
  69. package/templates/shopping-app/.env +0 -8
  70. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-build.log +0 -4
  71. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-format.log +0 -12
  72. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-lint.log +0 -4
  73. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-test.log +0 -12
  74. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-type-check.log +0 -5
  75. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.d.ts +0 -23
  76. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.d.ts.map +0 -1
  77. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.js +0 -41
  78. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.js.map +0 -1
  79. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.d.ts +0 -2
  80. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.d.ts.map +0 -1
  81. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.js +0 -2
  82. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.js.map +0 -1
  83. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/eslint +0 -21
  84. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/jiti +0 -21
  85. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/msw +0 -21
  86. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/tsc +0 -21
  87. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/tsserver +0 -21
  88. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/vite +0 -21
  89. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/vitest +0 -21
  90. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-build.log +0 -4
  91. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-format.log +0 -12
  92. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-lint.log +0 -5
  93. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-test.log +0 -12
  94. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-type-check.log +0 -5
  95. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.d.ts +0 -30
  96. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.d.ts.map +0 -1
  97. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.js +0 -134
  98. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.js.map +0 -1
  99. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.d.ts +0 -3
  100. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.d.ts.map +0 -1
  101. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.js +0 -149
  102. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.js.map +0 -1
  103. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.d.ts +0 -8
  104. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.d.ts.map +0 -1
  105. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.js +0 -6
  106. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.js.map +0 -1
  107. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.d.ts +0 -123
  108. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.d.ts.map +0 -1
  109. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.js +0 -3
  110. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.js.map +0 -1
  111. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.d.ts +0 -46
  112. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.d.ts.map +0 -1
  113. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.js +0 -285
  114. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.js.map +0 -1
  115. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.d.ts +0 -13
  116. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.d.ts.map +0 -1
  117. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.js +0 -6
  118. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.js.map +0 -1
  119. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.d.ts +0 -19
  120. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.d.ts.map +0 -1
  121. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.js +0 -15
  122. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.js.map +0 -1
  123. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.d.ts +0 -18
  124. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.d.ts.map +0 -1
  125. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.js +0 -58
  126. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.js.map +0 -1
  127. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.d.ts +0 -34
  128. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.d.ts.map +0 -1
  129. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.js +0 -89
  130. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.js.map +0 -1
  131. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.d.ts +0 -34
  132. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.d.ts.map +0 -1
  133. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.js +0 -115
  134. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.js.map +0 -1
  135. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.d.ts +0 -79
  136. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.d.ts.map +0 -1
  137. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.js +0 -3
  138. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.js.map +0 -1
  139. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.d.ts +0 -2
  140. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.d.ts.map +0 -1
  141. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.js +0 -3
  142. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.js.map +0 -1
  143. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.d.ts +0 -158
  144. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.d.ts.map +0 -1
  145. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.js +0 -3
  146. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.js.map +0 -1
  147. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.d.ts +0 -382
  148. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.d.ts.map +0 -1
  149. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.js +0 -68
  150. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.js.map +0 -1
  151. package/templates/shopping-app/example-integrations/cart/dist/index.d.ts +0 -2
  152. package/templates/shopping-app/example-integrations/cart/dist/index.d.ts.map +0 -1
  153. package/templates/shopping-app/example-integrations/cart/dist/index.js +0 -2
  154. package/templates/shopping-app/example-integrations/cart/dist/index.js.map +0 -1
  155. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/eslint +0 -21
  156. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/jiti +0 -21
  157. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/msw +0 -21
  158. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/tsc +0 -21
  159. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/tsserver +0 -21
  160. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/vitest +0 -21
  161. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-build.log +0 -4
  162. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-format.log +0 -10
  163. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-lint.log +0 -4
  164. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-test.log +0 -12
  165. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-type-check.log +0 -4
  166. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.d.ts +0 -18
  167. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.d.ts.map +0 -1
  168. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.js +0 -28
  169. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.js.map +0 -1
  170. package/templates/shopping-app/example-integrations/cart-api/dist/index.d.ts +0 -4
  171. package/templates/shopping-app/example-integrations/cart-api/dist/index.d.ts.map +0 -1
  172. package/templates/shopping-app/example-integrations/cart-api/dist/index.js +0 -49
  173. package/templates/shopping-app/example-integrations/cart-api/dist/index.js.map +0 -1
  174. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.d.ts +0 -4
  175. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.d.ts.map +0 -1
  176. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.js +0 -261
  177. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.js.map +0 -1
  178. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/nodemon +0 -21
  179. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/swagger-jsdoc +0 -21
  180. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node +0 -21
  181. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-cwd +0 -21
  182. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-esm +0 -21
  183. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-script +0 -21
  184. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-transpile-only +0 -21
  185. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-script +0 -21
  186. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsc +0 -21
  187. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsserver +0 -21
  188. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsx +0 -21
  189. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/vitest +0 -21
  190. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-build.log +0 -4
  191. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-format.log +0 -12
  192. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-lint.log +0 -5
  193. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-test.log +0 -12
  194. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-type-check.log +0 -5
  195. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.d.ts +0 -3
  196. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.d.ts.map +0 -1
  197. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.js +0 -149
  198. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.js.map +0 -1
  199. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.d.ts +0 -8
  200. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.d.ts.map +0 -1
  201. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.js +0 -6
  202. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.js.map +0 -1
  203. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.d.ts +0 -123
  204. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.d.ts.map +0 -1
  205. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.js +0 -3
  206. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.js.map +0 -1
  207. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.d.ts +0 -46
  208. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.d.ts.map +0 -1
  209. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.js +0 -285
  210. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.js.map +0 -1
  211. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.d.ts +0 -13
  212. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.d.ts.map +0 -1
  213. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.js +0 -6
  214. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.js.map +0 -1
  215. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.d.ts +0 -19
  216. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.d.ts.map +0 -1
  217. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.js +0 -15
  218. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.js.map +0 -1
  219. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.d.ts +0 -18
  220. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.d.ts.map +0 -1
  221. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.js +0 -58
  222. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.js.map +0 -1
  223. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.d.ts +0 -34
  224. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.d.ts.map +0 -1
  225. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.js +0 -89
  226. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.js.map +0 -1
  227. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.d.ts +0 -34
  228. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.d.ts.map +0 -1
  229. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.js +0 -115
  230. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.js.map +0 -1
  231. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.d.ts +0 -79
  232. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.d.ts.map +0 -1
  233. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.js +0 -3
  234. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.js.map +0 -1
  235. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.d.ts +0 -2
  236. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.d.ts.map +0 -1
  237. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.js +0 -3
  238. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.js.map +0 -1
  239. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.d.ts +0 -115
  240. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.d.ts.map +0 -1
  241. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.js +0 -3
  242. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.js.map +0 -1
  243. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.d.ts +0 -206
  244. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.d.ts.map +0 -1
  245. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.js +0 -53
  246. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.js.map +0 -1
  247. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.d.ts +0 -2
  248. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.d.ts.map +0 -1
  249. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.js +0 -2
  250. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.js.map +0 -1
  251. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.d.ts +0 -32
  252. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.d.ts.map +0 -1
  253. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.js +0 -163
  254. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.js.map +0 -1
  255. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/eslint +0 -21
  256. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/jiti +0 -21
  257. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/msw +0 -21
  258. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/tsc +0 -21
  259. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/tsserver +0 -21
  260. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/vitest +0 -21
  261. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-build.log +0 -4
  262. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-format.log +0 -10
  263. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-lint.log +0 -5
  264. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-test.log +0 -13
  265. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-type-check.log +0 -5
  266. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.d.ts +0 -10
  267. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.d.ts.map +0 -1
  268. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.js +0 -75
  269. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.js.map +0 -1
  270. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.d.ts +0 -4
  271. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.d.ts.map +0 -1
  272. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.js +0 -49
  273. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.js.map +0 -1
  274. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.d.ts +0 -4
  275. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.d.ts.map +0 -1
  276. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.js +0 -170
  277. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.js.map +0 -1
  278. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/nodemon +0 -21
  279. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/swagger-jsdoc +0 -21
  280. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node +0 -21
  281. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-cwd +0 -21
  282. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-esm +0 -21
  283. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-script +0 -21
  284. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-transpile-only +0 -21
  285. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-script +0 -21
  286. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsc +0 -21
  287. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsserver +0 -21
  288. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsx +0 -21
  289. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/vitest +0 -21
  290. package/templates/shopping-app/pnpm-workspace.yaml +0 -2
  291. package/templates/shopping-app/server/src/domain/shared/ReadModel.d.ts +0 -10
  292. package/templates/shopping-app/server/src/domain/shared/ReadModel.d.ts.map +0 -1
  293. package/templates/shopping-app/server/src/domain/shared/ReadModel.js +0 -19
  294. package/templates/shopping-app/server/src/domain/shared/ReadModel.js.map +0 -1
  295. package/templates/shopping-app/server/src/domain/shared/index.d.ts.map +0 -1
  296. package/templates/shopping-app/server/src/domain/shared/index.js +0 -5
  297. package/templates/shopping-app/server/src/domain/shared/index.js.map +0 -1
  298. package/templates/shopping-app/server/src/domain/shared/reactorSpecification.d.ts +0 -56
  299. package/templates/shopping-app/server/src/domain/shared/reactorSpecification.d.ts.map +0 -1
  300. package/templates/shopping-app/server/src/domain/shared/reactorSpecification.js.map +0 -1
  301. package/templates/shopping-app/server/src/domain/shared/sendCommand.d.ts +0 -7
  302. package/templates/shopping-app/server/src/domain/shared/sendCommand.d.ts.map +0 -1
  303. package/templates/shopping-app/server/src/domain/shared/sendCommand.js +0 -16
  304. package/templates/shopping-app/server/src/domain/shared/sendCommand.js.map +0 -1
  305. package/templates/shopping-app/server/src/domain/shared/types.d.ts.map +0 -1
  306. package/templates/shopping-app/server/src/domain/shared/types.js +0 -40
  307. package/templates/shopping-app/server/src/domain/shared/types.js.map +0 -1
  308. package/templates/shopping-app/server/src/utils/index.d.ts.map +0 -1
  309. package/templates/shopping-app/server/src/utils/index.js +0 -4
  310. package/templates/shopping-app/server/src/utils/index.js.map +0 -1
  311. package/templates/shopping-app/server/src/utils/loadProjections.d.ts +0 -3
  312. package/templates/shopping-app/server/src/utils/loadProjections.d.ts.map +0 -1
  313. package/templates/shopping-app/server/src/utils/loadProjections.js.map +0 -1
  314. package/templates/shopping-app/server/src/utils/loadRegisterFiles.d.ts +0 -6
  315. package/templates/shopping-app/server/src/utils/loadRegisterFiles.d.ts.map +0 -1
  316. package/templates/shopping-app/server/src/utils/loadRegisterFiles.js +0 -26
  317. package/templates/shopping-app/server/src/utils/loadRegisterFiles.js.map +0 -1
  318. package/templates/shopping-app/server/src/utils/loadResolvers.d.ts +0 -5
  319. package/templates/shopping-app/server/src/utils/loadResolvers.d.ts.map +0 -1
  320. package/templates/shopping-app/server/src/utils/loadResolvers.js.map +0 -1
@@ -1,115 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export const separatorArrayExplode = (style) => {
3
- switch (style) {
4
- case 'label':
5
- return '.';
6
- case 'matrix':
7
- return ';';
8
- case 'simple':
9
- return ',';
10
- default:
11
- return '&';
12
- }
13
- };
14
- export const separatorArrayNoExplode = (style) => {
15
- switch (style) {
16
- case 'form':
17
- return ',';
18
- case 'pipeDelimited':
19
- return '|';
20
- case 'spaceDelimited':
21
- return '%20';
22
- default:
23
- return ',';
24
- }
25
- };
26
- export const separatorObjectExplode = (style) => {
27
- switch (style) {
28
- case 'label':
29
- return '.';
30
- case 'matrix':
31
- return ';';
32
- case 'simple':
33
- return ',';
34
- default:
35
- return '&';
36
- }
37
- };
38
- export const serializeArrayParam = ({ allowReserved, explode, name, style, value, }) => {
39
- if (!explode) {
40
- const joinedValues = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
41
- switch (style) {
42
- case 'label':
43
- return `.${joinedValues}`;
44
- case 'matrix':
45
- return `;${name}=${joinedValues}`;
46
- case 'simple':
47
- return joinedValues;
48
- default:
49
- return `${name}=${joinedValues}`;
50
- }
51
- }
52
- const separator = separatorArrayExplode(style);
53
- const joinedValues = value
54
- .map((v) => {
55
- if (style === 'label' || style === 'simple') {
56
- return allowReserved ? v : encodeURIComponent(v);
57
- }
58
- return serializePrimitiveParam({
59
- allowReserved,
60
- name,
61
- value: v,
62
- });
63
- })
64
- .join(separator);
65
- return style === 'label' || style === 'matrix'
66
- ? separator + joinedValues
67
- : joinedValues;
68
- };
69
- export const serializePrimitiveParam = ({ allowReserved, name, value, }) => {
70
- if (value === undefined || value === null) {
71
- return '';
72
- }
73
- if (typeof value === 'object') {
74
- throw new Error('Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.');
75
- }
76
- return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
77
- };
78
- export const serializeObjectParam = ({ allowReserved, explode, name, style, value, valueOnly, }) => {
79
- if (value instanceof Date) {
80
- return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
81
- }
82
- if (style !== 'deepObject' && !explode) {
83
- let values = [];
84
- Object.entries(value).forEach(([key, v]) => {
85
- values = [
86
- ...values,
87
- key,
88
- allowReserved ? v : encodeURIComponent(v),
89
- ];
90
- });
91
- const joinedValues = values.join(',');
92
- switch (style) {
93
- case 'form':
94
- return `${name}=${joinedValues}`;
95
- case 'label':
96
- return `.${joinedValues}`;
97
- case 'matrix':
98
- return `;${name}=${joinedValues}`;
99
- default:
100
- return joinedValues;
101
- }
102
- }
103
- const separator = separatorObjectExplode(style);
104
- const joinedValues = Object.entries(value)
105
- .map(([key, v]) => serializePrimitiveParam({
106
- allowReserved,
107
- name: style === 'deepObject' ? `${name}[${key}]` : key,
108
- value: v,
109
- }))
110
- .join(separator);
111
- return style === 'label' || style === 'matrix'
112
- ? separator + joinedValues
113
- : joinedValues;
114
- };
115
- //# sourceMappingURL=pathSerializer.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pathSerializer.gen.js","sourceRoot":"","sources":["../../../../src/generated/product-catalog/core/pathSerializer.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AA6BrD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAA0B,EAAE,EAAE;IAClE,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,OAAO;YACV,OAAO,GAAG,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,GAAG,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,GAAG,CAAC;QACb;YACE,OAAO,GAAG,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAA0B,EAAE,EAAE;IACpE,QAAQ,KAAK,EAAE,CA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AC,CAAC"}
@@ -1,79 +0,0 @@
1
- import type { Auth, AuthToken } from './auth.gen';
2
- import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from './bodySerializer.gen';
3
- export interface Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never> {
4
- /**
5
- * Returns the final request URL.
6
- */
7
- buildUrl: BuildUrlFn;
8
- connect: MethodFn;
9
- delete: MethodFn;
10
- get: MethodFn;
11
- getConfig: () => Config;
12
- head: MethodFn;
13
- options: MethodFn;
14
- patch: MethodFn;
15
- post: MethodFn;
16
- put: MethodFn;
17
- request: RequestFn;
18
- setConfig: (config: Config) => Config;
19
- trace: MethodFn;
20
- }
21
- export interface Config {
22
- /**
23
- * Auth token or a function returning auth token. The resolved value will be
24
- * added to the request payload as defined by its `security` array.
25
- */
26
- auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
27
- /**
28
- * A function for serializing request body parameter. By default,
29
- * {@link JSON.stringify()} will be used.
30
- */
31
- bodySerializer?: BodySerializer | null;
32
- /**
33
- * An object containing any HTTP headers that you want to pre-populate your
34
- * `Headers` object with.
35
- *
36
- * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
37
- */
38
- headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
39
- /**
40
- * The request method.
41
- *
42
- * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
43
- */
44
- method?: 'CONNECT' | 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'POST' | 'PUT' | 'TRACE';
45
- /**
46
- * A function for serializing request query parameters. By default, arrays
47
- * will be exploded in form style, objects will be exploded in deepObject
48
- * style, and reserved characters are percent-encoded.
49
- *
50
- * This method will have no effect if the native `paramsSerializer()` Axios
51
- * API function is used.
52
- *
53
- * {@link https://swagger.io/docs/specification/serialization/#query View examples}
54
- */
55
- querySerializer?: QuerySerializer | QuerySerializerOptions;
56
- /**
57
- * A function validating request data. This is useful if you want to ensure
58
- * the request conforms to the desired shape, so it can be safely sent to
59
- * the server.
60
- */
61
- requestValidator?: (data: unknown) => Promise<unknown>;
62
- /**
63
- * A function transforming response data before it's returned. This is useful
64
- * for post-processing data, e.g. converting ISO strings into Date objects.
65
- */
66
- responseTransformer?: (data: unknown) => Promise<unknown>;
67
- /**
68
- * A function validating response data. This is useful if you want to ensure
69
- * the response conforms to the desired shape, so it can be safely passed to
70
- * the transformers and returned to the user.
71
- */
72
- responseValidator?: (data: unknown) => Promise<unknown>;
73
- }
74
- type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? [undefined] extends [T] ? false : true : false;
75
- export type OmitNever<T extends Record<string, unknown>> = {
76
- [K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true ? never : K]: T[K];
77
- };
78
- export {};
79
- //# sourceMappingURL=types.gen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../../src/generated/product-catalog/core/types.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,MAAM,CACrB,SAAS,GAAG,KAAK,EACjB,MAAM,GAAG,OAAO,EAChB,QAAQ,GAAG,KAAK,EAChB,UAAU,GAAG,KAAK;IAElB;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC;IACrB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,QAAQ,CAAC;IACjB,GAAG,EAAE,QAAQ,CAAC;IACd,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,EAAE,QAAQ,CAAC;IAChB,IAAI,EAAE,QAAQ,CAAC;IACf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AC,KAAK,GAAG,SAAS,CAAC,GAC7B,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,GACrB,KAAK,GACL,IAAI,GACN,KAAK,CAAC;AAEZ,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;KACxD,CAAC,IAAI,MAAM,CAAC,IAAI,8BAA8B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAC9D,KAAK,GACL,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACb,CAAC"}
@@ -1,3 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export {};
3
- //# sourceMappingURL=types.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.gen.js","sourceRoot":"","sources":["../../../../src/generated/product-catalog/core/types.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD"}
@@ -1,2 +0,0 @@
1
- export * from './types.gen';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/product-catalog/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC"}
@@ -1,3 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export * from './types.gen';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/product-catalog/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,cAAc,aAAa,CAAC"}
@@ -1,115 +0,0 @@
1
- export type ProductCatalogItem = {
2
- /**
3
- * Unique identifier for the product
4
- */
5
- productId: string;
6
- /**
7
- * Product name
8
- */
9
- name: string;
10
- /**
11
- * Product category
12
- */
13
- category: string;
14
- /**
15
- * Product price in dollars
16
- */
17
- price: number;
18
- /**
19
- * Array of tags associated with the product
20
- */
21
- tags: Array<string>;
22
- /**
23
- * URL of the product image
24
- */
25
- imageUrl: string;
26
- };
27
- export type GetApiProductsData = {
28
- body?: never;
29
- path?: never;
30
- query?: never;
31
- url: '/api/products';
32
- };
33
- export type GetApiProductsResponses = {
34
- /**
35
- * List of all products
36
- */
37
- 200: Array<ProductCatalogItem>;
38
- };
39
- export type GetApiProductsResponse = GetApiProductsResponses[keyof GetApiProductsResponses];
40
- export type GetApiProductsSearchData = {
41
- body?: never;
42
- path?: never;
43
- query: {
44
- /**
45
- * Search query for product name or tags
46
- */
47
- q: string;
48
- };
49
- url: '/api/products/search';
50
- };
51
- export type GetApiProductsSearchErrors = {
52
- /**
53
- * Query parameter is missing
54
- */
55
- 400: {
56
- error?: string;
57
- };
58
- };
59
- export type GetApiProductsSearchError = GetApiProductsSearchErrors[keyof GetApiProductsSearchErrors];
60
- export type GetApiProductsSearchResponses = {
61
- /**
62
- * List of matching products
63
- */
64
- 200: Array<ProductCatalogItem>;
65
- };
66
- export type GetApiProductsSearchResponse = GetApiProductsSearchResponses[keyof GetApiProductsSearchResponses];
67
- export type GetApiProductsCategoryByCategoryData = {
68
- body?: never;
69
- path: {
70
- /**
71
- * Category name to filter by
72
- */
73
- category: string;
74
- };
75
- query?: never;
76
- url: '/api/products/category/{category}';
77
- };
78
- export type GetApiProductsCategoryByCategoryResponses = {
79
- /**
80
- * List of products in the category
81
- */
82
- 200: Array<ProductCatalogItem>;
83
- };
84
- export type GetApiProductsCategoryByCategoryResponse = GetApiProductsCategoryByCategoryResponses[keyof GetApiProductsCategoryByCategoryResponses];
85
- export type GetApiProductsByIdData = {
86
- body?: never;
87
- path: {
88
- /**
89
- * Product ID
90
- */
91
- id: string;
92
- };
93
- query?: never;
94
- url: '/api/products/{id}';
95
- };
96
- export type GetApiProductsByIdErrors = {
97
- /**
98
- * Product not found
99
- */
100
- 404: {
101
- error?: string;
102
- };
103
- };
104
- export type GetApiProductsByIdError = GetApiProductsByIdErrors[keyof GetApiProductsByIdErrors];
105
- export type GetApiProductsByIdResponses = {
106
- /**
107
- * Product details
108
- */
109
- 200: ProductCatalogItem;
110
- };
111
- export type GetApiProductsByIdResponse = GetApiProductsByIdResponses[keyof GetApiProductsByIdResponses];
112
- export type ClientOptions = {
113
- baseUrl: 'http://localhost:3001' | (string & {});
114
- };
115
- //# sourceMappingURL=types.gen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/generated/product-catalog/types.gen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC;;OAEG;IACH,GAAG,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC,MAAM,uBAAuB,CAAC,CAAC;AAE5F,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,EAAE;QACH;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IACF,GAAG,EAAE,sBAAsB,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC;;OAEG;IACH,GAAG,E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,MAAM,0BAA0B,GAAG,2BAA2B,CAAC,MAAM,2BAA2B,CAAC,CAAC;AAExG,MAAM,MAAM,aAAa,GAAG;IACxB,OAAO,EAAE,uBAAuB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACpD,CAAC"}
@@ -1,3 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export {};
3
- //# sourceMappingURL=types.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.gen.js","sourceRoot":"","sources":["../../../src/generated/product-catalog/types.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD"}
@@ -1,206 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const zProductCatalogItem: z.ZodObject<{
3
- productId: z.ZodString;
4
- name: z.ZodString;
5
- category: z.ZodString;
6
- price: z.ZodNumber;
7
- tags: z.ZodArray<z.ZodString, "many">;
8
- imageUrl: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- name: string;
11
- productId: string;
12
- category: string;
13
- price: number;
14
- tags: string[];
15
- imageUrl: string;
16
- }, {
17
- name: string;
18
- productId: string;
19
- category: string;
20
- price: number;
21
- tags: string[];
22
- imageUrl: string;
23
- }>;
24
- export declare const zGetApiProductsData: z.ZodObject<{
25
- body: z.ZodOptional<z.ZodNever>;
26
- path: z.ZodOptional<z.ZodNever>;
27
- query: z.ZodOptional<z.ZodNever>;
28
- }, "strip", z.ZodTypeAny, {
29
- query?: undefined;
30
- body?: undefined;
31
- path?: undefined;
32
- }, {
33
- query?: undefined;
34
- body?: undefined;
35
- path?: undefined;
36
- }>;
37
- /**
38
- * List of all products
39
- */
40
- export declare const zGetApiProductsResponse: z.ZodArray<z.ZodObject<{
41
- productId: z.ZodString;
42
- name: z.ZodString;
43
- category: z.ZodString;
44
- price: z.ZodNumber;
45
- tags: z.ZodArray<z.ZodString, "many">;
46
- imageUrl: z.ZodString;
47
- }, "strip", z.ZodTypeAny, {
48
- name: string;
49
- productId: string;
50
- category: string;
51
- price: number;
52
- tags: string[];
53
- imageUrl: string;
54
- }, {
55
- name: string;
56
- productId: string;
57
- category: string;
58
- price: number;
59
- tags: string[];
60
- imageUrl: string;
61
- }>, "many">;
62
- export declare const zGetApiProductsSearchData: z.ZodObject<{
63
- body: z.ZodOptional<z.ZodNever>;
64
- path: z.ZodOptional<z.ZodNever>;
65
- query: z.ZodObject<{
66
- q: z.ZodString;
67
- }, "strip", z.ZodTypeAny, {
68
- q: string;
69
- }, {
70
- q: string;
71
- }>;
72
- }, "strip", z.ZodTypeAny, {
73
- query: {
74
- q: string;
75
- };
76
- body?: undefined;
77
- path?: undefined;
78
- }, {
79
- query: {
80
- q: string;
81
- };
82
- body?: undefined;
83
- path?: undefined;
84
- }>;
85
- /**
86
- * List of matching products
87
- */
88
- export declare const zGetApiProductsSearchResponse: z.ZodArray<z.ZodObject<{
89
- productId: z.ZodString;
90
- name: z.ZodString;
91
- category: z.ZodString;
92
- price: z.ZodNumber;
93
- tags: z.ZodArray<z.ZodString, "many">;
94
- imageUrl: z.ZodString;
95
- }, "strip", z.ZodTypeAny, {
96
- name: string;
97
- productId: string;
98
- category: string;
99
- price: number;
100
- tags: string[];
101
- imageUrl: string;
102
- }, {
103
- name: string;
104
- productId: string;
105
- category: string;
106
- price: number;
107
- tags: string[];
108
- imageUrl: string;
109
- }>, "many">;
110
- export declare const zGetApiProductsCategoryByCategoryData: z.ZodObject<{
111
- body: z.ZodOptional<z.ZodNever>;
112
- path: z.ZodObject<{
113
- category: z.ZodString;
114
- }, "strip", z.ZodTypeAny, {
115
- category: string;
116
- }, {
117
- category: string;
118
- }>;
119
- query: z.ZodOptional<z.ZodNever>;
120
- }, "strip", z.ZodTypeAny, {
121
- path: {
122
- category: string;
123
- };
124
- query?: undefined;
125
- body?: undefined;
126
- }, {
127
- path: {
128
- category: string;
129
- };
130
- query?: undefined;
131
- body?: undefined;
132
- }>;
133
- /**
134
- * List of products in the category
135
- */
136
- export declare const zGetApiProductsCategoryByCategoryResponse: z.ZodArray<z.ZodObject<{
137
- productId: z.ZodString;
138
- name: z.ZodString;
139
- category: z.ZodString;
140
- price: z.ZodNumber;
141
- tags: z.ZodArray<z.ZodString, "many">;
142
- imageUrl: z.ZodString;
143
- }, "strip", z.ZodTypeAny, {
144
- name: string;
145
- productId: string;
146
- category: string;
147
- price: number;
148
- tags: string[];
149
- imageUrl: string;
150
- }, {
151
- name: string;
152
- productId: string;
153
- category: string;
154
- price: number;
155
- tags: string[];
156
- imageUrl: string;
157
- }>, "many">;
158
- export declare const zGetApiProductsByIdData: z.ZodObject<{
159
- body: z.ZodOptional<z.ZodNever>;
160
- path: z.ZodObject<{
161
- id: z.ZodString;
162
- }, "strip", z.ZodTypeAny, {
163
- id: string;
164
- }, {
165
- id: string;
166
- }>;
167
- query: z.ZodOptional<z.ZodNever>;
168
- }, "strip", z.ZodTypeAny, {
169
- path: {
170
- id: string;
171
- };
172
- query?: undefined;
173
- body?: undefined;
174
- }, {
175
- path: {
176
- id: string;
177
- };
178
- query?: undefined;
179
- body?: undefined;
180
- }>;
181
- /**
182
- * Product details
183
- */
184
- export declare const zGetApiProductsByIdResponse: z.ZodObject<{
185
- productId: z.ZodString;
186
- name: z.ZodString;
187
- category: z.ZodString;
188
- price: z.ZodNumber;
189
- tags: z.ZodArray<z.ZodString, "many">;
190
- imageUrl: z.ZodString;
191
- }, "strip", z.ZodTypeAny, {
192
- name: string;
193
- productId: string;
194
- category: string;
195
- price: number;
196
- tags: string[];
197
- imageUrl: string;
198
- }, {
199
- name: string;
200
- productId: string;
201
- category: string;
202
- price: number;
203
- tags: string[];
204
- imageUrl: string;
205
- }>;
206
- //# sourceMappingURL=zod.gen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zod.gen.d.ts","sourceRoot":"","sources":["../../../src/generated/product-catalog/zod.gen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;WAA+B,CAAC;AAEpE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;EAMpC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;WAA+B,CAAC;AAE1E,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;EAMhD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;WAA+B,CAAC;AAEtF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;EAMlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;EAAsB,CAAC"}
@@ -1,53 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- import { z } from 'zod';
3
- export const zProductCatalogItem = z.object({
4
- productId: z.string(),
5
- name: z.string(),
6
- category: z.string(),
7
- price: z.number(),
8
- tags: z.array(z.string()),
9
- imageUrl: z.string()
10
- });
11
- export const zGetApiProductsData = z.object({
12
- body: z.optional(z.never()),
13
- path: z.optional(z.never()),
14
- query: z.optional(z.never())
15
- });
16
- /**
17
- * List of all products
18
- */
19
- export const zGetApiProductsResponse = z.array(zProductCatalogItem);
20
- export const zGetApiProductsSearchData = z.object({
21
- body: z.optional(z.never()),
22
- path: z.optional(z.never()),
23
- query: z.object({
24
- q: z.string()
25
- })
26
- });
27
- /**
28
- * List of matching products
29
- */
30
- export const zGetApiProductsSearchResponse = z.array(zProductCatalogItem);
31
- export const zGetApiProductsCategoryByCategoryData = z.object({
32
- body: z.optional(z.never()),
33
- path: z.object({
34
- category: z.string()
35
- }),
36
- query: z.optional(z.never())
37
- });
38
- /**
39
- * List of products in the category
40
- */
41
- export const zGetApiProductsCategoryByCategoryResponse = z.array(zProductCatalogItem);
42
- export const zGetApiProductsByIdData = z.object({
43
- body: z.optional(z.never()),
44
- path: z.object({
45
- id: z.string()
46
- }),
47
- query: z.optional(z.never())
48
- });
49
- /**
50
- * Product details
51
- */
52
- export const zGetApiProductsByIdResponse = zProductCatalogItem;
53
- //# sourceMappingURL=zod.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zod.gen.js","sourceRoot":"","sources":["../../../src/generated/product-catalog/zod.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;IAC3B,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAEpE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EA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1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './product-catalogue-integration';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}