@aws/nx-plugin 1.0.0-rc.23 → 1.0.0-rc.24
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/LICENSE-THIRD-PARTY +2088 -971
- package/package.json +25 -10
- package/src/agentcore-gateway/attach-upstream.d.ts +7 -7
- package/src/agentcore-gateway/attach-upstream.js +19 -22
- package/src/agentcore-gateway/attach-upstream.js.map +1 -1
- package/src/agentcore-gateway/gateway-connection/generator.d.ts +3 -3
- package/src/agentcore-gateway/gateway-connection/generator.js +42 -45
- package/src/agentcore-gateway/gateway-connection/generator.js.map +1 -1
- package/src/agentcore-gateway/gateway-connection/schema.d.js +6 -0
- package/src/agentcore-gateway/gateway-connection/schema.d.js.map +1 -0
- package/src/agentcore-gateway/generator.js +89 -72
- package/src/agentcore-gateway/generator.js.map +1 -1
- package/src/agentcore-gateway/mcp-connection/generator.d.ts +2 -2
- package/src/agentcore-gateway/mcp-connection/generator.js +24 -30
- package/src/agentcore-gateway/mcp-connection/generator.js.map +1 -1
- package/src/agentcore-gateway/mcp-connection/schema.d.js +6 -0
- package/src/agentcore-gateway/mcp-connection/schema.d.js.map +1 -0
- package/src/agentcore-gateway/schema.d.js +6 -0
- package/src/agentcore-gateway/schema.d.js.map +1 -0
- package/src/bin/aws-nx-mcp.js +14 -0
- package/src/bin/aws-nx-mcp.js.map +1 -0
- package/src/connection/{agent-serve-local.d.ts → agent-local-dev.d.ts} +5 -5
- package/src/connection/agent-local-dev.js +42 -0
- package/src/connection/agent-local-dev.js.map +1 -0
- package/src/connection/agent-runtime-config.js +9 -14
- package/src/connection/agent-runtime-config.js.map +1 -1
- package/src/connection/generator.js +262 -207
- package/src/connection/generator.js.map +1 -1
- package/src/connection/{serve-local.d.ts → local-dev.d.ts} +3 -3
- package/src/connection/local-dev.js +37 -0
- package/src/connection/local-dev.js.map +1 -0
- package/src/connection/schema.d.js +6 -0
- package/src/connection/schema.d.js.map +1 -0
- package/src/index.js +2 -5
- package/src/index.js.map +1 -1
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +4 -26
- package/src/infra/app/generator.js +133 -123
- package/src/infra/app/generator.js.map +1 -1
- package/src/infra/app/schema.d.js +6 -0
- package/src/infra/app/schema.d.js.map +1 -0
- package/src/license/config-types.js +5 -3
- package/src/license/config-types.js.map +1 -1
- package/src/license/config.d.ts +1 -1
- package/src/license/config.js +267 -242
- package/src/license/config.js.map +1 -1
- package/src/license/dependency-check/check.js +51 -46
- package/src/license/dependency-check/check.js.map +1 -1
- package/src/license/dependency-check/collectors/collector.js +41 -71
- package/src/license/dependency-check/collectors/collector.js.map +1 -1
- package/src/license/dependency-check/collectors/npm-collector.js +34 -41
- package/src/license/dependency-check/collectors/npm-collector.js.map +1 -1
- package/src/license/dependency-check/collectors/python-collector.js +55 -62
- package/src/license/dependency-check/collectors/python-collector.js.map +1 -1
- package/src/license/dependency-check/evaluator.js +40 -68
- package/src/license/dependency-check/evaluator.js.map +1 -1
- package/src/license/dependency-check/executor.js +30 -22
- package/src/license/dependency-check/executor.js.map +1 -1
- package/src/license/dependency-check/pre-approved.js +949 -336
- package/src/license/dependency-check/pre-approved.js.map +1 -1
- package/src/license/dependency-check/types.js +2 -3
- package/src/license/dependency-check/types.js.map +1 -1
- package/src/license/generator.js +55 -60
- package/src/license/generator.js.map +1 -1
- package/src/license/index.js +3 -9
- package/src/license/index.js.map +1 -1
- package/src/license/known-exceptions.js +14 -13
- package/src/license/known-exceptions.js.map +1 -1
- package/src/license/schema.d.js +6 -0
- package/src/license/schema.d.js.map +1 -0
- package/src/license/sync/generator.js +94 -119
- package/src/license/sync/generator.js.map +1 -1
- package/src/license/sync/project-file-sync.js +28 -35
- package/src/license/sync/project-file-sync.js.map +1 -1
- package/src/mcp-server/generator-info.js +130 -160
- package/src/mcp-server/generator-info.js.map +1 -1
- package/src/mcp-server/guide-pipeline.js +184 -206
- package/src/mcp-server/guide-pipeline.js.map +1 -1
- package/src/mcp-server/guide-render.js +10 -25
- package/src/mcp-server/guide-render.js.map +1 -1
- package/src/mcp-server/index.js +6 -10
- package/src/mcp-server/index.js.map +1 -1
- package/src/mcp-server/mdx-ast.js +39 -57
- package/src/mcp-server/mdx-ast.js.map +1 -1
- package/src/mcp-server/option-filter.js +33 -47
- package/src/mcp-server/option-filter.js.map +1 -1
- package/src/mcp-server/schema-registry.js +27 -40
- package/src/mcp-server/schema-registry.js.map +1 -1
- package/src/mcp-server/schema.js +9 -7
- package/src/mcp-server/schema.js.map +1 -1
- package/src/mcp-server/server.js +20 -24
- package/src/mcp-server/server.js.map +1 -1
- package/src/mcp-server/tools/create-workspace-command.js +23 -24
- package/src/mcp-server/tools/create-workspace-command.js.map +1 -1
- package/src/mcp-server/tools/general-guidance.js +28 -25
- package/src/mcp-server/tools/general-guidance.js.map +1 -1
- package/src/mcp-server/tools/generator-guide.js +29 -37
- package/src/mcp-server/tools/generator-guide.js.map +1 -1
- package/src/mcp-server/tools/list-generators.js +19 -25
- package/src/mcp-server/tools/list-generators.js.map +1 -1
- package/src/open-api/ts-client/generator.js +16 -26
- package/src/open-api/ts-client/generator.js.map +1 -1
- package/src/open-api/ts-client/schema.d.js +6 -0
- package/src/open-api/ts-client/schema.d.js.map +1 -0
- package/src/open-api/ts-hooks/generator.js +13 -21
- package/src/open-api/ts-hooks/generator.js.map +1 -1
- package/src/open-api/ts-hooks/schema.d.js +6 -0
- package/src/open-api/ts-hooks/schema.d.js.map +1 -0
- package/src/open-api/ts-metadata/generator.js +12 -20
- package/src/open-api/ts-metadata/generator.js.map +1 -1
- package/src/open-api/ts-metadata/schema.d.js +6 -0
- package/src/open-api/ts-metadata/schema.d.js.map +1 -0
- package/src/open-api/utils/codegen-data/languages.js +42 -60
- package/src/open-api/utils/codegen-data/languages.js.map +1 -1
- package/src/open-api/utils/codegen-data/types.js +31 -30
- package/src/open-api/utils/codegen-data/types.js.map +1 -1
- package/src/open-api/utils/codegen-data.js +253 -269
- package/src/open-api/utils/codegen-data.js.map +1 -1
- package/src/open-api/utils/normalise.js +242 -241
- package/src/open-api/utils/normalise.js.map +1 -1
- package/src/open-api/utils/parse.js +8 -14
- package/src/open-api/utils/parse.js.map +1 -1
- package/src/open-api/utils/refs.js +12 -22
- package/src/open-api/utils/refs.js.map +1 -1
- package/src/open-api/utils/types.js +5 -2
- package/src/open-api/utils/types.js.map +1 -1
- package/src/preset/__snapshots__/generator.spec.ts.snap +31 -6
- package/src/preset/generator.d.ts +1 -1
- package/src/preset/generator.js +130 -112
- package/src/preset/generator.js.map +1 -1
- package/src/preset/schema.d.js +6 -0
- package/src/preset/schema.d.js.map +1 -0
- package/src/preset/schema.d.ts +0 -1
- package/src/preset/schema.json +0 -5
- package/src/py/agent/__snapshots__/generator.constructs.spec.ts.snap +304 -0
- package/src/py/agent/__snapshots__/{generator.spec.ts.snap → generator.frameworks.spec.ts.snap} +6 -843
- package/src/py/agent/__snapshots__/generator.protocols.spec.ts.snap +535 -0
- package/src/py/agent/a2a-connection/__snapshots__/generator.spec.ts.snap +1 -2
- package/src/py/agent/a2a-connection/files/agent-connection/app/__targetAgentSnakeCase___client_strands.py.template +1 -1
- package/src/py/agent/a2a-connection/files/langchain/agent-connection/app/__targetAgentSnakeCase___client_langchain.py.template +1 -1
- package/src/py/agent/a2a-connection/generator.js +70 -74
- package/src/py/agent/a2a-connection/generator.js.map +1 -1
- package/src/py/agent/a2a-connection/schema.d.js +8 -0
- package/src/py/agent/a2a-connection/schema.d.js.map +1 -0
- package/src/py/agent/gateway-connection/__snapshots__/generator.spec.ts.snap +6 -8
- package/src/py/agent/gateway-connection/files/agent-connection/app/__gatewaySnakeCase___client_strands.py.template +3 -3
- package/src/py/agent/gateway-connection/files/langchain/agent-connection/app/__gatewaySnakeCase___client_langchain.py.template +3 -3
- package/src/py/agent/gateway-connection/generator.js +61 -57
- package/src/py/agent/gateway-connection/generator.js.map +1 -1
- package/src/py/agent/gateway-connection/schema.d.js +6 -0
- package/src/py/agent/gateway-connection/schema.d.js.map +1 -0
- package/src/py/agent/generator.js +227 -193
- package/src/py/agent/generator.js.map +1 -1
- package/src/py/agent/mcp-connection/__snapshots__/generator.spec.ts.snap +5 -12
- package/src/py/agent/mcp-connection/files/agent-connection/app/__mcpServerSnakeCase___client_strands.py.template +1 -1
- package/src/py/agent/mcp-connection/files/langchain/agent-connection/app/__mcpServerSnakeCase___client_langchain.py.template +1 -1
- package/src/py/agent/mcp-connection/generator.js +53 -51
- package/src/py/agent/mcp-connection/generator.js.map +1 -1
- package/src/py/agent/mcp-connection/schema.d.js +8 -0
- package/src/py/agent/mcp-connection/schema.d.js.map +1 -0
- package/src/py/agent/react-connection/__snapshots__/generator.spec.ts.snap +3 -2
- package/src/py/agent/react-connection/generator.js +51 -58
- package/src/py/agent/react-connection/generator.js.map +1 -1
- package/src/py/agent/react-connection/{serve-local.d.ts → local-dev.d.ts} +4 -4
- package/src/py/agent/react-connection/local-dev.js +36 -0
- package/src/py/agent/react-connection/local-dev.js.map +1 -0
- package/src/py/agent/react-connection/schema.d.js +8 -0
- package/src/py/agent/react-connection/schema.d.js.map +1 -0
- package/src/py/agent/schema.d.js +6 -0
- package/src/py/agent/schema.d.js.map +1 -0
- package/src/py/api/generator.js +12 -12
- package/src/py/api/generator.js.map +1 -1
- package/src/py/api/schema.d.js +6 -0
- package/src/py/api/schema.d.js.map +1 -0
- package/src/py/dynamodb/__snapshots__/generator.spec.ts.snap +68 -28
- package/src/py/dynamodb/agent-connection/__snapshots__/generator.spec.ts.snap +5 -5
- package/src/py/dynamodb/agent-connection/generator.js +27 -29
- package/src/py/dynamodb/agent-connection/generator.js.map +1 -1
- package/src/py/dynamodb/agent-connection/schema.d.js +8 -0
- package/src/py/dynamodb/agent-connection/schema.d.js.map +1 -0
- package/src/py/dynamodb/fast-api-connection/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/py/dynamodb/fast-api-connection/generator.js +26 -28
- package/src/py/dynamodb/fast-api-connection/generator.js.map +1 -1
- package/src/py/dynamodb/fast-api-connection/schema.d.js +8 -0
- package/src/py/dynamodb/fast-api-connection/schema.d.js.map +1 -0
- package/src/py/dynamodb/files/__name__/client.py.template +5 -5
- package/src/py/dynamodb/files/__name__/entities/base.py.template +2 -2
- package/src/py/dynamodb/files/config.json.template +1 -1
- package/src/py/dynamodb/generator.js +63 -62
- package/src/py/dynamodb/generator.js.map +1 -1
- package/src/py/dynamodb/mcp-server-connection/__snapshots__/generator.spec.ts.snap +5 -5
- package/src/py/dynamodb/mcp-server-connection/generator.js +27 -29
- package/src/py/dynamodb/mcp-server-connection/generator.js.map +1 -1
- package/src/py/dynamodb/mcp-server-connection/schema.d.js +8 -0
- package/src/py/dynamodb/mcp-server-connection/schema.d.js.map +1 -0
- package/src/py/dynamodb/schema.d.js +6 -0
- package/src/py/dynamodb/schema.d.js.map +1 -0
- package/src/py/fast-api/__snapshots__/generator.spec.ts.snap +45 -4632
- package/src/py/fast-api/__snapshots__/generator.terraform.spec.ts.snap +4833 -0
- package/src/py/fast-api/generator.js +79 -85
- package/src/py/fast-api/generator.js.map +1 -1
- package/src/py/fast-api/react/__snapshots__/generator.spec.ts.snap +3 -2
- package/src/py/fast-api/react/generator.js +22 -24
- package/src/py/fast-api/react/generator.js.map +1 -1
- package/src/py/fast-api/react/open-api.js +28 -29
- package/src/py/fast-api/react/open-api.js.map +1 -1
- package/src/py/fast-api/react/schema.d.js +6 -0
- package/src/py/fast-api/react/schema.d.js.map +1 -0
- package/src/py/fast-api/schema.d.js +6 -0
- package/src/py/fast-api/schema.d.js.map +1 -0
- package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/py/lambda-function/generator.js +57 -58
- package/src/py/lambda-function/generator.js.map +1 -1
- package/src/py/lambda-function/schema.d.js +6 -0
- package/src/py/lambda-function/schema.d.js.map +1 -0
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/py/mcp-server/generator.js +149 -131
- package/src/py/mcp-server/generator.js.map +1 -1
- package/src/py/mcp-server/schema.d.js +6 -0
- package/src/py/mcp-server/schema.d.js.map +1 -0
- package/src/py/project/generator.js +128 -89
- package/src/py/project/generator.js.map +1 -1
- package/src/py/project/schema.d.js +6 -0
- package/src/py/project/schema.d.js.map +1 -0
- package/src/sdk/agentcore-gateway.d.ts +6 -0
- package/src/sdk/agentcore-gateway.js +7 -0
- package/src/sdk/agentcore-gateway.js.map +1 -0
- package/src/sdk/connection.d.ts +6 -0
- package/src/sdk/connection.js +6 -0
- package/src/sdk/connection.js.map +1 -0
- package/{sdk → src/sdk}/license.d.ts +4 -4
- package/src/sdk/license.js +7 -0
- package/src/sdk/license.js.map +1 -0
- package/src/sdk/open-api.d.ts +10 -0
- package/src/sdk/open-api.js +8 -0
- package/src/sdk/open-api.js.map +1 -0
- package/src/sdk/py.d.ts +14 -0
- package/src/sdk/py.js +10 -0
- package/src/sdk/py.js.map +1 -0
- package/src/sdk/terraform.d.ts +6 -0
- package/src/sdk/terraform.js +7 -0
- package/src/sdk/terraform.js.map +1 -0
- package/src/sdk/ts.d.ts +33 -0
- package/src/sdk/ts.js +35 -0
- package/src/sdk/ts.js.map +1 -0
- package/{sdk → src/sdk}/utils/ast.d.ts +2 -2
- package/src/sdk/utils/ast.js +7 -0
- package/src/sdk/utils/ast.js.map +1 -0
- package/{sdk → src/sdk}/utils/format.d.ts +1 -1
- package/src/sdk/utils/format.js +6 -0
- package/src/sdk/utils/format.js.map +1 -0
- package/{sdk → src/sdk}/utils/test.d.ts +1 -1
- package/src/sdk/utils/test.js +6 -0
- package/src/sdk/utils/test.js.map +1 -0
- package/src/smithy/project/__snapshots__/generator.spec.ts.snap +2 -8
- package/src/smithy/project/files/build.Dockerfile.template +1 -4
- package/src/smithy/project/generator.js +44 -42
- package/src/smithy/project/generator.js.map +1 -1
- package/src/smithy/project/schema.d.js +6 -0
- package/src/smithy/project/schema.d.js.map +1 -0
- package/src/smithy/react-connection/generator.js +35 -46
- package/src/smithy/react-connection/generator.js.map +1 -1
- package/src/smithy/react-connection/schema.d.js +6 -0
- package/src/smithy/react-connection/schema.d.js.map +1 -0
- package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +395 -72
- package/src/smithy/ts/api/generator.js +121 -111
- package/src/smithy/ts/api/generator.js.map +1 -1
- package/src/smithy/ts/api/schema.d.js +6 -0
- package/src/smithy/ts/api/schema.d.js.map +1 -0
- package/src/terraform/project/files/application/src/providers.tf.template +1 -1
- package/src/terraform/project/generator.js +141 -103
- package/src/terraform/project/generator.js.map +1 -1
- package/src/terraform/project/schema.d.js +9 -0
- package/src/terraform/project/schema.d.js.map +1 -0
- package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +336 -92
- package/src/trpc/backend/generator.js +93 -86
- package/src/trpc/backend/generator.js.map +1 -1
- package/src/trpc/backend/schema.d.js +6 -0
- package/src/trpc/backend/schema.d.js.map +1 -0
- package/src/trpc/react/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/trpc/react/generator.js +59 -58
- package/src/trpc/react/generator.js.map +1 -1
- package/src/trpc/react/schema.d.js +6 -0
- package/src/trpc/react/schema.d.js.map +1 -0
- package/src/ts/agent/__snapshots__/generator.spec.ts.snap +10 -10
- package/src/ts/agent/a2a-connection/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/agent/a2a-connection/files/agent-connection/app/__targetAgentKebabCase__-client-strands.ts.template +1 -1
- package/src/ts/agent/a2a-connection/generator.js +58 -54
- package/src/ts/agent/a2a-connection/generator.js.map +1 -1
- package/src/ts/agent/a2a-connection/schema.d.js +8 -0
- package/src/ts/agent/a2a-connection/schema.d.js.map +1 -0
- package/src/ts/agent/gateway-connection/__snapshots__/generator.spec.ts.snap +5 -5
- package/src/ts/agent/gateway-connection/files/agent-connection/app/__gatewayKebabCase__-client-strands.ts.template +3 -3
- package/src/ts/agent/gateway-connection/generator.js +57 -52
- package/src/ts/agent/gateway-connection/generator.js.map +1 -1
- package/src/ts/agent/gateway-connection/schema.d.js +6 -0
- package/src/ts/agent/gateway-connection/schema.d.js.map +1 -0
- package/src/ts/agent/generator.js +165 -136
- package/src/ts/agent/generator.js.map +1 -1
- package/src/ts/agent/mcp-connection/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/agent/mcp-connection/files/agent-connection/app/__mcpServerKebabCase__-client-strands.ts.template +1 -1
- package/src/ts/agent/mcp-connection/generator.js +48 -46
- package/src/ts/agent/mcp-connection/generator.js.map +1 -1
- package/src/ts/agent/mcp-connection/schema.d.js +8 -0
- package/src/ts/agent/mcp-connection/schema.d.js.map +1 -0
- package/src/ts/agent/react-connection/generator.js +79 -79
- package/src/ts/agent/react-connection/generator.js.map +1 -1
- package/src/ts/agent/react-connection/{serve-local.d.ts → local-dev.d.ts} +2 -2
- package/src/ts/agent/react-connection/local-dev.js +17 -0
- package/src/ts/agent/react-connection/local-dev.js.map +1 -0
- package/src/ts/agent/react-connection/schema.d.js +8 -0
- package/src/ts/agent/react-connection/schema.d.js.map +1 -0
- package/src/ts/agent/schema.d.js +6 -0
- package/src/ts/agent/schema.d.js.map +1 -0
- package/src/ts/api/generator.js +16 -18
- package/src/ts/api/generator.js.map +1 -1
- package/src/ts/api/schema.d.js +6 -0
- package/src/ts/api/schema.d.js.map +1 -0
- package/src/ts/astro-docs/__snapshots__/generator.spec.ts.snap +8 -8
- package/src/ts/astro-docs/generator.js +59 -48
- package/src/ts/astro-docs/generator.js.map +1 -1
- package/src/ts/astro-docs/schema.d.js +6 -0
- package/src/ts/astro-docs/schema.d.js.map +1 -0
- package/src/ts/docs/generator.js +10 -10
- package/src/ts/docs/generator.js.map +1 -1
- package/src/ts/docs/schema.d.js +6 -0
- package/src/ts/docs/schema.d.js.map +1 -0
- package/src/ts/dynamodb/__snapshots__/generator.spec.ts.snap +68 -30
- package/src/ts/dynamodb/agent-connection/__snapshots__/generator.spec.ts.snap +5 -5
- package/src/ts/dynamodb/agent-connection/generator.js +21 -23
- package/src/ts/dynamodb/agent-connection/generator.js.map +1 -1
- package/src/ts/dynamodb/agent-connection/schema.d.js +8 -0
- package/src/ts/dynamodb/agent-connection/schema.d.js.map +1 -0
- package/src/ts/dynamodb/files/config.json.template +1 -1
- package/src/ts/dynamodb/files/src/client.ts.template +7 -7
- package/src/ts/dynamodb/generator.js +64 -63
- package/src/ts/dynamodb/generator.js.map +1 -1
- package/src/ts/dynamodb/mcp-server-connection/__snapshots__/generator.spec.ts.snap +5 -5
- package/src/ts/dynamodb/mcp-server-connection/generator.js +21 -23
- package/src/ts/dynamodb/mcp-server-connection/generator.js.map +1 -1
- package/src/ts/dynamodb/mcp-server-connection/schema.d.js +8 -0
- package/src/ts/dynamodb/mcp-server-connection/schema.d.js.map +1 -0
- package/src/ts/dynamodb/schema.d.js +6 -0
- package/src/ts/dynamodb/schema.d.js.map +1 -0
- package/src/ts/dynamodb/smithy-connection/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/ts/dynamodb/smithy-connection/generator.js +20 -22
- package/src/ts/dynamodb/smithy-connection/generator.js.map +1 -1
- package/src/ts/dynamodb/smithy-connection/schema.d.js +8 -0
- package/src/ts/dynamodb/smithy-connection/schema.d.js.map +1 -0
- package/src/ts/dynamodb/trpc-connection/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/ts/dynamodb/trpc-connection/generator.js +20 -22
- package/src/ts/dynamodb/trpc-connection/generator.js.map +1 -1
- package/src/ts/dynamodb/trpc-connection/schema.d.js +8 -0
- package/src/ts/dynamodb/trpc-connection/schema.d.js.map +1 -0
- package/src/ts/lambda-function/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/ts/lambda-function/generator.js +55 -55
- package/src/ts/lambda-function/generator.js.map +1 -1
- package/src/ts/lambda-function/io.js +83 -52
- package/src/ts/lambda-function/io.js.map +1 -1
- package/src/ts/lambda-function/schema.d.js +6 -0
- package/src/ts/lambda-function/schema.d.js.map +1 -0
- package/src/ts/lib/__snapshots__/generator.spec.ts.snap +23 -36
- package/src/ts/lib/biome.js +37 -37
- package/src/ts/lib/biome.js.map +1 -1
- package/src/ts/lib/generator.js +75 -77
- package/src/ts/lib/generator.js.map +1 -1
- package/src/ts/lib/schema.d.js +6 -0
- package/src/ts/lib/schema.d.js.map +1 -0
- package/src/ts/lib/ts-project-utils.js +65 -70
- package/src/ts/lib/ts-project-utils.js.map +1 -1
- package/src/ts/lib/types.js +5 -2
- package/src/ts/lib/types.js.map +1 -1
- package/src/ts/lib/vitest.js +29 -26
- package/src/ts/lib/vitest.js.map +1 -1
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/ts/mcp-server/generator.js +157 -138
- package/src/ts/mcp-server/generator.js.map +1 -1
- package/src/ts/mcp-server/schema.d.js +6 -0
- package/src/ts/mcp-server/schema.d.js.map +1 -0
- package/src/ts/nx-generator/__snapshots__/generator.spec.ts.snap +14 -9
- package/src/ts/nx-generator/files/local/generator.ts.template +3 -3
- package/src/ts/nx-generator/files/nx-plugin-for-aws/generator/generator.ts.template +4 -4
- package/src/ts/nx-generator/generator.js +84 -83
- package/src/ts/nx-generator/generator.js.map +1 -1
- package/src/ts/nx-generator/schema.d.js +6 -0
- package/src/ts/nx-generator/schema.d.js.map +1 -0
- package/src/ts/nx-plugin/__snapshots__/generator.spec.ts.snap +30 -18
- package/src/ts/nx-plugin/files/mcp-server/server.ts.template +5 -5
- package/src/ts/nx-plugin/files/mcp-server/tools/create-workspace-command.ts.template +2 -2
- package/src/ts/nx-plugin/files/mcp-server/tools/general-guidance.ts.template +1 -1
- package/src/ts/nx-plugin/files/mcp-server/tools/generator-guide.ts.template +2 -2
- package/src/ts/nx-plugin/files/mcp-server/tools/list-generators.ts.template +2 -2
- package/src/ts/nx-plugin/files/mcp-server/utils.ts.template +3 -3
- package/src/ts/nx-plugin/generator.js +49 -48
- package/src/ts/nx-plugin/generator.js.map +1 -1
- package/src/ts/nx-plugin/schema.d.js +9 -0
- package/src/ts/nx-plugin/schema.d.js.map +1 -0
- package/src/ts/nx-plugin/utils.js +32 -44
- package/src/ts/nx-plugin/utils.js.map +1 -1
- package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +30 -30
- package/src/ts/rdb/agent-connection/__snapshots__/generator.spec.ts.snap +6 -6
- package/src/ts/rdb/agent-connection/generator.js +38 -39
- package/src/ts/rdb/agent-connection/generator.js.map +1 -1
- package/src/ts/rdb/agent-connection/schema.d.js +8 -0
- package/src/ts/rdb/agent-connection/schema.d.js.map +1 -0
- package/src/ts/rdb/files/config.json.template +1 -1
- package/src/ts/rdb/files/prisma.config.ts.template +2 -2
- package/src/ts/rdb/files/src/prisma.ts.template +7 -7
- package/src/ts/rdb/files/src/utils.ts.template +1 -0
- package/src/ts/rdb/generator.js +130 -117
- package/src/ts/rdb/generator.js.map +1 -1
- package/src/ts/rdb/mcp-server-connection/__snapshots__/generator.spec.ts.snap +6 -6
- package/src/ts/rdb/mcp-server-connection/generator.js +36 -37
- package/src/ts/rdb/mcp-server-connection/generator.js.map +1 -1
- package/src/ts/rdb/mcp-server-connection/schema.d.js +8 -0
- package/src/ts/rdb/mcp-server-connection/schema.d.js.map +1 -0
- package/src/ts/rdb/schema.d.js +6 -0
- package/src/ts/rdb/schema.d.js.map +1 -0
- package/src/ts/rdb/smithy-connection/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/ts/rdb/smithy-connection/generator.js +46 -43
- package/src/ts/rdb/smithy-connection/generator.js.map +1 -1
- package/src/ts/rdb/smithy-connection/schema.d.js +8 -0
- package/src/ts/rdb/smithy-connection/schema.d.js.map +1 -0
- package/src/ts/rdb/trpc-connection/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/ts/rdb/trpc-connection/generator.js +36 -31
- package/src/ts/rdb/trpc-connection/generator.js.map +1 -1
- package/src/ts/rdb/trpc-connection/schema.d.js +8 -0
- package/src/ts/rdb/trpc-connection/schema.d.js.map +1 -0
- package/src/ts/rdb/utils.js +9 -11
- package/src/ts/rdb/utils.js.map +1 -1
- package/src/ts/react-website/agui/generator.js +69 -61
- package/src/ts/react-website/agui/generator.js.map +1 -1
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +154 -260
- package/src/ts/react-website/app/generator.js +197 -188
- package/src/ts/react-website/app/generator.js.map +1 -1
- package/src/ts/react-website/app/schema.d.js +6 -0
- package/src/ts/react-website/app/schema.d.js.map +1 -0
- package/src/ts/react-website/app/schema.json +6 -6
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.spec.ts.snap +118 -4
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.terraform.spec.ts.snap +10 -3
- package/src/ts/react-website/cognito-auth/files/app/components/CognitoAuth/index.tsx.template +2 -2
- package/src/ts/react-website/cognito-auth/generator.js +60 -60
- package/src/ts/react-website/cognito-auth/generator.js.map +1 -1
- package/src/ts/react-website/cognito-auth/schema.d.js +6 -0
- package/src/ts/react-website/cognito-auth/schema.d.js.map +1 -0
- package/src/ts/react-website/cognito-auth/utils.js +34 -32
- package/src/ts/react-website/cognito-auth/utils.js.map +1 -1
- package/src/ts/react-website/runtime-config/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/react-website/runtime-config/files/app/components/RuntimeConfig/index.tsx.template +2 -2
- package/src/ts/react-website/runtime-config/generator.js +29 -31
- package/src/ts/react-website/runtime-config/generator.js.map +1 -1
- package/src/ts/react-website/runtime-config/schema.d.js +6 -0
- package/src/ts/react-website/runtime-config/schema.d.js.map +1 -0
- package/src/ts/sync/generator.js +60 -59
- package/src/ts/sync/generator.js.map +1 -1
- package/src/ts/website/app/generator.js +10 -10
- package/src/ts/website/app/generator.js.map +1 -1
- package/src/ts/website/app/schema.d.js +6 -0
- package/src/ts/website/app/schema.d.js.map +1 -0
- package/src/ts/website/app/schema.json +6 -6
- package/src/ts/website/auth/generator.js +11 -11
- package/src/ts/website/auth/generator.js.map +1 -1
- package/src/ts/website/auth/schema.d.js +6 -0
- package/src/ts/website/auth/schema.d.js.map +1 -0
- package/src/utils/agent-chat/agent-chat.d.ts +1 -1
- package/src/utils/agent-chat/agent-chat.js +11 -12
- package/src/utils/agent-chat/agent-chat.js.map +1 -1
- package/src/utils/agent-chat/files/a2a/chat.ts.template +1 -1
- package/src/utils/agent-chat/files/ag-ui/chat.ts.template +1 -1
- package/src/utils/agent-chat/files/http-py/chat.ts.template +1 -1
- package/src/utils/agent-chat/files/http-ts/chat.ts.template +1 -1
- package/src/utils/agent-connection/agent-connection.js +129 -146
- package/src/utils/agent-connection/agent-connection.js.map +1 -1
- package/src/utils/agent-connection/files/core-gateway/agentcore-gateway-mcp-transport.ts.template +1 -1
- package/src/utils/agent-connection/files/core-strands/gateway/agentcore-gateway-mcp-client-strands.ts.template +1 -1
- package/src/utils/agent-connection/files/py-core-gateway/agentcore_gateway_mcp_transport.py.template +1 -1
- package/src/utils/agent-connection/files/py-core-langchain/gateway/agentcore_gateway_mcp_client_langchain.py.template +1 -1
- package/src/utils/agent-connection/files/py-core-strands/gateway/agentcore_gateway_mcp_client_strands.py.template +1 -1
- package/src/utils/agent-core-constructs/agent-core-constructs.js +53 -50
- package/src/utils/agent-core-constructs/agent-core-constructs.js.map +1 -1
- package/src/utils/agent-core-constructs/files/terraform/app/agentcore-gateway/__nameKebabCase__/__nameKebabCase__.tf.template +4 -4
- package/src/utils/agent-core-constructs/files/terraform/core/agent-core/runtime.tf.template +4 -4
- package/src/utils/agent-core-constructs/files/terraform/core/agentcore-gateway/gateway.tf.template +2 -2
- package/src/utils/api-constructs/api-constructs.js +30 -31
- package/src/utils/api-constructs/api-constructs.js.map +1 -1
- package/src/utils/api-constructs/files/cdk/core/api/http/http-api.ts.template +14 -6
- package/src/utils/api-constructs/files/cdk/core/api/rest/api-gateway-account/index.js.template +58 -0
- package/src/utils/api-constructs/files/cdk/core/api/rest/api-gateway-account.ts.template +82 -0
- package/src/utils/api-constructs/files/cdk/core/api/rest/rest-api.ts.template +28 -14
- package/src/utils/api-constructs/files/terraform/app/apis/http/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +1 -8
- package/src/utils/api-constructs/files/terraform/app/apis/rest/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +91 -4
- package/src/utils/api-constructs/files/terraform/core/api/http/http-api/http-api.tf.template +1 -1
- package/src/utils/api-constructs/files/terraform/core/api/rest/api-gateway-account/api-gateway-account.tf.template +83 -0
- package/src/utils/api-constructs/files/terraform/core/api/rest/rest-api/rest-api.tf.template +5 -11
- package/src/utils/api-constructs/open-api-metadata.js +22 -22
- package/src/utils/api-constructs/open-api-metadata.js.map +1 -1
- package/src/utils/ast/website.js +17 -19
- package/src/utils/ast/website.js.map +1 -1
- package/src/utils/ast.js +72 -97
- package/src/utils/ast.js.map +1 -1
- package/src/utils/bundle/bundle.js +50 -47
- package/src/utils/bundle/bundle.js.map +1 -1
- package/src/utils/commands.js +47 -26
- package/src/utils/commands.js.map +1 -1
- package/src/utils/config/index.d.ts +2 -2
- package/src/utils/config/index.js +5 -4
- package/src/utils/config/index.js.map +1 -1
- package/src/utils/config/utils.js +48 -58
- package/src/utils/config/utils.js.map +1 -1
- package/src/utils/connection/open-api/react.d.ts +5 -5
- package/src/utils/connection/open-api/react.js +81 -77
- package/src/utils/connection/open-api/react.js.map +1 -1
- package/src/utils/containers.js +22 -23
- package/src/utils/containers.js.map +1 -1
- package/src/utils/dynamodb-constructs/dynamodb-constructs.js +32 -33
- package/src/utils/dynamodb-constructs/dynamodb-constructs.js.map +1 -1
- package/src/utils/dynamodb-constructs/files/terraform/app/dynamodb/__nameKebabCase__/__nameKebabCase__.tf.template +12 -2
- package/src/utils/dynamodb-constructs/files/terraform/core/dynamodb/dynamodb.tf.template +1 -1
- package/src/utils/files/common/scripts/src/dynamodb/create-local-table.ts.template +2 -2
- package/src/utils/files/common/scripts/src/dynamodb/pull-image.ts.template +1 -1
- package/src/utils/files/common/scripts/src/dynamodb/start-container.ts.template +17 -2
- package/src/utils/files/common/scripts/src/rdb/mysql/wait-for-mysql-db.ts.template +32 -0
- package/src/utils/files/common/scripts/src/rdb/postgres/wait-for-postgres-db.ts.template +32 -0
- package/src/utils/files/common/scripts/src/rdb/{pull-image.ts.template → shared/pull-image.ts.template} +1 -1
- package/src/utils/files/common/scripts/src/rdb/{start-container.ts.template → shared/start-container.ts.template} +16 -1
- package/src/utils/files/terraform/src/core/asset-bucket/asset-bucket.tf.template +2 -2
- package/src/utils/files/terraform/src/core/runtime-config/appconfig/appconfig.tf.template +1 -1
- package/src/utils/files/terraform/src/core/runtime-config/appconfig-deployment/appconfig-deployment.tf.template +3 -3
- package/src/utils/files/terraform/src/core/runtime-config/entry/entry.tf.template +1 -1
- package/src/utils/files/terraform/src/core/runtime-config/read/read.tf.template +2 -2
- package/src/utils/files/website/hooks/sigv4/useSigV4.tsx.template +1 -1
- package/src/utils/format.js +153 -99
- package/src/utils/format.js.map +1 -1
- package/src/utils/fs.js +14 -13
- package/src/utils/fs.js.map +1 -1
- package/src/utils/function-constructs/files/terraform/app/lambda-functions/__nameKebabCase__/__nameKebabCase__.tf.template +2 -2
- package/src/utils/function-constructs/function-constructs.js +21 -26
- package/src/utils/function-constructs/function-constructs.js.map +1 -1
- package/src/utils/generators.js +18 -20
- package/src/utils/generators.js.map +1 -1
- package/src/utils/git.js +19 -34
- package/src/utils/git.js.map +1 -1
- package/src/utils/iac-providers.js +5 -5
- package/src/utils/iac-providers.js.map +1 -1
- package/src/utils/iac.js +12 -14
- package/src/utils/iac.js.map +1 -1
- package/src/utils/identity-constructs/files/cdk/core/user-identity.ts.template +112 -2
- package/src/utils/identity-constructs/files/terraform/core/user-identity/add-callback-url/add-callback-url.tf.template +2 -2
- package/src/utils/identity-constructs/files/terraform/core/user-identity/identity/identity.tf.template +104 -2
- package/src/utils/identity-constructs/files/terraform/core/user-identity/main.tf.template +7 -0
- package/src/utils/identity-constructs/identity-constructs.js +24 -28
- package/src/utils/identity-constructs/identity-constructs.js.map +1 -1
- package/src/utils/js.js +27 -20
- package/src/utils/js.js.map +1 -1
- package/src/utils/mcp.js +34 -41
- package/src/utils/mcp.js.map +1 -1
- package/src/utils/metrics.js +30 -45
- package/src/utils/metrics.js.map +1 -1
- package/src/utils/mock-project-graph.js +8 -12
- package/src/utils/mock-project-graph.js.map +1 -1
- package/src/utils/names.js +25 -51
- package/src/utils/names.js.map +1 -1
- package/src/utils/npm-scope.js +9 -17
- package/src/utils/npm-scope.js.map +1 -1
- package/src/utils/nx.d.ts +18 -2
- package/src/utils/nx.js +111 -74
- package/src/utils/nx.js.map +1 -1
- package/src/utils/nxlv-python.js +27 -15
- package/src/utils/nxlv-python.js.map +1 -1
- package/src/utils/object.js +5 -11
- package/src/utils/object.js.map +1 -1
- package/src/utils/paths.js +11 -15
- package/src/utils/paths.js.map +1 -1
- package/src/utils/pkg-manager.js +4 -9
- package/src/utils/pkg-manager.js.map +1 -1
- package/src/utils/pnpm-workspace.js +22 -22
- package/src/utils/pnpm-workspace.js.map +1 -1
- package/src/utils/port.js +26 -36
- package/src/utils/port.js.map +1 -1
- package/src/utils/py.js +43 -52
- package/src/utils/py.js.map +1 -1
- package/src/utils/rdb-constructs/files/terraform/app/dbs/__nameKebabCase__/__nameKebabCase__.tf.template +4 -4
- package/src/utils/rdb-constructs/files/terraform/core/rdb/aurora/aurora.tf.template +3 -3
- package/src/utils/rdb-constructs/rdb-constructs.js +31 -33
- package/src/utils/rdb-constructs/rdb-constructs.js.map +1 -1
- package/src/utils/shared-constructs-constants.js +16 -16
- package/src/utils/shared-constructs-constants.js.map +1 -1
- package/src/utils/shared-constructs.js +57 -54
- package/src/utils/shared-constructs.js.map +1 -1
- package/src/utils/shared-dynamodb-scripts.js +16 -14
- package/src/utils/shared-dynamodb-scripts.js.map +1 -1
- package/src/utils/shared-infra-config.js +30 -31
- package/src/utils/shared-infra-config.js.map +1 -1
- package/src/utils/shared-infra-scripts.js +30 -25
- package/src/utils/shared-infra-scripts.js.map +1 -1
- package/src/utils/shared-rdb-scripts.d.ts +8 -3
- package/src/utils/shared-rdb-scripts.js +21 -13
- package/src/utils/shared-rdb-scripts.js.map +1 -1
- package/src/utils/shared-scripts.js +12 -17
- package/src/utils/shared-scripts.js.map +1 -1
- package/src/utils/shared-shadcn.js +64 -60
- package/src/utils/shared-shadcn.js.map +1 -1
- package/src/utils/test.d.ts +8 -0
- package/src/utils/test.js +33 -25
- package/src/utils/test.js.map +1 -1
- package/src/utils/toml.js +7 -15
- package/src/utils/toml.js.map +1 -1
- package/src/utils/versions.d.ts +31 -4
- package/src/utils/versions.js +40 -23
- package/src/utils/versions.js.map +1 -1
- package/src/utils/website-constructs/files/terraform/app/static-websites/__websiteNameKebabCase__/__websiteNameKebabCase__.tf.template +1 -1
- package/src/utils/website-constructs/files/terraform/core/static-website/static-website.tf.template +4 -4
- package/src/utils/website-constructs/website-constructs.js +31 -30
- package/src/utils/website-constructs/website-constructs.js.map +1 -1
- package/bin/aws-nx-mcp.js +0 -17
- package/bin/aws-nx-mcp.js.map +0 -1
- package/sdk/agentcore-gateway.d.ts +0 -6
- package/sdk/agentcore-gateway.js +0 -11
- package/sdk/agentcore-gateway.js.map +0 -1
- package/sdk/connection.d.ts +0 -6
- package/sdk/connection.js +0 -10
- package/sdk/connection.js.map +0 -1
- package/sdk/license.js +0 -14
- package/sdk/license.js.map +0 -1
- package/sdk/open-api.d.ts +0 -10
- package/sdk/open-api.js +0 -15
- package/sdk/open-api.js.map +0 -1
- package/sdk/py.d.ts +0 -14
- package/sdk/py.js +0 -18
- package/sdk/py.js.map +0 -1
- package/sdk/terraform.d.ts +0 -6
- package/sdk/terraform.js +0 -11
- package/sdk/terraform.js.map +0 -1
- package/sdk/ts.d.ts +0 -33
- package/sdk/ts.js +0 -53
- package/sdk/ts.js.map +0 -1
- package/sdk/utils/ast.js +0 -12
- package/sdk/utils/ast.js.map +0 -1
- package/sdk/utils/format.js +0 -10
- package/sdk/utils/format.js.map +0 -1
- package/sdk/utils/test.js +0 -10
- package/sdk/utils/test.js.map +0 -1
- package/src/connection/agent-serve-local.js +0 -48
- package/src/connection/agent-serve-local.js.map +0 -1
- package/src/connection/serve-local.js +0 -41
- package/src/connection/serve-local.js.map +0 -1
- package/src/py/agent/react-connection/serve-local.js +0 -38
- package/src/py/agent/react-connection/serve-local.js.map +0 -1
- package/src/ts/agent/react-connection/serve-local.js +0 -19
- package/src/ts/agent/react-connection/serve-local.js.map +0 -1
- package/src/utils/files/common/scripts/src/rdb/wait-for-db.ts.template +0 -59
- /package/src/agentcore-gateway/files/project/{serve-local.ts.template → local-dev.ts.template} +0 -0
- /package/{bin → src/bin}/aws-nx-mcp.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/dynamodb/trpc-connection/generator.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { type Tree, updateProjectConfiguration } from '@nx/devkit';\nimport { formatFilesInSubtree } from '../../../utils/format';\nimport { addGeneratorMetricsIfApplicable } from '../../../utils/metrics';\nimport {\n addDependencyToTargetIfNotPresent,\n getGeneratorInfo,\n type NxGeneratorInfo,\n readProjectConfigurationUnqualified,\n} from '../../../utils/nx';\nimport type { TsDynamoDBTrpcConnectionGeneratorSchema } from './schema';\n\nexport const TS_DYNAMODB_TRPC_CONNECTION_GENERATOR_INFO: NxGeneratorInfo =\n getGeneratorInfo(import.meta.filename);\n\nexport const tsDynamoDBTrpcConnectionGenerator = async (\n tree: Tree,\n options: TsDynamoDBTrpcConnectionGeneratorSchema,\n): Promise<void> => {\n const sourceProject = readProjectConfigurationUnqualified(\n tree,\n options.sourceProject,\n );\n const targetProject = readProjectConfigurationUnqualified(\n tree,\n options.targetProject,\n );\n\n if (sourceProject.targets?.['dev']) {\n addDependencyToTargetIfNotPresent(sourceProject, 'dev', {\n projects: [targetProject.name],\n target: 'dev',\n });\n updateProjectConfiguration(tree, sourceProject.name, sourceProject);\n }\n\n await addGeneratorMetricsIfApplicable(tree, [\n TS_DYNAMODB_TRPC_CONNECTION_GENERATOR_INFO,\n ]);\n await formatFilesInSubtree(tree);\n};\n\nexport default tsDynamoDBTrpcConnectionGenerator;\n"],"names":["updateProjectConfiguration","formatFilesInSubtree","addGeneratorMetricsIfApplicable","addDependencyToTargetIfNotPresent","getGeneratorInfo","readProjectConfigurationUnqualified","TS_DYNAMODB_TRPC_CONNECTION_GENERATOR_INFO","filename","tsDynamoDBTrpcConnectionGenerator","tree","options","sourceProject","targetProject","targets","projects","name","target"],"mappings":"AAAA;;;CAGC,GACD,SAAoBA,0BAA0B,QAAQ,aAAa;AACnE,SAASC,oBAAoB,QAAQ,2BAAwB;AAC7D,SAASC,+BAA+B,QAAQ,4BAAyB;AACzE,SACEC,iCAAiC,EACjCC,gBAAgB,EAEhBC,mCAAmC,QAC9B,uBAAoB;AAG3B,OAAO,MAAMC,6CACXF,iBAAiB,YAAYG,QAAQ,EAAE;AAEzC,OAAO,MAAMC,oCAAoC,OAC/CC,MACAC;IAEA,MAAMC,gBAAgBN,oCACpBI,MACAC,QAAQC,aAAa;IAEvB,MAAMC,gBAAgBP,oCACpBI,MACAC,QAAQE,aAAa;IAGvB,IAAID,cAAcE,OAAO,EAAE,CAAC,MAAM,EAAE;QAClCV,kCAAkCQ,eAAe,OAAO;YACtDG,UAAU;gBAACF,cAAcG,IAAI;aAAC;YAC9BC,QAAQ;QACV;QACAhB,2BAA2BS,MAAME,cAAcI,IAAI,EAAEJ;IACvD;IAEA,MAAMT,gCAAgCO,MAAM;QAC1CH;KACD;IACD,MAAML,qBAAqBQ;AAC7B,EAAE;AAEF,eAAeD,kCAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/dynamodb/trpc-connection/schema.d.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * TypeScript types for options defined in schema.json\n */\nexport interface TsDynamoDBTrpcConnectionGeneratorSchema {\n sourceProject: string;\n targetProject: string;\n}\n"],"names":[],"mappings":"AAAA;;;CAGC,GAED;;CAEC,GACD,WAGC"}
|
|
@@ -139,11 +139,11 @@ exports[`ts-lambda-function generator > terraform iac > should generate terrafor
|
|
|
139
139
|
required_providers {
|
|
140
140
|
aws = {
|
|
141
141
|
source = "hashicorp/aws"
|
|
142
|
-
version = "
|
|
142
|
+
version = "6.52.0"
|
|
143
143
|
}
|
|
144
144
|
archive = {
|
|
145
145
|
source = "hashicorp/archive"
|
|
146
|
-
version = "
|
|
146
|
+
version = "2.8.0"
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -320,11 +320,11 @@ exports[`ts-lambda-function generator > terraform iac > should match snapshot fo
|
|
|
320
320
|
required_providers {
|
|
321
321
|
aws = {
|
|
322
322
|
source = "hashicorp/aws"
|
|
323
|
-
version = "
|
|
323
|
+
version = "6.52.0"
|
|
324
324
|
}
|
|
325
325
|
archive = {
|
|
326
326
|
source = "hashicorp/archive"
|
|
327
|
-
version = "
|
|
327
|
+
version = "2.8.0"
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
}
|
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tsLambdaFunctionGenerator = exports.TS_LAMBDA_FUNCTION_GENERATOR_INFO = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
1
|
/**
|
|
6
2
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
7
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
exports.TS_LAMBDA_FUNCTION_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
|
|
4
|
+
*/ import { addDependenciesToPackageJson, generateFiles, installPackagesTask, joinPathFragments, OverwriteStrategy, updateProjectConfiguration } from "@nx/devkit";
|
|
5
|
+
import camelCase from "lodash.camelcase";
|
|
6
|
+
import { addTypeScriptBundleTarget } from "../../utils/bundle/bundle.js";
|
|
7
|
+
import { formatFilesInSubtree } from "../../utils/format.js";
|
|
8
|
+
import { addLambdaFunctionInfra } from "../../utils/function-constructs/function-constructs.js";
|
|
9
|
+
import { resolveIac } from "../../utils/iac.js";
|
|
10
|
+
import { addGeneratorMetricsIfApplicable } from "../../utils/metrics.js";
|
|
11
|
+
import { pascalCase, toClassName, toKebabCase } from "../../utils/names.js";
|
|
12
|
+
import { addComponentGeneratorMetadata, getGeneratorInfo, readProjectConfigurationUnqualified } from "../../utils/nx.js";
|
|
13
|
+
import { sortObjectKeys } from "../../utils/object.js";
|
|
14
|
+
import { sharedConstructsGenerator } from "../../utils/shared-constructs.js";
|
|
15
|
+
import { withVersions } from "../../utils/versions.js";
|
|
16
|
+
import { TS_HANDLER_RETURN_TYPES } from "./io.js";
|
|
17
|
+
export const TS_LAMBDA_FUNCTION_GENERATOR_INFO = getGeneratorInfo(import.meta.filename);
|
|
23
18
|
/**
|
|
24
19
|
* Generates a TypeScript Lambda Function to add to a TypeScript project
|
|
25
|
-
*/
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const tsconfigPath = (0, devkit_1.joinPathFragments)(projectConfig.root, 'tsconfig.json');
|
|
20
|
+
*/ export const tsLambdaFunctionGenerator = async (tree, schema)=>{
|
|
21
|
+
const projectConfig = readProjectConfigurationUnqualified(tree, schema.project);
|
|
22
|
+
const tsconfigPath = joinPathFragments(projectConfig.root, 'tsconfig.json');
|
|
29
23
|
// Check if the project has a tsconfig.json file
|
|
30
24
|
if (!tree.exists(tsconfigPath)) {
|
|
31
25
|
throw new Error(`This generator does not support selected project ${schema.project}. The project must be a typescript project (ie contain a tsconfig.json)`);
|
|
@@ -35,34 +29,34 @@ const tsLambdaFunctionGenerator = async (tree, schema) => {
|
|
|
35
29
|
}
|
|
36
30
|
const dir = projectConfig.root;
|
|
37
31
|
const projectNameWithOutScope = projectConfig.name.split('/').pop();
|
|
38
|
-
const projectNameKebabCase =
|
|
39
|
-
const nameKebabCase =
|
|
32
|
+
const projectNameKebabCase = toKebabCase(projectNameWithOutScope);
|
|
33
|
+
const nameKebabCase = toKebabCase(schema.name);
|
|
40
34
|
const constructFunctionNameKebabCase = `${projectNameKebabCase}-${nameKebabCase}`;
|
|
41
|
-
const constructFunctionClassName =
|
|
42
|
-
const lambdaFunctionCamelCase = (
|
|
43
|
-
const lambdaFunctionClassName =
|
|
44
|
-
const lambdaFunctionKebabCase =
|
|
45
|
-
const functionPathFromProjectRoot =
|
|
46
|
-
const functionPath =
|
|
35
|
+
const constructFunctionClassName = toClassName(constructFunctionNameKebabCase);
|
|
36
|
+
const lambdaFunctionCamelCase = camelCase(schema.name);
|
|
37
|
+
const lambdaFunctionClassName = pascalCase(schema.name);
|
|
38
|
+
const lambdaFunctionKebabCase = toKebabCase(schema.name);
|
|
39
|
+
const functionPathFromProjectRoot = joinPathFragments('src', schema.functionPath ?? '', `${lambdaFunctionKebabCase}.ts`);
|
|
40
|
+
const functionPath = joinPathFragments(projectConfig.root, functionPathFromProjectRoot);
|
|
47
41
|
const infra = schema.infra ?? 'lambda';
|
|
48
42
|
const handlerAlreadyExists = tree.exists(functionPath);
|
|
49
43
|
if (handlerAlreadyExists && infra === 'none') {
|
|
50
44
|
throw new Error(`This project already has a lambda function with the name ${nameKebabCase}. Please remove the lambda function before running this generator or use a different name.`);
|
|
51
45
|
}
|
|
52
|
-
const bundleOutputDir =
|
|
46
|
+
const bundleOutputDir = joinPathFragments('lambda', lambdaFunctionKebabCase);
|
|
53
47
|
if (infra !== 'none') {
|
|
54
|
-
const iac = await
|
|
55
|
-
await
|
|
56
|
-
iac
|
|
48
|
+
const iac = await resolveIac(tree, schema.iac);
|
|
49
|
+
await sharedConstructsGenerator(tree, {
|
|
50
|
+
iac
|
|
57
51
|
});
|
|
58
|
-
await
|
|
52
|
+
await addLambdaFunctionInfra(tree, {
|
|
59
53
|
functionProjectName: projectConfig.name,
|
|
60
54
|
nameClassName: constructFunctionClassName,
|
|
61
55
|
nameKebabCase: constructFunctionNameKebabCase,
|
|
62
56
|
handler: 'index.handler',
|
|
63
57
|
runtime: 'node',
|
|
64
|
-
bundlePathFromRoot:
|
|
65
|
-
iac
|
|
58
|
+
bundlePathFromRoot: joinPathFragments('dist', dir, 'bundle', bundleOutputDir),
|
|
59
|
+
iac
|
|
66
60
|
});
|
|
67
61
|
}
|
|
68
62
|
const enhancedOptions = {
|
|
@@ -70,21 +64,25 @@ const tsLambdaFunctionGenerator = async (tree, schema) => {
|
|
|
70
64
|
lambdaFunctionCamelCase,
|
|
71
65
|
lambdaFunctionClassName,
|
|
72
66
|
lambdaFunctionKebabCase,
|
|
73
|
-
returnType:
|
|
67
|
+
returnType: TS_HANDLER_RETURN_TYPES[schema.event]
|
|
74
68
|
};
|
|
75
69
|
if (infra !== 'none') {
|
|
76
70
|
// Add a bundle target for the function
|
|
77
|
-
await
|
|
71
|
+
await addTypeScriptBundleTarget(tree, projectConfig, {
|
|
78
72
|
targetFilePath: functionPathFromProjectRoot,
|
|
79
73
|
bundleOutputDir,
|
|
80
|
-
external: [
|
|
74
|
+
external: [
|
|
75
|
+
/@aws-sdk\/.*/
|
|
76
|
+
]
|
|
81
77
|
});
|
|
82
78
|
}
|
|
83
|
-
projectConfig.targets =
|
|
84
|
-
|
|
79
|
+
projectConfig.targets = sortObjectKeys(projectConfig.targets);
|
|
80
|
+
updateProjectConfiguration(tree, projectConfig.name, projectConfig);
|
|
85
81
|
// Generate the lambda handler file
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
generateFiles(tree, joinPathFragments(import.meta.dirname, 'files', 'handler'), joinPathFragments(projectConfig.sourceRoot, schema.functionPath ?? ''), enhancedOptions, {
|
|
83
|
+
overwriteStrategy: OverwriteStrategy.KeepExisting
|
|
84
|
+
});
|
|
85
|
+
addDependenciesToPackageJson(tree, withVersions([
|
|
88
86
|
'@aws-lambda-powertools/tracer',
|
|
89
87
|
'@aws-lambda-powertools/logger',
|
|
90
88
|
'@aws-lambda-powertools/metrics',
|
|
@@ -92,17 +90,19 @@ const tsLambdaFunctionGenerator = async (tree, schema) => {
|
|
|
92
90
|
'@aws-lambda-powertools/parser',
|
|
93
91
|
'@aws-sdk/client-appconfigdata',
|
|
94
92
|
'@middy/core',
|
|
95
|
-
'zod'
|
|
96
|
-
]),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
'zod'
|
|
94
|
+
]), withVersions([
|
|
95
|
+
'@types/aws-lambda'
|
|
96
|
+
]));
|
|
97
|
+
addComponentGeneratorMetadata(tree, projectConfig.name, TS_LAMBDA_FUNCTION_GENERATOR_INFO, functionPathFromProjectRoot, lambdaFunctionKebabCase);
|
|
98
|
+
await addGeneratorMetricsIfApplicable(tree, [
|
|
99
|
+
TS_LAMBDA_FUNCTION_GENERATOR_INFO
|
|
100
100
|
]);
|
|
101
|
-
await
|
|
102
|
-
return ()
|
|
103
|
-
|
|
101
|
+
await formatFilesInSubtree(tree);
|
|
102
|
+
return ()=>{
|
|
103
|
+
installPackagesTask(tree);
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
export default tsLambdaFunctionGenerator;
|
|
107
|
+
|
|
108
108
|
//# sourceMappingURL=generator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/nx-plugin/src/ts/lambda-function/generator.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n addDependenciesToPackageJson,\n type GeneratorCallback,\n generateFiles,\n installPackagesTask,\n joinPathFragments,\n OverwriteStrategy,\n type Tree,\n updateProjectConfiguration,\n} from '@nx/devkit';\nimport camelCase from 'lodash.camelcase';\nimport { addTypeScriptBundleTarget } from '../../utils/bundle/bundle';\nimport { formatFilesInSubtree } from '../../utils/format';\nimport { addLambdaFunctionInfra } from '../../utils/function-constructs/function-constructs';\nimport { resolveIac } from '../../utils/iac';\nimport { addGeneratorMetricsIfApplicable } from '../../utils/metrics';\nimport { pascalCase, toClassName, toKebabCase } from '../../utils/names';\nimport {\n addComponentGeneratorMetadata,\n getGeneratorInfo,\n type NxGeneratorInfo,\n readProjectConfigurationUnqualified,\n} from '../../utils/nx';\nimport { sortObjectKeys } from '../../utils/object';\nimport { sharedConstructsGenerator } from '../../utils/shared-constructs';\nimport { withVersions } from '../../utils/versions';\nimport { TS_HANDLER_RETURN_TYPES } from './io';\nimport type { TsLambdaFunctionGeneratorSchema } from './schema';\n\nexport const TS_LAMBDA_FUNCTION_GENERATOR_INFO: NxGeneratorInfo =\n getGeneratorInfo(import.meta.filename);\n\n/**\n * Generates a TypeScript Lambda Function to add to a TypeScript project\n */\nexport const tsLambdaFunctionGenerator = async (\n tree: Tree,\n schema: TsLambdaFunctionGeneratorSchema,\n): Promise<GeneratorCallback> => {\n const projectConfig = readProjectConfigurationUnqualified(\n tree,\n schema.project,\n );\n\n const tsconfigPath = joinPathFragments(projectConfig.root, 'tsconfig.json');\n\n // Check if the project has a tsconfig.json file\n if (!tree.exists(tsconfigPath)) {\n throw new Error(\n `This generator does not support selected project ${schema.project}. The project must be a typescript project (ie contain a tsconfig.json)`,\n );\n }\n\n if (!projectConfig.sourceRoot) {\n throw new Error(\n `This project does not have a source root. Please add a source root to the project configuration before running this generator.`,\n );\n }\n\n const dir = projectConfig.root;\n const projectNameWithOutScope = projectConfig.name.split('/').pop();\n const projectNameKebabCase = toKebabCase(projectNameWithOutScope);\n const nameKebabCase = toKebabCase(schema.name);\n\n const constructFunctionNameKebabCase = `${projectNameKebabCase}-${nameKebabCase}`;\n const constructFunctionClassName = toClassName(\n constructFunctionNameKebabCase,\n );\n const lambdaFunctionCamelCase = camelCase(schema.name);\n const lambdaFunctionClassName = pascalCase(schema.name);\n const lambdaFunctionKebabCase = toKebabCase(schema.name);\n\n const functionPathFromProjectRoot = joinPathFragments(\n 'src',\n schema.functionPath ?? '',\n `${lambdaFunctionKebabCase}.ts`,\n );\n const functionPath = joinPathFragments(\n projectConfig.root,\n functionPathFromProjectRoot,\n );\n\n const infra = schema.infra ?? 'lambda';\n const handlerAlreadyExists = tree.exists(functionPath);\n\n if (handlerAlreadyExists && infra === 'none') {\n throw new Error(\n `This project already has a lambda function with the name ${nameKebabCase}. Please remove the lambda function before running this generator or use a different name.`,\n );\n }\n\n const bundleOutputDir = joinPathFragments('lambda', lambdaFunctionKebabCase);\n\n if (infra !== 'none') {\n const iac = await resolveIac(tree, schema.iac);\n\n await sharedConstructsGenerator(tree, {\n iac,\n });\n\n await addLambdaFunctionInfra(tree, {\n functionProjectName: projectConfig.name,\n nameClassName: constructFunctionClassName,\n nameKebabCase: constructFunctionNameKebabCase,\n handler: 'index.handler',\n runtime: 'node',\n bundlePathFromRoot: joinPathFragments(\n 'dist',\n dir,\n 'bundle',\n bundleOutputDir,\n ),\n iac,\n });\n }\n\n const enhancedOptions = {\n ...schema,\n lambdaFunctionCamelCase,\n lambdaFunctionClassName,\n lambdaFunctionKebabCase,\n returnType: TS_HANDLER_RETURN_TYPES[schema.event],\n };\n\n if (infra !== 'none') {\n // Add a bundle target for the function\n await addTypeScriptBundleTarget(tree, projectConfig, {\n targetFilePath: functionPathFromProjectRoot,\n bundleOutputDir,\n external: [/@aws-sdk\\/.*/], // lambda runtime provides aws sdk\n });\n }\n\n projectConfig.targets = sortObjectKeys(projectConfig.targets);\n updateProjectConfiguration(tree, projectConfig.name, projectConfig);\n\n // Generate the lambda handler file\n generateFiles(\n tree,\n joinPathFragments(import.meta.dirname, 'files', 'handler'),\n joinPathFragments(projectConfig.sourceRoot, schema.functionPath ?? ''),\n enhancedOptions,\n { overwriteStrategy: OverwriteStrategy.KeepExisting },\n );\n\n addDependenciesToPackageJson(\n tree,\n withVersions([\n '@aws-lambda-powertools/tracer',\n '@aws-lambda-powertools/logger',\n '@aws-lambda-powertools/metrics',\n '@aws-lambda-powertools/parameters',\n '@aws-lambda-powertools/parser',\n '@aws-sdk/client-appconfigdata',\n '@middy/core',\n 'zod',\n ]),\n withVersions(['@types/aws-lambda']),\n );\n\n addComponentGeneratorMetadata(\n tree,\n projectConfig.name,\n TS_LAMBDA_FUNCTION_GENERATOR_INFO,\n functionPathFromProjectRoot,\n lambdaFunctionKebabCase,\n );\n\n await addGeneratorMetricsIfApplicable(tree, [\n TS_LAMBDA_FUNCTION_GENERATOR_INFO,\n ]);\n\n await formatFilesInSubtree(tree);\n\n return () => {\n installPackagesTask(tree);\n };\n};\n\nexport default tsLambdaFunctionGenerator;\n"],"names":["addDependenciesToPackageJson","generateFiles","installPackagesTask","joinPathFragments","OverwriteStrategy","updateProjectConfiguration","camelCase","addTypeScriptBundleTarget","formatFilesInSubtree","addLambdaFunctionInfra","resolveIac","addGeneratorMetricsIfApplicable","pascalCase","toClassName","toKebabCase","addComponentGeneratorMetadata","getGeneratorInfo","readProjectConfigurationUnqualified","sortObjectKeys","sharedConstructsGenerator","withVersions","TS_HANDLER_RETURN_TYPES","TS_LAMBDA_FUNCTION_GENERATOR_INFO","filename","tsLambdaFunctionGenerator","tree","schema","projectConfig","project","tsconfigPath","root","exists","Error","sourceRoot","dir","projectNameWithOutScope","name","split","pop","projectNameKebabCase","nameKebabCase","constructFunctionNameKebabCase","constructFunctionClassName","lambdaFunctionCamelCase","lambdaFunctionClassName","lambdaFunctionKebabCase","functionPathFromProjectRoot","functionPath","infra","handlerAlreadyExists","bundleOutputDir","iac","functionProjectName","nameClassName","handler","runtime","bundlePathFromRoot","enhancedOptions","returnType","event","targetFilePath","external","targets","dirname","overwriteStrategy","KeepExisting"],"mappings":"AAAA;;;CAGC,GACD,SACEA,4BAA4B,EAE5BC,aAAa,EACbC,mBAAmB,EACnBC,iBAAiB,EACjBC,iBAAiB,EAEjBC,0BAA0B,QACrB,aAAa;AACpB,OAAOC,eAAe,mBAAmB;AACzC,SAASC,yBAAyB,QAAQ,+BAA4B;AACtE,SAASC,oBAAoB,QAAQ,wBAAqB;AAC1D,SAASC,sBAAsB,QAAQ,yDAAsD;AAC7F,SAASC,UAAU,QAAQ,qBAAkB;AAC7C,SAASC,+BAA+B,QAAQ,yBAAsB;AACtE,SAASC,UAAU,EAAEC,WAAW,EAAEC,WAAW,QAAQ,uBAAoB;AACzE,SACEC,6BAA6B,EAC7BC,gBAAgB,EAEhBC,mCAAmC,QAC9B,oBAAiB;AACxB,SAASC,cAAc,QAAQ,wBAAqB;AACpD,SAASC,yBAAyB,QAAQ,mCAAgC;AAC1E,SAASC,YAAY,QAAQ,0BAAuB;AACpD,SAASC,uBAAuB,QAAQ,UAAO;AAG/C,OAAO,MAAMC,oCACXN,iBAAiB,YAAYO,QAAQ,EAAE;AAEzC;;CAEC,GACD,OAAO,MAAMC,4BAA4B,OACvCC,MACAC;IAEA,MAAMC,gBAAgBV,oCACpBQ,MACAC,OAAOE,OAAO;IAGhB,MAAMC,eAAe1B,kBAAkBwB,cAAcG,IAAI,EAAE;IAE3D,gDAAgD;IAChD,IAAI,CAACL,KAAKM,MAAM,CAACF,eAAe;QAC9B,MAAM,IAAIG,MACR,CAAC,iDAAiD,EAAEN,OAAOE,OAAO,CAAC,uEAAuE,CAAC;IAE/I;IAEA,IAAI,CAACD,cAAcM,UAAU,EAAE;QAC7B,MAAM,IAAID,MACR,CAAC,8HAA8H,CAAC;IAEpI;IAEA,MAAME,MAAMP,cAAcG,IAAI;IAC9B,MAAMK,0BAA0BR,cAAcS,IAAI,CAACC,KAAK,CAAC,KAAKC,GAAG;IACjE,MAAMC,uBAAuBzB,YAAYqB;IACzC,MAAMK,gBAAgB1B,YAAYY,OAAOU,IAAI;IAE7C,MAAMK,iCAAiC,GAAGF,qBAAqB,CAAC,EAAEC,eAAe;IACjF,MAAME,6BAA6B7B,YACjC4B;IAEF,MAAME,0BAA0BrC,UAAUoB,OAAOU,IAAI;IACrD,MAAMQ,0BAA0BhC,WAAWc,OAAOU,IAAI;IACtD,MAAMS,0BAA0B/B,YAAYY,OAAOU,IAAI;IAEvD,MAAMU,8BAA8B3C,kBAClC,OACAuB,OAAOqB,YAAY,IAAI,IACvB,GAAGF,wBAAwB,GAAG,CAAC;IAEjC,MAAME,eAAe5C,kBACnBwB,cAAcG,IAAI,EAClBgB;IAGF,MAAME,QAAQtB,OAAOsB,KAAK,IAAI;IAC9B,MAAMC,uBAAuBxB,KAAKM,MAAM,CAACgB;IAEzC,IAAIE,wBAAwBD,UAAU,QAAQ;QAC5C,MAAM,IAAIhB,MACR,CAAC,yDAAyD,EAAEQ,cAAc,0FAA0F,CAAC;IAEzK;IAEA,MAAMU,kBAAkB/C,kBAAkB,UAAU0C;IAEpD,IAAIG,UAAU,QAAQ;QACpB,MAAMG,MAAM,MAAMzC,WAAWe,MAAMC,OAAOyB,GAAG;QAE7C,MAAMhC,0BAA0BM,MAAM;YACpC0B;QACF;QAEA,MAAM1C,uBAAuBgB,MAAM;YACjC2B,qBAAqBzB,cAAcS,IAAI;YACvCiB,eAAeX;YACfF,eAAeC;YACfa,SAAS;YACTC,SAAS;YACTC,oBAAoBrD,kBAClB,QACA+B,KACA,UACAgB;YAEFC;QACF;IACF;IAEA,MAAMM,kBAAkB;QACtB,GAAG/B,MAAM;QACTiB;QACAC;QACAC;QACAa,YAAYrC,uBAAuB,CAACK,OAAOiC,KAAK,CAAC;IACnD;IAEA,IAAIX,UAAU,QAAQ;QACpB,uCAAuC;QACvC,MAAMzC,0BAA0BkB,MAAME,eAAe;YACnDiC,gBAAgBd;YAChBI;YACAW,UAAU;gBAAC;aAAe;QAC5B;IACF;IAEAlC,cAAcmC,OAAO,GAAG5C,eAAeS,cAAcmC,OAAO;IAC5DzD,2BAA2BoB,MAAME,cAAcS,IAAI,EAAET;IAErD,mCAAmC;IACnC1B,cACEwB,MACAtB,kBAAkB,YAAY4D,OAAO,EAAE,SAAS,YAChD5D,kBAAkBwB,cAAcM,UAAU,EAAEP,OAAOqB,YAAY,IAAI,KACnEU,iBACA;QAAEO,mBAAmB5D,kBAAkB6D,YAAY;IAAC;IAGtDjE,6BACEyB,MACAL,aAAa;QACX;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD,GACDA,aAAa;QAAC;KAAoB;IAGpCL,8BACEU,MACAE,cAAcS,IAAI,EAClBd,mCACAwB,6BACAD;IAGF,MAAMlC,gCAAgCc,MAAM;QAC1CH;KACD;IAED,MAAMd,qBAAqBiB;IAE3B,OAAO;QACLvB,oBAAoBuB;IACtB;AACF,EAAE;AAEF,eAAeD,0BAA0B"}
|
|
@@ -1,182 +1,213 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TS_HANDLER_RETURN_TYPES = void 0;
|
|
4
1
|
/**
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/ /**
|
|
5
5
|
* Mapping of EventSource to the corresponding return type from @types/aws-lambda
|
|
6
6
|
* @see https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda/trigger
|
|
7
|
-
*/
|
|
8
|
-
exports.TS_HANDLER_RETURN_TYPES = {
|
|
7
|
+
*/ export const TS_HANDLER_RETURN_TYPES = {
|
|
9
8
|
Any: {
|
|
10
9
|
type: 'any',
|
|
11
|
-
imports: []
|
|
10
|
+
imports: []
|
|
12
11
|
},
|
|
13
12
|
AlbSchema: {
|
|
14
13
|
type: 'ALBResult',
|
|
15
|
-
imports: [
|
|
14
|
+
imports: [
|
|
15
|
+
'ALBResult'
|
|
16
|
+
]
|
|
16
17
|
},
|
|
17
18
|
APIGatewayProxyEventSchema: {
|
|
18
19
|
type: 'APIGatewayProxyResult',
|
|
19
|
-
imports: [
|
|
20
|
+
imports: [
|
|
21
|
+
'APIGatewayProxyResult'
|
|
22
|
+
]
|
|
20
23
|
},
|
|
21
24
|
APIGatewayRequestAuthorizerEventSchema: {
|
|
22
25
|
type: 'APIGatewayAuthorizerResult',
|
|
23
|
-
imports: [
|
|
26
|
+
imports: [
|
|
27
|
+
'APIGatewayAuthorizerResult'
|
|
28
|
+
]
|
|
24
29
|
},
|
|
25
30
|
APIGatewayTokenAuthorizerEventSchema: {
|
|
26
31
|
type: 'APIGatewayAuthorizerResult',
|
|
27
|
-
imports: [
|
|
32
|
+
imports: [
|
|
33
|
+
'APIGatewayAuthorizerResult'
|
|
34
|
+
]
|
|
28
35
|
},
|
|
29
36
|
APIGatewayProxyEventV2Schema: {
|
|
30
37
|
type: 'APIGatewayProxyResultV2',
|
|
31
|
-
imports: [
|
|
38
|
+
imports: [
|
|
39
|
+
'APIGatewayProxyResultV2'
|
|
40
|
+
]
|
|
32
41
|
},
|
|
33
42
|
APIGatewayProxyWebsocketEventSchema: {
|
|
34
43
|
type: 'APIGatewayProxyResultV2',
|
|
35
|
-
imports: [
|
|
44
|
+
imports: [
|
|
45
|
+
'APIGatewayProxyResultV2'
|
|
46
|
+
]
|
|
36
47
|
},
|
|
37
48
|
APIGatewayRequestAuthorizerEventV2Schema: {
|
|
38
49
|
type: 'APIGatewayAuthorizerResult',
|
|
39
|
-
imports: [
|
|
50
|
+
imports: [
|
|
51
|
+
'APIGatewayAuthorizerResult'
|
|
52
|
+
]
|
|
40
53
|
},
|
|
41
54
|
CloudFormationCustomResourceCreateSchema: {
|
|
42
55
|
type: 'void',
|
|
43
|
-
imports: []
|
|
56
|
+
imports: []
|
|
44
57
|
},
|
|
45
58
|
CloudFormationCustomResourceUpdateSchema: {
|
|
46
59
|
type: 'void',
|
|
47
|
-
imports: []
|
|
60
|
+
imports: []
|
|
48
61
|
},
|
|
49
62
|
CloudFormationCustomResourceDeleteSchema: {
|
|
50
63
|
type: 'void',
|
|
51
|
-
imports: []
|
|
64
|
+
imports: []
|
|
52
65
|
},
|
|
53
66
|
CloudWatchLogsSchema: {
|
|
54
67
|
type: 'void',
|
|
55
|
-
imports: []
|
|
68
|
+
imports: []
|
|
56
69
|
},
|
|
57
70
|
DynamoDBStreamSchema: {
|
|
58
71
|
type: 'DynamoDBBatchResponse | void',
|
|
59
|
-
imports: [
|
|
72
|
+
imports: [
|
|
73
|
+
'DynamoDBBatchResponse'
|
|
74
|
+
]
|
|
60
75
|
},
|
|
61
76
|
EventBridgeSchema: {
|
|
62
77
|
type: 'void',
|
|
63
|
-
imports: []
|
|
78
|
+
imports: []
|
|
64
79
|
},
|
|
65
80
|
KafkaMskEventSchema: {
|
|
66
81
|
type: 'void',
|
|
67
|
-
imports: []
|
|
82
|
+
imports: []
|
|
68
83
|
},
|
|
69
84
|
KafkaSelfManagedEventSchema: {
|
|
70
85
|
type: 'void',
|
|
71
|
-
imports: []
|
|
86
|
+
imports: []
|
|
72
87
|
},
|
|
73
88
|
KinesisDataStreamSchema: {
|
|
74
89
|
type: 'KinesisStreamBatchResponse | void',
|
|
75
|
-
imports: [
|
|
90
|
+
imports: [
|
|
91
|
+
'KinesisStreamBatchResponse'
|
|
92
|
+
]
|
|
76
93
|
},
|
|
77
94
|
KinesisFirehoseSchema: {
|
|
78
95
|
type: 'FirehoseTransformationResult',
|
|
79
|
-
imports: [
|
|
96
|
+
imports: [
|
|
97
|
+
'FirehoseTransformationResult'
|
|
98
|
+
]
|
|
80
99
|
},
|
|
81
100
|
KinesisDynamoDBStreamSchema: {
|
|
82
101
|
type: 'KinesisStreamBatchResponse | void',
|
|
83
|
-
imports: [
|
|
102
|
+
imports: [
|
|
103
|
+
'KinesisStreamBatchResponse'
|
|
104
|
+
]
|
|
84
105
|
},
|
|
85
106
|
KinesisFirehoseSqsSchema: {
|
|
86
107
|
type: 'FirehoseTransformationResult',
|
|
87
|
-
imports: [
|
|
108
|
+
imports: [
|
|
109
|
+
'FirehoseTransformationResult'
|
|
110
|
+
]
|
|
88
111
|
},
|
|
89
112
|
LambdaFunctionUrlSchema: {
|
|
90
113
|
type: 'LambdaFunctionURLResult',
|
|
91
|
-
imports: [
|
|
114
|
+
imports: [
|
|
115
|
+
'LambdaFunctionURLResult'
|
|
116
|
+
]
|
|
92
117
|
},
|
|
93
118
|
S3EventNotificationEventBridgeSchema: {
|
|
94
119
|
type: 'void',
|
|
95
|
-
imports: []
|
|
120
|
+
imports: []
|
|
96
121
|
},
|
|
97
122
|
S3Schema: {
|
|
98
123
|
type: 'void',
|
|
99
|
-
imports: []
|
|
124
|
+
imports: []
|
|
100
125
|
},
|
|
101
126
|
S3ObjectLambdaEventSchema: {
|
|
102
127
|
type: 'void',
|
|
103
|
-
imports: []
|
|
128
|
+
imports: []
|
|
104
129
|
},
|
|
105
130
|
S3SqsEventNotificationSchema: {
|
|
106
131
|
type: 'SQSBatchResponse | void',
|
|
107
|
-
imports: [
|
|
132
|
+
imports: [
|
|
133
|
+
'SQSBatchResponse'
|
|
134
|
+
]
|
|
108
135
|
},
|
|
109
136
|
SesSchema: {
|
|
110
137
|
type: 'void',
|
|
111
|
-
imports: []
|
|
138
|
+
imports: []
|
|
112
139
|
},
|
|
113
140
|
SnsSchema: {
|
|
114
141
|
type: 'void',
|
|
115
|
-
imports: []
|
|
142
|
+
imports: []
|
|
116
143
|
},
|
|
117
144
|
SqsSchema: {
|
|
118
145
|
type: 'SQSBatchResponse | void',
|
|
119
|
-
imports: [
|
|
146
|
+
imports: [
|
|
147
|
+
'SQSBatchResponse'
|
|
148
|
+
]
|
|
120
149
|
},
|
|
121
150
|
TransferFamilySchema: {
|
|
122
151
|
type: 'TransferFamilyAuthorizerResult',
|
|
123
|
-
imports: [
|
|
152
|
+
imports: [
|
|
153
|
+
'TransferFamilyAuthorizerResult'
|
|
154
|
+
]
|
|
124
155
|
},
|
|
125
156
|
VpcLatticeSchema: {
|
|
126
157
|
type: 'void',
|
|
127
|
-
imports: []
|
|
158
|
+
imports: []
|
|
128
159
|
},
|
|
129
160
|
VpcLatticeV2Schema: {
|
|
130
161
|
type: 'void',
|
|
131
|
-
imports: []
|
|
162
|
+
imports: []
|
|
132
163
|
},
|
|
133
164
|
/**
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
PreSignupTriggerSchema: {
|
|
165
|
+
* The below Cognito triggers must return the same type as the input event.
|
|
166
|
+
* Due to mismatches between @types/aws-lambda and powertools schemas, we choose the zod input type.
|
|
167
|
+
*/ PreSignupTriggerSchema: {
|
|
138
168
|
type: 'z.infer<typeof PreSignupTriggerSchema>',
|
|
139
|
-
imports: []
|
|
169
|
+
imports: []
|
|
140
170
|
},
|
|
141
171
|
PostConfirmationTriggerSchema: {
|
|
142
172
|
type: 'z.infer<typeof PostConfirmationTriggerSchema>',
|
|
143
|
-
imports: []
|
|
173
|
+
imports: []
|
|
144
174
|
},
|
|
145
175
|
CustomMessageTriggerSchema: {
|
|
146
176
|
type: 'z.infer<typeof CustomMessageTriggerSchema>',
|
|
147
|
-
imports: []
|
|
177
|
+
imports: []
|
|
148
178
|
},
|
|
149
179
|
MigrateUserTriggerSchema: {
|
|
150
180
|
type: 'z.infer<typeof MigrateUserTriggerSchema>',
|
|
151
|
-
imports: []
|
|
181
|
+
imports: []
|
|
152
182
|
},
|
|
153
183
|
CustomSMSSenderTriggerSchema: {
|
|
154
184
|
type: 'z.infer<typeof CustomSMSSenderTriggerSchema>',
|
|
155
|
-
imports: []
|
|
185
|
+
imports: []
|
|
156
186
|
},
|
|
157
187
|
CustomEmailSenderTriggerSchema: {
|
|
158
188
|
type: 'z.infer<typeof CustomEmailSenderTriggerSchema>',
|
|
159
|
-
imports: []
|
|
189
|
+
imports: []
|
|
160
190
|
},
|
|
161
191
|
DefineAuthChallengeTriggerSchema: {
|
|
162
192
|
type: 'z.infer<typeof DefineAuthChallengeTriggerSchema>',
|
|
163
|
-
imports: []
|
|
193
|
+
imports: []
|
|
164
194
|
},
|
|
165
195
|
CreateAuthChallengeTriggerSchema: {
|
|
166
196
|
type: 'z.infer<typeof CreateAuthChallengeTriggerSchema>',
|
|
167
|
-
imports: []
|
|
197
|
+
imports: []
|
|
168
198
|
},
|
|
169
199
|
VerifyAuthChallengeTriggerSchema: {
|
|
170
200
|
type: 'z.infer<typeof VerifyAuthChallengeTriggerSchema>',
|
|
171
|
-
imports: []
|
|
201
|
+
imports: []
|
|
172
202
|
},
|
|
173
203
|
PreTokenGenerationTriggerSchemaV1: {
|
|
174
204
|
type: 'z.infer<typeof PreTokenGenerationTriggerSchemaV1>',
|
|
175
|
-
imports: []
|
|
205
|
+
imports: []
|
|
176
206
|
},
|
|
177
207
|
PreTokenGenerationTriggerSchemaV2AndV3: {
|
|
178
208
|
type: 'z.infer<typeof PreTokenGenerationTriggerSchemaV2AndV3>',
|
|
179
|
-
imports: []
|
|
180
|
-
}
|
|
209
|
+
imports: []
|
|
210
|
+
}
|
|
181
211
|
};
|
|
212
|
+
|
|
182
213
|
//# sourceMappingURL=io.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/nx-plugin/src/ts/lambda-function/io.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport type { EventSource } from './schema';\n\n/**\n * Mapping of EventSource to the corresponding return type from @types/aws-lambda\n * @see https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda/trigger\n */\nexport const TS_HANDLER_RETURN_TYPES = {\n Any: {\n type: 'any',\n imports: [],\n },\n AlbSchema: {\n type: 'ALBResult',\n imports: ['ALBResult'],\n },\n APIGatewayProxyEventSchema: {\n type: 'APIGatewayProxyResult',\n imports: ['APIGatewayProxyResult'],\n },\n APIGatewayRequestAuthorizerEventSchema: {\n type: 'APIGatewayAuthorizerResult',\n imports: ['APIGatewayAuthorizerResult'],\n },\n APIGatewayTokenAuthorizerEventSchema: {\n type: 'APIGatewayAuthorizerResult',\n imports: ['APIGatewayAuthorizerResult'],\n },\n APIGatewayProxyEventV2Schema: {\n type: 'APIGatewayProxyResultV2',\n imports: ['APIGatewayProxyResultV2'],\n },\n APIGatewayProxyWebsocketEventSchema: {\n type: 'APIGatewayProxyResultV2',\n imports: ['APIGatewayProxyResultV2'],\n },\n APIGatewayRequestAuthorizerEventV2Schema: {\n type: 'APIGatewayAuthorizerResult',\n imports: ['APIGatewayAuthorizerResult'],\n },\n CloudFormationCustomResourceCreateSchema: {\n type: 'void',\n imports: [],\n },\n CloudFormationCustomResourceUpdateSchema: {\n type: 'void',\n imports: [],\n },\n CloudFormationCustomResourceDeleteSchema: {\n type: 'void',\n imports: [],\n },\n CloudWatchLogsSchema: {\n type: 'void',\n imports: [],\n },\n DynamoDBStreamSchema: {\n type: 'DynamoDBBatchResponse | void',\n imports: ['DynamoDBBatchResponse'],\n },\n EventBridgeSchema: {\n type: 'void',\n imports: [],\n },\n KafkaMskEventSchema: {\n type: 'void',\n imports: [],\n },\n KafkaSelfManagedEventSchema: {\n type: 'void',\n imports: [],\n },\n KinesisDataStreamSchema: {\n type: 'KinesisStreamBatchResponse | void',\n imports: ['KinesisStreamBatchResponse'],\n },\n KinesisFirehoseSchema: {\n type: 'FirehoseTransformationResult',\n imports: ['FirehoseTransformationResult'],\n },\n KinesisDynamoDBStreamSchema: {\n type: 'KinesisStreamBatchResponse | void',\n imports: ['KinesisStreamBatchResponse'],\n },\n KinesisFirehoseSqsSchema: {\n type: 'FirehoseTransformationResult',\n imports: ['FirehoseTransformationResult'],\n },\n LambdaFunctionUrlSchema: {\n type: 'LambdaFunctionURLResult',\n imports: ['LambdaFunctionURLResult'],\n },\n S3EventNotificationEventBridgeSchema: {\n type: 'void',\n imports: [],\n },\n S3Schema: {\n type: 'void',\n imports: [],\n },\n S3ObjectLambdaEventSchema: {\n type: 'void',\n imports: [],\n },\n S3SqsEventNotificationSchema: {\n type: 'SQSBatchResponse | void',\n imports: ['SQSBatchResponse'],\n },\n SesSchema: {\n type: 'void',\n imports: [],\n },\n SnsSchema: {\n type: 'void',\n imports: [],\n },\n SqsSchema: {\n type: 'SQSBatchResponse | void',\n imports: ['SQSBatchResponse'],\n },\n TransferFamilySchema: {\n type: 'TransferFamilyAuthorizerResult',\n imports: ['TransferFamilyAuthorizerResult'],\n },\n VpcLatticeSchema: {\n type: 'void',\n imports: [],\n },\n VpcLatticeV2Schema: {\n type: 'void',\n imports: [],\n },\n /**\n * The below Cognito triggers must return the same type as the input event.\n * Due to mismatches between @types/aws-lambda and powertools schemas, we choose the zod input type.\n */\n PreSignupTriggerSchema: {\n type: 'z.infer<typeof PreSignupTriggerSchema>',\n imports: [],\n },\n PostConfirmationTriggerSchema: {\n type: 'z.infer<typeof PostConfirmationTriggerSchema>',\n imports: [],\n },\n CustomMessageTriggerSchema: {\n type: 'z.infer<typeof CustomMessageTriggerSchema>',\n imports: [],\n },\n MigrateUserTriggerSchema: {\n type: 'z.infer<typeof MigrateUserTriggerSchema>',\n imports: [],\n },\n CustomSMSSenderTriggerSchema: {\n type: 'z.infer<typeof CustomSMSSenderTriggerSchema>',\n imports: [],\n },\n CustomEmailSenderTriggerSchema: {\n type: 'z.infer<typeof CustomEmailSenderTriggerSchema>',\n imports: [],\n },\n DefineAuthChallengeTriggerSchema: {\n type: 'z.infer<typeof DefineAuthChallengeTriggerSchema>',\n imports: [],\n },\n CreateAuthChallengeTriggerSchema: {\n type: 'z.infer<typeof CreateAuthChallengeTriggerSchema>',\n imports: [],\n },\n VerifyAuthChallengeTriggerSchema: {\n type: 'z.infer<typeof VerifyAuthChallengeTriggerSchema>',\n imports: [],\n },\n PreTokenGenerationTriggerSchemaV1: {\n type: 'z.infer<typeof PreTokenGenerationTriggerSchemaV1>',\n imports: [],\n },\n PreTokenGenerationTriggerSchemaV2AndV3: {\n type: 'z.infer<typeof PreTokenGenerationTriggerSchemaV2AndV3>',\n imports: [],\n },\n} satisfies Record<EventSource, { type: string; imports: string[] }>;\n"],"names":["TS_HANDLER_RETURN_TYPES","Any","type","imports","AlbSchema","APIGatewayProxyEventSchema","APIGatewayRequestAuthorizerEventSchema","APIGatewayTokenAuthorizerEventSchema","APIGatewayProxyEventV2Schema","APIGatewayProxyWebsocketEventSchema","APIGatewayRequestAuthorizerEventV2Schema","CloudFormationCustomResourceCreateSchema","CloudFormationCustomResourceUpdateSchema","CloudFormationCustomResourceDeleteSchema","CloudWatchLogsSchema","DynamoDBStreamSchema","EventBridgeSchema","KafkaMskEventSchema","KafkaSelfManagedEventSchema","KinesisDataStreamSchema","KinesisFirehoseSchema","KinesisDynamoDBStreamSchema","KinesisFirehoseSqsSchema","LambdaFunctionUrlSchema","S3EventNotificationEventBridgeSchema","S3Schema","S3ObjectLambdaEventSchema","S3SqsEventNotificationSchema","SesSchema","SnsSchema","SqsSchema","TransferFamilySchema","VpcLatticeSchema","VpcLatticeV2Schema","PreSignupTriggerSchema","PostConfirmationTriggerSchema","CustomMessageTriggerSchema","MigrateUserTriggerSchema","CustomSMSSenderTriggerSchema","CustomEmailSenderTriggerSchema","DefineAuthChallengeTriggerSchema","CreateAuthChallengeTriggerSchema","VerifyAuthChallengeTriggerSchema","PreTokenGenerationTriggerSchemaV1","PreTokenGenerationTriggerSchemaV2AndV3"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/nx-plugin/src/ts/lambda-function/schema.d.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IacOption } from '../../utils/iac';\n\nexport type EventSource =\n | 'Any'\n | 'AlbSchema'\n | 'APIGatewayProxyEventSchema'\n | 'APIGatewayRequestAuthorizerEventSchema'\n | 'APIGatewayTokenAuthorizerEventSchema'\n | 'APIGatewayProxyEventV2Schema'\n | 'APIGatewayProxyWebsocketEventSchema'\n | 'APIGatewayRequestAuthorizerEventV2Schema'\n | 'CloudFormationCustomResourceCreateSchema'\n | 'CloudFormationCustomResourceUpdateSchema'\n | 'CloudFormationCustomResourceDeleteSchema'\n | 'CloudWatchLogsSchema'\n | 'PreSignupTriggerSchema'\n | 'PostConfirmationTriggerSchema'\n | 'CustomMessageTriggerSchema'\n | 'MigrateUserTriggerSchema'\n | 'CustomSMSSenderTriggerSchema'\n | 'CustomEmailSenderTriggerSchema'\n | 'DefineAuthChallengeTriggerSchema'\n | 'CreateAuthChallengeTriggerSchema'\n | 'VerifyAuthChallengeTriggerSchema'\n | 'PreTokenGenerationTriggerSchemaV1'\n | 'PreTokenGenerationTriggerSchemaV2AndV3'\n | 'DynamoDBStreamSchema'\n | 'EventBridgeSchema'\n | 'KafkaMskEventSchema'\n | 'KafkaSelfManagedEventSchema'\n | 'KinesisDataStreamSchema'\n | 'KinesisFirehoseSchema'\n | 'KinesisDynamoDBStreamSchema'\n | 'KinesisFirehoseSqsSchema'\n | 'LambdaFunctionUrlSchema'\n | 'S3EventNotificationEventBridgeSchema'\n | 'S3Schema'\n | 'S3ObjectLambdaEventSchema'\n | 'S3SqsEventNotificationSchema'\n | 'SesSchema'\n | 'SnsSchema'\n | 'SqsSchema'\n | 'TransferFamilySchema'\n | 'VpcLatticeSchema'\n | 'VpcLatticeV2Schema';\n\nexport type LambdaInfraOption = 'lambda' | 'none';\n\nexport interface TsLambdaFunctionGeneratorSchema {\n readonly project: string;\n readonly name: string;\n readonly functionPath?: string;\n readonly event?: EventSource;\n readonly infra?: LambdaInfraOption;\n readonly iac: IacOption;\n}\n"],"names":[],"mappings":"AAAA;;;CAGC,GAkDD,WAOC"}
|