create-auto-app 0.2.3 → 0.8.4
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.
- package/README.md +197 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/templates/.gitkeep +0 -0
- package/templates/shopping-app/.context/schema.json +389 -218
- package/templates/shopping-app/.context/server/.context/auto-ia-scheme.json +79 -0
- package/templates/shopping-app/.context/server/server/package.json +26 -0
- package/templates/shopping-app/.context/server/server/scripts/generate-schema.ts +34 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/commands.ts +8 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/decide.specs.ts +46 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/decide.ts +33 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/events.ts +10 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/evolve.ts +28 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/handle.ts +24 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/mutation.resolver.ts +25 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/register.ts +7 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/state.ts +47 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session/react.specs.ts +51 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session/react.ts +43 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session/register.ts +24 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session-/react.specs.ts +51 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session-/react.ts +43 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session-/register.ts +24 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/commands.ts +8 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/decide.specs.ts +38 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/decide.ts +33 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/events.ts +10 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/evolve.ts +28 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/handle.ts +24 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/mutation.resolver.ts +25 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/register.ts +7 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/state.ts +47 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/commands.ts +8 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/decide.specs.ts +101 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/decide.ts +42 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/events.ts +9 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/evolve.ts +28 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/handle.ts +52 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/mutation.resolver.ts +25 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/register.ts +7 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/state.ts +47 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/commands.ts +8 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/decide.specs.ts +101 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/decide.ts +43 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/events.ts +9 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/evolve.ts +28 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/handle.ts +52 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/mutation.resolver.ts +25 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/register.ts +7 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/state.ts +47 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/projection.specs.ts +56 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/projection.ts +24 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/query.resolver.ts +56 -0
- package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/state.ts +4 -0
- package/templates/shopping-app/.context/server/server/src/domain/shared/ReadModel.ts +26 -0
- package/templates/shopping-app/{server/src/domain/shared/index.d.ts → .context/server/server/src/domain/shared/index.ts} +0 -1
- package/templates/shopping-app/{server/src/domain/shared/reactorSpecification.js → .context/server/server/src/domain/shared/reactorSpecification.ts} +116 -22
- package/templates/shopping-app/.context/server/server/src/domain/shared/sendCommand.ts +21 -0
- package/templates/shopping-app/{server/src/domain/shared/types.d.ts → .context/server/server/src/domain/shared/types.ts} +17 -5
- package/templates/shopping-app/.context/server/server/src/server.ts +43 -0
- package/templates/shopping-app/{server/src/utils/index.d.ts → .context/server/server/src/utils/index.ts} +0 -1
- package/templates/shopping-app/{server/src/utils/loadProjections.js → .context/server/server/src/utils/loadProjections.ts} +11 -6
- package/templates/shopping-app/.context/server/server/src/utils/loadRegisterFiles.ts +41 -0
- package/templates/shopping-app/{server/src/utils/loadResolvers.js → .context/server/server/src/utils/loadResolvers.ts} +16 -7
- package/templates/shopping-app/.context/server/server/tsconfig.json +13 -0
- package/templates/shopping-app/.context/server/server/vitest.config.ts +7 -0
- package/templates/shopping-app/auto.config.ts +78 -45
- package/templates/shopping-app/client/package.json +4 -4
- package/templates/shopping-app/client/src/App.tsx +13 -13
- package/templates/shopping-app/client/src/components/molecules/QuantitySelector.tsx +4 -4
- package/templates/shopping-app/client/src/components/molecules/ShoppingCriteriaForm.tsx +4 -4
- package/templates/shopping-app/client/src/components/molecules/SuggestedItemCard.tsx +6 -6
- package/templates/shopping-app/client/src/components/organisms/AssistantChatInterface.tsx +3 -3
- package/templates/shopping-app/client/src/components/organisms/PageHeader.tsx +2 -3
- package/templates/shopping-app/client/src/components/organisms/SuggestedItemsList.tsx +3 -3
- package/templates/shopping-app/client/src/index.css +10 -14
- package/templates/shopping-app/client/src/pages/AssistantChatPage.tsx +4 -4
- package/templates/shopping-app/client/src/pages/SuggestedItemsPage.tsx +4 -4
- package/templates/shopping-app/example-integrations/ai-chat-completion/package.json +5 -6
- package/templates/shopping-app/example-integrations/ai-chat-completion/src/ai-integration.ts +2 -2
- package/templates/shopping-app/example-integrations/cart/package.json +5 -6
- package/templates/shopping-app/example-integrations/cart-api/package.json +3 -3
- package/templates/shopping-app/example-integrations/product-catalogue/package.json +5 -5
- package/templates/shopping-app/example-integrations/product-catalogue/src/product-catalogue-integration.ts +3 -128
- package/templates/shopping-app/example-integrations/product-catalogue-api/package.json +3 -3
- package/templates/shopping-app/flows/shopping-assistant.flow.ts +195 -196
- package/templates/shopping-app/package.json +16 -11
- package/templates/shopping-app/server/package.json +4 -4
- package/templates/shopping-app/server/src/integrations/ai-integration.ts +2 -2
- package/templates/shopping-app/tsconfig.json +2 -2
- package/templates/shopping-app/.env +0 -8
- package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-build.log +0 -4
- package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-format.log +0 -12
- package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-lint.log +0 -4
- package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-test.log +0 -12
- package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-type-check.log +0 -5
- package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.d.ts +0 -23
- package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.js +0 -41
- package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.js.map +0 -1
- package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.d.ts +0 -2
- package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.js +0 -2
- package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.js.map +0 -1
- package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/eslint +0 -21
- package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/jiti +0 -21
- package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/msw +0 -21
- package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/tsc +0 -21
- package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/tsserver +0 -21
- package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/vite +0 -21
- package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/vitest +0 -21
- package/templates/shopping-app/example-integrations/cart/.turbo/turbo-build.log +0 -4
- package/templates/shopping-app/example-integrations/cart/.turbo/turbo-format.log +0 -12
- package/templates/shopping-app/example-integrations/cart/.turbo/turbo-lint.log +0 -5
- package/templates/shopping-app/example-integrations/cart/.turbo/turbo-test.log +0 -12
- package/templates/shopping-app/example-integrations/cart/.turbo/turbo-type-check.log +0 -5
- package/templates/shopping-app/example-integrations/cart/dist/cart-integration.d.ts +0 -30
- package/templates/shopping-app/example-integrations/cart/dist/cart-integration.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/cart-integration.js +0 -134
- package/templates/shopping-app/example-integrations/cart/dist/cart-integration.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.d.ts +0 -3
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.js +0 -149
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.d.ts +0 -8
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.js +0 -6
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.d.ts +0 -123
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.js +0 -3
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.d.ts +0 -46
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.js +0 -285
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.d.ts +0 -13
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.js +0 -6
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.d.ts +0 -19
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.js +0 -15
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.d.ts +0 -18
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.js +0 -58
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.d.ts +0 -34
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.js +0 -89
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.d.ts +0 -34
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.js +0 -115
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.d.ts +0 -79
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.js +0 -3
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.d.ts +0 -2
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.js +0 -3
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.d.ts +0 -158
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.js +0 -3
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.d.ts +0 -382
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.js +0 -68
- package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/index.d.ts +0 -2
- package/templates/shopping-app/example-integrations/cart/dist/index.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart/dist/index.js +0 -2
- package/templates/shopping-app/example-integrations/cart/dist/index.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart/node_modules/.bin/eslint +0 -21
- package/templates/shopping-app/example-integrations/cart/node_modules/.bin/jiti +0 -21
- package/templates/shopping-app/example-integrations/cart/node_modules/.bin/msw +0 -21
- package/templates/shopping-app/example-integrations/cart/node_modules/.bin/tsc +0 -21
- package/templates/shopping-app/example-integrations/cart/node_modules/.bin/tsserver +0 -21
- package/templates/shopping-app/example-integrations/cart/node_modules/.bin/vitest +0 -21
- package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-build.log +0 -4
- package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-format.log +0 -10
- package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-lint.log +0 -4
- package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-test.log +0 -12
- package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-type-check.log +0 -4
- package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.d.ts +0 -18
- package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.js +0 -28
- package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart-api/dist/index.d.ts +0 -4
- package/templates/shopping-app/example-integrations/cart-api/dist/index.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart-api/dist/index.js +0 -49
- package/templates/shopping-app/example-integrations/cart-api/dist/index.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.d.ts +0 -4
- package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.js +0 -261
- package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.js.map +0 -1
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/nodemon +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/swagger-jsdoc +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-cwd +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-esm +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-script +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-transpile-only +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-script +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsc +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsserver +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsx +0 -21
- package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/vitest +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-build.log +0 -4
- package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-format.log +0 -12
- package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-lint.log +0 -5
- package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-test.log +0 -12
- package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-type-check.log +0 -5
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.d.ts +0 -3
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.js +0 -149
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.d.ts +0 -8
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.js +0 -6
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.d.ts +0 -123
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.js +0 -3
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.d.ts +0 -46
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.js +0 -285
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.d.ts +0 -13
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.js +0 -6
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.d.ts +0 -19
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.js +0 -15
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.d.ts +0 -18
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.js +0 -58
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.d.ts +0 -34
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.js +0 -89
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.d.ts +0 -34
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.js +0 -115
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.d.ts +0 -79
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.js +0 -3
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.d.ts +0 -2
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.js +0 -3
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.d.ts +0 -115
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.js +0 -3
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.d.ts +0 -206
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.js +0 -53
- package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/index.d.ts +0 -2
- package/templates/shopping-app/example-integrations/product-catalogue/dist/index.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/index.js +0 -2
- package/templates/shopping-app/example-integrations/product-catalogue/dist/index.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.d.ts +0 -32
- package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.js +0 -163
- package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/eslint +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/jiti +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/msw +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/tsc +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/tsserver +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/vitest +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-build.log +0 -4
- package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-format.log +0 -10
- package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-lint.log +0 -5
- package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-test.log +0 -13
- package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-type-check.log +0 -5
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.d.ts +0 -10
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.js +0 -75
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.d.ts +0 -4
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.js +0 -49
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.d.ts +0 -4
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.d.ts.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.js +0 -170
- package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.js.map +0 -1
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/nodemon +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/swagger-jsdoc +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-cwd +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-esm +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-script +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-transpile-only +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-script +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsc +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsserver +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsx +0 -21
- package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/vitest +0 -21
- package/templates/shopping-app/pnpm-workspace.yaml +0 -2
- package/templates/shopping-app/server/src/domain/shared/ReadModel.d.ts +0 -10
- package/templates/shopping-app/server/src/domain/shared/ReadModel.d.ts.map +0 -1
- package/templates/shopping-app/server/src/domain/shared/ReadModel.js +0 -19
- package/templates/shopping-app/server/src/domain/shared/ReadModel.js.map +0 -1
- package/templates/shopping-app/server/src/domain/shared/index.d.ts.map +0 -1
- package/templates/shopping-app/server/src/domain/shared/index.js +0 -5
- package/templates/shopping-app/server/src/domain/shared/index.js.map +0 -1
- package/templates/shopping-app/server/src/domain/shared/reactorSpecification.d.ts +0 -56
- package/templates/shopping-app/server/src/domain/shared/reactorSpecification.d.ts.map +0 -1
- package/templates/shopping-app/server/src/domain/shared/reactorSpecification.js.map +0 -1
- package/templates/shopping-app/server/src/domain/shared/sendCommand.d.ts +0 -7
- package/templates/shopping-app/server/src/domain/shared/sendCommand.d.ts.map +0 -1
- package/templates/shopping-app/server/src/domain/shared/sendCommand.js +0 -16
- package/templates/shopping-app/server/src/domain/shared/sendCommand.js.map +0 -1
- package/templates/shopping-app/server/src/domain/shared/types.d.ts.map +0 -1
- package/templates/shopping-app/server/src/domain/shared/types.js +0 -40
- package/templates/shopping-app/server/src/domain/shared/types.js.map +0 -1
- package/templates/shopping-app/server/src/utils/index.d.ts.map +0 -1
- package/templates/shopping-app/server/src/utils/index.js +0 -4
- package/templates/shopping-app/server/src/utils/index.js.map +0 -1
- package/templates/shopping-app/server/src/utils/loadProjections.d.ts +0 -3
- package/templates/shopping-app/server/src/utils/loadProjections.d.ts.map +0 -1
- package/templates/shopping-app/server/src/utils/loadProjections.js.map +0 -1
- package/templates/shopping-app/server/src/utils/loadRegisterFiles.d.ts +0 -6
- package/templates/shopping-app/server/src/utils/loadRegisterFiles.d.ts.map +0 -1
- package/templates/shopping-app/server/src/utils/loadRegisterFiles.js +0 -26
- package/templates/shopping-app/server/src/utils/loadRegisterFiles.js.map +0 -1
- package/templates/shopping-app/server/src/utils/loadResolvers.d.ts +0 -5
- package/templates/shopping-app/server/src/utils/loadResolvers.d.ts.map +0 -1
- 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,G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C;QACtB,aAAa;QACb,IAAI,EAAE,KAAK,KAAK,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG;QACtD,KAAK,EAAE,CAAW;KACnB,CAAC,CACH;SACA,IAAI,CAAC,SAAS,CAAC,CAAC;IACnB,OAAO,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,QAAQ;QAC5C,CAAC,CAAC,SAAS,GAAG,YAAY;QAC1B,CAAC,CAAC,YAAY,CAAC;AACnB,CAAC,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,GAAG,EAAE,QAAQ,CAAC;IACd,OAAO,EAAE,SAAS,CAAC;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACtC,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,IAAI,CA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ACxD,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.js","sourceRoot":"","sources":["../../../../src/generated/product-catalog/core/types.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD"}
|
|
@@ -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 +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,GAA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,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG,yCAAyC,CAAC,MAAM,yCAAyC,CAAC,CAAC;AAElJ,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,EAAE;QACF;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC;;OAEG;IACH,GAAG,EAAE;QACD,KAAK,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAC,MAAM,wBAAwB,CAAC,CAAC;AAE/F,MAAM,MAAM,2BAA2B,GAAG;IACtC;;OAEG;IACH,GAAG,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AAEF,MAAM,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 +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,QAA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AAC,CAAC,MAAM,CAAC;QACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;KACjB,CAAC;IACF,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|