├── source ├── @types │ └── .gitignore ├── packages │ └── @ada │ │ ├── infra │ │ ├── scripts │ │ │ ├── .gitignore │ │ │ ├── run-infra-tests.sh │ │ │ ├── copy-solution-version.ts │ │ │ ├── prepare-scan-docker-images.sh │ │ │ └── build-connector-docker-image.ts │ │ ├── src │ │ │ ├── connectors │ │ │ │ ├── __init__.py │ │ │ │ ├── poetry.toml │ │ │ │ ├── sources │ │ │ │ │ ├── amazon_dynamodb │ │ │ │ │ │ ├── docker-image │ │ │ │ │ │ │ ├── requirements.txt │ │ │ │ │ │ │ ├── Dockerfile │ │ │ │ │ │ │ ├── script.sh │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ └── __test__ │ │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ └── constants.ts │ │ │ │ │ ├── amazon_cloudwatch │ │ │ │ │ │ ├── docker-image │ │ │ │ │ │ │ ├── requirements.txt │ │ │ │ │ │ │ ├── Dockerfile │ │ │ │ │ │ │ ├── script.sh │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ └── constants.ts │ │ │ │ │ ├── mongodb │ │ │ │ │ │ ├── docker-image │ │ │ │ │ │ │ ├── requirements.txt │ │ │ │ │ │ │ ├── Dockerfile │ │ │ │ │ │ │ ├── script.sh │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ └── constants.ts │ │ │ │ │ ├── amazon_cloudtrail │ │ │ │ │ │ ├── docker-image │ │ │ │ │ │ │ ├── requirements.txt │ │ │ │ │ │ │ ├── Dockerfile │ │ │ │ │ │ │ └── script.sh │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ └── constants.ts │ │ │ │ │ ├── amazon_redshift │ │ │ │ │ │ ├── docker-image │ │ │ │ │ │ │ ├── requirements.txt │ │ │ │ │ │ │ ├── Dockerfile │ │ │ │ │ │ │ ├── script.sh │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ ├── __test__ │ │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ └── constants.ts │ │ │ │ │ ├── google_analytics │ │ │ │ │ │ ├── docker-image │ │ │ │ │ │ │ ├── requirements.txt │ │ │ │ │ │ │ └── Dockerfile │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ └── preview │ │ │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ ├── file_upload │ │ │ │ │ │ ├── constants.ts │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ └── infra │ │ │ │ │ │ │ └── static │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── amazon_s3 │ │ │ │ │ │ ├── constants.ts │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ └── infra │ │ │ │ │ │ │ └── static │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── google_storage │ │ │ │ │ │ ├── constants.ts │ │ │ │ │ │ ├── docker-image │ │ │ │ │ │ │ └── Dockerfile │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ └── preview │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ ├── jdbc_mysql5 │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── constants.ts │ │ │ │ │ │ └── infra │ │ │ │ │ │ │ └── static │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── jdbc_oracle │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── constants.ts │ │ │ │ │ │ └── infra │ │ │ │ │ │ │ └── static │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── google_bigquery │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── docker-image │ │ │ │ │ │ │ └── Dockerfile │ │ │ │ │ │ └── preview │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ ├── jdbc_postgresql │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── constants.ts │ │ │ │ │ │ └── infra │ │ │ │ │ │ │ └── static │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── jdbc_sqlserver │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── preview │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── constants.ts │ │ │ │ │ │ └── infra │ │ │ │ │ │ │ └── static │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── amazon_kinesis │ │ │ │ │ │ └── infra │ │ │ │ │ │ └── static │ │ │ │ │ │ └── index.ts │ │ │ │ ├── common │ │ │ │ │ ├── common │ │ │ │ │ │ └── docker-image │ │ │ │ │ │ │ └── requirements.txt │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── jdbc │ │ │ │ │ │ └── types.ts │ │ │ │ │ └── amazon │ │ │ │ │ │ └── infra.ts │ │ │ │ ├── .gitignore │ │ │ │ ├── index.ts │ │ │ │ ├── jest.config.ts │ │ │ │ └── register-infra.ts │ │ │ ├── common │ │ │ │ ├── jwt-signer │ │ │ │ │ ├── README.md │ │ │ │ │ └── sdk.ts │ │ │ │ ├── constructs │ │ │ │ │ ├── api │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── lambda-layer │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── code │ │ │ │ │ │ │ │ └── nodejs │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ └── api-client-lambda │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ └── federated-api │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── lambda │ │ │ │ │ │ └── index.ts │ │ │ │ ├── services │ │ │ │ │ ├── api │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── testing │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ ├── ddb │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ ├── default-entities │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ ├── environment │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── ddb │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── types │ │ │ │ │ │ ├── governance.ts │ │ │ │ │ │ ├── event-bridge.ts │ │ │ │ │ │ ├── service-config.ts │ │ │ │ │ │ ├── common.ts │ │ │ │ │ │ ├── machine.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── utils │ │ │ │ │ │ ├── gcp-storage-location-parser.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── object.ts │ │ │ │ ├── utils │ │ │ │ │ ├── index.ts │ │ │ │ │ └── operational-metrics-config.ts │ │ │ │ ├── index.ts │ │ │ │ └── env.ts │ │ │ ├── services │ │ │ │ ├── data-product │ │ │ │ │ ├── script-validation │ │ │ │ │ │ ├── .gitignore │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── handler │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── pyproject.toml │ │ │ │ │ ├── components │ │ │ │ │ │ ├── schema-preview │ │ │ │ │ │ │ ├── docker-image │ │ │ │ │ │ │ │ ├── handlers │ │ │ │ │ │ │ │ │ ├── .gitignore │ │ │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ │ │ │ └── test_transform_scripts │ │ │ │ │ │ │ │ │ │ │ ├── drop_fields.py │ │ │ │ │ │ │ │ │ │ │ ├── select_fields.py │ │ │ │ │ │ │ │ │ │ │ └── bad_import_transform.py │ │ │ │ │ │ │ │ │ └── transform │ │ │ │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ │ └── define_transform_wrapper.template.py │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ └── spark-class │ │ │ │ │ │ │ └── dependencies │ │ │ │ │ │ │ │ └── run-fetch.sh │ │ │ │ │ │ └── creation-state-machine │ │ │ │ │ │ │ └── steps │ │ │ │ │ │ │ └── start-data-product-infra-deployment │ │ │ │ │ │ │ └── Dockerfile │ │ │ │ │ ├── dynamic-infrastructure │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── stacks │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── service-config.ts │ │ │ │ │ └── stack │ │ │ │ │ │ ├── index.test.ts │ │ │ │ │ │ ├── api-stack.test.ts │ │ │ │ │ │ ├── schema-preview-stack.test.ts │ │ │ │ │ │ ├── static-infrastructure-stack.test.ts │ │ │ │ │ │ └── built-in-transformation-statck.test.ts │ │ │ │ ├── api │ │ │ │ │ ├── api-gateway │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── service-config.ts │ │ │ │ │ ├── stack │ │ │ │ │ │ └── index.test.ts │ │ │ │ │ └── api │ │ │ │ │ │ └── routes │ │ │ │ │ │ └── base-paths.ts │ │ │ │ ├── query │ │ │ │ │ ├── api │ │ │ │ │ │ ├── mocks.ts │ │ │ │ │ │ └── types │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── service-config.ts │ │ │ │ │ ├── stack │ │ │ │ │ │ └── index.test.ts │ │ │ │ │ └── components │ │ │ │ │ │ └── s3 │ │ │ │ │ │ └── index.ts │ │ │ │ ├── administration │ │ │ │ │ ├── stack │ │ │ │ │ │ ├── visualisation-deployment │ │ │ │ │ │ │ ├── Dockerfile.DB │ │ │ │ │ │ │ ├── visualisation-deployment-spec.yml │ │ │ │ │ │ │ └── Dockerfile.Node │ │ │ │ │ │ └── index.test.ts │ │ │ │ │ └── service-config.ts │ │ │ │ ├── identity │ │ │ │ │ ├── service-config.ts │ │ │ │ │ └── stack │ │ │ │ │ │ └── index.test.ts │ │ │ │ ├── ontology │ │ │ │ │ ├── service-config.ts │ │ │ │ │ ├── stack │ │ │ │ │ │ └── index.test.ts │ │ │ │ │ ├── jest.setup.ts │ │ │ │ │ └── api │ │ │ │ │ │ └── mocks.ts │ │ │ │ ├── governance │ │ │ │ │ ├── service-config.ts │ │ │ │ │ ├── stack │ │ │ │ │ │ └── index.test.ts │ │ │ │ │ └── jest.setup.ts │ │ │ │ ├── notification │ │ │ │ │ ├── service-config.ts │ │ │ │ │ ├── stack │ │ │ │ │ │ └── index.test.ts │ │ │ │ │ └── jest.setup.ts │ │ │ │ └── query-parse-render │ │ │ │ │ ├── service-config.ts │ │ │ │ │ ├── stack │ │ │ │ │ └── index.test.ts │ │ │ │ │ └── jest.config.ts │ │ │ ├── index.ts │ │ │ ├── globals.d.ts │ │ │ ├── stacks │ │ │ │ └── ada-stack.test.ts │ │ │ ├── nested-stacks │ │ │ │ ├── common-stack.test.ts │ │ │ │ ├── kms-stack.test.ts │ │ │ │ ├── cognito-auth-stack.test.ts │ │ │ │ └── static-website-stack.test.ts │ │ │ ├── utils │ │ │ │ └── stack-utils.ts │ │ │ └── jest.config.ts │ │ └── built-docker-images │ │ │ └── .gitignore │ │ ├── solution │ │ ├── .gitignore │ │ ├── .env.example │ │ ├── cdk.json │ │ ├── jest.config.ts │ │ └── bin │ │ │ └── cdk-solution.test.ts │ │ ├── strings │ │ ├── src │ │ │ ├── i18n │ │ │ │ ├── .gitignore │ │ │ │ ├── i18n-node.ts │ │ │ │ └── en │ │ │ │ │ └── index.ts │ │ │ ├── dictionary │ │ │ │ ├── en │ │ │ │ │ ├── views │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── view │ │ │ │ │ │ │ ├── cost.ts │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── entities │ │ │ │ │ │ └── entity │ │ │ │ │ │ │ ├── common.ts │ │ │ │ │ │ │ ├── User.ts │ │ │ │ │ │ │ ├── Member.ts │ │ │ │ │ │ │ ├── Machine.ts │ │ │ │ │ │ │ ├── Script.ts │ │ │ │ │ │ │ ├── Lens.ts │ │ │ │ │ │ │ └── nested.ts │ │ │ │ │ ├── constants.ts │ │ │ │ │ └── core.ts │ │ │ │ └── index.ts │ │ │ ├── globals.d.ts │ │ │ └── util-types.ts │ │ ├── markdown │ │ │ └── view │ │ │ │ ├── public │ │ │ │ └── help.md │ │ │ │ ├── help.md │ │ │ │ ├── identity-provider │ │ │ │ └── help.md │ │ │ │ ├── query │ │ │ │ └── help.md │ │ │ │ ├── user │ │ │ │ ├── help.md │ │ │ │ └── help.detail.md │ │ │ │ ├── cost │ │ │ │ └── help.md │ │ │ │ ├── group │ │ │ │ ├── help.detail.md │ │ │ │ ├── help.update.md │ │ │ │ └── help.md │ │ │ │ └── budget │ │ │ │ └── help.md │ │ ├── .typesafe-i18n.json │ │ └── jest.config.ts │ │ ├── api │ │ ├── .gitignore │ │ ├── extended-client │ │ │ ├── __mocks__ │ │ │ │ └── index.ts │ │ │ ├── types │ │ │ │ └── index.ts │ │ │ ├── tsconfig.json │ │ │ └── mock │ │ │ │ ├── mocked.ts │ │ │ │ ├── index.ts │ │ │ │ └── mocked.browser.ts │ │ ├── openapitools.json │ │ ├── generators │ │ │ ├── openapi │ │ │ │ ├── generate-client.config.yaml │ │ │ │ ├── templates │ │ │ │ │ └── typescript-fetch │ │ │ │ │ │ └── modelEnumInterfaces.mustache │ │ │ │ ├── generate.ts │ │ │ │ └── constants.ts │ │ │ └── tsconfig.json │ │ ├── README.md │ │ └── tsconfig.json │ │ ├── website │ │ ├── public │ │ │ ├── .gitignore │ │ │ ├── robots.txt │ │ │ ├── favicon.ico │ │ │ └── manifest.json │ │ ├── src │ │ │ ├── views │ │ │ │ ├── admin │ │ │ │ │ ├── index.ts │ │ │ │ │ └── views │ │ │ │ │ │ └── index.ts │ │ │ │ ├── budget │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── views │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── components │ │ │ │ │ │ ├── PercentagesSelectorCustomComponent │ │ │ │ │ │ └── index.tsx │ │ │ │ │ │ └── LandingPage │ │ │ │ │ │ └── index.tsx │ │ │ │ ├── cost │ │ │ │ │ ├── index.ts │ │ │ │ │ └── views │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── router.tsx │ │ │ │ ├── group │ │ │ │ │ ├── index.ts │ │ │ │ │ └── views │ │ │ │ │ │ └── index.ts │ │ │ │ ├── public │ │ │ │ │ ├── index.ts │ │ │ │ │ └── views │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── router.tsx │ │ │ │ ├── query │ │ │ │ │ ├── index.ts │ │ │ │ │ └── views │ │ │ │ │ │ └── index.ts │ │ │ │ ├── user │ │ │ │ │ ├── index.ts │ │ │ │ │ └── views │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── router.tsx │ │ │ │ ├── data-product │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── common │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── components │ │ │ │ │ │ ├── tables │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── views │ │ │ │ │ │ ├── Create │ │ │ │ │ │ └── components │ │ │ │ │ │ │ └── TransformsPlanner │ │ │ │ │ │ │ ├── index.tsx │ │ │ │ │ │ │ └── jsonschema-form │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── fields │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ │ ├── types.ts │ │ │ │ │ │ │ └── widgets │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── governance │ │ │ │ │ ├── index.ts │ │ │ │ │ └── views │ │ │ │ │ │ └── index.ts │ │ │ │ ├── visualisation │ │ │ │ │ ├── index.ts │ │ │ │ │ └── views │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── router.tsx │ │ │ │ ├── identity-provider │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── views │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── components │ │ │ │ │ │ └── IdpWizard │ │ │ │ │ │ └── schema │ │ │ │ │ │ └── provider-types │ │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ ├── connectors │ │ │ │ ├── index.ts │ │ │ │ ├── google │ │ │ │ │ └── common │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── testing.ts │ │ │ │ ├── connectors.ts │ │ │ │ ├── common │ │ │ │ │ ├── index.tsx │ │ │ │ │ └── types.ts │ │ │ │ └── icons │ │ │ │ │ └── icon_redshift.svg │ │ │ ├── setupTests.ts │ │ │ ├── core │ │ │ │ ├── provider │ │ │ │ │ ├── mock.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── MetaProvider │ │ │ │ │ │ └── index.tsx │ │ │ │ ├── theme │ │ │ │ │ └── index.ts │ │ │ │ └── App │ │ │ │ │ └── components │ │ │ │ │ └── PersistentNotifications │ │ │ │ │ └── index.tsx │ │ │ ├── common │ │ │ │ ├── components │ │ │ │ │ ├── summary │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── columns │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── query │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── SqlViewer │ │ │ │ │ │ │ └── index.tsx │ │ │ │ │ │ └── SqlEditor │ │ │ │ │ │ │ └── index.tsx │ │ │ │ │ ├── errors │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── controlled │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── tables │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── form-renderer │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── entity │ │ │ │ │ ├── data-product │ │ │ │ │ │ ├── index.tsx │ │ │ │ │ │ ├── components │ │ │ │ │ │ │ └── index.tsx │ │ │ │ │ │ └── utils.ts │ │ │ │ │ ├── ontology │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── user │ │ │ │ │ │ ├── components │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ ├── constants.ts │ │ │ │ │ │ └── utils.ts │ │ │ │ │ └── group │ │ │ │ │ │ ├── components │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── constants.ts │ │ │ │ ├── hooks │ │ │ │ │ ├── use-noop.tsx │ │ │ │ │ ├── index.tsx │ │ │ │ │ ├── use-stateful-ref.tsx │ │ │ │ │ └── use-immediate-effect.tsx │ │ │ │ ├── utils │ │ │ │ │ ├── time.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── misc.ts │ │ │ │ │ └── __tests__ │ │ │ │ │ │ └── data-product.test.ts │ │ │ │ └── sql │ │ │ │ │ └── parser.ts │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── hooks │ │ │ │ │ └── index.ts │ │ │ │ └── client │ │ │ │ │ └── __mocks__ │ │ │ │ │ └── index.ts │ │ │ ├── northstar-plus │ │ │ │ ├── layouts │ │ │ │ │ ├── AppLayout │ │ │ │ │ │ └── components │ │ │ │ │ │ │ ├── splitpanel.tsx │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── providers │ │ │ │ │ ├── index.ts │ │ │ │ │ └── NotificationProvider │ │ │ │ │ │ ├── components │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ └── README.md │ │ │ ├── config │ │ │ │ ├── index.ts │ │ │ │ └── env.ts │ │ │ ├── globals.d.ts │ │ │ ├── testing │ │ │ │ ├── interaction.ts │ │ │ │ └── __fixtures__ │ │ │ │ │ └── api-access-policies.ts │ │ │ ├── index.css │ │ │ └── reportWebVitals.ts │ │ ├── __mocks__ │ │ │ ├── @ada │ │ │ │ ├── strings │ │ │ │ │ └── markdown-file.ts │ │ │ │ └── api-client │ │ │ │ │ └── index.ts │ │ │ ├── svg.ts │ │ │ ├── react-markdown.tsx │ │ │ └── axios.ts │ │ ├── .env │ │ ├── tsconfig.test.json │ │ ├── jest-puppeteer.config.js │ │ ├── puppeteer │ │ │ └── jest.config.ts │ │ ├── .gitignore │ │ ├── .env.development │ │ └── scripts │ │ │ └── copydocs.sh │ │ ├── athena-lens │ │ ├── .gitignore │ │ ├── lombok.config │ │ ├── package.json │ │ └── .idea │ │ │ └── copyright │ │ │ └── profiles_settings.xml │ │ ├── query-parse-render-lambdas │ │ ├── .gitignore │ │ ├── lombok.config │ │ ├── no-logging.properties │ │ ├── .idea │ │ │ └── copyright │ │ │ │ ├── main_license.xml │ │ │ │ └── profiles_settings.xml │ │ ├── README.md │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── ada │ │ │ │ └── query │ │ │ │ └── parserender │ │ │ │ └── exceptions │ │ │ │ ├── NotAQueryException.java │ │ │ │ ├── CircularQueryReferenceException.java │ │ │ │ └── InvalidDataProductsInQueryException.java │ │ └── package.json │ │ ├── athena-utilities │ │ ├── .gitignore │ │ ├── lombok.config │ │ ├── README.md │ │ └── package.json │ │ ├── common │ │ ├── README.md │ │ ├── src │ │ │ ├── solution │ │ │ │ └── index.ts │ │ │ ├── governance │ │ │ │ ├── index.ts │ │ │ │ └── data-product.ts │ │ │ ├── query │ │ │ │ └── index.ts │ │ │ ├── ontology │ │ │ │ ├── index.ts │ │ │ │ └── namespace.ts │ │ │ ├── utils │ │ │ │ ├── index.ts │ │ │ │ ├── time.ts │ │ │ │ ├── crypto.ts │ │ │ │ └── date.ts │ │ │ ├── identity │ │ │ │ ├── cognito.ts │ │ │ │ ├── index.ts │ │ │ │ ├── access-request.ts │ │ │ │ ├── groups.ts │ │ │ │ └── api-access-policy.ts │ │ │ ├── data-product │ │ │ │ ├── index.ts │ │ │ │ ├── domain.ts │ │ │ │ └── scripts.ts │ │ │ ├── api │ │ │ │ ├── headers.ts │ │ │ │ ├── caller-details.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── tsconfig.test.json │ │ └── jest.config.ts │ │ ├── transforms │ │ ├── README.md │ │ ├── src │ │ │ ├── index.ts │ │ │ ├── ui │ │ │ │ └── index.ts │ │ │ ├── transforms │ │ │ │ ├── drop_fields │ │ │ │ │ └── drop_fields.py │ │ │ │ ├── select_fields │ │ │ │ │ └── select_fields.py │ │ │ │ ├── parquet_data_type_map │ │ │ │ │ └── parquet_data_type_map.py │ │ │ │ └── json_relationalize │ │ │ │ │ └── json_relationalize_glue.py │ │ │ └── index.test.ts │ │ └── jest.config.ts │ │ └── cdk-core │ │ ├── src │ │ ├── utils │ │ │ ├── index.ts │ │ │ └── stack.ts │ │ ├── cfn-nag │ │ │ └── index.ts │ │ ├── testing │ │ │ └── index.ts │ │ ├── namespace │ │ │ └── index.ts │ │ └── index.ts │ │ ├── README.md │ │ └── jest.config.ts ├── cypress │ ├── fixtures │ │ ├── createDataProduct.json │ │ ├── sample_trail_data.json.gz │ │ └── socialGeneratedData.csv │ ├── support │ │ └── e2e.ts │ ├── tsconfig.json │ └── plugins │ │ └── index.ts ├── header.txt ├── scripts │ ├── build-java.sh │ └── Dockerfile.java-build ├── images │ └── solution_architecture_diagram.png ├── lerna.json ├── .prettierrc └── .eslintignore ├── .github ├── PULL_REQUEST_TEMPLATE.md └── ISSUE_TEMPLATE │ └── feature_request.md └── CODE_OF_CONDUCT.md /source/@types/.gitignore: -------------------------------------------------------------------------------- 1 | !* 2 | !*.d.ts 3 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/scripts/.gitignore: -------------------------------------------------------------------------------- 1 | scan-images -------------------------------------------------------------------------------- /source/packages/@ada/solution/.gitignore: -------------------------------------------------------------------------------- 1 | cdk.context.json 2 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/i18n/.gitignore: -------------------------------------------------------------------------------- 1 | i18n-types.ts 2 | -------------------------------------------------------------------------------- /source/packages/@ada/api/.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | build 3 | 4 | client 5 | docs 6 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/__init__.py: -------------------------------------------------------------------------------- 1 | from .sources import * 2 | -------------------------------------------------------------------------------- /source/cypress/fixtures/createDataProduct.json: -------------------------------------------------------------------------------- 1 | { 2 | "dataProductId": "test" 3 | } 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/public/.gitignore: -------------------------------------------------------------------------------- 1 | runtime-config.* 2 | vendor 3 | docs 4 | -------------------------------------------------------------------------------- /source/packages/@ada/athena-lens/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | 3 | .vscode/* 4 | .idea/* 5 | !.idea/copyright 6 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/built-docker-images/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | *.fingerprint 3 | * 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /source/packages/@ada/query-parse-render-lambdas/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | 3 | .idea/* 4 | !.idea/copyright 5 | -------------------------------------------------------------------------------- /source/packages/@ada/athena-utilities/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | 3 | .vscode/* 4 | .idea/* 5 | !.idea/copyright 6 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/poetry.toml: -------------------------------------------------------------------------------- 1 | [virtualenvs] 2 | in-project = true 3 | create = true 4 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/public/help.md: -------------------------------------------------------------------------------- 1 | `VIEW - ROOT` 2 | 3 | TODO - help for public page 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_dynamodb/docker-image/requirements.txt: -------------------------------------------------------------------------------- 1 | awswrangler==3.7.1 2 | -------------------------------------------------------------------------------- /source/packages/@ada/athena-lens/lombok.config: -------------------------------------------------------------------------------- 1 | config.stopBubbling = true 2 | lombok.addLombokGeneratedAnnotation = true -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudwatch/docker-image/requirements.txt: -------------------------------------------------------------------------------- 1 | awswrangler==3.7.1 2 | -------------------------------------------------------------------------------- /source/packages/@ada/athena-utilities/lombok.config: -------------------------------------------------------------------------------- 1 | config.stopBubbling = true 2 | lombok.addLombokGeneratedAnnotation = true -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/mongodb/docker-image/requirements.txt: -------------------------------------------------------------------------------- 1 | pymongo==4.3.3 2 | awswrangler==3.7.1 -------------------------------------------------------------------------------- /source/packages/@ada/website/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudtrail/docker-image/requirements.txt: -------------------------------------------------------------------------------- 1 | awswrangler==3.7.1 2 | psutil 3 | -------------------------------------------------------------------------------- /source/header.txt: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | -------------------------------------------------------------------------------- /source/packages/@ada/query-parse-render-lambdas/lombok.config: -------------------------------------------------------------------------------- 1 | config.stopBubbling = true 2 | lombok.addLombokGeneratedAnnotation = true -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_redshift/docker-image/requirements.txt: -------------------------------------------------------------------------------- 1 | awswrangler==3.7.1 2 | redshift_connector==2.1.0 3 | -------------------------------------------------------------------------------- /source/packages/@ada/query-parse-render-lambdas/no-logging.properties: -------------------------------------------------------------------------------- 1 | # Turn off any java.util.Loggers (or use SEVERE to see problems) 2 | .level=OFF -------------------------------------------------------------------------------- /source/packages/@ada/common/README.md: -------------------------------------------------------------------------------- 1 | # common 2 | 3 | This package contains constants and other common code that may be shared between other packages 4 | -------------------------------------------------------------------------------- /source/packages/@ada/solution/.env.example: -------------------------------------------------------------------------------- 1 | adminPhoneNumber=+15555550123 2 | adminEmail=example@example.com 3 | adminMFA=OPTIONAL 4 | advancedSecurityMode=OFF 5 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/help.md: -------------------------------------------------------------------------------- 1 | This is "default" solution help panel. TODO! 2 | 3 | ### h4 section header 4 | 5 | #### h5 section header 6 | -------------------------------------------------------------------------------- /source/packages/@ada/transforms/README.md: -------------------------------------------------------------------------------- 1 | # @ada/transforms 2 | 3 | This package contains definitions and python code for built-in transformation scripts. 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/jwt-signer/README.md: -------------------------------------------------------------------------------- 1 | # jwt-signer 2 | 3 | This package contains jwt signing method utilised for machine and internal token 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/script-validation/.gitignore: -------------------------------------------------------------------------------- 1 | htmlcov 2 | .coverage 3 | .pytest_cache 4 | coverage.xml 5 | env 6 | __pycache__ 7 | -------------------------------------------------------------------------------- /source/scripts/build-java.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | set -e 3 | 4 | cd /source/packages/@ada/$1 5 | shift 6 | echo "mvn clean $@" 7 | mvn clean $@ 8 | 9 | 10 | -------------------------------------------------------------------------------- /source/images/solution_architecture_diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/automated-data-analytics-on-aws/main/source/images/solution_architecture_diagram.png -------------------------------------------------------------------------------- /source/packages/@ada/website/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/automated-data-analytics-on-aws/main/source/packages/@ada/website/public/favicon.ico -------------------------------------------------------------------------------- /source/cypress/fixtures/sample_trail_data.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/automated-data-analytics-on-aws/main/source/cypress/fixtures/sample_trail_data.json.gz -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/handlers/.gitignore: -------------------------------------------------------------------------------- 1 | # connectors is copied from @ada/infra/src/connectors/**/*.py 2 | connectors 3 | -------------------------------------------------------------------------------- /source/packages/@ada/cdk-core/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './stack'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/solution/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './info'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/admin/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/budget/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/cost/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/group/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/public/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/query/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/user/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/governance/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './data-product'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/.typesafe-i18n.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/typesafe-i18n@5.5.2/schema/typesafe-i18n.json", 3 | 4 | "baseLocale": "en", 5 | "generateOnlyTypes": true 6 | } 7 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/connectors/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './connectors'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/setupTests.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import '@testing-library/jest-dom'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/data-product/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/governance/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/visualisation/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/api/extended-client/__mocks__/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from '../mock/mocked'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/core/provider/mock.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './MetaProvider/mock'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/identity-provider/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './views'; 4 | -------------------------------------------------------------------------------- /source/lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": ["packages/*", "packages/@ada/*"], 3 | "npmClient": "yarn", 4 | "useWorkspaces": true, 5 | "rejectCycles": "true", 6 | "concurrency": 3, 7 | "version": "0.0.0" 8 | } 9 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/constructs/api/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './federated-api'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/api/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './microservice-api'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/testing/api/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './events'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * as VIEW from './view'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/components/summary/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './columns'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/connectors/google/common/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './wizard'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/constructs/api/lambda-layer/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './layer'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/ddb/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './dynamo-crud-operations'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/__mocks__/@ada/strings/markdown-file.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export default '# MARKDOWN TEXT' 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/api/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './client'; 4 | export * from './hooks'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/data-product/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './components'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/connectors/connectors.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from '@ada/infra/dist/connectors'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/query/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './status'; 4 | 5 | export * from './lens'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/testing/ddb/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './local-dynamo-client'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/common/common/docker-image/requirements.txt: -------------------------------------------------------------------------------- 1 | boto3==1.34.65 2 | botocore==1.34.65 3 | smart_open[s3]==7.0.1 4 | pandas==2.2.1 5 | pyarrow==15.0.2 6 | cryptography==42.0.4 7 | cmake==3.28.3 -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/common/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * as Google from './google/definition'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/northstar-plus/layouts/AppLayout/components/splitpanel.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export {}; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/northstar-plus/providers/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './NotificationProvider'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/api/openapitools.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../node_modules/@openapitools/openapi-generator-cli/config.schema.json", 3 | "spaces": 2, 4 | "generator-cli": { 5 | "version": "5.2.1" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/dynamic-infrastructure/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './stacks'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/identity-provider/help.md: -------------------------------------------------------------------------------- 1 | This page displays a list of federated identity providers. 2 | 3 | `Admins` can set up and allow users to sign in through external federated identity providers. -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/admin/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { AdminRouter as Router } from './router'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/testing/default-entities/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './data-product'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/.gitignore: -------------------------------------------------------------------------------- 1 | # Actual dependencies and poetry.lock file are maintained in the schema-preview docker image 2 | # ../services/data-product/components/schema-preview/docker-image 3 | poetry.lock 4 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { en } from './en'; 4 | 5 | export { 6 | en, 7 | }; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/website/__mocks__/svg.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export default 'SvgrURL'; 4 | export const ReactComponent = 'div'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/components/summary/columns/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './EntitySummaryColumn'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/data-product/components/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './DataProductLink'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/core/theme/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { NORTHSTAR_COLORS } from 'aws-northstar/config/color'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/query/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export { QueryRootView as RootView } from './Root'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_analytics/docker-image/requirements.txt: -------------------------------------------------------------------------------- 1 | google-api-core==2.17.1 2 | google-api-python-client==1.7.3 3 | oauth2client==4.1.2 4 | google-analytics-data==0.18.7 5 | grpcio==1.62.1 6 | 7 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/mongodb/docker-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ada:data-import-base-image 2 | 3 | COPY requirements.txt requirements.txt 4 | RUN pip3 install -r requirements.txt 5 | COPY . . 6 | 7 | CMD ["/script.sh"] -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | *Issue #, if available:* 2 | 3 | *Description of changes:* 4 | 5 | By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. 6 | -------------------------------------------------------------------------------- /source/packages/@ada/cdk-core/src/cfn-nag/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './aspect'; 4 | 5 | export * from './cfn-nag-suppressions'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/ontology/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './namespace'; 4 | 5 | export * from './ontology-helper'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/constructs/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './lambda'; 4 | 5 | export * from './iam/policies'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/globals.d.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | declare module "*.md" { 4 | const path: string; 5 | export default path; 6 | } 7 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/ontology/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './utils'; 4 | export * from './constants'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/core/provider/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './ApiProvider'; 4 | export * from './MetaProvider'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudtrail/docker-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ada:data-import-base-image 2 | 3 | COPY requirements.txt requirements.txt 4 | RUN pip3 install -r requirements.txt 5 | COPY . . 6 | 7 | CMD ["/script.sh"] -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudwatch/docker-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ada:data-import-base-image 2 | 3 | COPY requirements.txt requirements.txt 4 | RUN pip3 install -r requirements.txt 5 | COPY . . 6 | 7 | CMD ["/script.sh"] -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_dynamodb/docker-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ada:data-import-base-image 2 | 3 | COPY requirements.txt requirements.txt 4 | RUN pip3 install -r requirements.txt 5 | COPY . . 6 | 7 | CMD ["/script.sh"] -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_redshift/docker-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ada:data-import-base-image 2 | 3 | COPY requirements.txt requirements.txt 4 | RUN pip3 install -r requirements.txt 5 | COPY . . 6 | 7 | CMD ["/script.sh"] -------------------------------------------------------------------------------- /source/packages/@ada/website/__mocks__/@ada/api-client/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | // @ts-ignore 4 | export * from '@ada/api-client/__mocks__/index'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/components/query/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './SqlEditor'; 4 | export * from './SqlViewer'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/hooks/use-noop.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export function useNoop(result: T): T { 4 | return result; 5 | } 6 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudtrail/docker-image/script.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # This script is meant to run in ECS 4 | 5 | echo "starting import ..." 6 | 7 | python3 import.py 8 | 9 | echo "done" 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/mongodb/docker-image/script.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # This script is meant to run in ECS 4 | 5 | echo "starting import ..." 6 | 7 | python3 mongodb_data_import.py 8 | 9 | echo "done" 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/api/api-gateway/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './api-request'; 4 | 5 | export * from './api-response'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/components/errors/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './ErrorAlert'; 4 | export * from './ErrorBoundary'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/user/components/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './UserLink'; 4 | export * from './UserLinkList'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/config/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './env'; 4 | export * from './flags'; 5 | export * from './persistence'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/connectors/google/common/testing.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from '@ada/infra/dist/connectors/common/google/testing'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './time'; 4 | 5 | export * from './crypto'; 6 | 7 | export * from './date'; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/file_upload/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const UPLOAD_FILE_WIZARD_FIELD = 'wizard.upload.file'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/solution/cdk.json: -------------------------------------------------------------------------------- 1 | { 2 | "app": "npx ts-node bin/cdk-solution.ts", 3 | "context": { 4 | "@aws-cdk/customresources:installLatestAwsSdkDefault": false, 5 | "@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /source/packages/@ada/transforms/src/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './core'; 4 | 5 | export * from './transforms'; 6 | 7 | export * from './ui'; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/group/components/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './GroupLink'; 4 | export * from './GroupLinkList'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/constructs/lambda/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './typescript-function'; 4 | 5 | export * from './java-function'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_dynamodb/docker-image/script.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # This script is meant to run in ECS 4 | 5 | echo "starting import ..." 6 | 7 | python3 dynamodb_data_import.py 8 | 9 | echo "done" 10 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/data-product/common/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './state'; 4 | export * as PLACEHOLDERS from './placeholders'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/api/extended-client/types/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './api'; 4 | 5 | export * from './api-meta'; 6 | 7 | export * from './entity'; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/api/generators/openapi/generate-client.config.yaml: -------------------------------------------------------------------------------- 1 | files: 2 | modelGenericInterfaces.mustache: 3 | destinationFilename: .ts 4 | templateType: Model 5 | modelEnum.mustache: 6 | destinationFilename: .ts 7 | templateType: Model 8 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudwatch/docker-image/script.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # This script is meant to run in ECS 4 | 5 | echo "starting import ..." 6 | 7 | python3 cloudwatch_data_import.py 8 | 9 | echo "done" 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_redshift/docker-image/script.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # This script is meant to run in ECS 4 | 5 | echo "starting import ..." 6 | 7 | python3 redshift_data_import.py 8 | 9 | echo "done import" 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/dynamic-infrastructure/stacks/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export * from './dynamic-infrastructure-stack-base'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/globals.d.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | declare module "*.md"; 4 | 5 | declare module "rehype-raw"; 6 | declare module "rehype-add-classes"; 7 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/northstar-plus/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './providers'; 4 | export * from './components'; 5 | export * from './layouts'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/data-product/components/tables/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './AllDomainsTable'; 4 | export * from './DomainTable'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/data-product/views/Create/components/TransformsPlanner/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './components/TransformBuilder'; 4 | -------------------------------------------------------------------------------- /source/packages/@ada/api/README.md: -------------------------------------------------------------------------------- 1 | # @ada/api package 2 | 3 | This package contains all the "api" peripheral, such as generated sdk specs, sdk clients, docs, and utils; 4 | it does **not** contain the source of api definition which comes from CDK constructs in the infra. 5 | -------------------------------------------------------------------------------- /source/packages/@ada/cdk-core/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './asset-staging'; 4 | 5 | export * from './stack'; 6 | 7 | export * from './template'; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_s3/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const PATTERN_S3_PATH = /^s3:\/\/(?[^/]+)(?:\/(?.+))?$/; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/group/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './components'; 4 | export * from './constants'; 5 | export * from './utils'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_storage/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const PATTERN_GS_PATH = /^gs:\/\/(?[^/]+)(?:\/(?.+))?$/; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/api/generators/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig-base.json", 3 | "compilerOptions": { 4 | "noEmit": true, 5 | "rootDir": ".", 6 | "composite": true, 7 | "tsBuildInfoFile": "../build/generatorsBuildInfoFile", 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/utils/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './assets'; 4 | 5 | export * from './tags'; 6 | 7 | export * from './operational-metrics-config' 8 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/query/help.md: -------------------------------------------------------------------------------- 1 | The Query workbench allows you to run SQL-like queries on Data Products that have been successfully imported. 2 | 3 | You can: 4 | 5 | - Save queries or share them within a domain. 6 | - Export query results in a .CSV format. 7 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/northstar-plus/layouts/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './AppLayout'; 4 | export * from './PageLayout'; 5 | export * from './WizardLayout'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/cost/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { CostRouter as Router } from './router'; 4 | export { CostRootView as RootView } from './Root'; 5 | -------------------------------------------------------------------------------- /source/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "jsxSingleQuote": false, 4 | "semi": true, 5 | "tabWidth": 2, 6 | "bracketSpacing": true, 7 | "jsxBracketSameLine": false, 8 | "arrowParens": "always", 9 | "trailingComma": "all", 10 | "printWidth": 120 11 | } 12 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/testing/environment/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './build-cdk-environment'; 4 | 5 | export * from './mock-api-service-stack'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/budget/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { BudgetRouter as Router } from './router'; 4 | export { BudgetRootView as RootView } from './Root'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/public/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { PublicRouter as Router } from './router'; 4 | export { PublicRootView as RootView } from './Root'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/cdk-core/src/namespace/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export * from './global-uuid/index'; 5 | 6 | export * from './global-uuid/common'; 7 | 8 | export * from './utils'; 9 | -------------------------------------------------------------------------------- /source/packages/@ada/common/tsconfig.test.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "allowJs": true, 5 | "types": ["jest", "ts-jest"] 6 | }, 7 | "include": [ 8 | "src/**/*", 9 | "tst/**/*", 10 | "setupTests.ts" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { Connectors } from './connectors'; 4 | 5 | export * from './stacks/ada-stack'; 6 | 7 | export * from './common/services/types'; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/northstar-plus/providers/NotificationProvider/components/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './NotificationRenderer'; 4 | export * from './NotificationButton'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/identity/cognito.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export enum CognitoTokenTypes { 4 | ACCESS = 'access', 5 | ID = 'id', 6 | } 7 | 8 | export const ROOT_ADMIN_ID = 'root_admin'; 9 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/utils/time.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export const timestampToDateString = (timestamp?: string) => 4 | timestamp ? new Date(timestamp).toLocaleDateString() : 'N/A'; 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './constructs'; 4 | 5 | export * from './utils'; 6 | 7 | export * from './env'; 8 | 9 | export * from './context'; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/components/controlled/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './ControlledKeyValuePair'; 4 | export * from './ControlledSelect'; 5 | export * from './ControlledTextarea'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/visualisation/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { VisualisationRouter as Router } from './router'; 4 | 5 | export { VisualisationRootView as RootView } from './Root'; 6 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/connectors/common/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './types'; 4 | export * from './SourceDetailsSummary'; 5 | export * from './sub-form'; 6 | export * from './update-trigger'; 7 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/mongodb/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/__mocks__/react-markdown.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import React from 'react' 4 | 5 | export const ReactMarkdown: React.FC = ({ children }) => <>{children}; 6 | 7 | export default ReactMarkdown; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/northstar-plus/layouts/AppLayout/components/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './Sidebar'; 4 | export * from './help'; 5 | export * from './layout'; 6 | export * from './splitpanel'; 7 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_s3/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/file_upload/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_storage/docker-image/Dockerfile: -------------------------------------------------------------------------------- 1 | 2 | FROM ada:data-import-base-image 3 | 4 | RUN curl -sSL https://sdk.cloud.google.com | bash > /dev/null 5 | ENV PATH $PATH:/root/google-cloud-sdk/bin 6 | 7 | RUN pip3 install gsutil 8 | COPY . . 9 | 10 | CMD ["/script.sh"] 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_mysql5/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_oracle/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/user/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './types'; 4 | export * from './hooks'; 5 | export * from './components'; 6 | export * from './constants'; 7 | export * from './utils'; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/northstar-plus/providers/NotificationProvider/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './components'; 4 | export * from './context'; 5 | export * from './provider'; 6 | export * from './types'; 7 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudtrail/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudwatch/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_dynamodb/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_redshift/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_analytics/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_bigquery/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_storage/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_postgresql/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_sqlserver/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/components/tables/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './BaseTable'; 4 | export * from './QueryResultTable'; 5 | export * from './PaginatedQueryResultTable'; 6 | export * from './columns'; 7 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/data-product/views/Create/components/TransformsPlanner/jsonschema-form/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './fields'; 4 | 5 | export * from './widgets'; 6 | 7 | export * from './types'; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/types/governance.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { DataProductAccessLevel } from '@ada/api'; 4 | 5 | export interface DataProductPermissions { 6 | [group: string]: DataProductAccessLevel; 7 | } 8 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/mongodb/docker-image/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/script-validation/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/components/form-renderer/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './custom-components'; 4 | export * from './FormRenderer'; 5 | export * from './FileUpload'; 6 | export * from './NameAndIdentifier'; 7 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Code of Conduct 2 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 3 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 4 | opensource-codeofconduct@amazon.com with any additional questions or comments. 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/constructs/api/federated-api/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './base'; 4 | 5 | export * from './federated-api'; 6 | 7 | export * from '../common'; 8 | 9 | export * from '../utils'; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_s3/preview/__tests__/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/mongodb/preview/__tests__/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/cypress/support/e2e.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | // Import commands.js using ES2015 syntax: 5 | import './commands'; 6 | import 'cypress-fail-fast'; 7 | 8 | // Alternatively you can use CommonJS syntax: 9 | // require('./commands') 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudwatch/docker-image/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_dynamodb/docker-image/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_redshift/docker-image/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_redshift/preview/__test__/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/script-validation/handler/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/user/help.md: -------------------------------------------------------------------------------- 1 | The Users page displays a list of users currently federated into the Automated Data Analytics on AWS application. You can select the user name to view additional user details such as: 2 | 3 | - User profile 4 | - Permissions 5 | - Integration endpoints 6 | - API Keys 7 | - API access details 8 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/user/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export { UserRouter as Router } from './router'; 5 | export { UserDetailView as DetailView } from './Detail'; 6 | export { UserRootView as RootView } from './Root'; 7 | -------------------------------------------------------------------------------- /source/cypress/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": [ 5 | "es5", 6 | "dom" 7 | ], 8 | "types": [ 9 | "cypress", 10 | "cypress-file-upload" 11 | ] 12 | }, 13 | "include": [ 14 | "**/*.ts" 15 | ] 16 | } -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudtrail/preview/__tests__/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudwatch/preview/__tests__/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_dynamodb/docker-image/__test__/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_dynamodb/preview/__tests__/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_analytics/preview/__tests__/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/query/api/mocks.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export const MOCK_QUERY_RESULT = { 4 | data: [ 5 | { name: 'Luke Skywalker', lightsaber: 'green' }, 6 | { name: 'Darth Vader', lightsaber: 'red' }, 7 | ], 8 | }; 9 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/cost/help.md: -------------------------------------------------------------------------------- 1 | Admins and privileged users can visualize AWS service usage costs through the Cost Explorer. 2 | 3 | Cost explorer from AWS console needs to be enabled 4 | 5 | - Use `Account Costs` to see costs grouped by date in the last 30/60/90 days 6 | - Use `Service Costs` to see costs grouped by AWS Services -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/i18n/i18n-node.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { i18n } from './i18n-util' 4 | import { loadAllLocales } from './i18n-util.sync' 5 | 6 | loadAllLocales() 7 | 8 | export const L = i18n() 9 | 10 | export default L 11 | -------------------------------------------------------------------------------- /source/packages/@ada/website/__mocks__/axios.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import mockAxios from 'jest-mock-axios'; 4 | 5 | mockAxios.defaults.headers = { 6 | put: { 7 | 'Content-Type': 'mock', 8 | }, 9 | }; 10 | 11 | export default mockAxios; 12 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/administration/stack/visualisation-deployment/Dockerfile.DB: -------------------------------------------------------------------------------- 1 | FROM docker.io/library/postgres:15 2 | RUN set -e 3 | 4 | # replacement for volume config "- ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d" in original docker-compose file 5 | COPY ./docker/docker-entrypoint-initdb.d /docker-entrypoint-initdb.d -------------------------------------------------------------------------------- /source/packages/@ada/common/src/ontology/namespace.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | /** 5 | * Namespaces for ontology attributes 6 | */ 7 | export enum OntologyNamespace { 8 | DEFAULT = 'default', 9 | PII_CLASSIFICATIONS = 'pii_classifications', 10 | } 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/scripts/run-infra-tests.sh: -------------------------------------------------------------------------------- 1 | #/usr/bin/bash 2 | set -e 3 | 4 | apt update -y 5 | apt install -y openjdk-11-jdk-headless net-tools 6 | 7 | cd /source/packages/@ada/infra 8 | yarn test:node14 $@ 9 | 10 | # fix up the path 11 | sed -i "s|\/source\/packages\/|"$SOURCE_DIR"\/source\/packages\/|g" ./coverage/coverage-final.json 12 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/components/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './summary'; 4 | export * from './controlled'; 5 | export * from './errors'; 6 | export * from './form-renderer'; 7 | export * from './query'; 8 | export * from './tables'; 9 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/utils/time.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | /** 5 | * Sleep for the given number of milliseconds 6 | * @param ms milliseconds to sleep for 7 | */ 8 | export const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); 9 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/handlers/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/hooks/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './use-placeholder'; 4 | export * from './use-stateful-errors'; 5 | export * from './use-stateful-ref'; 6 | export * from './use-noop'; 7 | export * from './use-immediate-effect'; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/northstar-plus/README.md: -------------------------------------------------------------------------------- 1 | # Northstar "plus" 2 | 3 | The modules under this directory are used to extend/override functionality of the open-source [Northstar](https://northstar.aws-prototyping.cloud/) project. 4 | 5 | These modules will be considered for contributions back into Northstar to benefit the broader open-source community. 6 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/jwt-signer/sdk.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { AwsKMSInstance, AwsSecretsManagerInstance } from '@ada/infra/src/common/aws-sdk'; 4 | 5 | export const secrets = AwsSecretsManagerInstance(); 6 | 7 | export const kms = AwsKMSInstance(); 8 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/testing/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './api'; 4 | 5 | export * from './ddb'; 6 | 7 | export * from './default-entities'; 8 | 9 | export * from './environment'; 10 | 11 | export * from './stack-synth'; 12 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_analytics/docker-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ada:data-import-base-image 2 | 3 | RUN curl -sSL https://sdk.cloud.google.com | bash > /dev/null 4 | ENV PATH $PATH:/root/google-cloud-sdk/bin 5 | 6 | COPY requirements.txt requirements.txt 7 | RUN pip3 install -r requirements.txt 8 | COPY . . 9 | 10 | CMD ["/script.sh"] -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/query/service-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | import { MicroserviceConfig } from '../../common/services'; 5 | 6 | export default { 7 | serviceName: 'Query', 8 | serviceNamespace: 'query', 9 | } as MicroserviceConfig; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/query-parse-render-lambdas/.idea/copyright/main_license.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/utils/operational-metrics-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export interface OperationalMetricsConfig { 4 | awsSolutionId: string; 5 | awsSolutionVersion: string; 6 | anonymousDataUUID: string; 7 | sendAnonymousData: string; 8 | } 9 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_bigquery/docker-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ada:data-import-base-image 2 | 3 | RUN curl -sSL https://sdk.cloud.google.com | bash > /dev/null 4 | ENV PATH $PATH:/root/google-cloud-sdk/bin 5 | 6 | COPY requirements.txt requirements.txt 7 | RUN pip3 install -r requirements.txt 8 | COPY . . 9 | 10 | CMD ["/script.sh"] 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/api/service-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | import { MicroserviceConfig } from '../../common/services'; 5 | 6 | export default { 7 | serviceName: 'FederatedApi', 8 | serviceNamespace: 'api', 9 | } as MicroserviceConfig; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/handlers/__tests__/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/user/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { DefaultUser } from '@ada/infra'; 4 | 5 | // Can't import from @ada/infra in website, so have to just hardocde here 6 | export const SYSTEM_USER = 'system' as DefaultUser.SYSTEM; 7 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/env.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const ENV_DEVELOPMENT = process.env.NODE_ENV === 'development'; 5 | 6 | export const ENV_TEST = process.env.NODE_ENV === 'test'; 7 | 8 | export const ENV_PRODUCTION = process.env.NODE_ENV === 'production'; 9 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/administration/service-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { MicroserviceConfig } from '../../common/services'; 4 | 5 | export default { 6 | serviceName: 'Administration', 7 | serviceNamespace: 'administration', 8 | } as MicroserviceConfig; 9 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/identity/service-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | import { MicroserviceConfig } from '../../common/services'; 5 | 6 | export default { 7 | serviceName: 'IdentityApi', 8 | serviceNamespace: 'identity', 9 | } as MicroserviceConfig; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/ontology/service-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | import { MicroserviceConfig } from '../../common/services'; 5 | 6 | export default { 7 | serviceName: 'Ontology', 8 | serviceNamespace: 'ontology', 9 | } as MicroserviceConfig; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/data-product/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './dynamic-infrastructure'; 4 | 5 | export * from './scripts'; 6 | 7 | export * from './upload-data-product'; 8 | 9 | export * from './domain'; 10 | 11 | export * from './data-product'; 12 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/governance/service-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | import { MicroserviceConfig } from '../../common/services'; 5 | 6 | export default { 7 | serviceName: 'Governance', 8 | serviceNamespace: 'governance', 9 | } as MicroserviceConfig; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/website/.env: -------------------------------------------------------------------------------- 1 | SKIP_PREFLIGHT_CHECK=true 2 | 3 | # Disable eslint from react-scripts since we manage eslint at the root of the monorepo 4 | DISABLE_ESLINT_PLUGIN=true 5 | 6 | # Do not use inline javascript for CSP 7 | INLINE_RUNTIME_CHUNK=false 8 | 9 | # Only used in development to test content security policy, for prod make it empy 10 | REACT_APP_CSP='' 11 | -------------------------------------------------------------------------------- /source/packages/@ada/api/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "files": [], // this root tsconfig just exists to compose sub-projects 3 | "references": [ 4 | { 5 | "path": "./generators" 6 | }, 7 | { 8 | "path": "./extended-client" 9 | }, 10 | ], 11 | "compilerOptions": { 12 | "esModuleInterop": true, 13 | "experimentalDecorators": true, 14 | }, 15 | } 16 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/api/headers.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export enum AdditionalHeaders { 5 | ID_TOKEN = 'x-id-token', 6 | } 7 | 8 | export enum AuthorizationType { 9 | BEARER = 'bearer', 10 | API_KEY = 'api-key', 11 | INTERNAL_TOKEN = 'internal-token', 12 | } 13 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/service-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | import { MicroserviceConfig } from '../../common/services'; 5 | 6 | export default { 7 | serviceName: 'DataProduct', 8 | serviceNamespace: 'data-product', 9 | } as MicroserviceConfig; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/notification/service-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | import { MicroserviceConfig } from '../../common/services'; 5 | 6 | export default { 7 | serviceName: 'Notification', 8 | serviceNamespace: 'notification', 9 | } as MicroserviceConfig; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/api/hooks/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { api } from '../client'; 4 | import { generateApiHooks } from './generator'; 5 | 6 | export * from './generator'; 7 | 8 | export const apiHooks = generateApiHooks(api); 9 | 10 | export default apiHooks; 11 | -------------------------------------------------------------------------------- /source/scripts/Dockerfile.java-build: -------------------------------------------------------------------------------- 1 | FROM public.ecr.aws/docker/library/amazoncorretto:11 2 | 3 | RUN yum update -y && yum install -y wget gzip tar 4 | RUN mkdir /maven && cd /maven && \ 5 | wget https://archive.apache.org/dist/maven/maven-3/3.9.1/binaries/apache-maven-3.9.1-bin.tar.gz && \ 6 | tar xzvf apache-maven-3.9.1-bin.tar.gz 7 | ENV PATH="/maven/apache-maven-3.9.1/bin:$PATH" 8 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/utils/gcp-storage-location-parser.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { S3Location } from '@ada/api'; 4 | import { s3PathJoin } from './s3-location-parser'; 5 | 6 | export const toGSPath = ({ bucket, key }: S3Location): string => `gs://${s3PathJoin(bucket, key)}`; 7 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/group/help.detail.md: -------------------------------------------------------------------------------- 1 | You can view and edit group details, including adding new members to the group. 2 | 3 | - To request access to a specific group, select **Request Access**. 4 | - To add a new member, choose the user you want to add to the group and select **Add**. 5 | 6 | The **Access Level** section displays the current permissions assigned to the group. -------------------------------------------------------------------------------- /source/packages/@ada/website/tsconfig.test.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "allowJs": true, 5 | "types": ["jest", "ts-jest", "testing-library__react"], 6 | "module": "ESNext", 7 | "target": "ES6", 8 | "jsx": "react-jsx", 9 | }, 10 | "include": [ 11 | "src/**/*", 12 | "tst/**/*", 13 | "setupTests.ts" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /source/packages/@ada/api/generators/openapi/templates/typescript-fetch/modelEnumInterfaces.mustache: -------------------------------------------------------------------------------- 1 | /** 2 | * {{#lambda.indented_star_1}}{{{unescapedDescription}}}{{/lambda.indented_star_1}} 3 | * @export 4 | * @enum {string} 5 | */ 6 | export type {{classname}} = 7 | {{#allowableValues}} 8 | {{#enumVars}} 9 | {{{value}}}{{^-last}} | {{/-last}} 10 | {{/enumVars}} 11 | {{/allowableValues}} 12 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/query-parse-render/service-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | import { MicroserviceConfig } from '../../common/services'; 5 | 6 | export default { 7 | serviceName: 'QueryParseRender', 8 | serviceNamespace: 'query-parse-render', 9 | } as MicroserviceConfig; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/group/help.update.md: -------------------------------------------------------------------------------- 1 | You can edit and update existing groups using the **Edit group** process. 2 | 3 | 1. On the Groups page, under Default Groups, select the group you want to update. 4 | 2. Select **Edit**. 5 | 3. On the Edit group page, update the name, description, members, and access policies, and select **Next**. 6 | 4. Review your changes and select **Submit**. -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/data-product/utils.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { DataProductIdentifier } from '@ada/api'; 4 | 5 | export function getDataProductUrl({ domainId, dataProductId }: DataProductIdentifier): string { 6 | return `/data-product/${domainId}/${dataProductId}`; 7 | } 8 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/identity/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './groups'; 4 | 5 | export * from './api-access-policy'; 6 | 7 | export * from './identity-providers'; 8 | 9 | export * from './access-request'; 10 | 11 | export * from './iam'; 12 | 13 | export * from './cognito'; 14 | -------------------------------------------------------------------------------- /source/packages/@ada/solution/jest.config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { Config } from '@jest/types'; 4 | 5 | export const config: Config.InitialOptions = { 6 | preset: 'ts-jest', 7 | setupFilesAfterEnv: ['jest-extended'], 8 | roots: ['/bin'], 9 | }; 10 | 11 | export default config; 12 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/query/api/types/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './query'; 4 | 5 | export * from './lens'; 6 | 7 | export { GovernedDataSetDetails } from '../../../data-product/api/types'; 8 | 9 | export { GovernedColumnMetadata } from '../../../data-product/api/types'; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/transforms/jest.config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { Config } from '@jest/types'; 4 | 5 | export const config: Config.InitialOptions = { 6 | preset: 'ts-jest', 7 | setupFilesAfterEnv: ['jest-extended'], 8 | roots: ['/src'], 9 | }; 10 | 11 | export default config; 12 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/types/event-bridge.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export interface EventBridgeEvent { 5 | version: string; 6 | id: string; 7 | 'detail-type': string; 8 | source: string; 9 | account: string; 10 | time: string; 11 | region: string; 12 | detail: T; 13 | } 14 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/globals.d.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | /* eslint-disable */ 5 | declare module 'find-port-free-sync' { 6 | interface Options { 7 | start?: number, 8 | end?: number, 9 | num?: number, 10 | ip?: string 11 | } 12 | 13 | export = function(options?: Options): number {}; 14 | } 15 | -------------------------------------------------------------------------------- /source/packages/@ada/website/jest-puppeteer.config.js: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | const DEBUG = process.env.DEBUG === 'true'; 4 | 5 | module.exports = { 6 | launch: { 7 | headless: !DEBUG, 8 | devtools: DEBUG, 9 | dumpio: true, 10 | args: ['--no-sandbox', '--disable-setuid-sandbox'], 11 | }, 12 | }; 13 | -------------------------------------------------------------------------------- /source/packages/@ada/website/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "Ada", 3 | "name": "Automated Data Analytics on AWS", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/components/query/SqlViewer/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { CodeViewer, CodeViewerProps } from '$common/components/CodeViewer'; 4 | import React from 'react'; 5 | 6 | export const SqlViewer: React.FC> = (props) => ; 7 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/group/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { DefaultGroupIds } from '@ada/common'; 4 | 5 | export const COGNITO_ADMINISTRATORS_GROUP = 'Administrators'; 6 | 7 | export const ORDERED_SYSTEM_GROUPS = [DefaultGroupIds.DEFAULT, DefaultGroupIds.POWER_USER, DefaultGroupIds.ADMIN]; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/api/extended-client/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig-base.json", 3 | "compilerOptions": { 4 | "noEmit": false, 5 | "module": "commonjs", 6 | "outDir": "../client", 7 | "rootDir": ".", 8 | "composite": true, 9 | "lib": ["ES2019", "DOM"], 10 | "tsBuildInfoFile": "../build/extendedClientBuildInfoFile", 11 | "rootDirs": [".", "../client"] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/administration/stack/visualisation-deployment/visualisation-deployment-spec.yml: -------------------------------------------------------------------------------- 1 | version: 0.2 2 | phases: 3 | install: 4 | runtime-versions: 5 | python: '3.10' 6 | commands: 7 | - pip3 install cfn-flip 8 | build: 9 | commands: 10 | - chmod +x deploy.sh 11 | - ./deploy.sh 12 | post_build: 13 | commands: 14 | - echo Build completed 15 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Connectors } from './interface'; 4 | 5 | export * from './interface'; 6 | 7 | export * from './sources'; 8 | 9 | export * as Common from './common'; 10 | 11 | console.info('CONNECTORS:REGISTERED:IDS:', Connectors.getRegisteredIds().join(', ')); 12 | -------------------------------------------------------------------------------- /source/packages/@ada/transforms/src/ui/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export enum TransformWidgets { 5 | SCHEMA_FIELD_SELECTOR = 'schema-field-selector', 6 | SCHEMA_FIELD_MULTISELECTOR = 'schema-field-multiselector', 7 | } 8 | 9 | export enum TransformFields { 10 | SCHEMA_FIELD_MAPPING = 'schema-field-mapping', 11 | } 12 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/data-product/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { DataProductRouter as Router } from './router'; 4 | export { CreateDataProductView as CreateView } from './Create'; 5 | export { DataProductDetailView as DetailView } from './Detail'; 6 | export { DataProductRootView as RootView } from './Root'; 7 | -------------------------------------------------------------------------------- /source/packages/@ada/cdk-core/src/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export * from './extended-stack'; 5 | 6 | export * from './namespace'; 7 | 8 | export * from './cfn-nag'; 9 | 10 | export * from './utils'; 11 | 12 | export * from './testing'; 13 | 14 | export * from './input-parameters'; 15 | 16 | export * from './retained'; 17 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/data-product/domain.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | /** 5 | * Reserved domainIds 6 | */ 7 | export enum ReservedDomains { 8 | // For global scripts 9 | GLOBAL = 'global', 10 | // For personal queries 11 | MY = 'my', 12 | // For querying data product source data 13 | SOURCE = 'source', 14 | } 15 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/identity/access-request.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export enum AccessRequestAction { 4 | APPROVE = 'approve', 5 | DENY = 'deny', 6 | } 7 | 8 | export enum AccessRequestNotificationType { 9 | REQUEST = 'access-request', 10 | APPROVE = 'access-request-approve', 11 | DENY = 'access-request-deny', 12 | } 13 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/utils/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './object'; 4 | 5 | export * from './aws'; 6 | 7 | export * from './arn-parser'; 8 | 9 | export * from './s3-location-parser'; 10 | 11 | export * from './permissions'; 12 | 13 | export * from './sql'; 14 | 15 | export * from './data-type'; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/budget/help.md: -------------------------------------------------------------------------------- 1 | Admins can create a Budget with a cost limit to track costs and usage, and receive notifications. 2 | 3 | Enter budget limit value. Enter a list of subscriber email addresses who will get notified when the thresholds are hit. Set percentage threshold values for notifications and the subscribers will be notified when the current spend is greater than these percentages of the budget limit. 4 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as CONST from './constants'; 4 | import { CORE } from './core'; 5 | import { ENTITY } from './entities'; 6 | import { VIEW } from './views'; 7 | 8 | export const en = { 9 | CONST, 10 | CORE, 11 | ENTITY, 12 | VIEW, 13 | } 14 | 15 | export default en; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/public/views/router.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { PublicRootView } from './Root'; 4 | import { Route, Switch } from 'react-router-dom'; 5 | 6 | export const PublicRouter = () => { 7 | return ( 8 | 9 | 10 | 11 | ); 12 | }; 13 | -------------------------------------------------------------------------------- /source/packages/@ada/cdk-core/README.md: -------------------------------------------------------------------------------- 1 | # cdk-core 2 | 3 | This package defines common modules utilized by the solution infrastructure packages for [AWS Development Kit (CDK)](https://aws.amazon.com/cdk/) that are considered agnostic to the solution itself. 4 | 5 | In general, modules in this package can be considered for broader open-source use in other CDK projects and may eventually be extracted into a separate project/library to enable reuse. 6 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/api/caller-details.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export interface CallingUser { 4 | readonly userId: string; 5 | readonly username: string; 6 | readonly groups: string[]; 7 | } 8 | 9 | export enum CallerDetailsKeys { 10 | USER_ID = 'x-user-id', 11 | USERNAME = 'x-username', 12 | GROUPS = 'x-groups', 13 | } 14 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/api/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './json-schema'; 4 | 5 | export * from './caller-details'; 6 | 7 | export * from './headers'; 8 | 9 | export * from './validation'; 10 | 11 | export * from './common'; 12 | 13 | export * from './json-schema-mapper'; 14 | 15 | export * from './schema-utils'; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudwatch/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const PATTERN_LOGGROUP_ARN = /^arn:aws:logs:[\w-]+:\d+:log-group:[\w/-]+:\*$/; 5 | export const PATTERN_QUERY = /[\S\s]+\S+/; 6 | export const PATTERN_ROLE_ARN = /^arn:aws:iam::\d{12}:role\/([A-Za-z0-9-]+)$/; 7 | export const TEXT_FIELD = 'text-field' -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/handlers/transform/templates/README.md: -------------------------------------------------------------------------------- 1 | ### Transform Templates 2 | 3 | These templatised python files are used in the execution of transform scripts in the sandbox process. 4 | 5 | When editing these, make sure that any literal curly braces eg `{` are escaped by doubling them, eg `{{` 6 | 7 | Values inside single curly braces will be replaced before execution. 8 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/util-types.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export type DotPrefix = T extends "" ? "" : `.${T}` 4 | 5 | export type DotNotation = (T extends object 6 | ? { [K in Exclude]: `${K}${DotPrefix>}` }[Exclude] 7 | : "") extends infer D ? Extract : never; 8 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/utils/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './data-product'; 4 | export * from './errors'; 5 | export * from './identifier'; 6 | export * from './multipart-file-uploader'; 7 | export * from '../entity/ontology/utils'; 8 | export * from './time'; 9 | export * from './misc'; 10 | export * from './aws'; 11 | -------------------------------------------------------------------------------- /source/packages/@ada/cdk-core/jest.config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { Config } from '@jest/types'; 4 | 5 | export const config: Config.InitialOptions = { 6 | preset: 'ts-jest', 7 | setupFilesAfterEnv: ['jest-extended'], 8 | roots: ['/src'], 9 | coveragePathIgnorePatterns: ['testing/*'], 10 | }; 11 | 12 | export default config; 13 | -------------------------------------------------------------------------------- /source/packages/@ada/common/jest.config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as path from 'path'; 4 | import createConfig from '../infra/jest.config.base'; // must be imported before any aliases 5 | 6 | export const config = createConfig({ 7 | displayName: path.basename(__dirname), 8 | roots: ['/src'], 9 | }); 10 | 11 | export default config; 12 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './data-product'; 4 | 5 | export * from './governance'; 6 | 7 | export * from './identity'; 8 | 9 | export * from './query'; 10 | 11 | export * from './utils'; 12 | 13 | export * from './solution'; 14 | 15 | export * from './api'; 16 | 17 | export * from './ontology'; 18 | 19 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/identity-provider/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { IdentityProviderRouter as Router } from './router'; 4 | export { CreateIdentityProviderView as CreateView } from './Create'; 5 | export { IdentityProviderDetailView as DetailView } from './Detail'; 6 | export { IdentityProviderRootView as RootView } from './Root'; 7 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/entities/entity/common.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { OWNER } from '../../constants' 4 | import { StringEntityProperties } from '../types' 5 | 6 | export const COMMON = { 7 | ...{ 8 | createdBy: { 9 | label: OWNER, 10 | description: 'Created by user', 11 | }, 12 | } as StringEntityProperties, 13 | } 14 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/jest.config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | /* eslint-disable: sort-imports */ 4 | // must be imported before any aliases 5 | import createConfig from '../../jest.config.base'; 6 | /* eslint-enable: sort-imports */ 7 | 8 | export const config = createConfig({ 9 | rootDir: __dirname, 10 | }); 11 | 12 | export default config; 13 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudtrail/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const PATTERN_CLOUDTRAIL_BUCKETNAME = /^(?[^/]+)(?:\/(?.+))?$/; 5 | 6 | export const PATTERN_CLOUDTRAIL_ARN = /^arn:aws:cloudtrail:[\w-]+:\d+:trail\/[\w.-]+$/; 7 | 8 | export const PATTERN_ROLE_ARN = /^arn:aws:iam::\d{12}:role\/([A-Za-z0-9-]+)$/; 9 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/api/stack/index.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from '.'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/query/stack/index.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from '.'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/stacks/ada-stack.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from './ada-stack'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/group/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { GroupRouter as Router } from './router'; 4 | 5 | export { CreateGroupView as CreateView } from './Create'; 6 | export { UpdateGroupView as UpdateView } from './Update'; 7 | export { GroupDetailView as DetailView } from './Detail'; 8 | export { GroupRootView as RootView } from './Root'; 9 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/types/service-config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export interface MicroserviceConfig { 5 | /** 6 | * The display name of the service. 7 | */ 8 | readonly serviceName: string; 9 | /** 10 | * The namespace of the service used as base route for api. 11 | */ 12 | readonly serviceNamespace: string; 13 | } 14 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/governance/stack/index.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from '.'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/identity/stack/index.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from '.'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/ontology/stack/index.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from '.'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/core/provider/MetaProvider/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { BaseMetaProvider } from './base'; 4 | import React, { PropsWithChildren } from 'react'; 5 | 6 | export * from './base'; 7 | 8 | export const MetaProvider = ({ children }: PropsWithChildren<{}>) => { 9 | return {children}; 10 | }; 11 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/utils/crypto.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as crypto from 'crypto'; 4 | 5 | /** 6 | * Hash the input using the SHA256 algorithm 7 | * @param input the input to be hashed 8 | * @returns the hash string in hex format 9 | */ 10 | export const computeUniqueHash = (input: string) => crypto.createHash('sha256').update(input).digest('hex'); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/administration/stack/index.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from '.'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/stack/index.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from '.'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/notification/stack/index.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from '.'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/data-product/components/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from '../views/Create/components/SchemaPreview'; 4 | export * from './DefaultLenses'; 5 | export * from './RelatedResources'; 6 | export * from './Permissions'; 7 | export * from './RelationshipMapping'; 8 | export * from './Status'; 9 | export * from './tables/DomainTable'; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/nested-stacks/common-stack.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from './common-stack'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/nested-stacks/kms-stack.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from './kms-stack'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest as any)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/query-parse-render/stack/index.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from '.'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/query-parse-render/jest.config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | /* eslint-disable: sort-imports */ 4 | // must be imported before any aliases 5 | import createConfig from '../../../jest.config.base'; 6 | /* eslint-enable: sort-imports */ 7 | 8 | export const config = createConfig({ 9 | rootDir: __dirname, 10 | }); 11 | 12 | export default config; 13 | -------------------------------------------------------------------------------- /source/packages/@ada/transforms/src/transforms/drop_fields/drop_fields.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | def apply_transform(input_frame, input_args, glue_context, **kwargs): 6 | data = input_frame.drop_fields(paths=input_args['paths']) 7 | return [data] 8 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/testing/interaction.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { ENV_STORYBOOK } from '$config'; 4 | 5 | export enum DELAY { 6 | IMMEDIATE = ENV_STORYBOOK ? 10 : 1, 7 | TYPING = 10, 8 | SHORT = ENV_STORYBOOK ? 100 : 10, 9 | MEDIUM = ENV_STORYBOOK ? 500 : 100, 10 | LONG = ENV_STORYBOOK ? 1000 : 250, 11 | LONGEST = ENV_STORYBOOK ? 2000 : 1000, 12 | } 13 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/data-product/scripts.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export enum GlueDataTypes { 5 | string = 'string', 6 | integer = 'integer', 7 | long = 'long', 8 | float = 'float', 9 | double = 'double', 10 | boolean = 'boolean', 11 | date = 'date', 12 | timestamp = 'timestamp', 13 | array = 'array', 14 | map = 'map', 15 | struct = 'struct', 16 | } 17 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_s3/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | S3 = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/mongodb/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | MONGODB = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/nested-stacks/cognito-auth-stack.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from './cognito-auth-stack'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/stack/api-stack.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from './api-stack'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/transforms/src/transforms/select_fields/select_fields.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | def apply_transform(input_frame, input_args, glue_context, **kwargs): 6 | data = input_frame.select_fields(paths=input_args['paths']) 7 | return [data] 8 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/governance/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export { GovernanceRouter as Router } from './router'; 5 | export { CreateOntologyView as CreateView } from './Create'; 6 | export { OntologyDetailView as DetailView } from './Detail'; 7 | export { OntologyRootView as RootView } from './Root'; 8 | export { UpdateOntologyView as UpdateView } from './Update'; 9 | -------------------------------------------------------------------------------- /source/packages/@ada/athena-lens/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@ada/athena-lens", 3 | "version": "0.0.0", 4 | "private": true, 5 | "license": "Apache-2.0", 6 | "description": "Ada athena-lens", 7 | "scripts": { 8 | "docker": "docker run -v $(pwd)/../../../:/source -v $HOME/.m2:/root/.m2 -w /source ada-java-build-base scripts/build-java.sh athena-lens", 9 | "build": "yarn docker install", 10 | "test": "yarn docker test", 11 | "clean": "yarn docker" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_mysql5/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | MYSQL5 = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_oracle/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | ORACLE = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/nested-stacks/static-website-stack.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from './static-website-stack'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | **/nodes_modules/ 3 | **/dist 4 | **/build 5 | **/target 6 | **/cdk.out 7 | **/scripts/ 8 | **/public/runtime-config.* 9 | react-app-env.d.ts 10 | packages/@ada/api/client 11 | packages/@ada/api/docs 12 | packages/@ada/api/safe/**/*.js 13 | packages/@ada/api/safe/**/*.d.ts 14 | **/htmlcov 15 | packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/dependencies/**/* 16 | **/__tests__/**/* 17 | /packages/@ada/api/client/**/* 18 | -------------------------------------------------------------------------------- /source/packages/@ada/cdk-core/src/utils/stack.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Construct } from 'constructs'; 4 | import { Stack } from 'aws-cdk-lib'; 5 | 6 | export function getRootStack(scope: Construct): Stack { 7 | let rootStack = Stack.of(scope); 8 | 9 | while (rootStack.nestedStackParent) { 10 | rootStack = rootStack.nestedStackParent; 11 | } 12 | 13 | return rootStack; 14 | } 15 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_dynamodb/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | DYNAMODB = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_redshift/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | REDSHIFT = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_sqlserver/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | SQLSERVER = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/query-parse-render-lambdas/README.md: -------------------------------------------------------------------------------- 1 | # Query Parse Render Service Lambdas 2 | 3 | Lambda handlers for the query parse/render service, written in Java to allow the use of the Presto Parser library. 4 | 5 | ## Prerequisites 6 | - Java 1.8+ 7 | - Apache Maven 8 | 9 | ## Development 10 | 11 | ### Building the project 12 | ``` 13 | mvn clean install 14 | ``` 15 | 16 | ### Run Tests 17 | ``` 18 | mvn clean test 19 | ``` 20 | 21 | ### Clean 22 | ``` 23 | mvn clean 24 | ``` 25 | -------------------------------------------------------------------------------- /source/packages/@ada/athena-utilities/README.md: -------------------------------------------------------------------------------- 1 | # Athena Text Analytics Lens Lambdas 2 | 3 | Detects PII entities and determines the most confident PII type. Amazon Comprehend is the client we use to perform the detection. 4 | 5 | ## Prerequisites 6 | - Java 1.8+ 7 | - Apache Maven 8 | 9 | ## Development 10 | 11 | ### Building the project 12 | ``` 13 | mvn clean install 14 | ``` 15 | 16 | ### Run Tests 17 | ``` 18 | mvn clean test 19 | ``` 20 | 21 | ### Clean 22 | ``` 23 | mvn clean 24 | ``` 25 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudtrail/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | CLOUDTRAIL = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_cloudwatch/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | CLOUDWATCH = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_postgresql/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | POSTGRESQL = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/utils/stack-utils.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Construct } from 'constructs'; 4 | import { Stack } from 'aws-cdk-lib'; 5 | 6 | export function getRootStack(scope: Construct): Stack { 7 | let rootStack = Stack.of(scope); 8 | 9 | while (rootStack.nestedStackParent) { 10 | rootStack = rootStack.nestedStackParent; 11 | } 12 | 13 | return rootStack; 14 | } 15 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/group/help.md: -------------------------------------------------------------------------------- 1 | Groups allow you to assign access controls privileges to Data Products. 2 | 3 | By default, there are three main groups: 4 | 5 | - **Admins** have full access 6 | - **Power users** have Read/Write access 7 | - **Default** users have read-only access 8 | 9 | On this page: 10 | 11 | - View existing groups, access level and members. 12 | - Select **Join** to request access to a group. 13 | - Select **Create a new group** to add a new custom group. -------------------------------------------------------------------------------- /source/packages/@ada/website/puppeteer/jest.config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import baseConfig from '../jest.config.base'; 4 | import type { Config } from '@jest/types'; 5 | 6 | const { moduleNameMapper } = baseConfig; 7 | 8 | export const config: Config.InitialOptions = { 9 | preset: 'jest-puppeteer', 10 | displayName: 'Puppeteer', 11 | moduleNameMapper, 12 | }; 13 | 14 | export default config; 15 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_analytics/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | GOOGLE_ANALYTICS = IConnector( 9 | pull_samples=pull_samples 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_bigquery/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | GOOGLE_BIGQUERY = IConnector( 9 | pull_samples = pull_samples, 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/google_storage/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | from .pull_samples import pull_samples 7 | 8 | GOOGLE_STORAGE = IConnector( 9 | pull_samples = pull_samples, 10 | ) 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/script-validation/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@ada/validate-script", 3 | "version": "0.0.0", 4 | "private": true, 5 | "license": "Apache-2.0", 6 | "description": "Ada validate-script", 7 | "scripts": { 8 | "preinstall": "pip3 install poetry==1.*", 9 | "install": "poetry install", 10 | "test": "LOG_LEVEL=DEBUG poetry run pytest --cov=../../../../../../../.. --cov-report=xml --cov-report=term --log-level=DEBUG" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/stack/schema-preview-stack.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from './schema-preview-stack'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/identity-provider/components/IdpWizard/schema/provider-types/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { IdpTypeDefinition } from './common'; 4 | import Amazon from './amazon'; 5 | import Google from './google'; 6 | import OIDC from './oidc'; 7 | import SAML from './saml'; 8 | 9 | export const IdentityProviderDefinitions: IdpTypeDefinition[] = [SAML, OIDC, Amazon, Google]; 10 | -------------------------------------------------------------------------------- /source/packages/@ada/athena-utilities/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@ada/athena-utilities", 3 | "version": "0.0.0", 4 | "private": true, 5 | "license": "Apache-2.0", 6 | "description": "Ada athena-utilities", 7 | "scripts": { 8 | "docker": "docker run -v $(pwd)/../../../:/source -v $HOME/.m2:/root/.m2 -w /source ada-java-build-base scripts/build-java.sh athena-utilities", 9 | "build": "yarn docker install", 10 | "test": "yarn docker test", 11 | "clean": "yarn docker" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/entity/user/utils.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { CreateAndUpdateDetails } from '@ada/api/client'; 4 | import { SYSTEM_USER } from './constants'; 5 | 6 | export function isSystemEntity(entity?: CreateAndUpdateDetails): boolean | undefined { 7 | if (entity == null || entity.createdBy == null) return undefined; 8 | 9 | return entity.createdBy === SYSTEM_USER; 10 | } 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/stack/static-infrastructure-stack.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from './static-infrastructure-stack'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/governance/jest.setup.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as path from 'path'; 4 | 5 | const JEST_DYNAMODB_CONFIG = path.resolve(__dirname, '.jest.test-cdk-environment.json'); 6 | const { environmentVariables, port } = require(JEST_DYNAMODB_CONFIG); 7 | 8 | process.env = { 9 | ...process.env, 10 | ...environmentVariables, 11 | MOCK_DYNAMODB_ENDPOINT: `localhost:${port}`, 12 | }; 13 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/ontology/jest.setup.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as path from 'path'; 4 | 5 | const JEST_DYNAMODB_CONFIG = path.resolve(__dirname, '.jest.test-cdk-environment.json'); 6 | const { environmentVariables, port } = require(JEST_DYNAMODB_CONFIG); 7 | 8 | process.env = { 9 | ...process.env, 10 | ...environmentVariables, 11 | MOCK_DYNAMODB_ENDPOINT: `localhost:${port}`, 12 | }; 13 | -------------------------------------------------------------------------------- /source/packages/@ada/solution/bin/cdk-solution.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | jest.mock('@ada/infra', () => ({ 4 | AdaStack: require('@ada/cdk-core').TestStack, 5 | })) 6 | 7 | describe('@ada/solution', () => { 8 | describe('bin', () => { 9 | it('should build app', async () => { 10 | process.env.DISABLE_CDK_BUNDLING = 'true'; 11 | expect(() => require('./cdk-solution')).not.toThrow(); 12 | }) 13 | }) 14 | }) 15 | -------------------------------------------------------------------------------- /source/packages/@ada/website/.gitignore: -------------------------------------------------------------------------------- 1 | public/runtime-config.* 2 | public/vendor 3 | src/vendor 4 | 5 | # dependencies 6 | /node_modules 7 | /.pnp 8 | .pnp.js 9 | 10 | # testing 11 | /coverage 12 | 13 | # production 14 | /build 15 | 16 | # misc 17 | .DS_Store 18 | .env.local 19 | .env.development.local 20 | .env.test.local 21 | .env.production.local 22 | 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | 27 | # We need consistent development env for csp testing in react 28 | !.env.development 29 | -------------------------------------------------------------------------------- /source/cypress/plugins/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | // This function is called when a project is opened or re-opened (e.g. due to 5 | // the project's config changing) 6 | 7 | import cypressFailFast = require('cypress-fail-fast/plugin'); 8 | 9 | export default (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions): Cypress.PluginConfigOptions => { 10 | cypressFailFast(on, config); 11 | return config; 12 | }; 13 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/stack/built-in-transformation-statck.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { getStackSnapshotTemplate } from '@ada/infra-common/services/testing/stack-synth'; 4 | import StackToTest from './built-in-transformation-statck'; 5 | 6 | describe('stack', () => { 7 | it('snapshots', () => { 8 | expect(getStackSnapshotTemplate(StackToTest)).toMatchSnapshot(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/notification/jest.setup.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as path from 'path'; 4 | 5 | const JEST_DYNAMODB_CONFIG = path.resolve(__dirname, '.jest.test-cdk-environment.json'); 6 | const { environmentVariables, port } = require(JEST_DYNAMODB_CONFIG); 7 | 8 | process.env = { 9 | ...process.env, 10 | ...environmentVariables, 11 | MOCK_DYNAMODB_ENDPOINT: `localhost:${port}`, 12 | }; 13 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/governance/data-product.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | /** 5 | * Defines the different group access permissions for a data product policy 6 | */ 7 | export enum DataProductAccess { 8 | // Able to query the data product 9 | READ_ONLY = 'READ_ONLY', 10 | // Able to query and transform the data product, and also edit the data product (ontology mapping, permissions, etc) 11 | FULL = 'FULL', 12 | } 13 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/identity/groups.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | /** 5 | * Groups that are defined at creation time 6 | */ 7 | export enum DefaultGroupIds { 8 | DEFAULT = 'default', 9 | POWER_USER = 'power_user', 10 | ADMIN = 'admin', 11 | } 12 | 13 | export enum DefaultClaims { 14 | ROOT = 'root', 15 | } 16 | 17 | export enum CustomCognitoAttributes { 18 | CLAIMS = 'claims', 19 | GROUPS = 'groups', 20 | } 21 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/ontology/api/mocks.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export const MOCK_ONTOLOGY = { 4 | ontologyId: 'ontology-email-abc', 5 | name: 'Email', 6 | aliases: [{ name: 'email_address' }, { name: 'email' }, { name: 'electronic_mail_address' }], 7 | createdBy: 'user123', 8 | createdTimestamp: '2021-08-02T07:16:17Z', 9 | updatedBy: 'user123', 10 | updatedTimestamp: '2021-08-02T07:16:17Z', 11 | }; 12 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/views/view/cost.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | const COST_EXPLORER = 'Cost Explorer'; 5 | 6 | export const COST = { 7 | title: COST_EXPLORER, 8 | nav: COST_EXPLORER, 9 | 10 | HELP: { 11 | ROOT: { 12 | header: COST_EXPLORER, 13 | }, 14 | }, 15 | 16 | AccountCosts: { 17 | label: 'Account Costs', 18 | }, 19 | ServiceCosts: { 20 | label: 'Service Costs', 21 | } 22 | } as const; 23 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/components/query/SqlEditor/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import React from 'react'; 4 | 5 | import { CodeEditor, CodeEditorProps } from '$common/components/CodeEditor'; 6 | import { IAceEditor } from 'react-ace/lib/types'; 7 | 8 | export const SqlEditor = React.forwardRef>((props, ref) => ( 9 | 10 | )); 11 | -------------------------------------------------------------------------------- /source/packages/@ada/query-parse-render-lambdas/src/main/java/com/ada/query/parserender/exceptions/NotAQueryException.java: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | package com.ada.query.parserender.exceptions; 5 | 6 | /** 7 | * Exception thrown when the given query is valid sql but not a query 8 | */ 9 | public class NotAQueryException extends Exception { 10 | public NotAQueryException(final String message) { 11 | super(message); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * as DataProduct from './data-product'; 4 | export * as Group from './group'; 5 | export * as IdentityProvider from './identity-provider'; 6 | export * as Ontology from './governance'; 7 | export * as Query from './query'; 8 | export * as User from './user'; 9 | export * as Cost from './cost'; 10 | export * as Admin from './admin'; 11 | export * as Public from './public'; 12 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/types/common.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { APIGatewayProxyEvent } from 'aws-lambda'; 4 | 5 | export type SignedRequestEvent = Pick; 6 | 7 | export interface KeyValuePair { 8 | key: T; 9 | value: Q; 10 | } 11 | 12 | export interface DataProductSecret { 13 | key: T; 14 | value: T; 15 | secretKeyRef: T; 16 | secretValueRef: T; 17 | } -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_dynamodb/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const PATTERN_DYNAMODB_TABLE_ARN = /^arn:aws:dynamodb:([a-z])+-([a-z])+-\d:\d+:table\/([A-Za-z0-9-]+)$/; 5 | 6 | export const PATTERN_ROLE_ARN = /^arn:aws:iam::\d{12}:role\/([A-Za-z0-9-]+)$/; 7 | 8 | export const DDB_AUTO_EVENT_SOURCE = 'ada.ddb.automatic'; 9 | 10 | export const DDB_AUTO_EVENT_DETAIL_TYPE = 'DynamoDB Stream Lambda Trigger'; 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/handlers/__tests__/test_transform_scripts/drop_fields.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | def apply_transform(input_frame, input_args, glue_context, **kwargs): 6 | data = input_frame.drop_fields(paths=input_args.get('paths')) 7 | return [data] -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@ada/schema-preview-docker-image", 3 | "version": "0.0.0", 4 | "private": true, 5 | "license": "Apache-2.0", 6 | "description": "Ada schema-preview-docker-image", 7 | "scripts": { 8 | "prebuild": "rm -rf ./handlers/connectors", 9 | "build": "copyfiles --verbose --up 6 \"../../../../../connectors/**/*.py\" handlers/connectors" 10 | }, 11 | "devDependencies": { 12 | "copyfiles": "^2.4.1" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/constructs/api/lambda-layer/code/nodejs/README.md: -------------------------------------------------------------------------------- 1 | # Api Client Layer 2 | 3 | This package exposes the project api via lambda layer. 4 | 5 | ## Exposed packages within layer 6 | 7 | - `@ada/api-client`: The base generated api client is exposed via "yarn workspace `no-hoist`" rather than dependencies. 8 | - `@ada/api-client-lambda`: Lambda specific client setup to map to api endpoint and apply credentials automatically. 9 | 10 | > See `package.json` for additional third-party dependencies provided by the layer. 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/handlers/__tests__/test_transform_scripts/select_fields.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | def apply_transform(input_frame, input_args, glue_context, **kwargs): 6 | data = input_frame.select_fields(paths=input_args['paths']) 7 | return [data] -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/file_upload/preview/__init__.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | from handlers.common import * # NOSONAR 6 | 7 | from ...amazon_s3.preview.pull_samples import pull_samples 8 | 9 | # port functionality from S3 connector 10 | UPLOAD = IConnector( 11 | pull_samples=pull_samples 12 | ) 13 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/cost/views/router.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { AdminGate } from '$views/admin/components/AdminGate'; 4 | import { CostRootView } from '$views/cost/views/Root'; 5 | import { Route, Switch } from 'react-router-dom'; 6 | 7 | export const CostRouter = () => { 8 | return ( 9 | 10 | 11 | 12 | 13 | 14 | ); 15 | }; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/data-product/views/Create/components/TransformsPlanner/jsonschema-form/fields/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Field } from '@rjsf/core'; 4 | import { TransformFields } from '@ada/transforms'; 5 | import schemaFieldMapping from './schema-field-mapping'; 6 | 7 | export const CUSTOM_FIELDS = Object.fromEntries([schemaFieldMapping].map(({ id, field }) => [id, field])) as Record< 8 | TransformFields, 9 | Field 10 | >; 11 | -------------------------------------------------------------------------------- /source/packages/@ada/query-parse-render-lambdas/src/main/java/com/ada/query/parserender/exceptions/CircularQueryReferenceException.java: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | package com.ada.query.parserender.exceptions; 4 | 5 | /** 6 | * Exception thrown when a query has circular references 7 | */ 8 | public class CircularQueryReferenceException extends Exception { 9 | public CircularQueryReferenceException(final String message) { 10 | super(message); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/entities/entity/User.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { StringEntityDefinition } from '../types' 4 | 5 | export const User: StringEntityDefinition<'User'> = { 6 | User: 'User', 7 | Users: 'Users', 8 | user: 'user', 9 | users: 'users', 10 | 11 | description: 'An unique user within the application', 12 | descriptions: 'List of users who have signed into the application', 13 | } 14 | 15 | export default User; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/entities/entity/Member.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { StringEntityDefinition } from '../types' 4 | 5 | export const Member: StringEntityDefinition<'Member'> = { 6 | Member: 'Member', 7 | Members: 'Members', 8 | member: 'member', 9 | members: 'members', 10 | 11 | description: 'Individual user belonging to a group', 12 | descriptions: 'List of users that belong to a group', 13 | } 14 | 15 | export default Member; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 4 | 'Droid Sans', 'Helvetica Neue', sans-serif; 5 | -webkit-font-smoothing: antialiased; 6 | -moz-osx-font-smoothing: grayscale; 7 | } 8 | 9 | code { 10 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; 11 | } 12 | 13 | .ace_editor.ace_autocomplete { 14 | width: 80%; 15 | width: -webkit-fill-available; 16 | max-width: 650px; 17 | } 18 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/data-product/views/Create/components/TransformsPlanner/jsonschema-form/types.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Field, Widget } from '@rjsf/core'; 4 | import { TransformFields, TransformWidgets } from '@ada/transforms'; 5 | 6 | export interface TransformWidgetDefinition { 7 | id: TransformWidgets; 8 | widget: Widget; 9 | } 10 | 11 | export interface TransformFieldDefinition { 12 | id: TransformFields; 13 | field: Field; 14 | } 15 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this solution 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the feature you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Additional context** 17 | Add any other context or screenshots about the feature request here. 18 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_postgresql/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const PATTERN_RDS_ENDPOINT = /^[\w.]+\.rds.amazonaws.com/; 5 | 6 | export const PATTERN_NOT_EMPTY = /^[\w.-]+$/; 7 | 8 | // port 0 - 65535 9 | export const PATTERN_DB_PORT = 10 | /^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/; 11 | 12 | export const TEXT_FIELD = 'text-field'; 13 | 14 | export const SELECT_FIELD = 'select'; 15 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_sqlserver/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const PATTERN_RDS_ENDPOINT = /^[\w.]+\.rds.amazonaws.com/; 5 | 6 | export const PATTERN_NOT_EMPTY = /^[\w.-]+$/; 7 | 8 | // port 0 - 65535 9 | export const PATTERN_DB_PORT = 10 | /^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/; 11 | 12 | export const TEXT_FIELD = 'text-field'; 13 | 14 | export const SELECT_FIELD = 'select'; 15 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/api/api/routes/base-paths.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export const IDENTITY_BASE_PATH = 'identity'; 4 | 5 | export const API_ACCESS_POLICY_BASE_PATH = 'api-access-policy'; 6 | 7 | export const COST_BASE_PATH = 'cost'; 8 | 9 | export const PERMISSION_BASE_PATH = 'permission'; 10 | 11 | export const API_BASE_PATHS = [IDENTITY_BASE_PATH, API_ACCESS_POLICY_BASE_PATH, COST_BASE_PATH, PERMISSION_BASE_PATH]; 12 | 13 | export default API_BASE_PATHS; 14 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/script-validation/pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "script-validation" 3 | version = "0.1.0" 4 | description = "Customer-provided script validation" 5 | authors = ["Amazon Web Services"] 6 | license = "Apache-2.0" 7 | 8 | [tool.poetry.dependencies] 9 | python = "^3.9" 10 | bandit = "^1.7.4" 11 | shortuuid = "^1.0.9" 12 | 13 | [tool.poetry.dev-dependencies] 14 | pytest = "^7.0.1" 15 | pytest-cov = "^3.0.0" 16 | 17 | [build-system] 18 | requires = ["poetry-core>=1.0.0"] 19 | build-backend = "poetry.core.masonry.api" 20 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/hooks/use-stateful-ref.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import React, { useRef } from 'react'; 4 | 5 | /** 6 | * Creates a ref that maintains current value of referenced stateful object. 7 | * @param state 8 | * @returns 9 | */ 10 | export function useStatefulRef(state: T): React.MutableRefObject { 11 | const ref = useRef(state); 12 | 13 | if (ref.current !== state) { 14 | ref.current = state; 15 | } 16 | 17 | return ref; 18 | } 19 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/common/jdbc/types.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | /** 5 | * Interface for the "sourceDetails" of data products of the JDBC connector 6 | * @required 7 | */ 8 | 9 | export interface ISourceDetails__JDBC { 10 | databaseEndpoint: string; 11 | databasePort: string; 12 | databaseSchema: string; 13 | databaseTable: string; 14 | databaseName: string; 15 | username: string; 16 | password: string; 17 | dbCredentialSecretName?: string; 18 | } 19 | -------------------------------------------------------------------------------- /source/packages/@ada/transforms/src/index.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as index from './index'; 4 | 5 | describe('transforms', () => { 6 | it('should compile transforms', () => { 7 | // There are no functions within this package yet, so simply importing and verify no errors is enough for coverage. 8 | expect(index.BuiltInTransforms).toBeDefined(); 9 | expect(index.TransformFields).toBeDefined(); 10 | expect(index.TransformWidgets).toBeDefined(); 11 | }); 12 | }); 13 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/config/env.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { queryFlags } from './utils'; 4 | 5 | export const ENV_DEVELOPMENT = process.env.NODE_ENV === 'development'; 6 | export const ENV_TEST = process.env.NODE_ENV === 'test'; 7 | export const ENV_PRODUCTION = process.env.NODE_ENV === 'production'; 8 | export const ENV_STORYBOOK = process.env.STORYBOOK; 9 | 10 | const FLAGS = queryFlags({ 11 | DEBUG: ENV_DEVELOPMENT, 12 | }); 13 | 14 | export const DEBUG = FLAGS.DEBUG; 15 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/utils/date.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | /** 4 | * Add a certain amount of days to a date (timestamp) 5 | * @param ts the timestamp (could be retrieved from Date.now()) 6 | * @param days number of days to add to the original date 7 | * @returns a new date that adds the number of days 8 | */ 9 | export const addDays = (ts: number, days: number): Date => { 10 | const date = new Date(ts); 11 | date.setDate(date.getDate() + days); 12 | 13 | return date; 14 | }; 15 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/utils/object.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as _ from 'lodash'; 4 | 5 | /** 6 | * Find any keys of the first object where the value differs to that of the second object 7 | * @param a first object to check 8 | * @param b second object to check 9 | */ 10 | export const findKeysWithDifferentValues = (a: any, b: any): string[] => 11 | _.reduce(a, (result, value, key) => (_.isEqual(value, b[key]) ? result : result.concat(key)), [] as string[]); 12 | -------------------------------------------------------------------------------- /source/packages/@ada/query-parse-render-lambdas/src/main/java/com/ada/query/parserender/exceptions/InvalidDataProductsInQueryException.java: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | package com.ada.query.parserender.exceptions; 5 | 6 | /** 7 | * Exception thrown when there are invalid data products in a query 8 | */ 9 | public class InvalidDataProductsInQueryException extends Exception { 10 | public InvalidDataProductsInQueryException(final String message) { 11 | super(message); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/entities/entity/Machine.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { StringEntityDefinition } from '../types' 4 | 5 | export const Machine: StringEntityDefinition<'Machine'> = { 6 | Machine: 'Machine', 7 | Machines: 'Machines', 8 | machine: 'machine', 9 | machines: 'machines', 10 | 11 | description: 'Unique client used to access the solution', 12 | descriptions: 'List of clients used to access the solution', 13 | } 14 | 15 | export default Machine; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/types/machine.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export interface Machine { 4 | machineId: string; 5 | description?: string; 6 | updatedTimestamp?: string; 7 | } 8 | 9 | export interface Token { 10 | machineId: string; 11 | tokenId: string; 12 | expiration: string; 13 | enabled: boolean; 14 | authToken?: string; 15 | authUrl?: string; 16 | clientSecret?: string; 17 | username: string; 18 | clientId: string; 19 | updatedTimestamp?: string; 20 | } 21 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/visualisation/views/router.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { AdminGate } from '$views/admin/components/AdminGate'; 4 | import { Route, Switch } from 'react-router-dom'; 5 | import { VisualisationRootView } from '$views/visualisation/views/Root'; 6 | 7 | export const VisualisationRouter = () => { 8 | return ( 9 | 10 | 11 | 12 | 13 | 14 | ); 15 | }; 16 | -------------------------------------------------------------------------------- /source/cypress/fixtures/socialGeneratedData.csv: -------------------------------------------------------------------------------- 1 | id,firstname,lastname,email,city,randomNum 2 | 100,Alejandro,Rosalez,Alejandro.Rosalez@example.com,Anytown,261 3 | 101,Akua,Mansa,Akua.Mansa@example.com,Anytown,291 4 | 102,Arnav,Desai,Arnav.Desai@example.com,Anytown,356 5 | 103,Carlos,Salazar,Carlos.Salazar@example.com,Anytown,306 6 | 104,Diego,Ramirez,Diego.Ramirez@example.com,Anytown,825 7 | 105,Jane,Doe,Jane.Doe@example.com,Anytown,856 8 | 106,Martha,Rivera,Martha.Rivera@example.com,Anytown,940 9 | 107,Mary,Major,Mary.Major@example.com,Anytown,987 10 | 108,Nikki,Wolf,Nikki.Wolf@example.com,Anytown,844 -------------------------------------------------------------------------------- /source/packages/@ada/api/extended-client/mock/mocked.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { MockApiClient } from './types'; 4 | 5 | let proxy: MockApiClient; 6 | 7 | if (process.env.STORYBOOK) { 8 | proxy = require('./mocked.browser').proxy; 9 | } else { 10 | proxy = require('./mocked.node').proxy; 11 | } 12 | 13 | export const MOCK_API_CLIENT = proxy; 14 | 15 | export class DefaultApi { 16 | constructor(..._args: any[]) { 17 | return proxy; 18 | } 19 | } 20 | 21 | export class Configuration {} 22 | -------------------------------------------------------------------------------- /source/packages/@ada/website/.env.development: -------------------------------------------------------------------------------- 1 | # Add CSP meta to enable debugging secuirty policy in development 2 | # - We need to allow `unsafe-inline` for react development but this is resolved in prod build 3 | # - We want to ensure `unsafe-eval` is not allow during development as this breaks the server side header policy and is risky 4 | REACT_APP_CSP= 5 | -------------------------------------------------------------------------------- /source/packages/@ada/common/src/identity/api-access-policy.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export enum DefaultApiAccessPolicyIds { 4 | DEFAULT = 'default', 5 | PROGRAMMATIC_ACCESS = 'programmatic_access', 6 | MANAGE_DATA_PRODUCTS = 'manage_data_products', 7 | MANAGE_GOVERNANCE = 'manage_governance', 8 | MANAGE_GROUPS = 'manage_groups', 9 | MANAGE_IDENTITY_PROVIDERS = 'manage_identity_providers', 10 | MANAGE_CUSTOM_SCRIPTS = 'manage_custom_scripts', 11 | ADMINISTRATOR_ACCESS = 'administrator_access', 12 | } 13 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_redshift/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const PATTERN_NOT_EMPTY = /^[\w.-]+$/; 5 | 6 | export const PATTERN_REDSHIFT_HOST = /^[\w.-]+\.redshift.*\.amazonaws\.com$/; 7 | 8 | // port 0 - 65535 9 | export const PATTERN_DB_PORT = 10 | /^([1-9]\d{0,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/; 11 | 12 | export const TEXT_FIELD = 'text-field'; 13 | 14 | export const PATTERN_ROLE_ARN = /^arn:aws:iam::\d{12}:role\/([A-Za-z0-9-]+)$/; -------------------------------------------------------------------------------- /source/packages/@ada/athena-lens/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/reportWebVitals.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { ReportHandler } from 'web-vitals'; 4 | 5 | export const reportWebVitals = (onPerfEntry?: ReportHandler) => { 6 | if (onPerfEntry && onPerfEntry instanceof Function) { 7 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 8 | getCLS(onPerfEntry); 9 | getFID(onPerfEntry); 10 | getFCP(onPerfEntry); 11 | getLCP(onPerfEntry); 12 | getTTFB(onPerfEntry); 13 | }); 14 | } 15 | }; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_oracle/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const PATTERN_RDS_ENDPOINT = /^[\w.]+\.rds.amazonaws.com/; 5 | 6 | export const PATTERN_NOT_EMPTY = /^[\w.-]+$/; 7 | 8 | export const PATTERN_ORACLE_USERNAME = /^[\w.\-@]+$/; 9 | 10 | // port 0 - 65535 11 | export const PATTERN_DB_PORT = 12 | /^([1-9]\d{0,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/; 13 | 14 | export const TEXT_FIELD = 'text-field'; 15 | 16 | export const SELECT_FIELD = 'select'; 17 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/views/view/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './admin'; 4 | 5 | export * from './budget'; 6 | 7 | export * from './core'; 8 | 9 | export * from './cost'; 10 | 11 | export * from './data-product'; 12 | 13 | export * from './governance'; 14 | 15 | export * from './group'; 16 | 17 | export * from './identity-provider'; 18 | 19 | export * from './public'; 20 | 21 | export * from './query'; 22 | 23 | export * from './user'; 24 | 25 | export * from './visualisation'; 26 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/dependencies/run-fetch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -eo pipefail 3 | 4 | CACHE_PATH="$HOME/.dep-cache" 5 | IMAGE_NAME='schema-preview' 6 | 7 | docker run -v $(pwd):/app -v $CACHE_PATH:/cache -v ~/.m2:/root/.m2 -w /app public.ecr.aws/amazoncorretto/amazoncorretto:8 ./fetch-dependencies.sh $IMAGE_NAME 8 | echo "Try to remove depenndencies in docker image" 9 | rm -rf ../docker-image/dependencies 10 | echo "Copy dependencies from cache to docker image" 11 | cp -r -v $CACHE_PATH/$IMAGE_NAME ../docker-image/dependencies 12 | ls -l ../docker-image/dependencies -------------------------------------------------------------------------------- /source/packages/@ada/query-parse-render-lambdas/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_mysql5/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const PATTERN_RDS_ENDPOINT = /^[\w.]+\.rds.amazonaws.com/; 5 | 6 | export const PATTERN_NOT_EMPTY = /^[\w.-]+$/; 7 | 8 | export const PATTERN_MYSQL_USERNAME = /^[\w.\-@]+$/; 9 | 10 | // port 0 - 65535 11 | export const PATTERN_DB_PORT = 12 | /^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/; 13 | 14 | export const TEXT_FIELD = 'text-field'; 15 | 16 | export const SELECT_FIELD = 'select'; 17 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/entities/entity/Script.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { StringEntityDefinition } from '../types' 4 | 5 | export const Script: StringEntityDefinition<'Script'> = { 6 | Script: 'Transform Script', 7 | Scripts: 'Transform Scripts', 8 | script: 'script', 9 | scripts: 'scripts', 10 | 11 | description: 'Python function used to apply transforms on imported data', 12 | descriptions: 'List of python functions used to apply tranforms on imported data', 13 | } 14 | 15 | export default Script; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/transforms/src/transforms/parquet_data_type_map/parquet_data_type_map.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | """ 6 | Parquet Data Type Map transform 7 | At this time this function only exists to trigger the Transform flows, during which 8 | we can catch and handle issues around the TIME64 data type in the file. 9 | """ 10 | def apply_transform(input_frame, **__): 11 | return [input_frame] 12 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/connectors/icons/icon_redshift.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/markdown/view/user/help.detail.md: -------------------------------------------------------------------------------- 1 | **Note**: Only admin users and users with appropriate permissions can access this page. 2 | 3 | The User details page displays details such as: 4 | 5 | - **User profile**: Username and email details 6 | - **Permissions**: Displays the groups the user is part of. 7 | - **Integration endpoints**: Displays the API URL and the Athena Proxy URL required for integrating with third party tools such as Tableau or PowerBI. 8 | - **API Keys**: Displays a list of API Keys to allow user access without using the sign in flow. 9 | - **API access**: Displays a list of API routes and access to these routes. -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/sql/parser.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import MySQLParser from 'ts-mysql-parser'; 4 | 5 | const parser = new MySQLParser(); 6 | 7 | export function parseSQL(sql: string) { 8 | const result = parser.parse(sql); 9 | if (result.parserError) { 10 | throw new Error(result.parserError.message); 11 | } 12 | return result; 13 | } 14 | 15 | export function isValidSQL(sql: string) { 16 | try { 17 | parseSQL(sql); 18 | return true; 19 | } catch (error) { 20 | return false; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/jest.config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | /* eslint-disable: sort-imports */ 4 | // must be imported before any aliases 5 | import createConfig from '../jest.config.base'; 6 | /* eslint-enable: sort-imports */ 7 | 8 | export const config = createConfig({ 9 | displayName: 'root', 10 | rootDir: __dirname, 11 | testPathIgnorePatterns: [ 12 | '/node_modules/', 13 | '/connectors/', 14 | '/services/', 15 | '/generator/openapi/' 16 | ], 17 | }); 18 | 19 | export default config; 20 | -------------------------------------------------------------------------------- /source/packages/@ada/api/extended-client/mock/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { StatusCodes } from 'http-status-codes'; 4 | import type { ApiError } from '../index'; 5 | 6 | export * from './types'; 7 | 8 | export * from '../types'; 9 | 10 | export * as Api from '../'; 11 | 12 | export * from './mocked'; 13 | 14 | /** 15 | * Create an error response to simulate errors thrown by the api client 16 | */ 17 | export const apiClientErrorResponse = (status: StatusCodes, error: ApiError) => ({ 18 | status, 19 | json: async () => error, 20 | }); 21 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/constructs/api/lambda-layer/code/nodejs/api-client-lambda/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@ada/api-client-lambda", 3 | "version": "0.0.0", 4 | "private": true, 5 | "main": "index.js", 6 | "types": "index.d.ts", 7 | "license": "Apache-2.0", 8 | "description": "Ada api-client-lambda", 9 | "files": [ 10 | "index.js", 11 | "index.d.ts" 12 | ], 13 | "peerDependencies": { 14 | "@ada/api-client": "*", 15 | "@ada/jwt-signer": "*", 16 | "aws-sdk": "*", 17 | "aws-xray-sdk-core": "*", 18 | "isomorphic-fetch": "*", 19 | "jsonwebtoken": "*", 20 | "verror": "*" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/entities/entity/Lens.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { StringEntityDefinition } from '../types' 4 | 5 | export const Lens: StringEntityDefinition<'Lens'> = { 6 | Lens: 'Lens', 7 | Lenses: 'Lenses', 8 | lens: 'lens', 9 | lenses: 'lenses', 10 | 11 | description: 'Defines governance function applied to queried data', 12 | descriptions: 'List of available governance functions', 13 | } 14 | 15 | export const Lens_ = { 16 | default: `Default ${Lens.Lens}`, 17 | } as const; 18 | 19 | export default Lens; 20 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/hooks/use-immediate-effect.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { useEffect, useRef } from 'react'; 4 | 5 | export const useImmediateEffect = (effect: CallableFunction): void => { 6 | const willMount = useRef(true); 7 | const cleanup = useRef(); 8 | 9 | useEffect(() => { 10 | return () => { 11 | cleanup.current && cleanup.current(); 12 | }; 13 | }, []); 14 | 15 | if (willMount.current) { 16 | cleanup.current = effect(); 17 | } 18 | 19 | willMount.current = false; 20 | }; 21 | -------------------------------------------------------------------------------- /source/packages/@ada/api/generators/openapi/generate.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import generateClients from './generate-clients'; 4 | import generateDocs from './generate-docs'; 5 | import generateSpec from './generate-spec'; 6 | 7 | async function main() { 8 | // spec generator MUST be called first 9 | await generateSpec(); 10 | 11 | await generateClients(); 12 | await generateDocs(); 13 | } 14 | 15 | main() 16 | .then(() => console.log('generate open api')) 17 | .catch((error) => { 18 | console.error(error); 19 | process.exit(1); 20 | }); 21 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/administration/stack/visualisation-deployment/Dockerfile.Node: -------------------------------------------------------------------------------- 1 | FROM node:16 2 | RUN set -e 3 | 4 | # workaround for host volume not support in fargate 5 | RUN mkdir -p /app/superset-frontend 6 | 7 | # replacement for volume config "- ./superset-frontend:/app/superset-frontend" in original docker-compose file 8 | COPY ./superset-frontend /app/superset-frontend 9 | 10 | # replacement for volume config "- ./superset:/app/superset" in original docker-compose file 11 | COPY ./superset /app/superset 12 | 13 | # replacement for volume config "- ./docker:/app/docker" in original docker-compose file 14 | COPY ./docker /app/docker -------------------------------------------------------------------------------- /source/packages/@ada/website/scripts/copydocs.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -euo pipefail 3 | IFS=$'\n\t' 4 | SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}") 5 | echo Current Directory: $(pwd) 6 | rm -rf "${SCRIPT_DIR}/../public/docs/api" 7 | mkdir -p "${SCRIPT_DIR}/../public/docs/api" 8 | echo "cp ${SCRIPT_DIR}/../../api/docs/html2/index.html ${SCRIPT_DIR}/../public/docs/api/index.html" 9 | cp ${SCRIPT_DIR}/../../api/docs/html2/index.html ${SCRIPT_DIR}/../public/docs/api/index.html 10 | echo "cp ${SCRIPT_DIR}/../../api/spec.yaml ${SCRIPT_DIR}/../public/docs/api/openapi.yaml" 11 | cp ${SCRIPT_DIR}/../../api/spec.yaml ${SCRIPT_DIR}/../public/docs/api/openapi.yaml 12 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/utils/misc.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import safeStringify from 'safe-stable-stringify'; 4 | 5 | export function getDataEqualityHash(value: any): string { 6 | return safeStringify(value); 7 | } 8 | export function isDataEqual(a: any, b: any): boolean { 9 | if (typeof a !== typeof b) return false; 10 | return getDataEqualityHash(a) === getDataEqualityHash(b); 11 | } 12 | 13 | export async function delay(ms: number): Promise { 14 | return new Promise((resolve) => { 15 | setTimeout(resolve, ms); 16 | }); 17 | } 18 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/budget/components/PercentagesSelectorCustomComponent/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { FormField } from 'aws-northstar'; 4 | import { PercentagesSelector } from '$northstar-plus'; 5 | import React from 'react'; 6 | 7 | export const PercentagesSelectorCustomComponent: React.FC = ({ 8 | input, 9 | ...props 10 | }) => { 11 | return ( 14 | value === 100} 17 | /> 18 | 19 | ) 20 | } -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/data-product/views/Create/components/TransformsPlanner/jsonschema-form/widgets/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { TransformWidgets } from '@ada/transforms'; 4 | import { Widget } from '@rjsf/core'; 5 | import schemaFieldMultiselector from './schema-field-multiselector'; 6 | import schemaFieldSelector from './schema-field-selector'; 7 | 8 | export const CUSTOM_WIDGETS = Object.fromEntries( 9 | [schemaFieldSelector, schemaFieldMultiselector].map(({ id, widget }) => [id, widget]), 10 | ) as Record; 11 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/handlers/transform/templates/define_transform_wrapper.template.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | def {wrapped_transform_method_name}(**kwargs): 6 | try: 7 | {script_content} 8 | return apply_transform(**kwargs) 9 | except Exception as e: 10 | _write_output_metadata({{ 11 | 'error': str(e) 12 | }}) 13 | raise e 14 | -------------------------------------------------------------------------------- /source/packages/@ada/transforms/src/transforms/json_relationalize/json_relationalize_glue.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | """ 6 | JSON relationalise transform 7 | """ 8 | def apply_transform(input_frame, data_product_id, temp_s3_path, **kwargs): 9 | data = input_frame.relationalize( 10 | data_product_id, temp_s3_path 11 | ) 12 | return [frame for frame in [data.select(df_name) for df_name in data.keys()] if frame.toDF().schema] 13 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/user/views/router.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Route, Switch, useRouteMatch } from 'react-router-dom'; 4 | import { UserDetailView } from './Detail'; 5 | import { UserRootView } from './Root'; 6 | 7 | export const UserRouter = () => { 8 | const { path } = useRouteMatch(); 9 | 10 | return ( 11 | 12 | 13 | 14 | 15 | 16 | ); 17 | }; 18 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/common/amazon/infra.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { TaskInput } from 'aws-cdk-lib/aws-stepfunctions'; 4 | 5 | export const AMAZON_BASE_TASK_INPUT: { name: string; value: TaskInput }[] = [ 6 | { 7 | name: 'S3_OUTPUT_BUCKET_URI', 8 | value: TaskInput.fromJsonPathAt('$.s3OutputPath').value, 9 | }, 10 | { 11 | name: 'TRIGGER_TYPE', 12 | value: TaskInput.fromJsonPathAt('$.triggerType').value, 13 | }, 14 | { 15 | name: 'SCHEDULE_RATE', 16 | value: TaskInput.fromJsonPathAt('$.scheduleRate').value, 17 | }, 18 | ]; 19 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/i18n/en/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { cloneDeepWith, omit } from 'lodash' 4 | import en_dictionary from '../../dictionary/en'; 5 | import type { BaseTranslation } from 'typesafe-i18n' 6 | 7 | function cleanDictionary (dictionary: any): any { 8 | return cloneDeepWith(dictionary, (value): any => { 9 | if (typeof value === 'object' && '__esModule' in value) { 10 | return cleanDictionary(omit(value, ['__esModule'])) 11 | } 12 | }) 13 | } 14 | 15 | const en: BaseTranslation = cleanDictionary(en_dictionary); 16 | 17 | export default en 18 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/views/budget/components/LandingPage/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Link, Stack, Text } from 'aws-northstar'; 4 | import { useI18nContext } from '$strings'; 5 | import React from 'react'; 6 | 7 | export const BudgetLandingPage: React.FC = () => { 8 | const { LL } = useI18nContext(); 9 | return 10 | 11 | {LL.VIEW.BUDGET.DETAILS.intro.prefix()} Budget {LL.VIEW.BUDGET.DETAILS.intro.suffix()} 12 | 13 | ; 14 | } -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_s3/infra/static/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Connectors } from '@ada/connectors/interface'; 4 | import { ID } from '../..' 5 | 6 | /* eslint-disable max-len */ 7 | 8 | //////////////////////////////////////////// 9 | // CONNECTOR STATIC INFRA - the actual static infrastructure deployed for this connector 10 | //////////////////////////////////////////// 11 | export const ConnectorIntegrator: Connectors.Infra.Static.Integrator = { 12 | ID, 13 | staticInfra: undefined, 14 | staticInfraRefs: undefined, 15 | } 16 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/connectors/common/types.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Connectors } from '@ada/connectors'; 4 | 5 | 6 | export type SourceTypeSummaryProps = { 7 | sourceType: Connectors.ID; 8 | sourceDetails: T; 9 | /** 10 | * List of property names to hide. 11 | */ 12 | propertiesToHide?: string[]; 13 | /** 14 | * Indicates is source details is collapsible, used for creation wizard. 15 | */ 16 | collapsible?: boolean; 17 | }; 18 | 19 | export type SourceTypeSummaryComponent = React.FC>; 20 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/scripts/copy-solution-version.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as fs from 'fs-extra'; 4 | import * as path from 'path'; 5 | 6 | const { awsSolutionId, awsSolutionVersion } = JSON.parse( 7 | fs.readFileSync(path.resolve(__dirname, '../../../../package.json'), { encoding: 'utf-8' }), 8 | ); 9 | 10 | fs.writeFileSync( 11 | path.resolve( 12 | __dirname, 13 | '../src/common/constructs/api/lambda-layer/code/nodejs/api-client-lambda/jwt-signer/version.json', 14 | ), 15 | JSON.stringify({ 16 | awsSolutionId, 17 | awsSolutionVersion, 18 | }), 19 | ); 20 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/amazon_kinesis/infra/static/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Connectors } from '@ada/connectors/interface'; 4 | import { ID } from '../..' 5 | 6 | /* eslint-disable max-len */ 7 | 8 | //////////////////////////////////////////// 9 | // CONNECTOR STATIC INFRA - the actual static infrastructure deployed for this connector 10 | //////////////////////////////////////////// 11 | export const ConnectorIntegrator: Connectors.Infra.Static.Integrator = { 12 | ID, 13 | staticInfra: undefined, 14 | staticInfraRefs: undefined, 15 | } 16 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/file_upload/infra/static/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Connectors } from '@ada/connectors/interface'; 4 | import { ID } from '../..' 5 | 6 | /* eslint-disable max-len */ 7 | 8 | //////////////////////////////////////////// 9 | // CONNECTOR STATIC INFRA - the actual static infrastructure deployed for this connector 10 | //////////////////////////////////////////// 11 | export const ConnectorIntegrator: Connectors.Infra.Static.Integrator = { 12 | ID, 13 | staticInfra: undefined, 14 | staticInfraRefs: undefined, 15 | } 16 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_mysql5/infra/static/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Connectors } from '@ada/connectors/interface'; 4 | import { ID } from '../..'; 5 | 6 | /* eslint-disable max-len */ 7 | 8 | //////////////////////////////////////////// 9 | // CONNECTOR STATIC INFRA - the actual static infrastructure deployed for this connector 10 | //////////////////////////////////////////// 11 | export const ConnectorIntegrator: Connectors.Infra.Static.Integrator = { 12 | ID, 13 | staticInfra: undefined, 14 | staticInfraRefs: undefined, 15 | }; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_oracle/infra/static/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Connectors } from '@ada/connectors/interface'; 4 | import { ID } from '../..'; 5 | 6 | /* eslint-disable max-len */ 7 | 8 | //////////////////////////////////////////// 9 | // CONNECTOR STATIC INFRA - the actual static infrastructure deployed for this connector 10 | //////////////////////////////////////////// 11 | export const ConnectorIntegrator: Connectors.Infra.Static.Integrator = { 12 | ID, 13 | staticInfra: undefined, 14 | staticInfraRefs: undefined, 15 | }; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/query/components/s3/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | 4 | export const parseStringTabularContent = (content: string): { [key: string]: string } => { 5 | return Object.fromEntries( 6 | content 7 | .split('\n') 8 | // skip lines with comments and information that are not relevant to the schema 9 | .filter((q) => !q.trim().startsWith('#') && q.split('\t').length >= 2) 10 | .map((curr) => { 11 | const parts = curr.split('\t'); 12 | 13 | return [[parts[0].trim()], parts[1].trim()]; 14 | }), 15 | ); 16 | }; 17 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/core/App/components/PersistentNotifications/index.tsx: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { NotificationButton, NotificationButtonProps } from '$northstar-plus'; 4 | import { usePersistedNotifications } from './use-persistent-notifications'; 5 | import React from 'react'; 6 | 7 | export const PersistentNotifications: React.FC = ({ 8 | dismissAllThreshold, 9 | dismissAll = true, 10 | }) => { 11 | usePersistedNotifications(); 12 | 13 | return ; 14 | }; 15 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_postgresql/infra/static/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Connectors } from '@ada/connectors/interface'; 4 | import { ID } from '../..'; 5 | 6 | /* eslint-disable max-len */ 7 | 8 | //////////////////////////////////////////// 9 | // CONNECTOR STATIC INFRA - the actual static infrastructure deployed for this connector 10 | //////////////////////////////////////////// 11 | export const ConnectorIntegrator: Connectors.Infra.Static.Integrator = { 12 | ID, 13 | staticInfra: undefined, 14 | staticInfraRefs: undefined, 15 | }; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/jdbc_sqlserver/infra/static/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { Connectors } from '@ada/connectors/interface'; 4 | import { ID } from '../..'; 5 | 6 | /* eslint-disable max-len */ 7 | 8 | //////////////////////////////////////////// 9 | // CONNECTOR STATIC INFRA - the actual static infrastructure deployed for this connector 10 | //////////////////////////////////////////// 11 | export const ConnectorIntegrator: Connectors.Infra.Static.Integrator = { 12 | ID, 13 | staticInfra: undefined, 14 | staticInfraRefs: undefined, 15 | }; 16 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/handlers/__tests__/test_transform_scripts/bad_import_transform.py: -------------------------------------------------------------------------------- 1 | ################################################################### 2 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | ################################################################### 5 | # This transform imports an illegal module - awswrangler is used in the transform lambda but should not be made 6 | # available to the transforms since it is not available in glue. 7 | import awswrangler as wr 8 | def apply_transform(input_frame, **kwargs): 9 | return [input_frame] 10 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/entities/entity/nested.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export { COMMON } from './common' 4 | 5 | export { ApiAccessPolicy_ } from './ApiAccessPolicy' 6 | 7 | export { AccessRequest_ } from './AccessRequest' 8 | 9 | export { DataProduct_ } from './DataProduct' 10 | 11 | export { DataSet_ } from './DataSet' 12 | 13 | export { IdentityProvider_ } from './IdentityProvider' 14 | 15 | export { Lens_ } from './Lens' 16 | 17 | export { Ontology_ } from './Ontology' 18 | 19 | export { Query_, SqlIdentifier } from './Query' 20 | 21 | export { Schema_ } from './Schema' 22 | -------------------------------------------------------------------------------- /source/packages/@ada/api/generators/openapi/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as path from 'path'; 4 | 5 | export const PACKAGE_ROOT = path.join(__dirname, '../../'); 6 | 7 | export const BUILD_DIR = path.join(PACKAGE_ROOT, 'build'); 8 | 9 | export const CLIENT_DIR = path.join(PACKAGE_ROOT, 'client'); 10 | 11 | export const DOCS_DIR = path.join(PACKAGE_ROOT, 'docs'); 12 | 13 | export const OPENAPI_SPEC_JSON_FILE = path.join(BUILD_DIR, 'openapi.json'); 14 | 15 | export const OPENAPI_SPEC_FILE = path.join(PACKAGE_ROOT, 'spec.yaml'); 16 | 17 | export const NPM_PACKAGE_NAME = '@ada/api-client'; 18 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/common/services/types/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export * from './script'; 4 | 5 | export * from './common'; 6 | 7 | export * from './step-function'; 8 | 9 | export * from './data-product'; 10 | 11 | export * from './event-bridge'; 12 | 13 | export * from './governance'; 14 | 15 | export * from './service-config'; 16 | 17 | export * from './identity'; 18 | 19 | export * from './machine'; 20 | 21 | export * from './ontology'; 22 | 23 | export { EventSource } from '../../../services/api/components/notification/common'; 24 | 25 | export * from './data-product-infra'; 26 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/common/utils/__tests__/data-product.test.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { DataSetIds } from '@ada/common'; 4 | import { sortDataSetIds } from '../data-product'; 5 | 6 | describe('utils/data-product', () => { 7 | it('should sort dataset ids', () => { 8 | expect(sortDataSetIds(['zzzzzz', 'aaaaaa', 'bbbbbb'])).toEqual(['aaaaaa', 'bbbbbb', 'zzzzzz']); 9 | 10 | expect(sortDataSetIds(['zzzzzz', 'aaaaaa', 'bbbbbb', DataSetIds.DEFAULT])).toEqual([ 11 | DataSetIds.DEFAULT, 12 | 'aaaaaa', 13 | 'bbbbbb', 14 | 'zzzzzz', 15 | ]); 16 | }); 17 | }); 18 | -------------------------------------------------------------------------------- /source/packages/@ada/api/extended-client/mock/mocked.browser.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import jest from 'jest-mock'; 4 | import type { ApiOperationName } from '../types'; 5 | import type { MockApiClient } from './types'; 6 | 7 | const fns: MockApiClient = {} as any; 8 | export const proxy: MockApiClient = new Proxy({} as any, { 9 | get:

