@takumi-stack/core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/coordinator.d.ts +28 -0
- package/common/coordinator.d.ts.map +1 -0
- package/common/coordinator.js +94 -0
- package/common/coordinator.js.map +1 -0
- package/common/index.d.ts +6 -0
- package/common/index.d.ts.map +1 -0
- package/common/index.js +22 -0
- package/common/index.js.map +1 -0
- package/common/modifier.d.ts +5 -0
- package/common/modifier.d.ts.map +1 -0
- package/common/modifier.js +12 -0
- package/common/modifier.js.map +1 -0
- package/common/naming/get-deploy-config.d.ts +9 -0
- package/common/naming/get-deploy-config.d.ts.map +1 -0
- package/common/naming/get-deploy-config.js +8 -0
- package/common/naming/get-deploy-config.js.map +1 -0
- package/common/naming/get-domain.d.ts +9 -0
- package/common/naming/get-domain.d.ts.map +1 -0
- package/common/naming/get-domain.js +13 -0
- package/common/naming/get-domain.js.map +1 -0
- package/common/naming/get-function-entry.d.ts +4 -0
- package/common/naming/get-function-entry.d.ts.map +1 -0
- package/common/naming/get-function-entry.js +14 -0
- package/common/naming/get-function-entry.js.map +1 -0
- package/common/naming/get-logical-name.d.ts +2 -0
- package/common/naming/get-logical-name.d.ts.map +1 -0
- package/common/naming/get-logical-name.js +8 -0
- package/common/naming/get-logical-name.js.map +1 -0
- package/common/naming/get-resource-name.d.ts +47 -0
- package/common/naming/get-resource-name.d.ts.map +1 -0
- package/common/naming/get-resource-name.js +38 -0
- package/common/naming/get-resource-name.js.map +1 -0
- package/common/naming/get-service-name.d.ts +10 -0
- package/common/naming/get-service-name.d.ts.map +1 -0
- package/common/naming/get-service-name.js +10 -0
- package/common/naming/get-service-name.js.map +1 -0
- package/common/naming/index.d.ts +8 -0
- package/common/naming/index.d.ts.map +1 -0
- package/common/naming/index.js +24 -0
- package/common/naming/index.js.map +1 -0
- package/common/naming/string-parser.d.ts +4 -0
- package/common/naming/string-parser.d.ts.map +1 -0
- package/common/naming/string-parser.js +22 -0
- package/common/naming/string-parser.js.map +1 -0
- package/common/service.d.ts +29 -0
- package/common/service.d.ts.map +1 -0
- package/common/service.js +28 -0
- package/common/service.js.map +1 -0
- package/common/synth/account-mapping.d.ts +2 -0
- package/common/synth/account-mapping.d.ts.map +1 -0
- package/common/synth/account-mapping.js +18 -0
- package/common/synth/account-mapping.js.map +1 -0
- package/common/synth/assume-role.d.ts +18 -0
- package/common/synth/assume-role.d.ts.map +1 -0
- package/common/synth/assume-role.js +25 -0
- package/common/synth/assume-role.js.map +1 -0
- package/common/synth/get-global-props.d.ts +16 -0
- package/common/synth/get-global-props.d.ts.map +1 -0
- package/common/synth/get-global-props.js +34 -0
- package/common/synth/get-global-props.js.map +1 -0
- package/common/synth/get-service-props.d.ts +11 -0
- package/common/synth/get-service-props.d.ts.map +1 -0
- package/common/synth/get-service-props.js +12 -0
- package/common/synth/get-service-props.js.map +1 -0
- package/common/synth/index.d.ts +8 -0
- package/common/synth/index.d.ts.map +1 -0
- package/common/synth/index.js +24 -0
- package/common/synth/index.js.map +1 -0
- package/common/synth/pre-script.d.ts +32 -0
- package/common/synth/pre-script.d.ts.map +1 -0
- package/common/synth/pre-script.js +74 -0
- package/common/synth/pre-script.js.map +1 -0
- package/common/synth/props-types.d.ts +60 -0
- package/common/synth/props-types.d.ts.map +1 -0
- package/common/synth/props-types.js +3 -0
- package/common/synth/props-types.js.map +1 -0
- package/common/synth/synth-error.d.ts +8 -0
- package/common/synth/synth-error.d.ts.map +1 -0
- package/common/synth/synth-error.js +17 -0
- package/common/synth/synth-error.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +20 -0
- package/index.js.map +1 -0
- package/package.json +43 -0
- package/prefab/analytics/events/handlers/ingestion-transform/handler.d.ts +4 -0
- package/prefab/analytics/events/handlers/ingestion-transform/handler.d.ts.map +1 -0
- package/prefab/analytics/events/handlers/ingestion-transform/handler.js +34 -0
- package/prefab/analytics/events/handlers/ingestion-transform/handler.js.map +1 -0
- package/prefab/analytics/events/index.d.ts +31 -0
- package/prefab/analytics/events/index.d.ts.map +1 -0
- package/prefab/analytics/events/index.js +163 -0
- package/prefab/analytics/events/index.js.map +1 -0
- package/prefab/analytics/index.d.ts +2 -0
- package/prefab/analytics/index.d.ts.map +1 -0
- package/prefab/analytics/index.js +18 -0
- package/prefab/analytics/index.js.map +1 -0
- package/prefab/auth/cognito-pool/index.d.ts +65 -0
- package/prefab/auth/cognito-pool/index.d.ts.map +1 -0
- package/prefab/auth/cognito-pool/index.js +240 -0
- package/prefab/auth/cognito-pool/index.js.map +1 -0
- package/prefab/auth/index.d.ts +2 -0
- package/prefab/auth/index.d.ts.map +1 -0
- package/prefab/auth/index.js +18 -0
- package/prefab/auth/index.js.map +1 -0
- package/prefab/cdn/cdn-api/index.d.ts +38 -0
- package/prefab/cdn/cdn-api/index.d.ts.map +1 -0
- package/prefab/cdn/cdn-api/index.js +153 -0
- package/prefab/cdn/cdn-api/index.js.map +1 -0
- package/prefab/cdn/cdn-asset/index.d.ts +27 -0
- package/prefab/cdn/cdn-asset/index.d.ts.map +1 -0
- package/prefab/cdn/cdn-asset/index.js +96 -0
- package/prefab/cdn/cdn-asset/index.js.map +1 -0
- package/prefab/cdn/cdn-spa/index.d.ts +27 -0
- package/prefab/cdn/cdn-spa/index.d.ts.map +1 -0
- package/prefab/cdn/cdn-spa/index.js +138 -0
- package/prefab/cdn/cdn-spa/index.js.map +1 -0
- package/prefab/cdn/cdn-ssr/index.d.ts +36 -0
- package/prefab/cdn/cdn-ssr/index.d.ts.map +1 -0
- package/prefab/cdn/cdn-ssr/index.js +271 -0
- package/prefab/cdn/cdn-ssr/index.js.map +1 -0
- package/prefab/cdn/index.d.ts +5 -0
- package/prefab/cdn/index.d.ts.map +1 -0
- package/prefab/cdn/index.js +21 -0
- package/prefab/cdn/index.js.map +1 -0
- package/prefab/compute/fargate/cluster.d.ts +16 -0
- package/prefab/compute/fargate/cluster.d.ts.map +1 -0
- package/prefab/compute/fargate/cluster.js +42 -0
- package/prefab/compute/fargate/cluster.js.map +1 -0
- package/prefab/compute/fargate/index.d.ts +3 -0
- package/prefab/compute/fargate/index.d.ts.map +1 -0
- package/prefab/compute/fargate/index.js +19 -0
- package/prefab/compute/fargate/index.js.map +1 -0
- package/prefab/compute/fargate/service.d.ts +49 -0
- package/prefab/compute/fargate/service.d.ts.map +1 -0
- package/prefab/compute/fargate/service.js +109 -0
- package/prefab/compute/fargate/service.js.map +1 -0
- package/prefab/compute/function/api-function/api-aggregate.d.ts +32 -0
- package/prefab/compute/function/api-function/api-aggregate.d.ts.map +1 -0
- package/prefab/compute/function/api-function/api-aggregate.js +54 -0
- package/prefab/compute/function/api-function/api-aggregate.js.map +1 -0
- package/prefab/compute/function/api-function/api-function.d.ts +22 -0
- package/prefab/compute/function/api-function/api-function.d.ts.map +1 -0
- package/prefab/compute/function/api-function/api-function.js +45 -0
- package/prefab/compute/function/api-function/api-function.js.map +1 -0
- package/prefab/compute/function/api-function/index.d.ts +3 -0
- package/prefab/compute/function/api-function/index.d.ts.map +1 -0
- package/prefab/compute/function/api-function/index.js +19 -0
- package/prefab/compute/function/api-function/index.js.map +1 -0
- package/prefab/compute/function/base-function/index.d.ts +33 -0
- package/prefab/compute/function/base-function/index.d.ts.map +1 -0
- package/prefab/compute/function/base-function/index.js +70 -0
- package/prefab/compute/function/base-function/index.js.map +1 -0
- package/prefab/compute/function/cognito-function/cognito-aggregate.d.ts +18 -0
- package/prefab/compute/function/cognito-function/cognito-aggregate.d.ts.map +1 -0
- package/prefab/compute/function/cognito-function/cognito-aggregate.js +22 -0
- package/prefab/compute/function/cognito-function/cognito-aggregate.js.map +1 -0
- package/prefab/compute/function/cognito-function/cognito-function.d.ts +19 -0
- package/prefab/compute/function/cognito-function/cognito-function.d.ts.map +1 -0
- package/prefab/compute/function/cognito-function/cognito-function.js +24 -0
- package/prefab/compute/function/cognito-function/cognito-function.js.map +1 -0
- package/prefab/compute/function/cognito-function/index.d.ts +3 -0
- package/prefab/compute/function/cognito-function/index.d.ts.map +1 -0
- package/prefab/compute/function/cognito-function/index.js +19 -0
- package/prefab/compute/function/cognito-function/index.js.map +1 -0
- package/prefab/compute/function/cron-function/cron-aggregate.d.ts +17 -0
- package/prefab/compute/function/cron-function/cron-aggregate.d.ts.map +1 -0
- package/prefab/compute/function/cron-function/cron-aggregate.js +22 -0
- package/prefab/compute/function/cron-function/cron-aggregate.js.map +1 -0
- package/prefab/compute/function/cron-function/cron-function.d.ts +17 -0
- package/prefab/compute/function/cron-function/cron-function.d.ts.map +1 -0
- package/prefab/compute/function/cron-function/cron-function.js +24 -0
- package/prefab/compute/function/cron-function/cron-function.js.map +1 -0
- package/prefab/compute/function/cron-function/index.d.ts +3 -0
- package/prefab/compute/function/cron-function/index.d.ts.map +1 -0
- package/prefab/compute/function/cron-function/index.js +19 -0
- package/prefab/compute/function/cron-function/index.js.map +1 -0
- package/prefab/compute/function/event-function/event-aggregate.d.ts +20 -0
- package/prefab/compute/function/event-function/event-aggregate.d.ts.map +1 -0
- package/prefab/compute/function/event-function/event-aggregate.js +25 -0
- package/prefab/compute/function/event-function/event-aggregate.js.map +1 -0
- package/prefab/compute/function/event-function/event-function.d.ts +14 -0
- package/prefab/compute/function/event-function/event-function.d.ts.map +1 -0
- package/prefab/compute/function/event-function/event-function.js +33 -0
- package/prefab/compute/function/event-function/event-function.js.map +1 -0
- package/prefab/compute/function/event-function/index.d.ts +3 -0
- package/prefab/compute/function/event-function/index.d.ts.map +1 -0
- package/prefab/compute/function/event-function/index.js +19 -0
- package/prefab/compute/function/event-function/index.js.map +1 -0
- package/prefab/compute/function/index.d.ts +8 -0
- package/prefab/compute/function/index.d.ts.map +1 -0
- package/prefab/compute/function/index.js +24 -0
- package/prefab/compute/function/index.js.map +1 -0
- package/prefab/compute/function/queue-function/index.d.ts +25 -0
- package/prefab/compute/function/queue-function/index.d.ts.map +1 -0
- package/prefab/compute/function/queue-function/index.js +46 -0
- package/prefab/compute/function/queue-function/index.js.map +1 -0
- package/prefab/compute/function/topic-function/index.d.ts +23 -0
- package/prefab/compute/function/topic-function/index.d.ts.map +1 -0
- package/prefab/compute/function/topic-function/index.js +23 -0
- package/prefab/compute/function/topic-function/index.js.map +1 -0
- package/prefab/compute/index.d.ts +3 -0
- package/prefab/compute/index.d.ts.map +1 -0
- package/prefab/compute/index.js +19 -0
- package/prefab/compute/index.js.map +1 -0
- package/prefab/database/dynamo/index.d.ts +14 -0
- package/prefab/database/dynamo/index.d.ts.map +1 -0
- package/prefab/database/dynamo/index.js +106 -0
- package/prefab/database/dynamo/index.js.map +1 -0
- package/prefab/database/index.d.ts +4 -0
- package/prefab/database/index.d.ts.map +1 -0
- package/prefab/database/index.js +20 -0
- package/prefab/database/index.js.map +1 -0
- package/prefab/database/rds/handlers/start-cluster/handler.d.ts +2 -0
- package/prefab/database/rds/handlers/start-cluster/handler.d.ts.map +1 -0
- package/prefab/database/rds/handlers/start-cluster/handler.js +10 -0
- package/prefab/database/rds/handlers/start-cluster/handler.js.map +1 -0
- package/prefab/database/rds/handlers/stop-cluster/handler.d.ts +2 -0
- package/prefab/database/rds/handlers/stop-cluster/handler.d.ts.map +1 -0
- package/prefab/database/rds/handlers/stop-cluster/handler.js +10 -0
- package/prefab/database/rds/handlers/stop-cluster/handler.js.map +1 -0
- package/prefab/database/rds/index.d.ts +54 -0
- package/prefab/database/rds/index.d.ts.map +1 -0
- package/prefab/database/rds/index.js +223 -0
- package/prefab/database/rds/index.js.map +1 -0
- package/prefab/database/timestream/index.d.ts +3 -0
- package/prefab/database/timestream/index.d.ts.map +1 -0
- package/prefab/database/timestream/index.js +19 -0
- package/prefab/database/timestream/index.js.map +1 -0
- package/prefab/database/timestream/timestream-database.d.ts +13 -0
- package/prefab/database/timestream/timestream-database.d.ts.map +1 -0
- package/prefab/database/timestream/timestream-database.js +21 -0
- package/prefab/database/timestream/timestream-database.js.map +1 -0
- package/prefab/database/timestream/timestream-table.d.ts +23 -0
- package/prefab/database/timestream/timestream-table.d.ts.map +1 -0
- package/prefab/database/timestream/timestream-table.js +62 -0
- package/prefab/database/timestream/timestream-table.js.map +1 -0
- package/prefab/gateway/alb-public/index.d.ts +44 -0
- package/prefab/gateway/alb-public/index.d.ts.map +1 -0
- package/prefab/gateway/alb-public/index.js +116 -0
- package/prefab/gateway/alb-public/index.js.map +1 -0
- package/prefab/gateway/api-gateway/api-http.d.ts +27 -0
- package/prefab/gateway/api-gateway/api-http.d.ts.map +1 -0
- package/prefab/gateway/api-gateway/api-http.js +48 -0
- package/prefab/gateway/api-gateway/api-http.js.map +1 -0
- package/prefab/gateway/api-gateway/api-rest.d.ts +26 -0
- package/prefab/gateway/api-gateway/api-rest.d.ts.map +1 -0
- package/prefab/gateway/api-gateway/api-rest.js +90 -0
- package/prefab/gateway/api-gateway/api-rest.js.map +1 -0
- package/prefab/gateway/api-gateway/index.d.ts +3 -0
- package/prefab/gateway/api-gateway/index.d.ts.map +1 -0
- package/prefab/gateway/api-gateway/index.js +19 -0
- package/prefab/gateway/api-gateway/index.js.map +1 -0
- package/prefab/gateway/app-sync/index.d.ts +36 -0
- package/prefab/gateway/app-sync/index.d.ts.map +1 -0
- package/prefab/gateway/app-sync/index.js +114 -0
- package/prefab/gateway/app-sync/index.js.map +1 -0
- package/prefab/gateway/app-sync/resolver-aggregate.d.ts +33 -0
- package/prefab/gateway/app-sync/resolver-aggregate.d.ts.map +1 -0
- package/prefab/gateway/app-sync/resolver-aggregate.js +125 -0
- package/prefab/gateway/app-sync/resolver-aggregate.js.map +1 -0
- package/prefab/gateway/app-sync/types.d.ts +29 -0
- package/prefab/gateway/app-sync/types.d.ts.map +1 -0
- package/prefab/gateway/app-sync/types.js +3 -0
- package/prefab/gateway/app-sync/types.js.map +1 -0
- package/prefab/gateway/index.d.ts +4 -0
- package/prefab/gateway/index.d.ts.map +1 -0
- package/prefab/gateway/index.js +20 -0
- package/prefab/gateway/index.js.map +1 -0
- package/prefab/index.d.ts +11 -0
- package/prefab/index.d.ts.map +1 -0
- package/prefab/index.js +27 -0
- package/prefab/index.js.map +1 -0
- package/prefab/integration/event-bus/index.d.ts +20 -0
- package/prefab/integration/event-bus/index.d.ts.map +1 -0
- package/prefab/integration/event-bus/index.js +46 -0
- package/prefab/integration/event-bus/index.js.map +1 -0
- package/prefab/integration/index.d.ts +4 -0
- package/prefab/integration/index.d.ts.map +1 -0
- package/prefab/integration/index.js +20 -0
- package/prefab/integration/index.js.map +1 -0
- package/prefab/integration/queue/index.d.ts +29 -0
- package/prefab/integration/queue/index.d.ts.map +1 -0
- package/prefab/integration/queue/index.js +70 -0
- package/prefab/integration/queue/index.js.map +1 -0
- package/prefab/integration/topic/index.d.ts +21 -0
- package/prefab/integration/topic/index.d.ts.map +1 -0
- package/prefab/integration/topic/index.js +48 -0
- package/prefab/integration/topic/index.js.map +1 -0
- package/prefab/networking/dns-domain-ref/index.d.ts +16 -0
- package/prefab/networking/dns-domain-ref/index.d.ts.map +1 -0
- package/prefab/networking/dns-domain-ref/index.js +28 -0
- package/prefab/networking/dns-domain-ref/index.js.map +1 -0
- package/prefab/networking/dns-subdomain-certificate/index.d.ts +13 -0
- package/prefab/networking/dns-subdomain-certificate/index.d.ts.map +1 -0
- package/prefab/networking/dns-subdomain-certificate/index.js +28 -0
- package/prefab/networking/dns-subdomain-certificate/index.js.map +1 -0
- package/prefab/networking/dns-subdomain-hosted-zone/index.d.ts +12 -0
- package/prefab/networking/dns-subdomain-hosted-zone/index.d.ts.map +1 -0
- package/prefab/networking/dns-subdomain-hosted-zone/index.js +27 -0
- package/prefab/networking/dns-subdomain-hosted-zone/index.js.map +1 -0
- package/prefab/networking/index.d.ts +6 -0
- package/prefab/networking/index.d.ts.map +1 -0
- package/prefab/networking/index.js +22 -0
- package/prefab/networking/index.js.map +1 -0
- package/prefab/networking/vpc/index.d.ts +20 -0
- package/prefab/networking/vpc/index.d.ts.map +1 -0
- package/prefab/networking/vpc/index.js +28 -0
- package/prefab/networking/vpc/index.js.map +1 -0
- package/prefab/networking/waf/index.d.ts +14 -0
- package/prefab/networking/waf/index.d.ts.map +1 -0
- package/prefab/networking/waf/index.js +45 -0
- package/prefab/networking/waf/index.js.map +1 -0
- package/prefab/storage/bucket/asset-bucket.d.ts +12 -0
- package/prefab/storage/bucket/asset-bucket.d.ts.map +1 -0
- package/prefab/storage/bucket/asset-bucket.js +19 -0
- package/prefab/storage/bucket/asset-bucket.js.map +1 -0
- package/prefab/storage/bucket/index.d.ts +3 -0
- package/prefab/storage/bucket/index.d.ts.map +1 -0
- package/prefab/storage/bucket/index.js +19 -0
- package/prefab/storage/bucket/index.js.map +1 -0
- package/prefab/storage/bucket/private-bucket.d.ts +26 -0
- package/prefab/storage/bucket/private-bucket.d.ts.map +1 -0
- package/prefab/storage/bucket/private-bucket.js +82 -0
- package/prefab/storage/bucket/private-bucket.js.map +1 -0
- package/prefab/storage/index.d.ts +2 -0
- package/prefab/storage/index.d.ts.map +1 -0
- package/prefab/storage/index.js +18 -0
- package/prefab/storage/index.js.map +1 -0
- package/prefab/utils/config/frontend-env-builder.d.ts +14 -0
- package/prefab/utils/config/frontend-env-builder.d.ts.map +1 -0
- package/prefab/utils/config/frontend-env-builder.js +25 -0
- package/prefab/utils/config/frontend-env-builder.js.map +1 -0
- package/prefab/utils/config/index.d.ts +4 -0
- package/prefab/utils/config/index.d.ts.map +1 -0
- package/prefab/utils/config/index.js +20 -0
- package/prefab/utils/config/index.js.map +1 -0
- package/prefab/utils/config/parameter-secret.d.ts +21 -0
- package/prefab/utils/config/parameter-secret.d.ts.map +1 -0
- package/prefab/utils/config/parameter-secret.js +42 -0
- package/prefab/utils/config/parameter-secret.js.map +1 -0
- package/prefab/utils/config/runtime-secret.d.ts +20 -0
- package/prefab/utils/config/runtime-secret.d.ts.map +1 -0
- package/prefab/utils/config/runtime-secret.js +37 -0
- package/prefab/utils/config/runtime-secret.js.map +1 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.d.ts +2 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.js +28 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.js.map +1 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/slack.d.ts +28 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/slack.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/slack.js +8 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/slack.js.map +1 -0
- package/prefab/utils/deploy-pipeline/entities/index.d.ts +29 -0
- package/prefab/utils/deploy-pipeline/entities/index.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/entities/index.js +3 -0
- package/prefab/utils/deploy-pipeline/entities/index.js.map +1 -0
- package/prefab/utils/deploy-pipeline/handlers/send-to-slack/handler.d.ts +3 -0
- package/prefab/utils/deploy-pipeline/handlers/send-to-slack/handler.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/handlers/send-to-slack/handler.js +28 -0
- package/prefab/utils/deploy-pipeline/handlers/send-to-slack/handler.js.map +1 -0
- package/prefab/utils/deploy-pipeline/index.d.ts +15 -0
- package/prefab/utils/deploy-pipeline/index.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/index.js +173 -0
- package/prefab/utils/deploy-pipeline/index.js.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.d.ts +6 -0
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.js +26 -0
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.js.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.d.ts +4 -0
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.js +39 -0
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.js.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/send-to-slack.d.ts +3 -0
- package/prefab/utils/deploy-pipeline/platform/send-to-slack.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/send-to-slack.js +14 -0
- package/prefab/utils/deploy-pipeline/platform/send-to-slack.js.map +1 -0
- package/prefab/utils/duration.d.ts +2 -0
- package/prefab/utils/duration.d.ts.map +1 -0
- package/prefab/utils/duration.js +6 -0
- package/prefab/utils/duration.js.map +1 -0
- package/prefab/utils/index.d.ts +5 -0
- package/prefab/utils/index.d.ts.map +1 -0
- package/prefab/utils/index.js +21 -0
- package/prefab/utils/index.js.map +1 -0
- package/prefab/utils/ses/index.d.ts +22 -0
- package/prefab/utils/ses/index.d.ts.map +1 -0
- package/prefab/utils/ses/index.js +124 -0
- package/prefab/utils/ses/index.js.map +1 -0
- package/script/config-command/bootstrap.d.ts +4 -0
- package/script/config-command/bootstrap.d.ts.map +1 -0
- package/script/config-command/bootstrap.js +66 -0
- package/script/config-command/bootstrap.js.map +1 -0
- package/script/config-command/deploy-spa.d.ts +4 -0
- package/script/config-command/deploy-spa.d.ts.map +1 -0
- package/script/config-command/deploy-spa.js +84 -0
- package/script/config-command/deploy-spa.js.map +1 -0
- package/script/config-command/deploy.d.ts +4 -0
- package/script/config-command/deploy.d.ts.map +1 -0
- package/script/config-command/deploy.js +26 -0
- package/script/config-command/deploy.js.map +1 -0
- package/script/config-command/destroy.d.ts +4 -0
- package/script/config-command/destroy.d.ts.map +1 -0
- package/script/config-command/destroy.js +26 -0
- package/script/config-command/destroy.js.map +1 -0
- package/script/config-command/env-ssr.d.ts +4 -0
- package/script/config-command/env-ssr.d.ts.map +1 -0
- package/script/config-command/env-ssr.js +51 -0
- package/script/config-command/env-ssr.js.map +1 -0
- package/script/config-command/invalidation-ssr.d.ts +4 -0
- package/script/config-command/invalidation-ssr.d.ts.map +1 -0
- package/script/config-command/invalidation-ssr.js +55 -0
- package/script/config-command/invalidation-ssr.js.map +1 -0
- package/script/config-command/rds-migration.d.ts +7 -0
- package/script/config-command/rds-migration.d.ts.map +1 -0
- package/script/config-command/rds-migration.js +125 -0
- package/script/config-command/rds-migration.js.map +1 -0
- package/script/config-command/rds-sync.d.ts +4 -0
- package/script/config-command/rds-sync.d.ts.map +1 -0
- package/script/config-command/rds-sync.js +66 -0
- package/script/config-command/rds-sync.js.map +1 -0
- package/script/config-command/ssm-connect.d.ts +4 -0
- package/script/config-command/ssm-connect.d.ts.map +1 -0
- package/script/config-command/ssm-connect.js +86 -0
- package/script/config-command/ssm-connect.js.map +1 -0
- package/script/config-command/start-spa.d.ts +4 -0
- package/script/config-command/start-spa.d.ts.map +1 -0
- package/script/config-command/start-spa.js +55 -0
- package/script/config-command/start-spa.js.map +1 -0
- package/script/config-command/start-ssr.d.ts +4 -0
- package/script/config-command/start-ssr.d.ts.map +1 -0
- package/script/config-command/start-ssr.js +55 -0
- package/script/config-command/start-ssr.js.map +1 -0
- package/script/config-command/synth.d.ts +4 -0
- package/script/config-command/synth.d.ts.map +1 -0
- package/script/config-command/synth.js +26 -0
- package/script/config-command/synth.js.map +1 -0
- package/script/index.d.ts +25 -0
- package/script/index.d.ts.map +1 -0
- package/script/index.js +70 -0
- package/script/index.js.map +1 -0
- package/script/output-command/create-user.d.ts +9 -0
- package/script/output-command/create-user.d.ts.map +1 -0
- package/script/output-command/create-user.js +61 -0
- package/script/output-command/create-user.js.map +1 -0
- package/script/output-command/gen-postman-env.d.ts +28 -0
- package/script/output-command/gen-postman-env.d.ts.map +1 -0
- package/script/output-command/gen-postman-env.js +56 -0
- package/script/output-command/gen-postman-env.js.map +1 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiHttpPrefab = void 0;
|
|
4
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
5
|
+
const aws_apigatewayv2_1 = require("aws-cdk-lib/aws-apigatewayv2");
|
|
6
|
+
const aws_apigatewayv2_authorizers_1 = require("aws-cdk-lib/aws-apigatewayv2-authorizers");
|
|
7
|
+
const aws_apigatewayv2_integrations_1 = require("aws-cdk-lib/aws-apigatewayv2-integrations");
|
|
8
|
+
const constructs_1 = require("constructs");
|
|
9
|
+
const common_1 = require("../../../common");
|
|
10
|
+
class ApiHttpPrefab extends constructs_1.Construct {
|
|
11
|
+
api;
|
|
12
|
+
authorizer;
|
|
13
|
+
constructor(service, params) {
|
|
14
|
+
super(service, (0, common_1.getLogicalName)(ApiHttpPrefab.name));
|
|
15
|
+
if (params.userPool && params.userPoolClient)
|
|
16
|
+
this.authorizer = new aws_apigatewayv2_authorizers_1.HttpUserPoolAuthorizer('Authorizer', params.userPool, {
|
|
17
|
+
userPoolClients: [params.userPoolClient],
|
|
18
|
+
identitySource: ['$request.header.Authorization'],
|
|
19
|
+
});
|
|
20
|
+
if (params.customAuthorizerHandler)
|
|
21
|
+
this.authorizer = new aws_apigatewayv2_authorizers_1.HttpLambdaAuthorizer('LambdaAuthorizer', params.customAuthorizerHandler, {
|
|
22
|
+
responseTypes: [aws_apigatewayv2_authorizers_1.HttpLambdaResponseType.SIMPLE],
|
|
23
|
+
});
|
|
24
|
+
this.api = new aws_apigatewayv2_1.HttpApi(this, 'HttpApi', {
|
|
25
|
+
apiName: (0, common_1.getResourceName)('', service.props),
|
|
26
|
+
corsPreflight: {
|
|
27
|
+
allowOrigins: ['*'],
|
|
28
|
+
allowMethods: [aws_apigatewayv2_1.CorsHttpMethod.ANY],
|
|
29
|
+
allowHeaders: ['*'],
|
|
30
|
+
maxAge: aws_cdk_lib_1.Duration.seconds(10),
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
const apiUrl = aws_cdk_lib_1.Fn.join('', [this.api.apiId, '.execute-api.', service.props.regionName, '.amazonaws.com']);
|
|
34
|
+
params.cdnApiPrefab?.addApiGateway(params.basePath, apiUrl);
|
|
35
|
+
new aws_cdk_lib_1.CfnOutput(this, 'ApiUrl', { value: apiUrl });
|
|
36
|
+
}
|
|
37
|
+
addPath(params) {
|
|
38
|
+
const path = params.path === '/' ? '' : params.path;
|
|
39
|
+
this.api.addRoutes({
|
|
40
|
+
path: `/${params.basePath}${path}`,
|
|
41
|
+
methods: [params.method],
|
|
42
|
+
integration: new aws_apigatewayv2_integrations_1.HttpLambdaIntegration(params.lambdaFunction.functionName, params.lambdaFunction),
|
|
43
|
+
...(params.isPublic ? {} : { authorizer: this.authorizer }),
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.ApiHttpPrefab = ApiHttpPrefab;
|
|
48
|
+
//# sourceMappingURL=api-http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-http.js","sourceRoot":"","sources":["../../../../prefab/gateway/api-gateway/api-http.ts"],"names":[],"mappings":";;;AAAA,6CAAsD;AACtD,mEAAyG;AACzG,2FAAgI;AAChI,6FAAkF;AAGlF,2CAAuC;AAIvC,mCAAuE;AAYvE,MAAa,aAAc,SAAQ,sBAAS;IAC1B,GAAG,CAAU;IACb,UAAU,CAAwB;IAElD,YAAY,OAAqB,EAAE,MAA0B;QAC3D,KAAK,CAAC,OAAO,EAAE,IAAA,uBAAc,EAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;QAEnD,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,cAAc;YAC1C,IAAI,CAAC,UAAU,GAAG,IAAI,qDAAsB,CAAC,YAAY,EAAE,MAAM,CAAC,QAAQ,EAAE;gBAC1E,eAAe,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC;gBACxC,cAAc,EAAE,CAAC,+BAA+B,CAAC;aAClD,CAAC,CAAC;QAEL,IAAI,MAAM,CAAC,uBAAuB;YAChC,IAAI,CAAC,UAAU,GAAG,IAAI,mDAAoB,CAAC,kBAAkB,EAAE,MAAM,CAAC,uBAAuB,EAAE;gBAC7F,aAAa,EAAE,CAAC,qDAAsB,CAAC,MAAM,C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CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC;SAC5D,CAAC,CAAC;IACL,CAAC;CACF;AAjDD,sCAiDC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as awsApigateway from 'aws-cdk-lib/aws-apigateway';
|
|
2
|
+
import { UserPool } from 'aws-cdk-lib/aws-cognito';
|
|
3
|
+
import { IFunction } from 'aws-cdk-lib/aws-lambda';
|
|
4
|
+
import { Construct } from 'constructs';
|
|
5
|
+
|
|
6
|
+
import { ServiceStack } from '../../../common';
|
|
7
|
+
|
|
8
|
+
import { CdnApiPrefab } from '../../../prefab/cdn';
|
|
9
|
+
|
|
10
|
+
export type ApiRestPrefabParams = {
|
|
11
|
+
basePath: string;
|
|
12
|
+
cdnApiPrefab?: CdnApiPrefab;
|
|
13
|
+
userPool?: UserPool;
|
|
14
|
+
customAuthorizerHandler?: IFunction;
|
|
15
|
+
stageName?: string;
|
|
16
|
+
stageVariables?: Record<string, string>;
|
|
17
|
+
httpProxyIntegrationUrl?: string;
|
|
18
|
+
apiKeyRequired?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare class ApiRestPrefab extends Construct {
|
|
21
|
+
readonly api: awsApigateway.RestApi;
|
|
22
|
+
readonly authorizer: awsApigateway.IAuthorizer;
|
|
23
|
+
readonly basePath: awsApigateway.Resource;
|
|
24
|
+
constructor(service: ServiceStack, params: ApiRestPrefabParams);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=api-rest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-rest.d.ts","sourceRoot":"","sources":["../../../../prefab/gateway/api-gateway/api-rest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAmC,MAAM,QAAQ,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,uBAAuB,CAAC,EAAE,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,qBAAa,aAAc,SAAQ,SAAS;IAC1C,SAAgB,GAAG,EAAE,aAAa,CAAC,OAAO,CAAC;IAC3C,SAAgB,UAAU,EAAG,aAAa,CAAC,WAAW,CAAC;IACvD,SAAgB,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC;gBAErC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,mBAAmB;CAmE/D"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ApiRestPrefab = void 0;
|
|
27
|
+
const awsApigateway = __importStar(require("aws-cdk-lib/aws-apigateway"));
|
|
28
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
29
|
+
const constructs_1 = require("constructs");
|
|
30
|
+
const common_1 = require("../../../common");
|
|
31
|
+
class ApiRestPrefab extends constructs_1.Construct {
|
|
32
|
+
api;
|
|
33
|
+
authorizer;
|
|
34
|
+
basePath;
|
|
35
|
+
constructor(service, params) {
|
|
36
|
+
super(service, (0, common_1.getLogicalName)(ApiRestPrefab.name));
|
|
37
|
+
if (params.userPool) {
|
|
38
|
+
this.authorizer = new awsApigateway.CognitoUserPoolsAuthorizer(this, 'Authorizer', {
|
|
39
|
+
cognitoUserPools: [params.userPool],
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
if (params.customAuthorizerHandler) {
|
|
43
|
+
this.authorizer = new awsApigateway.RequestAuthorizer(this, 'LambdaAuthorizer', {
|
|
44
|
+
identitySources: ['$request.header.Authorization'],
|
|
45
|
+
handler: params.customAuthorizerHandler,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
this.api = new awsApigateway.RestApi(this, 'RestApi', {
|
|
49
|
+
restApiName: (0, common_1.getResourceName)('', service.props),
|
|
50
|
+
deploy: true,
|
|
51
|
+
deployOptions: {
|
|
52
|
+
tracingEnabled: true,
|
|
53
|
+
stageName: params.stageName || 'default',
|
|
54
|
+
variables: params.stageVariables,
|
|
55
|
+
},
|
|
56
|
+
defaultCorsPreflightOptions: {
|
|
57
|
+
allowOrigins: awsApigateway.Cors.ALL_ORIGINS,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
const apiUrl = aws_cdk_lib_1.Fn.join('', [this.api.restApiId, '.execute-api.', service.props.regionName, '.amazonaws.com']);
|
|
61
|
+
this.basePath = this.api.root.resourceForPath(params.basePath);
|
|
62
|
+
if (params.httpProxyIntegrationUrl) {
|
|
63
|
+
const proxy = this.basePath.addProxy({ anyMethod: false });
|
|
64
|
+
proxy.addMethod('ANY', new awsApigateway.HttpIntegration(params.httpProxyIntegrationUrl, {
|
|
65
|
+
httpMethod: 'ANY',
|
|
66
|
+
proxy: true,
|
|
67
|
+
options: { requestParameters: { 'integration.request.path.proxy': 'method.request.path.proxy' } },
|
|
68
|
+
}), { requestParameters: { 'method.request.path.proxy': true }, apiKeyRequired: params.apiKeyRequired });
|
|
69
|
+
// I'm sorry for this, but there isn't a better way to do this...
|
|
70
|
+
this.api.methods
|
|
71
|
+
.filter((method) => method.httpMethod === 'OPTIONS')
|
|
72
|
+
.forEach((m) => {
|
|
73
|
+
proxy.node.tryRemoveChild(m.node.id);
|
|
74
|
+
});
|
|
75
|
+
proxy.addCorsPreflight({
|
|
76
|
+
allowOrigins: ['*'],
|
|
77
|
+
allowHeaders: ['*'],
|
|
78
|
+
allowMethods: awsApigateway.Cors.ALL_METHODS,
|
|
79
|
+
statusCode: 204,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
if (params.cdnApiPrefab)
|
|
83
|
+
params.cdnApiPrefab.addApiGateway(params.basePath, apiUrl, {
|
|
84
|
+
originPath: `/${this.api.deploymentStage.stageName}`,
|
|
85
|
+
});
|
|
86
|
+
new aws_cdk_lib_1.CfnOutput(this, 'RestApiUrl', { value: apiUrl });
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.ApiRestPrefab = ApiRestPrefab;
|
|
90
|
+
//# sourceMappingURL=api-rest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-rest.js","sourceRoot":"","sources":["../../../../prefab/gateway/api-gateway/api-rest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAA4D;AAC5D,6CAA4C;AAG5C,2CAAuC;AAEvC,mCAAuE;AAevE,MAAa,aAAc,SAAQ,sBAAS;IAC1B,GAAG,CAAwB;IAC3B,UAAU,CAA6B;IACvC,QAAQ,CAAyB;IAEjD,YAAY,OAAqB,EAAE,MAA2B;QAC5D,KAAK,CAAC,OAAO,EAAE,IAAA,uBAAc,EAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;QAEnD,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YACpB,IAAI,CAAC,UAAU,GAAG,IAAI,aAAa,CAAC,0BAA0B,CAAC,IAAI,EAAE,YAAY,EAAE;gBACjF,gBAAgB,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;aACpC,CAAC,CAAC;QACL,CAAC;QAED,IAAI,MAAM,CAAC,uBAAuB,EAAE,CAAC;YACnC,IAAI,CAAC,UAAU,GAAG,IAAI,aAAa,CAAC,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,EAAE;gBAC9E,eAAe,EAAE,CAAC,+BAA+B,CAAC;gBAClD,OAAO,EAAE,MAAM,CAAC,uBAAuB;aACxC,CAAC,CAAC;QACL,CAAC;QAED,IAAI,CAAC,GAAG,GAAG,IAAI,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE;YACpD,WAAW,EAAE,IAAA,wBAAe,EAAC,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC;YAC/C,MAAM,EAAE,IAAI;YACZ,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,SAAS,EAAE,MAAM,CAAC,SAAS,I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AAK,CAAC,gBAAgB,CAAC;gBACrB,YAAY,EAAE,CAAC,GAAG,CAAC;gBACnB,YAAY,EAAE,CAAC,GAAG,CAAC;gBACnB,YAAY,EAAE,aAAa,CAAC,IAAI,CAAC,WAAW;gBAC5C,UAAU,EAAE,GAAG;aAChB,CAAC,CAAC;QACL,CAAC;QAED,IAAI,MAAM,CAAC,YAAY;YACrB,MAAM,CAAC,YAAY,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE;gBACzD,UAAU,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,SAAS,EAAE;aACrD,CAAC,CAAC;QAEL,IAAI,uBAAS,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;CACF;AAxED,sCAwEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../prefab/gateway/api-gateway/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api-http"), exports);
|
|
18
|
+
__exportStar(require("./api-rest"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../prefab/gateway/api-gateway/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
|
|
3
|
+
import * as appsync from 'aws-cdk-lib/aws-appsync';
|
|
4
|
+
import { ICertificate } from 'aws-cdk-lib/aws-certificatemanager';
|
|
5
|
+
import { UserPool } from 'aws-cdk-lib/aws-cognito';
|
|
6
|
+
import { Construct } from 'constructs';
|
|
7
|
+
|
|
8
|
+
import { NonEmptyArray } from 'type-graphql';
|
|
9
|
+
|
|
10
|
+
import { ServiceStack } from '../../../common';
|
|
11
|
+
|
|
12
|
+
import { CdnApiPrefab } from '../../../prefab/cdn';
|
|
13
|
+
import { EventBusPrefab } from '../../../prefab/integration';
|
|
14
|
+
|
|
15
|
+
export type AppSyncPrefabParams = {
|
|
16
|
+
name: string;
|
|
17
|
+
baseFolder: string;
|
|
18
|
+
schemas: NonEmptyArray<Function>;
|
|
19
|
+
eventBusPrefab?: EventBusPrefab;
|
|
20
|
+
userPool?: UserPool;
|
|
21
|
+
cdnApiPrefab?: CdnApiPrefab;
|
|
22
|
+
domainConfig?: {
|
|
23
|
+
certificate: ICertificate;
|
|
24
|
+
subdomain: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare class AppSyncPrefab extends Construct {
|
|
28
|
+
api: appsync.GraphqlApi;
|
|
29
|
+
eventBridgeDataSource: EventBridgeDataSource;
|
|
30
|
+
schemas: NonEmptyArray<Function>;
|
|
31
|
+
constructor(service: ServiceStack, params: AppSyncPrefabParams);
|
|
32
|
+
}
|
|
33
|
+
export declare class EventBridgeDataSource extends appsync.BackedDataSource {
|
|
34
|
+
constructor(scope: Construct, id: string, props: appsync.BackedDataSourceProps);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../prefab/gateway/app-sync/index.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGnD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,YAAY,EAA0D,MAAM,QAAQ,CAAC;AAE9F,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACjC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,YAAY,CAAC,EAAE;QACb,WAAW,EAAE,YAAY,CAAC;QAC1B,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAEF,qBAAa,aAAc,SAAQ,SAAS;IACnC,GAAG,EAAE,OAAO,CAAC,UAAU,CAAC;IACxB,qBAAqB,EAAG,qBAAqB,CAAC;IAC9C,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;gBAE5B,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,mBAAmB;CAuE/D;AAED,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,gBAAgB;gBACrD,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,qBAAqB;CAK/E"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.EventBridgeDataSource = exports.AppSyncPrefab = void 0;
|
|
30
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
31
|
+
require("reflect-metadata");
|
|
32
|
+
const appsync = __importStar(require("aws-cdk-lib/aws-appsync"));
|
|
33
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
34
|
+
const aws_logs_1 = require("aws-cdk-lib/aws-logs");
|
|
35
|
+
const aws_route53_1 = require("aws-cdk-lib/aws-route53");
|
|
36
|
+
const constructs_1 = require("constructs");
|
|
37
|
+
const console_1 = require("console");
|
|
38
|
+
const path_1 = __importDefault(require("path"));
|
|
39
|
+
const type_graphql_1 = require("type-graphql");
|
|
40
|
+
const common_1 = require("../../../common");
|
|
41
|
+
class AppSyncPrefab extends constructs_1.Construct {
|
|
42
|
+
api;
|
|
43
|
+
eventBridgeDataSource;
|
|
44
|
+
schemas;
|
|
45
|
+
constructor(service, params) {
|
|
46
|
+
super(service, (0, common_1.getLogicalName)(AppSyncPrefab.name));
|
|
47
|
+
if (params.cdnApiPrefab && params.domainConfig)
|
|
48
|
+
throw new common_1.SynthError('Cannot use cdnApi and custom domain at the same time');
|
|
49
|
+
this.schemas = params.schemas;
|
|
50
|
+
const defaultAuthorization = params.userPool
|
|
51
|
+
? {
|
|
52
|
+
authorizationType: appsync.AuthorizationType.USER_POOL,
|
|
53
|
+
userPoolConfig: { userPool: params.userPool },
|
|
54
|
+
}
|
|
55
|
+
: { authorizationType: appsync.AuthorizationType.API_KEY };
|
|
56
|
+
const domainConfig = params.domainConfig
|
|
57
|
+
? {
|
|
58
|
+
certificate: params.domainConfig.certificate,
|
|
59
|
+
domainName: (0, common_1.getDomain)(params.domainConfig.subdomain, service.props),
|
|
60
|
+
}
|
|
61
|
+
: undefined;
|
|
62
|
+
(0, console_1.log)('<< Building GraphQL Schema >>');
|
|
63
|
+
const schemaPath = path_1.default.join(params.baseFolder, 'consolidated.graphql');
|
|
64
|
+
(0, type_graphql_1.buildSchemaSync)({
|
|
65
|
+
resolvers: this.schemas,
|
|
66
|
+
emitSchemaFile: schemaPath,
|
|
67
|
+
});
|
|
68
|
+
(0, console_1.log)('<< GraphQL Schema Built >>');
|
|
69
|
+
this.api = new appsync.GraphqlApi(this, 'Api', {
|
|
70
|
+
name: (0, common_1.getResourceName)('', service.props),
|
|
71
|
+
schema: appsync.SchemaFile.fromAsset(schemaPath),
|
|
72
|
+
authorizationConfig: { defaultAuthorization },
|
|
73
|
+
domainName: domainConfig,
|
|
74
|
+
logConfig: {
|
|
75
|
+
fieldLogLevel: appsync.FieldLogLevel.ALL,
|
|
76
|
+
retention: aws_logs_1.RetentionDays.ONE_MONTH,
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
if (params.eventBusPrefab) {
|
|
80
|
+
this.eventBridgeDataSource = new EventBridgeDataSource(service, 'EventBridgeDataSource', {
|
|
81
|
+
name: 'EventBridgeDataSource',
|
|
82
|
+
api: this.api,
|
|
83
|
+
});
|
|
84
|
+
appsync.CfnDataSource;
|
|
85
|
+
const cfDs = this.eventBridgeDataSource.node.defaultChild;
|
|
86
|
+
cfDs.eventBridgeConfig = { eventBusArn: params.eventBusPrefab.bus.eventBusArn };
|
|
87
|
+
params.eventBusPrefab.bus.grantPutEventsTo(this.eventBridgeDataSource);
|
|
88
|
+
}
|
|
89
|
+
if (params.domainConfig) {
|
|
90
|
+
const hostedZone = aws_route53_1.HostedZone.fromLookup(this, 'HostedZoneEnvDns', {
|
|
91
|
+
domainName: (0, common_1.getDomain)('', service.props),
|
|
92
|
+
});
|
|
93
|
+
new aws_route53_1.CnameRecord(service, 'Record', {
|
|
94
|
+
zone: hostedZone,
|
|
95
|
+
recordName: domainConfig?.domainName,
|
|
96
|
+
domainName: this.api.appSyncDomainName,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
if (params.cdnApiPrefab) {
|
|
100
|
+
params.cdnApiPrefab.addAppSync(this.api.graphqlUrl);
|
|
101
|
+
}
|
|
102
|
+
new aws_cdk_lib_1.CfnOutput(this, 'Domain', { value: domainConfig?.domainName || this.api.graphqlUrl });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.AppSyncPrefab = AppSyncPrefab;
|
|
106
|
+
class EventBridgeDataSource extends appsync.BackedDataSource {
|
|
107
|
+
constructor(scope, id, props) {
|
|
108
|
+
super(scope, id, props, {
|
|
109
|
+
type: 'AMAZON_EVENTBRIDGE',
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.EventBridgeDataSource = EventBridgeDataSource;
|
|
114
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../prefab/gateway/app-sync/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiD;AACjD,4BAA0B;AAE1B,iEAAmD;AACnD,6CAAwC;AAGxC,mDAAqD;AACrD,yDAAkE;AAClE,2CAAuC;AAEvC,qCAA8B;AAC9B,gDAAwB;AACxB,+CAA8D;AAE9D,mCAA8F;AAkB9F,MAAa,aAAc,SAAQ,sBAAS;IACnC,GAAG,CAAqB;IACxB,qBAAqB,CAAyB;IAC9C,OAAO,CAA0B;IAExC,YAAY,OAAqB,EAAE,MAA2B;QAC5D,KAAK,CAAC,OAAO,EAAE,IAAA,uBAAc,EAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;QAEnD,IAAI,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,YAAY;YAAE,MAAM,IAAI,mBAAU,CAAC,sDAAsD,CAAC,CAAC;QAE7H,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAE9B,MAAM,oBAAoB,GAA8B,MAAM,CAAC,QAAQ;YACrE,CAAC,CAAC;gBACE,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,CAAC,SAAS;gBACtD,cAAc,EAAE,EAAE,QAAQ,EAAE,MAAM,C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3B,CAAC,CAAC;IACL,CAAC;CACF;AAND,sDAMC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as appsync from 'aws-cdk-lib/aws-appsync';
|
|
2
|
+
import { BaseDataSource } from 'aws-cdk-lib/aws-appsync';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
4
|
+
import { ServiceStack } from '../../../common';
|
|
5
|
+
import { DynamoTablePrefab } from '../../../prefab/database/dynamo';
|
|
6
|
+
import { AppSyncPrefab } from '.';
|
|
7
|
+
import { FunctionResolver } from './types';
|
|
8
|
+
type Resolver = {
|
|
9
|
+
typeName: string;
|
|
10
|
+
resolversPipeline?: {
|
|
11
|
+
name: string;
|
|
12
|
+
dataSource?: BaseDataSource;
|
|
13
|
+
}[];
|
|
14
|
+
env?: Record<string, string>;
|
|
15
|
+
};
|
|
16
|
+
export type AppSyncResolverAggregateParams<T> = {
|
|
17
|
+
appSyncPrefab: AppSyncPrefab;
|
|
18
|
+
baseApiFolder: string;
|
|
19
|
+
tablePrefab: DynamoTablePrefab;
|
|
20
|
+
resolvers: Record<MethodNames<T>, Resolver>;
|
|
21
|
+
};
|
|
22
|
+
type MethodNames<T> = {
|
|
23
|
+
[K in keyof T]: T[K] extends Function ? K : never;
|
|
24
|
+
}[keyof T];
|
|
25
|
+
export declare class AppSyncResolverAggregate<T> extends Construct {
|
|
26
|
+
readonly api: appsync.GraphqlApi;
|
|
27
|
+
readonly baseApiFolder: string;
|
|
28
|
+
constructor(service: ServiceStack, params: AppSyncResolverAggregateParams<T>);
|
|
29
|
+
addDynamoTableDataSource: (tablePrefab: DynamoTablePrefab) => appsync.DynamoDbDataSource;
|
|
30
|
+
functionResolver: (service: ServiceStack, params: FunctionResolver) => appsync.AppsyncFunction;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=resolver-aggregate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver-aggregate.d.ts","sourceRoot":"","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AE,8BAA8B,CAAC,CAAC,CAAC;IAyD5E,wBAAwB,gBAAiB,iBAAiB,KAAG,OAAO,CAAC,kBAAkB,CAIrF;IAEF,gBAAgB,YAAa,YAAY,UAAU,gBAAgB,KAAG,OAAO,CAAC,eAAe,CAY3F;CACH"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.AppSyncResolverAggregate = void 0;
|
|
27
|
+
const appsync = __importStar(require("aws-cdk-lib/aws-appsync"));
|
|
28
|
+
const constructs_1 = require("constructs");
|
|
29
|
+
const esbuild = __importStar(require("esbuild"));
|
|
30
|
+
const fs_1 = require("fs");
|
|
31
|
+
const common_1 = require("../../../common");
|
|
32
|
+
class AppSyncResolverAggregate extends constructs_1.Construct {
|
|
33
|
+
api;
|
|
34
|
+
baseApiFolder;
|
|
35
|
+
constructor(service, params) {
|
|
36
|
+
super(service, (0, common_1.getLogicalName)(AppSyncResolverAggregate.name));
|
|
37
|
+
const { appSyncPrefab, baseApiFolder, resolvers, tablePrefab } = params;
|
|
38
|
+
const dataSource = new appsync.DynamoDbDataSource(service, (0, common_1.getLogicalName)('dynamoDataSource', tablePrefab.tableName), {
|
|
39
|
+
api: appSyncPrefab.api,
|
|
40
|
+
table: tablePrefab.table,
|
|
41
|
+
name: `${tablePrefab.tableName}TableDataSource`,
|
|
42
|
+
});
|
|
43
|
+
Object.keys(resolvers).map((r) => {
|
|
44
|
+
const fieldName = r;
|
|
45
|
+
const resolver = resolvers[r];
|
|
46
|
+
const fnPipeline = resolver.resolversPipeline && resolver.resolversPipeline.length > 1
|
|
47
|
+
? resolver.resolversPipeline.map((rp) => this.functionResolver(service, {
|
|
48
|
+
api: appSyncPrefab.api,
|
|
49
|
+
baseApiFolder,
|
|
50
|
+
dataSource: rp.dataSource || dataSource,
|
|
51
|
+
fieldName: fieldName,
|
|
52
|
+
resolverName: rp.name,
|
|
53
|
+
env: resolver.env,
|
|
54
|
+
}))
|
|
55
|
+
: [
|
|
56
|
+
this.functionResolver(service, {
|
|
57
|
+
api: appSyncPrefab.api,
|
|
58
|
+
dataSource,
|
|
59
|
+
baseApiFolder,
|
|
60
|
+
fieldName: fieldName,
|
|
61
|
+
env: resolver.env,
|
|
62
|
+
}),
|
|
63
|
+
];
|
|
64
|
+
// PipelineResolver
|
|
65
|
+
new appsync.Resolver(service, (0, common_1.getLogicalName)('pipeline', fieldName), {
|
|
66
|
+
api: appSyncPrefab.api,
|
|
67
|
+
typeName: resolver.typeName,
|
|
68
|
+
fieldName: fieldName,
|
|
69
|
+
pipelineConfig: fnPipeline,
|
|
70
|
+
code: appsync.Code.fromInline(`
|
|
71
|
+
// The before step
|
|
72
|
+
export function request() {
|
|
73
|
+
return {};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// The after step
|
|
77
|
+
export function response(ctx) {
|
|
78
|
+
return ctx.prev.result;
|
|
79
|
+
}
|
|
80
|
+
`),
|
|
81
|
+
runtime: appsync.FunctionRuntime.JS_1_0_0,
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
addDynamoTableDataSource = (tablePrefab) => {
|
|
86
|
+
return this.api.addDynamoDbDataSource(tablePrefab.tableName, tablePrefab.table, {
|
|
87
|
+
name: `${tablePrefab.tableName}TableDataSource`,
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
functionResolver = (service, params) => {
|
|
91
|
+
return new appsync.AppsyncFunction(service, (0, common_1.getLogicalName)('function', params.resolverName ? `${params.fieldName}${params.resolverName}` : params.fieldName), {
|
|
92
|
+
api: params.api,
|
|
93
|
+
dataSource: params.dataSource,
|
|
94
|
+
name: params.resolverName ? `${params.fieldName}${(0, common_1.capFirstLetter)(params.resolverName)}` : params.fieldName,
|
|
95
|
+
code: bundleAppSyncResolver(params.baseApiFolder, params.fieldName, params.resolverName, params.env),
|
|
96
|
+
runtime: appsync.FunctionRuntime.JS_1_0_0,
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
exports.AppSyncResolverAggregate = AppSyncResolverAggregate;
|
|
101
|
+
const bundleAppSyncResolver = (baseApiFolder, fieldName, resolverName = 'index', env) => {
|
|
102
|
+
const outFile = `cdk.out/resolvers/${(0, common_1.toDashCase)(fieldName)}/${resolverName}.js`;
|
|
103
|
+
esbuild.buildSync({
|
|
104
|
+
entryPoints: [`${baseApiFolder}/resolvers/${(0, common_1.toDashCase)(fieldName)}/${resolverName}.ts`],
|
|
105
|
+
external: ['@aws-appsync/utils'],
|
|
106
|
+
allowOverwrite: true,
|
|
107
|
+
outfile: outFile,
|
|
108
|
+
bundle: true,
|
|
109
|
+
write: true,
|
|
110
|
+
platform: 'node',
|
|
111
|
+
target: 'esnext',
|
|
112
|
+
format: 'esm',
|
|
113
|
+
sourcesContent: false,
|
|
114
|
+
// minify: true,
|
|
115
|
+
});
|
|
116
|
+
if (Object.keys(env || {}).length > 0) {
|
|
117
|
+
let mappedFile = (0, fs_1.readFileSync)(outFile, 'utf8');
|
|
118
|
+
for (const [key, value] of Object.entries(env || {})) {
|
|
119
|
+
mappedFile = mappedFile.replace(new RegExp(key, 'gi'), value);
|
|
120
|
+
}
|
|
121
|
+
(0, fs_1.writeFileSync)(outFile, mappedFile);
|
|
122
|
+
}
|
|
123
|
+
return appsync.Code.fromAsset(outFile);
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=resolver-aggregate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver-aggregate.js","sourceRoot":"","sources":["../../../../prefab/gateway/app-sync/resolver-aggregate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AAEnD,2CAAuC;AAEvC,iDAAmC;AACnC,2BAAiD;AAEjD,mCAAkF;AAuBlF,MAAa,wBAA4B,SAAQ,sBAAS;IACxC,GAAG,CAAsB;IACzB,aAAa,CAAU;IAEvC,YAAY,OAAqB,EAAE,MAAyC;QAC1E,KAAK,CAAC,OAAO,EAAE,IAAA,uBAAc,EAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9D,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAExE,MAAM,UAAU,GAAG,IAAI,OAAO,CAAC,kBAAkB,CAAC,OAAO,EAAE,IAAA,uBAAc,EAAC,kBAAkB,EAAE,WAAW,CAAC,SAAS,CAAC,EAAE;YACpH,GAAG,EAAE,aAAa,CAAC,GAAG;YACtB,KAAK,EAAE,WAAW,CAAC,KAAK;YACxB,IAAI,EAAE,GAAG,WAAW,CA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,KAAK,CAAC;IAChF,OAAO,CAAC,SAAS,CAAC;QAChB,WAAW,EAAE,CAAC,GAAG,aAAa,cAAc,IAAA,mBAAU,EAAC,SAAS,CAAC,IAAI,YAAY,KAAK,CAAC;QACvF,QAAQ,EAAE,CAAC,oBAAoB,CAAC;QAChC,cAAc,EAAE,IAAI;QACpB,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,KAAK;QACb,cAAc,EAAE,KAAK;QACrB,gBAAgB;KACjB,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtC,IAAI,UAAU,GAAG,IAAA,iBAAY,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC/C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC;YACrD,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;QAChE,CAAC;QACD,IAAA,kBAAa,EAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseDataSource, GraphqlApi } from 'aws-cdk-lib/aws-appsync';
|
|
2
|
+
import { DynamoTablePrefab } from '../../../prefab/database/dynamo';
|
|
3
|
+
import { EventBusPrefab } from '../../../prefab/integration/event-bus';
|
|
4
|
+
export type EventBridgeDataSourceParams = {
|
|
5
|
+
api: GraphqlApi;
|
|
6
|
+
eventBusPrefab: EventBusPrefab;
|
|
7
|
+
};
|
|
8
|
+
export type ServiceResolver = {
|
|
9
|
+
api: GraphqlApi;
|
|
10
|
+
baseApiFolder: string;
|
|
11
|
+
tablePrefab: DynamoTablePrefab;
|
|
12
|
+
resolvers: {
|
|
13
|
+
fieldName: string;
|
|
14
|
+
typeName: 'Mutation' | 'Query' | 'Subscription';
|
|
15
|
+
resolversPipeline?: {
|
|
16
|
+
name: string;
|
|
17
|
+
dataSource?: BaseDataSource;
|
|
18
|
+
}[];
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
export type FunctionResolver = {
|
|
22
|
+
fieldName: string;
|
|
23
|
+
resolverName?: string;
|
|
24
|
+
baseApiFolder: string;
|
|
25
|
+
api: GraphqlApi;
|
|
26
|
+
dataSource: BaseDataSource;
|
|
27
|
+
env?: Record<string, string>;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../prefab/gateway/app-sync/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,MAAM,2BAA2B,GAAG;IACxC,GAAG,EAAE,UAAU,CAAC;IAChB,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,UAAU,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,SAAS,EAAE;QACT,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,UAAU,GAAG,OAAO,GAAG,cAAc,CAAC;QAChD,iBAAiB,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,UAAU,CAAC,EAAE,cAAc,CAAA;SAAE,EAAE,CAAC;KACrE,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,UAAU,CAAC;IAChB,UAAU,EAAE,cAAc,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../prefab/gateway/app-sync/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../prefab/gateway/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./alb-public"), exports);
|
|
18
|
+
__exportStar(require("./api-gateway"), exports);
|
|
19
|
+
__exportStar(require("./app-sync"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../prefab/gateway/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,gDAA8B;AAC9B,6CAA2B"}
|