@aws-amplify/cli-internal-gen2-migration-experimental-alpha 0.1.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/API.md +108 -0
- package/CHANGELOG.md +4959 -0
- package/amplify-plugin.json +35 -0
- package/aws-amplify-cli-internal-gen2-migration-experimental-alpha-0.1.0.tgz +0 -0
- package/bin/amplify +11 -0
- package/bin/amplify.production.template +12 -0
- package/lib/amplify-exception-handler.d.ts +6 -0
- package/lib/amplify-exception-handler.d.ts.map +1 -0
- package/lib/amplify-exception-handler.js +158 -0
- package/lib/amplify-exception-handler.js.map +1 -0
- package/lib/amplify-service-helper.d.ts +4 -0
- package/lib/amplify-service-helper.d.ts.map +1 -0
- package/lib/amplify-service-helper.js +78 -0
- package/lib/amplify-service-helper.js.map +1 -0
- package/lib/app-config/config.d.ts +18 -0
- package/lib/app-config/config.d.ts.map +1 -0
- package/lib/app-config/config.js +89 -0
- package/lib/app-config/config.js.map +1 -0
- package/lib/app-config/debug-config.d.ts +14 -0
- package/lib/app-config/debug-config.d.ts.map +1 -0
- package/lib/app-config/debug-config.js +70 -0
- package/lib/app-config/debug-config.js.map +1 -0
- package/lib/app-config/getPath.d.ts +3 -0
- package/lib/app-config/getPath.d.ts.map +1 -0
- package/lib/app-config/getPath.js +47 -0
- package/lib/app-config/getPath.js.map +1 -0
- package/lib/app-config/index.d.ts +2 -0
- package/lib/app-config/index.d.ts.map +1 -0
- package/lib/app-config/index.js +18 -0
- package/lib/app-config/index.js.map +1 -0
- package/lib/attach-backend-steps/a10-queryProvider.d.ts +2 -0
- package/lib/attach-backend-steps/a10-queryProvider.d.ts.map +1 -0
- package/lib/attach-backend-steps/a10-queryProvider.js +99 -0
- package/lib/attach-backend-steps/a10-queryProvider.js.map +1 -0
- package/lib/attach-backend-steps/a20-analyzeProject.d.ts +3 -0
- package/lib/attach-backend-steps/a20-analyzeProject.d.ts.map +1 -0
- package/lib/attach-backend-steps/a20-analyzeProject.js +38 -0
- package/lib/attach-backend-steps/a20-analyzeProject.js.map +1 -0
- package/lib/attach-backend-steps/a30-initFrontend.d.ts +2 -0
- package/lib/attach-backend-steps/a30-initFrontend.d.ts.map +1 -0
- package/lib/attach-backend-steps/a30-initFrontend.js +83 -0
- package/lib/attach-backend-steps/a30-initFrontend.js.map +1 -0
- package/lib/attach-backend-steps/a40-generateFiles.d.ts +3 -0
- package/lib/attach-backend-steps/a40-generateFiles.d.ts.map +1 -0
- package/lib/attach-backend-steps/a40-generateFiles.js +129 -0
- package/lib/attach-backend-steps/a40-generateFiles.js.map +1 -0
- package/lib/attach-backend.d.ts +3 -0
- package/lib/attach-backend.d.ts.map +1 -0
- package/lib/attach-backend.js +230 -0
- package/lib/attach-backend.js.map +1 -0
- package/lib/commands/amplify.d.ts +2 -0
- package/lib/commands/amplify.d.ts.map +1 -0
- package/lib/commands/amplify.js +9 -0
- package/lib/commands/amplify.js.map +1 -0
- package/lib/commands/build.d.ts +8 -0
- package/lib/commands/build.d.ts.map +1 -0
- package/lib/commands/build.js +74 -0
- package/lib/commands/build.js.map +1 -0
- package/lib/commands/categories.d.ts +2 -0
- package/lib/commands/categories.d.ts.map +1 -0
- package/lib/commands/categories.js +8 -0
- package/lib/commands/categories.js.map +1 -0
- package/lib/commands/configure.d.ts +3 -0
- package/lib/commands/configure.d.ts.map +1 -0
- package/lib/commands/configure.js +105 -0
- package/lib/commands/configure.js.map +1 -0
- package/lib/commands/console.d.ts +3 -0
- package/lib/commands/console.d.ts.map +1 -0
- package/lib/commands/console.js +78 -0
- package/lib/commands/console.js.map +1 -0
- package/lib/commands/delete.d.ts +3 -0
- package/lib/commands/delete.d.ts.map +1 -0
- package/lib/commands/delete.js +16 -0
- package/lib/commands/delete.js.map +1 -0
- package/lib/commands/diagnose.d.ts +4 -0
- package/lib/commands/diagnose.d.ts.map +1 -0
- package/lib/commands/diagnose.js +236 -0
- package/lib/commands/diagnose.js.map +1 -0
- package/lib/commands/drift-detection/detect-local-drift.d.ts +22 -0
- package/lib/commands/drift-detection/detect-local-drift.d.ts.map +1 -0
- package/lib/commands/drift-detection/detect-local-drift.js +47 -0
- package/lib/commands/drift-detection/detect-local-drift.js.map +1 -0
- package/lib/commands/drift-detection/detect-stack-drift.d.ts +11 -0
- package/lib/commands/drift-detection/detect-stack-drift.d.ts.map +1 -0
- package/lib/commands/drift-detection/detect-stack-drift.js +230 -0
- package/lib/commands/drift-detection/detect-stack-drift.js.map +1 -0
- package/lib/commands/drift-detection/detect-template-drift.d.ts +27 -0
- package/lib/commands/drift-detection/detect-template-drift.d.ts.map +1 -0
- package/lib/commands/drift-detection/detect-template-drift.js +252 -0
- package/lib/commands/drift-detection/detect-template-drift.js.map +1 -0
- package/lib/commands/drift-detection/index.d.ts +4 -0
- package/lib/commands/drift-detection/index.d.ts.map +1 -0
- package/lib/commands/drift-detection/index.js +11 -0
- package/lib/commands/drift-detection/index.js.map +1 -0
- package/lib/commands/drift-detection/services/amplify-config-service.d.ts +7 -0
- package/lib/commands/drift-detection/services/amplify-config-service.d.ts.map +1 -0
- package/lib/commands/drift-detection/services/amplify-config-service.js +49 -0
- package/lib/commands/drift-detection/services/amplify-config-service.js.map +1 -0
- package/lib/commands/drift-detection/services/cloudformation-service.d.ts +13 -0
- package/lib/commands/drift-detection/services/cloudformation-service.d.ts.map +1 -0
- package/lib/commands/drift-detection/services/cloudformation-service.js +120 -0
- package/lib/commands/drift-detection/services/cloudformation-service.js.map +1 -0
- package/lib/commands/drift-detection/services/drift-formatter.d.ts +73 -0
- package/lib/commands/drift-detection/services/drift-formatter.d.ts.map +1 -0
- package/lib/commands/drift-detection/services/drift-formatter.js +651 -0
- package/lib/commands/drift-detection/services/drift-formatter.js.map +1 -0
- package/lib/commands/drift-detection/services/file-service.d.ts +7 -0
- package/lib/commands/drift-detection/services/file-service.d.ts.map +1 -0
- package/lib/commands/drift-detection/services/file-service.js +53 -0
- package/lib/commands/drift-detection/services/file-service.js.map +1 -0
- package/lib/commands/drift-detection/services/index.d.ts +5 -0
- package/lib/commands/drift-detection/services/index.d.ts.map +1 -0
- package/lib/commands/drift-detection/services/index.js +12 -0
- package/lib/commands/drift-detection/services/index.js.map +1 -0
- package/lib/commands/drift.d.ts +29 -0
- package/lib/commands/drift.d.ts.map +1 -0
- package/lib/commands/drift.js +228 -0
- package/lib/commands/drift.js.map +1 -0
- package/lib/commands/env/add.d.ts +3 -0
- package/lib/commands/env/add.d.ts.map +1 -0
- package/lib/commands/env/add.js +21 -0
- package/lib/commands/env/add.js.map +1 -0
- package/lib/commands/env/checkout.d.ts +3 -0
- package/lib/commands/env/checkout.d.ts.map +1 -0
- package/lib/commands/env/checkout.js +51 -0
- package/lib/commands/env/checkout.js.map +1 -0
- package/lib/commands/env/get.d.ts +3 -0
- package/lib/commands/env/get.d.ts.map +1 -0
- package/lib/commands/env/get.js +32 -0
- package/lib/commands/env/get.js.map +1 -0
- package/lib/commands/env/import.d.ts +3 -0
- package/lib/commands/env/import.d.ts.map +1 -0
- package/lib/commands/env/import.js +87 -0
- package/lib/commands/env/import.js.map +1 -0
- package/lib/commands/env/list.d.ts +2 -0
- package/lib/commands/env/list.d.ts.map +1 -0
- package/lib/commands/env/list.js +49 -0
- package/lib/commands/env/list.js.map +1 -0
- package/lib/commands/env/pull.d.ts +2 -0
- package/lib/commands/env/pull.d.ts.map +1 -0
- package/lib/commands/env/pull.js +12 -0
- package/lib/commands/env/pull.js.map +1 -0
- package/lib/commands/env/remove.d.ts +3 -0
- package/lib/commands/env/remove.d.ts.map +1 -0
- package/lib/commands/env/remove.js +63 -0
- package/lib/commands/env/remove.js.map +1 -0
- package/lib/commands/env/update.d.ts +3 -0
- package/lib/commands/env/update.d.ts.map +1 -0
- package/lib/commands/env/update.js +9 -0
- package/lib/commands/env/update.js.map +1 -0
- package/lib/commands/env.d.ts +2 -0
- package/lib/commands/env.d.ts.map +1 -0
- package/lib/commands/env.js +129 -0
- package/lib/commands/env.js.map +1 -0
- package/lib/commands/export.d.ts +3 -0
- package/lib/commands/export.d.ts.map +1 -0
- package/lib/commands/export.js +141 -0
- package/lib/commands/export.js.map +1 -0
- package/lib/commands/gen2-migration/_step.d.ts +16 -0
- package/lib/commands/gen2-migration/_step.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_step.js +15 -0
- package/lib/commands/gen2-migration/_step.js.map +1 -0
- package/lib/commands/gen2-migration/_validations.d.ts +22 -0
- package/lib/commands/gen2-migration/_validations.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_validations.js +227 -0
- package/lib/commands/gen2-migration/_validations.js.map +1 -0
- package/lib/commands/gen2-migration/cleanup.d.ts +8 -0
- package/lib/commands/gen2-migration/cleanup.d.ts.map +1 -0
- package/lib/commands/gen2-migration/cleanup.js +21 -0
- package/lib/commands/gen2-migration/cleanup.js.map +1 -0
- package/lib/commands/gen2-migration/clone.d.ts +8 -0
- package/lib/commands/gen2-migration/clone.d.ts.map +1 -0
- package/lib/commands/gen2-migration/clone.js +21 -0
- package/lib/commands/gen2-migration/clone.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/backend-updater.d.ts +7 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/backend-updater.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/backend-updater.js +84 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/backend-updater.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/dependency-merger.d.ts +8 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/dependency-merger.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/dependency-merger.js +105 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/dependency-merger.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/file-converter.d.ts +5 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/file-converter.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/file-converter.js +88 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/file-converter.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/gen2-file-generator.d.ts +8 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/gen2-file-generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/gen2-file-generator.js +36 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/gen2-file-generator.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/cdk-stack-parser.d.ts +5 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/cdk-stack-parser.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/cdk-stack-parser.js +81 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/cdk-stack-parser.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/pattern-detector.d.ts +15 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/pattern-detector.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/pattern-detector.js +35 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/pattern-detector.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/scanner/custom-resource-scanner.d.ts +5 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/scanner/custom-resource-scanner.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/scanner/custom-resource-scanner.js +66 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/scanner/custom-resource-scanner.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/transformer/amplify-helper-transformer.d.ts +6 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/transformer/amplify-helper-transformer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/transformer/amplify-helper-transformer.js +156 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/transformer/amplify-helper-transformer.js.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/types.d.ts +38 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/types.d.ts.map +1 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/types.js +3 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/types.js.map +1 -0
- package/lib/commands/gen2-migration/decommission.d.ts +9 -0
- package/lib/commands/gen2-migration/decommission.d.ts.map +1 -0
- package/lib/commands/gen2-migration/decommission.js +70 -0
- package/lib/commands/gen2-migration/decommission.js.map +1 -0
- package/lib/commands/gen2-migration/generate.d.ts +8 -0
- package/lib/commands/gen2-migration/generate.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate.js +23 -0
- package/lib/commands/gen2-migration/generate.js.map +1 -0
- package/lib/commands/gen2-migration/lock.d.ts +10 -0
- package/lib/commands/gen2-migration/lock.d.ts.map +1 -0
- package/lib/commands/gen2-migration/lock.js +92 -0
- package/lib/commands/gen2-migration/lock.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.d.ts +5 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.js +76 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.d.ts +6 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.js +52 -0
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.d.ts +40 -0
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.js +312 -0
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/generators/template-generator.d.ts +49 -0
- package/lib/commands/gen2-migration/refactor/generators/template-generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/generators/template-generator.js +518 -0
- package/lib/commands/gen2-migration/refactor/generators/template-generator.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/index.d.ts +2 -0
- package/lib/commands/gen2-migration/refactor/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/index.js +6 -0
- package/lib/commands/gen2-migration/refactor/index.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.d.ts +16 -0
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.js +69 -0
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/refactor.d.ts +19 -0
- package/lib/commands/gen2-migration/refactor/refactor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/refactor.js +223 -0
- package/lib/commands/gen2-migration/refactor/refactor.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.d.ts +13 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.js +137 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.d.ts +8 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.js +27 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.d.ts +14 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.js +137 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.d.ts +10 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.js +49 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/types.d.ts +125 -0
- package/lib/commands/gen2-migration/refactor/types.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/types.js +55 -0
- package/lib/commands/gen2-migration/refactor/types.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/utils.d.ts +2 -0
- package/lib/commands/gen2-migration/refactor/utils.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/utils.js +7 -0
- package/lib/commands/gen2-migration/refactor/utils.js.map +1 -0
- package/lib/commands/gen2-migration/shift.d.ts +8 -0
- package/lib/commands/gen2-migration/shift.d.ts.map +1 -0
- package/lib/commands/gen2-migration/shift.js +21 -0
- package/lib/commands/gen2-migration/shift.js.map +1 -0
- package/lib/commands/gen2-migration/stateful-resources.d.ts +2 -0
- package/lib/commands/gen2-migration/stateful-resources.d.ts.map +1 -0
- package/lib/commands/gen2-migration/stateful-resources.js +34 -0
- package/lib/commands/gen2-migration/stateful-resources.js.map +1 -0
- package/lib/commands/gen2-migration.d.ts +15 -0
- package/lib/commands/gen2-migration.d.ts.map +1 -0
- package/lib/commands/gen2-migration.js +181 -0
- package/lib/commands/gen2-migration.js.map +1 -0
- package/lib/commands/help.d.ts +3 -0
- package/lib/commands/help.d.ts.map +1 -0
- package/lib/commands/help.js +9 -0
- package/lib/commands/help.js.map +1 -0
- package/lib/commands/helpers/collect-files.d.ts +9 -0
- package/lib/commands/helpers/collect-files.d.ts.map +1 -0
- package/lib/commands/helpers/collect-files.js +141 -0
- package/lib/commands/helpers/collect-files.js.map +1 -0
- package/lib/commands/helpers/encryption-helpers.d.ts +7 -0
- package/lib/commands/helpers/encryption-helpers.d.ts.map +1 -0
- package/lib/commands/helpers/encryption-helpers.js +37 -0
- package/lib/commands/helpers/encryption-helpers.js.map +1 -0
- package/lib/commands/helpers/envUtils.d.ts +2 -0
- package/lib/commands/helpers/envUtils.d.ts.map +1 -0
- package/lib/commands/helpers/envUtils.js +21 -0
- package/lib/commands/helpers/envUtils.js.map +1 -0
- package/lib/commands/helpers/projectUtils.d.ts +2 -0
- package/lib/commands/helpers/projectUtils.d.ts.map +1 -0
- package/lib/commands/helpers/projectUtils.js +17 -0
- package/lib/commands/helpers/projectUtils.js.map +1 -0
- package/lib/commands/helpers/reporter-apis.d.ts +3 -0
- package/lib/commands/helpers/reporter-apis.d.ts.map +1 -0
- package/lib/commands/helpers/reporter-apis.js +29 -0
- package/lib/commands/helpers/reporter-apis.js.map +1 -0
- package/lib/commands/init.d.ts +3 -0
- package/lib/commands/init.d.ts.map +1 -0
- package/lib/commands/init.js +53 -0
- package/lib/commands/init.js.map +1 -0
- package/lib/commands/logout.d.ts +3 -0
- package/lib/commands/logout.d.ts.map +1 -0
- package/lib/commands/logout.js +33 -0
- package/lib/commands/logout.js.map +1 -0
- package/lib/commands/migrate.d.ts +2 -0
- package/lib/commands/migrate.d.ts.map +1 -0
- package/lib/commands/migrate.js +9 -0
- package/lib/commands/migrate.js.map +1 -0
- package/lib/commands/plugin/add.d.ts +3 -0
- package/lib/commands/plugin/add.d.ts.map +1 -0
- package/lib/commands/plugin/add.js +239 -0
- package/lib/commands/plugin/add.js.map +1 -0
- package/lib/commands/plugin/configure.d.ts +5 -0
- package/lib/commands/plugin/configure.d.ts.map +1 -0
- package/lib/commands/plugin/configure.js +326 -0
- package/lib/commands/plugin/configure.js.map +1 -0
- package/lib/commands/plugin/help.d.ts +3 -0
- package/lib/commands/plugin/help.d.ts.map +1 -0
- package/lib/commands/plugin/help.js +9 -0
- package/lib/commands/plugin/help.js.map +1 -0
- package/lib/commands/plugin/list.d.ts +3 -0
- package/lib/commands/plugin/list.d.ts.map +1 -0
- package/lib/commands/plugin/list.js +93 -0
- package/lib/commands/plugin/list.js.map +1 -0
- package/lib/commands/plugin/new.d.ts +3 -0
- package/lib/commands/plugin/new.d.ts.map +1 -0
- package/lib/commands/plugin/new.js +93 -0
- package/lib/commands/plugin/new.js.map +1 -0
- package/lib/commands/plugin/remove.d.ts +3 -0
- package/lib/commands/plugin/remove.d.ts.map +1 -0
- package/lib/commands/plugin/remove.js +113 -0
- package/lib/commands/plugin/remove.js.map +1 -0
- package/lib/commands/plugin/scan.d.ts +2 -0
- package/lib/commands/plugin/scan.d.ts.map +1 -0
- package/lib/commands/plugin/scan.js +9 -0
- package/lib/commands/plugin/scan.js.map +1 -0
- package/lib/commands/plugin/verify.d.ts +3 -0
- package/lib/commands/plugin/verify.d.ts.map +1 -0
- package/lib/commands/plugin/verify.js +19 -0
- package/lib/commands/plugin/verify.js.map +1 -0
- package/lib/commands/plugin.d.ts +3 -0
- package/lib/commands/plugin.d.ts.map +1 -0
- package/lib/commands/plugin.js +63 -0
- package/lib/commands/plugin.js.map +1 -0
- package/lib/commands/publish.d.ts +2 -0
- package/lib/commands/publish.d.ts.map +1 -0
- package/lib/commands/publish.js +43 -0
- package/lib/commands/publish.js.map +1 -0
- package/lib/commands/pull.d.ts +3 -0
- package/lib/commands/pull.d.ts.map +1 -0
- package/lib/commands/pull.js +68 -0
- package/lib/commands/pull.js.map +1 -0
- package/lib/commands/push.d.ts +3 -0
- package/lib/commands/push.d.ts.map +1 -0
- package/lib/commands/push.js +26 -0
- package/lib/commands/push.js.map +1 -0
- package/lib/commands/run.d.ts +3 -0
- package/lib/commands/run.d.ts.map +1 -0
- package/lib/commands/run.js +12 -0
- package/lib/commands/run.js.map +1 -0
- package/lib/commands/status.d.ts +3 -0
- package/lib/commands/status.d.ts.map +1 -0
- package/lib/commands/status.js +79 -0
- package/lib/commands/status.js.map +1 -0
- package/lib/commands/uninstall.d.ts +3 -0
- package/lib/commands/uninstall.d.ts.map +1 -0
- package/lib/commands/uninstall.js +92 -0
- package/lib/commands/uninstall.js.map +1 -0
- package/lib/commands/upgrade.d.ts +3 -0
- package/lib/commands/upgrade.d.ts.map +1 -0
- package/lib/commands/upgrade.js +121 -0
- package/lib/commands/upgrade.js.map +1 -0
- package/lib/commands/version.d.ts +2 -0
- package/lib/commands/version.d.ts.map +1 -0
- package/lib/commands/version.js +10 -0
- package/lib/commands/version.js.map +1 -0
- package/lib/conditional-local-logging-init.d.ts +3 -0
- package/lib/conditional-local-logging-init.d.ts.map +1 -0
- package/lib/conditional-local-logging-init.js +14 -0
- package/lib/conditional-local-logging-init.js.map +1 -0
- package/lib/config-steps/c0-analyzeProject.d.ts +2 -0
- package/lib/config-steps/c0-analyzeProject.d.ts.map +1 -0
- package/lib/config-steps/c0-analyzeProject.js +151 -0
- package/lib/config-steps/c0-analyzeProject.js.map +1 -0
- package/lib/config-steps/c1-configFrontend.d.ts +2 -0
- package/lib/config-steps/c1-configFrontend.d.ts.map +1 -0
- package/lib/config-steps/c1-configFrontend.js +73 -0
- package/lib/config-steps/c1-configFrontend.js.map +1 -0
- package/lib/config-steps/c2-configProviders.d.ts +2 -0
- package/lib/config-steps/c2-configProviders.d.ts.map +1 -0
- package/lib/config-steps/c2-configProviders.js +97 -0
- package/lib/config-steps/c2-configProviders.js.map +1 -0
- package/lib/config-steps/c9-onFailure.d.ts +2 -0
- package/lib/config-steps/c9-onFailure.d.ts.map +1 -0
- package/lib/config-steps/c9-onFailure.js +43 -0
- package/lib/config-steps/c9-onFailure.js.map +1 -0
- package/lib/config-steps/c9-onSuccess.d.ts +2 -0
- package/lib/config-steps/c9-onSuccess.d.ts.map +1 -0
- package/lib/config-steps/c9-onSuccess.js +17 -0
- package/lib/config-steps/c9-onSuccess.js.map +1 -0
- package/lib/configure-new-user.d.ts +2 -0
- package/lib/configure-new-user.d.ts.map +1 -0
- package/lib/configure-new-user.js +61 -0
- package/lib/configure-new-user.js.map +1 -0
- package/lib/context-manager.d.ts +6 -0
- package/lib/context-manager.d.ts.map +1 -0
- package/lib/context-manager.js +101 -0
- package/lib/context-manager.js.map +1 -0
- package/lib/display-banner-messages.d.ts +3 -0
- package/lib/display-banner-messages.d.ts.map +1 -0
- package/lib/display-banner-messages.js +51 -0
- package/lib/display-banner-messages.js.map +1 -0
- package/lib/domain/add-plugin-result.d.ts +12 -0
- package/lib/domain/add-plugin-result.d.ts.map +1 -0
- package/lib/domain/add-plugin-result.js +17 -0
- package/lib/domain/add-plugin-result.js.map +1 -0
- package/lib/domain/amplify-plugin-type.d.ts +7 -0
- package/lib/domain/amplify-plugin-type.d.ts.map +1 -0
- package/lib/domain/amplify-plugin-type.js +11 -0
- package/lib/domain/amplify-plugin-type.js.map +1 -0
- package/lib/domain/amplify-toolkit.d.ts +84 -0
- package/lib/domain/amplify-toolkit.d.ts.map +1 -0
- package/lib/domain/amplify-toolkit.js +244 -0
- package/lib/domain/amplify-toolkit.js.map +1 -0
- package/lib/domain/amplify-usageData/FlowReport.d.ts +30 -0
- package/lib/domain/amplify-usageData/FlowReport.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/FlowReport.js +99 -0
- package/lib/domain/amplify-usageData/FlowReport.js.map +1 -0
- package/lib/domain/amplify-usageData/NoFlowReport.d.ts +12 -0
- package/lib/domain/amplify-usageData/NoFlowReport.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/NoFlowReport.js +21 -0
- package/lib/domain/amplify-usageData/NoFlowReport.js.map +1 -0
- package/lib/domain/amplify-usageData/NoUsageData.d.ts +24 -0
- package/lib/domain/amplify-usageData/NoUsageData.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/NoUsageData.js +69 -0
- package/lib/domain/amplify-usageData/NoUsageData.js.map +1 -0
- package/lib/domain/amplify-usageData/SerializableError.d.ts +16 -0
- package/lib/domain/amplify-usageData/SerializableError.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/SerializableError.js +129 -0
- package/lib/domain/amplify-usageData/SerializableError.js.map +1 -0
- package/lib/domain/amplify-usageData/Timer.d.ts +8 -0
- package/lib/domain/amplify-usageData/Timer.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/Timer.js +17 -0
- package/lib/domain/amplify-usageData/Timer.js.map +1 -0
- package/lib/domain/amplify-usageData/UsageData.d.ts +45 -0
- package/lib/domain/amplify-usageData/UsageData.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/UsageData.js +163 -0
- package/lib/domain/amplify-usageData/UsageData.js.map +1 -0
- package/lib/domain/amplify-usageData/UsageDataPayload.d.ts +26 -0
- package/lib/domain/amplify-usageData/UsageDataPayload.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/UsageDataPayload.js +69 -0
- package/lib/domain/amplify-usageData/UsageDataPayload.js.map +1 -0
- package/lib/domain/amplify-usageData/VersionManager.d.ts +3 -0
- package/lib/domain/amplify-usageData/VersionManager.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/VersionManager.js +29 -0
- package/lib/domain/amplify-usageData/VersionManager.js.map +1 -0
- package/lib/domain/amplify-usageData/getUsageDataUrl.d.ts +4 -0
- package/lib/domain/amplify-usageData/getUsageDataUrl.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/getUsageDataUrl.js +27 -0
- package/lib/domain/amplify-usageData/getUsageDataUrl.js.map +1 -0
- package/lib/domain/amplify-usageData/identifiable-input-regex.d.ts +3 -0
- package/lib/domain/amplify-usageData/identifiable-input-regex.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/identifiable-input-regex.js +80 -0
- package/lib/domain/amplify-usageData/identifiable-input-regex.js.map +1 -0
- package/lib/domain/amplify-usageData/index.d.ts +4 -0
- package/lib/domain/amplify-usageData/index.d.ts.map +1 -0
- package/lib/domain/amplify-usageData/index.js +8 -0
- package/lib/domain/amplify-usageData/index.js.map +1 -0
- package/lib/domain/command-input.d.ts +12 -0
- package/lib/domain/command-input.d.ts.map +1 -0
- package/lib/domain/command-input.js +11 -0
- package/lib/domain/command-input.js.map +1 -0
- package/lib/domain/context.d.ts +11 -0
- package/lib/domain/context.d.ts.map +1 -0
- package/lib/domain/context.js +13 -0
- package/lib/domain/context.js.map +1 -0
- package/lib/domain/error.d.ts +1 -0
- package/lib/domain/error.d.ts.map +1 -0
- package/lib/domain/error.js +1 -0
- package/lib/domain/error.js.map +1 -0
- package/lib/domain/input-verification-result.d.ts +7 -0
- package/lib/domain/input-verification-result.d.ts.map +1 -0
- package/lib/domain/input-verification-result.js +12 -0
- package/lib/domain/input-verification-result.js.map +1 -0
- package/lib/domain/inquirer-helper.d.ts +7 -0
- package/lib/domain/inquirer-helper.d.ts.map +1 -0
- package/lib/domain/inquirer-helper.js +5 -0
- package/lib/domain/inquirer-helper.js.map +1 -0
- package/lib/execution-manager.d.ts +9 -0
- package/lib/execution-manager.d.ts.map +1 -0
- package/lib/execution-manager.js +339 -0
- package/lib/execution-manager.js.map +1 -0
- package/lib/extensions/amplify-helpers/apply-auth-mode.d.ts +5 -0
- package/lib/extensions/amplify-helpers/apply-auth-mode.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/apply-auth-mode.js +63 -0
- package/lib/extensions/amplify-helpers/apply-auth-mode.js.map +1 -0
- package/lib/extensions/amplify-helpers/auto-updates.d.ts +2 -0
- package/lib/extensions/amplify-helpers/auto-updates.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/auto-updates.js +13 -0
- package/lib/extensions/amplify-helpers/auto-updates.js.map +1 -0
- package/lib/extensions/amplify-helpers/confirm-prompt.d.ts +2 -0
- package/lib/extensions/amplify-helpers/confirm-prompt.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/confirm-prompt.js +47 -0
- package/lib/extensions/amplify-helpers/confirm-prompt.js.map +1 -0
- package/lib/extensions/amplify-helpers/constants.d.ts +25 -0
- package/lib/extensions/amplify-helpers/constants.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/constants.js +28 -0
- package/lib/extensions/amplify-helpers/constants.js.map +1 -0
- package/lib/extensions/amplify-helpers/construct-exeInfo.d.ts +3 -0
- package/lib/extensions/amplify-helpers/construct-exeInfo.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/construct-exeInfo.js +23 -0
- package/lib/extensions/amplify-helpers/construct-exeInfo.js.map +1 -0
- package/lib/extensions/amplify-helpers/copy-batch.d.ts +3 -0
- package/lib/extensions/amplify-helpers/copy-batch.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/copy-batch.js +31 -0
- package/lib/extensions/amplify-helpers/copy-batch.js.map +1 -0
- package/lib/extensions/amplify-helpers/current-cloud-backend-utils.d.ts +4 -0
- package/lib/extensions/amplify-helpers/current-cloud-backend-utils.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/current-cloud-backend-utils.js +76 -0
- package/lib/extensions/amplify-helpers/current-cloud-backend-utils.js.map +1 -0
- package/lib/extensions/amplify-helpers/delete-project.d.ts +8 -0
- package/lib/extensions/amplify-helpers/delete-project.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/delete-project.js +89 -0
- package/lib/extensions/amplify-helpers/delete-project.js.map +1 -0
- package/lib/extensions/amplify-helpers/docs-manager.d.ts +2 -0
- package/lib/extensions/amplify-helpers/docs-manager.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/docs-manager.js +20 -0
- package/lib/extensions/amplify-helpers/docs-manager.js.map +1 -0
- package/lib/extensions/amplify-helpers/editor-selection.d.ts +7 -0
- package/lib/extensions/amplify-helpers/editor-selection.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/editor-selection.js +134 -0
- package/lib/extensions/amplify-helpers/editor-selection.js.map +1 -0
- package/lib/extensions/amplify-helpers/envResourceParams.d.ts +6 -0
- package/lib/extensions/amplify-helpers/envResourceParams.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/envResourceParams.js +89 -0
- package/lib/extensions/amplify-helpers/envResourceParams.js.map +1 -0
- package/lib/extensions/amplify-helpers/execute-provider-utils.d.ts +3 -0
- package/lib/extensions/amplify-helpers/execute-provider-utils.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/execute-provider-utils.js +43 -0
- package/lib/extensions/amplify-helpers/execute-provider-utils.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-all-category-pluginInfos.d.ts +6 -0
- package/lib/extensions/amplify-helpers/get-all-category-pluginInfos.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-all-category-pluginInfos.js +16 -0
- package/lib/extensions/amplify-helpers/get-all-category-pluginInfos.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-all-envs.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-all-envs.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-all-envs.js +10 -0
- package/lib/extensions/amplify-helpers/get-all-envs.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-amplify-appId.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-amplify-appId.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-amplify-appId.js +11 -0
- package/lib/extensions/amplify-helpers/get-amplify-appId.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-amplify-version.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-amplify-version.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-amplify-version.js +44 -0
- package/lib/extensions/amplify-helpers/get-amplify-version.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-category-pluginInfo.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-category-pluginInfo.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-category-pluginInfo.js +29 -0
- package/lib/extensions/amplify-helpers/get-category-pluginInfo.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-cloud-init-status.d.ts +5 -0
- package/lib/extensions/amplify-helpers/get-cloud-init-status.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-cloud-init-status.js +54 -0
- package/lib/extensions/amplify-helpers/get-cloud-init-status.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-env-details.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-env-details.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-env-details.js +13 -0
- package/lib/extensions/amplify-helpers/get-env-details.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-env-info.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-env-info.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-env-info.js +15 -0
- package/lib/extensions/amplify-helpers/get-env-info.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-frontend-plugins.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-frontend-plugins.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-frontend-plugins.js +19 -0
- package/lib/extensions/amplify-helpers/get-frontend-plugins.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-imported-auth-properties.d.ts +10 -0
- package/lib/extensions/amplify-helpers/get-imported-auth-properties.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-imported-auth-properties.js +43 -0
- package/lib/extensions/amplify-helpers/get-imported-auth-properties.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-plugin-instance.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-plugin-instance.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-plugin-instance.js +15 -0
- package/lib/extensions/amplify-helpers/get-plugin-instance.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-plugin.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-plugin.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-plugin.js +15 -0
- package/lib/extensions/amplify-helpers/get-plugin.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-config.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-project-config.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-config.js +8 -0
- package/lib/extensions/amplify-helpers/get-project-config.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-details.d.ts +9 -0
- package/lib/extensions/amplify-helpers/get-project-details.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-details.js +25 -0
- package/lib/extensions/amplify-helpers/get-project-details.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-meta.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-project-meta.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-project-meta.js +12 -0
- package/lib/extensions/amplify-helpers/get-project-meta.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-provider-plugins.d.ts +5 -0
- package/lib/extensions/amplify-helpers/get-provider-plugins.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-provider-plugins.js +66 -0
- package/lib/extensions/amplify-helpers/get-provider-plugins.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-resource-outputs.d.ts +14 -0
- package/lib/extensions/amplify-helpers/get-resource-outputs.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-resource-outputs.js +70 -0
- package/lib/extensions/amplify-helpers/get-resource-outputs.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-root-stack-id.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-root-stack-id.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-root-stack-id.js +15 -0
- package/lib/extensions/amplify-helpers/get-root-stack-id.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-tags.d.ts +4 -0
- package/lib/extensions/amplify-helpers/get-tags.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-tags.js +39 -0
- package/lib/extensions/amplify-helpers/get-tags.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-userpoolgroup-list.d.ts +3 -0
- package/lib/extensions/amplify-helpers/get-userpoolgroup-list.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-userpoolgroup-list.js +50 -0
- package/lib/extensions/amplify-helpers/get-userpoolgroup-list.js.map +1 -0
- package/lib/extensions/amplify-helpers/get-when-function.d.ts +2 -0
- package/lib/extensions/amplify-helpers/get-when-function.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/get-when-function.js +62 -0
- package/lib/extensions/amplify-helpers/get-when-function.js.map +1 -0
- package/lib/extensions/amplify-helpers/git-manager.d.ts +2 -0
- package/lib/extensions/amplify-helpers/git-manager.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/git-manager.js +103 -0
- package/lib/extensions/amplify-helpers/git-manager.js.map +1 -0
- package/lib/extensions/amplify-helpers/hash-dir.d.ts +2 -0
- package/lib/extensions/amplify-helpers/hash-dir.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/hash-dir.js +11 -0
- package/lib/extensions/amplify-helpers/hash-dir.js.map +1 -0
- package/lib/extensions/amplify-helpers/input-validation.d.ts +2 -0
- package/lib/extensions/amplify-helpers/input-validation.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/input-validation.js +30 -0
- package/lib/extensions/amplify-helpers/input-validation.js.map +1 -0
- package/lib/extensions/amplify-helpers/invoke-delete-env-params.d.ts +3 -0
- package/lib/extensions/amplify-helpers/invoke-delete-env-params.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/invoke-delete-env-params.js +13 -0
- package/lib/extensions/amplify-helpers/invoke-delete-env-params.js.map +1 -0
- package/lib/extensions/amplify-helpers/invoke-plugin-method.d.ts +3 -0
- package/lib/extensions/amplify-helpers/invoke-plugin-method.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/invoke-plugin-method.js +56 -0
- package/lib/extensions/amplify-helpers/invoke-plugin-method.js.map +1 -0
- package/lib/extensions/amplify-helpers/leave-breadcrumbs.d.ts +2 -0
- package/lib/extensions/amplify-helpers/leave-breadcrumbs.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/leave-breadcrumbs.js +44 -0
- package/lib/extensions/amplify-helpers/leave-breadcrumbs.js.map +1 -0
- package/lib/extensions/amplify-helpers/list-categories.d.ts +2 -0
- package/lib/extensions/amplify-helpers/list-categories.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/list-categories.js +8 -0
- package/lib/extensions/amplify-helpers/list-categories.js.map +1 -0
- package/lib/extensions/amplify-helpers/load-runtime-plugin.d.ts +3 -0
- package/lib/extensions/amplify-helpers/load-runtime-plugin.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/load-runtime-plugin.js +53 -0
- package/lib/extensions/amplify-helpers/load-runtime-plugin.js.map +1 -0
- package/lib/extensions/amplify-helpers/make-id.d.ts +2 -0
- package/lib/extensions/amplify-helpers/make-id.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/make-id.js +12 -0
- package/lib/extensions/amplify-helpers/make-id.js.map +1 -0
- package/lib/extensions/amplify-helpers/on-category-outputs-change.d.ts +3 -0
- package/lib/extensions/amplify-helpers/on-category-outputs-change.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/on-category-outputs-change.js +123 -0
- package/lib/extensions/amplify-helpers/on-category-outputs-change.js.map +1 -0
- package/lib/extensions/amplify-helpers/open-editor.d.ts +3 -0
- package/lib/extensions/amplify-helpers/open-editor.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/open-editor.js +111 -0
- package/lib/extensions/amplify-helpers/open-editor.js.map +1 -0
- package/lib/extensions/amplify-helpers/path-manager.d.ts +17 -0
- package/lib/extensions/amplify-helpers/path-manager.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/path-manager.js +116 -0
- package/lib/extensions/amplify-helpers/path-manager.js.map +1 -0
- package/lib/extensions/amplify-helpers/permission-flow.d.ts +2 -0
- package/lib/extensions/amplify-helpers/permission-flow.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/permission-flow.js +62 -0
- package/lib/extensions/amplify-helpers/permission-flow.js.map +1 -0
- package/lib/extensions/amplify-helpers/press-enter-to-continue.d.ts +2 -0
- package/lib/extensions/amplify-helpers/press-enter-to-continue.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/press-enter-to-continue.js +15 -0
- package/lib/extensions/amplify-helpers/press-enter-to-continue.js.map +1 -0
- package/lib/extensions/amplify-helpers/print.d.ts +16 -0
- package/lib/extensions/amplify-helpers/print.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/print.js +115 -0
- package/lib/extensions/amplify-helpers/print.js.map +1 -0
- package/lib/extensions/amplify-helpers/project-name-validation.d.ts +5 -0
- package/lib/extensions/amplify-helpers/project-name-validation.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/project-name-validation.js +27 -0
- package/lib/extensions/amplify-helpers/project-name-validation.js.map +1 -0
- package/lib/extensions/amplify-helpers/push-resources.d.ts +6 -0
- package/lib/extensions/amplify-helpers/push-resources.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/push-resources.js +149 -0
- package/lib/extensions/amplify-helpers/push-resources.js.map +1 -0
- package/lib/extensions/amplify-helpers/read-breadcrumbs.d.ts +2 -0
- package/lib/extensions/amplify-helpers/read-breadcrumbs.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/read-breadcrumbs.js +57 -0
- package/lib/extensions/amplify-helpers/read-breadcrumbs.js.map +1 -0
- package/lib/extensions/amplify-helpers/read-json-file.d.ts +3 -0
- package/lib/extensions/amplify-helpers/read-json-file.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/read-json-file.js +10 -0
- package/lib/extensions/amplify-helpers/read-json-file.js.map +1 -0
- package/lib/extensions/amplify-helpers/remove-env-from-cloud.d.ts +2 -0
- package/lib/extensions/amplify-helpers/remove-env-from-cloud.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/remove-env-from-cloud.js +71 -0
- package/lib/extensions/amplify-helpers/remove-env-from-cloud.js.map +1 -0
- package/lib/extensions/amplify-helpers/remove-pinpoint-policy.d.ts +2 -0
- package/lib/extensions/amplify-helpers/remove-pinpoint-policy.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/remove-pinpoint-policy.js +60 -0
- package/lib/extensions/amplify-helpers/remove-pinpoint-policy.js.map +1 -0
- package/lib/extensions/amplify-helpers/remove-resource.d.ts +15 -0
- package/lib/extensions/amplify-helpers/remove-resource.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/remove-resource.js +113 -0
- package/lib/extensions/amplify-helpers/remove-resource.js.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-data.d.ts +40 -0
- package/lib/extensions/amplify-helpers/resource-status-data.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-data.js +467 -0
- package/lib/extensions/amplify-helpers/resource-status-data.js.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-diff.d.ts +64 -0
- package/lib/extensions/amplify-helpers/resource-status-diff.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-diff.js +210 -0
- package/lib/extensions/amplify-helpers/resource-status-diff.js.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-view.d.ts +8 -0
- package/lib/extensions/amplify-helpers/resource-status-view.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status-view.js +70 -0
- package/lib/extensions/amplify-helpers/resource-status-view.js.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status.d.ts +6 -0
- package/lib/extensions/amplify-helpers/resource-status.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/resource-status.js +43 -0
- package/lib/extensions/amplify-helpers/resource-status.js.map +1 -0
- package/lib/extensions/amplify-helpers/root-stack-status.d.ts +3 -0
- package/lib/extensions/amplify-helpers/root-stack-status.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/root-stack-status.js +74 -0
- package/lib/extensions/amplify-helpers/root-stack-status.js.map +1 -0
- package/lib/extensions/amplify-helpers/service-select-prompt.d.ts +3 -0
- package/lib/extensions/amplify-helpers/service-select-prompt.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/service-select-prompt.js +103 -0
- package/lib/extensions/amplify-helpers/service-select-prompt.js.map +1 -0
- package/lib/extensions/amplify-helpers/shared-questions.d.ts +10 -0
- package/lib/extensions/amplify-helpers/shared-questions.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/shared-questions.js +13 -0
- package/lib/extensions/amplify-helpers/shared-questions.js.map +1 -0
- package/lib/extensions/amplify-helpers/show-all-help.d.ts +2 -0
- package/lib/extensions/amplify-helpers/show-all-help.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/show-all-help.js +102 -0
- package/lib/extensions/amplify-helpers/show-all-help.js.map +1 -0
- package/lib/extensions/amplify-helpers/show-help.d.ts +2 -0
- package/lib/extensions/amplify-helpers/show-help.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/show-help.js +15 -0
- package/lib/extensions/amplify-helpers/show-help.js.map +1 -0
- package/lib/extensions/amplify-helpers/show-helpful-provider-links.d.ts +3 -0
- package/lib/extensions/amplify-helpers/show-helpful-provider-links.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/show-helpful-provider-links.js +51 -0
- package/lib/extensions/amplify-helpers/show-helpful-provider-links.js.map +1 -0
- package/lib/extensions/amplify-helpers/trigger-flow.d.ts +20 -0
- package/lib/extensions/amplify-helpers/trigger-flow.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/trigger-flow.js +416 -0
- package/lib/extensions/amplify-helpers/trigger-flow.js.map +1 -0
- package/lib/extensions/amplify-helpers/update-amplify-meta.d.ts +21 -0
- package/lib/extensions/amplify-helpers/update-amplify-meta.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/update-amplify-meta.js +252 -0
- package/lib/extensions/amplify-helpers/update-amplify-meta.js.map +1 -0
- package/lib/extensions/amplify-helpers/update-backend-config.d.ts +5 -0
- package/lib/extensions/amplify-helpers/update-backend-config.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/update-backend-config.js +43 -0
- package/lib/extensions/amplify-helpers/update-backend-config.js.map +1 -0
- package/lib/extensions/amplify-helpers/update-project-config.d.ts +3 -0
- package/lib/extensions/amplify-helpers/update-project-config.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/update-project-config.js +13 -0
- package/lib/extensions/amplify-helpers/update-project-config.js.map +1 -0
- package/lib/extensions/amplify-helpers/update-tracked-files.d.ts +3 -0
- package/lib/extensions/amplify-helpers/update-tracked-files.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/update-tracked-files.js +87 -0
- package/lib/extensions/amplify-helpers/update-tracked-files.js.map +1 -0
- package/lib/extensions/amplify-helpers/write-object-as-json.d.ts +2 -0
- package/lib/extensions/amplify-helpers/write-object-as-json.d.ts.map +1 -0
- package/lib/extensions/amplify-helpers/write-object-as-json.js +10 -0
- package/lib/extensions/amplify-helpers/write-object-as-json.js.map +1 -0
- package/lib/global-prefix.d.ts +2 -0
- package/lib/global-prefix.d.ts.map +1 -0
- package/lib/global-prefix.js +141 -0
- package/lib/global-prefix.js.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +207 -0
- package/lib/index.js.map +1 -0
- package/lib/init-steps/postInitSetup.d.ts +3 -0
- package/lib/init-steps/postInitSetup.d.ts.map +1 -0
- package/lib/init-steps/postInitSetup.js +85 -0
- package/lib/init-steps/postInitSetup.js.map +1 -0
- package/lib/init-steps/preInitSetup.d.ts +5 -0
- package/lib/init-steps/preInitSetup.d.ts.map +1 -0
- package/lib/init-steps/preInitSetup.js +153 -0
- package/lib/init-steps/preInitSetup.js.map +1 -0
- package/lib/init-steps/s0-analyzeProject.d.ts +6 -0
- package/lib/init-steps/s0-analyzeProject.d.ts.map +1 -0
- package/lib/init-steps/s0-analyzeProject.js +308 -0
- package/lib/init-steps/s0-analyzeProject.js.map +1 -0
- package/lib/init-steps/s1-initFrontend.d.ts +4 -0
- package/lib/init-steps/s1-initFrontend.d.ts.map +1 -0
- package/lib/init-steps/s1-initFrontend.js +92 -0
- package/lib/init-steps/s1-initFrontend.js.map +1 -0
- package/lib/init-steps/s2-initProviders.d.ts +2 -0
- package/lib/init-steps/s2-initProviders.d.ts.map +1 -0
- package/lib/init-steps/s2-initProviders.js +95 -0
- package/lib/init-steps/s2-initProviders.js.map +1 -0
- package/lib/init-steps/s8-scaffoldHeadless.d.ts +3 -0
- package/lib/init-steps/s8-scaffoldHeadless.d.ts.map +1 -0
- package/lib/init-steps/s8-scaffoldHeadless.js +68 -0
- package/lib/init-steps/s8-scaffoldHeadless.js.map +1 -0
- package/lib/init-steps/s9-onFailure.d.ts +2 -0
- package/lib/init-steps/s9-onFailure.d.ts.map +1 -0
- package/lib/init-steps/s9-onFailure.js +45 -0
- package/lib/init-steps/s9-onFailure.js.map +1 -0
- package/lib/init-steps/s9-onSuccess.d.ts +6 -0
- package/lib/init-steps/s9-onSuccess.d.ts.map +1 -0
- package/lib/init-steps/s9-onSuccess.js +216 -0
- package/lib/init-steps/s9-onSuccess.js.map +1 -0
- package/lib/initialize-env.d.ts +3 -0
- package/lib/initialize-env.d.ts.map +1 -0
- package/lib/initialize-env.js +170 -0
- package/lib/initialize-env.js.map +1 -0
- package/lib/input-manager.d.ts +6 -0
- package/lib/input-manager.d.ts.map +1 -0
- package/lib/input-manager.js +253 -0
- package/lib/input-manager.js.map +1 -0
- package/lib/input-params-manager.d.ts +5 -0
- package/lib/input-params-manager.d.ts.map +1 -0
- package/lib/input-params-manager.js +77 -0
- package/lib/input-params-manager.js.map +1 -0
- package/lib/migrate-project.d.ts +3 -0
- package/lib/migrate-project.d.ts.map +1 -0
- package/lib/migrate-project.js +258 -0
- package/lib/migrate-project.js.map +1 -0
- package/lib/plugin-helpers/access-plugins-file.d.ts +4 -0
- package/lib/plugin-helpers/access-plugins-file.d.ts.map +1 -0
- package/lib/plugin-helpers/access-plugins-file.js +66 -0
- package/lib/plugin-helpers/access-plugins-file.js.map +1 -0
- package/lib/plugin-helpers/compare-plugins.d.ts +3 -0
- package/lib/plugin-helpers/compare-plugins.d.ts.map +1 -0
- package/lib/plugin-helpers/compare-plugins.js +13 -0
- package/lib/plugin-helpers/compare-plugins.js.map +1 -0
- package/lib/plugin-helpers/create-new-plugin.d.ts +3 -0
- package/lib/plugin-helpers/create-new-plugin.d.ts.map +1 -0
- package/lib/plugin-helpers/create-new-plugin.js +234 -0
- package/lib/plugin-helpers/create-new-plugin.js.map +1 -0
- package/lib/plugin-helpers/display-plugin-platform.d.ts +15 -0
- package/lib/plugin-helpers/display-plugin-platform.d.ts.map +1 -0
- package/lib/plugin-helpers/display-plugin-platform.js +102 -0
- package/lib/plugin-helpers/display-plugin-platform.js.map +1 -0
- package/lib/plugin-helpers/platform-health-check.d.ts +12 -0
- package/lib/plugin-helpers/platform-health-check.d.ts.map +1 -0
- package/lib/plugin-helpers/platform-health-check.js +138 -0
- package/lib/plugin-helpers/platform-health-check.js.map +1 -0
- package/lib/plugin-helpers/scan-plugin-platform.d.ts +7 -0
- package/lib/plugin-helpers/scan-plugin-platform.d.ts.map +1 -0
- package/lib/plugin-helpers/scan-plugin-platform.js +188 -0
- package/lib/plugin-helpers/scan-plugin-platform.js.map +1 -0
- package/lib/plugin-helpers/verify-plugin.d.ts +8 -0
- package/lib/plugin-helpers/verify-plugin.d.ts.map +1 -0
- package/lib/plugin-helpers/verify-plugin.js +125 -0
- package/lib/plugin-helpers/verify-plugin.js.map +1 -0
- package/lib/plugin-manager.d.ts +18 -0
- package/lib/plugin-manager.d.ts.map +1 -0
- package/lib/plugin-manager.js +252 -0
- package/lib/plugin-manager.js.map +1 -0
- package/lib/pre-deployment-pull.d.ts +3 -0
- package/lib/pre-deployment-pull.d.ts.map +1 -0
- package/lib/pre-deployment-pull.js +82 -0
- package/lib/pre-deployment-pull.js.map +1 -0
- package/lib/project-config-version-check.d.ts +3 -0
- package/lib/project-config-version-check.d.ts.map +1 -0
- package/lib/project-config-version-check.js +153 -0
- package/lib/project-config-version-check.js.map +1 -0
- package/lib/pull-backend.d.ts +3 -0
- package/lib/pull-backend.d.ts.map +1 -0
- package/lib/pull-backend.js +45 -0
- package/lib/pull-backend.js.map +1 -0
- package/lib/rewireDeprecatedCommands.d.ts +3 -0
- package/lib/rewireDeprecatedCommands.d.ts.map +1 -0
- package/lib/rewireDeprecatedCommands.js +19 -0
- package/lib/rewireDeprecatedCommands.js.map +1 -0
- package/lib/utils/global-prefix.d.ts +2 -0
- package/lib/utils/global-prefix.d.ts.map +1 -0
- package/lib/utils/global-prefix.js +109 -0
- package/lib/utils/global-prefix.js.map +1 -0
- package/lib/utils/headless-input-utils.d.ts +5 -0
- package/lib/utils/headless-input-utils.d.ts.map +1 -0
- package/lib/utils/headless-input-utils.js +37 -0
- package/lib/utils/headless-input-utils.js.map +1 -0
- package/lib/utils/is-child-path.d.ts +2 -0
- package/lib/utils/is-child-path.d.ts.map +1 -0
- package/lib/utils/is-child-path.js +46 -0
- package/lib/utils/is-child-path.js.map +1 -0
- package/lib/utils/mobilehub-support.d.ts +3 -0
- package/lib/utils/mobilehub-support.d.ts.map +1 -0
- package/lib/utils/mobilehub-support.js +45 -0
- package/lib/utils/mobilehub-support.js.map +1 -0
- package/lib/utils/post-install-initialization.d.ts +2 -0
- package/lib/utils/post-install-initialization.d.ts.map +1 -0
- package/lib/utils/post-install-initialization.js +75 -0
- package/lib/utils/post-install-initialization.js.map +1 -0
- package/lib/utils/set-ops.d.ts +4 -0
- package/lib/utils/set-ops.d.ts.map +1 -0
- package/lib/utils/set-ops.js +44 -0
- package/lib/utils/set-ops.js.map +1 -0
- package/lib/utils/team-provider-migrate.d.ts +3 -0
- package/lib/utils/team-provider-migrate.d.ts.map +1 -0
- package/lib/utils/team-provider-migrate.js +76 -0
- package/lib/utils/team-provider-migrate.js.map +1 -0
- package/lib/utils/verify-expected-env-params.d.ts +3 -0
- package/lib/utils/verify-expected-env-params.d.ts.map +1 -0
- package/lib/utils/verify-expected-env-params.js +51 -0
- package/lib/utils/verify-expected-env-params.js.map +1 -0
- package/lib/utils/win-constants.d.ts +4 -0
- package/lib/utils/win-constants.d.ts.map +1 -0
- package/lib/utils/win-constants.js +43 -0
- package/lib/utils/win-constants.js.map +1 -0
- package/lib/utils/win-utils.d.ts +3 -0
- package/lib/utils/win-utils.d.ts.map +1 -0
- package/lib/utils/win-utils.js +113 -0
- package/lib/utils/win-utils.js.map +1 -0
- package/lib/version-notifier.d.ts +3 -0
- package/lib/version-notifier.d.ts.map +1 -0
- package/lib/version-notifier.js +21 -0
- package/lib/version-notifier.js.map +1 -0
- package/package.json +293 -0
- package/readme.md +4 -0
- package/resources/sample-hooks/hooks-readme.md +7 -0
- package/resources/sample-hooks/post-push.sh.sample +24 -0
- package/resources/sample-hooks/pre-push.js.sample +27 -0
- package/sample-headless-scripts/headless_add_external_env.sh +30 -0
- package/sample-headless-scripts/headless_configure_project.sh +35 -0
- package/sample-headless-scripts/headless_init_env.sh +47 -0
- package/sample-headless-scripts/headless_init_env_auth.sh +30 -0
- package/sample-headless-scripts/headless_init_new_project.sh +34 -0
- package/sample-headless-scripts/headless_publish.sh +15 -0
- package/sample-headless-scripts/headless_push.sh +15 -0
- package/scripts/post-install.js +34 -0
- package/templates/amplify-skeleton/.config/project-config__android.json +11 -0
- package/templates/amplify-skeleton/.config/project-config__flutter.json +11 -0
- package/templates/amplify-skeleton/.config/project-config__ios.json +6 -0
- package/templates/amplify-skeleton/.config/project-config__javascript.json +15 -0
- package/templates/amplify-skeleton/backend/api/amplifyDatasource/parameters.json +5 -0
- package/templates/amplify-skeleton/backend/api/amplifyDatasource/schema.graphql +10 -0
- package/templates/amplify-skeleton/backend/api/amplifyDatasource/stacks/CustomResources.json +58 -0
- package/templates/amplify-skeleton/backend/api/amplifyDatasource/transform.conf.json +9 -0
- package/templates/amplify-skeleton/backend/backend-config.json +20 -0
- package/templates/plugin-template/amplify-plugin.json +6 -0
- package/templates/plugin-template/commands/help.js +8 -0
- package/templates/plugin-template/commands/version.js +8 -0
- package/templates/plugin-template/event-handlers/handle-PostInit.js +10 -0
- package/templates/plugin-template/event-handlers/handle-PostPush.js +10 -0
- package/templates/plugin-template/event-handlers/handle-PreInit.js +10 -0
- package/templates/plugin-template/event-handlers/handle-PrePush.js +10 -0
- package/templates/plugin-template/index.js +20 -0
- package/templates/plugin-template/package.json +11 -0
- package/templates/plugin-template-frontend/amplify-plugin.json +6 -0
- package/templates/plugin-template-frontend/commands/help.js +8 -0
- package/templates/plugin-template-frontend/commands/version.js +8 -0
- package/templates/plugin-template-frontend/event-handlers/handle-PostInit.js +10 -0
- package/templates/plugin-template-frontend/event-handlers/handle-PostPush.js +10 -0
- package/templates/plugin-template-frontend/event-handlers/handle-PreInit.js +10 -0
- package/templates/plugin-template-frontend/event-handlers/handle-PrePush.js +10 -0
- package/templates/plugin-template-frontend/index.js +62 -0
- package/templates/plugin-template-frontend/package.json +11 -0
- package/templates/plugin-template-provider/amplify-plugin.json +6 -0
- package/templates/plugin-template-provider/commands/help.js +8 -0
- package/templates/plugin-template-provider/commands/version.js +8 -0
- package/templates/plugin-template-provider/event-handlers/handle-PostInit.js +10 -0
- package/templates/plugin-template-provider/event-handlers/handle-PostPush.js +10 -0
- package/templates/plugin-template-provider/event-handlers/handle-PreInit.js +10 -0
- package/templates/plugin-template-provider/event-handlers/handle-PrePush.js +10 -0
- package/templates/plugin-template-provider/index.js +50 -0
- package/templates/plugin-template-provider/package.json +11 -0
|
@@ -0,0 +1,210 @@
|
|
|
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 () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CollateResourceDiffs = exports.ResourceDiff = exports.globCFNFilePath = exports.capitalize = exports.stackMutationType = void 0;
|
|
40
|
+
const fs = __importStar(require("fs-extra"));
|
|
41
|
+
const path = __importStar(require("path"));
|
|
42
|
+
const glob_1 = require("glob");
|
|
43
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
44
|
+
const cfnDiff = __importStar(require("@aws-cdk/cloudformation-diff"));
|
|
45
|
+
const amplify_cli_core_1 = require("@aws-amplify/amplify-cli-core");
|
|
46
|
+
const print_1 = require("./print");
|
|
47
|
+
const resource_status_data_1 = require("./resource-status-data");
|
|
48
|
+
const CategoryProviders = {
|
|
49
|
+
CLOUDFORMATION: 'cloudformation',
|
|
50
|
+
};
|
|
51
|
+
exports.stackMutationType = {
|
|
52
|
+
CREATE: {
|
|
53
|
+
label: 'Create',
|
|
54
|
+
consoleStyle: chalk_1.default.green.bold,
|
|
55
|
+
icon: '[+]',
|
|
56
|
+
},
|
|
57
|
+
UPDATE: {
|
|
58
|
+
label: 'Update',
|
|
59
|
+
consoleStyle: chalk_1.default.yellow.bold,
|
|
60
|
+
icon: '[~]',
|
|
61
|
+
},
|
|
62
|
+
DELETE: {
|
|
63
|
+
label: 'Delete',
|
|
64
|
+
consoleStyle: chalk_1.default.red.bold,
|
|
65
|
+
icon: '[-]',
|
|
66
|
+
},
|
|
67
|
+
IMPORT: {
|
|
68
|
+
label: 'Import',
|
|
69
|
+
consoleStyle: chalk_1.default.blue.bold,
|
|
70
|
+
icon: `[\u21E9]`,
|
|
71
|
+
},
|
|
72
|
+
UNLINK: {
|
|
73
|
+
label: 'Unlink',
|
|
74
|
+
consoleStyle: chalk_1.default.red.bold,
|
|
75
|
+
icon: `[\u2BFB]`,
|
|
76
|
+
},
|
|
77
|
+
NOCHANGE: {
|
|
78
|
+
label: 'No Change',
|
|
79
|
+
consoleStyle: chalk_1.default.grey,
|
|
80
|
+
icon: `[ ]`,
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
84
|
+
exports.capitalize = capitalize;
|
|
85
|
+
const resourceDetailSectionStyle = chalk_1.default.bgRgb(15, 100, 204);
|
|
86
|
+
const globCFNFilePath = (fileFolder) => {
|
|
87
|
+
if (fs.existsSync(fileFolder)) {
|
|
88
|
+
const globOptions = {
|
|
89
|
+
absolute: false,
|
|
90
|
+
cwd: fileFolder,
|
|
91
|
+
follow: false,
|
|
92
|
+
nodir: true,
|
|
93
|
+
};
|
|
94
|
+
const templateFileNames = (0, glob_1.globSync)('**/*template.{yaml,yml,json}', globOptions);
|
|
95
|
+
for (const templateFileName of templateFileNames) {
|
|
96
|
+
const absolutePath = path.join(fileFolder, templateFileName);
|
|
97
|
+
return absolutePath;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
throw new Error(`No CloudFormation template found in ${fileFolder}`);
|
|
101
|
+
};
|
|
102
|
+
exports.globCFNFilePath = globCFNFilePath;
|
|
103
|
+
class ResourceDiff {
|
|
104
|
+
constructor(category, resourceName, provider, mutationInfo) {
|
|
105
|
+
this.printResourceDetailStatus = async (mutationInfo) => {
|
|
106
|
+
const header = `${mutationInfo.consoleStyle(mutationInfo.label)}`;
|
|
107
|
+
const diff = await this.calculateCfnDiff();
|
|
108
|
+
print_1.print.info(`${resourceDetailSectionStyle(`[\u27A5] Resource Stack: ${(0, exports.capitalize)(this.category)}/${this.resourceName}`)} : ${header}`);
|
|
109
|
+
const diffCount = this.printStackDiff(diff, process.stdout);
|
|
110
|
+
if (diffCount === 0) {
|
|
111
|
+
console.log('No changes ');
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
this.calculateCfnDiff = async () => {
|
|
115
|
+
const resourceTemplatePaths = await this.getCfnResourceFilePaths();
|
|
116
|
+
this.localTemplate = await this.safeReadCFNTemplate(resourceTemplatePaths.localTemplatePath);
|
|
117
|
+
this.localTemplate = (0, amplify_cli_core_1.generateCustomPoliciesInTemplate)(this.localTemplate, this.resourceName, this.service, this.category);
|
|
118
|
+
this.cloudTemplate = await this.safeReadCFNTemplate(resourceTemplatePaths.cloudTemplatePath);
|
|
119
|
+
if (this.mutationInfo.label === exports.stackMutationType.CREATE.label) {
|
|
120
|
+
this.cloudTemplate = {};
|
|
121
|
+
}
|
|
122
|
+
const diff = cfnDiff.diffTemplate(this.cloudTemplate, this.localTemplate);
|
|
123
|
+
return diff;
|
|
124
|
+
};
|
|
125
|
+
this.safeReadCFNTemplate = async (filePath) => {
|
|
126
|
+
const templateResult = (0, amplify_cli_core_1.readCFNTemplate)(filePath, { throwIfNotExist: false });
|
|
127
|
+
return (templateResult === null || templateResult === void 0 ? void 0 : templateResult.cfnTemplate) || {};
|
|
128
|
+
};
|
|
129
|
+
this.getCfnResourceFilePaths = async () => {
|
|
130
|
+
const resourceFilePaths = {
|
|
131
|
+
localTemplatePath: checkExist(this.resourceFiles.localBuildCfnFile)
|
|
132
|
+
? this.resourceFiles.localBuildCfnFile
|
|
133
|
+
: this.resourceFiles.localPreBuildCfnFile,
|
|
134
|
+
cloudTemplatePath: checkExist(this.resourceFiles.cloudBuildCfnFile)
|
|
135
|
+
? this.resourceFiles.cloudBuildCfnFile
|
|
136
|
+
: this.resourceFiles.cloudPreBuildCfnFile,
|
|
137
|
+
};
|
|
138
|
+
return resourceFilePaths;
|
|
139
|
+
};
|
|
140
|
+
this.normalizeProviderForFileNames = (provider) => {
|
|
141
|
+
if (provider === 'awscloudformation') {
|
|
142
|
+
return CategoryProviders.CLOUDFORMATION;
|
|
143
|
+
}
|
|
144
|
+
return provider;
|
|
145
|
+
};
|
|
146
|
+
this.printStackDiff = (templateDiff, stream) => {
|
|
147
|
+
if (templateDiff.resources) {
|
|
148
|
+
templateDiff.resources = templateDiff.resources.filter((change) => {
|
|
149
|
+
if (!change) {
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
if (this.isResourceTypeCDKMetada(change.newResourceType) || this.isResourceTypeCDKMetada(change.oldResourceType)) {
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
return true;
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
if (!templateDiff.isEmpty) {
|
|
159
|
+
cfnDiff.formatDifferences(stream || process.stderr, templateDiff);
|
|
160
|
+
}
|
|
161
|
+
return templateDiff.differenceCount;
|
|
162
|
+
};
|
|
163
|
+
this.safeGlobCFNFilePath = (fileFolder) => {
|
|
164
|
+
try {
|
|
165
|
+
return (0, exports.globCFNFilePath)(fileFolder);
|
|
166
|
+
}
|
|
167
|
+
catch (e) {
|
|
168
|
+
return '';
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
this.isResourceTypeCDKMetada = (resourceType) => resourceType === 'AWS::CDK::Metadata';
|
|
172
|
+
this.localBackendDir = amplify_cli_core_1.pathManager.getBackendDirPath();
|
|
173
|
+
this.cloudBackendDir = amplify_cli_core_1.pathManager.getCurrentCloudBackendDirPath();
|
|
174
|
+
this.resourceName = resourceName;
|
|
175
|
+
this.category = category;
|
|
176
|
+
this.provider = this.normalizeProviderForFileNames(provider);
|
|
177
|
+
this.service = (0, resource_status_data_1.getResourceService)(category, resourceName);
|
|
178
|
+
this.localTemplate = {};
|
|
179
|
+
this.cloudTemplate = {};
|
|
180
|
+
this.mutationInfo = mutationInfo;
|
|
181
|
+
const localResourceAbsolutePathFolder = path.normalize(path.join(this.localBackendDir, category, resourceName));
|
|
182
|
+
const cloudResourceAbsolutePathFolder = path.normalize(path.join(this.cloudBackendDir, category, resourceName));
|
|
183
|
+
this.resourceFiles = {
|
|
184
|
+
localPreBuildCfnFile: this.safeGlobCFNFilePath(localResourceAbsolutePathFolder),
|
|
185
|
+
cloudPreBuildCfnFile: this.safeGlobCFNFilePath(cloudResourceAbsolutePathFolder),
|
|
186
|
+
localBuildCfnFile: this.safeGlobCFNFilePath(path.normalize(path.join(localResourceAbsolutePathFolder, 'build'))),
|
|
187
|
+
cloudBuildCfnFile: this.safeGlobCFNFilePath(path.normalize(path.join(cloudResourceAbsolutePathFolder, 'build'))),
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.ResourceDiff = ResourceDiff;
|
|
192
|
+
const checkExist = (filePath) => {
|
|
193
|
+
const inputTypes = ['json', 'yaml', 'yml'];
|
|
194
|
+
for (let i = 0; i < inputTypes.length; i++) {
|
|
195
|
+
if (fs.existsSync(`${filePath}.${inputTypes[i]}`)) {
|
|
196
|
+
return true;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return false;
|
|
200
|
+
};
|
|
201
|
+
const CollateResourceDiffs = async (resources, mutationInfo) => {
|
|
202
|
+
const provider = CategoryProviders.CLOUDFORMATION;
|
|
203
|
+
const resourceDiffs = [];
|
|
204
|
+
for await (const resource of resources) {
|
|
205
|
+
resourceDiffs.push(new ResourceDiff(resource.category, resource.resourceName, provider, mutationInfo));
|
|
206
|
+
}
|
|
207
|
+
return resourceDiffs;
|
|
208
|
+
};
|
|
209
|
+
exports.CollateResourceDiffs = CollateResourceDiffs;
|
|
210
|
+
//# sourceMappingURL=resource-status-diff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-status-diff.js","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/resource-status-diff.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,2CAA6B;AAE7B,+BAAgC;AAChC,kDAA0B;AAC1B,sEAAwD;AACxD,oEAAuH;AAEvH,mCAAgC;AAEhC,iEAA4D;AAE5D,MAAM,iBAAiB,GAAG;IACxB,cAAc,EAAE,gBAAgB;CACjC,CAAC;AAuBW,QAAA,iBAAiB,GAAsB;IAClD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE,eAAK,CAAC,KAAK,CAAC,IAAI;QAC9B,IAAI,EAAE,KAAK;KACZ;IACD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE,eAAK,CAAC,MAAM,CAAC,IAAI;QAC/B,IAAI,EAAE,KAAK;KACZ;IAED,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE,eAAK,CAAC,GAAG,CAAC,IAAI;QAC5B,IAAI,EAAE,KAAK;KACZ;IAED,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE,eAAK,CAAC,IAAI,CAAC,IAAI;QAC7B,IAAI,EAAE,UAAU;KACjB;IAED,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE,eAAK,CAAC,GAAG,CAAC,IAAI;QAC5B,IAAI,EAAE,UAAU;KACjB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,WAAW;QAElB,YAAY,EAAE,eAAK,CAAC,IAAI;QACxB,IAAI,EAAE,KAAK;KACZ;CACF,CAAC;AAKK,MAAM,UAAU,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAA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AAa,CAAC;AACvB,CAAC,CAAC;AAVW,QAAA,oBAAoB,wBAU/B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function viewResourceDiffs({ resourcesToBeUpdated, resourcesToBeDeleted, resourcesToBeCreated }: {
|
|
2
|
+
resourcesToBeUpdated: any;
|
|
3
|
+
resourcesToBeDeleted: any;
|
|
4
|
+
resourcesToBeCreated: any;
|
|
5
|
+
}): Promise<void>;
|
|
6
|
+
export declare function viewEnvInfo(): void;
|
|
7
|
+
export declare function viewSummaryTable(resourceStateData: any): void;
|
|
8
|
+
//# sourceMappingURL=resource-status-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-status-view.d.ts","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/resource-status-view.ts"],"names":[],"mappings":"AAMA,wBAAsB,iBAAiB,CAAC,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE;;;;CAAA,iBAc3G;AAGD,wBAAgB,WAAW,SAK1B;AAGD,wBAAgB,gBAAgB,CAAC,iBAAiB,KAAA,QAIjD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.viewResourceDiffs = viewResourceDiffs;
|
|
40
|
+
exports.viewEnvInfo = viewEnvInfo;
|
|
41
|
+
exports.viewSummaryTable = viewSummaryTable;
|
|
42
|
+
const resource_status_data_1 = require("./resource-status-data");
|
|
43
|
+
const resourceStatus = __importStar(require("./resource-status-diff"));
|
|
44
|
+
const get_env_info_1 = require("./get-env-info");
|
|
45
|
+
const print_1 = require("./print");
|
|
46
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
47
|
+
async function viewResourceDiffs({ resourcesToBeUpdated, resourcesToBeDeleted, resourcesToBeCreated }) {
|
|
48
|
+
const resourceDiffs = await (0, resource_status_data_1.getResourceDiffs)(resourcesToBeUpdated, resourcesToBeDeleted, resourcesToBeCreated);
|
|
49
|
+
for await (const resourceDiff of resourceDiffs.updatedDiff) {
|
|
50
|
+
await resourceDiff.printResourceDetailStatus(resourceStatus.stackMutationType.UPDATE);
|
|
51
|
+
}
|
|
52
|
+
for await (const resourceDiff of resourceDiffs.deletedDiff) {
|
|
53
|
+
await resourceDiff.printResourceDetailStatus(resourceStatus.stackMutationType.DELETE);
|
|
54
|
+
}
|
|
55
|
+
for await (const resourceDiff of resourceDiffs.createdDiff) {
|
|
56
|
+
await resourceDiff.printResourceDetailStatus(resourceStatus.stackMutationType.CREATE);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function viewEnvInfo() {
|
|
60
|
+
const { envName } = (0, get_env_info_1.getEnvInfo)();
|
|
61
|
+
print_1.print.info(`
|
|
62
|
+
${chalk_1.default.green('Current Environment')}: ${envName}
|
|
63
|
+
`);
|
|
64
|
+
}
|
|
65
|
+
function viewSummaryTable(resourceStateData) {
|
|
66
|
+
const tableOptions = (0, resource_status_data_1.getSummaryTableData)(resourceStateData);
|
|
67
|
+
const { table } = print_1.print;
|
|
68
|
+
table(tableOptions, { format: 'lean' });
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=resource-status-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-status-view.js","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/resource-status-view.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,8CAcC;AAGD,kCAKC;AAGD,4CAIC;AAnCD,iEAA+E;AAC/E,uEAAyD;AACzD,iDAA4C;AAC5C,mCAAgC;AAChC,kDAA0B;AAEnB,KAAK,UAAU,iBAAiB,CAAC,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE;IAC1G,MAAM,aAAa,GAAG,MAAM,IAAA,uCAAgB,EAAC,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;IAC/G,IAAI,KAAK,EAAE,MAAM,YAAY,IAAI,aAAa,CAAC,WAAW,EAAE,CAAC;QAE3D,MAAM,YAAY,CAAC,yBAAyB,CAAC,cAAc,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACxF,CAAC;IACD,IAAI,KAAK,EAAE,MAAM,YAAY,IAAI,aAAa,CAAC,WAAW,EAAE,CAAC;QAE3D,MAAM,YAAY,CAAC,yBAAyB,CAAC,cAAc,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACxF,CAAC;IACD,IAAI,KAAK,EAAE,MAAM,YAAY,IAAI,aAAa,CAAC,WAAW,EAAE,CAAC;QAE3D,MAAM,YAAY,CAAC,yBAAyB,CAAC,cAAc,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACxF,CAAC;AACH,CAAC;AAGD,SAAgB,WAAW;IACzB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,yBAAU,GAAE,CAAC;IACjC,aAAK,CAAC,IAAI,CAAC;MACP,eAAK,CAAC,KAAK,CAAC,qBAAqB,CAAC,KAAK,OAAO;KAC/C,CAAC,CAAC;AACP,CAAC;AAGD,SAAgB,gBAAgB,CAAC,iBAAiB;IAChD,MAAM,YAAY,GAAG,IAAA,0CAAmB,EAAC,iBAAiB,CAAC,CAAC;IAC5D,MAAM,EAAE,KAAK,EAAE,GAAG,aAAK,CAAC;IACxB,KAAK,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ViewResourceTableParams } from '@aws-amplify/amplify-cli-core';
|
|
2
|
+
import { getResourceStatus, getHashForResourceDir } from './resource-status-data';
|
|
3
|
+
export { getResourceStatus, getHashForResourceDir };
|
|
4
|
+
export declare function showStatusTable(tableViewFilter: ViewResourceTableParams): Promise<boolean>;
|
|
5
|
+
export declare function showResourceTable(category?: any, resourceName?: any, filteredResources?: any): Promise<boolean>;
|
|
6
|
+
//# sourceMappingURL=resource-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-status.d.ts","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/resource-status.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAA0B,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE1G,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC;AAEpD,wBAAsB,eAAe,CAAC,eAAe,EAAE,uBAAuB,oBAyB7E;AAED,wBAAsB,iBAAiB,CAAC,QAAQ,CAAC,KAAA,EAAE,YAAY,CAAC,KAAA,EAAE,iBAAiB,CAAC,KAAA,oBA+BnF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getHashForResourceDir = exports.getResourceStatus = void 0;
|
|
4
|
+
exports.showStatusTable = showStatusTable;
|
|
5
|
+
exports.showResourceTable = showResourceTable;
|
|
6
|
+
const print_1 = require("./print");
|
|
7
|
+
const get_cloud_init_status_1 = require("./get-cloud-init-status");
|
|
8
|
+
const resource_status_view_1 = require("./resource-status-view");
|
|
9
|
+
const resource_status_data_1 = require("./resource-status-data");
|
|
10
|
+
Object.defineProperty(exports, "getResourceStatus", { enumerable: true, get: function () { return resource_status_data_1.getResourceStatus; } });
|
|
11
|
+
Object.defineProperty(exports, "getHashForResourceDir", { enumerable: true, get: function () { return resource_status_data_1.getHashForResourceDir; } });
|
|
12
|
+
async function showStatusTable(tableViewFilter) {
|
|
13
|
+
const amplifyProjectInitStatus = (0, get_cloud_init_status_1.getCloudInitStatus)();
|
|
14
|
+
const { resourcesToBeCreated, resourcesToBeUpdated, resourcesToBeDeleted, resourcesToBeSynced, allResources, tagsUpdated } = await (0, resource_status_data_1.getMultiCategoryStatus)(tableViewFilter);
|
|
15
|
+
if (amplifyProjectInitStatus === get_cloud_init_status_1.CLOUD_INITIALIZED) {
|
|
16
|
+
(0, resource_status_view_1.viewEnvInfo)();
|
|
17
|
+
}
|
|
18
|
+
(0, resource_status_view_1.viewSummaryTable)({ resourcesToBeUpdated, resourcesToBeCreated, resourcesToBeDeleted, resourcesToBeSynced, allResources });
|
|
19
|
+
if (tagsUpdated) {
|
|
20
|
+
print_1.print.info('\nTag Changes Detected');
|
|
21
|
+
}
|
|
22
|
+
if (tableViewFilter.verbose) {
|
|
23
|
+
await (0, resource_status_view_1.viewResourceDiffs)({ resourcesToBeUpdated, resourcesToBeDeleted, resourcesToBeCreated });
|
|
24
|
+
}
|
|
25
|
+
const resourceChanged = resourcesToBeCreated.length + resourcesToBeUpdated.length + resourcesToBeSynced.length + resourcesToBeDeleted.length > 0 || tagsUpdated;
|
|
26
|
+
return resourceChanged;
|
|
27
|
+
}
|
|
28
|
+
async function showResourceTable(category, resourceName, filteredResources) {
|
|
29
|
+
const amplifyProjectInitStatus = (0, get_cloud_init_status_1.getCloudInitStatus)();
|
|
30
|
+
const { resourcesToBeCreated, resourcesToBeUpdated, resourcesToBeDeleted, resourcesToBeSynced, allResources, tagsUpdated, rootStackUpdated, } = await (0, resource_status_data_1.getResourceStatus)(category, resourceName, undefined, filteredResources);
|
|
31
|
+
if (amplifyProjectInitStatus === get_cloud_init_status_1.CLOUD_INITIALIZED) {
|
|
32
|
+
(0, resource_status_view_1.viewEnvInfo)();
|
|
33
|
+
}
|
|
34
|
+
(0, resource_status_view_1.viewSummaryTable)({ resourcesToBeUpdated, resourcesToBeCreated, resourcesToBeDeleted, resourcesToBeSynced, allResources });
|
|
35
|
+
if (tagsUpdated) {
|
|
36
|
+
print_1.print.info('\nTag Changes Detected');
|
|
37
|
+
}
|
|
38
|
+
const resourceChanged = resourcesToBeCreated.length + resourcesToBeUpdated.length + resourcesToBeSynced.length + resourcesToBeDeleted.length > 0 ||
|
|
39
|
+
tagsUpdated ||
|
|
40
|
+
rootStackUpdated;
|
|
41
|
+
return resourceChanged;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=resource-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-status.js","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/resource-status.ts"],"names":[],"mappings":";;;AAQA,0CAyBC;AAED,8CA+BC;AAlED,mCAAgC;AAChC,mEAAgF;AAEhF,iEAA0F;AAC1F,iEAA0G;AAEjG,kGAFwB,wCAAiB,OAExB;AAAE,sGAFwB,4CAAqB,OAExB;AAE1C,KAAK,UAAU,eAAe,CAAC,eAAwC;IAC5E,MAAM,wBAAwB,GAAG,IAAA,0CAAkB,GAAE,CAAC;IACtD,MAAM,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,GACxH,MAAM,IAAA,6CAAsB,EAAC,eAAe,CAAC,CAAC;IAGhD,IAAI,wBAAwB,KAAK,yCAAiB,EAAE,CAAC;QACnD,IAAA,kCAAW,GAAE,CAAC;IAChB,CAAC;IAED,IAAA,uCAAgB,EAAC,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,YAAY,EAAE,CAAC,CAAC;IAE1H,IAAI,WAAW,EAAE,CAAC;QAChB,aAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IACvC,CAAC;IAGD,IAAI,eAAe,CAAC,OAAO,EAAE,CAAC;QAC5B,MAAM,IAAA,wCAAiB,EAAC,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,MAAM,eAAe,GACnB,oBAAoB,CAAC,MAAM,GAAG,oBAAoB,CAAC,MAAM,GAAG,mBAAmB,CAAC,MAAM,GAAG,oBAAoB,CAAC,MAAM,GAAG,CAAC,IAAI,WAAW,CAAC;IAE1I,OAAO,eAAe,CAAC;AACzB,CAAC;AAEM,KAAK,UAAU,iBAAiB,CAAC,QAAS,EAAE,YAAa,EAAE,iBAAkB;IAClF,MAAM,wBAAwB,GAAG,IAAA,0CAAkB,GAAE,CAAC;IAGtD,MAAM,EACJ,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,gBAAgB,GACjB,GAAG,MAAM,IAAA,wCAAiB,EAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC;IAGlF,IAAI,wBAAwB,KAAK,yCAAiB,EAAE,CAAC;QACnD,IAAA,kCAAW,GAAE,CAAC;IAChB,CAAC;IAED,IAAA,uCAAgB,EAAC,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,YAAY,EAAE,CAAC,CAAC;IAE1H,IAAI,WAAW,EAAE,CAAC;QAChB,aAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,eAAe,GACnB,oBAAoB,CAAC,MAAM,GAAG,oBAAoB,CAAC,MAAM,GAAG,mBAAmB,CAAC,MAAM,GAAG,oBAAoB,CAAC,MAAM,GAAG,CAAC;QACxH,WAAW;QACX,gBAAgB,CAAC;IAEnB,OAAO,eAAe,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-stack-status.d.ts","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/root-stack-status.ts"],"names":[],"mappings":"AAMA,wBAAgB,mBAAmB,CAAC,OAAO,KAAA,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,mBAQ5D;AAED,wBAAsB,gCAAgC,IAAI,OAAO,CAAC,OAAO,CAAC,CAmBzE"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.getHashForRootStack = getHashForRootStack;
|
|
37
|
+
exports.isRootStackModifiedSinceLastPush = isRootStackModifiedSinceLastPush;
|
|
38
|
+
const amplify_cli_core_1 = require("@aws-amplify/amplify-cli-core");
|
|
39
|
+
const amplify_provider_awscloudformation_1 = require("@aws-amplify/amplify-provider-awscloudformation");
|
|
40
|
+
const folder_hash_1 = require("folder-hash");
|
|
41
|
+
const fs = __importStar(require("fs-extra"));
|
|
42
|
+
const path = __importStar(require("path"));
|
|
43
|
+
function getHashForRootStack(dirPath, files) {
|
|
44
|
+
const options = {
|
|
45
|
+
files: {
|
|
46
|
+
include: files,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
return (0, folder_hash_1.hashElement)(dirPath, options).then((result) => result.hash);
|
|
50
|
+
}
|
|
51
|
+
async function isRootStackModifiedSinceLastPush() {
|
|
52
|
+
try {
|
|
53
|
+
const projectPath = amplify_cli_core_1.pathManager.findProjectRoot();
|
|
54
|
+
const localBackendDir = amplify_cli_core_1.pathManager.getRootStackBuildDirPath(projectPath);
|
|
55
|
+
const cloudBackendDir = amplify_cli_core_1.pathManager.getCurrentCloudRootStackDirPath(projectPath);
|
|
56
|
+
if (fs.existsSync(localBackendDir) && fs.existsSync(path.join(localBackendDir, amplify_provider_awscloudformation_1.rootStackFileName))) {
|
|
57
|
+
const localCfnBuffer = fs.readFileSync(path.join(localBackendDir, amplify_provider_awscloudformation_1.rootStackFileName));
|
|
58
|
+
if (fs.existsSync(cloudBackendDir) && fs.existsSync(path.join(cloudBackendDir, amplify_provider_awscloudformation_1.rootStackFileName))) {
|
|
59
|
+
const cloudCfnBuffer = fs.readFileSync(path.join(cloudBackendDir, amplify_provider_awscloudformation_1.rootStackFileName));
|
|
60
|
+
return !localCfnBuffer.equals(cloudCfnBuffer);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
throw new Error('Amplify Project not initialized.');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=root-stack-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-stack-status.js","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/root-stack-status.ts"],"names":[],"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CAAC,CAAC;YAChD,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;aAAM,CAAC;YACN,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { $TSAny, $TSContext, ServiceSelection } from '@aws-amplify/amplify-cli-core';
|
|
2
|
+
export declare function serviceSelectionPrompt(context: $TSContext, category: string, supportedServices: $TSAny, customQuestion?: $TSAny, optionNameOverrides?: Record<string, string>): Promise<ServiceSelection>;
|
|
3
|
+
//# sourceMappingURL=service-select-prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-select-prompt.d.ts","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/service-select-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAgB,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAwFnG,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,EACzB,cAAc,GAAE,MAAa,EAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3C,OAAO,CAAC,gBAAgB,CAAC,CAI3B"}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.serviceSelectionPrompt = serviceSelectionPrompt;
|
|
37
|
+
const amplify_cli_core_1 = require("@aws-amplify/amplify-cli-core");
|
|
38
|
+
const amplify_prompts_1 = require("@aws-amplify/amplify-prompts");
|
|
39
|
+
const inquirer = __importStar(require("inquirer"));
|
|
40
|
+
const get_project_config_1 = require("./get-project-config");
|
|
41
|
+
const get_provider_plugins_1 = require("./get-provider-plugins");
|
|
42
|
+
function filterServicesByEnabledProviders(context, enabledProviders, supportedServices) {
|
|
43
|
+
const providerPlugins = (0, get_provider_plugins_1.getProviderPlugins)(context);
|
|
44
|
+
const filteredServices = [];
|
|
45
|
+
if (supportedServices !== undefined && enabledProviders !== undefined) {
|
|
46
|
+
Object.keys(supportedServices).forEach((serviceName) => {
|
|
47
|
+
const { provider, alias } = supportedServices[serviceName];
|
|
48
|
+
if (enabledProviders.includes(provider)) {
|
|
49
|
+
filteredServices.push({
|
|
50
|
+
service: serviceName,
|
|
51
|
+
providerPlugin: providerPlugins[provider],
|
|
52
|
+
providerName: provider,
|
|
53
|
+
alias: alias,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return filteredServices;
|
|
59
|
+
}
|
|
60
|
+
async function serviceQuestionWalkthrough(context, supportedServices, category, customQuestion = null, optionNameOverrides) {
|
|
61
|
+
const options = [];
|
|
62
|
+
for (const supportedService of supportedServices) {
|
|
63
|
+
let optionName = supportedService.alias || `${supportedService.providerName}:${supportedService.service}`;
|
|
64
|
+
if (optionNameOverrides && optionNameOverrides[supportedService.service]) {
|
|
65
|
+
optionName = optionNameOverrides[supportedService.service];
|
|
66
|
+
}
|
|
67
|
+
options.push({
|
|
68
|
+
name: optionName,
|
|
69
|
+
value: {
|
|
70
|
+
provider: supportedService.providerPlugin,
|
|
71
|
+
service: supportedService.service,
|
|
72
|
+
providerName: supportedService.providerName,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
if (options.length === 0) {
|
|
77
|
+
throw new amplify_cli_core_1.AmplifyError('ResourceDoesNotExistError', {
|
|
78
|
+
message: `No services defined by configured providers for category: ${category}`,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
if (options.length === 1) {
|
|
82
|
+
amplify_prompts_1.printer.info(`Using service: ${options[0].value.service}, provided by: ${options[0].value.providerName}`);
|
|
83
|
+
return new Promise((resolve) => {
|
|
84
|
+
resolve(options[0].value);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
const question = [
|
|
88
|
+
{
|
|
89
|
+
name: 'service',
|
|
90
|
+
message: customQuestion || 'Select from one of the below mentioned services:',
|
|
91
|
+
type: 'list',
|
|
92
|
+
choices: options,
|
|
93
|
+
},
|
|
94
|
+
];
|
|
95
|
+
const answer = await inquirer.prompt(question);
|
|
96
|
+
return answer.service;
|
|
97
|
+
}
|
|
98
|
+
function serviceSelectionPrompt(context, category, supportedServices, customQuestion = null, optionNameOverrides) {
|
|
99
|
+
const { providers } = (0, get_project_config_1.getProjectConfig)();
|
|
100
|
+
supportedServices = filterServicesByEnabledProviders(context, providers, supportedServices);
|
|
101
|
+
return serviceQuestionWalkthrough(context, supportedServices, category, customQuestion, optionNameOverrides);
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=service-select-prompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-select-prompt.js","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/service-select-prompt.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwFA,wDAUC;AAlGD,oEAAmG;AACnG,kEAAuD;AACvD,mDAAqC;AAErC,6DAAwD;AACxD,iEAA4D;AAO5D,SAAS,gCAAgC,CAAC,OAAmB,EAAE,gBAA0B,EAAE,iBAAiB;IAC1G,MAAM,eAAe,GAAG,IAAA,yCAAkB,EAAC,OAAO,CAAC,CAAC;IAEpD,MAAM,gBAAgB,GAAa,EAAE,CAAC;IAEtC,IAAI,iBAAiB,KAAK,SAAS,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACtE,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;YACrD,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;YAE3D,IAAI,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACxC,gBAAgB,CAAC,IAAI,CAAC;oBACpB,OAAO,EAAE,WAAW;oBACpB,cAAc,E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AAC,YAAY,EAAE,CAAC,CAAC;QAC1G,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,QAAQ,GAAG;QACf;YACE,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,cAAc,IAAI,kDAAkD;YAC7E,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,OAAO;SACjB;KACF,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAgC,QAAQ,CAAC,CAAC;IAE9E,OAAO,MAAM,CAAC,OAAO,CAAC;AACxB,CAAC;AAED,SAAgB,sBAAsB,CACpC,OAAmB,EACnB,QAAgB,EAChB,iBAAyB,EACzB,iBAAyB,IAAI,EAC7B,mBAA4C;IAE5C,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,qCAAgB,GAAE,CAAC;IACzC,iBAAiB,GAAG,gCAAgC,CAAC,OAAO,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC;IAC5F,OAAO,0BAA0B,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,cAAc,EAAE,mBAAmB,CAAC,CAAC;AAC/G,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-questions.d.ts","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/shared-questions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;CAQ3B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sharedQuestions = void 0;
|
|
4
|
+
exports.sharedQuestions = {
|
|
5
|
+
accessLevel: (entity) => ({
|
|
6
|
+
name: 'accessLevel',
|
|
7
|
+
type: 'list',
|
|
8
|
+
message: `Choose the level of access required to access this ${entity}:`,
|
|
9
|
+
required: true,
|
|
10
|
+
choices: ['Public', 'Private', 'Protected', 'None'],
|
|
11
|
+
}),
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=shared-questions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-questions.js","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/shared-questions.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,WAAW,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACxB,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,sDAAsD,MAAM,GAAG;QACxE,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC;KACpD,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-all-help.d.ts","sourceRoot":"","sources":["../../../src/extensions/amplify-helpers/show-all-help.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,CAAC,OAAO,KAAA,QAwGlC"}
|