(target: any, prop: P, _receiver: any) => { 10 | // set default empty jest mock function for each client method 11 | if (fns[prop] == null) { 12 | fns[prop] = jest.fn() as any; 13 | } 14 | 15 | return fns[prop]; 16 | }, 17 | }); 18 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/scripts/prepare-scan-docker-images.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Script to download and build the tern docker container, used for scanning docker images 4 | 5 | set -e 6 | 7 | # Set the current working directory to the script directory 8 | cd "$(dirname "${BASH_SOURCE[0]}")" 9 | 10 | # Clean up previous runs 11 | rm -rf ./scan-images 12 | mkdir -p ./scan-images/output 13 | 14 | # Download and extract tern 15 | curl https://github.com/tern-tools/tern/archive/refs/tags/v2.9.1.tar.gz -L -o ./scan-images/tern.tar.gz 16 | cd ./scan-images 17 | tar -xvzf tern.tar.gz 18 | cd tern-2.9.1 19 | 20 | # Build the ternd docker image used for scans 21 | docker build -f docker/Dockerfile -t ternd . 22 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export const APP_NAME = 'Automated Data Analytics on AWS' 4 | 5 | export const TAGLINE = 'Simplifies the management of data, providing an end-to-end data platform used for ingesting, transforming, and querying data sets' 6 | 7 | export const OWNER = 'Owner'; 8 | 9 | export const ROOT_ADMINISTRATOR = 'Root Administrator' 10 | 11 | export const QUERY_WORKBENCH = 'Query Workbench'; 12 | 13 | export const MY_PROFILE = 'My Profile'; 14 | 15 | export const MENU = { 16 | PROFILE: 'Profile', 17 | SIGN_OUT: 'Sign Out', 18 | } as const; 19 | -------------------------------------------------------------------------------- /source/packages/@ada/query-parse-render-lambdas/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@ada/query-parse-render-lambdas", 3 | "version": "0.0.0", 4 | "private": true, 5 | "license": "Apache-2.0", 6 | "description":"Ada query-parse-render-lambdas", 7 | "scripts": { 8 | "docker": "docker run -v $(pwd)/../../../:/source -v $HOME/.m2:/root/.m2 -w /source ada-java-build-base scripts/build-java.sh query-parse-render-lambdas", 9 | "build": "yarn docker install -Djava.util.logging.config.file=./no-logging.properties", 10 | "test": "yarn docker test -Djava.util.logging.config.file=./no-logging.properties", 11 | "clean": "yarn docker -Djava.util.logging.config.file=./no-logging.properties" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/testing/__fixtures__/api-access-policies.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import { ApiAccessPolicyEntity } from '@ada/api'; 4 | import { DefaultApiAccessPolicyIds } from '@ada/common'; 5 | import { SYSTEM_USER } from '$common/entity/user'; 6 | import { startCase } from 'lodash'; 7 | 8 | export const API_ACCESS_POLICIES: ApiAccessPolicyEntity[] = Object.values(DefaultApiAccessPolicyIds).map((id) => { 9 | return { 10 | apiAccessPolicyId: id, 11 | name: startCase(id), 12 | description: `Mock policy for ${id}`, 13 | resources: [], 14 | createdBy: SYSTEM_USER, 15 | }; 16 | }); 17 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/sources/mongodb/constants.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export const PATTERN_S3_HTTP_URI = /^(s3|https?|http):\/\/[^\s/$.?#].[^\s]*$/; 4 | 5 | export const PATTERN_NOT_EMPTY = /^[\w.-]+$/; 6 | 7 | // port 0 - 65535 8 | export const PATTERN_DB_PORT = 9 | /^([1-9]\d{0,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/; 10 | 11 | export const TEXT_FIELD = 'text-field'; 12 | 13 | export const SELECT_FIELD = 'select'; 14 | 15 | export const TEXT_AREA = 'textarea'; 16 | 17 | export const CHECKBOX_FIELD = 'checkbox'; 18 | 19 | export const SOURCE_DETAILS_TLS = 'sourceDetails.tls' -------------------------------------------------------------------------------- /source/packages/@ada/strings/src/dictionary/en/core.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | export const CORE = { 4 | format: { 5 | mask: '{val:string|mask}', 6 | mask5: '{val:string|mask5}', 7 | quote: '{val?:string|quote}', 8 | lowercase: '{val:string|lowercase}', 9 | uppercase: '{val:string|uppercase}', 10 | startcase: '{val:string|startcase}', 11 | kebabcase: '{val:string|kebabcase}', 12 | snakecase: '{val:string|snakecase}', 13 | camelcase: '{val:string|camelcase}', 14 | entityIdentifier: '{val:string|entityIdentifier}', 15 | entityName: '{val:string|entityName}', 16 | }, 17 | } as const; 18 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/creation-state-machine/steps/start-data-product-infra-deployment/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM public.ecr.aws/lambda/nodejs:18 AS builder 2 | WORKDIR /usr/app 3 | COPY node_modules/ ./node_modules 4 | COPY dist/ ./ 5 | RUN ls 6 | # Verify that modules are correctly installed for bundled handler 7 | # If this fails with `Error: Cannot find module 'xxx'` then we need to add 8 | # that module to ./package.json dependencies 9 | RUN node -e "console.log(typeof require('./index.js').handler === 'function');" 10 | 11 | 12 | FROM public.ecr.aws/lambda/nodejs:18 13 | RUN yum update -y 14 | WORKDIR ${LAMBDA_TASK_ROOT} 15 | COPY --from=builder /usr/app/* ./ 16 | CMD ["index.handler"] 17 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/services/data-product/components/schema-preview/docker-image/spark-class: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # HACK! 4 | # The spark-class script shipped with spark calls a java cli tool to generate the command to launch spark, before running 5 | # that command. 6 | # Unfortunately on a lambda, spark-class struggles to read the output of the cli tool and therefore fails to launch spark. 7 | # Since the only command type needed for this lambda is pyspark-shell, we can safely hardcode the spark command to run 8 | # and bypass the command generation. 9 | ${JAVA_HOME}/bin/java -cp $GLUE_JARS_DIR/*:$SPARK_CONF_DIR/:$SPARK_HOME/jars/* -Xmx1g org.apache.spark.deploy.SparkSubmit --name PySparkShell pyspark-shell 10 | -------------------------------------------------------------------------------- /source/packages/@ada/strings/jest.config.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { Config } from '@jest/types'; 4 | 5 | export const config: Config.InitialOptions = { 6 | preset: 'ts-jest', 7 | setupFilesAfterEnv: ['jest-extended'], 8 | roots: ['/src'], 9 | moduleNameMapper: { 10 | // https://github.com/ivanhofer/typesafe-i18n#tests-are-not-running-with-jest 11 | "typesafe-i18n/react": "typesafe-i18n/react/index.cjs", 12 | "typesafe-i18n/formatters": "typesafe-i18n/formatters/index.cjs", 13 | "typesafe-i18n/detectors": "typesafe-i18n/detectors/index.cjs", 14 | } 15 | }; 16 | 17 | export default config; 18 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/scripts/build-connector-docker-image.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import * as execa from 'execa'; 4 | import { Connectors } from '../src/connectors/interface'; 5 | 6 | /** 7 | * Build a connector docker image by name 8 | */ 9 | (async () => { 10 | const name = process.argv[2]; 11 | const [, source] = Connectors.DOCKER_IMAGES.find(([_name, _source]) => name === _name) || [] 12 | if (source == null) { 13 | throw new Error(`No docker image source defined for ${name}`); 14 | } 15 | 16 | await execa.command(`yarn build:image ${name} src/connectors/${source}`, { stdio: 'inherit', encoding: 'utf-8' }); 17 | })(); 18 | -------------------------------------------------------------------------------- /source/packages/@ada/infra/src/connectors/register-infra.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | /* eslint-disable */ 4 | import { Connectors } from './interface'; 5 | 6 | const state = { 7 | isRegistered: false, 8 | }; 9 | 10 | (function (_state: typeof state) { 11 | if (!state.isRegistered) { 12 | state.isRegistered = true; 13 | 14 | console.info('CONNECTORS: Registering Infra [start] ...'); 15 | 16 | require('./sources/register-infra'); 17 | 18 | console.info('CONNECTORS:REGISTERED:INFRA:IDS:', Connectors.Infra.getRegisteredInfraIds().join(', ')); 19 | 20 | console.info('CONNECTORS: Registering Infra [done]'); 21 | } 22 | })(state); 23 | -------------------------------------------------------------------------------- /source/packages/@ada/website/src/api/client/__mocks__/index.ts: -------------------------------------------------------------------------------- 1 | /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | SPDX-License-Identifier: Apache-2.0 */ 3 | import type { ApiError } from '@ada/api'; 4 | 5 | import { MOCK_API_CLIENT } from '@ada/api-client/mock'; 6 | 7 | jest.mock('@ada/api-client'); 8 | 9 | export { 10 | // match structure of client/index.ts 11 | MOCK_API_CLIENT as api, 12 | }; 13 | 14 | export class RequestError extends Error { 15 | public readonly body: ApiError; 16 | 17 | constructor(message: string, body: ApiError) { 18 | super(message); 19 | this.body = body; 20 | } 21 | 22 | async json(): Promise { 23 | return Promise.resolve(this.body); 24 | } 25 | } 26 | --------------------------------------------------------------------------------