diff --git a/src/app/data-enquc/.mdb/meta.json b/src/app/data-enquc/.mdb/meta.json deleted file mode 100644 index 2d1dce6..0000000 --- a/src/app/data-enquc/.mdb/meta.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "config_version": 20210101, - "app_id": "65a54653ac3e07263900a89a", - "group_id": "656405b98ff1580b1462f081", - "client_app_id": "data-enquc", - "last_pulled": 0 -} diff --git a/src/app/data-enquc/auth/custom_user_data.json b/src/app/data-enquc/auth/custom_user_data.json deleted file mode 100644 index a82d0fb..0000000 --- a/src/app/data-enquc/auth/custom_user_data.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "enabled": false -} diff --git a/src/app/data-enquc/auth/providers.json b/src/app/data-enquc/auth/providers.json deleted file mode 100644 index 8ee230c..0000000 --- a/src/app/data-enquc/auth/providers.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "api-key": { - "name": "api-key", - "type": "api-key", - "disabled": false - }, - "custom-function": { - "name": "custom-function", - "type": "custom-function", - "disabled": false, - "config": { - "authFunctionName": "authFunc" - } - }, - "local-userpass": { - "name": "local-userpass", - "type": "local-userpass", - "disabled": false, - "config": { - "autoConfirm": true, - "resetFunctionName": "resetFunc", - "runConfirmationFunction": false, - "runResetFunction": true - } - } -} diff --git a/src/app/data-enquc/data_sources/AtlasCluster/config.json b/src/app/data-enquc/data_sources/AtlasCluster/config.json deleted file mode 100644 index 5a92bc8..0000000 --- a/src/app/data-enquc/data_sources/AtlasCluster/config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "AtlasCluster", - "type": "mongodb-atlas", - "config": { - "clusterName": "AtlasCluster", - "readPreference": "primary", - "wireProtocolEnabled": false - }, - "version": 1 -} diff --git a/src/app/data-enquc/data_sources/AtlasCluster/default_rule.json b/src/app/data-enquc/data_sources/AtlasCluster/default_rule.json deleted file mode 100644 index 7eb95f1..0000000 --- a/src/app/data-enquc/data_sources/AtlasCluster/default_rule.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "roles": [ - { - "name": "readAndWriteAll", - "apply_when": {}, - "insert": true, - "delete": true, - "search": true, - "read": true, - "write": true - }, - { - "name": "readAllWriteOwn", - "apply_when": {}, - "document_filters": { - "read": true, - "write": { - "owner_id": "%%user.id" - } - }, - "insert": true, - "delete": true, - "search": true, - "read": true, - "write": true - } - ] -} diff --git a/src/app/data-enquc/environments/development.json b/src/app/data-enquc/environments/development.json deleted file mode 100644 index ad7e98e..0000000 --- a/src/app/data-enquc/environments/development.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "values": {} -} diff --git a/src/app/data-enquc/environments/no-environment.json b/src/app/data-enquc/environments/no-environment.json deleted file mode 100644 index ad7e98e..0000000 --- a/src/app/data-enquc/environments/no-environment.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "values": {} -} diff --git a/src/app/data-enquc/environments/production.json b/src/app/data-enquc/environments/production.json deleted file mode 100644 index ad7e98e..0000000 --- a/src/app/data-enquc/environments/production.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "values": {} -} diff --git a/src/app/data-enquc/environments/qa.json b/src/app/data-enquc/environments/qa.json deleted file mode 100644 index ad7e98e..0000000 --- a/src/app/data-enquc/environments/qa.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "values": {} -} diff --git a/src/app/data-enquc/environments/testing.json b/src/app/data-enquc/environments/testing.json deleted file mode 100644 index ad7e98e..0000000 --- a/src/app/data-enquc/environments/testing.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "values": {} -} diff --git a/src/app/data-enquc/functions/authFunc.js b/src/app/data-enquc/functions/authFunc.js deleted file mode 100644 index c31d8ef..0000000 --- a/src/app/data-enquc/functions/authFunc.js +++ /dev/null @@ -1,17 +0,0 @@ - - /* - - This function will be run when a user logs in with this provider. - - The return object must contain a string id, this string id will be used to login with an existing - or create a new user. This is NOT the App Services user id, but it is the id used to identify which user has - been created or logged in with. - - If an error is thrown within the function the login will fail. - - The default function provided below will always result in failure. - */ - - exports = (loginPayload) => { - return; - }; diff --git a/src/app/data-enquc/functions/config.json b/src/app/data-enquc/functions/config.json deleted file mode 100644 index 69cce07..0000000 --- a/src/app/data-enquc/functions/config.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "name": "resetFunc", - "private": false - }, - { - "name": "authFunc", - "private": true - } -] diff --git a/src/app/data-enquc/functions/resetFunc.js b/src/app/data-enquc/functions/resetFunc.js deleted file mode 100644 index 6e65bbb..0000000 --- a/src/app/data-enquc/functions/resetFunc.js +++ /dev/null @@ -1,69 +0,0 @@ -/* - - This function will be run when the client SDK 'callResetPasswordFunction' is called with an object parameter that - contains five keys: 'token', 'tokenId', 'username', 'password', and 'currentPasswordValid'. - 'currentPasswordValid' is a boolean will be true if a user changes their password by entering their existing - password and the password matches the actual password that is stored. Additional parameters are passed in as part - of the argument list from the SDK. - - The return object must contain a 'status' key which can be empty or one of three string values: - 'success', 'pending', or 'fail' - - 'success': the user's password is set to the passed in 'password' parameter. - - 'pending': the user's password is not reset and the UserPasswordAuthProviderClient 'resetPassword' function would - need to be called with the token, tokenId, and new password via an SDK. (see below) - - const Realm = require("realm"); - const appConfig = { - id: "my-app-id", - timeout: 1000, - app: { - name: "my-app-name", - version: "1" - } - }; - let app = new Realm.App(appConfig); - let client = app.auth.emailPassword; - await client.resetPassword(token, tokenId, newPassword); - - 'fail': the user's password is not reset and will not be able to log in with that password. - - If an error is thrown within the function the result is the same as 'fail'. - - Example below: - - exports = ( - { token, tokenId, username, password, currentPasswordValid }, - sendEmail, - securityQuestionAnswer - ) => { - // process the reset token, tokenId, username and password - if (sendEmail) { - context.functions.execute( - "sendResetPasswordEmail", - username, - token, - tokenId - ); - // will wait for SDK resetPassword to be called with the token and tokenId - return { status: "pending" }; - } else if ( - context.functions.execute( - "validateSecurityQuestionAnswer", - username, - securityQuestionAnswer || currentPasswordValid - ) - ) { - // will set the users password to the password parameter - return { status: "success" }; - } - - The uncommented function below is just a placeholder and will result in failure. - */ - - exports = ({ token, tokenId, username, password }) => { - console.log("Please visit the App Services UI to fully configure your password reset function"); - // will not reset the password - return { status: 'fail' }; - }; diff --git a/src/app/data-enquc/graphql/config.json b/src/app/data-enquc/graphql/config.json deleted file mode 100644 index 406b1ab..0000000 --- a/src/app/data-enquc/graphql/config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "use_natural_pluralization": true, - "disable_schema_introspection": false -} diff --git a/src/app/data-enquc/graphql/validation_settings.json b/src/app/data-enquc/graphql/validation_settings.json deleted file mode 100644 index a112d6f..0000000 --- a/src/app/data-enquc/graphql/validation_settings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "read_validation_action": "ERROR", - "read_validation_level": "STRICT", - "write_validation_action": "ERROR", - "write_validation_level": "STRICT" -} diff --git a/src/app/data-enquc/hosting/config.json b/src/app/data-enquc/hosting/config.json deleted file mode 100644 index a82d0fb..0000000 --- a/src/app/data-enquc/hosting/config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "enabled": false -} diff --git a/src/app/data-enquc/http_endpoints/config.json b/src/app/data-enquc/http_endpoints/config.json deleted file mode 100644 index fe51488..0000000 --- a/src/app/data-enquc/http_endpoints/config.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/src/app/data-enquc/http_endpoints/data_api_config.json b/src/app/data-enquc/http_endpoints/data_api_config.json deleted file mode 100644 index f70d00a..0000000 --- a/src/app/data-enquc/http_endpoints/data_api_config.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "versions": [ - "v1" - ], - "run_as_user_id": "", - "run_as_user_id_script_source": "", - "can_evaluate": {}, - "log_function_arguments": true, - "disabled": false, - "validation_method": "NO_VALIDATION", - "secret_name": "", - "fetch_custom_user_data": false, - "create_user_on_auth": true, - "return_type": "JSON" -} diff --git a/src/app/data-enquc/realm_config.json b/src/app/data-enquc/realm_config.json deleted file mode 100644 index 5a62a40..0000000 --- a/src/app/data-enquc/realm_config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "app_id": "data-enquc", - "config_version": 20210101, - "name": "data", - "provider_region": "aws-us-east-1", - "deployment_model": "GLOBAL", - "environment": "production" -} diff --git a/src/app/data-enquc/sync/config.json b/src/app/data-enquc/sync/config.json deleted file mode 100644 index 7c96b61..0000000 --- a/src/app/data-enquc/sync/config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "development_mode_enabled": false -}