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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cart.d.ts","sourceRoot":"","sources":["../../src/data/cart.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAa,CAAC;AAGhE,eAAO,MAAM,kBAAkB,GAAI,OAAO,QAAQ,EAAE,KAAG,MAEtD,CAAC;AAGF,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,KAAG,WAWrD,CAAC;AAGF,eAAO,MAAM,sBAAsB,GAAI,WAAW,MAAM,KAAG,WAM1D,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// In-memory storage for cart sessions
|
|
2
|
-
export const cartSessions = new Map();
|
|
3
|
-
// Helper function to calculate cart total
|
|
4
|
-
export const calculateCartTotal = (items) => {
|
|
5
|
-
return items.reduce((total, item) => total + item.price * item.quantity, 0);
|
|
6
|
-
};
|
|
7
|
-
// Helper function to create a new cart session
|
|
8
|
-
export const createCartSession = (sessionId) => {
|
|
9
|
-
const now = new Date().toISOString();
|
|
10
|
-
const cartSession = {
|
|
11
|
-
sessionId,
|
|
12
|
-
items: [],
|
|
13
|
-
total: 0,
|
|
14
|
-
createdAt: now,
|
|
15
|
-
updatedAt: now,
|
|
16
|
-
};
|
|
17
|
-
cartSessions.set(sessionId, cartSession);
|
|
18
|
-
return cartSession;
|
|
19
|
-
};
|
|
20
|
-
// Helper function to get or create cart session
|
|
21
|
-
export const getOrCreateCartSession = (sessionId) => {
|
|
22
|
-
let cartSession = cartSessions.get(sessionId);
|
|
23
|
-
if (!cartSession) {
|
|
24
|
-
cartSession = createCartSession(sessionId);
|
|
25
|
-
}
|
|
26
|
-
return cartSession;
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=cart.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cart.js","sourceRoot":"","sources":["../../src/data/cart.ts"],"names":[],"mappings":"AAeA,sCAAsC;AACtC,MAAM,CAAC,MAAM,YAAY,GAA6B,IAAI,GAAG,EAAE,CAAC;AAEhE,0CAA0C;AAC1C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAiB,EAAU,EAAE;IAC9D,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAiB,EAAe,EAAE;IAClE,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACrC,MAAM,WAAW,GAAgB;QAC/B,SAAS;QACT,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,CAAC;QACR,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf,CAAC;IACF,YAAY,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IACzC,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,gDAAgD;AAChD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,SAAiB,EAAe,EAAE;IACvE,IAAI,WAAW,GAAG,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC9C,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,WAAW,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAMhD,QAAA,MAAM,GAAG,EAAE,OAAmB,CAAC;AAoD/B,eAAe,GAAG,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
import cors from 'cors';
|
|
3
|
-
import swaggerUi from 'swagger-ui-express';
|
|
4
|
-
import swaggerJsdoc from 'swagger-jsdoc';
|
|
5
|
-
import cartRouter from './routes/cart';
|
|
6
|
-
const app = express();
|
|
7
|
-
const PORT = process.env.PORT ?? '3002';
|
|
8
|
-
// Swagger configuration
|
|
9
|
-
const swaggerOptions = {
|
|
10
|
-
definition: {
|
|
11
|
-
openapi: '3.0.0',
|
|
12
|
-
info: {
|
|
13
|
-
title: 'Cart Service API',
|
|
14
|
-
version: '1.0.0',
|
|
15
|
-
description: 'A cart management service with interactive documentation',
|
|
16
|
-
},
|
|
17
|
-
servers: [
|
|
18
|
-
{
|
|
19
|
-
url: `http://localhost:${PORT}`,
|
|
20
|
-
description: 'Development server',
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
},
|
|
24
|
-
apis: ['./src/routes/cart.ts'],
|
|
25
|
-
};
|
|
26
|
-
const swaggerSpec = swaggerJsdoc(swaggerOptions);
|
|
27
|
-
// Middleware
|
|
28
|
-
app.use(cors({
|
|
29
|
-
origin: '*',
|
|
30
|
-
}));
|
|
31
|
-
app.use(express.json());
|
|
32
|
-
// Swagger UI
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
-
app.use('/docs', ...swaggerUi.serve, swaggerUi.setup(swaggerSpec));
|
|
35
|
-
// Routes
|
|
36
|
-
app.use('/api/cart', cartRouter);
|
|
37
|
-
// Health check endpoint
|
|
38
|
-
app.get('/health', (req, res) => {
|
|
39
|
-
res.json({ status: 'OK', timestamp: new Date().toISOString() });
|
|
40
|
-
});
|
|
41
|
-
// Only start server if not in test environment
|
|
42
|
-
if (process.env.NODE_ENV !== 'test') {
|
|
43
|
-
app.listen(PORT, () => {
|
|
44
|
-
console.log(`Cart service running on port ${PORT}`);
|
|
45
|
-
console.log(`Swagger UI available at http://localhost:${PORT}/docs`);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
export default app;
|
|
49
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAyB,MAAM,SAAS,CAAC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WAAW,EAAE,EAAE,CAAC,CAAC;AAClE,CAAC,CAAC,CAAC;AAEH,+CAA+C;AAC/C,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;IACpC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QACpB,OAAO,CAAC,GAAG,CAAC,gCAAgC,IAAI,EAAE,CAAC,CAAC;QACpD,OAAO,CAAC,GAAG,CAAC,4CAA4C,IAAI,OAAO,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;AACL,CAAC;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cart.d.ts","sourceRoot":"","sources":["../../src/routes/cart.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAGvD,QAAA,MAAM,MAAM,EAAE,aAAwB,CAAC;AA4RvC,eAAe,MAAM,CAAC"}
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import { Router } from 'express';
|
|
2
|
-
import { cartSessions, calculateCartTotal, getOrCreateCartSession } from '../data/cart';
|
|
3
|
-
const router = Router();
|
|
4
|
-
/**
|
|
5
|
-
* @swagger
|
|
6
|
-
* components:
|
|
7
|
-
* schemas:
|
|
8
|
-
* CartItem:
|
|
9
|
-
* type: object
|
|
10
|
-
* required:
|
|
11
|
-
* - productId
|
|
12
|
-
* - name
|
|
13
|
-
* - price
|
|
14
|
-
* - quantity
|
|
15
|
-
* properties:
|
|
16
|
-
* productId:
|
|
17
|
-
* type: string
|
|
18
|
-
* description: Unique identifier for the product
|
|
19
|
-
* name:
|
|
20
|
-
* type: string
|
|
21
|
-
* description: Product name
|
|
22
|
-
* price:
|
|
23
|
-
* type: number
|
|
24
|
-
* description: Product price in dollars
|
|
25
|
-
* quantity:
|
|
26
|
-
* type: number
|
|
27
|
-
* description: Quantity of the product in cart
|
|
28
|
-
* CartSession:
|
|
29
|
-
* type: object
|
|
30
|
-
* required:
|
|
31
|
-
* - sessionId
|
|
32
|
-
* - items
|
|
33
|
-
* - total
|
|
34
|
-
* - createdAt
|
|
35
|
-
* - updatedAt
|
|
36
|
-
* properties:
|
|
37
|
-
* sessionId:
|
|
38
|
-
* type: string
|
|
39
|
-
* description: Unique cart session identifier
|
|
40
|
-
* items:
|
|
41
|
-
* type: array
|
|
42
|
-
* items:
|
|
43
|
-
* $ref: '#/components/schemas/CartItem'
|
|
44
|
-
* description: Array of items in the cart
|
|
45
|
-
* total:
|
|
46
|
-
* type: number
|
|
47
|
-
* description: Total cost of all items in cart
|
|
48
|
-
* createdAt:
|
|
49
|
-
* type: string
|
|
50
|
-
* format: date-time
|
|
51
|
-
* description: When the cart session was created
|
|
52
|
-
* updatedAt:
|
|
53
|
-
* type: string
|
|
54
|
-
* format: date-time
|
|
55
|
-
* description: When the cart was last updated
|
|
56
|
-
*/
|
|
57
|
-
/**
|
|
58
|
-
* @swagger
|
|
59
|
-
* /api/cart/{sessionId}:
|
|
60
|
-
* get:
|
|
61
|
-
* summary: Get cart by session ID
|
|
62
|
-
* description: Retrieve the cart contents for a specific session
|
|
63
|
-
* tags: [Cart]
|
|
64
|
-
* parameters:
|
|
65
|
-
* - in: path
|
|
66
|
-
* name: sessionId
|
|
67
|
-
* required: true
|
|
68
|
-
* schema:
|
|
69
|
-
* type: string
|
|
70
|
-
* description: Cart session identifier
|
|
71
|
-
* responses:
|
|
72
|
-
* 200:
|
|
73
|
-
* description: Cart session details
|
|
74
|
-
* content:
|
|
75
|
-
* application/json:
|
|
76
|
-
* schema:
|
|
77
|
-
* $ref: '#/components/schemas/CartSession'
|
|
78
|
-
*/
|
|
79
|
-
router.get('/:sessionId', (req, res) => {
|
|
80
|
-
const { sessionId } = req.params;
|
|
81
|
-
const cartSession = getOrCreateCartSession(sessionId);
|
|
82
|
-
res.json(cartSession);
|
|
83
|
-
});
|
|
84
|
-
/**
|
|
85
|
-
* @swagger
|
|
86
|
-
* /api/cart/{sessionId}/add:
|
|
87
|
-
* post:
|
|
88
|
-
* summary: Add item to cart
|
|
89
|
-
* description: Add a product to the cart with specified quantity
|
|
90
|
-
* tags: [Cart]
|
|
91
|
-
* parameters:
|
|
92
|
-
* - in: path
|
|
93
|
-
* name: sessionId
|
|
94
|
-
* required: true
|
|
95
|
-
* schema:
|
|
96
|
-
* type: string
|
|
97
|
-
* description: Cart session identifier
|
|
98
|
-
* requestBody:
|
|
99
|
-
* required: true
|
|
100
|
-
* content:
|
|
101
|
-
* application/json:
|
|
102
|
-
* schema:
|
|
103
|
-
* type: object
|
|
104
|
-
* required:
|
|
105
|
-
* - productId
|
|
106
|
-
* - name
|
|
107
|
-
* - price
|
|
108
|
-
* - quantity
|
|
109
|
-
* properties:
|
|
110
|
-
* productId:
|
|
111
|
-
* type: string
|
|
112
|
-
* description: Product identifier
|
|
113
|
-
* name:
|
|
114
|
-
* type: string
|
|
115
|
-
* description: Product name
|
|
116
|
-
* price:
|
|
117
|
-
* type: number
|
|
118
|
-
* description: Product price
|
|
119
|
-
* quantity:
|
|
120
|
-
* type: number
|
|
121
|
-
* description: Quantity to add
|
|
122
|
-
* responses:
|
|
123
|
-
* 200:
|
|
124
|
-
* description: Item added to cart successfully
|
|
125
|
-
* content:
|
|
126
|
-
* application/json:
|
|
127
|
-
* schema:
|
|
128
|
-
* $ref: '#/components/schemas/CartSession'
|
|
129
|
-
* 400:
|
|
130
|
-
* description: Invalid request data
|
|
131
|
-
*/
|
|
132
|
-
router.post('/:sessionId/add', (req, res) => {
|
|
133
|
-
const { sessionId } = req.params;
|
|
134
|
-
const { productId, name, price, quantity } = req.body;
|
|
135
|
-
if (!productId || !name || price === undefined || !quantity) {
|
|
136
|
-
return res.status(400).json({
|
|
137
|
-
error: 'Missing required fields: productId, name, price, quantity',
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
if (quantity <= 0) {
|
|
141
|
-
return res.status(400).json({ error: 'Quantity must be greater than 0' });
|
|
142
|
-
}
|
|
143
|
-
const cartSession = getOrCreateCartSession(sessionId);
|
|
144
|
-
const existingItemIndex = cartSession.items.findIndex((item) => item.productId === productId);
|
|
145
|
-
if (existingItemIndex >= 0) {
|
|
146
|
-
// Update existing item quantity
|
|
147
|
-
cartSession.items[existingItemIndex].quantity += quantity;
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
// Add new item
|
|
151
|
-
const newItem = { productId, name, price, quantity };
|
|
152
|
-
cartSession.items.push(newItem);
|
|
153
|
-
}
|
|
154
|
-
// Update cart total and timestamp
|
|
155
|
-
cartSession.total = calculateCartTotal(cartSession.items);
|
|
156
|
-
cartSession.updatedAt = new Date().toISOString();
|
|
157
|
-
cartSessions.set(sessionId, cartSession);
|
|
158
|
-
res.json(cartSession);
|
|
159
|
-
});
|
|
160
|
-
/**
|
|
161
|
-
* @swagger
|
|
162
|
-
* /api/cart/{sessionId}/remove:
|
|
163
|
-
* post:
|
|
164
|
-
* summary: Remove item from cart
|
|
165
|
-
* description: Remove a product from the cart or reduce its quantity
|
|
166
|
-
* tags: [Cart]
|
|
167
|
-
* parameters:
|
|
168
|
-
* - in: path
|
|
169
|
-
* name: sessionId
|
|
170
|
-
* required: true
|
|
171
|
-
* schema:
|
|
172
|
-
* type: string
|
|
173
|
-
* description: Cart session identifier
|
|
174
|
-
* requestBody:
|
|
175
|
-
* required: true
|
|
176
|
-
* content:
|
|
177
|
-
* application/json:
|
|
178
|
-
* schema:
|
|
179
|
-
* type: object
|
|
180
|
-
* required:
|
|
181
|
-
* - productId
|
|
182
|
-
* - quantity
|
|
183
|
-
* properties:
|
|
184
|
-
* productId:
|
|
185
|
-
* type: string
|
|
186
|
-
* description: Product identifier to remove
|
|
187
|
-
* quantity:
|
|
188
|
-
* type: number
|
|
189
|
-
* description: Quantity to remove (optional, removes all if not specified)
|
|
190
|
-
* responses:
|
|
191
|
-
* 200:
|
|
192
|
-
* description: Item removed from cart successfully
|
|
193
|
-
* content:
|
|
194
|
-
* application/json:
|
|
195
|
-
* schema:
|
|
196
|
-
* $ref: '#/components/schemas/CartSession'
|
|
197
|
-
* 400:
|
|
198
|
-
* description: Invalid request data
|
|
199
|
-
* 404:
|
|
200
|
-
* description: Product not found in cart
|
|
201
|
-
*/
|
|
202
|
-
router.post('/:sessionId/remove', (req, res) => {
|
|
203
|
-
const { sessionId } = req.params;
|
|
204
|
-
const { productId, quantity } = req.body;
|
|
205
|
-
if (!productId) {
|
|
206
|
-
return res.status(400).json({ error: 'productId is required' });
|
|
207
|
-
}
|
|
208
|
-
const cartSession = getOrCreateCartSession(sessionId);
|
|
209
|
-
const itemIndex = cartSession.items.findIndex((item) => item.productId === productId);
|
|
210
|
-
if (itemIndex === -1) {
|
|
211
|
-
return res.status(404).json({ error: 'Product not found in cart' });
|
|
212
|
-
}
|
|
213
|
-
const item = cartSession.items[itemIndex];
|
|
214
|
-
const removeQuantity = quantity ?? item.quantity;
|
|
215
|
-
if (removeQuantity >= item.quantity) {
|
|
216
|
-
// Remove entire item
|
|
217
|
-
cartSession.items.splice(itemIndex, 1);
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
// Reduce quantity
|
|
221
|
-
cartSession.items[itemIndex].quantity -= removeQuantity;
|
|
222
|
-
}
|
|
223
|
-
// Update cart total and timestamp
|
|
224
|
-
cartSession.total = calculateCartTotal(cartSession.items);
|
|
225
|
-
cartSession.updatedAt = new Date().toISOString();
|
|
226
|
-
cartSessions.set(sessionId, cartSession);
|
|
227
|
-
res.json(cartSession);
|
|
228
|
-
});
|
|
229
|
-
/**
|
|
230
|
-
* @swagger
|
|
231
|
-
* /api/cart/{sessionId}/clear:
|
|
232
|
-
* post:
|
|
233
|
-
* summary: Clear cart
|
|
234
|
-
* description: Remove all items from the cart
|
|
235
|
-
* tags: [Cart]
|
|
236
|
-
* parameters:
|
|
237
|
-
* - in: path
|
|
238
|
-
* name: sessionId
|
|
239
|
-
* required: true
|
|
240
|
-
* schema:
|
|
241
|
-
* type: string
|
|
242
|
-
* description: Cart session identifier
|
|
243
|
-
* responses:
|
|
244
|
-
* 200:
|
|
245
|
-
* description: Cart cleared successfully
|
|
246
|
-
* content:
|
|
247
|
-
* application/json:
|
|
248
|
-
* schema:
|
|
249
|
-
* $ref: '#/components/schemas/CartSession'
|
|
250
|
-
*/
|
|
251
|
-
router.post('/:sessionId/clear', (req, res) => {
|
|
252
|
-
const { sessionId } = req.params;
|
|
253
|
-
const cartSession = getOrCreateCartSession(sessionId);
|
|
254
|
-
cartSession.items = [];
|
|
255
|
-
cartSession.total = 0;
|
|
256
|
-
cartSession.updatedAt = new Date().toISOString();
|
|
257
|
-
cartSessions.set(sessionId, cartSession);
|
|
258
|
-
res.json(cartSession);
|
|
259
|
-
});
|
|
260
|
-
export default router;
|
|
261
|
-
//# sourceMappingURL=cart.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cart.js","sourceRoot":"","sources":["../../src/routes/cart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA+B,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAY,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAElG,MAAM,MAAM,GAAkB,MAAM,EAAE,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,EAAE;IACxD,MAAM,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAA+B,CAAC;IAC1D,MAAM,WAAW,GAAG,sBAAsB,CAAC,SAAS,CAAC,CAAC;IACtD,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAC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; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/nodemon@3.1.10/node_modules/nodemon/bin/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/nodemon@3.1.10/node_modules/nodemon/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/nodemon@3.1.10/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/nodemon@3.1.10/node_modules/nodemon/bin/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/nodemon@3.1.10/node_modules/nodemon/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/nodemon@3.1.10/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../nodemon/bin/nodemon.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../nodemon/bin/nodemon.js" "$@"
|
|
21
|
-
fi
|
package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/swagger-jsdoc
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/swagger-jsdoc@6.2.8_openapi-types@12.1.3/node_modules/swagger-jsdoc/bin/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/swagger-jsdoc@6.2.8_openapi-types@12.1.3/node_modules/swagger-jsdoc/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/swagger-jsdoc@6.2.8_openapi-types@12.1.3/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/swagger-jsdoc@6.2.8_openapi-types@12.1.3/node_modules/swagger-jsdoc/bin/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/swagger-jsdoc@6.2.8_openapi-types@12.1.3/node_modules/swagger-jsdoc/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/swagger-jsdoc@6.2.8_openapi-types@12.1.3/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../swagger-jsdoc/bin/swagger-jsdoc.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../swagger-jsdoc/bin/swagger-jsdoc.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../ts-node/dist/bin.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../ts-node/dist/bin.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../ts-node/dist/bin-cwd.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../ts-node/dist/bin-cwd.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../ts-node/dist/bin-esm.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../ts-node/dist/bin-esm.js" "$@"
|
|
21
|
-
fi
|
package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-script
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../ts-node/dist/bin-script.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../ts-node/dist/bin-script.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../ts-node/dist/bin-transpile.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../ts-node/dist/bin-transpile.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules/ts-node/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.19.11_typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../ts-node/dist/bin-script-deprecated.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../ts-node/dist/bin-script-deprecated.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/bin/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/bin/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/bin/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/bin/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/typescript@5.9.2/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/tsx@4.20.5/node_modules/tsx/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/tsx@4.20.5/node_modules/tsx/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/tsx@4.20.5/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/tsx@4.20.5/node_modules/tsx/dist/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/tsx@4.20.5/node_modules/tsx/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/tsx@4.20.5/node_modules:/Users/sam/WebstormProjects/top/auto-engineer/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../tsx/dist/cli.mjs" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../tsx/dist/cli.mjs" "$@"
|
|
21
|
-
fi
|