diff --git a/.github/workflows/ddn-deploy.yaml b/.github/workflows/ddn-deploy.yaml index 9dee64a4..b58f91d1 100644 --- a/.github/workflows/ddn-deploy.yaml +++ b/.github/workflows/ddn-deploy.yaml @@ -38,11 +38,14 @@ jobs: sudo apt-get update sudo apt-get install -y jq - - name: Create .env.cloud.telco-dev + - name: Create .env.cloud.telco-dev securely working-directory: ./hasura if: env.no_op != 'true' + env: + ENV_CLOUD_DEFAULT: ${{ secrets.ENV_CLOUD_DEFAULT }} run: | - echo "${{ secrets.ENV_CLOUD_DEFAULT }}" > .env.cloud.telco-dev + echo "::add-mask::$ENV_CLOUD_DEFAULT" + echo "$ENV_CLOUD_DEFAULT" > .env.cloud.telco-dev - name: Detect Connector Changes if: env.no_op != 'true' diff --git a/.github/workflows/ddn-test.yaml b/.github/workflows/ddn-test.yaml index 76545818..8bac13ad 100644 --- a/.github/workflows/ddn-test.yaml +++ b/.github/workflows/ddn-test.yaml @@ -87,10 +87,10 @@ jobs: sleep 20 QUERY='{ - "query": "query getUsers { customers(where: {customerId: {_eq: 7}}) { customerId firstName lastName email satisfactionScore churnRisk customerPlans { customerPlanDevices { device { brand } } } } }" + "query": "query getUsers { publicCustomers(where: {customerId: {_eq: 7}}) { customerId firstName lastName email satisfactionScore churnRisk customerPlans { customerPlanDevices { device { brand } } } } }" }' - EXPECTED_RESPONSE='{"data":{"customers":[{"customerId":7,"firstName":"Alexis","lastName":"Marchand","email":"alexis.marchand@gmail.com","satisfactionScore":5,"churnRisk":"0.55","customerPlans":[{"customerPlanDevices":[{"device":{"brand":"Apple"}}]}]}]}}' + EXPECTED_RESPONSE='{"data":{"publicCustomers":[{"customerId":7,"firstName":"Alexis","lastName":"Marchand","email":"alexis.marchand@gmail.com","satisfactionScore":5,"churnRisk":"0.55","customerPlans":[{"customerPlanDevices":[{"device":{"brand":"Apple"}}]}]}]}}' RESPONSE=$(curl -s -X POST "http://localhost:3280/graphql" -H "Content-Type: application/json" -d "$QUERY") diff --git a/hasura/.env.telco.template b/hasura/.env.telco.template index f97c645e..a117ffac 100644 --- a/hasura/.env.telco.template +++ b/hasura/.env.telco.template @@ -1,90 +1,89 @@ AUTH_AUTH_AUTHORIZATION_HEADER="Bearer YQ==" -AUTH_AUTH_CONNECTION_URI="postgresql://postgres:hbGciOiJIUzI1NiIsInR5cCI6IkpX@local.hasura.dev:5432/auth" +AUTH_AUTH_HASURA_CONNECTOR_PORT=4444 +AUTH_AUTH_JDBC_URL="jdbc:postgresql://local.hasura.dev:5432/auth?user=postgres&password=hbGciOiJIUzI1NiIsInR5cCI6IkpX" AUTH_AUTH_HASURA_SERVICE_TOKEN_SECRET="YQ==" AUTH_AUTH_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="http://local.hasura.dev:4317" AUTH_AUTH_OTEL_SERVICE_NAME="auth_auth" -AUTH_AUTH_READ_URL="http://local.hasura.dev:6460" -AUTH_AUTH_WRITE_URL="http://local.hasura.dev:6460" +AUTH_AUTH_READ_URL="http://local.hasura.dev:4444" +AUTH_AUTH_WRITE_URL="http://local.hasura.dev:4444" AUTH_SEARCH_AUTHORIZATION_HEADER="Bearer yEFrfQQHs6BCe0S2GBWQxQ==" AUTH_SEARCH_BRAVE_API_KEY="FILLME" AUTH_SEARCH_GEMINI_API_KEY="FILLME" -AUTH_SEARCH_HASURA_CONNECTOR_PORT=8956 +AUTH_SEARCH_HASURA_CONNECTOR_PORT=9125 AUTH_SEARCH_HASURA_SERVICE_TOKEN_SECRET="yEFrfQQHs6BCe0S2GBWQxQ==" AUTH_SEARCH_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317" AUTH_SEARCH_OTEL_SERVICE_NAME="auth_search" AUTH_SEARCH_PERPLEXITY_API_KEY="FILLME" -AUTH_SEARCH_READ_URL="http://local.hasura.dev:8956" -AUTH_SEARCH_WRITE_URL="http://local.hasura.dev:8956" +AUTH_SEARCH_READ_URL="http://local.hasura.dev:9125" +AUTH_SEARCH_WRITE_URL="http://local.hasura.dev:9125" CUSTOMER_AURORA_AUTHORIZATION_HEADER="Bearer lW9ob0kcz3Zy6s5LXJCxbQ==" -CUSTOMER_AURORA_CONNECTION_URI="postgres://postgres:hbGciOiJIUzI1NiIsInR5cCI6IkpX@local.hasura.dev:5432/customer" -CUSTOMER_AURORA_HASURA_CONNECTOR_PORT=8043 +CUSTOMER_AURORA_JDBC_URL="jdbc:postgresql://local.hasura.dev:5432/customer?user=postgres&password=hbGciOiJIUzI1NiIsInR5cCI6IkpX" +CUSTOMER_AURORA_HASURA_CONNECTOR_PORT=7159 CUSTOMER_AURORA_HASURA_SERVICE_TOKEN_SECRET="lW9ob0kcz3Zy6s5LXJCxbQ==" CUSTOMER_AURORA_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317" CUSTOMER_AURORA_OTEL_SERVICE_NAME="customer_aurora" -CUSTOMER_AURORA_READ_URL="http://local.hasura.dev:8043" -CUSTOMER_AURORA_WRITE_URL="http://local.hasura.dev:8043" +CUSTOMER_AURORA_READ_URL="http://local.hasura.dev:7159" +CUSTOMER_AURORA_WRITE_URL="http://local.hasura.dev:7159" CUSTOMER_LOGIC_AUTHORIZATION_HEADER="Bearer WbHea2dsmtQoGCrQENmQVQ==" -CUSTOMER_LOGIC_HASURA_CONNECTOR_PORT=6193 +CUSTOMER_LOGIC_HASURA_CONNECTOR_PORT=5627 CUSTOMER_LOGIC_HASURA_SERVICE_TOKEN_SECRET="WbHea2dsmtQoGCrQENmQVQ==" CUSTOMER_LOGIC_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317" CUSTOMER_LOGIC_OTEL_SERVICE_NAME="customer_logic" -CUSTOMER_LOGIC_READ_URL="http://local.hasura.dev:6193" -CUSTOMER_LOGIC_WRITE_URL="http://local.hasura.dev:6193" +CUSTOMER_LOGIC_READ_URL="http://local.hasura.dev:5627" +CUSTOMER_LOGIC_WRITE_URL="http://local.hasura.dev:5627" CUSTOMER_MONGO_AUTHORIZATION_HEADER="Bearer VPBBqvl0Ewtm-uE82clWfQ==" -CUSTOMER_MONGO_HASURA_CONNECTOR_PORT=5119 +CUSTOMER_MONGO_HASURA_CONNECTOR_PORT=5973 CUSTOMER_MONGO_HASURA_SERVICE_TOKEN_SECRET="VPBBqvl0Ewtm-uE82clWfQ==" CUSTOMER_MONGO_MONGODB_DATABASE_URI="mongodb://presales:hbGciOiJIUzI1NiIsInR5cCI6IkpX@local.hasura.dev:27017/holotel" CUSTOMER_MONGO_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317" CUSTOMER_MONGO_OTEL_SERVICE_NAME="customer_mongo" -CUSTOMER_MONGO_READ_URL="http://local.hasura.dev:5119" -CUSTOMER_MONGO_WRITE_URL="http://local.hasura.dev:5119" +CUSTOMER_MONGO_READ_URL="http://local.hasura.dev:5973" +CUSTOMER_MONGO_WRITE_URL="http://local.hasura.dev:5973" CUSTOMER_STRIPE_AUTHORIZATION_HEADER="Bearer XQVuVHPrqCvJsuxrpmExaw==" -CUSTOMER_STRIPE_HASURA_CONNECTOR_PORT=7813 +CUSTOMER_STRIPE_HASURA_CONNECTOR_PORT=6775 CUSTOMER_STRIPE_HASURA_SERVICE_TOKEN_SECRET="XQVuVHPrqCvJsuxrpmExaw==" CUSTOMER_STRIPE_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317" CUSTOMER_STRIPE_OTEL_SERVICE_NAME="customer_stripe" -CUSTOMER_STRIPE_READ_URL="http://local.hasura.dev:7813" -CUSTOMER_STRIPE_WRITE_URL="http://local.hasura.dev:7813" +CUSTOMER_STRIPE_READ_URL="http://local.hasura.dev:6775" +CUSTOMER_STRIPE_WRITE_URL="http://local.hasura.dev:6775" JWT_SECRET="hptj8supNeslwet7nhGGr5Uu5MombVVjDmcGMOyrWa8" NETWORK_CLICKHOUSE_AUTHORIZATION_HEADER="Bearer BRiJ5KAUsYN__yGaVd72LQ==" -NETWORK_CLICKHOUSE_CLICKHOUSE_PASSWORD="hbGciOiJIUzI1NiIsInR5cCI6IkpX" -NETWORK_CLICKHOUSE_CLICKHOUSE_URL="http://local.hasura.dev:8123" -NETWORK_CLICKHOUSE_CLICKHOUSE_USERNAME="default" +NETWORK_CLICKHOUSE_JDBC_URL="jdbc:clickhouse://local.hasura.dev:8123/default?user=default&password=hbGciOiJIUzI1NiIsInR5cCI6IkpX" NETWORK_CLICKHOUSE_HASURA_SERVICE_TOKEN_SECRET="BRiJ5KAUsYN__yGaVd72LQ==" NETWORK_CLICKHOUSE_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317" NETWORK_CLICKHOUSE_OTEL_SERVICE_NAME="network_clickhouse" -NETWORK_CLICKHOUSE_READ_URL="http://local.hasura.dev:4842" -NETWORK_CLICKHOUSE_WRITE_URL="http://local.hasura.dev:4842" +NETWORK_CLICKHOUSE_READ_URL="http://local.hasura.dev:4045" +NETWORK_CLICKHOUSE_WRITE_URL="http://local.hasura.dev:4045" NETWORK_KAFKA_SINK_AUTHORIZATION_HEADER="Bearer ZGnGjDgbvJlDmoB-R2g0Fw==" -NETWORK_KAFKA_SINK_CONNECTION_URI="postgresql://postgres:hbGciOiJIUzI1NiIsInR5cCI6IkpX@local.hasura.dev:5432/network" -NETWORK_KAFKA_SINK_HASURA_CONNECTOR_PORT=4040 +NETWORK_KAFKA_SINK_JDBC_URL="jdbc:postgresql://local.hasura.dev:5432/network?user=postgres&password=hbGciOiJIUzI1NiIsInR5cCI6IkpX" +NETWORK_KAFKA_SINK_HASURA_CONNECTOR_PORT=9204 NETWORK_KAFKA_SINK_HASURA_SERVICE_TOKEN_SECRET="ZGnGjDgbvJlDmoB-R2g0Fw==" NETWORK_KAFKA_SINK_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317" NETWORK_KAFKA_SINK_OTEL_SERVICE_NAME="network_kafka_sink" -NETWORK_KAFKA_SINK_READ_URL="http://local.hasura.dev:4040" -NETWORK_KAFKA_SINK_WRITE_URL="http://local.hasura.dev:4040" +NETWORK_KAFKA_SINK_READ_URL="http://local.hasura.dev:9204" +NETWORK_KAFKA_SINK_WRITE_URL="http://local.hasura.dev:9204" SUPPORT_ATLAS_AUTHORIZATION_HEADER="Bearer NW85vcBvTEZHpqFwYV95sQ==" -SUPPORT_ATLAS_HASURA_CONNECTOR_PORT=4240 +SUPPORT_ATLAS_HASURA_CONNECTOR_PORT=8795 SUPPORT_ATLAS_HASURA_SERVICE_TOKEN_SECRET="NW85vcBvTEZHpqFwYV95sQ==" SUPPORT_ATLAS_MONGODB_DATABASE_URI="mongodb://presales:hbGciOiJIUzI1NiIsInR5cCI6IkpX@local.hasura.dev:27017/holotel" SUPPORT_ATLAS_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317" SUPPORT_ATLAS_OTEL_SERVICE_NAME="support_atlas" -SUPPORT_ATLAS_READ_URL="http://local.hasura.dev:4240" -SUPPORT_ATLAS_WRITE_URL="http://local.hasura.dev:4240" +SUPPORT_ATLAS_READ_URL="http://local.hasura.dev:8795" +SUPPORT_ATLAS_WRITE_URL="http://local.hasura.dev:8795" SUPPORT_VECTOR_AUTHORIZATION_HEADER="Bearer KJPU9PE8nw5omUeDtT6uxA==" -SUPPORT_VECTOR_CONNECTION_URI="postgresql://postgres:hbGciOiJIUzI1NiIsInR5cCI6IkpX@local.hasura.dev:5433/postgres" -SUPPORT_VECTOR_HASURA_CONNECTOR_PORT=8848 +SUPPORT_VECTOR_JDBC_URL="jdbc:postgresql://local.hasura.dev:5433/postgres?user=postgres&password=hbGciOiJIUzI1NiIsInR5cCI6IkpX" +SUPPORT_VECTOR_HASURA_CONNECTOR_PORT=6755 SUPPORT_VECTOR_HASURA_SERVICE_TOKEN_SECRET="KJPU9PE8nw5omUeDtT6uxA==" SUPPORT_VECTOR_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317" SUPPORT_VECTOR_OTEL_SERVICE_NAME="support_vector" -SUPPORT_VECTOR_READ_URL="http://local.hasura.dev:8848" +SUPPORT_VECTOR_READ_URL="http://local.hasura.dev:6755" SUPPORT_VECTOR_SEARCH_SERVICE_AUTHORIZATION_HEADER="Bearer p36W1PUoYmv1mOzeFA9CJg==" -SUPPORT_VECTOR_SEARCH_SERVICE_HASURA_CONNECTOR_PORT=6633 +SUPPORT_VECTOR_SEARCH_SERVICE_HASURA_CONNECTOR_PORT=6143 SUPPORT_VECTOR_SEARCH_SERVICE_HASURA_SERVICE_TOKEN_SECRET="p36W1PUoYmv1mOzeFA9CJg==" SUPPORT_VECTOR_SEARCH_SERVICE_OPENAI_API_KEY="FILLME" SUPPORT_VECTOR_SEARCH_SERVICE_OTEL_EXPORTER_OTLP_ENDPOINT="http://local.hasura.dev:4317" SUPPORT_VECTOR_SEARCH_SERVICE_OTEL_SERVICE_NAME="support_vector_search_service" -SUPPORT_VECTOR_SEARCH_SERVICE_READ_URL="http://local.hasura.dev:6633" -SUPPORT_VECTOR_SEARCH_SERVICE_WRITE_URL="http://local.hasura.dev:6633" +SUPPORT_VECTOR_SEARCH_SERVICE_READ_URL="http://local.hasura.dev:6143" +SUPPORT_VECTOR_SEARCH_SERVICE_WRITE_URL="http://local.hasura.dev:6143" SUPPORT_VECTOR_SEARCH_SERVICE_GQL_URL="FILLME" -SUPPORT_VECTOR_WRITE_URL="http://local.hasura.dev:8848" \ No newline at end of file +SUPPORT_VECTOR_WRITE_URL="http://local.hasura.dev:6755" \ No newline at end of file diff --git a/hasura/industry/telco/auth/connector/auth/.hasura-connector/Dockerfile.auth b/hasura/industry/telco/auth/connector/auth/.hasura-connector/Dockerfile.auth new file mode 100644 index 00000000..da99a414 --- /dev/null +++ b/hasura/industry/telco/auth/connector/auth/.hasura-connector/Dockerfile.auth @@ -0,0 +1,2 @@ +FROM ghcr.io/hasura/ndc-postgres-jdbc:v1.2.6 +COPY ./ /etc/connector \ No newline at end of file diff --git a/hasura/industry/telco/auth/connector/auth/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/auth/connector/auth/.hasura-connector/connector-metadata.yaml index 7c86b645..19580961 100644 --- a/hasura/industry/telco/auth/connector/auth/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/auth/connector/auth/.hasura-connector/connector-metadata.yaml @@ -1,16 +1,65 @@ +version: v2 +ndcSpecGeneration: v0.2 packagingDefinition: type: PrebuiltDockerImage - dockerImage: ghcr.io/hasura/ndc-postgres:v1.1.1 + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc:v1.2.6 supportedEnvironmentVariables: -- name: CONNECTION_URI - description: The PostgreSQL connection URI - defaultValue: postgresql://read_only_user:readonlyuser@35.236.11.122:5432/v3-docs-sample-app + - name: JDBC_URL + description: The JDBC URL to connect to the database + - name: JDBC_SCHEMAS + description: A comma-separated list of schemas to include in the metadata commands: - update: hasura-ndc-postgres update + update: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 + commandArgs: + - update + - --jdbc-url + - JDBC_URL + - --schemas + - $JDBC_SCHEMAS + - --outfile + - /etc/connector/configuration.json + upgradeConfiguration: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 + commandArgs: + - upgrade + - --config-file + - /etc/connector/configuration.json + - --outfile + - /etc/connector/configuration.json cliPlugin: - name: ndc-postgres - version: v1.1.1 -dockerComposeWatch: -- path: ./ - target: /etc/connector - action: sync+restart + type: Docker + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 +dockerComposeWatch: [] +nativeToolchainDefinition: + commands: + start: + type: ShellScript + bash: | + #!/usr/bin/env bash + set -eu -o pipefail + HASURA_CONFIGURATION_DIRECTORY="$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" \ + "$HASURA_DDN_NATIVE_CONNECTOR_DIR/entrypoint.sh" + powershell: | + $ErrorActionPreference = "Stop" + $env:HASURA_CONFIGURATION_DIRECTORY="$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH"; + & "$env:HASURA_DDN_NATIVE_CONNECTOR_DIR\entrypoint.bat" + watch: + type: ShellScript + bash: | + #!/usr/bin/env bash + echo "Watch is not supported for this connector" + exit 1 + powershell: | + Write-Output "Watch is not supported for this connector" + exit 1 + update: + type: ShellScript + bash: set -e -o pipefail; "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.sh" update --jdbc-url JDBC_URL --schemas $JDBC_SCHEMAS --outfile "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH/configuration.json" + powershell: $ErrorActionPreference = "Stop"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR\entrypoint.bat" update --jdbc-url JDBC_URL --schemas `$env:JDBC_SCHEMAS --outfile "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH\configuration.json" + cliPluginEntrypoint: + type: ShellScript + bash: set -e -o pipefail; "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.sh" + powershell: $ErrorActionPreference = "Stop"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.bat" diff --git a/hasura/industry/telco/auth/connector/auth/compose.yaml b/hasura/industry/telco/auth/connector/auth/compose.yaml index 811c79d5..51f9a587 100644 --- a/hasura/industry/telco/auth/connector/auth/compose.yaml +++ b/hasura/industry/telco/auth/connector/auth/compose.yaml @@ -2,23 +2,13 @@ services: auth_auth: build: context: . - dockerfile_inline: |- - FROM ghcr.io/hasura/ndc-postgres:v1.1.1 - COPY ./ /etc/connector - develop: - watch: - - path: ./ - action: sync+restart - target: /etc/connector + dockerfile: .hasura-connector/Dockerfile.auth environment: - CONNECTION_URI: $AUTH_AUTH_CONNECTION_URI HASURA_SERVICE_TOKEN_SECRET: $AUTH_AUTH_HASURA_SERVICE_TOKEN_SECRET - OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: $AUTH_AUTH_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + JDBC_URL: $AUTH_AUTH_JDBC_URL + OTEL_EXPORTER_OTLP_ENDPOINT: $AUTH_AUTH_OTEL_EXPORTER_OTLP_ENDPOINT OTEL_SERVICE_NAME: $AUTH_AUTH_OTEL_SERVICE_NAME extra_hosts: - - local.hasura.dev=host-gateway + - local.hasura.dev:host-gateway ports: - - mode: ingress - target: 8080 - published: "6460" - protocol: tcp + - 4444:8080 diff --git a/hasura/industry/telco/auth/connector/auth/configuration.json b/hasura/industry/telco/auth/connector/auth/configuration.json index 65855a17..1ed63a73 100644 --- a/hasura/industry/telco/auth/connector/auth/configuration.json +++ b/hasura/industry/telco/auth/connector/auth/configuration.json @@ -1,928 +1,90 @@ { - "version": "5", - "$schema": "schema.json", - "connectionSettings": { - "connectionUri": { - "variable": "CONNECTION_URI" + "version": "v2", + "connection_uri": { + "variable": "JDBC_URL" }, - "poolSettings": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "isolationLevel": "ReadCommitted" - }, - "metadata": { - "tables": { - "users": { - "schemaName": "public", - "tableName": "users", - "columns": { - "created_at": { - "name": "created_at", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "email": { - "name": "email", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "id": { - "name": "id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "password": { - "name": "password", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "roles": { - "name": "roles", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "updated_at": { - "name": "updated_at", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - } - }, - "uniquenessConstraints": { - "users_pkey": [ - "id" - ] - }, - "foreignRelations": {}, - "description": null - } - }, - "types": { - "scalar": { - "int4": { - "typeName": "int4", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "bit_and": { - "returnType": "int4" - }, - "bit_or": { - "returnType": "int4" - }, - "bit_xor": { - "returnType": "int4" - }, - "max": { - "returnType": "int4" - }, - "min": { - "returnType": "int4" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "int8" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "int4", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "int4", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - } - }, - "typeRepresentation": "int32" - }, - "int8": { - "typeName": "int8", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "bit_and": { - "returnType": "int8" - }, - "bit_or": { - "returnType": "int8" - }, - "bit_xor": { - "returnType": "int8" - }, - "max": { - "returnType": "int8" - }, - "min": { - "returnType": "int8" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "numeric" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "int8", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "int8", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - } - }, - "typeRepresentation": "int64AsString" - }, - "numeric": { - "typeName": "numeric", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "max": { - "returnType": "numeric" - }, - "min": { - "returnType": "numeric" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "numeric" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "numeric", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "numeric", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - } - }, - "typeRepresentation": "bigDecimalAsString" - }, - "text": { - "typeName": "text", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "text" - }, - "min": { - "returnType": "text" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "text", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_ilike": { - "operatorName": "~~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "text", - "isInfix": true - }, - "_iregex": { - "operatorName": "~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_like": { - "operatorName": "~~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nilike": { - "operatorName": "!~~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_niregex": { - "operatorName": "!~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nlike": { - "operatorName": "!~~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nregex": { - "operatorName": "!~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_regex": { - "operatorName": "~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "starts_with": { - "operatorName": "starts_with", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": false - }, - "ts_match_tt": { - "operatorName": "ts_match_tt", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": false - } - }, - "typeRepresentation": "string" - }, - "timestamptz": { - "typeName": "timestamptz", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "timestamptz" - }, - "min": { - "returnType": "timestamptz" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "timestamptz", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "timestamptz", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - } - }, - "typeRepresentation": "timestamptz" - }, - "varchar": { - "typeName": "varchar", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "text" - }, - "min": { - "returnType": "text" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "varchar", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_ilike": { - "operatorName": "~~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "varchar", - "isInfix": true - }, - "_iregex": { - "operatorName": "~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_like": { - "operatorName": "~~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nilike": { - "operatorName": "!~~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_niregex": { - "operatorName": "!~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nlike": { - "operatorName": "!~~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nregex": { - "operatorName": "!~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_regex": { - "operatorName": "~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "starts_with": { - "operatorName": "starts_with", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": false - }, - "ts_match_tt": { - "operatorName": "ts_match_tt", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": false - } - }, - "typeRepresentation": "string" + "tables": [ + { + "name": "public.users", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "email", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 255 + } + } + }, + { + "name": "password", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 64 + } + } + }, + { + "name": "roles", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 64 + } + } + }, + { + "name": "created_at", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "updated_at", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + } + ], + "primary_keys": [ + "id" + ], + "foreign_keys": {} } - }, - "composite": {} - }, - "nativeOperations": { - "queries": {}, - "mutations": {} - } - }, - "introspectionOptions": { - "excludedSchemas": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal" - ], - "unqualifiedSchemasForTables": [ - "public" - ], - "unqualifiedSchemasForTypesAndProcedures": [ - "public", - "pg_catalog", - "tiger" - ], - "comparisonOperatorMapping": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "introspectPrefixFunctionComparisonOperators": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "typeRepresentations": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - } - }, - "mutationsVersion": "v2" -} + ] +} \ No newline at end of file diff --git a/hasura/industry/telco/auth/connector/auth/connector.yaml b/hasura/industry/telco/auth/connector/auth/connector.yaml index 54c084ac..1493795f 100644 --- a/hasura/industry/telco/auth/connector/auth/connector.yaml +++ b/hasura/industry/telco/auth/connector/auth/connector.yaml @@ -3,14 +3,16 @@ version: v2 definition: name: auth subgraph: auth - source: hasura/postgres:v1.1.1 + source: hasura/postgres-promptql:v1.2.6 context: . envMapping: - CONNECTION_URI: - fromEnv: AUTH_AUTH_CONNECTION_URI + HASURA_CONNECTOR_PORT: + fromEnv: AUTH_AUTH_HASURA_CONNECTOR_PORT HASURA_SERVICE_TOKEN_SECRET: fromEnv: AUTH_AUTH_HASURA_SERVICE_TOKEN_SECRET - OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: - fromEnv: AUTH_AUTH_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + JDBC_URL: + fromEnv: AUTH_AUTH_JDBC_URL + OTEL_EXPORTER_OTLP_ENDPOINT: + fromEnv: AUTH_AUTH_OTEL_EXPORTER_OTLP_ENDPOINT OTEL_SERVICE_NAME: fromEnv: AUTH_AUTH_OTEL_SERVICE_NAME diff --git a/hasura/industry/telco/auth/connector/auth/schema.json b/hasura/industry/telco/auth/connector/auth/schema.json deleted file mode 100644 index efb67b68..00000000 --- a/hasura/industry/telco/auth/connector/auth/schema.json +++ /dev/null @@ -1,1614 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ParsedConfiguration", - "description": "Initial configuration, just enough to connect to a database and elaborate a full 'Configuration'.", - "type": "object", - "required": [ - "version" - ], - "properties": { - "version": { - "$ref": "#/definitions/Version" - }, - "$schema": { - "description": "Jsonschema of the configuration format.", - "default": null, - "type": [ - "string", - "null" - ] - }, - "connectionSettings": { - "description": "Database connection settings.", - "default": { - "connectionUri": { - "variable": "CONNECTION_URI" - }, - "poolSettings": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "isolationLevel": "ReadCommitted" - }, - "allOf": [ - { - "$ref": "#/definitions/DatabaseConnectionSettings" - } - ] - }, - "metadata": { - "description": "Connector metadata.", - "default": { - "tables": {}, - "types": { - "scalar": {}, - "composite": {} - }, - "nativeOperations": { - "queries": {}, - "mutations": {} - } - }, - "allOf": [ - { - "$ref": "#/definitions/Metadata" - } - ] - }, - "introspectionOptions": { - "description": "Database introspection options.", - "default": { - "excludedSchemas": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal" - ], - "unqualifiedSchemasForTables": [ - "public" - ], - "unqualifiedSchemasForTypesAndProcedures": [ - "public", - "pg_catalog", - "tiger" - ], - "comparisonOperatorMapping": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "introspectPrefixFunctionComparisonOperators": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "typeRepresentations": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - } - }, - "allOf": [ - { - "$ref": "#/definitions/IntrospectionOptions" - } - ] - }, - "mutationsVersion": { - "description": "Which version of the generated mutation procedures to include in the schema response", - "default": null, - "anyOf": [ - { - "$ref": "#/definitions/MutationsVersion" - }, - { - "type": "null" - } - ] - } - }, - "definitions": { - "Version": { - "type": "string", - "enum": [ - "5" - ] - }, - "DatabaseConnectionSettings": { - "description": "Database connection settings.", - "type": "object", - "required": [ - "connectionUri" - ], - "properties": { - "connectionUri": { - "description": "Connection string for a Postgres-compatible database.", - "allOf": [ - { - "$ref": "#/definitions/ConnectionUri" - } - ] - }, - "poolSettings": { - "description": "Connection pool settings.", - "default": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "allOf": [ - { - "$ref": "#/definitions/PoolSettings" - } - ] - }, - "isolationLevel": { - "description": "Query isolation level.", - "default": "ReadCommitted", - "allOf": [ - { - "$ref": "#/definitions/IsolationLevel" - } - ] - } - } - }, - "ConnectionUri": { - "$ref": "#/definitions/Secret" - }, - "Secret": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "object", - "required": [ - "variable" - ], - "properties": { - "variable": { - "$ref": "#/definitions/Variable" - } - } - } - ] - }, - "Variable": { - "description": "The name of an an environment variable.", - "type": "string" - }, - "PoolSettings": { - "description": "Settings for the PostgreSQL connection pool", - "type": "object", - "properties": { - "maxConnections": { - "description": "maximum number of pool connections", - "default": 50, - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "poolTimeout": { - "description": "timeout for acquiring a connection from the pool (seconds)", - "default": 30, - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "idleTimeout": { - "description": "idle timeout for releasing a connection from the pool (seconds)", - "default": 180, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - }, - "checkConnectionAfterIdle": { - "description": "check the connection is alive after being idle for N seconds. Set to null to always check.", - "default": 60, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - }, - "connectionLifetime": { - "description": "maximum lifetime for an individual connection (seconds)", - "default": 600, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - } - } - }, - "IsolationLevel": { - "description": "The isolation level of the transaction in which a query is executed.", - "oneOf": [ - { - "description": "Prevents reading data from another uncommitted transaction.", - "type": "string", - "enum": [ - "ReadCommitted" - ] - }, - { - "description": "Reading the same data twice is guaranteed to return the same result.", - "type": "string", - "enum": [ - "RepeatableRead" - ] - }, - { - "description": "Concurrent transactions behave identically to serializing them one at a time.", - "type": "string", - "enum": [ - "Serializable" - ] - } - ] - }, - "Metadata": { - "description": "Metadata information.", - "type": "object", - "properties": { - "tables": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/TablesInfo" - } - ] - }, - "types": { - "default": { - "scalar": {}, - "composite": {} - }, - "allOf": [ - { - "$ref": "#/definitions/Types" - } - ] - }, - "nativeOperations": { - "default": { - "queries": {}, - "mutations": {} - }, - "allOf": [ - { - "$ref": "#/definitions/NativeOperations" - } - ] - } - } - }, - "TablesInfo": { - "description": "Mapping from a \"table\" name to its information.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TableInfo" - } - }, - "TableInfo": { - "description": "Information about a database table (or any other kind of relation).", - "type": "object", - "required": [ - "columns", - "schemaName", - "tableName" - ], - "properties": { - "schemaName": { - "type": "string" - }, - "tableName": { - "type": "string" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - } - }, - "uniquenessConstraints": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/UniquenessConstraints" - } - ] - }, - "foreignRelations": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/ForeignRelations" - } - ] - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "ColumnInfo": { - "description": "Information about a database column.", - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "nullable": { - "default": "nullable", - "allOf": [ - { - "$ref": "#/definitions/Nullable" - } - ] - }, - "hasDefault": { - "$ref": "#/definitions/HasDefault" - }, - "isIdentity": { - "$ref": "#/definitions/IsIdentity" - }, - "isGenerated": { - "$ref": "#/definitions/IsGenerated" - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "Type": { - "description": "The type of values that a column, field, or argument may take.", - "oneOf": [ - { - "type": "object", - "required": [ - "scalarType" - ], - "properties": { - "scalarType": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "compositeType" - ], - "properties": { - "compositeType": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "arrayType" - ], - "properties": { - "arrayType": { - "$ref": "#/definitions/Type" - } - }, - "additionalProperties": false - } - ] - }, - "Nullable": { - "description": "Can this column contain null values", - "type": "string", - "enum": [ - "nullable", - "nonNullable" - ] - }, - "HasDefault": { - "description": "Does this column have a default value.", - "type": "string", - "enum": [ - "noDefault", - "hasDefault" - ] - }, - "IsIdentity": { - "description": "Is this column an identity column.", - "type": "string", - "enum": [ - "notIdentity", - "identityByDefault", - "identityAlways" - ] - }, - "IsGenerated": { - "description": "Is this column a generated column.", - "type": "string", - "enum": [ - "notGenerated", - "stored" - ] - }, - "UniquenessConstraints": { - "description": "A mapping from the name of a unique constraint to its value.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UniquenessConstraint" - } - }, - "UniquenessConstraint": { - "description": "The set of columns that make up a uniqueness constraint. We map each table column to their ndc field names.", - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "ForeignRelations": { - "description": "A mapping from the name of a foreign key constraint to its value.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ForeignRelation" - } - }, - "ForeignRelation": { - "description": "A foreign key constraint.", - "type": "object", - "required": [ - "columnMapping", - "foreignTable" - ], - "properties": { - "foreignSchema": { - "type": [ - "string", - "null" - ] - }, - "foreignTable": { - "type": "string" - }, - "columnMapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Types": { - "description": "Information about types.", - "type": "object", - "required": [ - "composite", - "scalar" - ], - "properties": { - "scalar": { - "$ref": "#/definitions/ScalarTypes" - }, - "composite": { - "$ref": "#/definitions/CompositeTypes" - } - } - }, - "ScalarTypes": { - "description": "Map of all known/occurring scalar types.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ScalarType" - } - }, - "ScalarType": { - "description": "Information about a scalar type. A scalar type is completely characterized by its name and the operations you can do on it.", - "type": "object", - "required": [ - "aggregateFunctions", - "comparisonOperators", - "schemaName", - "typeName" - ], - "properties": { - "typeName": { - "type": "string" - }, - "schemaName": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "aggregateFunctions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/AggregateFunction" - } - }, - "comparisonOperators": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ComparisonOperator" - } - }, - "typeRepresentation": { - "anyOf": [ - { - "$ref": "#/definitions/TypeRepresentation" - }, - { - "type": "null" - } - ] - } - } - }, - "AggregateFunction": { - "type": "object", - "required": [ - "returnType" - ], - "properties": { - "returnType": { - "type": "string" - } - } - }, - "ComparisonOperator": { - "description": "Represents a postgres binary comparison operator", - "type": "object", - "required": [ - "argumentType", - "operatorKind", - "operatorName" - ], - "properties": { - "operatorName": { - "type": "string" - }, - "operatorKind": { - "$ref": "#/definitions/OperatorKind" - }, - "argumentType": { - "type": "string" - }, - "isInfix": { - "default": true, - "type": "boolean" - } - } - }, - "OperatorKind": { - "description": "Is it a built-in operator, or a custom operator.", - "type": "string", - "enum": [ - "equal", - "in", - "custom" - ] - }, - "TypeRepresentation": { - "description": "Type representation of a scalar type.", - "oneOf": [ - { - "description": "JSON booleans", - "type": "string", - "enum": [ - "boolean" - ] - }, - { - "description": "Any JSON string", - "type": "string", - "enum": [ - "string" - ] - }, - { - "description": "float4", - "type": "string", - "enum": [ - "float32" - ] - }, - { - "description": "float8", - "type": "string", - "enum": [ - "float64" - ] - }, - { - "description": "int2", - "type": "string", - "enum": [ - "int16" - ] - }, - { - "description": "int4", - "type": "string", - "enum": [ - "int32" - ] - }, - { - "description": "int8 as integer", - "type": "string", - "enum": [ - "int64" - ] - }, - { - "description": "int8 as string", - "type": "string", - "enum": [ - "int64AsString" - ] - }, - { - "description": "numeric", - "type": "string", - "enum": [ - "bigDecimal" - ] - }, - { - "description": "numeric as string", - "type": "string", - "enum": [ - "bigDecimalAsString" - ] - }, - { - "description": "timestamp", - "type": "string", - "enum": [ - "timestamp" - ] - }, - { - "description": "timestamp with timezone", - "type": "string", - "enum": [ - "timestamptz" - ] - }, - { - "description": "time", - "type": "string", - "enum": [ - "time" - ] - }, - { - "description": "time with timezone", - "type": "string", - "enum": [ - "timetz" - ] - }, - { - "description": "date", - "type": "string", - "enum": [ - "date" - ] - }, - { - "description": "uuid", - "type": "string", - "enum": [ - "uUID" - ] - }, - { - "description": "geography", - "type": "string", - "enum": [ - "geography" - ] - }, - { - "description": "geometry", - "type": "string", - "enum": [ - "geometry" - ] - }, - { - "description": "Any JSON number", - "type": "string", - "enum": [ - "number" - ] - }, - { - "description": "Any JSON number, with no decimal part", - "type": "string", - "enum": [ - "integer" - ] - }, - { - "description": "An arbitrary json.", - "type": "string", - "enum": [ - "json" - ] - }, - { - "description": "One of the specified string values", - "type": "object", - "required": [ - "enum" - ], - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - ] - }, - "CompositeTypes": { - "description": "Map of all known composite types.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/CompositeType" - } - }, - "CompositeType": { - "description": "Information about a composite type. These are very similar to tables, but with the crucial difference that composite types do not support constraints (such as NOT NULL).", - "type": "object", - "required": [ - "fields", - "schemaName", - "typeName" - ], - "properties": { - "typeName": { - "type": "string" - }, - "schemaName": { - "type": "string" - }, - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/FieldInfo" - } - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "FieldInfo": { - "description": "Information about a composite type field.", - "type": "object", - "required": [ - "fieldName", - "type" - ], - "properties": { - "fieldName": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeOperations": { - "description": "Metadata information of Native Operations.", - "type": "object", - "required": [ - "mutations", - "queries" - ], - "properties": { - "queries": { - "description": "Native Queries.", - "allOf": [ - { - "$ref": "#/definitions/NativeQueries" - } - ] - }, - "mutations": { - "description": "Native Mutations.", - "allOf": [ - { - "$ref": "#/definitions/NativeMutations" - } - ] - } - } - }, - "NativeQueries": { - "description": "Metadata information of Native Queries.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/NativeQueryInfo" - } - }, - "NativeQueryInfo": { - "description": "Information about a Native Operation", - "type": "object", - "required": [ - "columns", - "sql" - ], - "properties": { - "sql": { - "description": "SQL expression to use for the Native Operation. We can interpolate values using `{{variable_name}}` syntax, such as `SELECT * FROM authors WHERE name = {{author_name}}`", - "allOf": [ - { - "$ref": "#/definitions/NativeQuerySql" - } - ] - }, - "columns": { - "description": "Columns returned by the Native Operation", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ReadOnlyColumnInfo" - } - }, - "arguments": { - "description": "Names and types of arguments that can be passed to this Native Operation", - "default": {}, - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ReadOnlyColumnInfo" - } - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeQuerySql": { - "description": "Native Operation SQL location.", - "anyOf": [ - { - "description": "Refer to an external Native Operation SQL file.", - "type": "object", - "required": [ - "file" - ], - "properties": { - "file": { - "description": "Relative path to a sql file.", - "type": "string" - } - } - }, - { - "description": "Inline Native Operation SQL string.", - "type": "object", - "required": [ - "inline" - ], - "properties": { - "inline": { - "description": "An inline Native Operation SQL string.", - "allOf": [ - { - "$ref": "#/definitions/InlineNativeQuerySql" - } - ] - } - } - }, - { - "$ref": "#/definitions/InlineNativeQuerySql" - } - ] - }, - "InlineNativeQuerySql": { - "type": "string" - }, - "ReadOnlyColumnInfo": { - "description": "Information about a native query column.", - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "nullable": { - "default": "nullable", - "allOf": [ - { - "$ref": "#/definitions/Nullable" - } - ] - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeMutations": { - "description": "Metadata information of Native Mutations.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/NativeQueryInfo" - } - }, - "IntrospectionOptions": { - "description": "Options which only influence how the configuration is updated.", - "type": "object", - "properties": { - "excludedSchemas": { - "description": "Schemas which are excluded from introspection. The default setting will exclude the internal schemas of Postgres, Citus, Cockroach, and the PostGIS extension.", - "default": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "unqualifiedSchemasForTables": { - "description": "The names of Tables and Views in these schemas will be returned unqualified. The default setting will set the `public` schema as unqualified.", - "default": [ - "public" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "unqualifiedSchemasForTypesAndProcedures": { - "description": "The types and procedures in these schemas will be returned unqualified.", - "default": [ - "public", - "pg_catalog", - "tiger" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "comparisonOperatorMapping": { - "description": "The mapping of comparison operator names to apply when updating the configuration", - "default": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/ComparisonOperatorMapping" - } - }, - "introspectPrefixFunctionComparisonOperators": { - "description": "Which prefix functions (i.e., non-infix operators) to generate introspection metadata for.\n\nThis list will accept any boolean-returning function taking two concrete scalar types as arguments.\n\nThe default includes comparisons for various build-in types as well as those of PostGIS.", - "default": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "typeRepresentations": { - "description": "The type representations to pick for base scalar types.", - "default": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - }, - "allOf": [ - { - "$ref": "#/definitions/TypeRepresentations" - } - ] - } - } - }, - "ComparisonOperatorMapping": { - "description": "Define the names that comparison operators will be exposed as by the automatic introspection.", - "type": "object", - "required": [ - "exposedName", - "operatorKind", - "operatorName" - ], - "properties": { - "operatorName": { - "description": "The name of the operator as defined by the database", - "type": "string" - }, - "exposedName": { - "description": "The name the operator will appear under in the exposed API", - "type": "string" - }, - "operatorKind": { - "description": "Equal, In or Custom.", - "allOf": [ - { - "$ref": "#/definitions/OperatorKind" - } - ] - } - } - }, - "TypeRepresentations": { - "description": "The type representations that guide introspection.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TypeRepresentation" - } - }, - "MutationsVersion": { - "description": "Which version of the generated mutations will be included in the schema", - "type": "string", - "enum": [ - "v1", - "v2" - ] - } - } -} diff --git a/hasura/industry/telco/auth/connector/search/.hasura-connector/Dockerfile b/hasura/industry/telco/auth/connector/search/.hasura-connector/Dockerfile index 1e569140..7f26191d 100644 --- a/hasura/industry/telco/auth/connector/search/.hasura-connector/Dockerfile +++ b/hasura/industry/telco/auth/connector/search/.hasura-connector/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/hasura/ndc-nodejs-lambda:v1.13.0 +FROM ghcr.io/hasura/ndc-nodejs-lambda:v1.16.0 COPY package-lock.json package.json /functions/ diff --git a/hasura/industry/telco/auth/connector/search/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/auth/connector/search/.hasura-connector/connector-metadata.yaml index 5c4da026..78a2c88e 100644 --- a/hasura/industry/telco/auth/connector/search/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/auth/connector/search/.hasura-connector/connector-metadata.yaml @@ -1,10 +1,12 @@ +version: v2 +ndcSpecGeneration: v0.2 packagingDefinition: type: ManagedDockerBuild supportedEnvironmentVariables: [] commands: upgradeConfiguration: type: Dockerized - dockerImage: ghcr.io/hasura/ndc-nodejs-lambda:v1.13.0 + dockerImage: ghcr.io/hasura/ndc-nodejs-lambda:v1.16.0 commandArgs: - /scripts/upgrade.sh dockerComposeWatch: @@ -30,7 +32,7 @@ nativeToolchainDefinition: upgradeConfiguration: type: ShellScript bash: | - ./upgrade-connector.sh "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.13.0" + ./upgrade-connector.sh "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.16.0" powershell: | - & ./upgrade-connector.ps1 "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.13.0" + & ./upgrade-connector.ps1 "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.16.0" documentationPage: https://hasura.info/nodejs-getting-started diff --git a/hasura/industry/telco/auth/connector/search/compose.yaml b/hasura/industry/telco/auth/connector/search/compose.yaml index 734efc53..23e9f83b 100644 --- a/hasura/industry/telco/auth/connector/search/compose.yaml +++ b/hasura/industry/telco/auth/connector/search/compose.yaml @@ -13,4 +13,4 @@ services: extra_hosts: - local.hasura.dev:host-gateway ports: - - 8956:8080 + - 9125:8080 diff --git a/hasura/industry/telco/auth/connector/search/connector.yaml b/hasura/industry/telco/auth/connector/search/connector.yaml index f2b2423e..bf1a076f 100644 --- a/hasura/industry/telco/auth/connector/search/connector.yaml +++ b/hasura/industry/telco/auth/connector/search/connector.yaml @@ -3,7 +3,7 @@ version: v2 definition: name: search subgraph: auth - source: hasura/nodejs:v1.13.0 + source: hasura/nodejs:v1.16.0 context: . envMapping: HASURA_CONNECTOR_PORT: diff --git a/hasura/industry/telco/auth/connector/search/package-lock.json b/hasura/industry/telco/auth/connector/search/package-lock.json index 04ebecfa..433dcf23 100644 --- a/hasura/industry/telco/auth/connector/search/package-lock.json +++ b/hasura/industry/telco/auth/connector/search/package-lock.json @@ -6,7 +6,7 @@ "": { "dependencies": { "@google/generative-ai": "^0.24.0", - "@hasura/ndc-lambda-sdk": "1.13.0" + "@hasura/ndc-lambda-sdk": "1.16.0" }, "devDependencies": { "dotenv-cli": "^7.4.2" @@ -27,6 +27,15 @@ "node": ">=12" } }, + "node_modules/@fastify/accept-negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@fastify/accept-negotiator/-/accept-negotiator-1.1.0.tgz", + "integrity": "sha512-OIHZrb2ImZ7XG85HXOONLcJWGosv7sIvM2ifAPQVhg9Lv7qdmMBNVaai4QTdyuaqbKM5eO6sLSQOYI7wEQeCJQ==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, "node_modules/@fastify/ajv-compiler": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/@fastify/ajv-compiler/-/ajv-compiler-3.6.0.tgz", @@ -38,6 +47,22 @@ "fast-uri": "^2.0.0" } }, + "node_modules/@fastify/compress": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/@fastify/compress/-/compress-7.0.3.tgz", + "integrity": "sha512-xa9fo5/DgK1s0bkS6xrYgNn8HmofO5tJvbCDk8QuXshSgLd2cFZANv1ox/Qv7zswS7JroHwTlCVv/XGTVO98tg==", + "license": "MIT", + "dependencies": { + "@fastify/accept-negotiator": "^1.1.0", + "fastify-plugin": "^4.5.0", + "mime-db": "^1.52.0", + "minipass": "^7.0.2", + "peek-stream": "^1.1.3", + "pump": "^3.0.0", + "pumpify": "^2.0.1", + "readable-stream": "^4.5.2" + } + }, "node_modules/@fastify/error": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/@fastify/error/-/error-3.4.1.tgz", @@ -63,17 +88,17 @@ } }, "node_modules/@google/generative-ai": { - "version": "0.24.0", - "resolved": "https://registry.npmjs.org/@google/generative-ai/-/generative-ai-0.24.0.tgz", - "integrity": "sha512-fnEITCGEB7NdX0BhoYZ/cq/7WPZ1QS5IzJJfC3Tg/OwkvBetMiVJciyaan297OvE4B9Jg1xvo0zIazX/9sGu1Q==", + "version": "0.24.1", + "resolved": "https://registry.npmjs.org/@google/generative-ai/-/generative-ai-0.24.1.tgz", + "integrity": "sha512-MqO+MLfM6kjxcKoy0p1wRzG3b4ZZXtPI+z2IE26UogS2Cm/XHO+7gGRBh6gcJsOiIVoH93UwKvW4HdgiOZCy9Q==", "engines": { "node": ">=18.0.0" } }, "node_modules/@grpc/grpc-js": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.2.tgz", - "integrity": "sha512-nnR5nmL6lxF8YBqb6gWvEgLdLh/Fn+kvAdX5hUOnt48sNSb0riz/93ASd2E5gvanPA41X6Yp25bIfGRp1SMb2g==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.4.tgz", + "integrity": "sha512-GsFaMXCkMqkKIvwCQjCrwH+GHbPKBjhwo/8ZuUkWHqbI73Kky9I+pQltrlT0+MWpedCoosda53lgjYfyEPgxBg==", "license": "Apache-2.0", "dependencies": { "@grpc/proto-loader": "^0.7.13", @@ -84,9 +109,9 @@ } }, "node_modules/@grpc/proto-loader": { - "version": "0.7.13", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.13.tgz", - "integrity": "sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw==", + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz", + "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==", "license": "Apache-2.0", "dependencies": { "lodash.camelcase": "^4.3.0", @@ -102,12 +127,12 @@ } }, "node_modules/@hasura/ndc-lambda-sdk": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/@hasura/ndc-lambda-sdk/-/ndc-lambda-sdk-1.13.0.tgz", - "integrity": "sha512-4hPM9YS50FDa8OD3mUoNgJ1TpbgMpvwZRxE2vYE8ec01lCVEovRbLH2bBNtKe9DAejJe+SXjik4PIQi9JcwNtg==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@hasura/ndc-lambda-sdk/-/ndc-lambda-sdk-1.16.0.tgz", + "integrity": "sha512-EbyTNO5IVfRRpUCmjFy7Plw4X46cBZ+9Ay5FeBenuQDnTvGfx2iW/YrYeVc2hdrbyBlhDHYnVe80/RnNwDIVDg==", "license": "Apache-2.0", "dependencies": { - "@hasura/ndc-sdk-typescript": "^7.0.0", + "@hasura/ndc-sdk-typescript": "^8.2.0", "@hasura/ts-node-dev": "^2.1.0", "@tsconfig/node20": "^20.1.4", "commander": "^11.1.0", @@ -115,18 +140,19 @@ "p-limit": "^3.1.0", "ts-api-utils": "^2.1.0", "ts-node": "^10.9.2", - "typescript": "^5.8.2" + "typescript": "^5.8.3" }, "bin": { "ndc-lambda-sdk": "bin/index.js" } }, "node_modules/@hasura/ndc-sdk-typescript": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-7.0.0.tgz", - "integrity": "sha512-y2ftrTQwtNZz9DmQXla/R/PDTgsSBxdA97uyq5zsAaBT9OjL9rAkRkXjkJdBC4GOXU+AsqSnsrDBn5pFvzzbxw==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-8.2.0.tgz", + "integrity": "sha512-Y1jdhBvqhFoc3CcUAGPPX2LuEiviYxwnR+ieX2QPvLcoTmbR6l60QGlbq30BWxYbs7YQ1iZ+qkLbFzi7Fd6cqg==", "license": "Apache-2.0", "dependencies": { + "@fastify/compress": "^7.0.3", "@json-schema-tools/meta-schema": "^1.7.0", "@opentelemetry/api": "^1.8.0", "@opentelemetry/exporter-metrics-otlp-grpc": "^0.53.0", @@ -142,7 +168,8 @@ "commander": "^11.0.0", "fastify": "^4.23.2", "pino-pretty": "^10.2.3", - "prom-client": "^15.1.2" + "prom-client": "^15.1.2", + "semver": "^7.6.3" } }, "node_modules/@hasura/ts-node-dev": { @@ -179,6 +206,27 @@ } } }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -206,9 +254,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", + "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { @@ -1105,9 +1153,9 @@ } }, "node_modules/@opentelemetry/instrumentation-fetch/node_modules/import-in-the-middle": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.13.1.tgz", - "integrity": "sha512-k2V9wNm9B+ysuelDTHjI9d5KPc4l8zAZTGqj+pcynvWkypZd857ryzN8jNC7Pg2YZXNMJcHRPpaDyCBbNyVRpA==", + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.14.2.tgz", + "integrity": "sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==", "license": "Apache-2.0", "dependencies": { "acorn": "^8.14.0", @@ -1176,9 +1224,9 @@ } }, "node_modules/@opentelemetry/instrumentation-http/node_modules/import-in-the-middle": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.13.1.tgz", - "integrity": "sha512-k2V9wNm9B+ysuelDTHjI9d5KPc4l8zAZTGqj+pcynvWkypZd857ryzN8jNC7Pg2YZXNMJcHRPpaDyCBbNyVRpA==", + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.14.2.tgz", + "integrity": "sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==", "license": "Apache-2.0", "dependencies": { "acorn": "^8.14.0", @@ -1842,9 +1890,9 @@ } }, "node_modules/@opentelemetry/semantic-conventions": { - "version": "1.30.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.30.0.tgz", - "integrity": "sha512-4VlGgo32k2EQ2wcCY3vEU28A0O13aOtHz3Xt2/2U5FAh9EfhD6t6DqL5Z6yAnRCntbTFDU4YfbpyzSlHNWycPw==", + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.36.0.tgz", + "integrity": "sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==", "license": "Apache-2.0", "engines": { "node": ">=14" @@ -1939,18 +1987,18 @@ "license": "MIT" }, "node_modules/@tsconfig/node20": { - "version": "20.1.5", - "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.5.tgz", - "integrity": "sha512-Vm8e3WxDTqMGPU4GATF9keQAIy1Drd7bPwlgzKJnZtoOsTm1tduUTbDjg0W5qERvGuxPI2h9RbMufH0YdfBylA==", + "version": "20.1.6", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.6.tgz", + "integrity": "sha512-sz+Hqx9zwZDpZIV871WSbUzSqNIsXzghZydypnfgzPKLltVJfkINfUeTct31n/tTSa9ZE1ZOfKdRre1uHHquYQ==", "license": "MIT" }, "node_modules/@types/node": { - "version": "22.13.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.14.tgz", - "integrity": "sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==", + "version": "24.0.14", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.14.tgz", + "integrity": "sha512-4zXMWD91vBLGRtHK3YbIoFMia+1nqEz72coM42C5ETjnNCa/heoj7NT1G67iAfOqMmcfhuCZ4uNpyz8EjlAejw==", "license": "MIT", "dependencies": { - "undici-types": "~6.20.0" + "undici-types": "~7.8.0" } }, "node_modules/@types/shimmer": { @@ -1990,9 +2038,9 @@ "license": "MIT" }, "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -2133,12 +2181,6 @@ "fastq": "^1.17.1" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -2177,15 +2219,6 @@ "integrity": "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==", "license": "MIT" }, - "node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/braces": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", @@ -2387,6 +2420,12 @@ "node": ">= 0.6" } }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" + }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", @@ -2417,9 +2456,9 @@ } }, "node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -2443,9 +2482,9 @@ } }, "node_modules/dotenv": { - "version": "16.4.7", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", - "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", "dev": true, "license": "BSD-2-Clause", "engines": { @@ -2481,6 +2520,48 @@ "node": ">=12" } }, + "node_modules/duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "node_modules/duplexify/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/duplexify/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/duplexify/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/dynamic-dedupe": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz", @@ -2503,9 +2584,9 @@ "license": "MIT" }, "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", "license": "MIT", "dependencies": { "once": "^1.4.0" @@ -2625,9 +2706,9 @@ "license": "MIT" }, "node_modules/fastify": { - "version": "4.29.0", - "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.29.0.tgz", - "integrity": "sha512-MaaUHUGcCgC8fXQDsDtioaCcag1fmPJ9j64vAKunqZF4aSub040ZGi/ag8NGE2714yREPOKZuHCfpPzuUD3UQQ==", + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.29.1.tgz", + "integrity": "sha512-m2kMNHIG92tSNWv+Z3UeTR9AWLLuo7KctC7mlFPtMEVrfjIhmQhkQnT9v15qA/BfVq3vvj134Y0jl9SBje3jXQ==", "funding": [ { "type": "github", @@ -2658,6 +2739,12 @@ "toad-cache": "^3.3.0" } }, + "node_modules/fastify-plugin": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/fastify-plugin/-/fastify-plugin-4.5.1.tgz", + "integrity": "sha512-stRHYGeuqpEZTL1Ef0Ovr2ltazUT9g844X5z/zEBFLG8RYlpDiOCIG+ATvYEp+/zmc7sN29mcIMp8gvYplYPIQ==", + "license": "MIT" + }, "node_modules/fastq": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", @@ -2751,14 +2838,14 @@ } }, "node_modules/glob": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", - "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", "license": "ISC", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^2.0.0" @@ -2835,6 +2922,12 @@ "module-details-from-path": "^1.0.3" } }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", @@ -2910,6 +3003,12 @@ "node": ">=0.12.0" } }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" + }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -2917,9 +3016,9 @@ "license": "ISC" }, "node_modules/jackspeak": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", - "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", + "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" @@ -2979,9 +3078,9 @@ "license": "MIT" }, "node_modules/long": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/long/-/long-5.3.1.tgz", - "integrity": "sha512-ka87Jz3gcx/I7Hal94xaN2tZEOPoUOEVftkQqZx2EeQRN7LGdfLlI3FvZ+7WDplm+vK2Urx9ULrvSowtdCieng==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", "license": "Apache-2.0" }, "node_modules/lru-cache": { @@ -2999,13 +3098,22 @@ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "license": "ISC" }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "@isaacs/brace-expansion": "^5.0.0" }, "engines": { "node": "20 || >=22" @@ -3048,9 +3156,9 @@ } }, "node_modules/module-details-from-path": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.3.tgz", - "integrity": "sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.4.tgz", + "integrity": "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==", "license": "MIT" }, "node_modules/ms": { @@ -3138,6 +3246,17 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/peek-stream": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/peek-stream/-/peek-stream-1.1.3.tgz", + "integrity": "sha512-FhJ+YbOSBb9/rIl2ZeE/QHEsWn7PqNYt8ARAY3kIgNGOk13g9FGyIY6JIl/xB/3TFRVoTv5as0l11weORrTekA==", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "duplexify": "^3.5.0", + "through2": "^2.0.3" + } + }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -3151,9 +3270,9 @@ } }, "node_modules/pino": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-9.6.0.tgz", - "integrity": "sha512-i85pKRCt4qMjZ1+L7sy2Ag4t1atFcdbEt76+7iRJn1g2BvsnRMGu9p8pivl9fs63M2kF/A0OacFZhTub+m/qMg==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-9.7.0.tgz", + "integrity": "sha512-vnMCM6xZTb1WDmLvtG2lE/2p+t9hDEIvTWJsu6FejkE62vB7gDhvzrpFR4Cw2to+9JNQxVnkAKVPA1KPB98vWg==", "license": "MIT", "dependencies": { "atomic-sleep": "^1.0.0", @@ -3161,7 +3280,7 @@ "on-exit-leak-free": "^2.1.0", "pino-abstract-transport": "^2.0.0", "pino-std-serializers": "^7.0.0", - "process-warning": "^4.0.0", + "process-warning": "^5.0.0", "quick-format-unescaped": "^4.0.3", "real-require": "^0.2.0", "safe-stable-stringify": "^2.3.1", @@ -3232,9 +3351,9 @@ "license": "MIT" }, "node_modules/pino/node_modules/process-warning": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-4.0.1.tgz", - "integrity": "sha512-3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz", + "integrity": "sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==", "funding": [ { "type": "github", @@ -3256,6 +3375,12 @@ "node": ">= 0.6.0" } }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" + }, "node_modules/process-warning": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", @@ -3276,9 +3401,9 @@ } }, "node_modules/protobufjs": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz", - "integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==", + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.3.tgz", + "integrity": "sha512-sildjKwVqOI2kmFDiXQ6aEB0fjYTafpEvIBs8tOR8qI4spuL9OPROLVu2qZqi/xgCfsHIwVqlaF8JBjWFHnKbw==", "hasInstallScript": true, "license": "BSD-3-Clause", "dependencies": { @@ -3313,15 +3438,52 @@ } }, "node_modules/pump": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", - "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, + "node_modules/pumpify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-2.0.1.tgz", + "integrity": "sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==", + "license": "MIT", + "dependencies": { + "duplexify": "^4.1.1", + "inherits": "^2.0.3", + "pump": "^3.0.0" + } + }, + "node_modules/pumpify/node_modules/duplexify": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.2" + } + }, + "node_modules/pumpify/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/quick-format-unescaped": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", @@ -3506,9 +3668,9 @@ "license": "BSD-3-Clause" }, "node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -3599,6 +3761,12 @@ "node": ">= 10.x" } }, + "node_modules/stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", + "license": "MIT" + }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -3755,6 +3923,46 @@ "real-require": "^0.2.0" } }, + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "license": "MIT", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/through2/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/through2/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/through2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -3862,9 +4070,9 @@ } }, "node_modules/typescript": { - "version": "5.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", - "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", @@ -3875,9 +4083,15 @@ } }, "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "license": "MIT" }, "node_modules/v8-compile-cache-lib": { diff --git a/hasura/industry/telco/auth/connector/search/package.json b/hasura/industry/telco/auth/connector/search/package.json index 0f644d5a..5aa94b90 100644 --- a/hasura/industry/telco/auth/connector/search/package.json +++ b/hasura/industry/telco/auth/connector/search/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@google/generative-ai": "^0.24.0", - "@hasura/ndc-lambda-sdk": "1.13.0" + "@hasura/ndc-lambda-sdk": "1.16.0" }, "devDependencies": { "dotenv-cli": "^7.4.2" diff --git a/hasura/industry/telco/auth/metadata/Users.hml b/hasura/industry/telco/auth/metadata/PublicUsers.hml similarity index 58% rename from hasura/industry/telco/auth/metadata/Users.hml rename to hasura/industry/telco/auth/metadata/PublicUsers.hml index 116465bf..2f15f91b 100644 --- a/hasura/industry/telco/auth/metadata/Users.hml +++ b/hasura/industry/telco/auth/metadata/PublicUsers.hml @@ -2,27 +2,27 @@ kind: ObjectType version: v1 definition: - name: Users - description: For internal usage and authz usage only. Not for querying as part of user/customer requests + name: PublicUsers + description: "Object type for public.users. Description: null" fields: - name: createdAt type: Timestamptz! - name: email - type: Varchar + type: String_1 - name: id - type: Int4! + type: Int32! - name: password - type: Varchar + type: String_1 - name: roles - type: Varchar + type: String_1 - name: updatedAt type: Timestamptz! graphql: - typeName: Users - inputTypeName: Auth_UsersInput + typeName: auth_PublicUsers + inputTypeName: auth_PublicUsersInput dataConnectorTypeMapping: - dataConnectorName: auth - dataConnectorObjectType: users + dataConnectorObjectType: public.users fieldMapping: createdAt: column: @@ -47,7 +47,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Users + typeName: PublicUsers permissions: - role: admin output: @@ -66,131 +66,131 @@ definition: - password - roles ---- -kind: Model -version: v2 -definition: - name: Users - objectType: Users - source: - dataConnectorName: auth - collection: users - filterExpressionType: UsersBoolExp - graphql: - selectMany: - queryRootField: users - subscription: - rootField: users - selectUniques: - - queryRootField: usersById - uniqueIdentifier: - - id - subscription: - rootField: usersById - filterInputTypeName: UsersFilterInput - aggregate: - queryRootField: usersAggregate - subscription: - rootField: usersAggregate - aggregateExpression: UsersAggExp - orderByExpression: UsersOrderByExp - ---- -kind: ModelPermissions -version: v1 -definition: - modelName: Users - permissions: - - role: admin - select: - filter: null - allowSubscriptions: true - - role: customer - select: - filter: - fieldComparison: - field: id - operator: _eq - value: - sessionVariable: x-hasura-user-id - --- kind: BooleanExpressionType version: v1 definition: - name: UsersBoolExp + name: PublicUsersBoolExp operand: object: - type: Users + type: PublicUsers comparableFields: - fieldName: createdAt - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: email - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: id - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: password - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: roles - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: updatedAt - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: Auth_UsersBoolExp + typeName: auth_PublicUsersBoolExp --- kind: AggregateExpression version: v1 definition: - name: UsersAggExp + name: PublicUsersAggExp operand: object: - aggregatedType: Users + aggregatedType: PublicUsers aggregatableFields: - fieldName: createdAt - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: email - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: id - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: password - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: roles - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: updatedAt - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp count: enable: true graphql: - selectTypeName: UsersAggExp + selectTypeName: auth_PublicUsersAggExp --- kind: OrderByExpression version: v1 definition: - name: UsersOrderByExp + name: PublicUsersOrderByExp operand: object: - orderedType: Users + orderedType: PublicUsers orderableFields: - fieldName: createdAt orderByExpression: TimestamptzOrderByExp - fieldName: email - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: id - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: password - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: roles - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: updatedAt orderByExpression: TimestamptzOrderByExp orderableRelationships: [] graphql: - expressionTypeName: auth_UsersOrderByExp + expressionTypeName: auth_PublicUsersOrderByExp + +--- +kind: Model +version: v2 +definition: + name: PublicUsers + objectType: PublicUsers + source: + dataConnectorName: auth + collection: public.users + filterExpressionType: PublicUsersBoolExp + aggregateExpression: PublicUsersAggExp + orderByExpression: PublicUsersOrderByExp + graphql: + selectMany: + queryRootField: publicUsers + subscription: + rootField: publicUsers + selectUniques: + - queryRootField: publicUsersById + uniqueIdentifier: + - id + subscription: + rootField: publicUsersById + filterInputTypeName: auth_PublicUsersFilterInput + aggregate: + queryRootField: publicUsersAggregate + subscription: + rootField: publicUsersAggregate + +--- +kind: ModelPermissions +version: v1 +definition: + modelName: PublicUsers + permissions: + - role: admin + select: + filter: null + allowSubscriptions: true + - role: customer + select: + filter: + fieldComparison: + field: id + operator: _eq + value: + sessionVariable: x-hasura-user-id diff --git a/hasura/industry/telco/auth/metadata/auth-types.hml b/hasura/industry/telco/auth/metadata/auth-types.hml index 4a83b43e..7d9577e4 100644 --- a/hasura/industry/telco/auth/metadata/auth-types.hml +++ b/hasura/industry/telco/auth/metadata/auth-types.hml @@ -4,59 +4,13 @@ version: v1 definition: name: Timestamptz graphql: - typeName: Auth_Timestamptz - ---- -kind: ScalarType -version: v1 -definition: - name: Varchar - graphql: - typeName: Auth_Varchar - ---- -kind: ScalarType -version: v1 -definition: - name: Int4 - graphql: - typeName: Auth_Int4 - ---- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: auth - dataConnectorScalarType: timestamptz - representation: Timestamptz - graphql: - comparisonExpressionTypeName: Auth_TimestamptzComparisonExp - ---- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: auth - dataConnectorScalarType: varchar - representation: Varchar - graphql: - comparisonExpressionTypeName: Auth_VarcharComparisonExp - ---- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: auth - dataConnectorScalarType: int4 - representation: Int4 - graphql: - comparisonExpressionTypeName: Auth_Int4ComparisonExp + typeName: auth_Timestamptz --- kind: BooleanExpressionType version: v1 definition: - name: TimestamptzBoolExp + name: TimestampWithTimeZoneBoolExp operand: scalar: type: Timestamptz @@ -77,108 +31,150 @@ definition: argumentType: Timestamptz! dataConnectorOperatorMapping: - dataConnectorName: auth - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: TimestamptzBoolExp_2 + typeName: auth_TimestampWithTimeZoneBoolExp + +--- +kind: DataConnectorScalarRepresentation +version: v1 +definition: + dataConnectorName: auth + dataConnectorScalarType: timestamp_with_time_zone + representation: Timestamptz + graphql: + comparisonExpressionTypeName: auth_TimestamptzComparisonExp + +--- +kind: ScalarType +version: v1 +definition: + name: String_1 + graphql: + typeName: auth_String1 --- kind: BooleanExpressionType version: v1 definition: - name: VarcharBoolExp + name: CharacterVaryingBoolExp operand: scalar: - type: Varchar + type: String_1 comparisonOperators: - name: _eq - argumentType: Varchar! + argumentType: String_1! - name: _gt - argumentType: Varchar! + argumentType: String_1! - name: _gte - argumentType: Varchar! + argumentType: String_1! - name: _ilike - argumentType: Varchar! + argumentType: String_1! - name: _in - argumentType: "[Varchar!]!" + argumentType: "[String_1!]!" - name: _iregex - argumentType: Varchar! + argumentType: String_1! - name: _like - argumentType: Varchar! + argumentType: String_1! - name: _lt - argumentType: Varchar! + argumentType: String_1! - name: _lte - argumentType: Varchar! + argumentType: String_1! - name: _neq - argumentType: Varchar! + argumentType: String_1! - name: _nilike - argumentType: Varchar! + argumentType: String_1! - name: _niregex - argumentType: Varchar! + argumentType: String_1! - name: _nlike - argumentType: Varchar! + argumentType: String_1! - name: _nregex - argumentType: Varchar! + argumentType: String_1! - name: _regex - argumentType: Varchar! - - name: starts_with - argumentType: Varchar! - - name: ts_match_tt - argumentType: Varchar! + argumentType: String_1! dataConnectorOperatorMapping: - dataConnectorName: auth - dataConnectorScalarType: varchar + dataConnectorScalarType: character_varying operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: VarcharBoolExp_1 + typeName: auth_CharacterVaryingBoolExp + +--- +kind: DataConnectorScalarRepresentation +version: v1 +definition: + dataConnectorName: auth + dataConnectorScalarType: character_varying + representation: String_1 + graphql: + comparisonExpressionTypeName: auth_String1ComparisonExp + +--- +kind: ScalarType +version: v1 +definition: + name: Int32 + graphql: + typeName: auth_Int32 --- kind: BooleanExpressionType version: v1 definition: - name: Int4BoolExp + name: IntegerBoolExp operand: scalar: - type: Int4 + type: Int32 comparisonOperators: - name: _eq - argumentType: Int4! + argumentType: Int32! - name: _gt - argumentType: Int4! + argumentType: Int32! - name: _gte - argumentType: Int4! + argumentType: Int32! - name: _in - argumentType: "[Int4!]!" + argumentType: "[Int32!]!" - name: _lt - argumentType: Int4! + argumentType: Int32! - name: _lte - argumentType: Int4! + argumentType: Int32! - name: _neq - argumentType: Int4! + argumentType: Int32! dataConnectorOperatorMapping: - dataConnectorName: auth - dataConnectorScalarType: int4 + dataConnectorScalarType: integer operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: Int4BoolExp_2 + typeName: auth_IntegerBoolExp + +--- +kind: DataConnectorScalarRepresentation +version: v1 +definition: + dataConnectorName: auth + dataConnectorScalarType: integer + representation: Int32 + graphql: + comparisonExpressionTypeName: auth_Int32ComparisonExp --- kind: AggregateExpression version: v1 definition: - name: TimestamptzAggExp + name: TimestampWithTimeZoneAggExp operand: scalar: aggregatedType: Timestamptz @@ -189,7 +185,7 @@ definition: returnType: Timestamptz dataConnectorAggregationFunctionMapping: - dataConnectorName: auth - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone functionMapping: max: name: max @@ -200,96 +196,24 @@ definition: countDistinct: enable: true graphql: - selectTypeName: TimestamptzAggExp_2 - ---- -kind: ScalarType -version: v1 -definition: - name: Text - graphql: - typeName: Text_1 - ---- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: auth - dataConnectorScalarType: text - representation: Text - graphql: - comparisonExpressionTypeName: TextComparisonExp_1 - ---- -kind: BooleanExpressionType -version: v1 -definition: - name: TextBoolExp - operand: - scalar: - type: Text - comparisonOperators: - - name: _eq - argumentType: Text! - - name: _gt - argumentType: Text! - - name: _gte - argumentType: Text! - - name: _ilike - argumentType: Text! - - name: _in - argumentType: "[Text!]!" - - name: _iregex - argumentType: Text! - - name: _like - argumentType: Text! - - name: _lt - argumentType: Text! - - name: _lte - argumentType: Text! - - name: _neq - argumentType: Text! - - name: _nilike - argumentType: Text! - - name: _niregex - argumentType: Text! - - name: _nlike - argumentType: Text! - - name: _nregex - argumentType: Text! - - name: _regex - argumentType: Text! - - name: starts_with - argumentType: Text! - - name: ts_match_tt - argumentType: Text! - dataConnectorOperatorMapping: - - dataConnectorName: auth - dataConnectorScalarType: text - operatorMapping: {} - logicalOperators: - enable: true - isNull: - enable: true - graphql: - typeName: TextBoolExp_2 + selectTypeName: auth_TimestampWithTimeZoneAggExp --- kind: AggregateExpression version: v1 definition: - name: VarcharAggExp + name: CharacterVaryingAggExp operand: scalar: - aggregatedType: Varchar + aggregatedType: String_1 aggregationFunctions: - name: max - returnType: Text + returnType: String_1 - name: min - returnType: Text + returnType: String_1 dataConnectorAggregationFunctionMapping: - dataConnectorName: auth - dataConnectorScalarType: varchar + dataConnectorScalarType: character_varying functionMapping: max: name: max @@ -300,165 +224,147 @@ definition: countDistinct: enable: true graphql: - selectTypeName: VarcharAggExp_1 + selectTypeName: auth_CharacterVaryingAggExp --- kind: ScalarType version: v1 definition: - name: Numeric_1 + name: Bigdecimal graphql: - typeName: Numeric_1 - ---- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: auth - dataConnectorScalarType: numeric - representation: Numeric_1 - graphql: - comparisonExpressionTypeName: NumericComparisonExp_1 + typeName: auth_Bigdecimal --- kind: BooleanExpressionType version: v1 definition: - name: NumericBoolExp + name: DecimalBoolExp operand: scalar: - type: Numeric_1 + type: Bigdecimal comparisonOperators: - name: _eq - argumentType: Numeric_1! + argumentType: Bigdecimal! - name: _gt - argumentType: Numeric_1! + argumentType: Bigdecimal! - name: _gte - argumentType: Numeric_1! + argumentType: Bigdecimal! - name: _in - argumentType: "[Numeric_1!]!" + argumentType: "[Bigdecimal!]!" - name: _lt - argumentType: Numeric_1! + argumentType: Bigdecimal! - name: _lte - argumentType: Numeric_1! + argumentType: Bigdecimal! - name: _neq - argumentType: Numeric_1! + argumentType: Bigdecimal! dataConnectorOperatorMapping: - dataConnectorName: auth - dataConnectorScalarType: numeric + dataConnectorScalarType: decimal operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: NumericBoolExp_2 + typeName: auth_DecimalBoolExp --- -kind: ScalarType +kind: DataConnectorScalarRepresentation version: v1 definition: - name: Int8 + dataConnectorName: auth + dataConnectorScalarType: decimal + representation: Bigdecimal graphql: - typeName: Int8_2 + comparisonExpressionTypeName: auth_BigdecimalComparisonExp --- -kind: DataConnectorScalarRepresentation +kind: ScalarType version: v1 definition: - dataConnectorName: auth - dataConnectorScalarType: int8 - representation: Int8 + name: Biginteger graphql: - comparisonExpressionTypeName: Int8ComparisonExp_2 + typeName: auth_Biginteger --- kind: BooleanExpressionType version: v1 definition: - name: Int8BoolExp + name: BigintBoolExp operand: scalar: - type: Int8 + type: Biginteger comparisonOperators: - name: _eq - argumentType: Int8! + argumentType: Biginteger! - name: _gt - argumentType: Int8! + argumentType: Biginteger! - name: _gte - argumentType: Int8! + argumentType: Biginteger! - name: _in - argumentType: "[Int8!]!" + argumentType: "[Biginteger!]!" - name: _lt - argumentType: Int8! + argumentType: Biginteger! - name: _lte - argumentType: Int8! + argumentType: Biginteger! - name: _neq - argumentType: Int8! + argumentType: Biginteger! dataConnectorOperatorMapping: - dataConnectorName: auth - dataConnectorScalarType: int8 + dataConnectorScalarType: bigint operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: Int8BoolExp_2 + typeName: auth_BigintBoolExp + +--- +kind: DataConnectorScalarRepresentation +version: v1 +definition: + dataConnectorName: auth + dataConnectorScalarType: bigint + representation: Biginteger + graphql: + comparisonExpressionTypeName: auth_BigintegerComparisonExp --- kind: AggregateExpression version: v1 definition: - name: Int4AggExp + name: IntegerAggExp operand: scalar: - aggregatedType: Int4 + aggregatedType: Int32 aggregationFunctions: - name: avg - returnType: Numeric_1 - - name: bit_and - returnType: Int4 - - name: bit_or - returnType: Int4 - - name: bit_xor - returnType: Int4 + returnType: Bigdecimal - name: max - returnType: Int4 + returnType: Int32 - name: min - returnType: Int4 - - name: stddev - returnType: Numeric_1 + returnType: Int32 - name: stddev_pop - returnType: Numeric_1 + returnType: Int32! - name: stddev_samp - returnType: Numeric_1 + returnType: Int32! - name: sum - returnType: Int8 + returnType: Biginteger - name: var_pop - returnType: Numeric_1 + returnType: Int32! - name: var_samp - returnType: Numeric_1 - - name: variance - returnType: Numeric_1 + returnType: Int32! dataConnectorAggregationFunctionMapping: - dataConnectorName: auth - dataConnectorScalarType: int4 + dataConnectorScalarType: integer functionMapping: avg: name: avg - bit_and: - name: bit_and - bit_or: - name: bit_or - bit_xor: - name: bit_xor max: name: max min: name: min - stddev: - name: stddev stddev_pop: name: stddev_pop stddev_samp: @@ -469,14 +375,12 @@ definition: name: var_pop var_samp: name: var_samp - variance: - name: variance count: enable: true countDistinct: enable: true graphql: - selectTypeName: Int4AggExp_2 + selectTypeName: auth_IntegerAggExp --- kind: OrderByExpression @@ -495,25 +399,25 @@ definition: kind: OrderByExpression version: v1 definition: - name: VarcharOrderByExp + name: String1OrderByExp operand: scalar: - orderedType: Varchar + orderedType: String_1 enableOrderByDirections: enableAll: true graphql: - expressionTypeName: auth_VarcharOrderByExp + expressionTypeName: auth_String1OrderByExp --- kind: OrderByExpression version: v1 definition: - name: Int4OrderByExp + name: Int32OrderByExp operand: scalar: - orderedType: Int4 + orderedType: Int32 enableOrderByDirections: enableAll: true graphql: - expressionTypeName: auth_Int4OrderByExp + expressionTypeName: auth_Int32OrderByExp diff --git a/hasura/industry/telco/auth/metadata/auth.hml b/hasura/industry/telco/auth/metadata/auth.hml index 5cb47226..bdefab18 100644 --- a/hasura/industry/telco/auth/metadata/auth.hml +++ b/hasura/industry/telco/auth/metadata/auth.hml @@ -12,862 +12,1424 @@ definition: Authorization: valueFromEnv: AUTH_AUTH_AUTHORIZATION_HEADER schema: - version: v0.1 + version: v0.2 schema: - scalar_types: - int4: - representation: - type: int32 - aggregate_functions: - avg: - result_type: + collections: + - arguments: {} + name: public.users + type: public.users + uniqueness_constraints: + primary_key: + unique_columns: + - id + functions: [] + object_types: + bigint_set_input: + description: Wrapper for setting scalar bigint + fields: + value: + arguments: {} + description: New value for scalar bigint + type: type: nullable underlying_type: + name: bigint type: named - name: numeric - bit_and: - result_type: + foreign_keys: {} + character_varying_set_input: + description: Wrapper for setting scalar character_varying + fields: + value: + arguments: {} + description: New value for scalar character_varying + type: type: nullable underlying_type: + name: character_varying type: named - name: int4 - bit_or: - result_type: + foreign_keys: {} + decimal_set_input: + description: Wrapper for setting scalar decimal + fields: + value: + arguments: {} + description: New value for scalar decimal + type: type: nullable underlying_type: + name: decimal type: named - name: int4 - bit_xor: - result_type: - type: nullable - underlying_type: + foreign_keys: {} + delete_public.users_result: + description: delete from public.users result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.users type: named - name: int4 - max: - result_type: + type: array + foreign_keys: {} + insert_public.users_result: + description: insert from public.users result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: public.users + type: named + type: array + foreign_keys: {} + int_set_input: + description: Wrapper for setting scalar int + fields: + value: + arguments: {} + description: New value for scalar int + type: type: nullable underlying_type: + name: int type: named - name: int4 - min: - result_type: + foreign_keys: {} + integer_set_input: + description: Wrapper for setting scalar integer + fields: + value: + arguments: {} + description: New value for scalar integer + type: type: nullable underlying_type: + name: integer type: named - name: int4 - stddev: - result_type: + foreign_keys: {} + public.users: + description: 'Object type for public.users. Description: null' + fields: + created_at: + arguments: {} + type: + name: timestamp_with_time_zone + type: named + email: + arguments: {} + type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - stddev_pop: - result_type: + id: + arguments: {} + type: + name: integer + type: named + password: + arguments: {} + type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - stddev_samp: - result_type: + roles: + arguments: {} + type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - sum: - result_type: + updated_at: + arguments: {} + type: + name: timestamp_with_time_zone + type: named + foreign_keys: {} + public.users_insert_input: + description: Input type for inserting into public.users + fields: + created_at: + arguments: {} + description: New value for public.users.created_at + type: + name: timestamp_with_time_zone + type: named + email: + arguments: {} + description: New value for public.users.email + type: type: nullable underlying_type: + name: character_varying type: named - name: int8 - var_pop: - result_type: + id: + arguments: {} + description: New value for public.users.id + type: type: nullable underlying_type: + name: integer type: named - name: numeric - var_samp: - result_type: + password: + arguments: {} + description: New value for public.users.password + type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - variance: - result_type: + roles: + arguments: {} + description: New value for public.users.roles + type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: int4 - _gte: - type: custom - argument_type: - type: named - name: int4 - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: int4 - _lte: - type: custom - argument_type: - type: named - name: int4 - _neq: - type: custom - argument_type: + updated_at: + arguments: {} + description: New value for public.users.updated_at + type: + name: timestamp_with_time_zone type: named - name: int4 - int8: - representation: - type: int64 - aggregate_functions: - avg: - result_type: + foreign_keys: {} + public.users_set_input: + description: Input type for updating public.users + fields: + created_at: + arguments: {} + description: New value wrapper for public.users.created_at + type: type: nullable underlying_type: + name: timestamp_with_time_zone_set_input type: named - name: numeric - bit_and: - result_type: + email: + arguments: {} + description: New value wrapper for public.users.email + type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: int8 - bit_or: - result_type: + id: + arguments: {} + description: New value wrapper for public.users.id + type: type: nullable underlying_type: + name: integer_set_input type: named - name: int8 - bit_xor: - result_type: + password: + arguments: {} + description: New value wrapper for public.users.password + type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: int8 - max: - result_type: + roles: + arguments: {} + description: New value wrapper for public.users.roles + type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: int8 - min: - result_type: + updated_at: + arguments: {} + description: New value wrapper for public.users.updated_at + type: type: nullable underlying_type: + name: timestamp_with_time_zone_set_input type: named - name: int8 - stddev: - result_type: + foreign_keys: {} + string_set_input: + description: Wrapper for setting scalar string + fields: + value: + arguments: {} + description: New value for scalar string + type: type: nullable underlying_type: + name: string type: named - name: numeric - stddev_pop: - result_type: + foreign_keys: {} + timestamp_with_time_zone_set_input: + description: Wrapper for setting scalar timestamp_with_time_zone + fields: + value: + arguments: {} + description: New value for scalar timestamp_with_time_zone + type: type: nullable underlying_type: + name: timestamp_with_time_zone type: named - name: numeric - stddev_samp: - result_type: - type: nullable - underlying_type: + foreign_keys: {} + update_public.users_result: + description: update from public.users result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.users type: named - name: numeric - sum: - result_type: - type: nullable - underlying_type: + type: array + foreign_keys: {} + procedures: + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: public.users_insert_input type: named - name: numeric - var_pop: - result_type: + type: array + returning: + description: Fields to return + type: type: nullable underlying_type: - type: named - name: numeric - var_samp: - result_type: + element_type: + name: string + type: named + type: array + description: Insert into public.users + name: insert_public.users + result_type: + name: insert_public.users_result + type: named + - arguments: + returning: + description: Fields to return + type: type: nullable underlying_type: - type: named - name: numeric - variance: - result_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.users_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.users + type: predicate + description: Update public.users + name: update_public.users + result_type: + name: update_public.users_result + type: named + - arguments: + returning: + description: Fields to return + type: type: nullable underlying_type: - type: named - name: numeric + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.users + type: predicate + description: Delete from public.users + name: delete_public.users + result_type: + name: delete_public.users_result + type: named + scalar_types: + bigint: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: bigint + type: named + type: custom + stddev_samp: + result_type: + name: bigint + type: named + type: custom + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: bigint + type: named + type: custom + var_samp: + result_type: + name: bigint + type: named + type: custom comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: int8 + type: greater_than _gte: - type: custom - argument_type: - type: named - name: int8 + type: greater_than_or_equal _in: type: in _lt: - type: custom - argument_type: - type: named - name: int8 + type: less_than _lte: - type: custom - argument_type: - type: named - name: int8 + type: less_than_or_equal _neq: - type: custom argument_type: + name: bigint type: named - name: int8 - numeric: + type: custom representation: - type: bigdecimal + type: biginteger + character_varying: aggregate_functions: - avg: - result_type: - type: nullable - underlying_type: - type: named - name: numeric max: - result_type: - type: nullable - underlying_type: - type: named - name: numeric + type: max min: - result_type: - type: nullable - underlying_type: - type: named - name: numeric - stddev: - result_type: - type: nullable - underlying_type: - type: named - name: numeric - stddev_pop: - result_type: - type: nullable - underlying_type: - type: named - name: numeric - stddev_samp: - result_type: - type: nullable - underlying_type: - type: named - name: numeric - sum: - result_type: - type: nullable - underlying_type: - type: named - name: numeric - var_pop: - result_type: - type: nullable - underlying_type: - type: named - name: numeric - var_samp: - result_type: - type: nullable - underlying_type: - type: named - name: numeric - variance: - result_type: - type: nullable - underlying_type: - type: named - name: numeric + type: min comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: numeric + type: greater_than _gte: - type: custom - argument_type: - type: named - name: numeric + type: greater_than_or_equal + _ilike: + type: contains_insensitive _in: type: in - _lt: - type: custom + _iregex: argument_type: + name: character_varying type: named - name: numeric - _lte: type: custom - argument_type: - type: named - name: numeric + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal _neq: - type: custom argument_type: + name: character_varying type: named - name: numeric - text: - representation: - type: string - aggregate_functions: - max: - result_type: - type: nullable - underlying_type: - type: named - name: text - min: - result_type: - type: nullable - underlying_type: - type: named - name: text - comparison_operators: - _eq: - type: equal - _gt: type: custom + _nilike: argument_type: + name: character_varying type: named - name: text - _gte: type: custom + _niregex: argument_type: + name: character_varying type: named - name: text - _ilike: type: custom + _nlike: argument_type: + name: character_varying type: named - name: text - _in: - type: in - _iregex: type: custom + _nregex: argument_type: + name: character_varying type: named - name: text - _like: type: custom + _regex: argument_type: + name: character_varying type: named - name: text - _lt: type: custom - argument_type: + representation: + type: string + decimal: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: decimal type: named - name: text - _lte: type: custom - argument_type: + stddev_samp: + result_type: + name: decimal type: named - name: text - _neq: type: custom - argument_type: + sum: + result_type: decimal + type: sum + var_pop: + result_type: + name: decimal type: named - name: text - _nilike: type: custom - argument_type: + var_samp: + result_type: + name: decimal type: named - name: text - _niregex: type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: decimal type: named - name: text - _nlike: type: custom - argument_type: + representation: + type: bigdecimal + int: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: int type: named - name: text - _nregex: type: custom - argument_type: + stddev_samp: + result_type: + name: int type: named - name: text - _regex: type: custom - argument_type: + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: int type: named - name: text - starts_with: type: custom - argument_type: + var_samp: + result_type: + name: int type: named - name: text - ts_match_tt: type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: int type: named - name: text - timestamptz: + type: custom representation: - type: timestamptz + type: int32 + integer: aggregate_functions: + avg: + result_type: decimal + type: average max: - result_type: - type: nullable - underlying_type: - type: named - name: timestamptz + type: max min: + type: min + stddev_pop: result_type: - type: nullable - underlying_type: - type: named - name: timestamptz + name: integer + type: named + type: custom + stddev_samp: + result_type: + name: integer + type: named + type: custom + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: integer + type: named + type: custom + var_samp: + result_type: + name: integer + type: named + type: custom comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: timestamptz + type: greater_than _gte: - type: custom - argument_type: - type: named - name: timestamptz + type: greater_than_or_equal _in: type: in _lt: - type: custom - argument_type: - type: named - name: timestamptz + type: less_than _lte: - type: custom - argument_type: - type: named - name: timestamptz + type: less_than_or_equal _neq: - type: custom argument_type: + name: integer type: named - name: timestamptz - varchar: + type: custom representation: - type: string + type: int32 + string: aggregate_functions: max: - result_type: - type: nullable - underlying_type: - type: named - name: text + type: max min: - result_type: - type: nullable - underlying_type: - type: named - name: text + type: min comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: varchar + type: greater_than _gte: - type: custom - argument_type: - type: named - name: varchar + type: greater_than_or_equal _ilike: - type: custom - argument_type: - type: named - name: varchar + type: contains_insensitive _in: type: in _iregex: - type: custom argument_type: + name: string type: named - name: varchar - _like: type: custom - argument_type: - type: named - name: varchar + _like: + type: contains _lt: - type: custom - argument_type: - type: named - name: varchar + type: less_than _lte: - type: custom - argument_type: - type: named - name: varchar + type: less_than_or_equal _neq: - type: custom argument_type: + name: string type: named - name: varchar - _nilike: type: custom + _nilike: argument_type: + name: string type: named - name: varchar - _niregex: type: custom + _niregex: argument_type: + name: string type: named - name: varchar - _nlike: type: custom + _nlike: argument_type: + name: string type: named - name: varchar - _nregex: type: custom + _nregex: argument_type: + name: string type: named - name: varchar - _regex: type: custom + _regex: argument_type: + name: string type: named - name: varchar - starts_with: type: custom + representation: + type: string + timestamp_with_time_zone: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: timestamp_with_time_zone type: named - name: varchar - ts_match_tt: type: custom - argument_type: - type: named - name: varchar - object_types: - update_column_users_created_at: - description: Update the 'created_at' column in the 'users' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: timestamptz - update_column_users_email: - description: Update the 'email' column in the 'users' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: varchar - update_column_users_id: - description: Update the 'id' column in the 'users' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: int4 - update_column_users_password: - description: Update the 'password' column in the 'users' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: varchar - update_column_users_roles: - description: Update the 'roles' column in the 'users' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: varchar - update_column_users_updated_at: - description: Update the 'updated_at' column in the 'users' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: timestamptz - users: - fields: - created_at: - type: - type: named - name: timestamptz - email: - type: - type: nullable - underlying_type: - type: named - name: varchar - id: - type: - type: named - name: int4 - password: - type: - type: nullable - underlying_type: - type: named - name: varchar - roles: - type: - type: nullable - underlying_type: - type: named - name: varchar - updated_at: - type: - type: named - name: timestamptz - v2_delete_users_by_id_response: - description: Responses from the 'v2_delete_users_by_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: users - v2_insert_users_object: - fields: - created_at: - type: - type: nullable - underlying_type: - type: named - name: timestamptz - email: - type: - type: nullable - underlying_type: - type: named - name: varchar - id: - type: - type: nullable - underlying_type: - type: named - name: int4 - password: - type: - type: nullable - underlying_type: - type: named - name: varchar - roles: - type: - type: nullable - underlying_type: - type: named - name: varchar - updated_at: - type: - type: nullable - underlying_type: - type: named - name: timestamptz - v2_insert_users_response: - description: Responses from the 'v2_insert_users' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: users - v2_update_users_by_id_response: - description: Responses from the 'v2_update_users_by_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: users - v2_update_users_by_id_update_columns: - description: Update the columns of the 'users' collection - fields: - created_at: - description: Update the 'created_at' column in the 'users' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_users_created_at - email: - description: Update the 'email' column in the 'users' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_users_email - id: - description: Update the 'id' column in the 'users' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_users_id - password: - description: Update the 'password' column in the 'users' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_users_password - roles: - description: Update the 'roles' column in the 'users' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_users_roles - updated_at: - description: Update the 'updated_at' column in the 'users' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_users_updated_at - collections: - - name: users - arguments: {} - type: users - uniqueness_constraints: - users_pkey: - unique_columns: - - id - foreign_keys: {} - functions: [] - procedures: - - name: v2_delete_users_by_id - description: Delete any row on the 'users' collection using the 'id' key - arguments: - key_id: - type: - type: named - name: int4 - pre_check: - description: Delete permission predicate over the 'users' collection - type: - type: predicate - object_type_name: users - result_type: - type: named - name: v2_delete_users_by_id_response - - name: v2_insert_users - description: Insert into the users table - arguments: - objects: - type: - type: array - element_type: - type: named - name: v2_insert_users_object - post_check: - description: Insert permission predicate over the 'users' collection - type: - type: predicate - object_type_name: users - result_type: - type: named - name: v2_insert_users_response - - name: v2_update_users_by_id - description: Update any row on the 'users' collection using the 'id' key - arguments: - key_id: - type: - type: named - name: int4 - post_check: - description: Update permission post-condition predicate over the 'users' collection - type: - type: predicate - object_type_name: users - pre_check: - description: Update permission pre-condition predicate over the 'users' collection - type: - type: predicate - object_type_name: users - update_columns: - type: - type: named - name: v2_update_users_by_id_update_columns - result_type: - type: named - name: v2_update_users_by_id_response + representation: + type: timestamptz capabilities: - version: 0.1.6 capabilities: - query: - aggregates: {} - variables: {} - explain: {} - nested_fields: - filter_by: {} - order_by: {} - exists: - nested_collections: {} mutation: + explain: {} transactional: {} + query: + aggregates: + filter_by: {} + exists: {} explain: {} - relationships: - relation_comparisons: {} - order_by_aggregate: {} + nested_fields: {} + variables: {} + relational_query: + aggregate: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + group_by: {} + filter: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + join: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + join_types: + full: {} + inner: {} + left: {} + left_anti: {} + left_semi: {} + right: {} + right_anti: {} + right_semi: {} + project: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + sort: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + union: {} + window: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + version: 0.2.5 diff --git a/hasura/industry/telco/auth/metadata/search.hml b/hasura/industry/telco/auth/metadata/search.hml index f8c357fe..0fc965ce 100644 --- a/hasura/industry/telco/auth/metadata/search.hml +++ b/hasura/industry/telco/auth/metadata/search.hml @@ -12,16 +12,41 @@ definition: Authorization: valueFromEnv: AUTH_SEARCH_AUTHORIZATION_HEADER schema: - version: v0.1 + version: v0.2 schema: - scalar_types: - String: - representation: - type: string - aggregate_functions: {} - comparison_operators: - _eq: - type: equal + collections: [] + functions: + - arguments: + query: + description: Search query string + type: + name: String + type: named + description: Make a web search with brave, returns 10 results + name: braveSearch + result_type: + element_type: + name: SearchResult + type: named + type: array + - arguments: + query: + type: + name: String + type: named + name: searchWithPerplexity + result_type: + name: PerplexityResponse + type: named + - arguments: + query: + type: + name: String + type: named + name: geminiSearch + result_type: + name: GeminiSearchResponse + type: named object_types: GeminiSearchResponse: fields: @@ -29,6 +54,7 @@ definition: type: name: String type: named + foreign_keys: {} PerplexityResponse: fields: references: @@ -41,6 +67,7 @@ definition: type: name: String type: named + foreign_keys: {} SearchResult: fields: description: @@ -61,44 +88,20 @@ definition: type: name: String type: named - collections: [] - functions: - - name: braveSearch - description: Make a web search with brave, returns 10 results - arguments: - query: - description: Search query string - type: - name: String - type: named - result_type: - element_type: - name: SearchResult - type: named - type: array - - name: searchWithPerplexity - arguments: - query: - type: - name: String - type: named - result_type: - name: PerplexityResponse - type: named - - name: geminiSearch - arguments: - query: - type: - name: String - type: named - result_type: - name: GeminiSearchResponse - type: named + foreign_keys: {} procedures: [] + scalar_types: + String: + aggregate_functions: {} + comparison_operators: + _eq: + type: equal + representation: + type: string capabilities: - version: 0.1.6 capabilities: + mutation: {} query: - variables: {} nested_fields: {} - mutation: {} + variables: {} + version: 0.2.0 diff --git a/hasura/industry/telco/auth/subgraph.yaml b/hasura/industry/telco/auth/subgraph.yaml index 34d2a453..ff596117 100644 --- a/hasura/industry/telco/auth/subgraph.yaml +++ b/hasura/industry/telco/auth/subgraph.yaml @@ -5,6 +5,7 @@ definition: generator: rootPath: . graphqlTypeNamePrefix: auth_ + namingConvention: snake_case_v2 includePaths: - metadata envMapping: @@ -20,12 +21,12 @@ definition: fromEnv: AUTH_SEARCH_READ_URL AUTH_SEARCH_WRITE_URL: fromEnv: AUTH_SEARCH_WRITE_URL - AUTH_SEARCH_PERPLEXITY_API_KEY: - fromEnv: AUTH_SEARCH_PERPLEXITY_API_KEY - AUTH_SEARCH_BRAVE_API_KEY: - fromEnv: AUTH_SEARCH_BRAVE_API_KEY AUTH_SEARCH_GEMINI_API_KEY: fromEnv: AUTH_SEARCH_GEMINI_API_KEY + AUTH_SEARCH_BRAVE_API_KEY: + fromEnv: AUTH_SEARCH_BRAVE_API_KEY + AUTH_SEARCH_PERPLEXITY_API_KEY: + fromEnv: AUTH_SEARCH_PERPLEXITY_API_KEY connectors: - path: connector/auth/connector.yaml connectorLinkName: auth diff --git a/hasura/industry/telco/customer/connector/aurora/.hasura-connector/Dockerfile.aurora b/hasura/industry/telco/customer/connector/aurora/.hasura-connector/Dockerfile.aurora index 371b9090..da99a414 100644 --- a/hasura/industry/telco/customer/connector/aurora/.hasura-connector/Dockerfile.aurora +++ b/hasura/industry/telco/customer/connector/aurora/.hasura-connector/Dockerfile.aurora @@ -1,2 +1,2 @@ -FROM ghcr.io/hasura/ndc-postgres:v2.1.1 +FROM ghcr.io/hasura/ndc-postgres-jdbc:v1.2.6 COPY ./ /etc/connector \ No newline at end of file diff --git a/hasura/industry/telco/customer/connector/aurora/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/customer/connector/aurora/.hasura-connector/connector-metadata.yaml index 27cdb8b8..19580961 100644 --- a/hasura/industry/telco/customer/connector/aurora/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/customer/connector/aurora/.hasura-connector/connector-metadata.yaml @@ -1,55 +1,65 @@ +version: v2 +ndcSpecGeneration: v0.2 packagingDefinition: type: PrebuiltDockerImage - dockerImage: ghcr.io/hasura/ndc-postgres:v2.1.1 + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc:v1.2.6 supportedEnvironmentVariables: - - name: CONNECTION_URI - description: The PostgreSQL connection URI - defaultValue: postgresql://read_only_user:readonlyuser@35.236.11.122:5432/v3-docs-sample-app - - name: CLIENT_CERT - description: The SSL client certificate (Optional) - defaultValue: "" - - name: CLIENT_KEY - description: The SSL client key (Optional) - defaultValue: "" - - name: ROOT_CERT - description: The SSL root certificate (Optional) - defaultValue: "" + - name: JDBC_URL + description: The JDBC URL to connect to the database + - name: JDBC_SCHEMAS + description: A comma-separated list of schemas to include in the metadata commands: - update: hasura-ndc-postgres update + update: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 + commandArgs: + - update + - --jdbc-url + - JDBC_URL + - --schemas + - $JDBC_SCHEMAS + - --outfile + - /etc/connector/configuration.json + upgradeConfiguration: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 + commandArgs: + - upgrade + - --config-file + - /etc/connector/configuration.json + - --outfile + - /etc/connector/configuration.json cliPlugin: - type: null - name: ndc-postgres - version: v2.1.1 -dockerComposeWatch: - - path: ./ - action: sync+restart - target: /etc/connector + type: Docker + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 +dockerComposeWatch: [] nativeToolchainDefinition: commands: start: type: ShellScript - bash: |- + bash: | #!/usr/bin/env bash set -eu -o pipefail - HASURA_CONFIGURATION_DIRECTORY="$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "$HASURA_DDN_NATIVE_CONNECTOR_DIR/ndc-postgres" serve - powershell: |- + HASURA_CONFIGURATION_DIRECTORY="$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" \ + "$HASURA_DDN_NATIVE_CONNECTOR_DIR/entrypoint.sh" + powershell: | $ErrorActionPreference = "Stop" - $env:HASURA_CONFIGURATION_DIRECTORY="$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_DIR\ndc-postgres.exe" serve + $env:HASURA_CONFIGURATION_DIRECTORY="$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH"; + & "$env:HASURA_DDN_NATIVE_CONNECTOR_DIR\entrypoint.bat" watch: type: ShellScript - bash: |- + bash: | #!/usr/bin/env bash echo "Watch is not supported for this connector" exit 1 - powershell: |- + powershell: | Write-Output "Watch is not supported for this connector" exit 1 update: type: ShellScript - bash: |- - #!/usr/bin/env bash - set -eu -o pipefail - "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/hasura-ndc-postgres" update - powershell: |- - $ErrorActionPreference = "Stop" - & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR\hasura-ndc-postgres.exe" update + bash: set -e -o pipefail; "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.sh" update --jdbc-url JDBC_URL --schemas $JDBC_SCHEMAS --outfile "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH/configuration.json" + powershell: $ErrorActionPreference = "Stop"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR\entrypoint.bat" update --jdbc-url JDBC_URL --schemas `$env:JDBC_SCHEMAS --outfile "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH\configuration.json" + cliPluginEntrypoint: + type: ShellScript + bash: set -e -o pipefail; "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.sh" + powershell: $ErrorActionPreference = "Stop"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.bat" diff --git a/hasura/industry/telco/customer/connector/aurora/compose.postgres-adminer.yaml b/hasura/industry/telco/customer/connector/aurora/compose.postgres-adminer.yaml deleted file mode 100644 index 37fc06f8..00000000 --- a/hasura/industry/telco/customer/connector/aurora/compose.postgres-adminer.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# Configuration used for adminer -configs: - adminer-index.php: - content: | - $$_ENV['ADMINER_DEFAULT_SERVER'], - 'username' => $$_ENV['ADMINER_DEFAULT_USERNAME'], - 'password' => $$_ENV['ADMINER_DEFAULT_PASSWORD'], - 'driver' => $$_ENV['ADMINER_DEFAULT_DRIVER'], - 'db' => $$_ENV['ADMINER_DEFAULT_DB'], - ]; - } - include './adminer.php'; - ?> -services: - # Adminer is a lightweight database management tool (optional) - adminer: - configs: - - source: adminer-index.php - target: /var/www/html/index.php - depends_on: - - postgres - environment: - ADMINER_DEFAULT_DB: dev - ADMINER_DEFAULT_DRIVER: pgsql - ADMINER_DEFAULT_PASSWORD: password - ADMINER_DEFAULT_SERVER: postgres - ADMINER_DEFAULT_USERNAME: user - image: adminer:latest - ports: - - 5575:8080 - restart: unless-stopped - # Bundled Postgres database with pgvector (optional) - postgres: - environment: - POSTGRES_DB: dev - POSTGRES_PASSWORD: password - POSTGRES_USER: user - image: pgvector/pgvector:pg17 - ports: - - 8192:5432 - restart: unless-stopped - volumes: - - db_data:/var/lib/postgresql/data -volumes: - db_data: {} diff --git a/hasura/industry/telco/customer/connector/aurora/compose.yaml b/hasura/industry/telco/customer/connector/aurora/compose.yaml index d2044722..6d68b7ed 100644 --- a/hasura/industry/telco/customer/connector/aurora/compose.yaml +++ b/hasura/industry/telco/customer/connector/aurora/compose.yaml @@ -4,11 +4,11 @@ services: context: . dockerfile: .hasura-connector/Dockerfile.aurora environment: - CONNECTION_URI: $CUSTOMER_AURORA_CONNECTION_URI HASURA_SERVICE_TOKEN_SECRET: $CUSTOMER_AURORA_HASURA_SERVICE_TOKEN_SECRET + JDBC_URL: $CUSTOMER_AURORA_JDBC_URL OTEL_EXPORTER_OTLP_ENDPOINT: $CUSTOMER_AURORA_OTEL_EXPORTER_OTLP_ENDPOINT OTEL_SERVICE_NAME: $CUSTOMER_AURORA_OTEL_SERVICE_NAME extra_hosts: - local.hasura.dev:host-gateway ports: - - 8043:8080 + - 7159:8080 diff --git a/hasura/industry/telco/customer/connector/aurora/configuration.json b/hasura/industry/telco/customer/connector/aurora/configuration.json index 6c9355ef..35f91fec 100644 --- a/hasura/industry/telco/customer/connector/aurora/configuration.json +++ b/hasura/industry/telco/customer/connector/aurora/configuration.json @@ -1,3061 +1,2576 @@ { - "version": "5", - "$schema": "schema.json", - "connectionSettings": { - "connectionUri": { - "variable": "CONNECTION_URI" + "version": "v2", + "connection_uri": { + "variable": "JDBC_URL" }, - "poolSettings": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "isolationLevel": "ReadCommitted" - }, - "metadata": { - "tables": { - "billing": { - "schemaName": "public", - "tableName": "billing", - "columns": { - "billing_date": { - "name": "billing_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "billing_id": { - "name": "billing_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "payment_status": { - "name": "payment_status", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "total_amount": { - "name": "total_amount", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "billing_pkey": [ - "billing_id" - ] - }, - "foreignRelations": { - "billing_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - } - }, - "description": null - }, - "campaigns": { - "schemaName": "public", - "tableName": "campaigns", - "columns": { - "actual_conversions": { - "name": "actual_conversions", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "budget": { - "name": "budget", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "campaign_id": { - "name": "campaign_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "campaign_name": { - "name": "campaign_name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": null - }, - "channel": { - "name": "channel", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "conversion_goal": { - "name": "conversion_goal", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "end_date": { - "name": "end_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "offer_details": { - "name": "offer_details", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "start_date": { - "name": "start_date", - "type": { - "scalarType": "date" - }, - "nullable": "nonNullable", - "description": null - }, - "target_segment": { - "name": "target_segment", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "campaigns_pkey": [ - "campaign_id" - ] - }, - "foreignRelations": {}, - "description": null - }, - "credit_cards": { - "schemaName": "public", - "tableName": "credit_cards", - "columns": { - "created_at": { - "name": "created_at", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "credit_card_id": { - "name": "credit_card_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "cvv": { - "name": "cvv", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "expiry": { - "name": "expiry", - "type": { - "scalarType": "date" - }, - "nullable": "nonNullable", - "description": null - }, - "number": { - "name": "number", - "type": { - "scalarType": "text" - }, - "nullable": "nonNullable", - "description": null - }, - "updated_at": { - "name": "updated_at", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - } - }, - "uniquenessConstraints": { - "credit_cards_pkey": [ - "credit_card_id" - ] - }, - "foreignRelations": { - "credit_cards_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - } - }, - "description": null - }, - "customer_link": { - "schemaName": "public", - "tableName": "customer_link", - "columns": { - "customer_guid": { - "name": "customer_guid", - "type": { - "scalarType": "uuid" - }, - "nullable": "nonNullable", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "id": { - "name": "id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - } - }, - "uniquenessConstraints": { - "customer_link_customer_id_key": [ - "customer_id" - ], - "customer_link_pkey": [ - "id" - ] - }, - "foreignRelations": { - "customer_link_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - } - }, - "description": null - }, - "customer_network": { - "schemaName": "public", - "tableName": "customer_network", - "columns": { - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "node_id": { - "name": "node_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - } - }, - "uniquenessConstraints": { - "customer_network_pkey": [ - "customer_id", - "node_id" - ] - }, - "foreignRelations": { - "customer_network_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - }, - "customer_network_node_id_fkey": { - "foreignSchema": "public", - "foreignTable": "network", - "columnMapping": { - "node_id": "node_id" - } - } - }, - "description": null - }, - "customer_plan_devices": { - "schemaName": "public", - "tableName": "customer_plan_devices", - "columns": { - "customer_plan_id": { - "name": "customer_plan_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "device_id": { - "name": "device_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "device_imei": { - "name": "device_imei", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "sim_iccid": { - "name": "sim_iccid", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "customer_plan_devices_pkey": [ - "customer_plan_id", - "device_id" - ] - }, - "foreignRelations": { - "customer_plan_devices_customer_plan_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customer_plans", - "columnMapping": { - "customer_plan_id": "customer_plan_id" - } - }, - "customer_plan_devices_device_id_fkey": { - "foreignSchema": "public", - "foreignTable": "devices", - "columnMapping": { - "device_id": "device_id" - } - } - }, - "description": null - }, - "customer_plans": { - "schemaName": "public", - "tableName": "customer_plans", - "columns": { - "cell_number": { - "name": "cell_number", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "customer_plan_id": { - "name": "customer_plan_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "data_allocation_gb": { - "name": "data_allocation_gb", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "data_used_gb": { - "name": "data_used_gb", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "end_date": { - "name": "end_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "plan_id": { - "name": "plan_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "rollover_data_gb": { - "name": "rollover_data_gb", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "start_date": { - "name": "start_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "status": { - "name": "status", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "customer_plans_pkey": [ - "customer_plan_id" - ] - }, - "foreignRelations": { - "customer_plans_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - }, - "customer_plans_plan_id_fkey": { - "foreignSchema": "public", - "foreignTable": "plans", - "columnMapping": { - "plan_id": "plan_id" - } - } - }, - "description": null - }, - "customers": { - "schemaName": "public", - "tableName": "customers", - "columns": { - "address": { - "name": "address", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "auth_user_id": { - "name": "auth_user_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "churn_risk": { - "name": "churn_risk", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "churn_risk_factors": { - "name": "churn_risk_factors", - "type": { - "arrayType": { - "scalarType": "text" - } - }, - "nullable": "nullable", - "description": null - }, - "city": { - "name": "city", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "country": { - "name": "country", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "dob": { - "name": "dob", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "email": { - "name": "email", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "first_name": { - "name": "first_name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "image": { - "name": "image", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "last_name": { - "name": "last_name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "last_survey_date": { - "name": "last_survey_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "phone_number": { - "name": "phone_number", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "postcode": { - "name": "postcode", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "satisfaction_score": { - "name": "satisfaction_score", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "segment": { - "name": "segment", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "state": { - "name": "state", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "customers_phone_number_key": [ - "phone_number" - ], - "customers_pkey": [ - "customer_id" - ] - }, - "foreignRelations": {}, - "description": null - }, - "deals": { - "schemaName": "public", - "tableName": "deals", - "columns": { - "additional_benefits": { - "name": "additional_benefits", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "customer_segment": { - "name": "customer_segment", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "deal_id": { - "name": "deal_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "deal_name": { - "name": "deal_name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "description": { - "name": "description", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "end_date": { - "name": "end_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "max_monthly_spend": { - "name": "max_monthly_spend", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "min_monthly_spend": { - "name": "min_monthly_spend", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "start_date": { - "name": "start_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "terms_conditions": { - "name": "terms_conditions", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "deals_pkey": [ - "deal_id" - ] - }, - "foreignRelations": {}, - "description": null - }, - "device_upgrades": { - "schemaName": "public", - "tableName": "device_upgrades", - "columns": { - "contract_extension_months": { - "name": "contract_extension_months", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "new_device_id": { - "name": "new_device_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "old_device_id": { - "name": "old_device_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "promotion_applied": { - "name": "promotion_applied", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "trade_in_value": { - "name": "trade_in_value", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "upgrade_date": { - "name": "upgrade_date", - "type": { - "scalarType": "date" - }, - "nullable": "nonNullable", - "description": null - }, - "upgrade_id": { - "name": "upgrade_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - } - }, - "uniquenessConstraints": { - "device_upgrades_pkey": [ - "upgrade_id" - ] - }, - "foreignRelations": { - "device_upgrades_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - }, - "device_upgrades_new_device_id_fkey": { - "foreignSchema": "public", - "foreignTable": "devices", - "columnMapping": { - "new_device_id": "device_id" - } - }, - "device_upgrades_old_device_id_fkey": { - "foreignSchema": "public", - "foreignTable": "devices", - "columnMapping": { - "old_device_id": "device_id" - } - } - }, - "description": null - }, - "devices": { - "schemaName": "public", - "tableName": "devices", - "columns": { - "brand": { - "name": "brand", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": null - }, - "created_at": { - "name": "created_at", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "device_id": { - "name": "device_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "image": { - "name": "image", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "model": { - "name": "model", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": null - }, - "sf_record": { - "name": "sf_record", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "updated_at": { - "name": "updated_at", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - } - }, - "uniquenessConstraints": { - "devices_pkey": [ - "device_id" - ] - }, - "foreignRelations": {}, - "description": null - }, - "family_plan_members": { - "schemaName": "public", - "tableName": "family_plan_members", - "columns": { - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "data_allocation_percentage": { - "name": "data_allocation_percentage", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "family_plan_id": { - "name": "family_plan_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "role": { - "name": "role", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "family_plan_members_pkey": [ - "customer_id", - "family_plan_id" - ] - }, - "foreignRelations": { - "family_plan_members_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - }, - "family_plan_members_family_plan_id_fkey": { - "foreignSchema": "public", - "foreignTable": "family_plans", - "columnMapping": { - "family_plan_id": "family_plan_id" - } - } - }, - "description": null - }, - "family_plans": { - "schemaName": "public", - "tableName": "family_plans", - "columns": { - "created_at": { - "name": "created_at", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "family_plan_id": { - "name": "family_plan_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "max_members": { - "name": "max_members", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "monthly_fee": { - "name": "monthly_fee", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "plan_name": { - "name": "plan_name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "primary_customer_id": { - "name": "primary_customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "shared_data_gb": { - "name": "shared_data_gb", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "family_plans_pkey": [ - "family_plan_id" - ] - }, - "foreignRelations": { - "family_plans_primary_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "primary_customer_id": "customer_id" - } - } - }, - "description": null - }, - "feedback": { - "schemaName": "public", - "tableName": "feedback", - "columns": { - "category": { - "name": "category", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "comments": { - "name": "comments", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "feedback_date": { - "name": "feedback_date", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "feedback_id": { - "name": "feedback_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "followup_date": { - "name": "followup_date", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "description": null - }, - "followup_notes": { - "name": "followup_notes", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "rating": { - "name": "rating", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "requires_followup": { - "name": "requires_followup", - "type": { - "scalarType": "bool" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - } - }, - "uniquenessConstraints": { - "feedback_pkey": [ - "feedback_id" - ] - }, - "foreignRelations": { - "feedback_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - } - }, - "description": null - }, - "interactions": { - "schemaName": "public", - "tableName": "interactions", - "columns": { - "agent_id": { - "name": "agent_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "channel": { - "name": "channel", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "duration_seconds": { - "name": "duration_seconds", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "interaction_id": { - "name": "interaction_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "interaction_time": { - "name": "interaction_time", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "notes": { - "name": "notes", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "resolution_status": { - "name": "resolution_status", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "satisfaction_rating": { - "name": "satisfaction_rating", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "topic": { - "name": "topic", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "interactions_pkey": [ - "interaction_id" - ] - }, - "foreignRelations": { - "interactions_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - } - }, - "description": null - }, - "iot_devices": { - "schemaName": "public", - "tableName": "iot_devices", - "columns": { - "activation_date": { - "name": "activation_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "data_plan_id": { - "name": "data_plan_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "device_type": { - "name": "device_type", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "imei": { - "name": "imei", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "iot_device_id": { - "name": "iot_device_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "last_active_date": { - "name": "last_active_date", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "description": null - }, - "monthly_data_usage_mb": { - "name": "monthly_data_usage_mb", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "sim_iccid": { - "name": "sim_iccid", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "status": { - "name": "status", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "iot_devices_pkey": [ - "iot_device_id" - ] - }, - "foreignRelations": { - "iot_devices_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - }, - "iot_devices_data_plan_id_fkey": { - "foreignSchema": "public", - "foreignTable": "plans", - "columnMapping": { - "data_plan_id": "plan_id" - } - } - }, - "description": null - }, - "loyalty_rewards": { - "schemaName": "public", - "tableName": "loyalty_rewards", - "columns": { - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "last_activity_date": { - "name": "last_activity_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "points_balance": { - "name": "points_balance", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "points_earned": { - "name": "points_earned", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "points_redeemed": { - "name": "points_redeemed", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "reward_id": { - "name": "reward_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "tier": { - "name": "tier", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "loyalty_rewards_pkey": [ - "reward_id" - ] - }, - "foreignRelations": { - "loyalty_rewards_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - } - }, - "description": null - }, - "network": { - "schemaName": "public", - "tableName": "network", - "columns": { - "capacity": { - "name": "capacity", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "latitude": { - "name": "latitude", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "longitude": { - "name": "longitude", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "node_id": { - "name": "node_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "node_name": { - "name": "node_name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "quality": { - "name": "quality", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "status": { - "name": "status", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "network_pkey": [ - "node_id" - ] - }, - "foreignRelations": {}, - "description": null - }, - "number_portability": { - "schemaName": "public", - "tableName": "number_portability", - "columns": { - "completion_date": { - "name": "completion_date", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "notes": { - "name": "notes", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "phone_number": { - "name": "phone_number", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "port_date": { - "name": "port_date", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "description": null - }, - "portability_id": { - "name": "portability_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "previous_carrier": { - "name": "previous_carrier", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "status": { - "name": "status", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "number_portability_phone_number_key": [ - "phone_number" - ], - "number_portability_pkey": [ - "portability_id" - ] - }, - "foreignRelations": { - "number_portability_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - } - }, - "description": null - }, - "plans": { - "schemaName": "public", - "tableName": "plans", - "columns": { - "data_limit_gb": { - "name": "data_limit_gb", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "description": { - "name": "description", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "international_roaming": { - "name": "international_roaming", - "type": { - "scalarType": "bool" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "monthly_fee": { - "name": "monthly_fee", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "plan_id": { - "name": "plan_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "plan_name": { - "name": "plan_name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "roaming_countries": { - "name": "roaming_countries", - "type": { - "arrayType": { - "scalarType": "text" - } - }, - "nullable": "nullable", - "description": null - }, - "roaming_data_gb": { - "name": "roaming_data_gb", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "roaming_voice_minutes": { - "name": "roaming_voice_minutes", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "sf_record": { - "name": "sf_record", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "sms_limit": { - "name": "sms_limit", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "type": { - "name": "type", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "voice_limit_minutes": { - "name": "voice_limit_minutes", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "plans_pkey": [ - "plan_id" - ], - "plans_plan_name_key": [ - "plan_name" - ] - }, - "foreignRelations": {}, - "description": null - }, - "referrals": { - "schemaName": "public", - "tableName": "referrals", - "columns": { - "bonus_amount": { - "name": "bonus_amount", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "bonus_paid": { - "name": "bonus_paid", - "type": { - "scalarType": "bool" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "referral_date": { - "name": "referral_date", - "type": { - "scalarType": "date" - }, - "nullable": "nonNullable", - "description": null - }, - "referral_id": { - "name": "referral_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "referred_id": { - "name": "referred_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "referrer_id": { - "name": "referrer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "status": { - "name": "status", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "referrals_pkey": [ - "referral_id" - ] - }, - "foreignRelations": { - "referrals_referred_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "referred_id": "customer_id" - } - }, - "referrals_referrer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "referrer_id": "customer_id" - } - } - }, - "description": null - }, - "service_interactions": { - "schemaName": "public", - "tableName": "service_interactions", - "columns": { - "agent_id": { - "name": "agent_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "category": { - "name": "category", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "channel": { - "name": "channel", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "interaction_date": { - "name": "interaction_date", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "interaction_id": { - "name": "interaction_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "notes": { - "name": "notes", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "resolution_status": { - "name": "resolution_status", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "resolution_time_minutes": { - "name": "resolution_time_minutes", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "satisfaction_score": { - "name": "satisfaction_score", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "service_interactions_pkey": [ - "interaction_id" - ] - }, - "foreignRelations": { - "service_interactions_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - } - }, - "description": null - }, - "voip_services": { - "schemaName": "public", - "tableName": "voip_services", - "columns": { - "activation_date": { - "name": "activation_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "customer_id": { - "name": "customer_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "features": { - "name": "features", - "type": { - "arrayType": { - "scalarType": "text" - } - }, - "nullable": "nullable", - "description": null - }, - "monthly_fee": { - "name": "monthly_fee", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "service_number": { - "name": "service_number", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "service_type": { - "name": "service_type", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "status": { - "name": "status", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "voip_id": { - "name": "voip_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - } - }, - "uniquenessConstraints": { - "voip_services_pkey": [ - "voip_id" - ] - }, - "foreignRelations": { - "voip_services_customer_id_fkey": { - "foreignSchema": "public", - "foreignTable": "customers", - "columnMapping": { - "customer_id": "customer_id" - } - } - }, - "description": null - } - }, - "types": { - "scalar": { - "bool": { - "typeName": "bool", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "bool_and": { - "returnType": "bool" - }, - "bool_or": { - "returnType": "bool" - }, - "every": { - "returnType": "bool" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "bool", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "bool", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "bool", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "bool", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "bool", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "bool", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "bool", - "isInfix": true - } - }, - "typeRepresentation": "boolean" - }, - "date": { - "typeName": "date", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "date" - }, - "min": { - "returnType": "date" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "date", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "date", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "date", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "date", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "date", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "date", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "date", - "isInfix": true - } - }, - "typeRepresentation": "date" - }, - "int4": { - "typeName": "int4", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "bit_and": { - "returnType": "int4" - }, - "bit_or": { - "returnType": "int4" - }, - "bit_xor": { - "returnType": "int4" - }, - "max": { - "returnType": "int4" - }, - "min": { - "returnType": "int4" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "int8" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "int4", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "int4", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - } - }, - "typeRepresentation": "int32" - }, - "int8": { - "typeName": "int8", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "bit_and": { - "returnType": "int8" - }, - "bit_or": { - "returnType": "int8" - }, - "bit_xor": { - "returnType": "int8" - }, - "max": { - "returnType": "int8" - }, - "min": { - "returnType": "int8" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "numeric" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "int8", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "int8", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - } - }, - "typeRepresentation": "int64AsString" - }, - "numeric": { - "typeName": "numeric", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "max": { - "returnType": "numeric" - }, - "min": { - "returnType": "numeric" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "numeric" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "numeric", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "numeric", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - } - }, - "typeRepresentation": "bigDecimalAsString" - }, - "text": { - "typeName": "text", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "text" - }, - "min": { - "returnType": "text" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "text", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_ilike": { - "operatorName": "~~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "text", - "isInfix": true - }, - "_iregex": { - "operatorName": "~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_like": { - "operatorName": "~~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nilike": { - "operatorName": "!~~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_niregex": { - "operatorName": "!~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nlike": { - "operatorName": "!~~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nregex": { - "operatorName": "!~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_regex": { - "operatorName": "~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "starts_with": { - "operatorName": "starts_with", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": false - }, - "ts_match_tt": { - "operatorName": "ts_match_tt", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": false - } - }, - "typeRepresentation": "string" - }, - "timestamptz": { - "typeName": "timestamptz", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "timestamptz" - }, - "min": { - "returnType": "timestamptz" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "timestamptz", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "timestamptz", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - } - }, - "typeRepresentation": "timestamptz" - }, - "uuid": { - "typeName": "uuid", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": {}, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "uuid", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "uuid", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "uuid", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "uuid", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "uuid", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "uuid", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "uuid", - "isInfix": true - } - }, - "typeRepresentation": "uUID" - }, - "varchar": { - "typeName": "varchar", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "text" - }, - "min": { - "returnType": "text" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "varchar", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_ilike": { - "operatorName": "~~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "varchar", - "isInfix": true - }, - "_iregex": { - "operatorName": "~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_like": { - "operatorName": "~~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nilike": { - "operatorName": "!~~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_niregex": { - "operatorName": "!~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nlike": { - "operatorName": "!~~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nregex": { - "operatorName": "!~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_regex": { - "operatorName": "~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "starts_with": { - "operatorName": "starts_with", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": false - }, - "ts_match_tt": { - "operatorName": "ts_match_tt", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": false - } - }, - "typeRepresentation": "string" + "tables": [ + { + "name": "public.billing", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "billing_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "billing_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "total_amount", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "payment_status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + } + ], + "primary_keys": [ + "billing_id" + ], + "foreign_keys": {} + }, + { + "name": "public.campaigns", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "campaign_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "campaign_name", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "start_date", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "end_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "target_segment", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "channel", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "offer_details", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "budget", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "conversion_goal", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "actual_conversions", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + } + ], + "primary_keys": [ + "campaign_id" + ], + "foreign_keys": {} + }, + { + "name": "public.credit_cards", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "credit_card_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "created_at", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "updated_at", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "expiry", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "cvv", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "number", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + } + ], + "primary_keys": [ + "credit_card_id" + ], + "foreign_keys": {} + }, + { + "name": "public.customer_link", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_guid", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "uuid" + } + } + ], + "primary_keys": [ + "id" + ], + "foreign_keys": {} + }, + { + "name": "public.customer_network", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "customer_id", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "node_id", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + } + ], + "primary_keys": [ + "customer_id", + "node_id" + ], + "foreign_keys": {} + }, + { + "name": "public.customer_plan_devices", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "customer_plan_id", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "device_id", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "sim_iccid", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 24 + } + } + }, + { + "name": "device_imei", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 16 + } + } + } + ], + "primary_keys": [ + "customer_plan_id", + "device_id" + ], + "foreign_keys": {} + }, + { + "name": "public.customer_plans", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "customer_plan_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "plan_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "start_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "end_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "cell_number", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 10 + } + } + }, + { + "name": "status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 10 + } + } + }, + { + "name": "data_allocation_gb", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "data_used_gb", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "rollover_data_gb", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + } + ], + "primary_keys": [ + "customer_plan_id" + ], + "foreign_keys": {} + }, + { + "name": "public.customers", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "customer_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "first_name", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "last_name", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "email", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "phone_number", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "address", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 255 + } + } + }, + { + "name": "city", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 255 + } + } + }, + { + "name": "state", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 255 + } + } + }, + { + "name": "postcode", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 255 + } + } + }, + { + "name": "country", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 255 + } + } + }, + { + "name": "dob", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "image", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 30 + } + } + }, + { + "name": "segment", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 30 + } + } + }, + { + "name": "auth_user_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "satisfaction_score", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "last_survey_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "churn_risk", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 3, + "scale": 2 + } + } + }, + { + "name": "churn_risk_factors", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "array", + "metadata": { + "type": "array", + "array_types": { + "database_type": "text" + } + } + } + } + ], + "primary_keys": [ + "customer_id" + ], + "foreign_keys": {} + }, + { + "name": "public.deals", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "deal_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "deal_name", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 255 + } + } + }, + { + "name": "description", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "customer_segment", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "min_monthly_spend", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "max_monthly_spend", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "start_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "end_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "additional_benefits", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "terms_conditions", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + } + ], + "primary_keys": [ + "deal_id" + ], + "foreign_keys": {} + }, + { + "name": "public.device_upgrades", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "upgrade_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "old_device_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "new_device_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "upgrade_date", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "trade_in_value", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "contract_extension_months", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "promotion_applied", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + } + ], + "primary_keys": [ + "upgrade_id" + ], + "foreign_keys": {} + }, + { + "name": "public.devices", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "device_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "created_at", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "updated_at", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "brand", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "model", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "image", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "sf_record", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 18 + } + } + } + ], + "primary_keys": [ + "device_id" + ], + "foreign_keys": {} + }, + { + "name": "public.family_plan_members", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "family_plan_id", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "role", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "data_allocation_percentage", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + } + ], + "primary_keys": [ + "family_plan_id", + "customer_id" + ], + "foreign_keys": {} + }, + { + "name": "public.family_plans", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "family_plan_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "primary_customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "plan_name", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "created_at", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "max_members", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "shared_data_gb", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "monthly_fee", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + } + ], + "primary_keys": [ + "family_plan_id" + ], + "foreign_keys": {} + }, + { + "name": "public.feedback", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "feedback_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "feedback_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "category", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "rating", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "comments", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "requires_followup", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "boolean" + } + }, + { + "name": "followup_notes", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "followup_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + } + ], + "primary_keys": [ + "feedback_id" + ], + "foreign_keys": {} + }, + { + "name": "public.interactions", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "interaction_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "channel", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "agent_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "interaction_time", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "duration_seconds", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "topic", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "resolution_status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "satisfaction_rating", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "notes", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + } + ], + "primary_keys": [ + "interaction_id" + ], + "foreign_keys": {} + }, + { + "name": "public.iot_devices", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "iot_device_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "device_type", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "imei", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 15 + } + } + }, + { + "name": "sim_iccid", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 24 + } + } + }, + { + "name": "data_plan_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "activation_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "last_active_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "monthly_data_usage_mb", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + } + ], + "primary_keys": [ + "iot_device_id" + ], + "foreign_keys": {} + }, + { + "name": "public.loyalty_rewards", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "reward_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "points_earned", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "points_redeemed", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "points_balance", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "last_activity_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "tier", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + } + ], + "primary_keys": [ + "reward_id" + ], + "foreign_keys": {} + }, + { + "name": "public.network", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "node_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "node_name", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 255 + } + } + }, + { + "name": "latitude", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 9, + "scale": 6 + } + } + }, + { + "name": "longitude", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 9, + "scale": 6 + } + } + }, + { + "name": "capacity", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "quality", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + } + ], + "primary_keys": [ + "node_id" + ], + "foreign_keys": {} + }, + { + "name": "public.number_portability", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "portability_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "phone_number", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "previous_carrier", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "port_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "completion_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "notes", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + } + ], + "primary_keys": [ + "portability_id" + ], + "foreign_keys": {} + }, + { + "name": "public.plans", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "plan_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "plan_name", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "description", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "type", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "monthly_fee", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "sf_record", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 18 + } + } + }, + { + "name": "data_limit_gb", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "voice_limit_minutes", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "sms_limit", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "international_roaming", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "boolean" + } + }, + { + "name": "roaming_countries", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "array", + "metadata": { + "type": "array", + "array_types": { + "database_type": "text" + } + } + } + }, + { + "name": "roaming_data_gb", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "roaming_voice_minutes", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + } + ], + "primary_keys": [ + "plan_id" + ], + "foreign_keys": {} + }, + { + "name": "public.referrals", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "referral_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "referrer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "referred_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "referral_date", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "bonus_amount", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "bonus_paid", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "boolean" + } + } + ], + "primary_keys": [ + "referral_id" + ], + "foreign_keys": {} + }, + { + "name": "public.service_interactions", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "interaction_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "interaction_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "channel", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "category", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "resolution_status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "satisfaction_score", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "agent_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "resolution_time_minutes", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "notes", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + } + ], + "primary_keys": [ + "interaction_id" + ], + "foreign_keys": {} + }, + { + "name": "public.voip_services", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "voip_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customer_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "service_number", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "service_type", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "monthly_fee", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "features", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "array", + "metadata": { + "type": "array", + "array_types": { + "database_type": "text" + } + } + } + }, + { + "name": "activation_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + } + ], + "primary_keys": [ + "voip_id" + ], + "foreign_keys": {} } - }, - "composite": {} - }, - "nativeOperations": { - "queries": {}, - "mutations": {} - } - }, - "introspectionOptions": { - "excludedSchemas": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal", - "_timescaledb_catalog", - "_timescaledb_functions", - "_timescaledb_internal", - "_timescaledb_cache", - "_timescaledb_config", - "timescaledb_experimental", - "timescaledb_information", - "_timescaledb_debug" - ], - "unqualifiedSchemasForTables": [ - "public" - ], - "unqualifiedSchemasForTypesAndProcedures": [ - "public", - "pg_catalog", - "tiger" - ], - "comparisonOperatorMapping": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "introspectPrefixFunctionComparisonOperators": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "typeRepresentations": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - } - }, - "mutationsVersion": "v2", - "mutationsPrefix": "" -} + ] +} \ No newline at end of file diff --git a/hasura/industry/telco/customer/connector/aurora/connector.yaml b/hasura/industry/telco/customer/connector/aurora/connector.yaml index b7bfced0..78ad9897 100644 --- a/hasura/industry/telco/customer/connector/aurora/connector.yaml +++ b/hasura/industry/telco/customer/connector/aurora/connector.yaml @@ -3,15 +3,15 @@ version: v2 definition: name: aurora subgraph: customer - source: hasura/postgres:v2.1.1 + source: hasura/postgres-promptql:v1.2.6 context: . envMapping: - CONNECTION_URI: - fromEnv: CUSTOMER_AURORA_CONNECTION_URI HASURA_CONNECTOR_PORT: fromEnv: CUSTOMER_AURORA_HASURA_CONNECTOR_PORT HASURA_SERVICE_TOKEN_SECRET: fromEnv: CUSTOMER_AURORA_HASURA_SERVICE_TOKEN_SECRET + JDBC_URL: + fromEnv: CUSTOMER_AURORA_JDBC_URL OTEL_EXPORTER_OTLP_ENDPOINT: fromEnv: CUSTOMER_AURORA_OTEL_EXPORTER_OTLP_ENDPOINT OTEL_SERVICE_NAME: diff --git a/hasura/industry/telco/customer/connector/aurora/schema.json b/hasura/industry/telco/customer/connector/aurora/schema.json deleted file mode 100644 index 049e72ba..00000000 --- a/hasura/industry/telco/customer/connector/aurora/schema.json +++ /dev/null @@ -1,1638 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ParsedConfiguration", - "description": "Initial configuration, just enough to connect to a database and elaborate a full 'Configuration'.", - "type": "object", - "required": [ - "version" - ], - "properties": { - "version": { - "$ref": "#/definitions/Version" - }, - "$schema": { - "description": "Jsonschema of the configuration format.", - "default": null, - "type": [ - "string", - "null" - ] - }, - "connectionSettings": { - "description": "Database connection settings.", - "default": { - "connectionUri": { - "variable": "CONNECTION_URI" - }, - "poolSettings": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "isolationLevel": "ReadCommitted" - }, - "allOf": [ - { - "$ref": "#/definitions/DatabaseConnectionSettings" - } - ] - }, - "metadata": { - "description": "Connector metadata.", - "default": { - "tables": {}, - "types": { - "scalar": {}, - "composite": {} - }, - "nativeOperations": { - "queries": {}, - "mutations": {} - } - }, - "allOf": [ - { - "$ref": "#/definitions/Metadata" - } - ] - }, - "introspectionOptions": { - "description": "Database introspection options.", - "default": { - "excludedSchemas": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal", - "_timescaledb_catalog", - "_timescaledb_functions", - "_timescaledb_internal", - "_timescaledb_cache", - "_timescaledb_config", - "timescaledb_experimental", - "timescaledb_information", - "_timescaledb_debug" - ], - "unqualifiedSchemasForTables": [ - "public" - ], - "unqualifiedSchemasForTypesAndProcedures": [ - "public", - "pg_catalog", - "tiger" - ], - "comparisonOperatorMapping": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "introspectPrefixFunctionComparisonOperators": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "typeRepresentations": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - } - }, - "allOf": [ - { - "$ref": "#/definitions/IntrospectionOptions" - } - ] - }, - "mutationsVersion": { - "description": "Which version of the generated mutation procedures to include in the schema response", - "default": null, - "anyOf": [ - { - "$ref": "#/definitions/MutationsVersion" - }, - { - "type": "null" - } - ] - }, - "mutationsPrefix": { - "description": "Provide a custom prefix for generated mutation names. Defaults to mutations version.", - "default": null, - "type": [ - "string", - "null" - ] - } - }, - "definitions": { - "Version": { - "type": "string", - "enum": [ - "5" - ] - }, - "DatabaseConnectionSettings": { - "description": "Database connection settings.", - "type": "object", - "required": [ - "connectionUri" - ], - "properties": { - "connectionUri": { - "description": "Connection string for a Postgres-compatible database.", - "allOf": [ - { - "$ref": "#/definitions/ConnectionUri" - } - ] - }, - "poolSettings": { - "description": "Connection pool settings.", - "default": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "allOf": [ - { - "$ref": "#/definitions/PoolSettings" - } - ] - }, - "isolationLevel": { - "description": "Query isolation level.", - "default": "ReadCommitted", - "allOf": [ - { - "$ref": "#/definitions/IsolationLevel" - } - ] - } - } - }, - "ConnectionUri": { - "$ref": "#/definitions/Secret" - }, - "Secret": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "object", - "required": [ - "variable" - ], - "properties": { - "variable": { - "$ref": "#/definitions/Variable" - } - } - } - ] - }, - "Variable": { - "description": "The name of an an environment variable.", - "type": "string" - }, - "PoolSettings": { - "description": "Settings for the PostgreSQL connection pool", - "type": "object", - "properties": { - "maxConnections": { - "description": "maximum number of pool connections", - "default": 50, - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "poolTimeout": { - "description": "timeout for acquiring a connection from the pool (seconds)", - "default": 30, - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "idleTimeout": { - "description": "idle timeout for releasing a connection from the pool (seconds)", - "default": 180, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - }, - "checkConnectionAfterIdle": { - "description": "check the connection is alive after being idle for N seconds. Set to null to always check.", - "default": 60, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - }, - "connectionLifetime": { - "description": "maximum lifetime for an individual connection (seconds)", - "default": 600, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - } - } - }, - "IsolationLevel": { - "description": "The isolation level of the transaction in which a query is executed.", - "oneOf": [ - { - "description": "Prevents reading data from another uncommitted transaction.", - "type": "string", - "enum": [ - "ReadCommitted" - ] - }, - { - "description": "Reading the same data twice is guaranteed to return the same result.", - "type": "string", - "enum": [ - "RepeatableRead" - ] - }, - { - "description": "Concurrent transactions behave identically to serializing them one at a time.", - "type": "string", - "enum": [ - "Serializable" - ] - } - ] - }, - "Metadata": { - "description": "Metadata information.", - "type": "object", - "properties": { - "tables": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/TablesInfo" - } - ] - }, - "types": { - "default": { - "scalar": {}, - "composite": {} - }, - "allOf": [ - { - "$ref": "#/definitions/Types" - } - ] - }, - "nativeOperations": { - "default": { - "queries": {}, - "mutations": {} - }, - "allOf": [ - { - "$ref": "#/definitions/NativeOperations" - } - ] - } - } - }, - "TablesInfo": { - "description": "Mapping from a \"table\" name to its information.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TableInfo" - } - }, - "TableInfo": { - "description": "Information about a database table (or any other kind of relation).", - "type": "object", - "required": [ - "columns", - "schemaName", - "tableName" - ], - "properties": { - "schemaName": { - "type": "string" - }, - "tableName": { - "type": "string" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - } - }, - "uniquenessConstraints": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/UniquenessConstraints" - } - ] - }, - "foreignRelations": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/ForeignRelations" - } - ] - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "ColumnInfo": { - "description": "Information about a database column.", - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "nullable": { - "default": "nullable", - "allOf": [ - { - "$ref": "#/definitions/Nullable" - } - ] - }, - "hasDefault": { - "$ref": "#/definitions/HasDefault" - }, - "isIdentity": { - "$ref": "#/definitions/IsIdentity" - }, - "isGenerated": { - "$ref": "#/definitions/IsGenerated" - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "Type": { - "description": "The type of values that a column, field, or argument may take.", - "oneOf": [ - { - "type": "object", - "required": [ - "scalarType" - ], - "properties": { - "scalarType": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "compositeType" - ], - "properties": { - "compositeType": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "arrayType" - ], - "properties": { - "arrayType": { - "$ref": "#/definitions/Type" - } - }, - "additionalProperties": false - } - ] - }, - "Nullable": { - "description": "Can this column contain null values", - "type": "string", - "enum": [ - "nullable", - "nonNullable" - ] - }, - "HasDefault": { - "description": "Does this column have a default value.", - "type": "string", - "enum": [ - "noDefault", - "hasDefault" - ] - }, - "IsIdentity": { - "description": "Is this column an identity column.", - "type": "string", - "enum": [ - "notIdentity", - "identityByDefault", - "identityAlways" - ] - }, - "IsGenerated": { - "description": "Is this column a generated column.", - "type": "string", - "enum": [ - "notGenerated", - "stored" - ] - }, - "UniquenessConstraints": { - "description": "A mapping from the name of a unique constraint to its value.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UniquenessConstraint" - } - }, - "UniquenessConstraint": { - "description": "The set of columns that make up a uniqueness constraint. We map each table column to their ndc field names.", - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "ForeignRelations": { - "description": "A mapping from the name of a foreign key constraint to its value.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ForeignRelation" - } - }, - "ForeignRelation": { - "description": "A foreign key constraint.", - "type": "object", - "required": [ - "columnMapping", - "foreignTable" - ], - "properties": { - "foreignSchema": { - "type": [ - "string", - "null" - ] - }, - "foreignTable": { - "type": "string" - }, - "columnMapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Types": { - "description": "Information about types.", - "type": "object", - "required": [ - "composite", - "scalar" - ], - "properties": { - "scalar": { - "$ref": "#/definitions/ScalarTypes" - }, - "composite": { - "$ref": "#/definitions/CompositeTypes" - } - } - }, - "ScalarTypes": { - "description": "Map of all known/occurring scalar types.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ScalarType" - } - }, - "ScalarType": { - "description": "Information about a scalar type. A scalar type is completely characterized by its name and the operations you can do on it.", - "type": "object", - "required": [ - "aggregateFunctions", - "comparisonOperators", - "schemaName", - "typeName" - ], - "properties": { - "typeName": { - "type": "string" - }, - "schemaName": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "aggregateFunctions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/AggregateFunction" - } - }, - "comparisonOperators": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ComparisonOperator" - } - }, - "typeRepresentation": { - "anyOf": [ - { - "$ref": "#/definitions/TypeRepresentation" - }, - { - "type": "null" - } - ] - } - } - }, - "AggregateFunction": { - "type": "object", - "required": [ - "returnType" - ], - "properties": { - "returnType": { - "type": "string" - } - } - }, - "ComparisonOperator": { - "description": "Represents a postgres binary comparison operator", - "type": "object", - "required": [ - "argumentType", - "operatorKind", - "operatorName" - ], - "properties": { - "operatorName": { - "type": "string" - }, - "operatorKind": { - "$ref": "#/definitions/OperatorKind" - }, - "argumentType": { - "type": "string" - }, - "isInfix": { - "default": true, - "type": "boolean" - } - } - }, - "OperatorKind": { - "description": "Is it a built-in operator, or a custom operator.", - "type": "string", - "enum": [ - "equal", - "in", - "custom" - ] - }, - "TypeRepresentation": { - "description": "Type representation of a scalar type.", - "oneOf": [ - { - "description": "JSON booleans", - "type": "string", - "enum": [ - "boolean" - ] - }, - { - "description": "Any JSON string", - "type": "string", - "enum": [ - "string" - ] - }, - { - "description": "float4", - "type": "string", - "enum": [ - "float32" - ] - }, - { - "description": "float8", - "type": "string", - "enum": [ - "float64" - ] - }, - { - "description": "int2", - "type": "string", - "enum": [ - "int16" - ] - }, - { - "description": "int4", - "type": "string", - "enum": [ - "int32" - ] - }, - { - "description": "int8 as integer", - "type": "string", - "enum": [ - "int64" - ] - }, - { - "description": "int8 as string", - "type": "string", - "enum": [ - "int64AsString" - ] - }, - { - "description": "numeric", - "type": "string", - "enum": [ - "bigDecimal" - ] - }, - { - "description": "numeric as string", - "type": "string", - "enum": [ - "bigDecimalAsString" - ] - }, - { - "description": "timestamp", - "type": "string", - "enum": [ - "timestamp" - ] - }, - { - "description": "timestamp with timezone", - "type": "string", - "enum": [ - "timestamptz" - ] - }, - { - "description": "time", - "type": "string", - "enum": [ - "time" - ] - }, - { - "description": "time with timezone", - "type": "string", - "enum": [ - "timetz" - ] - }, - { - "description": "date", - "type": "string", - "enum": [ - "date" - ] - }, - { - "description": "uuid", - "type": "string", - "enum": [ - "uUID" - ] - }, - { - "description": "geography", - "type": "string", - "enum": [ - "geography" - ] - }, - { - "description": "geometry", - "type": "string", - "enum": [ - "geometry" - ] - }, - { - "description": "Any JSON number", - "type": "string", - "enum": [ - "number" - ] - }, - { - "description": "Any JSON number, with no decimal part", - "type": "string", - "enum": [ - "integer" - ] - }, - { - "description": "An arbitrary json.", - "type": "string", - "enum": [ - "json" - ] - }, - { - "description": "One of the specified string values", - "type": "object", - "required": [ - "enum" - ], - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - ] - }, - "CompositeTypes": { - "description": "Map of all known composite types.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/CompositeType" - } - }, - "CompositeType": { - "description": "Information about a composite type. These are very similar to tables, but with the crucial difference that composite types do not support constraints (such as NOT NULL).", - "type": "object", - "required": [ - "fields", - "schemaName", - "typeName" - ], - "properties": { - "typeName": { - "type": "string" - }, - "schemaName": { - "type": "string" - }, - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/FieldInfo" - } - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "FieldInfo": { - "description": "Information about a composite type field.", - "type": "object", - "required": [ - "fieldName", - "type" - ], - "properties": { - "fieldName": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeOperations": { - "description": "Metadata information of Native Operations.", - "type": "object", - "required": [ - "mutations", - "queries" - ], - "properties": { - "queries": { - "description": "Native Queries.", - "allOf": [ - { - "$ref": "#/definitions/NativeQueries" - } - ] - }, - "mutations": { - "description": "Native Mutations.", - "allOf": [ - { - "$ref": "#/definitions/NativeMutations" - } - ] - } - } - }, - "NativeQueries": { - "description": "Metadata information of Native Queries.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/NativeQueryInfo" - } - }, - "NativeQueryInfo": { - "description": "Information about a Native Operation", - "type": "object", - "required": [ - "columns", - "sql" - ], - "properties": { - "sql": { - "description": "SQL expression to use for the Native Operation. We can interpolate values using `{{variable_name}}` syntax, such as `SELECT * FROM authors WHERE name = {{author_name}}`", - "allOf": [ - { - "$ref": "#/definitions/NativeQuerySql" - } - ] - }, - "columns": { - "description": "Columns returned by the Native Operation", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ReadOnlyColumnInfo" - } - }, - "arguments": { - "description": "Names and types of arguments that can be passed to this Native Operation", - "default": {}, - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ReadOnlyColumnInfo" - } - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeQuerySql": { - "description": "Native Operation SQL location.", - "anyOf": [ - { - "description": "Refer to an external Native Operation SQL file.", - "type": "object", - "required": [ - "file" - ], - "properties": { - "file": { - "description": "Relative path to a sql file.", - "type": "string" - } - } - }, - { - "description": "Inline Native Operation SQL string.", - "type": "object", - "required": [ - "inline" - ], - "properties": { - "inline": { - "description": "An inline Native Operation SQL string.", - "allOf": [ - { - "$ref": "#/definitions/InlineNativeQuerySql" - } - ] - } - } - }, - { - "$ref": "#/definitions/InlineNativeQuerySql" - } - ] - }, - "InlineNativeQuerySql": { - "type": "string" - }, - "ReadOnlyColumnInfo": { - "description": "Information about a native query column.", - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "nullable": { - "default": "nullable", - "allOf": [ - { - "$ref": "#/definitions/Nullable" - } - ] - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeMutations": { - "description": "Metadata information of Native Mutations.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/NativeQueryInfo" - } - }, - "IntrospectionOptions": { - "description": "Options which only influence how the configuration is updated.", - "type": "object", - "properties": { - "excludedSchemas": { - "description": "Schemas which are excluded from introspection. The default setting will exclude the internal schemas of Postgres, Citus, Cockroach, and the PostGIS extension.", - "default": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal", - "_timescaledb_catalog", - "_timescaledb_functions", - "_timescaledb_internal", - "_timescaledb_cache", - "_timescaledb_config", - "timescaledb_experimental", - "timescaledb_information", - "_timescaledb_debug" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "unqualifiedSchemasForTables": { - "description": "The names of Tables and Views in these schemas will be returned unqualified. The default setting will set the `public` schema as unqualified.", - "default": [ - "public" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "unqualifiedSchemasForTypesAndProcedures": { - "description": "The types and procedures in these schemas will be returned unqualified.", - "default": [ - "public", - "pg_catalog", - "tiger" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "comparisonOperatorMapping": { - "description": "The mapping of comparison operator names to apply when updating the configuration", - "default": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/ComparisonOperatorMapping" - } - }, - "introspectPrefixFunctionComparisonOperators": { - "description": "Which prefix functions (i.e., non-infix operators) to generate introspection metadata for.\n\nThis list will accept any boolean-returning function taking two concrete scalar types as arguments.\n\nThe default includes comparisons for various build-in types as well as those of PostGIS.", - "default": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "typeRepresentations": { - "description": "The type representations to pick for base scalar types.", - "default": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - }, - "allOf": [ - { - "$ref": "#/definitions/TypeRepresentations" - } - ] - } - } - }, - "ComparisonOperatorMapping": { - "description": "Define the names that comparison operators will be exposed as by the automatic introspection.", - "type": "object", - "required": [ - "exposedName", - "operatorKind", - "operatorName" - ], - "properties": { - "operatorName": { - "description": "The name of the operator as defined by the database", - "type": "string" - }, - "exposedName": { - "description": "The name the operator will appear under in the exposed API", - "type": "string" - }, - "operatorKind": { - "description": "Equal, In or Custom.", - "allOf": [ - { - "$ref": "#/definitions/OperatorKind" - } - ] - } - } - }, - "TypeRepresentations": { - "description": "The type representations that guide introspection.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TypeRepresentation" - } - }, - "MutationsVersion": { - "description": "Which version of the generated mutations will be included in the schema", - "type": "string", - "enum": [ - "v1", - "v2" - ] - } - } -} diff --git a/hasura/industry/telco/customer/connector/logic/.hasura-connector/Dockerfile b/hasura/industry/telco/customer/connector/logic/.hasura-connector/Dockerfile index 1e569140..7f26191d 100644 --- a/hasura/industry/telco/customer/connector/logic/.hasura-connector/Dockerfile +++ b/hasura/industry/telco/customer/connector/logic/.hasura-connector/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/hasura/ndc-nodejs-lambda:v1.13.0 +FROM ghcr.io/hasura/ndc-nodejs-lambda:v1.16.0 COPY package-lock.json package.json /functions/ diff --git a/hasura/industry/telco/customer/connector/logic/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/customer/connector/logic/.hasura-connector/connector-metadata.yaml index 5c4da026..78a2c88e 100644 --- a/hasura/industry/telco/customer/connector/logic/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/customer/connector/logic/.hasura-connector/connector-metadata.yaml @@ -1,10 +1,12 @@ +version: v2 +ndcSpecGeneration: v0.2 packagingDefinition: type: ManagedDockerBuild supportedEnvironmentVariables: [] commands: upgradeConfiguration: type: Dockerized - dockerImage: ghcr.io/hasura/ndc-nodejs-lambda:v1.13.0 + dockerImage: ghcr.io/hasura/ndc-nodejs-lambda:v1.16.0 commandArgs: - /scripts/upgrade.sh dockerComposeWatch: @@ -30,7 +32,7 @@ nativeToolchainDefinition: upgradeConfiguration: type: ShellScript bash: | - ./upgrade-connector.sh "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.13.0" + ./upgrade-connector.sh "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.16.0" powershell: | - & ./upgrade-connector.ps1 "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.13.0" + & ./upgrade-connector.ps1 "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.16.0" documentationPage: https://hasura.info/nodejs-getting-started diff --git a/hasura/industry/telco/customer/connector/logic/compose.yaml b/hasura/industry/telco/customer/connector/logic/compose.yaml index afcd4f10..c188307b 100644 --- a/hasura/industry/telco/customer/connector/logic/compose.yaml +++ b/hasura/industry/telco/customer/connector/logic/compose.yaml @@ -10,4 +10,4 @@ services: extra_hosts: - local.hasura.dev:host-gateway ports: - - 6193:8080 + - 5627:8080 diff --git a/hasura/industry/telco/customer/connector/logic/connector.yaml b/hasura/industry/telco/customer/connector/logic/connector.yaml index 3c6fdef5..418498a1 100644 --- a/hasura/industry/telco/customer/connector/logic/connector.yaml +++ b/hasura/industry/telco/customer/connector/logic/connector.yaml @@ -3,7 +3,7 @@ version: v2 definition: name: logic subgraph: customer - source: hasura/nodejs:v1.13.0 + source: hasura/nodejs:v1.16.0 context: . envMapping: HASURA_CONNECTOR_PORT: diff --git a/hasura/industry/telco/customer/connector/logic/functions.ts b/hasura/industry/telco/customer/connector/logic/functions.ts index 106d05ba..357f2fc4 100644 --- a/hasura/industry/telco/customer/connector/logic/functions.ts +++ b/hasura/industry/telco/customer/connector/logic/functions.ts @@ -76,5 +76,4 @@ export function maskCardNumber(cardNumber?: string): string { console.error("Error masking card number:", error); return "Invalid card number"; } -} - +} \ No newline at end of file diff --git a/hasura/industry/telco/customer/connector/logic/package-lock.json b/hasura/industry/telco/customer/connector/logic/package-lock.json index 669d0878..bac03539 100644 --- a/hasura/industry/telco/customer/connector/logic/package-lock.json +++ b/hasura/industry/telco/customer/connector/logic/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@hasura/ndc-lambda-sdk": "1.13.0" + "@hasura/ndc-lambda-sdk": "1.16.0" }, "devDependencies": { "dotenv-cli": "^7.4.2" @@ -26,6 +26,15 @@ "node": ">=12" } }, + "node_modules/@fastify/accept-negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@fastify/accept-negotiator/-/accept-negotiator-1.1.0.tgz", + "integrity": "sha512-OIHZrb2ImZ7XG85HXOONLcJWGosv7sIvM2ifAPQVhg9Lv7qdmMBNVaai4QTdyuaqbKM5eO6sLSQOYI7wEQeCJQ==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, "node_modules/@fastify/ajv-compiler": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/@fastify/ajv-compiler/-/ajv-compiler-3.6.0.tgz", @@ -37,6 +46,22 @@ "fast-uri": "^2.0.0" } }, + "node_modules/@fastify/compress": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/@fastify/compress/-/compress-7.0.3.tgz", + "integrity": "sha512-xa9fo5/DgK1s0bkS6xrYgNn8HmofO5tJvbCDk8QuXshSgLd2cFZANv1ox/Qv7zswS7JroHwTlCVv/XGTVO98tg==", + "license": "MIT", + "dependencies": { + "@fastify/accept-negotiator": "^1.1.0", + "fastify-plugin": "^4.5.0", + "mime-db": "^1.52.0", + "minipass": "^7.0.2", + "peek-stream": "^1.1.3", + "pump": "^3.0.0", + "pumpify": "^2.0.1", + "readable-stream": "^4.5.2" + } + }, "node_modules/@fastify/error": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/@fastify/error/-/error-3.4.1.tgz", @@ -62,9 +87,9 @@ } }, "node_modules/@grpc/grpc-js": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.2.tgz", - "integrity": "sha512-nnR5nmL6lxF8YBqb6gWvEgLdLh/Fn+kvAdX5hUOnt48sNSb0riz/93ASd2E5gvanPA41X6Yp25bIfGRp1SMb2g==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.4.tgz", + "integrity": "sha512-GsFaMXCkMqkKIvwCQjCrwH+GHbPKBjhwo/8ZuUkWHqbI73Kky9I+pQltrlT0+MWpedCoosda53lgjYfyEPgxBg==", "license": "Apache-2.0", "dependencies": { "@grpc/proto-loader": "^0.7.13", @@ -75,9 +100,9 @@ } }, "node_modules/@grpc/proto-loader": { - "version": "0.7.13", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.13.tgz", - "integrity": "sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw==", + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz", + "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==", "license": "Apache-2.0", "dependencies": { "lodash.camelcase": "^4.3.0", @@ -93,12 +118,12 @@ } }, "node_modules/@hasura/ndc-lambda-sdk": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/@hasura/ndc-lambda-sdk/-/ndc-lambda-sdk-1.13.0.tgz", - "integrity": "sha512-4hPM9YS50FDa8OD3mUoNgJ1TpbgMpvwZRxE2vYE8ec01lCVEovRbLH2bBNtKe9DAejJe+SXjik4PIQi9JcwNtg==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@hasura/ndc-lambda-sdk/-/ndc-lambda-sdk-1.16.0.tgz", + "integrity": "sha512-EbyTNO5IVfRRpUCmjFy7Plw4X46cBZ+9Ay5FeBenuQDnTvGfx2iW/YrYeVc2hdrbyBlhDHYnVe80/RnNwDIVDg==", "license": "Apache-2.0", "dependencies": { - "@hasura/ndc-sdk-typescript": "^7.0.0", + "@hasura/ndc-sdk-typescript": "^8.2.0", "@hasura/ts-node-dev": "^2.1.0", "@tsconfig/node20": "^20.1.4", "commander": "^11.1.0", @@ -106,18 +131,19 @@ "p-limit": "^3.1.0", "ts-api-utils": "^2.1.0", "ts-node": "^10.9.2", - "typescript": "^5.8.2" + "typescript": "^5.8.3" }, "bin": { "ndc-lambda-sdk": "bin/index.js" } }, "node_modules/@hasura/ndc-sdk-typescript": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-7.0.0.tgz", - "integrity": "sha512-y2ftrTQwtNZz9DmQXla/R/PDTgsSBxdA97uyq5zsAaBT9OjL9rAkRkXjkJdBC4GOXU+AsqSnsrDBn5pFvzzbxw==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-8.2.0.tgz", + "integrity": "sha512-Y1jdhBvqhFoc3CcUAGPPX2LuEiviYxwnR+ieX2QPvLcoTmbR6l60QGlbq30BWxYbs7YQ1iZ+qkLbFzi7Fd6cqg==", "license": "Apache-2.0", "dependencies": { + "@fastify/compress": "^7.0.3", "@json-schema-tools/meta-schema": "^1.7.0", "@opentelemetry/api": "^1.8.0", "@opentelemetry/exporter-metrics-otlp-grpc": "^0.53.0", @@ -133,7 +159,8 @@ "commander": "^11.0.0", "fastify": "^4.23.2", "pino-pretty": "^10.2.3", - "prom-client": "^15.1.2" + "prom-client": "^15.1.2", + "semver": "^7.6.3" } }, "node_modules/@hasura/ts-node-dev": { @@ -170,6 +197,27 @@ } } }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -197,9 +245,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", + "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { @@ -1096,9 +1144,9 @@ } }, "node_modules/@opentelemetry/instrumentation-fetch/node_modules/import-in-the-middle": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.13.1.tgz", - "integrity": "sha512-k2V9wNm9B+ysuelDTHjI9d5KPc4l8zAZTGqj+pcynvWkypZd857ryzN8jNC7Pg2YZXNMJcHRPpaDyCBbNyVRpA==", + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.14.2.tgz", + "integrity": "sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==", "license": "Apache-2.0", "dependencies": { "acorn": "^8.14.0", @@ -1167,9 +1215,9 @@ } }, "node_modules/@opentelemetry/instrumentation-http/node_modules/import-in-the-middle": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.13.1.tgz", - "integrity": "sha512-k2V9wNm9B+ysuelDTHjI9d5KPc4l8zAZTGqj+pcynvWkypZd857ryzN8jNC7Pg2YZXNMJcHRPpaDyCBbNyVRpA==", + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.14.2.tgz", + "integrity": "sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==", "license": "Apache-2.0", "dependencies": { "acorn": "^8.14.0", @@ -1833,9 +1881,9 @@ } }, "node_modules/@opentelemetry/semantic-conventions": { - "version": "1.30.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.30.0.tgz", - "integrity": "sha512-4VlGgo32k2EQ2wcCY3vEU28A0O13aOtHz3Xt2/2U5FAh9EfhD6t6DqL5Z6yAnRCntbTFDU4YfbpyzSlHNWycPw==", + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.36.0.tgz", + "integrity": "sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==", "license": "Apache-2.0", "engines": { "node": ">=14" @@ -1930,18 +1978,18 @@ "license": "MIT" }, "node_modules/@tsconfig/node20": { - "version": "20.1.5", - "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.5.tgz", - "integrity": "sha512-Vm8e3WxDTqMGPU4GATF9keQAIy1Drd7bPwlgzKJnZtoOsTm1tduUTbDjg0W5qERvGuxPI2h9RbMufH0YdfBylA==", + "version": "20.1.6", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.6.tgz", + "integrity": "sha512-sz+Hqx9zwZDpZIV871WSbUzSqNIsXzghZydypnfgzPKLltVJfkINfUeTct31n/tTSa9ZE1ZOfKdRre1uHHquYQ==", "license": "MIT" }, "node_modules/@types/node": { - "version": "22.13.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.14.tgz", - "integrity": "sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==", + "version": "24.0.14", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.14.tgz", + "integrity": "sha512-4zXMWD91vBLGRtHK3YbIoFMia+1nqEz72coM42C5ETjnNCa/heoj7NT1G67iAfOqMmcfhuCZ4uNpyz8EjlAejw==", "license": "MIT", "dependencies": { - "undici-types": "~6.20.0" + "undici-types": "~7.8.0" } }, "node_modules/@types/shimmer": { @@ -1981,9 +2029,9 @@ "license": "MIT" }, "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -2124,12 +2172,6 @@ "fastq": "^1.17.1" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -2168,15 +2210,6 @@ "integrity": "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==", "license": "MIT" }, - "node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/braces": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", @@ -2378,6 +2411,12 @@ "node": ">= 0.6" } }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" + }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", @@ -2408,9 +2447,9 @@ } }, "node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -2434,9 +2473,9 @@ } }, "node_modules/dotenv": { - "version": "16.4.7", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", - "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", "dev": true, "license": "BSD-2-Clause", "engines": { @@ -2472,6 +2511,48 @@ "node": ">=12" } }, + "node_modules/duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "node_modules/duplexify/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/duplexify/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/duplexify/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/dynamic-dedupe": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz", @@ -2494,9 +2575,9 @@ "license": "MIT" }, "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", "license": "MIT", "dependencies": { "once": "^1.4.0" @@ -2616,9 +2697,9 @@ "license": "MIT" }, "node_modules/fastify": { - "version": "4.29.0", - "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.29.0.tgz", - "integrity": "sha512-MaaUHUGcCgC8fXQDsDtioaCcag1fmPJ9j64vAKunqZF4aSub040ZGi/ag8NGE2714yREPOKZuHCfpPzuUD3UQQ==", + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.29.1.tgz", + "integrity": "sha512-m2kMNHIG92tSNWv+Z3UeTR9AWLLuo7KctC7mlFPtMEVrfjIhmQhkQnT9v15qA/BfVq3vvj134Y0jl9SBje3jXQ==", "funding": [ { "type": "github", @@ -2649,6 +2730,12 @@ "toad-cache": "^3.3.0" } }, + "node_modules/fastify-plugin": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/fastify-plugin/-/fastify-plugin-4.5.1.tgz", + "integrity": "sha512-stRHYGeuqpEZTL1Ef0Ovr2ltazUT9g844X5z/zEBFLG8RYlpDiOCIG+ATvYEp+/zmc7sN29mcIMp8gvYplYPIQ==", + "license": "MIT" + }, "node_modules/fastq": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", @@ -2742,14 +2829,14 @@ } }, "node_modules/glob": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", - "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", "license": "ISC", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^2.0.0" @@ -2826,6 +2913,12 @@ "module-details-from-path": "^1.0.3" } }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", @@ -2901,6 +2994,12 @@ "node": ">=0.12.0" } }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" + }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -2908,9 +3007,9 @@ "license": "ISC" }, "node_modules/jackspeak": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", - "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", + "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" @@ -2970,9 +3069,9 @@ "license": "MIT" }, "node_modules/long": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/long/-/long-5.3.1.tgz", - "integrity": "sha512-ka87Jz3gcx/I7Hal94xaN2tZEOPoUOEVftkQqZx2EeQRN7LGdfLlI3FvZ+7WDplm+vK2Urx9ULrvSowtdCieng==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", "license": "Apache-2.0" }, "node_modules/lru-cache": { @@ -2990,13 +3089,22 @@ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "license": "ISC" }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "@isaacs/brace-expansion": "^5.0.0" }, "engines": { "node": "20 || >=22" @@ -3039,9 +3147,9 @@ } }, "node_modules/module-details-from-path": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.3.tgz", - "integrity": "sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.4.tgz", + "integrity": "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==", "license": "MIT" }, "node_modules/ms": { @@ -3129,6 +3237,17 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/peek-stream": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/peek-stream/-/peek-stream-1.1.3.tgz", + "integrity": "sha512-FhJ+YbOSBb9/rIl2ZeE/QHEsWn7PqNYt8ARAY3kIgNGOk13g9FGyIY6JIl/xB/3TFRVoTv5as0l11weORrTekA==", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "duplexify": "^3.5.0", + "through2": "^2.0.3" + } + }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -3142,9 +3261,9 @@ } }, "node_modules/pino": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-9.6.0.tgz", - "integrity": "sha512-i85pKRCt4qMjZ1+L7sy2Ag4t1atFcdbEt76+7iRJn1g2BvsnRMGu9p8pivl9fs63M2kF/A0OacFZhTub+m/qMg==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-9.7.0.tgz", + "integrity": "sha512-vnMCM6xZTb1WDmLvtG2lE/2p+t9hDEIvTWJsu6FejkE62vB7gDhvzrpFR4Cw2to+9JNQxVnkAKVPA1KPB98vWg==", "license": "MIT", "dependencies": { "atomic-sleep": "^1.0.0", @@ -3152,7 +3271,7 @@ "on-exit-leak-free": "^2.1.0", "pino-abstract-transport": "^2.0.0", "pino-std-serializers": "^7.0.0", - "process-warning": "^4.0.0", + "process-warning": "^5.0.0", "quick-format-unescaped": "^4.0.3", "real-require": "^0.2.0", "safe-stable-stringify": "^2.3.1", @@ -3223,9 +3342,9 @@ "license": "MIT" }, "node_modules/pino/node_modules/process-warning": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-4.0.1.tgz", - "integrity": "sha512-3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz", + "integrity": "sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==", "funding": [ { "type": "github", @@ -3247,6 +3366,12 @@ "node": ">= 0.6.0" } }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" + }, "node_modules/process-warning": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", @@ -3267,9 +3392,9 @@ } }, "node_modules/protobufjs": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz", - "integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==", + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.3.tgz", + "integrity": "sha512-sildjKwVqOI2kmFDiXQ6aEB0fjYTafpEvIBs8tOR8qI4spuL9OPROLVu2qZqi/xgCfsHIwVqlaF8JBjWFHnKbw==", "hasInstallScript": true, "license": "BSD-3-Clause", "dependencies": { @@ -3304,15 +3429,52 @@ } }, "node_modules/pump": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", - "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, + "node_modules/pumpify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-2.0.1.tgz", + "integrity": "sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==", + "license": "MIT", + "dependencies": { + "duplexify": "^4.1.1", + "inherits": "^2.0.3", + "pump": "^3.0.0" + } + }, + "node_modules/pumpify/node_modules/duplexify": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.2" + } + }, + "node_modules/pumpify/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/quick-format-unescaped": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", @@ -3497,9 +3659,9 @@ "license": "BSD-3-Clause" }, "node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -3590,6 +3752,12 @@ "node": ">= 10.x" } }, + "node_modules/stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", + "license": "MIT" + }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -3746,6 +3914,46 @@ "real-require": "^0.2.0" } }, + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "license": "MIT", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/through2/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/through2/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/through2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -3853,9 +4061,9 @@ } }, "node_modules/typescript": { - "version": "5.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", - "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", @@ -3866,9 +4074,15 @@ } }, "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "license": "MIT" }, "node_modules/v8-compile-cache-lib": { diff --git a/hasura/industry/telco/customer/connector/logic/package.json b/hasura/industry/telco/customer/connector/logic/package.json index aa67eabc..7feed94f 100644 --- a/hasura/industry/telco/customer/connector/logic/package.json +++ b/hasura/industry/telco/customer/connector/logic/package.json @@ -8,7 +8,7 @@ "watch": "ndc-lambda-sdk host -f functions.ts --watch serve --configuration ./ --pretty-print-logs" }, "dependencies": { - "@hasura/ndc-lambda-sdk": "1.13.0" + "@hasura/ndc-lambda-sdk": "1.16.0" }, "devDependencies": { "dotenv-cli": "^7.4.2" diff --git a/hasura/industry/telco/customer/connector/mongo/.hasura-connector/Dockerfile.mongo b/hasura/industry/telco/customer/connector/mongo/.hasura-connector/Dockerfile.mongo index d4eecffd..f77f9bdd 100644 --- a/hasura/industry/telco/customer/connector/mongo/.hasura-connector/Dockerfile.mongo +++ b/hasura/industry/telco/customer/connector/mongo/.hasura-connector/Dockerfile.mongo @@ -1,2 +1,2 @@ -FROM ghcr.io/hasura/ndc-mongodb:v1.7.1 +FROM ghcr.io/hasura/ndc-mongodb:v1.8.3 COPY ./ /etc/connector \ No newline at end of file diff --git a/hasura/industry/telco/customer/connector/mongo/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/customer/connector/mongo/.hasura-connector/connector-metadata.yaml index a266b20a..88e60bc0 100644 --- a/hasura/industry/telco/customer/connector/mongo/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/customer/connector/mongo/.hasura-connector/connector-metadata.yaml @@ -1,6 +1,6 @@ packagingDefinition: type: PrebuiltDockerImage - dockerImage: ghcr.io/hasura/ndc-mongodb:v1.7.1 + dockerImage: ghcr.io/hasura/ndc-mongodb:v1.8.3 supportedEnvironmentVariables: - name: MONGODB_DATABASE_URI description: The URI for the MongoDB database @@ -9,7 +9,7 @@ commands: cliPlugin: type: null name: ndc-mongodb - version: v1.7.1 + version: v1.8.3 dockerComposeWatch: - path: ./ action: sync+restart diff --git a/hasura/industry/telco/customer/connector/mongo/compose.yaml b/hasura/industry/telco/customer/connector/mongo/compose.yaml index 485e9299..eccdc706 100644 --- a/hasura/industry/telco/customer/connector/mongo/compose.yaml +++ b/hasura/industry/telco/customer/connector/mongo/compose.yaml @@ -11,4 +11,4 @@ services: extra_hosts: - local.hasura.dev:host-gateway ports: - - 5119:8080 + - 5973:8080 diff --git a/hasura/industry/telco/customer/connector/mongo/configuration.json b/hasura/industry/telco/customer/connector/mongo/configuration.json index 95e0370e..2008d6a9 100644 --- a/hasura/industry/telco/customer/connector/mongo/configuration.json +++ b/hasura/industry/telco/customer/connector/mongo/configuration.json @@ -5,6 +5,7 @@ "allSchemaNullable": true }, "serializationOptions": { - "extendedJsonMode": "canonical" + "extendedJsonMode": "canonical", + "onResponseTypeMismatch": "fail" } } \ No newline at end of file diff --git a/hasura/industry/telco/customer/connector/mongo/connector.yaml b/hasura/industry/telco/customer/connector/mongo/connector.yaml index 41935610..fc4693d9 100644 --- a/hasura/industry/telco/customer/connector/mongo/connector.yaml +++ b/hasura/industry/telco/customer/connector/mongo/connector.yaml @@ -3,7 +3,7 @@ version: v2 definition: name: mongo subgraph: customer - source: hasura/mongodb:v1.7.1 + source: hasura/mongodb:v1.8.3 context: . envMapping: HASURA_CONNECTOR_PORT: diff --git a/hasura/industry/telco/customer/connector/mongo/schema/customerPreferences.json b/hasura/industry/telco/customer/connector/mongo/schema/customerPreferences.json index 43a94e57..77b6392b 100644 --- a/hasura/industry/telco/customer/connector/mongo/schema/customerPreferences.json +++ b/hasura/industry/telco/customer/connector/mongo/schema/customerPreferences.json @@ -122,6 +122,13 @@ } } }, + "instagram": { + "type": { + "nullable": { + "scalar": "string" + } + } + }, "linkedin": { "type": { "nullable": { @@ -129,6 +136,13 @@ } } }, + "tiktok": { + "type": { + "nullable": { + "scalar": "string" + } + } + }, "twitter": { "type": { "nullable": { diff --git a/hasura/industry/telco/customer/connector/mongo/schema/userProfiles.json b/hasura/industry/telco/customer/connector/mongo/schema/userProfiles.json index dfc99942..87113ba7 100644 --- a/hasura/industry/telco/customer/connector/mongo/schema/userProfiles.json +++ b/hasura/industry/telco/customer/connector/mongo/schema/userProfiles.json @@ -285,6 +285,13 @@ }, "userProfiles_supportHistory": { "fields": { + "category": { + "type": { + "nullable": { + "scalar": "string" + } + } + }, "date": { "type": { "nullable": { @@ -292,6 +299,13 @@ } } }, + "description": { + "type": { + "nullable": { + "scalar": "string" + } + } + }, "issue": { "type": { "nullable": { diff --git a/hasura/industry/telco/customer/connector/stripe/.hasura-connector/Dockerfile b/hasura/industry/telco/customer/connector/stripe/.hasura-connector/Dockerfile index 1e569140..7f26191d 100644 --- a/hasura/industry/telco/customer/connector/stripe/.hasura-connector/Dockerfile +++ b/hasura/industry/telco/customer/connector/stripe/.hasura-connector/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/hasura/ndc-nodejs-lambda:v1.13.0 +FROM ghcr.io/hasura/ndc-nodejs-lambda:v1.16.0 COPY package-lock.json package.json /functions/ diff --git a/hasura/industry/telco/customer/connector/stripe/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/customer/connector/stripe/.hasura-connector/connector-metadata.yaml index 5c4da026..78a2c88e 100644 --- a/hasura/industry/telco/customer/connector/stripe/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/customer/connector/stripe/.hasura-connector/connector-metadata.yaml @@ -1,10 +1,12 @@ +version: v2 +ndcSpecGeneration: v0.2 packagingDefinition: type: ManagedDockerBuild supportedEnvironmentVariables: [] commands: upgradeConfiguration: type: Dockerized - dockerImage: ghcr.io/hasura/ndc-nodejs-lambda:v1.13.0 + dockerImage: ghcr.io/hasura/ndc-nodejs-lambda:v1.16.0 commandArgs: - /scripts/upgrade.sh dockerComposeWatch: @@ -30,7 +32,7 @@ nativeToolchainDefinition: upgradeConfiguration: type: ShellScript bash: | - ./upgrade-connector.sh "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.13.0" + ./upgrade-connector.sh "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.16.0" powershell: | - & ./upgrade-connector.ps1 "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.13.0" + & ./upgrade-connector.ps1 "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.16.0" documentationPage: https://hasura.info/nodejs-getting-started diff --git a/hasura/industry/telco/customer/connector/stripe/compose.yaml b/hasura/industry/telco/customer/connector/stripe/compose.yaml index 559ea60c..fddb6991 100644 --- a/hasura/industry/telco/customer/connector/stripe/compose.yaml +++ b/hasura/industry/telco/customer/connector/stripe/compose.yaml @@ -10,4 +10,4 @@ services: extra_hosts: - local.hasura.dev:host-gateway ports: - - 7813:8080 + - 6775:8080 diff --git a/hasura/industry/telco/customer/connector/stripe/connector.yaml b/hasura/industry/telco/customer/connector/stripe/connector.yaml index 447df1c5..3e7d64cb 100644 --- a/hasura/industry/telco/customer/connector/stripe/connector.yaml +++ b/hasura/industry/telco/customer/connector/stripe/connector.yaml @@ -3,7 +3,7 @@ version: v2 definition: name: stripe subgraph: customer - source: hasura/nodejs:v1.13.0 + source: hasura/nodejs:v1.16.0 context: . envMapping: HASURA_CONNECTOR_PORT: diff --git a/hasura/industry/telco/customer/connector/stripe/functions.ts b/hasura/industry/telco/customer/connector/stripe/functions.ts index b2a29388..c17b537c 100644 --- a/hasura/industry/telco/customer/connector/stripe/functions.ts +++ b/hasura/industry/telco/customer/connector/stripe/functions.ts @@ -1,4 +1,3 @@ - // Interfaces representing Stripe entities interface TelcoCustomer { id: string; diff --git a/hasura/industry/telco/customer/connector/stripe/package-lock.json b/hasura/industry/telco/customer/connector/stripe/package-lock.json index 669d0878..bac03539 100644 --- a/hasura/industry/telco/customer/connector/stripe/package-lock.json +++ b/hasura/industry/telco/customer/connector/stripe/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@hasura/ndc-lambda-sdk": "1.13.0" + "@hasura/ndc-lambda-sdk": "1.16.0" }, "devDependencies": { "dotenv-cli": "^7.4.2" @@ -26,6 +26,15 @@ "node": ">=12" } }, + "node_modules/@fastify/accept-negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@fastify/accept-negotiator/-/accept-negotiator-1.1.0.tgz", + "integrity": "sha512-OIHZrb2ImZ7XG85HXOONLcJWGosv7sIvM2ifAPQVhg9Lv7qdmMBNVaai4QTdyuaqbKM5eO6sLSQOYI7wEQeCJQ==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, "node_modules/@fastify/ajv-compiler": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/@fastify/ajv-compiler/-/ajv-compiler-3.6.0.tgz", @@ -37,6 +46,22 @@ "fast-uri": "^2.0.0" } }, + "node_modules/@fastify/compress": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/@fastify/compress/-/compress-7.0.3.tgz", + "integrity": "sha512-xa9fo5/DgK1s0bkS6xrYgNn8HmofO5tJvbCDk8QuXshSgLd2cFZANv1ox/Qv7zswS7JroHwTlCVv/XGTVO98tg==", + "license": "MIT", + "dependencies": { + "@fastify/accept-negotiator": "^1.1.0", + "fastify-plugin": "^4.5.0", + "mime-db": "^1.52.0", + "minipass": "^7.0.2", + "peek-stream": "^1.1.3", + "pump": "^3.0.0", + "pumpify": "^2.0.1", + "readable-stream": "^4.5.2" + } + }, "node_modules/@fastify/error": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/@fastify/error/-/error-3.4.1.tgz", @@ -62,9 +87,9 @@ } }, "node_modules/@grpc/grpc-js": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.2.tgz", - "integrity": "sha512-nnR5nmL6lxF8YBqb6gWvEgLdLh/Fn+kvAdX5hUOnt48sNSb0riz/93ASd2E5gvanPA41X6Yp25bIfGRp1SMb2g==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.4.tgz", + "integrity": "sha512-GsFaMXCkMqkKIvwCQjCrwH+GHbPKBjhwo/8ZuUkWHqbI73Kky9I+pQltrlT0+MWpedCoosda53lgjYfyEPgxBg==", "license": "Apache-2.0", "dependencies": { "@grpc/proto-loader": "^0.7.13", @@ -75,9 +100,9 @@ } }, "node_modules/@grpc/proto-loader": { - "version": "0.7.13", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.13.tgz", - "integrity": "sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw==", + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz", + "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==", "license": "Apache-2.0", "dependencies": { "lodash.camelcase": "^4.3.0", @@ -93,12 +118,12 @@ } }, "node_modules/@hasura/ndc-lambda-sdk": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/@hasura/ndc-lambda-sdk/-/ndc-lambda-sdk-1.13.0.tgz", - "integrity": "sha512-4hPM9YS50FDa8OD3mUoNgJ1TpbgMpvwZRxE2vYE8ec01lCVEovRbLH2bBNtKe9DAejJe+SXjik4PIQi9JcwNtg==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@hasura/ndc-lambda-sdk/-/ndc-lambda-sdk-1.16.0.tgz", + "integrity": "sha512-EbyTNO5IVfRRpUCmjFy7Plw4X46cBZ+9Ay5FeBenuQDnTvGfx2iW/YrYeVc2hdrbyBlhDHYnVe80/RnNwDIVDg==", "license": "Apache-2.0", "dependencies": { - "@hasura/ndc-sdk-typescript": "^7.0.0", + "@hasura/ndc-sdk-typescript": "^8.2.0", "@hasura/ts-node-dev": "^2.1.0", "@tsconfig/node20": "^20.1.4", "commander": "^11.1.0", @@ -106,18 +131,19 @@ "p-limit": "^3.1.0", "ts-api-utils": "^2.1.0", "ts-node": "^10.9.2", - "typescript": "^5.8.2" + "typescript": "^5.8.3" }, "bin": { "ndc-lambda-sdk": "bin/index.js" } }, "node_modules/@hasura/ndc-sdk-typescript": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-7.0.0.tgz", - "integrity": "sha512-y2ftrTQwtNZz9DmQXla/R/PDTgsSBxdA97uyq5zsAaBT9OjL9rAkRkXjkJdBC4GOXU+AsqSnsrDBn5pFvzzbxw==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-8.2.0.tgz", + "integrity": "sha512-Y1jdhBvqhFoc3CcUAGPPX2LuEiviYxwnR+ieX2QPvLcoTmbR6l60QGlbq30BWxYbs7YQ1iZ+qkLbFzi7Fd6cqg==", "license": "Apache-2.0", "dependencies": { + "@fastify/compress": "^7.0.3", "@json-schema-tools/meta-schema": "^1.7.0", "@opentelemetry/api": "^1.8.0", "@opentelemetry/exporter-metrics-otlp-grpc": "^0.53.0", @@ -133,7 +159,8 @@ "commander": "^11.0.0", "fastify": "^4.23.2", "pino-pretty": "^10.2.3", - "prom-client": "^15.1.2" + "prom-client": "^15.1.2", + "semver": "^7.6.3" } }, "node_modules/@hasura/ts-node-dev": { @@ -170,6 +197,27 @@ } } }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -197,9 +245,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", + "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { @@ -1096,9 +1144,9 @@ } }, "node_modules/@opentelemetry/instrumentation-fetch/node_modules/import-in-the-middle": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.13.1.tgz", - "integrity": "sha512-k2V9wNm9B+ysuelDTHjI9d5KPc4l8zAZTGqj+pcynvWkypZd857ryzN8jNC7Pg2YZXNMJcHRPpaDyCBbNyVRpA==", + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.14.2.tgz", + "integrity": "sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==", "license": "Apache-2.0", "dependencies": { "acorn": "^8.14.0", @@ -1167,9 +1215,9 @@ } }, "node_modules/@opentelemetry/instrumentation-http/node_modules/import-in-the-middle": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.13.1.tgz", - "integrity": "sha512-k2V9wNm9B+ysuelDTHjI9d5KPc4l8zAZTGqj+pcynvWkypZd857ryzN8jNC7Pg2YZXNMJcHRPpaDyCBbNyVRpA==", + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.14.2.tgz", + "integrity": "sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==", "license": "Apache-2.0", "dependencies": { "acorn": "^8.14.0", @@ -1833,9 +1881,9 @@ } }, "node_modules/@opentelemetry/semantic-conventions": { - "version": "1.30.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.30.0.tgz", - "integrity": "sha512-4VlGgo32k2EQ2wcCY3vEU28A0O13aOtHz3Xt2/2U5FAh9EfhD6t6DqL5Z6yAnRCntbTFDU4YfbpyzSlHNWycPw==", + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.36.0.tgz", + "integrity": "sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==", "license": "Apache-2.0", "engines": { "node": ">=14" @@ -1930,18 +1978,18 @@ "license": "MIT" }, "node_modules/@tsconfig/node20": { - "version": "20.1.5", - "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.5.tgz", - "integrity": "sha512-Vm8e3WxDTqMGPU4GATF9keQAIy1Drd7bPwlgzKJnZtoOsTm1tduUTbDjg0W5qERvGuxPI2h9RbMufH0YdfBylA==", + "version": "20.1.6", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.6.tgz", + "integrity": "sha512-sz+Hqx9zwZDpZIV871WSbUzSqNIsXzghZydypnfgzPKLltVJfkINfUeTct31n/tTSa9ZE1ZOfKdRre1uHHquYQ==", "license": "MIT" }, "node_modules/@types/node": { - "version": "22.13.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.14.tgz", - "integrity": "sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==", + "version": "24.0.14", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.14.tgz", + "integrity": "sha512-4zXMWD91vBLGRtHK3YbIoFMia+1nqEz72coM42C5ETjnNCa/heoj7NT1G67iAfOqMmcfhuCZ4uNpyz8EjlAejw==", "license": "MIT", "dependencies": { - "undici-types": "~6.20.0" + "undici-types": "~7.8.0" } }, "node_modules/@types/shimmer": { @@ -1981,9 +2029,9 @@ "license": "MIT" }, "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -2124,12 +2172,6 @@ "fastq": "^1.17.1" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -2168,15 +2210,6 @@ "integrity": "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==", "license": "MIT" }, - "node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/braces": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", @@ -2378,6 +2411,12 @@ "node": ">= 0.6" } }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" + }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", @@ -2408,9 +2447,9 @@ } }, "node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -2434,9 +2473,9 @@ } }, "node_modules/dotenv": { - "version": "16.4.7", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", - "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", "dev": true, "license": "BSD-2-Clause", "engines": { @@ -2472,6 +2511,48 @@ "node": ">=12" } }, + "node_modules/duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "node_modules/duplexify/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/duplexify/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/duplexify/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/dynamic-dedupe": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz", @@ -2494,9 +2575,9 @@ "license": "MIT" }, "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", "license": "MIT", "dependencies": { "once": "^1.4.0" @@ -2616,9 +2697,9 @@ "license": "MIT" }, "node_modules/fastify": { - "version": "4.29.0", - "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.29.0.tgz", - "integrity": "sha512-MaaUHUGcCgC8fXQDsDtioaCcag1fmPJ9j64vAKunqZF4aSub040ZGi/ag8NGE2714yREPOKZuHCfpPzuUD3UQQ==", + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.29.1.tgz", + "integrity": "sha512-m2kMNHIG92tSNWv+Z3UeTR9AWLLuo7KctC7mlFPtMEVrfjIhmQhkQnT9v15qA/BfVq3vvj134Y0jl9SBje3jXQ==", "funding": [ { "type": "github", @@ -2649,6 +2730,12 @@ "toad-cache": "^3.3.0" } }, + "node_modules/fastify-plugin": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/fastify-plugin/-/fastify-plugin-4.5.1.tgz", + "integrity": "sha512-stRHYGeuqpEZTL1Ef0Ovr2ltazUT9g844X5z/zEBFLG8RYlpDiOCIG+ATvYEp+/zmc7sN29mcIMp8gvYplYPIQ==", + "license": "MIT" + }, "node_modules/fastq": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", @@ -2742,14 +2829,14 @@ } }, "node_modules/glob": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", - "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", "license": "ISC", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^2.0.0" @@ -2826,6 +2913,12 @@ "module-details-from-path": "^1.0.3" } }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", @@ -2901,6 +2994,12 @@ "node": ">=0.12.0" } }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" + }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -2908,9 +3007,9 @@ "license": "ISC" }, "node_modules/jackspeak": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", - "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", + "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" @@ -2970,9 +3069,9 @@ "license": "MIT" }, "node_modules/long": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/long/-/long-5.3.1.tgz", - "integrity": "sha512-ka87Jz3gcx/I7Hal94xaN2tZEOPoUOEVftkQqZx2EeQRN7LGdfLlI3FvZ+7WDplm+vK2Urx9ULrvSowtdCieng==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", "license": "Apache-2.0" }, "node_modules/lru-cache": { @@ -2990,13 +3089,22 @@ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "license": "ISC" }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "@isaacs/brace-expansion": "^5.0.0" }, "engines": { "node": "20 || >=22" @@ -3039,9 +3147,9 @@ } }, "node_modules/module-details-from-path": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.3.tgz", - "integrity": "sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.4.tgz", + "integrity": "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==", "license": "MIT" }, "node_modules/ms": { @@ -3129,6 +3237,17 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/peek-stream": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/peek-stream/-/peek-stream-1.1.3.tgz", + "integrity": "sha512-FhJ+YbOSBb9/rIl2ZeE/QHEsWn7PqNYt8ARAY3kIgNGOk13g9FGyIY6JIl/xB/3TFRVoTv5as0l11weORrTekA==", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "duplexify": "^3.5.0", + "through2": "^2.0.3" + } + }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -3142,9 +3261,9 @@ } }, "node_modules/pino": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-9.6.0.tgz", - "integrity": "sha512-i85pKRCt4qMjZ1+L7sy2Ag4t1atFcdbEt76+7iRJn1g2BvsnRMGu9p8pivl9fs63M2kF/A0OacFZhTub+m/qMg==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-9.7.0.tgz", + "integrity": "sha512-vnMCM6xZTb1WDmLvtG2lE/2p+t9hDEIvTWJsu6FejkE62vB7gDhvzrpFR4Cw2to+9JNQxVnkAKVPA1KPB98vWg==", "license": "MIT", "dependencies": { "atomic-sleep": "^1.0.0", @@ -3152,7 +3271,7 @@ "on-exit-leak-free": "^2.1.0", "pino-abstract-transport": "^2.0.0", "pino-std-serializers": "^7.0.0", - "process-warning": "^4.0.0", + "process-warning": "^5.0.0", "quick-format-unescaped": "^4.0.3", "real-require": "^0.2.0", "safe-stable-stringify": "^2.3.1", @@ -3223,9 +3342,9 @@ "license": "MIT" }, "node_modules/pino/node_modules/process-warning": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-4.0.1.tgz", - "integrity": "sha512-3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz", + "integrity": "sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==", "funding": [ { "type": "github", @@ -3247,6 +3366,12 @@ "node": ">= 0.6.0" } }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" + }, "node_modules/process-warning": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", @@ -3267,9 +3392,9 @@ } }, "node_modules/protobufjs": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz", - "integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==", + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.3.tgz", + "integrity": "sha512-sildjKwVqOI2kmFDiXQ6aEB0fjYTafpEvIBs8tOR8qI4spuL9OPROLVu2qZqi/xgCfsHIwVqlaF8JBjWFHnKbw==", "hasInstallScript": true, "license": "BSD-3-Clause", "dependencies": { @@ -3304,15 +3429,52 @@ } }, "node_modules/pump": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", - "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, + "node_modules/pumpify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-2.0.1.tgz", + "integrity": "sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==", + "license": "MIT", + "dependencies": { + "duplexify": "^4.1.1", + "inherits": "^2.0.3", + "pump": "^3.0.0" + } + }, + "node_modules/pumpify/node_modules/duplexify": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.2" + } + }, + "node_modules/pumpify/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/quick-format-unescaped": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", @@ -3497,9 +3659,9 @@ "license": "BSD-3-Clause" }, "node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -3590,6 +3752,12 @@ "node": ">= 10.x" } }, + "node_modules/stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", + "license": "MIT" + }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -3746,6 +3914,46 @@ "real-require": "^0.2.0" } }, + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "license": "MIT", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/through2/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/through2/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/through2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -3853,9 +4061,9 @@ } }, "node_modules/typescript": { - "version": "5.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", - "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", @@ -3866,9 +4074,15 @@ } }, "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "license": "MIT" }, "node_modules/v8-compile-cache-lib": { diff --git a/hasura/industry/telco/customer/connector/stripe/package.json b/hasura/industry/telco/customer/connector/stripe/package.json index aa67eabc..7feed94f 100644 --- a/hasura/industry/telco/customer/connector/stripe/package.json +++ b/hasura/industry/telco/customer/connector/stripe/package.json @@ -8,7 +8,7 @@ "watch": "ndc-lambda-sdk host -f functions.ts --watch serve --configuration ./ --pretty-print-logs" }, "dependencies": { - "@hasura/ndc-lambda-sdk": "1.13.0" + "@hasura/ndc-lambda-sdk": "1.16.0" }, "devDependencies": { "dotenv-cli": "^7.4.2" diff --git a/hasura/industry/telco/customer/metadata/CreateCampaign.hml b/hasura/industry/telco/customer/metadata/CreateCampaign.hml index 7426fb60..6d4cc1e4 100644 --- a/hasura/industry/telco/customer/metadata/CreateCampaign.hml +++ b/hasura/industry/telco/customer/metadata/CreateCampaign.hml @@ -13,7 +13,7 @@ definition: - name: channel type: String! - name: endDate - type: DateTime! + type: Timestamp! - name: offerDetails type: String! - name: targetSegment diff --git a/hasura/industry/telco/customer/metadata/CustomerPreferences.hml b/hasura/industry/telco/customer/metadata/CustomerPreferences.hml index 72c6bc9b..74b2f609 100644 --- a/hasura/industry/telco/customer/metadata/CustomerPreferences.hml +++ b/hasura/industry/telco/customer/metadata/CustomerPreferences.hml @@ -68,7 +68,7 @@ definition: - name: contactMethod type: String - name: marketingOptIn - type: Bool_1 + type: Boolean_1 graphql: typeName: customer_CustomerPreferencesPreferences inputTypeName: customer_CustomerPreferencesPreferencesInput @@ -96,8 +96,12 @@ definition: fields: - name: facebook type: String + - name: instagram + type: String - name: linkedin type: String + - name: tiktok + type: String - name: twitter type: String graphql: @@ -117,7 +121,9 @@ definition: output: allowedFields: - facebook + - instagram - linkedin + - tiktok - twitter --- @@ -127,7 +133,7 @@ definition: name: CustomerPreferences fields: - name: id - type: ObjectId! + type: String_1! - name: behavioralData type: CustomerPreferencesBehavioralData - name: customerGuid @@ -236,7 +242,7 @@ definition: - fieldName: contactMethod booleanExpressionType: StringBoolExp - fieldName: marketingOptIn - booleanExpressionType: BoolBoolExp_1 + booleanExpressionType: BoolBoolExp comparableRelationships: [] logicalOperators: enable: true @@ -256,8 +262,12 @@ definition: comparableFields: - fieldName: facebook booleanExpressionType: StringBoolExp + - fieldName: instagram + booleanExpressionType: StringBoolExp - fieldName: linkedin booleanExpressionType: StringBoolExp + - fieldName: tiktok + booleanExpressionType: StringBoolExp - fieldName: twitter booleanExpressionType: StringBoolExp comparableRelationships: [] @@ -344,7 +354,7 @@ definition: - fieldName: contactMethod orderByExpression: StringOrderByExp - fieldName: marketingOptIn - orderByExpression: Bool1OrderByExp + orderByExpression: Boolean1OrderByExp orderableRelationships: [] graphql: expressionTypeName: customer_CustomerPreferencesPreferencesOrderByExp @@ -360,8 +370,12 @@ definition: orderableFields: - fieldName: facebook orderByExpression: StringOrderByExp + - fieldName: instagram + orderByExpression: StringOrderByExp - fieldName: linkedin orderByExpression: StringOrderByExp + - fieldName: tiktok + orderByExpression: StringOrderByExp - fieldName: twitter orderByExpression: StringOrderByExp orderableRelationships: [] @@ -378,7 +392,7 @@ definition: orderedType: CustomerPreferences orderableFields: - fieldName: id - orderByExpression: ObjectIdOrderByExp + orderByExpression: String1OrderByExp - fieldName: behavioralData orderByExpression: CustomerPreferencesBehavioralDataOrderByExp - fieldName: customerGuid @@ -430,3 +444,4 @@ definition: select: filter: null allowSubscriptions: true + diff --git a/hasura/industry/telco/customer/metadata/DeactivateDevice.hml b/hasura/industry/telco/customer/metadata/DeactivateDevice.hml index 3614b635..571e4dfb 100644 --- a/hasura/industry/telco/customer/metadata/DeactivateDevice.hml +++ b/hasura/industry/telco/customer/metadata/DeactivateDevice.hml @@ -33,3 +33,4 @@ definition: allowExecution: true - role: customer allowExecution: true + diff --git a/hasura/industry/telco/customer/metadata/MaskCardNumber.hml b/hasura/industry/telco/customer/metadata/MaskCardNumber.hml index b933c418..f8ab1282 100644 --- a/hasura/industry/telco/customer/metadata/MaskCardNumber.hml +++ b/hasura/industry/telco/customer/metadata/MaskCardNumber.hml @@ -31,7 +31,7 @@ kind: Relationship version: v1 definition: name: maskCreditCard - sourceType: CreditCards + sourceType: PublicCreditCards target: command: name: MaskCardNumber diff --git a/hasura/industry/telco/customer/metadata/Billing.hml b/hasura/industry/telco/customer/metadata/PublicBilling.hml similarity index 54% rename from hasura/industry/telco/customer/metadata/Billing.hml rename to hasura/industry/telco/customer/metadata/PublicBilling.hml index 08d8a784..e60eca21 100644 --- a/hasura/industry/telco/customer/metadata/Billing.hml +++ b/hasura/industry/telco/customer/metadata/PublicBilling.hml @@ -2,24 +2,25 @@ kind: ObjectType version: v1 definition: - name: Billing + name: PublicBilling + description: "Object type for public.billing. Description: null" fields: - name: billingDate type: Date - name: billingId - type: Int4! + type: Int32! - name: customerId - type: Int4 + type: Int32 - name: paymentStatus - type: Varchar + type: String_1 - name: totalAmount - type: Numeric + type: Bigdecimal graphql: - typeName: customer_Billing - inputTypeName: customer_BillingInput + typeName: customer_PublicBilling + inputTypeName: customer_PublicBillingInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: billing + dataConnectorObjectType: public.billing fieldMapping: billingDate: column: @@ -41,7 +42,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Billing + typeName: PublicBilling permissions: - role: admin output: @@ -51,148 +52,130 @@ definition: - customerId - paymentStatus - totalAmount - - role: customer - output: - allowedFields: - - billingDate - - customerId - - paymentStatus - - totalAmount --- kind: BooleanExpressionType version: v1 definition: - name: BillingBoolExp + name: PublicBillingBoolExp operand: object: - type: Billing + type: PublicBilling comparableFields: - fieldName: billingDate booleanExpressionType: DateBoolExp - fieldName: billingId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: paymentStatus - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: totalAmount - booleanExpressionType: NumericBoolExp - comparableRelationships: - - relationshipName: customer + booleanExpressionType: DecimalBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_BillingBoolExp + typeName: customer_PublicBillingBoolExp --- kind: AggregateExpression version: v1 definition: - name: BillingAggExp + name: PublicBillingAggExp operand: object: - aggregatedType: Billing + aggregatedType: PublicBilling aggregatableFields: - fieldName: billingDate aggregateExpression: DateAggExp - fieldName: billingId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: paymentStatus - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: totalAmount - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp count: enable: true graphql: - selectTypeName: customer_BillingAggExp + selectTypeName: customer_PublicBillingAggExp --- kind: OrderByExpression version: v1 definition: - name: BillingOrderByExp + name: PublicBillingOrderByExp operand: object: - orderedType: Billing + orderedType: PublicBilling orderableFields: - fieldName: billingDate orderByExpression: DateOrderByExp - fieldName: billingId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: paymentStatus - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: totalAmount - orderByExpression: NumericOrderByExp - orderableRelationships: - - relationshipName: customer + orderByExpression: BigdecimalOrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_BillingOrderByExp + expressionTypeName: customer_PublicBillingOrderByExp --- kind: Model version: v2 definition: - name: Billing - objectType: Billing + name: PublicBilling + objectType: PublicBilling source: dataConnectorName: aurora - collection: billing - filterExpressionType: BillingBoolExp - aggregateExpression: BillingAggExp - orderByExpression: BillingOrderByExp + collection: public.billing + filterExpressionType: PublicBillingBoolExp + aggregateExpression: PublicBillingAggExp + orderByExpression: PublicBillingOrderByExp graphql: selectMany: - queryRootField: billing + queryRootField: publicBilling subscription: - rootField: billing + rootField: publicBilling selectUniques: - - queryRootField: billingByBillingId + - queryRootField: publicBillingByBillingId uniqueIdentifier: - billingId subscription: - rootField: billingByBillingId - filterInputTypeName: customer_BillingFilterInput + rootField: publicBillingByBillingId + filterInputTypeName: customer_PublicBillingFilterInput aggregate: - queryRootField: billingAggregate + queryRootField: publicBillingAggregate subscription: - rootField: billingAggregate + rootField: publicBillingAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Billing + modelName: PublicBilling permissions: - role: admin select: filter: null allowSubscriptions: true - - role: customer - select: - filter: - fieldComparison: - field: customerId - operator: _eq - value: - sessionVariable: x-hasura-user-id - allowSubscriptions: true --- kind: Relationship version: v1 definition: name: customer - sourceType: Billing + sourceType: PublicBilling target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -200,5 +183,4 @@ definition: - fieldName: customerId target: modelField: - - fieldName: customerId - + - fieldName: customerId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/Campaigns.hml b/hasura/industry/telco/customer/metadata/PublicCampaigns.hml similarity index 60% rename from hasura/industry/telco/customer/metadata/Campaigns.hml rename to hasura/industry/telco/customer/metadata/PublicCampaigns.hml index f75230ad..5a0941b3 100644 --- a/hasura/industry/telco/customer/metadata/Campaigns.hml +++ b/hasura/industry/telco/customer/metadata/PublicCampaigns.hml @@ -2,34 +2,35 @@ kind: ObjectType version: v1 definition: - name: Campaigns + name: PublicCampaigns + description: "Object type for public.campaigns. Description: null" fields: - name: actualConversions - type: Int4 + type: Int32 - name: budget - type: Numeric + type: Bigdecimal - name: campaignId - type: Int4! + type: Int32! - name: campaignName - type: Varchar! + type: String_1! - name: channel - type: Varchar + type: String_1 - name: conversionGoal - type: Int4 + type: Int32 - name: endDate type: Date - name: offerDetails - type: Text + type: String_1 - name: startDate type: Date! - name: targetSegment - type: Varchar + type: String_1 graphql: - typeName: customer_Campaigns - inputTypeName: customer_CampaignsInput + typeName: customer_PublicCampaigns + inputTypeName: customer_PublicCampaignsInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: campaigns + dataConnectorObjectType: public.campaigns fieldMapping: actualConversions: column: @@ -66,7 +67,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Campaigns + typeName: PublicCampaigns permissions: - role: admin output: @@ -86,23 +87,23 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: CampaignsBoolExp + name: PublicCampaignsBoolExp operand: object: - type: Campaigns + type: PublicCampaigns comparableFields: - fieldName: actualConversions - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: budget - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: campaignId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: campaignName - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: channel - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: conversionGoal - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: endDate booleanExpressionType: DateBoolExp - fieldName: offerDetails @@ -110,36 +111,36 @@ definition: - fieldName: startDate booleanExpressionType: DateBoolExp - fieldName: targetSegment - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_CampaignsBoolExp + typeName: customer_PublicCampaignsBoolExp --- kind: AggregateExpression version: v1 definition: - name: CampaignsAggExp + name: PublicCampaignsAggExp operand: object: - aggregatedType: Campaigns + aggregatedType: PublicCampaigns aggregatableFields: - fieldName: actualConversions - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: budget - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: campaignId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: campaignName - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: channel - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: conversionGoal - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: endDate aggregateExpression: DateAggExp - fieldName: offerDetails @@ -147,79 +148,79 @@ definition: - fieldName: startDate aggregateExpression: DateAggExp - fieldName: targetSegment - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_CampaignsAggExp + selectTypeName: customer_PublicCampaignsAggExp --- kind: OrderByExpression version: v1 definition: - name: CampaignsOrderByExp + name: PublicCampaignsOrderByExp operand: object: - orderedType: Campaigns + orderedType: PublicCampaigns orderableFields: - fieldName: actualConversions - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: budget - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: campaignId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: campaignName - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: channel - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: conversionGoal - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: endDate orderByExpression: DateOrderByExp - fieldName: offerDetails - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: startDate orderByExpression: DateOrderByExp - fieldName: targetSegment - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp orderableRelationships: [] graphql: - expressionTypeName: customer_CampaignsOrderByExp + expressionTypeName: customer_PublicCampaignsOrderByExp --- kind: Model version: v2 definition: - name: Campaigns - objectType: Campaigns + name: PublicCampaigns + objectType: PublicCampaigns source: dataConnectorName: aurora - collection: campaigns - filterExpressionType: CampaignsBoolExp - aggregateExpression: CampaignsAggExp - orderByExpression: CampaignsOrderByExp + collection: public.campaigns + filterExpressionType: PublicCampaignsBoolExp + aggregateExpression: PublicCampaignsAggExp + orderByExpression: PublicCampaignsOrderByExp graphql: selectMany: - queryRootField: campaigns + queryRootField: publicCampaigns subscription: - rootField: campaigns + rootField: publicCampaigns selectUniques: - - queryRootField: campaignsByCampaignId + - queryRootField: publicCampaignsByCampaignId uniqueIdentifier: - campaignId subscription: - rootField: campaignsByCampaignId - filterInputTypeName: customer_CampaignsFilterInput + rootField: publicCampaignsByCampaignId + filterInputTypeName: customer_PublicCampaignsFilterInput aggregate: - queryRootField: campaignsAggregate + queryRootField: publicCampaignsAggregate subscription: - rootField: campaignsAggregate + rootField: publicCampaignsAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Campaigns + modelName: PublicCampaigns permissions: - role: admin select: diff --git a/hasura/industry/telco/customer/metadata/CreditCards.hml b/hasura/industry/telco/customer/metadata/PublicCreditCards.hml similarity index 57% rename from hasura/industry/telco/customer/metadata/CreditCards.hml rename to hasura/industry/telco/customer/metadata/PublicCreditCards.hml index 58b39ec1..b84c1e0b 100644 --- a/hasura/industry/telco/customer/metadata/CreditCards.hml +++ b/hasura/industry/telco/customer/metadata/PublicCreditCards.hml @@ -2,28 +2,29 @@ kind: ObjectType version: v1 definition: - name: CreditCards + name: PublicCreditCards + description: "Object type for public.credit_cards. Description: null" fields: - name: createdAt type: Timestamptz! - name: creditCardId - type: Int4! + type: Int32! - name: customerId - type: Int4 + type: Int32 - name: cvv - type: Int4! + type: Int32! - name: expiry type: Date! - name: number - type: Text! + type: String_1! - name: updatedAt type: Timestamptz! graphql: - typeName: customer_CreditCards - inputTypeName: customer_CreditCardsInput + typeName: customer_PublicCreditCards + inputTypeName: customer_PublicCreditCardsInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: credit_cards + dataConnectorObjectType: public.credit_cards fieldMapping: createdAt: column: @@ -51,7 +52,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: CreditCards + typeName: PublicCreditCards permissions: - role: admin output: @@ -63,160 +64,142 @@ definition: - expiry - number - updatedAt - - role: customer - output: - allowedFields: - - customerId - - cvv - - expiry - - number --- kind: BooleanExpressionType version: v1 definition: - name: CreditCardsBoolExp + name: PublicCreditCardsBoolExp operand: object: - type: CreditCards + type: PublicCreditCards comparableFields: - fieldName: createdAt - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: creditCardId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: cvv - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: expiry booleanExpressionType: DateBoolExp - fieldName: number booleanExpressionType: TextBoolExp - fieldName: updatedAt - booleanExpressionType: TimestamptzBoolExp - comparableRelationships: - - relationshipName: customer + booleanExpressionType: TimestampWithTimeZoneBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_CreditCardsBoolExp + typeName: customer_PublicCreditCardsBoolExp --- kind: AggregateExpression version: v1 definition: - name: CreditCardsAggExp + name: PublicCreditCardsAggExp operand: object: - aggregatedType: CreditCards + aggregatedType: PublicCreditCards aggregatableFields: - fieldName: createdAt - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: creditCardId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: cvv - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: expiry aggregateExpression: DateAggExp - fieldName: number aggregateExpression: TextAggExp - fieldName: updatedAt - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp count: enable: true graphql: - selectTypeName: customer_CreditCardsAggExp + selectTypeName: customer_PublicCreditCardsAggExp --- kind: OrderByExpression version: v1 definition: - name: CreditCardsOrderByExp + name: PublicCreditCardsOrderByExp operand: object: - orderedType: CreditCards + orderedType: PublicCreditCards orderableFields: - fieldName: createdAt orderByExpression: TimestamptzOrderByExp - fieldName: creditCardId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: cvv - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: expiry orderByExpression: DateOrderByExp - fieldName: number - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: updatedAt orderByExpression: TimestamptzOrderByExp - orderableRelationships: - - relationshipName: customer + orderableRelationships: [] graphql: - expressionTypeName: customer_CreditCardsOrderByExp + expressionTypeName: customer_PublicCreditCardsOrderByExp --- kind: Model version: v2 definition: - name: CreditCards - objectType: CreditCards + name: PublicCreditCards + objectType: PublicCreditCards source: dataConnectorName: aurora - collection: credit_cards - filterExpressionType: CreditCardsBoolExp - aggregateExpression: CreditCardsAggExp - orderByExpression: CreditCardsOrderByExp + collection: public.credit_cards + filterExpressionType: PublicCreditCardsBoolExp + aggregateExpression: PublicCreditCardsAggExp + orderByExpression: PublicCreditCardsOrderByExp graphql: selectMany: - queryRootField: creditCards + queryRootField: publicCreditCards subscription: - rootField: creditCards + rootField: publicCreditCards selectUniques: - - queryRootField: creditCardsByCreditCardId + - queryRootField: publicCreditCardsByCreditCardId uniqueIdentifier: - creditCardId subscription: - rootField: creditCardsByCreditCardId - filterInputTypeName: customer_CreditCardsFilterInput + rootField: publicCreditCardsByCreditCardId + filterInputTypeName: customer_PublicCreditCardsFilterInput aggregate: - queryRootField: creditCardsAggregate + queryRootField: publicCreditCardsAggregate subscription: - rootField: creditCardsAggregate + rootField: publicCreditCardsAggregate --- kind: ModelPermissions version: v1 definition: - modelName: CreditCards + modelName: PublicCreditCards permissions: - role: admin select: filter: null allowSubscriptions: true - - role: customer - select: - filter: - fieldComparison: - field: customerId - operator: _eq - value: - sessionVariable: x-hasura-user-id - allowSubscriptions: true --- kind: Relationship version: v1 definition: name: customer - sourceType: CreditCards + sourceType: PublicCreditCards target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -224,5 +207,4 @@ definition: - fieldName: customerId target: modelField: - - fieldName: customerId - + - fieldName: customerId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/CustomerLink.hml b/hasura/industry/telco/customer/metadata/PublicCustomerLink.hml similarity index 57% rename from hasura/industry/telco/customer/metadata/CustomerLink.hml rename to hasura/industry/telco/customer/metadata/PublicCustomerLink.hml index 3e24e0fc..e0ce984d 100644 --- a/hasura/industry/telco/customer/metadata/CustomerLink.hml +++ b/hasura/industry/telco/customer/metadata/PublicCustomerLink.hml @@ -2,20 +2,21 @@ kind: ObjectType version: v1 definition: - name: CustomerLink + name: PublicCustomerLink + description: "Object type for public.customer_link. Description: null" fields: - name: customerGuid - type: Uuid! + type: String_1! - name: customerId - type: Int4 + type: Int32 - name: id - type: Int4! + type: Int32! graphql: - typeName: customer_CustomerLink - inputTypeName: customer_CustomerLinkInput + typeName: customer_PublicCustomerLink + inputTypeName: customer_PublicCustomerLinkInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: customer_link + dataConnectorObjectType: public.customer_link fieldMapping: customerGuid: column: @@ -31,7 +32,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: CustomerLink + typeName: PublicCustomerLink permissions: - role: admin output: @@ -50,105 +51,98 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: CustomerLinkBoolExp + name: PublicCustomerLinkBoolExp operand: object: - type: CustomerLink + type: PublicCustomerLink comparableFields: - fieldName: customerGuid booleanExpressionType: UuidBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: id - booleanExpressionType: Int4BoolExp - comparableRelationships: - - relationshipName: customer + booleanExpressionType: IntegerBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_CustomerLinkBoolExp + typeName: customer_PublicCustomerLinkBoolExp --- kind: AggregateExpression version: v1 definition: - name: CustomerLinkAggExp + name: PublicCustomerLinkAggExp operand: object: - aggregatedType: CustomerLink + aggregatedType: PublicCustomerLink aggregatableFields: - fieldName: customerGuid aggregateExpression: UuidAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: id - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp count: enable: true graphql: - selectTypeName: customer_CustomerLinkAggExp + selectTypeName: customer_PublicCustomerLinkAggExp --- kind: OrderByExpression version: v1 definition: - name: CustomerLinkOrderByExp + name: PublicCustomerLinkOrderByExp operand: object: - orderedType: CustomerLink + orderedType: PublicCustomerLink orderableFields: - fieldName: customerGuid - orderByExpression: UuidOrderByExp + orderByExpression: String1OrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: id - orderByExpression: Int4OrderByExp - orderableRelationships: - - relationshipName: customer + orderByExpression: Int32OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_CustomerLinkOrderByExp + expressionTypeName: customer_PublicCustomerLinkOrderByExp --- kind: Model version: v2 definition: - name: CustomerLink - objectType: CustomerLink + name: PublicCustomerLink + objectType: PublicCustomerLink source: dataConnectorName: aurora - collection: customer_link - filterExpressionType: CustomerLinkBoolExp - aggregateExpression: CustomerLinkAggExp - orderByExpression: CustomerLinkOrderByExp + collection: public.customer_link + filterExpressionType: PublicCustomerLinkBoolExp + aggregateExpression: PublicCustomerLinkAggExp + orderByExpression: PublicCustomerLinkOrderByExp graphql: selectMany: - queryRootField: customerLink + queryRootField: publicCustomerLink subscription: - rootField: customerLink + rootField: publicCustomerLink selectUniques: - - queryRootField: customerLinkByCustomerId - uniqueIdentifier: - - customerId - subscription: - rootField: customerLinkByCustomerId - - queryRootField: customerLinkById + - queryRootField: publicCustomerLinkById uniqueIdentifier: - id subscription: - rootField: customerLinkById - filterInputTypeName: customer_CustomerLinkFilterInput + rootField: publicCustomerLinkById + filterInputTypeName: customer_PublicCustomerLinkFilterInput aggregate: - queryRootField: customerLinkAggregate + queryRootField: publicCustomerLinkAggregate subscription: - rootField: customerLinkAggregate + rootField: publicCustomerLinkAggregate --- kind: ModelPermissions version: v1 definition: - modelName: CustomerLink + modelName: PublicCustomerLink permissions: - role: admin select: @@ -169,10 +163,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: CustomerLink + sourceType: PublicCustomerLink target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: diff --git a/hasura/industry/telco/customer/metadata/CustomerNetwork.hml b/hasura/industry/telco/customer/metadata/PublicCustomerNetwork.hml similarity index 51% rename from hasura/industry/telco/customer/metadata/CustomerNetwork.hml rename to hasura/industry/telco/customer/metadata/PublicCustomerNetwork.hml index 906a8bf5..a73b6e65 100644 --- a/hasura/industry/telco/customer/metadata/CustomerNetwork.hml +++ b/hasura/industry/telco/customer/metadata/PublicCustomerNetwork.hml @@ -2,18 +2,19 @@ kind: ObjectType version: v1 definition: - name: CustomerNetwork + name: PublicCustomerNetwork + description: "Object type for public.customer_network. Description: null" fields: - name: customerId - type: Int4! + type: Int32! - name: nodeId - type: Int4! + type: Int32! graphql: - typeName: customer_CustomerNetwork - inputTypeName: customer_CustomerNetworkInput + typeName: customer_PublicCustomerNetwork + inputTypeName: customer_PublicCustomerNetworkInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: customer_network + dataConnectorObjectType: public.customer_network fieldMapping: customerId: column: @@ -26,7 +27,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: CustomerNetwork + typeName: PublicCustomerNetwork permissions: - role: admin output: @@ -38,97 +39,93 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: CustomerNetworkBoolExp + name: PublicCustomerNetworkBoolExp operand: object: - type: CustomerNetwork + type: PublicCustomerNetwork comparableFields: - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: nodeId - booleanExpressionType: Int4BoolExp - comparableRelationships: - - relationshipName: customer - - relationshipName: network + booleanExpressionType: IntegerBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_CustomerNetworkBoolExp + typeName: customer_PublicCustomerNetworkBoolExp --- kind: AggregateExpression version: v1 definition: - name: CustomerNetworkAggExp + name: PublicCustomerNetworkAggExp operand: object: - aggregatedType: CustomerNetwork + aggregatedType: PublicCustomerNetwork aggregatableFields: - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: nodeId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp count: enable: true graphql: - selectTypeName: customer_CustomerNetworkAggExp + selectTypeName: customer_PublicCustomerNetworkAggExp --- kind: OrderByExpression version: v1 definition: - name: CustomerNetworkOrderByExp + name: PublicCustomerNetworkOrderByExp operand: object: - orderedType: CustomerNetwork + orderedType: PublicCustomerNetwork orderableFields: - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: nodeId - orderByExpression: Int4OrderByExp - orderableRelationships: - - relationshipName: customer - - relationshipName: network + orderByExpression: Int32OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_CustomerNetworkOrderByExp + expressionTypeName: customer_PublicCustomerNetworkOrderByExp --- kind: Model version: v2 definition: - name: CustomerNetwork - objectType: CustomerNetwork + name: PublicCustomerNetwork + objectType: PublicCustomerNetwork source: dataConnectorName: aurora - collection: customer_network - filterExpressionType: CustomerNetworkBoolExp - aggregateExpression: CustomerNetworkAggExp - orderByExpression: CustomerNetworkOrderByExp + collection: public.customer_network + filterExpressionType: PublicCustomerNetworkBoolExp + aggregateExpression: PublicCustomerNetworkAggExp + orderByExpression: PublicCustomerNetworkOrderByExp graphql: selectMany: - queryRootField: customerNetwork + queryRootField: publicCustomerNetwork subscription: - rootField: customerNetwork + rootField: publicCustomerNetwork selectUniques: - - queryRootField: customerNetworkByCustomerNetworkPkey + - queryRootField: publicCustomerNetworkByPrimaryKey uniqueIdentifier: - customerId - nodeId subscription: - rootField: customerNetworkByCustomerNetworkPkey - filterInputTypeName: customer_CustomerNetworkFilterInput + rootField: publicCustomerNetworkByPrimaryKey + filterInputTypeName: customer_PublicCustomerNetworkFilterInput aggregate: - queryRootField: customerNetworkAggregate + queryRootField: publicCustomerNetworkAggregate subscription: - rootField: customerNetworkAggregate + rootField: publicCustomerNetworkAggregate --- kind: ModelPermissions version: v1 definition: - modelName: CustomerNetwork + modelName: PublicCustomerNetwork permissions: - role: admin select: @@ -140,10 +137,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: CustomerNetwork + sourceType: PublicCustomerNetwork target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -158,10 +155,10 @@ kind: Relationship version: v1 definition: name: network - sourceType: CustomerNetwork + sourceType: PublicCustomerNetwork target: model: - name: Network + name: PublicNetwork relationshipType: Object mapping: - source: @@ -169,5 +166,4 @@ definition: - fieldName: nodeId target: modelField: - - fieldName: nodeId - + - fieldName: nodeId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/CustomerPlanDevices.hml b/hasura/industry/telco/customer/metadata/PublicCustomerPlanDevices.hml similarity index 56% rename from hasura/industry/telco/customer/metadata/CustomerPlanDevices.hml rename to hasura/industry/telco/customer/metadata/PublicCustomerPlanDevices.hml index f331901f..3c2e3f37 100644 --- a/hasura/industry/telco/customer/metadata/CustomerPlanDevices.hml +++ b/hasura/industry/telco/customer/metadata/PublicCustomerPlanDevices.hml @@ -2,22 +2,23 @@ kind: ObjectType version: v1 definition: - name: CustomerPlanDevices + name: PublicCustomerPlanDevices + description: "Object type for public.customer_plan_devices. Description: null" fields: - name: customerPlanId - type: Int4! + type: Int32! - name: deviceId - type: Int4! + type: Int32! - name: deviceImei - type: Varchar + type: String_1 - name: simIccid - type: Varchar + type: String_1 graphql: - typeName: customer_CustomerPlanDevices - inputTypeName: customer_CustomerPlanDevicesInput + typeName: customer_PublicCustomerPlanDevices + inputTypeName: customer_PublicCustomerPlanDevicesInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: customer_plan_devices + dataConnectorObjectType: public.customer_plan_devices fieldMapping: customerPlanId: column: @@ -36,7 +37,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: CustomerPlanDevices + typeName: PublicCustomerPlanDevices permissions: - role: admin output: @@ -57,109 +58,106 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: CustomerPlanDevicesBoolExp + name: PublicCustomerPlanDevicesBoolExp operand: object: - type: CustomerPlanDevices + type: PublicCustomerPlanDevices comparableFields: - fieldName: customerPlanId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: deviceId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: deviceImei - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: simIccid - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp comparableRelationships: - relationshipName: customerPlan - - relationshipName: device logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_CustomerPlanDevicesBoolExp + typeName: customer_PublicCustomerPlanDevicesBoolExp --- kind: AggregateExpression version: v1 definition: - name: CustomerPlanDevicesAggExp + name: PublicCustomerPlanDevicesAggExp operand: object: - aggregatedType: CustomerPlanDevices + aggregatedType: PublicCustomerPlanDevices aggregatableFields: - fieldName: customerPlanId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: deviceId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: deviceImei - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: simIccid - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_CustomerPlanDevicesAggExp + selectTypeName: customer_PublicCustomerPlanDevicesAggExp --- kind: OrderByExpression version: v1 definition: - name: CustomerPlanDevicesOrderByExp + name: PublicCustomerPlanDevicesOrderByExp operand: object: - orderedType: CustomerPlanDevices + orderedType: PublicCustomerPlanDevices orderableFields: - fieldName: customerPlanId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: deviceId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: deviceImei - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: simIccid - orderByExpression: VarcharOrderByExp - orderableRelationships: - - relationshipName: customerPlan - - relationshipName: device + orderByExpression: String1OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_CustomerPlanDevicesOrderByExp + expressionTypeName: customer_PublicCustomerPlanDevicesOrderByExp --- kind: Model version: v2 definition: - name: CustomerPlanDevices - objectType: CustomerPlanDevices + name: PublicCustomerPlanDevices + objectType: PublicCustomerPlanDevices source: dataConnectorName: aurora - collection: customer_plan_devices - filterExpressionType: CustomerPlanDevicesBoolExp - aggregateExpression: CustomerPlanDevicesAggExp - orderByExpression: CustomerPlanDevicesOrderByExp + collection: public.customer_plan_devices + filterExpressionType: PublicCustomerPlanDevicesBoolExp + aggregateExpression: PublicCustomerPlanDevicesAggExp + orderByExpression: PublicCustomerPlanDevicesOrderByExp graphql: selectMany: - queryRootField: customerPlanDevices + queryRootField: publicCustomerPlanDevices subscription: - rootField: customerPlanDevices + rootField: publicCustomerPlanDevices selectUniques: - - queryRootField: customerPlanDevicesByCustomerPlanDevicesPkey + - queryRootField: publicCustomerPlanDevicesByPrimaryKey uniqueIdentifier: - customerPlanId - deviceId subscription: - rootField: customerPlanDevicesByCustomerPlanDevicesPkey - filterInputTypeName: customer_CustomerPlanDevicesFilterInput + rootField: publicCustomerPlanDevicesByPrimaryKey + filterInputTypeName: customer_PublicCustomerPlanDevicesFilterInput aggregate: - queryRootField: customerPlanDevicesAggregate + queryRootField: publicCustomerPlanDevicesAggregate subscription: - rootField: customerPlanDevicesAggregate + rootField: publicCustomerPlanDevicesAggregate --- kind: ModelPermissions version: v1 definition: - modelName: CustomerPlanDevices + modelName: PublicCustomerPlanDevices permissions: - role: admin select: @@ -178,15 +176,16 @@ definition: sessionVariable: x-hasura-user-id allowSubscriptions: true + --- kind: Relationship version: v1 definition: name: customerPlan - sourceType: CustomerPlanDevices + sourceType: PublicCustomerPlanDevices target: model: - name: CustomerPlans + name: PublicCustomerPlans relationshipType: Object mapping: - source: @@ -201,10 +200,10 @@ kind: Relationship version: v1 definition: name: device - sourceType: CustomerPlanDevices + sourceType: PublicCustomerPlanDevices target: model: - name: Devices + name: PublicDevices relationshipType: Object mapping: - source: @@ -212,5 +211,4 @@ definition: - fieldName: deviceId target: modelField: - - fieldName: deviceId - + - fieldName: deviceId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/CustomerPlans.hml b/hasura/industry/telco/customer/metadata/PublicCustomerPlans.hml similarity index 56% rename from hasura/industry/telco/customer/metadata/CustomerPlans.hml rename to hasura/industry/telco/customer/metadata/PublicCustomerPlans.hml index 3115724b..1ca56c29 100644 --- a/hasura/industry/telco/customer/metadata/CustomerPlans.hml +++ b/hasura/industry/telco/customer/metadata/PublicCustomerPlans.hml @@ -2,34 +2,35 @@ kind: ObjectType version: v1 definition: - name: CustomerPlans + name: PublicCustomerPlans + description: "Object type for public.customer_plans. Description: null" fields: - name: cellNumber - type: Varchar + type: String_1 - name: customerId - type: Int4 + type: Int32 - name: customerPlanId - type: Int4! + type: Int32! - name: dataAllocationGb - type: Int4 + type: Int32 - name: dataUsedGb - type: Numeric + type: Bigdecimal - name: endDate type: Date - name: planId - type: Int4 + type: Int32 - name: rolloverDataGb - type: Numeric + type: Bigdecimal - name: startDate type: Date - name: status - type: Varchar + type: String_1 graphql: - typeName: customer_CustomerPlans - inputTypeName: customer_CustomerPlansInput + typeName: customer_PublicCustomerPlans + inputTypeName: customer_PublicCustomerPlansInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: customer_plans + dataConnectorObjectType: public.customer_plans fieldMapping: cellNumber: column: @@ -66,7 +67,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: CustomerPlans + typeName: PublicCustomerPlans permissions: - role: admin output: @@ -98,145 +99,140 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: CustomerPlansBoolExp + name: PublicCustomerPlansBoolExp operand: object: - type: CustomerPlans + type: PublicCustomerPlans comparableFields: - fieldName: cellNumber - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: customerPlanId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: dataAllocationGb - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: dataUsedGb - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: endDate booleanExpressionType: DateBoolExp - fieldName: planId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: rolloverDataGb - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: startDate booleanExpressionType: DateBoolExp - fieldName: status - booleanExpressionType: VarcharBoolExp - comparableRelationships: - - relationshipName: customerPlanDevices - - relationshipName: customer - - relationshipName: plan + booleanExpressionType: CharacterVaryingBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_CustomerPlansBoolExp + typeName: customer_PublicCustomerPlansBoolExp --- kind: AggregateExpression version: v1 definition: - name: CustomerPlansAggExp + name: PublicCustomerPlansAggExp operand: object: - aggregatedType: CustomerPlans + aggregatedType: PublicCustomerPlans aggregatableFields: - fieldName: cellNumber - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: customerPlanId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: dataAllocationGb - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: dataUsedGb - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: endDate aggregateExpression: DateAggExp - fieldName: planId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: rolloverDataGb - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: startDate aggregateExpression: DateAggExp - fieldName: status - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_CustomerPlansAggExp + selectTypeName: customer_PublicCustomerPlansAggExp --- kind: OrderByExpression version: v1 definition: - name: CustomerPlansOrderByExp + name: PublicCustomerPlansOrderByExp operand: object: - orderedType: CustomerPlans + orderedType: PublicCustomerPlans orderableFields: - fieldName: cellNumber - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: customerPlanId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: dataAllocationGb - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: dataUsedGb - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: endDate orderByExpression: DateOrderByExp - fieldName: planId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: rolloverDataGb - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: startDate orderByExpression: DateOrderByExp - fieldName: status - orderByExpression: VarcharOrderByExp - orderableRelationships: - - relationshipName: customer - - relationshipName: plan + orderByExpression: String1OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_CustomerPlansOrderByExp + expressionTypeName: customer_PublicCustomerPlansOrderByExp --- kind: Model version: v2 definition: - name: CustomerPlans - objectType: CustomerPlans + name: PublicCustomerPlans + objectType: PublicCustomerPlans source: dataConnectorName: aurora - collection: customer_plans - filterExpressionType: CustomerPlansBoolExp - aggregateExpression: CustomerPlansAggExp - orderByExpression: CustomerPlansOrderByExp + collection: public.customer_plans + filterExpressionType: PublicCustomerPlansBoolExp + aggregateExpression: PublicCustomerPlansAggExp + orderByExpression: PublicCustomerPlansOrderByExp graphql: selectMany: - queryRootField: customerPlans + queryRootField: publicCustomerPlans subscription: - rootField: customerPlans + rootField: publicCustomerPlans selectUniques: - - queryRootField: customerPlansByCustomerPlanId + - queryRootField: publicCustomerPlansByCustomerPlanId uniqueIdentifier: - customerPlanId subscription: - rootField: customerPlansByCustomerPlanId - filterInputTypeName: customer_CustomerPlansFilterInput + rootField: publicCustomerPlansByCustomerPlanId + filterInputTypeName: customer_PublicCustomerPlansFilterInput aggregate: - queryRootField: customerPlansAggregate + queryRootField: publicCustomerPlansAggregate subscription: - rootField: customerPlansAggregate + rootField: publicCustomerPlansAggregate --- kind: ModelPermissions version: v1 definition: - modelName: CustomerPlans + modelName: PublicCustomerPlans permissions: - role: admin select: @@ -257,13 +253,11 @@ kind: Relationship version: v1 definition: name: customerPlanDevices - sourceType: CustomerPlans + sourceType: PublicCustomerPlans target: model: - name: CustomerPlanDevices + name: PublicCustomerPlanDevices relationshipType: Array - aggregate: - aggregateExpression: CustomerPlanDevicesAggExp mapping: - source: fieldPath: @@ -271,42 +265,3 @@ definition: target: modelField: - fieldName: customerPlanId - graphql: - aggregateFieldName: customerPlanDevicesAggregate - ---- -kind: Relationship -version: v1 -definition: - name: customer - sourceType: CustomerPlans - target: - model: - name: Customers - relationshipType: Object - mapping: - - source: - fieldPath: - - fieldName: customerId - target: - modelField: - - fieldName: customerId - ---- -kind: Relationship -version: v1 -definition: - name: plan - sourceType: CustomerPlans - target: - model: - name: Plans - relationshipType: Object - mapping: - - source: - fieldPath: - - fieldName: planId - target: - modelField: - - fieldName: planId - diff --git a/hasura/industry/telco/customer/metadata/Customers.hml b/hasura/industry/telco/customer/metadata/PublicCustomers.hml similarity index 53% rename from hasura/industry/telco/customer/metadata/Customers.hml rename to hasura/industry/telco/customer/metadata/PublicCustomers.hml index e93eb7ea..369479a2 100644 --- a/hasura/industry/telco/customer/metadata/Customers.hml +++ b/hasura/industry/telco/customer/metadata/PublicCustomers.hml @@ -2,162 +2,51 @@ kind: ObjectType version: v1 definition: - name: Customers - description: > - This is the Master customer/user datastore for the telecommunications system. Contains - all subscriber - - information including service eligibility, network preferences, billing details, and - - churn risk analytics. This model should be the primary source for any customer-facing - - applications, call center systems, network provisioning, and business intelligence queries - - related to subscriber base management. + name: PublicCustomers + description: "Object type for public.customers. Description: null" fields: - name: address - type: Varchar - description: > - Subscriber's physical service address where telecommunications hardware - may be installed. Used for service qualification, network planning, and coverage analysis. + type: String_1 - name: authUserId - type: Int4 - description: > - Foreign key to authentication system. Links subscriber credentials for - customer - - portal access, mobile app sign-in, and self-service kiosk authentication. + type: Int32 - name: churnRisk - type: Numeric - description: > - Predictive analytics score (0.0-1.0) indicating subscriber's likelihood - to cancel - - services or port number to competitor. Used for retention campaigns, loyalty program - - targeting, and proactive service intervention strategies. + type: Bigdecimal - name: churnRiskFactors - type: "[Text]" - description: > - Array of specific risk indicators identified by predictive models such - as 'frequent - - dropped calls', 'billing disputes', 'competitor promotion inquiries', 'data usage - - pattern change', or 'payment delinquency trends'. + type: Json - name: city - type: Varchar - description: > - Subscriber's city for service address. Critical for local network - planning, - - regulatory compliance reporting, and market penetration analysis. + type: String_1 - name: country - type: Varchar - description: > - Subscriber's country. Determines applicable telecommunications - regulations, - - roaming agreements, and international calling rate structures. + type: String_1 - name: customerId - type: Int4! - description: > - Unique subscriber identifier across all telecommunications platforms and - services. - - Referenced by billing systems, network provisioning, customer support ticketing, - - and device management systems. + type: Int32! + - name: dob + type: Date - name: email - type: Varchar - description: > - Subscriber's verified email address. Used for e-billing notifications, - service - - alerts, promotional communications, and account recovery. Validated during - - activation with a 6-digit verification code. + type: String_1 - name: firstName - type: Varchar - description: > - Subscriber's given name used for personalized communications, account - verification - - during customer support calls, and regulatory identity verification requirements. + type: String_1 - name: image - type: Varchar - description: > - Path to subscriber's profile image (format: 'avatar_X.jpg') displayed in - customer - - service systems, mobile app, and web portal. Helps agents personalize interactions. + type: String_1 - name: lastName - type: Varchar - description: > - Subscriber's family name used alongside firstName for account - verification and - - personalized communications. Essential for regulatory compliance and billing identity. + type: String_1 - name: lastSurveyDate type: Date - description: > - Date of most recent Net Promoter Score or customer satisfaction survey - completion. - - Influences when subscriber is eligible for follow-up surveys and determines survey - - campaign targeting eligibility. - name: phoneNumber - type: Varchar - description: > - Subscriber's primary contact number, which may be different from their - subscribed - - service numbers. Used for account verification, service notifications, and two-factor - - authentication. Critical for contacting subscriber during service disruptions. + type: String_1 - name: postcode - type: Varchar - description: > - Postal code for service qualification, network planning, and spectrum - licensing - - compliance. Used in analytics for market penetration by geographic segment. + type: String_1 - name: satisfactionScore - type: Int4 - description: > - Net Promoter Score (1-10) indicating subscriber's likelihood to - recommend services. - - Tracks customer experience across touchpoints, predicts renewal likelihood, and - - identifies potential brand advocates for referral programs. + type: Int32 - name: segment - type: Varchar - description: > - Subscriber classification category ('Business', 'Family', 'Premium', - etc.) determining - - service SLAs, priority support routing, specialized retention strategies, and - - applicable promotional offerings. Influences network QoS prioritization. + type: String_1 - name: state - type: Varchar - description: > - State or province of subscriber's service address. Determines applicable - local - - telecommunications taxes, regulatory requirements, and emergency services routing - - configurations. - - name: dob - type: Date + type: String_1 graphql: - typeName: customer_Customers - inputTypeName: customer_CustomersInput + typeName: customer_PublicCustomers + inputTypeName: customer_PublicCustomersInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: customers + dataConnectorObjectType: public.customers fieldMapping: address: column: @@ -180,6 +69,9 @@ definition: customerId: column: name: customer_id + dob: + column: + name: dob email: column: name: email @@ -210,15 +102,12 @@ definition: state: column: name: state - dob: - column: - name: dob --- kind: TypePermissions version: v1 definition: - typeName: Customers + typeName: PublicCustomers permissions: - role: admin output: @@ -230,6 +119,7 @@ definition: - city - country - customerId + - dob - email - firstName - image @@ -240,7 +130,6 @@ definition: - satisfactionScore - segment - state - - dob - role: customer output: allowedFields: @@ -260,170 +149,159 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: CustomersBoolExp + name: PublicCustomersBoolExp operand: object: - type: Customers + type: PublicCustomers comparableFields: - fieldName: address - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: authUserId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: churnRisk - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp + - fieldName: churnRiskFactors + booleanExpressionType: ArrayBoolExp - fieldName: city - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: country - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp + - fieldName: dob + booleanExpressionType: DateBoolExp - fieldName: email - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: firstName - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: image - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: lastName - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: lastSurveyDate booleanExpressionType: DateBoolExp - fieldName: phoneNumber - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: postcode - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: satisfactionScore - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: segment - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: state - booleanExpressionType: VarcharBoolExp - - fieldName: dob - booleanExpressionType: DateBoolExp - comparableRelationships: - - relationshipName: billings - - relationshipName: creditCards - - relationshipName: customerLinks - - relationshipName: customerNetworks - - relationshipName: customerPlans - - relationshipName: deviceUpgrades - - relationshipName: familyPlanMembers - - relationshipName: familyPlans - - relationshipName: feedbacks - - relationshipName: interactions - - relationshipName: iotDevices - - relationshipName: loyaltyRewards - - relationshipName: numberPortabilities - - relationshipName: referrals - - relationshipName: referralsByReferrerId - - relationshipName: serviceInteractions - - relationshipName: voipServices + booleanExpressionType: CharacterVaryingBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_CustomersBoolExp + typeName: customer_PublicCustomersBoolExp --- kind: AggregateExpression version: v1 definition: - name: CustomersAggExp + name: PublicCustomersAggExp operand: object: - aggregatedType: Customers + aggregatedType: PublicCustomers aggregatableFields: - fieldName: address - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: authUserId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: churnRisk - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp + - fieldName: churnRiskFactors + aggregateExpression: ArrayAggExp - fieldName: city - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: country - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp + - fieldName: dob + aggregateExpression: DateAggExp - fieldName: email - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: firstName - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: image - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: lastName - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: lastSurveyDate aggregateExpression: DateAggExp - fieldName: phoneNumber - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: postcode - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: satisfactionScore - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: segment - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: state - aggregateExpression: VarcharAggExp - - fieldName: dob - aggregateExpression: DateAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_CustomersAggExp + selectTypeName: customer_PublicCustomersAggExp --- kind: OrderByExpression version: v1 definition: - name: CustomersOrderByExp + name: PublicCustomersOrderByExp operand: object: - orderedType: Customers + orderedType: PublicCustomers orderableFields: - fieldName: address - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: authUserId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: churnRisk - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp + - fieldName: churnRiskFactors + orderByExpression: JsonOrderByExp - fieldName: city - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: country - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp + - fieldName: dob + orderByExpression: DateOrderByExp - fieldName: email - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: firstName - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: image - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: lastName - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: lastSurveyDate orderByExpression: DateOrderByExp - fieldName: phoneNumber - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: postcode - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: satisfactionScore - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: segment - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: state - orderByExpression: VarcharOrderByExp - - fieldName: dob - orderByExpression: DateOrderByExp + orderByExpression: String1OrderByExp orderableRelationships: [] graphql: - expressionTypeName: customer_CustomersOrderByExp + expressionTypeName: customer_PublicCustomersOrderByExp --- kind: Model version: v2 definition: - name: Customers + name: PublicCustomers description: | # Telecommunications Customer Master Repository @@ -444,40 +322,35 @@ definition: - Network provisioning and service activation workflows - Business intelligence and executive reporting dashboards - Regulatory compliance and data governance processes - objectType: Customers + objectType: PublicCustomers source: dataConnectorName: aurora - collection: customers - filterExpressionType: CustomersBoolExp - aggregateExpression: CustomersAggExp - orderByExpression: CustomersOrderByExp + collection: public.customers + filterExpressionType: PublicCustomersBoolExp + aggregateExpression: PublicCustomersAggExp + orderByExpression: PublicCustomersOrderByExp graphql: selectMany: - queryRootField: customers + queryRootField: publicCustomers subscription: - rootField: customers + rootField: publicCustomers selectUniques: - - queryRootField: customersByPhoneNumber - uniqueIdentifier: - - phoneNumber - subscription: - rootField: customersByPhoneNumber - - queryRootField: customersByCustomerId + - queryRootField: publicCustomersByCustomerId uniqueIdentifier: - customerId subscription: - rootField: customersByCustomerId - filterInputTypeName: customer_CustomersFilterInput + rootField: publicCustomersByCustomerId + filterInputTypeName: customer_PublicCustomersFilterInput aggregate: - queryRootField: customersAggregate + queryRootField: publicCustomersAggregate subscription: - rootField: customersAggregate + rootField: publicCustomersAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Customers + modelName: PublicCustomers permissions: - role: admin select: @@ -498,13 +371,13 @@ kind: Relationship version: v1 definition: name: billings - sourceType: Customers + sourceType: PublicCustomers target: model: - name: Billing + name: PublicBilling relationshipType: Array aggregate: - aggregateExpression: BillingAggExp + aggregateExpression: PublicBillingAggExp mapping: - source: fieldPath: @@ -520,13 +393,13 @@ kind: Relationship version: v1 definition: name: creditCards - sourceType: Customers + sourceType: PublicCustomers target: model: - name: CreditCards + name: PublicCreditCards relationshipType: Array aggregate: - aggregateExpression: CreditCardsAggExp + aggregateExpression: PublicCreditCardsAggExp mapping: - source: fieldPath: @@ -542,13 +415,13 @@ kind: Relationship version: v1 definition: name: customerLinks - sourceType: Customers + sourceType: PublicCustomers target: model: - name: CustomerLink + name: PublicCustomerLink relationshipType: Array aggregate: - aggregateExpression: CustomerLinkAggExp + aggregateExpression: PublicCustomerLinkAggExp mapping: - source: fieldPath: @@ -564,13 +437,13 @@ kind: Relationship version: v1 definition: name: customerNetworks - sourceType: Customers + sourceType: PublicCustomers target: model: - name: CustomerNetwork + name: PublicCustomerNetwork relationshipType: Array aggregate: - aggregateExpression: CustomerNetworkAggExp + aggregateExpression: PublicCustomerNetworkAggExp mapping: - source: fieldPath: @@ -586,13 +459,13 @@ kind: Relationship version: v1 definition: name: customerPlans - sourceType: Customers + sourceType: PublicCustomers target: model: - name: CustomerPlans + name: PublicCustomerPlans relationshipType: Array aggregate: - aggregateExpression: CustomerPlansAggExp + aggregateExpression: PublicCustomerPlansAggExp mapping: - source: fieldPath: @@ -608,13 +481,13 @@ kind: Relationship version: v1 definition: name: deviceUpgrades - sourceType: Customers + sourceType: PublicCustomers target: model: - name: DeviceUpgrades + name: PublicDeviceUpgrades relationshipType: Array aggregate: - aggregateExpression: DeviceUpgradesAggExp + aggregateExpression: PublicDeviceUpgradesAggExp mapping: - source: fieldPath: @@ -630,13 +503,13 @@ kind: Relationship version: v1 definition: name: familyPlanMembers - sourceType: Customers + sourceType: PublicCustomers target: model: - name: FamilyPlanMembers + name: PublicFamilyPlanMembers relationshipType: Array aggregate: - aggregateExpression: FamilyPlanMembersAggExp + aggregateExpression: PublicFamilyPlanMembersAggExp mapping: - source: fieldPath: @@ -652,13 +525,13 @@ kind: Relationship version: v1 definition: name: familyPlans - sourceType: Customers + sourceType: PublicCustomers target: model: - name: FamilyPlans + name: PublicFamilyPlans relationshipType: Array aggregate: - aggregateExpression: FamilyPlansAggExp + aggregateExpression: PublicFamilyPlansAggExp mapping: - source: fieldPath: @@ -674,13 +547,13 @@ kind: Relationship version: v1 definition: name: feedbacks - sourceType: Customers + sourceType: PublicCustomers target: model: - name: Feedback + name: PublicFeedback relationshipType: Array aggregate: - aggregateExpression: FeedbackAggExp + aggregateExpression: PublicFeedbackAggExp mapping: - source: fieldPath: @@ -696,13 +569,13 @@ kind: Relationship version: v1 definition: name: interactions - sourceType: Customers + sourceType: PublicCustomers target: model: - name: Interactions + name: PublicInteractions relationshipType: Array aggregate: - aggregateExpression: InteractionsAggExp + aggregateExpression: PublicInteractionsAggExp mapping: - source: fieldPath: @@ -718,13 +591,13 @@ kind: Relationship version: v1 definition: name: iotDevices - sourceType: Customers + sourceType: PublicCustomers target: model: - name: IotDevices + name: PublicIotDevices relationshipType: Array aggregate: - aggregateExpression: IotDevicesAggExp + aggregateExpression: PublicIotDevicesAggExp mapping: - source: fieldPath: @@ -740,13 +613,13 @@ kind: Relationship version: v1 definition: name: loyaltyRewards - sourceType: Customers + sourceType: PublicCustomers target: model: - name: LoyaltyRewards + name: PublicLoyaltyRewards relationshipType: Array aggregate: - aggregateExpression: LoyaltyRewardsAggExp + aggregateExpression: PublicLoyaltyRewardsAggExp mapping: - source: fieldPath: @@ -762,13 +635,13 @@ kind: Relationship version: v1 definition: name: numberPortabilities - sourceType: Customers + sourceType: PublicCustomers target: model: - name: NumberPortability + name: PublicNumberPortability relationshipType: Array aggregate: - aggregateExpression: NumberPortabilityAggExp + aggregateExpression: PublicNumberPortabilityAggExp mapping: - source: fieldPath: @@ -784,13 +657,13 @@ kind: Relationship version: v1 definition: name: referrals - sourceType: Customers + sourceType: PublicCustomers target: model: - name: Referrals + name: PublicReferrals relationshipType: Array aggregate: - aggregateExpression: ReferralsAggExp + aggregateExpression: PublicReferralsAggExp mapping: - source: fieldPath: @@ -806,13 +679,13 @@ kind: Relationship version: v1 definition: name: referralsByReferrerId - sourceType: Customers + sourceType: PublicCustomers target: model: - name: Referrals + name: PublicReferrals relationshipType: Array aggregate: - aggregateExpression: ReferralsAggExp + aggregateExpression: PublicReferralsAggExp mapping: - source: fieldPath: @@ -828,13 +701,13 @@ kind: Relationship version: v1 definition: name: serviceInteractions - sourceType: Customers + sourceType: PublicCustomers target: model: - name: ServiceInteractions + name: PublicServiceInteractions relationshipType: Array aggregate: - aggregateExpression: ServiceInteractionsAggExp + aggregateExpression: PublicServiceInteractionsAggExp mapping: - source: fieldPath: @@ -850,13 +723,13 @@ kind: Relationship version: v1 definition: name: voipServices - sourceType: Customers + sourceType: PublicCustomers target: model: - name: VoipServices + name: PublicVoipServices relationshipType: Array aggregate: - aggregateExpression: VoipServicesAggExp + aggregateExpression: PublicVoipServicesAggExp mapping: - source: fieldPath: @@ -866,4 +739,3 @@ definition: - fieldName: customerId graphql: aggregateFieldName: voipServicesAggregate - diff --git a/hasura/industry/telco/customer/metadata/Deals.hml b/hasura/industry/telco/customer/metadata/PublicDeals.hml similarity index 65% rename from hasura/industry/telco/customer/metadata/Deals.hml rename to hasura/industry/telco/customer/metadata/PublicDeals.hml index 19f46774..b2f53d25 100644 --- a/hasura/industry/telco/customer/metadata/Deals.hml +++ b/hasura/industry/telco/customer/metadata/PublicDeals.hml @@ -2,34 +2,35 @@ kind: ObjectType version: v1 definition: - name: Deals + name: PublicDeals + description: "Object type for public.deals. Description: null" fields: - name: additionalBenefits - type: Text + type: String_1 - name: customerSegment - type: Varchar + type: String_1 - name: dealId - type: Int4! + type: Int32! - name: dealName - type: Varchar + type: String_1 - name: description - type: Text + type: String_1 - name: endDate type: Date - name: maxMonthlySpend - type: Numeric + type: Bigdecimal - name: minMonthlySpend - type: Numeric + type: Bigdecimal - name: startDate type: Date - name: termsConditions - type: Text + type: String_1 graphql: - typeName: customer_Deals - inputTypeName: customer_DealsInput + typeName: customer_PublicDeals + inputTypeName: customer_PublicDealsInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: deals + dataConnectorObjectType: public.deals fieldMapping: additionalBenefits: column: @@ -66,7 +67,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Deals + typeName: PublicDeals permissions: - role: admin output: @@ -81,41 +82,32 @@ definition: - minMonthlySpend - startDate - termsConditions - - role: customer - output: - allowedFields: - - additionalBenefits - - dealName - - description - - endDate - - startDate - - termsConditions --- kind: BooleanExpressionType version: v1 definition: - name: DealsBoolExp + name: PublicDealsBoolExp operand: object: - type: Deals + type: PublicDeals comparableFields: - fieldName: additionalBenefits booleanExpressionType: TextBoolExp - fieldName: customerSegment - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: dealId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: dealName - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: description booleanExpressionType: TextBoolExp - fieldName: endDate booleanExpressionType: DateBoolExp - fieldName: maxMonthlySpend - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: minMonthlySpend - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: startDate booleanExpressionType: DateBoolExp - fieldName: termsConditions @@ -126,33 +118,33 @@ definition: isNull: enable: true graphql: - typeName: customer_DealsBoolExp + typeName: customer_PublicDealsBoolExp --- kind: AggregateExpression version: v1 definition: - name: DealsAggExp + name: PublicDealsAggExp operand: object: - aggregatedType: Deals + aggregatedType: PublicDeals aggregatableFields: - fieldName: additionalBenefits aggregateExpression: TextAggExp - fieldName: customerSegment - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: dealId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: dealName - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: description aggregateExpression: TextAggExp - fieldName: endDate aggregateExpression: DateAggExp - fieldName: maxMonthlySpend - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: minMonthlySpend - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: startDate aggregateExpression: DateAggExp - fieldName: termsConditions @@ -160,82 +152,78 @@ definition: count: enable: true graphql: - selectTypeName: customer_DealsAggExp + selectTypeName: customer_PublicDealsAggExp --- kind: OrderByExpression version: v1 definition: - name: DealsOrderByExp + name: PublicDealsOrderByExp operand: object: - orderedType: Deals + orderedType: PublicDeals orderableFields: - fieldName: additionalBenefits - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: customerSegment - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: dealId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: dealName - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: description - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: endDate orderByExpression: DateOrderByExp - fieldName: maxMonthlySpend - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: minMonthlySpend - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: startDate orderByExpression: DateOrderByExp - fieldName: termsConditions - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp orderableRelationships: [] graphql: - expressionTypeName: customer_DealsOrderByExp + expressionTypeName: customer_PublicDealsOrderByExp --- kind: Model version: v2 definition: - name: Deals - objectType: Deals + name: PublicDeals + objectType: PublicDeals source: dataConnectorName: aurora - collection: deals - filterExpressionType: DealsBoolExp - aggregateExpression: DealsAggExp - orderByExpression: DealsOrderByExp + collection: public.deals + filterExpressionType: PublicDealsBoolExp + aggregateExpression: PublicDealsAggExp + orderByExpression: PublicDealsOrderByExp graphql: selectMany: - queryRootField: deals + queryRootField: publicDeals subscription: - rootField: deals + rootField: publicDeals selectUniques: - - queryRootField: dealsByDealId + - queryRootField: publicDealsByDealId uniqueIdentifier: - dealId subscription: - rootField: dealsByDealId - filterInputTypeName: customer_DealsFilterInput + rootField: publicDealsByDealId + filterInputTypeName: customer_PublicDealsFilterInput aggregate: - queryRootField: dealsAggregate + queryRootField: publicDealsAggregate subscription: - rootField: dealsAggregate + rootField: publicDealsAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Deals + modelName: PublicDeals permissions: - role: admin select: filter: null allowSubscriptions: true - - role: customer - select: - filter: null - allowSubscriptions: true diff --git a/hasura/industry/telco/customer/metadata/DeviceUpgrades.hml b/hasura/industry/telco/customer/metadata/PublicDeviceUpgrades.hml similarity index 60% rename from hasura/industry/telco/customer/metadata/DeviceUpgrades.hml rename to hasura/industry/telco/customer/metadata/PublicDeviceUpgrades.hml index 5accf7e8..7c3b0333 100644 --- a/hasura/industry/telco/customer/metadata/DeviceUpgrades.hml +++ b/hasura/industry/telco/customer/metadata/PublicDeviceUpgrades.hml @@ -2,30 +2,31 @@ kind: ObjectType version: v1 definition: - name: DeviceUpgrades + name: PublicDeviceUpgrades + description: "Object type for public.device_upgrades. Description: null" fields: - name: contractExtensionMonths - type: Int4 + type: Int32 - name: customerId - type: Int4 + type: Int32 - name: newDeviceId - type: Int4 + type: Int32 - name: oldDeviceId - type: Int4 + type: Int32 - name: promotionApplied - type: Varchar + type: String_1 - name: tradeInValue - type: Numeric + type: Bigdecimal - name: upgradeDate type: Date! - name: upgradeId - type: Int4! + type: Int32! graphql: - typeName: customer_DeviceUpgrades - inputTypeName: customer_DeviceUpgradesInput + typeName: customer_PublicDeviceUpgrades + inputTypeName: customer_PublicDeviceUpgradesInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: device_upgrades + dataConnectorObjectType: public.device_upgrades fieldMapping: contractExtensionMonths: column: @@ -56,7 +57,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: DeviceUpgrades + typeName: PublicDeviceUpgrades permissions: - role: admin output: @@ -81,134 +82,128 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: DeviceUpgradesBoolExp + name: PublicDeviceUpgradesBoolExp operand: object: - type: DeviceUpgrades + type: PublicDeviceUpgrades comparableFields: - fieldName: contractExtensionMonths - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: newDeviceId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: oldDeviceId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: promotionApplied - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: tradeInValue - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: upgradeDate booleanExpressionType: DateBoolExp - fieldName: upgradeId - booleanExpressionType: Int4BoolExp - comparableRelationships: - - relationshipName: customer - - relationshipName: device - - relationshipName: deviceByOldDeviceId + booleanExpressionType: IntegerBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_DeviceUpgradesBoolExp + typeName: customer_PublicDeviceUpgradesBoolExp --- kind: AggregateExpression version: v1 definition: - name: DeviceUpgradesAggExp + name: PublicDeviceUpgradesAggExp operand: object: - aggregatedType: DeviceUpgrades + aggregatedType: PublicDeviceUpgrades aggregatableFields: - fieldName: contractExtensionMonths - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: newDeviceId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: oldDeviceId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: promotionApplied - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: tradeInValue - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: upgradeDate aggregateExpression: DateAggExp - fieldName: upgradeId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp count: enable: true graphql: - selectTypeName: customer_DeviceUpgradesAggExp + selectTypeName: customer_PublicDeviceUpgradesAggExp --- kind: OrderByExpression version: v1 definition: - name: DeviceUpgradesOrderByExp + name: PublicDeviceUpgradesOrderByExp operand: object: - orderedType: DeviceUpgrades + orderedType: PublicDeviceUpgrades orderableFields: - fieldName: contractExtensionMonths - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: newDeviceId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: oldDeviceId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: promotionApplied - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: tradeInValue - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: upgradeDate orderByExpression: DateOrderByExp - fieldName: upgradeId - orderByExpression: Int4OrderByExp - orderableRelationships: - - relationshipName: customer - - relationshipName: device - - relationshipName: deviceByOldDeviceId + orderByExpression: Int32OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_DeviceUpgradesOrderByExp + expressionTypeName: customer_PublicDeviceUpgradesOrderByExp --- kind: Model version: v2 definition: - name: DeviceUpgrades - objectType: DeviceUpgrades + name: PublicDeviceUpgrades + objectType: PublicDeviceUpgrades source: dataConnectorName: aurora - collection: device_upgrades - filterExpressionType: DeviceUpgradesBoolExp - aggregateExpression: DeviceUpgradesAggExp - orderByExpression: DeviceUpgradesOrderByExp + collection: public.device_upgrades + filterExpressionType: PublicDeviceUpgradesBoolExp + aggregateExpression: PublicDeviceUpgradesAggExp + orderByExpression: PublicDeviceUpgradesOrderByExp graphql: selectMany: - queryRootField: deviceUpgrades + queryRootField: publicDeviceUpgrades subscription: - rootField: deviceUpgrades + rootField: publicDeviceUpgrades selectUniques: - - queryRootField: deviceUpgradesByUpgradeId + - queryRootField: publicDeviceUpgradesByUpgradeId uniqueIdentifier: - upgradeId subscription: - rootField: deviceUpgradesByUpgradeId - filterInputTypeName: customer_DeviceUpgradesFilterInput + rootField: publicDeviceUpgradesByUpgradeId + filterInputTypeName: customer_PublicDeviceUpgradesFilterInput aggregate: - queryRootField: deviceUpgradesAggregate + queryRootField: publicDeviceUpgradesAggregate subscription: - rootField: deviceUpgradesAggregate + rootField: publicDeviceUpgradesAggregate --- kind: ModelPermissions version: v1 definition: - modelName: DeviceUpgrades + modelName: PublicDeviceUpgrades permissions: - role: admin select: @@ -224,16 +219,15 @@ definition: sessionVariable: x-hasura-user-id allowSubscriptions: true - --- kind: Relationship version: v1 definition: name: customer - sourceType: DeviceUpgrades + sourceType: PublicDeviceUpgrades target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -248,10 +242,10 @@ kind: Relationship version: v1 definition: name: device - sourceType: DeviceUpgrades + sourceType: PublicDeviceUpgrades target: model: - name: Devices + name: PublicDevices relationshipType: Object mapping: - source: @@ -266,10 +260,10 @@ kind: Relationship version: v1 definition: name: deviceByOldDeviceId - sourceType: DeviceUpgrades + sourceType: PublicDeviceUpgrades target: model: - name: Devices + name: PublicDevices relationshipType: Object mapping: - source: @@ -277,5 +271,4 @@ definition: - fieldName: oldDeviceId target: modelField: - - fieldName: deviceId - + - fieldName: deviceId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/Devices.hml b/hasura/industry/telco/customer/metadata/PublicDevices.hml similarity index 61% rename from hasura/industry/telco/customer/metadata/Devices.hml rename to hasura/industry/telco/customer/metadata/PublicDevices.hml index 68b27015..cf0d7ead 100644 --- a/hasura/industry/telco/customer/metadata/Devices.hml +++ b/hasura/industry/telco/customer/metadata/PublicDevices.hml @@ -2,28 +2,29 @@ kind: ObjectType version: v1 definition: - name: Devices + name: PublicDevices + description: "Object type for public.devices. Description: null" fields: - name: brand - type: Varchar! + type: String_1! - name: createdAt type: Timestamptz! - name: deviceId - type: Int4! + type: Int32! - name: image - type: Varchar + type: String_1 - name: model - type: Varchar! + type: String_1! - name: sfRecord - type: Varchar + type: String_1 - name: updatedAt type: Timestamptz! graphql: - typeName: customer_Devices - inputTypeName: customer_DevicesInput + typeName: customer_PublicDevices + inputTypeName: customer_PublicDevicesInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: devices + dataConnectorObjectType: public.devices fieldMapping: brand: column: @@ -51,7 +52,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Devices + typeName: PublicDevices permissions: - role: admin output: @@ -74,125 +75,123 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: DevicesBoolExp + name: PublicDevicesBoolExp operand: object: - type: Devices + type: PublicDevices comparableFields: - fieldName: brand - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: createdAt - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: deviceId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: image - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: model - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: sfRecord - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: updatedAt - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp comparableRelationships: - relationshipName: customerPlanDevices - - relationshipName: deviceUpgrades - - relationshipName: deviceUpgradesByOldDeviceId logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_DevicesBoolExp + typeName: customer_PublicDevicesBoolExp --- kind: AggregateExpression version: v1 definition: - name: DevicesAggExp + name: PublicDevicesAggExp operand: object: - aggregatedType: Devices + aggregatedType: PublicDevices aggregatableFields: - fieldName: brand - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: createdAt - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: deviceId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: image - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: model - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: sfRecord - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: updatedAt - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp count: enable: true graphql: - selectTypeName: customer_DevicesAggExp + selectTypeName: customer_PublicDevicesAggExp --- kind: OrderByExpression version: v1 definition: - name: DevicesOrderByExp + name: PublicDevicesOrderByExp operand: object: - orderedType: Devices + orderedType: PublicDevices orderableFields: - fieldName: brand - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: createdAt orderByExpression: TimestamptzOrderByExp - fieldName: deviceId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: image - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: model - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: sfRecord - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: updatedAt orderByExpression: TimestamptzOrderByExp orderableRelationships: [] graphql: - expressionTypeName: customer_DevicesOrderByExp + expressionTypeName: customer_PublicDevicesOrderByExp --- kind: Model version: v2 definition: - name: Devices - objectType: Devices + name: PublicDevices + objectType: PublicDevices source: dataConnectorName: aurora - collection: devices - filterExpressionType: DevicesBoolExp - aggregateExpression: DevicesAggExp - orderByExpression: DevicesOrderByExp + collection: public.devices + filterExpressionType: PublicDevicesBoolExp + aggregateExpression: PublicDevicesAggExp + orderByExpression: PublicDevicesOrderByExp graphql: selectMany: - queryRootField: devices + queryRootField: publicDevices subscription: - rootField: devices + rootField: publicDevices selectUniques: - - queryRootField: devicesByDeviceId + - queryRootField: publicDevicesByDeviceId uniqueIdentifier: - deviceId subscription: - rootField: devicesByDeviceId - filterInputTypeName: customer_DevicesFilterInput + rootField: publicDevicesByDeviceId + filterInputTypeName: customer_PublicDevicesFilterInput aggregate: - queryRootField: devicesAggregate + queryRootField: publicDevicesAggregate subscription: - rootField: devicesAggregate + rootField: publicDevicesAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Devices + modelName: PublicDevices permissions: - role: admin select: @@ -219,13 +218,13 @@ kind: Relationship version: v1 definition: name: customerPlanDevices - sourceType: Devices + sourceType: PublicDevices target: model: - name: CustomerPlanDevices + name: PublicCustomerPlanDevices relationshipType: Array aggregate: - aggregateExpression: CustomerPlanDevicesAggExp + aggregateExpression: PublicCustomerPlanDevicesAggExp mapping: - source: fieldPath: @@ -241,13 +240,13 @@ kind: Relationship version: v1 definition: name: deviceUpgrades - sourceType: Devices + sourceType: PublicDevices target: model: - name: DeviceUpgrades + name: PublicDeviceUpgrades relationshipType: Array aggregate: - aggregateExpression: DeviceUpgradesAggExp + aggregateExpression: PublicDeviceUpgradesAggExp mapping: - source: fieldPath: @@ -263,13 +262,13 @@ kind: Relationship version: v1 definition: name: deviceUpgradesByOldDeviceId - sourceType: Devices + sourceType: PublicDevices target: model: - name: DeviceUpgrades + name: PublicDeviceUpgrades relationshipType: Array aggregate: - aggregateExpression: DeviceUpgradesAggExp + aggregateExpression: PublicDeviceUpgradesAggExp mapping: - source: fieldPath: @@ -278,5 +277,4 @@ definition: modelField: - fieldName: oldDeviceId graphql: - aggregateFieldName: deviceUpgradesByOldDeviceIdAggregate - + aggregateFieldName: deviceUpgradesByOldDeviceIdAggregate \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/FamilyPlanMembers.hml b/hasura/industry/telco/customer/metadata/PublicFamilyPlanMembers.hml similarity index 56% rename from hasura/industry/telco/customer/metadata/FamilyPlanMembers.hml rename to hasura/industry/telco/customer/metadata/PublicFamilyPlanMembers.hml index 6db9f594..0bb303d1 100644 --- a/hasura/industry/telco/customer/metadata/FamilyPlanMembers.hml +++ b/hasura/industry/telco/customer/metadata/PublicFamilyPlanMembers.hml @@ -2,22 +2,23 @@ kind: ObjectType version: v1 definition: - name: FamilyPlanMembers + name: PublicFamilyPlanMembers + description: "Object type for public.family_plan_members. Description: null" fields: - name: customerId - type: Int4! + type: Int32! - name: dataAllocationPercentage - type: Int4 + type: Int32 - name: familyPlanId - type: Int4! + type: Int32! - name: role - type: Varchar + type: String_1 graphql: - typeName: customer_FamilyPlanMembers - inputTypeName: customer_FamilyPlanMembersInput + typeName: customer_PublicFamilyPlanMembers + inputTypeName: customer_PublicFamilyPlanMembersInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: family_plan_members + dataConnectorObjectType: public.family_plan_members fieldMapping: customerId: column: @@ -36,7 +37,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: FamilyPlanMembers + typeName: PublicFamilyPlanMembers permissions: - role: admin output: @@ -55,109 +56,105 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: FamilyPlanMembersBoolExp + name: PublicFamilyPlanMembersBoolExp operand: object: - type: FamilyPlanMembers + type: PublicFamilyPlanMembers comparableFields: - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: dataAllocationPercentage - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: familyPlanId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: role - booleanExpressionType: VarcharBoolExp - comparableRelationships: - - relationshipName: customer - - relationshipName: familyPlan + booleanExpressionType: CharacterVaryingBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_FamilyPlanMembersBoolExp + typeName: customer_PublicFamilyPlanMembersBoolExp --- kind: AggregateExpression version: v1 definition: - name: FamilyPlanMembersAggExp + name: PublicFamilyPlanMembersAggExp operand: object: - aggregatedType: FamilyPlanMembers + aggregatedType: PublicFamilyPlanMembers aggregatableFields: - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: dataAllocationPercentage - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: familyPlanId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: role - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_FamilyPlanMembersAggExp + selectTypeName: customer_PublicFamilyPlanMembersAggExp --- kind: OrderByExpression version: v1 definition: - name: FamilyPlanMembersOrderByExp + name: PublicFamilyPlanMembersOrderByExp operand: object: - orderedType: FamilyPlanMembers + orderedType: PublicFamilyPlanMembers orderableFields: - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: dataAllocationPercentage - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: familyPlanId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: role - orderByExpression: VarcharOrderByExp - orderableRelationships: - - relationshipName: customer - - relationshipName: familyPlan + orderByExpression: String1OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_FamilyPlanMembersOrderByExp + expressionTypeName: customer_PublicFamilyPlanMembersOrderByExp --- kind: Model version: v2 definition: - name: FamilyPlanMembers - objectType: FamilyPlanMembers + name: PublicFamilyPlanMembers + objectType: PublicFamilyPlanMembers source: dataConnectorName: aurora - collection: family_plan_members - filterExpressionType: FamilyPlanMembersBoolExp - aggregateExpression: FamilyPlanMembersAggExp - orderByExpression: FamilyPlanMembersOrderByExp + collection: public.family_plan_members + filterExpressionType: PublicFamilyPlanMembersBoolExp + aggregateExpression: PublicFamilyPlanMembersAggExp + orderByExpression: PublicFamilyPlanMembersOrderByExp graphql: selectMany: - queryRootField: familyPlanMembers + queryRootField: publicFamilyPlanMembers subscription: - rootField: familyPlanMembers + rootField: publicFamilyPlanMembers selectUniques: - - queryRootField: familyPlanMembersByFamilyPlanMembersPkey + - queryRootField: publicFamilyPlanMembersByPrimaryKey uniqueIdentifier: - - customerId - familyPlanId + - customerId subscription: - rootField: familyPlanMembersByFamilyPlanMembersPkey - filterInputTypeName: customer_FamilyPlanMembersFilterInput + rootField: publicFamilyPlanMembersByPrimaryKey + filterInputTypeName: customer_PublicFamilyPlanMembersFilterInput aggregate: - queryRootField: familyPlanMembersAggregate + queryRootField: publicFamilyPlanMembersAggregate subscription: - rootField: familyPlanMembersAggregate + rootField: publicFamilyPlanMembersAggregate --- kind: ModelPermissions version: v1 definition: - modelName: FamilyPlanMembers + modelName: PublicFamilyPlanMembers permissions: - role: admin select: @@ -178,10 +175,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: FamilyPlanMembers + sourceType: PublicFamilyPlanMembers target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -196,10 +193,10 @@ kind: Relationship version: v1 definition: name: familyPlan - sourceType: FamilyPlanMembers + sourceType: PublicFamilyPlanMembers target: model: - name: FamilyPlans + name: PublicFamilyPlans relationshipType: Object mapping: - source: diff --git a/hasura/industry/telco/customer/metadata/FamilyPlans.hml b/hasura/industry/telco/customer/metadata/PublicFamilyPlans.hml similarity index 60% rename from hasura/industry/telco/customer/metadata/FamilyPlans.hml rename to hasura/industry/telco/customer/metadata/PublicFamilyPlans.hml index 179933e9..a073c73c 100644 --- a/hasura/industry/telco/customer/metadata/FamilyPlans.hml +++ b/hasura/industry/telco/customer/metadata/PublicFamilyPlans.hml @@ -2,28 +2,29 @@ kind: ObjectType version: v1 definition: - name: FamilyPlans + name: PublicFamilyPlans + description: "Object type for public.family_plans. Description: null" fields: - name: createdAt type: Timestamptz - name: familyPlanId - type: Int4! + type: Int32! - name: maxMembers - type: Int4 + type: Int32 - name: monthlyFee - type: Numeric + type: Bigdecimal - name: planName - type: Varchar + type: String_1 - name: primaryCustomerId - type: Int4 + type: Int32 - name: sharedDataGb - type: Int4 + type: Int32 graphql: - typeName: customer_FamilyPlans - inputTypeName: customer_FamilyPlansInput + typeName: customer_PublicFamilyPlans + inputTypeName: customer_PublicFamilyPlansInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: family_plans + dataConnectorObjectType: public.family_plans fieldMapping: createdAt: column: @@ -51,7 +52,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: FamilyPlans + typeName: PublicFamilyPlans permissions: - role: admin output: @@ -75,25 +76,25 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: FamilyPlansBoolExp + name: PublicFamilyPlansBoolExp operand: object: - type: FamilyPlans + type: PublicFamilyPlans comparableFields: - fieldName: createdAt - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: familyPlanId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: maxMembers - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: monthlyFee - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: planName - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: primaryCustomerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: sharedDataGb - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp comparableRelationships: - relationshipName: familyPlanMembers - relationshipName: customer @@ -102,98 +103,97 @@ definition: isNull: enable: true graphql: - typeName: customer_FamilyPlansBoolExp + typeName: customer_PublicFamilyPlansBoolExp --- kind: AggregateExpression version: v1 definition: - name: FamilyPlansAggExp + name: PublicFamilyPlansAggExp operand: object: - aggregatedType: FamilyPlans + aggregatedType: PublicFamilyPlans aggregatableFields: - fieldName: createdAt - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: familyPlanId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: maxMembers - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: monthlyFee - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: planName - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: primaryCustomerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: sharedDataGb - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp count: enable: true graphql: - selectTypeName: customer_FamilyPlansAggExp + selectTypeName: customer_PublicFamilyPlansAggExp --- kind: OrderByExpression version: v1 definition: - name: FamilyPlansOrderByExp + name: PublicFamilyPlansOrderByExp operand: object: - orderedType: FamilyPlans + orderedType: PublicFamilyPlans orderableFields: - fieldName: createdAt orderByExpression: TimestamptzOrderByExp - fieldName: familyPlanId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: maxMembers - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: monthlyFee - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: planName - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: primaryCustomerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: sharedDataGb - orderByExpression: Int4OrderByExp - orderableRelationships: - - relationshipName: customer + orderByExpression: Int32OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_FamilyPlansOrderByExp + expressionTypeName: customer_PublicFamilyPlansOrderByExp --- kind: Model version: v2 definition: - name: FamilyPlans - objectType: FamilyPlans + name: PublicFamilyPlans + objectType: PublicFamilyPlans source: dataConnectorName: aurora - collection: family_plans - filterExpressionType: FamilyPlansBoolExp - aggregateExpression: FamilyPlansAggExp - orderByExpression: FamilyPlansOrderByExp + collection: public.family_plans + filterExpressionType: PublicFamilyPlansBoolExp + aggregateExpression: PublicFamilyPlansAggExp + orderByExpression: PublicFamilyPlansOrderByExp graphql: selectMany: - queryRootField: familyPlans + queryRootField: publicFamilyPlans subscription: - rootField: familyPlans + rootField: publicFamilyPlans selectUniques: - - queryRootField: familyPlansByFamilyPlanId + - queryRootField: publicFamilyPlansByFamilyPlanId uniqueIdentifier: - familyPlanId subscription: - rootField: familyPlansByFamilyPlanId - filterInputTypeName: customer_FamilyPlansFilterInput + rootField: publicFamilyPlansByFamilyPlanId + filterInputTypeName: customer_PublicFamilyPlansFilterInput aggregate: - queryRootField: familyPlansAggregate + queryRootField: publicFamilyPlansAggregate subscription: - rootField: familyPlansAggregate + rootField: publicFamilyPlansAggregate --- kind: ModelPermissions version: v1 definition: - modelName: FamilyPlans + modelName: PublicFamilyPlans permissions: - role: admin select: @@ -217,13 +217,13 @@ kind: Relationship version: v1 definition: name: familyPlanMembers - sourceType: FamilyPlans + sourceType: PublicFamilyPlans target: model: - name: FamilyPlanMembers + name: PublicFamilyPlanMembers relationshipType: Array aggregate: - aggregateExpression: FamilyPlanMembersAggExp + aggregateExpression: PublicFamilyPlanMembersAggExp mapping: - source: fieldPath: @@ -239,10 +239,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: FamilyPlans + sourceType: PublicFamilyPlans target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: diff --git a/hasura/industry/telco/customer/metadata/Feedback.hml b/hasura/industry/telco/customer/metadata/PublicFeedback.hml similarity index 58% rename from hasura/industry/telco/customer/metadata/Feedback.hml rename to hasura/industry/telco/customer/metadata/PublicFeedback.hml index 0364aef7..fb815401 100644 --- a/hasura/industry/telco/customer/metadata/Feedback.hml +++ b/hasura/industry/telco/customer/metadata/PublicFeedback.hml @@ -2,32 +2,33 @@ kind: ObjectType version: v1 definition: - name: Feedback + name: PublicFeedback + description: "Object type for public.feedback. Description: null" fields: - name: category - type: Varchar + type: String_1 - name: comments - type: Text + type: String_1 - name: customerId - type: Int4 + type: Int32 - name: feedbackDate type: Timestamptz - name: feedbackId - type: Int4! + type: Int32! - name: followupDate type: Timestamptz - name: followupNotes - type: Text + type: String_1 - name: rating - type: Int4 + type: Int32 - name: requiresFollowup - type: Bool + type: Boolean_1 graphql: - typeName: customer_Feedback - inputTypeName: customer_FeedbackInput + typeName: customer_PublicFeedback + inputTypeName: customer_PublicFeedbackInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: feedback + dataConnectorObjectType: public.feedback fieldMapping: category: column: @@ -61,7 +62,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Feedback + typeName: PublicFeedback permissions: - role: admin output: @@ -75,169 +76,154 @@ definition: - followupNotes - rating - requiresFollowup - - role: customer - output: - allowedFields: - - comments --- kind: BooleanExpressionType version: v1 definition: - name: FeedbackBoolExp + name: PublicFeedbackBoolExp operand: object: - type: Feedback + type: PublicFeedback comparableFields: - fieldName: category - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: comments booleanExpressionType: TextBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: feedbackDate - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: feedbackId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: followupDate - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: followupNotes booleanExpressionType: TextBoolExp - fieldName: rating - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: requiresFollowup - booleanExpressionType: BoolBoolExp - comparableRelationships: - - relationshipName: customer + booleanExpressionType: BooleanBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_FeedbackBoolExp + typeName: customer_PublicFeedbackBoolExp --- kind: AggregateExpression version: v1 definition: - name: FeedbackAggExp + name: PublicFeedbackAggExp operand: object: - aggregatedType: Feedback + aggregatedType: PublicFeedback aggregatableFields: - fieldName: category - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: comments aggregateExpression: TextAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: feedbackDate - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: feedbackId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: followupDate - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: followupNotes aggregateExpression: TextAggExp - fieldName: rating - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: requiresFollowup - aggregateExpression: BoolAggExp + aggregateExpression: BooleanAggExp count: enable: true graphql: - selectTypeName: customer_FeedbackAggExp + selectTypeName: customer_PublicFeedbackAggExp --- kind: OrderByExpression version: v1 definition: - name: FeedbackOrderByExp + name: PublicFeedbackOrderByExp operand: object: - orderedType: Feedback + orderedType: PublicFeedback orderableFields: - fieldName: category - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: comments - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: feedbackDate orderByExpression: TimestamptzOrderByExp - fieldName: feedbackId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: followupDate orderByExpression: TimestamptzOrderByExp - fieldName: followupNotes - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: rating - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: requiresFollowup - orderByExpression: BoolOrderByExp - orderableRelationships: - - relationshipName: customer + orderByExpression: Boolean1OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_FeedbackOrderByExp + expressionTypeName: customer_PublicFeedbackOrderByExp --- kind: Model version: v2 definition: - name: Feedback - objectType: Feedback + name: PublicFeedback + objectType: PublicFeedback source: dataConnectorName: aurora - collection: feedback - filterExpressionType: FeedbackBoolExp - aggregateExpression: FeedbackAggExp - orderByExpression: FeedbackOrderByExp + collection: public.feedback + filterExpressionType: PublicFeedbackBoolExp + aggregateExpression: PublicFeedbackAggExp + orderByExpression: PublicFeedbackOrderByExp graphql: selectMany: - queryRootField: feedback + queryRootField: publicFeedback subscription: - rootField: feedback + rootField: publicFeedback selectUniques: - - queryRootField: feedbackByFeedbackId + - queryRootField: publicFeedbackByFeedbackId uniqueIdentifier: - feedbackId subscription: - rootField: feedbackByFeedbackId - filterInputTypeName: customer_FeedbackFilterInput + rootField: publicFeedbackByFeedbackId + filterInputTypeName: customer_PublicFeedbackFilterInput aggregate: - queryRootField: feedbackAggregate + queryRootField: publicFeedbackAggregate subscription: - rootField: feedbackAggregate + rootField: publicFeedbackAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Feedback + modelName: PublicFeedback permissions: - role: admin select: filter: null allowSubscriptions: true - - role: customer - select: - filter: - fieldComparison: - field: customerId - operator: _eq - value: - sessionVariable: x-hasura-user-id - allowSubscriptions: true --- kind: Relationship version: v1 definition: name: customer - sourceType: Feedback + sourceType: PublicFeedback target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -245,5 +231,4 @@ definition: - fieldName: customerId target: modelField: - - fieldName: customerId - + - fieldName: customerId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/Interactions.hml b/hasura/industry/telco/customer/metadata/PublicInteractions.hml similarity index 55% rename from hasura/industry/telco/customer/metadata/Interactions.hml rename to hasura/industry/telco/customer/metadata/PublicInteractions.hml index dad4bd94..be4ef834 100644 --- a/hasura/industry/telco/customer/metadata/Interactions.hml +++ b/hasura/industry/telco/customer/metadata/PublicInteractions.hml @@ -2,35 +2,35 @@ kind: ObjectType version: v1 definition: - name: Interactions - description: Interactions that a customer has with a member of staff (not support interactions) + name: PublicInteractions + description: "Object type for public.interactions. Description: null" fields: - name: agentId - type: Int4 + type: Int32 - name: channel - type: Varchar! + type: String_1! - name: customerId - type: Int4 + type: Int32 - name: durationSeconds - type: Int4 + type: Int32 - name: interactionId - type: Int4! + type: Int32! - name: interactionTime type: Timestamptz - name: notes - type: Text + type: String_1 - name: resolutionStatus - type: Varchar + type: String_1 - name: satisfactionRating - type: Int4 + type: Int32 - name: topic - type: Varchar + type: String_1 graphql: - typeName: customer_Interactions - inputTypeName: customer_InteractionsInput + typeName: customer_PublicInteractions + inputTypeName: customer_PublicInteractionsInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: interactions + dataConnectorObjectType: public.interactions fieldMapping: agentId: column: @@ -67,7 +67,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Interactions + typeName: PublicInteractions permissions: - role: admin output: @@ -87,142 +87,140 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: InteractionsBoolExp + name: PublicInteractionsBoolExp operand: object: - type: Interactions + type: PublicInteractions comparableFields: - fieldName: agentId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: channel - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: durationSeconds - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: interactionId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: interactionTime - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: notes booleanExpressionType: TextBoolExp - fieldName: resolutionStatus - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: satisfactionRating - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: topic - booleanExpressionType: VarcharBoolExp - comparableRelationships: - - relationshipName: customer + booleanExpressionType: CharacterVaryingBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_InteractionsBoolExp + typeName: customer_PublicInteractionsBoolExp --- kind: AggregateExpression version: v1 definition: - name: InteractionsAggExp + name: PublicInteractionsAggExp operand: object: - aggregatedType: Interactions + aggregatedType: PublicInteractions aggregatableFields: - fieldName: agentId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: channel - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: durationSeconds - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: interactionId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: interactionTime - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: notes aggregateExpression: TextAggExp - fieldName: resolutionStatus - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: satisfactionRating - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: topic - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_InteractionsAggExp + selectTypeName: customer_PublicInteractionsAggExp --- kind: OrderByExpression version: v1 definition: - name: InteractionsOrderByExp + name: PublicInteractionsOrderByExp operand: object: - orderedType: Interactions + orderedType: PublicInteractions orderableFields: - fieldName: agentId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: channel - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: durationSeconds - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: interactionId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: interactionTime orderByExpression: TimestamptzOrderByExp - fieldName: notes - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: resolutionStatus - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: satisfactionRating - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: topic - orderByExpression: VarcharOrderByExp - orderableRelationships: - - relationshipName: customer + orderByExpression: String1OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_InteractionsOrderByExp + expressionTypeName: customer_PublicInteractionsOrderByExp --- kind: Model version: v2 definition: - name: Interactions - objectType: Interactions + name: PublicInteractions + objectType: PublicInteractions source: dataConnectorName: aurora - collection: interactions - filterExpressionType: InteractionsBoolExp - aggregateExpression: InteractionsAggExp - orderByExpression: InteractionsOrderByExp + collection: public.interactions + filterExpressionType: PublicInteractionsBoolExp + aggregateExpression: PublicInteractionsAggExp + orderByExpression: PublicInteractionsOrderByExp graphql: selectMany: - queryRootField: interactions + queryRootField: publicInteractions subscription: - rootField: interactions + rootField: publicInteractions selectUniques: - - queryRootField: interactionsByInteractionId + - queryRootField: publicInteractionsByInteractionId uniqueIdentifier: - interactionId subscription: - rootField: interactionsByInteractionId - filterInputTypeName: customer_InteractionsFilterInput + rootField: publicInteractionsByInteractionId + filterInputTypeName: customer_PublicInteractionsFilterInput aggregate: - queryRootField: interactionsAggregate + queryRootField: publicInteractionsAggregate subscription: - rootField: interactionsAggregate + rootField: publicInteractionsAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Interactions + modelName: PublicInteractions permissions: - role: admin select: @@ -234,10 +232,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: Interactions + sourceType: PublicInteractions target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -245,5 +243,4 @@ definition: - fieldName: customerId target: modelField: - - fieldName: customerId - + - fieldName: customerId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/IotDevices.hml b/hasura/industry/telco/customer/metadata/PublicIotDevices.hml similarity index 57% rename from hasura/industry/telco/customer/metadata/IotDevices.hml rename to hasura/industry/telco/customer/metadata/PublicIotDevices.hml index 09963614..21dcab4e 100644 --- a/hasura/industry/telco/customer/metadata/IotDevices.hml +++ b/hasura/industry/telco/customer/metadata/PublicIotDevices.hml @@ -2,34 +2,35 @@ kind: ObjectType version: v1 definition: - name: IotDevices + name: PublicIotDevices + description: "Object type for public.iot_devices. Description: null" fields: - name: activationDate type: Date - name: customerId - type: Int4 + type: Int32 - name: dataPlanId - type: Int4 + type: Int32 - name: deviceType - type: Varchar + type: String_1 - name: imei - type: Varchar + type: String_1 - name: iotDeviceId - type: Int4! + type: Int32! - name: lastActiveDate type: Timestamptz - name: monthlyDataUsageMb - type: Numeric + type: Bigdecimal - name: simIccid - type: Varchar + type: String_1 - name: status - type: Varchar + type: String_1 graphql: - typeName: customer_IotDevices - inputTypeName: customer_IotDevicesInput + typeName: customer_PublicIotDevices + inputTypeName: customer_PublicIotDevicesInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: iot_devices + dataConnectorObjectType: public.iot_devices fieldMapping: activationDate: column: @@ -66,7 +67,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: IotDevices + typeName: PublicIotDevices permissions: - role: admin output: @@ -86,144 +87,140 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: IotDevicesBoolExp + name: PublicIotDevicesBoolExp operand: object: - type: IotDevices + type: PublicIotDevices comparableFields: - fieldName: activationDate booleanExpressionType: DateBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: dataPlanId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: deviceType - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: imei - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: iotDeviceId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: lastActiveDate - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: monthlyDataUsageMb - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: simIccid - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: status - booleanExpressionType: VarcharBoolExp - comparableRelationships: - - relationshipName: customer - - relationshipName: plan + booleanExpressionType: CharacterVaryingBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_IotDevicesBoolExp + typeName: customer_PublicIotDevicesBoolExp --- kind: AggregateExpression version: v1 definition: - name: IotDevicesAggExp + name: PublicIotDevicesAggExp operand: object: - aggregatedType: IotDevices + aggregatedType: PublicIotDevices aggregatableFields: - fieldName: activationDate aggregateExpression: DateAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: dataPlanId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: deviceType - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: imei - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: iotDeviceId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: lastActiveDate - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: monthlyDataUsageMb - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: simIccid - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: status - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_IotDevicesAggExp + selectTypeName: customer_PublicIotDevicesAggExp --- kind: OrderByExpression version: v1 definition: - name: IotDevicesOrderByExp + name: PublicIotDevicesOrderByExp operand: object: - orderedType: IotDevices + orderedType: PublicIotDevices orderableFields: - fieldName: activationDate orderByExpression: DateOrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: dataPlanId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: deviceType - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: imei - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: iotDeviceId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: lastActiveDate orderByExpression: TimestamptzOrderByExp - fieldName: monthlyDataUsageMb - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: simIccid - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: status - orderByExpression: VarcharOrderByExp - orderableRelationships: - - relationshipName: customer - - relationshipName: plan + orderByExpression: String1OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_IotDevicesOrderByExp + expressionTypeName: customer_PublicIotDevicesOrderByExp --- kind: Model version: v2 definition: - name: IotDevices - objectType: IotDevices + name: PublicIotDevices + objectType: PublicIotDevices source: dataConnectorName: aurora - collection: iot_devices - filterExpressionType: IotDevicesBoolExp - aggregateExpression: IotDevicesAggExp - orderByExpression: IotDevicesOrderByExp + collection: public.iot_devices + filterExpressionType: PublicIotDevicesBoolExp + aggregateExpression: PublicIotDevicesAggExp + orderByExpression: PublicIotDevicesOrderByExp graphql: selectMany: - queryRootField: iotDevices + queryRootField: publicIotDevices subscription: - rootField: iotDevices + rootField: publicIotDevices selectUniques: - - queryRootField: iotDevicesByIotDeviceId + - queryRootField: publicIotDevicesByIotDeviceId uniqueIdentifier: - iotDeviceId subscription: - rootField: iotDevicesByIotDeviceId - filterInputTypeName: customer_IotDevicesFilterInput + rootField: publicIotDevicesByIotDeviceId + filterInputTypeName: customer_PublicIotDevicesFilterInput aggregate: - queryRootField: iotDevicesAggregate + queryRootField: publicIotDevicesAggregate subscription: - rootField: iotDevicesAggregate + rootField: publicIotDevicesAggregate --- kind: ModelPermissions version: v1 definition: - modelName: IotDevices + modelName: PublicIotDevices permissions: - role: admin select: @@ -235,10 +232,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: IotDevices + sourceType: PublicIotDevices target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -253,10 +250,10 @@ kind: Relationship version: v1 definition: name: plan - sourceType: IotDevices + sourceType: PublicIotDevices target: model: - name: Plans + name: PublicPlans relationshipType: Object mapping: - source: @@ -264,5 +261,4 @@ definition: - fieldName: dataPlanId target: modelField: - - fieldName: planId - + - fieldName: planId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/LoyaltyRewards.hml b/hasura/industry/telco/customer/metadata/PublicLoyaltyRewards.hml similarity index 58% rename from hasura/industry/telco/customer/metadata/LoyaltyRewards.hml rename to hasura/industry/telco/customer/metadata/PublicLoyaltyRewards.hml index 1c213a14..2ffafd4b 100644 --- a/hasura/industry/telco/customer/metadata/LoyaltyRewards.hml +++ b/hasura/industry/telco/customer/metadata/PublicLoyaltyRewards.hml @@ -2,28 +2,29 @@ kind: ObjectType version: v1 definition: - name: LoyaltyRewards + name: PublicLoyaltyRewards + description: "Object type for public.loyalty_rewards. Description: null" fields: - name: customerId - type: Int4 + type: Int32 - name: lastActivityDate type: Date - name: pointsBalance - type: Int4 + type: Int32 - name: pointsEarned - type: Int4! + type: Int32! - name: pointsRedeemed - type: Int4 + type: Int32 - name: rewardId - type: Int4! + type: Int32! - name: tier - type: Varchar + type: String_1 graphql: - typeName: customer_LoyaltyRewards - inputTypeName: customer_LoyaltyRewardsInput + typeName: customer_PublicLoyaltyRewards + inputTypeName: customer_PublicLoyaltyRewardsInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: loyalty_rewards + dataConnectorObjectType: public.loyalty_rewards fieldMapping: customerId: column: @@ -51,7 +52,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: LoyaltyRewards + typeName: PublicLoyaltyRewards permissions: - role: admin output: @@ -77,124 +78,122 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: LoyaltyRewardsBoolExp + name: PublicLoyaltyRewardsBoolExp operand: object: - type: LoyaltyRewards + type: PublicLoyaltyRewards comparableFields: - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: lastActivityDate booleanExpressionType: DateBoolExp - fieldName: pointsBalance - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: pointsEarned - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: pointsRedeemed - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: rewardId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: tier - booleanExpressionType: VarcharBoolExp - comparableRelationships: - - relationshipName: customer + booleanExpressionType: CharacterVaryingBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_LoyaltyRewardsBoolExp + typeName: customer_PublicLoyaltyRewardsBoolExp --- kind: AggregateExpression version: v1 definition: - name: LoyaltyRewardsAggExp + name: PublicLoyaltyRewardsAggExp operand: object: - aggregatedType: LoyaltyRewards + aggregatedType: PublicLoyaltyRewards aggregatableFields: - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: lastActivityDate aggregateExpression: DateAggExp - fieldName: pointsBalance - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: pointsEarned - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: pointsRedeemed - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: rewardId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: tier - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_LoyaltyRewardsAggExp + selectTypeName: customer_PublicLoyaltyRewardsAggExp --- kind: OrderByExpression version: v1 definition: - name: LoyaltyRewardsOrderByExp + name: PublicLoyaltyRewardsOrderByExp operand: object: - orderedType: LoyaltyRewards + orderedType: PublicLoyaltyRewards orderableFields: - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: lastActivityDate orderByExpression: DateOrderByExp - fieldName: pointsBalance - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: pointsEarned - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: pointsRedeemed - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: rewardId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: tier - orderByExpression: VarcharOrderByExp - orderableRelationships: - - relationshipName: customer + orderByExpression: String1OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_LoyaltyRewardsOrderByExp + expressionTypeName: customer_PublicLoyaltyRewardsOrderByExp --- kind: Model version: v2 definition: - name: LoyaltyRewards - objectType: LoyaltyRewards + name: PublicLoyaltyRewards + objectType: PublicLoyaltyRewards source: dataConnectorName: aurora - collection: loyalty_rewards - filterExpressionType: LoyaltyRewardsBoolExp - aggregateExpression: LoyaltyRewardsAggExp - orderByExpression: LoyaltyRewardsOrderByExp + collection: public.loyalty_rewards + filterExpressionType: PublicLoyaltyRewardsBoolExp + aggregateExpression: PublicLoyaltyRewardsAggExp + orderByExpression: PublicLoyaltyRewardsOrderByExp graphql: selectMany: - queryRootField: loyaltyRewards + queryRootField: publicLoyaltyRewards subscription: - rootField: loyaltyRewards + rootField: publicLoyaltyRewards selectUniques: - - queryRootField: loyaltyRewardsByRewardId + - queryRootField: publicLoyaltyRewardsByRewardId uniqueIdentifier: - rewardId subscription: - rootField: loyaltyRewardsByRewardId - filterInputTypeName: customer_LoyaltyRewardsFilterInput + rootField: publicLoyaltyRewardsByRewardId + filterInputTypeName: customer_PublicLoyaltyRewardsFilterInput aggregate: - queryRootField: loyaltyRewardsAggregate + queryRootField: publicLoyaltyRewardsAggregate subscription: - rootField: loyaltyRewardsAggregate + rootField: publicLoyaltyRewardsAggregate --- kind: ModelPermissions version: v1 definition: - modelName: LoyaltyRewards + modelName: PublicLoyaltyRewards permissions: - role: admin select: @@ -215,10 +214,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: LoyaltyRewards + sourceType: PublicLoyaltyRewards target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -226,5 +225,4 @@ definition: - fieldName: customerId target: modelField: - - fieldName: customerId - + - fieldName: customerId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/Network.hml b/hasura/industry/telco/customer/metadata/PublicNetwork.hml similarity index 52% rename from hasura/industry/telco/customer/metadata/Network.hml rename to hasura/industry/telco/customer/metadata/PublicNetwork.hml index d26d9e1e..0f8faa2c 100644 --- a/hasura/industry/telco/customer/metadata/Network.hml +++ b/hasura/industry/telco/customer/metadata/PublicNetwork.hml @@ -2,28 +2,29 @@ kind: ObjectType version: v1 definition: - name: Network + name: PublicNetwork + description: "Object type for public.network. Description: null" fields: - name: capacity - type: Int4 + type: Int32 - name: latitude - type: Numeric + type: Bigdecimal - name: longitude - type: Numeric + type: Bigdecimal - name: nodeId - type: Int4! + type: Int32! - name: nodeName - type: Varchar - - name: status - type: Varchar + type: String_1 - name: quality - type: Varchar + type: String_1 + - name: status + type: String_1 graphql: - typeName: customer_Network - inputTypeName: customer_NetworkInput + typeName: customer_PublicNetwork + inputTypeName: customer_PublicNetworkInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: network + dataConnectorObjectType: public.network fieldMapping: capacity: column: @@ -40,18 +41,18 @@ definition: nodeName: column: name: node_name - status: - column: - name: status quality: column: name: quality + status: + column: + name: status --- kind: TypePermissions version: v1 definition: - typeName: Network + typeName: PublicNetwork permissions: - role: admin output: @@ -61,130 +62,129 @@ definition: - longitude - nodeId - nodeName - - status - quality + - status --- kind: BooleanExpressionType version: v1 definition: - name: NetworkBoolExp + name: PublicNetworkBoolExp operand: object: - type: Network + type: PublicNetwork comparableFields: - fieldName: capacity - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: latitude - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: longitude - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: nodeId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: nodeName - booleanExpressionType: VarcharBoolExp - - fieldName: status - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: quality - booleanExpressionType: VarcharBoolExp - comparableRelationships: - - relationshipName: customerNetworks + booleanExpressionType: CharacterVaryingBoolExp + - fieldName: status + booleanExpressionType: CharacterVaryingBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_NetworkBoolExp + typeName: customer_PublicNetworkBoolExp --- kind: AggregateExpression version: v1 definition: - name: NetworkAggExp + name: PublicNetworkAggExp operand: object: - aggregatedType: Network + aggregatedType: PublicNetwork aggregatableFields: - fieldName: capacity - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: latitude - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: longitude - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: nodeId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: nodeName - aggregateExpression: VarcharAggExp - - fieldName: status - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: quality - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp + - fieldName: status + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_NetworkAggExp + selectTypeName: customer_PublicNetworkAggExp --- kind: OrderByExpression version: v1 definition: - name: NetworkOrderByExp + name: PublicNetworkOrderByExp operand: object: - orderedType: Network + orderedType: PublicNetwork orderableFields: - fieldName: capacity - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: latitude - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: longitude - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: nodeId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: nodeName - orderByExpression: VarcharOrderByExp - - fieldName: status - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: quality - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp + - fieldName: status + orderByExpression: String1OrderByExp orderableRelationships: [] graphql: - expressionTypeName: customer_NetworkOrderByExp + expressionTypeName: customer_PublicNetworkOrderByExp --- kind: Model version: v2 definition: - name: Network - objectType: Network + name: PublicNetwork + objectType: PublicNetwork source: dataConnectorName: aurora - collection: network - filterExpressionType: NetworkBoolExp - aggregateExpression: NetworkAggExp - orderByExpression: NetworkOrderByExp + collection: public.network + filterExpressionType: PublicNetworkBoolExp + aggregateExpression: PublicNetworkAggExp + orderByExpression: PublicNetworkOrderByExp graphql: selectMany: - queryRootField: network + queryRootField: publicNetwork subscription: - rootField: network + rootField: publicNetwork selectUniques: - - queryRootField: networkByNodeId + - queryRootField: publicNetworkByNodeId uniqueIdentifier: - nodeId subscription: - rootField: networkByNodeId - filterInputTypeName: customer_NetworkFilterInput + rootField: publicNetworkByNodeId + filterInputTypeName: customer_PublicNetworkFilterInput aggregate: - queryRootField: networkAggregate + queryRootField: publicNetworkAggregate subscription: - rootField: networkAggregate + rootField: publicNetworkAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Network + modelName: PublicNetwork permissions: - role: admin select: @@ -196,13 +196,13 @@ kind: Relationship version: v1 definition: name: customerNetworks - sourceType: Network + sourceType: PublicNetwork target: model: - name: CustomerNetwork + name: PublicCustomerNetwork relationshipType: Array aggregate: - aggregateExpression: CustomerNetworkAggExp + aggregateExpression: PublicCustomerNetworkAggExp mapping: - source: fieldPath: @@ -211,5 +211,4 @@ definition: modelField: - fieldName: nodeId graphql: - aggregateFieldName: customerNetworksAggregate - + aggregateFieldName: customerNetworksAggregate \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/NumberPortability.hml b/hasura/industry/telco/customer/metadata/PublicNumberPortability.hml similarity index 57% rename from hasura/industry/telco/customer/metadata/NumberPortability.hml rename to hasura/industry/telco/customer/metadata/PublicNumberPortability.hml index 205e0ec3..c973ff8b 100644 --- a/hasura/industry/telco/customer/metadata/NumberPortability.hml +++ b/hasura/industry/telco/customer/metadata/PublicNumberPortability.hml @@ -2,30 +2,31 @@ kind: ObjectType version: v1 definition: - name: NumberPortability + name: PublicNumberPortability + description: "Object type for public.number_portability. Description: null" fields: - name: completionDate type: Timestamptz - name: customerId - type: Int4 + type: Int32 - name: notes - type: Text + type: String_1 - name: phoneNumber - type: Varchar + type: String_1 - name: portDate type: Timestamptz - name: portabilityId - type: Int4! + type: Int32! - name: previousCarrier - type: Varchar + type: String_1 - name: status - type: Varchar + type: String_1 graphql: - typeName: customer_NumberPortability - inputTypeName: customer_NumberPortabilityInput + typeName: customer_PublicNumberPortability + inputTypeName: customer_PublicNumberPortabilityInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: number_portability + dataConnectorObjectType: public.number_portability fieldMapping: completionDate: column: @@ -56,7 +57,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: NumberPortability + typeName: PublicNumberPortability permissions: - role: admin output: @@ -82,135 +83,128 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: NumberPortabilityBoolExp + name: PublicNumberPortabilityBoolExp operand: object: - type: NumberPortability + type: PublicNumberPortability comparableFields: - fieldName: completionDate - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: notes booleanExpressionType: TextBoolExp - fieldName: phoneNumber - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: portDate - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: portabilityId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: previousCarrier - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: status - booleanExpressionType: VarcharBoolExp - comparableRelationships: - - relationshipName: customer + booleanExpressionType: CharacterVaryingBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_NumberPortabilityBoolExp + typeName: customer_PublicNumberPortabilityBoolExp --- kind: AggregateExpression version: v1 definition: - name: NumberPortabilityAggExp + name: PublicNumberPortabilityAggExp operand: object: - aggregatedType: NumberPortability + aggregatedType: PublicNumberPortability aggregatableFields: - fieldName: completionDate - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: notes aggregateExpression: TextAggExp - fieldName: phoneNumber - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: portDate - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: portabilityId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: previousCarrier - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: status - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_NumberPortabilityAggExp + selectTypeName: customer_PublicNumberPortabilityAggExp --- kind: OrderByExpression version: v1 definition: - name: NumberPortabilityOrderByExp + name: PublicNumberPortabilityOrderByExp operand: object: - orderedType: NumberPortability + orderedType: PublicNumberPortability orderableFields: - fieldName: completionDate orderByExpression: TimestamptzOrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: notes - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: phoneNumber - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: portDate orderByExpression: TimestamptzOrderByExp - fieldName: portabilityId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: previousCarrier - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: status - orderByExpression: VarcharOrderByExp - orderableRelationships: - - relationshipName: customer + orderByExpression: String1OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_NumberPortabilityOrderByExp + expressionTypeName: customer_PublicNumberPortabilityOrderByExp --- kind: Model version: v2 definition: - name: NumberPortability - objectType: NumberPortability + name: PublicNumberPortability + objectType: PublicNumberPortability source: dataConnectorName: aurora - collection: number_portability - filterExpressionType: NumberPortabilityBoolExp - aggregateExpression: NumberPortabilityAggExp - orderByExpression: NumberPortabilityOrderByExp + collection: public.number_portability + filterExpressionType: PublicNumberPortabilityBoolExp + aggregateExpression: PublicNumberPortabilityAggExp + orderByExpression: PublicNumberPortabilityOrderByExp graphql: selectMany: - queryRootField: numberPortability + queryRootField: publicNumberPortability subscription: - rootField: numberPortability + rootField: publicNumberPortability selectUniques: - - queryRootField: numberPortabilityByPhoneNumber - uniqueIdentifier: - - phoneNumber - subscription: - rootField: numberPortabilityByPhoneNumber - - queryRootField: numberPortabilityByPortabilityId + - queryRootField: publicNumberPortabilityByPortabilityId uniqueIdentifier: - portabilityId subscription: - rootField: numberPortabilityByPortabilityId - filterInputTypeName: customer_NumberPortabilityFilterInput + rootField: publicNumberPortabilityByPortabilityId + filterInputTypeName: customer_PublicNumberPortabilityFilterInput aggregate: - queryRootField: numberPortabilityAggregate + queryRootField: publicNumberPortabilityAggregate subscription: - rootField: numberPortabilityAggregate + rootField: publicNumberPortabilityAggregate --- kind: ModelPermissions version: v1 definition: - modelName: NumberPortability + modelName: PublicNumberPortability permissions: - role: admin select: @@ -231,10 +225,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: NumberPortability + sourceType: PublicNumberPortability target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -242,5 +236,4 @@ definition: - fieldName: customerId target: modelField: - - fieldName: customerId - + - fieldName: customerId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/Plans.hml b/hasura/industry/telco/customer/metadata/PublicPlans.hml similarity index 61% rename from hasura/industry/telco/customer/metadata/Plans.hml rename to hasura/industry/telco/customer/metadata/PublicPlans.hml index 9242defe..41c473aa 100644 --- a/hasura/industry/telco/customer/metadata/Plans.hml +++ b/hasura/industry/telco/customer/metadata/PublicPlans.hml @@ -2,40 +2,41 @@ kind: ObjectType version: v1 definition: - name: Plans + name: PublicPlans + description: "Object type for public.plans. Description: null" fields: - name: dataLimitGb - type: Int4 + type: Int32 - name: description - type: Text + type: String_1 - name: internationalRoaming - type: Bool + type: Boolean_1 - name: monthlyFee - type: Numeric + type: Bigdecimal - name: planId - type: Int4! + type: Int32! - name: planName - type: Varchar + type: String_1 - name: roamingCountries - type: "[Text]" + type: Json - name: roamingDataGb - type: Numeric + type: Bigdecimal - name: roamingVoiceMinutes - type: Int4 + type: Int32 - name: sfRecord - type: Varchar + type: String_1 - name: smsLimit - type: Int4 + type: Int32 - name: type - type: Text + type: String_1 - name: voiceLimitMinutes - type: Int4 + type: Int32 graphql: - typeName: customer_Plans - inputTypeName: customer_PlansInput + typeName: customer_PublicPlans + inputTypeName: customer_PublicPlansInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: plans + dataConnectorObjectType: public.plans fieldMapping: dataLimitGb: column: @@ -81,7 +82,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Plans + typeName: PublicPlans permissions: - role: admin output: @@ -117,35 +118,37 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: PlansBoolExp + name: PublicPlansBoolExp operand: object: - type: Plans + type: PublicPlans comparableFields: - fieldName: dataLimitGb - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: description booleanExpressionType: TextBoolExp - fieldName: internationalRoaming - booleanExpressionType: BoolBoolExp + booleanExpressionType: BooleanBoolExp - fieldName: monthlyFee - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: planId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: planName - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp + - fieldName: roamingCountries + booleanExpressionType: ArrayBoolExp - fieldName: roamingDataGb - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: roamingVoiceMinutes - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: sfRecord - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: smsLimit - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: type booleanExpressionType: TextBoolExp - fieldName: voiceLimitMinutes - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp comparableRelationships: - relationshipName: customerPlans - relationshipName: iotDevices @@ -154,122 +157,121 @@ definition: isNull: enable: true graphql: - typeName: customer_PlansBoolExp + typeName: customer_PublicPlansBoolExp --- kind: AggregateExpression version: v1 definition: - name: PlansAggExp + name: PublicPlansAggExp operand: object: - aggregatedType: Plans + aggregatedType: PublicPlans aggregatableFields: - fieldName: dataLimitGb - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: description aggregateExpression: TextAggExp - fieldName: internationalRoaming - aggregateExpression: BoolAggExp + aggregateExpression: BooleanAggExp - fieldName: monthlyFee - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: planId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: planName - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp + - fieldName: roamingCountries + aggregateExpression: ArrayAggExp - fieldName: roamingDataGb - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: roamingVoiceMinutes - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: sfRecord - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: smsLimit - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: type aggregateExpression: TextAggExp - fieldName: voiceLimitMinutes - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp count: enable: true graphql: - selectTypeName: customer_PlansAggExp + selectTypeName: customer_PublicPlansAggExp --- kind: OrderByExpression version: v1 definition: - name: PlansOrderByExp + name: PublicPlansOrderByExp operand: object: - orderedType: Plans + orderedType: PublicPlans orderableFields: - fieldName: dataLimitGb - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: description - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: internationalRoaming - orderByExpression: BoolOrderByExp + orderByExpression: Boolean1OrderByExp - fieldName: monthlyFee - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: planId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: planName - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp + - fieldName: roamingCountries + orderByExpression: JsonOrderByExp - fieldName: roamingDataGb - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: roamingVoiceMinutes - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: sfRecord - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: smsLimit - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: type - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: voiceLimitMinutes - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp orderableRelationships: [] graphql: - expressionTypeName: customer_PlansOrderByExp + expressionTypeName: customer_PublicPlansOrderByExp --- kind: Model version: v2 definition: - name: Plans - objectType: Plans + name: PublicPlans + objectType: PublicPlans source: dataConnectorName: aurora - collection: plans - filterExpressionType: PlansBoolExp - aggregateExpression: PlansAggExp - orderByExpression: PlansOrderByExp + collection: public.plans + filterExpressionType: PublicPlansBoolExp + aggregateExpression: PublicPlansAggExp + orderByExpression: PublicPlansOrderByExp graphql: selectMany: - queryRootField: plans + queryRootField: publicPlans subscription: - rootField: plans + rootField: publicPlans selectUniques: - - queryRootField: plansByPlanId + - queryRootField: publicPlansByPlanId uniqueIdentifier: - planId subscription: - rootField: plansByPlanId - - queryRootField: plansByPlanName - uniqueIdentifier: - - planName - subscription: - rootField: plansByPlanName - filterInputTypeName: customer_PlansFilterInput + rootField: publicPlansByPlanId + filterInputTypeName: customer_PublicPlansFilterInput aggregate: - queryRootField: plansAggregate + queryRootField: publicPlansAggregate subscription: - rootField: plansAggregate + rootField: publicPlansAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Plans + modelName: PublicPlans permissions: - role: admin select: @@ -293,13 +295,13 @@ kind: Relationship version: v1 definition: name: customerPlans - sourceType: Plans + sourceType: PublicPlans target: model: - name: CustomerPlans + name: PublicCustomerPlans relationshipType: Array aggregate: - aggregateExpression: CustomerPlansAggExp + aggregateExpression: PublicCustomerPlansAggExp mapping: - source: fieldPath: @@ -311,17 +313,18 @@ definition: aggregateFieldName: customerPlansAggregate --- + kind: Relationship version: v1 definition: name: iotDevices - sourceType: Plans + sourceType: PublicPlans target: model: - name: IotDevices + name: PublicIotDevices relationshipType: Array aggregate: - aggregateExpression: IotDevicesAggExp + aggregateExpression: PublicIotDevicesAggExp mapping: - source: fieldPath: @@ -330,5 +333,4 @@ definition: modelField: - fieldName: dataPlanId graphql: - aggregateFieldName: iotDevicesAggregate - + aggregateFieldName: iotDevicesAggregate \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/Referrals.hml b/hasura/industry/telco/customer/metadata/PublicReferrals.hml similarity index 63% rename from hasura/industry/telco/customer/metadata/Referrals.hml rename to hasura/industry/telco/customer/metadata/PublicReferrals.hml index da125026..46a2b118 100644 --- a/hasura/industry/telco/customer/metadata/Referrals.hml +++ b/hasura/industry/telco/customer/metadata/PublicReferrals.hml @@ -2,28 +2,29 @@ kind: ObjectType version: v1 definition: - name: Referrals + name: PublicReferrals + description: "Object type for public.referrals. Description: null" fields: - name: bonusAmount - type: Numeric + type: Bigdecimal - name: bonusPaid - type: Bool + type: Boolean_1 - name: referralDate type: Date! - name: referralId - type: Int4! + type: Int32! - name: referredId - type: Int4 + type: Int32 - name: referrerId - type: Int4 + type: Int32 - name: status - type: Varchar + type: String_1 graphql: - typeName: customer_Referrals - inputTypeName: customer_ReferralsInput + typeName: customer_PublicReferrals + inputTypeName: customer_PublicReferralsInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: referrals + dataConnectorObjectType: public.referrals fieldMapping: bonusAmount: column: @@ -51,7 +52,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Referrals + typeName: PublicReferrals permissions: - role: admin output: @@ -75,25 +76,25 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: ReferralsBoolExp + name: PublicReferralsBoolExp operand: object: - type: Referrals + type: PublicReferrals comparableFields: - fieldName: bonusAmount - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: bonusPaid - booleanExpressionType: BoolBoolExp + booleanExpressionType: BooleanBoolExp - fieldName: referralDate booleanExpressionType: DateBoolExp - fieldName: referralId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: referredId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: referrerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: status - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp comparableRelationships: - relationshipName: customer - relationshipName: customerByReferrerId @@ -102,99 +103,97 @@ definition: isNull: enable: true graphql: - typeName: customer_ReferralsBoolExp + typeName: customer_PublicReferralsBoolExp --- kind: AggregateExpression version: v1 definition: - name: ReferralsAggExp + name: PublicReferralsAggExp operand: object: - aggregatedType: Referrals + aggregatedType: PublicReferrals aggregatableFields: - fieldName: bonusAmount - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: bonusPaid - aggregateExpression: BoolAggExp + aggregateExpression: BooleanAggExp - fieldName: referralDate aggregateExpression: DateAggExp - fieldName: referralId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: referredId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: referrerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: status - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: customer_ReferralsAggExp + selectTypeName: customer_PublicReferralsAggExp --- kind: OrderByExpression version: v1 definition: - name: ReferralsOrderByExp + name: PublicReferralsOrderByExp operand: object: - orderedType: Referrals + orderedType: PublicReferrals orderableFields: - fieldName: bonusAmount - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: bonusPaid - orderByExpression: BoolOrderByExp + orderByExpression: Boolean1OrderByExp - fieldName: referralDate orderByExpression: DateOrderByExp - fieldName: referralId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: referredId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: referrerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: status - orderByExpression: VarcharOrderByExp - orderableRelationships: - - relationshipName: customer - - relationshipName: customerByReferrerId + orderByExpression: String1OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_ReferralsOrderByExp + expressionTypeName: customer_PublicReferralsOrderByExp --- kind: Model version: v2 definition: - name: Referrals - objectType: Referrals + name: PublicReferrals + objectType: PublicReferrals source: dataConnectorName: aurora - collection: referrals - filterExpressionType: ReferralsBoolExp - aggregateExpression: ReferralsAggExp - orderByExpression: ReferralsOrderByExp + collection: public.referrals + filterExpressionType: PublicReferralsBoolExp + aggregateExpression: PublicReferralsAggExp + orderByExpression: PublicReferralsOrderByExp graphql: selectMany: - queryRootField: referrals + queryRootField: publicReferrals subscription: - rootField: referrals + rootField: publicReferrals selectUniques: - - queryRootField: referralsByReferralId + - queryRootField: publicReferralsByReferralId uniqueIdentifier: - referralId subscription: - rootField: referralsByReferralId - filterInputTypeName: customer_ReferralsFilterInput + rootField: publicReferralsByReferralId + filterInputTypeName: customer_PublicReferralsFilterInput aggregate: - queryRootField: referralsAggregate + queryRootField: publicReferralsAggregate subscription: - rootField: referralsAggregate + rootField: publicReferralsAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Referrals + modelName: PublicReferrals permissions: - role: admin select: @@ -227,10 +226,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: Referrals + sourceType: PublicReferrals target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -245,10 +244,10 @@ kind: Relationship version: v1 definition: name: customerByReferrerId - sourceType: Referrals + sourceType: PublicReferrals target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -256,5 +255,4 @@ definition: - fieldName: referrerId target: modelField: - - fieldName: customerId - + - fieldName: customerId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/ServiceInteractions.hml b/hasura/industry/telco/customer/metadata/PublicServiceInteractions.hml similarity index 57% rename from hasura/industry/telco/customer/metadata/ServiceInteractions.hml rename to hasura/industry/telco/customer/metadata/PublicServiceInteractions.hml index 63453c50..91058646 100644 --- a/hasura/industry/telco/customer/metadata/ServiceInteractions.hml +++ b/hasura/industry/telco/customer/metadata/PublicServiceInteractions.hml @@ -2,35 +2,35 @@ kind: ObjectType version: v1 definition: - name: ServiceInteractions - description: Interactions that a customer has with a member of service staff (not support interactions) + name: PublicServiceInteractions + description: "Object type for public.service_interactions. Description: null" fields: - name: agentId - type: Int4 + type: Int32 - name: category - type: Varchar + type: String_1 - name: channel - type: Varchar + type: String_1 - name: customerId - type: Int4 + type: Int32 - name: interactionDate type: Timestamptz - name: interactionId - type: Int4! + type: Int32! - name: notes - type: Text + type: String_1 - name: resolutionStatus - type: Varchar + type: String_1 - name: resolutionTimeMinutes - type: Int4 + type: Int32 - name: satisfactionScore - type: Int4 + type: Int32 graphql: - typeName: customer_ServiceInteractions - inputTypeName: customer_ServiceInteractionsInput + typeName: customer_PublicServiceInteractions + inputTypeName: customer_PublicServiceInteractionsInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: service_interactions + dataConnectorObjectType: public.service_interactions fieldMapping: agentId: column: @@ -67,7 +67,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: ServiceInteractions + typeName: PublicServiceInteractions permissions: - role: admin output: @@ -94,142 +94,140 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: ServiceInteractionsBoolExp + name: PublicServiceInteractionsBoolExp operand: object: - type: ServiceInteractions + type: PublicServiceInteractions comparableFields: - fieldName: agentId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: category - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: channel - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: interactionDate - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: interactionId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: notes booleanExpressionType: TextBoolExp - fieldName: resolutionStatus - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: resolutionTimeMinutes - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: satisfactionScore - booleanExpressionType: Int4BoolExp - comparableRelationships: - - relationshipName: customer + booleanExpressionType: IntegerBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_ServiceInteractionsBoolExp + typeName: customer_PublicServiceInteractionsBoolExp --- kind: AggregateExpression version: v1 definition: - name: ServiceInteractionsAggExp + name: PublicServiceInteractionsAggExp operand: object: - aggregatedType: ServiceInteractions + aggregatedType: PublicServiceInteractions aggregatableFields: - fieldName: agentId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: category - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: channel - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: interactionDate - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: interactionId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: notes aggregateExpression: TextAggExp - fieldName: resolutionStatus - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: resolutionTimeMinutes - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: satisfactionScore - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp count: enable: true graphql: - selectTypeName: customer_ServiceInteractionsAggExp + selectTypeName: customer_PublicServiceInteractionsAggExp --- kind: OrderByExpression version: v1 definition: - name: ServiceInteractionsOrderByExp + name: PublicServiceInteractionsOrderByExp operand: object: - orderedType: ServiceInteractions + orderedType: PublicServiceInteractions orderableFields: - fieldName: agentId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: category - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: channel - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: interactionDate orderByExpression: TimestamptzOrderByExp - fieldName: interactionId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: notes - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: resolutionStatus - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: resolutionTimeMinutes - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: satisfactionScore - orderByExpression: Int4OrderByExp - orderableRelationships: - - relationshipName: customer + orderByExpression: Int32OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_ServiceInteractionsOrderByExp + expressionTypeName: customer_PublicServiceInteractionsOrderByExp --- kind: Model version: v2 definition: - name: ServiceInteractions - objectType: ServiceInteractions + name: PublicServiceInteractions + objectType: PublicServiceInteractions source: dataConnectorName: aurora - collection: service_interactions - filterExpressionType: ServiceInteractionsBoolExp - aggregateExpression: ServiceInteractionsAggExp - orderByExpression: ServiceInteractionsOrderByExp + collection: public.service_interactions + filterExpressionType: PublicServiceInteractionsBoolExp + aggregateExpression: PublicServiceInteractionsAggExp + orderByExpression: PublicServiceInteractionsOrderByExp graphql: selectMany: - queryRootField: serviceInteractions + queryRootField: publicServiceInteractions subscription: - rootField: serviceInteractions + rootField: publicServiceInteractions selectUniques: - - queryRootField: serviceInteractionsByInteractionId + - queryRootField: publicServiceInteractionsByInteractionId uniqueIdentifier: - interactionId subscription: - rootField: serviceInteractionsByInteractionId - filterInputTypeName: customer_ServiceInteractionsFilterInput + rootField: publicServiceInteractionsByInteractionId + filterInputTypeName: customer_PublicServiceInteractionsFilterInput aggregate: - queryRootField: serviceInteractionsAggregate + queryRootField: publicServiceInteractionsAggregate subscription: - rootField: serviceInteractionsAggregate + rootField: publicServiceInteractionsAggregate --- kind: ModelPermissions version: v1 definition: - modelName: ServiceInteractions + modelName: PublicServiceInteractions permissions: - role: admin select: @@ -250,10 +248,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: ServiceInteractions + sourceType: PublicServiceInteractions target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: diff --git a/hasura/industry/telco/customer/metadata/VoipServices.hml b/hasura/industry/telco/customer/metadata/PublicVoipServices.hml similarity index 53% rename from hasura/industry/telco/customer/metadata/VoipServices.hml rename to hasura/industry/telco/customer/metadata/PublicVoipServices.hml index 27f275e5..114e5247 100644 --- a/hasura/industry/telco/customer/metadata/VoipServices.hml +++ b/hasura/industry/telco/customer/metadata/PublicVoipServices.hml @@ -2,30 +2,31 @@ kind: ObjectType version: v1 definition: - name: VoipServices + name: PublicVoipServices + description: "Object type for public.voip_services. Description: null" fields: - name: activationDate type: Date - name: customerId - type: Int4 + type: Int32 - name: features - type: "[Text]" + type: Json - name: monthlyFee - type: Numeric + type: Bigdecimal - name: serviceNumber - type: Varchar + type: String_1 - name: serviceType - type: Varchar + type: String_1 - name: status - type: Varchar + type: String_1 - name: voipId - type: Int4! + type: Int32! graphql: - typeName: customer_VoipServices - inputTypeName: customer_VoipServicesInput + typeName: customer_PublicVoipServices + inputTypeName: customer_PublicVoipServicesInput dataConnectorTypeMapping: - dataConnectorName: aurora - dataConnectorObjectType: voip_services + dataConnectorObjectType: public.voip_services fieldMapping: activationDate: column: @@ -56,7 +57,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: VoipServices + typeName: PublicVoipServices permissions: - role: admin output: @@ -74,124 +75,128 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: VoipServicesBoolExp + name: PublicVoipServicesBoolExp operand: object: - type: VoipServices + type: PublicVoipServices comparableFields: - fieldName: activationDate booleanExpressionType: DateBoolExp - fieldName: customerId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp + - fieldName: features + booleanExpressionType: ArrayBoolExp - fieldName: monthlyFee - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp - fieldName: serviceNumber - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: serviceType - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: status - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: voipId - booleanExpressionType: Int4BoolExp - comparableRelationships: - - relationshipName: customer + booleanExpressionType: IntegerBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_VoipServicesBoolExp + typeName: customer_PublicVoipServicesBoolExp --- kind: AggregateExpression version: v1 definition: - name: VoipServicesAggExp + name: PublicVoipServicesAggExp operand: object: - aggregatedType: VoipServices + aggregatedType: PublicVoipServices aggregatableFields: - fieldName: activationDate aggregateExpression: DateAggExp - fieldName: customerId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp + - fieldName: features + aggregateExpression: ArrayAggExp - fieldName: monthlyFee - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: serviceNumber - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: serviceType - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: status - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: voipId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp count: enable: true graphql: - selectTypeName: customer_VoipServicesAggExp + selectTypeName: customer_PublicVoipServicesAggExp --- kind: OrderByExpression version: v1 definition: - name: VoipServicesOrderByExp + name: PublicVoipServicesOrderByExp operand: object: - orderedType: VoipServices + orderedType: PublicVoipServices orderableFields: - fieldName: activationDate orderByExpression: DateOrderByExp - fieldName: customerId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp + - fieldName: features + orderByExpression: JsonOrderByExp - fieldName: monthlyFee - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: serviceNumber - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: serviceType - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: status - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: voipId - orderByExpression: Int4OrderByExp - orderableRelationships: - - relationshipName: customer + orderByExpression: Int32OrderByExp + orderableRelationships: [] graphql: - expressionTypeName: customer_VoipServicesOrderByExp + expressionTypeName: customer_PublicVoipServicesOrderByExp --- kind: Model version: v2 definition: - name: VoipServices - objectType: VoipServices + name: PublicVoipServices + objectType: PublicVoipServices source: dataConnectorName: aurora - collection: voip_services - filterExpressionType: VoipServicesBoolExp - aggregateExpression: VoipServicesAggExp - orderByExpression: VoipServicesOrderByExp + collection: public.voip_services + filterExpressionType: PublicVoipServicesBoolExp + aggregateExpression: PublicVoipServicesAggExp + orderByExpression: PublicVoipServicesOrderByExp graphql: selectMany: - queryRootField: voipServices + queryRootField: publicVoipServices subscription: - rootField: voipServices + rootField: publicVoipServices selectUniques: - - queryRootField: voipServicesByVoipId + - queryRootField: publicVoipServicesByVoipId uniqueIdentifier: - voipId subscription: - rootField: voipServicesByVoipId - filterInputTypeName: customer_VoipServicesFilterInput + rootField: publicVoipServicesByVoipId + filterInputTypeName: customer_PublicVoipServicesFilterInput aggregate: - queryRootField: voipServicesAggregate + queryRootField: publicVoipServicesAggregate subscription: - rootField: voipServicesAggregate + rootField: publicVoipServicesAggregate --- kind: ModelPermissions version: v1 definition: - modelName: VoipServices + modelName: PublicVoipServices permissions: - role: admin select: @@ -203,10 +208,10 @@ kind: Relationship version: v1 definition: name: customer - sourceType: VoipServices + sourceType: PublicVoipServices target: model: - name: Customers + name: PublicCustomers relationshipType: Object mapping: - source: @@ -214,5 +219,4 @@ definition: - fieldName: customerId target: modelField: - - fieldName: customerId - + - fieldName: customerId \ No newline at end of file diff --git a/hasura/industry/telco/customer/metadata/Relationships.hml b/hasura/industry/telco/customer/metadata/Relationships.hml index c8372621..3c1dc60d 100644 --- a/hasura/industry/telco/customer/metadata/Relationships.hml +++ b/hasura/industry/telco/customer/metadata/Relationships.hml @@ -3,10 +3,10 @@ kind: Relationship version: v1 definition: name: texts - sourceType: Customers + sourceType: PublicCustomers target: model: - name: Texts + name: PublicTexts relationshipType: Array subgraph: network mapping: @@ -22,10 +22,10 @@ kind: Relationship version: v1 definition: name: calls - sourceType: Customers + sourceType: PublicCustomers target: model: - name: Calls + name: PublicCalls relationshipType: Array subgraph: network mapping: @@ -41,10 +41,10 @@ kind: Relationship version: v1 definition: name: node - sourceType: Network + sourceType: PublicNetwork target: model: - name: Equipment + name: PublicEquipment relationshipType: Object subgraph: network mapping: @@ -61,7 +61,7 @@ version: v1 definition: name: supportDB description: This relationship should be used as the predominant souce for support tickets - sourceType: Customers + sourceType: PublicCustomers target: model: name: UserProfiles @@ -99,11 +99,11 @@ kind: Relationship version: v1 definition: name: CDR - sourceType: CustomerLink + sourceType: PublicCustomerLink target: model: subgraph: network - name: Cdr + name: DefaultCdr relationshipType: Object mapping: - source: @@ -118,11 +118,11 @@ kind: Relationship version: v1 definition: name: NetworkPerformance - sourceType: CustomerLink + sourceType: PublicCustomerLink target: model: subgraph: network - name: NetworkPerformance + name: DefaultNetworkPerformance relationshipType: Object mapping: - source: @@ -137,11 +137,11 @@ kind: Relationship version: v1 definition: name: DataUsage - sourceType: CustomerLink + sourceType: PublicCustomerLink target: model: subgraph: network - name: DataUsage + name: DefaultDataUsage relationshipType: Object mapping: - source: @@ -156,7 +156,7 @@ kind: Relationship version: v1 definition: name: prefs - sourceType: CustomerLink + sourceType: PublicCustomerLink target: model: name: CustomerPreferences diff --git a/hasura/industry/telco/customer/metadata/aurora-types.hml b/hasura/industry/telco/customer/metadata/aurora-types.hml index 6404e7a0..6181988a 100644 --- a/hasura/industry/telco/customer/metadata/aurora-types.hml +++ b/hasura/industry/telco/customer/metadata/aurora-types.hml @@ -54,177 +54,173 @@ definition: kind: ScalarType version: v1 definition: - name: Int4 + name: Int32 graphql: - typeName: customer_Int4 + typeName: customer_Int32 --- kind: BooleanExpressionType version: v1 definition: - name: Int4BoolExp + name: IntegerBoolExp operand: scalar: - type: Int4 + type: Int32 comparisonOperators: - name: _eq - argumentType: Int4! + argumentType: Int32! - name: _gt - argumentType: Int4! + argumentType: Int32! - name: _gte - argumentType: Int4! + argumentType: Int32! - name: _in - argumentType: "[Int4!]!" + argumentType: "[Int32!]!" - name: _lt - argumentType: Int4! + argumentType: Int32! - name: _lte - argumentType: Int4! + argumentType: Int32! - name: _neq - argumentType: Int4! + argumentType: Int32! dataConnectorOperatorMapping: - dataConnectorName: aurora - dataConnectorScalarType: int4 + dataConnectorScalarType: integer operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_Int4BoolExp + typeName: customer_IntegerBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: aurora - dataConnectorScalarType: int4 - representation: Int4 + dataConnectorScalarType: integer + representation: Int32 graphql: - comparisonExpressionTypeName: customer_Int4ComparisonExp + comparisonExpressionTypeName: customer_Int32ComparisonExp --- kind: ScalarType version: v1 definition: - name: Varchar + name: String_1 graphql: - typeName: customer_Varchar + typeName: customer_String1 --- kind: BooleanExpressionType version: v1 definition: - name: VarcharBoolExp + name: CharacterVaryingBoolExp operand: scalar: - type: Varchar + type: String_1 comparisonOperators: - name: _eq - argumentType: Varchar! + argumentType: String_1! - name: _gt - argumentType: Varchar! + argumentType: String_1! - name: _gte - argumentType: Varchar! + argumentType: String_1! - name: _ilike - argumentType: Varchar! + argumentType: String_1! - name: _in - argumentType: "[Varchar!]!" + argumentType: "[String_1!]!" - name: _iregex - argumentType: Varchar! + argumentType: String_1! - name: _like - argumentType: Varchar! + argumentType: String_1! - name: _lt - argumentType: Varchar! + argumentType: String_1! - name: _lte - argumentType: Varchar! + argumentType: String_1! - name: _neq - argumentType: Varchar! + argumentType: String_1! - name: _nilike - argumentType: Varchar! + argumentType: String_1! - name: _niregex - argumentType: Varchar! + argumentType: String_1! - name: _nlike - argumentType: Varchar! + argumentType: String_1! - name: _nregex - argumentType: Varchar! + argumentType: String_1! - name: _regex - argumentType: Varchar! - - name: starts_with - argumentType: Varchar! - - name: ts_match_tt - argumentType: Varchar! + argumentType: String_1! dataConnectorOperatorMapping: - dataConnectorName: aurora - dataConnectorScalarType: varchar + dataConnectorScalarType: character_varying operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_VarcharBoolExp + typeName: customer_CharacterVaryingBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: aurora - dataConnectorScalarType: varchar - representation: Varchar + dataConnectorScalarType: character_varying + representation: String_1 graphql: - comparisonExpressionTypeName: customer_VarcharComparisonExp + comparisonExpressionTypeName: customer_String1ComparisonExp --- kind: ScalarType version: v1 definition: - name: Numeric + name: Bigdecimal graphql: - typeName: customer_Numeric + typeName: customer_Bigdecimal --- kind: BooleanExpressionType version: v1 definition: - name: NumericBoolExp + name: DecimalBoolExp operand: scalar: - type: Numeric + type: Bigdecimal comparisonOperators: - name: _eq - argumentType: Numeric! + argumentType: Bigdecimal! - name: _gt - argumentType: Numeric! + argumentType: Bigdecimal! - name: _gte - argumentType: Numeric! + argumentType: Bigdecimal! - name: _in - argumentType: "[Numeric!]!" + argumentType: "[Bigdecimal!]!" - name: _lt - argumentType: Numeric! + argumentType: Bigdecimal! - name: _lte - argumentType: Numeric! + argumentType: Bigdecimal! - name: _neq - argumentType: Numeric! + argumentType: Bigdecimal! dataConnectorOperatorMapping: - dataConnectorName: aurora - dataConnectorScalarType: numeric + dataConnectorScalarType: decimal operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_NumericBoolExp + typeName: customer_DecimalBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: aurora - dataConnectorScalarType: numeric - representation: Numeric + dataConnectorScalarType: decimal + representation: Bigdecimal graphql: - comparisonExpressionTypeName: customer_NumericComparisonExp + comparisonExpressionTypeName: customer_BigdecimalComparisonExp --- kind: AggregateExpression @@ -258,107 +254,89 @@ definition: kind: ScalarType version: v1 definition: - name: Int8 + name: Biginteger graphql: - typeName: customer_Int8 + typeName: customer_Biginteger --- kind: BooleanExpressionType version: v1 definition: - name: Int8BoolExp + name: BigintBoolExp operand: scalar: - type: Int8 + type: Biginteger comparisonOperators: - name: _eq - argumentType: Int8! + argumentType: Biginteger! - name: _gt - argumentType: Int8! + argumentType: Biginteger! - name: _gte - argumentType: Int8! + argumentType: Biginteger! - name: _in - argumentType: "[Int8!]!" + argumentType: "[Biginteger!]!" - name: _lt - argumentType: Int8! + argumentType: Biginteger! - name: _lte - argumentType: Int8! + argumentType: Biginteger! - name: _neq - argumentType: Int8! + argumentType: Biginteger! dataConnectorOperatorMapping: - dataConnectorName: aurora - dataConnectorScalarType: int8 + dataConnectorScalarType: bigint operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_Int8BoolExp + typeName: customer_BigintBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: aurora - dataConnectorScalarType: int8 - representation: Int8 + dataConnectorScalarType: bigint + representation: Biginteger graphql: - comparisonExpressionTypeName: customer_Int8ComparisonExp + comparisonExpressionTypeName: customer_BigintegerComparisonExp --- kind: AggregateExpression version: v1 definition: - name: Int4AggExp + name: IntegerAggExp operand: scalar: - aggregatedType: Int4 + aggregatedType: Int32 aggregationFunctions: - name: avg - returnType: Numeric - - name: bit_and - returnType: Int4 - - name: bit_or - returnType: Int4 - - name: bit_xor - returnType: Int4 + returnType: Bigdecimal - name: max - returnType: Int4 + returnType: Int32 - name: min - returnType: Int4 - - name: stddev - returnType: Numeric + returnType: Int32 - name: stddev_pop - returnType: Numeric + returnType: Int32! - name: stddev_samp - returnType: Numeric + returnType: Int32! - name: sum - returnType: Int8 + returnType: Biginteger - name: var_pop - returnType: Numeric + returnType: Int32! - name: var_samp - returnType: Numeric - - name: variance - returnType: Numeric + returnType: Int32! dataConnectorAggregationFunctionMapping: - dataConnectorName: aurora - dataConnectorScalarType: int4 + dataConnectorScalarType: integer functionMapping: avg: name: avg - bit_and: - name: bit_and - bit_or: - name: bit_or - bit_xor: - name: bit_xor max: name: max min: name: min - stddev: - name: stddev stddev_pop: name: stddev_pop stddev_samp: @@ -369,103 +347,29 @@ definition: name: var_pop var_samp: name: var_samp - variance: - name: variance count: enable: true countDistinct: enable: true graphql: - selectTypeName: customer_Int4AggExp - ---- -kind: ScalarType -version: v1 -definition: - name: Text - graphql: - typeName: customer_Text - ---- -kind: BooleanExpressionType -version: v1 -definition: - name: TextBoolExp - operand: - scalar: - type: Text - comparisonOperators: - - name: _eq - argumentType: Text! - - name: _gt - argumentType: Text! - - name: _gte - argumentType: Text! - - name: _ilike - argumentType: Text! - - name: _in - argumentType: "[Text!]!" - - name: _iregex - argumentType: Text! - - name: _like - argumentType: Text! - - name: _lt - argumentType: Text! - - name: _lte - argumentType: Text! - - name: _neq - argumentType: Text! - - name: _nilike - argumentType: Text! - - name: _niregex - argumentType: Text! - - name: _nlike - argumentType: Text! - - name: _nregex - argumentType: Text! - - name: _regex - argumentType: Text! - - name: starts_with - argumentType: Text! - - name: ts_match_tt - argumentType: Text! - dataConnectorOperatorMapping: - - dataConnectorName: aurora - dataConnectorScalarType: text - operatorMapping: {} - logicalOperators: - enable: true - isNull: - enable: true - graphql: - typeName: customer_TextBoolExp - ---- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: aurora - dataConnectorScalarType: text - representation: Text - graphql: - comparisonExpressionTypeName: customer_TextComparisonExp + selectTypeName: customer_IntegerAggExp --- kind: AggregateExpression version: v1 definition: - name: VarcharAggExp + name: CharacterVaryingAggExp operand: scalar: - aggregatedType: Varchar + aggregatedType: String_1 aggregationFunctions: - name: max - returnType: Text + returnType: String_1 - name: min - returnType: Text + returnType: String_1 dataConnectorAggregationFunctionMapping: - dataConnectorName: aurora - dataConnectorScalarType: varchar + dataConnectorScalarType: character_varying functionMapping: max: name: max @@ -476,40 +380,36 @@ definition: countDistinct: enable: true graphql: - selectTypeName: customer_VarcharAggExp + selectTypeName: customer_CharacterVaryingAggExp --- kind: AggregateExpression version: v1 definition: - name: NumericAggExp + name: DecimalAggExp operand: scalar: - aggregatedType: Numeric + aggregatedType: Bigdecimal aggregationFunctions: - name: avg - returnType: Numeric + returnType: Bigdecimal - name: max - returnType: Numeric + returnType: Bigdecimal - name: min - returnType: Numeric - - name: stddev - returnType: Numeric + returnType: Bigdecimal - name: stddev_pop - returnType: Numeric + returnType: Bigdecimal! - name: stddev_samp - returnType: Numeric + returnType: Bigdecimal! - name: sum - returnType: Numeric + returnType: Bigdecimal - name: var_pop - returnType: Numeric + returnType: Bigdecimal! - name: var_samp - returnType: Numeric - - name: variance - returnType: Numeric + returnType: Bigdecimal! dataConnectorAggregationFunctionMapping: - dataConnectorName: aurora - dataConnectorScalarType: numeric + dataConnectorScalarType: decimal functionMapping: avg: name: avg @@ -517,8 +417,6 @@ definition: name: max min: name: min - stddev: - name: stddev stddev_pop: name: stddev_pop stddev_samp: @@ -529,14 +427,12 @@ definition: name: var_pop var_samp: name: var_samp - variance: - name: variance count: enable: true countDistinct: enable: true graphql: - selectTypeName: customer_NumericAggExp + selectTypeName: customer_DecimalAggExp --- kind: OrderByExpression @@ -555,40 +451,100 @@ definition: kind: OrderByExpression version: v1 definition: - name: Int4OrderByExp + name: Int32OrderByExp operand: scalar: - orderedType: Int4 + orderedType: Int32 enableOrderByDirections: enableAll: true graphql: - expressionTypeName: customer_Int4OrderByExp + expressionTypeName: customer_Int32OrderByExp --- kind: OrderByExpression version: v1 definition: - name: VarcharOrderByExp + name: String1OrderByExp operand: scalar: - orderedType: Varchar + orderedType: String_1 enableOrderByDirections: enableAll: true graphql: - expressionTypeName: customer_VarcharOrderByExp + expressionTypeName: customer_String1OrderByExp --- kind: OrderByExpression version: v1 definition: - name: NumericOrderByExp + name: BigdecimalOrderByExp operand: scalar: - orderedType: Numeric + orderedType: Bigdecimal enableOrderByDirections: enableAll: true graphql: - expressionTypeName: customer_NumericOrderByExp + expressionTypeName: customer_BigdecimalOrderByExp + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: TextBoolExp + operand: + scalar: + type: String_1 + comparisonOperators: + - name: _eq + argumentType: String_1! + - name: _gt + argumentType: String_1! + - name: _gte + argumentType: String_1! + - name: _ilike + argumentType: String_1! + - name: _in + argumentType: "[String_1!]!" + - name: _iregex + argumentType: String_1! + - name: _like + argumentType: String_1! + - name: _lt + argumentType: String_1! + - name: _lte + argumentType: String_1! + - name: _neq + argumentType: String_1! + - name: _nilike + argumentType: String_1! + - name: _niregex + argumentType: String_1! + - name: _nlike + argumentType: String_1! + - name: _nregex + argumentType: String_1! + - name: _regex + argumentType: String_1! + dataConnectorOperatorMapping: + - dataConnectorName: aurora + dataConnectorScalarType: text + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: customer_TextBoolExp + +--- +kind: DataConnectorScalarRepresentation +version: v1 +definition: + dataConnectorName: aurora + dataConnectorScalarType: text + representation: String_1 + graphql: + comparisonExpressionTypeName: customer_String1ComparisonExp_1 --- kind: AggregateExpression @@ -597,12 +553,12 @@ definition: name: TextAggExp operand: scalar: - aggregatedType: Text + aggregatedType: String_1 aggregationFunctions: - name: max - returnType: Text + returnType: String_1 - name: min - returnType: Text + returnType: String_1 dataConnectorAggregationFunctionMapping: - dataConnectorName: aurora dataConnectorScalarType: text @@ -618,19 +574,6 @@ definition: graphql: selectTypeName: customer_TextAggExp ---- -kind: OrderByExpression -version: v1 -definition: - name: TextOrderByExp - operand: - scalar: - orderedType: Text - enableOrderByDirections: - enableAll: true - graphql: - expressionTypeName: customer_TextOrderByExp - --- kind: ScalarType version: v1 @@ -643,7 +586,7 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: TimestamptzBoolExp + name: TimestampWithTimeZoneBoolExp operand: scalar: type: Timestamptz @@ -664,21 +607,21 @@ definition: argumentType: Timestamptz! dataConnectorOperatorMapping: - dataConnectorName: aurora - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_TimestamptzBoolExp + typeName: customer_TimestampWithTimeZoneBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: aurora - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone representation: Timestamptz graphql: comparisonExpressionTypeName: customer_TimestamptzComparisonExp @@ -687,7 +630,7 @@ definition: kind: AggregateExpression version: v1 definition: - name: TimestamptzAggExp + name: TimestampWithTimeZoneAggExp operand: scalar: aggregatedType: Timestamptz @@ -698,7 +641,7 @@ definition: returnType: Timestamptz dataConnectorAggregationFunctionMapping: - dataConnectorName: aurora - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone functionMapping: max: name: max @@ -709,7 +652,7 @@ definition: countDistinct: enable: true graphql: - selectTypeName: customer_TimestamptzAggExp + selectTypeName: customer_TimestampWithTimeZoneAggExp --- kind: OrderByExpression @@ -724,14 +667,6 @@ definition: graphql: expressionTypeName: customer_TimestamptzOrderByExp ---- -kind: ScalarType -version: v1 -definition: - name: Uuid - graphql: - typeName: customer_Uuid - --- kind: BooleanExpressionType version: v1 @@ -739,22 +674,38 @@ definition: name: UuidBoolExp operand: scalar: - type: Uuid + type: String_1 comparisonOperators: - name: _eq - argumentType: Uuid! + argumentType: String_1! - name: _gt - argumentType: Uuid! + argumentType: String_1! - name: _gte - argumentType: Uuid! + argumentType: String_1! + - name: _ilike + argumentType: String_1! - name: _in - argumentType: "[Uuid!]!" + argumentType: "[String_1!]!" + - name: _iregex + argumentType: String_1! + - name: _like + argumentType: String_1! - name: _lt - argumentType: Uuid! + argumentType: String_1! - name: _lte - argumentType: Uuid! + argumentType: String_1! - name: _neq - argumentType: Uuid! + argumentType: String_1! + - name: _nilike + argumentType: String_1! + - name: _niregex + argumentType: String_1! + - name: _nlike + argumentType: String_1! + - name: _nregex + argumentType: String_1! + - name: _regex + argumentType: String_1! dataConnectorOperatorMapping: - dataConnectorName: aurora dataConnectorScalarType: uuid @@ -772,9 +723,9 @@ version: v1 definition: dataConnectorName: aurora dataConnectorScalarType: uuid - representation: Uuid + representation: String_1 graphql: - comparisonExpressionTypeName: customer_UuidComparisonExp + comparisonExpressionTypeName: customer_String1ComparisonExp_2 --- kind: AggregateExpression @@ -783,12 +734,20 @@ definition: name: UuidAggExp operand: scalar: - aggregatedType: Uuid - aggregationFunctions: [] + aggregatedType: String_1 + aggregationFunctions: + - name: max + returnType: String_1 + - name: min + returnType: String_1 dataConnectorAggregationFunctionMapping: - dataConnectorName: aurora dataConnectorScalarType: uuid - functionMapping: {} + functionMapping: + max: + name: max + min: + name: min count: enable: true countDistinct: @@ -796,113 +755,165 @@ definition: graphql: selectTypeName: customer_UuidAggExp +--- +kind: ScalarType +version: v1 +definition: + name: Json + graphql: + typeName: customer_Json + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: ArrayBoolExp + operand: + scalar: + type: Json + comparisonOperators: + - name: _eq + argumentType: Json! + - name: _in + argumentType: "[Json!]!" + - name: _neq + argumentType: Json! + dataConnectorOperatorMapping: + - dataConnectorName: aurora + dataConnectorScalarType: array + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: customer_ArrayBoolExp + +--- +kind: DataConnectorScalarRepresentation +version: v1 +definition: + dataConnectorName: aurora + dataConnectorScalarType: array + representation: Json + graphql: + comparisonExpressionTypeName: customer_JsonComparisonExp + +--- +kind: AggregateExpression +version: v1 +definition: + name: ArrayAggExp + operand: + scalar: + aggregatedType: Json + aggregationFunctions: [] + dataConnectorAggregationFunctionMapping: + - dataConnectorName: aurora + dataConnectorScalarType: array + functionMapping: {} + count: + enable: true + countDistinct: + enable: true + graphql: + selectTypeName: customer_ArrayAggExp + --- kind: OrderByExpression version: v1 definition: - name: UuidOrderByExp + name: JsonOrderByExp operand: scalar: - orderedType: Uuid + orderedType: Json enableOrderByDirections: enableAll: true graphql: - expressionTypeName: customer_UuidOrderByExp + expressionTypeName: customer_JsonOrderByExp --- kind: ScalarType version: v1 definition: - name: Bool + name: Boolean_1 graphql: - typeName: customer_Bool + typeName: customer_Boolean1 --- kind: BooleanExpressionType version: v1 definition: - name: BoolBoolExp + name: BooleanBoolExp operand: scalar: - type: Bool + type: Boolean_1 comparisonOperators: - name: _eq - argumentType: Bool! - - name: _gt - argumentType: Bool! - - name: _gte - argumentType: Bool! + argumentType: Boolean_1! - name: _in - argumentType: "[Bool!]!" - - name: _lt - argumentType: Bool! - - name: _lte - argumentType: Bool! + argumentType: "[Boolean_1!]!" - name: _neq - argumentType: Bool! + argumentType: Boolean_1! dataConnectorOperatorMapping: - dataConnectorName: aurora - dataConnectorScalarType: bool + dataConnectorScalarType: boolean operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: customer_BoolBoolExp + typeName: customer_BooleanBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: aurora - dataConnectorScalarType: bool - representation: Bool + dataConnectorScalarType: boolean + representation: Boolean_1 graphql: - comparisonExpressionTypeName: customer_BoolComparisonExp + comparisonExpressionTypeName: customer_Boolean1ComparisonExp --- kind: AggregateExpression version: v1 definition: - name: BoolAggExp + name: BooleanAggExp operand: scalar: - aggregatedType: Bool + aggregatedType: Boolean_1 aggregationFunctions: - - name: bool_and - returnType: Bool - - name: bool_or - returnType: Bool - - name: every - returnType: Bool + - name: max + returnType: Boolean_1 + - name: min + returnType: Boolean_1 dataConnectorAggregationFunctionMapping: - dataConnectorName: aurora - dataConnectorScalarType: bool + dataConnectorScalarType: boolean functionMapping: - bool_and: - name: bool_and - bool_or: - name: bool_or - every: - name: every + max: + name: max + min: + name: min count: enable: true countDistinct: enable: true graphql: - selectTypeName: customer_BoolAggExp + selectTypeName: customer_BooleanAggExp --- kind: OrderByExpression version: v1 definition: - name: BoolOrderByExp + name: Boolean1OrderByExp operand: scalar: - orderedType: Bool + orderedType: Boolean_1 enableOrderByDirections: enableAll: true graphql: - expressionTypeName: customer_BoolOrderByExp + expressionTypeName: customer_Boolean1OrderByExp diff --git a/hasura/industry/telco/customer/metadata/aurora.hml b/hasura/industry/telco/customer/metadata/aurora.hml index c399d5df..962c92a7 100644 --- a/hasura/industry/telco/customer/metadata/aurora.hml +++ b/hasura/industry/telco/customer/metadata/aurora.hml @@ -12,9497 +12,8721 @@ definition: Authorization: valueFromEnv: CUSTOMER_AURORA_AUTHORIZATION_HEADER schema: - version: v0.1 + version: v0.2 schema: - scalar_types: - bool: - representation: - type: boolean - aggregate_functions: - bool_and: - result_type: + collections: + - arguments: {} + name: public.billing + type: public.billing + uniqueness_constraints: + primary_key: + unique_columns: + - billing_id + - arguments: {} + name: public.campaigns + type: public.campaigns + uniqueness_constraints: + primary_key: + unique_columns: + - campaign_id + - arguments: {} + name: public.credit_cards + type: public.credit_cards + uniqueness_constraints: + primary_key: + unique_columns: + - credit_card_id + - arguments: {} + name: public.customer_link + type: public.customer_link + uniqueness_constraints: + primary_key: + unique_columns: + - id + - arguments: {} + name: public.customer_network + type: public.customer_network + uniqueness_constraints: + primary_key: + unique_columns: + - customer_id + - node_id + - arguments: {} + name: public.customer_plan_devices + type: public.customer_plan_devices + uniqueness_constraints: + primary_key: + unique_columns: + - customer_plan_id + - device_id + - arguments: {} + name: public.customer_plans + type: public.customer_plans + uniqueness_constraints: + primary_key: + unique_columns: + - customer_plan_id + - arguments: {} + name: public.customers + type: public.customers + uniqueness_constraints: + primary_key: + unique_columns: + - customer_id + - arguments: {} + name: public.deals + type: public.deals + uniqueness_constraints: + primary_key: + unique_columns: + - deal_id + - arguments: {} + name: public.device_upgrades + type: public.device_upgrades + uniqueness_constraints: + primary_key: + unique_columns: + - upgrade_id + - arguments: {} + name: public.devices + type: public.devices + uniqueness_constraints: + primary_key: + unique_columns: + - device_id + - arguments: {} + name: public.family_plan_members + type: public.family_plan_members + uniqueness_constraints: + primary_key: + unique_columns: + - family_plan_id + - customer_id + - arguments: {} + name: public.family_plans + type: public.family_plans + uniqueness_constraints: + primary_key: + unique_columns: + - family_plan_id + - arguments: {} + name: public.feedback + type: public.feedback + uniqueness_constraints: + primary_key: + unique_columns: + - feedback_id + - arguments: {} + name: public.interactions + type: public.interactions + uniqueness_constraints: + primary_key: + unique_columns: + - interaction_id + - arguments: {} + name: public.iot_devices + type: public.iot_devices + uniqueness_constraints: + primary_key: + unique_columns: + - iot_device_id + - arguments: {} + name: public.loyalty_rewards + type: public.loyalty_rewards + uniqueness_constraints: + primary_key: + unique_columns: + - reward_id + - arguments: {} + name: public.network + type: public.network + uniqueness_constraints: + primary_key: + unique_columns: + - node_id + - arguments: {} + name: public.number_portability + type: public.number_portability + uniqueness_constraints: + primary_key: + unique_columns: + - portability_id + - arguments: {} + name: public.plans + type: public.plans + uniqueness_constraints: + primary_key: + unique_columns: + - plan_id + - arguments: {} + name: public.referrals + type: public.referrals + uniqueness_constraints: + primary_key: + unique_columns: + - referral_id + - arguments: {} + name: public.service_interactions + type: public.service_interactions + uniqueness_constraints: + primary_key: + unique_columns: + - interaction_id + - arguments: {} + name: public.voip_services + type: public.voip_services + uniqueness_constraints: + primary_key: + unique_columns: + - voip_id + functions: [] + object_types: + array_set_input: + description: Wrapper for setting scalar array + fields: + value: + arguments: {} + description: New value for scalar array + type: type: nullable underlying_type: - name: bool + name: array type: named - bool_or: - result_type: + foreign_keys: {} + bigint_set_input: + description: Wrapper for setting scalar bigint + fields: + value: + arguments: {} + description: New value for scalar bigint + type: type: nullable underlying_type: - name: bool + name: bigint type: named - every: - result_type: + foreign_keys: {} + boolean_set_input: + description: Wrapper for setting scalar boolean + fields: + value: + arguments: {} + description: New value for scalar boolean + type: type: nullable underlying_type: - name: bool + name: boolean type: named - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - name: bool - type: named - _gte: - type: custom - argument_type: - name: bool - type: named - _in: - type: in - _lt: - type: custom - argument_type: - name: bool - type: named - _lte: - type: custom - argument_type: - name: bool - type: named - _neq: - type: custom - argument_type: - name: bool - type: named - date: - representation: - type: date - aggregate_functions: - max: - result_type: + foreign_keys: {} + character_varying_set_input: + description: Wrapper for setting scalar character_varying + fields: + value: + arguments: {} + description: New value for scalar character_varying + type: type: nullable underlying_type: - name: date + name: character_varying type: named - min: - result_type: + foreign_keys: {} + date_set_input: + description: Wrapper for setting scalar date + fields: + value: + arguments: {} + description: New value for scalar date + type: type: nullable underlying_type: name: date type: named - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - name: date - type: named - _gte: - type: custom - argument_type: - name: date - type: named - _in: - type: in - _lt: - type: custom - argument_type: - name: date - type: named - _lte: - type: custom - argument_type: - name: date - type: named - _neq: - type: custom - argument_type: - name: date - type: named - int4: - representation: - type: int32 - aggregate_functions: - avg: - result_type: + foreign_keys: {} + decimal_set_input: + description: Wrapper for setting scalar decimal + fields: + value: + arguments: {} + description: New value for scalar decimal + type: type: nullable underlying_type: - name: numeric + name: decimal type: named - bit_and: - result_type: - type: nullable - underlying_type: - name: int4 + foreign_keys: {} + delete_public.billing_result: + description: delete from public.billing result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.billing type: named - bit_or: - result_type: - type: nullable - underlying_type: - name: int4 + type: array + foreign_keys: {} + delete_public.campaigns_result: + description: delete from public.campaigns result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.campaigns type: named - bit_xor: - result_type: - type: nullable - underlying_type: - name: int4 + type: array + foreign_keys: {} + delete_public.credit_cards_result: + description: delete from public.credit_cards result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.credit_cards type: named - max: - result_type: - type: nullable - underlying_type: - name: int4 + type: array + foreign_keys: {} + delete_public.customer_link_result: + description: delete from public.customer_link result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.customer_link type: named - min: - result_type: - type: nullable - underlying_type: - name: int4 + type: array + foreign_keys: {} + delete_public.customer_network_result: + description: delete from public.customer_network result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.customer_network type: named - stddev: - result_type: - type: nullable - underlying_type: - name: numeric + type: array + foreign_keys: {} + delete_public.customer_plan_devices_result: + description: delete from public.customer_plan_devices result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.customer_plan_devices type: named - stddev_pop: - result_type: - type: nullable - underlying_type: - name: numeric + type: array + foreign_keys: {} + delete_public.customer_plans_result: + description: delete from public.customer_plans result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.customer_plans type: named - stddev_samp: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - sum: - result_type: - type: nullable - underlying_type: - name: int8 - type: named - var_pop: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - var_samp: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - variance: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - name: int4 - type: named - _gte: - type: custom - argument_type: - name: int4 - type: named - _in: - type: in - _lt: - type: custom - argument_type: - name: int4 - type: named - _lte: - type: custom - argument_type: - name: int4 - type: named - _neq: - type: custom - argument_type: - name: int4 - type: named - int8: - representation: - type: int64 - aggregate_functions: - avg: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - bit_and: - result_type: - type: nullable - underlying_type: - name: int8 - type: named - bit_or: - result_type: - type: nullable - underlying_type: - name: int8 - type: named - bit_xor: - result_type: - type: nullable - underlying_type: - name: int8 - type: named - max: - result_type: - type: nullable - underlying_type: - name: int8 - type: named - min: - result_type: - type: nullable - underlying_type: - name: int8 - type: named - stddev: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - stddev_pop: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - stddev_samp: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - sum: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - var_pop: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - var_samp: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - variance: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - name: int8 - type: named - _gte: - type: custom - argument_type: - name: int8 - type: named - _in: - type: in - _lt: - type: custom - argument_type: - name: int8 - type: named - _lte: - type: custom - argument_type: - name: int8 - type: named - _neq: - type: custom - argument_type: - name: int8 - type: named - numeric: - representation: - type: bigdecimal - aggregate_functions: - avg: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - max: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - min: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - stddev: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - stddev_pop: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - stddev_samp: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - sum: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - var_pop: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - var_samp: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - variance: - result_type: - type: nullable - underlying_type: - name: numeric - type: named - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - name: numeric - type: named - _gte: - type: custom - argument_type: - name: numeric - type: named - _in: - type: in - _lt: - type: custom - argument_type: - name: numeric - type: named - _lte: - type: custom - argument_type: - name: numeric - type: named - _neq: - type: custom - argument_type: - name: numeric - type: named - text: - representation: - type: string - aggregate_functions: - max: - result_type: - type: nullable - underlying_type: - name: text - type: named - min: - result_type: - type: nullable - underlying_type: - name: text - type: named - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - name: text - type: named - _gte: - type: custom - argument_type: - name: text - type: named - _ilike: - type: custom - argument_type: - name: text - type: named - _in: - type: in - _iregex: - type: custom - argument_type: - name: text - type: named - _like: - type: custom - argument_type: - name: text - type: named - _lt: - type: custom - argument_type: - name: text - type: named - _lte: - type: custom - argument_type: - name: text - type: named - _neq: - type: custom - argument_type: - name: text - type: named - _nilike: - type: custom - argument_type: - name: text - type: named - _niregex: - type: custom - argument_type: - name: text - type: named - _nlike: - type: custom - argument_type: - name: text - type: named - _nregex: - type: custom - argument_type: - name: text - type: named - _regex: - type: custom - argument_type: - name: text - type: named - starts_with: - type: custom - argument_type: - name: text - type: named - ts_match_tt: - type: custom - argument_type: - name: text - type: named - timestamptz: - representation: - type: timestamptz - aggregate_functions: - max: - result_type: - type: nullable - underlying_type: - name: timestamptz - type: named - min: - result_type: - type: nullable - underlying_type: - name: timestamptz - type: named - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - name: timestamptz - type: named - _gte: - type: custom - argument_type: - name: timestamptz - type: named - _in: - type: in - _lt: - type: custom - argument_type: - name: timestamptz - type: named - _lte: - type: custom - argument_type: - name: timestamptz - type: named - _neq: - type: custom - argument_type: - name: timestamptz - type: named - uuid: - representation: - type: uuid - aggregate_functions: {} - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - name: uuid - type: named - _gte: - type: custom - argument_type: - name: uuid - type: named - _in: - type: in - _lt: - type: custom - argument_type: - name: uuid - type: named - _lte: - type: custom - argument_type: - name: uuid - type: named - _neq: - type: custom - argument_type: - name: uuid - type: named - varchar: - representation: - type: string - aggregate_functions: - max: - result_type: - type: nullable - underlying_type: - name: text - type: named - min: - result_type: - type: nullable - underlying_type: - name: text - type: named - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - name: varchar - type: named - _gte: - type: custom - argument_type: - name: varchar - type: named - _ilike: - type: custom - argument_type: - name: varchar - type: named - _in: - type: in - _iregex: - type: custom - argument_type: - name: varchar - type: named - _like: - type: custom - argument_type: - name: varchar - type: named - _lt: - type: custom - argument_type: - name: varchar - type: named - _lte: - type: custom - argument_type: - name: varchar - type: named - _neq: - type: custom - argument_type: - name: varchar - type: named - _nilike: - type: custom - argument_type: - name: varchar - type: named - _niregex: - type: custom - argument_type: - name: varchar - type: named - _nlike: - type: custom - argument_type: - name: varchar - type: named - _nregex: - type: custom - argument_type: - name: varchar - type: named - _regex: - type: custom - argument_type: - name: varchar - type: named - starts_with: - type: custom - argument_type: - name: varchar - type: named - ts_match_tt: - type: custom - argument_type: - name: varchar - type: named - object_types: - billing: - fields: - billing_date: - type: - type: nullable - underlying_type: - name: date - type: named - billing_id: - type: - name: int4 - type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - payment_status: - type: - type: nullable - underlying_type: - name: varchar - type: named - total_amount: - type: - type: nullable - underlying_type: - name: numeric - type: named - campaigns: - fields: - actual_conversions: - type: - type: nullable - underlying_type: - name: int4 - type: named - budget: - type: - type: nullable - underlying_type: - name: numeric - type: named - campaign_id: - type: - name: int4 - type: named - campaign_name: - type: - name: varchar - type: named - channel: - type: - type: nullable - underlying_type: - name: varchar - type: named - conversion_goal: - type: - type: nullable - underlying_type: - name: int4 - type: named - end_date: - type: - type: nullable - underlying_type: - name: date - type: named - offer_details: - type: - type: nullable - underlying_type: - name: text - type: named - start_date: - type: - name: date - type: named - target_segment: - type: - type: nullable - underlying_type: - name: varchar - type: named - credit_cards: - fields: - created_at: - type: - name: timestamptz - type: named - credit_card_id: - type: - name: int4 - type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - cvv: - type: - name: int4 - type: named - expiry: - type: - name: date - type: named - number: - type: - name: text - type: named - updated_at: - type: - name: timestamptz - type: named - customer_link: - fields: - customer_guid: - type: - name: uuid - type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - id: - type: - name: int4 - type: named - customer_network: - fields: - customer_id: - type: - name: int4 - type: named - node_id: - type: - name: int4 - type: named - customer_plan_devices: - fields: - customer_plan_id: - type: - name: int4 - type: named - device_id: - type: - name: int4 - type: named - device_imei: - type: - type: nullable - underlying_type: - name: varchar - type: named - sim_iccid: - type: - type: nullable - underlying_type: - name: varchar - type: named - customer_plans: - fields: - cell_number: - type: - type: nullable - underlying_type: - name: varchar - type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - customer_plan_id: - type: - name: int4 - type: named - data_allocation_gb: - type: - type: nullable - underlying_type: - name: int4 - type: named - data_used_gb: - type: - type: nullable - underlying_type: - name: numeric - type: named - end_date: - type: - type: nullable - underlying_type: - name: date - type: named - plan_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - rollover_data_gb: - type: - type: nullable - underlying_type: - name: numeric - type: named - start_date: - type: - type: nullable - underlying_type: - name: date - type: named - status: - type: - type: nullable - underlying_type: - name: varchar - type: named - customers: - fields: - address: - type: - type: nullable - underlying_type: - name: varchar - type: named - auth_user_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - churn_risk: - type: - type: nullable - underlying_type: - name: numeric - type: named - churn_risk_factors: - type: - type: nullable - underlying_type: - element_type: - type: nullable - underlying_type: - name: text - type: named - type: array - city: - type: - type: nullable - underlying_type: - name: varchar - type: named - country: - type: - type: nullable - underlying_type: - name: varchar - type: named - customer_id: - type: - name: int4 - type: named - dob: - type: - type: nullable - underlying_type: - name: date - type: named - email: - type: - type: nullable - underlying_type: - name: varchar - type: named - first_name: - type: - type: nullable - underlying_type: - name: varchar - type: named - image: - type: - type: nullable - underlying_type: - name: varchar - type: named - last_name: - type: - type: nullable - underlying_type: - name: varchar - type: named - last_survey_date: - type: - type: nullable - underlying_type: - name: date - type: named - phone_number: - type: - type: nullable - underlying_type: - name: varchar - type: named - postcode: - type: - type: nullable - underlying_type: - name: varchar - type: named - satisfaction_score: - type: - type: nullable - underlying_type: - name: int4 - type: named - segment: - type: - type: nullable - underlying_type: - name: varchar - type: named - state: - type: - type: nullable - underlying_type: - name: varchar - type: named - deals: - fields: - additional_benefits: - type: - type: nullable - underlying_type: - name: text - type: named - customer_segment: - type: - type: nullable - underlying_type: - name: varchar - type: named - deal_id: - type: - name: int4 - type: named - deal_name: - type: - type: nullable - underlying_type: - name: varchar - type: named - description: - type: - type: nullable - underlying_type: - name: text - type: named - end_date: - type: - type: nullable - underlying_type: - name: date - type: named - max_monthly_spend: - type: - type: nullable - underlying_type: - name: numeric - type: named - min_monthly_spend: - type: - type: nullable - underlying_type: - name: numeric - type: named - start_date: - type: - type: nullable - underlying_type: - name: date - type: named - terms_conditions: - type: - type: nullable - underlying_type: - name: text - type: named - delete_billing_by_billing_id_response: - description: Responses from the 'delete_billing_by_billing_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: billing - type: named - type: array - delete_campaigns_by_campaign_id_response: - description: Responses from the 'delete_campaigns_by_campaign_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: campaigns - type: named - type: array - delete_credit_cards_by_credit_card_id_response: - description: Responses from the 'delete_credit_cards_by_credit_card_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: credit_cards - type: named - type: array - delete_customer_link_by_customer_id_response: - description: Responses from the 'delete_customer_link_by_customer_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: customer_link - type: named - type: array - delete_customer_link_by_id_response: - description: Responses from the 'delete_customer_link_by_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: customer_link - type: named - type: array - delete_customer_network_by_customer_id_and_node_id_response: - description: Responses from the 'delete_customer_network_by_customer_id_and_node_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: customer_network - type: named - type: array - delete_customer_plan_devices_by_customer_plan_id_and_device_id_response: - description: Responses from the 'delete_customer_plan_devices_by_customer_plan_id_and_device_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: customer_plan_devices - type: named - type: array - delete_customer_plans_by_customer_plan_id_response: - description: Responses from the 'delete_customer_plans_by_customer_plan_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: customer_plans - type: named - type: array - delete_customers_by_customer_id_response: - description: Responses from the 'delete_customers_by_customer_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: customers - type: named - type: array - delete_customers_by_phone_number_response: - description: Responses from the 'delete_customers_by_phone_number' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: customers - type: named - type: array - delete_deals_by_deal_id_response: - description: Responses from the 'delete_deals_by_deal_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: deals - type: named - type: array - delete_device_upgrades_by_upgrade_id_response: - description: Responses from the 'delete_device_upgrades_by_upgrade_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: device_upgrades - type: named - type: array - delete_devices_by_device_id_response: - description: Responses from the 'delete_devices_by_device_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: devices - type: named - type: array - delete_family_plan_members_by_customer_id_and_family_plan_id_response: - description: Responses from the 'delete_family_plan_members_by_customer_id_and_family_plan_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: family_plan_members - type: named - type: array - delete_family_plans_by_family_plan_id_response: - description: Responses from the 'delete_family_plans_by_family_plan_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: family_plans - type: named - type: array - delete_feedback_by_feedback_id_response: - description: Responses from the 'delete_feedback_by_feedback_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: feedback - type: named - type: array - delete_interactions_by_interaction_id_response: - description: Responses from the 'delete_interactions_by_interaction_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: interactions - type: named - type: array - delete_iot_devices_by_iot_device_id_response: - description: Responses from the 'delete_iot_devices_by_iot_device_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: iot_devices - type: named - type: array - delete_loyalty_rewards_by_reward_id_response: - description: Responses from the 'delete_loyalty_rewards_by_reward_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: loyalty_rewards - type: named - type: array - delete_network_by_node_id_response: - description: Responses from the 'delete_network_by_node_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: network - type: named - type: array - delete_number_portability_by_phone_number_response: - description: Responses from the 'delete_number_portability_by_phone_number' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: number_portability - type: named - type: array - delete_number_portability_by_portability_id_response: - description: Responses from the 'delete_number_portability_by_portability_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: number_portability - type: named - type: array - delete_plans_by_plan_id_response: - description: Responses from the 'delete_plans_by_plan_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: plans - type: named - type: array - delete_plans_by_plan_name_response: - description: Responses from the 'delete_plans_by_plan_name' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: plans - type: named - type: array - delete_referrals_by_referral_id_response: - description: Responses from the 'delete_referrals_by_referral_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: referrals - type: named - type: array - delete_service_interactions_by_interaction_id_response: - description: Responses from the 'delete_service_interactions_by_interaction_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: service_interactions - type: named - type: array - delete_voip_services_by_voip_id_response: - description: Responses from the 'delete_voip_services_by_voip_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: voip_services - type: named - type: array - device_upgrades: - fields: - contract_extension_months: - type: - type: nullable - underlying_type: - name: int4 - type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - new_device_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - old_device_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - promotion_applied: - type: - type: nullable - underlying_type: - name: varchar - type: named - trade_in_value: - type: - type: nullable - underlying_type: - name: numeric - type: named - upgrade_date: - type: - name: date - type: named - upgrade_id: - type: - name: int4 - type: named - devices: - fields: - brand: - type: - name: varchar - type: named - created_at: - type: - name: timestamptz - type: named - device_id: - type: - name: int4 - type: named - image: - type: - type: nullable - underlying_type: - name: varchar - type: named - model: - type: - name: varchar - type: named - sf_record: - type: - type: nullable - underlying_type: - name: varchar - type: named - updated_at: - type: - name: timestamptz - type: named - family_plan_members: - fields: - customer_id: - type: - name: int4 - type: named - data_allocation_percentage: - type: - type: nullable - underlying_type: - name: int4 - type: named - family_plan_id: - type: - name: int4 - type: named - role: - type: - type: nullable - underlying_type: - name: varchar - type: named - family_plans: - fields: - created_at: - type: - type: nullable - underlying_type: - name: timestamptz - type: named - family_plan_id: - type: - name: int4 - type: named - max_members: - type: - type: nullable - underlying_type: - name: int4 - type: named - monthly_fee: - type: - type: nullable - underlying_type: - name: numeric - type: named - plan_name: - type: - type: nullable - underlying_type: - name: varchar - type: named - primary_customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - shared_data_gb: - type: - type: nullable - underlying_type: - name: int4 - type: named - feedback: - fields: - category: - type: - type: nullable - underlying_type: - name: varchar - type: named - comments: - type: - type: nullable - underlying_type: - name: text - type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - feedback_date: - type: - type: nullable - underlying_type: - name: timestamptz - type: named - feedback_id: - type: - name: int4 - type: named - followup_date: - type: - type: nullable - underlying_type: - name: timestamptz - type: named - followup_notes: - type: - type: nullable - underlying_type: - name: text - type: named - rating: - type: - type: nullable - underlying_type: - name: int4 - type: named - requires_followup: - type: - type: nullable - underlying_type: - name: bool - type: named - insert_billing_object: - fields: - billing_date: - type: - type: nullable - underlying_type: - name: date - type: named - billing_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - payment_status: - type: - type: nullable - underlying_type: - name: varchar - type: named - total_amount: - type: - type: nullable - underlying_type: - name: numeric - type: named - insert_billing_response: - description: Responses from the 'insert_billing' procedure + type: array + foreign_keys: {} + delete_public.customers_result: + description: delete from public.customers result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by delete type: element_type: - name: billing + name: public.customers type: named type: array - insert_campaigns_object: + foreign_keys: {} + delete_public.deals_result: + description: delete from public.deals result fields: - actual_conversions: - type: - type: nullable - underlying_type: - name: int4 - type: named - budget: - type: - type: nullable - underlying_type: - name: numeric - type: named - campaign_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - campaign_name: - type: - name: varchar - type: named - channel: - type: - type: nullable - underlying_type: - name: varchar - type: named - conversion_goal: - type: - type: nullable - underlying_type: - name: int4 - type: named - end_date: - type: - type: nullable - underlying_type: - name: date - type: named - offer_details: - type: - type: nullable - underlying_type: - name: text - type: named - start_date: + affected_rows: + arguments: {} + description: Number of affected rows type: - name: date + name: int type: named - target_segment: + returning: + arguments: {} + description: Objects that were affected by delete type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.deals type: named - insert_campaigns_response: - description: Responses from the 'insert_campaigns' procedure + type: array + foreign_keys: {} + delete_public.device_upgrades_result: + description: delete from public.device_upgrades result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by delete type: element_type: - name: campaigns + name: public.device_upgrades type: named type: array - insert_credit_cards_object: + foreign_keys: {} + delete_public.devices_result: + description: delete from public.devices result fields: - created_at: - type: - type: nullable - underlying_type: - name: timestamptz - type: named - credit_card_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - cvv: - type: - name: int4 - type: named - expiry: - type: - name: date - type: named - number: + affected_rows: + arguments: {} + description: Number of affected rows type: - name: text + name: int type: named - updated_at: + returning: + arguments: {} + description: Objects that were affected by delete type: - type: nullable - underlying_type: - name: timestamptz + element_type: + name: public.devices type: named - insert_credit_cards_response: - description: Responses from the 'insert_credit_cards' procedure + type: array + foreign_keys: {} + delete_public.family_plan_members_result: + description: delete from public.family_plan_members result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by delete type: element_type: - name: credit_cards + name: public.family_plan_members type: named type: array - insert_customer_link_object: + foreign_keys: {} + delete_public.family_plans_result: + description: delete from public.family_plans result fields: - customer_guid: + affected_rows: + arguments: {} + description: Number of affected rows type: - name: uuid + name: int type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - id: + returning: + arguments: {} + description: Objects that were affected by delete type: - type: nullable - underlying_type: - name: int4 + element_type: + name: public.family_plans type: named - insert_customer_link_response: - description: Responses from the 'insert_customer_link' procedure + type: array + foreign_keys: {} + delete_public.feedback_result: + description: delete from public.feedback result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by delete type: element_type: - name: customer_link + name: public.feedback type: named type: array - insert_customer_network_object: - fields: - customer_id: - type: - name: int4 - type: named - node_id: - type: - name: int4 - type: named - insert_customer_network_response: - description: Responses from the 'insert_customer_network' procedure + foreign_keys: {} + delete_public.interactions_result: + description: delete from public.interactions result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by delete type: element_type: - name: customer_network + name: public.interactions type: named type: array - insert_customer_plan_devices_object: + foreign_keys: {} + delete_public.iot_devices_result: + description: delete from public.iot_devices result fields: - customer_plan_id: - type: - name: int4 - type: named - device_id: + affected_rows: + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named - device_imei: - type: - type: nullable - underlying_type: - name: varchar - type: named - sim_iccid: + returning: + arguments: {} + description: Objects that were affected by delete type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.iot_devices type: named - insert_customer_plan_devices_response: - description: Responses from the 'insert_customer_plan_devices' procedure + type: array + foreign_keys: {} + delete_public.loyalty_rewards_result: + description: delete from public.loyalty_rewards result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by delete type: element_type: - name: customer_plan_devices + name: public.loyalty_rewards type: named type: array - insert_customer_plans_object: + foreign_keys: {} + delete_public.network_result: + description: delete from public.network result fields: - cell_number: - type: - type: nullable - underlying_type: - name: varchar - type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - customer_plan_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - data_allocation_gb: - type: - type: nullable - underlying_type: - name: int4 - type: named - data_used_gb: - type: - type: nullable - underlying_type: - name: numeric - type: named - end_date: - type: - type: nullable - underlying_type: - name: date - type: named - plan_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - rollover_data_gb: - type: - type: nullable - underlying_type: - name: numeric - type: named - start_date: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: date - type: named - status: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.network type: named - insert_customer_plans_response: - description: Responses from the 'insert_customer_plans' procedure + type: array + foreign_keys: {} + delete_public.number_portability_result: + description: delete from public.number_portability result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by delete type: element_type: - name: customer_plans + name: public.number_portability type: named type: array - insert_customers_object: + foreign_keys: {} + delete_public.plans_result: + description: delete from public.plans result fields: - address: - type: - type: nullable - underlying_type: - name: varchar - type: named - auth_user_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - churn_risk: - type: - type: nullable - underlying_type: - name: numeric - type: named - churn_risk_factors: - type: - type: nullable - underlying_type: - element_type: - type: nullable - underlying_type: - name: text - type: named - type: array - city: - type: - type: nullable - underlying_type: - name: varchar - type: named - country: - type: - type: nullable - underlying_type: - name: varchar - type: named - customer_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - dob: - type: - type: nullable - underlying_type: - name: date - type: named - email: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: varchar - type: named - first_name: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.plans type: named - image: + type: array + foreign_keys: {} + delete_public.referrals_result: + description: delete from public.referrals result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: varchar - type: named - last_name: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.referrals type: named - last_survey_date: + type: array + foreign_keys: {} + delete_public.service_interactions_result: + description: delete from public.service_interactions result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: date - type: named - phone_number: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.service_interactions type: named - postcode: + type: array + foreign_keys: {} + delete_public.voip_services_result: + description: delete from public.voip_services result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: varchar - type: named - satisfaction_score: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete type: - type: nullable - underlying_type: - name: int4 + element_type: + name: public.voip_services type: named - segment: + type: array + foreign_keys: {} + insert_public.billing_result: + description: insert from public.billing result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: varchar - type: named - state: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.billing type: named - insert_customers_response: - description: Responses from the 'insert_customers' procedure + type: array + foreign_keys: {} + insert_public.campaigns_result: + description: insert from public.campaigns result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by insert type: element_type: - name: customers + name: public.campaigns type: named type: array - insert_deals_object: + foreign_keys: {} + insert_public.credit_cards_result: + description: insert from public.credit_cards result fields: - additional_benefits: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: text - type: named - customer_segment: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.credit_cards type: named - deal_id: + type: array + foreign_keys: {} + insert_public.customer_link_result: + description: insert from public.customer_link result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: int4 - type: named - deal_name: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.customer_link type: named - description: + type: array + foreign_keys: {} + insert_public.customer_network_result: + description: insert from public.customer_network result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: text - type: named - end_date: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: date + element_type: + name: public.customer_network type: named - max_monthly_spend: + type: array + foreign_keys: {} + insert_public.customer_plan_devices_result: + description: insert from public.customer_plan_devices result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: numeric - type: named - min_monthly_spend: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: numeric + element_type: + name: public.customer_plan_devices type: named - start_date: + type: array + foreign_keys: {} + insert_public.customer_plans_result: + description: insert from public.customer_plans result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: date - type: named - terms_conditions: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: text + element_type: + name: public.customer_plans type: named - insert_deals_response: - description: Responses from the 'insert_deals' procedure + type: array + foreign_keys: {} + insert_public.customers_result: + description: insert from public.customers result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by insert type: element_type: - name: deals + name: public.customers type: named type: array - insert_device_upgrades_object: + foreign_keys: {} + insert_public.deals_result: + description: insert from public.deals result fields: - contract_extension_months: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: int4 - type: named - customer_id: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: int4 + element_type: + name: public.deals type: named - new_device_id: + type: array + foreign_keys: {} + insert_public.device_upgrades_result: + description: insert from public.device_upgrades result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: int4 - type: named - old_device_id: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: int4 + element_type: + name: public.device_upgrades type: named - promotion_applied: + type: array + foreign_keys: {} + insert_public.devices_result: + description: insert from public.devices result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: varchar - type: named - trade_in_value: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: numeric + element_type: + name: public.devices type: named - upgrade_date: + type: array + foreign_keys: {} + insert_public.family_plan_members_result: + description: insert from public.family_plan_members result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - name: date + name: int type: named - upgrade_id: + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: int4 + element_type: + name: public.family_plan_members type: named - insert_device_upgrades_response: - description: Responses from the 'insert_device_upgrades' procedure + type: array + foreign_keys: {} + insert_public.family_plans_result: + description: insert from public.family_plans result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by insert type: element_type: - name: device_upgrades + name: public.family_plans type: named type: array - insert_devices_object: + foreign_keys: {} + insert_public.feedback_result: + description: insert from public.feedback result fields: - brand: + affected_rows: + arguments: {} + description: Number of affected rows type: - name: varchar + name: int type: named - created_at: + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: timestamptz + element_type: + name: public.feedback type: named - device_id: + type: array + foreign_keys: {} + insert_public.interactions_result: + description: insert from public.interactions result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: int4 - type: named - image: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.interactions type: named - model: + type: array + foreign_keys: {} + insert_public.iot_devices_result: + description: insert from public.iot_devices result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - name: varchar + name: int type: named - sf_record: + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.iot_devices type: named - updated_at: + type: array + foreign_keys: {} + insert_public.loyalty_rewards_result: + description: insert from public.loyalty_rewards result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: timestamptz + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: public.loyalty_rewards type: named - insert_devices_response: - description: Responses from the 'insert_devices' procedure + type: array + foreign_keys: {} + insert_public.network_result: + description: insert from public.network result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by insert type: element_type: - name: devices + name: public.network type: named type: array - insert_family_plan_members_object: + foreign_keys: {} + insert_public.number_portability_result: + description: insert from public.number_portability result fields: - customer_id: + affected_rows: + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named - data_allocation_percentage: + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: int4 + element_type: + name: public.number_portability type: named - family_plan_id: + type: array + foreign_keys: {} + insert_public.plans_result: + description: insert from public.plans result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named - role: + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.plans type: named - insert_family_plan_members_response: - description: Responses from the 'insert_family_plan_members' procedure + type: array + foreign_keys: {} + insert_public.referrals_result: + description: insert from public.referrals result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by insert type: element_type: - name: family_plan_members + name: public.referrals type: named type: array - insert_family_plans_object: + foreign_keys: {} + insert_public.service_interactions_result: + description: insert from public.service_interactions result fields: - created_at: - type: - type: nullable - underlying_type: - name: timestamptz - type: named - family_plan_id: - type: - type: nullable - underlying_type: - name: int4 - type: named - max_members: - type: - type: nullable - underlying_type: - name: int4 - type: named - monthly_fee: - type: - type: nullable - underlying_type: - name: numeric - type: named - plan_name: - type: - type: nullable - underlying_type: - name: varchar - type: named - primary_customer_id: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: int4 - type: named - shared_data_gb: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert type: - type: nullable - underlying_type: - name: int4 + element_type: + name: public.service_interactions type: named - insert_family_plans_response: - description: Responses from the 'insert_family_plans' procedure + type: array + foreign_keys: {} + insert_public.voip_services_result: + description: insert from public.voip_services result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by insert type: element_type: - name: family_plans + name: public.voip_services type: named type: array - insert_feedback_object: + foreign_keys: {} + int_set_input: + description: Wrapper for setting scalar int fields: - category: + value: + arguments: {} + description: New value for scalar int type: type: nullable underlying_type: - name: varchar + name: int type: named - comments: + foreign_keys: {} + integer_set_input: + description: Wrapper for setting scalar integer + fields: + value: + arguments: {} + description: New value for scalar integer type: type: nullable underlying_type: - name: text + name: integer type: named - customer_id: + foreign_keys: {} + public.billing: + description: 'Object type for public.billing. Description: null' + fields: + billing_date: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: date type: named - feedback_date: + billing_id: + arguments: {} + type: + name: integer + type: named + customer_id: + arguments: {} type: type: nullable underlying_type: - name: timestamptz + name: integer type: named - feedback_id: + payment_status: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - followup_date: + total_amount: + arguments: {} type: type: nullable underlying_type: - name: timestamptz + name: decimal type: named - followup_notes: + foreign_keys: {} + public.billing_insert_input: + description: Input type for inserting into public.billing + fields: + billing_date: + arguments: {} + description: New value for public.billing.billing_date type: type: nullable underlying_type: - name: text + name: date type: named - rating: + billing_id: + arguments: {} + description: New value for public.billing.billing_id type: type: nullable underlying_type: - name: int4 + name: integer type: named - requires_followup: + customer_id: + arguments: {} + description: New value for public.billing.customer_id type: type: nullable underlying_type: - name: bool - type: named - insert_feedback_response: - description: Responses from the 'insert_feedback' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: feedback + name: integer type: named - type: array - insert_interactions_object: - fields: - agent_id: + payment_status: + arguments: {} + description: New value for public.billing.payment_status type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - channel: - type: - name: varchar - type: named - customer_id: + total_amount: + arguments: {} + description: New value for public.billing.total_amount type: type: nullable underlying_type: - name: int4 + name: decimal type: named - duration_seconds: + foreign_keys: {} + public.billing_set_input: + description: Input type for updating public.billing + fields: + billing_date: + arguments: {} + description: New value wrapper for public.billing.billing_date type: type: nullable underlying_type: - name: int4 + name: date_set_input type: named - interaction_id: + billing_id: + arguments: {} + description: New value wrapper for public.billing.billing_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - interaction_time: + customer_id: + arguments: {} + description: New value wrapper for public.billing.customer_id type: type: nullable underlying_type: - name: timestamptz + name: integer_set_input type: named - notes: + payment_status: + arguments: {} + description: New value wrapper for public.billing.payment_status type: type: nullable underlying_type: - name: text + name: character_varying_set_input type: named - resolution_status: + total_amount: + arguments: {} + description: New value wrapper for public.billing.total_amount type: type: nullable underlying_type: - name: varchar + name: decimal_set_input type: named - satisfaction_rating: + foreign_keys: {} + public.campaigns: + description: 'Object type for public.campaigns. Description: null' + fields: + actual_conversions: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: integer type: named - topic: + budget: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: decimal type: named - insert_interactions_response: - description: Responses from the 'insert_interactions' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + campaign_id: + arguments: {} type: - name: int4 + name: integer type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: interactions - type: named - type: array - insert_iot_devices_object: - fields: - activation_date: + campaign_name: + arguments: {} type: - type: nullable - underlying_type: - name: date - type: named - customer_id: + name: character_varying + type: named + channel: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - data_plan_id: + conversion_goal: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: integer type: named - device_type: + end_date: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: date type: named - imei: + offer_details: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: text type: named - iot_device_id: + start_date: + arguments: {} type: - type: nullable - underlying_type: - name: int4 - type: named - last_active_date: + name: date + type: named + target_segment: + arguments: {} type: type: nullable underlying_type: - name: timestamptz + name: character_varying type: named - monthly_data_usage_mb: + foreign_keys: {} + public.campaigns_insert_input: + description: Input type for inserting into public.campaigns + fields: + actual_conversions: + arguments: {} + description: New value for public.campaigns.actual_conversions type: type: nullable underlying_type: - name: numeric + name: integer type: named - sim_iccid: + budget: + arguments: {} + description: New value for public.campaigns.budget type: type: nullable underlying_type: - name: varchar + name: decimal type: named - status: + campaign_id: + arguments: {} + description: New value for public.campaigns.campaign_id type: type: nullable underlying_type: - name: varchar + name: integer type: named - insert_iot_devices_response: - description: Responses from the 'insert_iot_devices' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + campaign_name: + arguments: {} + description: New value for public.campaigns.campaign_name type: - name: int4 + name: character_varying type: named - returning: - description: Data from rows affected by the mutation + channel: + arguments: {} + description: New value for public.campaigns.channel type: - element_type: - name: iot_devices + type: nullable + underlying_type: + name: character_varying type: named - type: array - insert_loyalty_rewards_object: - fields: - customer_id: + conversion_goal: + arguments: {} + description: New value for public.campaigns.conversion_goal type: type: nullable underlying_type: - name: int4 + name: integer type: named - last_activity_date: + end_date: + arguments: {} + description: New value for public.campaigns.end_date type: type: nullable underlying_type: name: date type: named - points_balance: + offer_details: + arguments: {} + description: New value for public.campaigns.offer_details type: type: nullable underlying_type: - name: int4 + name: text type: named - points_earned: + start_date: + arguments: {} + description: New value for public.campaigns.start_date type: - name: int4 + name: date type: named - points_redeemed: + target_segment: + arguments: {} + description: New value for public.campaigns.target_segment type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - reward_id: + foreign_keys: {} + public.campaigns_set_input: + description: Input type for updating public.campaigns + fields: + actual_conversions: + arguments: {} + description: New value wrapper for public.campaigns.actual_conversions type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - tier: + budget: + arguments: {} + description: New value wrapper for public.campaigns.budget type: type: nullable underlying_type: - name: varchar + name: decimal_set_input type: named - insert_loyalty_rewards_response: - description: Responses from the 'insert_loyalty_rewards' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + campaign_id: + arguments: {} + description: New value wrapper for public.campaigns.campaign_id type: - element_type: - name: loyalty_rewards + type: nullable + underlying_type: + name: integer_set_input type: named - type: array - insert_network_object: - fields: - capacity: + campaign_name: + arguments: {} + description: New value wrapper for public.campaigns.campaign_name type: type: nullable underlying_type: - name: int4 + name: character_varying_set_input type: named - latitude: + channel: + arguments: {} + description: New value wrapper for public.campaigns.channel type: type: nullable underlying_type: - name: numeric + name: character_varying_set_input type: named - longitude: + conversion_goal: + arguments: {} + description: New value wrapper for public.campaigns.conversion_goal type: type: nullable underlying_type: - name: numeric + name: integer_set_input type: named - node_id: + end_date: + arguments: {} + description: New value wrapper for public.campaigns.end_date type: type: nullable underlying_type: - name: int4 + name: date_set_input type: named - node_name: + offer_details: + arguments: {} + description: New value wrapper for public.campaigns.offer_details type: type: nullable underlying_type: - name: varchar + name: text_set_input type: named - quality: + start_date: + arguments: {} + description: New value wrapper for public.campaigns.start_date type: type: nullable underlying_type: - name: varchar + name: date_set_input type: named - status: + target_segment: + arguments: {} + description: New value wrapper for public.campaigns.target_segment type: type: nullable underlying_type: - name: varchar + name: character_varying_set_input type: named - insert_network_response: - description: Responses from the 'insert_network' procedure + foreign_keys: {} + public.credit_cards: + description: 'Object type for public.credit_cards. Description: null' fields: - affected_rows: - description: The number of rows affected by the mutation + created_at: + arguments: {} type: - name: int4 + name: timestamp_with_time_zone type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: network - type: named - type: array - insert_number_portability_object: - fields: - completion_date: + credit_card_id: + arguments: {} type: - type: nullable - underlying_type: - name: timestamptz - type: named + name: integer + type: named customer_id: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: integer type: named - notes: + cvv: + arguments: {} type: - type: nullable - underlying_type: - name: text - type: named - phone_number: + name: integer + type: named + expiry: + arguments: {} type: - type: nullable - underlying_type: - name: varchar - type: named - port_date: + name: date + type: named + number: + arguments: {} type: - type: nullable - underlying_type: - name: timestamptz - type: named - portability_id: + name: text + type: named + updated_at: + arguments: {} type: - type: nullable - underlying_type: - name: int4 - type: named - previous_carrier: + name: timestamp_with_time_zone + type: named + foreign_keys: {} + public.credit_cards_insert_input: + description: Input type for inserting into public.credit_cards + fields: + created_at: + arguments: {} + description: New value for public.credit_cards.created_at + type: + name: timestamp_with_time_zone + type: named + credit_card_id: + arguments: {} + description: New value for public.credit_cards.credit_card_id type: type: nullable underlying_type: - name: varchar + name: integer type: named - status: + customer_id: + arguments: {} + description: New value for public.credit_cards.customer_id type: type: nullable underlying_type: - name: varchar + name: integer type: named - insert_number_portability_response: - description: Responses from the 'insert_number_portability' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + cvv: + arguments: {} + description: New value for public.credit_cards.cvv + type: + name: integer + type: named + expiry: + arguments: {} + description: New value for public.credit_cards.expiry type: - name: int4 + name: date type: named - returning: - description: Data from rows affected by the mutation + number: + arguments: {} + description: New value for public.credit_cards.number type: - element_type: - name: number_portability - type: named - type: array - insert_plans_object: + name: text + type: named + updated_at: + arguments: {} + description: New value for public.credit_cards.updated_at + type: + name: timestamp_with_time_zone + type: named + foreign_keys: {} + public.credit_cards_set_input: + description: Input type for updating public.credit_cards fields: - data_limit_gb: + created_at: + arguments: {} + description: New value wrapper for public.credit_cards.created_at type: type: nullable underlying_type: - name: int4 + name: timestamp_with_time_zone_set_input type: named - description: + credit_card_id: + arguments: {} + description: New value wrapper for public.credit_cards.credit_card_id type: type: nullable underlying_type: - name: text + name: integer_set_input type: named - international_roaming: + customer_id: + arguments: {} + description: New value wrapper for public.credit_cards.customer_id type: type: nullable underlying_type: - name: bool + name: integer_set_input type: named - monthly_fee: + cvv: + arguments: {} + description: New value wrapper for public.credit_cards.cvv type: type: nullable underlying_type: - name: numeric + name: integer_set_input type: named - plan_id: + expiry: + arguments: {} + description: New value wrapper for public.credit_cards.expiry type: type: nullable underlying_type: - name: int4 + name: date_set_input type: named - plan_name: + number: + arguments: {} + description: New value wrapper for public.credit_cards.number type: type: nullable underlying_type: - name: varchar + name: text_set_input type: named - roaming_countries: + updated_at: + arguments: {} + description: New value wrapper for public.credit_cards.updated_at type: type: nullable underlying_type: - element_type: - type: nullable - underlying_type: - name: text - type: named - type: array - roaming_data_gb: + name: timestamp_with_time_zone_set_input + type: named + foreign_keys: {} + public.customer_link: + description: 'Object type for public.customer_link. Description: null' + fields: + customer_guid: + arguments: {} + type: + name: uuid + type: named + customer_id: + arguments: {} type: type: nullable underlying_type: - name: numeric + name: integer type: named - roaming_voice_minutes: + id: + arguments: {} + type: + name: integer + type: named + foreign_keys: {} + public.customer_link_insert_input: + description: Input type for inserting into public.customer_link + fields: + customer_guid: + arguments: {} + description: New value for public.customer_link.customer_guid + type: + name: uuid + type: named + customer_id: + arguments: {} + description: New value for public.customer_link.customer_id type: type: nullable underlying_type: - name: int4 + name: integer type: named - sf_record: + id: + arguments: {} + description: New value for public.customer_link.id type: type: nullable underlying_type: - name: varchar + name: integer type: named - sms_limit: + foreign_keys: {} + public.customer_link_set_input: + description: Input type for updating public.customer_link + fields: + customer_guid: + arguments: {} + description: New value wrapper for public.customer_link.customer_guid type: type: nullable underlying_type: - name: int4 + name: uuid_set_input type: named - type: + customer_id: + arguments: {} + description: New value wrapper for public.customer_link.customer_id type: type: nullable underlying_type: - name: text + name: integer_set_input type: named - voice_limit_minutes: + id: + arguments: {} + description: New value wrapper for public.customer_link.id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - insert_plans_response: - description: Responses from the 'insert_plans' procedure + foreign_keys: {} + public.customer_network: + description: 'Object type for public.customer_network. Description: null' fields: - affected_rows: - description: The number of rows affected by the mutation + customer_id: + arguments: {} type: - name: int4 + name: integer type: named - returning: - description: Data from rows affected by the mutation + node_id: + arguments: {} type: - element_type: - name: plans - type: named - type: array - insert_referrals_object: + name: integer + type: named + foreign_keys: {} + public.customer_network_insert_input: + description: Input type for inserting into public.customer_network fields: - bonus_amount: - type: - type: nullable - underlying_type: - name: numeric - type: named - bonus_paid: + customer_id: + arguments: {} + description: New value for public.customer_network.customer_id type: - type: nullable - underlying_type: - name: bool - type: named - referral_date: + name: integer + type: named + node_id: + arguments: {} + description: New value for public.customer_network.node_id type: - name: date + name: integer type: named - referral_id: + foreign_keys: {} + public.customer_network_set_input: + description: Input type for updating public.customer_network + fields: + customer_id: + arguments: {} + description: New value wrapper for public.customer_network.customer_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - referred_id: + node_id: + arguments: {} + description: New value wrapper for public.customer_network.node_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - referrer_id: + foreign_keys: {} + public.customer_plan_devices: + description: 'Object type for public.customer_plan_devices. Description: null' + fields: + customer_plan_id: + arguments: {} + type: + name: integer + type: named + device_id: + arguments: {} + type: + name: integer + type: named + device_imei: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - status: + sim_iccid: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - insert_referrals_response: - description: Responses from the 'insert_referrals' procedure + foreign_keys: {} + public.customer_plan_devices_insert_input: + description: Input type for inserting into public.customer_plan_devices fields: - affected_rows: - description: The number of rows affected by the mutation + customer_plan_id: + arguments: {} + description: New value for public.customer_plan_devices.customer_plan_id type: - name: int4 + name: integer type: named - returning: - description: Data from rows affected by the mutation + device_id: + arguments: {} + description: New value for public.customer_plan_devices.device_id type: - element_type: - name: referrals - type: named - type: array - insert_service_interactions_object: - fields: - agent_id: + name: integer + type: named + device_imei: + arguments: {} + description: New value for public.customer_plan_devices.device_imei type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - category: + sim_iccid: + arguments: {} + description: New value for public.customer_plan_devices.sim_iccid type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - channel: + foreign_keys: {} + public.customer_plan_devices_set_input: + description: Input type for updating public.customer_plan_devices + fields: + customer_plan_id: + arguments: {} + description: New value wrapper for public.customer_plan_devices.customer_plan_id type: type: nullable underlying_type: - name: varchar + name: integer_set_input type: named - customer_id: + device_id: + arguments: {} + description: New value wrapper for public.customer_plan_devices.device_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - interaction_date: + device_imei: + arguments: {} + description: New value wrapper for public.customer_plan_devices.device_imei type: type: nullable underlying_type: - name: timestamptz + name: character_varying_set_input type: named - interaction_id: + sim_iccid: + arguments: {} + description: New value wrapper for public.customer_plan_devices.sim_iccid type: type: nullable underlying_type: - name: int4 + name: character_varying_set_input type: named - notes: + foreign_keys: {} + public.customer_plans: + description: 'Object type for public.customer_plans. Description: null' + fields: + cell_number: + arguments: {} type: type: nullable underlying_type: - name: text + name: character_varying type: named - resolution_status: + customer_id: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: integer type: named - resolution_time_minutes: + customer_plan_id: + arguments: {} + type: + name: integer + type: named + data_allocation_gb: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: integer type: named - satisfaction_score: + data_used_gb: + arguments: {} type: type: nullable underlying_type: - name: int4 - type: named - insert_service_interactions_response: - description: Responses from the 'insert_service_interactions' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: service_interactions + name: decimal type: named - type: array - insert_voip_services_object: - fields: - activation_date: + end_date: + arguments: {} type: type: nullable underlying_type: name: date type: named - customer_id: + plan_id: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: integer type: named - features: - type: - type: nullable - underlying_type: - element_type: - type: nullable - underlying_type: - name: text - type: named - type: array - monthly_fee: + rollover_data_gb: + arguments: {} type: type: nullable underlying_type: - name: numeric + name: decimal type: named - service_number: + start_date: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: date type: named - service_type: + status: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - status: + foreign_keys: {} + public.customer_plans_insert_input: + description: Input type for inserting into public.customer_plans + fields: + cell_number: + arguments: {} + description: New value for public.customer_plans.cell_number type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - voip_id: + customer_id: + arguments: {} + description: New value for public.customer_plans.customer_id type: type: nullable underlying_type: - name: int4 - type: named - insert_voip_services_response: - description: Responses from the 'insert_voip_services' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: voip_services + name: integer type: named - type: array - interactions: - fields: - agent_id: + customer_plan_id: + arguments: {} + description: New value for public.customer_plans.customer_plan_id type: type: nullable underlying_type: - name: int4 + name: integer type: named - channel: - type: - name: varchar - type: named - customer_id: + data_allocation_gb: + arguments: {} + description: New value for public.customer_plans.data_allocation_gb type: type: nullable underlying_type: - name: int4 + name: integer type: named - duration_seconds: + data_used_gb: + arguments: {} + description: New value for public.customer_plans.data_used_gb type: type: nullable underlying_type: - name: int4 + name: decimal type: named - interaction_id: - type: - name: int4 - type: named - interaction_time: + end_date: + arguments: {} + description: New value for public.customer_plans.end_date type: type: nullable underlying_type: - name: timestamptz + name: date type: named - notes: + plan_id: + arguments: {} + description: New value for public.customer_plans.plan_id type: type: nullable underlying_type: - name: text + name: integer type: named - resolution_status: + rollover_data_gb: + arguments: {} + description: New value for public.customer_plans.rollover_data_gb type: type: nullable underlying_type: - name: varchar + name: decimal type: named - satisfaction_rating: + start_date: + arguments: {} + description: New value for public.customer_plans.start_date type: type: nullable underlying_type: - name: int4 + name: date type: named - topic: + status: + arguments: {} + description: New value for public.customer_plans.status type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - iot_devices: + foreign_keys: {} + public.customer_plans_set_input: + description: Input type for updating public.customer_plans fields: - activation_date: + cell_number: + arguments: {} + description: New value wrapper for public.customer_plans.cell_number type: type: nullable underlying_type: - name: date + name: character_varying_set_input type: named customer_id: + arguments: {} + description: New value wrapper for public.customer_plans.customer_id type: type: nullable underlying_type: - name: int4 - type: named - data_plan_id: - type: - type: nullable - underlying_type: - name: int4 + name: integer_set_input type: named - device_type: + customer_plan_id: + arguments: {} + description: New value wrapper for public.customer_plans.customer_plan_id type: type: nullable underlying_type: - name: varchar + name: integer_set_input type: named - imei: + data_allocation_gb: + arguments: {} + description: New value wrapper for public.customer_plans.data_allocation_gb type: type: nullable underlying_type: - name: varchar + name: integer_set_input type: named - iot_device_id: - type: - name: int4 - type: named - last_active_date: + data_used_gb: + arguments: {} + description: New value wrapper for public.customer_plans.data_used_gb type: type: nullable underlying_type: - name: timestamptz + name: decimal_set_input type: named - monthly_data_usage_mb: + end_date: + arguments: {} + description: New value wrapper for public.customer_plans.end_date type: type: nullable underlying_type: - name: numeric + name: date_set_input type: named - sim_iccid: + plan_id: + arguments: {} + description: New value wrapper for public.customer_plans.plan_id type: type: nullable underlying_type: - name: varchar + name: integer_set_input type: named - status: + rollover_data_gb: + arguments: {} + description: New value wrapper for public.customer_plans.rollover_data_gb type: type: nullable underlying_type: - name: varchar + name: decimal_set_input type: named - loyalty_rewards: - fields: - customer_id: + start_date: + arguments: {} + description: New value wrapper for public.customer_plans.start_date type: type: nullable underlying_type: - name: int4 + name: date_set_input type: named - last_activity_date: + status: + arguments: {} + description: New value wrapper for public.customer_plans.status type: type: nullable underlying_type: - name: date + name: character_varying_set_input type: named - points_balance: + foreign_keys: {} + public.customers: + description: 'Object type for public.customers. Description: null' + fields: + address: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - points_earned: - type: - name: int4 - type: named - points_redeemed: + auth_user_id: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: integer type: named - reward_id: - type: - name: int4 - type: named - tier: + churn_risk: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: decimal type: named - network: - fields: - capacity: + churn_risk_factors: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: array type: named - latitude: + city: + arguments: {} type: type: nullable underlying_type: - name: numeric + name: character_varying type: named - longitude: + country: + arguments: {} type: type: nullable underlying_type: - name: numeric + name: character_varying type: named - node_id: + customer_id: + arguments: {} type: - name: int4 + name: integer type: named - node_name: + dob: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: date type: named - quality: + email: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - status: + first_name: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - number_portability: - fields: - completion_date: + image: + arguments: {} type: type: nullable underlying_type: - name: timestamptz + name: character_varying type: named - customer_id: + last_name: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - notes: + last_survey_date: + arguments: {} type: type: nullable underlying_type: - name: text + name: date type: named phone_number: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - port_date: + postcode: + arguments: {} type: type: nullable underlying_type: - name: timestamptz + name: character_varying type: named - portability_id: - type: - name: int4 - type: named - previous_carrier: + satisfaction_score: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: integer type: named - status: + segment: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - plans: - fields: - data_limit_gb: + state: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - description: + foreign_keys: {} + public.customers_insert_input: + description: Input type for inserting into public.customers + fields: + address: + arguments: {} + description: New value for public.customers.address type: type: nullable underlying_type: - name: text + name: character_varying type: named - international_roaming: + auth_user_id: + arguments: {} + description: New value for public.customers.auth_user_id type: type: nullable underlying_type: - name: bool + name: integer type: named - monthly_fee: + churn_risk: + arguments: {} + description: New value for public.customers.churn_risk type: type: nullable underlying_type: - name: numeric + name: decimal type: named - plan_id: - type: - name: int4 - type: named - plan_name: + churn_risk_factors: + arguments: {} + description: New value for public.customers.churn_risk_factors type: type: nullable underlying_type: - name: varchar + name: array type: named - roaming_countries: + city: + arguments: {} + description: New value for public.customers.city type: type: nullable underlying_type: - element_type: - type: nullable - underlying_type: - name: text - type: named - type: array - roaming_data_gb: + name: character_varying + type: named + country: + arguments: {} + description: New value for public.customers.country type: type: nullable underlying_type: - name: numeric + name: character_varying type: named - roaming_voice_minutes: + customer_id: + arguments: {} + description: New value for public.customers.customer_id type: type: nullable underlying_type: - name: int4 + name: integer type: named - sf_record: + dob: + arguments: {} + description: New value for public.customers.dob type: type: nullable underlying_type: - name: varchar + name: date type: named - sms_limit: + email: + arguments: {} + description: New value for public.customers.email type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - type: + first_name: + arguments: {} + description: New value for public.customers.first_name type: type: nullable underlying_type: - name: text + name: character_varying type: named - voice_limit_minutes: + image: + arguments: {} + description: New value for public.customers.image type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - referrals: - fields: - bonus_amount: + last_name: + arguments: {} + description: New value for public.customers.last_name type: type: nullable underlying_type: - name: numeric + name: character_varying type: named - bonus_paid: + last_survey_date: + arguments: {} + description: New value for public.customers.last_survey_date type: type: nullable underlying_type: - name: bool + name: date type: named - referral_date: - type: - name: date - type: named - referral_id: - type: - name: int4 - type: named - referred_id: + phone_number: + arguments: {} + description: New value for public.customers.phone_number type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - referrer_id: + postcode: + arguments: {} + description: New value for public.customers.postcode type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - status: + satisfaction_score: + arguments: {} + description: New value for public.customers.satisfaction_score type: type: nullable underlying_type: - name: varchar + name: integer type: named - service_interactions: - fields: - agent_id: + segment: + arguments: {} + description: New value for public.customers.segment type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - category: + state: + arguments: {} + description: New value for public.customers.state type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - channel: + foreign_keys: {} + public.customers_set_input: + description: Input type for updating public.customers + fields: + address: + arguments: {} + description: New value wrapper for public.customers.address type: type: nullable underlying_type: - name: varchar + name: character_varying_set_input type: named - customer_id: + auth_user_id: + arguments: {} + description: New value wrapper for public.customers.auth_user_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - interaction_date: + churn_risk: + arguments: {} + description: New value wrapper for public.customers.churn_risk type: type: nullable underlying_type: - name: timestamptz + name: decimal_set_input type: named - interaction_id: - type: - name: int4 - type: named - notes: + churn_risk_factors: + arguments: {} + description: New value wrapper for public.customers.churn_risk_factors type: type: nullable underlying_type: - name: text + name: array_set_input type: named - resolution_status: + city: + arguments: {} + description: New value wrapper for public.customers.city type: type: nullable underlying_type: - name: varchar + name: character_varying_set_input type: named - resolution_time_minutes: + country: + arguments: {} + description: New value wrapper for public.customers.country type: type: nullable underlying_type: - name: int4 + name: character_varying_set_input type: named - satisfaction_score: + customer_id: + arguments: {} + description: New value wrapper for public.customers.customer_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - update_billing_by_billing_id_response: - description: Responses from the 'update_billing_by_billing_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: billing - type: named - type: array - update_billing_by_billing_id_update_columns: - description: Update the columns of the 'billing' collection - fields: - billing_date: - description: Update the 'billing_date' column in the 'billing' collection. + dob: + arguments: {} + description: New value wrapper for public.customers.dob type: type: nullable underlying_type: - name: update_column_billing_billing_date + name: date_set_input type: named - billing_id: - description: Update the 'billing_id' column in the 'billing' collection. + email: + arguments: {} + description: New value wrapper for public.customers.email type: type: nullable underlying_type: - name: update_column_billing_billing_id + name: character_varying_set_input type: named - customer_id: - description: Update the 'customer_id' column in the 'billing' collection. + first_name: + arguments: {} + description: New value wrapper for public.customers.first_name type: type: nullable underlying_type: - name: update_column_billing_customer_id + name: character_varying_set_input type: named - payment_status: - description: Update the 'payment_status' column in the 'billing' collection. + image: + arguments: {} + description: New value wrapper for public.customers.image type: type: nullable underlying_type: - name: update_column_billing_payment_status + name: character_varying_set_input type: named - total_amount: - description: Update the 'total_amount' column in the 'billing' collection. + last_name: + arguments: {} + description: New value wrapper for public.customers.last_name type: type: nullable underlying_type: - name: update_column_billing_total_amount - type: named - update_campaigns_by_campaign_id_response: - description: Responses from the 'update_campaigns_by_campaign_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: campaigns + name: character_varying_set_input type: named - type: array - update_campaigns_by_campaign_id_update_columns: - description: Update the columns of the 'campaigns' collection - fields: - actual_conversions: - description: Update the 'actual_conversions' column in the 'campaigns' collection. + last_survey_date: + arguments: {} + description: New value wrapper for public.customers.last_survey_date type: type: nullable underlying_type: - name: update_column_campaigns_actual_conversions + name: date_set_input type: named - budget: - description: Update the 'budget' column in the 'campaigns' collection. + phone_number: + arguments: {} + description: New value wrapper for public.customers.phone_number type: type: nullable underlying_type: - name: update_column_campaigns_budget + name: character_varying_set_input type: named - campaign_id: - description: Update the 'campaign_id' column in the 'campaigns' collection. + postcode: + arguments: {} + description: New value wrapper for public.customers.postcode type: type: nullable underlying_type: - name: update_column_campaigns_campaign_id + name: character_varying_set_input type: named - campaign_name: - description: Update the 'campaign_name' column in the 'campaigns' collection. + satisfaction_score: + arguments: {} + description: New value wrapper for public.customers.satisfaction_score type: type: nullable underlying_type: - name: update_column_campaigns_campaign_name + name: integer_set_input type: named - channel: - description: Update the 'channel' column in the 'campaigns' collection. + segment: + arguments: {} + description: New value wrapper for public.customers.segment type: type: nullable underlying_type: - name: update_column_campaigns_channel + name: character_varying_set_input type: named - conversion_goal: - description: Update the 'conversion_goal' column in the 'campaigns' collection. + state: + arguments: {} + description: New value wrapper for public.customers.state type: type: nullable underlying_type: - name: update_column_campaigns_conversion_goal + name: character_varying_set_input type: named - end_date: - description: Update the 'end_date' column in the 'campaigns' collection. + foreign_keys: {} + public.deals: + description: 'Object type for public.deals. Description: null' + fields: + additional_benefits: + arguments: {} type: type: nullable underlying_type: - name: update_column_campaigns_end_date + name: text type: named - offer_details: - description: Update the 'offer_details' column in the 'campaigns' collection. + customer_segment: + arguments: {} type: type: nullable underlying_type: - name: update_column_campaigns_offer_details + name: character_varying type: named - start_date: - description: Update the 'start_date' column in the 'campaigns' collection. + deal_id: + arguments: {} + type: + name: integer + type: named + deal_name: + arguments: {} type: type: nullable underlying_type: - name: update_column_campaigns_start_date + name: character_varying type: named - target_segment: - description: Update the 'target_segment' column in the 'campaigns' collection. + description: + arguments: {} type: type: nullable underlying_type: - name: update_column_campaigns_target_segment + name: text type: named - update_column_billing_billing_date: - description: Update the 'billing_date' column in the 'billing' collection - fields: - _set: - description: Set the column to this value + end_date: + arguments: {} type: type: nullable underlying_type: name: date type: named - update_column_billing_billing_id: - description: Update the 'billing_id' column in the 'billing' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_billing_customer_id: - description: Update the 'customer_id' column in the 'billing' collection - fields: - _set: - description: Set the column to this value + max_monthly_spend: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: decimal type: named - update_column_billing_payment_status: - description: Update the 'payment_status' column in the 'billing' collection - fields: - _set: - description: Set the column to this value + min_monthly_spend: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: decimal type: named - update_column_billing_total_amount: - description: Update the 'total_amount' column in the 'billing' collection - fields: - _set: - description: Set the column to this value + start_date: + arguments: {} type: type: nullable underlying_type: - name: numeric + name: date type: named - update_column_campaigns_actual_conversions: - description: Update the 'actual_conversions' column in the 'campaigns' collection - fields: - _set: - description: Set the column to this value + terms_conditions: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: text type: named - update_column_campaigns_budget: - description: Update the 'budget' column in the 'campaigns' collection + foreign_keys: {} + public.deals_insert_input: + description: Input type for inserting into public.deals fields: - _set: - description: Set the column to this value + additional_benefits: + arguments: {} + description: New value for public.deals.additional_benefits type: type: nullable underlying_type: - name: numeric + name: text type: named - update_column_campaigns_campaign_id: - description: Update the 'campaign_id' column in the 'campaigns' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_campaigns_campaign_name: - description: Update the 'campaign_name' column in the 'campaigns' collection - fields: - _set: - description: Set the column to this value - type: - name: varchar - type: named - update_column_campaigns_channel: - description: Update the 'channel' column in the 'campaigns' collection - fields: - _set: - description: Set the column to this value + customer_segment: + arguments: {} + description: New value for public.deals.customer_segment type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - update_column_campaigns_conversion_goal: - description: Update the 'conversion_goal' column in the 'campaigns' collection - fields: - _set: - description: Set the column to this value + deal_id: + arguments: {} + description: New value for public.deals.deal_id type: type: nullable underlying_type: - name: int4 + name: integer type: named - update_column_campaigns_end_date: - description: Update the 'end_date' column in the 'campaigns' collection - fields: - _set: - description: Set the column to this value + deal_name: + arguments: {} + description: New value for public.deals.deal_name type: type: nullable underlying_type: - name: date + name: character_varying type: named - update_column_campaigns_offer_details: - description: Update the 'offer_details' column in the 'campaigns' collection - fields: - _set: - description: Set the column to this value + description: + arguments: {} + description: New value for public.deals.description type: type: nullable underlying_type: name: text type: named - update_column_campaigns_start_date: - description: Update the 'start_date' column in the 'campaigns' collection - fields: - _set: - description: Set the column to this value - type: - name: date - type: named - update_column_campaigns_target_segment: - description: Update the 'target_segment' column in the 'campaigns' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - name: varchar - type: named - update_column_credit_cards_created_at: - description: Update the 'created_at' column in the 'credit_cards' collection - fields: - _set: - description: Set the column to this value - type: - name: timestamptz - type: named - update_column_credit_cards_credit_card_id: - description: Update the 'credit_card_id' column in the 'credit_cards' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_credit_cards_customer_id: - description: Update the 'customer_id' column in the 'credit_cards' collection - fields: - _set: - description: Set the column to this value + end_date: + arguments: {} + description: New value for public.deals.end_date type: type: nullable underlying_type: - name: int4 + name: date type: named - update_column_credit_cards_cvv: - description: Update the 'cvv' column in the 'credit_cards' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_credit_cards_expiry: - description: Update the 'expiry' column in the 'credit_cards' collection - fields: - _set: - description: Set the column to this value - type: - name: date - type: named - update_column_credit_cards_number: - description: Update the 'number' column in the 'credit_cards' collection - fields: - _set: - description: Set the column to this value - type: - name: text - type: named - update_column_credit_cards_updated_at: - description: Update the 'updated_at' column in the 'credit_cards' collection - fields: - _set: - description: Set the column to this value - type: - name: timestamptz - type: named - update_column_customer_link_customer_guid: - description: Update the 'customer_guid' column in the 'customer_link' collection - fields: - _set: - description: Set the column to this value - type: - name: uuid - type: named - update_column_customer_link_customer_id: - description: Update the 'customer_id' column in the 'customer_link' collection - fields: - _set: - description: Set the column to this value + max_monthly_spend: + arguments: {} + description: New value for public.deals.max_monthly_spend type: type: nullable underlying_type: - name: int4 + name: decimal type: named - update_column_customer_link_id: - description: Update the 'id' column in the 'customer_link' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_customer_network_customer_id: - description: Update the 'customer_id' column in the 'customer_network' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_customer_network_node_id: - description: Update the 'node_id' column in the 'customer_network' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_customer_plan_devices_customer_plan_id: - description: Update the 'customer_plan_id' column in the 'customer_plan_devices' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_customer_plan_devices_device_id: - description: Update the 'device_id' column in the 'customer_plan_devices' collection - fields: - _set: - description: Set the column to this value + min_monthly_spend: + arguments: {} + description: New value for public.deals.min_monthly_spend type: - name: int4 - type: named - update_column_customer_plan_devices_device_imei: - description: Update the 'device_imei' column in the 'customer_plan_devices' collection - fields: - _set: - description: Set the column to this value + type: nullable + underlying_type: + name: decimal + type: named + start_date: + arguments: {} + description: New value for public.deals.start_date type: type: nullable underlying_type: - name: varchar + name: date type: named - update_column_customer_plan_devices_sim_iccid: - description: Update the 'sim_iccid' column in the 'customer_plan_devices' collection - fields: - _set: - description: Set the column to this value + terms_conditions: + arguments: {} + description: New value for public.deals.terms_conditions type: type: nullable underlying_type: - name: varchar + name: text type: named - update_column_customer_plans_cell_number: - description: Update the 'cell_number' column in the 'customer_plans' collection + foreign_keys: {} + public.deals_set_input: + description: Input type for updating public.deals fields: - _set: - description: Set the column to this value + additional_benefits: + arguments: {} + description: New value wrapper for public.deals.additional_benefits type: type: nullable underlying_type: - name: varchar + name: text_set_input type: named - update_column_customer_plans_customer_id: - description: Update the 'customer_id' column in the 'customer_plans' collection - fields: - _set: - description: Set the column to this value + customer_segment: + arguments: {} + description: New value wrapper for public.deals.customer_segment type: type: nullable underlying_type: - name: int4 + name: character_varying_set_input type: named - update_column_customer_plans_customer_plan_id: - description: Update the 'customer_plan_id' column in the 'customer_plans' collection - fields: - _set: - description: Set the column to this value + deal_id: + arguments: {} + description: New value wrapper for public.deals.deal_id type: - name: int4 - type: named - update_column_customer_plans_data_allocation_gb: - description: Update the 'data_allocation_gb' column in the 'customer_plans' collection - fields: - _set: - description: Set the column to this value + type: nullable + underlying_type: + name: integer_set_input + type: named + deal_name: + arguments: {} + description: New value wrapper for public.deals.deal_name type: type: nullable underlying_type: - name: int4 + name: character_varying_set_input type: named - update_column_customer_plans_data_used_gb: - description: Update the 'data_used_gb' column in the 'customer_plans' collection - fields: - _set: - description: Set the column to this value + description: + arguments: {} + description: New value wrapper for public.deals.description type: type: nullable underlying_type: - name: numeric + name: text_set_input type: named - update_column_customer_plans_end_date: - description: Update the 'end_date' column in the 'customer_plans' collection - fields: - _set: - description: Set the column to this value + end_date: + arguments: {} + description: New value wrapper for public.deals.end_date type: type: nullable underlying_type: - name: date + name: date_set_input type: named - update_column_customer_plans_plan_id: - description: Update the 'plan_id' column in the 'customer_plans' collection - fields: - _set: - description: Set the column to this value + max_monthly_spend: + arguments: {} + description: New value wrapper for public.deals.max_monthly_spend type: type: nullable underlying_type: - name: int4 + name: decimal_set_input type: named - update_column_customer_plans_rollover_data_gb: - description: Update the 'rollover_data_gb' column in the 'customer_plans' collection - fields: - _set: - description: Set the column to this value + min_monthly_spend: + arguments: {} + description: New value wrapper for public.deals.min_monthly_spend type: type: nullable underlying_type: - name: numeric + name: decimal_set_input type: named - update_column_customer_plans_start_date: - description: Update the 'start_date' column in the 'customer_plans' collection - fields: - _set: - description: Set the column to this value + start_date: + arguments: {} + description: New value wrapper for public.deals.start_date type: type: nullable underlying_type: - name: date + name: date_set_input type: named - update_column_customer_plans_status: - description: Update the 'status' column in the 'customer_plans' collection - fields: - _set: - description: Set the column to this value + terms_conditions: + arguments: {} + description: New value wrapper for public.deals.terms_conditions type: type: nullable underlying_type: - name: varchar + name: text_set_input type: named - update_column_customers_address: - description: Update the 'address' column in the 'customers' collection + foreign_keys: {} + public.device_upgrades: + description: 'Object type for public.device_upgrades. Description: null' fields: - _set: - description: Set the column to this value + contract_extension_months: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_customers_auth_user_id: - description: Update the 'auth_user_id' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: integer type: named - update_column_customers_churn_risk: - description: Update the 'churn_risk' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + new_device_id: + arguments: {} type: type: nullable underlying_type: - name: numeric + name: integer type: named - update_column_customers_churn_risk_factors: - description: Update the 'churn_risk_factors' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + old_device_id: + arguments: {} type: type: nullable underlying_type: - element_type: - type: nullable - underlying_type: - name: text - type: named - type: array - update_column_customers_city: - description: Update the 'city' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + name: integer + type: named + promotion_applied: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - update_column_customers_country: - description: Update the 'country' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + trade_in_value: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: decimal type: named - update_column_customers_customer_id: - description: Update the 'customer_id' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + upgrade_date: + arguments: {} + type: + name: date + type: named + upgrade_id: + arguments: {} type: - name: int4 + name: integer type: named - update_column_customers_dob: - description: Update the 'dob' column in the 'customers' collection + foreign_keys: {} + public.device_upgrades_insert_input: + description: Input type for inserting into public.device_upgrades fields: - _set: - description: Set the column to this value + contract_extension_months: + arguments: {} + description: New value for public.device_upgrades.contract_extension_months type: type: nullable underlying_type: - name: date + name: integer type: named - update_column_customers_email: - description: Update the 'email' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} + description: New value for public.device_upgrades.customer_id type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_customers_first_name: - description: Update the 'first_name' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + new_device_id: + arguments: {} + description: New value for public.device_upgrades.new_device_id type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_customers_image: - description: Update the 'image' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + old_device_id: + arguments: {} + description: New value for public.device_upgrades.old_device_id type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_customers_last_name: - description: Update the 'last_name' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + promotion_applied: + arguments: {} + description: New value for public.device_upgrades.promotion_applied type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - update_column_customers_last_survey_date: - description: Update the 'last_survey_date' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + trade_in_value: + arguments: {} + description: New value for public.device_upgrades.trade_in_value type: type: nullable underlying_type: - name: date + name: decimal type: named - update_column_customers_phone_number: - description: Update the 'phone_number' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + upgrade_date: + arguments: {} + description: New value for public.device_upgrades.upgrade_date + type: + name: date + type: named + upgrade_id: + arguments: {} + description: New value for public.device_upgrades.upgrade_id type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_customers_postcode: - description: Update the 'postcode' column in the 'customers' collection + foreign_keys: {} + public.device_upgrades_set_input: + description: Input type for updating public.device_upgrades fields: - _set: - description: Set the column to this value + contract_extension_months: + arguments: {} + description: New value wrapper for public.device_upgrades.contract_extension_months type: type: nullable underlying_type: - name: varchar + name: integer_set_input type: named - update_column_customers_satisfaction_score: - description: Update the 'satisfaction_score' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} + description: New value wrapper for public.device_upgrades.customer_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - update_column_customers_segment: - description: Update the 'segment' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + new_device_id: + arguments: {} + description: New value wrapper for public.device_upgrades.new_device_id type: type: nullable underlying_type: - name: varchar + name: integer_set_input type: named - update_column_customers_state: - description: Update the 'state' column in the 'customers' collection - fields: - _set: - description: Set the column to this value + old_device_id: + arguments: {} + description: New value wrapper for public.device_upgrades.old_device_id type: type: nullable underlying_type: - name: varchar + name: integer_set_input type: named - update_column_deals_additional_benefits: - description: Update the 'additional_benefits' column in the 'deals' collection - fields: - _set: - description: Set the column to this value + promotion_applied: + arguments: {} + description: New value wrapper for public.device_upgrades.promotion_applied type: type: nullable underlying_type: - name: text + name: character_varying_set_input type: named - update_column_deals_customer_segment: - description: Update the 'customer_segment' column in the 'deals' collection - fields: - _set: - description: Set the column to this value + trade_in_value: + arguments: {} + description: New value wrapper for public.device_upgrades.trade_in_value type: type: nullable underlying_type: - name: varchar + name: decimal_set_input type: named - update_column_deals_deal_id: - description: Update the 'deal_id' column in the 'deals' collection - fields: - _set: - description: Set the column to this value + upgrade_date: + arguments: {} + description: New value wrapper for public.device_upgrades.upgrade_date type: - name: int4 - type: named - update_column_deals_deal_name: - description: Update the 'deal_name' column in the 'deals' collection - fields: - _set: - description: Set the column to this value + type: nullable + underlying_type: + name: date_set_input + type: named + upgrade_id: + arguments: {} + description: New value wrapper for public.device_upgrades.upgrade_id type: type: nullable underlying_type: - name: varchar + name: integer_set_input type: named - update_column_deals_description: - description: Update the 'description' column in the 'deals' collection + foreign_keys: {} + public.devices: + description: 'Object type for public.devices. Description: null' fields: - _set: - description: Set the column to this value + brand: + arguments: {} + type: + name: character_varying + type: named + created_at: + arguments: {} + type: + name: timestamp_with_time_zone + type: named + device_id: + arguments: {} + type: + name: integer + type: named + image: + arguments: {} type: type: nullable underlying_type: - name: text + name: character_varying type: named - update_column_deals_end_date: - description: Update the 'end_date' column in the 'deals' collection - fields: - _set: - description: Set the column to this value + model: + arguments: {} + type: + name: character_varying + type: named + sf_record: + arguments: {} type: type: nullable underlying_type: - name: date + name: character_varying type: named - update_column_deals_max_monthly_spend: - description: Update the 'max_monthly_spend' column in the 'deals' collection + updated_at: + arguments: {} + type: + name: timestamp_with_time_zone + type: named + foreign_keys: {} + public.devices_insert_input: + description: Input type for inserting into public.devices fields: - _set: - description: Set the column to this value + brand: + arguments: {} + description: New value for public.devices.brand + type: + name: character_varying + type: named + created_at: + arguments: {} + description: New value for public.devices.created_at + type: + name: timestamp_with_time_zone + type: named + device_id: + arguments: {} + description: New value for public.devices.device_id type: type: nullable underlying_type: - name: numeric + name: integer type: named - update_column_deals_min_monthly_spend: - description: Update the 'min_monthly_spend' column in the 'deals' collection - fields: - _set: - description: Set the column to this value + image: + arguments: {} + description: New value for public.devices.image type: type: nullable underlying_type: - name: numeric + name: character_varying type: named - update_column_deals_start_date: - description: Update the 'start_date' column in the 'deals' collection - fields: - _set: - description: Set the column to this value + model: + arguments: {} + description: New value for public.devices.model + type: + name: character_varying + type: named + sf_record: + arguments: {} + description: New value for public.devices.sf_record type: type: nullable underlying_type: - name: date + name: character_varying type: named - update_column_deals_terms_conditions: - description: Update the 'terms_conditions' column in the 'deals' collection + updated_at: + arguments: {} + description: New value for public.devices.updated_at + type: + name: timestamp_with_time_zone + type: named + foreign_keys: {} + public.devices_set_input: + description: Input type for updating public.devices fields: - _set: - description: Set the column to this value + brand: + arguments: {} + description: New value wrapper for public.devices.brand type: type: nullable underlying_type: - name: text + name: character_varying_set_input type: named - update_column_device_upgrades_contract_extension_months: - description: Update the 'contract_extension_months' column in the 'device_upgrades' collection - fields: - _set: - description: Set the column to this value + created_at: + arguments: {} + description: New value wrapper for public.devices.created_at type: type: nullable underlying_type: - name: int4 + name: timestamp_with_time_zone_set_input type: named - update_column_device_upgrades_customer_id: - description: Update the 'customer_id' column in the 'device_upgrades' collection - fields: - _set: - description: Set the column to this value + device_id: + arguments: {} + description: New value wrapper for public.devices.device_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - update_column_device_upgrades_new_device_id: - description: Update the 'new_device_id' column in the 'device_upgrades' collection - fields: - _set: - description: Set the column to this value + image: + arguments: {} + description: New value wrapper for public.devices.image type: type: nullable underlying_type: - name: int4 + name: character_varying_set_input type: named - update_column_device_upgrades_old_device_id: - description: Update the 'old_device_id' column in the 'device_upgrades' collection - fields: - _set: - description: Set the column to this value + model: + arguments: {} + description: New value wrapper for public.devices.model type: type: nullable underlying_type: - name: int4 + name: character_varying_set_input type: named - update_column_device_upgrades_promotion_applied: - description: Update the 'promotion_applied' column in the 'device_upgrades' collection - fields: - _set: - description: Set the column to this value + sf_record: + arguments: {} + description: New value wrapper for public.devices.sf_record type: type: nullable underlying_type: - name: varchar + name: character_varying_set_input type: named - update_column_device_upgrades_trade_in_value: - description: Update the 'trade_in_value' column in the 'device_upgrades' collection - fields: - _set: - description: Set the column to this value + updated_at: + arguments: {} + description: New value wrapper for public.devices.updated_at type: type: nullable underlying_type: - name: numeric + name: timestamp_with_time_zone_set_input type: named - update_column_device_upgrades_upgrade_date: - description: Update the 'upgrade_date' column in the 'device_upgrades' collection + foreign_keys: {} + public.family_plan_members: + description: 'Object type for public.family_plan_members. Description: null' fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} type: - name: date + name: integer type: named - update_column_device_upgrades_upgrade_id: - description: Update the 'upgrade_id' column in the 'device_upgrades' collection - fields: - _set: - description: Set the column to this value + data_allocation_percentage: + arguments: {} type: - name: int4 - type: named - update_column_devices_brand: - description: Update the 'brand' column in the 'devices' collection - fields: - _set: - description: Set the column to this value + type: nullable + underlying_type: + name: integer + type: named + family_plan_id: + arguments: {} type: - name: varchar + name: integer type: named - update_column_devices_created_at: - description: Update the 'created_at' column in the 'devices' collection - fields: - _set: - description: Set the column to this value + role: + arguments: {} type: - name: timestamptz - type: named - update_column_devices_device_id: - description: Update the 'device_id' column in the 'devices' collection + type: nullable + underlying_type: + name: character_varying + type: named + foreign_keys: {} + public.family_plan_members_insert_input: + description: Input type for inserting into public.family_plan_members fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} + description: New value for public.family_plan_members.customer_id type: - name: int4 + name: integer type: named - update_column_devices_image: - description: Update the 'image' column in the 'devices' collection - fields: - _set: - description: Set the column to this value + data_allocation_percentage: + arguments: {} + description: New value for public.family_plan_members.data_allocation_percentage type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_devices_model: - description: Update the 'model' column in the 'devices' collection - fields: - _set: - description: Set the column to this value + family_plan_id: + arguments: {} + description: New value for public.family_plan_members.family_plan_id type: - name: varchar + name: integer type: named - update_column_devices_sf_record: - description: Update the 'sf_record' column in the 'devices' collection - fields: - _set: - description: Set the column to this value + role: + arguments: {} + description: New value for public.family_plan_members.role type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - update_column_devices_updated_at: - description: Update the 'updated_at' column in the 'devices' collection + foreign_keys: {} + public.family_plan_members_set_input: + description: Input type for updating public.family_plan_members fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} + description: New value wrapper for public.family_plan_members.customer_id type: - name: timestamptz - type: named - update_column_family_plan_members_customer_id: - description: Update the 'customer_id' column in the 'family_plan_members' collection - fields: - _set: - description: Set the column to this value + type: nullable + underlying_type: + name: integer_set_input + type: named + data_allocation_percentage: + arguments: {} + description: New value wrapper for public.family_plan_members.data_allocation_percentage type: - name: int4 - type: named - update_column_family_plan_members_data_allocation_percentage: - description: Update the 'data_allocation_percentage' column in the 'family_plan_members' collection - fields: - _set: - description: Set the column to this value + type: nullable + underlying_type: + name: integer_set_input + type: named + family_plan_id: + arguments: {} + description: New value wrapper for public.family_plan_members.family_plan_id + type: + type: nullable + underlying_type: + name: integer_set_input + type: named + role: + arguments: {} + description: New value wrapper for public.family_plan_members.role type: type: nullable underlying_type: - name: int4 + name: character_varying_set_input type: named - update_column_family_plan_members_family_plan_id: - description: Update the 'family_plan_id' column in the 'family_plan_members' collection + foreign_keys: {} + public.family_plans: + description: 'Object type for public.family_plans. Description: null' fields: - _set: - description: Set the column to this value + created_at: + arguments: {} + type: + type: nullable + underlying_type: + name: timestamp_with_time_zone + type: named + family_plan_id: + arguments: {} type: - name: int4 + name: integer type: named - update_column_family_plan_members_role: - description: Update the 'role' column in the 'family_plan_members' collection - fields: - _set: - description: Set the column to this value + max_members: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_family_plans_created_at: - description: Update the 'created_at' column in the 'family_plans' collection - fields: - _set: - description: Set the column to this value + monthly_fee: + arguments: {} type: type: nullable underlying_type: - name: timestamptz + name: decimal type: named - update_column_family_plans_family_plan_id: - description: Update the 'family_plan_id' column in the 'family_plans' collection - fields: - _set: - description: Set the column to this value + plan_name: + arguments: {} type: - name: int4 - type: named - update_column_family_plans_max_members: - description: Update the 'max_members' column in the 'family_plans' collection - fields: - _set: - description: Set the column to this value + type: nullable + underlying_type: + name: character_varying + type: named + primary_customer_id: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: integer type: named - update_column_family_plans_monthly_fee: - description: Update the 'monthly_fee' column in the 'family_plans' collection - fields: - _set: - description: Set the column to this value + shared_data_gb: + arguments: {} type: type: nullable underlying_type: - name: numeric + name: integer type: named - update_column_family_plans_plan_name: - description: Update the 'plan_name' column in the 'family_plans' collection + foreign_keys: {} + public.family_plans_insert_input: + description: Input type for inserting into public.family_plans fields: - _set: - description: Set the column to this value + created_at: + arguments: {} + description: New value for public.family_plans.created_at type: type: nullable underlying_type: - name: varchar + name: timestamp_with_time_zone type: named - update_column_family_plans_primary_customer_id: - description: Update the 'primary_customer_id' column in the 'family_plans' collection - fields: - _set: - description: Set the column to this value + family_plan_id: + arguments: {} + description: New value for public.family_plans.family_plan_id type: type: nullable underlying_type: - name: int4 + name: integer type: named - update_column_family_plans_shared_data_gb: - description: Update the 'shared_data_gb' column in the 'family_plans' collection - fields: - _set: - description: Set the column to this value + max_members: + arguments: {} + description: New value for public.family_plans.max_members type: type: nullable underlying_type: - name: int4 + name: integer type: named - update_column_feedback_category: - description: Update the 'category' column in the 'feedback' collection - fields: - _set: - description: Set the column to this value + monthly_fee: + arguments: {} + description: New value for public.family_plans.monthly_fee type: type: nullable underlying_type: - name: varchar + name: decimal type: named - update_column_feedback_comments: - description: Update the 'comments' column in the 'feedback' collection - fields: - _set: - description: Set the column to this value + plan_name: + arguments: {} + description: New value for public.family_plans.plan_name type: type: nullable underlying_type: - name: text + name: character_varying type: named - update_column_feedback_customer_id: - description: Update the 'customer_id' column in the 'feedback' collection - fields: - _set: - description: Set the column to this value + primary_customer_id: + arguments: {} + description: New value for public.family_plans.primary_customer_id type: type: nullable underlying_type: - name: int4 + name: integer type: named - update_column_feedback_feedback_date: - description: Update the 'feedback_date' column in the 'feedback' collection - fields: - _set: - description: Set the column to this value + shared_data_gb: + arguments: {} + description: New value for public.family_plans.shared_data_gb type: type: nullable underlying_type: - name: timestamptz + name: integer type: named - update_column_feedback_feedback_id: - description: Update the 'feedback_id' column in the 'feedback' collection + foreign_keys: {} + public.family_plans_set_input: + description: Input type for updating public.family_plans fields: - _set: - description: Set the column to this value + created_at: + arguments: {} + description: New value wrapper for public.family_plans.created_at type: - name: int4 - type: named - update_column_feedback_followup_date: - description: Update the 'followup_date' column in the 'feedback' collection - fields: - _set: - description: Set the column to this value + type: nullable + underlying_type: + name: timestamp_with_time_zone_set_input + type: named + family_plan_id: + arguments: {} + description: New value wrapper for public.family_plans.family_plan_id type: type: nullable underlying_type: - name: timestamptz + name: integer_set_input type: named - update_column_feedback_followup_notes: - description: Update the 'followup_notes' column in the 'feedback' collection - fields: - _set: - description: Set the column to this value + max_members: + arguments: {} + description: New value wrapper for public.family_plans.max_members + type: + type: nullable + underlying_type: + name: integer_set_input + type: named + monthly_fee: + arguments: {} + description: New value wrapper for public.family_plans.monthly_fee + type: + type: nullable + underlying_type: + name: decimal_set_input + type: named + plan_name: + arguments: {} + description: New value wrapper for public.family_plans.plan_name + type: + type: nullable + underlying_type: + name: character_varying_set_input + type: named + primary_customer_id: + arguments: {} + description: New value wrapper for public.family_plans.primary_customer_id type: type: nullable underlying_type: - name: text + name: integer_set_input type: named - update_column_feedback_rating: - description: Update the 'rating' column in the 'feedback' collection - fields: - _set: - description: Set the column to this value + shared_data_gb: + arguments: {} + description: New value wrapper for public.family_plans.shared_data_gb type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - update_column_feedback_requires_followup: - description: Update the 'requires_followup' column in the 'feedback' collection + foreign_keys: {} + public.feedback: + description: 'Object type for public.feedback. Description: null' fields: - _set: - description: Set the column to this value + category: + arguments: {} type: type: nullable underlying_type: - name: bool + name: character_varying type: named - update_column_interactions_agent_id: - description: Update the 'agent_id' column in the 'interactions' collection - fields: - _set: - description: Set the column to this value + comments: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: text type: named - update_column_interactions_channel: - description: Update the 'channel' column in the 'interactions' collection - fields: - _set: - description: Set the column to this value - type: - name: varchar - type: named - update_column_interactions_customer_id: - description: Update the 'customer_id' column in the 'interactions' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: integer type: named - update_column_interactions_duration_seconds: - description: Update the 'duration_seconds' column in the 'interactions' collection - fields: - _set: - description: Set the column to this value + feedback_date: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: timestamp_with_time_zone type: named - update_column_interactions_interaction_id: - description: Update the 'interaction_id' column in the 'interactions' collection - fields: - _set: - description: Set the column to this value + feedback_id: + arguments: {} type: - name: int4 + name: integer type: named - update_column_interactions_interaction_time: - description: Update the 'interaction_time' column in the 'interactions' collection - fields: - _set: - description: Set the column to this value + followup_date: + arguments: {} type: type: nullable underlying_type: - name: timestamptz + name: timestamp_with_time_zone type: named - update_column_interactions_notes: - description: Update the 'notes' column in the 'interactions' collection - fields: - _set: - description: Set the column to this value + followup_notes: + arguments: {} type: type: nullable underlying_type: name: text type: named - update_column_interactions_resolution_status: - description: Update the 'resolution_status' column in the 'interactions' collection - fields: - _set: - description: Set the column to this value + rating: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_interactions_satisfaction_rating: - description: Update the 'satisfaction_rating' column in the 'interactions' collection - fields: - _set: - description: Set the column to this value + requires_followup: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: boolean type: named - update_column_interactions_topic: - description: Update the 'topic' column in the 'interactions' collection + foreign_keys: {} + public.feedback_insert_input: + description: Input type for inserting into public.feedback fields: - _set: - description: Set the column to this value + category: + arguments: {} + description: New value for public.feedback.category type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - update_column_iot_devices_activation_date: - description: Update the 'activation_date' column in the 'iot_devices' collection - fields: - _set: - description: Set the column to this value + comments: + arguments: {} + description: New value for public.feedback.comments type: type: nullable underlying_type: - name: date + name: text type: named - update_column_iot_devices_customer_id: - description: Update the 'customer_id' column in the 'iot_devices' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} + description: New value for public.feedback.customer_id type: type: nullable underlying_type: - name: int4 + name: integer type: named - update_column_iot_devices_data_plan_id: - description: Update the 'data_plan_id' column in the 'iot_devices' collection - fields: - _set: - description: Set the column to this value + feedback_date: + arguments: {} + description: New value for public.feedback.feedback_date type: type: nullable underlying_type: - name: int4 + name: timestamp_with_time_zone type: named - update_column_iot_devices_device_type: - description: Update the 'device_type' column in the 'iot_devices' collection - fields: - _set: - description: Set the column to this value + feedback_id: + arguments: {} + description: New value for public.feedback.feedback_id type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_iot_devices_imei: - description: Update the 'imei' column in the 'iot_devices' collection - fields: - _set: - description: Set the column to this value + followup_date: + arguments: {} + description: New value for public.feedback.followup_date type: type: nullable underlying_type: - name: varchar + name: timestamp_with_time_zone type: named - update_column_iot_devices_iot_device_id: - description: Update the 'iot_device_id' column in the 'iot_devices' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_iot_devices_last_active_date: - description: Update the 'last_active_date' column in the 'iot_devices' collection - fields: - _set: - description: Set the column to this value + followup_notes: + arguments: {} + description: New value for public.feedback.followup_notes type: type: nullable underlying_type: - name: timestamptz + name: text type: named - update_column_iot_devices_monthly_data_usage_mb: - description: Update the 'monthly_data_usage_mb' column in the 'iot_devices' collection - fields: - _set: - description: Set the column to this value + rating: + arguments: {} + description: New value for public.feedback.rating type: type: nullable underlying_type: - name: numeric + name: integer type: named - update_column_iot_devices_sim_iccid: - description: Update the 'sim_iccid' column in the 'iot_devices' collection - fields: - _set: - description: Set the column to this value + requires_followup: + arguments: {} + description: New value for public.feedback.requires_followup type: type: nullable underlying_type: - name: varchar + name: boolean type: named - update_column_iot_devices_status: - description: Update the 'status' column in the 'iot_devices' collection + foreign_keys: {} + public.feedback_set_input: + description: Input type for updating public.feedback fields: - _set: - description: Set the column to this value + category: + arguments: {} + description: New value wrapper for public.feedback.category type: type: nullable underlying_type: - name: varchar + name: character_varying_set_input type: named - update_column_loyalty_rewards_customer_id: - description: Update the 'customer_id' column in the 'loyalty_rewards' collection - fields: - _set: - description: Set the column to this value + comments: + arguments: {} + description: New value wrapper for public.feedback.comments type: type: nullable underlying_type: - name: int4 + name: text_set_input type: named - update_column_loyalty_rewards_last_activity_date: - description: Update the 'last_activity_date' column in the 'loyalty_rewards' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} + description: New value wrapper for public.feedback.customer_id type: type: nullable underlying_type: - name: date + name: integer_set_input type: named - update_column_loyalty_rewards_points_balance: - description: Update the 'points_balance' column in the 'loyalty_rewards' collection - fields: - _set: - description: Set the column to this value + feedback_date: + arguments: {} + description: New value wrapper for public.feedback.feedback_date type: type: nullable underlying_type: - name: int4 + name: timestamp_with_time_zone_set_input type: named - update_column_loyalty_rewards_points_earned: - description: Update the 'points_earned' column in the 'loyalty_rewards' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_loyalty_rewards_points_redeemed: - description: Update the 'points_redeemed' column in the 'loyalty_rewards' collection - fields: - _set: - description: Set the column to this value + feedback_id: + arguments: {} + description: New value wrapper for public.feedback.feedback_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - update_column_loyalty_rewards_reward_id: - description: Update the 'reward_id' column in the 'loyalty_rewards' collection - fields: - _set: - description: Set the column to this value + followup_date: + arguments: {} + description: New value wrapper for public.feedback.followup_date type: - name: int4 - type: named - update_column_loyalty_rewards_tier: - description: Update the 'tier' column in the 'loyalty_rewards' collection - fields: - _set: - description: Set the column to this value + type: nullable + underlying_type: + name: timestamp_with_time_zone_set_input + type: named + followup_notes: + arguments: {} + description: New value wrapper for public.feedback.followup_notes type: type: nullable underlying_type: - name: varchar + name: text_set_input type: named - update_column_network_capacity: - description: Update the 'capacity' column in the 'network' collection - fields: - _set: - description: Set the column to this value + rating: + arguments: {} + description: New value wrapper for public.feedback.rating type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - update_column_network_latitude: - description: Update the 'latitude' column in the 'network' collection - fields: - _set: - description: Set the column to this value + requires_followup: + arguments: {} + description: New value wrapper for public.feedback.requires_followup type: type: nullable underlying_type: - name: numeric + name: boolean_set_input type: named - update_column_network_longitude: - description: Update the 'longitude' column in the 'network' collection + foreign_keys: {} + public.interactions: + description: 'Object type for public.interactions. Description: null' fields: - _set: - description: Set the column to this value + agent_id: + arguments: {} type: type: nullable underlying_type: - name: numeric + name: integer type: named - update_column_network_node_id: - description: Update the 'node_id' column in the 'network' collection - fields: - _set: - description: Set the column to this value + channel: + arguments: {} type: - name: int4 + name: character_varying type: named - update_column_network_node_name: - description: Update the 'node_name' column in the 'network' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_network_quality: - description: Update the 'quality' column in the 'network' collection - fields: - _set: - description: Set the column to this value + duration_seconds: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_network_status: - description: Update the 'status' column in the 'network' collection - fields: - _set: - description: Set the column to this value + interaction_id: + arguments: {} + type: + name: integer + type: named + interaction_time: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: timestamp_with_time_zone type: named - update_column_number_portability_completion_date: - description: Update the 'completion_date' column in the 'number_portability' collection - fields: - _set: - description: Set the column to this value + notes: + arguments: {} type: type: nullable underlying_type: - name: timestamptz + name: text type: named - update_column_number_portability_customer_id: - description: Update the 'customer_id' column in the 'number_portability' collection - fields: - _set: - description: Set the column to this value + resolution_status: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - update_column_number_portability_notes: - description: Update the 'notes' column in the 'number_portability' collection - fields: - _set: - description: Set the column to this value + satisfaction_rating: + arguments: {} type: type: nullable underlying_type: - name: text + name: integer type: named - update_column_number_portability_phone_number: - description: Update the 'phone_number' column in the 'number_portability' collection - fields: - _set: - description: Set the column to this value + topic: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - update_column_number_portability_port_date: - description: Update the 'port_date' column in the 'number_portability' collection + foreign_keys: {} + public.interactions_insert_input: + description: Input type for inserting into public.interactions fields: - _set: - description: Set the column to this value + agent_id: + arguments: {} + description: New value for public.interactions.agent_id type: type: nullable underlying_type: - name: timestamptz + name: integer type: named - update_column_number_portability_portability_id: - description: Update the 'portability_id' column in the 'number_portability' collection - fields: - _set: - description: Set the column to this value + channel: + arguments: {} + description: New value for public.interactions.channel type: - name: int4 + name: character_varying type: named - update_column_number_portability_previous_carrier: - description: Update the 'previous_carrier' column in the 'number_portability' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} + description: New value for public.interactions.customer_id type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_number_portability_status: - description: Update the 'status' column in the 'number_portability' collection - fields: - _set: - description: Set the column to this value + duration_seconds: + arguments: {} + description: New value for public.interactions.duration_seconds type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_plans_data_limit_gb: - description: Update the 'data_limit_gb' column in the 'plans' collection - fields: - _set: - description: Set the column to this value + interaction_id: + arguments: {} + description: New value for public.interactions.interaction_id type: type: nullable underlying_type: - name: int4 + name: integer type: named - update_column_plans_description: - description: Update the 'description' column in the 'plans' collection - fields: - _set: - description: Set the column to this value + interaction_time: + arguments: {} + description: New value for public.interactions.interaction_time type: type: nullable underlying_type: - name: text + name: timestamp_with_time_zone type: named - update_column_plans_international_roaming: - description: Update the 'international_roaming' column in the 'plans' collection - fields: - _set: - description: Set the column to this value + notes: + arguments: {} + description: New value for public.interactions.notes type: type: nullable underlying_type: - name: bool + name: text type: named - update_column_plans_monthly_fee: - description: Update the 'monthly_fee' column in the 'plans' collection - fields: - _set: - description: Set the column to this value + resolution_status: + arguments: {} + description: New value for public.interactions.resolution_status type: type: nullable underlying_type: - name: numeric + name: character_varying type: named - update_column_plans_plan_id: - description: Update the 'plan_id' column in the 'plans' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_plans_plan_name: - description: Update the 'plan_name' column in the 'plans' collection - fields: - _set: - description: Set the column to this value + satisfaction_rating: + arguments: {} + description: New value for public.interactions.satisfaction_rating type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_plans_roaming_countries: - description: Update the 'roaming_countries' column in the 'plans' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - element_type: - type: nullable - underlying_type: - name: text - type: named - type: array - update_column_plans_roaming_data_gb: - description: Update the 'roaming_data_gb' column in the 'plans' collection - fields: - _set: - description: Set the column to this value + topic: + arguments: {} + description: New value for public.interactions.topic type: type: nullable underlying_type: - name: numeric + name: character_varying type: named - update_column_plans_roaming_voice_minutes: - description: Update the 'roaming_voice_minutes' column in the 'plans' collection + foreign_keys: {} + public.interactions_set_input: + description: Input type for updating public.interactions fields: - _set: - description: Set the column to this value + agent_id: + arguments: {} + description: New value wrapper for public.interactions.agent_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - update_column_plans_sf_record: - description: Update the 'sf_record' column in the 'plans' collection - fields: - _set: - description: Set the column to this value + channel: + arguments: {} + description: New value wrapper for public.interactions.channel type: type: nullable underlying_type: - name: varchar + name: character_varying_set_input type: named - update_column_plans_sms_limit: - description: Update the 'sms_limit' column in the 'plans' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} + description: New value wrapper for public.interactions.customer_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - update_column_plans_type: - description: Update the 'type' column in the 'plans' collection - fields: - _set: - description: Set the column to this value + duration_seconds: + arguments: {} + description: New value wrapper for public.interactions.duration_seconds type: type: nullable underlying_type: - name: text + name: integer_set_input type: named - update_column_plans_voice_limit_minutes: - description: Update the 'voice_limit_minutes' column in the 'plans' collection - fields: - _set: - description: Set the column to this value + interaction_id: + arguments: {} + description: New value wrapper for public.interactions.interaction_id type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - update_column_referrals_bonus_amount: - description: Update the 'bonus_amount' column in the 'referrals' collection - fields: - _set: - description: Set the column to this value + interaction_time: + arguments: {} + description: New value wrapper for public.interactions.interaction_time type: type: nullable underlying_type: - name: numeric + name: timestamp_with_time_zone_set_input type: named - update_column_referrals_bonus_paid: - description: Update the 'bonus_paid' column in the 'referrals' collection - fields: - _set: - description: Set the column to this value + notes: + arguments: {} + description: New value wrapper for public.interactions.notes type: type: nullable underlying_type: - name: bool + name: text_set_input type: named - update_column_referrals_referral_date: - description: Update the 'referral_date' column in the 'referrals' collection - fields: - _set: - description: Set the column to this value - type: - name: date - type: named - update_column_referrals_referral_id: - description: Update the 'referral_id' column in the 'referrals' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_column_referrals_referred_id: - description: Update the 'referred_id' column in the 'referrals' collection - fields: - _set: - description: Set the column to this value + resolution_status: + arguments: {} + description: New value wrapper for public.interactions.resolution_status type: type: nullable underlying_type: - name: int4 + name: character_varying_set_input type: named - update_column_referrals_referrer_id: - description: Update the 'referrer_id' column in the 'referrals' collection - fields: - _set: - description: Set the column to this value + satisfaction_rating: + arguments: {} + description: New value wrapper for public.interactions.satisfaction_rating type: type: nullable underlying_type: - name: int4 + name: integer_set_input type: named - update_column_referrals_status: - description: Update the 'status' column in the 'referrals' collection - fields: - _set: - description: Set the column to this value + topic: + arguments: {} + description: New value wrapper for public.interactions.topic type: type: nullable underlying_type: - name: varchar + name: character_varying_set_input type: named - update_column_service_interactions_agent_id: - description: Update the 'agent_id' column in the 'service_interactions' collection + foreign_keys: {} + public.iot_devices: + description: 'Object type for public.iot_devices. Description: null' fields: - _set: - description: Set the column to this value + activation_date: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: date type: named - update_column_service_interactions_category: - description: Update the 'category' column in the 'service_interactions' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_service_interactions_channel: - description: Update the 'channel' column in the 'service_interactions' collection - fields: - _set: - description: Set the column to this value + data_plan_id: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_service_interactions_customer_id: - description: Update the 'customer_id' column in the 'service_interactions' collection - fields: - _set: - description: Set the column to this value + device_type: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - update_column_service_interactions_interaction_date: - description: Update the 'interaction_date' column in the 'service_interactions' collection - fields: - _set: - description: Set the column to this value + imei: + arguments: {} type: type: nullable underlying_type: - name: timestamptz + name: character_varying type: named - update_column_service_interactions_interaction_id: - description: Update the 'interaction_id' column in the 'service_interactions' collection - fields: - _set: - description: Set the column to this value + iot_device_id: + arguments: {} type: - name: int4 + name: integer type: named - update_column_service_interactions_notes: - description: Update the 'notes' column in the 'service_interactions' collection - fields: - _set: - description: Set the column to this value + last_active_date: + arguments: {} type: type: nullable underlying_type: - name: text + name: timestamp_with_time_zone type: named - update_column_service_interactions_resolution_status: - description: Update the 'resolution_status' column in the 'service_interactions' collection - fields: - _set: - description: Set the column to this value + monthly_data_usage_mb: + arguments: {} type: type: nullable underlying_type: - name: varchar + name: decimal type: named - update_column_service_interactions_resolution_time_minutes: - description: Update the 'resolution_time_minutes' column in the 'service_interactions' collection - fields: - _set: - description: Set the column to this value + sim_iccid: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - update_column_service_interactions_satisfaction_score: - description: Update the 'satisfaction_score' column in the 'service_interactions' collection - fields: - _set: - description: Set the column to this value + status: + arguments: {} type: type: nullable underlying_type: - name: int4 + name: character_varying type: named - update_column_voip_services_activation_date: - description: Update the 'activation_date' column in the 'voip_services' collection + foreign_keys: {} + public.iot_devices_insert_input: + description: Input type for inserting into public.iot_devices fields: - _set: - description: Set the column to this value + activation_date: + arguments: {} + description: New value for public.iot_devices.activation_date type: type: nullable underlying_type: name: date type: named - update_column_voip_services_customer_id: - description: Update the 'customer_id' column in the 'voip_services' collection - fields: - _set: - description: Set the column to this value + customer_id: + arguments: {} + description: New value for public.iot_devices.customer_id type: type: nullable underlying_type: - name: int4 + name: integer type: named - update_column_voip_services_features: - description: Update the 'features' column in the 'voip_services' collection - fields: - _set: - description: Set the column to this value + data_plan_id: + arguments: {} + description: New value for public.iot_devices.data_plan_id type: type: nullable underlying_type: - element_type: - type: nullable - underlying_type: - name: text - type: named - type: array - update_column_voip_services_monthly_fee: - description: Update the 'monthly_fee' column in the 'voip_services' collection - fields: - _set: - description: Set the column to this value + name: integer + type: named + device_type: + arguments: {} + description: New value for public.iot_devices.device_type type: type: nullable underlying_type: - name: numeric + name: character_varying type: named - update_column_voip_services_service_number: - description: Update the 'service_number' column in the 'voip_services' collection - fields: - _set: - description: Set the column to this value + imei: + arguments: {} + description: New value for public.iot_devices.imei type: type: nullable underlying_type: - name: varchar + name: character_varying type: named - update_column_voip_services_service_type: - description: Update the 'service_type' column in the 'voip_services' collection - fields: - _set: - description: Set the column to this value + iot_device_id: + arguments: {} + description: New value for public.iot_devices.iot_device_id type: type: nullable underlying_type: - name: varchar + name: integer type: named - update_column_voip_services_status: - description: Update the 'status' column in the 'voip_services' collection - fields: - _set: - description: Set the column to this value + last_active_date: + arguments: {} + description: New value for public.iot_devices.last_active_date type: type: nullable underlying_type: - name: varchar + name: timestamp_with_time_zone type: named - update_column_voip_services_voip_id: - description: Update the 'voip_id' column in the 'voip_services' collection - fields: - _set: - description: Set the column to this value - type: - name: int4 - type: named - update_credit_cards_by_credit_card_id_response: - description: Responses from the 'update_credit_cards_by_credit_card_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + monthly_data_usage_mb: + arguments: {} + description: New value for public.iot_devices.monthly_data_usage_mb type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + type: nullable + underlying_type: + name: decimal + type: named + sim_iccid: + arguments: {} + description: New value for public.iot_devices.sim_iccid type: - element_type: - name: credit_cards + type: nullable + underlying_type: + name: character_varying type: named - type: array - update_credit_cards_by_credit_card_id_update_columns: - description: Update the columns of the 'credit_cards' collection - fields: - created_at: - description: Update the 'created_at' column in the 'credit_cards' collection. + status: + arguments: {} + description: New value for public.iot_devices.status type: type: nullable underlying_type: - name: update_column_credit_cards_created_at + name: character_varying type: named - credit_card_id: - description: Update the 'credit_card_id' column in the 'credit_cards' collection. + foreign_keys: {} + public.iot_devices_set_input: + description: Input type for updating public.iot_devices + fields: + activation_date: + arguments: {} + description: New value wrapper for public.iot_devices.activation_date type: type: nullable underlying_type: - name: update_column_credit_cards_credit_card_id + name: date_set_input type: named customer_id: - description: Update the 'customer_id' column in the 'credit_cards' collection. + arguments: {} + description: New value wrapper for public.iot_devices.customer_id type: type: nullable underlying_type: - name: update_column_credit_cards_customer_id + name: integer_set_input type: named - cvv: - description: Update the 'cvv' column in the 'credit_cards' collection. + data_plan_id: + arguments: {} + description: New value wrapper for public.iot_devices.data_plan_id type: type: nullable underlying_type: - name: update_column_credit_cards_cvv + name: integer_set_input type: named - expiry: - description: Update the 'expiry' column in the 'credit_cards' collection. + device_type: + arguments: {} + description: New value wrapper for public.iot_devices.device_type type: type: nullable underlying_type: - name: update_column_credit_cards_expiry + name: character_varying_set_input type: named - number: - description: Update the 'number' column in the 'credit_cards' collection. + imei: + arguments: {} + description: New value wrapper for public.iot_devices.imei type: type: nullable underlying_type: - name: update_column_credit_cards_number + name: character_varying_set_input type: named - updated_at: - description: Update the 'updated_at' column in the 'credit_cards' collection. + iot_device_id: + arguments: {} + description: New value wrapper for public.iot_devices.iot_device_id type: type: nullable underlying_type: - name: update_column_credit_cards_updated_at + name: integer_set_input type: named - update_customer_link_by_customer_id_response: - description: Responses from the 'update_customer_link_by_customer_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + last_active_date: + arguments: {} + description: New value wrapper for public.iot_devices.last_active_date type: - element_type: - name: customer_link + type: nullable + underlying_type: + name: timestamp_with_time_zone_set_input type: named - type: array - update_customer_link_by_customer_id_update_columns: - description: Update the columns of the 'customer_link' collection - fields: - customer_guid: - description: Update the 'customer_guid' column in the 'customer_link' collection. + monthly_data_usage_mb: + arguments: {} + description: New value wrapper for public.iot_devices.monthly_data_usage_mb type: type: nullable underlying_type: - name: update_column_customer_link_customer_guid + name: decimal_set_input type: named - customer_id: - description: Update the 'customer_id' column in the 'customer_link' collection. + sim_iccid: + arguments: {} + description: New value wrapper for public.iot_devices.sim_iccid type: type: nullable underlying_type: - name: update_column_customer_link_customer_id + name: character_varying_set_input type: named - id: - description: Update the 'id' column in the 'customer_link' collection. + status: + arguments: {} + description: New value wrapper for public.iot_devices.status type: type: nullable underlying_type: - name: update_column_customer_link_id + name: character_varying_set_input type: named - update_customer_link_by_id_response: - description: Responses from the 'update_customer_link_by_id' procedure + foreign_keys: {} + public.loyalty_rewards: + description: 'Object type for public.loyalty_rewards. Description: null' fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + customer_id: + arguments: {} type: - element_type: - name: customer_link + type: nullable + underlying_type: + name: integer type: named - type: array - update_customer_link_by_id_update_columns: - description: Update the columns of the 'customer_link' collection - fields: - customer_guid: - description: Update the 'customer_guid' column in the 'customer_link' collection. + last_activity_date: + arguments: {} type: type: nullable underlying_type: - name: update_column_customer_link_customer_guid + name: date type: named - customer_id: - description: Update the 'customer_id' column in the 'customer_link' collection. + points_balance: + arguments: {} type: type: nullable underlying_type: - name: update_column_customer_link_customer_id + name: integer type: named - id: - description: Update the 'id' column in the 'customer_link' collection. + points_earned: + arguments: {} + type: + name: integer + type: named + points_redeemed: + arguments: {} type: type: nullable underlying_type: - name: update_column_customer_link_id + name: integer type: named - update_customer_network_by_customer_id_and_node_id_response: - description: Responses from the 'update_customer_network_by_customer_id_and_node_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + reward_id: + arguments: {} type: - name: int4 + name: integer type: named - returning: - description: Data from rows affected by the mutation + tier: + arguments: {} type: - element_type: - name: customer_network + type: nullable + underlying_type: + name: character_varying type: named - type: array - update_customer_network_by_customer_id_and_node_id_update_columns: - description: Update the columns of the 'customer_network' collection + foreign_keys: {} + public.loyalty_rewards_insert_input: + description: Input type for inserting into public.loyalty_rewards fields: customer_id: - description: Update the 'customer_id' column in the 'customer_network' collection. + arguments: {} + description: New value for public.loyalty_rewards.customer_id type: type: nullable underlying_type: - name: update_column_customer_network_customer_id + name: integer type: named - node_id: - description: Update the 'node_id' column in the 'customer_network' collection. + last_activity_date: + arguments: {} + description: New value for public.loyalty_rewards.last_activity_date type: type: nullable underlying_type: - name: update_column_customer_network_node_id - type: named - update_customer_plan_devices_by_customer_plan_id_and_device_id_response: - description: Responses from the 'update_customer_plan_devices_by_customer_plan_id_and_device_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: customer_plan_devices + name: date type: named - type: array - update_customer_plan_devices_by_customer_plan_id_and_device_id_update_columns: - description: Update the columns of the 'customer_plan_devices' collection - fields: - customer_plan_id: - description: Update the 'customer_plan_id' column in the 'customer_plan_devices' collection. + points_balance: + arguments: {} + description: New value for public.loyalty_rewards.points_balance type: type: nullable underlying_type: - name: update_column_customer_plan_devices_customer_plan_id + name: integer type: named - device_id: - description: Update the 'device_id' column in the 'customer_plan_devices' collection. + points_earned: + arguments: {} + description: New value for public.loyalty_rewards.points_earned + type: + name: integer + type: named + points_redeemed: + arguments: {} + description: New value for public.loyalty_rewards.points_redeemed type: type: nullable underlying_type: - name: update_column_customer_plan_devices_device_id + name: integer type: named - device_imei: - description: Update the 'device_imei' column in the 'customer_plan_devices' collection. + reward_id: + arguments: {} + description: New value for public.loyalty_rewards.reward_id type: type: nullable underlying_type: - name: update_column_customer_plan_devices_device_imei + name: integer type: named - sim_iccid: - description: Update the 'sim_iccid' column in the 'customer_plan_devices' collection. + tier: + arguments: {} + description: New value for public.loyalty_rewards.tier type: type: nullable underlying_type: - name: update_column_customer_plan_devices_sim_iccid - type: named - update_customer_plans_by_customer_plan_id_response: - description: Responses from the 'update_customer_plans_by_customer_plan_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: customer_plans + name: character_varying type: named - type: array - update_customer_plans_by_customer_plan_id_update_columns: - description: Update the columns of the 'customer_plans' collection + foreign_keys: {} + public.loyalty_rewards_set_input: + description: Input type for updating public.loyalty_rewards fields: - cell_number: - description: Update the 'cell_number' column in the 'customer_plans' collection. + customer_id: + arguments: {} + description: New value wrapper for public.loyalty_rewards.customer_id type: type: nullable underlying_type: - name: update_column_customer_plans_cell_number + name: integer_set_input type: named - customer_id: - description: Update the 'customer_id' column in the 'customer_plans' collection. + last_activity_date: + arguments: {} + description: New value wrapper for public.loyalty_rewards.last_activity_date type: type: nullable underlying_type: - name: update_column_customer_plans_customer_id + name: date_set_input type: named - customer_plan_id: - description: Update the 'customer_plan_id' column in the 'customer_plans' collection. + points_balance: + arguments: {} + description: New value wrapper for public.loyalty_rewards.points_balance type: type: nullable underlying_type: - name: update_column_customer_plans_customer_plan_id + name: integer_set_input type: named - data_allocation_gb: - description: Update the 'data_allocation_gb' column in the 'customer_plans' collection. + points_earned: + arguments: {} + description: New value wrapper for public.loyalty_rewards.points_earned type: type: nullable underlying_type: - name: update_column_customer_plans_data_allocation_gb + name: integer_set_input type: named - data_used_gb: - description: Update the 'data_used_gb' column in the 'customer_plans' collection. + points_redeemed: + arguments: {} + description: New value wrapper for public.loyalty_rewards.points_redeemed type: type: nullable underlying_type: - name: update_column_customer_plans_data_used_gb + name: integer_set_input type: named - end_date: - description: Update the 'end_date' column in the 'customer_plans' collection. + reward_id: + arguments: {} + description: New value wrapper for public.loyalty_rewards.reward_id type: type: nullable underlying_type: - name: update_column_customer_plans_end_date + name: integer_set_input type: named - plan_id: - description: Update the 'plan_id' column in the 'customer_plans' collection. + tier: + arguments: {} + description: New value wrapper for public.loyalty_rewards.tier type: type: nullable underlying_type: - name: update_column_customer_plans_plan_id + name: character_varying_set_input type: named - rollover_data_gb: - description: Update the 'rollover_data_gb' column in the 'customer_plans' collection. + foreign_keys: {} + public.network: + description: 'Object type for public.network. Description: null' + fields: + capacity: + arguments: {} type: type: nullable underlying_type: - name: update_column_customer_plans_rollover_data_gb + name: integer type: named - start_date: - description: Update the 'start_date' column in the 'customer_plans' collection. + latitude: + arguments: {} type: type: nullable underlying_type: - name: update_column_customer_plans_start_date + name: decimal type: named - status: - description: Update the 'status' column in the 'customer_plans' collection. + longitude: + arguments: {} type: type: nullable underlying_type: - name: update_column_customer_plans_status + name: decimal type: named - update_customers_by_customer_id_response: - description: Responses from the 'update_customers_by_customer_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + node_id: + arguments: {} type: - name: int4 + name: integer type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: customers - type: named - type: array - update_customers_by_customer_id_update_columns: - description: Update the columns of the 'customers' collection - fields: - address: - description: Update the 'address' column in the 'customers' collection. + node_name: + arguments: {} type: type: nullable underlying_type: - name: update_column_customers_address + name: character_varying type: named - auth_user_id: - description: Update the 'auth_user_id' column in the 'customers' collection. + quality: + arguments: {} type: type: nullable underlying_type: - name: update_column_customers_auth_user_id + name: character_varying type: named - churn_risk: - description: Update the 'churn_risk' column in the 'customers' collection. + status: + arguments: {} type: type: nullable underlying_type: - name: update_column_customers_churn_risk + name: character_varying type: named - churn_risk_factors: - description: Update the 'churn_risk_factors' column in the 'customers' collection. + foreign_keys: {} + public.network_insert_input: + description: Input type for inserting into public.network + fields: + capacity: + arguments: {} + description: New value for public.network.capacity type: type: nullable underlying_type: - name: update_column_customers_churn_risk_factors + name: integer type: named - city: - description: Update the 'city' column in the 'customers' collection. + latitude: + arguments: {} + description: New value for public.network.latitude type: type: nullable underlying_type: - name: update_column_customers_city + name: decimal type: named - country: - description: Update the 'country' column in the 'customers' collection. + longitude: + arguments: {} + description: New value for public.network.longitude type: type: nullable underlying_type: - name: update_column_customers_country + name: decimal type: named - customer_id: - description: Update the 'customer_id' column in the 'customers' collection. + node_id: + arguments: {} + description: New value for public.network.node_id type: type: nullable underlying_type: - name: update_column_customers_customer_id + name: integer type: named - dob: - description: Update the 'dob' column in the 'customers' collection. + node_name: + arguments: {} + description: New value for public.network.node_name type: type: nullable underlying_type: - name: update_column_customers_dob + name: character_varying type: named - email: - description: Update the 'email' column in the 'customers' collection. + quality: + arguments: {} + description: New value for public.network.quality type: type: nullable underlying_type: - name: update_column_customers_email + name: character_varying type: named - first_name: - description: Update the 'first_name' column in the 'customers' collection. + status: + arguments: {} + description: New value for public.network.status type: type: nullable underlying_type: - name: update_column_customers_first_name + name: character_varying type: named - image: - description: Update the 'image' column in the 'customers' collection. + foreign_keys: {} + public.network_set_input: + description: Input type for updating public.network + fields: + capacity: + arguments: {} + description: New value wrapper for public.network.capacity type: type: nullable underlying_type: - name: update_column_customers_image + name: integer_set_input type: named - last_name: - description: Update the 'last_name' column in the 'customers' collection. + latitude: + arguments: {} + description: New value wrapper for public.network.latitude type: type: nullable underlying_type: - name: update_column_customers_last_name + name: decimal_set_input type: named - last_survey_date: - description: Update the 'last_survey_date' column in the 'customers' collection. + longitude: + arguments: {} + description: New value wrapper for public.network.longitude type: type: nullable underlying_type: - name: update_column_customers_last_survey_date + name: decimal_set_input type: named - phone_number: - description: Update the 'phone_number' column in the 'customers' collection. + node_id: + arguments: {} + description: New value wrapper for public.network.node_id type: type: nullable underlying_type: - name: update_column_customers_phone_number + name: integer_set_input type: named - postcode: - description: Update the 'postcode' column in the 'customers' collection. + node_name: + arguments: {} + description: New value wrapper for public.network.node_name type: type: nullable underlying_type: - name: update_column_customers_postcode + name: character_varying_set_input type: named - satisfaction_score: - description: Update the 'satisfaction_score' column in the 'customers' collection. + quality: + arguments: {} + description: New value wrapper for public.network.quality type: type: nullable underlying_type: - name: update_column_customers_satisfaction_score + name: character_varying_set_input type: named - segment: - description: Update the 'segment' column in the 'customers' collection. + status: + arguments: {} + description: New value wrapper for public.network.status type: type: nullable underlying_type: - name: update_column_customers_segment + name: character_varying_set_input type: named - state: - description: Update the 'state' column in the 'customers' collection. + foreign_keys: {} + public.number_portability: + description: 'Object type for public.number_portability. Description: null' + fields: + completion_date: + arguments: {} type: type: nullable underlying_type: - name: update_column_customers_state + name: timestamp_with_time_zone type: named - update_customers_by_phone_number_response: - description: Responses from the 'update_customers_by_phone_number' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + customer_id: + arguments: {} type: - element_type: - name: customers + type: nullable + underlying_type: + name: integer type: named - type: array - update_customers_by_phone_number_update_columns: - description: Update the columns of the 'customers' collection - fields: - address: - description: Update the 'address' column in the 'customers' collection. + notes: + arguments: {} type: type: nullable underlying_type: - name: update_column_customers_address + name: text type: named - auth_user_id: - description: Update the 'auth_user_id' column in the 'customers' collection. + phone_number: + arguments: {} type: type: nullable underlying_type: - name: update_column_customers_auth_user_id + name: character_varying type: named - churn_risk: - description: Update the 'churn_risk' column in the 'customers' collection. + port_date: + arguments: {} type: type: nullable underlying_type: - name: update_column_customers_churn_risk + name: timestamp_with_time_zone type: named - churn_risk_factors: - description: Update the 'churn_risk_factors' column in the 'customers' collection. + portability_id: + arguments: {} + type: + name: integer + type: named + previous_carrier: + arguments: {} type: type: nullable underlying_type: - name: update_column_customers_churn_risk_factors + name: character_varying type: named - city: - description: Update the 'city' column in the 'customers' collection. + status: + arguments: {} type: type: nullable underlying_type: - name: update_column_customers_city + name: character_varying type: named - country: - description: Update the 'country' column in the 'customers' collection. + foreign_keys: {} + public.number_portability_insert_input: + description: Input type for inserting into public.number_portability + fields: + completion_date: + arguments: {} + description: New value for public.number_portability.completion_date type: type: nullable underlying_type: - name: update_column_customers_country + name: timestamp_with_time_zone type: named customer_id: - description: Update the 'customer_id' column in the 'customers' collection. + arguments: {} + description: New value for public.number_portability.customer_id type: type: nullable underlying_type: - name: update_column_customers_customer_id + name: integer type: named - dob: - description: Update the 'dob' column in the 'customers' collection. + notes: + arguments: {} + description: New value for public.number_portability.notes type: type: nullable underlying_type: - name: update_column_customers_dob + name: text type: named - email: - description: Update the 'email' column in the 'customers' collection. + phone_number: + arguments: {} + description: New value for public.number_portability.phone_number type: type: nullable underlying_type: - name: update_column_customers_email + name: character_varying type: named - first_name: - description: Update the 'first_name' column in the 'customers' collection. + port_date: + arguments: {} + description: New value for public.number_portability.port_date type: type: nullable underlying_type: - name: update_column_customers_first_name + name: timestamp_with_time_zone type: named - image: - description: Update the 'image' column in the 'customers' collection. + portability_id: + arguments: {} + description: New value for public.number_portability.portability_id type: type: nullable underlying_type: - name: update_column_customers_image + name: integer type: named - last_name: - description: Update the 'last_name' column in the 'customers' collection. + previous_carrier: + arguments: {} + description: New value for public.number_portability.previous_carrier type: type: nullable underlying_type: - name: update_column_customers_last_name + name: character_varying type: named - last_survey_date: - description: Update the 'last_survey_date' column in the 'customers' collection. + status: + arguments: {} + description: New value for public.number_portability.status type: type: nullable underlying_type: - name: update_column_customers_last_survey_date + name: character_varying type: named - phone_number: - description: Update the 'phone_number' column in the 'customers' collection. + foreign_keys: {} + public.number_portability_set_input: + description: Input type for updating public.number_portability + fields: + completion_date: + arguments: {} + description: New value wrapper for public.number_portability.completion_date type: type: nullable underlying_type: - name: update_column_customers_phone_number + name: timestamp_with_time_zone_set_input type: named - postcode: - description: Update the 'postcode' column in the 'customers' collection. + customer_id: + arguments: {} + description: New value wrapper for public.number_portability.customer_id type: type: nullable underlying_type: - name: update_column_customers_postcode + name: integer_set_input type: named - satisfaction_score: - description: Update the 'satisfaction_score' column in the 'customers' collection. + notes: + arguments: {} + description: New value wrapper for public.number_portability.notes type: type: nullable underlying_type: - name: update_column_customers_satisfaction_score + name: text_set_input type: named - segment: - description: Update the 'segment' column in the 'customers' collection. + phone_number: + arguments: {} + description: New value wrapper for public.number_portability.phone_number type: type: nullable underlying_type: - name: update_column_customers_segment + name: character_varying_set_input type: named - state: - description: Update the 'state' column in the 'customers' collection. + port_date: + arguments: {} + description: New value wrapper for public.number_portability.port_date type: type: nullable underlying_type: - name: update_column_customers_state - type: named - update_deals_by_deal_id_response: - description: Responses from the 'update_deals_by_deal_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: deals + name: timestamp_with_time_zone_set_input type: named - type: array - update_deals_by_deal_id_update_columns: - description: Update the columns of the 'deals' collection - fields: - additional_benefits: - description: Update the 'additional_benefits' column in the 'deals' collection. + portability_id: + arguments: {} + description: New value wrapper for public.number_portability.portability_id type: type: nullable underlying_type: - name: update_column_deals_additional_benefits + name: integer_set_input type: named - customer_segment: - description: Update the 'customer_segment' column in the 'deals' collection. + previous_carrier: + arguments: {} + description: New value wrapper for public.number_portability.previous_carrier type: type: nullable underlying_type: - name: update_column_deals_customer_segment + name: character_varying_set_input type: named - deal_id: - description: Update the 'deal_id' column in the 'deals' collection. + status: + arguments: {} + description: New value wrapper for public.number_portability.status type: type: nullable underlying_type: - name: update_column_deals_deal_id + name: character_varying_set_input type: named - deal_name: - description: Update the 'deal_name' column in the 'deals' collection. + foreign_keys: {} + public.plans: + description: 'Object type for public.plans. Description: null' + fields: + data_limit_gb: + arguments: {} type: type: nullable underlying_type: - name: update_column_deals_deal_name + name: integer type: named description: - description: Update the 'description' column in the 'deals' collection. + arguments: {} type: type: nullable underlying_type: - name: update_column_deals_description + name: text type: named - end_date: - description: Update the 'end_date' column in the 'deals' collection. + international_roaming: + arguments: {} type: type: nullable underlying_type: - name: update_column_deals_end_date + name: boolean type: named - max_monthly_spend: - description: Update the 'max_monthly_spend' column in the 'deals' collection. + monthly_fee: + arguments: {} type: type: nullable underlying_type: - name: update_column_deals_max_monthly_spend + name: decimal type: named - min_monthly_spend: - description: Update the 'min_monthly_spend' column in the 'deals' collection. + plan_id: + arguments: {} + type: + name: integer + type: named + plan_name: + arguments: {} type: type: nullable underlying_type: - name: update_column_deals_min_monthly_spend + name: character_varying type: named - start_date: - description: Update the 'start_date' column in the 'deals' collection. + roaming_countries: + arguments: {} type: type: nullable underlying_type: - name: update_column_deals_start_date + name: array type: named - terms_conditions: - description: Update the 'terms_conditions' column in the 'deals' collection. + roaming_data_gb: + arguments: {} type: type: nullable underlying_type: - name: update_column_deals_terms_conditions - type: named - update_device_upgrades_by_upgrade_id_response: - description: Responses from the 'update_device_upgrades_by_upgrade_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: device_upgrades + name: decimal type: named - type: array - update_device_upgrades_by_upgrade_id_update_columns: - description: Update the columns of the 'device_upgrades' collection - fields: - contract_extension_months: - description: Update the 'contract_extension_months' column in the 'device_upgrades' collection. + roaming_voice_minutes: + arguments: {} type: type: nullable underlying_type: - name: update_column_device_upgrades_contract_extension_months + name: integer type: named - customer_id: - description: Update the 'customer_id' column in the 'device_upgrades' collection. + sf_record: + arguments: {} type: type: nullable underlying_type: - name: update_column_device_upgrades_customer_id + name: character_varying type: named - new_device_id: - description: Update the 'new_device_id' column in the 'device_upgrades' collection. + sms_limit: + arguments: {} type: type: nullable underlying_type: - name: update_column_device_upgrades_new_device_id + name: integer type: named - old_device_id: - description: Update the 'old_device_id' column in the 'device_upgrades' collection. + type: + arguments: {} type: type: nullable underlying_type: - name: update_column_device_upgrades_old_device_id + name: text type: named - promotion_applied: - description: Update the 'promotion_applied' column in the 'device_upgrades' collection. + voice_limit_minutes: + arguments: {} type: type: nullable underlying_type: - name: update_column_device_upgrades_promotion_applied + name: integer type: named - trade_in_value: - description: Update the 'trade_in_value' column in the 'device_upgrades' collection. + foreign_keys: {} + public.plans_insert_input: + description: Input type for inserting into public.plans + fields: + data_limit_gb: + arguments: {} + description: New value for public.plans.data_limit_gb type: type: nullable underlying_type: - name: update_column_device_upgrades_trade_in_value + name: integer type: named - upgrade_date: - description: Update the 'upgrade_date' column in the 'device_upgrades' collection. + description: + arguments: {} + description: New value for public.plans.description type: type: nullable underlying_type: - name: update_column_device_upgrades_upgrade_date + name: text type: named - upgrade_id: - description: Update the 'upgrade_id' column in the 'device_upgrades' collection. + international_roaming: + arguments: {} + description: New value for public.plans.international_roaming type: type: nullable underlying_type: - name: update_column_device_upgrades_upgrade_id - type: named - update_devices_by_device_id_response: - description: Responses from the 'update_devices_by_device_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: devices + name: boolean type: named - type: array - update_devices_by_device_id_update_columns: - description: Update the columns of the 'devices' collection - fields: - brand: - description: Update the 'brand' column in the 'devices' collection. + monthly_fee: + arguments: {} + description: New value for public.plans.monthly_fee type: type: nullable underlying_type: - name: update_column_devices_brand + name: decimal type: named - created_at: - description: Update the 'created_at' column in the 'devices' collection. + plan_id: + arguments: {} + description: New value for public.plans.plan_id type: type: nullable underlying_type: - name: update_column_devices_created_at + name: integer type: named - device_id: - description: Update the 'device_id' column in the 'devices' collection. + plan_name: + arguments: {} + description: New value for public.plans.plan_name type: type: nullable underlying_type: - name: update_column_devices_device_id + name: character_varying type: named - image: - description: Update the 'image' column in the 'devices' collection. + roaming_countries: + arguments: {} + description: New value for public.plans.roaming_countries type: type: nullable underlying_type: - name: update_column_devices_image + name: array type: named - model: - description: Update the 'model' column in the 'devices' collection. + roaming_data_gb: + arguments: {} + description: New value for public.plans.roaming_data_gb type: type: nullable underlying_type: - name: update_column_devices_model + name: decimal type: named - sf_record: - description: Update the 'sf_record' column in the 'devices' collection. + roaming_voice_minutes: + arguments: {} + description: New value for public.plans.roaming_voice_minutes type: type: nullable underlying_type: - name: update_column_devices_sf_record + name: integer type: named - updated_at: - description: Update the 'updated_at' column in the 'devices' collection. + sf_record: + arguments: {} + description: New value for public.plans.sf_record type: type: nullable underlying_type: - name: update_column_devices_updated_at + name: character_varying type: named - update_family_plan_members_by_customer_id_and_family_plan_id_response: - description: Responses from the 'update_family_plan_members_by_customer_id_and_family_plan_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + sms_limit: + arguments: {} + description: New value for public.plans.sms_limit type: - element_type: - name: family_plan_members + type: nullable + underlying_type: + name: integer type: named - type: array - update_family_plan_members_by_customer_id_and_family_plan_id_update_columns: - description: Update the columns of the 'family_plan_members' collection - fields: - customer_id: - description: Update the 'customer_id' column in the 'family_plan_members' collection. + type: + arguments: {} + description: New value for public.plans.type type: type: nullable underlying_type: - name: update_column_family_plan_members_customer_id + name: text type: named - data_allocation_percentage: - description: Update the 'data_allocation_percentage' column in the 'family_plan_members' collection. + voice_limit_minutes: + arguments: {} + description: New value for public.plans.voice_limit_minutes type: type: nullable underlying_type: - name: update_column_family_plan_members_data_allocation_percentage + name: integer type: named - family_plan_id: - description: Update the 'family_plan_id' column in the 'family_plan_members' collection. + foreign_keys: {} + public.plans_set_input: + description: Input type for updating public.plans + fields: + data_limit_gb: + arguments: {} + description: New value wrapper for public.plans.data_limit_gb type: type: nullable underlying_type: - name: update_column_family_plan_members_family_plan_id + name: integer_set_input type: named - role: - description: Update the 'role' column in the 'family_plan_members' collection. + description: + arguments: {} + description: New value wrapper for public.plans.description type: type: nullable underlying_type: - name: update_column_family_plan_members_role + name: text_set_input type: named - update_family_plans_by_family_plan_id_response: - description: Responses from the 'update_family_plans_by_family_plan_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + international_roaming: + arguments: {} + description: New value wrapper for public.plans.international_roaming type: - element_type: - name: family_plans + type: nullable + underlying_type: + name: boolean_set_input type: named - type: array - update_family_plans_by_family_plan_id_update_columns: - description: Update the columns of the 'family_plans' collection - fields: - created_at: - description: Update the 'created_at' column in the 'family_plans' collection. + monthly_fee: + arguments: {} + description: New value wrapper for public.plans.monthly_fee type: type: nullable underlying_type: - name: update_column_family_plans_created_at + name: decimal_set_input type: named - family_plan_id: - description: Update the 'family_plan_id' column in the 'family_plans' collection. + plan_id: + arguments: {} + description: New value wrapper for public.plans.plan_id type: type: nullable underlying_type: - name: update_column_family_plans_family_plan_id + name: integer_set_input type: named - max_members: - description: Update the 'max_members' column in the 'family_plans' collection. + plan_name: + arguments: {} + description: New value wrapper for public.plans.plan_name type: type: nullable underlying_type: - name: update_column_family_plans_max_members + name: character_varying_set_input type: named - monthly_fee: - description: Update the 'monthly_fee' column in the 'family_plans' collection. + roaming_countries: + arguments: {} + description: New value wrapper for public.plans.roaming_countries type: type: nullable underlying_type: - name: update_column_family_plans_monthly_fee + name: array_set_input type: named - plan_name: - description: Update the 'plan_name' column in the 'family_plans' collection. + roaming_data_gb: + arguments: {} + description: New value wrapper for public.plans.roaming_data_gb type: type: nullable underlying_type: - name: update_column_family_plans_plan_name + name: decimal_set_input type: named - primary_customer_id: - description: Update the 'primary_customer_id' column in the 'family_plans' collection. + roaming_voice_minutes: + arguments: {} + description: New value wrapper for public.plans.roaming_voice_minutes type: type: nullable underlying_type: - name: update_column_family_plans_primary_customer_id + name: integer_set_input type: named - shared_data_gb: - description: Update the 'shared_data_gb' column in the 'family_plans' collection. + sf_record: + arguments: {} + description: New value wrapper for public.plans.sf_record type: type: nullable underlying_type: - name: update_column_family_plans_shared_data_gb + name: character_varying_set_input type: named - update_feedback_by_feedback_id_response: - description: Responses from the 'update_feedback_by_feedback_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + sms_limit: + arguments: {} + description: New value wrapper for public.plans.sms_limit type: - element_type: - name: feedback + type: nullable + underlying_type: + name: integer_set_input type: named - type: array - update_feedback_by_feedback_id_update_columns: - description: Update the columns of the 'feedback' collection - fields: - category: - description: Update the 'category' column in the 'feedback' collection. + type: + arguments: {} + description: New value wrapper for public.plans.type type: type: nullable underlying_type: - name: update_column_feedback_category + name: text_set_input type: named - comments: - description: Update the 'comments' column in the 'feedback' collection. + voice_limit_minutes: + arguments: {} + description: New value wrapper for public.plans.voice_limit_minutes type: type: nullable underlying_type: - name: update_column_feedback_comments + name: integer_set_input type: named - customer_id: - description: Update the 'customer_id' column in the 'feedback' collection. + foreign_keys: {} + public.referrals: + description: 'Object type for public.referrals. Description: null' + fields: + bonus_amount: + arguments: {} type: type: nullable underlying_type: - name: update_column_feedback_customer_id + name: decimal type: named - feedback_date: - description: Update the 'feedback_date' column in the 'feedback' collection. + bonus_paid: + arguments: {} type: type: nullable underlying_type: - name: update_column_feedback_feedback_date + name: boolean type: named - feedback_id: - description: Update the 'feedback_id' column in the 'feedback' collection. + referral_date: + arguments: {} + type: + name: date + type: named + referral_id: + arguments: {} + type: + name: integer + type: named + referred_id: + arguments: {} type: type: nullable underlying_type: - name: update_column_feedback_feedback_id + name: integer type: named - followup_date: - description: Update the 'followup_date' column in the 'feedback' collection. + referrer_id: + arguments: {} type: type: nullable underlying_type: - name: update_column_feedback_followup_date + name: integer type: named - followup_notes: - description: Update the 'followup_notes' column in the 'feedback' collection. + status: + arguments: {} type: type: nullable underlying_type: - name: update_column_feedback_followup_notes + name: character_varying type: named - rating: - description: Update the 'rating' column in the 'feedback' collection. + foreign_keys: {} + public.referrals_insert_input: + description: Input type for inserting into public.referrals + fields: + bonus_amount: + arguments: {} + description: New value for public.referrals.bonus_amount type: type: nullable underlying_type: - name: update_column_feedback_rating + name: decimal type: named - requires_followup: - description: Update the 'requires_followup' column in the 'feedback' collection. + bonus_paid: + arguments: {} + description: New value for public.referrals.bonus_paid type: type: nullable underlying_type: - name: update_column_feedback_requires_followup + name: boolean type: named - update_interactions_by_interaction_id_response: - description: Responses from the 'update_interactions_by_interaction_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + referral_date: + arguments: {} + description: New value for public.referrals.referral_date type: - name: int4 + name: date type: named - returning: - description: Data from rows affected by the mutation + referral_id: + arguments: {} + description: New value for public.referrals.referral_id type: - element_type: - name: interactions + type: nullable + underlying_type: + name: integer type: named - type: array - update_interactions_by_interaction_id_update_columns: - description: Update the columns of the 'interactions' collection - fields: - agent_id: - description: Update the 'agent_id' column in the 'interactions' collection. + referred_id: + arguments: {} + description: New value for public.referrals.referred_id type: type: nullable underlying_type: - name: update_column_interactions_agent_id + name: integer type: named - channel: - description: Update the 'channel' column in the 'interactions' collection. + referrer_id: + arguments: {} + description: New value for public.referrals.referrer_id type: type: nullable underlying_type: - name: update_column_interactions_channel + name: integer type: named - customer_id: - description: Update the 'customer_id' column in the 'interactions' collection. + status: + arguments: {} + description: New value for public.referrals.status type: type: nullable underlying_type: - name: update_column_interactions_customer_id + name: character_varying type: named - duration_seconds: - description: Update the 'duration_seconds' column in the 'interactions' collection. + foreign_keys: {} + public.referrals_set_input: + description: Input type for updating public.referrals + fields: + bonus_amount: + arguments: {} + description: New value wrapper for public.referrals.bonus_amount type: type: nullable underlying_type: - name: update_column_interactions_duration_seconds + name: decimal_set_input type: named - interaction_id: - description: Update the 'interaction_id' column in the 'interactions' collection. + bonus_paid: + arguments: {} + description: New value wrapper for public.referrals.bonus_paid type: type: nullable underlying_type: - name: update_column_interactions_interaction_id + name: boolean_set_input type: named - interaction_time: - description: Update the 'interaction_time' column in the 'interactions' collection. + referral_date: + arguments: {} + description: New value wrapper for public.referrals.referral_date type: type: nullable underlying_type: - name: update_column_interactions_interaction_time + name: date_set_input type: named - notes: - description: Update the 'notes' column in the 'interactions' collection. + referral_id: + arguments: {} + description: New value wrapper for public.referrals.referral_id type: type: nullable underlying_type: - name: update_column_interactions_notes + name: integer_set_input type: named - resolution_status: - description: Update the 'resolution_status' column in the 'interactions' collection. + referred_id: + arguments: {} + description: New value wrapper for public.referrals.referred_id type: type: nullable underlying_type: - name: update_column_interactions_resolution_status + name: integer_set_input type: named - satisfaction_rating: - description: Update the 'satisfaction_rating' column in the 'interactions' collection. + referrer_id: + arguments: {} + description: New value wrapper for public.referrals.referrer_id type: type: nullable underlying_type: - name: update_column_interactions_satisfaction_rating + name: integer_set_input type: named - topic: - description: Update the 'topic' column in the 'interactions' collection. + status: + arguments: {} + description: New value wrapper for public.referrals.status type: type: nullable underlying_type: - name: update_column_interactions_topic + name: character_varying_set_input type: named - update_iot_devices_by_iot_device_id_response: - description: Responses from the 'update_iot_devices_by_iot_device_id' procedure + foreign_keys: {} + public.service_interactions: + description: 'Object type for public.service_interactions. Description: null' fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + agent_id: + arguments: {} type: - element_type: - name: iot_devices + type: nullable + underlying_type: + name: integer type: named - type: array - update_iot_devices_by_iot_device_id_update_columns: - description: Update the columns of the 'iot_devices' collection - fields: - activation_date: - description: Update the 'activation_date' column in the 'iot_devices' collection. + category: + arguments: {} type: type: nullable underlying_type: - name: update_column_iot_devices_activation_date + name: character_varying type: named - customer_id: - description: Update the 'customer_id' column in the 'iot_devices' collection. + channel: + arguments: {} type: type: nullable underlying_type: - name: update_column_iot_devices_customer_id + name: character_varying type: named - data_plan_id: - description: Update the 'data_plan_id' column in the 'iot_devices' collection. + customer_id: + arguments: {} type: type: nullable underlying_type: - name: update_column_iot_devices_data_plan_id + name: integer type: named - device_type: - description: Update the 'device_type' column in the 'iot_devices' collection. + interaction_date: + arguments: {} type: type: nullable underlying_type: - name: update_column_iot_devices_device_type + name: timestamp_with_time_zone type: named - imei: - description: Update the 'imei' column in the 'iot_devices' collection. + interaction_id: + arguments: {} + type: + name: integer + type: named + notes: + arguments: {} type: type: nullable underlying_type: - name: update_column_iot_devices_imei + name: text type: named - iot_device_id: - description: Update the 'iot_device_id' column in the 'iot_devices' collection. + resolution_status: + arguments: {} type: type: nullable underlying_type: - name: update_column_iot_devices_iot_device_id + name: character_varying type: named - last_active_date: - description: Update the 'last_active_date' column in the 'iot_devices' collection. + resolution_time_minutes: + arguments: {} type: type: nullable underlying_type: - name: update_column_iot_devices_last_active_date + name: integer type: named - monthly_data_usage_mb: - description: Update the 'monthly_data_usage_mb' column in the 'iot_devices' collection. + satisfaction_score: + arguments: {} type: type: nullable underlying_type: - name: update_column_iot_devices_monthly_data_usage_mb + name: integer type: named - sim_iccid: - description: Update the 'sim_iccid' column in the 'iot_devices' collection. + foreign_keys: {} + public.service_interactions_insert_input: + description: Input type for inserting into public.service_interactions + fields: + agent_id: + arguments: {} + description: New value for public.service_interactions.agent_id type: type: nullable underlying_type: - name: update_column_iot_devices_sim_iccid + name: integer type: named - status: - description: Update the 'status' column in the 'iot_devices' collection. + category: + arguments: {} + description: New value for public.service_interactions.category type: type: nullable underlying_type: - name: update_column_iot_devices_status + name: character_varying type: named - update_loyalty_rewards_by_reward_id_response: - description: Responses from the 'update_loyalty_rewards_by_reward_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + channel: + arguments: {} + description: New value for public.service_interactions.channel type: - element_type: - name: loyalty_rewards + type: nullable + underlying_type: + name: character_varying type: named - type: array - update_loyalty_rewards_by_reward_id_update_columns: - description: Update the columns of the 'loyalty_rewards' collection - fields: customer_id: - description: Update the 'customer_id' column in the 'loyalty_rewards' collection. + arguments: {} + description: New value for public.service_interactions.customer_id type: type: nullable underlying_type: - name: update_column_loyalty_rewards_customer_id + name: integer type: named - last_activity_date: - description: Update the 'last_activity_date' column in the 'loyalty_rewards' collection. + interaction_date: + arguments: {} + description: New value for public.service_interactions.interaction_date type: type: nullable underlying_type: - name: update_column_loyalty_rewards_last_activity_date + name: timestamp_with_time_zone type: named - points_balance: - description: Update the 'points_balance' column in the 'loyalty_rewards' collection. + interaction_id: + arguments: {} + description: New value for public.service_interactions.interaction_id type: type: nullable underlying_type: - name: update_column_loyalty_rewards_points_balance + name: integer type: named - points_earned: - description: Update the 'points_earned' column in the 'loyalty_rewards' collection. + notes: + arguments: {} + description: New value for public.service_interactions.notes type: type: nullable underlying_type: - name: update_column_loyalty_rewards_points_earned + name: text type: named - points_redeemed: - description: Update the 'points_redeemed' column in the 'loyalty_rewards' collection. + resolution_status: + arguments: {} + description: New value for public.service_interactions.resolution_status type: type: nullable underlying_type: - name: update_column_loyalty_rewards_points_redeemed + name: character_varying type: named - reward_id: - description: Update the 'reward_id' column in the 'loyalty_rewards' collection. + resolution_time_minutes: + arguments: {} + description: New value for public.service_interactions.resolution_time_minutes type: type: nullable underlying_type: - name: update_column_loyalty_rewards_reward_id + name: integer type: named - tier: - description: Update the 'tier' column in the 'loyalty_rewards' collection. + satisfaction_score: + arguments: {} + description: New value for public.service_interactions.satisfaction_score type: type: nullable underlying_type: - name: update_column_loyalty_rewards_tier + name: integer type: named - update_network_by_node_id_response: - description: Responses from the 'update_network_by_node_id' procedure + foreign_keys: {} + public.service_interactions_set_input: + description: Input type for updating public.service_interactions fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + agent_id: + arguments: {} + description: New value wrapper for public.service_interactions.agent_id type: - element_type: - name: network + type: nullable + underlying_type: + name: integer_set_input type: named - type: array - update_network_by_node_id_update_columns: - description: Update the columns of the 'network' collection - fields: - capacity: - description: Update the 'capacity' column in the 'network' collection. + category: + arguments: {} + description: New value wrapper for public.service_interactions.category type: type: nullable underlying_type: - name: update_column_network_capacity + name: character_varying_set_input type: named - latitude: - description: Update the 'latitude' column in the 'network' collection. + channel: + arguments: {} + description: New value wrapper for public.service_interactions.channel type: type: nullable underlying_type: - name: update_column_network_latitude + name: character_varying_set_input type: named - longitude: - description: Update the 'longitude' column in the 'network' collection. + customer_id: + arguments: {} + description: New value wrapper for public.service_interactions.customer_id type: type: nullable underlying_type: - name: update_column_network_longitude + name: integer_set_input type: named - node_id: - description: Update the 'node_id' column in the 'network' collection. + interaction_date: + arguments: {} + description: New value wrapper for public.service_interactions.interaction_date type: type: nullable underlying_type: - name: update_column_network_node_id + name: timestamp_with_time_zone_set_input type: named - node_name: - description: Update the 'node_name' column in the 'network' collection. + interaction_id: + arguments: {} + description: New value wrapper for public.service_interactions.interaction_id type: type: nullable underlying_type: - name: update_column_network_node_name + name: integer_set_input type: named - quality: - description: Update the 'quality' column in the 'network' collection. + notes: + arguments: {} + description: New value wrapper for public.service_interactions.notes type: type: nullable underlying_type: - name: update_column_network_quality + name: text_set_input type: named - status: - description: Update the 'status' column in the 'network' collection. + resolution_status: + arguments: {} + description: New value wrapper for public.service_interactions.resolution_status type: type: nullable underlying_type: - name: update_column_network_status + name: character_varying_set_input type: named - update_number_portability_by_phone_number_response: - description: Responses from the 'update_number_portability_by_phone_number' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + resolution_time_minutes: + arguments: {} + description: New value wrapper for public.service_interactions.resolution_time_minutes type: - element_type: - name: number_portability + type: nullable + underlying_type: + name: integer_set_input type: named - type: array - update_number_portability_by_phone_number_update_columns: - description: Update the columns of the 'number_portability' collection - fields: - completion_date: - description: Update the 'completion_date' column in the 'number_portability' collection. + satisfaction_score: + arguments: {} + description: New value wrapper for public.service_interactions.satisfaction_score type: type: nullable underlying_type: - name: update_column_number_portability_completion_date + name: integer_set_input type: named - customer_id: - description: Update the 'customer_id' column in the 'number_portability' collection. + foreign_keys: {} + public.voip_services: + description: 'Object type for public.voip_services. Description: null' + fields: + activation_date: + arguments: {} type: type: nullable underlying_type: - name: update_column_number_portability_customer_id + name: date type: named - notes: - description: Update the 'notes' column in the 'number_portability' collection. + customer_id: + arguments: {} type: type: nullable underlying_type: - name: update_column_number_portability_notes + name: integer type: named - phone_number: - description: Update the 'phone_number' column in the 'number_portability' collection. + features: + arguments: {} type: type: nullable underlying_type: - name: update_column_number_portability_phone_number + name: array type: named - port_date: - description: Update the 'port_date' column in the 'number_portability' collection. + monthly_fee: + arguments: {} type: type: nullable underlying_type: - name: update_column_number_portability_port_date + name: decimal type: named - portability_id: - description: Update the 'portability_id' column in the 'number_portability' collection. + service_number: + arguments: {} type: type: nullable underlying_type: - name: update_column_number_portability_portability_id + name: character_varying type: named - previous_carrier: - description: Update the 'previous_carrier' column in the 'number_portability' collection. + service_type: + arguments: {} type: type: nullable underlying_type: - name: update_column_number_portability_previous_carrier + name: character_varying type: named status: - description: Update the 'status' column in the 'number_portability' collection. + arguments: {} type: type: nullable underlying_type: - name: update_column_number_portability_status + name: character_varying type: named - update_number_portability_by_portability_id_response: - description: Responses from the 'update_number_portability_by_portability_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + voip_id: + arguments: {} type: - name: int4 + name: integer type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: number_portability - type: named - type: array - update_number_portability_by_portability_id_update_columns: - description: Update the columns of the 'number_portability' collection + foreign_keys: {} + public.voip_services_insert_input: + description: Input type for inserting into public.voip_services fields: - completion_date: - description: Update the 'completion_date' column in the 'number_portability' collection. + activation_date: + arguments: {} + description: New value for public.voip_services.activation_date type: type: nullable underlying_type: - name: update_column_number_portability_completion_date + name: date type: named customer_id: - description: Update the 'customer_id' column in the 'number_portability' collection. + arguments: {} + description: New value for public.voip_services.customer_id type: type: nullable underlying_type: - name: update_column_number_portability_customer_id + name: integer type: named - notes: - description: Update the 'notes' column in the 'number_portability' collection. + features: + arguments: {} + description: New value for public.voip_services.features type: type: nullable underlying_type: - name: update_column_number_portability_notes + name: array type: named - phone_number: - description: Update the 'phone_number' column in the 'number_portability' collection. + monthly_fee: + arguments: {} + description: New value for public.voip_services.monthly_fee type: type: nullable underlying_type: - name: update_column_number_portability_phone_number + name: decimal type: named - port_date: - description: Update the 'port_date' column in the 'number_portability' collection. + service_number: + arguments: {} + description: New value for public.voip_services.service_number type: type: nullable underlying_type: - name: update_column_number_portability_port_date + name: character_varying type: named - portability_id: - description: Update the 'portability_id' column in the 'number_portability' collection. + service_type: + arguments: {} + description: New value for public.voip_services.service_type type: type: nullable underlying_type: - name: update_column_number_portability_portability_id + name: character_varying type: named - previous_carrier: - description: Update the 'previous_carrier' column in the 'number_portability' collection. + status: + arguments: {} + description: New value for public.voip_services.status type: type: nullable underlying_type: - name: update_column_number_portability_previous_carrier + name: character_varying type: named - status: - description: Update the 'status' column in the 'number_portability' collection. + voip_id: + arguments: {} + description: New value for public.voip_services.voip_id type: type: nullable underlying_type: - name: update_column_number_portability_status - type: named - update_plans_by_plan_id_response: - description: Responses from the 'update_plans_by_plan_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation - type: - element_type: - name: plans + name: integer type: named - type: array - update_plans_by_plan_id_update_columns: - description: Update the columns of the 'plans' collection + foreign_keys: {} + public.voip_services_set_input: + description: Input type for updating public.voip_services fields: - data_limit_gb: - description: Update the 'data_limit_gb' column in the 'plans' collection. + activation_date: + arguments: {} + description: New value wrapper for public.voip_services.activation_date type: type: nullable underlying_type: - name: update_column_plans_data_limit_gb + name: date_set_input type: named - description: - description: Update the 'description' column in the 'plans' collection. + customer_id: + arguments: {} + description: New value wrapper for public.voip_services.customer_id type: type: nullable underlying_type: - name: update_column_plans_description + name: integer_set_input type: named - international_roaming: - description: Update the 'international_roaming' column in the 'plans' collection. + features: + arguments: {} + description: New value wrapper for public.voip_services.features type: type: nullable underlying_type: - name: update_column_plans_international_roaming + name: array_set_input type: named monthly_fee: - description: Update the 'monthly_fee' column in the 'plans' collection. + arguments: {} + description: New value wrapper for public.voip_services.monthly_fee type: type: nullable underlying_type: - name: update_column_plans_monthly_fee + name: decimal_set_input type: named - plan_id: - description: Update the 'plan_id' column in the 'plans' collection. + service_number: + arguments: {} + description: New value wrapper for public.voip_services.service_number type: type: nullable underlying_type: - name: update_column_plans_plan_id + name: character_varying_set_input type: named - plan_name: - description: Update the 'plan_name' column in the 'plans' collection. + service_type: + arguments: {} + description: New value wrapper for public.voip_services.service_type type: type: nullable underlying_type: - name: update_column_plans_plan_name + name: character_varying_set_input type: named - roaming_countries: - description: Update the 'roaming_countries' column in the 'plans' collection. + status: + arguments: {} + description: New value wrapper for public.voip_services.status type: type: nullable underlying_type: - name: update_column_plans_roaming_countries + name: character_varying_set_input type: named - roaming_data_gb: - description: Update the 'roaming_data_gb' column in the 'plans' collection. + voip_id: + arguments: {} + description: New value wrapper for public.voip_services.voip_id type: type: nullable underlying_type: - name: update_column_plans_roaming_data_gb + name: integer_set_input type: named - roaming_voice_minutes: - description: Update the 'roaming_voice_minutes' column in the 'plans' collection. + foreign_keys: {} + string_set_input: + description: Wrapper for setting scalar string + fields: + value: + arguments: {} + description: New value for scalar string type: type: nullable underlying_type: - name: update_column_plans_roaming_voice_minutes + name: string type: named - sf_record: - description: Update the 'sf_record' column in the 'plans' collection. + foreign_keys: {} + text_set_input: + description: Wrapper for setting scalar text + fields: + value: + arguments: {} + description: New value for scalar text type: type: nullable underlying_type: - name: update_column_plans_sf_record + name: text type: named - sms_limit: - description: Update the 'sms_limit' column in the 'plans' collection. + foreign_keys: {} + timestamp_with_time_zone_set_input: + description: Wrapper for setting scalar timestamp_with_time_zone + fields: + value: + arguments: {} + description: New value for scalar timestamp_with_time_zone type: type: nullable underlying_type: - name: update_column_plans_sms_limit + name: timestamp_with_time_zone type: named - type: - description: Update the 'type' column in the 'plans' collection. + foreign_keys: {} + update_public.billing_result: + description: update from public.billing result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_type - type: named - voice_limit_minutes: - description: Update the 'voice_limit_minutes' column in the 'plans' collection. + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: - name: update_column_plans_voice_limit_minutes + element_type: + name: public.billing type: named - update_plans_by_plan_name_response: - description: Responses from the 'update_plans_by_plan_name' procedure + type: array + foreign_keys: {} + update_public.campaigns_result: + description: update from public.campaigns result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by update type: element_type: - name: plans + name: public.campaigns type: named type: array - update_plans_by_plan_name_update_columns: - description: Update the columns of the 'plans' collection + foreign_keys: {} + update_public.credit_cards_result: + description: update from public.credit_cards result fields: - data_limit_gb: - description: Update the 'data_limit_gb' column in the 'plans' collection. + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_data_limit_gb - type: named - description: - description: Update the 'description' column in the 'plans' collection. + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: - name: update_column_plans_description + element_type: + name: public.credit_cards type: named - international_roaming: - description: Update the 'international_roaming' column in the 'plans' collection. + type: array + foreign_keys: {} + update_public.customer_link_result: + description: update from public.customer_link result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_international_roaming - type: named - monthly_fee: - description: Update the 'monthly_fee' column in the 'plans' collection. + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: - name: update_column_plans_monthly_fee + element_type: + name: public.customer_link type: named - plan_id: - description: Update the 'plan_id' column in the 'plans' collection. + type: array + foreign_keys: {} + update_public.customer_network_result: + description: update from public.customer_network result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_plan_id - type: named - plan_name: - description: Update the 'plan_name' column in the 'plans' collection. + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: - name: update_column_plans_plan_name + element_type: + name: public.customer_network type: named - roaming_countries: - description: Update the 'roaming_countries' column in the 'plans' collection. + type: array + foreign_keys: {} + update_public.customer_plan_devices_result: + description: update from public.customer_plan_devices result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_roaming_countries + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.customer_plan_devices type: named - roaming_data_gb: - description: Update the 'roaming_data_gb' column in the 'plans' collection. + type: array + foreign_keys: {} + update_public.customer_plans_result: + description: update from public.customer_plans result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_roaming_data_gb + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.customer_plans type: named - roaming_voice_minutes: - description: Update the 'roaming_voice_minutes' column in the 'plans' collection. + type: array + foreign_keys: {} + update_public.customers_result: + description: update from public.customers result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_roaming_voice_minutes + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.customers type: named - sf_record: - description: Update the 'sf_record' column in the 'plans' collection. + type: array + foreign_keys: {} + update_public.deals_result: + description: update from public.deals result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_sf_record + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.deals type: named - sms_limit: - description: Update the 'sms_limit' column in the 'plans' collection. + type: array + foreign_keys: {} + update_public.device_upgrades_result: + description: update from public.device_upgrades result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_sms_limit + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.device_upgrades type: named - type: - description: Update the 'type' column in the 'plans' collection. + type: array + foreign_keys: {} + update_public.devices_result: + description: update from public.devices result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_type + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.devices type: named - voice_limit_minutes: - description: Update the 'voice_limit_minutes' column in the 'plans' collection. + type: array + foreign_keys: {} + update_public.family_plan_members_result: + description: update from public.family_plan_members result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_plans_voice_limit_minutes + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.family_plan_members type: named - update_referrals_by_referral_id_response: - description: Responses from the 'update_referrals_by_referral_id' procedure + type: array + foreign_keys: {} + update_public.family_plans_result: + description: update from public.family_plans result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by update type: element_type: - name: referrals + name: public.family_plans type: named type: array - update_referrals_by_referral_id_update_columns: - description: Update the columns of the 'referrals' collection + foreign_keys: {} + update_public.feedback_result: + description: update from public.feedback result fields: - bonus_amount: - description: Update the 'bonus_amount' column in the 'referrals' collection. + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_referrals_bonus_amount + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.feedback type: named - bonus_paid: - description: Update the 'bonus_paid' column in the 'referrals' collection. + type: array + foreign_keys: {} + update_public.interactions_result: + description: update from public.interactions result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_referrals_bonus_paid + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.interactions type: named - referral_date: - description: Update the 'referral_date' column in the 'referrals' collection. + type: array + foreign_keys: {} + update_public.iot_devices_result: + description: update from public.iot_devices result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_referrals_referral_date + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.iot_devices type: named - referral_id: - description: Update the 'referral_id' column in the 'referrals' collection. + type: array + foreign_keys: {} + update_public.loyalty_rewards_result: + description: update from public.loyalty_rewards result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_referrals_referral_id + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.loyalty_rewards type: named - referred_id: - description: Update the 'referred_id' column in the 'referrals' collection. + type: array + foreign_keys: {} + update_public.network_result: + description: update from public.network result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_referrals_referred_id + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.network type: named - referrer_id: - description: Update the 'referrer_id' column in the 'referrals' collection. + type: array + foreign_keys: {} + update_public.number_portability_result: + description: update from public.number_portability result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_referrals_referrer_id + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.number_portability type: named - status: - description: Update the 'status' column in the 'referrals' collection. + type: array + foreign_keys: {} + update_public.plans_result: + description: update from public.plans result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_referrals_status + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.plans type: named - update_service_interactions_by_interaction_id_response: - description: Responses from the 'update_service_interactions_by_interaction_id' procedure + type: array + foreign_keys: {} + update_public.referrals_result: + description: update from public.referrals result fields: affected_rows: - description: The number of rows affected by the mutation + arguments: {} + description: Number of affected rows type: - name: int4 + name: int type: named returning: - description: Data from rows affected by the mutation + arguments: {} + description: Objects that were affected by update type: element_type: - name: service_interactions + name: public.referrals type: named type: array - update_service_interactions_by_interaction_id_update_columns: - description: Update the columns of the 'service_interactions' collection + foreign_keys: {} + update_public.service_interactions_result: + description: update from public.service_interactions result fields: - agent_id: - description: Update the 'agent_id' column in the 'service_interactions' collection. + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_service_interactions_agent_id - type: named - category: - description: Update the 'category' column in the 'service_interactions' collection. + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: - name: update_column_service_interactions_category + element_type: + name: public.service_interactions type: named - channel: - description: Update the 'channel' column in the 'service_interactions' collection. + type: array + foreign_keys: {} + update_public.voip_services_result: + description: update from public.voip_services result + fields: + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - name: update_column_service_interactions_channel - type: named - customer_id: - description: Update the 'customer_id' column in the 'service_interactions' collection. + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: - name: update_column_service_interactions_customer_id + element_type: + name: public.voip_services type: named - interaction_date: - description: Update the 'interaction_date' column in the 'service_interactions' collection. + type: array + foreign_keys: {} + uuid_set_input: + description: Wrapper for setting scalar uuid + fields: + value: + arguments: {} + description: New value for scalar uuid type: type: nullable underlying_type: - name: update_column_service_interactions_interaction_date + name: uuid type: named - interaction_id: - description: Update the 'interaction_id' column in the 'service_interactions' collection. + foreign_keys: {} + procedures: + - arguments: + objects: + description: Objects to insert type: - type: nullable - underlying_type: - name: update_column_service_interactions_interaction_id + element_type: + name: public.billing_insert_input type: named - notes: - description: Update the 'notes' column in the 'service_interactions' collection. + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - name: update_column_service_interactions_notes - type: named - resolution_status: - description: Update the 'resolution_status' column in the 'service_interactions' collection. + element_type: + name: string + type: named + type: array + description: Insert into public.billing + name: insert_public.billing + result_type: + name: insert_public.billing_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - name: update_column_service_interactions_resolution_status - type: named - resolution_time_minutes: - description: Update the 'resolution_time_minutes' column in the 'service_interactions' collection. + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - type: nullable - underlying_type: - name: update_column_service_interactions_resolution_time_minutes - type: named - satisfaction_score: - description: Update the 'satisfaction_score' column in the 'service_interactions' collection. + name: public.billing_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.billing + type: predicate + description: Update public.billing + name: update_public.billing + result_type: + name: update_public.billing_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - name: update_column_service_interactions_satisfaction_score - type: named - update_voip_services_by_voip_id_response: - description: Responses from the 'update_voip_services_by_voip_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - name: int4 - type: named - returning: - description: Data from rows affected by the mutation + object_type_name: public.billing + type: predicate + description: Delete from public.billing + name: delete_public.billing + result_type: + name: delete_public.billing_result + type: named + - arguments: + objects: + description: Objects to insert type: element_type: - name: voip_services + name: public.campaigns_insert_input type: named type: array - update_voip_services_by_voip_id_update_columns: - description: Update the columns of the 'voip_services' collection - fields: - activation_date: - description: Update the 'activation_date' column in the 'voip_services' collection. + returning: + description: Fields to return type: type: nullable underlying_type: - name: update_column_voip_services_activation_date - type: named - customer_id: - description: Update the 'customer_id' column in the 'voip_services' collection. + element_type: + name: string + type: named + type: array + description: Insert into public.campaigns + name: insert_public.campaigns + result_type: + name: insert_public.campaigns_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - name: update_column_voip_services_customer_id - type: named - features: - description: Update the 'features' column in the 'voip_services' collection. + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - type: nullable - underlying_type: - name: update_column_voip_services_features - type: named - monthly_fee: - description: Update the 'monthly_fee' column in the 'voip_services' collection. + name: public.campaigns_set_input + type: named + where: + description: Filter for rows to update type: - type: nullable - underlying_type: - name: update_column_voip_services_monthly_fee - type: named - service_number: - description: Update the 'service_number' column in the 'voip_services' collection. + object_type_name: public.campaigns + type: predicate + description: Update public.campaigns + name: update_public.campaigns + result_type: + name: update_public.campaigns_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - name: update_column_voip_services_service_number - type: named - service_type: - description: Update the 'service_type' column in the 'voip_services' collection. + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - type: nullable - underlying_type: - name: update_column_voip_services_service_type - type: named - status: - description: Update the 'status' column in the 'voip_services' collection. + object_type_name: public.campaigns + type: predicate + description: Delete from public.campaigns + name: delete_public.campaigns + result_type: + name: delete_public.campaigns_result + type: named + - arguments: + objects: + description: Objects to insert type: - type: nullable - underlying_type: - name: update_column_voip_services_status + element_type: + name: public.credit_cards_insert_input type: named - voip_id: - description: Update the 'voip_id' column in the 'voip_services' collection. + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - name: update_column_voip_services_voip_id - type: named - voip_services: - fields: - activation_date: + element_type: + name: string + type: named + type: array + description: Insert into public.credit_cards + name: insert_public.credit_cards + result_type: + name: insert_public.credit_cards_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - name: date - type: named - customer_id: + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - type: nullable - underlying_type: - name: int4 - type: named - features: + name: public.credit_cards_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.credit_cards + type: predicate + description: Update public.credit_cards + name: update_public.credit_cards + result_type: + name: update_public.credit_cards_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: element_type: - type: nullable - underlying_type: - name: text - type: named + name: string + type: named type: array - monthly_fee: + where: + description: Filter for rows to delete type: - type: nullable - underlying_type: - name: numeric - type: named - service_number: + object_type_name: public.credit_cards + type: predicate + description: Delete from public.credit_cards + name: delete_public.credit_cards + result_type: + name: delete_public.credit_cards_result + type: named + - arguments: + objects: + description: Objects to insert type: - type: nullable - underlying_type: - name: varchar + element_type: + name: public.customer_link_insert_input type: named - service_type: + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - name: varchar - type: named - status: + element_type: + name: string + type: named + type: array + description: Insert into public.customer_link + name: insert_public.customer_link + result_type: + name: insert_public.customer_link_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - name: varchar - type: named - voip_id: - type: - name: int4 - type: named - collections: - - name: billing - arguments: {} - type: billing - uniqueness_constraints: - billing_pkey: - unique_columns: - - billing_id - foreign_keys: - billing_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - - name: campaigns - arguments: {} - type: campaigns - uniqueness_constraints: - campaigns_pkey: - unique_columns: - - campaign_id - foreign_keys: {} - - name: credit_cards - arguments: {} - type: credit_cards - uniqueness_constraints: - credit_cards_pkey: - unique_columns: - - credit_card_id - foreign_keys: - credit_cards_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - - name: customer_link - arguments: {} - type: customer_link - uniqueness_constraints: - customer_link_customer_id_key: - unique_columns: - - customer_id - customer_link_pkey: - unique_columns: - - id - foreign_keys: - customer_link_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - - name: customer_network - arguments: {} - type: customer_network - uniqueness_constraints: - customer_network_pkey: - unique_columns: - - customer_id - - node_id - foreign_keys: - customer_network_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - customer_network_node_id_fkey: - column_mapping: - node_id: node_id - foreign_collection: network - - name: customer_plan_devices - arguments: {} - type: customer_plan_devices - uniqueness_constraints: - customer_plan_devices_pkey: - unique_columns: - - customer_plan_id - - device_id - foreign_keys: - customer_plan_devices_customer_plan_id_fkey: - column_mapping: - customer_plan_id: customer_plan_id - foreign_collection: customer_plans - customer_plan_devices_device_id_fkey: - column_mapping: - device_id: device_id - foreign_collection: devices - - name: customer_plans - arguments: {} - type: customer_plans - uniqueness_constraints: - customer_plans_pkey: - unique_columns: - - customer_plan_id - foreign_keys: - customer_plans_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - customer_plans_plan_id_fkey: - column_mapping: - plan_id: plan_id - foreign_collection: plans - - name: customers - arguments: {} - type: customers - uniqueness_constraints: - customers_phone_number_key: - unique_columns: - - phone_number - customers_pkey: - unique_columns: - - customer_id - foreign_keys: {} - - name: deals - arguments: {} - type: deals - uniqueness_constraints: - deals_pkey: - unique_columns: - - deal_id - foreign_keys: {} - - name: device_upgrades - arguments: {} - type: device_upgrades - uniqueness_constraints: - device_upgrades_pkey: - unique_columns: - - upgrade_id - foreign_keys: - device_upgrades_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - device_upgrades_new_device_id_fkey: - column_mapping: - new_device_id: device_id - foreign_collection: devices - device_upgrades_old_device_id_fkey: - column_mapping: - old_device_id: device_id - foreign_collection: devices - - name: devices - arguments: {} - type: devices - uniqueness_constraints: - devices_pkey: - unique_columns: - - device_id - foreign_keys: {} - - name: family_plan_members - arguments: {} - type: family_plan_members - uniqueness_constraints: - family_plan_members_pkey: - unique_columns: - - customer_id - - family_plan_id - foreign_keys: - family_plan_members_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - family_plan_members_family_plan_id_fkey: - column_mapping: - family_plan_id: family_plan_id - foreign_collection: family_plans - - name: family_plans - arguments: {} - type: family_plans - uniqueness_constraints: - family_plans_pkey: - unique_columns: - - family_plan_id - foreign_keys: - family_plans_primary_customer_id_fkey: - column_mapping: - primary_customer_id: customer_id - foreign_collection: customers - - name: feedback - arguments: {} - type: feedback - uniqueness_constraints: - feedback_pkey: - unique_columns: - - feedback_id - foreign_keys: - feedback_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - - name: interactions - arguments: {} - type: interactions - uniqueness_constraints: - interactions_pkey: - unique_columns: - - interaction_id - foreign_keys: - interactions_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - - name: iot_devices - arguments: {} - type: iot_devices - uniqueness_constraints: - iot_devices_pkey: - unique_columns: - - iot_device_id - foreign_keys: - iot_devices_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - iot_devices_data_plan_id_fkey: - column_mapping: - data_plan_id: plan_id - foreign_collection: plans - - name: loyalty_rewards - arguments: {} - type: loyalty_rewards - uniqueness_constraints: - loyalty_rewards_pkey: - unique_columns: - - reward_id - foreign_keys: - loyalty_rewards_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - - name: network - arguments: {} - type: network - uniqueness_constraints: - network_pkey: - unique_columns: - - node_id - foreign_keys: {} - - name: number_portability - arguments: {} - type: number_portability - uniqueness_constraints: - number_portability_phone_number_key: - unique_columns: - - phone_number - number_portability_pkey: - unique_columns: - - portability_id - foreign_keys: - number_portability_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - - name: plans - arguments: {} - type: plans - uniqueness_constraints: - plans_pkey: - unique_columns: - - plan_id - plans_plan_name_key: - unique_columns: - - plan_name - foreign_keys: {} - - name: referrals - arguments: {} - type: referrals - uniqueness_constraints: - referrals_pkey: - unique_columns: - - referral_id - foreign_keys: - referrals_referred_id_fkey: - column_mapping: - referred_id: customer_id - foreign_collection: customers - referrals_referrer_id_fkey: - column_mapping: - referrer_id: customer_id - foreign_collection: customers - - name: service_interactions - arguments: {} - type: service_interactions - uniqueness_constraints: - service_interactions_pkey: - unique_columns: - - interaction_id - foreign_keys: - service_interactions_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - - name: voip_services - arguments: {} - type: voip_services - uniqueness_constraints: - voip_services_pkey: - unique_columns: - - voip_id - foreign_keys: - voip_services_customer_id_fkey: - column_mapping: - customer_id: customer_id - foreign_collection: customers - functions: [] - procedures: - - name: delete_billing_by_billing_id - description: Delete any row on the 'billing' collection using the 'billing_id' key - arguments: - key_billing_id: + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - name: int4 + name: public.customer_link_set_input type: named - pre_check: - description: Delete permission predicate over the 'billing' collection + where: + description: Filter for rows to update type: - type: nullable - underlying_type: - object_type_name: billing - type: predicate + object_type_name: public.customer_link + type: predicate + description: Update public.customer_link + name: update_public.customer_link result_type: - name: delete_billing_by_billing_id_response - type: named - - name: delete_campaigns_by_campaign_id - description: Delete any row on the 'campaigns' collection using the 'campaign_id' key - arguments: - key_campaign_id: - type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'campaigns' collection + name: update_public.customer_link_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: campaigns - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.customer_link + type: predicate + description: Delete from public.customer_link + name: delete_public.customer_link result_type: - name: delete_campaigns_by_campaign_id_response + name: delete_public.customer_link_result type: named - - name: delete_credit_cards_by_credit_card_id - description: Delete any row on the 'credit_cards' collection using the 'credit_card_id' key - arguments: - key_credit_card_id: + - arguments: + objects: + description: Objects to insert type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'credit_cards' collection + element_type: + name: public.customer_network_insert_input + type: named + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: credit_cards - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.customer_network + name: insert_public.customer_network result_type: - name: delete_credit_cards_by_credit_card_id_response + name: insert_public.customer_network_result type: named - - name: delete_customer_link_by_customer_id - description: Delete any row on the 'customer_link' collection using the 'customer_id' key - arguments: - key_customer_id: + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'customer_link' collection + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - type: nullable - underlying_type: - object_type_name: customer_link - type: predicate + name: public.customer_network_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.customer_network + type: predicate + description: Update public.customer_network + name: update_public.customer_network result_type: - name: delete_customer_link_by_customer_id_response + name: update_public.customer_network_result type: named - - name: delete_customer_link_by_id - description: Delete any row on the 'customer_link' collection using the 'id' key - arguments: - key_id: - type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'customer_link' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customer_link - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.customer_network + type: predicate + description: Delete from public.customer_network + name: delete_public.customer_network result_type: - name: delete_customer_link_by_id_response + name: delete_public.customer_network_result type: named - - name: delete_customer_network_by_customer_id_and_node_id - description: Delete any row on the 'customer_network' collection using the 'customer_id' and 'node_id' keys - arguments: - key_customer_id: - type: - name: int4 - type: named - key_node_id: + - arguments: + objects: + description: Objects to insert type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'customer_network' collection + element_type: + name: public.customer_plan_devices_insert_input + type: named + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customer_network - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.customer_plan_devices + name: insert_public.customer_plan_devices result_type: - name: delete_customer_network_by_customer_id_and_node_id_response + name: insert_public.customer_plan_devices_result type: named - - name: delete_customer_plan_devices_by_customer_plan_id_and_device_id - description: Delete any row on the 'customer_plan_devices' collection using the 'customer_plan_id' and 'device_id' keys - arguments: - key_customer_plan_id: + - arguments: + returning: + description: Fields to return type: - name: int4 - type: named - key_device_id: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - name: int4 + name: public.customer_plan_devices_set_input type: named - pre_check: - description: Delete permission predicate over the 'customer_plan_devices' collection + where: + description: Filter for rows to update type: - type: nullable - underlying_type: - object_type_name: customer_plan_devices - type: predicate + object_type_name: public.customer_plan_devices + type: predicate + description: Update public.customer_plan_devices + name: update_public.customer_plan_devices result_type: - name: delete_customer_plan_devices_by_customer_plan_id_and_device_id_response + name: update_public.customer_plan_devices_result type: named - - name: delete_customer_plans_by_customer_plan_id - description: Delete any row on the 'customer_plans' collection using the 'customer_plan_id' key - arguments: - key_customer_plan_id: - type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'customer_plans' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customer_plans - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.customer_plan_devices + type: predicate + description: Delete from public.customer_plan_devices + name: delete_public.customer_plan_devices result_type: - name: delete_customer_plans_by_customer_plan_id_response + name: delete_public.customer_plan_devices_result type: named - - name: delete_customers_by_customer_id - description: Delete any row on the 'customers' collection using the 'customer_id' key - arguments: - key_customer_id: + - arguments: + objects: + description: Objects to insert type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'customers' collection + element_type: + name: public.customer_plans_insert_input + type: named + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customers - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.customer_plans + name: insert_public.customer_plans result_type: - name: delete_customers_by_customer_id_response + name: insert_public.customer_plans_result type: named - - name: delete_customers_by_phone_number - description: Delete any row on the 'customers' collection using the 'phone_number' key - arguments: - key_phone_number: + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - name: varchar - type: named - pre_check: - description: Delete permission predicate over the 'customers' collection + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - type: nullable - underlying_type: - object_type_name: customers - type: predicate + name: public.customer_plans_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.customer_plans + type: predicate + description: Update public.customer_plans + name: update_public.customer_plans result_type: - name: delete_customers_by_phone_number_response + name: update_public.customer_plans_result type: named - - name: delete_deals_by_deal_id - description: Delete any row on the 'deals' collection using the 'deal_id' key - arguments: - key_deal_id: - type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'deals' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: deals - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.customer_plans + type: predicate + description: Delete from public.customer_plans + name: delete_public.customer_plans result_type: - name: delete_deals_by_deal_id_response + name: delete_public.customer_plans_result type: named - - name: delete_device_upgrades_by_upgrade_id - description: Delete any row on the 'device_upgrades' collection using the 'upgrade_id' key - arguments: - key_upgrade_id: + - arguments: + objects: + description: Objects to insert type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'device_upgrades' collection + element_type: + name: public.customers_insert_input + type: named + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: device_upgrades - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.customers + name: insert_public.customers result_type: - name: delete_device_upgrades_by_upgrade_id_response + name: insert_public.customers_result type: named - - name: delete_devices_by_device_id - description: Delete any row on the 'devices' collection using the 'device_id' key - arguments: - key_device_id: - type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'devices' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: devices - type: predicate - result_type: - name: delete_devices_by_device_id_response - type: named - - name: delete_family_plan_members_by_customer_id_and_family_plan_id - description: Delete any row on the 'family_plan_members' collection using the 'customer_id' and 'family_plan_id' keys - arguments: - key_customer_id: + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - name: int4 + name: public.customers_set_input type: named - key_family_plan_id: + where: + description: Filter for rows to update type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'family_plan_members' collection + object_type_name: public.customers + type: predicate + description: Update public.customers + name: update_public.customers + result_type: + name: update_public.customers_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: family_plan_members - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.customers + type: predicate + description: Delete from public.customers + name: delete_public.customers result_type: - name: delete_family_plan_members_by_customer_id_and_family_plan_id_response + name: delete_public.customers_result type: named - - name: delete_family_plans_by_family_plan_id - description: Delete any row on the 'family_plans' collection using the 'family_plan_id' key - arguments: - key_family_plan_id: + - arguments: + objects: + description: Objects to insert type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'family_plans' collection + element_type: + name: public.deals_insert_input + type: named + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: family_plans - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.deals + name: insert_public.deals result_type: - name: delete_family_plans_by_family_plan_id_response + name: insert_public.deals_result type: named - - name: delete_feedback_by_feedback_id - description: Delete any row on the 'feedback' collection using the 'feedback_id' key - arguments: - key_feedback_id: - type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'feedback' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: feedback - type: predicate - result_type: - name: delete_feedback_by_feedback_id_response - type: named - - name: delete_interactions_by_interaction_id - description: Delete any row on the 'interactions' collection using the 'interaction_id' key - arguments: - key_interaction_id: + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - name: int4 + name: public.deals_set_input type: named - pre_check: - description: Delete permission predicate over the 'interactions' collection + where: + description: Filter for rows to update type: - type: nullable - underlying_type: - object_type_name: interactions - type: predicate + object_type_name: public.deals + type: predicate + description: Update public.deals + name: update_public.deals result_type: - name: delete_interactions_by_interaction_id_response + name: update_public.deals_result type: named - - name: delete_iot_devices_by_iot_device_id - description: Delete any row on the 'iot_devices' collection using the 'iot_device_id' key - arguments: - key_iot_device_id: - type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'iot_devices' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: iot_devices - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.deals + type: predicate + description: Delete from public.deals + name: delete_public.deals result_type: - name: delete_iot_devices_by_iot_device_id_response + name: delete_public.deals_result type: named - - name: delete_loyalty_rewards_by_reward_id - description: Delete any row on the 'loyalty_rewards' collection using the 'reward_id' key - arguments: - key_reward_id: + - arguments: + objects: + description: Objects to insert type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'loyalty_rewards' collection + element_type: + name: public.device_upgrades_insert_input + type: named + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: loyalty_rewards - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.device_upgrades + name: insert_public.device_upgrades result_type: - name: delete_loyalty_rewards_by_reward_id_response + name: insert_public.device_upgrades_result type: named - - name: delete_network_by_node_id - description: Delete any row on the 'network' collection using the 'node_id' key - arguments: - key_node_id: - type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'network' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: network - type: predicate + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.device_upgrades_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.device_upgrades + type: predicate + description: Update public.device_upgrades + name: update_public.device_upgrades result_type: - name: delete_network_by_node_id_response + name: update_public.device_upgrades_result type: named - - name: delete_number_portability_by_phone_number - description: Delete any row on the 'number_portability' collection using the 'phone_number' key - arguments: - key_phone_number: + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - name: varchar - type: named - pre_check: - description: Delete permission predicate over the 'number_portability' collection + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - type: nullable - underlying_type: - object_type_name: number_portability - type: predicate + object_type_name: public.device_upgrades + type: predicate + description: Delete from public.device_upgrades + name: delete_public.device_upgrades result_type: - name: delete_number_portability_by_phone_number_response + name: delete_public.device_upgrades_result type: named - - name: delete_number_portability_by_portability_id - description: Delete any row on the 'number_portability' collection using the 'portability_id' key - arguments: - key_portability_id: + - arguments: + objects: + description: Objects to insert type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'number_portability' collection + element_type: + name: public.devices_insert_input + type: named + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: number_portability - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.devices + name: insert_public.devices result_type: - name: delete_number_portability_by_portability_id_response + name: insert_public.devices_result type: named - - name: delete_plans_by_plan_id - description: Delete any row on the 'plans' collection using the 'plan_id' key - arguments: - key_plan_id: - type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'plans' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: plans - type: predicate + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.devices_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.devices + type: predicate + description: Update public.devices + name: update_public.devices result_type: - name: delete_plans_by_plan_id_response + name: update_public.devices_result type: named - - name: delete_plans_by_plan_name - description: Delete any row on the 'plans' collection using the 'plan_name' key - arguments: - key_plan_name: + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - name: varchar - type: named - pre_check: - description: Delete permission predicate over the 'plans' collection + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - type: nullable - underlying_type: - object_type_name: plans - type: predicate + object_type_name: public.devices + type: predicate + description: Delete from public.devices + name: delete_public.devices result_type: - name: delete_plans_by_plan_name_response + name: delete_public.devices_result type: named - - name: delete_referrals_by_referral_id - description: Delete any row on the 'referrals' collection using the 'referral_id' key - arguments: - key_referral_id: + - arguments: + objects: + description: Objects to insert type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'referrals' collection + element_type: + name: public.family_plan_members_insert_input + type: named + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: referrals - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.family_plan_members + name: insert_public.family_plan_members result_type: - name: delete_referrals_by_referral_id_response + name: insert_public.family_plan_members_result type: named - - name: delete_service_interactions_by_interaction_id - description: Delete any row on the 'service_interactions' collection using the 'interaction_id' key - arguments: - key_interaction_id: - type: - name: int4 - type: named - pre_check: - description: Delete permission predicate over the 'service_interactions' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: service_interactions - type: predicate - result_type: - name: delete_service_interactions_by_interaction_id_response - type: named - - name: delete_voip_services_by_voip_id - description: Delete any row on the 'voip_services' collection using the 'voip_id' key - arguments: - key_voip_id: + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - name: int4 + name: public.family_plan_members_set_input type: named - pre_check: - description: Delete permission predicate over the 'voip_services' collection + where: + description: Filter for rows to update + type: + object_type_name: public.family_plan_members + type: predicate + description: Update public.family_plan_members + name: update_public.family_plan_members + result_type: + name: update_public.family_plan_members_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: voip_services - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.family_plan_members + type: predicate + description: Delete from public.family_plan_members + name: delete_public.family_plan_members result_type: - name: delete_voip_services_by_voip_id_response + name: delete_public.family_plan_members_result type: named - - name: insert_billing - description: Insert into the billing table - arguments: + - arguments: objects: + description: Objects to insert type: element_type: - name: insert_billing_object + name: public.family_plans_insert_input type: named type: array - post_check: - description: Insert permission predicate over the 'billing' collection + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: billing - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.family_plans + name: insert_public.family_plans result_type: - name: insert_billing_response + name: insert_public.family_plans_result type: named - - name: insert_campaigns - description: Insert into the campaigns table - arguments: - objects: + - arguments: + returning: + description: Fields to return type: - element_type: - name: insert_campaigns_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'campaigns' collection + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.family_plans_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.family_plans + type: predicate + description: Update public.family_plans + name: update_public.family_plans + result_type: + name: update_public.family_plans_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: campaigns - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.family_plans + type: predicate + description: Delete from public.family_plans + name: delete_public.family_plans result_type: - name: insert_campaigns_response + name: delete_public.family_plans_result type: named - - name: insert_credit_cards - description: Insert into the credit_cards table - arguments: + - arguments: objects: + description: Objects to insert type: element_type: - name: insert_credit_cards_object + name: public.feedback_insert_input type: named type: array - post_check: - description: Insert permission predicate over the 'credit_cards' collection + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: credit_cards - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.feedback + name: insert_public.feedback result_type: - name: insert_credit_cards_response + name: insert_public.feedback_result type: named - - name: insert_customer_link - description: Insert into the customer_link table - arguments: - objects: + - arguments: + returning: + description: Fields to return type: - element_type: - name: insert_customer_link_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'customer_link' collection + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.feedback_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.feedback + type: predicate + description: Update public.feedback + name: update_public.feedback + result_type: + name: update_public.feedback_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customer_link - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.feedback + type: predicate + description: Delete from public.feedback + name: delete_public.feedback result_type: - name: insert_customer_link_response + name: delete_public.feedback_result type: named - - name: insert_customer_network - description: Insert into the customer_network table - arguments: + - arguments: objects: + description: Objects to insert type: element_type: - name: insert_customer_network_object + name: public.interactions_insert_input type: named type: array - post_check: - description: Insert permission predicate over the 'customer_network' collection + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customer_network - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.interactions + name: insert_public.interactions result_type: - name: insert_customer_network_response + name: insert_public.interactions_result type: named - - name: insert_customer_plan_devices - description: Insert into the customer_plan_devices table - arguments: - objects: + - arguments: + returning: + description: Fields to return type: - element_type: - name: insert_customer_plan_devices_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'customer_plan_devices' collection + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.interactions_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.interactions + type: predicate + description: Update public.interactions + name: update_public.interactions + result_type: + name: update_public.interactions_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customer_plan_devices - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.interactions + type: predicate + description: Delete from public.interactions + name: delete_public.interactions result_type: - name: insert_customer_plan_devices_response + name: delete_public.interactions_result type: named - - name: insert_customer_plans - description: Insert into the customer_plans table - arguments: + - arguments: objects: + description: Objects to insert type: element_type: - name: insert_customer_plans_object + name: public.iot_devices_insert_input type: named type: array - post_check: - description: Insert permission predicate over the 'customer_plans' collection + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customer_plans - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.iot_devices + name: insert_public.iot_devices result_type: - name: insert_customer_plans_response + name: insert_public.iot_devices_result type: named - - name: insert_customers - description: Insert into the customers table - arguments: - objects: - type: - element_type: - name: insert_customers_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'customers' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customers - type: predicate + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.iot_devices_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.iot_devices + type: predicate + description: Update public.iot_devices + name: update_public.iot_devices result_type: - name: insert_customers_response + name: update_public.iot_devices_result type: named - - name: insert_deals - description: Insert into the deals table - arguments: - objects: - type: - element_type: - name: insert_deals_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'deals' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: deals - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.iot_devices + type: predicate + description: Delete from public.iot_devices + name: delete_public.iot_devices result_type: - name: insert_deals_response + name: delete_public.iot_devices_result type: named - - name: insert_device_upgrades - description: Insert into the device_upgrades table - arguments: + - arguments: objects: + description: Objects to insert type: element_type: - name: insert_device_upgrades_object + name: public.loyalty_rewards_insert_input type: named type: array - post_check: - description: Insert permission predicate over the 'device_upgrades' collection + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: device_upgrades - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.loyalty_rewards + name: insert_public.loyalty_rewards result_type: - name: insert_device_upgrades_response + name: insert_public.loyalty_rewards_result type: named - - name: insert_devices - description: Insert into the devices table - arguments: - objects: - type: - element_type: - name: insert_devices_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'devices' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: devices - type: predicate + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.loyalty_rewards_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.loyalty_rewards + type: predicate + description: Update public.loyalty_rewards + name: update_public.loyalty_rewards result_type: - name: insert_devices_response + name: update_public.loyalty_rewards_result type: named - - name: insert_family_plan_members - description: Insert into the family_plan_members table - arguments: - objects: - type: - element_type: - name: insert_family_plan_members_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'family_plan_members' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: family_plan_members - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.loyalty_rewards + type: predicate + description: Delete from public.loyalty_rewards + name: delete_public.loyalty_rewards result_type: - name: insert_family_plan_members_response + name: delete_public.loyalty_rewards_result type: named - - name: insert_family_plans - description: Insert into the family_plans table - arguments: + - arguments: objects: + description: Objects to insert type: element_type: - name: insert_family_plans_object + name: public.network_insert_input type: named type: array - post_check: - description: Insert permission predicate over the 'family_plans' collection + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: family_plans - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.network + name: insert_public.network result_type: - name: insert_family_plans_response + name: insert_public.network_result type: named - - name: insert_feedback - description: Insert into the feedback table - arguments: - objects: - type: - element_type: - name: insert_feedback_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'feedback' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: feedback - type: predicate + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.network_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.network + type: predicate + description: Update public.network + name: update_public.network result_type: - name: insert_feedback_response + name: update_public.network_result type: named - - name: insert_interactions - description: Insert into the interactions table - arguments: - objects: - type: - element_type: - name: insert_interactions_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'interactions' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: interactions - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.network + type: predicate + description: Delete from public.network + name: delete_public.network result_type: - name: insert_interactions_response + name: delete_public.network_result type: named - - name: insert_iot_devices - description: Insert into the iot_devices table - arguments: + - arguments: objects: + description: Objects to insert type: element_type: - name: insert_iot_devices_object + name: public.number_portability_insert_input type: named type: array - post_check: - description: Insert permission predicate over the 'iot_devices' collection + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: iot_devices - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.number_portability + name: insert_public.number_portability result_type: - name: insert_iot_devices_response + name: insert_public.number_portability_result type: named - - name: insert_loyalty_rewards - description: Insert into the loyalty_rewards table - arguments: - objects: - type: - element_type: - name: insert_loyalty_rewards_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'loyalty_rewards' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: loyalty_rewards - type: predicate + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.number_portability_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.number_portability + type: predicate + description: Update public.number_portability + name: update_public.number_portability result_type: - name: insert_loyalty_rewards_response + name: update_public.number_portability_result type: named - - name: insert_network - description: Insert into the network table - arguments: - objects: - type: - element_type: - name: insert_network_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'network' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: network - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.number_portability + type: predicate + description: Delete from public.number_portability + name: delete_public.number_portability result_type: - name: insert_network_response + name: delete_public.number_portability_result type: named - - name: insert_number_portability - description: Insert into the number_portability table - arguments: + - arguments: objects: + description: Objects to insert type: element_type: - name: insert_number_portability_object + name: public.plans_insert_input type: named type: array - post_check: - description: Insert permission predicate over the 'number_portability' collection + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: number_portability - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.plans + name: insert_public.plans result_type: - name: insert_number_portability_response + name: insert_public.plans_result type: named - - name: insert_plans - description: Insert into the plans table - arguments: - objects: - type: - element_type: - name: insert_plans_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'plans' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: plans - type: predicate + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.plans_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.plans + type: predicate + description: Update public.plans + name: update_public.plans result_type: - name: insert_plans_response + name: update_public.plans_result type: named - - name: insert_referrals - description: Insert into the referrals table - arguments: - objects: - type: - element_type: - name: insert_referrals_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'referrals' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: referrals - type: predicate + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.plans + type: predicate + description: Delete from public.plans + name: delete_public.plans result_type: - name: insert_referrals_response + name: delete_public.plans_result type: named - - name: insert_service_interactions - description: Insert into the service_interactions table - arguments: + - arguments: objects: + description: Objects to insert type: element_type: - name: insert_service_interactions_object + name: public.referrals_insert_input type: named type: array - post_check: - description: Insert permission predicate over the 'service_interactions' collection + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: service_interactions - type: predicate + element_type: + name: string + type: named + type: array + description: Insert into public.referrals + name: insert_public.referrals result_type: - name: insert_service_interactions_response + name: insert_public.referrals_result type: named - - name: insert_voip_services - description: Insert into the voip_services table - arguments: - objects: - type: - element_type: - name: insert_voip_services_object - type: named - type: array - post_check: - description: Insert permission predicate over the 'voip_services' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: voip_services - type: predicate - result_type: - name: insert_voip_services_response - type: named - - name: update_billing_by_billing_id - description: Update any row on the 'billing' collection using the 'billing_id' key - arguments: - key_billing_id: + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - name: int4 + name: public.referrals_set_input type: named - post_check: - description: Update permission post-condition predicate over the 'billing' collection + where: + description: Filter for rows to update type: - type: nullable - underlying_type: - object_type_name: billing - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'billing' collection + object_type_name: public.referrals + type: predicate + description: Update public.referrals + name: update_public.referrals + result_type: + name: update_public.referrals_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: billing - type: predicate - update_columns: + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - name: update_billing_by_billing_id_update_columns - type: named + object_type_name: public.referrals + type: predicate + description: Delete from public.referrals + name: delete_public.referrals result_type: - name: update_billing_by_billing_id_response + name: delete_public.referrals_result type: named - - name: update_campaigns_by_campaign_id - description: Update any row on the 'campaigns' collection using the 'campaign_id' key - arguments: - key_campaign_id: + - arguments: + objects: + description: Objects to insert type: - name: int4 - type: named - post_check: - description: Update permission post-condition predicate over the 'campaigns' collection + element_type: + name: public.service_interactions_insert_input + type: named + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: campaigns - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'campaigns' collection + element_type: + name: string + type: named + type: array + description: Insert into public.service_interactions + name: insert_public.service_interactions + result_type: + name: insert_public.service_interactions_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: campaigns - type: predicate - update_columns: + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - name: update_campaigns_by_campaign_id_update_columns + name: public.service_interactions_set_input type: named + where: + description: Filter for rows to update + type: + object_type_name: public.service_interactions + type: predicate + description: Update public.service_interactions + name: update_public.service_interactions result_type: - name: update_campaigns_by_campaign_id_response + name: update_public.service_interactions_result type: named - - name: update_credit_cards_by_credit_card_id - description: Update any row on the 'credit_cards' collection using the 'credit_card_id' key - arguments: - key_credit_card_id: - type: - name: int4 - type: named - post_check: - description: Update permission post-condition predicate over the 'credit_cards' collection - type: - type: nullable - underlying_type: - object_type_name: credit_cards - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'credit_cards' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: credit_cards - type: predicate - update_columns: + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - name: update_credit_cards_by_credit_card_id_update_columns - type: named + object_type_name: public.service_interactions + type: predicate + description: Delete from public.service_interactions + name: delete_public.service_interactions result_type: - name: update_credit_cards_by_credit_card_id_response + name: delete_public.service_interactions_result type: named - - name: update_customer_link_by_customer_id - description: Update any row on the 'customer_link' collection using the 'customer_id' key - arguments: - key_customer_id: + - arguments: + objects: + description: Objects to insert type: - type: nullable - underlying_type: - name: int4 + element_type: + name: public.voip_services_insert_input type: named - post_check: - description: Update permission post-condition predicate over the 'customer_link' collection + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customer_link - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'customer_link' collection + element_type: + name: string + type: named + type: array + description: Insert into public.voip_services + name: insert_public.voip_services + result_type: + name: insert_public.voip_services_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customer_link - type: predicate - update_columns: + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - name: update_customer_link_by_customer_id_update_columns + name: public.voip_services_set_input type: named + where: + description: Filter for rows to update + type: + object_type_name: public.voip_services + type: predicate + description: Update public.voip_services + name: update_public.voip_services result_type: - name: update_customer_link_by_customer_id_response + name: update_public.voip_services_result type: named - - name: update_customer_link_by_id - description: Update any row on the 'customer_link' collection using the 'id' key - arguments: - key_id: - type: - name: int4 - type: named - post_check: - description: Update permission post-condition predicate over the 'customer_link' collection - type: - type: nullable - underlying_type: - object_type_name: customer_link - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'customer_link' collection + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - object_type_name: customer_link - type: predicate - update_columns: + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - name: update_customer_link_by_id_update_columns - type: named + object_type_name: public.voip_services + type: predicate + description: Delete from public.voip_services + name: delete_public.voip_services result_type: - name: update_customer_link_by_id_response + name: delete_public.voip_services_result type: named - - name: update_customer_network_by_customer_id_and_node_id - description: Update any row on the 'customer_network' collection using the 'customer_id' and 'node_id' keys - arguments: - key_customer_id: - type: - name: int4 + scalar_types: + array: + aggregate_functions: {} + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: array type: named - key_node_id: - type: - name: int4 + type: custom + representation: + type: json + bigint: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: bigint + type: named + type: custom + stddev_samp: + result_type: + name: bigint + type: named + type: custom + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: bigint + type: named + type: custom + var_samp: + result_type: + name: bigint + type: named + type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: bigint + type: named + type: custom + representation: + type: biginteger + boolean: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: boolean + type: named + type: custom + representation: + type: boolean + character_varying: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _ilike: + type: contains_insensitive + _in: + type: in + _iregex: + argument_type: + name: character_varying + type: named + type: custom + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: character_varying + type: named + type: custom + _nilike: + argument_type: + name: character_varying type: named - post_check: - description: Update permission post-condition predicate over the 'customer_network' collection - type: - type: nullable - underlying_type: - object_type_name: customer_network - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'customer_network' collection - type: - type: nullable - underlying_type: - object_type_name: customer_network - type: predicate - update_columns: - type: - name: update_customer_network_by_customer_id_and_node_id_update_columns + type: custom + _niregex: + argument_type: + name: character_varying type: named - result_type: - name: update_customer_network_by_customer_id_and_node_id_response - type: named - - name: update_customer_plan_devices_by_customer_plan_id_and_device_id - description: Update any row on the 'customer_plan_devices' collection using the 'customer_plan_id' and 'device_id' keys - arguments: - key_customer_plan_id: - type: - name: int4 + type: custom + _nlike: + argument_type: + name: character_varying type: named - key_device_id: - type: - name: int4 + type: custom + _nregex: + argument_type: + name: character_varying type: named - post_check: - description: Update permission post-condition predicate over the 'customer_plan_devices' collection - type: - type: nullable - underlying_type: - object_type_name: customer_plan_devices - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'customer_plan_devices' collection - type: - type: nullable - underlying_type: - object_type_name: customer_plan_devices - type: predicate - update_columns: - type: - name: update_customer_plan_devices_by_customer_plan_id_and_device_id_update_columns + type: custom + _regex: + argument_type: + name: character_varying type: named - result_type: - name: update_customer_plan_devices_by_customer_plan_id_and_device_id_response - type: named - - name: update_customer_plans_by_customer_plan_id - description: Update any row on the 'customer_plans' collection using the 'customer_plan_id' key - arguments: - key_customer_plan_id: - type: - name: int4 + type: custom + representation: + type: string + date: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: date type: named - post_check: - description: Update permission post-condition predicate over the 'customer_plans' collection - type: - type: nullable - underlying_type: - object_type_name: customer_plans - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'customer_plans' collection - type: - type: nullable - underlying_type: - object_type_name: customer_plans - type: predicate - update_columns: - type: - name: update_customer_plans_by_customer_plan_id_update_columns + type: custom + representation: + type: date + decimal: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: decimal type: named - result_type: - name: update_customer_plans_by_customer_plan_id_response - type: named - - name: update_customers_by_customer_id - description: Update any row on the 'customers' collection using the 'customer_id' key - arguments: - key_customer_id: - type: - name: int4 + type: custom + stddev_samp: + result_type: + name: decimal type: named - post_check: - description: Update permission post-condition predicate over the 'customers' collection - type: - type: nullable - underlying_type: - object_type_name: customers - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'customers' collection - type: - type: nullable - underlying_type: - object_type_name: customers - type: predicate - update_columns: - type: - name: update_customers_by_customer_id_update_columns + type: custom + sum: + result_type: decimal + type: sum + var_pop: + result_type: + name: decimal type: named - result_type: - name: update_customers_by_customer_id_response - type: named - - name: update_customers_by_phone_number - description: Update any row on the 'customers' collection using the 'phone_number' key - arguments: - key_phone_number: - type: - type: nullable - underlying_type: - name: varchar - type: named - post_check: - description: Update permission post-condition predicate over the 'customers' collection - type: - type: nullable - underlying_type: - object_type_name: customers - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'customers' collection - type: - type: nullable - underlying_type: - object_type_name: customers - type: predicate - update_columns: - type: - name: update_customers_by_phone_number_update_columns + type: custom + var_samp: + result_type: + name: decimal type: named - result_type: - name: update_customers_by_phone_number_response - type: named - - name: update_deals_by_deal_id - description: Update any row on the 'deals' collection using the 'deal_id' key - arguments: - key_deal_id: - type: - name: int4 + type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: decimal type: named - post_check: - description: Update permission post-condition predicate over the 'deals' collection - type: - type: nullable - underlying_type: - object_type_name: deals - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'deals' collection - type: - type: nullable - underlying_type: - object_type_name: deals - type: predicate - update_columns: - type: - name: update_deals_by_deal_id_update_columns + type: custom + representation: + type: bigdecimal + int: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: int type: named - result_type: - name: update_deals_by_deal_id_response - type: named - - name: update_device_upgrades_by_upgrade_id - description: Update any row on the 'device_upgrades' collection using the 'upgrade_id' key - arguments: - key_upgrade_id: - type: - name: int4 + type: custom + stddev_samp: + result_type: + name: int type: named - post_check: - description: Update permission post-condition predicate over the 'device_upgrades' collection - type: - type: nullable - underlying_type: - object_type_name: device_upgrades - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'device_upgrades' collection - type: - type: nullable - underlying_type: - object_type_name: device_upgrades - type: predicate - update_columns: - type: - name: update_device_upgrades_by_upgrade_id_update_columns + type: custom + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: int type: named - result_type: - name: update_device_upgrades_by_upgrade_id_response - type: named - - name: update_devices_by_device_id - description: Update any row on the 'devices' collection using the 'device_id' key - arguments: - key_device_id: - type: - name: int4 + type: custom + var_samp: + result_type: + name: int type: named - post_check: - description: Update permission post-condition predicate over the 'devices' collection - type: - type: nullable - underlying_type: - object_type_name: devices - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'devices' collection - type: - type: nullable - underlying_type: - object_type_name: devices - type: predicate - update_columns: - type: - name: update_devices_by_device_id_update_columns + type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: int type: named - result_type: - name: update_devices_by_device_id_response - type: named - - name: update_family_plan_members_by_customer_id_and_family_plan_id - description: Update any row on the 'family_plan_members' collection using the 'customer_id' and 'family_plan_id' keys - arguments: - key_customer_id: - type: - name: int4 + type: custom + representation: + type: int32 + integer: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: integer type: named - key_family_plan_id: - type: - name: int4 + type: custom + stddev_samp: + result_type: + name: integer type: named - post_check: - description: Update permission post-condition predicate over the 'family_plan_members' collection - type: - type: nullable - underlying_type: - object_type_name: family_plan_members - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'family_plan_members' collection - type: - type: nullable - underlying_type: - object_type_name: family_plan_members - type: predicate - update_columns: - type: - name: update_family_plan_members_by_customer_id_and_family_plan_id_update_columns + type: custom + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: integer type: named - result_type: - name: update_family_plan_members_by_customer_id_and_family_plan_id_response - type: named - - name: update_family_plans_by_family_plan_id - description: Update any row on the 'family_plans' collection using the 'family_plan_id' key - arguments: - key_family_plan_id: - type: - name: int4 + type: custom + var_samp: + result_type: + name: integer type: named - post_check: - description: Update permission post-condition predicate over the 'family_plans' collection - type: - type: nullable - underlying_type: - object_type_name: family_plans - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'family_plans' collection - type: - type: nullable - underlying_type: - object_type_name: family_plans - type: predicate - update_columns: - type: - name: update_family_plans_by_family_plan_id_update_columns + type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: integer type: named - result_type: - name: update_family_plans_by_family_plan_id_response - type: named - - name: update_feedback_by_feedback_id - description: Update any row on the 'feedback' collection using the 'feedback_id' key - arguments: - key_feedback_id: - type: - name: int4 + type: custom + representation: + type: int32 + string: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _ilike: + type: contains_insensitive + _in: + type: in + _iregex: + argument_type: + name: string type: named - post_check: - description: Update permission post-condition predicate over the 'feedback' collection - type: - type: nullable - underlying_type: - object_type_name: feedback - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'feedback' collection - type: - type: nullable - underlying_type: - object_type_name: feedback - type: predicate - update_columns: - type: - name: update_feedback_by_feedback_id_update_columns + type: custom + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: string type: named - result_type: - name: update_feedback_by_feedback_id_response - type: named - - name: update_interactions_by_interaction_id - description: Update any row on the 'interactions' collection using the 'interaction_id' key - arguments: - key_interaction_id: - type: - name: int4 + type: custom + _nilike: + argument_type: + name: string type: named - post_check: - description: Update permission post-condition predicate over the 'interactions' collection - type: - type: nullable - underlying_type: - object_type_name: interactions - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'interactions' collection - type: - type: nullable - underlying_type: - object_type_name: interactions - type: predicate - update_columns: - type: - name: update_interactions_by_interaction_id_update_columns + type: custom + _niregex: + argument_type: + name: string type: named - result_type: - name: update_interactions_by_interaction_id_response - type: named - - name: update_iot_devices_by_iot_device_id - description: Update any row on the 'iot_devices' collection using the 'iot_device_id' key - arguments: - key_iot_device_id: - type: - name: int4 + type: custom + _nlike: + argument_type: + name: string type: named - post_check: - description: Update permission post-condition predicate over the 'iot_devices' collection - type: - type: nullable - underlying_type: - object_type_name: iot_devices - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'iot_devices' collection - type: - type: nullable - underlying_type: - object_type_name: iot_devices - type: predicate - update_columns: - type: - name: update_iot_devices_by_iot_device_id_update_columns + type: custom + _nregex: + argument_type: + name: string type: named - result_type: - name: update_iot_devices_by_iot_device_id_response - type: named - - name: update_loyalty_rewards_by_reward_id - description: Update any row on the 'loyalty_rewards' collection using the 'reward_id' key - arguments: - key_reward_id: - type: - name: int4 + type: custom + _regex: + argument_type: + name: string type: named - post_check: - description: Update permission post-condition predicate over the 'loyalty_rewards' collection - type: - type: nullable - underlying_type: - object_type_name: loyalty_rewards - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'loyalty_rewards' collection - type: - type: nullable - underlying_type: - object_type_name: loyalty_rewards - type: predicate - update_columns: - type: - name: update_loyalty_rewards_by_reward_id_update_columns + type: custom + representation: + type: string + text: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _ilike: + type: contains_insensitive + _in: + type: in + _iregex: + argument_type: + name: text type: named - result_type: - name: update_loyalty_rewards_by_reward_id_response - type: named - - name: update_network_by_node_id - description: Update any row on the 'network' collection using the 'node_id' key - arguments: - key_node_id: - type: - name: int4 + type: custom + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: text type: named - post_check: - description: Update permission post-condition predicate over the 'network' collection - type: - type: nullable - underlying_type: - object_type_name: network - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'network' collection - type: - type: nullable - underlying_type: - object_type_name: network - type: predicate - update_columns: - type: - name: update_network_by_node_id_update_columns + type: custom + _nilike: + argument_type: + name: text type: named - result_type: - name: update_network_by_node_id_response - type: named - - name: update_number_portability_by_phone_number - description: Update any row on the 'number_portability' collection using the 'phone_number' key - arguments: - key_phone_number: - type: - type: nullable - underlying_type: - name: varchar - type: named - post_check: - description: Update permission post-condition predicate over the 'number_portability' collection - type: - type: nullable - underlying_type: - object_type_name: number_portability - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'number_portability' collection - type: - type: nullable - underlying_type: - object_type_name: number_portability - type: predicate - update_columns: - type: - name: update_number_portability_by_phone_number_update_columns + type: custom + _niregex: + argument_type: + name: text type: named - result_type: - name: update_number_portability_by_phone_number_response - type: named - - name: update_number_portability_by_portability_id - description: Update any row on the 'number_portability' collection using the 'portability_id' key - arguments: - key_portability_id: - type: - name: int4 + type: custom + _nlike: + argument_type: + name: text type: named - post_check: - description: Update permission post-condition predicate over the 'number_portability' collection - type: - type: nullable - underlying_type: - object_type_name: number_portability - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'number_portability' collection - type: - type: nullable - underlying_type: - object_type_name: number_portability - type: predicate - update_columns: - type: - name: update_number_portability_by_portability_id_update_columns + type: custom + _nregex: + argument_type: + name: text type: named - result_type: - name: update_number_portability_by_portability_id_response - type: named - - name: update_plans_by_plan_id - description: Update any row on the 'plans' collection using the 'plan_id' key - arguments: - key_plan_id: - type: - name: int4 + type: custom + _regex: + argument_type: + name: text type: named - post_check: - description: Update permission post-condition predicate over the 'plans' collection - type: - type: nullable - underlying_type: - object_type_name: plans - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'plans' collection - type: - type: nullable - underlying_type: - object_type_name: plans - type: predicate - update_columns: - type: - name: update_plans_by_plan_id_update_columns + type: custom + representation: + type: string + timestamp_with_time_zone: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: timestamp_with_time_zone type: named - result_type: - name: update_plans_by_plan_id_response - type: named - - name: update_plans_by_plan_name - description: Update any row on the 'plans' collection using the 'plan_name' key - arguments: - key_plan_name: - type: - type: nullable - underlying_type: - name: varchar - type: named - post_check: - description: Update permission post-condition predicate over the 'plans' collection - type: - type: nullable - underlying_type: - object_type_name: plans - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'plans' collection - type: - type: nullable - underlying_type: - object_type_name: plans - type: predicate - update_columns: - type: - name: update_plans_by_plan_name_update_columns + type: custom + representation: + type: timestamptz + uuid: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _ilike: + type: contains_insensitive + _in: + type: in + _iregex: + argument_type: + name: uuid type: named - result_type: - name: update_plans_by_plan_name_response - type: named - - name: update_referrals_by_referral_id - description: Update any row on the 'referrals' collection using the 'referral_id' key - arguments: - key_referral_id: - type: - name: int4 + type: custom + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: uuid type: named - post_check: - description: Update permission post-condition predicate over the 'referrals' collection - type: - type: nullable - underlying_type: - object_type_name: referrals - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'referrals' collection - type: - type: nullable - underlying_type: - object_type_name: referrals - type: predicate - update_columns: - type: - name: update_referrals_by_referral_id_update_columns + type: custom + _nilike: + argument_type: + name: uuid type: named - result_type: - name: update_referrals_by_referral_id_response - type: named - - name: update_service_interactions_by_interaction_id - description: Update any row on the 'service_interactions' collection using the 'interaction_id' key - arguments: - key_interaction_id: - type: - name: int4 + type: custom + _niregex: + argument_type: + name: uuid type: named - post_check: - description: Update permission post-condition predicate over the 'service_interactions' collection - type: - type: nullable - underlying_type: - object_type_name: service_interactions - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'service_interactions' collection - type: - type: nullable - underlying_type: - object_type_name: service_interactions - type: predicate - update_columns: - type: - name: update_service_interactions_by_interaction_id_update_columns + type: custom + _nlike: + argument_type: + name: uuid type: named - result_type: - name: update_service_interactions_by_interaction_id_response - type: named - - name: update_voip_services_by_voip_id - description: Update any row on the 'voip_services' collection using the 'voip_id' key - arguments: - key_voip_id: - type: - name: int4 + type: custom + _nregex: + argument_type: + name: uuid type: named - post_check: - description: Update permission post-condition predicate over the 'voip_services' collection - type: - type: nullable - underlying_type: - object_type_name: voip_services - type: predicate - pre_check: - description: Update permission pre-condition predicate over the 'voip_services' collection - type: - type: nullable - underlying_type: - object_type_name: voip_services - type: predicate - update_columns: - type: - name: update_voip_services_by_voip_id_update_columns + type: custom + _regex: + argument_type: + name: uuid type: named - result_type: - name: update_voip_services_by_voip_id_response - type: named + type: custom + representation: + type: string capabilities: - version: 0.1.6 capabilities: - query: - aggregates: {} - variables: {} - explain: {} - nested_fields: - filter_by: {} - order_by: {} - exists: - nested_collections: {} mutation: + explain: {} transactional: {} + query: + aggregates: + filter_by: {} + exists: {} explain: {} - relationships: - relation_comparisons: {} - order_by_aggregate: {} + nested_fields: {} + variables: {} + relational_query: + aggregate: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + group_by: {} + filter: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + join: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + join_types: + full: {} + inner: {} + left: {} + left_anti: {} + left_semi: {} + right: {} + right_anti: {} + right_semi: {} + project: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + sort: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + union: {} + window: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + version: 0.2.5 diff --git a/hasura/industry/telco/customer/metadata/logic-types.hml b/hasura/industry/telco/customer/metadata/logic-types.hml index 87ad7586..261c4626 100644 --- a/hasura/industry/telco/customer/metadata/logic-types.hml +++ b/hasura/industry/telco/customer/metadata/logic-types.hml @@ -1,10 +1,20 @@ +--- +kind: DataConnectorScalarRepresentation +version: v1 +definition: + dataConnectorName: logic + dataConnectorScalarType: String + representation: String + graphql: + comparisonExpressionTypeName: customer_StringComparisonExp + --- kind: ScalarType version: v1 definition: - name: DateTime + name: Timestamp graphql: - typeName: customer_DateTime + typeName: customer_Timestamp --- kind: BooleanExpressionType @@ -13,10 +23,10 @@ definition: name: DateTimeBoolExp operand: scalar: - type: DateTime + type: Timestamp comparisonOperators: - name: _eq - argumentType: DateTime! + argumentType: Timestamp! dataConnectorOperatorMapping: - dataConnectorName: logic dataConnectorScalarType: DateTime @@ -34,7 +44,7 @@ version: v1 definition: dataConnectorName: logic dataConnectorScalarType: DateTime - representation: DateTime + representation: Timestamp graphql: - comparisonExpressionTypeName: customer_DateTimeComparisonExp + comparisonExpressionTypeName: customer_TimestampComparisonExp diff --git a/hasura/industry/telco/customer/metadata/logic.hml b/hasura/industry/telco/customer/metadata/logic.hml index 3bfdf382..b171c111 100644 --- a/hasura/industry/telco/customer/metadata/logic.hml +++ b/hasura/industry/telco/customer/metadata/logic.hml @@ -12,23 +12,23 @@ definition: Authorization: valueFromEnv: CUSTOMER_LOGIC_AUTHORIZATION_HEADER schema: - version: v0.1 + version: v0.2 schema: - scalar_types: - DateTime: - representation: - type: timestamp - aggregate_functions: {} - comparison_operators: - _eq: - type: equal - String: - representation: - type: string - aggregate_functions: {} - comparison_operators: - _eq: - type: equal + collections: [] + functions: + - arguments: + cardNumber: + description: The credit card number to mask. + type: + type: nullable + underlying_type: + name: String + type: named + description: Masks a credit card number to hide all but the last four digits. + name: maskCardNumber + result_type: + name: String + type: named object_types: CreateCampaignObj: fields: @@ -66,6 +66,7 @@ definition: type: name: String type: named + foreign_keys: {} DeviceActionResponse: fields: activation_id: @@ -90,33 +91,18 @@ definition: type: name: String type: named - collections: [] - functions: - - name: maskCardNumber - description: Masks a credit card number to hide all but the last four digits. - arguments: - cardNumber: - description: The credit card number to mask. - type: - type: nullable - underlying_type: - name: String - type: named - result_type: - name: String - type: named + foreign_keys: {} procedures: - - name: CreateCampaign - arguments: + - arguments: camp: type: name: CreateCampaignObj type: named + name: CreateCampaign result_type: name: CreateCampaignObj type: named - - name: activateDevice - arguments: + - arguments: customer_id: type: name: String @@ -129,11 +115,11 @@ definition: type: name: String type: named + name: activateDevice result_type: name: DeviceActionResponse type: named - - name: deactivateDevice - arguments: + - arguments: customer_id: type: name: String @@ -146,13 +132,29 @@ definition: type: name: String type: named + name: deactivateDevice result_type: name: DeviceActionResponse type: named + scalar_types: + DateTime: + aggregate_functions: {} + comparison_operators: + _eq: + type: equal + representation: + type: timestamp + String: + aggregate_functions: {} + comparison_operators: + _eq: + type: equal + representation: + type: string capabilities: - version: 0.1.6 capabilities: + mutation: {} query: - variables: {} nested_fields: {} - mutation: {} + variables: {} + version: 0.2.0 diff --git a/hasura/industry/telco/customer/metadata/mongo-types.hml b/hasura/industry/telco/customer/metadata/mongo-types.hml index 6dfdb436..8242ee3c 100644 --- a/hasura/industry/telco/customer/metadata/mongo-types.hml +++ b/hasura/industry/telco/customer/metadata/mongo-types.hml @@ -1,11 +1,3 @@ ---- -kind: ScalarType -version: v1 -definition: - name: ObjectId - graphql: - typeName: customer_ObjectId - --- kind: BooleanExpressionType version: v1 @@ -13,16 +5,16 @@ definition: name: ObjectIdBoolExp operand: scalar: - type: ObjectId + type: String_1 comparisonOperators: - name: _eq - argumentType: ObjectId! + argumentType: String_1! - name: _in - argumentType: "[ObjectId!]!" + argumentType: "[String_1!]!" - name: _neq - argumentType: ObjectId! + argumentType: String_1! - name: _nin - argumentType: "[ObjectId!]!" + argumentType: "[String_1!]!" dataConnectorOperatorMapping: - dataConnectorName: mongo dataConnectorScalarType: ObjectId @@ -40,9 +32,9 @@ version: v1 definition: dataConnectorName: mongo dataConnectorScalarType: ObjectId - representation: ObjectId + representation: String_1 graphql: - comparisonExpressionTypeName: customer_ObjectIdComparisonExp + comparisonExpressionTypeName: customer_String1ComparisonExp_3 --- kind: DataConnectorScalarRepresentation @@ -52,33 +44,25 @@ definition: dataConnectorScalarType: String representation: String graphql: - comparisonExpressionTypeName: customer_StringComparisonExp - ---- -kind: ScalarType -version: v1 -definition: - name: Bool_1 - graphql: - typeName: customer_Bool1 + comparisonExpressionTypeName: customer_StringComparisonExp_2 --- kind: BooleanExpressionType version: v1 definition: - name: BoolBoolExp_1 + name: BoolBoolExp operand: scalar: - type: Bool_1 + type: Boolean_1 comparisonOperators: - name: _eq - argumentType: Bool_1! + argumentType: Boolean_1! - name: _in - argumentType: "[Bool_1!]!" + argumentType: "[Boolean_1!]!" - name: _neq - argumentType: Bool_1! + argumentType: Boolean_1! - name: _nin - argumentType: "[Bool_1!]!" + argumentType: "[Boolean_1!]!" dataConnectorOperatorMapping: - dataConnectorName: mongo dataConnectorScalarType: Bool @@ -88,7 +72,7 @@ definition: isNull: enable: true graphql: - typeName: customer_BoolBoolExp1 + typeName: customer_BoolBoolExp --- kind: DataConnectorScalarRepresentation @@ -96,9 +80,9 @@ version: v1 definition: dataConnectorName: mongo dataConnectorScalarType: Bool - representation: Bool_1 + representation: Boolean_1 graphql: - comparisonExpressionTypeName: customer_Bool1ComparisonExp + comparisonExpressionTypeName: customer_Boolean1ComparisonExp_1 --- kind: BooleanExpressionType @@ -157,7 +141,7 @@ definition: name: ObjectIdAggExp operand: scalar: - aggregatedType: ObjectId + aggregatedType: String_1 aggregationFunctions: - name: count returnType: Int! @@ -206,19 +190,6 @@ definition: graphql: selectTypeName: customer_StringAggExp ---- -kind: OrderByExpression -version: v1 -definition: - name: ObjectIdOrderByExp - operand: - scalar: - orderedType: ObjectId - enableOrderByDirections: - enableAll: true - graphql: - expressionTypeName: customer_ObjectIdOrderByExp - --- kind: OrderByExpression version: v1 @@ -232,26 +203,13 @@ definition: graphql: expressionTypeName: customer_StringOrderByExp ---- -kind: OrderByExpression -version: v1 -definition: - name: Bool1OrderByExp - operand: - scalar: - orderedType: Bool_1 - enableOrderByDirections: - enableAll: true - graphql: - expressionTypeName: customer_Bool1OrderByExp - --- kind: ScalarType version: v1 definition: - name: Double + name: Float64 graphql: - typeName: customer_Double + typeName: customer_Float64 --- kind: BooleanExpressionType @@ -260,24 +218,24 @@ definition: name: DoubleBoolExp operand: scalar: - type: Double + type: Float64 comparisonOperators: - name: _eq - argumentType: Double! + argumentType: Float64! - name: _gt - argumentType: Double! + argumentType: Float64! - name: _gte - argumentType: Double! + argumentType: Float64! - name: _in - argumentType: "[Double!]!" + argumentType: "[Float64!]!" - name: _lt - argumentType: Double! + argumentType: Float64! - name: _lte - argumentType: Double! + argumentType: Float64! - name: _neq - argumentType: Double! + argumentType: Float64! - name: _nin - argumentType: "[Double!]!" + argumentType: "[Float64!]!" dataConnectorOperatorMapping: - dataConnectorName: mongo dataConnectorScalarType: Double @@ -295,9 +253,9 @@ version: v1 definition: dataConnectorName: mongo dataConnectorScalarType: Double - representation: Double + representation: Float64 graphql: - comparisonExpressionTypeName: customer_DoubleComparisonExp + comparisonExpressionTypeName: customer_Float64ComparisonExp --- kind: BooleanExpressionType diff --git a/hasura/industry/telco/customer/metadata/mongo.hml b/hasura/industry/telco/customer/metadata/mongo.hml index 6096aa0c..96ad65f9 100644 --- a/hasura/industry/telco/customer/metadata/mongo.hml +++ b/hasura/industry/telco/customer/metadata/mongo.hml @@ -14,1248 +14,1272 @@ definition: schema: version: v0.1 schema: - scalar_types: - BinData: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: BinData - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: BinData - Bool: - representation: - type: boolean - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: Bool - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: Bool - Date: - representation: - type: timestamp - aggregate_functions: - count: - result_type: + collections: + - arguments: {} + foreign_keys: {} + name: customerPreferences + type: customerPreferences + uniqueness_constraints: + customerPreferences_id: + unique_columns: + - _id + - arguments: {} + foreign_keys: {} + name: userProfiles + type: userProfiles + uniqueness_constraints: + userProfiles_id: + unique_columns: + - _id + functions: [] + object_types: + customerPreferences: + fields: + _id: + type: + name: ObjectId type: named - name: Int - max: - result_type: + behavioralData: + type: type: nullable underlying_type: + name: customerPreferences_behavioralData type: named - name: Date - min: - result_type: + customer_guid: + type: type: nullable underlying_type: + name: String type: named - name: Date - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Date - _gte: - type: custom - argument_type: - type: named - name: Date - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Date - _lte: - type: custom - argument_type: - type: named - name: Date - _neq: - type: custom - argument_type: - type: named - name: Date - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: Date - DbPointer: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: DbPointer - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: DbPointer - Decimal: - representation: - type: bigdecimal - aggregate_functions: - avg: - result_type: + customerNotes: + type: type: nullable underlying_type: - type: named - name: Decimal - count: - result_type: - type: named - name: Int - max: - result_type: + element_type: + name: customerPreferences_customerNotes + type: named + type: array + preferences: + type: type: nullable underlying_type: + name: customerPreferences_preferences type: named - name: Decimal - min: - result_type: + socialMedia: + type: type: nullable underlying_type: + name: customerPreferences_socialMedia type: named - name: Decimal - sum: - result_type: + customerPreferences_behavioralData: + fields: + lastAppLogin: + type: type: nullable underlying_type: + name: String type: named - name: Decimal - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Decimal - _gte: - type: custom - argument_type: - type: named - name: Decimal - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Decimal - _lte: - type: custom - argument_type: - type: named - name: Decimal - _neq: - type: custom - argument_type: - type: named - name: Decimal - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: Decimal - Double: - representation: - type: float64 - aggregate_functions: - avg: - result_type: + lastWebsiteVisit: + type: type: nullable underlying_type: + name: String type: named - name: Double - count: - result_type: - type: named - name: Int - max: - result_type: + customerPreferences_customerNotes: + fields: + author: + type: type: nullable underlying_type: + name: String type: named - name: Double - min: - result_type: + content: + type: type: nullable underlying_type: + name: String type: named - name: Double - sum: - result_type: + date: + type: type: nullable underlying_type: + name: String type: named - name: Double - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Double - _gte: - type: custom - argument_type: - type: named - name: Double - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Double - _lte: - type: custom - argument_type: - type: named - name: Double - _neq: - type: custom - argument_type: - type: named - name: Double - _nin: - type: custom - argument_type: - type: array - element_type: + customerPreferences_preferences: + fields: + contactMethod: + type: + type: nullable + underlying_type: + name: String type: named - name: Double - ExtendedJSON: - representation: - type: json - aggregate_functions: - avg: - result_type: - type: named - name: ExtendedJSON - count: - result_type: - type: named - name: Int - max: - result_type: - type: named - name: ExtendedJSON - min: - result_type: - type: named - name: ExtendedJSON - sum: - result_type: - type: named - name: ExtendedJSON - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: ExtendedJSON - _gte: - type: custom - argument_type: - type: named - name: ExtendedJSON - _in: - type: custom - argument_type: - type: named - name: ExtendedJSON - _iregex: - type: custom - argument_type: - type: named - name: String - _lt: - type: custom - argument_type: - type: named - name: ExtendedJSON - _lte: - type: custom - argument_type: - type: named - name: ExtendedJSON - _neq: - type: custom - argument_type: - type: named - name: ExtendedJSON - _nin: - type: custom - argument_type: - type: named - name: ExtendedJSON - _regex: - type: custom - argument_type: - type: named - name: String - Int: - representation: - type: int32 - aggregate_functions: - avg: - result_type: + marketingOptIn: + type: type: nullable underlying_type: + name: Bool type: named - name: Int - count: - result_type: - type: named - name: Int - max: - result_type: + customerPreferences_socialMedia: + fields: + facebook: + type: type: nullable underlying_type: + name: String type: named - name: Int - min: - result_type: + instagram: + type: type: nullable underlying_type: + name: String type: named - name: Int - sum: - result_type: + linkedin: + type: type: nullable underlying_type: + name: String type: named - name: Int - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Int - _gte: - type: custom - argument_type: - type: named - name: Int - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Int - _lte: - type: custom - argument_type: - type: named - name: Int - _neq: - type: custom - argument_type: + tiktok: + type: + type: nullable + underlying_type: + name: String + type: named + twitter: + type: + type: nullable + underlying_type: + name: String + type: named + userProfiles: + fields: + _id: + type: + name: String type: named - name: Int - _nin: - type: custom - argument_type: - type: array - element_type: + accountDetails: + type: + type: nullable + underlying_type: + name: userProfiles_accountDetails type: named + customer_id: + type: + type: nullable + underlying_type: name: Int - Javascript: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: {} - JavascriptWithScope: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: {} - Long: - representation: - type: int64 - aggregate_functions: - avg: - result_type: + type: named + identification: + type: type: nullable underlying_type: + name: userProfiles_identification type: named - name: Long - count: - result_type: - type: named - name: Int - max: - result_type: + memberID: + type: type: nullable underlying_type: + name: String type: named - name: Long - min: - result_type: + notes: + type: type: nullable underlying_type: + name: String type: named - name: Long - sum: - result_type: + preferences: + type: type: nullable underlying_type: + name: userProfiles_preferences type: named - name: Long - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Long - _gte: - type: custom - argument_type: - type: named - name: Long - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Long - _lte: - type: custom - argument_type: - type: named - name: Long - _neq: - type: custom - argument_type: - type: named - name: Long - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: Long - MaxKey: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: MaxKey - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: MaxKey - MinKey: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: MinKey - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: MinKey - "Null": - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: "Null" - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: "Null" - ObjectId: - representation: - type: string - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: ObjectId - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: ObjectId - Regex: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: {} - String: - representation: - type: string - aggregate_functions: - count: - result_type: - type: named - name: Int - max: - result_type: + supportHistory: + type: type: nullable underlying_type: + element_type: + name: userProfiles_supportHistory + type: named + type: array + usageStats: + type: + type: nullable + underlying_type: + name: userProfiles_usageStats type: named + userProfiles_accountDetails: + fields: + accountNumber: + type: + type: nullable + underlying_type: name: String - min: - result_type: + type: named + registrationDate: + type: type: nullable underlying_type: + name: String type: named + userProfiles_identification: + fields: + expiryDate: + type: + type: nullable + underlying_type: name: String - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: String - _gte: - type: custom - argument_type: - type: named - name: String - _in: - type: in - _iregex: - type: custom - argument_type: - type: named - name: String - _lt: - type: custom - argument_type: - type: named - name: String - _lte: - type: custom - argument_type: - type: named - name: String - _neq: - type: custom - argument_type: - type: named - name: String - _nin: - type: custom - argument_type: - type: array - element_type: type: named + issuedBy: + type: + type: nullable + underlying_type: name: String - _regex: - type: custom - argument_type: - type: named - name: String - Symbol: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: Symbol - _nin: - type: custom - argument_type: - type: array - element_type: type: named - name: Symbol - Timestamp: - aggregate_functions: - count: - result_type: - type: named - name: Int - max: - result_type: + number: + type: type: nullable underlying_type: + name: String type: named - name: Timestamp - min: - result_type: + type: + type: type: nullable underlying_type: + name: String type: named - name: Timestamp - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Timestamp - _gte: - type: custom - argument_type: - type: named - name: Timestamp - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Timestamp - _lte: - type: custom - argument_type: - type: named - name: Timestamp - _neq: - type: custom - argument_type: - type: named - name: Timestamp - _nin: - type: custom - argument_type: - type: array - element_type: + userProfiles_preferences: + fields: + communication: + type: + type: nullable + underlying_type: + name: userProfiles_preferences_communication type: named - name: Timestamp - UUID: - representation: - type: string - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: UUID - _nin: - type: custom - argument_type: - type: array - element_type: + privacySettings: + type: + type: nullable + underlying_type: + name: userProfiles_preferences_privacySettings type: named - name: UUID - Undefined: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: Undefined - _nin: - type: custom - argument_type: - type: array - element_type: + servicePreferences: + type: + type: nullable + underlying_type: + name: userProfiles_preferences_servicePreferences type: named - name: Undefined - object_types: - customerPreferences: + userProfiles_preferences_communication: fields: - _id: + appNotifications: type: - type: named - name: ObjectId - behavioralData: + type: nullable + underlying_type: + name: userProfiles_preferences_communication_appNotifications + type: named + emailUpdates: type: type: nullable underlying_type: + name: Bool type: named - name: customerPreferences_behavioralData - customer_guid: + smsNotifications: type: type: nullable underlying_type: + name: Bool type: named + userProfiles_preferences_communication_appNotifications: + fields: + enabled: + type: + type: nullable + underlying_type: + name: Bool + type: named + frequency: + type: + type: nullable + underlying_type: name: String - customerNotes: + type: named + userProfiles_preferences_privacySettings: + fields: + adPersonalization: type: type: nullable underlying_type: - type: array - element_type: - type: named - name: customerPreferences_customerNotes - preferences: + name: Bool + type: named + shareDataForImprovements: type: type: nullable underlying_type: + name: Bool type: named - name: customerPreferences_preferences - socialMedia: + userProfiles_preferences_servicePreferences: + fields: + favoriteLocations: + type: + type: nullable + underlying_type: + element_type: + name: userProfiles_preferences_servicePreferences_favoriteLocations + type: named + type: array + networkSettings: type: type: nullable underlying_type: + name: userProfiles_preferences_servicePreferences_networkSettings type: named - name: customerPreferences_socialMedia - customerPreferences_behavioralData: + userProfiles_preferences_servicePreferences_favoriteLocations: fields: - lastAppLogin: + coordinates: type: type: nullable underlying_type: + name: userProfiles_preferences_servicePreferences_favoriteLocations_coordinates type: named - name: String - lastWebsiteVisit: + name: type: type: nullable underlying_type: - type: named name: String - customerPreferences_customerNotes: + type: named + userProfiles_preferences_servicePreferences_favoriteLocations_coordinates: fields: - author: + lat: type: type: nullable underlying_type: + name: Double type: named - name: String - content: + long: type: type: nullable underlying_type: + name: Double type: named - name: String - date: + userProfiles_preferences_servicePreferences_networkSettings: + fields: + dataSaverMode: type: type: nullable underlying_type: + name: Bool type: named - name: String - customerPreferences_preferences: - fields: - contactMethod: + preferredNetworkType: type: type: nullable underlying_type: - type: named name: String - marketingOptIn: + type: named + userProfiles_supportHistory: + fields: + category: type: type: nullable underlying_type: + name: String type: named - name: Bool - customerPreferences_socialMedia: - fields: - facebook: + date: type: type: nullable underlying_type: - type: named name: String - linkedin: + type: named + description: type: type: nullable underlying_type: - type: named name: String - twitter: + type: named + issue: type: type: nullable underlying_type: - type: named name: String - userProfiles: - fields: - _id: - type: - type: named - name: String - accountDetails: + type: named + resolutionNotes: type: type: nullable underlying_type: + name: String type: named - name: userProfiles_accountDetails - customer_id: + status: type: type: nullable underlying_type: + name: String type: named - name: Int - identification: + ticketId: type: type: nullable underlying_type: + name: String type: named - name: userProfiles_identification - memberID: + userProfiles_usageStats: + fields: + appUsage: type: type: nullable underlying_type: - type: named - name: String - notes: + element_type: + name: userProfiles_usageStats_appUsage + type: named + type: array + callStats: type: type: nullable underlying_type: + name: userProfiles_usageStats_callStats type: named - name: String - preferences: + dataUsage: type: type: nullable underlying_type: + name: userProfiles_usageStats_dataUsage type: named - name: userProfiles_preferences - supportHistory: + userProfiles_usageStats_appUsage: + fields: + name: type: type: nullable underlying_type: - type: array - element_type: - type: named - name: userProfiles_supportHistory - usageStats: + name: String + type: named + usage: type: type: nullable underlying_type: + name: String type: named - name: userProfiles_usageStats - userProfiles_accountDetails: + userProfiles_usageStats_callStats: fields: - accountNumber: + internationalMinutes: type: type: nullable underlying_type: + name: Int type: named - name: String - registrationDate: + totalMinutes: type: type: nullable underlying_type: + name: Int type: named - name: String - userProfiles_identification: + userProfiles_usageStats_dataUsage: fields: - expiryDate: + currentMonth: type: type: nullable underlying_type: - type: named name: String - issuedBy: + type: named + total: type: type: nullable underlying_type: - type: named name: String - number: - type: + type: named + procedures: [] + scalar_types: + BinData: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: BinData + type: named + type: custom + _nin: + argument_type: + element_type: + name: BinData + type: named + type: array + type: custom + Bool: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: Bool + type: named + type: custom + _nin: + argument_type: + element_type: + name: Bool + type: named + type: array + type: custom + representation: + type: boolean + Date: + aggregate_functions: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Date type: named - name: String - type: - type: + min: + result_type: type: nullable underlying_type: + name: Date + type: named + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Date + type: named + type: custom + _gte: + argument_type: + name: Date + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Date + type: named + type: custom + _lte: + argument_type: + name: Date + type: named + type: custom + _neq: + argument_type: + name: Date + type: named + type: custom + _nin: + argument_type: + element_type: + name: Date + type: named + type: array + type: custom + representation: + type: timestamp + DbPointer: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: DbPointer + type: named + type: custom + _nin: + argument_type: + element_type: + name: DbPointer type: named - name: String - userProfiles_preferences: - fields: - communication: - type: + type: array + type: custom + Decimal: + aggregate_functions: + avg: + result_type: type: nullable underlying_type: + name: Decimal type: named - name: userProfiles_preferences_communication - privacySettings: - type: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Decimal type: named - name: userProfiles_preferences_privacySettings - servicePreferences: - type: + min: + result_type: type: nullable underlying_type: + name: Decimal type: named - name: userProfiles_preferences_servicePreferences - userProfiles_preferences_communication: - fields: - appNotifications: - type: + sum: + result_type: type: nullable underlying_type: + name: Decimal type: named - name: userProfiles_preferences_communication_appNotifications - emailUpdates: - type: - type: nullable - underlying_type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Decimal + type: named + type: custom + _gte: + argument_type: + name: Decimal + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Decimal + type: named + type: custom + _lte: + argument_type: + name: Decimal + type: named + type: custom + _neq: + argument_type: + name: Decimal + type: named + type: custom + _nin: + argument_type: + element_type: + name: Decimal type: named - name: Bool - smsNotifications: - type: + type: array + type: custom + representation: + type: bigdecimal + Double: + aggregate_functions: + avg: + result_type: type: nullable underlying_type: + name: Double type: named - name: Bool - userProfiles_preferences_communication_appNotifications: - fields: - enabled: - type: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Double type: named - name: Bool - frequency: - type: + min: + result_type: type: nullable underlying_type: + name: Double type: named - name: String - userProfiles_preferences_privacySettings: - fields: - adPersonalization: - type: + sum: + result_type: type: nullable underlying_type: + name: Double type: named - name: Bool - shareDataForImprovements: - type: - type: nullable - underlying_type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Double + type: named + type: custom + _gte: + argument_type: + name: Double + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Double + type: named + type: custom + _lte: + argument_type: + name: Double + type: named + type: custom + _neq: + argument_type: + name: Double + type: named + type: custom + _nin: + argument_type: + element_type: + name: Double type: named - name: Bool - userProfiles_preferences_servicePreferences: - fields: - favoriteLocations: - type: - type: nullable - underlying_type: - type: array - element_type: - type: named - name: userProfiles_preferences_servicePreferences_favoriteLocations - networkSettings: - type: + type: array + type: custom + representation: + type: float64 + ExtendedJSON: + aggregate_functions: + avg: + result_type: + name: ExtendedJSON + type: named + count: + result_type: + name: Int + type: named + max: + result_type: + name: ExtendedJSON + type: named + min: + result_type: + name: ExtendedJSON + type: named + sum: + result_type: + name: ExtendedJSON + type: named + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: ExtendedJSON + type: named + type: custom + _gte: + argument_type: + name: ExtendedJSON + type: named + type: custom + _in: + argument_type: + name: ExtendedJSON + type: named + type: custom + _iregex: + argument_type: + name: String + type: named + type: custom + _lt: + argument_type: + name: ExtendedJSON + type: named + type: custom + _lte: + argument_type: + name: ExtendedJSON + type: named + type: custom + _neq: + argument_type: + name: ExtendedJSON + type: named + type: custom + _nin: + argument_type: + name: ExtendedJSON + type: named + type: custom + _regex: + argument_type: + name: String + type: named + type: custom + representation: + type: json + Int: + aggregate_functions: + avg: + result_type: type: nullable underlying_type: + name: Int type: named - name: userProfiles_preferences_servicePreferences_networkSettings - userProfiles_preferences_servicePreferences_favoriteLocations: - fields: - coordinates: - type: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Int type: named - name: userProfiles_preferences_servicePreferences_favoriteLocations_coordinates - name: - type: + min: + result_type: type: nullable underlying_type: + name: Int type: named - name: String - userProfiles_preferences_servicePreferences_favoriteLocations_coordinates: - fields: - lat: - type: + sum: + result_type: type: nullable underlying_type: + name: Int type: named - name: Double - long: - type: - type: nullable - underlying_type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Int + type: named + type: custom + _gte: + argument_type: + name: Int + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Int + type: named + type: custom + _lte: + argument_type: + name: Int + type: named + type: custom + _neq: + argument_type: + name: Int + type: named + type: custom + _nin: + argument_type: + element_type: + name: Int type: named - name: Double - userProfiles_preferences_servicePreferences_networkSettings: - fields: - dataSaverMode: - type: + type: array + type: custom + representation: + type: int32 + Javascript: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: {} + JavascriptWithScope: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: {} + Long: + aggregate_functions: + avg: + result_type: type: nullable underlying_type: + name: Long type: named - name: Bool - preferredNetworkType: - type: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Long type: named - name: String - userProfiles_supportHistory: - fields: - date: - type: + min: + result_type: type: nullable underlying_type: + name: Long type: named - name: String - issue: - type: + sum: + result_type: type: nullable underlying_type: + name: Long type: named - name: String - resolutionNotes: - type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Long + type: named + type: custom + _gte: + argument_type: + name: Long + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Long + type: named + type: custom + _lte: + argument_type: + name: Long + type: named + type: custom + _neq: + argument_type: + name: Long + type: named + type: custom + _nin: + argument_type: + element_type: + name: Long + type: named + type: array + type: custom + representation: + type: int64 + MaxKey: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: MaxKey + type: named + type: custom + _nin: + argument_type: + element_type: + name: MaxKey + type: named + type: array + type: custom + MinKey: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: MinKey + type: named + type: custom + _nin: + argument_type: + element_type: + name: MinKey + type: named + type: array + type: custom + "Null": + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: "Null" + type: named + type: custom + _nin: + argument_type: + element_type: + name: "Null" + type: named + type: array + type: custom + ObjectId: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: ObjectId + type: named + type: custom + _nin: + argument_type: + element_type: + name: ObjectId + type: named + type: array + type: custom + representation: + type: string + Regex: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: {} + String: + aggregate_functions: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: - type: named name: String - status: - type: - type: nullable - underlying_type: type: named - name: String - ticketId: - type: + min: + result_type: type: nullable underlying_type: - type: named name: String - userProfiles_usageStats: - fields: - appUsage: - type: - type: nullable - underlying_type: - type: array - element_type: - type: named - name: userProfiles_usageStats_appUsage - callStats: - type: - type: nullable - underlying_type: type: named - name: userProfiles_usageStats_callStats - dataUsage: - type: - type: nullable - underlying_type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: String + type: named + type: custom + _gte: + argument_type: + name: String + type: named + type: custom + _in: + type: in + _iregex: + argument_type: + name: String + type: named + type: custom + _lt: + argument_type: + name: String + type: named + type: custom + _lte: + argument_type: + name: String + type: named + type: custom + _neq: + argument_type: + name: String + type: named + type: custom + _nin: + argument_type: + element_type: + name: String type: named - name: userProfiles_usageStats_dataUsage - userProfiles_usageStats_appUsage: - fields: - name: - type: - type: nullable - underlying_type: + type: array + type: custom + _regex: + argument_type: + name: String + type: named + type: custom + representation: + type: string + Symbol: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: Symbol + type: named + type: custom + _nin: + argument_type: + element_type: + name: Symbol type: named - name: String - usage: - type: + type: array + type: custom + Timestamp: + aggregate_functions: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Timestamp type: named - name: String - userProfiles_usageStats_callStats: - fields: - internationalMinutes: - type: + min: + result_type: type: nullable underlying_type: + name: Timestamp type: named - name: Int - totalMinutes: - type: - type: nullable - underlying_type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Timestamp + type: named + type: custom + _gte: + argument_type: + name: Timestamp + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Timestamp + type: named + type: custom + _lte: + argument_type: + name: Timestamp + type: named + type: custom + _neq: + argument_type: + name: Timestamp + type: named + type: custom + _nin: + argument_type: + element_type: + name: Timestamp type: named - name: Int - userProfiles_usageStats_dataUsage: - fields: - currentMonth: - type: - type: nullable - underlying_type: + type: array + type: custom + UUID: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: UUID + type: named + type: custom + _nin: + argument_type: + element_type: + name: UUID type: named - name: String - total: - type: - type: nullable - underlying_type: + type: array + type: custom + representation: + type: string + Undefined: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: Undefined + type: named + type: custom + _nin: + argument_type: + element_type: + name: Undefined type: named - name: String - collections: - - name: customerPreferences - arguments: {} - type: customerPreferences - uniqueness_constraints: - customerPreferences_id: - unique_columns: - - _id - foreign_keys: {} - - name: userProfiles - arguments: {} - type: userProfiles - uniqueness_constraints: - userProfiles_id: - unique_columns: - - _id - foreign_keys: {} - functions: [] - procedures: [] + type: array + type: custom capabilities: - version: 0.1.6 capabilities: + mutation: {} query: aggregates: {} - variables: {} + exists: + nested_collections: {} explain: {} nested_fields: + aggregates: {} filter_by: {} order_by: {} - aggregates: {} - exists: - nested_collections: {} - mutation: {} + variables: {} relationships: relation_comparisons: {} + version: 0.1.6 diff --git a/hasura/industry/telco/customer/metadata/stripe-types.hml b/hasura/industry/telco/customer/metadata/stripe-types.hml index 7bb2cb7e..86d55c8d 100644 --- a/hasura/industry/telco/customer/metadata/stripe-types.hml +++ b/hasura/industry/telco/customer/metadata/stripe-types.hml @@ -6,7 +6,7 @@ definition: dataConnectorScalarType: String representation: String graphql: - comparisonExpressionTypeName: customer_StringComparisonExp_2 + comparisonExpressionTypeName: customer_StringComparisonExp_1 --- kind: DataConnectorScalarRepresentation diff --git a/hasura/industry/telco/customer/metadata/stripe.hml b/hasura/industry/telco/customer/metadata/stripe.hml index a2b9ec34..e9b7e8fa 100644 --- a/hasura/industry/telco/customer/metadata/stripe.hml +++ b/hasura/industry/telco/customer/metadata/stripe.hml @@ -12,30 +12,10 @@ definition: Authorization: valueFromEnv: CUSTOMER_STRIPE_AUTHORIZATION_HEADER schema: - version: v0.1 + version: v0.2 schema: - scalar_types: - Boolean: - representation: - type: boolean - aggregate_functions: {} - comparison_operators: - _eq: - type: equal - Float: - representation: - type: float64 - aggregate_functions: {} - comparison_operators: - _eq: - type: equal - String: - representation: - type: string - aggregate_functions: {} - comparison_operators: - _eq: - type: equal + collections: [] + functions: [] object_types: TelcoCustomer: fields: @@ -59,6 +39,7 @@ definition: type: name: String type: named + foreign_keys: {} TelcoCustomer_metadata: fields: accountType: @@ -73,6 +54,7 @@ definition: type: name: String type: named + foreign_keys: {} TelcoInvoice: fields: amount_due: @@ -107,6 +89,7 @@ definition: type: name: String type: named + foreign_keys: {} TelcoInvoice_lines: fields: data: @@ -115,6 +98,7 @@ definition: name: functions_array23 type: named type: array + foreign_keys: {} TelcoInvoice_metadata: fields: billingCycle: @@ -125,6 +109,7 @@ definition: type: name: String type: named + foreign_keys: {} TelcoProduct: fields: active: @@ -143,6 +128,7 @@ definition: type: name: String type: named + foreign_keys: {} TelcoProduct_metadata: fields: marketingName: @@ -161,6 +147,7 @@ definition: type: name: String type: named + foreign_keys: {} TelcoSubscription: fields: current_period_end: @@ -191,6 +178,7 @@ definition: type: name: String type: named + foreign_keys: {} TelcoSubscription_items: fields: data: @@ -199,6 +187,7 @@ definition: name: functions_array2 type: named type: array + foreign_keys: {} TelcoSubscription_metadata: fields: contractEndDate: @@ -217,6 +206,7 @@ definition: underlying_type: name: String type: named + foreign_keys: {} TelcoUsageRecord: fields: action: @@ -239,6 +229,7 @@ definition: type: name: Float type: named + foreign_keys: {} array_period: fields: end: @@ -249,6 +240,7 @@ definition: type: name: Float type: named + foreign_keys: {} array_price: fields: id: @@ -267,6 +259,7 @@ definition: type: name: Float type: named + foreign_keys: {} createTelcoCustomer_customerData: fields: accountType: @@ -293,6 +286,7 @@ definition: type: name: String type: named + foreign_keys: {} createTelcoProduct_productData: fields: marketingName: @@ -315,6 +309,7 @@ definition: type: name: String type: named + foreign_keys: {} createTelcoSubscription_subscriptionData: fields: contractMonths: @@ -343,6 +338,7 @@ definition: underlying_type: name: String type: named + foreign_keys: {} functions_array: fields: priceId: @@ -355,6 +351,7 @@ definition: underlying_type: name: Float type: named + foreign_keys: {} functions_array2: fields: id: @@ -365,6 +362,7 @@ definition: type: name: array_price type: named + foreign_keys: {} functions_array23: fields: amount: @@ -383,6 +381,7 @@ definition: type: name: array_period type: named + foreign_keys: {} recordTelcoUsage_usageData: fields: action: @@ -405,68 +404,89 @@ definition: underlying_type: name: Float type: named - collections: [] - functions: [] + foreign_keys: {} procedures: - - name: createTelcoCustomer - description: Simulates creating a new telecommunications customer in Stripe - arguments: + - arguments: customerData: description: Data for the new customer type: name: createTelcoCustomer_customerData type: named + description: Simulates creating a new telecommunications customer in Stripe + name: createTelcoCustomer result_type: name: TelcoCustomer type: named - - name: createTelcoSubscription - description: Simulates creating a telecommunications service subscription - arguments: + - arguments: subscriptionData: description: Data for the new subscription type: name: createTelcoSubscription_subscriptionData type: named + description: Simulates creating a telecommunications service subscription + name: createTelcoSubscription result_type: name: TelcoSubscription type: named - - name: recordTelcoUsage - description: Records usage for metered telecommunications services like data overages - arguments: + - arguments: usageData: description: Data about the usage to record type: name: recordTelcoUsage_usageData type: named + description: Records usage for metered telecommunications services like data overages + name: recordTelcoUsage result_type: name: TelcoUsageRecord type: named - - name: getLatestTelcoInvoice - description: Retrieves a customer's latest invoice - arguments: + - arguments: customerId: description: Stripe customer ID type: name: String type: named + description: Retrieves a customer's latest invoice + name: getLatestTelcoInvoice result_type: name: TelcoInvoice type: named - - name: createTelcoProduct - description: Creates a new telecommunications service product in Stripe - arguments: + - arguments: productData: description: Data for the new product type: name: createTelcoProduct_productData type: named + description: Creates a new telecommunications service product in Stripe + name: createTelcoProduct result_type: name: TelcoProduct type: named + scalar_types: + Boolean: + aggregate_functions: {} + comparison_operators: + _eq: + type: equal + representation: + type: boolean + Float: + aggregate_functions: {} + comparison_operators: + _eq: + type: equal + representation: + type: float64 + String: + aggregate_functions: {} + comparison_operators: + _eq: + type: equal + representation: + type: string capabilities: - version: 0.1.6 capabilities: + mutation: {} query: - variables: {} nested_fields: {} - mutation: {} + variables: {} + version: 0.2.0 diff --git a/hasura/industry/telco/customer/subgraph.yaml b/hasura/industry/telco/customer/subgraph.yaml index a7d1edb5..2eaf8aa0 100644 --- a/hasura/industry/telco/customer/subgraph.yaml +++ b/hasura/industry/telco/customer/subgraph.yaml @@ -5,6 +5,7 @@ definition: generator: rootPath: . graphqlTypeNamePrefix: customer_ + namingConvention: snake_case_v2 includePaths: - metadata envMapping: @@ -37,7 +38,7 @@ definition: connectorLinkName: aurora - path: connector/logic/connector.yaml connectorLinkName: logic - - path: connector/mongo/connector.yaml - connectorLinkName: mongo - path: connector/stripe/connector.yaml connectorLinkName: stripe + - path: connector/mongo/connector.yaml + connectorLinkName: mongo diff --git a/hasura/industry/telco/network/connector/clickhouse/.hasura-connector/Dockerfile.clickhouse b/hasura/industry/telco/network/connector/clickhouse/.hasura-connector/Dockerfile.clickhouse index 44a2bf0b..9cfc0b8d 100644 --- a/hasura/industry/telco/network/connector/clickhouse/.hasura-connector/Dockerfile.clickhouse +++ b/hasura/industry/telco/network/connector/clickhouse/.hasura-connector/Dockerfile.clickhouse @@ -1,2 +1,2 @@ -FROM ghcr.io/hasura/ndc-clickhouse:v1.1.0 +FROM ghcr.io/hasura/ndc-clickhouse-jdbc:v1.0.2 COPY ./ /etc/connector \ No newline at end of file diff --git a/hasura/industry/telco/network/connector/clickhouse/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/network/connector/clickhouse/.hasura-connector/connector-metadata.yaml index 6e1d959e..375836c1 100644 --- a/hasura/industry/telco/network/connector/clickhouse/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/network/connector/clickhouse/.hasura-connector/connector-metadata.yaml @@ -1,28 +1,65 @@ +version: v2 +ndcSpecGeneration: v0.2 packagingDefinition: type: PrebuiltDockerImage - dockerImage: ghcr.io/hasura/ndc-clickhouse:v1.1.0 + dockerImage: ghcr.io/hasura/ndc-clickhouse-jdbc:v1.0.2 supportedEnvironmentVariables: - - name: CLICKHOUSE_URL - description: The ClickHouse connection URL - defaultValue: "" - required: true - - name: CLICKHOUSE_USERNAME - description: The ClickHouse connection username - defaultValue: "" - required: true - - name: CLICKHOUSE_PASSWORD - description: The ClickHouse connection password - defaultValue: "" - required: true + - name: JDBC_URL + description: The JDBC URL to connect to the database + - name: JDBC_SCHEMAS + description: A comma-separated list of schemas to include in the metadata commands: - update: hasura-clickhouse update - printSchemaAndCapabilities: hasura-clickhouse print-schema-and-capabilities + update: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-clickhouse-jdbc-cli:v1.0.2 + commandArgs: + - update + - --jdbc-url + - JDBC_URL + - --schemas + - $JDBC_SCHEMAS + - --outfile + - /etc/connector/configuration.json + upgradeConfiguration: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-clickhouse-jdbc-cli:v1.0.2 + commandArgs: + - upgrade + - --config-file + - /etc/connector/configuration.json + - --outfile + - /etc/connector/configuration.json cliPlugin: - type: null - name: clickhouse - version: v1.1.0 -dockerComposeWatch: - - path: ./ - action: sync+restart - target: /etc/connector -documentationPage: https://hasura.info/clickhouse-getting-started + type: Docker + dockerImage: ghcr.io/hasura/ndc-clickhouse-jdbc-cli:v1.0.2 +dockerComposeWatch: [] +nativeToolchainDefinition: + commands: + start: + type: ShellScript + bash: | + #!/usr/bin/env bash + set -eu -o pipefail + HASURA_CONFIGURATION_DIRECTORY="$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" \ + "$HASURA_DDN_NATIVE_CONNECTOR_DIR/entrypoint.sh" + powershell: | + $ErrorActionPreference = "Stop" + $env:HASURA_CONFIGURATION_DIRECTORY="$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH"; + & "$env:HASURA_DDN_NATIVE_CONNECTOR_DIR\entrypoint.bat" + watch: + type: ShellScript + bash: | + #!/usr/bin/env bash + echo "Watch is not supported for this connector" + exit 1 + powershell: | + Write-Output "Watch is not supported for this connector" + exit 1 + update: + type: ShellScript + bash: set -e -o pipefail; "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.sh" update --jdbc-url JDBC_URL --schemas $JDBC_SCHEMAS --outfile "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH/configuration.json" + powershell: $ErrorActionPreference = "Stop"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR\entrypoint.bat" update --jdbc-url JDBC_URL --schemas `$env:JDBC_SCHEMAS --outfile "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH\configuration.json" + cliPluginEntrypoint: + type: ShellScript + bash: set -e -o pipefail; "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.sh" + powershell: $ErrorActionPreference = "Stop"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.bat" diff --git a/hasura/industry/telco/network/connector/clickhouse/compose.yaml b/hasura/industry/telco/network/connector/clickhouse/compose.yaml index 4f61e52b..ca27b842 100644 --- a/hasura/industry/telco/network/connector/clickhouse/compose.yaml +++ b/hasura/industry/telco/network/connector/clickhouse/compose.yaml @@ -4,13 +4,11 @@ services: context: . dockerfile: .hasura-connector/Dockerfile.clickhouse environment: - CLICKHOUSE_PASSWORD: $NETWORK_CLICKHOUSE_CLICKHOUSE_PASSWORD - CLICKHOUSE_URL: $NETWORK_CLICKHOUSE_CLICKHOUSE_URL - CLICKHOUSE_USERNAME: $NETWORK_CLICKHOUSE_CLICKHOUSE_USERNAME HASURA_SERVICE_TOKEN_SECRET: $NETWORK_CLICKHOUSE_HASURA_SERVICE_TOKEN_SECRET + JDBC_URL: $NETWORK_CLICKHOUSE_JDBC_URL OTEL_EXPORTER_OTLP_ENDPOINT: $NETWORK_CLICKHOUSE_OTEL_EXPORTER_OTLP_ENDPOINT OTEL_SERVICE_NAME: $NETWORK_CLICKHOUSE_OTEL_SERVICE_NAME extra_hosts: - local.hasura.dev:host-gateway ports: - - 4842:8080 + - 4045:8080 diff --git a/hasura/industry/telco/network/connector/clickhouse/configuration.json b/hasura/industry/telco/network/connector/clickhouse/configuration.json index 7d9b3d92..4cbc121e 100644 --- a/hasura/industry/telco/network/connector/clickhouse/configuration.json +++ b/hasura/industry/telco/network/connector/clickhouse/configuration.json @@ -1,122 +1,452 @@ { - "$schema": "configuration.schema.json", - "tables": { - ".inner_id.b838e2e6-8196-4082-9223-99af95ed95a2": { - "name": ".inner_id.b838e2e6-8196-4082-9223-99af95ed95a2", - "schema": "default", - "comment": "", - "primary_key": { - "name": "CDR_Timestamp, CDR_GUID", - "columns": [ - "CDR_GUID", - "CDR_Timestamp" - ] - }, - "return_type": { - "kind": "definition", - "columns": { - "CDR_GUID": "String", - "CDR_Timestamp": "DateTime64(6)", - "Call_Duration": "Int32", - "Call_Type": "String", - "DU_GUID": "String", - "DU_Timestamp": "DateTime64(6)", - "Data_Usage": "Float32", - "Download_Speed": "Float32", - "Latency": "Int32", - "NP_GUID": "String", - "NP_Timestamp": "DateTime64(6)", - "Upload_Speed": "Float32" - } - } - }, - "cdr": { - "name": "cdr", - "schema": "default", - "comment": "", - "primary_key": { - "name": "Timestamp, GUID", - "columns": [ - "GUID", - "Timestamp" - ] - }, - "return_type": { - "kind": "definition", - "columns": { - "CUID": "Int32", - "Call_Duration": "Int32", - "Call_Type": "String", - "GUID": "String", - "Timestamp": "DateTime64(6)" - } - } - }, - "data_usage": { - "name": "data_usage", - "schema": "default", - "comment": "", - "primary_key": { - "name": "Timestamp, GUID", - "columns": [ - "GUID", - "Timestamp" - ] - }, - "return_type": { - "kind": "definition", - "columns": { - "CUID": "Int32", - "Data_Usage": "Float32", - "GUID": "String", - "Timestamp": "DateTime64(6)" - } - } - }, - "detailed_user_activity_mv": { - "name": "detailed_user_activity_mv", - "schema": "default", - "comment": "", - "return_type": { - "kind": "definition", - "columns": { - "CDR_GUID": "String", - "CDR_Timestamp": "DateTime64(6)", - "Call_Duration": "Int32", - "Call_Type": "String", - "DU_GUID": "String", - "DU_Timestamp": "DateTime64(6)", - "Data_Usage": "Float32", - "Download_Speed": "Float32", - "Latency": "Int32", - "NP_GUID": "String", - "NP_Timestamp": "DateTime64(6)", - "Upload_Speed": "Float32" - } - } + "version": "v2", + "connection_uri": { + "variable": "JDBC_URL" }, - "network_performance": { - "name": "network_performance", - "schema": "default", - "comment": "", - "primary_key": { - "name": "Timestamp, GUID", - "columns": [ - "GUID", - "Timestamp" - ] - }, - "return_type": { - "kind": "definition", - "columns": { - "CUID": "Int32", - "Download_Speed": "Float32", - "GUID": "String", - "Latency": "Int32", - "Timestamp": "DateTime64(6)", - "Upload_Speed": "Float32" + "tables": [ + { + "name": "default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "CDR_GUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "string" + } + }, + { + "name": "Call_Duration", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "int32" + } + }, + { + "name": "Call_Type", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "string" + } + }, + { + "name": "CDR_Timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "datetime64", + "metadata": { + "type": "precision", + "precision": 6 + } + } + }, + { + "name": "NP_GUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "string" + } + }, + { + "name": "Download_Speed", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "float32" + } + }, + { + "name": "Upload_Speed", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "float32" + } + }, + { + "name": "Latency", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "int32" + } + }, + { + "name": "NP_Timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "datetime64", + "metadata": { + "type": "precision", + "precision": 6 + } + } + }, + { + "name": "DU_GUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "string" + } + }, + { + "name": "Data_Usage", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "float32" + } + }, + { + "name": "DU_Timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "datetime64", + "metadata": { + "type": "precision", + "precision": 6 + } + } + } + ], + "primary_keys": [ + "CDR_GUID", + "CDR_Timestamp" + ], + "foreign_keys": {} + }, + { + "name": "default.cdr", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "CUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "int32" + } + }, + { + "name": "GUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "string" + } + }, + { + "name": "Call_Duration", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "int32" + } + }, + { + "name": "Call_Type", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "string" + } + }, + { + "name": "Timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "datetime64", + "metadata": { + "type": "precision", + "precision": 6 + } + } + } + ], + "primary_keys": [ + "GUID", + "Timestamp" + ], + "foreign_keys": {} + }, + { + "name": "default.data_usage", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "CUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "int32" + } + }, + { + "name": "GUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "string" + } + }, + { + "name": "Data_Usage", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "float32" + } + }, + { + "name": "Timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "datetime64", + "metadata": { + "type": "precision", + "precision": 6 + } + } + } + ], + "primary_keys": [ + "GUID", + "Timestamp" + ], + "foreign_keys": {} + }, + { + "name": "default.detailed_user_activity_mv", + "description": null, + "category": "VIEW", + "columns": [ + { + "name": "CDR_GUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "string" + } + }, + { + "name": "Call_Duration", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "int32" + } + }, + { + "name": "Call_Type", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "string" + } + }, + { + "name": "CDR_Timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "datetime64", + "metadata": { + "type": "precision", + "precision": 6 + } + } + }, + { + "name": "NP_GUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "string" + } + }, + { + "name": "Download_Speed", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "float32" + } + }, + { + "name": "Upload_Speed", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "float32" + } + }, + { + "name": "Latency", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "int32" + } + }, + { + "name": "NP_Timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "datetime64", + "metadata": { + "type": "precision", + "precision": 6 + } + } + }, + { + "name": "DU_GUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "string" + } + }, + { + "name": "Data_Usage", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "float32" + } + }, + { + "name": "DU_Timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "datetime64", + "metadata": { + "type": "precision", + "precision": 6 + } + } + } + ], + "primary_keys": [], + "foreign_keys": {} + }, + { + "name": "default.network_performance", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "CUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "int32" + } + }, + { + "name": "GUID", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "string" + } + }, + { + "name": "Download_Speed", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "float32" + } + }, + { + "name": "Upload_Speed", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "float32" + } + }, + { + "name": "Latency", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "int32" + } + }, + { + "name": "Timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "datetime64", + "metadata": { + "type": "precision", + "precision": 6 + } + } + } + ], + "primary_keys": [ + "GUID", + "Timestamp" + ], + "foreign_keys": {} } - } - } - } + ] } \ No newline at end of file diff --git a/hasura/industry/telco/network/connector/clickhouse/configuration.schema.json b/hasura/industry/telco/network/connector/clickhouse/configuration.schema.json deleted file mode 100644 index fd0ad11a..00000000 --- a/hasura/industry/telco/network/connector/clickhouse/configuration.schema.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ServerConfigFile", - "description": "the main configuration file", - "type": "object", - "required": [ - "$schema" - ], - "properties": { - "$schema": { - "type": "string" - }, - "tables": { - "description": "A list of tables available in this database\n\nThe map key is a unique table alias that defaults to defaults to \"_\", except for tables in the \"default\" schema where the table name is used This is the name exposed to the engine, and may be configured by users. When the configuration is updated, the table is identified by name and schema, and changes to the alias are preserved.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TableConfigFile" - } - }, - "queries": { - "description": "Optionally define custom parameterized queries here Note the names must not match table names", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParameterizedQueryConfigFile" - } - } - }, - "definitions": { - "TableConfigFile": { - "type": "object", - "required": [ - "name", - "return_type", - "schema" - ], - "properties": { - "name": { - "description": "The table name", - "type": "string" - }, - "schema": { - "description": "The table schema", - "type": "string" - }, - "comment": { - "description": "Comments are sourced from the database table comment", - "type": [ - "string", - "null" - ] - }, - "primary_key": { - "anyOf": [ - { - "$ref": "#/definitions/PrimaryKey" - }, - { - "type": "null" - } - ] - }, - "arguments": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "return_type": { - "description": "The map key is a column alias identifying the table and may be customized. It defaults to the table name. When the configuration is updated, the column is identified by name, and changes to the alias are preserved.", - "allOf": [ - { - "$ref": "#/definitions/ReturnType" - } - ] - } - } - }, - "PrimaryKey": { - "type": "object", - "required": [ - "columns", - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "columns": { - "description": "The names of columns in this primary key", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ReturnType": { - "oneOf": [ - { - "description": "A custom return type definition The keys are column names, the values are parsable clichouse datatypes", - "type": "object", - "required": [ - "columns", - "kind" - ], - "properties": { - "kind": { - "type": "string", - "enum": [ - "definition" - ] - }, - "columns": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - { - "description": "the same as the return type for another table", - "type": "object", - "required": [ - "kind", - "table_name" - ], - "properties": { - "kind": { - "type": "string", - "enum": [ - "table_reference" - ] - }, - "table_name": { - "description": "the table alias must match a key in `tables`, and the query must return the same type as that table alternatively, the alias may reference another parameterized query which has a return type definition,", - "type": "string" - } - } - }, - { - "description": "The same as the return type for another query", - "type": "object", - "required": [ - "kind", - "query_name" - ], - "properties": { - "kind": { - "type": "string", - "enum": [ - "query_reference" - ] - }, - "query_name": { - "description": "the table alias must match a key in `tables`, and the query must return the same type as that table alternatively, the alias may reference another parameterized query which has a return type definition,", - "type": "string" - } - } - } - ] - }, - "ParameterizedQueryConfigFile": { - "type": "object", - "required": [ - "exposed_as", - "file", - "return_type" - ], - "properties": { - "exposed_as": { - "description": "Whether this query should be exposed as a procedure (mutating) or collection (non-mutating)", - "allOf": [ - { - "$ref": "#/definitions/ParameterizedQueryExposedAs" - } - ] - }, - "comment": { - "description": "A comment that will be exposed in the schema", - "type": [ - "string", - "null" - ] - }, - "file": { - "description": "A relative path to a sql file", - "type": "string" - }, - "return_type": { - "description": "Either a type definition for the return type for this query, or a reference to another return type: either a table's alias, or another query's alias. If another query, that query must have a return type definition.", - "allOf": [ - { - "$ref": "#/definitions/ReturnType" - } - ] - } - } - }, - "ParameterizedQueryExposedAs": { - "type": "string", - "enum": [ - "collection", - "procedure" - ] - } - } -} \ No newline at end of file diff --git a/hasura/industry/telco/network/connector/clickhouse/connector.yaml b/hasura/industry/telco/network/connector/clickhouse/connector.yaml index 3da34921..723aa10a 100644 --- a/hasura/industry/telco/network/connector/clickhouse/connector.yaml +++ b/hasura/industry/telco/network/connector/clickhouse/connector.yaml @@ -3,17 +3,15 @@ version: v2 definition: name: clickhouse subgraph: network - source: hasura/clickhouse:v1.1.0 + source: hasura/clickhouse-promptql:v1.0.2 context: . envMapping: - CLICKHOUSE_PASSWORD: - fromEnv: NETWORK_CLICKHOUSE_CLICKHOUSE_PASSWORD - CLICKHOUSE_URL: - fromEnv: NETWORK_CLICKHOUSE_CLICKHOUSE_URL - CLICKHOUSE_USERNAME: - fromEnv: NETWORK_CLICKHOUSE_CLICKHOUSE_USERNAME + HASURA_CONNECTOR_PORT: + fromEnv: NETWORK_CLICKHOUSE_HASURA_CONNECTOR_PORT HASURA_SERVICE_TOKEN_SECRET: fromEnv: NETWORK_CLICKHOUSE_HASURA_SERVICE_TOKEN_SECRET + JDBC_URL: + fromEnv: NETWORK_CLICKHOUSE_JDBC_URL OTEL_EXPORTER_OTLP_ENDPOINT: fromEnv: NETWORK_CLICKHOUSE_OTEL_EXPORTER_OTLP_ENDPOINT OTEL_SERVICE_NAME: diff --git a/hasura/industry/telco/network/connector/kafka_sink/.hasura-connector/Dockerfile.kafka_sink b/hasura/industry/telco/network/connector/kafka_sink/.hasura-connector/Dockerfile.kafka_sink index 371b9090..da99a414 100644 --- a/hasura/industry/telco/network/connector/kafka_sink/.hasura-connector/Dockerfile.kafka_sink +++ b/hasura/industry/telco/network/connector/kafka_sink/.hasura-connector/Dockerfile.kafka_sink @@ -1,2 +1,2 @@ -FROM ghcr.io/hasura/ndc-postgres:v2.1.1 +FROM ghcr.io/hasura/ndc-postgres-jdbc:v1.2.6 COPY ./ /etc/connector \ No newline at end of file diff --git a/hasura/industry/telco/network/connector/kafka_sink/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/network/connector/kafka_sink/.hasura-connector/connector-metadata.yaml index 27cdb8b8..19580961 100644 --- a/hasura/industry/telco/network/connector/kafka_sink/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/network/connector/kafka_sink/.hasura-connector/connector-metadata.yaml @@ -1,55 +1,65 @@ +version: v2 +ndcSpecGeneration: v0.2 packagingDefinition: type: PrebuiltDockerImage - dockerImage: ghcr.io/hasura/ndc-postgres:v2.1.1 + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc:v1.2.6 supportedEnvironmentVariables: - - name: CONNECTION_URI - description: The PostgreSQL connection URI - defaultValue: postgresql://read_only_user:readonlyuser@35.236.11.122:5432/v3-docs-sample-app - - name: CLIENT_CERT - description: The SSL client certificate (Optional) - defaultValue: "" - - name: CLIENT_KEY - description: The SSL client key (Optional) - defaultValue: "" - - name: ROOT_CERT - description: The SSL root certificate (Optional) - defaultValue: "" + - name: JDBC_URL + description: The JDBC URL to connect to the database + - name: JDBC_SCHEMAS + description: A comma-separated list of schemas to include in the metadata commands: - update: hasura-ndc-postgres update + update: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 + commandArgs: + - update + - --jdbc-url + - JDBC_URL + - --schemas + - $JDBC_SCHEMAS + - --outfile + - /etc/connector/configuration.json + upgradeConfiguration: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 + commandArgs: + - upgrade + - --config-file + - /etc/connector/configuration.json + - --outfile + - /etc/connector/configuration.json cliPlugin: - type: null - name: ndc-postgres - version: v2.1.1 -dockerComposeWatch: - - path: ./ - action: sync+restart - target: /etc/connector + type: Docker + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 +dockerComposeWatch: [] nativeToolchainDefinition: commands: start: type: ShellScript - bash: |- + bash: | #!/usr/bin/env bash set -eu -o pipefail - HASURA_CONFIGURATION_DIRECTORY="$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "$HASURA_DDN_NATIVE_CONNECTOR_DIR/ndc-postgres" serve - powershell: |- + HASURA_CONFIGURATION_DIRECTORY="$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" \ + "$HASURA_DDN_NATIVE_CONNECTOR_DIR/entrypoint.sh" + powershell: | $ErrorActionPreference = "Stop" - $env:HASURA_CONFIGURATION_DIRECTORY="$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_DIR\ndc-postgres.exe" serve + $env:HASURA_CONFIGURATION_DIRECTORY="$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH"; + & "$env:HASURA_DDN_NATIVE_CONNECTOR_DIR\entrypoint.bat" watch: type: ShellScript - bash: |- + bash: | #!/usr/bin/env bash echo "Watch is not supported for this connector" exit 1 - powershell: |- + powershell: | Write-Output "Watch is not supported for this connector" exit 1 update: type: ShellScript - bash: |- - #!/usr/bin/env bash - set -eu -o pipefail - "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/hasura-ndc-postgres" update - powershell: |- - $ErrorActionPreference = "Stop" - & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR\hasura-ndc-postgres.exe" update + bash: set -e -o pipefail; "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.sh" update --jdbc-url JDBC_URL --schemas $JDBC_SCHEMAS --outfile "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH/configuration.json" + powershell: $ErrorActionPreference = "Stop"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR\entrypoint.bat" update --jdbc-url JDBC_URL --schemas `$env:JDBC_SCHEMAS --outfile "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH\configuration.json" + cliPluginEntrypoint: + type: ShellScript + bash: set -e -o pipefail; "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.sh" + powershell: $ErrorActionPreference = "Stop"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.bat" diff --git a/hasura/industry/telco/network/connector/kafka_sink/compose.postgres-adminer.yaml b/hasura/industry/telco/network/connector/kafka_sink/compose.postgres-adminer.yaml deleted file mode 100644 index b76632f5..00000000 --- a/hasura/industry/telco/network/connector/kafka_sink/compose.postgres-adminer.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# Configuration used for adminer -configs: - adminer-index.php: - content: | - $$_ENV['ADMINER_DEFAULT_SERVER'], - 'username' => $$_ENV['ADMINER_DEFAULT_USERNAME'], - 'password' => $$_ENV['ADMINER_DEFAULT_PASSWORD'], - 'driver' => $$_ENV['ADMINER_DEFAULT_DRIVER'], - 'db' => $$_ENV['ADMINER_DEFAULT_DB'], - ]; - } - include './adminer.php'; - ?> -services: - # Adminer is a lightweight database management tool (optional) - adminer: - configs: - - source: adminer-index.php - target: /var/www/html/index.php - depends_on: - - postgres - environment: - ADMINER_DEFAULT_DB: dev - ADMINER_DEFAULT_DRIVER: pgsql - ADMINER_DEFAULT_PASSWORD: password - ADMINER_DEFAULT_SERVER: postgres - ADMINER_DEFAULT_USERNAME: user - image: adminer:latest - ports: - - 4101:8080 - restart: unless-stopped - # Bundled Postgres database with pgvector (optional) - postgres: - environment: - POSTGRES_DB: dev - POSTGRES_PASSWORD: password - POSTGRES_USER: user - image: pgvector/pgvector:pg17 - ports: - - 7508:5432 - restart: unless-stopped - volumes: - - db_data:/var/lib/postgresql/data -volumes: - db_data: {} diff --git a/hasura/industry/telco/network/connector/kafka_sink/compose.yaml b/hasura/industry/telco/network/connector/kafka_sink/compose.yaml index e30aa2ed..dcb31140 100644 --- a/hasura/industry/telco/network/connector/kafka_sink/compose.yaml +++ b/hasura/industry/telco/network/connector/kafka_sink/compose.yaml @@ -4,11 +4,11 @@ services: context: . dockerfile: .hasura-connector/Dockerfile.kafka_sink environment: - CONNECTION_URI: $NETWORK_KAFKA_SINK_CONNECTION_URI HASURA_SERVICE_TOKEN_SECRET: $NETWORK_KAFKA_SINK_HASURA_SERVICE_TOKEN_SECRET + JDBC_URL: $NETWORK_KAFKA_SINK_JDBC_URL OTEL_EXPORTER_OTLP_ENDPOINT: $NETWORK_KAFKA_SINK_OTEL_EXPORTER_OTLP_ENDPOINT OTEL_SERVICE_NAME: $NETWORK_KAFKA_SINK_OTEL_SERVICE_NAME extra_hosts: - local.hasura.dev:host-gateway ports: - - 4040:8080 + - 9204:8080 diff --git a/hasura/industry/telco/network/connector/kafka_sink/configuration.json b/hasura/industry/telco/network/connector/kafka_sink/configuration.json index cb79298b..73faa737 100644 --- a/hasura/industry/telco/network/connector/kafka_sink/configuration.json +++ b/hasura/industry/telco/network/connector/kafka_sink/configuration.json @@ -1,1463 +1,790 @@ { - "version": "5", - "$schema": "schema.json", - "connectionSettings": { - "connectionUri": { - "variable": "CONNECTION_URI" + "version": "v2", + "connection_uri": { + "variable": "JDBC_URL" }, - "poolSettings": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "isolationLevel": "ReadCommitted" - }, - "metadata": { - "tables": { - "calls": { - "schemaName": "public", - "tableName": "calls", - "columns": { - "callid": { - "name": "callid", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "calltype": { - "name": "calltype", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "customerid": { - "name": "customerid", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "deviceid": { - "name": "deviceid", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "duration": { - "name": "duration", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "latitude": { - "name": "latitude", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "longitude": { - "name": "longitude", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "nodeid": { - "name": "nodeid", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "receivernumber": { - "name": "receivernumber", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "timestamp": { - "name": "timestamp", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nonNullable", - "description": null - } - }, - "uniquenessConstraints": { - "calls_pkey": [ - "callid" - ] - }, - "foreignRelations": {}, - "description": null - }, - "coverage_areas": { - "schemaName": "public", - "tableName": "coverage_areas", - "columns": { - "coverage_id": { - "name": "coverage_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "coverage_radius_km": { - "name": "coverage_radius_km", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "last_upgraded": { - "name": "last_upgraded", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "node_id": { - "name": "node_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "population_covered": { - "name": "population_covered", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "signal_strength_dbm": { - "name": "signal_strength_dbm", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "technology": { - "name": "technology", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "terrain_type": { - "name": "terrain_type", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "coverage_areas_pkey": [ - "coverage_id" - ] - }, - "foreignRelations": {}, - "description": null - }, - "equipment": { - "schemaName": "public", - "tableName": "equipment", - "columns": { - "capacity_mbps": { - "name": "capacity_mbps", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "equipment_id": { - "name": "equipment_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "equipment_type": { - "name": "equipment_type", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "firmware_version": { - "name": "firmware_version", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "installation_date": { - "name": "installation_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "last_maintenance_date": { - "name": "last_maintenance_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "manufacturer": { - "name": "manufacturer", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "model": { - "name": "model", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "node_id": { - "name": "node_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "power_consumption_watts": { - "name": "power_consumption_watts", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "serial_number": { - "name": "serial_number", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "status": { - "name": "status", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "equipment_pkey": [ - "equipment_id" - ] - }, - "foreignRelations": {}, - "description": null - }, - "outages": { - "schemaName": "public", - "tableName": "outages", - "columns": { - "affected_customers": { - "name": "affected_customers", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "cause": { - "name": "cause", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "end_time": { - "name": "end_time", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "description": null - }, - "node_id": { - "name": "node_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "outage_id": { - "name": "outage_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "resolution": { - "name": "resolution", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "severity": { - "name": "severity", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "start_time": { - "name": "start_time", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nonNullable", - "description": null - } - }, - "uniquenessConstraints": { - "outages_pkey": [ - "outage_id" - ] + "tables": [ + { + "name": "public.calls", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "callid", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customerid", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "deviceid", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "duration", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "calltype", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "receivernumber", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 15 + } + } + }, + { + "name": "nodeid", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "latitude", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 9, + "scale": 6 + } + } + }, + { + "name": "longitude", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 9, + "scale": 6 + } + } + } + ], + "primary_keys": [ + "callid" + ], + "foreign_keys": {} }, - "foreignRelations": {}, - "description": null - }, - "spectrum_licenses": { - "schemaName": "public", - "tableName": "spectrum_licenses", - "columns": { - "acquisition_date": { - "name": "acquisition_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "bandwidth_mhz": { - "name": "bandwidth_mhz", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "cost_million_usd": { - "name": "cost_million_usd", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "expiration_date": { - "name": "expiration_date", - "type": { - "scalarType": "date" - }, - "nullable": "nullable", - "description": null - }, - "frequency_band": { - "name": "frequency_band", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "geographic_area": { - "name": "geographic_area", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "license_id": { - "name": "license_id", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "license_number": { - "name": "license_number", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "regulatory_authority": { - "name": "regulatory_authority", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } + { + "name": "public.coverage_areas", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "coverage_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "node_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "technology", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 10 + } + } + }, + { + "name": "coverage_radius_km", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "population_covered", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "terrain_type", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "signal_strength_dbm", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "last_upgraded", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + } + ], + "primary_keys": [ + "coverage_id" + ], + "foreign_keys": {} }, - "uniquenessConstraints": { - "spectrum_licenses_pkey": [ - "license_id" - ] + { + "name": "public.equipment", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "equipment_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "node_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "equipment_type", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "manufacturer", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "model", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "serial_number", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "installation_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "last_maintenance_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "firmware_version", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "capacity_mbps", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "power_consumption_watts", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + } + ], + "primary_keys": [ + "equipment_id" + ], + "foreign_keys": {} }, - "foreignRelations": {}, - "description": null - }, - "texts": { - "schemaName": "public", - "tableName": "texts", - "columns": { - "customerid": { - "name": "customerid", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "deviceid": { - "name": "deviceid", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "latitude": { - "name": "latitude", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "longitude": { - "name": "longitude", - "type": { - "scalarType": "numeric" - }, - "nullable": "nullable", - "description": null - }, - "messagetype": { - "name": "messagetype", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "nodeid": { - "name": "nodeid", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "receivernumber": { - "name": "receivernumber", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "textid": { - "name": "textid", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "timestamp": { - "name": "timestamp", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nonNullable", - "description": null - } + { + "name": "public.outages", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "outage_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "node_id", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "start_time", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "end_time", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "affected_customers", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "severity", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "cause", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "resolution", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + } + ], + "primary_keys": [ + "outage_id" + ], + "foreign_keys": {} }, - "uniquenessConstraints": { - "texts_pkey": [ - "textid" - ] + { + "name": "public.spectrum_licenses", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "license_id", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "frequency_band", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 20 + } + } + }, + { + "name": "bandwidth_mhz", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "geographic_area", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "acquisition_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "expiration_date", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "date" + } + }, + { + "name": "cost_million_usd", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 10, + "scale": 2 + } + } + }, + { + "name": "regulatory_authority", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 100 + } + } + }, + { + "name": "license_number", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + } + ], + "primary_keys": [ + "license_id" + ], + "foreign_keys": {} }, - "foreignRelations": {}, - "description": null - } - }, - "types": { - "scalar": { - "date": { - "typeName": "date", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "date" - }, - "min": { - "returnType": "date" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "date", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "date", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "date", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "date", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "date", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "date", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "date", - "isInfix": true - } - }, - "typeRepresentation": "date" - }, - "int4": { - "typeName": "int4", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "bit_and": { - "returnType": "int4" - }, - "bit_or": { - "returnType": "int4" - }, - "bit_xor": { - "returnType": "int4" - }, - "max": { - "returnType": "int4" - }, - "min": { - "returnType": "int4" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "int8" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "int4", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "int4", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - } - }, - "typeRepresentation": "int32" - }, - "int8": { - "typeName": "int8", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "bit_and": { - "returnType": "int8" - }, - "bit_or": { - "returnType": "int8" - }, - "bit_xor": { - "returnType": "int8" - }, - "max": { - "returnType": "int8" - }, - "min": { - "returnType": "int8" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "numeric" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "int8", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "int8", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - } - }, - "typeRepresentation": "int64AsString" - }, - "numeric": { - "typeName": "numeric", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "max": { - "returnType": "numeric" - }, - "min": { - "returnType": "numeric" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "numeric" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "numeric", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "numeric", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - } - }, - "typeRepresentation": "bigDecimalAsString" - }, - "text": { - "typeName": "text", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "text" - }, - "min": { - "returnType": "text" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "text", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_ilike": { - "operatorName": "~~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "text", - "isInfix": true - }, - "_iregex": { - "operatorName": "~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_like": { - "operatorName": "~~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nilike": { - "operatorName": "!~~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_niregex": { - "operatorName": "!~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nlike": { - "operatorName": "!~~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nregex": { - "operatorName": "!~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_regex": { - "operatorName": "~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "starts_with": { - "operatorName": "starts_with", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": false - }, - "ts_match_tt": { - "operatorName": "ts_match_tt", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": false - } - }, - "typeRepresentation": "string" - }, - "timestamptz": { - "typeName": "timestamptz", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "timestamptz" - }, - "min": { - "returnType": "timestamptz" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "timestamptz", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "timestamptz", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - } - }, - "typeRepresentation": "timestamptz" - }, - "varchar": { - "typeName": "varchar", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "text" - }, - "min": { - "returnType": "text" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "varchar", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_ilike": { - "operatorName": "~~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "varchar", - "isInfix": true - }, - "_iregex": { - "operatorName": "~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_like": { - "operatorName": "~~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nilike": { - "operatorName": "!~~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_niregex": { - "operatorName": "!~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nlike": { - "operatorName": "!~~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nregex": { - "operatorName": "!~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_regex": { - "operatorName": "~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "starts_with": { - "operatorName": "starts_with", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": false - }, - "ts_match_tt": { - "operatorName": "ts_match_tt", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": false - } - }, - "typeRepresentation": "string" + { + "name": "public.texts", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "textid", + "nullable": false, + "auto_increment": true, + "is_primarykey": true, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "customerid", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "deviceid", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "timestamp", + "nullable": false, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "messagetype", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 50 + } + } + }, + { + "name": "receivernumber", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "character_varying", + "metadata": { + "type": "length", + "length": 15 + } + } + }, + { + "name": "nodeid", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "latitude", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 9, + "scale": 6 + } + } + }, + { + "name": "longitude", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "numeric", + "metadata": { + "type": "numeric", + "precision": 9, + "scale": 6 + } + } + } + ], + "primary_keys": [ + "textid" + ], + "foreign_keys": {} } - }, - "composite": {} - }, - "nativeOperations": { - "queries": {}, - "mutations": {} - } - }, - "introspectionOptions": { - "excludedSchemas": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal", - "_timescaledb_catalog", - "_timescaledb_functions", - "_timescaledb_internal", - "_timescaledb_cache", - "_timescaledb_config", - "timescaledb_experimental", - "timescaledb_information", - "_timescaledb_debug" - ], - "unqualifiedSchemasForTables": [ - "public" - ], - "unqualifiedSchemasForTypesAndProcedures": [ - "public", - "pg_catalog", - "tiger" - ], - "comparisonOperatorMapping": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "introspectPrefixFunctionComparisonOperators": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "typeRepresentations": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - } - }, - "mutationsVersion": "v2", - "mutationsPrefix": "" -} + ] +} \ No newline at end of file diff --git a/hasura/industry/telco/network/connector/kafka_sink/connector.yaml b/hasura/industry/telco/network/connector/kafka_sink/connector.yaml index ae808cb6..7141764c 100644 --- a/hasura/industry/telco/network/connector/kafka_sink/connector.yaml +++ b/hasura/industry/telco/network/connector/kafka_sink/connector.yaml @@ -3,15 +3,15 @@ version: v2 definition: name: kafka_sink subgraph: network - source: hasura/postgres:v2.1.1 + source: hasura/postgres-promptql:v1.2.6 context: . envMapping: - CONNECTION_URI: - fromEnv: NETWORK_KAFKA_SINK_CONNECTION_URI HASURA_CONNECTOR_PORT: fromEnv: NETWORK_KAFKA_SINK_HASURA_CONNECTOR_PORT HASURA_SERVICE_TOKEN_SECRET: fromEnv: NETWORK_KAFKA_SINK_HASURA_SERVICE_TOKEN_SECRET + JDBC_URL: + fromEnv: NETWORK_KAFKA_SINK_JDBC_URL OTEL_EXPORTER_OTLP_ENDPOINT: fromEnv: NETWORK_KAFKA_SINK_OTEL_EXPORTER_OTLP_ENDPOINT OTEL_SERVICE_NAME: diff --git a/hasura/industry/telco/network/connector/kafka_sink/schema.json b/hasura/industry/telco/network/connector/kafka_sink/schema.json deleted file mode 100644 index 049e72ba..00000000 --- a/hasura/industry/telco/network/connector/kafka_sink/schema.json +++ /dev/null @@ -1,1638 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ParsedConfiguration", - "description": "Initial configuration, just enough to connect to a database and elaborate a full 'Configuration'.", - "type": "object", - "required": [ - "version" - ], - "properties": { - "version": { - "$ref": "#/definitions/Version" - }, - "$schema": { - "description": "Jsonschema of the configuration format.", - "default": null, - "type": [ - "string", - "null" - ] - }, - "connectionSettings": { - "description": "Database connection settings.", - "default": { - "connectionUri": { - "variable": "CONNECTION_URI" - }, - "poolSettings": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "isolationLevel": "ReadCommitted" - }, - "allOf": [ - { - "$ref": "#/definitions/DatabaseConnectionSettings" - } - ] - }, - "metadata": { - "description": "Connector metadata.", - "default": { - "tables": {}, - "types": { - "scalar": {}, - "composite": {} - }, - "nativeOperations": { - "queries": {}, - "mutations": {} - } - }, - "allOf": [ - { - "$ref": "#/definitions/Metadata" - } - ] - }, - "introspectionOptions": { - "description": "Database introspection options.", - "default": { - "excludedSchemas": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal", - "_timescaledb_catalog", - "_timescaledb_functions", - "_timescaledb_internal", - "_timescaledb_cache", - "_timescaledb_config", - "timescaledb_experimental", - "timescaledb_information", - "_timescaledb_debug" - ], - "unqualifiedSchemasForTables": [ - "public" - ], - "unqualifiedSchemasForTypesAndProcedures": [ - "public", - "pg_catalog", - "tiger" - ], - "comparisonOperatorMapping": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "introspectPrefixFunctionComparisonOperators": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "typeRepresentations": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - } - }, - "allOf": [ - { - "$ref": "#/definitions/IntrospectionOptions" - } - ] - }, - "mutationsVersion": { - "description": "Which version of the generated mutation procedures to include in the schema response", - "default": null, - "anyOf": [ - { - "$ref": "#/definitions/MutationsVersion" - }, - { - "type": "null" - } - ] - }, - "mutationsPrefix": { - "description": "Provide a custom prefix for generated mutation names. Defaults to mutations version.", - "default": null, - "type": [ - "string", - "null" - ] - } - }, - "definitions": { - "Version": { - "type": "string", - "enum": [ - "5" - ] - }, - "DatabaseConnectionSettings": { - "description": "Database connection settings.", - "type": "object", - "required": [ - "connectionUri" - ], - "properties": { - "connectionUri": { - "description": "Connection string for a Postgres-compatible database.", - "allOf": [ - { - "$ref": "#/definitions/ConnectionUri" - } - ] - }, - "poolSettings": { - "description": "Connection pool settings.", - "default": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "allOf": [ - { - "$ref": "#/definitions/PoolSettings" - } - ] - }, - "isolationLevel": { - "description": "Query isolation level.", - "default": "ReadCommitted", - "allOf": [ - { - "$ref": "#/definitions/IsolationLevel" - } - ] - } - } - }, - "ConnectionUri": { - "$ref": "#/definitions/Secret" - }, - "Secret": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "object", - "required": [ - "variable" - ], - "properties": { - "variable": { - "$ref": "#/definitions/Variable" - } - } - } - ] - }, - "Variable": { - "description": "The name of an an environment variable.", - "type": "string" - }, - "PoolSettings": { - "description": "Settings for the PostgreSQL connection pool", - "type": "object", - "properties": { - "maxConnections": { - "description": "maximum number of pool connections", - "default": 50, - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "poolTimeout": { - "description": "timeout for acquiring a connection from the pool (seconds)", - "default": 30, - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "idleTimeout": { - "description": "idle timeout for releasing a connection from the pool (seconds)", - "default": 180, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - }, - "checkConnectionAfterIdle": { - "description": "check the connection is alive after being idle for N seconds. Set to null to always check.", - "default": 60, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - }, - "connectionLifetime": { - "description": "maximum lifetime for an individual connection (seconds)", - "default": 600, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - } - } - }, - "IsolationLevel": { - "description": "The isolation level of the transaction in which a query is executed.", - "oneOf": [ - { - "description": "Prevents reading data from another uncommitted transaction.", - "type": "string", - "enum": [ - "ReadCommitted" - ] - }, - { - "description": "Reading the same data twice is guaranteed to return the same result.", - "type": "string", - "enum": [ - "RepeatableRead" - ] - }, - { - "description": "Concurrent transactions behave identically to serializing them one at a time.", - "type": "string", - "enum": [ - "Serializable" - ] - } - ] - }, - "Metadata": { - "description": "Metadata information.", - "type": "object", - "properties": { - "tables": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/TablesInfo" - } - ] - }, - "types": { - "default": { - "scalar": {}, - "composite": {} - }, - "allOf": [ - { - "$ref": "#/definitions/Types" - } - ] - }, - "nativeOperations": { - "default": { - "queries": {}, - "mutations": {} - }, - "allOf": [ - { - "$ref": "#/definitions/NativeOperations" - } - ] - } - } - }, - "TablesInfo": { - "description": "Mapping from a \"table\" name to its information.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TableInfo" - } - }, - "TableInfo": { - "description": "Information about a database table (or any other kind of relation).", - "type": "object", - "required": [ - "columns", - "schemaName", - "tableName" - ], - "properties": { - "schemaName": { - "type": "string" - }, - "tableName": { - "type": "string" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - } - }, - "uniquenessConstraints": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/UniquenessConstraints" - } - ] - }, - "foreignRelations": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/ForeignRelations" - } - ] - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "ColumnInfo": { - "description": "Information about a database column.", - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "nullable": { - "default": "nullable", - "allOf": [ - { - "$ref": "#/definitions/Nullable" - } - ] - }, - "hasDefault": { - "$ref": "#/definitions/HasDefault" - }, - "isIdentity": { - "$ref": "#/definitions/IsIdentity" - }, - "isGenerated": { - "$ref": "#/definitions/IsGenerated" - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "Type": { - "description": "The type of values that a column, field, or argument may take.", - "oneOf": [ - { - "type": "object", - "required": [ - "scalarType" - ], - "properties": { - "scalarType": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "compositeType" - ], - "properties": { - "compositeType": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "arrayType" - ], - "properties": { - "arrayType": { - "$ref": "#/definitions/Type" - } - }, - "additionalProperties": false - } - ] - }, - "Nullable": { - "description": "Can this column contain null values", - "type": "string", - "enum": [ - "nullable", - "nonNullable" - ] - }, - "HasDefault": { - "description": "Does this column have a default value.", - "type": "string", - "enum": [ - "noDefault", - "hasDefault" - ] - }, - "IsIdentity": { - "description": "Is this column an identity column.", - "type": "string", - "enum": [ - "notIdentity", - "identityByDefault", - "identityAlways" - ] - }, - "IsGenerated": { - "description": "Is this column a generated column.", - "type": "string", - "enum": [ - "notGenerated", - "stored" - ] - }, - "UniquenessConstraints": { - "description": "A mapping from the name of a unique constraint to its value.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UniquenessConstraint" - } - }, - "UniquenessConstraint": { - "description": "The set of columns that make up a uniqueness constraint. We map each table column to their ndc field names.", - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "ForeignRelations": { - "description": "A mapping from the name of a foreign key constraint to its value.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ForeignRelation" - } - }, - "ForeignRelation": { - "description": "A foreign key constraint.", - "type": "object", - "required": [ - "columnMapping", - "foreignTable" - ], - "properties": { - "foreignSchema": { - "type": [ - "string", - "null" - ] - }, - "foreignTable": { - "type": "string" - }, - "columnMapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Types": { - "description": "Information about types.", - "type": "object", - "required": [ - "composite", - "scalar" - ], - "properties": { - "scalar": { - "$ref": "#/definitions/ScalarTypes" - }, - "composite": { - "$ref": "#/definitions/CompositeTypes" - } - } - }, - "ScalarTypes": { - "description": "Map of all known/occurring scalar types.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ScalarType" - } - }, - "ScalarType": { - "description": "Information about a scalar type. A scalar type is completely characterized by its name and the operations you can do on it.", - "type": "object", - "required": [ - "aggregateFunctions", - "comparisonOperators", - "schemaName", - "typeName" - ], - "properties": { - "typeName": { - "type": "string" - }, - "schemaName": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "aggregateFunctions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/AggregateFunction" - } - }, - "comparisonOperators": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ComparisonOperator" - } - }, - "typeRepresentation": { - "anyOf": [ - { - "$ref": "#/definitions/TypeRepresentation" - }, - { - "type": "null" - } - ] - } - } - }, - "AggregateFunction": { - "type": "object", - "required": [ - "returnType" - ], - "properties": { - "returnType": { - "type": "string" - } - } - }, - "ComparisonOperator": { - "description": "Represents a postgres binary comparison operator", - "type": "object", - "required": [ - "argumentType", - "operatorKind", - "operatorName" - ], - "properties": { - "operatorName": { - "type": "string" - }, - "operatorKind": { - "$ref": "#/definitions/OperatorKind" - }, - "argumentType": { - "type": "string" - }, - "isInfix": { - "default": true, - "type": "boolean" - } - } - }, - "OperatorKind": { - "description": "Is it a built-in operator, or a custom operator.", - "type": "string", - "enum": [ - "equal", - "in", - "custom" - ] - }, - "TypeRepresentation": { - "description": "Type representation of a scalar type.", - "oneOf": [ - { - "description": "JSON booleans", - "type": "string", - "enum": [ - "boolean" - ] - }, - { - "description": "Any JSON string", - "type": "string", - "enum": [ - "string" - ] - }, - { - "description": "float4", - "type": "string", - "enum": [ - "float32" - ] - }, - { - "description": "float8", - "type": "string", - "enum": [ - "float64" - ] - }, - { - "description": "int2", - "type": "string", - "enum": [ - "int16" - ] - }, - { - "description": "int4", - "type": "string", - "enum": [ - "int32" - ] - }, - { - "description": "int8 as integer", - "type": "string", - "enum": [ - "int64" - ] - }, - { - "description": "int8 as string", - "type": "string", - "enum": [ - "int64AsString" - ] - }, - { - "description": "numeric", - "type": "string", - "enum": [ - "bigDecimal" - ] - }, - { - "description": "numeric as string", - "type": "string", - "enum": [ - "bigDecimalAsString" - ] - }, - { - "description": "timestamp", - "type": "string", - "enum": [ - "timestamp" - ] - }, - { - "description": "timestamp with timezone", - "type": "string", - "enum": [ - "timestamptz" - ] - }, - { - "description": "time", - "type": "string", - "enum": [ - "time" - ] - }, - { - "description": "time with timezone", - "type": "string", - "enum": [ - "timetz" - ] - }, - { - "description": "date", - "type": "string", - "enum": [ - "date" - ] - }, - { - "description": "uuid", - "type": "string", - "enum": [ - "uUID" - ] - }, - { - "description": "geography", - "type": "string", - "enum": [ - "geography" - ] - }, - { - "description": "geometry", - "type": "string", - "enum": [ - "geometry" - ] - }, - { - "description": "Any JSON number", - "type": "string", - "enum": [ - "number" - ] - }, - { - "description": "Any JSON number, with no decimal part", - "type": "string", - "enum": [ - "integer" - ] - }, - { - "description": "An arbitrary json.", - "type": "string", - "enum": [ - "json" - ] - }, - { - "description": "One of the specified string values", - "type": "object", - "required": [ - "enum" - ], - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - ] - }, - "CompositeTypes": { - "description": "Map of all known composite types.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/CompositeType" - } - }, - "CompositeType": { - "description": "Information about a composite type. These are very similar to tables, but with the crucial difference that composite types do not support constraints (such as NOT NULL).", - "type": "object", - "required": [ - "fields", - "schemaName", - "typeName" - ], - "properties": { - "typeName": { - "type": "string" - }, - "schemaName": { - "type": "string" - }, - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/FieldInfo" - } - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "FieldInfo": { - "description": "Information about a composite type field.", - "type": "object", - "required": [ - "fieldName", - "type" - ], - "properties": { - "fieldName": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeOperations": { - "description": "Metadata information of Native Operations.", - "type": "object", - "required": [ - "mutations", - "queries" - ], - "properties": { - "queries": { - "description": "Native Queries.", - "allOf": [ - { - "$ref": "#/definitions/NativeQueries" - } - ] - }, - "mutations": { - "description": "Native Mutations.", - "allOf": [ - { - "$ref": "#/definitions/NativeMutations" - } - ] - } - } - }, - "NativeQueries": { - "description": "Metadata information of Native Queries.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/NativeQueryInfo" - } - }, - "NativeQueryInfo": { - "description": "Information about a Native Operation", - "type": "object", - "required": [ - "columns", - "sql" - ], - "properties": { - "sql": { - "description": "SQL expression to use for the Native Operation. We can interpolate values using `{{variable_name}}` syntax, such as `SELECT * FROM authors WHERE name = {{author_name}}`", - "allOf": [ - { - "$ref": "#/definitions/NativeQuerySql" - } - ] - }, - "columns": { - "description": "Columns returned by the Native Operation", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ReadOnlyColumnInfo" - } - }, - "arguments": { - "description": "Names and types of arguments that can be passed to this Native Operation", - "default": {}, - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ReadOnlyColumnInfo" - } - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeQuerySql": { - "description": "Native Operation SQL location.", - "anyOf": [ - { - "description": "Refer to an external Native Operation SQL file.", - "type": "object", - "required": [ - "file" - ], - "properties": { - "file": { - "description": "Relative path to a sql file.", - "type": "string" - } - } - }, - { - "description": "Inline Native Operation SQL string.", - "type": "object", - "required": [ - "inline" - ], - "properties": { - "inline": { - "description": "An inline Native Operation SQL string.", - "allOf": [ - { - "$ref": "#/definitions/InlineNativeQuerySql" - } - ] - } - } - }, - { - "$ref": "#/definitions/InlineNativeQuerySql" - } - ] - }, - "InlineNativeQuerySql": { - "type": "string" - }, - "ReadOnlyColumnInfo": { - "description": "Information about a native query column.", - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "nullable": { - "default": "nullable", - "allOf": [ - { - "$ref": "#/definitions/Nullable" - } - ] - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeMutations": { - "description": "Metadata information of Native Mutations.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/NativeQueryInfo" - } - }, - "IntrospectionOptions": { - "description": "Options which only influence how the configuration is updated.", - "type": "object", - "properties": { - "excludedSchemas": { - "description": "Schemas which are excluded from introspection. The default setting will exclude the internal schemas of Postgres, Citus, Cockroach, and the PostGIS extension.", - "default": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal", - "_timescaledb_catalog", - "_timescaledb_functions", - "_timescaledb_internal", - "_timescaledb_cache", - "_timescaledb_config", - "timescaledb_experimental", - "timescaledb_information", - "_timescaledb_debug" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "unqualifiedSchemasForTables": { - "description": "The names of Tables and Views in these schemas will be returned unqualified. The default setting will set the `public` schema as unqualified.", - "default": [ - "public" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "unqualifiedSchemasForTypesAndProcedures": { - "description": "The types and procedures in these schemas will be returned unqualified.", - "default": [ - "public", - "pg_catalog", - "tiger" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "comparisonOperatorMapping": { - "description": "The mapping of comparison operator names to apply when updating the configuration", - "default": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/ComparisonOperatorMapping" - } - }, - "introspectPrefixFunctionComparisonOperators": { - "description": "Which prefix functions (i.e., non-infix operators) to generate introspection metadata for.\n\nThis list will accept any boolean-returning function taking two concrete scalar types as arguments.\n\nThe default includes comparisons for various build-in types as well as those of PostGIS.", - "default": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "typeRepresentations": { - "description": "The type representations to pick for base scalar types.", - "default": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - }, - "allOf": [ - { - "$ref": "#/definitions/TypeRepresentations" - } - ] - } - } - }, - "ComparisonOperatorMapping": { - "description": "Define the names that comparison operators will be exposed as by the automatic introspection.", - "type": "object", - "required": [ - "exposedName", - "operatorKind", - "operatorName" - ], - "properties": { - "operatorName": { - "description": "The name of the operator as defined by the database", - "type": "string" - }, - "exposedName": { - "description": "The name the operator will appear under in the exposed API", - "type": "string" - }, - "operatorKind": { - "description": "Equal, In or Custom.", - "allOf": [ - { - "$ref": "#/definitions/OperatorKind" - } - ] - } - } - }, - "TypeRepresentations": { - "description": "The type representations that guide introspection.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TypeRepresentation" - } - }, - "MutationsVersion": { - "description": "Which version of the generated mutations will be included in the schema", - "type": "string", - "enum": [ - "v1", - "v2" - ] - } - } -} diff --git a/hasura/industry/telco/network/metadata/Calls.hml b/hasura/industry/telco/network/metadata/Calls.hml deleted file mode 100644 index 59d4001b..00000000 --- a/hasura/industry/telco/network/metadata/Calls.hml +++ /dev/null @@ -1,197 +0,0 @@ ---- -kind: ObjectType -version: v1 -definition: - name: Calls - fields: - - name: callid - type: Int4! - - name: calltype - type: Varchar - - name: customerid - type: Int4! - - name: deviceid - type: Int4! - - name: duration - type: Int4! - - name: latitude - type: Numeric - - name: longitude - type: Numeric - - name: nodeid - type: Int4 - - name: receivernumber - type: Varchar - - name: timestamp - type: Timestamptz! - graphql: - typeName: network_Calls - inputTypeName: network_CallsInput - dataConnectorTypeMapping: - - dataConnectorName: kafka_sink - dataConnectorObjectType: calls - ---- -kind: TypePermissions -version: v1 -definition: - typeName: Calls - permissions: - - role: admin - output: - allowedFields: - - callid - - calltype - - customerid - - deviceid - - duration - - latitude - - longitude - - nodeid - - receivernumber - - timestamp - ---- -kind: BooleanExpressionType -version: v1 -definition: - name: CallsBoolExp - operand: - object: - type: Calls - comparableFields: - - fieldName: callid - booleanExpressionType: Int4BoolExp - - fieldName: calltype - booleanExpressionType: VarcharBoolExp - - fieldName: customerid - booleanExpressionType: Int4BoolExp - - fieldName: deviceid - booleanExpressionType: Int4BoolExp - - fieldName: duration - booleanExpressionType: Int4BoolExp - - fieldName: latitude - booleanExpressionType: NumericBoolExp - - fieldName: longitude - booleanExpressionType: NumericBoolExp - - fieldName: nodeid - booleanExpressionType: Int4BoolExp - - fieldName: receivernumber - booleanExpressionType: VarcharBoolExp - - fieldName: timestamp - booleanExpressionType: TimestamptzBoolExp - comparableRelationships: [] - logicalOperators: - enable: true - isNull: - enable: true - graphql: - typeName: network_CallsBoolExp - ---- -kind: AggregateExpression -version: v1 -definition: - name: CallsAggExp - operand: - object: - aggregatedType: Calls - aggregatableFields: - - fieldName: callid - aggregateExpression: Int4AggExp - - fieldName: calltype - aggregateExpression: VarcharAggExp - - fieldName: customerid - aggregateExpression: Int4AggExp - - fieldName: deviceid - aggregateExpression: Int4AggExp - - fieldName: duration - aggregateExpression: Int4AggExp - - fieldName: latitude - aggregateExpression: NumericAggExp - - fieldName: longitude - aggregateExpression: NumericAggExp - - fieldName: nodeid - aggregateExpression: Int4AggExp - - fieldName: receivernumber - aggregateExpression: VarcharAggExp - - fieldName: timestamp - aggregateExpression: TimestamptzAggExp - count: - enable: true - graphql: - selectTypeName: network_CallsAggExp - ---- -kind: OrderByExpression -version: v1 -definition: - name: CallsOrderByExp - operand: - object: - orderedType: Calls - orderableFields: - - fieldName: callid - orderByExpression: Int4OrderByExp - - fieldName: calltype - orderByExpression: VarcharOrderByExp - - fieldName: customerid - orderByExpression: Int4OrderByExp - - fieldName: deviceid - orderByExpression: Int4OrderByExp - - fieldName: duration - orderByExpression: Int4OrderByExp - - fieldName: latitude - orderByExpression: NumericOrderByExp - - fieldName: longitude - orderByExpression: NumericOrderByExp - - fieldName: nodeid - orderByExpression: Int4OrderByExp - - fieldName: receivernumber - orderByExpression: VarcharOrderByExp - - fieldName: timestamp - orderByExpression: TimestamptzOrderByExp - orderableRelationships: [] - graphql: - expressionTypeName: network_CallsOrderByExp - ---- -kind: Model -version: v2 -definition: - name: Calls - objectType: Calls - source: - dataConnectorName: kafka_sink - collection: calls - filterExpressionType: CallsBoolExp - aggregateExpression: CallsAggExp - orderByExpression: CallsOrderByExp - graphql: - selectMany: - queryRootField: calls - subscription: - rootField: calls - selectUniques: - - queryRootField: callsByCallid - uniqueIdentifier: - - callid - subscription: - rootField: callsByCallid - filterInputTypeName: network_CallsFilterInput - aggregate: - queryRootField: callsAggregate - subscription: - rootField: callsAggregate - ---- -kind: ModelPermissions -version: v1 -definition: - modelName: Calls - permissions: - - role: admin - select: - filter: null - allowSubscriptions: true - diff --git a/hasura/industry/telco/network/metadata/Cdr.hml b/hasura/industry/telco/network/metadata/DefaultCdr.hml similarity index 66% rename from hasura/industry/telco/network/metadata/Cdr.hml rename to hasura/industry/telco/network/metadata/DefaultCdr.hml index 42edb5a2..36ea3beb 100644 --- a/hasura/industry/telco/network/metadata/Cdr.hml +++ b/hasura/industry/telco/network/metadata/DefaultCdr.hml @@ -2,24 +2,25 @@ kind: ObjectType version: v1 definition: - name: Cdr + name: DefaultCdr + description: "Object type for default.cdr. Description: null" fields: - name: cuid type: Int32! - name: callDuration type: Int32! - name: callType - type: String! + type: String_1! - name: guid - type: String! + type: String_1! - name: timestamp - type: DateTime646! + type: Timestamptz! graphql: - typeName: network_Cdr - inputTypeName: network_CdrInput + typeName: network_DefaultCdr + inputTypeName: network_DefaultCdrInput dataConnectorTypeMapping: - dataConnectorName: clickhouse - dataConnectorObjectType: cdr + dataConnectorObjectType: default.cdr fieldMapping: cuid: column: @@ -41,7 +42,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Cdr + typeName: DefaultCdr permissions: - role: admin output: @@ -56,10 +57,10 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: CdrBoolExp + name: DefaultCdrBoolExp operand: object: - type: Cdr + type: DefaultCdr comparableFields: - fieldName: cuid booleanExpressionType: Int32BoolExp @@ -70,23 +71,23 @@ definition: - fieldName: guid booleanExpressionType: StringBoolExp - fieldName: timestamp - booleanExpressionType: DateTime646BoolExp + booleanExpressionType: Datetime64BoolExp comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_CdrBoolExp + typeName: network_DefaultCdrBoolExp --- kind: AggregateExpression version: v1 definition: - name: CdrAggExp + name: DefaultCdrAggExp operand: object: - aggregatedType: Cdr + aggregatedType: DefaultCdr aggregatableFields: - fieldName: cuid aggregateExpression: Int32AggExp @@ -97,70 +98,70 @@ definition: - fieldName: guid aggregateExpression: StringAggExp - fieldName: timestamp - aggregateExpression: DateTime646AggExp + aggregateExpression: Datetime64AggExp count: enable: true graphql: - selectTypeName: network_CdrAggExp + selectTypeName: network_DefaultCdrAggExp --- kind: OrderByExpression version: v1 definition: - name: CdrOrderByExp + name: DefaultCdrOrderByExp operand: object: - orderedType: Cdr + orderedType: DefaultCdr orderableFields: - fieldName: cuid orderByExpression: Int32OrderByExp - fieldName: callDuration orderByExpression: Int32OrderByExp - fieldName: callType - orderByExpression: StringOrderByExp + orderByExpression: String1OrderByExp - fieldName: guid - orderByExpression: StringOrderByExp + orderByExpression: String1OrderByExp - fieldName: timestamp - orderByExpression: DateTime646OrderByExp + orderByExpression: TimestamptzOrderByExp orderableRelationships: [] graphql: - expressionTypeName: network_CdrOrderByExp + expressionTypeName: network_DefaultCdrOrderByExp --- kind: Model version: v2 definition: - name: Cdr - objectType: Cdr + name: DefaultCdr + objectType: DefaultCdr source: dataConnectorName: clickhouse - collection: cdr - filterExpressionType: CdrBoolExp - aggregateExpression: CdrAggExp - orderByExpression: CdrOrderByExp + collection: default.cdr + filterExpressionType: DefaultCdrBoolExp + aggregateExpression: DefaultCdrAggExp + orderByExpression: DefaultCdrOrderByExp graphql: selectMany: - queryRootField: cdr + queryRootField: defaultCdr subscription: - rootField: cdr + rootField: defaultCdr selectUniques: - - queryRootField: cdrByTimestampGuid + - queryRootField: defaultCdrByPrimaryKey uniqueIdentifier: - guid - timestamp subscription: - rootField: cdrByTimestampGuid - filterInputTypeName: network_CdrFilterInput + rootField: defaultCdrByPrimaryKey + filterInputTypeName: network_DefaultCdrFilterInput aggregate: - queryRootField: cdrAggregate + queryRootField: defaultCdrAggregate subscription: - rootField: cdrAggregate + rootField: defaultCdrAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Cdr + modelName: DefaultCdr permissions: - role: admin select: diff --git a/hasura/industry/telco/network/metadata/DataUsage.hml b/hasura/industry/telco/network/metadata/DefaultDataUsage.hml similarity index 61% rename from hasura/industry/telco/network/metadata/DataUsage.hml rename to hasura/industry/telco/network/metadata/DefaultDataUsage.hml index e2d57416..20ad75a3 100644 --- a/hasura/industry/telco/network/metadata/DataUsage.hml +++ b/hasura/industry/telco/network/metadata/DefaultDataUsage.hml @@ -2,22 +2,23 @@ kind: ObjectType version: v1 definition: - name: DataUsage + name: DefaultDataUsage + description: "Object type for default.data_usage. Description: null" fields: - name: cuid type: Int32! - name: dataUsage type: Float32! - name: guid - type: String! + type: String_1! - name: timestamp - type: DateTime646! + type: Timestamptz! graphql: - typeName: network_DataUsage - inputTypeName: network_DataUsageInput + typeName: network_DefaultDataUsage + inputTypeName: network_DefaultDataUsageInput dataConnectorTypeMapping: - dataConnectorName: clickhouse - dataConnectorObjectType: data_usage + dataConnectorObjectType: default.data_usage fieldMapping: cuid: column: @@ -36,7 +37,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: DataUsage + typeName: DefaultDataUsage permissions: - role: admin output: @@ -50,10 +51,10 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: DataUsageBoolExp + name: DefaultDataUsageBoolExp operand: object: - type: DataUsage + type: DefaultDataUsage comparableFields: - fieldName: cuid booleanExpressionType: Int32BoolExp @@ -62,23 +63,23 @@ definition: - fieldName: guid booleanExpressionType: StringBoolExp - fieldName: timestamp - booleanExpressionType: DateTime646BoolExp + booleanExpressionType: Datetime64BoolExp comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_DataUsageBoolExp + typeName: network_DefaultDataUsageBoolExp --- kind: AggregateExpression version: v1 definition: - name: DataUsageAggExp + name: DefaultDataUsageAggExp operand: object: - aggregatedType: DataUsage + aggregatedType: DefaultDataUsage aggregatableFields: - fieldName: cuid aggregateExpression: Int32AggExp @@ -87,68 +88,68 @@ definition: - fieldName: guid aggregateExpression: StringAggExp - fieldName: timestamp - aggregateExpression: DateTime646AggExp + aggregateExpression: Datetime64AggExp count: enable: true graphql: - selectTypeName: network_DataUsageAggExp + selectTypeName: network_DefaultDataUsageAggExp --- kind: OrderByExpression version: v1 definition: - name: DataUsageOrderByExp + name: DefaultDataUsageOrderByExp operand: object: - orderedType: DataUsage + orderedType: DefaultDataUsage orderableFields: - fieldName: cuid orderByExpression: Int32OrderByExp - fieldName: dataUsage orderByExpression: Float32OrderByExp - fieldName: guid - orderByExpression: StringOrderByExp + orderByExpression: String1OrderByExp - fieldName: timestamp - orderByExpression: DateTime646OrderByExp + orderByExpression: TimestamptzOrderByExp orderableRelationships: [] graphql: - expressionTypeName: network_DataUsageOrderByExp + expressionTypeName: network_DefaultDataUsageOrderByExp --- kind: Model version: v2 definition: - name: DataUsage - objectType: DataUsage + name: DefaultDataUsage + objectType: DefaultDataUsage source: dataConnectorName: clickhouse - collection: data_usage - filterExpressionType: DataUsageBoolExp - aggregateExpression: DataUsageAggExp - orderByExpression: DataUsageOrderByExp + collection: default.data_usage + filterExpressionType: DefaultDataUsageBoolExp + aggregateExpression: DefaultDataUsageAggExp + orderByExpression: DefaultDataUsageOrderByExp graphql: selectMany: - queryRootField: dataUsage + queryRootField: defaultDataUsage subscription: - rootField: dataUsage + rootField: defaultDataUsage selectUniques: - - queryRootField: dataUsageByTimestampGuid + - queryRootField: defaultDataUsageByPrimaryKey uniqueIdentifier: - guid - timestamp subscription: - rootField: dataUsageByTimestampGuid - filterInputTypeName: network_DataUsageFilterInput + rootField: defaultDataUsageByPrimaryKey + filterInputTypeName: network_DefaultDataUsageFilterInput aggregate: - queryRootField: dataUsageAggregate + queryRootField: defaultDataUsageAggregate subscription: - rootField: dataUsageAggregate + rootField: defaultDataUsageAggregate --- kind: ModelPermissions version: v1 definition: - modelName: DataUsage + modelName: DefaultDataUsage permissions: - role: admin select: diff --git a/hasura/industry/telco/network/metadata/DetailedUserActivityMv.hml b/hasura/industry/telco/network/metadata/DefaultDetailedUserActivityMv.hml similarity index 67% rename from hasura/industry/telco/network/metadata/DetailedUserActivityMv.hml rename to hasura/industry/telco/network/metadata/DefaultDetailedUserActivityMv.hml index 6cce7d4f..415f06df 100644 --- a/hasura/industry/telco/network/metadata/DetailedUserActivityMv.hml +++ b/hasura/industry/telco/network/metadata/DefaultDetailedUserActivityMv.hml @@ -2,20 +2,21 @@ kind: ObjectType version: v1 definition: - name: DetailedUserActivityMv + name: DefaultDetailedUserActivityMv + description: "Object type for default.detailed_user_activity_mv. Description: null" fields: - name: cdrGuid - type: String! + type: String_1! - name: cdrTimestamp - type: DateTime646! + type: Timestamptz! - name: callDuration type: Int32! - name: callType - type: String! + type: String_1! - name: duGuid - type: String! + type: String_1! - name: duTimestamp - type: DateTime646! + type: Timestamptz! - name: dataUsage type: Float32! - name: downloadSpeed @@ -23,17 +24,17 @@ definition: - name: latency type: Int32! - name: npGuid - type: String! + type: String_1! - name: npTimestamp - type: DateTime646! + type: Timestamptz! - name: uploadSpeed type: Float32! graphql: - typeName: network_DetailedUserActivityMv - inputTypeName: network_DetailedUserActivityMvInput + typeName: network_DefaultDetailedUserActivityMv + inputTypeName: network_DefaultDetailedUserActivityMvInput dataConnectorTypeMapping: - dataConnectorName: clickhouse - dataConnectorObjectType: detailed_user_activity_mv + dataConnectorObjectType: default.detailed_user_activity_mv fieldMapping: cdrGuid: column: @@ -76,7 +77,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: DetailedUserActivityMv + typeName: DefaultDetailedUserActivityMv permissions: - role: admin output: @@ -98,15 +99,15 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: DetailedUserActivityMvBoolExp + name: DefaultDetailedUserActivityMvBoolExp operand: object: - type: DetailedUserActivityMv + type: DefaultDetailedUserActivityMv comparableFields: - fieldName: cdrGuid booleanExpressionType: StringBoolExp - fieldName: cdrTimestamp - booleanExpressionType: DateTime646BoolExp + booleanExpressionType: Datetime64BoolExp - fieldName: callDuration booleanExpressionType: Int32BoolExp - fieldName: callType @@ -114,7 +115,7 @@ definition: - fieldName: duGuid booleanExpressionType: StringBoolExp - fieldName: duTimestamp - booleanExpressionType: DateTime646BoolExp + booleanExpressionType: Datetime64BoolExp - fieldName: dataUsage booleanExpressionType: Float32BoolExp - fieldName: downloadSpeed @@ -124,7 +125,7 @@ definition: - fieldName: npGuid booleanExpressionType: StringBoolExp - fieldName: npTimestamp - booleanExpressionType: DateTime646BoolExp + booleanExpressionType: Datetime64BoolExp - fieldName: uploadSpeed booleanExpressionType: Float32BoolExp comparableRelationships: [] @@ -133,21 +134,21 @@ definition: isNull: enable: true graphql: - typeName: network_DetailedUserActivityMvBoolExp + typeName: network_DefaultDetailedUserActivityMvBoolExp --- kind: AggregateExpression version: v1 definition: - name: DetailedUserActivityMvAggExp + name: DefaultDetailedUserActivityMvAggExp operand: object: - aggregatedType: DetailedUserActivityMv + aggregatedType: DefaultDetailedUserActivityMv aggregatableFields: - fieldName: cdrGuid aggregateExpression: StringAggExp - fieldName: cdrTimestamp - aggregateExpression: DateTime646AggExp + aggregateExpression: Datetime64AggExp - fieldName: callDuration aggregateExpression: Int32AggExp - fieldName: callType @@ -155,7 +156,7 @@ definition: - fieldName: duGuid aggregateExpression: StringAggExp - fieldName: duTimestamp - aggregateExpression: DateTime646AggExp + aggregateExpression: Datetime64AggExp - fieldName: dataUsage aggregateExpression: Float32AggExp - fieldName: downloadSpeed @@ -165,35 +166,35 @@ definition: - fieldName: npGuid aggregateExpression: StringAggExp - fieldName: npTimestamp - aggregateExpression: DateTime646AggExp + aggregateExpression: Datetime64AggExp - fieldName: uploadSpeed aggregateExpression: Float32AggExp count: enable: true graphql: - selectTypeName: network_DetailedUserActivityMvAggExp + selectTypeName: network_DefaultDetailedUserActivityMvAggExp --- kind: OrderByExpression version: v1 definition: - name: DetailedUserActivityMvOrderByExp + name: DefaultDetailedUserActivityMvOrderByExp operand: object: - orderedType: DetailedUserActivityMv + orderedType: DefaultDetailedUserActivityMv orderableFields: - fieldName: cdrGuid - orderByExpression: StringOrderByExp + orderByExpression: String1OrderByExp - fieldName: cdrTimestamp - orderByExpression: DateTime646OrderByExp + orderByExpression: TimestamptzOrderByExp - fieldName: callDuration orderByExpression: Int32OrderByExp - fieldName: callType - orderByExpression: StringOrderByExp + orderByExpression: String1OrderByExp - fieldName: duGuid - orderByExpression: StringOrderByExp + orderByExpression: String1OrderByExp - fieldName: duTimestamp - orderByExpression: DateTime646OrderByExp + orderByExpression: TimestamptzOrderByExp - fieldName: dataUsage orderByExpression: Float32OrderByExp - fieldName: downloadSpeed @@ -201,44 +202,44 @@ definition: - fieldName: latency orderByExpression: Int32OrderByExp - fieldName: npGuid - orderByExpression: StringOrderByExp + orderByExpression: String1OrderByExp - fieldName: npTimestamp - orderByExpression: DateTime646OrderByExp + orderByExpression: TimestamptzOrderByExp - fieldName: uploadSpeed orderByExpression: Float32OrderByExp orderableRelationships: [] graphql: - expressionTypeName: network_DetailedUserActivityMvOrderByExp + expressionTypeName: network_DefaultDetailedUserActivityMvOrderByExp --- kind: Model version: v2 definition: - name: DetailedUserActivityMv - objectType: DetailedUserActivityMv + name: DefaultDetailedUserActivityMv + objectType: DefaultDetailedUserActivityMv source: dataConnectorName: clickhouse - collection: detailed_user_activity_mv - filterExpressionType: DetailedUserActivityMvBoolExp - aggregateExpression: DetailedUserActivityMvAggExp - orderByExpression: DetailedUserActivityMvOrderByExp + collection: default.detailed_user_activity_mv + filterExpressionType: DefaultDetailedUserActivityMvBoolExp + aggregateExpression: DefaultDetailedUserActivityMvAggExp + orderByExpression: DefaultDetailedUserActivityMvOrderByExp graphql: selectMany: - queryRootField: detailedUserActivityMv + queryRootField: defaultDetailedUserActivityMv subscription: - rootField: detailedUserActivityMv + rootField: defaultDetailedUserActivityMv selectUniques: [] - filterInputTypeName: network_DetailedUserActivityMvFilterInput + filterInputTypeName: network_DefaultDetailedUserActivityMvFilterInput aggregate: - queryRootField: detailedUserActivityMvAggregate + queryRootField: defaultDetailedUserActivityMvAggregate subscription: - rootField: detailedUserActivityMvAggregate + rootField: defaultDetailedUserActivityMvAggregate --- kind: ModelPermissions version: v1 definition: - modelName: DetailedUserActivityMv + modelName: DefaultDetailedUserActivityMv permissions: - role: admin select: diff --git a/hasura/industry/telco/network/metadata/DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F.hml b/hasura/industry/telco/network/metadata/DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F.hml new file mode 100644 index 00000000..9302fc26 --- /dev/null +++ b/hasura/industry/telco/network/metadata/DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F.hml @@ -0,0 +1,255 @@ +--- +kind: ObjectType +version: v1 +definition: + name: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + description: "Object type for + default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f. Description: null" + fields: + - name: cdrGuid + type: String_1! + - name: cdrTimestamp + type: Timestamptz! + - name: callDuration + type: Int32! + - name: callType + type: String_1! + - name: duGuid + type: String_1! + - name: duTimestamp + type: Timestamptz! + - name: dataUsage + type: Float32! + - name: downloadSpeed + type: Float32! + - name: latency + type: Int32! + - name: npGuid + type: String_1! + - name: npTimestamp + type: Timestamptz! + - name: uploadSpeed + type: Float32! + graphql: + typeName: network_DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + inputTypeName: network_DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FInput + dataConnectorTypeMapping: + - dataConnectorName: clickhouse + dataConnectorObjectType: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + fieldMapping: + cdrGuid: + column: + name: CDR_GUID + cdrTimestamp: + column: + name: CDR_Timestamp + callDuration: + column: + name: Call_Duration + callType: + column: + name: Call_Type + duGuid: + column: + name: DU_GUID + duTimestamp: + column: + name: DU_Timestamp + dataUsage: + column: + name: Data_Usage + downloadSpeed: + column: + name: Download_Speed + latency: + column: + name: Latency + npGuid: + column: + name: NP_GUID + npTimestamp: + column: + name: NP_Timestamp + uploadSpeed: + column: + name: Upload_Speed + +--- +kind: TypePermissions +version: v1 +definition: + typeName: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + permissions: + - role: admin + output: + allowedFields: + - cdrGuid + - cdrTimestamp + - callDuration + - callType + - duGuid + - duTimestamp + - dataUsage + - downloadSpeed + - latency + - npGuid + - npTimestamp + - uploadSpeed + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FBoolExp + operand: + object: + type: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + comparableFields: + - fieldName: cdrGuid + booleanExpressionType: StringBoolExp + - fieldName: cdrTimestamp + booleanExpressionType: Datetime64BoolExp + - fieldName: callDuration + booleanExpressionType: Int32BoolExp + - fieldName: callType + booleanExpressionType: StringBoolExp + - fieldName: duGuid + booleanExpressionType: StringBoolExp + - fieldName: duTimestamp + booleanExpressionType: Datetime64BoolExp + - fieldName: dataUsage + booleanExpressionType: Float32BoolExp + - fieldName: downloadSpeed + booleanExpressionType: Float32BoolExp + - fieldName: latency + booleanExpressionType: Int32BoolExp + - fieldName: npGuid + booleanExpressionType: StringBoolExp + - fieldName: npTimestamp + booleanExpressionType: Datetime64BoolExp + - fieldName: uploadSpeed + booleanExpressionType: Float32BoolExp + comparableRelationships: [] + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: network_DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FBoolExp + +--- +kind: AggregateExpression +version: v1 +definition: + name: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FAggExp + operand: + object: + aggregatedType: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + aggregatableFields: + - fieldName: cdrGuid + aggregateExpression: StringAggExp + - fieldName: cdrTimestamp + aggregateExpression: Datetime64AggExp + - fieldName: callDuration + aggregateExpression: Int32AggExp + - fieldName: callType + aggregateExpression: StringAggExp + - fieldName: duGuid + aggregateExpression: StringAggExp + - fieldName: duTimestamp + aggregateExpression: Datetime64AggExp + - fieldName: dataUsage + aggregateExpression: Float32AggExp + - fieldName: downloadSpeed + aggregateExpression: Float32AggExp + - fieldName: latency + aggregateExpression: Int32AggExp + - fieldName: npGuid + aggregateExpression: StringAggExp + - fieldName: npTimestamp + aggregateExpression: Datetime64AggExp + - fieldName: uploadSpeed + aggregateExpression: Float32AggExp + count: + enable: true + graphql: + selectTypeName: network_DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FAggExp + +--- +kind: OrderByExpression +version: v1 +definition: + name: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FOrderByExp + operand: + object: + orderedType: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + orderableFields: + - fieldName: cdrGuid + orderByExpression: String1OrderByExp + - fieldName: cdrTimestamp + orderByExpression: TimestamptzOrderByExp + - fieldName: callDuration + orderByExpression: Int32OrderByExp + - fieldName: callType + orderByExpression: String1OrderByExp + - fieldName: duGuid + orderByExpression: String1OrderByExp + - fieldName: duTimestamp + orderByExpression: TimestamptzOrderByExp + - fieldName: dataUsage + orderByExpression: Float32OrderByExp + - fieldName: downloadSpeed + orderByExpression: Float32OrderByExp + - fieldName: latency + orderByExpression: Int32OrderByExp + - fieldName: npGuid + orderByExpression: String1OrderByExp + - fieldName: npTimestamp + orderByExpression: TimestamptzOrderByExp + - fieldName: uploadSpeed + orderByExpression: Float32OrderByExp + orderableRelationships: [] + graphql: + expressionTypeName: network_DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FOrderByExp + +--- +kind: Model +version: v2 +definition: + name: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + objectType: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + source: + dataConnectorName: clickhouse + collection: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + filterExpressionType: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FBoolExp + aggregateExpression: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FAggExp + orderByExpression: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FOrderByExp + graphql: + selectMany: + queryRootField: defaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + subscription: + rootField: defaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + selectUniques: + - queryRootField: defaultInnerIdC82A24Ea1E9840D1868C56D674F2140FByPrimaryKey + uniqueIdentifier: + - cdrGuid + - cdrTimestamp + subscription: + rootField: defaultInnerIdC82A24Ea1E9840D1868C56D674F2140FByPrimaryKey + filterInputTypeName: network_DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140FFilterInput + aggregate: + queryRootField: defaultInnerIdC82A24Ea1E9840D1868C56D674F2140FAggregate + subscription: + rootField: defaultInnerIdC82A24Ea1E9840D1868C56D674F2140FAggregate + +--- +kind: ModelPermissions +version: v1 +definition: + modelName: DefaultInnerIdC82A24Ea1E9840D1868C56D674F2140F + permissions: + - role: admin + select: + filter: null + allowSubscriptions: true + diff --git a/hasura/industry/telco/network/metadata/NetworkPerformance.hml b/hasura/industry/telco/network/metadata/DefaultNetworkPerformance.hml similarity index 64% rename from hasura/industry/telco/network/metadata/NetworkPerformance.hml rename to hasura/industry/telco/network/metadata/DefaultNetworkPerformance.hml index 4c6b42f2..5f4b32e9 100644 --- a/hasura/industry/telco/network/metadata/NetworkPerformance.hml +++ b/hasura/industry/telco/network/metadata/DefaultNetworkPerformance.hml @@ -2,26 +2,27 @@ kind: ObjectType version: v1 definition: - name: NetworkPerformance + name: DefaultNetworkPerformance + description: "Object type for default.network_performance. Description: null" fields: - name: cuid type: Int32! - name: downloadSpeed type: Float32! - name: guid - type: String! + type: String_1! - name: latency type: Int32! - name: timestamp - type: DateTime646! + type: Timestamptz! - name: uploadSpeed type: Float32! graphql: - typeName: network_NetworkPerformance - inputTypeName: network_NetworkPerformanceInput + typeName: network_DefaultNetworkPerformance + inputTypeName: network_DefaultNetworkPerformanceInput dataConnectorTypeMapping: - dataConnectorName: clickhouse - dataConnectorObjectType: network_performance + dataConnectorObjectType: default.network_performance fieldMapping: cuid: column: @@ -46,7 +47,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: NetworkPerformance + typeName: DefaultNetworkPerformance permissions: - role: admin output: @@ -62,10 +63,10 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: NetworkPerformanceBoolExp + name: DefaultNetworkPerformanceBoolExp operand: object: - type: NetworkPerformance + type: DefaultNetworkPerformance comparableFields: - fieldName: cuid booleanExpressionType: Int32BoolExp @@ -76,7 +77,7 @@ definition: - fieldName: latency booleanExpressionType: Int32BoolExp - fieldName: timestamp - booleanExpressionType: DateTime646BoolExp + booleanExpressionType: Datetime64BoolExp - fieldName: uploadSpeed booleanExpressionType: Float32BoolExp comparableRelationships: [] @@ -85,16 +86,16 @@ definition: isNull: enable: true graphql: - typeName: network_NetworkPerformanceBoolExp + typeName: network_DefaultNetworkPerformanceBoolExp --- kind: AggregateExpression version: v1 definition: - name: NetworkPerformanceAggExp + name: DefaultNetworkPerformanceAggExp operand: object: - aggregatedType: NetworkPerformance + aggregatedType: DefaultNetworkPerformance aggregatableFields: - fieldName: cuid aggregateExpression: Int32AggExp @@ -105,74 +106,74 @@ definition: - fieldName: latency aggregateExpression: Int32AggExp - fieldName: timestamp - aggregateExpression: DateTime646AggExp + aggregateExpression: Datetime64AggExp - fieldName: uploadSpeed aggregateExpression: Float32AggExp count: enable: true graphql: - selectTypeName: network_NetworkPerformanceAggExp + selectTypeName: network_DefaultNetworkPerformanceAggExp --- kind: OrderByExpression version: v1 definition: - name: NetworkPerformanceOrderByExp + name: DefaultNetworkPerformanceOrderByExp operand: object: - orderedType: NetworkPerformance + orderedType: DefaultNetworkPerformance orderableFields: - fieldName: cuid orderByExpression: Int32OrderByExp - fieldName: downloadSpeed orderByExpression: Float32OrderByExp - fieldName: guid - orderByExpression: StringOrderByExp + orderByExpression: String1OrderByExp - fieldName: latency orderByExpression: Int32OrderByExp - fieldName: timestamp - orderByExpression: DateTime646OrderByExp + orderByExpression: TimestamptzOrderByExp - fieldName: uploadSpeed orderByExpression: Float32OrderByExp orderableRelationships: [] graphql: - expressionTypeName: network_NetworkPerformanceOrderByExp + expressionTypeName: network_DefaultNetworkPerformanceOrderByExp --- kind: Model version: v2 definition: - name: NetworkPerformance - objectType: NetworkPerformance + name: DefaultNetworkPerformance + objectType: DefaultNetworkPerformance source: dataConnectorName: clickhouse - collection: network_performance - filterExpressionType: NetworkPerformanceBoolExp - aggregateExpression: NetworkPerformanceAggExp - orderByExpression: NetworkPerformanceOrderByExp + collection: default.network_performance + filterExpressionType: DefaultNetworkPerformanceBoolExp + aggregateExpression: DefaultNetworkPerformanceAggExp + orderByExpression: DefaultNetworkPerformanceOrderByExp graphql: selectMany: - queryRootField: networkPerformance + queryRootField: defaultNetworkPerformance subscription: - rootField: networkPerformance + rootField: defaultNetworkPerformance selectUniques: - - queryRootField: networkPerformanceByTimestampGuid + - queryRootField: defaultNetworkPerformanceByPrimaryKey uniqueIdentifier: - guid - timestamp subscription: - rootField: networkPerformanceByTimestampGuid - filterInputTypeName: network_NetworkPerformanceFilterInput + rootField: defaultNetworkPerformanceByPrimaryKey + filterInputTypeName: network_DefaultNetworkPerformanceFilterInput aggregate: - queryRootField: networkPerformanceAggregate + queryRootField: defaultNetworkPerformanceAggregate subscription: - rootField: networkPerformanceAggregate + rootField: defaultNetworkPerformanceAggregate --- kind: ModelPermissions version: v1 definition: - modelName: NetworkPerformance + modelName: DefaultNetworkPerformance permissions: - role: admin select: diff --git a/hasura/industry/telco/network/metadata/PublicCalls.hml b/hasura/industry/telco/network/metadata/PublicCalls.hml new file mode 100644 index 00000000..58536a9d --- /dev/null +++ b/hasura/industry/telco/network/metadata/PublicCalls.hml @@ -0,0 +1,198 @@ +--- +kind: ObjectType +version: v1 +definition: + name: PublicCalls + description: "Object type for public.calls. Description: null" + fields: + - name: callid + type: Int32! + - name: calltype + type: String_1 + - name: customerid + type: Int32! + - name: deviceid + type: Int32! + - name: duration + type: Int32! + - name: latitude + type: Bigdecimal + - name: longitude + type: Bigdecimal + - name: nodeid + type: Int32 + - name: receivernumber + type: String_1 + - name: timestamp + type: Timestamptz! + graphql: + typeName: network_PublicCalls + inputTypeName: network_PublicCallsInput + dataConnectorTypeMapping: + - dataConnectorName: kafka_sink + dataConnectorObjectType: public.calls + +--- +kind: TypePermissions +version: v1 +definition: + typeName: PublicCalls + permissions: + - role: admin + output: + allowedFields: + - callid + - calltype + - customerid + - deviceid + - duration + - latitude + - longitude + - nodeid + - receivernumber + - timestamp + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: PublicCallsBoolExp + operand: + object: + type: PublicCalls + comparableFields: + - fieldName: callid + booleanExpressionType: IntegerBoolExp + - fieldName: calltype + booleanExpressionType: CharacterVaryingBoolExp + - fieldName: customerid + booleanExpressionType: IntegerBoolExp + - fieldName: deviceid + booleanExpressionType: IntegerBoolExp + - fieldName: duration + booleanExpressionType: IntegerBoolExp + - fieldName: latitude + booleanExpressionType: DecimalBoolExp_1 + - fieldName: longitude + booleanExpressionType: DecimalBoolExp_1 + - fieldName: nodeid + booleanExpressionType: IntegerBoolExp + - fieldName: receivernumber + booleanExpressionType: CharacterVaryingBoolExp + - fieldName: timestamp + booleanExpressionType: TimestampWithTimeZoneBoolExp + comparableRelationships: [] + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: network_PublicCallsBoolExp + +--- +kind: AggregateExpression +version: v1 +definition: + name: PublicCallsAggExp + operand: + object: + aggregatedType: PublicCalls + aggregatableFields: + - fieldName: callid + aggregateExpression: IntegerAggExp + - fieldName: calltype + aggregateExpression: CharacterVaryingAggExp + - fieldName: customerid + aggregateExpression: IntegerAggExp + - fieldName: deviceid + aggregateExpression: IntegerAggExp + - fieldName: duration + aggregateExpression: IntegerAggExp + - fieldName: latitude + aggregateExpression: DecimalAggExp + - fieldName: longitude + aggregateExpression: DecimalAggExp + - fieldName: nodeid + aggregateExpression: IntegerAggExp + - fieldName: receivernumber + aggregateExpression: CharacterVaryingAggExp + - fieldName: timestamp + aggregateExpression: TimestampWithTimeZoneAggExp + count: + enable: true + graphql: + selectTypeName: network_PublicCallsAggExp + +--- +kind: OrderByExpression +version: v1 +definition: + name: PublicCallsOrderByExp + operand: + object: + orderedType: PublicCalls + orderableFields: + - fieldName: callid + orderByExpression: Int32OrderByExp + - fieldName: calltype + orderByExpression: String1OrderByExp + - fieldName: customerid + orderByExpression: Int32OrderByExp + - fieldName: deviceid + orderByExpression: Int32OrderByExp + - fieldName: duration + orderByExpression: Int32OrderByExp + - fieldName: latitude + orderByExpression: BigdecimalOrderByExp + - fieldName: longitude + orderByExpression: BigdecimalOrderByExp + - fieldName: nodeid + orderByExpression: Int32OrderByExp + - fieldName: receivernumber + orderByExpression: String1OrderByExp + - fieldName: timestamp + orderByExpression: TimestamptzOrderByExp + orderableRelationships: [] + graphql: + expressionTypeName: network_PublicCallsOrderByExp + +--- +kind: Model +version: v2 +definition: + name: PublicCalls + objectType: PublicCalls + source: + dataConnectorName: kafka_sink + collection: public.calls + filterExpressionType: PublicCallsBoolExp + aggregateExpression: PublicCallsAggExp + orderByExpression: PublicCallsOrderByExp + graphql: + selectMany: + queryRootField: publicCalls + subscription: + rootField: publicCalls + selectUniques: + - queryRootField: publicCallsByCallid + uniqueIdentifier: + - callid + subscription: + rootField: publicCallsByCallid + filterInputTypeName: network_PublicCallsFilterInput + aggregate: + queryRootField: publicCallsAggregate + subscription: + rootField: publicCallsAggregate + +--- +kind: ModelPermissions +version: v1 +definition: + modelName: PublicCalls + permissions: + - role: admin + select: + filter: null + allowSubscriptions: true + diff --git a/hasura/industry/telco/network/metadata/CoverageAreas.hml b/hasura/industry/telco/network/metadata/PublicCoverageAreas.hml similarity index 56% rename from hasura/industry/telco/network/metadata/CoverageAreas.hml rename to hasura/industry/telco/network/metadata/PublicCoverageAreas.hml index 6b8978fc..9e5cb6c5 100644 --- a/hasura/industry/telco/network/metadata/CoverageAreas.hml +++ b/hasura/industry/telco/network/metadata/PublicCoverageAreas.hml @@ -2,30 +2,31 @@ kind: ObjectType version: v1 definition: - name: CoverageAreas + name: PublicCoverageAreas + description: "Object type for public.coverage_areas. Description: null" fields: - name: coverageId - type: Int4! + type: Int32! - name: coverageRadiusKm - type: Numeric + type: Bigdecimal - name: lastUpgraded type: Date - name: nodeId - type: Int4 + type: Int32 - name: populationCovered - type: Int4 + type: Int32 - name: signalStrengthDbm - type: Int4 + type: Int32 - name: technology - type: Varchar + type: String_1 - name: terrainType - type: Varchar + type: String_1 graphql: - typeName: network_CoverageAreas - inputTypeName: network_CoverageAreasInput + typeName: network_PublicCoverageAreas + inputTypeName: network_PublicCoverageAreasInput dataConnectorTypeMapping: - dataConnectorName: kafka_sink - dataConnectorObjectType: coverage_areas + dataConnectorObjectType: public.coverage_areas fieldMapping: coverageId: column: @@ -56,7 +57,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: CoverageAreas + typeName: PublicCoverageAreas permissions: - role: admin output: @@ -74,128 +75,128 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: CoverageAreasBoolExp + name: PublicCoverageAreasBoolExp operand: object: - type: CoverageAreas + type: PublicCoverageAreas comparableFields: - fieldName: coverageId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: coverageRadiusKm - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp_1 - fieldName: lastUpgraded booleanExpressionType: DateBoolExp - fieldName: nodeId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: populationCovered - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: signalStrengthDbm - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: technology - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: terrainType - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_CoverageAreasBoolExp + typeName: network_PublicCoverageAreasBoolExp --- kind: AggregateExpression version: v1 definition: - name: CoverageAreasAggExp + name: PublicCoverageAreasAggExp operand: object: - aggregatedType: CoverageAreas + aggregatedType: PublicCoverageAreas aggregatableFields: - fieldName: coverageId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: coverageRadiusKm - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: lastUpgraded aggregateExpression: DateAggExp - fieldName: nodeId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: populationCovered - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: signalStrengthDbm - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: technology - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: terrainType - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: network_CoverageAreasAggExp + selectTypeName: network_PublicCoverageAreasAggExp --- kind: OrderByExpression version: v1 definition: - name: CoverageAreasOrderByExp + name: PublicCoverageAreasOrderByExp operand: object: - orderedType: CoverageAreas + orderedType: PublicCoverageAreas orderableFields: - fieldName: coverageId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: coverageRadiusKm - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: lastUpgraded orderByExpression: DateOrderByExp - fieldName: nodeId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: populationCovered - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: signalStrengthDbm - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: technology - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: terrainType - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp orderableRelationships: [] graphql: - expressionTypeName: network_CoverageAreasOrderByExp + expressionTypeName: network_PublicCoverageAreasOrderByExp --- kind: Model version: v2 definition: - name: CoverageAreas - objectType: CoverageAreas + name: PublicCoverageAreas + objectType: PublicCoverageAreas source: dataConnectorName: kafka_sink - collection: coverage_areas - filterExpressionType: CoverageAreasBoolExp - aggregateExpression: CoverageAreasAggExp - orderByExpression: CoverageAreasOrderByExp + collection: public.coverage_areas + filterExpressionType: PublicCoverageAreasBoolExp + aggregateExpression: PublicCoverageAreasAggExp + orderByExpression: PublicCoverageAreasOrderByExp graphql: selectMany: - queryRootField: coverageAreas + queryRootField: publicCoverageAreas subscription: - rootField: coverageAreas + rootField: publicCoverageAreas selectUniques: - - queryRootField: coverageAreasByCoverageId + - queryRootField: publicCoverageAreasByCoverageId uniqueIdentifier: - coverageId subscription: - rootField: coverageAreasByCoverageId - filterInputTypeName: network_CoverageAreasFilterInput + rootField: publicCoverageAreasByCoverageId + filterInputTypeName: network_PublicCoverageAreasFilterInput aggregate: - queryRootField: coverageAreasAggregate + queryRootField: publicCoverageAreasAggregate subscription: - rootField: coverageAreasAggregate + rootField: publicCoverageAreasAggregate --- kind: ModelPermissions version: v1 definition: - modelName: CoverageAreas + modelName: PublicCoverageAreas permissions: - role: admin select: diff --git a/hasura/industry/telco/network/metadata/Equipment.hml b/hasura/industry/telco/network/metadata/PublicEquipment.hml similarity index 59% rename from hasura/industry/telco/network/metadata/Equipment.hml rename to hasura/industry/telco/network/metadata/PublicEquipment.hml index e768e265..59fd8d3d 100644 --- a/hasura/industry/telco/network/metadata/Equipment.hml +++ b/hasura/industry/telco/network/metadata/PublicEquipment.hml @@ -2,38 +2,39 @@ kind: ObjectType version: v1 definition: - name: Equipment + name: PublicEquipment + description: "Object type for public.equipment. Description: null" fields: - name: capacityMbps - type: Int4 + type: Int32 - name: equipmentId - type: Int4! + type: Int32! - name: equipmentType - type: Varchar + type: String_1 - name: firmwareVersion - type: Varchar + type: String_1 - name: installationDate type: Date - name: lastMaintenanceDate type: Date - name: manufacturer - type: Varchar + type: String_1 - name: model - type: Varchar + type: String_1 - name: nodeId - type: Int4 + type: Int32 - name: powerConsumptionWatts - type: Int4 + type: Int32 - name: serialNumber - type: Varchar + type: String_1 - name: status - type: Varchar + type: String_1 graphql: - typeName: network_Equipment - inputTypeName: network_EquipmentInput + typeName: network_PublicEquipment + inputTypeName: network_PublicEquipmentInput dataConnectorTypeMapping: - dataConnectorName: kafka_sink - dataConnectorObjectType: equipment + dataConnectorObjectType: public.equipment fieldMapping: capacityMbps: column: @@ -76,7 +77,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Equipment + typeName: PublicEquipment permissions: - role: admin output: @@ -98,152 +99,152 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: EquipmentBoolExp + name: PublicEquipmentBoolExp operand: object: - type: Equipment + type: PublicEquipment comparableFields: - fieldName: capacityMbps - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: equipmentId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: equipmentType - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: firmwareVersion - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: installationDate booleanExpressionType: DateBoolExp - fieldName: lastMaintenanceDate booleanExpressionType: DateBoolExp - fieldName: manufacturer - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: model - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: nodeId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: powerConsumptionWatts - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: serialNumber - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: status - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_EquipmentBoolExp + typeName: network_PublicEquipmentBoolExp --- kind: AggregateExpression version: v1 definition: - name: EquipmentAggExp + name: PublicEquipmentAggExp operand: object: - aggregatedType: Equipment + aggregatedType: PublicEquipment aggregatableFields: - fieldName: capacityMbps - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: equipmentId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: equipmentType - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: firmwareVersion - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: installationDate aggregateExpression: DateAggExp - fieldName: lastMaintenanceDate aggregateExpression: DateAggExp - fieldName: manufacturer - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: model - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: nodeId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: powerConsumptionWatts - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: serialNumber - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: status - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: network_EquipmentAggExp + selectTypeName: network_PublicEquipmentAggExp --- kind: OrderByExpression version: v1 definition: - name: EquipmentOrderByExp + name: PublicEquipmentOrderByExp operand: object: - orderedType: Equipment + orderedType: PublicEquipment orderableFields: - fieldName: capacityMbps - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: equipmentId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: equipmentType - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: firmwareVersion - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: installationDate orderByExpression: DateOrderByExp - fieldName: lastMaintenanceDate orderByExpression: DateOrderByExp - fieldName: manufacturer - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: model - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: nodeId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: powerConsumptionWatts - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: serialNumber - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: status - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp orderableRelationships: [] graphql: - expressionTypeName: network_EquipmentOrderByExp + expressionTypeName: network_PublicEquipmentOrderByExp --- kind: Model version: v2 definition: - name: Equipment - objectType: Equipment + name: PublicEquipment + objectType: PublicEquipment source: dataConnectorName: kafka_sink - collection: equipment - filterExpressionType: EquipmentBoolExp - aggregateExpression: EquipmentAggExp - orderByExpression: EquipmentOrderByExp + collection: public.equipment + filterExpressionType: PublicEquipmentBoolExp + aggregateExpression: PublicEquipmentAggExp + orderByExpression: PublicEquipmentOrderByExp graphql: selectMany: - queryRootField: equipment + queryRootField: publicEquipment subscription: - rootField: equipment + rootField: publicEquipment selectUniques: - - queryRootField: equipmentByEquipmentId + - queryRootField: publicEquipmentByEquipmentId uniqueIdentifier: - equipmentId subscription: - rootField: equipmentByEquipmentId - filterInputTypeName: network_EquipmentFilterInput + rootField: publicEquipmentByEquipmentId + filterInputTypeName: network_PublicEquipmentFilterInput aggregate: - queryRootField: equipmentAggregate + queryRootField: publicEquipmentAggregate subscription: - rootField: equipmentAggregate + rootField: publicEquipmentAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Equipment + modelName: PublicEquipment permissions: - role: admin select: diff --git a/hasura/industry/telco/network/metadata/Outages.hml b/hasura/industry/telco/network/metadata/PublicOutages.hml similarity index 57% rename from hasura/industry/telco/network/metadata/Outages.hml rename to hasura/industry/telco/network/metadata/PublicOutages.hml index 86c379d5..2d29e40e 100644 --- a/hasura/industry/telco/network/metadata/Outages.hml +++ b/hasura/industry/telco/network/metadata/PublicOutages.hml @@ -2,30 +2,31 @@ kind: ObjectType version: v1 definition: - name: Outages + name: PublicOutages + description: "Object type for public.outages. Description: null" fields: - name: affectedCustomers - type: Int4 + type: Int32 - name: cause - type: Varchar + type: String_1 - name: endTime type: Timestamptz - name: nodeId - type: Int4 + type: Int32 - name: outageId - type: Int4! + type: Int32! - name: resolution - type: Text + type: String_1 - name: severity - type: Varchar + type: String_1 - name: startTime type: Timestamptz! graphql: - typeName: network_Outages - inputTypeName: network_OutagesInput + typeName: network_PublicOutages + inputTypeName: network_PublicOutagesInput dataConnectorTypeMapping: - dataConnectorName: kafka_sink - dataConnectorObjectType: outages + dataConnectorObjectType: public.outages fieldMapping: affectedCustomers: column: @@ -56,7 +57,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Outages + typeName: PublicOutages permissions: - role: admin output: @@ -74,128 +75,128 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: OutagesBoolExp + name: PublicOutagesBoolExp operand: object: - type: Outages + type: PublicOutages comparableFields: - fieldName: affectedCustomers - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: cause - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: endTime - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: nodeId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: outageId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: resolution booleanExpressionType: TextBoolExp - fieldName: severity - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: startTime - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_OutagesBoolExp + typeName: network_PublicOutagesBoolExp --- kind: AggregateExpression version: v1 definition: - name: OutagesAggExp + name: PublicOutagesAggExp operand: object: - aggregatedType: Outages + aggregatedType: PublicOutages aggregatableFields: - fieldName: affectedCustomers - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: cause - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: endTime - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: nodeId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: outageId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: resolution aggregateExpression: TextAggExp - fieldName: severity - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: startTime - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp count: enable: true graphql: - selectTypeName: network_OutagesAggExp + selectTypeName: network_PublicOutagesAggExp --- kind: OrderByExpression version: v1 definition: - name: OutagesOrderByExp + name: PublicOutagesOrderByExp operand: object: - orderedType: Outages + orderedType: PublicOutages orderableFields: - fieldName: affectedCustomers - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: cause - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: endTime orderByExpression: TimestamptzOrderByExp - fieldName: nodeId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: outageId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: resolution - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: severity - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: startTime orderByExpression: TimestamptzOrderByExp orderableRelationships: [] graphql: - expressionTypeName: network_OutagesOrderByExp + expressionTypeName: network_PublicOutagesOrderByExp --- kind: Model version: v2 definition: - name: Outages - objectType: Outages + name: PublicOutages + objectType: PublicOutages source: dataConnectorName: kafka_sink - collection: outages - filterExpressionType: OutagesBoolExp - aggregateExpression: OutagesAggExp - orderByExpression: OutagesOrderByExp + collection: public.outages + filterExpressionType: PublicOutagesBoolExp + aggregateExpression: PublicOutagesAggExp + orderByExpression: PublicOutagesOrderByExp graphql: selectMany: - queryRootField: outages + queryRootField: publicOutages subscription: - rootField: outages + rootField: publicOutages selectUniques: - - queryRootField: outagesByOutageId + - queryRootField: publicOutagesByOutageId uniqueIdentifier: - outageId subscription: - rootField: outagesByOutageId - filterInputTypeName: network_OutagesFilterInput + rootField: publicOutagesByOutageId + filterInputTypeName: network_PublicOutagesFilterInput aggregate: - queryRootField: outagesAggregate + queryRootField: publicOutagesAggregate subscription: - rootField: outagesAggregate + rootField: publicOutagesAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Outages + modelName: PublicOutages permissions: - role: admin select: diff --git a/hasura/industry/telco/network/metadata/SpectrumLicenses.hml b/hasura/industry/telco/network/metadata/PublicSpectrumLicenses.hml similarity index 58% rename from hasura/industry/telco/network/metadata/SpectrumLicenses.hml rename to hasura/industry/telco/network/metadata/PublicSpectrumLicenses.hml index 0997b67c..98514d33 100644 --- a/hasura/industry/telco/network/metadata/SpectrumLicenses.hml +++ b/hasura/industry/telco/network/metadata/PublicSpectrumLicenses.hml @@ -2,32 +2,33 @@ kind: ObjectType version: v1 definition: - name: SpectrumLicenses + name: PublicSpectrumLicenses + description: "Object type for public.spectrum_licenses. Description: null" fields: - name: acquisitionDate type: Date - name: bandwidthMhz - type: Numeric + type: Bigdecimal - name: costMillionUsd - type: Numeric + type: Bigdecimal - name: expirationDate type: Date - name: frequencyBand - type: Varchar + type: String_1 - name: geographicArea - type: Varchar + type: String_1 - name: licenseId - type: Int4! + type: Int32! - name: licenseNumber - type: Varchar + type: String_1 - name: regulatoryAuthority - type: Varchar + type: String_1 graphql: - typeName: network_SpectrumLicenses - inputTypeName: network_SpectrumLicensesInput + typeName: network_PublicSpectrumLicenses + inputTypeName: network_PublicSpectrumLicensesInput dataConnectorTypeMapping: - dataConnectorName: kafka_sink - dataConnectorObjectType: spectrum_licenses + dataConnectorObjectType: public.spectrum_licenses fieldMapping: acquisitionDate: column: @@ -61,7 +62,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: SpectrumLicenses + typeName: PublicSpectrumLicenses permissions: - role: admin output: @@ -80,134 +81,134 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: SpectrumLicensesBoolExp + name: PublicSpectrumLicensesBoolExp operand: object: - type: SpectrumLicenses + type: PublicSpectrumLicenses comparableFields: - fieldName: acquisitionDate booleanExpressionType: DateBoolExp - fieldName: bandwidthMhz - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp_1 - fieldName: costMillionUsd - booleanExpressionType: NumericBoolExp + booleanExpressionType: DecimalBoolExp_1 - fieldName: expirationDate booleanExpressionType: DateBoolExp - fieldName: frequencyBand - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: geographicArea - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: licenseId - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: licenseNumber - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp - fieldName: regulatoryAuthority - booleanExpressionType: VarcharBoolExp + booleanExpressionType: CharacterVaryingBoolExp comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_SpectrumLicensesBoolExp + typeName: network_PublicSpectrumLicensesBoolExp --- kind: AggregateExpression version: v1 definition: - name: SpectrumLicensesAggExp + name: PublicSpectrumLicensesAggExp operand: object: - aggregatedType: SpectrumLicenses + aggregatedType: PublicSpectrumLicenses aggregatableFields: - fieldName: acquisitionDate aggregateExpression: DateAggExp - fieldName: bandwidthMhz - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: costMillionUsd - aggregateExpression: NumericAggExp + aggregateExpression: DecimalAggExp - fieldName: expirationDate aggregateExpression: DateAggExp - fieldName: frequencyBand - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: geographicArea - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: licenseId - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: licenseNumber - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp - fieldName: regulatoryAuthority - aggregateExpression: VarcharAggExp + aggregateExpression: CharacterVaryingAggExp count: enable: true graphql: - selectTypeName: network_SpectrumLicensesAggExp + selectTypeName: network_PublicSpectrumLicensesAggExp --- kind: OrderByExpression version: v1 definition: - name: SpectrumLicensesOrderByExp + name: PublicSpectrumLicensesOrderByExp operand: object: - orderedType: SpectrumLicenses + orderedType: PublicSpectrumLicenses orderableFields: - fieldName: acquisitionDate orderByExpression: DateOrderByExp - fieldName: bandwidthMhz - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: costMillionUsd - orderByExpression: NumericOrderByExp + orderByExpression: BigdecimalOrderByExp - fieldName: expirationDate orderByExpression: DateOrderByExp - fieldName: frequencyBand - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: geographicArea - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: licenseId - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: licenseNumber - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp - fieldName: regulatoryAuthority - orderByExpression: VarcharOrderByExp + orderByExpression: String1OrderByExp orderableRelationships: [] graphql: - expressionTypeName: network_SpectrumLicensesOrderByExp + expressionTypeName: network_PublicSpectrumLicensesOrderByExp --- kind: Model version: v2 definition: - name: SpectrumLicenses - objectType: SpectrumLicenses + name: PublicSpectrumLicenses + objectType: PublicSpectrumLicenses source: dataConnectorName: kafka_sink - collection: spectrum_licenses - filterExpressionType: SpectrumLicensesBoolExp - aggregateExpression: SpectrumLicensesAggExp - orderByExpression: SpectrumLicensesOrderByExp + collection: public.spectrum_licenses + filterExpressionType: PublicSpectrumLicensesBoolExp + aggregateExpression: PublicSpectrumLicensesAggExp + orderByExpression: PublicSpectrumLicensesOrderByExp graphql: selectMany: - queryRootField: spectrumLicenses + queryRootField: publicSpectrumLicenses subscription: - rootField: spectrumLicenses + rootField: publicSpectrumLicenses selectUniques: - - queryRootField: spectrumLicensesByLicenseId + - queryRootField: publicSpectrumLicensesByLicenseId uniqueIdentifier: - licenseId subscription: - rootField: spectrumLicensesByLicenseId - filterInputTypeName: network_SpectrumLicensesFilterInput + rootField: publicSpectrumLicensesByLicenseId + filterInputTypeName: network_PublicSpectrumLicensesFilterInput aggregate: - queryRootField: spectrumLicensesAggregate + queryRootField: publicSpectrumLicensesAggregate subscription: - rootField: spectrumLicensesAggregate + rootField: publicSpectrumLicensesAggregate --- kind: ModelPermissions version: v1 definition: - modelName: SpectrumLicenses + modelName: PublicSpectrumLicenses permissions: - role: admin select: diff --git a/hasura/industry/telco/network/metadata/PublicTexts.hml b/hasura/industry/telco/network/metadata/PublicTexts.hml new file mode 100644 index 00000000..957d5b98 --- /dev/null +++ b/hasura/industry/telco/network/metadata/PublicTexts.hml @@ -0,0 +1,189 @@ +--- +kind: ObjectType +version: v1 +definition: + name: PublicTexts + description: "Object type for public.texts. Description: null" + fields: + - name: customerid + type: Int32! + - name: deviceid + type: Int32! + - name: latitude + type: Bigdecimal + - name: longitude + type: Bigdecimal + - name: messagetype + type: String_1 + - name: nodeid + type: Int32 + - name: receivernumber + type: String_1 + - name: textid + type: Int32! + - name: timestamp + type: Timestamptz! + graphql: + typeName: network_PublicTexts + inputTypeName: network_PublicTextsInput + dataConnectorTypeMapping: + - dataConnectorName: kafka_sink + dataConnectorObjectType: public.texts + +--- +kind: TypePermissions +version: v1 +definition: + typeName: PublicTexts + permissions: + - role: admin + output: + allowedFields: + - customerid + - deviceid + - latitude + - longitude + - messagetype + - nodeid + - receivernumber + - textid + - timestamp + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: PublicTextsBoolExp + operand: + object: + type: PublicTexts + comparableFields: + - fieldName: customerid + booleanExpressionType: IntegerBoolExp + - fieldName: deviceid + booleanExpressionType: IntegerBoolExp + - fieldName: latitude + booleanExpressionType: DecimalBoolExp_1 + - fieldName: longitude + booleanExpressionType: DecimalBoolExp_1 + - fieldName: messagetype + booleanExpressionType: CharacterVaryingBoolExp + - fieldName: nodeid + booleanExpressionType: IntegerBoolExp + - fieldName: receivernumber + booleanExpressionType: CharacterVaryingBoolExp + - fieldName: textid + booleanExpressionType: IntegerBoolExp + - fieldName: timestamp + booleanExpressionType: TimestampWithTimeZoneBoolExp + comparableRelationships: [] + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: network_PublicTextsBoolExp + +--- +kind: AggregateExpression +version: v1 +definition: + name: PublicTextsAggExp + operand: + object: + aggregatedType: PublicTexts + aggregatableFields: + - fieldName: customerid + aggregateExpression: IntegerAggExp + - fieldName: deviceid + aggregateExpression: IntegerAggExp + - fieldName: latitude + aggregateExpression: DecimalAggExp + - fieldName: longitude + aggregateExpression: DecimalAggExp + - fieldName: messagetype + aggregateExpression: CharacterVaryingAggExp + - fieldName: nodeid + aggregateExpression: IntegerAggExp + - fieldName: receivernumber + aggregateExpression: CharacterVaryingAggExp + - fieldName: textid + aggregateExpression: IntegerAggExp + - fieldName: timestamp + aggregateExpression: TimestampWithTimeZoneAggExp + count: + enable: true + graphql: + selectTypeName: network_PublicTextsAggExp + +--- +kind: OrderByExpression +version: v1 +definition: + name: PublicTextsOrderByExp + operand: + object: + orderedType: PublicTexts + orderableFields: + - fieldName: customerid + orderByExpression: Int32OrderByExp + - fieldName: deviceid + orderByExpression: Int32OrderByExp + - fieldName: latitude + orderByExpression: BigdecimalOrderByExp + - fieldName: longitude + orderByExpression: BigdecimalOrderByExp + - fieldName: messagetype + orderByExpression: String1OrderByExp + - fieldName: nodeid + orderByExpression: Int32OrderByExp + - fieldName: receivernumber + orderByExpression: String1OrderByExp + - fieldName: textid + orderByExpression: Int32OrderByExp + - fieldName: timestamp + orderByExpression: TimestamptzOrderByExp + orderableRelationships: [] + graphql: + expressionTypeName: network_PublicTextsOrderByExp + +--- +kind: Model +version: v2 +definition: + name: PublicTexts + objectType: PublicTexts + source: + dataConnectorName: kafka_sink + collection: public.texts + filterExpressionType: PublicTextsBoolExp + aggregateExpression: PublicTextsAggExp + orderByExpression: PublicTextsOrderByExp + graphql: + selectMany: + queryRootField: publicTexts + subscription: + rootField: publicTexts + selectUniques: + - queryRootField: publicTextsByTextid + uniqueIdentifier: + - textid + subscription: + rootField: publicTextsByTextid + filterInputTypeName: network_PublicTextsFilterInput + aggregate: + queryRootField: publicTextsAggregate + subscription: + rootField: publicTextsAggregate + +--- +kind: ModelPermissions +version: v1 +definition: + modelName: PublicTexts + permissions: + - role: admin + select: + filter: null + allowSubscriptions: true + diff --git a/hasura/industry/telco/network/metadata/Relationships.hml b/hasura/industry/telco/network/metadata/Relationships.hml index 701127fd..11b78b1e 100644 --- a/hasura/industry/telco/network/metadata/Relationships.hml +++ b/hasura/industry/telco/network/metadata/Relationships.hml @@ -3,10 +3,10 @@ kind: Relationship version: v1 definition: name: node - sourceType: CoverageAreas + sourceType: PublicCoverageAreas target: model: - name: Equipment + name: PublicEquipment relationshipType: Object mapping: - source: @@ -21,10 +21,10 @@ kind: Relationship version: v1 definition: name: node - sourceType: Outages + sourceType: PublicOutages target: model: - name: Equipment + name: PublicEquipment relationshipType: Object mapping: - source: @@ -39,10 +39,10 @@ kind: Relationship version: v1 definition: name: node - sourceType: Texts + sourceType: PublicTexts target: model: - name: Equipment + name: PublicEquipment relationshipType: Object mapping: - source: @@ -57,10 +57,10 @@ kind: Relationship version: v1 definition: name: node - sourceType: Calls + sourceType: PublicCalls target: model: - name: Equipment + name: PublicEquipment relationshipType: Object mapping: - source: diff --git a/hasura/industry/telco/network/metadata/Texts.hml b/hasura/industry/telco/network/metadata/Texts.hml deleted file mode 100644 index ec465e48..00000000 --- a/hasura/industry/telco/network/metadata/Texts.hml +++ /dev/null @@ -1,188 +0,0 @@ ---- -kind: ObjectType -version: v1 -definition: - name: Texts - fields: - - name: customerid - type: Int4! - - name: deviceid - type: Int4! - - name: latitude - type: Numeric - - name: longitude - type: Numeric - - name: messagetype - type: Varchar - - name: nodeid - type: Int4 - - name: receivernumber - type: Varchar - - name: textid - type: Int4! - - name: timestamp - type: Timestamptz! - graphql: - typeName: network_Texts - inputTypeName: network_TextsInput - dataConnectorTypeMapping: - - dataConnectorName: kafka_sink - dataConnectorObjectType: texts - ---- -kind: TypePermissions -version: v1 -definition: - typeName: Texts - permissions: - - role: admin - output: - allowedFields: - - customerid - - deviceid - - latitude - - longitude - - messagetype - - nodeid - - receivernumber - - textid - - timestamp - ---- -kind: BooleanExpressionType -version: v1 -definition: - name: TextsBoolExp - operand: - object: - type: Texts - comparableFields: - - fieldName: customerid - booleanExpressionType: Int4BoolExp - - fieldName: deviceid - booleanExpressionType: Int4BoolExp - - fieldName: latitude - booleanExpressionType: NumericBoolExp - - fieldName: longitude - booleanExpressionType: NumericBoolExp - - fieldName: messagetype - booleanExpressionType: VarcharBoolExp - - fieldName: nodeid - booleanExpressionType: Int4BoolExp - - fieldName: receivernumber - booleanExpressionType: VarcharBoolExp - - fieldName: textid - booleanExpressionType: Int4BoolExp - - fieldName: timestamp - booleanExpressionType: TimestamptzBoolExp - comparableRelationships: [] - logicalOperators: - enable: true - isNull: - enable: true - graphql: - typeName: network_TextsBoolExp - ---- -kind: AggregateExpression -version: v1 -definition: - name: TextsAggExp - operand: - object: - aggregatedType: Texts - aggregatableFields: - - fieldName: customerid - aggregateExpression: Int4AggExp - - fieldName: deviceid - aggregateExpression: Int4AggExp - - fieldName: latitude - aggregateExpression: NumericAggExp - - fieldName: longitude - aggregateExpression: NumericAggExp - - fieldName: messagetype - aggregateExpression: VarcharAggExp - - fieldName: nodeid - aggregateExpression: Int4AggExp - - fieldName: receivernumber - aggregateExpression: VarcharAggExp - - fieldName: textid - aggregateExpression: Int4AggExp - - fieldName: timestamp - aggregateExpression: TimestamptzAggExp - count: - enable: true - graphql: - selectTypeName: network_TextsAggExp - ---- -kind: OrderByExpression -version: v1 -definition: - name: TextsOrderByExp - operand: - object: - orderedType: Texts - orderableFields: - - fieldName: customerid - orderByExpression: Int4OrderByExp - - fieldName: deviceid - orderByExpression: Int4OrderByExp - - fieldName: latitude - orderByExpression: NumericOrderByExp - - fieldName: longitude - orderByExpression: NumericOrderByExp - - fieldName: messagetype - orderByExpression: VarcharOrderByExp - - fieldName: nodeid - orderByExpression: Int4OrderByExp - - fieldName: receivernumber - orderByExpression: VarcharOrderByExp - - fieldName: textid - orderByExpression: Int4OrderByExp - - fieldName: timestamp - orderByExpression: TimestamptzOrderByExp - orderableRelationships: [] - graphql: - expressionTypeName: network_TextsOrderByExp - ---- -kind: Model -version: v2 -definition: - name: Texts - objectType: Texts - source: - dataConnectorName: kafka_sink - collection: texts - filterExpressionType: TextsBoolExp - aggregateExpression: TextsAggExp - orderByExpression: TextsOrderByExp - graphql: - selectMany: - queryRootField: texts - subscription: - rootField: texts - selectUniques: - - queryRootField: textsByTextid - uniqueIdentifier: - - textid - subscription: - rootField: textsByTextid - filterInputTypeName: network_TextsFilterInput - aggregate: - queryRootField: textsAggregate - subscription: - rootField: textsAggregate - ---- -kind: ModelPermissions -version: v1 -definition: - modelName: Texts - permissions: - - role: admin - select: - filter: null - allowSubscriptions: true - diff --git a/hasura/industry/telco/network/metadata/clickhouse-types.hml b/hasura/industry/telco/network/metadata/clickhouse-types.hml index 13686ced..885f6f50 100644 --- a/hasura/industry/telco/network/metadata/clickhouse-types.hml +++ b/hasura/industry/telco/network/metadata/clickhouse-types.hml @@ -2,339 +2,247 @@ kind: ScalarType version: v1 definition: - name: Int32 + name: String_1 graphql: - typeName: network_Int32 + typeName: network_String1 --- kind: BooleanExpressionType version: v1 definition: - name: Int32BoolExp + name: StringBoolExp operand: scalar: - type: Int32 + type: String_1 comparisonOperators: - name: _eq - argumentType: Int32! + argumentType: String_1! - name: _gt - argumentType: Int32! + argumentType: String_1! - name: _gte - argumentType: Int32! + argumentType: String_1! + - name: _ilike + argumentType: String_1! - name: _in - argumentType: "[Int32!]!" + argumentType: "[String_1!]!" + - name: _iregex + argumentType: String_1! + - name: _like + argumentType: String_1! - name: _lt - argumentType: Int32! + argumentType: String_1! - name: _lte - argumentType: Int32! + argumentType: String_1! - name: _neq - argumentType: Int32! - - name: _nin - argumentType: "[Int32!]!" + argumentType: String_1! + - name: _nilike + argumentType: String_1! + - name: _niregex + argumentType: String_1! + - name: _nlike + argumentType: String_1! + - name: _nregex + argumentType: String_1! + - name: _regex + argumentType: String_1! dataConnectorOperatorMapping: - dataConnectorName: clickhouse - dataConnectorScalarType: Int32 + dataConnectorScalarType: string operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_Int32BoolExp - ---- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: clickhouse - dataConnectorScalarType: Int32 - representation: Int32 - graphql: - comparisonExpressionTypeName: network_Int32ComparisonExp + typeName: network_StringBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: clickhouse - dataConnectorScalarType: String - representation: String + dataConnectorScalarType: string + representation: String_1 graphql: - comparisonExpressionTypeName: network_StringComparisonExp + comparisonExpressionTypeName: network_String1ComparisonExp --- kind: ScalarType version: v1 definition: - name: DateTime646 + name: Timestamptz graphql: - typeName: network_DateTime646 + typeName: network_Timestamptz --- kind: BooleanExpressionType version: v1 definition: - name: DateTime646BoolExp + name: Datetime64BoolExp operand: scalar: - type: DateTime646 + type: Timestamptz comparisonOperators: - name: _eq - argumentType: DateTime646! + argumentType: Timestamptz! - name: _gt - argumentType: DateTime646! + argumentType: Timestamptz! - name: _gte - argumentType: DateTime646! + argumentType: Timestamptz! - name: _in - argumentType: "[DateTime646!]!" + argumentType: "[Timestamptz!]!" - name: _lt - argumentType: DateTime646! + argumentType: Timestamptz! - name: _lte - argumentType: DateTime646! + argumentType: Timestamptz! - name: _neq - argumentType: DateTime646! - - name: _nin - argumentType: "[DateTime646!]!" + argumentType: Timestamptz! dataConnectorOperatorMapping: - dataConnectorName: clickhouse - dataConnectorScalarType: DateTime64(6) + dataConnectorScalarType: datetime64 operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_DateTime646BoolExp + typeName: network_Datetime64BoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: clickhouse - dataConnectorScalarType: DateTime64(6) - representation: DateTime646 - graphql: - comparisonExpressionTypeName: network_DateTime646ComparisonExp - ---- -kind: BooleanExpressionType -version: v1 -definition: - name: StringBoolExp - operand: - scalar: - type: String - comparisonOperators: - - name: _eq - argumentType: String! - - name: _gt - argumentType: String! - - name: _gte - argumentType: String! - - name: _ilike - argumentType: String! - - name: _in - argumentType: "[String!]!" - - name: _like - argumentType: String! - - name: _lt - argumentType: String! - - name: _lte - argumentType: String! - - name: _match - argumentType: String! - - name: _neq - argumentType: String! - - name: _nilike - argumentType: String! - - name: _nin - argumentType: "[String!]!" - - name: _nlike - argumentType: String! - dataConnectorOperatorMapping: - - dataConnectorName: clickhouse - dataConnectorScalarType: String - operatorMapping: {} - logicalOperators: - enable: true - isNull: - enable: true + dataConnectorScalarType: datetime64 + representation: Timestamptz graphql: - typeName: network_StringBoolExp + comparisonExpressionTypeName: network_TimestamptzComparisonExp --- kind: ScalarType version: v1 definition: - name: Float64 + name: Int32 graphql: - typeName: network_Float64 + typeName: network_Int32 --- kind: BooleanExpressionType version: v1 definition: - name: Float64BoolExp + name: Int32BoolExp operand: scalar: - type: Float64 + type: Int32 comparisonOperators: - name: _eq - argumentType: Float64! + argumentType: Int32! - name: _gt - argumentType: Float64! + argumentType: Int32! - name: _gte - argumentType: Float64! + argumentType: Int32! - name: _in - argumentType: "[Float64!]!" + argumentType: "[Int32!]!" - name: _lt - argumentType: Float64! + argumentType: Int32! - name: _lte - argumentType: Float64! + argumentType: Int32! - name: _neq - argumentType: Float64! - - name: _nin - argumentType: "[Float64!]!" + argumentType: Int32! dataConnectorOperatorMapping: - dataConnectorName: clickhouse - dataConnectorScalarType: Float64 + dataConnectorScalarType: int32 operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_Float64BoolExp + typeName: network_Int32BoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: clickhouse - dataConnectorScalarType: Float64 - representation: Float64 + dataConnectorScalarType: int32 + representation: Int32 graphql: - comparisonExpressionTypeName: network_Float64ComparisonExp + comparisonExpressionTypeName: network_Int32ComparisonExp --- kind: ScalarType version: v1 definition: - name: Int64 + name: Float32 graphql: - typeName: network_Int64 + typeName: network_Float32 --- kind: BooleanExpressionType version: v1 definition: - name: Int64BoolExp + name: Float32BoolExp operand: scalar: - type: Int64 + type: Float32 comparisonOperators: - name: _eq - argumentType: Int64! + argumentType: Float32! - name: _gt - argumentType: Int64! + argumentType: Float32! - name: _gte - argumentType: Int64! + argumentType: Float32! - name: _in - argumentType: "[Int64!]!" + argumentType: "[Float32!]!" - name: _lt - argumentType: Int64! + argumentType: Float32! - name: _lte - argumentType: Int64! + argumentType: Float32! - name: _neq - argumentType: Int64! - - name: _nin - argumentType: "[Int64!]!" + argumentType: Float32! dataConnectorOperatorMapping: - dataConnectorName: clickhouse - dataConnectorScalarType: Int64 + dataConnectorScalarType: float32 operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_Int64BoolExp + typeName: network_Float32BoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: clickhouse - dataConnectorScalarType: Int64 - representation: Int64 + dataConnectorScalarType: float32 + representation: Float32 graphql: - comparisonExpressionTypeName: network_Int64ComparisonExp + comparisonExpressionTypeName: network_Float32ComparisonExp --- kind: AggregateExpression version: v1 definition: - name: Int32AggExp + name: StringAggExp operand: scalar: - aggregatedType: Int32 + aggregatedType: String_1 aggregationFunctions: - - name: avg - returnType: Float64! - name: max - returnType: Int32! + returnType: String_1 - name: min - returnType: Int32! - - name: stddev_pop - returnType: Float64! - - name: stddev_samp - returnType: Float64! - - name: sum - returnType: Int64! - - name: var_pop - returnType: Float64! - - name: var_samp - returnType: Float64! + returnType: String_1 dataConnectorAggregationFunctionMapping: - dataConnectorName: clickhouse - dataConnectorScalarType: Int32 + dataConnectorScalarType: string functionMapping: - avg: - name: avg max: name: max min: name: min - stddev_pop: - name: stddev_pop - stddev_samp: - name: stddev_samp - sum: - name: sum - var_pop: - name: var_pop - var_samp: - name: var_samp - count: - enable: true - countDistinct: - enable: true - graphql: - selectTypeName: network_Int32AggExp - ---- -kind: AggregateExpression -version: v1 -definition: - name: StringAggExp - operand: - scalar: - aggregatedType: String - aggregationFunctions: [] - dataConnectorAggregationFunctionMapping: - - dataConnectorName: clickhouse - dataConnectorScalarType: String - functionMapping: {} count: enable: true countDistinct: @@ -346,18 +254,18 @@ definition: kind: AggregateExpression version: v1 definition: - name: DateTime646AggExp + name: Datetime64AggExp operand: scalar: - aggregatedType: DateTime646 + aggregatedType: Timestamptz aggregationFunctions: - name: max - returnType: DateTime646! + returnType: Timestamptz - name: min - returnType: DateTime646! + returnType: Timestamptz dataConnectorAggregationFunctionMapping: - dataConnectorName: clickhouse - dataConnectorScalarType: DateTime64(6) + dataConnectorScalarType: datetime64 functionMapping: max: name: max @@ -368,100 +276,163 @@ definition: countDistinct: enable: true graphql: - selectTypeName: network_DateTime646AggExp + selectTypeName: network_Datetime64AggExp --- -kind: OrderByExpression +kind: ScalarType version: v1 definition: - name: Int32OrderByExp - operand: - scalar: - orderedType: Int32 - enableOrderByDirections: - enableAll: true + name: Bigdecimal graphql: - expressionTypeName: network_Int32OrderByExp + typeName: network_Bigdecimal --- -kind: OrderByExpression +kind: BooleanExpressionType version: v1 definition: - name: StringOrderByExp + name: DecimalBoolExp operand: scalar: - orderedType: String - enableOrderByDirections: - enableAll: true + type: Bigdecimal + comparisonOperators: + - name: _eq + argumentType: Bigdecimal! + - name: _gt + argumentType: Bigdecimal! + - name: _gte + argumentType: Bigdecimal! + - name: _in + argumentType: "[Bigdecimal!]!" + - name: _lt + argumentType: Bigdecimal! + - name: _lte + argumentType: Bigdecimal! + - name: _neq + argumentType: Bigdecimal! + dataConnectorOperatorMapping: + - dataConnectorName: clickhouse + dataConnectorScalarType: decimal + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - expressionTypeName: network_StringOrderByExp + typeName: network_DecimalBoolExp --- -kind: OrderByExpression +kind: DataConnectorScalarRepresentation version: v1 definition: - name: DateTime646OrderByExp - operand: - scalar: - orderedType: DateTime646 - enableOrderByDirections: - enableAll: true + dataConnectorName: clickhouse + dataConnectorScalarType: decimal + representation: Bigdecimal graphql: - expressionTypeName: network_DateTime646OrderByExp + comparisonExpressionTypeName: network_BigdecimalComparisonExp --- kind: ScalarType version: v1 definition: - name: Float32 + name: Biginteger graphql: - typeName: network_Float32 + typeName: network_Biginteger --- kind: BooleanExpressionType version: v1 definition: - name: Float32BoolExp + name: BigintBoolExp operand: scalar: - type: Float32 + type: Biginteger comparisonOperators: - name: _eq - argumentType: Float32! + argumentType: Biginteger! - name: _gt - argumentType: Float32! + argumentType: Biginteger! - name: _gte - argumentType: Float32! + argumentType: Biginteger! - name: _in - argumentType: "[Float32!]!" + argumentType: "[Biginteger!]!" - name: _lt - argumentType: Float32! + argumentType: Biginteger! - name: _lte - argumentType: Float32! + argumentType: Biginteger! - name: _neq - argumentType: Float32! - - name: _nin - argumentType: "[Float32!]!" + argumentType: Biginteger! dataConnectorOperatorMapping: - dataConnectorName: clickhouse - dataConnectorScalarType: Float32 + dataConnectorScalarType: bigint operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_Float32BoolExp + typeName: network_BigintBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: clickhouse - dataConnectorScalarType: Float32 - representation: Float32 + dataConnectorScalarType: bigint + representation: Biginteger graphql: - comparisonExpressionTypeName: network_Float32ComparisonExp + comparisonExpressionTypeName: network_BigintegerComparisonExp + +--- +kind: AggregateExpression +version: v1 +definition: + name: Int32AggExp + operand: + scalar: + aggregatedType: Int32 + aggregationFunctions: + - name: avg + returnType: Bigdecimal + - name: max + returnType: Int32 + - name: min + returnType: Int32 + - name: stddev_pop + returnType: Int32! + - name: stddev_samp + returnType: Int32! + - name: sum + returnType: Biginteger + - name: var_pop + returnType: Int32! + - name: var_samp + returnType: Int32! + dataConnectorAggregationFunctionMapping: + - dataConnectorName: clickhouse + dataConnectorScalarType: int32 + functionMapping: + avg: + name: avg + max: + name: max + min: + name: min + stddev_pop: + name: stddev_pop + stddev_samp: + name: stddev_samp + sum: + name: sum + var_pop: + name: var_pop + var_samp: + name: var_samp + count: + enable: true + countDistinct: + enable: true + graphql: + selectTypeName: network_Int32AggExp --- kind: AggregateExpression @@ -473,24 +444,24 @@ definition: aggregatedType: Float32 aggregationFunctions: - name: avg - returnType: Float64! + returnType: Bigdecimal - name: max - returnType: Float64! + returnType: Float32 - name: min - returnType: Float32! + returnType: Float32 - name: stddev_pop returnType: Float32! - name: stddev_samp returnType: Float32! - name: sum - returnType: Float32! + returnType: Bigdecimal - name: var_pop returnType: Float32! - name: var_samp returnType: Float32! dataConnectorAggregationFunctionMapping: - dataConnectorName: clickhouse - dataConnectorScalarType: Float32 + dataConnectorScalarType: float32 functionMapping: avg: name: avg @@ -515,6 +486,45 @@ definition: graphql: selectTypeName: network_Float32AggExp +--- +kind: OrderByExpression +version: v1 +definition: + name: String1OrderByExp + operand: + scalar: + orderedType: String_1 + enableOrderByDirections: + enableAll: true + graphql: + expressionTypeName: network_String1OrderByExp + +--- +kind: OrderByExpression +version: v1 +definition: + name: TimestamptzOrderByExp + operand: + scalar: + orderedType: Timestamptz + enableOrderByDirections: + enableAll: true + graphql: + expressionTypeName: network_TimestamptzOrderByExp + +--- +kind: OrderByExpression +version: v1 +definition: + name: Int32OrderByExp + operand: + scalar: + orderedType: Int32 + enableOrderByDirections: + enableAll: true + graphql: + expressionTypeName: network_Int32OrderByExp + --- kind: OrderByExpression version: v1 diff --git a/hasura/industry/telco/network/metadata/clickhouse.hml b/hasura/industry/telco/network/metadata/clickhouse.hml index 828065f4..d2a78ef3 100644 --- a/hasura/industry/telco/network/metadata/clickhouse.hml +++ b/hasura/industry/telco/network/metadata/clickhouse.hml @@ -12,647 +12,2590 @@ definition: Authorization: valueFromEnv: NETWORK_CLICKHOUSE_AUTHORIZATION_HEADER schema: - version: v0.1 + version: v0.2 schema: + collections: + - arguments: {} + name: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + type: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + uniqueness_constraints: + primary_key: + unique_columns: + - CDR_GUID + - CDR_Timestamp + - arguments: {} + name: default.cdr + type: default.cdr + uniqueness_constraints: + primary_key: + unique_columns: + - GUID + - Timestamp + - arguments: {} + name: default.data_usage + type: default.data_usage + uniqueness_constraints: + primary_key: + unique_columns: + - GUID + - Timestamp + - arguments: {} + name: default.detailed_user_activity_mv + type: default.detailed_user_activity_mv + uniqueness_constraints: {} + - arguments: {} + name: default.network_performance + type: default.network_performance + uniqueness_constraints: + primary_key: + unique_columns: + - GUID + - Timestamp + functions: [] + object_types: + bigint_set_input: + description: Wrapper for setting scalar bigint + fields: + value: + arguments: {} + description: New value for scalar bigint + type: + type: nullable + underlying_type: + name: bigint + type: named + foreign_keys: {} + datetime64_set_input: + description: Wrapper for setting scalar datetime64 + fields: + value: + arguments: {} + description: New value for scalar datetime64 + type: + type: nullable + underlying_type: + name: datetime64 + type: named + foreign_keys: {} + decimal_set_input: + description: Wrapper for setting scalar decimal + fields: + value: + arguments: {} + description: New value for scalar decimal + type: + type: nullable + underlying_type: + name: decimal + type: named + foreign_keys: {} + default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f: + description: 'Object type for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f. Description: null' + fields: + CDR_GUID: + arguments: {} + type: + name: string + type: named + CDR_Timestamp: + arguments: {} + type: + name: datetime64 + type: named + Call_Duration: + arguments: {} + type: + name: int32 + type: named + Call_Type: + arguments: {} + type: + name: string + type: named + DU_GUID: + arguments: {} + type: + name: string + type: named + DU_Timestamp: + arguments: {} + type: + name: datetime64 + type: named + Data_Usage: + arguments: {} + type: + name: float32 + type: named + Download_Speed: + arguments: {} + type: + name: float32 + type: named + Latency: + arguments: {} + type: + name: int32 + type: named + NP_GUID: + arguments: {} + type: + name: string + type: named + NP_Timestamp: + arguments: {} + type: + name: datetime64 + type: named + Upload_Speed: + arguments: {} + type: + name: float32 + type: named + foreign_keys: {} + default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f_insert_input: + description: Input type for inserting into default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + fields: + CDR_GUID: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.CDR_GUID + type: + name: string + type: named + CDR_Timestamp: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.CDR_Timestamp + type: + name: datetime64 + type: named + Call_Duration: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Call_Duration + type: + name: int32 + type: named + Call_Type: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Call_Type + type: + name: string + type: named + DU_GUID: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.DU_GUID + type: + name: string + type: named + DU_Timestamp: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.DU_Timestamp + type: + name: datetime64 + type: named + Data_Usage: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Data_Usage + type: + name: float32 + type: named + Download_Speed: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Download_Speed + type: + name: float32 + type: named + Latency: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Latency + type: + name: int32 + type: named + NP_GUID: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.NP_GUID + type: + name: string + type: named + NP_Timestamp: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.NP_Timestamp + type: + name: datetime64 + type: named + Upload_Speed: + arguments: {} + description: New value for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Upload_Speed + type: + name: float32 + type: named + foreign_keys: {} + default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f_set_input: + description: Input type for updating default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + fields: + CDR_GUID: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.CDR_GUID + type: + type: nullable + underlying_type: + name: string_set_input + type: named + CDR_Timestamp: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.CDR_Timestamp + type: + type: nullable + underlying_type: + name: datetime64_set_input + type: named + Call_Duration: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Call_Duration + type: + type: nullable + underlying_type: + name: int32_set_input + type: named + Call_Type: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Call_Type + type: + type: nullable + underlying_type: + name: string_set_input + type: named + DU_GUID: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.DU_GUID + type: + type: nullable + underlying_type: + name: string_set_input + type: named + DU_Timestamp: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.DU_Timestamp + type: + type: nullable + underlying_type: + name: datetime64_set_input + type: named + Data_Usage: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Data_Usage + type: + type: nullable + underlying_type: + name: float32_set_input + type: named + Download_Speed: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Download_Speed + type: + type: nullable + underlying_type: + name: float32_set_input + type: named + Latency: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Latency + type: + type: nullable + underlying_type: + name: int32_set_input + type: named + NP_GUID: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.NP_GUID + type: + type: nullable + underlying_type: + name: string_set_input + type: named + NP_Timestamp: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.NP_Timestamp + type: + type: nullable + underlying_type: + name: datetime64_set_input + type: named + Upload_Speed: + arguments: {} + description: New value wrapper for default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f.Upload_Speed + type: + type: nullable + underlying_type: + name: float32_set_input + type: named + foreign_keys: {} + default.cdr: + description: 'Object type for default.cdr. Description: null' + fields: + CUID: + arguments: {} + type: + name: int32 + type: named + Call_Duration: + arguments: {} + type: + name: int32 + type: named + Call_Type: + arguments: {} + type: + name: string + type: named + GUID: + arguments: {} + type: + name: string + type: named + Timestamp: + arguments: {} + type: + name: datetime64 + type: named + foreign_keys: {} + default.cdr_insert_input: + description: Input type for inserting into default.cdr + fields: + CUID: + arguments: {} + description: New value for default.cdr.CUID + type: + name: int32 + type: named + Call_Duration: + arguments: {} + description: New value for default.cdr.Call_Duration + type: + name: int32 + type: named + Call_Type: + arguments: {} + description: New value for default.cdr.Call_Type + type: + name: string + type: named + GUID: + arguments: {} + description: New value for default.cdr.GUID + type: + name: string + type: named + Timestamp: + arguments: {} + description: New value for default.cdr.Timestamp + type: + name: datetime64 + type: named + foreign_keys: {} + default.cdr_set_input: + description: Input type for updating default.cdr + fields: + CUID: + arguments: {} + description: New value wrapper for default.cdr.CUID + type: + type: nullable + underlying_type: + name: int32_set_input + type: named + Call_Duration: + arguments: {} + description: New value wrapper for default.cdr.Call_Duration + type: + type: nullable + underlying_type: + name: int32_set_input + type: named + Call_Type: + arguments: {} + description: New value wrapper for default.cdr.Call_Type + type: + type: nullable + underlying_type: + name: string_set_input + type: named + GUID: + arguments: {} + description: New value wrapper for default.cdr.GUID + type: + type: nullable + underlying_type: + name: string_set_input + type: named + Timestamp: + arguments: {} + description: New value wrapper for default.cdr.Timestamp + type: + type: nullable + underlying_type: + name: datetime64_set_input + type: named + foreign_keys: {} + default.data_usage: + description: 'Object type for default.data_usage. Description: null' + fields: + CUID: + arguments: {} + type: + name: int32 + type: named + Data_Usage: + arguments: {} + type: + name: float32 + type: named + GUID: + arguments: {} + type: + name: string + type: named + Timestamp: + arguments: {} + type: + name: datetime64 + type: named + foreign_keys: {} + default.data_usage_insert_input: + description: Input type for inserting into default.data_usage + fields: + CUID: + arguments: {} + description: New value for default.data_usage.CUID + type: + name: int32 + type: named + Data_Usage: + arguments: {} + description: New value for default.data_usage.Data_Usage + type: + name: float32 + type: named + GUID: + arguments: {} + description: New value for default.data_usage.GUID + type: + name: string + type: named + Timestamp: + arguments: {} + description: New value for default.data_usage.Timestamp + type: + name: datetime64 + type: named + foreign_keys: {} + default.data_usage_set_input: + description: Input type for updating default.data_usage + fields: + CUID: + arguments: {} + description: New value wrapper for default.data_usage.CUID + type: + type: nullable + underlying_type: + name: int32_set_input + type: named + Data_Usage: + arguments: {} + description: New value wrapper for default.data_usage.Data_Usage + type: + type: nullable + underlying_type: + name: float32_set_input + type: named + GUID: + arguments: {} + description: New value wrapper for default.data_usage.GUID + type: + type: nullable + underlying_type: + name: string_set_input + type: named + Timestamp: + arguments: {} + description: New value wrapper for default.data_usage.Timestamp + type: + type: nullable + underlying_type: + name: datetime64_set_input + type: named + foreign_keys: {} + default.detailed_user_activity_mv: + description: 'Object type for default.detailed_user_activity_mv. Description: null' + fields: + CDR_GUID: + arguments: {} + type: + name: string + type: named + CDR_Timestamp: + arguments: {} + type: + name: datetime64 + type: named + Call_Duration: + arguments: {} + type: + name: int32 + type: named + Call_Type: + arguments: {} + type: + name: string + type: named + DU_GUID: + arguments: {} + type: + name: string + type: named + DU_Timestamp: + arguments: {} + type: + name: datetime64 + type: named + Data_Usage: + arguments: {} + type: + name: float32 + type: named + Download_Speed: + arguments: {} + type: + name: float32 + type: named + Latency: + arguments: {} + type: + name: int32 + type: named + NP_GUID: + arguments: {} + type: + name: string + type: named + NP_Timestamp: + arguments: {} + type: + name: datetime64 + type: named + Upload_Speed: + arguments: {} + type: + name: float32 + type: named + foreign_keys: {} + default.detailed_user_activity_mv_insert_input: + description: Input type for inserting into default.detailed_user_activity_mv + fields: + CDR_GUID: + arguments: {} + description: New value for default.detailed_user_activity_mv.CDR_GUID + type: + name: string + type: named + CDR_Timestamp: + arguments: {} + description: New value for default.detailed_user_activity_mv.CDR_Timestamp + type: + name: datetime64 + type: named + Call_Duration: + arguments: {} + description: New value for default.detailed_user_activity_mv.Call_Duration + type: + name: int32 + type: named + Call_Type: + arguments: {} + description: New value for default.detailed_user_activity_mv.Call_Type + type: + name: string + type: named + DU_GUID: + arguments: {} + description: New value for default.detailed_user_activity_mv.DU_GUID + type: + name: string + type: named + DU_Timestamp: + arguments: {} + description: New value for default.detailed_user_activity_mv.DU_Timestamp + type: + name: datetime64 + type: named + Data_Usage: + arguments: {} + description: New value for default.detailed_user_activity_mv.Data_Usage + type: + name: float32 + type: named + Download_Speed: + arguments: {} + description: New value for default.detailed_user_activity_mv.Download_Speed + type: + name: float32 + type: named + Latency: + arguments: {} + description: New value for default.detailed_user_activity_mv.Latency + type: + name: int32 + type: named + NP_GUID: + arguments: {} + description: New value for default.detailed_user_activity_mv.NP_GUID + type: + name: string + type: named + NP_Timestamp: + arguments: {} + description: New value for default.detailed_user_activity_mv.NP_Timestamp + type: + name: datetime64 + type: named + Upload_Speed: + arguments: {} + description: New value for default.detailed_user_activity_mv.Upload_Speed + type: + name: float32 + type: named + foreign_keys: {} + default.detailed_user_activity_mv_set_input: + description: Input type for updating default.detailed_user_activity_mv + fields: + CDR_GUID: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.CDR_GUID + type: + type: nullable + underlying_type: + name: string_set_input + type: named + CDR_Timestamp: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.CDR_Timestamp + type: + type: nullable + underlying_type: + name: datetime64_set_input + type: named + Call_Duration: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.Call_Duration + type: + type: nullable + underlying_type: + name: int32_set_input + type: named + Call_Type: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.Call_Type + type: + type: nullable + underlying_type: + name: string_set_input + type: named + DU_GUID: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.DU_GUID + type: + type: nullable + underlying_type: + name: string_set_input + type: named + DU_Timestamp: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.DU_Timestamp + type: + type: nullable + underlying_type: + name: datetime64_set_input + type: named + Data_Usage: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.Data_Usage + type: + type: nullable + underlying_type: + name: float32_set_input + type: named + Download_Speed: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.Download_Speed + type: + type: nullable + underlying_type: + name: float32_set_input + type: named + Latency: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.Latency + type: + type: nullable + underlying_type: + name: int32_set_input + type: named + NP_GUID: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.NP_GUID + type: + type: nullable + underlying_type: + name: string_set_input + type: named + NP_Timestamp: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.NP_Timestamp + type: + type: nullable + underlying_type: + name: datetime64_set_input + type: named + Upload_Speed: + arguments: {} + description: New value wrapper for default.detailed_user_activity_mv.Upload_Speed + type: + type: nullable + underlying_type: + name: float32_set_input + type: named + foreign_keys: {} + default.network_performance: + description: 'Object type for default.network_performance. Description: null' + fields: + CUID: + arguments: {} + type: + name: int32 + type: named + Download_Speed: + arguments: {} + type: + name: float32 + type: named + GUID: + arguments: {} + type: + name: string + type: named + Latency: + arguments: {} + type: + name: int32 + type: named + Timestamp: + arguments: {} + type: + name: datetime64 + type: named + Upload_Speed: + arguments: {} + type: + name: float32 + type: named + foreign_keys: {} + default.network_performance_insert_input: + description: Input type for inserting into default.network_performance + fields: + CUID: + arguments: {} + description: New value for default.network_performance.CUID + type: + name: int32 + type: named + Download_Speed: + arguments: {} + description: New value for default.network_performance.Download_Speed + type: + name: float32 + type: named + GUID: + arguments: {} + description: New value for default.network_performance.GUID + type: + name: string + type: named + Latency: + arguments: {} + description: New value for default.network_performance.Latency + type: + name: int32 + type: named + Timestamp: + arguments: {} + description: New value for default.network_performance.Timestamp + type: + name: datetime64 + type: named + Upload_Speed: + arguments: {} + description: New value for default.network_performance.Upload_Speed + type: + name: float32 + type: named + foreign_keys: {} + default.network_performance_set_input: + description: Input type for updating default.network_performance + fields: + CUID: + arguments: {} + description: New value wrapper for default.network_performance.CUID + type: + type: nullable + underlying_type: + name: int32_set_input + type: named + Download_Speed: + arguments: {} + description: New value wrapper for default.network_performance.Download_Speed + type: + type: nullable + underlying_type: + name: float32_set_input + type: named + GUID: + arguments: {} + description: New value wrapper for default.network_performance.GUID + type: + type: nullable + underlying_type: + name: string_set_input + type: named + Latency: + arguments: {} + description: New value wrapper for default.network_performance.Latency + type: + type: nullable + underlying_type: + name: int32_set_input + type: named + Timestamp: + arguments: {} + description: New value wrapper for default.network_performance.Timestamp + type: + type: nullable + underlying_type: + name: datetime64_set_input + type: named + Upload_Speed: + arguments: {} + description: New value wrapper for default.network_performance.Upload_Speed + type: + type: nullable + underlying_type: + name: float32_set_input + type: named + foreign_keys: {} + delete_default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f_result: + description: delete from default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + type: named + type: array + foreign_keys: {} + delete_default.cdr_result: + description: delete from default.cdr result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: default.cdr + type: named + type: array + foreign_keys: {} + delete_default.data_usage_result: + description: delete from default.data_usage result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: default.data_usage + type: named + type: array + foreign_keys: {} + delete_default.detailed_user_activity_mv_result: + description: delete from default.detailed_user_activity_mv result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: default.detailed_user_activity_mv + type: named + type: array + foreign_keys: {} + delete_default.network_performance_result: + description: delete from default.network_performance result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: default.network_performance + type: named + type: array + foreign_keys: {} + float32_set_input: + description: Wrapper for setting scalar float32 + fields: + value: + arguments: {} + description: New value for scalar float32 + type: + type: nullable + underlying_type: + name: float32 + type: named + foreign_keys: {} + insert_default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f_result: + description: insert from default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + type: named + type: array + foreign_keys: {} + insert_default.cdr_result: + description: insert from default.cdr result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: default.cdr + type: named + type: array + foreign_keys: {} + insert_default.data_usage_result: + description: insert from default.data_usage result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: default.data_usage + type: named + type: array + foreign_keys: {} + insert_default.detailed_user_activity_mv_result: + description: insert from default.detailed_user_activity_mv result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: default.detailed_user_activity_mv + type: named + type: array + foreign_keys: {} + insert_default.network_performance_result: + description: insert from default.network_performance result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: default.network_performance + type: named + type: array + foreign_keys: {} + int_set_input: + description: Wrapper for setting scalar int + fields: + value: + arguments: {} + description: New value for scalar int + type: + type: nullable + underlying_type: + name: int + type: named + foreign_keys: {} + int32_set_input: + description: Wrapper for setting scalar int32 + fields: + value: + arguments: {} + description: New value for scalar int32 + type: + type: nullable + underlying_type: + name: int32 + type: named + foreign_keys: {} + string_set_input: + description: Wrapper for setting scalar string + fields: + value: + arguments: {} + description: New value for scalar string + type: + type: nullable + underlying_type: + name: string + type: named + foreign_keys: {} + update_default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f_result: + description: update from default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + type: named + type: array + foreign_keys: {} + update_default.cdr_result: + description: update from default.cdr result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: default.cdr + type: named + type: array + foreign_keys: {} + update_default.data_usage_result: + description: update from default.data_usage result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: default.data_usage + type: named + type: array + foreign_keys: {} + update_default.detailed_user_activity_mv_result: + description: update from default.detailed_user_activity_mv result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: default.detailed_user_activity_mv + type: named + type: array + foreign_keys: {} + update_default.network_performance_result: + description: update from default.network_performance result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: default.network_performance + type: named + type: array + foreign_keys: {} + procedures: + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f_insert_input + type: named + type: array + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + description: Insert into default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + name: insert_default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + result_type: + name: insert_default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + type: predicate + description: Update default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + name: update_default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + result_type: + name: update_default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + type: predicate + description: Delete from default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + name: delete_default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f + result_type: + name: delete_default..inner_id.c82a24ea-1e98-40d1-868c-56d674f2140f_result + type: named + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: default.cdr_insert_input + type: named + type: array + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + description: Insert into default.cdr + name: insert_default.cdr + result_type: + name: insert_default.cdr_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: default.cdr_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: default.cdr + type: predicate + description: Update default.cdr + name: update_default.cdr + result_type: + name: update_default.cdr_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: default.cdr + type: predicate + description: Delete from default.cdr + name: delete_default.cdr + result_type: + name: delete_default.cdr_result + type: named + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: default.data_usage_insert_input + type: named + type: array + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + description: Insert into default.data_usage + name: insert_default.data_usage + result_type: + name: insert_default.data_usage_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: default.data_usage_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: default.data_usage + type: predicate + description: Update default.data_usage + name: update_default.data_usage + result_type: + name: update_default.data_usage_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: default.data_usage + type: predicate + description: Delete from default.data_usage + name: delete_default.data_usage + result_type: + name: delete_default.data_usage_result + type: named + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: default.detailed_user_activity_mv_insert_input + type: named + type: array + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + description: Insert into default.detailed_user_activity_mv + name: insert_default.detailed_user_activity_mv + result_type: + name: insert_default.detailed_user_activity_mv_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: default.detailed_user_activity_mv_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: default.detailed_user_activity_mv + type: predicate + description: Update default.detailed_user_activity_mv + name: update_default.detailed_user_activity_mv + result_type: + name: update_default.detailed_user_activity_mv_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: default.detailed_user_activity_mv + type: predicate + description: Delete from default.detailed_user_activity_mv + name: delete_default.detailed_user_activity_mv + result_type: + name: delete_default.detailed_user_activity_mv_result + type: named + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: default.network_performance_insert_input + type: named + type: array + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + description: Insert into default.network_performance + name: insert_default.network_performance + result_type: + name: insert_default.network_performance_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: default.network_performance_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: default.network_performance + type: predicate + description: Update default.network_performance + name: update_default.network_performance + result_type: + name: update_default.network_performance_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: default.network_performance + type: predicate + description: Delete from default.network_performance + name: delete_default.network_performance + result_type: + name: delete_default.network_performance_result + type: named scalar_types: - DateTime64(6): - representation: - type: string + bigint: aggregate_functions: + avg: + result_type: decimal + type: average max: + type: max + min: + type: min + stddev_pop: result_type: + name: bigint type: named - name: DateTime64(6) - min: + type: custom + stddev_samp: + result_type: + name: bigint + type: named + type: custom + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: bigint + type: named + type: custom + var_samp: result_type: + name: bigint type: named - name: DateTime64(6) + type: custom comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: DateTime64(6) + type: greater_than _gte: - type: custom - argument_type: - type: named - name: DateTime64(6) + type: greater_than_or_equal _in: type: in _lt: - type: custom - argument_type: - type: named - name: DateTime64(6) + type: less_than _lte: - type: custom + type: less_than_or_equal + _neq: argument_type: + name: bigint type: named - name: DateTime64(6) - _neq: type: custom + representation: + type: biginteger + datetime64: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: datetime64 type: named - name: DateTime64(6) - _nin: type: custom - argument_type: - type: array - element_type: - type: named - name: DateTime64(6) - Float32: representation: - type: float32 + type: timestamptz + decimal: aggregate_functions: avg: - result_type: - type: named - name: Float64 + result_type: decimal + type: average max: - result_type: - type: named - name: Float64 + type: max min: - result_type: - type: named - name: Float32 + type: min stddev_pop: result_type: + name: decimal type: named - name: Float32 + type: custom stddev_samp: result_type: + name: decimal type: named - name: Float32 + type: custom sum: - result_type: - type: named - name: Float32 + result_type: decimal + type: sum var_pop: result_type: + name: decimal type: named - name: Float32 + type: custom var_samp: result_type: + name: decimal type: named - name: Float32 + type: custom comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: Float32 + type: greater_than _gte: - type: custom - argument_type: - type: named - name: Float32 + type: greater_than_or_equal _in: type: in _lt: - type: custom - argument_type: - type: named - name: Float32 + type: less_than _lte: - type: custom - argument_type: - type: named - name: Float32 + type: less_than_or_equal _neq: - type: custom argument_type: + name: decimal type: named - name: Float32 - _nin: type: custom - argument_type: - type: array - element_type: - type: named - name: Float32 - Float64: representation: - type: float64 + type: bigdecimal + float32: aggregate_functions: avg: - result_type: - type: named - name: Float64 + result_type: decimal + type: average max: - result_type: - type: named - name: Float64 + type: max min: - result_type: - type: named - name: Float64 + type: min stddev_pop: result_type: + name: float32 type: named - name: Float64 + type: custom stddev_samp: result_type: + name: float32 type: named - name: Float64 + type: custom sum: - result_type: - type: named - name: Float64 + result_type: decimal + type: sum var_pop: result_type: + name: float32 type: named - name: Float64 + type: custom var_samp: result_type: + name: float32 type: named - name: Float64 + type: custom comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: Float64 + type: greater_than _gte: - type: custom - argument_type: - type: named - name: Float64 + type: greater_than_or_equal _in: type: in _lt: - type: custom - argument_type: - type: named - name: Float64 + type: less_than _lte: - type: custom - argument_type: - type: named - name: Float64 + type: less_than_or_equal _neq: - type: custom argument_type: + name: float32 type: named - name: Float64 - _nin: type: custom - argument_type: - type: array - element_type: - type: named - name: Float64 - Int32: representation: - type: int32 + type: float32 + int: aggregate_functions: avg: - result_type: - type: named - name: Float64 + result_type: decimal + type: average max: - result_type: - type: named - name: Int32 + type: max min: - result_type: - type: named - name: Int32 + type: min stddev_pop: result_type: + name: int type: named - name: Float64 + type: custom stddev_samp: result_type: + name: int type: named - name: Float64 + type: custom sum: - result_type: - type: named - name: Int64 + result_type: bigint + type: sum var_pop: result_type: + name: int type: named - name: Float64 + type: custom var_samp: result_type: + name: int type: named - name: Float64 + type: custom comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: Int32 + type: greater_than _gte: - type: custom - argument_type: - type: named - name: Int32 + type: greater_than_or_equal _in: type: in _lt: - type: custom - argument_type: - type: named - name: Int32 + type: less_than _lte: - type: custom - argument_type: - type: named - name: Int32 + type: less_than_or_equal _neq: - type: custom argument_type: + name: int type: named - name: Int32 - _nin: type: custom - argument_type: - type: array - element_type: - type: named - name: Int32 - Int64: representation: - type: int64 + type: int32 + int32: aggregate_functions: avg: - result_type: - type: named - name: Float64 + result_type: decimal + type: average max: - result_type: - type: named - name: Int64 + type: max min: - result_type: - type: named - name: Int64 + type: min stddev_pop: result_type: + name: int32 type: named - name: Float64 + type: custom stddev_samp: result_type: + name: int32 type: named - name: Float64 + type: custom sum: - result_type: - type: named - name: Int64 + result_type: bigint + type: sum var_pop: result_type: + name: int32 type: named - name: Float64 + type: custom var_samp: result_type: + name: int32 type: named - name: Float64 + type: custom comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: Int64 + type: greater_than _gte: - type: custom - argument_type: - type: named - name: Int64 + type: greater_than_or_equal _in: type: in _lt: - type: custom - argument_type: - type: named - name: Int64 + type: less_than _lte: - type: custom - argument_type: - type: named - name: Int64 + type: less_than_or_equal _neq: - type: custom argument_type: + name: int32 type: named - name: Int64 - _nin: type: custom - argument_type: - type: array - element_type: - type: named - name: Int64 - String: representation: - type: string - aggregate_functions: {} + type: int32 + string: + aggregate_functions: + max: + type: max + min: + type: min comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: String + type: greater_than _gte: - type: custom - argument_type: - type: named - name: String + type: greater_than_or_equal _ilike: - type: custom - argument_type: - type: named - name: String + type: contains_insensitive _in: type: in - _like: - type: custom + _iregex: argument_type: + name: string type: named - name: String - _lt: type: custom - argument_type: - type: named - name: String + _like: + type: contains + _lt: + type: less_than _lte: - type: custom + type: less_than_or_equal + _neq: argument_type: + name: string type: named - name: String - _match: type: custom + _nilike: argument_type: + name: string type: named - name: String - _neq: type: custom + _niregex: argument_type: + name: string type: named - name: String - _nilike: type: custom + _nlike: argument_type: + name: string type: named - name: String - _nin: type: custom + _nregex: argument_type: - type: array - element_type: - type: named - name: String - _nlike: + name: string + type: named type: custom + _regex: argument_type: + name: string type: named - name: String - object_types: - .inner_id.b838e2e6-8196-4082-9223-99af95ed95a2: - description: "" - fields: - CDR_GUID: - type: - type: named - name: String - CDR_Timestamp: - type: - type: named - name: DateTime64(6) - Call_Duration: - type: - type: named - name: Int32 - Call_Type: - type: - type: named - name: String - DU_GUID: - type: - type: named - name: String - DU_Timestamp: - type: - type: named - name: DateTime64(6) - Data_Usage: - type: - type: named - name: Float32 - Download_Speed: - type: - type: named - name: Float32 - Latency: - type: - type: named - name: Int32 - NP_GUID: - type: - type: named - name: String - NP_Timestamp: - type: - type: named - name: DateTime64(6) - Upload_Speed: - type: - type: named - name: Float32 - cdr: - description: "" - fields: - CUID: - type: - type: named - name: Int32 - Call_Duration: - type: - type: named - name: Int32 - Call_Type: - type: - type: named - name: String - GUID: - type: - type: named - name: String - Timestamp: - type: - type: named - name: DateTime64(6) - data_usage: - description: "" - fields: - CUID: - type: - type: named - name: Int32 - Data_Usage: - type: - type: named - name: Float32 - GUID: - type: - type: named - name: String - Timestamp: - type: - type: named - name: DateTime64(6) - detailed_user_activity_mv: - description: "" - fields: - CDR_GUID: - type: - type: named - name: String - CDR_Timestamp: - type: - type: named - name: DateTime64(6) - Call_Duration: - type: - type: named - name: Int32 - Call_Type: - type: - type: named - name: String - DU_GUID: - type: - type: named - name: String - DU_Timestamp: - type: - type: named - name: DateTime64(6) - Data_Usage: - type: - type: named - name: Float32 - Download_Speed: - type: - type: named - name: Float32 - Latency: - type: - type: named - name: Int32 - NP_GUID: - type: - type: named - name: String - NP_Timestamp: - type: - type: named - name: DateTime64(6) - Upload_Speed: - type: - type: named - name: Float32 - network_performance: - description: "" - fields: - CUID: - type: - type: named - name: Int32 - Download_Speed: - type: - type: named - name: Float32 - GUID: - type: - type: named - name: String - Latency: - type: - type: named - name: Int32 - Timestamp: - type: - type: named - name: DateTime64(6) - Upload_Speed: - type: - type: named - name: Float32 - collections: - - name: .inner_id.b838e2e6-8196-4082-9223-99af95ed95a2 - description: "" - arguments: {} - type: .inner_id.b838e2e6-8196-4082-9223-99af95ed95a2 - uniqueness_constraints: - CDR_Timestamp, CDR_GUID: - unique_columns: - - CDR_GUID - - CDR_Timestamp - foreign_keys: {} - - name: cdr - description: "" - arguments: {} - type: cdr - uniqueness_constraints: - Timestamp, GUID: - unique_columns: - - GUID - - Timestamp - foreign_keys: {} - - name: data_usage - description: "" - arguments: {} - type: data_usage - uniqueness_constraints: - Timestamp, GUID: - unique_columns: - - GUID - - Timestamp - foreign_keys: {} - - name: detailed_user_activity_mv - description: "" - arguments: {} - type: detailed_user_activity_mv - uniqueness_constraints: {} - foreign_keys: {} - - name: network_performance - description: "" - arguments: {} - type: network_performance - uniqueness_constraints: - Timestamp, GUID: - unique_columns: - - GUID - - Timestamp - foreign_keys: {} - functions: [] - procedures: [] + type: custom + representation: + type: string capabilities: - version: 0.1.6 capabilities: + mutation: + explain: {} + transactional: {} query: - aggregates: {} - variables: {} + aggregates: + filter_by: {} + exists: {} explain: {} nested_fields: {} - exists: {} - mutation: {} - relationships: - relation_comparisons: {} - order_by_aggregate: {} + variables: {} + relational_query: + aggregate: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + group_by: {} + filter: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + join: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + join_types: + full: {} + inner: {} + left: {} + left_anti: {} + left_semi: {} + right: {} + right_anti: {} + right_semi: {} + project: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + sort: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + union: {} + window: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + version: 0.2.5 diff --git a/hasura/industry/telco/network/metadata/kafka_sink-types.hml b/hasura/industry/telco/network/metadata/kafka_sink-types.hml index dad2acc1..bfa5a131 100644 --- a/hasura/industry/telco/network/metadata/kafka_sink-types.hml +++ b/hasura/industry/telco/network/metadata/kafka_sink-types.hml @@ -1,192 +1,156 @@ ---- -kind: ScalarType -version: v1 -definition: - name: Int4 - graphql: - typeName: network_Int4 - --- kind: BooleanExpressionType version: v1 definition: - name: Int4BoolExp + name: IntegerBoolExp operand: scalar: - type: Int4 + type: Int32 comparisonOperators: - name: _eq - argumentType: Int4! + argumentType: Int32! - name: _gt - argumentType: Int4! + argumentType: Int32! - name: _gte - argumentType: Int4! + argumentType: Int32! - name: _in - argumentType: "[Int4!]!" + argumentType: "[Int32!]!" - name: _lt - argumentType: Int4! + argumentType: Int32! - name: _lte - argumentType: Int4! + argumentType: Int32! - name: _neq - argumentType: Int4! + argumentType: Int32! dataConnectorOperatorMapping: - dataConnectorName: kafka_sink - dataConnectorScalarType: int4 + dataConnectorScalarType: integer operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_Int4BoolExp + typeName: network_IntegerBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: kafka_sink - dataConnectorScalarType: int4 - representation: Int4 - graphql: - comparisonExpressionTypeName: network_Int4ComparisonExp - ---- -kind: ScalarType -version: v1 -definition: - name: Varchar + dataConnectorScalarType: integer + representation: Int32 graphql: - typeName: network_Varchar + comparisonExpressionTypeName: network_Int32ComparisonExp_1 --- kind: BooleanExpressionType version: v1 definition: - name: VarcharBoolExp + name: CharacterVaryingBoolExp operand: scalar: - type: Varchar + type: String_1 comparisonOperators: - name: _eq - argumentType: Varchar! + argumentType: String_1! - name: _gt - argumentType: Varchar! + argumentType: String_1! - name: _gte - argumentType: Varchar! + argumentType: String_1! - name: _ilike - argumentType: Varchar! + argumentType: String_1! - name: _in - argumentType: "[Varchar!]!" + argumentType: "[String_1!]!" - name: _iregex - argumentType: Varchar! + argumentType: String_1! - name: _like - argumentType: Varchar! + argumentType: String_1! - name: _lt - argumentType: Varchar! + argumentType: String_1! - name: _lte - argumentType: Varchar! + argumentType: String_1! - name: _neq - argumentType: Varchar! + argumentType: String_1! - name: _nilike - argumentType: Varchar! + argumentType: String_1! - name: _niregex - argumentType: Varchar! + argumentType: String_1! - name: _nlike - argumentType: Varchar! + argumentType: String_1! - name: _nregex - argumentType: Varchar! + argumentType: String_1! - name: _regex - argumentType: Varchar! - - name: starts_with - argumentType: Varchar! - - name: ts_match_tt - argumentType: Varchar! + argumentType: String_1! dataConnectorOperatorMapping: - dataConnectorName: kafka_sink - dataConnectorScalarType: varchar + dataConnectorScalarType: character_varying operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_VarcharBoolExp + typeName: network_CharacterVaryingBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: kafka_sink - dataConnectorScalarType: varchar - representation: Varchar - graphql: - comparisonExpressionTypeName: network_VarcharComparisonExp - ---- -kind: ScalarType -version: v1 -definition: - name: Numeric + dataConnectorScalarType: character_varying + representation: String_1 graphql: - typeName: network_Numeric + comparisonExpressionTypeName: network_String1ComparisonExp_1 --- kind: BooleanExpressionType version: v1 definition: - name: NumericBoolExp + name: DecimalBoolExp_1 operand: scalar: - type: Numeric + type: Bigdecimal comparisonOperators: - name: _eq - argumentType: Numeric! + argumentType: Bigdecimal! - name: _gt - argumentType: Numeric! + argumentType: Bigdecimal! - name: _gte - argumentType: Numeric! + argumentType: Bigdecimal! - name: _in - argumentType: "[Numeric!]!" + argumentType: "[Bigdecimal!]!" - name: _lt - argumentType: Numeric! + argumentType: Bigdecimal! - name: _lte - argumentType: Numeric! + argumentType: Bigdecimal! - name: _neq - argumentType: Numeric! + argumentType: Bigdecimal! dataConnectorOperatorMapping: - dataConnectorName: kafka_sink - dataConnectorScalarType: numeric + dataConnectorScalarType: decimal operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_NumericBoolExp + typeName: network_DecimalBoolExp1 --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: kafka_sink - dataConnectorScalarType: numeric - representation: Numeric - graphql: - comparisonExpressionTypeName: network_NumericComparisonExp - ---- -kind: ScalarType -version: v1 -definition: - name: Timestamptz + dataConnectorScalarType: decimal + representation: Bigdecimal graphql: - typeName: network_Timestamptz + comparisonExpressionTypeName: network_BigdecimalComparisonExp_1 --- kind: BooleanExpressionType version: v1 definition: - name: TimestamptzBoolExp + name: TimestampWithTimeZoneBoolExp operand: scalar: type: Timestamptz @@ -207,130 +171,104 @@ definition: argumentType: Timestamptz! dataConnectorOperatorMapping: - dataConnectorName: kafka_sink - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_TimestamptzBoolExp + typeName: network_TimestampWithTimeZoneBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: kafka_sink - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone representation: Timestamptz graphql: - comparisonExpressionTypeName: network_TimestamptzComparisonExp - ---- -kind: ScalarType -version: v1 -definition: - name: Int8 - graphql: - typeName: network_Int8 + comparisonExpressionTypeName: network_TimestamptzComparisonExp_1 --- kind: BooleanExpressionType version: v1 definition: - name: Int8BoolExp + name: BigintBoolExp_1 operand: scalar: - type: Int8 + type: Biginteger comparisonOperators: - name: _eq - argumentType: Int8! + argumentType: Biginteger! - name: _gt - argumentType: Int8! + argumentType: Biginteger! - name: _gte - argumentType: Int8! + argumentType: Biginteger! - name: _in - argumentType: "[Int8!]!" + argumentType: "[Biginteger!]!" - name: _lt - argumentType: Int8! + argumentType: Biginteger! - name: _lte - argumentType: Int8! + argumentType: Biginteger! - name: _neq - argumentType: Int8! + argumentType: Biginteger! dataConnectorOperatorMapping: - dataConnectorName: kafka_sink - dataConnectorScalarType: int8 + dataConnectorScalarType: bigint operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: network_Int8BoolExp + typeName: network_BigintBoolExp1 --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: kafka_sink - dataConnectorScalarType: int8 - representation: Int8 + dataConnectorScalarType: bigint + representation: Biginteger graphql: - comparisonExpressionTypeName: network_Int8ComparisonExp + comparisonExpressionTypeName: network_BigintegerComparisonExp_1 --- kind: AggregateExpression version: v1 definition: - name: Int4AggExp + name: IntegerAggExp operand: scalar: - aggregatedType: Int4 + aggregatedType: Int32 aggregationFunctions: - name: avg - returnType: Numeric - - name: bit_and - returnType: Int4 - - name: bit_or - returnType: Int4 - - name: bit_xor - returnType: Int4 + returnType: Bigdecimal - name: max - returnType: Int4 + returnType: Int32 - name: min - returnType: Int4 - - name: stddev - returnType: Numeric + returnType: Int32 - name: stddev_pop - returnType: Numeric + returnType: Int32! - name: stddev_samp - returnType: Numeric + returnType: Int32! - name: sum - returnType: Int8 + returnType: Biginteger - name: var_pop - returnType: Numeric + returnType: Int32! - name: var_samp - returnType: Numeric - - name: variance - returnType: Numeric + returnType: Int32! dataConnectorAggregationFunctionMapping: - dataConnectorName: kafka_sink - dataConnectorScalarType: int4 + dataConnectorScalarType: integer functionMapping: avg: name: avg - bit_and: - name: bit_and - bit_or: - name: bit_or - bit_xor: - name: bit_xor max: name: max min: name: min - stddev: - name: stddev stddev_pop: name: stddev_pop stddev_samp: @@ -341,103 +279,29 @@ definition: name: var_pop var_samp: name: var_samp - variance: - name: variance count: enable: true countDistinct: enable: true graphql: - selectTypeName: network_Int4AggExp - ---- -kind: ScalarType -version: v1 -definition: - name: Text - graphql: - typeName: network_Text - ---- -kind: BooleanExpressionType -version: v1 -definition: - name: TextBoolExp - operand: - scalar: - type: Text - comparisonOperators: - - name: _eq - argumentType: Text! - - name: _gt - argumentType: Text! - - name: _gte - argumentType: Text! - - name: _ilike - argumentType: Text! - - name: _in - argumentType: "[Text!]!" - - name: _iregex - argumentType: Text! - - name: _like - argumentType: Text! - - name: _lt - argumentType: Text! - - name: _lte - argumentType: Text! - - name: _neq - argumentType: Text! - - name: _nilike - argumentType: Text! - - name: _niregex - argumentType: Text! - - name: _nlike - argumentType: Text! - - name: _nregex - argumentType: Text! - - name: _regex - argumentType: Text! - - name: starts_with - argumentType: Text! - - name: ts_match_tt - argumentType: Text! - dataConnectorOperatorMapping: - - dataConnectorName: kafka_sink - dataConnectorScalarType: text - operatorMapping: {} - logicalOperators: - enable: true - isNull: - enable: true - graphql: - typeName: network_TextBoolExp - ---- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: kafka_sink - dataConnectorScalarType: text - representation: Text - graphql: - comparisonExpressionTypeName: network_TextComparisonExp + selectTypeName: network_IntegerAggExp --- kind: AggregateExpression version: v1 definition: - name: VarcharAggExp + name: CharacterVaryingAggExp operand: scalar: - aggregatedType: Varchar + aggregatedType: String_1 aggregationFunctions: - name: max - returnType: Text + returnType: String_1 - name: min - returnType: Text + returnType: String_1 dataConnectorAggregationFunctionMapping: - dataConnectorName: kafka_sink - dataConnectorScalarType: varchar + dataConnectorScalarType: character_varying functionMapping: max: name: max @@ -448,40 +312,36 @@ definition: countDistinct: enable: true graphql: - selectTypeName: network_VarcharAggExp + selectTypeName: network_CharacterVaryingAggExp --- kind: AggregateExpression version: v1 definition: - name: NumericAggExp + name: DecimalAggExp operand: scalar: - aggregatedType: Numeric + aggregatedType: Bigdecimal aggregationFunctions: - name: avg - returnType: Numeric + returnType: Bigdecimal - name: max - returnType: Numeric + returnType: Bigdecimal - name: min - returnType: Numeric - - name: stddev - returnType: Numeric + returnType: Bigdecimal - name: stddev_pop - returnType: Numeric + returnType: Bigdecimal! - name: stddev_samp - returnType: Numeric + returnType: Bigdecimal! - name: sum - returnType: Numeric + returnType: Bigdecimal - name: var_pop - returnType: Numeric + returnType: Bigdecimal! - name: var_samp - returnType: Numeric - - name: variance - returnType: Numeric + returnType: Bigdecimal! dataConnectorAggregationFunctionMapping: - dataConnectorName: kafka_sink - dataConnectorScalarType: numeric + dataConnectorScalarType: decimal functionMapping: avg: name: avg @@ -489,8 +349,6 @@ definition: name: max min: name: min - stddev: - name: stddev stddev_pop: name: stddev_pop stddev_samp: @@ -501,20 +359,18 @@ definition: name: var_pop var_samp: name: var_samp - variance: - name: variance count: enable: true countDistinct: enable: true graphql: - selectTypeName: network_NumericAggExp + selectTypeName: network_DecimalAggExp --- kind: AggregateExpression version: v1 definition: - name: TimestamptzAggExp + name: TimestampWithTimeZoneAggExp operand: scalar: aggregatedType: Timestamptz @@ -525,7 +381,7 @@ definition: returnType: Timestamptz dataConnectorAggregationFunctionMapping: - dataConnectorName: kafka_sink - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone functionMapping: max: name: max @@ -536,59 +392,20 @@ definition: countDistinct: enable: true graphql: - selectTypeName: network_TimestamptzAggExp - ---- -kind: OrderByExpression -version: v1 -definition: - name: Int4OrderByExp - operand: - scalar: - orderedType: Int4 - enableOrderByDirections: - enableAll: true - graphql: - expressionTypeName: network_Int4OrderByExp - ---- -kind: OrderByExpression -version: v1 -definition: - name: VarcharOrderByExp - operand: - scalar: - orderedType: Varchar - enableOrderByDirections: - enableAll: true - graphql: - expressionTypeName: network_VarcharOrderByExp - ---- -kind: OrderByExpression -version: v1 -definition: - name: NumericOrderByExp - operand: - scalar: - orderedType: Numeric - enableOrderByDirections: - enableAll: true - graphql: - expressionTypeName: network_NumericOrderByExp + selectTypeName: network_TimestampWithTimeZoneAggExp --- kind: OrderByExpression version: v1 definition: - name: TimestamptzOrderByExp + name: BigdecimalOrderByExp operand: scalar: - orderedType: Timestamptz + orderedType: Bigdecimal enableOrderByDirections: enableAll: true graphql: - expressionTypeName: network_TimestamptzOrderByExp + expressionTypeName: network_BigdecimalOrderByExp --- kind: ScalarType @@ -683,6 +500,66 @@ definition: graphql: expressionTypeName: network_DateOrderByExp +--- +kind: BooleanExpressionType +version: v1 +definition: + name: TextBoolExp + operand: + scalar: + type: String_1 + comparisonOperators: + - name: _eq + argumentType: String_1! + - name: _gt + argumentType: String_1! + - name: _gte + argumentType: String_1! + - name: _ilike + argumentType: String_1! + - name: _in + argumentType: "[String_1!]!" + - name: _iregex + argumentType: String_1! + - name: _like + argumentType: String_1! + - name: _lt + argumentType: String_1! + - name: _lte + argumentType: String_1! + - name: _neq + argumentType: String_1! + - name: _nilike + argumentType: String_1! + - name: _niregex + argumentType: String_1! + - name: _nlike + argumentType: String_1! + - name: _nregex + argumentType: String_1! + - name: _regex + argumentType: String_1! + dataConnectorOperatorMapping: + - dataConnectorName: kafka_sink + dataConnectorScalarType: text + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: network_TextBoolExp + +--- +kind: DataConnectorScalarRepresentation +version: v1 +definition: + dataConnectorName: kafka_sink + dataConnectorScalarType: text + representation: String_1 + graphql: + comparisonExpressionTypeName: network_String1ComparisonExp_2 + --- kind: AggregateExpression version: v1 @@ -690,12 +567,12 @@ definition: name: TextAggExp operand: scalar: - aggregatedType: Text + aggregatedType: String_1 aggregationFunctions: - name: max - returnType: Text + returnType: String_1 - name: min - returnType: Text + returnType: String_1 dataConnectorAggregationFunctionMapping: - dataConnectorName: kafka_sink dataConnectorScalarType: text @@ -711,16 +588,3 @@ definition: graphql: selectTypeName: network_TextAggExp ---- -kind: OrderByExpression -version: v1 -definition: - name: TextOrderByExp - operand: - scalar: - orderedType: Text - enableOrderByDirections: - enableAll: true - graphql: - expressionTypeName: network_TextOrderByExp - diff --git a/hasura/industry/telco/network/metadata/kafka_sink.hml b/hasura/industry/telco/network/metadata/kafka_sink.hml index c43d4db4..8c42cf06 100644 --- a/hasura/industry/telco/network/metadata/kafka_sink.hml +++ b/hasura/industry/telco/network/metadata/kafka_sink.hml @@ -12,2926 +12,3350 @@ definition: Authorization: valueFromEnv: NETWORK_KAFKA_SINK_AUTHORIZATION_HEADER schema: - version: v0.1 + version: v0.2 schema: - scalar_types: - date: - representation: - type: date - aggregate_functions: - max: - result_type: + collections: + - arguments: {} + name: public.calls + type: public.calls + uniqueness_constraints: + primary_key: + unique_columns: + - callid + - arguments: {} + name: public.coverage_areas + type: public.coverage_areas + uniqueness_constraints: + primary_key: + unique_columns: + - coverage_id + - arguments: {} + name: public.equipment + type: public.equipment + uniqueness_constraints: + primary_key: + unique_columns: + - equipment_id + - arguments: {} + name: public.outages + type: public.outages + uniqueness_constraints: + primary_key: + unique_columns: + - outage_id + - arguments: {} + name: public.spectrum_licenses + type: public.spectrum_licenses + uniqueness_constraints: + primary_key: + unique_columns: + - license_id + - arguments: {} + name: public.texts + type: public.texts + uniqueness_constraints: + primary_key: + unique_columns: + - textid + functions: [] + object_types: + bigint_set_input: + description: Wrapper for setting scalar bigint + fields: + value: + arguments: {} + description: New value for scalar bigint + type: type: nullable underlying_type: + name: bigint type: named - name: date - min: - result_type: + foreign_keys: {} + character_varying_set_input: + description: Wrapper for setting scalar character_varying + fields: + value: + arguments: {} + description: New value for scalar character_varying + type: type: nullable underlying_type: + name: character_varying type: named + foreign_keys: {} + date_set_input: + description: Wrapper for setting scalar date + fields: + value: + arguments: {} + description: New value for scalar date + type: + type: nullable + underlying_type: name: date - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: + type: named + foreign_keys: {} + decimal_set_input: + description: Wrapper for setting scalar decimal + fields: + value: + arguments: {} + description: New value for scalar decimal + type: + type: nullable + underlying_type: + name: decimal + type: named + foreign_keys: {} + delete_public.calls_result: + description: delete from public.calls result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int type: named - name: date - _gte: - type: custom - argument_type: + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.calls + type: named + type: array + foreign_keys: {} + delete_public.coverage_areas_result: + description: delete from public.coverage_areas result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int type: named - name: date - _in: - type: in - _lt: - type: custom - argument_type: + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.coverage_areas + type: named + type: array + foreign_keys: {} + delete_public.equipment_result: + description: delete from public.equipment result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int type: named - name: date - _lte: - type: custom - argument_type: + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.equipment + type: named + type: array + foreign_keys: {} + delete_public.outages_result: + description: delete from public.outages result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int type: named - name: date - _neq: - type: custom - argument_type: + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.outages + type: named + type: array + foreign_keys: {} + delete_public.spectrum_licenses_result: + description: delete from public.spectrum_licenses result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int type: named - name: date - int4: - representation: - type: int32 - aggregate_functions: - avg: - result_type: - type: nullable - underlying_type: + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.spectrum_licenses type: named - name: numeric - bit_and: - result_type: - type: nullable - underlying_type: + type: array + foreign_keys: {} + delete_public.texts_result: + description: delete from public.texts result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.texts type: named - name: int4 - bit_or: - result_type: - type: nullable - underlying_type: + type: array + foreign_keys: {} + insert_public.calls_result: + description: insert from public.calls result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: public.calls type: named - name: int4 - bit_xor: - result_type: - type: nullable - underlying_type: + type: array + foreign_keys: {} + insert_public.coverage_areas_result: + description: insert from public.coverage_areas result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: public.coverage_areas type: named - name: int4 - max: - result_type: + type: array + foreign_keys: {} + insert_public.equipment_result: + description: insert from public.equipment result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: public.equipment + type: named + type: array + foreign_keys: {} + insert_public.outages_result: + description: insert from public.outages result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: public.outages + type: named + type: array + foreign_keys: {} + insert_public.spectrum_licenses_result: + description: insert from public.spectrum_licenses result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: public.spectrum_licenses + type: named + type: array + foreign_keys: {} + insert_public.texts_result: + description: insert from public.texts result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: public.texts + type: named + type: array + foreign_keys: {} + int_set_input: + description: Wrapper for setting scalar int + fields: + value: + arguments: {} + description: New value for scalar int + type: type: nullable underlying_type: + name: int type: named - name: int4 - min: - result_type: + foreign_keys: {} + integer_set_input: + description: Wrapper for setting scalar integer + fields: + value: + arguments: {} + description: New value for scalar integer + type: type: nullable underlying_type: + name: integer type: named - name: int4 - stddev: - result_type: + foreign_keys: {} + public.calls: + description: 'Object type for public.calls. Description: null' + fields: + callid: + arguments: {} + type: + name: integer + type: named + calltype: + arguments: {} + type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - stddev_pop: - result_type: + customerid: + arguments: {} + type: + name: integer + type: named + deviceid: + arguments: {} + type: + name: integer + type: named + duration: + arguments: {} + type: + name: integer + type: named + latitude: + arguments: {} + type: type: nullable underlying_type: + name: decimal type: named - name: numeric - stddev_samp: - result_type: + longitude: + arguments: {} + type: type: nullable underlying_type: + name: decimal type: named - name: numeric - sum: - result_type: + nodeid: + arguments: {} + type: type: nullable underlying_type: + name: integer type: named - name: int8 - var_pop: - result_type: + receivernumber: + arguments: {} + type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - var_samp: - result_type: + timestamp: + arguments: {} + type: + name: timestamp_with_time_zone + type: named + foreign_keys: {} + public.calls_insert_input: + description: Input type for inserting into public.calls + fields: + callid: + arguments: {} + description: New value for public.calls.callid + type: type: nullable underlying_type: + name: integer type: named - name: numeric - variance: - result_type: + calltype: + arguments: {} + description: New value for public.calls.calltype + type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: int4 - _gte: - type: custom - argument_type: - type: named - name: int4 - _in: - type: in - _lt: - type: custom - argument_type: + customerid: + arguments: {} + description: New value for public.calls.customerid + type: + name: integer type: named - name: int4 - _lte: - type: custom - argument_type: + deviceid: + arguments: {} + description: New value for public.calls.deviceid + type: + name: integer type: named - name: int4 - _neq: - type: custom - argument_type: + duration: + arguments: {} + description: New value for public.calls.duration + type: + name: integer type: named - name: int4 - int8: - representation: - type: int64 - aggregate_functions: - avg: - result_type: + latitude: + arguments: {} + description: New value for public.calls.latitude + type: type: nullable underlying_type: + name: decimal type: named - name: numeric - bit_and: - result_type: + longitude: + arguments: {} + description: New value for public.calls.longitude + type: type: nullable underlying_type: + name: decimal type: named - name: int8 - bit_or: - result_type: + nodeid: + arguments: {} + description: New value for public.calls.nodeid + type: type: nullable underlying_type: + name: integer type: named - name: int8 - bit_xor: - result_type: + receivernumber: + arguments: {} + description: New value for public.calls.receivernumber + type: type: nullable underlying_type: + name: character_varying type: named - name: int8 - max: - result_type: + timestamp: + arguments: {} + description: New value for public.calls.timestamp + type: + name: timestamp_with_time_zone + type: named + foreign_keys: {} + public.calls_set_input: + description: Input type for updating public.calls + fields: + callid: + arguments: {} + description: New value wrapper for public.calls.callid + type: type: nullable underlying_type: + name: integer_set_input type: named - name: int8 - min: - result_type: + calltype: + arguments: {} + description: New value wrapper for public.calls.calltype + type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: int8 - stddev: - result_type: + customerid: + arguments: {} + description: New value wrapper for public.calls.customerid + type: type: nullable underlying_type: + name: integer_set_input type: named - name: numeric - stddev_pop: - result_type: + deviceid: + arguments: {} + description: New value wrapper for public.calls.deviceid + type: type: nullable underlying_type: + name: integer_set_input type: named - name: numeric - stddev_samp: - result_type: + duration: + arguments: {} + description: New value wrapper for public.calls.duration + type: type: nullable underlying_type: + name: integer_set_input type: named - name: numeric - sum: - result_type: + latitude: + arguments: {} + description: New value wrapper for public.calls.latitude + type: type: nullable underlying_type: + name: decimal_set_input type: named - name: numeric - var_pop: - result_type: + longitude: + arguments: {} + description: New value wrapper for public.calls.longitude + type: type: nullable underlying_type: + name: decimal_set_input type: named - name: numeric - var_samp: - result_type: + nodeid: + arguments: {} + description: New value wrapper for public.calls.nodeid + type: type: nullable underlying_type: + name: integer_set_input type: named - name: numeric - variance: - result_type: + receivernumber: + arguments: {} + description: New value wrapper for public.calls.receivernumber + type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: numeric - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: int8 - _gte: - type: custom - argument_type: - type: named - name: int8 - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: int8 - _lte: - type: custom - argument_type: - type: named - name: int8 - _neq: - type: custom - argument_type: + timestamp: + arguments: {} + description: New value wrapper for public.calls.timestamp + type: + type: nullable + underlying_type: + name: timestamp_with_time_zone_set_input + type: named + foreign_keys: {} + public.coverage_areas: + description: 'Object type for public.coverage_areas. Description: null' + fields: + coverage_id: + arguments: {} + type: + name: integer type: named - name: int8 - numeric: - representation: - type: bigdecimal - aggregate_functions: - avg: - result_type: + coverage_radius_km: + arguments: {} + type: type: nullable underlying_type: + name: decimal type: named - name: numeric - max: - result_type: + last_upgraded: + arguments: {} + type: type: nullable underlying_type: + name: date type: named - name: numeric - min: - result_type: + node_id: + arguments: {} + type: type: nullable underlying_type: + name: integer type: named - name: numeric - stddev: - result_type: + population_covered: + arguments: {} + type: type: nullable underlying_type: + name: integer type: named - name: numeric - stddev_pop: - result_type: + signal_strength_dbm: + arguments: {} + type: type: nullable underlying_type: + name: integer type: named - name: numeric - stddev_samp: - result_type: + technology: + arguments: {} + type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - sum: - result_type: + terrain_type: + arguments: {} + type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - var_pop: - result_type: + foreign_keys: {} + public.coverage_areas_insert_input: + description: Input type for inserting into public.coverage_areas + fields: + coverage_id: + arguments: {} + description: New value for public.coverage_areas.coverage_id + type: type: nullable underlying_type: + name: integer type: named - name: numeric - var_samp: - result_type: + coverage_radius_km: + arguments: {} + description: New value for public.coverage_areas.coverage_radius_km + type: type: nullable underlying_type: + name: decimal type: named - name: numeric - variance: - result_type: + last_upgraded: + arguments: {} + description: New value for public.coverage_areas.last_upgraded + type: type: nullable underlying_type: + name: date type: named - name: numeric - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: numeric - _gte: - type: custom - argument_type: - type: named - name: numeric - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: numeric - _lte: - type: custom - argument_type: - type: named - name: numeric - _neq: - type: custom - argument_type: - type: named - name: numeric - text: - representation: - type: string - aggregate_functions: - max: - result_type: + node_id: + arguments: {} + description: New value for public.coverage_areas.node_id + type: type: nullable underlying_type: + name: integer type: named - name: text - min: - result_type: + population_covered: + arguments: {} + description: New value for public.coverage_areas.population_covered + type: type: nullable underlying_type: + name: integer type: named - name: text - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: text - _gte: - type: custom - argument_type: - type: named - name: text - _ilike: - type: custom - argument_type: - type: named - name: text - _in: - type: in - _iregex: - type: custom - argument_type: - type: named - name: text - _like: - type: custom - argument_type: - type: named - name: text - _lt: - type: custom - argument_type: - type: named - name: text - _lte: - type: custom - argument_type: - type: named - name: text - _neq: - type: custom - argument_type: - type: named - name: text - _nilike: - type: custom - argument_type: - type: named - name: text - _niregex: - type: custom - argument_type: - type: named - name: text - _nlike: - type: custom - argument_type: - type: named - name: text - _nregex: - type: custom - argument_type: - type: named - name: text - _regex: - type: custom - argument_type: - type: named - name: text - starts_with: - type: custom - argument_type: - type: named - name: text - ts_match_tt: - type: custom - argument_type: - type: named - name: text - timestamptz: - representation: - type: timestamptz - aggregate_functions: - max: - result_type: - type: nullable - underlying_type: - type: named - name: timestamptz - min: - result_type: - type: nullable - underlying_type: - type: named - name: timestamptz - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: timestamptz - _gte: - type: custom - argument_type: - type: named - name: timestamptz - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: timestamptz - _lte: - type: custom - argument_type: - type: named - name: timestamptz - _neq: - type: custom - argument_type: - type: named - name: timestamptz - varchar: - representation: - type: string - aggregate_functions: - max: - result_type: - type: nullable - underlying_type: - type: named - name: text - min: - result_type: - type: nullable - underlying_type: - type: named - name: text - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: varchar - _gte: - type: custom - argument_type: - type: named - name: varchar - _ilike: - type: custom - argument_type: - type: named - name: varchar - _in: - type: in - _iregex: - type: custom - argument_type: - type: named - name: varchar - _like: - type: custom - argument_type: - type: named - name: varchar - _lt: - type: custom - argument_type: - type: named - name: varchar - _lte: - type: custom - argument_type: - type: named - name: varchar - _neq: - type: custom - argument_type: - type: named - name: varchar - _nilike: - type: custom - argument_type: - type: named - name: varchar - _niregex: - type: custom - argument_type: - type: named - name: varchar - _nlike: - type: custom - argument_type: - type: named - name: varchar - _nregex: - type: custom - argument_type: - type: named - name: varchar - _regex: - type: custom - argument_type: - type: named - name: varchar - starts_with: - type: custom - argument_type: - type: named - name: varchar - ts_match_tt: - type: custom - argument_type: - type: named - name: varchar - object_types: - calls: - fields: - callid: - type: - type: named - name: int4 - calltype: - type: - type: nullable - underlying_type: - type: named - name: varchar - customerid: - type: - type: named - name: int4 - deviceid: - type: - type: named - name: int4 - duration: - type: - type: named - name: int4 - latitude: + signal_strength_dbm: + arguments: {} + description: New value for public.coverage_areas.signal_strength_dbm type: type: nullable underlying_type: + name: integer type: named - name: numeric - longitude: + technology: + arguments: {} + description: New value for public.coverage_areas.technology type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - nodeid: + terrain_type: + arguments: {} + description: New value for public.coverage_areas.terrain_type type: type: nullable underlying_type: + name: character_varying type: named - name: int4 - receivernumber: + foreign_keys: {} + public.coverage_areas_set_input: + description: Input type for updating public.coverage_areas + fields: + coverage_id: + arguments: {} + description: New value wrapper for public.coverage_areas.coverage_id type: type: nullable underlying_type: + name: integer_set_input type: named - name: varchar - timestamp: - type: - type: named - name: timestamptz - coverage_areas: - fields: - coverage_id: - type: - type: named - name: int4 coverage_radius_km: + arguments: {} + description: New value wrapper for public.coverage_areas.coverage_radius_km type: type: nullable underlying_type: + name: decimal_set_input type: named - name: numeric last_upgraded: + arguments: {} + description: New value wrapper for public.coverage_areas.last_upgraded type: type: nullable underlying_type: + name: date_set_input type: named - name: date node_id: + arguments: {} + description: New value wrapper for public.coverage_areas.node_id type: type: nullable underlying_type: + name: integer_set_input type: named - name: int4 population_covered: + arguments: {} + description: New value wrapper for public.coverage_areas.population_covered type: type: nullable underlying_type: + name: integer_set_input type: named - name: int4 signal_strength_dbm: + arguments: {} + description: New value wrapper for public.coverage_areas.signal_strength_dbm type: type: nullable underlying_type: + name: integer_set_input type: named - name: int4 technology: + arguments: {} + description: New value wrapper for public.coverage_areas.technology type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar terrain_type: + arguments: {} + description: New value wrapper for public.coverage_areas.terrain_type type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar - delete_calls_by_callid_response: - description: Responses from the 'delete_calls_by_callid' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: calls - delete_coverage_areas_by_coverage_id_response: - description: Responses from the 'delete_coverage_areas_by_coverage_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: coverage_areas - delete_equipment_by_equipment_id_response: - description: Responses from the 'delete_equipment_by_equipment_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: equipment - delete_outages_by_outage_id_response: - description: Responses from the 'delete_outages_by_outage_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: outages - delete_spectrum_licenses_by_license_id_response: - description: Responses from the 'delete_spectrum_licenses_by_license_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: spectrum_licenses - delete_texts_by_textid_response: - description: Responses from the 'delete_texts_by_textid' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: texts - equipment: + foreign_keys: {} + public.equipment: + description: 'Object type for public.equipment. Description: null' fields: capacity_mbps: + arguments: {} type: type: nullable underlying_type: + name: integer type: named - name: int4 equipment_id: + arguments: {} type: + name: integer type: named - name: int4 equipment_type: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar firmware_version: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar installation_date: + arguments: {} type: type: nullable underlying_type: - type: named name: date + type: named last_maintenance_date: + arguments: {} type: type: nullable underlying_type: - type: named name: date + type: named manufacturer: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar model: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar node_id: + arguments: {} type: type: nullable underlying_type: + name: integer type: named - name: int4 power_consumption_watts: + arguments: {} type: type: nullable underlying_type: + name: integer type: named - name: int4 serial_number: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar status: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar - insert_calls_object: + foreign_keys: {} + public.equipment_insert_input: + description: Input type for inserting into public.equipment fields: - callid: + capacity_mbps: + arguments: {} + description: New value for public.equipment.capacity_mbps type: type: nullable underlying_type: + name: integer type: named - name: int4 - calltype: + equipment_id: + arguments: {} + description: New value for public.equipment.equipment_id type: type: nullable underlying_type: + name: integer type: named - name: varchar - customerid: - type: - type: named - name: int4 - deviceid: - type: - type: named - name: int4 - duration: - type: - type: named - name: int4 - latitude: + equipment_type: + arguments: {} + description: New value for public.equipment.equipment_type type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - longitude: + firmware_version: + arguments: {} + description: New value for public.equipment.firmware_version type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - nodeid: + installation_date: + arguments: {} + description: New value for public.equipment.installation_date type: type: nullable underlying_type: + name: date type: named - name: int4 - receivernumber: + last_maintenance_date: + arguments: {} + description: New value for public.equipment.last_maintenance_date type: type: nullable underlying_type: + name: date type: named - name: varchar - timestamp: - type: - type: named - name: timestamptz - insert_calls_response: - description: Responses from the 'insert_calls' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: calls - insert_coverage_areas_object: - fields: - coverage_id: - type: - type: nullable - underlying_type: - type: named - name: int4 - coverage_radius_km: + manufacturer: + arguments: {} + description: New value for public.equipment.manufacturer type: type: nullable underlying_type: + name: character_varying type: named - name: numeric - last_upgraded: + model: + arguments: {} + description: New value for public.equipment.model type: type: nullable underlying_type: + name: character_varying type: named - name: date node_id: + arguments: {} + description: New value for public.equipment.node_id type: type: nullable underlying_type: + name: integer type: named - name: int4 - population_covered: - type: - type: nullable - underlying_type: - type: named - name: int4 - signal_strength_dbm: + power_consumption_watts: + arguments: {} + description: New value for public.equipment.power_consumption_watts type: type: nullable underlying_type: + name: integer type: named - name: int4 - technology: + serial_number: + arguments: {} + description: New value for public.equipment.serial_number type: type: nullable underlying_type: + name: character_varying type: named - name: varchar - terrain_type: + status: + arguments: {} + description: New value for public.equipment.status type: type: nullable underlying_type: + name: character_varying type: named - name: varchar - insert_coverage_areas_response: - description: Responses from the 'insert_coverage_areas' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: coverage_areas - insert_equipment_object: + foreign_keys: {} + public.equipment_set_input: + description: Input type for updating public.equipment fields: capacity_mbps: + arguments: {} + description: New value wrapper for public.equipment.capacity_mbps type: type: nullable underlying_type: + name: integer_set_input type: named - name: int4 equipment_id: + arguments: {} + description: New value wrapper for public.equipment.equipment_id type: type: nullable underlying_type: + name: integer_set_input type: named - name: int4 equipment_type: + arguments: {} + description: New value wrapper for public.equipment.equipment_type type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar firmware_version: + arguments: {} + description: New value wrapper for public.equipment.firmware_version type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar installation_date: + arguments: {} + description: New value wrapper for public.equipment.installation_date type: type: nullable underlying_type: + name: date_set_input type: named - name: date last_maintenance_date: + arguments: {} + description: New value wrapper for public.equipment.last_maintenance_date type: type: nullable underlying_type: + name: date_set_input type: named - name: date manufacturer: + arguments: {} + description: New value wrapper for public.equipment.manufacturer type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar model: + arguments: {} + description: New value wrapper for public.equipment.model type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar node_id: + arguments: {} + description: New value wrapper for public.equipment.node_id type: type: nullable underlying_type: + name: integer_set_input type: named - name: int4 power_consumption_watts: + arguments: {} + description: New value wrapper for public.equipment.power_consumption_watts type: type: nullable underlying_type: + name: integer_set_input type: named - name: int4 serial_number: + arguments: {} + description: New value wrapper for public.equipment.serial_number type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar status: + arguments: {} + description: New value wrapper for public.equipment.status type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar - insert_equipment_response: - description: Responses from the 'insert_equipment' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: equipment - insert_outages_object: + foreign_keys: {} + public.outages: + description: 'Object type for public.outages. Description: null' fields: affected_customers: + arguments: {} type: type: nullable underlying_type: + name: integer type: named - name: int4 cause: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar end_time: + arguments: {} type: type: nullable underlying_type: + name: timestamp_with_time_zone type: named - name: timestamptz node_id: + arguments: {} type: type: nullable underlying_type: + name: integer type: named - name: int4 outage_id: + arguments: {} type: - type: nullable - underlying_type: - type: named - name: int4 + name: integer + type: named resolution: + arguments: {} type: type: nullable underlying_type: - type: named name: text + type: named severity: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar start_time: + arguments: {} type: + name: timestamp_with_time_zone type: named - name: timestamptz - insert_outages_response: - description: Responses from the 'insert_outages' procedure + foreign_keys: {} + public.outages_insert_input: + description: Input type for inserting into public.outages fields: - affected_rows: - description: The number of rows affected by the mutation + affected_customers: + arguments: {} + description: New value for public.outages.affected_customers type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation + type: nullable + underlying_type: + name: integer + type: named + cause: + arguments: {} + description: New value for public.outages.cause type: - type: array - element_type: + type: nullable + underlying_type: + name: character_varying type: named - name: outages - insert_spectrum_licenses_object: - fields: - acquisition_date: + end_time: + arguments: {} + description: New value for public.outages.end_time type: type: nullable underlying_type: + name: timestamp_with_time_zone type: named - name: date - bandwidth_mhz: + node_id: + arguments: {} + description: New value for public.outages.node_id type: type: nullable underlying_type: + name: integer type: named - name: numeric - cost_million_usd: + outage_id: + arguments: {} + description: New value for public.outages.outage_id type: type: nullable underlying_type: + name: integer type: named - name: numeric - expiration_date: + resolution: + arguments: {} + description: New value for public.outages.resolution type: type: nullable underlying_type: + name: text type: named - name: date - frequency_band: + severity: + arguments: {} + description: New value for public.outages.severity type: type: nullable underlying_type: + name: character_varying type: named - name: varchar - geographic_area: + start_time: + arguments: {} + description: New value for public.outages.start_time + type: + name: timestamp_with_time_zone + type: named + foreign_keys: {} + public.outages_set_input: + description: Input type for updating public.outages + fields: + affected_customers: + arguments: {} + description: New value wrapper for public.outages.affected_customers type: type: nullable underlying_type: + name: integer_set_input type: named - name: varchar - license_id: + cause: + arguments: {} + description: New value wrapper for public.outages.cause type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: int4 - license_number: + end_time: + arguments: {} + description: New value wrapper for public.outages.end_time type: type: nullable underlying_type: + name: timestamp_with_time_zone_set_input type: named - name: varchar - regulatory_authority: + node_id: + arguments: {} + description: New value wrapper for public.outages.node_id type: type: nullable underlying_type: + name: integer_set_input type: named - name: varchar - insert_spectrum_licenses_response: - description: Responses from the 'insert_spectrum_licenses' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + outage_id: + arguments: {} + description: New value wrapper for public.outages.outage_id type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation + type: nullable + underlying_type: + name: integer_set_input + type: named + resolution: + arguments: {} + description: New value wrapper for public.outages.resolution type: - type: array - element_type: + type: nullable + underlying_type: + name: text_set_input type: named - name: spectrum_licenses - insert_texts_object: - fields: - customerid: + severity: + arguments: {} + description: New value wrapper for public.outages.severity type: - type: named - name: int4 - deviceid: + type: nullable + underlying_type: + name: character_varying_set_input + type: named + start_time: + arguments: {} + description: New value wrapper for public.outages.start_time type: - type: named - name: int4 - latitude: + type: nullable + underlying_type: + name: timestamp_with_time_zone_set_input + type: named + foreign_keys: {} + public.spectrum_licenses: + description: 'Object type for public.spectrum_licenses. Description: null' + fields: + acquisition_date: + arguments: {} type: type: nullable underlying_type: + name: date type: named - name: numeric - longitude: + bandwidth_mhz: + arguments: {} type: type: nullable underlying_type: + name: decimal type: named - name: numeric - messagetype: + cost_million_usd: + arguments: {} type: type: nullable underlying_type: + name: decimal type: named - name: varchar - nodeid: + expiration_date: + arguments: {} type: type: nullable underlying_type: + name: date type: named - name: int4 - receivernumber: + frequency_band: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar - textid: + geographic_area: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: int4 - timestamp: + license_id: + arguments: {} type: + name: integer type: named - name: timestamptz - insert_texts_response: - description: Responses from the 'insert_texts' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + license_number: + arguments: {} type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation + type: nullable + underlying_type: + name: character_varying + type: named + regulatory_authority: + arguments: {} type: - type: array - element_type: + type: nullable + underlying_type: + name: character_varying type: named - name: texts - outages: + foreign_keys: {} + public.spectrum_licenses_insert_input: + description: Input type for inserting into public.spectrum_licenses fields: - affected_customers: + acquisition_date: + arguments: {} + description: New value for public.spectrum_licenses.acquisition_date type: type: nullable underlying_type: + name: date type: named - name: int4 - cause: + bandwidth_mhz: + arguments: {} + description: New value for public.spectrum_licenses.bandwidth_mhz type: type: nullable underlying_type: + name: decimal type: named - name: varchar - end_time: + cost_million_usd: + arguments: {} + description: New value for public.spectrum_licenses.cost_million_usd type: type: nullable underlying_type: + name: decimal type: named - name: timestamptz - node_id: + expiration_date: + arguments: {} + description: New value for public.spectrum_licenses.expiration_date type: type: nullable underlying_type: + name: date type: named - name: int4 - outage_id: + frequency_band: + arguments: {} + description: New value for public.spectrum_licenses.frequency_band type: - type: named - name: int4 - resolution: + type: nullable + underlying_type: + name: character_varying + type: named + geographic_area: + arguments: {} + description: New value for public.spectrum_licenses.geographic_area type: type: nullable underlying_type: + name: character_varying type: named - name: text - severity: + license_id: + arguments: {} + description: New value for public.spectrum_licenses.license_id type: type: nullable underlying_type: + name: integer type: named - name: varchar - start_time: + license_number: + arguments: {} + description: New value for public.spectrum_licenses.license_number type: - type: named - name: timestamptz - spectrum_licenses: + type: nullable + underlying_type: + name: character_varying + type: named + regulatory_authority: + arguments: {} + description: New value for public.spectrum_licenses.regulatory_authority + type: + type: nullable + underlying_type: + name: character_varying + type: named + foreign_keys: {} + public.spectrum_licenses_set_input: + description: Input type for updating public.spectrum_licenses fields: acquisition_date: + arguments: {} + description: New value wrapper for public.spectrum_licenses.acquisition_date type: type: nullable underlying_type: + name: date_set_input type: named - name: date bandwidth_mhz: + arguments: {} + description: New value wrapper for public.spectrum_licenses.bandwidth_mhz type: type: nullable underlying_type: + name: decimal_set_input type: named - name: numeric cost_million_usd: + arguments: {} + description: New value wrapper for public.spectrum_licenses.cost_million_usd type: type: nullable underlying_type: + name: decimal_set_input type: named - name: numeric expiration_date: + arguments: {} + description: New value wrapper for public.spectrum_licenses.expiration_date type: type: nullable underlying_type: + name: date_set_input type: named - name: date frequency_band: + arguments: {} + description: New value wrapper for public.spectrum_licenses.frequency_band type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar geographic_area: + arguments: {} + description: New value wrapper for public.spectrum_licenses.geographic_area type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar license_id: + arguments: {} + description: New value wrapper for public.spectrum_licenses.license_id type: - type: named - name: int4 + type: nullable + underlying_type: + name: integer_set_input + type: named license_number: + arguments: {} + description: New value wrapper for public.spectrum_licenses.license_number type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar regulatory_authority: + arguments: {} + description: New value wrapper for public.spectrum_licenses.regulatory_authority type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar - texts: + foreign_keys: {} + public.texts: + description: 'Object type for public.texts. Description: null' fields: customerid: + arguments: {} type: + name: integer type: named - name: int4 deviceid: + arguments: {} type: + name: integer type: named - name: int4 latitude: + arguments: {} type: type: nullable underlying_type: + name: decimal type: named - name: numeric longitude: + arguments: {} type: type: nullable underlying_type: + name: decimal type: named - name: numeric messagetype: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar nodeid: + arguments: {} type: type: nullable underlying_type: + name: integer type: named - name: int4 receivernumber: + arguments: {} type: type: nullable underlying_type: + name: character_varying type: named - name: varchar textid: + arguments: {} type: + name: integer type: named - name: int4 timestamp: + arguments: {} type: + name: timestamp_with_time_zone type: named - name: timestamptz - update_calls_by_callid_response: - description: Responses from the 'update_calls_by_callid' procedure + foreign_keys: {} + public.texts_insert_input: + description: Input type for inserting into public.texts fields: - affected_rows: - description: The number of rows affected by the mutation + customerid: + arguments: {} + description: New value for public.texts.customerid type: + name: integer type: named - name: int4 - returning: - description: Data from rows affected by the mutation + deviceid: + arguments: {} + description: New value for public.texts.deviceid type: - type: array - element_type: - type: named - name: calls - update_calls_by_callid_update_columns: - description: Update the columns of the 'calls' collection - fields: - callid: - description: Update the 'callid' column in the 'calls' collection. + name: integer + type: named + latitude: + arguments: {} + description: New value for public.texts.latitude type: type: nullable underlying_type: + name: decimal type: named - name: update_column_calls_callid - calltype: - description: Update the 'calltype' column in the 'calls' collection. + longitude: + arguments: {} + description: New value for public.texts.longitude type: type: nullable underlying_type: + name: decimal type: named - name: update_column_calls_calltype - customerid: - description: Update the 'customerid' column in the 'calls' collection. + messagetype: + arguments: {} + description: New value for public.texts.messagetype type: type: nullable underlying_type: + name: character_varying type: named - name: update_column_calls_customerid - deviceid: - description: Update the 'deviceid' column in the 'calls' collection. + nodeid: + arguments: {} + description: New value for public.texts.nodeid type: type: nullable underlying_type: + name: integer type: named - name: update_column_calls_deviceid - duration: - description: Update the 'duration' column in the 'calls' collection. + receivernumber: + arguments: {} + description: New value for public.texts.receivernumber type: type: nullable underlying_type: + name: character_varying type: named - name: update_column_calls_duration - latitude: - description: Update the 'latitude' column in the 'calls' collection. + textid: + arguments: {} + description: New value for public.texts.textid type: type: nullable underlying_type: + name: integer type: named - name: update_column_calls_latitude - longitude: - description: Update the 'longitude' column in the 'calls' collection. + timestamp: + arguments: {} + description: New value for public.texts.timestamp + type: + name: timestamp_with_time_zone + type: named + foreign_keys: {} + public.texts_set_input: + description: Input type for updating public.texts + fields: + customerid: + arguments: {} + description: New value wrapper for public.texts.customerid type: type: nullable underlying_type: + name: integer_set_input type: named - name: update_column_calls_longitude - nodeid: - description: Update the 'nodeid' column in the 'calls' collection. + deviceid: + arguments: {} + description: New value wrapper for public.texts.deviceid type: type: nullable underlying_type: + name: integer_set_input type: named - name: update_column_calls_nodeid - receivernumber: - description: Update the 'receivernumber' column in the 'calls' collection. + latitude: + arguments: {} + description: New value wrapper for public.texts.latitude type: type: nullable underlying_type: + name: decimal_set_input type: named - name: update_column_calls_receivernumber - timestamp: - description: Update the 'timestamp' column in the 'calls' collection. + longitude: + arguments: {} + description: New value wrapper for public.texts.longitude type: type: nullable underlying_type: + name: decimal_set_input type: named - name: update_column_calls_timestamp - update_column_calls_callid: - description: Update the 'callid' column in the 'calls' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: int4 - update_column_calls_calltype: - description: Update the 'calltype' column in the 'calls' collection - fields: - _set: - description: Set the column to this value + messagetype: + arguments: {} + description: New value wrapper for public.texts.messagetype type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: varchar - update_column_calls_customerid: - description: Update the 'customerid' column in the 'calls' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: int4 - update_column_calls_deviceid: - description: Update the 'deviceid' column in the 'calls' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: int4 - update_column_calls_duration: - description: Update the 'duration' column in the 'calls' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: int4 - update_column_calls_latitude: - description: Update the 'latitude' column in the 'calls' collection - fields: - _set: - description: Set the column to this value + nodeid: + arguments: {} + description: New value wrapper for public.texts.nodeid type: type: nullable underlying_type: + name: integer_set_input type: named - name: numeric - update_column_calls_longitude: - description: Update the 'longitude' column in the 'calls' collection - fields: - _set: - description: Set the column to this value + receivernumber: + arguments: {} + description: New value wrapper for public.texts.receivernumber type: type: nullable underlying_type: + name: character_varying_set_input type: named - name: numeric - update_column_calls_nodeid: - description: Update the 'nodeid' column in the 'calls' collection - fields: - _set: - description: Set the column to this value + textid: + arguments: {} + description: New value wrapper for public.texts.textid type: type: nullable underlying_type: + name: integer_set_input type: named - name: int4 - update_column_calls_receivernumber: - description: Update the 'receivernumber' column in the 'calls' collection - fields: - _set: - description: Set the column to this value + timestamp: + arguments: {} + description: New value wrapper for public.texts.timestamp type: type: nullable underlying_type: + name: timestamp_with_time_zone_set_input type: named - name: varchar - update_column_calls_timestamp: - description: Update the 'timestamp' column in the 'calls' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: timestamptz - update_column_coverage_areas_coverage_id: - description: Update the 'coverage_id' column in the 'coverage_areas' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: int4 - update_column_coverage_areas_coverage_radius_km: - description: Update the 'coverage_radius_km' column in the 'coverage_areas' collection + foreign_keys: {} + string_set_input: + description: Wrapper for setting scalar string fields: - _set: - description: Set the column to this value + value: + arguments: {} + description: New value for scalar string type: type: nullable underlying_type: + name: string type: named - name: numeric - update_column_coverage_areas_last_upgraded: - description: Update the 'last_upgraded' column in the 'coverage_areas' collection + foreign_keys: {} + text_set_input: + description: Wrapper for setting scalar text fields: - _set: - description: Set the column to this value + value: + arguments: {} + description: New value for scalar text type: type: nullable underlying_type: + name: text type: named - name: date - update_column_coverage_areas_node_id: - description: Update the 'node_id' column in the 'coverage_areas' collection + foreign_keys: {} + timestamp_with_time_zone_set_input: + description: Wrapper for setting scalar timestamp_with_time_zone fields: - _set: - description: Set the column to this value + value: + arguments: {} + description: New value for scalar timestamp_with_time_zone type: type: nullable underlying_type: + name: timestamp_with_time_zone type: named - name: int4 - update_column_coverage_areas_population_covered: - description: Update the 'population_covered' column in the 'coverage_areas' collection + foreign_keys: {} + update_public.calls_result: + description: update from public.calls result fields: - _set: - description: Set the column to this value + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - type: named - name: int4 - update_column_coverage_areas_signal_strength_dbm: - description: Update the 'signal_strength_dbm' column in the 'coverage_areas' collection - fields: - _set: - description: Set the column to this value + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: + element_type: + name: public.calls type: named - name: int4 - update_column_coverage_areas_technology: - description: Update the 'technology' column in the 'coverage_areas' collection + type: array + foreign_keys: {} + update_public.coverage_areas_result: + description: update from public.coverage_areas result fields: - _set: - description: Set the column to this value + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - type: named - name: varchar - update_column_coverage_areas_terrain_type: - description: Update the 'terrain_type' column in the 'coverage_areas' collection - fields: - _set: - description: Set the column to this value + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: + element_type: + name: public.coverage_areas type: named - name: varchar - update_column_equipment_capacity_mbps: - description: Update the 'capacity_mbps' column in the 'equipment' collection + type: array + foreign_keys: {} + update_public.equipment_result: + description: update from public.equipment result fields: - _set: - description: Set the column to this value + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.equipment type: named - name: int4 - update_column_equipment_equipment_id: - description: Update the 'equipment_id' column in the 'equipment' collection + type: array + foreign_keys: {} + update_public.outages_result: + description: update from public.outages result fields: - _set: - description: Set the column to this value + affected_rows: + arguments: {} + description: Number of affected rows type: + name: int type: named - name: int4 - update_column_equipment_equipment_type: - description: Update the 'equipment_type' column in the 'equipment' collection - fields: - _set: - description: Set the column to this value + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: + element_type: + name: public.outages type: named - name: varchar - update_column_equipment_firmware_version: - description: Update the 'firmware_version' column in the 'equipment' collection + type: array + foreign_keys: {} + update_public.spectrum_licenses_result: + description: update from public.spectrum_licenses result fields: - _set: - description: Set the column to this value + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - type: named - name: varchar - update_column_equipment_installation_date: - description: Update the 'installation_date' column in the 'equipment' collection - fields: - _set: - description: Set the column to this value + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: + element_type: + name: public.spectrum_licenses type: named - name: date - update_column_equipment_last_maintenance_date: - description: Update the 'last_maintenance_date' column in the 'equipment' collection + type: array + foreign_keys: {} + update_public.texts_result: + description: update from public.texts result fields: - _set: - description: Set the column to this value + affected_rows: + arguments: {} + description: Number of affected rows type: - type: nullable - underlying_type: - type: named - name: date - update_column_equipment_manufacturer: - description: Update the 'manufacturer' column in the 'equipment' collection - fields: - _set: - description: Set the column to this value + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update type: - type: nullable - underlying_type: + element_type: + name: public.texts type: named - name: varchar - update_column_equipment_model: - description: Update the 'model' column in the 'equipment' collection - fields: - _set: - description: Set the column to this value + type: array + foreign_keys: {} + procedures: + - arguments: + objects: + description: Objects to insert type: - type: nullable - underlying_type: + element_type: + name: public.calls_insert_input type: named - name: varchar - update_column_equipment_node_id: - description: Update the 'node_id' column in the 'equipment' collection - fields: - _set: - description: Set the column to this value + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: int4 - update_column_equipment_power_consumption_watts: - description: Update the 'power_consumption_watts' column in the 'equipment' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + description: Insert into public.calls + name: insert_public.calls + result_type: + name: insert_public.calls_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: int4 - update_column_equipment_serial_number: - description: Update the 'serial_number' column in the 'equipment' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - type: nullable - underlying_type: - type: named - name: varchar - update_column_equipment_status: - description: Update the 'status' column in the 'equipment' collection - fields: - _set: - description: Set the column to this value + name: public.calls_set_input + type: named + where: + description: Filter for rows to update type: - type: nullable - underlying_type: - type: named - name: varchar - update_column_outages_affected_customers: - description: Update the 'affected_customers' column in the 'outages' collection - fields: - _set: - description: Set the column to this value + object_type_name: public.calls + type: predicate + description: Update public.calls + name: update_public.calls + result_type: + name: update_public.calls_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: int4 - update_column_outages_cause: - description: Update the 'cause' column in the 'outages' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - type: nullable - underlying_type: + object_type_name: public.calls + type: predicate + description: Delete from public.calls + name: delete_public.calls + result_type: + name: delete_public.calls_result + type: named + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: public.coverage_areas_insert_input type: named - name: varchar - update_column_outages_end_time: - description: Update the 'end_time' column in the 'outages' collection - fields: - _set: - description: Set the column to this value + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: timestamptz - update_column_outages_node_id: - description: Update the 'node_id' column in the 'outages' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + description: Insert into public.coverage_areas + name: insert_public.coverage_areas + result_type: + name: insert_public.coverage_areas_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: int4 - update_column_outages_outage_id: - description: Update the 'outage_id' column in the 'outages' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + set: + description: Values to set type: + name: public.coverage_areas_set_input type: named - name: int4 - update_column_outages_resolution: - description: Update the 'resolution' column in the 'outages' collection - fields: - _set: - description: Set the column to this value + where: + description: Filter for rows to update type: - type: nullable - underlying_type: - type: named - name: text - update_column_outages_severity: - description: Update the 'severity' column in the 'outages' collection - fields: - _set: - description: Set the column to this value + object_type_name: public.coverage_areas + type: predicate + description: Update public.coverage_areas + name: update_public.coverage_areas + result_type: + name: update_public.coverage_areas_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: varchar - update_column_outages_start_time: - description: Update the 'start_time' column in the 'outages' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - type: named - name: timestamptz - update_column_spectrum_licenses_acquisition_date: - description: Update the 'acquisition_date' column in the 'spectrum_licenses' collection - fields: - _set: - description: Set the column to this value + object_type_name: public.coverage_areas + type: predicate + description: Delete from public.coverage_areas + name: delete_public.coverage_areas + result_type: + name: delete_public.coverage_areas_result + type: named + - arguments: + objects: + description: Objects to insert type: - type: nullable - underlying_type: + element_type: + name: public.equipment_insert_input type: named - name: date - update_column_spectrum_licenses_bandwidth_mhz: - description: Update the 'bandwidth_mhz' column in the 'spectrum_licenses' collection - fields: - _set: - description: Set the column to this value + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: numeric - update_column_spectrum_licenses_cost_million_usd: - description: Update the 'cost_million_usd' column in the 'spectrum_licenses' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + description: Insert into public.equipment + name: insert_public.equipment + result_type: + name: insert_public.equipment_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: numeric - update_column_spectrum_licenses_expiration_date: - description: Update the 'expiration_date' column in the 'spectrum_licenses' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + set: + description: Values to set type: - type: nullable - underlying_type: - type: named - name: date - update_column_spectrum_licenses_frequency_band: - description: Update the 'frequency_band' column in the 'spectrum_licenses' collection - fields: - _set: - description: Set the column to this value + name: public.equipment_set_input + type: named + where: + description: Filter for rows to update type: - type: nullable - underlying_type: - type: named - name: varchar - update_column_spectrum_licenses_geographic_area: - description: Update the 'geographic_area' column in the 'spectrum_licenses' collection - fields: - _set: - description: Set the column to this value + object_type_name: public.equipment + type: predicate + description: Update public.equipment + name: update_public.equipment + result_type: + name: update_public.equipment_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: varchar - update_column_spectrum_licenses_license_id: - description: Update the 'license_id' column in the 'spectrum_licenses' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - type: named - name: int4 - update_column_spectrum_licenses_license_number: - description: Update the 'license_number' column in the 'spectrum_licenses' collection - fields: - _set: - description: Set the column to this value + object_type_name: public.equipment + type: predicate + description: Delete from public.equipment + name: delete_public.equipment + result_type: + name: delete_public.equipment_result + type: named + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: public.outages_insert_input + type: named + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: varchar - update_column_spectrum_licenses_regulatory_authority: - description: Update the 'regulatory_authority' column in the 'spectrum_licenses' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + description: Insert into public.outages + name: insert_public.outages + result_type: + name: insert_public.outages_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: varchar - update_column_texts_customerid: - description: Update the 'customerid' column in the 'texts' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + set: + description: Values to set type: + name: public.outages_set_input type: named - name: int4 - update_column_texts_deviceid: - description: Update the 'deviceid' column in the 'texts' collection - fields: - _set: - description: Set the column to this value + where: + description: Filter for rows to update type: - type: named - name: int4 - update_column_texts_latitude: - description: Update the 'latitude' column in the 'texts' collection - fields: - _set: - description: Set the column to this value + object_type_name: public.outages + type: predicate + description: Update public.outages + name: update_public.outages + result_type: + name: update_public.outages_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: numeric - update_column_texts_longitude: - description: Update the 'longitude' column in the 'texts' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - type: nullable - underlying_type: - type: named - name: numeric - update_column_texts_messagetype: - description: Update the 'messagetype' column in the 'texts' collection - fields: - _set: - description: Set the column to this value + object_type_name: public.outages + type: predicate + description: Delete from public.outages + name: delete_public.outages + result_type: + name: delete_public.outages_result + type: named + - arguments: + objects: + description: Objects to insert type: - type: nullable - underlying_type: + element_type: + name: public.spectrum_licenses_insert_input type: named - name: varchar - update_column_texts_nodeid: - description: Update the 'nodeid' column in the 'texts' collection - fields: - _set: - description: Set the column to this value + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: int4 - update_column_texts_receivernumber: - description: Update the 'receivernumber' column in the 'texts' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + description: Insert into public.spectrum_licenses + name: insert_public.spectrum_licenses + result_type: + name: insert_public.spectrum_licenses_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: varchar - update_column_texts_textid: - description: Update the 'textid' column in the 'texts' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: int4 - update_column_texts_timestamp: - description: Update the 'timestamp' column in the 'texts' collection - fields: - _set: - description: Set the column to this value + element_type: + name: string + type: named + type: array + set: + description: Values to set type: + name: public.spectrum_licenses_set_input type: named - name: timestamptz - update_coverage_areas_by_coverage_id_response: - description: Responses from the 'update_coverage_areas_by_coverage_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + where: + description: Filter for rows to update type: - type: named - name: int4 + object_type_name: public.spectrum_licenses + type: predicate + description: Update public.spectrum_licenses + name: update_public.spectrum_licenses + result_type: + name: update_public.spectrum_licenses_result + type: named + - arguments: returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: coverage_areas - update_coverage_areas_by_coverage_id_update_columns: - description: Update the columns of the 'coverage_areas' collection - fields: - coverage_id: - description: Update the 'coverage_id' column in the 'coverage_areas' collection. + description: Fields to return type: type: nullable underlying_type: - type: named - name: update_column_coverage_areas_coverage_id - coverage_radius_km: - description: Update the 'coverage_radius_km' column in the 'coverage_areas' collection. + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: - type: nullable - underlying_type: + object_type_name: public.spectrum_licenses + type: predicate + description: Delete from public.spectrum_licenses + name: delete_public.spectrum_licenses + result_type: + name: delete_public.spectrum_licenses_result + type: named + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: public.texts_insert_input type: named - name: update_column_coverage_areas_coverage_radius_km - last_upgraded: - description: Update the 'last_upgraded' column in the 'coverage_areas' collection. + type: array + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: update_column_coverage_areas_last_upgraded - node_id: - description: Update the 'node_id' column in the 'coverage_areas' collection. + element_type: + name: string + type: named + type: array + description: Insert into public.texts + name: insert_public.texts + result_type: + name: insert_public.texts_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: update_column_coverage_areas_node_id - population_covered: - description: Update the 'population_covered' column in the 'coverage_areas' collection. + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.texts_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.texts + type: predicate + description: Update public.texts + name: update_public.texts + result_type: + name: update_public.texts_result + type: named + - arguments: + returning: + description: Fields to return type: type: nullable underlying_type: - type: named - name: update_column_coverage_areas_population_covered - signal_strength_dbm: - description: Update the 'signal_strength_dbm' column in the 'coverage_areas' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_coverage_areas_signal_strength_dbm - technology: - description: Update the 'technology' column in the 'coverage_areas' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_coverage_areas_technology - terrain_type: - description: Update the 'terrain_type' column in the 'coverage_areas' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_coverage_areas_terrain_type - update_equipment_by_equipment_id_response: - description: Responses from the 'update_equipment_by_equipment_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete type: + object_type_name: public.texts + type: predicate + description: Delete from public.texts + name: delete_public.texts + result_type: + name: delete_public.texts_result + type: named + scalar_types: + bigint: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: bigint type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: equipment - update_equipment_by_equipment_id_update_columns: - description: Update the columns of the 'equipment' collection - fields: - capacity_mbps: - description: Update the 'capacity_mbps' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_capacity_mbps - equipment_id: - description: Update the 'equipment_id' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_equipment_id - equipment_type: - description: Update the 'equipment_type' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_equipment_type - firmware_version: - description: Update the 'firmware_version' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_firmware_version - installation_date: - description: Update the 'installation_date' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_installation_date - last_maintenance_date: - description: Update the 'last_maintenance_date' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_last_maintenance_date - manufacturer: - description: Update the 'manufacturer' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_manufacturer - model: - description: Update the 'model' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_model - node_id: - description: Update the 'node_id' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_node_id - power_consumption_watts: - description: Update the 'power_consumption_watts' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_power_consumption_watts - serial_number: - description: Update the 'serial_number' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_serial_number - status: - description: Update the 'status' column in the 'equipment' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_equipment_status - update_outages_by_outage_id_response: - description: Responses from the 'update_outages_by_outage_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: + type: custom + stddev_samp: + result_type: + name: bigint type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: outages - update_outages_by_outage_id_update_columns: - description: Update the columns of the 'outages' collection - fields: - affected_customers: - description: Update the 'affected_customers' column in the 'outages' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_outages_affected_customers - cause: - description: Update the 'cause' column in the 'outages' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_outages_cause - end_time: - description: Update the 'end_time' column in the 'outages' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_outages_end_time - node_id: - description: Update the 'node_id' column in the 'outages' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_outages_node_id - outage_id: - description: Update the 'outage_id' column in the 'outages' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_outages_outage_id - resolution: - description: Update the 'resolution' column in the 'outages' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_outages_resolution - severity: - description: Update the 'severity' column in the 'outages' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_outages_severity - start_time: - description: Update the 'start_time' column in the 'outages' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_outages_start_time - update_spectrum_licenses_by_license_id_response: - description: Responses from the 'update_spectrum_licenses_by_license_id' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: + type: custom + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: bigint type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: spectrum_licenses - update_spectrum_licenses_by_license_id_update_columns: - description: Update the columns of the 'spectrum_licenses' collection - fields: - acquisition_date: - description: Update the 'acquisition_date' column in the 'spectrum_licenses' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_spectrum_licenses_acquisition_date - bandwidth_mhz: - description: Update the 'bandwidth_mhz' column in the 'spectrum_licenses' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_spectrum_licenses_bandwidth_mhz - cost_million_usd: - description: Update the 'cost_million_usd' column in the 'spectrum_licenses' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_spectrum_licenses_cost_million_usd - expiration_date: - description: Update the 'expiration_date' column in the 'spectrum_licenses' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_spectrum_licenses_expiration_date - frequency_band: - description: Update the 'frequency_band' column in the 'spectrum_licenses' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_spectrum_licenses_frequency_band - geographic_area: - description: Update the 'geographic_area' column in the 'spectrum_licenses' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_spectrum_licenses_geographic_area - license_id: - description: Update the 'license_id' column in the 'spectrum_licenses' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_spectrum_licenses_license_id - license_number: - description: Update the 'license_number' column in the 'spectrum_licenses' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_spectrum_licenses_license_number - regulatory_authority: - description: Update the 'regulatory_authority' column in the 'spectrum_licenses' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_spectrum_licenses_regulatory_authority - update_texts_by_textid_response: - description: Responses from the 'update_texts_by_textid' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: + type: custom + var_samp: + result_type: + name: bigint type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: texts - update_texts_by_textid_update_columns: - description: Update the columns of the 'texts' collection - fields: - customerid: - description: Update the 'customerid' column in the 'texts' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_texts_customerid - deviceid: - description: Update the 'deviceid' column in the 'texts' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_texts_deviceid - latitude: - description: Update the 'latitude' column in the 'texts' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_texts_latitude - longitude: - description: Update the 'longitude' column in the 'texts' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_texts_longitude - messagetype: - description: Update the 'messagetype' column in the 'texts' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_texts_messagetype - nodeid: - description: Update the 'nodeid' column in the 'texts' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_texts_nodeid - receivernumber: - description: Update the 'receivernumber' column in the 'texts' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_texts_receivernumber - textid: - description: Update the 'textid' column in the 'texts' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_texts_textid - timestamp: - description: Update the 'timestamp' column in the 'texts' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_texts_timestamp - collections: - - name: calls - arguments: {} - type: calls - uniqueness_constraints: - calls_pkey: - unique_columns: - - callid - foreign_keys: {} - - name: coverage_areas - arguments: {} - type: coverage_areas - uniqueness_constraints: - coverage_areas_pkey: - unique_columns: - - coverage_id - foreign_keys: {} - - name: equipment - arguments: {} - type: equipment - uniqueness_constraints: - equipment_pkey: - unique_columns: - - equipment_id - foreign_keys: {} - - name: outages - arguments: {} - type: outages - uniqueness_constraints: - outages_pkey: - unique_columns: - - outage_id - foreign_keys: {} - - name: spectrum_licenses - arguments: {} - type: spectrum_licenses - uniqueness_constraints: - spectrum_licenses_pkey: - unique_columns: - - license_id - foreign_keys: {} - - name: texts - arguments: {} - type: texts - uniqueness_constraints: - texts_pkey: - unique_columns: - - textid - foreign_keys: {} - functions: [] - procedures: - - name: delete_calls_by_callid - description: Delete any row on the 'calls' collection using the 'callid' key - arguments: - key_callid: - type: + type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: bigint type: named - name: int4 - pre_check: - description: Delete permission predicate over the 'calls' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: calls - result_type: - type: named - name: delete_calls_by_callid_response - - name: delete_coverage_areas_by_coverage_id - description: Delete any row on the 'coverage_areas' collection using the 'coverage_id' key - arguments: - key_coverage_id: - type: + type: custom + representation: + type: biginteger + character_varying: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _ilike: + type: contains_insensitive + _in: + type: in + _iregex: + argument_type: + name: character_varying type: named - name: int4 - pre_check: - description: Delete permission predicate over the 'coverage_areas' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: coverage_areas - result_type: - type: named - name: delete_coverage_areas_by_coverage_id_response - - name: delete_equipment_by_equipment_id - description: Delete any row on the 'equipment' collection using the 'equipment_id' key - arguments: - key_equipment_id: - type: + type: custom + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: character_varying + type: named + type: custom + _nilike: + argument_type: + name: character_varying + type: named + type: custom + _niregex: + argument_type: + name: character_varying + type: named + type: custom + _nlike: + argument_type: + name: character_varying + type: named + type: custom + _nregex: + argument_type: + name: character_varying + type: named + type: custom + _regex: + argument_type: + name: character_varying + type: named + type: custom + representation: + type: string + date: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: date + type: named + type: custom + representation: + type: date + decimal: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: decimal + type: named + type: custom + stddev_samp: + result_type: + name: decimal + type: named + type: custom + sum: + result_type: decimal + type: sum + var_pop: + result_type: + name: decimal + type: named + type: custom + var_samp: + result_type: + name: decimal + type: named + type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: decimal + type: named + type: custom + representation: + type: bigdecimal + int: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: int + type: named + type: custom + stddev_samp: + result_type: + name: int + type: named + type: custom + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: int + type: named + type: custom + var_samp: + result_type: + name: int + type: named + type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: int + type: named + type: custom + representation: + type: int32 + integer: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: integer + type: named + type: custom + stddev_samp: + result_type: + name: integer + type: named + type: custom + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: integer + type: named + type: custom + var_samp: + result_type: + name: integer + type: named + type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: integer type: named - name: int4 - pre_check: - description: Delete permission predicate over the 'equipment' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: equipment - result_type: - type: named - name: delete_equipment_by_equipment_id_response - - name: delete_outages_by_outage_id - description: Delete any row on the 'outages' collection using the 'outage_id' key - arguments: - key_outage_id: - type: + type: custom + representation: + type: int32 + string: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _ilike: + type: contains_insensitive + _in: + type: in + _iregex: + argument_type: + name: string type: named - name: int4 - pre_check: - description: Delete permission predicate over the 'outages' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: outages - result_type: - type: named - name: delete_outages_by_outage_id_response - - name: delete_spectrum_licenses_by_license_id - description: Delete any row on the 'spectrum_licenses' collection using the 'license_id' key - arguments: - key_license_id: - type: + type: custom + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: string type: named - name: int4 - pre_check: - description: Delete permission predicate over the 'spectrum_licenses' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: spectrum_licenses - result_type: - type: named - name: delete_spectrum_licenses_by_license_id_response - - name: delete_texts_by_textid - description: Delete any row on the 'texts' collection using the 'textid' key - arguments: - key_textid: - type: + type: custom + _nilike: + argument_type: + name: string type: named - name: int4 - pre_check: - description: Delete permission predicate over the 'texts' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: texts - result_type: - type: named - name: delete_texts_by_textid_response - - name: insert_calls - description: Insert into the calls table - arguments: - objects: - type: - type: array - element_type: - type: named - name: insert_calls_object - post_check: - description: Insert permission predicate over the 'calls' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: calls - result_type: - type: named - name: insert_calls_response - - name: insert_coverage_areas - description: Insert into the coverage_areas table - arguments: - objects: - type: - type: array - element_type: - type: named - name: insert_coverage_areas_object - post_check: - description: Insert permission predicate over the 'coverage_areas' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: coverage_areas - result_type: - type: named - name: insert_coverage_areas_response - - name: insert_equipment - description: Insert into the equipment table - arguments: - objects: - type: - type: array - element_type: - type: named - name: insert_equipment_object - post_check: - description: Insert permission predicate over the 'equipment' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: equipment - result_type: - type: named - name: insert_equipment_response - - name: insert_outages - description: Insert into the outages table - arguments: - objects: - type: - type: array - element_type: - type: named - name: insert_outages_object - post_check: - description: Insert permission predicate over the 'outages' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: outages - result_type: - type: named - name: insert_outages_response - - name: insert_spectrum_licenses - description: Insert into the spectrum_licenses table - arguments: - objects: - type: - type: array - element_type: - type: named - name: insert_spectrum_licenses_object - post_check: - description: Insert permission predicate over the 'spectrum_licenses' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: spectrum_licenses - result_type: - type: named - name: insert_spectrum_licenses_response - - name: insert_texts - description: Insert into the texts table - arguments: - objects: - type: - type: array - element_type: - type: named - name: insert_texts_object - post_check: - description: Insert permission predicate over the 'texts' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: texts - result_type: - type: named - name: insert_texts_response - - name: update_calls_by_callid - description: Update any row on the 'calls' collection using the 'callid' key - arguments: - key_callid: - type: + type: custom + _niregex: + argument_type: + name: string type: named - name: int4 - post_check: - description: Update permission post-condition predicate over the 'calls' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: calls - pre_check: - description: Update permission pre-condition predicate over the 'calls' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: calls - update_columns: - type: + type: custom + _nlike: + argument_type: + name: string type: named - name: update_calls_by_callid_update_columns - result_type: - type: named - name: update_calls_by_callid_response - - name: update_coverage_areas_by_coverage_id - description: Update any row on the 'coverage_areas' collection using the 'coverage_id' key - arguments: - key_coverage_id: - type: + type: custom + _nregex: + argument_type: + name: string type: named - name: int4 - post_check: - description: Update permission post-condition predicate over the 'coverage_areas' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: coverage_areas - pre_check: - description: Update permission pre-condition predicate over the 'coverage_areas' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: coverage_areas - update_columns: - type: + type: custom + _regex: + argument_type: + name: string type: named - name: update_coverage_areas_by_coverage_id_update_columns - result_type: - type: named - name: update_coverage_areas_by_coverage_id_response - - name: update_equipment_by_equipment_id - description: Update any row on the 'equipment' collection using the 'equipment_id' key - arguments: - key_equipment_id: - type: + type: custom + representation: + type: string + text: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _ilike: + type: contains_insensitive + _in: + type: in + _iregex: + argument_type: + name: text type: named - name: int4 - post_check: - description: Update permission post-condition predicate over the 'equipment' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: equipment - pre_check: - description: Update permission pre-condition predicate over the 'equipment' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: equipment - update_columns: - type: + type: custom + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: text type: named - name: update_equipment_by_equipment_id_update_columns - result_type: - type: named - name: update_equipment_by_equipment_id_response - - name: update_outages_by_outage_id - description: Update any row on the 'outages' collection using the 'outage_id' key - arguments: - key_outage_id: - type: + type: custom + _nilike: + argument_type: + name: text type: named - name: int4 - post_check: - description: Update permission post-condition predicate over the 'outages' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: outages - pre_check: - description: Update permission pre-condition predicate over the 'outages' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: outages - update_columns: - type: + type: custom + _niregex: + argument_type: + name: text type: named - name: update_outages_by_outage_id_update_columns - result_type: - type: named - name: update_outages_by_outage_id_response - - name: update_spectrum_licenses_by_license_id - description: Update any row on the 'spectrum_licenses' collection using the 'license_id' key - arguments: - key_license_id: - type: + type: custom + _nlike: + argument_type: + name: text type: named - name: int4 - post_check: - description: Update permission post-condition predicate over the 'spectrum_licenses' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: spectrum_licenses - pre_check: - description: Update permission pre-condition predicate over the 'spectrum_licenses' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: spectrum_licenses - update_columns: - type: + type: custom + _nregex: + argument_type: + name: text type: named - name: update_spectrum_licenses_by_license_id_update_columns - result_type: - type: named - name: update_spectrum_licenses_by_license_id_response - - name: update_texts_by_textid - description: Update any row on the 'texts' collection using the 'textid' key - arguments: - key_textid: - type: + type: custom + _regex: + argument_type: + name: text type: named - name: int4 - post_check: - description: Update permission post-condition predicate over the 'texts' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: texts - pre_check: - description: Update permission pre-condition predicate over the 'texts' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: texts - update_columns: - type: + type: custom + representation: + type: string + timestamp_with_time_zone: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: + argument_type: + name: timestamp_with_time_zone type: named - name: update_texts_by_textid_update_columns - result_type: - type: named - name: update_texts_by_textid_response + type: custom + representation: + type: timestamptz capabilities: - version: 0.1.6 capabilities: - query: - aggregates: {} - variables: {} - explain: {} - nested_fields: - filter_by: {} - order_by: {} - exists: - nested_collections: {} mutation: + explain: {} transactional: {} + query: + aggregates: + filter_by: {} + exists: {} explain: {} - relationships: - relation_comparisons: {} - order_by_aggregate: {} + nested_fields: {} + variables: {} + relational_query: + aggregate: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + group_by: {} + filter: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + join: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + join_types: + full: {} + inner: {} + left: {} + left_anti: {} + left_semi: {} + right: {} + right_anti: {} + right_semi: {} + project: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + sort: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + union: {} + window: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + version: 0.2.5 diff --git a/hasura/industry/telco/network/subgraph.yaml b/hasura/industry/telco/network/subgraph.yaml index 3196304f..958671f8 100644 --- a/hasura/industry/telco/network/subgraph.yaml +++ b/hasura/industry/telco/network/subgraph.yaml @@ -5,6 +5,7 @@ definition: generator: rootPath: . graphqlTypeNamePrefix: network_ + namingConvention: snake_case_v2 includePaths: - metadata envMapping: diff --git a/hasura/industry/telco/support/connector/atlas/.hasura-connector/Dockerfile.atlas b/hasura/industry/telco/support/connector/atlas/.hasura-connector/Dockerfile.atlas index d4eecffd..f77f9bdd 100644 --- a/hasura/industry/telco/support/connector/atlas/.hasura-connector/Dockerfile.atlas +++ b/hasura/industry/telco/support/connector/atlas/.hasura-connector/Dockerfile.atlas @@ -1,2 +1,2 @@ -FROM ghcr.io/hasura/ndc-mongodb:v1.7.1 +FROM ghcr.io/hasura/ndc-mongodb:v1.8.3 COPY ./ /etc/connector \ No newline at end of file diff --git a/hasura/industry/telco/support/connector/atlas/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/support/connector/atlas/.hasura-connector/connector-metadata.yaml index a266b20a..88e60bc0 100644 --- a/hasura/industry/telco/support/connector/atlas/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/support/connector/atlas/.hasura-connector/connector-metadata.yaml @@ -1,6 +1,6 @@ packagingDefinition: type: PrebuiltDockerImage - dockerImage: ghcr.io/hasura/ndc-mongodb:v1.7.1 + dockerImage: ghcr.io/hasura/ndc-mongodb:v1.8.3 supportedEnvironmentVariables: - name: MONGODB_DATABASE_URI description: The URI for the MongoDB database @@ -9,7 +9,7 @@ commands: cliPlugin: type: null name: ndc-mongodb - version: v1.7.1 + version: v1.8.3 dockerComposeWatch: - path: ./ action: sync+restart diff --git a/hasura/industry/telco/support/connector/atlas/compose.yaml b/hasura/industry/telco/support/connector/atlas/compose.yaml index ccc99212..5bc1b720 100644 --- a/hasura/industry/telco/support/connector/atlas/compose.yaml +++ b/hasura/industry/telco/support/connector/atlas/compose.yaml @@ -11,4 +11,4 @@ services: extra_hosts: - local.hasura.dev:host-gateway ports: - - 4240:8080 + - 8795:8080 diff --git a/hasura/industry/telco/support/connector/atlas/configuration.json b/hasura/industry/telco/support/connector/atlas/configuration.json index 95e0370e..2008d6a9 100644 --- a/hasura/industry/telco/support/connector/atlas/configuration.json +++ b/hasura/industry/telco/support/connector/atlas/configuration.json @@ -5,6 +5,7 @@ "allSchemaNullable": true }, "serializationOptions": { - "extendedJsonMode": "canonical" + "extendedJsonMode": "canonical", + "onResponseTypeMismatch": "fail" } } \ No newline at end of file diff --git a/hasura/industry/telco/support/connector/atlas/connector.yaml b/hasura/industry/telco/support/connector/atlas/connector.yaml index 77c3f326..0f7ed34c 100644 --- a/hasura/industry/telco/support/connector/atlas/connector.yaml +++ b/hasura/industry/telco/support/connector/atlas/connector.yaml @@ -3,7 +3,7 @@ version: v2 definition: name: atlas subgraph: support - source: hasura/mongodb:v1.7.1 + source: hasura/mongodb:v1.8.3 context: . envMapping: HASURA_CONNECTOR_PORT: diff --git a/hasura/industry/telco/support/connector/atlas/schema/customerPreferences.json b/hasura/industry/telco/support/connector/atlas/schema/customerPreferences.json index 43a94e57..77b6392b 100644 --- a/hasura/industry/telco/support/connector/atlas/schema/customerPreferences.json +++ b/hasura/industry/telco/support/connector/atlas/schema/customerPreferences.json @@ -122,6 +122,13 @@ } } }, + "instagram": { + "type": { + "nullable": { + "scalar": "string" + } + } + }, "linkedin": { "type": { "nullable": { @@ -129,6 +136,13 @@ } } }, + "tiktok": { + "type": { + "nullable": { + "scalar": "string" + } + } + }, "twitter": { "type": { "nullable": { diff --git a/hasura/industry/telco/support/connector/atlas/schema/userProfiles.json b/hasura/industry/telco/support/connector/atlas/schema/userProfiles.json index dfc99942..87113ba7 100644 --- a/hasura/industry/telco/support/connector/atlas/schema/userProfiles.json +++ b/hasura/industry/telco/support/connector/atlas/schema/userProfiles.json @@ -285,6 +285,13 @@ }, "userProfiles_supportHistory": { "fields": { + "category": { + "type": { + "nullable": { + "scalar": "string" + } + } + }, "date": { "type": { "nullable": { @@ -292,6 +299,13 @@ } } }, + "description": { + "type": { + "nullable": { + "scalar": "string" + } + } + }, "issue": { "type": { "nullable": { diff --git a/hasura/industry/telco/support/connector/vector/.hasura-connector/Dockerfile.vector b/hasura/industry/telco/support/connector/vector/.hasura-connector/Dockerfile.vector index 371b9090..da99a414 100644 --- a/hasura/industry/telco/support/connector/vector/.hasura-connector/Dockerfile.vector +++ b/hasura/industry/telco/support/connector/vector/.hasura-connector/Dockerfile.vector @@ -1,2 +1,2 @@ -FROM ghcr.io/hasura/ndc-postgres:v2.1.1 +FROM ghcr.io/hasura/ndc-postgres-jdbc:v1.2.6 COPY ./ /etc/connector \ No newline at end of file diff --git a/hasura/industry/telco/support/connector/vector/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/support/connector/vector/.hasura-connector/connector-metadata.yaml index 27cdb8b8..19580961 100644 --- a/hasura/industry/telco/support/connector/vector/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/support/connector/vector/.hasura-connector/connector-metadata.yaml @@ -1,55 +1,65 @@ +version: v2 +ndcSpecGeneration: v0.2 packagingDefinition: type: PrebuiltDockerImage - dockerImage: ghcr.io/hasura/ndc-postgres:v2.1.1 + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc:v1.2.6 supportedEnvironmentVariables: - - name: CONNECTION_URI - description: The PostgreSQL connection URI - defaultValue: postgresql://read_only_user:readonlyuser@35.236.11.122:5432/v3-docs-sample-app - - name: CLIENT_CERT - description: The SSL client certificate (Optional) - defaultValue: "" - - name: CLIENT_KEY - description: The SSL client key (Optional) - defaultValue: "" - - name: ROOT_CERT - description: The SSL root certificate (Optional) - defaultValue: "" + - name: JDBC_URL + description: The JDBC URL to connect to the database + - name: JDBC_SCHEMAS + description: A comma-separated list of schemas to include in the metadata commands: - update: hasura-ndc-postgres update + update: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 + commandArgs: + - update + - --jdbc-url + - JDBC_URL + - --schemas + - $JDBC_SCHEMAS + - --outfile + - /etc/connector/configuration.json + upgradeConfiguration: + type: Dockerized + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 + commandArgs: + - upgrade + - --config-file + - /etc/connector/configuration.json + - --outfile + - /etc/connector/configuration.json cliPlugin: - type: null - name: ndc-postgres - version: v2.1.1 -dockerComposeWatch: - - path: ./ - action: sync+restart - target: /etc/connector + type: Docker + dockerImage: ghcr.io/hasura/ndc-postgres-jdbc-cli:v1.2.6 +dockerComposeWatch: [] nativeToolchainDefinition: commands: start: type: ShellScript - bash: |- + bash: | #!/usr/bin/env bash set -eu -o pipefail - HASURA_CONFIGURATION_DIRECTORY="$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "$HASURA_DDN_NATIVE_CONNECTOR_DIR/ndc-postgres" serve - powershell: |- + HASURA_CONFIGURATION_DIRECTORY="$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" \ + "$HASURA_DDN_NATIVE_CONNECTOR_DIR/entrypoint.sh" + powershell: | $ErrorActionPreference = "Stop" - $env:HASURA_CONFIGURATION_DIRECTORY="$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_DIR\ndc-postgres.exe" serve + $env:HASURA_CONFIGURATION_DIRECTORY="$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH"; + & "$env:HASURA_DDN_NATIVE_CONNECTOR_DIR\entrypoint.bat" watch: type: ShellScript - bash: |- + bash: | #!/usr/bin/env bash echo "Watch is not supported for this connector" exit 1 - powershell: |- + powershell: | Write-Output "Watch is not supported for this connector" exit 1 update: type: ShellScript - bash: |- - #!/usr/bin/env bash - set -eu -o pipefail - "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/hasura-ndc-postgres" update - powershell: |- - $ErrorActionPreference = "Stop" - & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR\hasura-ndc-postgres.exe" update + bash: set -e -o pipefail; "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.sh" update --jdbc-url JDBC_URL --schemas $JDBC_SCHEMAS --outfile "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH/configuration.json" + powershell: $ErrorActionPreference = "Stop"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR\entrypoint.bat" update --jdbc-url JDBC_URL --schemas `$env:JDBC_SCHEMAS --outfile "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH\configuration.json" + cliPluginEntrypoint: + type: ShellScript + bash: set -e -o pipefail; "$HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.sh" + powershell: $ErrorActionPreference = "Stop"; & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR/entrypoint.bat" diff --git a/hasura/industry/telco/support/connector/vector/compose.postgres-adminer.yaml b/hasura/industry/telco/support/connector/vector/compose.postgres-adminer.yaml deleted file mode 100644 index 339cea44..00000000 --- a/hasura/industry/telco/support/connector/vector/compose.postgres-adminer.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# Configuration used for adminer -configs: - adminer-index.php: - content: | - $$_ENV['ADMINER_DEFAULT_SERVER'], - 'username' => $$_ENV['ADMINER_DEFAULT_USERNAME'], - 'password' => $$_ENV['ADMINER_DEFAULT_PASSWORD'], - 'driver' => $$_ENV['ADMINER_DEFAULT_DRIVER'], - 'db' => $$_ENV['ADMINER_DEFAULT_DB'], - ]; - } - include './adminer.php'; - ?> -services: - # Adminer is a lightweight database management tool (optional) - adminer: - configs: - - source: adminer-index.php - target: /var/www/html/index.php - depends_on: - - postgres - environment: - ADMINER_DEFAULT_DB: dev - ADMINER_DEFAULT_DRIVER: pgsql - ADMINER_DEFAULT_PASSWORD: password - ADMINER_DEFAULT_SERVER: postgres - ADMINER_DEFAULT_USERNAME: user - image: adminer:latest - ports: - - 4653:8080 - restart: unless-stopped - # Bundled Postgres database with pgvector (optional) - postgres: - environment: - POSTGRES_DB: dev - POSTGRES_PASSWORD: password - POSTGRES_USER: user - image: pgvector/pgvector:pg17 - ports: - - 6147:5432 - restart: unless-stopped - volumes: - - db_data:/var/lib/postgresql/data -volumes: - db_data: {} diff --git a/hasura/industry/telco/support/connector/vector/compose.yaml b/hasura/industry/telco/support/connector/vector/compose.yaml index b25f0cf4..17f3668d 100644 --- a/hasura/industry/telco/support/connector/vector/compose.yaml +++ b/hasura/industry/telco/support/connector/vector/compose.yaml @@ -4,11 +4,11 @@ services: context: . dockerfile: .hasura-connector/Dockerfile.vector environment: - CONNECTION_URI: $SUPPORT_VECTOR_CONNECTION_URI HASURA_SERVICE_TOKEN_SECRET: $SUPPORT_VECTOR_HASURA_SERVICE_TOKEN_SECRET + JDBC_URL: $SUPPORT_VECTOR_JDBC_URL OTEL_EXPORTER_OTLP_ENDPOINT: $SUPPORT_VECTOR_OTEL_EXPORTER_OTLP_ENDPOINT OTEL_SERVICE_NAME: $SUPPORT_VECTOR_OTEL_SERVICE_NAME extra_hosts: - local.hasura.dev:host-gateway ports: - - 8848:8080 + - 6755:8080 diff --git a/hasura/industry/telco/support/connector/vector/configuration.json b/hasura/industry/telco/support/connector/vector/configuration.json index 4a5da17d..37175f79 100644 --- a/hasura/industry/telco/support/connector/vector/configuration.json +++ b/hasura/industry/telco/support/connector/vector/configuration.json @@ -1,1114 +1,148 @@ { - "version": "5", - "$schema": "schema.json", - "connectionSettings": { - "connectionUri": { - "variable": "CONNECTION_URI" + "version": "v2", + "connection_uri": { + "variable": "JDBC_URL" }, - "poolSettings": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "isolationLevel": "ReadCommitted" - }, - "metadata": { - "tables": { - "document_embeddings": { - "schemaName": "public", - "tableName": "document_embeddings", - "columns": { - "document_uuid": { - "name": "document_uuid", - "type": { - "scalarType": "uuid" - }, - "nullable": "nonNullable", - "description": null - }, - "embeddings": { - "name": "embeddings", - "type": { - "scalarType": "vector" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "document_embeddings_pkey": [ - "document_uuid" - ] - }, - "foreignRelations": { - "document_embeddings_document_uuid_fkey": { - "foreignSchema": "public", - "foreignTable": "documents", - "columnMapping": { - "document_uuid": "uuid" - } - } - }, - "description": null - }, - "documents": { - "schemaName": "public", - "tableName": "documents", - "columns": { - "body": { - "name": "body", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "created_at": { - "name": "created_at", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "language": { - "name": "language", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "rating": { - "name": "rating", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "status": { - "name": "status", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "tags": { - "name": "tags", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "title": { - "name": "title", - "type": { - "scalarType": "text" - }, - "nullable": "nullable", - "description": null - }, - "updated_at": { - "name": "updated_at", - "type": { - "scalarType": "timestamptz" - }, - "nullable": "nullable", - "hasDefault": "hasDefault", - "description": null - }, - "uuid": { - "name": "uuid", - "type": { - "scalarType": "uuid" - }, - "nullable": "nonNullable", - "hasDefault": "hasDefault", - "description": null - }, - "view_count": { - "name": "view_count", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "documents_pkey": [ - "uuid" - ] - }, - "foreignRelations": {}, - "description": null - } - }, - "types": { - "scalar": { - "float8": { - "typeName": "float8", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "float8" - }, - "max": { - "returnType": "float8" - }, - "min": { - "returnType": "float8" - }, - "stddev": { - "returnType": "float8" - }, - "stddev_pop": { - "returnType": "float8" - }, - "stddev_samp": { - "returnType": "float8" - }, - "sum": { - "returnType": "float8" - }, - "var_pop": { - "returnType": "float8" - }, - "var_samp": { - "returnType": "float8" - }, - "variance": { - "returnType": "float8" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "float8", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "float8", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "float8", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "float8", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "float8", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "float8", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "float8", - "isInfix": true - } - }, - "typeRepresentation": "float64" - }, - "int4": { - "typeName": "int4", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "bit_and": { - "returnType": "int4" - }, - "bit_or": { - "returnType": "int4" - }, - "bit_xor": { - "returnType": "int4" - }, - "max": { - "returnType": "int4" - }, - "min": { - "returnType": "int4" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "int8" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "int4", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "int4", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - } - }, - "typeRepresentation": "int32" + "tables": [ + { + "name": "public.document_embeddings", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "document_uuid", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "uuid" + } + }, + { + "name": "embeddings", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "vector(1536)" + } + } + ], + "primary_keys": [ + "document_uuid" + ], + "foreign_keys": {} }, - "int8": { - "typeName": "int8", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "bit_and": { - "returnType": "int8" - }, - "bit_or": { - "returnType": "int8" - }, - "bit_xor": { - "returnType": "int8" - }, - "max": { - "returnType": "int8" - }, - "min": { - "returnType": "int8" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "numeric" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "int8", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "int8", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - } - }, - "typeRepresentation": "int64AsString" - }, - "numeric": { - "typeName": "numeric", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "max": { - "returnType": "numeric" - }, - "min": { - "returnType": "numeric" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "numeric" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "numeric", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "numeric", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - } - }, - "typeRepresentation": "bigDecimalAsString" - }, - "text": { - "typeName": "text", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "text" - }, - "min": { - "returnType": "text" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "text", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_ilike": { - "operatorName": "~~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "text", - "isInfix": true - }, - "_iregex": { - "operatorName": "~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_like": { - "operatorName": "~~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nilike": { - "operatorName": "!~~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_niregex": { - "operatorName": "!~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nlike": { - "operatorName": "!~~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nregex": { - "operatorName": "!~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_regex": { - "operatorName": "~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "starts_with": { - "operatorName": "starts_with", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": false - }, - "ts_match_tt": { - "operatorName": "ts_match_tt", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": false - } - }, - "typeRepresentation": "string" - }, - "timestamptz": { - "typeName": "timestamptz", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "timestamptz" - }, - "min": { - "returnType": "timestamptz" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "timestamptz", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "timestamptz", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "timestamptz", - "isInfix": true - } - }, - "typeRepresentation": "timestamptz" - }, - "uuid": { - "typeName": "uuid", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": {}, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "uuid", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "uuid", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "uuid", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "uuid", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "uuid", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "uuid", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "uuid", - "isInfix": true - } - }, - "typeRepresentation": "uUID" - }, - "vector": { - "typeName": "vector", - "schemaName": "public", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "vector" - }, - "sum": { - "returnType": "vector" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "vector", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "vector", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "vector", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "vector", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "vector", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "vector", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "vector", - "isInfix": true - } - }, - "typeRepresentation": null - } - }, - "composite": {} - }, - "nativeOperations": { - "queries": { - "document_vector_search": { - "sql": { - "file": "native_operations/queries/document_vector_search.sql" - }, - "columns": { - "distance": { - "name": "distance", - "type": { - "scalarType": "float8" - }, - "nullable": "nullable", - "description": null - }, - "document_uuid": { - "name": "document_uuid", - "type": { - "scalarType": "uuid" - }, - "nullable": "nonNullable", - "description": null - } - }, - "arguments": { - "query_vector": { - "name": "query_vector", - "type": { - "scalarType": "vector" - }, - "nullable": "nonNullable", - "description": null - } - }, - "description": null + { + "name": "public.documents", + "description": null, + "category": "TABLE", + "columns": [ + { + "name": "uuid", + "nullable": false, + "auto_increment": false, + "is_primarykey": true, + "data": { + "database_type": "uuid" + } + }, + { + "name": "updated_at", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "created_at", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "timestamp_with_time_zone" + } + }, + { + "name": "status", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "language", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "view_count", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "rating", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "integer", + "metadata": { + "type": "numeric", + "precision": 32, + "scale": 0 + } + } + }, + { + "name": "title", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "body", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + }, + { + "name": "tags", + "nullable": true, + "auto_increment": false, + "is_primarykey": false, + "data": { + "database_type": "text" + } + } + ], + "primary_keys": [ + "uuid" + ], + "foreign_keys": {} } - }, - "mutations": {} - } - }, - "introspectionOptions": { - "excludedSchemas": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal", - "_timescaledb_catalog", - "_timescaledb_functions", - "_timescaledb_internal", - "_timescaledb_cache", - "_timescaledb_config", - "timescaledb_experimental", - "timescaledb_information", - "_timescaledb_debug" - ], - "unqualifiedSchemasForTables": [ - "public" - ], - "unqualifiedSchemasForTypesAndProcedures": [ - "public", - "pg_catalog", - "tiger" - ], - "comparisonOperatorMapping": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "introspectPrefixFunctionComparisonOperators": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "typeRepresentations": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - } - }, - "mutationsVersion": "v2", - "mutationsPrefix": "" -} + ] +} \ No newline at end of file diff --git a/hasura/industry/telco/support/connector/vector/connector.yaml b/hasura/industry/telco/support/connector/vector/connector.yaml index dfd72cc1..d7eb2bb3 100644 --- a/hasura/industry/telco/support/connector/vector/connector.yaml +++ b/hasura/industry/telco/support/connector/vector/connector.yaml @@ -3,15 +3,15 @@ version: v2 definition: name: vector subgraph: support - source: hasura/postgres:v2.1.1 + source: hasura/postgres-promptql:v1.2.6 context: . envMapping: - CONNECTION_URI: - fromEnv: SUPPORT_VECTOR_CONNECTION_URI HASURA_CONNECTOR_PORT: fromEnv: SUPPORT_VECTOR_HASURA_CONNECTOR_PORT HASURA_SERVICE_TOKEN_SECRET: fromEnv: SUPPORT_VECTOR_HASURA_SERVICE_TOKEN_SECRET + JDBC_URL: + fromEnv: SUPPORT_VECTOR_JDBC_URL OTEL_EXPORTER_OTLP_ENDPOINT: fromEnv: SUPPORT_VECTOR_OTEL_EXPORTER_OTLP_ENDPOINT OTEL_SERVICE_NAME: diff --git a/hasura/industry/telco/support/connector/vector/native_operations/queries/document_vector_search.sql b/hasura/industry/telco/support/connector/vector/native_operations/queries/document_vector_search.sql deleted file mode 100644 index 8bfd21e3..00000000 --- a/hasura/industry/telco/support/connector/vector/native_operations/queries/document_vector_search.sql +++ /dev/null @@ -1,5 +0,0 @@ -SELECT -document_uuid, -embeddings <=> {{query_vector}}::vector as distance -FROM document_embeddings -ORDER BY distance ASC \ No newline at end of file diff --git a/hasura/industry/telco/support/connector/vector/schema.json b/hasura/industry/telco/support/connector/vector/schema.json deleted file mode 100644 index 049e72ba..00000000 --- a/hasura/industry/telco/support/connector/vector/schema.json +++ /dev/null @@ -1,1638 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ParsedConfiguration", - "description": "Initial configuration, just enough to connect to a database and elaborate a full 'Configuration'.", - "type": "object", - "required": [ - "version" - ], - "properties": { - "version": { - "$ref": "#/definitions/Version" - }, - "$schema": { - "description": "Jsonschema of the configuration format.", - "default": null, - "type": [ - "string", - "null" - ] - }, - "connectionSettings": { - "description": "Database connection settings.", - "default": { - "connectionUri": { - "variable": "CONNECTION_URI" - }, - "poolSettings": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "isolationLevel": "ReadCommitted" - }, - "allOf": [ - { - "$ref": "#/definitions/DatabaseConnectionSettings" - } - ] - }, - "metadata": { - "description": "Connector metadata.", - "default": { - "tables": {}, - "types": { - "scalar": {}, - "composite": {} - }, - "nativeOperations": { - "queries": {}, - "mutations": {} - } - }, - "allOf": [ - { - "$ref": "#/definitions/Metadata" - } - ] - }, - "introspectionOptions": { - "description": "Database introspection options.", - "default": { - "excludedSchemas": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal", - "_timescaledb_catalog", - "_timescaledb_functions", - "_timescaledb_internal", - "_timescaledb_cache", - "_timescaledb_config", - "timescaledb_experimental", - "timescaledb_information", - "_timescaledb_debug" - ], - "unqualifiedSchemasForTables": [ - "public" - ], - "unqualifiedSchemasForTypesAndProcedures": [ - "public", - "pg_catalog", - "tiger" - ], - "comparisonOperatorMapping": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "introspectPrefixFunctionComparisonOperators": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "typeRepresentations": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - } - }, - "allOf": [ - { - "$ref": "#/definitions/IntrospectionOptions" - } - ] - }, - "mutationsVersion": { - "description": "Which version of the generated mutation procedures to include in the schema response", - "default": null, - "anyOf": [ - { - "$ref": "#/definitions/MutationsVersion" - }, - { - "type": "null" - } - ] - }, - "mutationsPrefix": { - "description": "Provide a custom prefix for generated mutation names. Defaults to mutations version.", - "default": null, - "type": [ - "string", - "null" - ] - } - }, - "definitions": { - "Version": { - "type": "string", - "enum": [ - "5" - ] - }, - "DatabaseConnectionSettings": { - "description": "Database connection settings.", - "type": "object", - "required": [ - "connectionUri" - ], - "properties": { - "connectionUri": { - "description": "Connection string for a Postgres-compatible database.", - "allOf": [ - { - "$ref": "#/definitions/ConnectionUri" - } - ] - }, - "poolSettings": { - "description": "Connection pool settings.", - "default": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "allOf": [ - { - "$ref": "#/definitions/PoolSettings" - } - ] - }, - "isolationLevel": { - "description": "Query isolation level.", - "default": "ReadCommitted", - "allOf": [ - { - "$ref": "#/definitions/IsolationLevel" - } - ] - } - } - }, - "ConnectionUri": { - "$ref": "#/definitions/Secret" - }, - "Secret": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "object", - "required": [ - "variable" - ], - "properties": { - "variable": { - "$ref": "#/definitions/Variable" - } - } - } - ] - }, - "Variable": { - "description": "The name of an an environment variable.", - "type": "string" - }, - "PoolSettings": { - "description": "Settings for the PostgreSQL connection pool", - "type": "object", - "properties": { - "maxConnections": { - "description": "maximum number of pool connections", - "default": 50, - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "poolTimeout": { - "description": "timeout for acquiring a connection from the pool (seconds)", - "default": 30, - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "idleTimeout": { - "description": "idle timeout for releasing a connection from the pool (seconds)", - "default": 180, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - }, - "checkConnectionAfterIdle": { - "description": "check the connection is alive after being idle for N seconds. Set to null to always check.", - "default": 60, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - }, - "connectionLifetime": { - "description": "maximum lifetime for an individual connection (seconds)", - "default": 600, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - } - } - }, - "IsolationLevel": { - "description": "The isolation level of the transaction in which a query is executed.", - "oneOf": [ - { - "description": "Prevents reading data from another uncommitted transaction.", - "type": "string", - "enum": [ - "ReadCommitted" - ] - }, - { - "description": "Reading the same data twice is guaranteed to return the same result.", - "type": "string", - "enum": [ - "RepeatableRead" - ] - }, - { - "description": "Concurrent transactions behave identically to serializing them one at a time.", - "type": "string", - "enum": [ - "Serializable" - ] - } - ] - }, - "Metadata": { - "description": "Metadata information.", - "type": "object", - "properties": { - "tables": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/TablesInfo" - } - ] - }, - "types": { - "default": { - "scalar": {}, - "composite": {} - }, - "allOf": [ - { - "$ref": "#/definitions/Types" - } - ] - }, - "nativeOperations": { - "default": { - "queries": {}, - "mutations": {} - }, - "allOf": [ - { - "$ref": "#/definitions/NativeOperations" - } - ] - } - } - }, - "TablesInfo": { - "description": "Mapping from a \"table\" name to its information.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TableInfo" - } - }, - "TableInfo": { - "description": "Information about a database table (or any other kind of relation).", - "type": "object", - "required": [ - "columns", - "schemaName", - "tableName" - ], - "properties": { - "schemaName": { - "type": "string" - }, - "tableName": { - "type": "string" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - } - }, - "uniquenessConstraints": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/UniquenessConstraints" - } - ] - }, - "foreignRelations": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/ForeignRelations" - } - ] - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "ColumnInfo": { - "description": "Information about a database column.", - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "nullable": { - "default": "nullable", - "allOf": [ - { - "$ref": "#/definitions/Nullable" - } - ] - }, - "hasDefault": { - "$ref": "#/definitions/HasDefault" - }, - "isIdentity": { - "$ref": "#/definitions/IsIdentity" - }, - "isGenerated": { - "$ref": "#/definitions/IsGenerated" - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "Type": { - "description": "The type of values that a column, field, or argument may take.", - "oneOf": [ - { - "type": "object", - "required": [ - "scalarType" - ], - "properties": { - "scalarType": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "compositeType" - ], - "properties": { - "compositeType": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "arrayType" - ], - "properties": { - "arrayType": { - "$ref": "#/definitions/Type" - } - }, - "additionalProperties": false - } - ] - }, - "Nullable": { - "description": "Can this column contain null values", - "type": "string", - "enum": [ - "nullable", - "nonNullable" - ] - }, - "HasDefault": { - "description": "Does this column have a default value.", - "type": "string", - "enum": [ - "noDefault", - "hasDefault" - ] - }, - "IsIdentity": { - "description": "Is this column an identity column.", - "type": "string", - "enum": [ - "notIdentity", - "identityByDefault", - "identityAlways" - ] - }, - "IsGenerated": { - "description": "Is this column a generated column.", - "type": "string", - "enum": [ - "notGenerated", - "stored" - ] - }, - "UniquenessConstraints": { - "description": "A mapping from the name of a unique constraint to its value.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UniquenessConstraint" - } - }, - "UniquenessConstraint": { - "description": "The set of columns that make up a uniqueness constraint. We map each table column to their ndc field names.", - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "ForeignRelations": { - "description": "A mapping from the name of a foreign key constraint to its value.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ForeignRelation" - } - }, - "ForeignRelation": { - "description": "A foreign key constraint.", - "type": "object", - "required": [ - "columnMapping", - "foreignTable" - ], - "properties": { - "foreignSchema": { - "type": [ - "string", - "null" - ] - }, - "foreignTable": { - "type": "string" - }, - "columnMapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Types": { - "description": "Information about types.", - "type": "object", - "required": [ - "composite", - "scalar" - ], - "properties": { - "scalar": { - "$ref": "#/definitions/ScalarTypes" - }, - "composite": { - "$ref": "#/definitions/CompositeTypes" - } - } - }, - "ScalarTypes": { - "description": "Map of all known/occurring scalar types.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ScalarType" - } - }, - "ScalarType": { - "description": "Information about a scalar type. A scalar type is completely characterized by its name and the operations you can do on it.", - "type": "object", - "required": [ - "aggregateFunctions", - "comparisonOperators", - "schemaName", - "typeName" - ], - "properties": { - "typeName": { - "type": "string" - }, - "schemaName": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "aggregateFunctions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/AggregateFunction" - } - }, - "comparisonOperators": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ComparisonOperator" - } - }, - "typeRepresentation": { - "anyOf": [ - { - "$ref": "#/definitions/TypeRepresentation" - }, - { - "type": "null" - } - ] - } - } - }, - "AggregateFunction": { - "type": "object", - "required": [ - "returnType" - ], - "properties": { - "returnType": { - "type": "string" - } - } - }, - "ComparisonOperator": { - "description": "Represents a postgres binary comparison operator", - "type": "object", - "required": [ - "argumentType", - "operatorKind", - "operatorName" - ], - "properties": { - "operatorName": { - "type": "string" - }, - "operatorKind": { - "$ref": "#/definitions/OperatorKind" - }, - "argumentType": { - "type": "string" - }, - "isInfix": { - "default": true, - "type": "boolean" - } - } - }, - "OperatorKind": { - "description": "Is it a built-in operator, or a custom operator.", - "type": "string", - "enum": [ - "equal", - "in", - "custom" - ] - }, - "TypeRepresentation": { - "description": "Type representation of a scalar type.", - "oneOf": [ - { - "description": "JSON booleans", - "type": "string", - "enum": [ - "boolean" - ] - }, - { - "description": "Any JSON string", - "type": "string", - "enum": [ - "string" - ] - }, - { - "description": "float4", - "type": "string", - "enum": [ - "float32" - ] - }, - { - "description": "float8", - "type": "string", - "enum": [ - "float64" - ] - }, - { - "description": "int2", - "type": "string", - "enum": [ - "int16" - ] - }, - { - "description": "int4", - "type": "string", - "enum": [ - "int32" - ] - }, - { - "description": "int8 as integer", - "type": "string", - "enum": [ - "int64" - ] - }, - { - "description": "int8 as string", - "type": "string", - "enum": [ - "int64AsString" - ] - }, - { - "description": "numeric", - "type": "string", - "enum": [ - "bigDecimal" - ] - }, - { - "description": "numeric as string", - "type": "string", - "enum": [ - "bigDecimalAsString" - ] - }, - { - "description": "timestamp", - "type": "string", - "enum": [ - "timestamp" - ] - }, - { - "description": "timestamp with timezone", - "type": "string", - "enum": [ - "timestamptz" - ] - }, - { - "description": "time", - "type": "string", - "enum": [ - "time" - ] - }, - { - "description": "time with timezone", - "type": "string", - "enum": [ - "timetz" - ] - }, - { - "description": "date", - "type": "string", - "enum": [ - "date" - ] - }, - { - "description": "uuid", - "type": "string", - "enum": [ - "uUID" - ] - }, - { - "description": "geography", - "type": "string", - "enum": [ - "geography" - ] - }, - { - "description": "geometry", - "type": "string", - "enum": [ - "geometry" - ] - }, - { - "description": "Any JSON number", - "type": "string", - "enum": [ - "number" - ] - }, - { - "description": "Any JSON number, with no decimal part", - "type": "string", - "enum": [ - "integer" - ] - }, - { - "description": "An arbitrary json.", - "type": "string", - "enum": [ - "json" - ] - }, - { - "description": "One of the specified string values", - "type": "object", - "required": [ - "enum" - ], - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - ] - }, - "CompositeTypes": { - "description": "Map of all known composite types.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/CompositeType" - } - }, - "CompositeType": { - "description": "Information about a composite type. These are very similar to tables, but with the crucial difference that composite types do not support constraints (such as NOT NULL).", - "type": "object", - "required": [ - "fields", - "schemaName", - "typeName" - ], - "properties": { - "typeName": { - "type": "string" - }, - "schemaName": { - "type": "string" - }, - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/FieldInfo" - } - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "FieldInfo": { - "description": "Information about a composite type field.", - "type": "object", - "required": [ - "fieldName", - "type" - ], - "properties": { - "fieldName": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeOperations": { - "description": "Metadata information of Native Operations.", - "type": "object", - "required": [ - "mutations", - "queries" - ], - "properties": { - "queries": { - "description": "Native Queries.", - "allOf": [ - { - "$ref": "#/definitions/NativeQueries" - } - ] - }, - "mutations": { - "description": "Native Mutations.", - "allOf": [ - { - "$ref": "#/definitions/NativeMutations" - } - ] - } - } - }, - "NativeQueries": { - "description": "Metadata information of Native Queries.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/NativeQueryInfo" - } - }, - "NativeQueryInfo": { - "description": "Information about a Native Operation", - "type": "object", - "required": [ - "columns", - "sql" - ], - "properties": { - "sql": { - "description": "SQL expression to use for the Native Operation. We can interpolate values using `{{variable_name}}` syntax, such as `SELECT * FROM authors WHERE name = {{author_name}}`", - "allOf": [ - { - "$ref": "#/definitions/NativeQuerySql" - } - ] - }, - "columns": { - "description": "Columns returned by the Native Operation", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ReadOnlyColumnInfo" - } - }, - "arguments": { - "description": "Names and types of arguments that can be passed to this Native Operation", - "default": {}, - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ReadOnlyColumnInfo" - } - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeQuerySql": { - "description": "Native Operation SQL location.", - "anyOf": [ - { - "description": "Refer to an external Native Operation SQL file.", - "type": "object", - "required": [ - "file" - ], - "properties": { - "file": { - "description": "Relative path to a sql file.", - "type": "string" - } - } - }, - { - "description": "Inline Native Operation SQL string.", - "type": "object", - "required": [ - "inline" - ], - "properties": { - "inline": { - "description": "An inline Native Operation SQL string.", - "allOf": [ - { - "$ref": "#/definitions/InlineNativeQuerySql" - } - ] - } - } - }, - { - "$ref": "#/definitions/InlineNativeQuerySql" - } - ] - }, - "InlineNativeQuerySql": { - "type": "string" - }, - "ReadOnlyColumnInfo": { - "description": "Information about a native query column.", - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "nullable": { - "default": "nullable", - "allOf": [ - { - "$ref": "#/definitions/Nullable" - } - ] - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeMutations": { - "description": "Metadata information of Native Mutations.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/NativeQueryInfo" - } - }, - "IntrospectionOptions": { - "description": "Options which only influence how the configuration is updated.", - "type": "object", - "properties": { - "excludedSchemas": { - "description": "Schemas which are excluded from introspection. The default setting will exclude the internal schemas of Postgres, Citus, Cockroach, and the PostGIS extension.", - "default": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal", - "_timescaledb_catalog", - "_timescaledb_functions", - "_timescaledb_internal", - "_timescaledb_cache", - "_timescaledb_config", - "timescaledb_experimental", - "timescaledb_information", - "_timescaledb_debug" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "unqualifiedSchemasForTables": { - "description": "The names of Tables and Views in these schemas will be returned unqualified. The default setting will set the `public` schema as unqualified.", - "default": [ - "public" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "unqualifiedSchemasForTypesAndProcedures": { - "description": "The types and procedures in these schemas will be returned unqualified.", - "default": [ - "public", - "pg_catalog", - "tiger" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "comparisonOperatorMapping": { - "description": "The mapping of comparison operator names to apply when updating the configuration", - "default": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/ComparisonOperatorMapping" - } - }, - "introspectPrefixFunctionComparisonOperators": { - "description": "Which prefix functions (i.e., non-infix operators) to generate introspection metadata for.\n\nThis list will accept any boolean-returning function taking two concrete scalar types as arguments.\n\nThe default includes comparisons for various build-in types as well as those of PostGIS.", - "default": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "typeRepresentations": { - "description": "The type representations to pick for base scalar types.", - "default": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - }, - "allOf": [ - { - "$ref": "#/definitions/TypeRepresentations" - } - ] - } - } - }, - "ComparisonOperatorMapping": { - "description": "Define the names that comparison operators will be exposed as by the automatic introspection.", - "type": "object", - "required": [ - "exposedName", - "operatorKind", - "operatorName" - ], - "properties": { - "operatorName": { - "description": "The name of the operator as defined by the database", - "type": "string" - }, - "exposedName": { - "description": "The name the operator will appear under in the exposed API", - "type": "string" - }, - "operatorKind": { - "description": "Equal, In or Custom.", - "allOf": [ - { - "$ref": "#/definitions/OperatorKind" - } - ] - } - } - }, - "TypeRepresentations": { - "description": "The type representations that guide introspection.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TypeRepresentation" - } - }, - "MutationsVersion": { - "description": "Which version of the generated mutations will be included in the schema", - "type": "string", - "enum": [ - "v1", - "v2" - ] - } - } -} diff --git a/hasura/industry/telco/support/connector/vector_search_service/.hasura-connector/Dockerfile b/hasura/industry/telco/support/connector/vector_search_service/.hasura-connector/Dockerfile index 1e569140..7f26191d 100644 --- a/hasura/industry/telco/support/connector/vector_search_service/.hasura-connector/Dockerfile +++ b/hasura/industry/telco/support/connector/vector_search_service/.hasura-connector/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/hasura/ndc-nodejs-lambda:v1.13.0 +FROM ghcr.io/hasura/ndc-nodejs-lambda:v1.16.0 COPY package-lock.json package.json /functions/ diff --git a/hasura/industry/telco/support/connector/vector_search_service/.hasura-connector/connector-metadata.yaml b/hasura/industry/telco/support/connector/vector_search_service/.hasura-connector/connector-metadata.yaml index 5c4da026..78a2c88e 100644 --- a/hasura/industry/telco/support/connector/vector_search_service/.hasura-connector/connector-metadata.yaml +++ b/hasura/industry/telco/support/connector/vector_search_service/.hasura-connector/connector-metadata.yaml @@ -1,10 +1,12 @@ +version: v2 +ndcSpecGeneration: v0.2 packagingDefinition: type: ManagedDockerBuild supportedEnvironmentVariables: [] commands: upgradeConfiguration: type: Dockerized - dockerImage: ghcr.io/hasura/ndc-nodejs-lambda:v1.13.0 + dockerImage: ghcr.io/hasura/ndc-nodejs-lambda:v1.16.0 commandArgs: - /scripts/upgrade.sh dockerComposeWatch: @@ -30,7 +32,7 @@ nativeToolchainDefinition: upgradeConfiguration: type: ShellScript bash: | - ./upgrade-connector.sh "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.13.0" + ./upgrade-connector.sh "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.16.0" powershell: | - & ./upgrade-connector.ps1 "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.13.0" + & ./upgrade-connector.ps1 "$env:HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH" "1.16.0" documentationPage: https://hasura.info/nodejs-getting-started diff --git a/hasura/industry/telco/support/connector/vector_search_service/compose.yaml b/hasura/industry/telco/support/connector/vector_search_service/compose.yaml index 3f437bc4..3e9bbb1e 100644 --- a/hasura/industry/telco/support/connector/vector_search_service/compose.yaml +++ b/hasura/industry/telco/support/connector/vector_search_service/compose.yaml @@ -11,4 +11,4 @@ services: extra_hosts: - local.hasura.dev:host-gateway ports: - - 6633:8080 + - 6143:8080 diff --git a/hasura/industry/telco/support/connector/vector_search_service/connector.yaml b/hasura/industry/telco/support/connector/vector_search_service/connector.yaml index 8d3e19ee..10e2c5ef 100644 --- a/hasura/industry/telco/support/connector/vector_search_service/connector.yaml +++ b/hasura/industry/telco/support/connector/vector_search_service/connector.yaml @@ -3,7 +3,7 @@ version: v2 definition: name: vector_search_service subgraph: support - source: hasura/nodejs:v1.13.0 + source: hasura/nodejs:v1.16.0 context: . envMapping: HASURA_CONNECTOR_PORT: diff --git a/hasura/industry/telco/support/connector/vector_search_service/functions.ts b/hasura/industry/telco/support/connector/vector_search_service/functions.ts index 37e24964..c373bdf6 100644 --- a/hasura/industry/telco/support/connector/vector_search_service/functions.ts +++ b/hasura/industry/telco/support/connector/vector_search_service/functions.ts @@ -85,4 +85,4 @@ export async function generateDocumentEmbeddings( } return results; -} +} \ No newline at end of file diff --git a/hasura/industry/telco/support/connector/vector_search_service/package-lock.json b/hasura/industry/telco/support/connector/vector_search_service/package-lock.json index a404acbf..48465fcd 100644 --- a/hasura/industry/telco/support/connector/vector_search_service/package-lock.json +++ b/hasura/industry/telco/support/connector/vector_search_service/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@hasura/ndc-lambda-sdk": "1.13.0", + "@hasura/ndc-lambda-sdk": "1.16.0", "openai": "^4.90.0" }, "devDependencies": { @@ -27,6 +27,15 @@ "node": ">=12" } }, + "node_modules/@fastify/accept-negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@fastify/accept-negotiator/-/accept-negotiator-1.1.0.tgz", + "integrity": "sha512-OIHZrb2ImZ7XG85HXOONLcJWGosv7sIvM2ifAPQVhg9Lv7qdmMBNVaai4QTdyuaqbKM5eO6sLSQOYI7wEQeCJQ==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, "node_modules/@fastify/ajv-compiler": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/@fastify/ajv-compiler/-/ajv-compiler-3.6.0.tgz", @@ -38,6 +47,22 @@ "fast-uri": "^2.0.0" } }, + "node_modules/@fastify/compress": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/@fastify/compress/-/compress-7.0.3.tgz", + "integrity": "sha512-xa9fo5/DgK1s0bkS6xrYgNn8HmofO5tJvbCDk8QuXshSgLd2cFZANv1ox/Qv7zswS7JroHwTlCVv/XGTVO98tg==", + "license": "MIT", + "dependencies": { + "@fastify/accept-negotiator": "^1.1.0", + "fastify-plugin": "^4.5.0", + "mime-db": "^1.52.0", + "minipass": "^7.0.2", + "peek-stream": "^1.1.3", + "pump": "^3.0.0", + "pumpify": "^2.0.1", + "readable-stream": "^4.5.2" + } + }, "node_modules/@fastify/error": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/@fastify/error/-/error-3.4.1.tgz", @@ -63,9 +88,9 @@ } }, "node_modules/@grpc/grpc-js": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.2.tgz", - "integrity": "sha512-nnR5nmL6lxF8YBqb6gWvEgLdLh/Fn+kvAdX5hUOnt48sNSb0riz/93ASd2E5gvanPA41X6Yp25bIfGRp1SMb2g==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.4.tgz", + "integrity": "sha512-GsFaMXCkMqkKIvwCQjCrwH+GHbPKBjhwo/8ZuUkWHqbI73Kky9I+pQltrlT0+MWpedCoosda53lgjYfyEPgxBg==", "license": "Apache-2.0", "dependencies": { "@grpc/proto-loader": "^0.7.13", @@ -76,9 +101,9 @@ } }, "node_modules/@grpc/proto-loader": { - "version": "0.7.13", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.13.tgz", - "integrity": "sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw==", + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz", + "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==", "license": "Apache-2.0", "dependencies": { "lodash.camelcase": "^4.3.0", @@ -94,12 +119,12 @@ } }, "node_modules/@hasura/ndc-lambda-sdk": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/@hasura/ndc-lambda-sdk/-/ndc-lambda-sdk-1.13.0.tgz", - "integrity": "sha512-4hPM9YS50FDa8OD3mUoNgJ1TpbgMpvwZRxE2vYE8ec01lCVEovRbLH2bBNtKe9DAejJe+SXjik4PIQi9JcwNtg==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@hasura/ndc-lambda-sdk/-/ndc-lambda-sdk-1.16.0.tgz", + "integrity": "sha512-EbyTNO5IVfRRpUCmjFy7Plw4X46cBZ+9Ay5FeBenuQDnTvGfx2iW/YrYeVc2hdrbyBlhDHYnVe80/RnNwDIVDg==", "license": "Apache-2.0", "dependencies": { - "@hasura/ndc-sdk-typescript": "^7.0.0", + "@hasura/ndc-sdk-typescript": "^8.2.0", "@hasura/ts-node-dev": "^2.1.0", "@tsconfig/node20": "^20.1.4", "commander": "^11.1.0", @@ -107,18 +132,19 @@ "p-limit": "^3.1.0", "ts-api-utils": "^2.1.0", "ts-node": "^10.9.2", - "typescript": "^5.8.2" + "typescript": "^5.8.3" }, "bin": { "ndc-lambda-sdk": "bin/index.js" } }, "node_modules/@hasura/ndc-sdk-typescript": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-7.0.0.tgz", - "integrity": "sha512-y2ftrTQwtNZz9DmQXla/R/PDTgsSBxdA97uyq5zsAaBT9OjL9rAkRkXjkJdBC4GOXU+AsqSnsrDBn5pFvzzbxw==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-8.2.0.tgz", + "integrity": "sha512-Y1jdhBvqhFoc3CcUAGPPX2LuEiviYxwnR+ieX2QPvLcoTmbR6l60QGlbq30BWxYbs7YQ1iZ+qkLbFzi7Fd6cqg==", "license": "Apache-2.0", "dependencies": { + "@fastify/compress": "^7.0.3", "@json-schema-tools/meta-schema": "^1.7.0", "@opentelemetry/api": "^1.8.0", "@opentelemetry/exporter-metrics-otlp-grpc": "^0.53.0", @@ -134,7 +160,8 @@ "commander": "^11.0.0", "fastify": "^4.23.2", "pino-pretty": "^10.2.3", - "prom-client": "^15.1.2" + "prom-client": "^15.1.2", + "semver": "^7.6.3" } }, "node_modules/@hasura/ts-node-dev": { @@ -171,6 +198,27 @@ } } }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -198,9 +246,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", + "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { @@ -1097,9 +1145,9 @@ } }, "node_modules/@opentelemetry/instrumentation-fetch/node_modules/import-in-the-middle": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.13.1.tgz", - "integrity": "sha512-k2V9wNm9B+ysuelDTHjI9d5KPc4l8zAZTGqj+pcynvWkypZd857ryzN8jNC7Pg2YZXNMJcHRPpaDyCBbNyVRpA==", + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.14.2.tgz", + "integrity": "sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==", "license": "Apache-2.0", "dependencies": { "acorn": "^8.14.0", @@ -1168,9 +1216,9 @@ } }, "node_modules/@opentelemetry/instrumentation-http/node_modules/import-in-the-middle": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.13.1.tgz", - "integrity": "sha512-k2V9wNm9B+ysuelDTHjI9d5KPc4l8zAZTGqj+pcynvWkypZd857ryzN8jNC7Pg2YZXNMJcHRPpaDyCBbNyVRpA==", + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.14.2.tgz", + "integrity": "sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==", "license": "Apache-2.0", "dependencies": { "acorn": "^8.14.0", @@ -1834,9 +1882,9 @@ } }, "node_modules/@opentelemetry/semantic-conventions": { - "version": "1.30.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.30.0.tgz", - "integrity": "sha512-4VlGgo32k2EQ2wcCY3vEU28A0O13aOtHz3Xt2/2U5FAh9EfhD6t6DqL5Z6yAnRCntbTFDU4YfbpyzSlHNWycPw==", + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.36.0.tgz", + "integrity": "sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==", "license": "Apache-2.0", "engines": { "node": ">=14" @@ -1931,18 +1979,18 @@ "license": "MIT" }, "node_modules/@tsconfig/node20": { - "version": "20.1.5", - "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.5.tgz", - "integrity": "sha512-Vm8e3WxDTqMGPU4GATF9keQAIy1Drd7bPwlgzKJnZtoOsTm1tduUTbDjg0W5qERvGuxPI2h9RbMufH0YdfBylA==", + "version": "20.1.6", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.6.tgz", + "integrity": "sha512-sz+Hqx9zwZDpZIV871WSbUzSqNIsXzghZydypnfgzPKLltVJfkINfUeTct31n/tTSa9ZE1ZOfKdRre1uHHquYQ==", "license": "MIT" }, "node_modules/@types/node": { - "version": "22.13.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.14.tgz", - "integrity": "sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==", + "version": "24.0.14", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.14.tgz", + "integrity": "sha512-4zXMWD91vBLGRtHK3YbIoFMia+1nqEz72coM42C5ETjnNCa/heoj7NT1G67iAfOqMmcfhuCZ4uNpyz8EjlAejw==", "license": "MIT", "dependencies": { - "undici-types": "~6.20.0" + "undici-types": "~7.8.0" } }, "node_modules/@types/node-fetch": { @@ -1991,9 +2039,9 @@ "license": "MIT" }, "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -2150,12 +2198,6 @@ "fastq": "^1.17.1" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -2194,15 +2236,6 @@ "integrity": "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==", "license": "MIT" }, - "node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/braces": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", @@ -2427,6 +2460,12 @@ "node": ">= 0.6" } }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" + }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", @@ -2457,9 +2496,9 @@ } }, "node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -2491,9 +2530,9 @@ } }, "node_modules/dotenv": { - "version": "16.4.7", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", - "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", "dev": true, "license": "BSD-2-Clause", "engines": { @@ -2542,6 +2581,48 @@ "node": ">= 0.4" } }, + "node_modules/duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "node_modules/duplexify/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/duplexify/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/duplexify/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/dynamic-dedupe": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz", @@ -2564,9 +2645,9 @@ "license": "MIT" }, "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", "license": "MIT", "dependencies": { "once": "^1.4.0" @@ -2727,9 +2808,9 @@ "license": "MIT" }, "node_modules/fastify": { - "version": "4.29.0", - "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.29.0.tgz", - "integrity": "sha512-MaaUHUGcCgC8fXQDsDtioaCcag1fmPJ9j64vAKunqZF4aSub040ZGi/ag8NGE2714yREPOKZuHCfpPzuUD3UQQ==", + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.29.1.tgz", + "integrity": "sha512-m2kMNHIG92tSNWv+Z3UeTR9AWLLuo7KctC7mlFPtMEVrfjIhmQhkQnT9v15qA/BfVq3vvj134Y0jl9SBje3jXQ==", "funding": [ { "type": "github", @@ -2760,6 +2841,12 @@ "toad-cache": "^3.3.0" } }, + "node_modules/fastify-plugin": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/fastify-plugin/-/fastify-plugin-4.5.1.tgz", + "integrity": "sha512-stRHYGeuqpEZTL1Ef0Ovr2ltazUT9g844X5z/zEBFLG8RYlpDiOCIG+ATvYEp+/zmc7sN29mcIMp8gvYplYPIQ==", + "license": "MIT" + }, "node_modules/fastq": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", @@ -2812,13 +2899,14 @@ } }, "node_modules/form-data": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", - "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", "mime-types": "^2.1.12" }, "engines": { @@ -2919,14 +3007,14 @@ } }, "node_modules/glob": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", - "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", "license": "ISC", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^2.0.0" @@ -3047,6 +3135,12 @@ "module-details-from-path": "^1.0.3" } }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", @@ -3122,6 +3216,12 @@ "node": ">=0.12.0" } }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" + }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -3129,9 +3229,9 @@ "license": "ISC" }, "node_modules/jackspeak": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", - "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", + "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" @@ -3191,9 +3291,9 @@ "license": "MIT" }, "node_modules/long": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/long/-/long-5.3.1.tgz", - "integrity": "sha512-ka87Jz3gcx/I7Hal94xaN2tZEOPoUOEVftkQqZx2EeQRN7LGdfLlI3FvZ+7WDplm+vK2Urx9ULrvSowtdCieng==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", "license": "Apache-2.0" }, "node_modules/lru-cache": { @@ -3220,9 +3320,10 @@ } }, "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -3238,13 +3339,21 @@ "node": ">= 0.6" } }, + "node_modules/mime-types/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "@isaacs/brace-expansion": "^5.0.0" }, "engines": { "node": "20 || >=22" @@ -3287,9 +3396,9 @@ } }, "node_modules/module-details-from-path": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.3.tgz", - "integrity": "sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.4.tgz", + "integrity": "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==", "license": "MIT" }, "node_modules/ms": { @@ -3302,6 +3411,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", "funding": [ { "type": "github", @@ -3363,9 +3473,9 @@ } }, "node_modules/openai": { - "version": "4.90.0", - "resolved": "https://registry.npmjs.org/openai/-/openai-4.90.0.tgz", - "integrity": "sha512-YCuHMMycqtCg1B8G9ezkOF0j8UnBWD3Al/zYaelpuXwU1yhCEv+Y4n9G20MnyGy6cH4GsFwOMrgstQ+bgG1PtA==", + "version": "4.104.0", + "resolved": "https://registry.npmjs.org/openai/-/openai-4.104.0.tgz", + "integrity": "sha512-p99EFNsA/yX6UhVO93f5kJsDRLAg+CTA2RBqdHK4RtK8u5IJw32Hyb2dTGKbnnFmnuoBv5r7Z2CURI9sGZpSuA==", "dependencies": { "@types/node": "^18.11.18", "@types/node-fetch": "^2.6.4", @@ -3392,9 +3502,9 @@ } }, "node_modules/openai/node_modules/@types/node": { - "version": "18.19.84", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.84.tgz", - "integrity": "sha512-ACYy2HGcZPHxEeWTqowTF7dhXN+JU1o7Gr4b41klnn6pj2LD6rsiGqSZojMdk1Jh2ys3m76ap+ae1vvE4+5+vg==", + "version": "18.19.120", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.120.tgz", + "integrity": "sha512-WtCGHFXnVI8WHLxDAt5TbnCM4eSE+nI0QN2NJtwzcgMhht2eNz6V9evJrk+lwC8bCY8OWV5Ym8Jz7ZEyGnKnMA==", "dependencies": { "undici-types": "~5.26.4" } @@ -3456,6 +3566,17 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/peek-stream": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/peek-stream/-/peek-stream-1.1.3.tgz", + "integrity": "sha512-FhJ+YbOSBb9/rIl2ZeE/QHEsWn7PqNYt8ARAY3kIgNGOk13g9FGyIY6JIl/xB/3TFRVoTv5as0l11weORrTekA==", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "duplexify": "^3.5.0", + "through2": "^2.0.3" + } + }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -3469,9 +3590,9 @@ } }, "node_modules/pino": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-9.6.0.tgz", - "integrity": "sha512-i85pKRCt4qMjZ1+L7sy2Ag4t1atFcdbEt76+7iRJn1g2BvsnRMGu9p8pivl9fs63M2kF/A0OacFZhTub+m/qMg==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-9.7.0.tgz", + "integrity": "sha512-vnMCM6xZTb1WDmLvtG2lE/2p+t9hDEIvTWJsu6FejkE62vB7gDhvzrpFR4Cw2to+9JNQxVnkAKVPA1KPB98vWg==", "license": "MIT", "dependencies": { "atomic-sleep": "^1.0.0", @@ -3479,7 +3600,7 @@ "on-exit-leak-free": "^2.1.0", "pino-abstract-transport": "^2.0.0", "pino-std-serializers": "^7.0.0", - "process-warning": "^4.0.0", + "process-warning": "^5.0.0", "quick-format-unescaped": "^4.0.3", "real-require": "^0.2.0", "safe-stable-stringify": "^2.3.1", @@ -3550,9 +3671,9 @@ "license": "MIT" }, "node_modules/pino/node_modules/process-warning": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-4.0.1.tgz", - "integrity": "sha512-3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz", + "integrity": "sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==", "funding": [ { "type": "github", @@ -3574,6 +3695,12 @@ "node": ">= 0.6.0" } }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" + }, "node_modules/process-warning": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", @@ -3594,9 +3721,9 @@ } }, "node_modules/protobufjs": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz", - "integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==", + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.3.tgz", + "integrity": "sha512-sildjKwVqOI2kmFDiXQ6aEB0fjYTafpEvIBs8tOR8qI4spuL9OPROLVu2qZqi/xgCfsHIwVqlaF8JBjWFHnKbw==", "hasInstallScript": true, "license": "BSD-3-Clause", "dependencies": { @@ -3631,15 +3758,52 @@ } }, "node_modules/pump": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", - "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, + "node_modules/pumpify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-2.0.1.tgz", + "integrity": "sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==", + "license": "MIT", + "dependencies": { + "duplexify": "^4.1.1", + "inherits": "^2.0.3", + "pump": "^3.0.0" + } + }, + "node_modules/pumpify/node_modules/duplexify": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.2" + } + }, + "node_modules/pumpify/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/quick-format-unescaped": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", @@ -3824,9 +3988,9 @@ "license": "BSD-3-Clause" }, "node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -3917,6 +4081,12 @@ "node": ">= 10.x" } }, + "node_modules/stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", + "license": "MIT" + }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -4073,6 +4243,46 @@ "real-require": "^0.2.0" } }, + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "license": "MIT", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/through2/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/through2/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/through2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -4185,9 +4395,9 @@ } }, "node_modules/typescript": { - "version": "5.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", - "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", @@ -4198,9 +4408,15 @@ } }, "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "license": "MIT" }, "node_modules/v8-compile-cache-lib": { diff --git a/hasura/industry/telco/support/connector/vector_search_service/package.json b/hasura/industry/telco/support/connector/vector_search_service/package.json index 4f3b6b3c..af2669e0 100644 --- a/hasura/industry/telco/support/connector/vector_search_service/package.json +++ b/hasura/industry/telco/support/connector/vector_search_service/package.json @@ -8,7 +8,7 @@ "watch": "ndc-lambda-sdk host -f functions.ts --watch serve --configuration ./ --pretty-print-logs" }, "dependencies": { - "@hasura/ndc-lambda-sdk": "1.13.0", + "@hasura/ndc-lambda-sdk": "1.16.0", "openai": "^4.90.0" }, "devDependencies": { diff --git a/hasura/industry/telco/support/metadata/DocumentEmbeddings.hml b/hasura/industry/telco/support/metadata/DocumentEmbeddings.hml deleted file mode 100644 index 60e86df8..00000000 --- a/hasura/industry/telco/support/metadata/DocumentEmbeddings.hml +++ /dev/null @@ -1,152 +0,0 @@ ---- -kind: ObjectType -version: v1 -definition: - name: DocumentEmbeddings - fields: - - name: documentUuid - type: Uuid! - - name: embeddings - type: Vector - graphql: - typeName: support_DocumentEmbeddings - inputTypeName: support_DocumentEmbeddingsInput - dataConnectorTypeMapping: - - dataConnectorName: vector - dataConnectorObjectType: document_embeddings - fieldMapping: - documentUuid: - column: - name: document_uuid - embeddings: - column: - name: embeddings - ---- -kind: TypePermissions -version: v1 -definition: - typeName: DocumentEmbeddings - permissions: - - role: admin - output: - allowedFields: - - documentUuid - - embeddings - ---- -kind: BooleanExpressionType -version: v1 -definition: - name: DocumentEmbeddingsBoolExp - operand: - object: - type: DocumentEmbeddings - comparableFields: - - fieldName: documentUuid - booleanExpressionType: UuidBoolExp - - fieldName: embeddings - booleanExpressionType: VectorBoolExp - comparableRelationships: - - relationshipName: document - logicalOperators: - enable: true - isNull: - enable: true - graphql: - typeName: support_DocumentEmbeddingsBoolExp - ---- -kind: AggregateExpression -version: v1 -definition: - name: DocumentEmbeddingsAggExp - operand: - object: - aggregatedType: DocumentEmbeddings - aggregatableFields: - - fieldName: documentUuid - aggregateExpression: UuidAggExp - - fieldName: embeddings - aggregateExpression: VectorAggExp - count: - enable: true - graphql: - selectTypeName: support_DocumentEmbeddingsAggExp - ---- -kind: OrderByExpression -version: v1 -definition: - name: DocumentEmbeddingsOrderByExp - operand: - object: - orderedType: DocumentEmbeddings - orderableFields: - - fieldName: documentUuid - orderByExpression: UuidOrderByExp - - fieldName: embeddings - orderByExpression: VectorOrderByExp - orderableRelationships: - - relationshipName: document - graphql: - expressionTypeName: support_DocumentEmbeddingsOrderByExp - ---- -kind: Model -version: v2 -definition: - name: DocumentEmbeddings - objectType: DocumentEmbeddings - source: - dataConnectorName: vector - collection: document_embeddings - filterExpressionType: DocumentEmbeddingsBoolExp - aggregateExpression: DocumentEmbeddingsAggExp - orderByExpression: DocumentEmbeddingsOrderByExp - graphql: - selectMany: - queryRootField: documentEmbeddings - subscription: - rootField: documentEmbeddings - selectUniques: - - queryRootField: documentEmbeddingsByDocumentUuid - uniqueIdentifier: - - documentUuid - subscription: - rootField: documentEmbeddingsByDocumentUuid - filterInputTypeName: support_DocumentEmbeddingsFilterInput - aggregate: - queryRootField: documentEmbeddingsAggregate - subscription: - rootField: documentEmbeddingsAggregate - ---- -kind: ModelPermissions -version: v1 -definition: - modelName: DocumentEmbeddings - permissions: - - role: admin - select: - filter: null - allowSubscriptions: true - ---- -kind: Relationship -version: v1 -definition: - name: document - sourceType: DocumentEmbeddings - target: - model: - name: Documents - relationshipType: Object - mapping: - - source: - fieldPath: - - fieldName: documentUuid - target: - modelField: - - fieldName: uuid - diff --git a/hasura/industry/telco/support/metadata/DocumentVectorSearch.hml b/hasura/industry/telco/support/metadata/DocumentVectorSearch.hml deleted file mode 100644 index 1158f163..00000000 --- a/hasura/industry/telco/support/metadata/DocumentVectorSearch.hml +++ /dev/null @@ -1,150 +0,0 @@ ---- -kind: ObjectType -version: v1 -definition: - name: DocumentVectorSearch - fields: - - name: distance - type: Float8 - - name: documentUuid - type: Uuid! - graphql: - typeName: support_DocumentVectorSearch - inputTypeName: support_DocumentVectorSearchInput - dataConnectorTypeMapping: - - dataConnectorName: vector - dataConnectorObjectType: document_vector_search - fieldMapping: - distance: - column: - name: distance - documentUuid: - column: - name: document_uuid - ---- -kind: TypePermissions -version: v1 -definition: - typeName: DocumentVectorSearch - permissions: - - role: admin - output: - allowedFields: - - distance - - documentUuid - ---- -kind: BooleanExpressionType -version: v1 -definition: - name: DocumentVectorSearchBoolExp - operand: - object: - type: DocumentVectorSearch - comparableFields: - - fieldName: distance - booleanExpressionType: Float8BoolExp - - fieldName: documentUuid - booleanExpressionType: UuidBoolExp - comparableRelationships: [] - logicalOperators: - enable: true - isNull: - enable: true - graphql: - typeName: support_DocumentVectorSearchBoolExp - ---- -kind: AggregateExpression -version: v1 -definition: - name: DocumentVectorSearchAggExp - operand: - object: - aggregatedType: DocumentVectorSearch - aggregatableFields: - - fieldName: distance - aggregateExpression: Float8AggExp - - fieldName: documentUuid - aggregateExpression: UuidAggExp - count: - enable: true - graphql: - selectTypeName: support_DocumentVectorSearchAggExp - ---- -kind: OrderByExpression -version: v1 -definition: - name: DocumentVectorSearchOrderByExp - operand: - object: - orderedType: DocumentVectorSearch - orderableFields: - - fieldName: distance - orderByExpression: Float8OrderByExp - - fieldName: documentUuid - orderByExpression: UuidOrderByExp - orderableRelationships: [] - graphql: - expressionTypeName: support_DocumentVectorSearchOrderByExp - ---- -kind: Model -version: v2 -definition: - name: DocumentVectorSearch - objectType: DocumentVectorSearch - arguments: - - name: queryVector - type: Vector! - source: - dataConnectorName: vector - collection: document_vector_search - argumentMapping: - queryVector: query_vector - filterExpressionType: DocumentVectorSearchBoolExp - aggregateExpression: DocumentVectorSearchAggExp - orderByExpression: DocumentVectorSearchOrderByExp - graphql: - selectMany: - queryRootField: documentVectorSearch - subscription: - rootField: documentVectorSearch - selectUniques: [] - argumentsInputType: support_DocumentVectorSearchArguments - filterInputTypeName: support_DocumentVectorSearchFilterInput - aggregate: - queryRootField: documentVectorSearchAggregate - subscription: - rootField: documentVectorSearchAggregate - ---- -kind: ModelPermissions -version: v1 -definition: - modelName: DocumentVectorSearch - permissions: - - role: admin - select: - filter: null - allowSubscriptions: true - ---- -kind: Relationship -version: v1 -definition: - name: document - sourceType: DocumentVectorSearch - target: - model: - name: Documents - relationshipType: Object - mapping: - - source: - fieldPath: - - fieldName: documentUuid - target: - modelField: - - fieldName: uuid \ No newline at end of file diff --git a/hasura/industry/telco/support/metadata/GenerateDocumentEmbeddings.hml b/hasura/industry/telco/support/metadata/GenerateDocumentEmbeddings.hml index fe54233d..3bdaf2b4 100644 --- a/hasura/industry/telco/support/metadata/GenerateDocumentEmbeddings.hml +++ b/hasura/industry/telco/support/metadata/GenerateDocumentEmbeddings.hml @@ -148,3 +148,20 @@ definition: - role: admin allowExecution: true +--- +kind: Relationship +version: v1 +definition: + name: document + sourceType: PublicDocumentEmbeddings + target: + model: + name: PublicDocuments + relationshipType: Object + mapping: + - source: + fieldPath: + - fieldName: documentUuid + target: + modelField: + - fieldName: uuid \ No newline at end of file diff --git a/hasura/industry/telco/support/metadata/GenerateEmbedding.hml b/hasura/industry/telco/support/metadata/GenerateEmbedding.hml index c0b01cc6..c3081d20 100644 --- a/hasura/industry/telco/support/metadata/GenerateEmbedding.hml +++ b/hasura/industry/telco/support/metadata/GenerateEmbedding.hml @@ -6,7 +6,7 @@ definition: description: Interface for text embedding response fields: - name: embedding - type: "Vector!" + type: "[Float!]!" - name: text type: String! graphql: @@ -37,7 +37,7 @@ definition: arguments: - name: text type: String! - description: The text to generate an embedding for + description: String input for converting into embedding source: dataConnectorName: vector_search_service dataConnectorCommand: @@ -45,7 +45,7 @@ definition: graphql: rootFieldName: generateEmbedding rootFieldKind: Query - description: Generates a vector embedding for a given text string. + description: Generate embeddings for a collection of documents --- kind: CommandPermissions @@ -56,21 +56,3 @@ definition: - role: admin allowExecution: true -# --- -# kind: Relationship -# version: v1 -# definition: -# name: document -# sourceType: TextEmbeddingResponse -# target: -# model: -# name: DocumentVectorSearch -# relationshipType: Array -# mapping: -# - source: -# fieldPath: -# - fieldName: embedding -# target: -# argument: -# argumentName: queryVector - diff --git a/hasura/industry/telco/support/metadata/PublicDocumentEmbeddings.hml b/hasura/industry/telco/support/metadata/PublicDocumentEmbeddings.hml new file mode 100644 index 00000000..662a4fd6 --- /dev/null +++ b/hasura/industry/telco/support/metadata/PublicDocumentEmbeddings.hml @@ -0,0 +1,133 @@ +--- +kind: ObjectType +version: v1 +definition: + name: PublicDocumentEmbeddings + description: "Object type for public.document_embeddings. Description: null" + fields: + - name: documentUuid + type: String_1! + - name: embeddings + type: Json + graphql: + typeName: support_PublicDocumentEmbeddings + inputTypeName: support_PublicDocumentEmbeddingsInput + dataConnectorTypeMapping: + - dataConnectorName: vector + dataConnectorObjectType: public.document_embeddings + fieldMapping: + documentUuid: + column: + name: document_uuid + embeddings: + column: + name: embeddings + +--- +kind: TypePermissions +version: v1 +definition: + typeName: PublicDocumentEmbeddings + permissions: + - role: admin + output: + allowedFields: + - documentUuid + - embeddings + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: PublicDocumentEmbeddingsBoolExp + operand: + object: + type: PublicDocumentEmbeddings + comparableFields: + - fieldName: documentUuid + booleanExpressionType: UuidBoolExp + - fieldName: embeddings + booleanExpressionType: Vector1536BoolExp + comparableRelationships: [] + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: support_PublicDocumentEmbeddingsBoolExp + +--- +kind: AggregateExpression +version: v1 +definition: + name: PublicDocumentEmbeddingsAggExp + operand: + object: + aggregatedType: PublicDocumentEmbeddings + aggregatableFields: + - fieldName: documentUuid + aggregateExpression: UuidAggExp + - fieldName: embeddings + aggregateExpression: Vector1536AggExp + count: + enable: true + graphql: + selectTypeName: support_PublicDocumentEmbeddingsAggExp + +--- +kind: OrderByExpression +version: v1 +definition: + name: PublicDocumentEmbeddingsOrderByExp + operand: + object: + orderedType: PublicDocumentEmbeddings + orderableFields: + - fieldName: documentUuid + orderByExpression: String1OrderByExp + - fieldName: embeddings + orderByExpression: JsonOrderByExp + orderableRelationships: [] + graphql: + expressionTypeName: support_PublicDocumentEmbeddingsOrderByExp + +--- +kind: Model +version: v2 +definition: + name: PublicDocumentEmbeddings + objectType: PublicDocumentEmbeddings + source: + dataConnectorName: vector + collection: public.document_embeddings + filterExpressionType: PublicDocumentEmbeddingsBoolExp + aggregateExpression: PublicDocumentEmbeddingsAggExp + orderByExpression: PublicDocumentEmbeddingsOrderByExp + graphql: + selectMany: + queryRootField: publicDocumentEmbeddings + subscription: + rootField: publicDocumentEmbeddings + selectUniques: + - queryRootField: publicDocumentEmbeddingsByDocumentUuid + uniqueIdentifier: + - documentUuid + subscription: + rootField: publicDocumentEmbeddingsByDocumentUuid + filterInputTypeName: support_PublicDocumentEmbeddingsFilterInput + aggregate: + queryRootField: publicDocumentEmbeddingsAggregate + subscription: + rootField: publicDocumentEmbeddingsAggregate + +--- +kind: ModelPermissions +version: v1 +definition: + modelName: PublicDocumentEmbeddings + permissions: + - role: admin + select: + filter: null + allowSubscriptions: true + diff --git a/hasura/industry/telco/support/metadata/Documents.hml b/hasura/industry/telco/support/metadata/PublicDocuments.hml similarity index 58% rename from hasura/industry/telco/support/metadata/Documents.hml rename to hasura/industry/telco/support/metadata/PublicDocuments.hml index bf947790..c06dcb70 100644 --- a/hasura/industry/telco/support/metadata/Documents.hml +++ b/hasura/industry/telco/support/metadata/PublicDocuments.hml @@ -2,34 +2,35 @@ kind: ObjectType version: v1 definition: - name: Documents + name: PublicDocuments + description: "Object type for public.documents. Description: null" fields: - name: body - type: Text + type: String_1 - name: createdAt type: Timestamptz - name: language - type: Text + type: String_1 - name: rating - type: Int4 + type: Int32 - name: status - type: Text + type: String_1 - name: tags - type: Text + type: String_1 - name: title - type: Text + type: String_1 - name: updatedAt type: Timestamptz - name: uuid - type: Uuid! + type: String_1! - name: viewCount - type: Int4 + type: Int32 graphql: - typeName: support_Documents - inputTypeName: support_DocumentsInput + typeName: support_PublicDocuments + inputTypeName: support_PublicDocumentsInput dataConnectorTypeMapping: - dataConnectorName: vector - dataConnectorObjectType: documents + dataConnectorObjectType: public.documents fieldMapping: body: column: @@ -66,7 +67,7 @@ definition: kind: TypePermissions version: v1 definition: - typeName: Documents + typeName: PublicDocuments permissions: - role: admin output: @@ -81,32 +82,24 @@ definition: - updatedAt - uuid - viewCount - - role: customer - output: - allowedFields: - - body - - createdAt - - language - - tags - - title --- kind: BooleanExpressionType version: v1 definition: - name: DocumentsBoolExp + name: PublicDocumentsBoolExp operand: object: - type: Documents + type: PublicDocuments comparableFields: - fieldName: body booleanExpressionType: TextBoolExp - fieldName: createdAt - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: language booleanExpressionType: TextBoolExp - fieldName: rating - booleanExpressionType: Int4BoolExp + booleanExpressionType: IntegerBoolExp - fieldName: status booleanExpressionType: TextBoolExp - fieldName: tags @@ -114,37 +107,36 @@ definition: - fieldName: title booleanExpressionType: TextBoolExp - fieldName: updatedAt - booleanExpressionType: TimestamptzBoolExp + booleanExpressionType: TimestampWithTimeZoneBoolExp - fieldName: uuid booleanExpressionType: UuidBoolExp - fieldName: viewCount - booleanExpressionType: Int4BoolExp - comparableRelationships: - - relationshipName: documentEmbeddings + booleanExpressionType: IntegerBoolExp + comparableRelationships: [] logicalOperators: enable: true isNull: enable: true graphql: - typeName: support_DocumentsBoolExp + typeName: support_PublicDocumentsBoolExp --- kind: AggregateExpression version: v1 definition: - name: DocumentsAggExp + name: PublicDocumentsAggExp operand: object: - aggregatedType: Documents + aggregatedType: PublicDocuments aggregatableFields: - fieldName: body aggregateExpression: TextAggExp - fieldName: createdAt - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: language aggregateExpression: TextAggExp - fieldName: rating - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp - fieldName: status aggregateExpression: TextAggExp - fieldName: tags @@ -152,112 +144,86 @@ definition: - fieldName: title aggregateExpression: TextAggExp - fieldName: updatedAt - aggregateExpression: TimestamptzAggExp + aggregateExpression: TimestampWithTimeZoneAggExp - fieldName: uuid aggregateExpression: UuidAggExp - fieldName: viewCount - aggregateExpression: Int4AggExp + aggregateExpression: IntegerAggExp count: enable: true graphql: - selectTypeName: support_DocumentsAggExp + selectTypeName: support_PublicDocumentsAggExp --- kind: OrderByExpression version: v1 definition: - name: DocumentsOrderByExp + name: PublicDocumentsOrderByExp operand: object: - orderedType: Documents + orderedType: PublicDocuments orderableFields: - fieldName: body - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: createdAt orderByExpression: TimestamptzOrderByExp - fieldName: language - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: rating - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp - fieldName: status - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: tags - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: title - orderByExpression: TextOrderByExp + orderByExpression: String1OrderByExp - fieldName: updatedAt orderByExpression: TimestamptzOrderByExp - fieldName: uuid - orderByExpression: UuidOrderByExp + orderByExpression: String1OrderByExp - fieldName: viewCount - orderByExpression: Int4OrderByExp + orderByExpression: Int32OrderByExp orderableRelationships: [] graphql: - expressionTypeName: support_DocumentsOrderByExp + expressionTypeName: support_PublicDocumentsOrderByExp --- kind: Model version: v2 definition: - name: Documents - objectType: Documents + name: PublicDocuments + objectType: PublicDocuments source: dataConnectorName: vector - collection: documents - filterExpressionType: DocumentsBoolExp - aggregateExpression: DocumentsAggExp - orderByExpression: DocumentsOrderByExp + collection: public.documents + filterExpressionType: PublicDocumentsBoolExp + aggregateExpression: PublicDocumentsAggExp + orderByExpression: PublicDocumentsOrderByExp graphql: selectMany: - queryRootField: documents + queryRootField: publicDocuments subscription: - rootField: documents + rootField: publicDocuments selectUniques: - - queryRootField: documentsByUuid + - queryRootField: publicDocumentsByUuid uniqueIdentifier: - uuid subscription: - rootField: documentsByUuid - filterInputTypeName: support_DocumentsFilterInput + rootField: publicDocumentsByUuid + filterInputTypeName: support_PublicDocumentsFilterInput aggregate: - queryRootField: documentsAggregate + queryRootField: publicDocumentsAggregate subscription: - rootField: documentsAggregate + rootField: publicDocumentsAggregate --- kind: ModelPermissions version: v1 definition: - modelName: Documents + modelName: PublicDocuments permissions: - role: admin select: filter: null allowSubscriptions: true - - role: customer - select: - filter: null - allowSubscriptions: true - ---- -kind: Relationship -version: v1 -definition: - name: documentEmbeddings - sourceType: Documents - target: - model: - name: DocumentEmbeddings - relationshipType: Array - aggregate: - aggregateExpression: DocumentEmbeddingsAggExp - mapping: - - source: - fieldPath: - - fieldName: uuid - target: - modelField: - - fieldName: documentUuid - graphql: - aggregateFieldName: documentEmbeddingsAggregate diff --git a/hasura/industry/telco/support/metadata/UserProfiles.hml b/hasura/industry/telco/support/metadata/UserProfiles.hml index e996c22d..b5635363 100644 --- a/hasura/industry/telco/support/metadata/UserProfiles.hml +++ b/hasura/industry/telco/support/metadata/UserProfiles.hml @@ -69,7 +69,7 @@ definition: name: UserProfilesPreferencesCommunicationAppNotifications fields: - name: enabled - type: Bool + type: Boolean_1 - name: frequency type: String graphql: @@ -100,9 +100,9 @@ definition: - name: appNotifications type: UserProfilesPreferencesCommunicationAppNotifications - name: emailUpdates - type: Bool + type: Boolean_1 - name: smsNotifications - type: Bool + type: Boolean_1 graphql: typeName: support_UserProfilesPreferencesCommunication inputTypeName: support_UserProfilesPreferencesCommunicationInput @@ -130,9 +130,9 @@ definition: name: UserProfilesPreferencesPrivacySettings fields: - name: adPersonalization - type: Bool + type: Boolean_1 - name: shareDataForImprovements - type: Bool + type: Boolean_1 graphql: typeName: support_UserProfilesPreferencesPrivacySettings inputTypeName: support_UserProfilesPreferencesPrivacySettingsInput @@ -159,9 +159,9 @@ definition: name: UserProfilesPreferencesServicePreferencesFavoriteLocationsCoordinates fields: - name: lat - type: Double + type: Float64 - name: long - type: Double + type: Float64 graphql: typeName: support_UserProfilesPreferencesServicePreferencesFavoriteLocationsCoordinates inputTypeName: support_UserProfilesPreferencesServicePreferencesFavoriteLocationsCoordinatesInput @@ -217,7 +217,7 @@ definition: name: UserProfilesPreferencesServicePreferencesNetworkSettings fields: - name: dataSaverMode - type: Bool + type: Boolean_1 - name: preferredNetworkType type: String graphql: @@ -306,8 +306,12 @@ version: v1 definition: name: UserProfilesSupportHistory fields: + - name: category + type: String - name: date type: String + - name: description + type: String - name: issue type: String - name: resolutionNotes @@ -332,18 +336,13 @@ definition: - role: admin output: allowedFields: + - category - date + - description - issue - resolutionNotes - status - ticketId - - role: customer - output: - allowedFields: - - date - - issue - - status - - ticketId --- kind: ObjectType @@ -373,11 +372,6 @@ definition: allowedFields: - name - usage - - role: customer - output: - allowedFields: - - name - - usage --- kind: ObjectType @@ -407,11 +401,6 @@ definition: allowedFields: - internationalMinutes - totalMinutes - - role: customer - output: - allowedFields: - - internationalMinutes - - totalMinutes --- kind: ObjectType @@ -441,11 +430,6 @@ definition: allowedFields: - currentMonth - total - - role: customer - output: - allowedFields: - - currentMonth - - total --- kind: ObjectType @@ -478,12 +462,6 @@ definition: - appUsage - callStats - dataUsage - - role: customer - output: - allowedFields: - - appUsage - - callStats - - dataUsage --- kind: ObjectType @@ -562,13 +540,6 @@ definition: - preferences - supportHistory - usageStats - - role: customer - output: - allowedFields: - - id - - customerId - - supportHistory - - usageStats --- kind: BooleanExpressionType @@ -797,8 +768,12 @@ definition: object: type: UserProfilesSupportHistory comparableFields: + - fieldName: category + booleanExpressionType: StringBoolExp - fieldName: date booleanExpressionType: StringBoolExp + - fieldName: description + booleanExpressionType: StringBoolExp - fieldName: issue booleanExpressionType: StringBoolExp - fieldName: resolutionNotes @@ -1006,7 +981,7 @@ definition: orderedType: UserProfilesPreferencesCommunicationAppNotifications orderableFields: - fieldName: enabled - orderByExpression: BoolOrderByExp + orderByExpression: Boolean1OrderByExp - fieldName: frequency orderByExpression: StringOrderByExp orderableRelationships: [] @@ -1025,9 +1000,9 @@ definition: - fieldName: appNotifications orderByExpression: UserProfilesPreferencesCommunicationAppNotificationsOrderByExp - fieldName: emailUpdates - orderByExpression: BoolOrderByExp + orderByExpression: Boolean1OrderByExp - fieldName: smsNotifications - orderByExpression: BoolOrderByExp + orderByExpression: Boolean1OrderByExp orderableRelationships: [] graphql: expressionTypeName: support_UserProfilesPreferencesCommunicationOrderByExp @@ -1042,9 +1017,9 @@ definition: orderedType: UserProfilesPreferencesPrivacySettings orderableFields: - fieldName: adPersonalization - orderByExpression: BoolOrderByExp + orderByExpression: Boolean1OrderByExp - fieldName: shareDataForImprovements - orderByExpression: BoolOrderByExp + orderByExpression: Boolean1OrderByExp orderableRelationships: [] graphql: expressionTypeName: support_UserProfilesPreferencesPrivacySettingsOrderByExp @@ -1059,7 +1034,7 @@ definition: orderedType: UserProfilesPreferencesServicePreferencesNetworkSettings orderableFields: - fieldName: dataSaverMode - orderByExpression: BoolOrderByExp + orderByExpression: Boolean1OrderByExp - fieldName: preferredNetworkType orderByExpression: StringOrderByExp orderableRelationships: [] @@ -1219,13 +1194,4 @@ definition: select: filter: null allowSubscriptions: true - - role: customer - select: - filter: - fieldComparison: - field: customerId - operator: _eq - value: - sessionVariable: x-hasura-user-id - allowSubscriptions: true diff --git a/hasura/industry/telco/support/metadata/atlas-types.hml b/hasura/industry/telco/support/metadata/atlas-types.hml index b582f172..4dc92fe7 100644 --- a/hasura/industry/telco/support/metadata/atlas-types.hml +++ b/hasura/industry/telco/support/metadata/atlas-types.hml @@ -2,9 +2,9 @@ kind: ScalarType version: v1 definition: - name: ObjectId + name: String_1 graphql: - typeName: support_ObjectId + typeName: support_String1 --- kind: BooleanExpressionType @@ -13,16 +13,16 @@ definition: name: ObjectIdBoolExp operand: scalar: - type: ObjectId + type: String_1 comparisonOperators: - name: _eq - argumentType: ObjectId! + argumentType: String_1! - name: _in - argumentType: "[ObjectId!]!" + argumentType: "[String_1!]!" - name: _neq - argumentType: ObjectId! + argumentType: String_1! - name: _nin - argumentType: "[ObjectId!]!" + argumentType: "[String_1!]!" dataConnectorOperatorMapping: - dataConnectorName: atlas dataConnectorScalarType: ObjectId @@ -40,9 +40,9 @@ version: v1 definition: dataConnectorName: atlas dataConnectorScalarType: ObjectId - representation: ObjectId + representation: String_1 graphql: - comparisonExpressionTypeName: support_ObjectIdComparisonExp + comparisonExpressionTypeName: support_String1ComparisonExp --- kind: DataConnectorScalarRepresentation @@ -58,9 +58,9 @@ definition: kind: ScalarType version: v1 definition: - name: Bool + name: Boolean_1 graphql: - typeName: support_Bool + typeName: support_Boolean1 --- kind: BooleanExpressionType @@ -69,16 +69,16 @@ definition: name: BoolBoolExp operand: scalar: - type: Bool + type: Boolean_1 comparisonOperators: - name: _eq - argumentType: Bool! + argumentType: Boolean_1! - name: _in - argumentType: "[Bool!]!" + argumentType: "[Boolean_1!]!" - name: _neq - argumentType: Bool! + argumentType: Boolean_1! - name: _nin - argumentType: "[Bool!]!" + argumentType: "[Boolean_1!]!" dataConnectorOperatorMapping: - dataConnectorName: atlas dataConnectorScalarType: Bool @@ -96,9 +96,9 @@ version: v1 definition: dataConnectorName: atlas dataConnectorScalarType: Bool - representation: Bool + representation: Boolean_1 graphql: - comparisonExpressionTypeName: support_BoolComparisonExp + comparisonExpressionTypeName: support_Boolean1ComparisonExp --- kind: BooleanExpressionType @@ -157,7 +157,7 @@ definition: name: ObjectIdAggExp operand: scalar: - aggregatedType: ObjectId + aggregatedType: String_1 aggregationFunctions: - name: count returnType: Int! @@ -210,14 +210,14 @@ definition: kind: OrderByExpression version: v1 definition: - name: ObjectIdOrderByExp + name: String1OrderByExp operand: scalar: - orderedType: ObjectId + orderedType: String_1 enableOrderByDirections: enableAll: true graphql: - expressionTypeName: support_ObjectIdOrderByExp + expressionTypeName: support_String1OrderByExp --- kind: OrderByExpression @@ -236,22 +236,22 @@ definition: kind: OrderByExpression version: v1 definition: - name: BoolOrderByExp + name: Boolean1OrderByExp operand: scalar: - orderedType: Bool + orderedType: Boolean_1 enableOrderByDirections: enableAll: true graphql: - expressionTypeName: support_BoolOrderByExp + expressionTypeName: support_Boolean1OrderByExp --- kind: ScalarType version: v1 definition: - name: Double + name: Float64 graphql: - typeName: support_Double + typeName: support_Float64 --- kind: BooleanExpressionType @@ -260,24 +260,24 @@ definition: name: DoubleBoolExp operand: scalar: - type: Double + type: Float64 comparisonOperators: - name: _eq - argumentType: Double! + argumentType: Float64! - name: _gt - argumentType: Double! + argumentType: Float64! - name: _gte - argumentType: Double! + argumentType: Float64! - name: _in - argumentType: "[Double!]!" + argumentType: "[Float64!]!" - name: _lt - argumentType: Double! + argumentType: Float64! - name: _lte - argumentType: Double! + argumentType: Float64! - name: _neq - argumentType: Double! + argumentType: Float64! - name: _nin - argumentType: "[Double!]!" + argumentType: "[Float64!]!" dataConnectorOperatorMapping: - dataConnectorName: atlas dataConnectorScalarType: Double @@ -295,9 +295,9 @@ version: v1 definition: dataConnectorName: atlas dataConnectorScalarType: Double - representation: Double + representation: Float64 graphql: - comparisonExpressionTypeName: support_DoubleComparisonExp + comparisonExpressionTypeName: support_Float64ComparisonExp --- kind: BooleanExpressionType diff --git a/hasura/industry/telco/support/metadata/atlas.hml b/hasura/industry/telco/support/metadata/atlas.hml index b851dd83..2a0c9949 100644 --- a/hasura/industry/telco/support/metadata/atlas.hml +++ b/hasura/industry/telco/support/metadata/atlas.hml @@ -14,1248 +14,1272 @@ definition: schema: version: v0.1 schema: - scalar_types: - BinData: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: BinData - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: BinData - Bool: - representation: - type: boolean - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: Bool - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: Bool - Date: - representation: - type: timestamp - aggregate_functions: - count: - result_type: + collections: + - arguments: {} + foreign_keys: {} + name: customerPreferences + type: customerPreferences + uniqueness_constraints: + customerPreferences_id: + unique_columns: + - _id + - arguments: {} + foreign_keys: {} + name: userProfiles + type: userProfiles + uniqueness_constraints: + userProfiles_id: + unique_columns: + - _id + functions: [] + object_types: + customerPreferences: + fields: + _id: + type: + name: ObjectId type: named - name: Int - max: - result_type: + behavioralData: + type: type: nullable underlying_type: + name: customerPreferences_behavioralData type: named - name: Date - min: - result_type: + customer_guid: + type: type: nullable underlying_type: + name: String type: named - name: Date - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Date - _gte: - type: custom - argument_type: - type: named - name: Date - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Date - _lte: - type: custom - argument_type: - type: named - name: Date - _neq: - type: custom - argument_type: - type: named - name: Date - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: Date - DbPointer: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: DbPointer - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: DbPointer - Decimal: - representation: - type: bigdecimal - aggregate_functions: - avg: - result_type: + customerNotes: + type: type: nullable underlying_type: - type: named - name: Decimal - count: - result_type: - type: named - name: Int - max: - result_type: + element_type: + name: customerPreferences_customerNotes + type: named + type: array + preferences: + type: type: nullable underlying_type: + name: customerPreferences_preferences type: named - name: Decimal - min: - result_type: + socialMedia: + type: type: nullable underlying_type: + name: customerPreferences_socialMedia type: named - name: Decimal - sum: - result_type: + customerPreferences_behavioralData: + fields: + lastAppLogin: + type: type: nullable underlying_type: + name: String type: named - name: Decimal - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Decimal - _gte: - type: custom - argument_type: - type: named - name: Decimal - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Decimal - _lte: - type: custom - argument_type: - type: named - name: Decimal - _neq: - type: custom - argument_type: - type: named - name: Decimal - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: Decimal - Double: - representation: - type: float64 - aggregate_functions: - avg: - result_type: + lastWebsiteVisit: + type: type: nullable underlying_type: + name: String type: named - name: Double - count: - result_type: - type: named - name: Int - max: - result_type: + customerPreferences_customerNotes: + fields: + author: + type: type: nullable underlying_type: + name: String type: named - name: Double - min: - result_type: + content: + type: type: nullable underlying_type: + name: String type: named - name: Double - sum: - result_type: + date: + type: type: nullable underlying_type: + name: String type: named - name: Double - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Double - _gte: - type: custom - argument_type: - type: named - name: Double - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Double - _lte: - type: custom - argument_type: - type: named - name: Double - _neq: - type: custom - argument_type: - type: named - name: Double - _nin: - type: custom - argument_type: - type: array - element_type: + customerPreferences_preferences: + fields: + contactMethod: + type: + type: nullable + underlying_type: + name: String type: named - name: Double - ExtendedJSON: - representation: - type: json - aggregate_functions: - avg: - result_type: - type: named - name: ExtendedJSON - count: - result_type: - type: named - name: Int - max: - result_type: - type: named - name: ExtendedJSON - min: - result_type: - type: named - name: ExtendedJSON - sum: - result_type: - type: named - name: ExtendedJSON - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: ExtendedJSON - _gte: - type: custom - argument_type: - type: named - name: ExtendedJSON - _in: - type: custom - argument_type: - type: named - name: ExtendedJSON - _iregex: - type: custom - argument_type: - type: named - name: String - _lt: - type: custom - argument_type: - type: named - name: ExtendedJSON - _lte: - type: custom - argument_type: - type: named - name: ExtendedJSON - _neq: - type: custom - argument_type: - type: named - name: ExtendedJSON - _nin: - type: custom - argument_type: - type: named - name: ExtendedJSON - _regex: - type: custom - argument_type: - type: named - name: String - Int: - representation: - type: int32 - aggregate_functions: - avg: - result_type: + marketingOptIn: + type: type: nullable underlying_type: + name: Bool type: named - name: Int - count: - result_type: - type: named - name: Int - max: - result_type: + customerPreferences_socialMedia: + fields: + facebook: + type: type: nullable underlying_type: + name: String type: named - name: Int - min: - result_type: + instagram: + type: type: nullable underlying_type: + name: String type: named - name: Int - sum: - result_type: + linkedin: + type: type: nullable underlying_type: + name: String type: named - name: Int - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Int - _gte: - type: custom - argument_type: - type: named - name: Int - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Int - _lte: - type: custom - argument_type: - type: named - name: Int - _neq: - type: custom - argument_type: + tiktok: + type: + type: nullable + underlying_type: + name: String + type: named + twitter: + type: + type: nullable + underlying_type: + name: String + type: named + userProfiles: + fields: + _id: + type: + name: String type: named - name: Int - _nin: - type: custom - argument_type: - type: array - element_type: + accountDetails: + type: + type: nullable + underlying_type: + name: userProfiles_accountDetails type: named + customer_id: + type: + type: nullable + underlying_type: name: Int - Javascript: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: {} - JavascriptWithScope: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: {} - Long: - representation: - type: int64 - aggregate_functions: - avg: - result_type: + type: named + identification: + type: type: nullable underlying_type: + name: userProfiles_identification type: named - name: Long - count: - result_type: - type: named - name: Int - max: - result_type: + memberID: + type: type: nullable underlying_type: + name: String type: named - name: Long - min: - result_type: + notes: + type: type: nullable underlying_type: + name: String type: named - name: Long - sum: - result_type: + preferences: + type: type: nullable underlying_type: + name: userProfiles_preferences type: named - name: Long - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Long - _gte: - type: custom - argument_type: - type: named - name: Long - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Long - _lte: - type: custom - argument_type: - type: named - name: Long - _neq: - type: custom - argument_type: - type: named - name: Long - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: Long - MaxKey: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: MaxKey - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: MaxKey - MinKey: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: MinKey - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: MinKey - "Null": - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: "Null" - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: "Null" - ObjectId: - representation: - type: string - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: ObjectId - _nin: - type: custom - argument_type: - type: array - element_type: - type: named - name: ObjectId - Regex: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: {} - String: - representation: - type: string - aggregate_functions: - count: - result_type: - type: named - name: Int - max: - result_type: + supportHistory: + type: type: nullable underlying_type: + element_type: + name: userProfiles_supportHistory + type: named + type: array + usageStats: + type: + type: nullable + underlying_type: + name: userProfiles_usageStats type: named + userProfiles_accountDetails: + fields: + accountNumber: + type: + type: nullable + underlying_type: name: String - min: - result_type: + type: named + registrationDate: + type: type: nullable underlying_type: + name: String type: named + userProfiles_identification: + fields: + expiryDate: + type: + type: nullable + underlying_type: name: String - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: String - _gte: - type: custom - argument_type: - type: named - name: String - _in: - type: in - _iregex: - type: custom - argument_type: - type: named - name: String - _lt: - type: custom - argument_type: - type: named - name: String - _lte: - type: custom - argument_type: - type: named - name: String - _neq: - type: custom - argument_type: - type: named - name: String - _nin: - type: custom - argument_type: - type: array - element_type: type: named + issuedBy: + type: + type: nullable + underlying_type: name: String - _regex: - type: custom - argument_type: - type: named - name: String - Symbol: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: Symbol - _nin: - type: custom - argument_type: - type: array - element_type: type: named - name: Symbol - Timestamp: - aggregate_functions: - count: - result_type: - type: named - name: Int - max: - result_type: + number: + type: type: nullable underlying_type: + name: String type: named - name: Timestamp - min: - result_type: + type: + type: type: nullable underlying_type: + name: String type: named - name: Timestamp - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: Timestamp - _gte: - type: custom - argument_type: - type: named - name: Timestamp - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: Timestamp - _lte: - type: custom - argument_type: - type: named - name: Timestamp - _neq: - type: custom - argument_type: - type: named - name: Timestamp - _nin: - type: custom - argument_type: - type: array - element_type: + userProfiles_preferences: + fields: + communication: + type: + type: nullable + underlying_type: + name: userProfiles_preferences_communication type: named - name: Timestamp - UUID: - representation: - type: string - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: UUID - _nin: - type: custom - argument_type: - type: array - element_type: + privacySettings: + type: + type: nullable + underlying_type: + name: userProfiles_preferences_privacySettings type: named - name: UUID - Undefined: - aggregate_functions: - count: - result_type: - type: named - name: Int - comparison_operators: - _eq: - type: equal - _in: - type: in - _neq: - type: custom - argument_type: - type: named - name: Undefined - _nin: - type: custom - argument_type: - type: array - element_type: + servicePreferences: + type: + type: nullable + underlying_type: + name: userProfiles_preferences_servicePreferences type: named - name: Undefined - object_types: - customerPreferences: + userProfiles_preferences_communication: fields: - _id: + appNotifications: type: - type: named - name: ObjectId - behavioralData: + type: nullable + underlying_type: + name: userProfiles_preferences_communication_appNotifications + type: named + emailUpdates: type: type: nullable underlying_type: + name: Bool type: named - name: customerPreferences_behavioralData - customer_guid: + smsNotifications: type: type: nullable underlying_type: + name: Bool type: named + userProfiles_preferences_communication_appNotifications: + fields: + enabled: + type: + type: nullable + underlying_type: + name: Bool + type: named + frequency: + type: + type: nullable + underlying_type: name: String - customerNotes: + type: named + userProfiles_preferences_privacySettings: + fields: + adPersonalization: type: type: nullable underlying_type: - type: array - element_type: - type: named - name: customerPreferences_customerNotes - preferences: + name: Bool + type: named + shareDataForImprovements: type: type: nullable underlying_type: + name: Bool type: named - name: customerPreferences_preferences - socialMedia: + userProfiles_preferences_servicePreferences: + fields: + favoriteLocations: + type: + type: nullable + underlying_type: + element_type: + name: userProfiles_preferences_servicePreferences_favoriteLocations + type: named + type: array + networkSettings: type: type: nullable underlying_type: + name: userProfiles_preferences_servicePreferences_networkSettings type: named - name: customerPreferences_socialMedia - customerPreferences_behavioralData: + userProfiles_preferences_servicePreferences_favoriteLocations: fields: - lastAppLogin: + coordinates: type: type: nullable underlying_type: + name: userProfiles_preferences_servicePreferences_favoriteLocations_coordinates type: named - name: String - lastWebsiteVisit: + name: type: type: nullable underlying_type: - type: named name: String - customerPreferences_customerNotes: + type: named + userProfiles_preferences_servicePreferences_favoriteLocations_coordinates: fields: - author: + lat: type: type: nullable underlying_type: + name: Double type: named - name: String - content: + long: type: type: nullable underlying_type: + name: Double type: named - name: String - date: + userProfiles_preferences_servicePreferences_networkSettings: + fields: + dataSaverMode: type: type: nullable underlying_type: + name: Bool type: named - name: String - customerPreferences_preferences: - fields: - contactMethod: + preferredNetworkType: type: type: nullable underlying_type: - type: named name: String - marketingOptIn: + type: named + userProfiles_supportHistory: + fields: + category: type: type: nullable underlying_type: + name: String type: named - name: Bool - customerPreferences_socialMedia: - fields: - facebook: + date: type: type: nullable underlying_type: - type: named name: String - linkedin: + type: named + description: type: type: nullable underlying_type: - type: named name: String - twitter: + type: named + issue: type: type: nullable underlying_type: - type: named name: String - userProfiles: - fields: - _id: - type: - type: named - name: String - accountDetails: + type: named + resolutionNotes: type: type: nullable underlying_type: + name: String type: named - name: userProfiles_accountDetails - customer_id: + status: type: type: nullable underlying_type: + name: String type: named - name: Int - identification: + ticketId: type: type: nullable underlying_type: + name: String type: named - name: userProfiles_identification - memberID: + userProfiles_usageStats: + fields: + appUsage: type: type: nullable underlying_type: - type: named - name: String - notes: + element_type: + name: userProfiles_usageStats_appUsage + type: named + type: array + callStats: type: type: nullable underlying_type: + name: userProfiles_usageStats_callStats type: named - name: String - preferences: + dataUsage: type: type: nullable underlying_type: + name: userProfiles_usageStats_dataUsage type: named - name: userProfiles_preferences - supportHistory: + userProfiles_usageStats_appUsage: + fields: + name: type: type: nullable underlying_type: - type: array - element_type: - type: named - name: userProfiles_supportHistory - usageStats: + name: String + type: named + usage: type: type: nullable underlying_type: + name: String type: named - name: userProfiles_usageStats - userProfiles_accountDetails: + userProfiles_usageStats_callStats: fields: - accountNumber: + internationalMinutes: type: type: nullable underlying_type: + name: Int type: named - name: String - registrationDate: + totalMinutes: type: type: nullable underlying_type: + name: Int type: named - name: String - userProfiles_identification: + userProfiles_usageStats_dataUsage: fields: - expiryDate: + currentMonth: type: type: nullable underlying_type: - type: named name: String - issuedBy: + type: named + total: type: type: nullable underlying_type: - type: named name: String - number: - type: + type: named + procedures: [] + scalar_types: + BinData: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: BinData + type: named + type: custom + _nin: + argument_type: + element_type: + name: BinData + type: named + type: array + type: custom + Bool: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: Bool + type: named + type: custom + _nin: + argument_type: + element_type: + name: Bool + type: named + type: array + type: custom + representation: + type: boolean + Date: + aggregate_functions: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Date type: named - name: String - type: - type: + min: + result_type: type: nullable underlying_type: + name: Date + type: named + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Date + type: named + type: custom + _gte: + argument_type: + name: Date + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Date + type: named + type: custom + _lte: + argument_type: + name: Date + type: named + type: custom + _neq: + argument_type: + name: Date + type: named + type: custom + _nin: + argument_type: + element_type: + name: Date + type: named + type: array + type: custom + representation: + type: timestamp + DbPointer: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: DbPointer + type: named + type: custom + _nin: + argument_type: + element_type: + name: DbPointer type: named - name: String - userProfiles_preferences: - fields: - communication: - type: + type: array + type: custom + Decimal: + aggregate_functions: + avg: + result_type: type: nullable underlying_type: + name: Decimal type: named - name: userProfiles_preferences_communication - privacySettings: - type: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Decimal type: named - name: userProfiles_preferences_privacySettings - servicePreferences: - type: + min: + result_type: type: nullable underlying_type: + name: Decimal type: named - name: userProfiles_preferences_servicePreferences - userProfiles_preferences_communication: - fields: - appNotifications: - type: + sum: + result_type: type: nullable underlying_type: + name: Decimal type: named - name: userProfiles_preferences_communication_appNotifications - emailUpdates: - type: - type: nullable - underlying_type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Decimal + type: named + type: custom + _gte: + argument_type: + name: Decimal + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Decimal + type: named + type: custom + _lte: + argument_type: + name: Decimal + type: named + type: custom + _neq: + argument_type: + name: Decimal + type: named + type: custom + _nin: + argument_type: + element_type: + name: Decimal type: named - name: Bool - smsNotifications: - type: + type: array + type: custom + representation: + type: bigdecimal + Double: + aggregate_functions: + avg: + result_type: type: nullable underlying_type: + name: Double type: named - name: Bool - userProfiles_preferences_communication_appNotifications: - fields: - enabled: - type: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Double type: named - name: Bool - frequency: - type: + min: + result_type: type: nullable underlying_type: + name: Double type: named - name: String - userProfiles_preferences_privacySettings: - fields: - adPersonalization: - type: + sum: + result_type: type: nullable underlying_type: + name: Double type: named - name: Bool - shareDataForImprovements: - type: - type: nullable - underlying_type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Double + type: named + type: custom + _gte: + argument_type: + name: Double + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Double + type: named + type: custom + _lte: + argument_type: + name: Double + type: named + type: custom + _neq: + argument_type: + name: Double + type: named + type: custom + _nin: + argument_type: + element_type: + name: Double type: named - name: Bool - userProfiles_preferences_servicePreferences: - fields: - favoriteLocations: - type: - type: nullable - underlying_type: - type: array - element_type: - type: named - name: userProfiles_preferences_servicePreferences_favoriteLocations - networkSettings: - type: + type: array + type: custom + representation: + type: float64 + ExtendedJSON: + aggregate_functions: + avg: + result_type: + name: ExtendedJSON + type: named + count: + result_type: + name: Int + type: named + max: + result_type: + name: ExtendedJSON + type: named + min: + result_type: + name: ExtendedJSON + type: named + sum: + result_type: + name: ExtendedJSON + type: named + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: ExtendedJSON + type: named + type: custom + _gte: + argument_type: + name: ExtendedJSON + type: named + type: custom + _in: + argument_type: + name: ExtendedJSON + type: named + type: custom + _iregex: + argument_type: + name: String + type: named + type: custom + _lt: + argument_type: + name: ExtendedJSON + type: named + type: custom + _lte: + argument_type: + name: ExtendedJSON + type: named + type: custom + _neq: + argument_type: + name: ExtendedJSON + type: named + type: custom + _nin: + argument_type: + name: ExtendedJSON + type: named + type: custom + _regex: + argument_type: + name: String + type: named + type: custom + representation: + type: json + Int: + aggregate_functions: + avg: + result_type: type: nullable underlying_type: + name: Int type: named - name: userProfiles_preferences_servicePreferences_networkSettings - userProfiles_preferences_servicePreferences_favoriteLocations: - fields: - coordinates: - type: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Int type: named - name: userProfiles_preferences_servicePreferences_favoriteLocations_coordinates - name: - type: + min: + result_type: type: nullable underlying_type: + name: Int type: named - name: String - userProfiles_preferences_servicePreferences_favoriteLocations_coordinates: - fields: - lat: - type: + sum: + result_type: type: nullable underlying_type: + name: Int type: named - name: Double - long: - type: - type: nullable - underlying_type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Int + type: named + type: custom + _gte: + argument_type: + name: Int + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Int + type: named + type: custom + _lte: + argument_type: + name: Int + type: named + type: custom + _neq: + argument_type: + name: Int + type: named + type: custom + _nin: + argument_type: + element_type: + name: Int type: named - name: Double - userProfiles_preferences_servicePreferences_networkSettings: - fields: - dataSaverMode: - type: + type: array + type: custom + representation: + type: int32 + Javascript: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: {} + JavascriptWithScope: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: {} + Long: + aggregate_functions: + avg: + result_type: type: nullable underlying_type: + name: Long type: named - name: Bool - preferredNetworkType: - type: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Long type: named - name: String - userProfiles_supportHistory: - fields: - date: - type: + min: + result_type: type: nullable underlying_type: + name: Long type: named - name: String - issue: - type: + sum: + result_type: type: nullable underlying_type: + name: Long type: named - name: String - resolutionNotes: - type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Long + type: named + type: custom + _gte: + argument_type: + name: Long + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Long + type: named + type: custom + _lte: + argument_type: + name: Long + type: named + type: custom + _neq: + argument_type: + name: Long + type: named + type: custom + _nin: + argument_type: + element_type: + name: Long + type: named + type: array + type: custom + representation: + type: int64 + MaxKey: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: MaxKey + type: named + type: custom + _nin: + argument_type: + element_type: + name: MaxKey + type: named + type: array + type: custom + MinKey: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: MinKey + type: named + type: custom + _nin: + argument_type: + element_type: + name: MinKey + type: named + type: array + type: custom + "Null": + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: "Null" + type: named + type: custom + _nin: + argument_type: + element_type: + name: "Null" + type: named + type: array + type: custom + ObjectId: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: ObjectId + type: named + type: custom + _nin: + argument_type: + element_type: + name: ObjectId + type: named + type: array + type: custom + representation: + type: string + Regex: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: {} + String: + aggregate_functions: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: - type: named name: String - status: - type: - type: nullable - underlying_type: type: named - name: String - ticketId: - type: + min: + result_type: type: nullable underlying_type: - type: named name: String - userProfiles_usageStats: - fields: - appUsage: - type: - type: nullable - underlying_type: - type: array - element_type: - type: named - name: userProfiles_usageStats_appUsage - callStats: - type: - type: nullable - underlying_type: type: named - name: userProfiles_usageStats_callStats - dataUsage: - type: - type: nullable - underlying_type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: String + type: named + type: custom + _gte: + argument_type: + name: String + type: named + type: custom + _in: + type: in + _iregex: + argument_type: + name: String + type: named + type: custom + _lt: + argument_type: + name: String + type: named + type: custom + _lte: + argument_type: + name: String + type: named + type: custom + _neq: + argument_type: + name: String + type: named + type: custom + _nin: + argument_type: + element_type: + name: String type: named - name: userProfiles_usageStats_dataUsage - userProfiles_usageStats_appUsage: - fields: - name: - type: - type: nullable - underlying_type: + type: array + type: custom + _regex: + argument_type: + name: String + type: named + type: custom + representation: + type: string + Symbol: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: Symbol + type: named + type: custom + _nin: + argument_type: + element_type: + name: Symbol type: named - name: String - usage: - type: + type: array + type: custom + Timestamp: + aggregate_functions: + count: + result_type: + name: Int + type: named + max: + result_type: type: nullable underlying_type: + name: Timestamp type: named - name: String - userProfiles_usageStats_callStats: - fields: - internationalMinutes: - type: + min: + result_type: type: nullable underlying_type: + name: Timestamp type: named - name: Int - totalMinutes: - type: - type: nullable - underlying_type: + comparison_operators: + _eq: + type: equal + _gt: + argument_type: + name: Timestamp + type: named + type: custom + _gte: + argument_type: + name: Timestamp + type: named + type: custom + _in: + type: in + _lt: + argument_type: + name: Timestamp + type: named + type: custom + _lte: + argument_type: + name: Timestamp + type: named + type: custom + _neq: + argument_type: + name: Timestamp + type: named + type: custom + _nin: + argument_type: + element_type: + name: Timestamp type: named - name: Int - userProfiles_usageStats_dataUsage: - fields: - currentMonth: - type: - type: nullable - underlying_type: + type: array + type: custom + UUID: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: UUID + type: named + type: custom + _nin: + argument_type: + element_type: + name: UUID type: named - name: String - total: - type: - type: nullable - underlying_type: + type: array + type: custom + representation: + type: string + Undefined: + aggregate_functions: + count: + result_type: + name: Int + type: named + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: Undefined + type: named + type: custom + _nin: + argument_type: + element_type: + name: Undefined type: named - name: String - collections: - - name: customerPreferences - arguments: {} - type: customerPreferences - uniqueness_constraints: - customerPreferences_id: - unique_columns: - - _id - foreign_keys: {} - - name: userProfiles - arguments: {} - type: userProfiles - uniqueness_constraints: - userProfiles_id: - unique_columns: - - _id - foreign_keys: {} - functions: [] - procedures: [] + type: array + type: custom capabilities: - version: 0.1.6 capabilities: + mutation: {} query: aggregates: {} - variables: {} + exists: + nested_collections: {} explain: {} nested_fields: + aggregates: {} filter_by: {} order_by: {} - aggregates: {} - exists: - nested_collections: {} - mutation: {} + variables: {} relationships: relation_comparisons: {} + version: 0.1.6 diff --git a/hasura/industry/telco/support/metadata/vector-types.hml b/hasura/industry/telco/support/metadata/vector-types.hml index 5b5357de..2ff87e5e 100644 --- a/hasura/industry/telco/support/metadata/vector-types.hml +++ b/hasura/industry/telco/support/metadata/vector-types.hml @@ -1,11 +1,3 @@ ---- -kind: ScalarType -version: v1 -definition: - name: Uuid - graphql: - typeName: support_Uuid - --- kind: BooleanExpressionType version: v1 @@ -13,22 +5,38 @@ definition: name: UuidBoolExp operand: scalar: - type: Uuid + type: String_1 comparisonOperators: - name: _eq - argumentType: Uuid! + argumentType: String_1! - name: _gt - argumentType: Uuid! + argumentType: String_1! - name: _gte - argumentType: Uuid! + argumentType: String_1! + - name: _ilike + argumentType: String_1! - name: _in - argumentType: "[Uuid!]!" + argumentType: "[String_1!]!" + - name: _iregex + argumentType: String_1! + - name: _like + argumentType: String_1! - name: _lt - argumentType: Uuid! + argumentType: String_1! - name: _lte - argumentType: Uuid! + argumentType: String_1! - name: _neq - argumentType: Uuid! + argumentType: String_1! + - name: _nilike + argumentType: String_1! + - name: _niregex + argumentType: String_1! + - name: _nlike + argumentType: String_1! + - name: _nregex + argumentType: String_1! + - name: _regex + argumentType: String_1! dataConnectorOperatorMapping: - dataConnectorName: vector dataConnectorScalarType: uuid @@ -46,61 +54,53 @@ version: v1 definition: dataConnectorName: vector dataConnectorScalarType: uuid - representation: Uuid + representation: String_1 graphql: - comparisonExpressionTypeName: support_UuidComparisonExp + comparisonExpressionTypeName: support_String1ComparisonExp_1 --- kind: ScalarType version: v1 definition: - name: Vector + name: Json graphql: - typeName: support_Vector + typeName: support_Json --- kind: BooleanExpressionType version: v1 definition: - name: VectorBoolExp + name: Vector1536BoolExp operand: scalar: - type: Vector + type: Json comparisonOperators: - name: _eq - argumentType: Vector! - - name: _gt - argumentType: Vector! - - name: _gte - argumentType: Vector! + argumentType: Json! - name: _in - argumentType: "[Vector!]!" - - name: _lt - argumentType: Vector! - - name: _lte - argumentType: Vector! + argumentType: "[Json!]!" - name: _neq - argumentType: Vector! + argumentType: Json! dataConnectorOperatorMapping: - dataConnectorName: vector - dataConnectorScalarType: vector + dataConnectorScalarType: vector(1536) operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: support_VectorBoolExp + typeName: support_Vector1536BoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: vector - dataConnectorScalarType: vector - representation: Vector + dataConnectorScalarType: vector(1536) + representation: Json graphql: - comparisonExpressionTypeName: support_VectorComparisonExp + comparisonExpressionTypeName: support_JsonComparisonExp --- kind: AggregateExpression @@ -109,12 +109,20 @@ definition: name: UuidAggExp operand: scalar: - aggregatedType: Uuid - aggregationFunctions: [] + aggregatedType: String_1 + aggregationFunctions: + - name: max + returnType: String_1 + - name: min + returnType: String_1 dataConnectorAggregationFunctionMapping: - dataConnectorName: vector dataConnectorScalarType: uuid - functionMapping: {} + functionMapping: + max: + name: max + min: + name: min count: enable: true countDistinct: @@ -126,63 +134,34 @@ definition: kind: AggregateExpression version: v1 definition: - name: VectorAggExp + name: Vector1536AggExp operand: scalar: - aggregatedType: Vector - aggregationFunctions: - - name: avg - returnType: Vector - - name: sum - returnType: Vector + aggregatedType: Json + aggregationFunctions: [] dataConnectorAggregationFunctionMapping: - dataConnectorName: vector - dataConnectorScalarType: vector - functionMapping: - avg: - name: avg - sum: - name: sum + dataConnectorScalarType: vector(1536) + functionMapping: {} count: enable: true countDistinct: enable: true graphql: - selectTypeName: support_VectorAggExp + selectTypeName: support_Vector1536AggExp --- kind: OrderByExpression version: v1 definition: - name: UuidOrderByExp + name: JsonOrderByExp operand: scalar: - orderedType: Uuid + orderedType: Json enableOrderByDirections: enableAll: true graphql: - expressionTypeName: support_UuidOrderByExp - ---- -kind: OrderByExpression -version: v1 -definition: - name: VectorOrderByExp - operand: - scalar: - orderedType: Vector - enableOrderByDirections: - enableAll: true - graphql: - expressionTypeName: support_VectorOrderByExp - ---- -kind: ScalarType -version: v1 -definition: - name: Text - graphql: - typeName: support_Text + expressionTypeName: support_JsonOrderByExp --- kind: BooleanExpressionType @@ -191,42 +170,38 @@ definition: name: TextBoolExp operand: scalar: - type: Text + type: String_1 comparisonOperators: - name: _eq - argumentType: Text! + argumentType: String_1! - name: _gt - argumentType: Text! + argumentType: String_1! - name: _gte - argumentType: Text! + argumentType: String_1! - name: _ilike - argumentType: Text! + argumentType: String_1! - name: _in - argumentType: "[Text!]!" + argumentType: "[String_1!]!" - name: _iregex - argumentType: Text! + argumentType: String_1! - name: _like - argumentType: Text! + argumentType: String_1! - name: _lt - argumentType: Text! + argumentType: String_1! - name: _lte - argumentType: Text! + argumentType: String_1! - name: _neq - argumentType: Text! + argumentType: String_1! - name: _nilike - argumentType: Text! + argumentType: String_1! - name: _niregex - argumentType: Text! + argumentType: String_1! - name: _nlike - argumentType: Text! + argumentType: String_1! - name: _nregex - argumentType: Text! + argumentType: String_1! - name: _regex - argumentType: Text! - - name: starts_with - argumentType: Text! - - name: ts_match_tt - argumentType: Text! + argumentType: String_1! dataConnectorOperatorMapping: - dataConnectorName: vector dataConnectorScalarType: text @@ -244,9 +219,9 @@ version: v1 definition: dataConnectorName: vector dataConnectorScalarType: text - representation: Text + representation: String_1 graphql: - comparisonExpressionTypeName: support_TextComparisonExp + comparisonExpressionTypeName: support_String1ComparisonExp_2 --- kind: ScalarType @@ -260,7 +235,7 @@ definition: kind: BooleanExpressionType version: v1 definition: - name: TimestamptzBoolExp + name: TimestampWithTimeZoneBoolExp operand: scalar: type: Timestamptz @@ -281,21 +256,21 @@ definition: argumentType: Timestamptz! dataConnectorOperatorMapping: - dataConnectorName: vector - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: support_TimestamptzBoolExp + typeName: support_TimestampWithTimeZoneBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: vector - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone representation: Timestamptz graphql: comparisonExpressionTypeName: support_TimestamptzComparisonExp @@ -304,53 +279,53 @@ definition: kind: ScalarType version: v1 definition: - name: Int4 + name: Int32 graphql: - typeName: support_Int4 + typeName: support_Int32 --- kind: BooleanExpressionType version: v1 definition: - name: Int4BoolExp + name: IntegerBoolExp operand: scalar: - type: Int4 + type: Int32 comparisonOperators: - name: _eq - argumentType: Int4! + argumentType: Int32! - name: _gt - argumentType: Int4! + argumentType: Int32! - name: _gte - argumentType: Int4! + argumentType: Int32! - name: _in - argumentType: "[Int4!]!" + argumentType: "[Int32!]!" - name: _lt - argumentType: Int4! + argumentType: Int32! - name: _lte - argumentType: Int4! + argumentType: Int32! - name: _neq - argumentType: Int4! + argumentType: Int32! dataConnectorOperatorMapping: - dataConnectorName: vector - dataConnectorScalarType: int4 + dataConnectorScalarType: integer operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: support_Int4BoolExp + typeName: support_IntegerBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: vector - dataConnectorScalarType: int4 - representation: Int4 + dataConnectorScalarType: integer + representation: Int32 graphql: - comparisonExpressionTypeName: support_Int4ComparisonExp + comparisonExpressionTypeName: support_Int32ComparisonExp --- kind: AggregateExpression @@ -359,12 +334,12 @@ definition: name: TextAggExp operand: scalar: - aggregatedType: Text + aggregatedType: String_1 aggregationFunctions: - name: max - returnType: Text + returnType: String_1 - name: min - returnType: Text + returnType: String_1 dataConnectorAggregationFunctionMapping: - dataConnectorName: vector dataConnectorScalarType: text @@ -384,7 +359,7 @@ definition: kind: AggregateExpression version: v1 definition: - name: TimestamptzAggExp + name: TimestampWithTimeZoneAggExp operand: scalar: aggregatedType: Timestamptz @@ -395,7 +370,7 @@ definition: returnType: Timestamptz dataConnectorAggregationFunctionMapping: - dataConnectorName: vector - dataConnectorScalarType: timestamptz + dataConnectorScalarType: timestamp_with_time_zone functionMapping: max: name: max @@ -406,165 +381,147 @@ definition: countDistinct: enable: true graphql: - selectTypeName: support_TimestamptzAggExp + selectTypeName: support_TimestampWithTimeZoneAggExp --- kind: ScalarType version: v1 definition: - name: Numeric + name: Bigdecimal graphql: - typeName: support_Numeric + typeName: support_Bigdecimal --- kind: BooleanExpressionType version: v1 definition: - name: NumericBoolExp + name: DecimalBoolExp operand: scalar: - type: Numeric + type: Bigdecimal comparisonOperators: - name: _eq - argumentType: Numeric! + argumentType: Bigdecimal! - name: _gt - argumentType: Numeric! + argumentType: Bigdecimal! - name: _gte - argumentType: Numeric! + argumentType: Bigdecimal! - name: _in - argumentType: "[Numeric!]!" + argumentType: "[Bigdecimal!]!" - name: _lt - argumentType: Numeric! + argumentType: Bigdecimal! - name: _lte - argumentType: Numeric! + argumentType: Bigdecimal! - name: _neq - argumentType: Numeric! + argumentType: Bigdecimal! dataConnectorOperatorMapping: - dataConnectorName: vector - dataConnectorScalarType: numeric + dataConnectorScalarType: decimal operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: support_NumericBoolExp + typeName: support_DecimalBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: vector - dataConnectorScalarType: numeric - representation: Numeric + dataConnectorScalarType: decimal + representation: Bigdecimal graphql: - comparisonExpressionTypeName: support_NumericComparisonExp + comparisonExpressionTypeName: support_BigdecimalComparisonExp --- kind: ScalarType version: v1 definition: - name: Int8 + name: Biginteger graphql: - typeName: support_Int8 + typeName: support_Biginteger --- kind: BooleanExpressionType version: v1 definition: - name: Int8BoolExp + name: BigintBoolExp operand: scalar: - type: Int8 + type: Biginteger comparisonOperators: - name: _eq - argumentType: Int8! + argumentType: Biginteger! - name: _gt - argumentType: Int8! + argumentType: Biginteger! - name: _gte - argumentType: Int8! + argumentType: Biginteger! - name: _in - argumentType: "[Int8!]!" + argumentType: "[Biginteger!]!" - name: _lt - argumentType: Int8! + argumentType: Biginteger! - name: _lte - argumentType: Int8! + argumentType: Biginteger! - name: _neq - argumentType: Int8! + argumentType: Biginteger! dataConnectorOperatorMapping: - dataConnectorName: vector - dataConnectorScalarType: int8 + dataConnectorScalarType: bigint operatorMapping: {} logicalOperators: enable: true isNull: enable: true graphql: - typeName: support_Int8BoolExp + typeName: support_BigintBoolExp --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: vector - dataConnectorScalarType: int8 - representation: Int8 + dataConnectorScalarType: bigint + representation: Biginteger graphql: - comparisonExpressionTypeName: support_Int8ComparisonExp + comparisonExpressionTypeName: support_BigintegerComparisonExp --- kind: AggregateExpression version: v1 definition: - name: Int4AggExp + name: IntegerAggExp operand: scalar: - aggregatedType: Int4 + aggregatedType: Int32 aggregationFunctions: - name: avg - returnType: Numeric - - name: bit_and - returnType: Int4 - - name: bit_or - returnType: Int4 - - name: bit_xor - returnType: Int4 + returnType: Bigdecimal - name: max - returnType: Int4 + returnType: Int32 - name: min - returnType: Int4 - - name: stddev - returnType: Numeric + returnType: Int32 - name: stddev_pop - returnType: Numeric + returnType: Int32! - name: stddev_samp - returnType: Numeric + returnType: Int32! - name: sum - returnType: Int8 + returnType: Biginteger - name: var_pop - returnType: Numeric + returnType: Int32! - name: var_samp - returnType: Numeric - - name: variance - returnType: Numeric + returnType: Int32! dataConnectorAggregationFunctionMapping: - dataConnectorName: vector - dataConnectorScalarType: int4 + dataConnectorScalarType: integer functionMapping: avg: name: avg - bit_and: - name: bit_and - bit_or: - name: bit_or - bit_xor: - name: bit_xor max: name: max min: name: min - stddev: - name: stddev stddev_pop: name: stddev_pop stddev_samp: @@ -575,27 +532,12 @@ definition: name: var_pop var_samp: name: var_samp - variance: - name: variance count: enable: true countDistinct: enable: true graphql: - selectTypeName: support_Int4AggExp - ---- -kind: OrderByExpression -version: v1 -definition: - name: TextOrderByExp - operand: - scalar: - orderedType: Text - enableOrderByDirections: - enableAll: true - graphql: - expressionTypeName: support_TextOrderByExp + selectTypeName: support_IntegerAggExp --- kind: OrderByExpression @@ -614,137 +556,12 @@ definition: kind: OrderByExpression version: v1 definition: - name: Int4OrderByExp - operand: - scalar: - orderedType: Int4 - enableOrderByDirections: - enableAll: true - graphql: - expressionTypeName: support_Int4OrderByExp - ---- -kind: ScalarType -version: v1 -definition: - name: Float8 - graphql: - typeName: support_Float8 - ---- -kind: BooleanExpressionType -version: v1 -definition: - name: Float8BoolExp - operand: - scalar: - type: Float8 - comparisonOperators: - - name: _eq - argumentType: Float8! - - name: _gt - argumentType: Float8! - - name: _gte - argumentType: Float8! - - name: _in - argumentType: "[Float8!]!" - - name: _lt - argumentType: Float8! - - name: _lte - argumentType: Float8! - - name: _neq - argumentType: Float8! - dataConnectorOperatorMapping: - - dataConnectorName: vector - dataConnectorScalarType: float8 - operatorMapping: {} - logicalOperators: - enable: true - isNull: - enable: true - graphql: - typeName: support_Float8BoolExp - ---- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: vector - dataConnectorScalarType: float8 - representation: Float8 - graphql: - comparisonExpressionTypeName: support_Float8ComparisonExp - ---- -kind: AggregateExpression -version: v1 -definition: - name: Float8AggExp - operand: - scalar: - aggregatedType: Float8 - aggregationFunctions: - - name: avg - returnType: Float8 - - name: max - returnType: Float8 - - name: min - returnType: Float8 - - name: stddev - returnType: Float8 - - name: stddev_pop - returnType: Float8 - - name: stddev_samp - returnType: Float8 - - name: sum - returnType: Float8 - - name: var_pop - returnType: Float8 - - name: var_samp - returnType: Float8 - - name: variance - returnType: Float8 - dataConnectorAggregationFunctionMapping: - - dataConnectorName: vector - dataConnectorScalarType: float8 - functionMapping: - avg: - name: avg - max: - name: max - min: - name: min - stddev: - name: stddev - stddev_pop: - name: stddev_pop - stddev_samp: - name: stddev_samp - sum: - name: sum - var_pop: - name: var_pop - var_samp: - name: var_samp - variance: - name: variance - count: - enable: true - countDistinct: - enable: true - graphql: - selectTypeName: support_Float8AggExp - ---- -kind: OrderByExpression -version: v1 -definition: - name: Float8OrderByExp + name: Int32OrderByExp operand: scalar: - orderedType: Float8 + orderedType: Int32 enableOrderByDirections: enableAll: true graphql: - expressionTypeName: support_Float8OrderByExp + expressionTypeName: support_Int32OrderByExp diff --git a/hasura/industry/telco/support/metadata/vector.hml b/hasura/industry/telco/support/metadata/vector.hml index 91427e8a..8423ebae 100644 --- a/hasura/industry/telco/support/metadata/vector.hml +++ b/hasura/industry/telco/support/metadata/vector.hml @@ -12,1271 +12,1802 @@ definition: Authorization: valueFromEnv: SUPPORT_VECTOR_AUTHORIZATION_HEADER schema: - version: v0.1 + version: v0.2 schema: - scalar_types: - float8: - representation: - type: float64 - aggregate_functions: - avg: - result_type: + collections: + - arguments: {} + name: public.document_embeddings + type: public.document_embeddings + uniqueness_constraints: + primary_key: + unique_columns: + - document_uuid + - arguments: {} + name: public.documents + type: public.documents + uniqueness_constraints: + primary_key: + unique_columns: + - uuid + functions: [] + object_types: + bigint_set_input: + description: Wrapper for setting scalar bigint + fields: + value: + arguments: {} + description: New value for scalar bigint + type: type: nullable underlying_type: + name: bigint type: named - name: float8 - max: - result_type: + foreign_keys: {} + decimal_set_input: + description: Wrapper for setting scalar decimal + fields: + value: + arguments: {} + description: New value for scalar decimal + type: type: nullable underlying_type: + name: decimal type: named - name: float8 - min: - result_type: - type: nullable - underlying_type: + foreign_keys: {} + delete_public.document_embeddings_result: + description: delete from public.document_embeddings result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.document_embeddings type: named - name: float8 - stddev: - result_type: + type: array + foreign_keys: {} + delete_public.documents_result: + description: delete from public.documents result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by delete + type: + element_type: + name: public.documents + type: named + type: array + foreign_keys: {} + insert_public.document_embeddings_result: + description: insert from public.document_embeddings result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: public.document_embeddings + type: named + type: array + foreign_keys: {} + insert_public.documents_result: + description: insert from public.documents result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by insert + type: + element_type: + name: public.documents + type: named + type: array + foreign_keys: {} + int_set_input: + description: Wrapper for setting scalar int + fields: + value: + arguments: {} + description: New value for scalar int + type: type: nullable underlying_type: + name: int type: named - name: float8 - stddev_pop: - result_type: + foreign_keys: {} + integer_set_input: + description: Wrapper for setting scalar integer + fields: + value: + arguments: {} + description: New value for scalar integer + type: type: nullable underlying_type: + name: integer type: named - name: float8 - stddev_samp: - result_type: + foreign_keys: {} + public.document_embeddings: + description: 'Object type for public.document_embeddings. Description: null' + fields: + document_uuid: + arguments: {} + type: + name: uuid + type: named + embeddings: + arguments: {} + type: type: nullable underlying_type: + name: vector(1536) type: named - name: float8 - sum: - result_type: + foreign_keys: {} + public.document_embeddings_insert_input: + description: Input type for inserting into public.document_embeddings + fields: + document_uuid: + arguments: {} + description: New value for public.document_embeddings.document_uuid + type: + name: uuid + type: named + embeddings: + arguments: {} + description: New value for public.document_embeddings.embeddings + type: type: nullable underlying_type: + name: vector(1536) type: named - name: float8 - var_pop: - result_type: + foreign_keys: {} + public.document_embeddings_set_input: + description: Input type for updating public.document_embeddings + fields: + document_uuid: + arguments: {} + description: New value wrapper for public.document_embeddings.document_uuid + type: type: nullable underlying_type: + name: uuid_set_input type: named - name: float8 - var_samp: - result_type: + embeddings: + arguments: {} + description: New value wrapper for public.document_embeddings.embeddings + type: type: nullable underlying_type: + name: vector(1536)_set_input type: named - name: float8 - variance: - result_type: + foreign_keys: {} + public.documents: + description: 'Object type for public.documents. Description: null' + fields: + body: + arguments: {} + type: type: nullable underlying_type: + name: text type: named - name: float8 - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: float8 - _gte: - type: custom - argument_type: - type: named - name: float8 - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: float8 - _lte: - type: custom - argument_type: - type: named - name: float8 - _neq: - type: custom - argument_type: - type: named - name: float8 - int4: - representation: - type: int32 - aggregate_functions: - avg: - result_type: + created_at: + arguments: {} + type: type: nullable underlying_type: + name: timestamp_with_time_zone type: named - name: numeric - bit_and: - result_type: + language: + arguments: {} + type: type: nullable underlying_type: + name: text type: named - name: int4 - bit_or: - result_type: + rating: + arguments: {} + type: type: nullable underlying_type: + name: integer type: named - name: int4 - bit_xor: - result_type: + status: + arguments: {} + type: type: nullable underlying_type: + name: text type: named - name: int4 - max: - result_type: + tags: + arguments: {} + type: type: nullable underlying_type: + name: text type: named - name: int4 - min: - result_type: + title: + arguments: {} + type: type: nullable underlying_type: + name: text type: named - name: int4 - stddev: - result_type: + updated_at: + arguments: {} + type: type: nullable underlying_type: + name: timestamp_with_time_zone type: named - name: numeric - stddev_pop: - result_type: + uuid: + arguments: {} + type: + name: uuid + type: named + view_count: + arguments: {} + type: type: nullable underlying_type: + name: integer type: named - name: numeric - stddev_samp: - result_type: + foreign_keys: {} + public.documents_insert_input: + description: Input type for inserting into public.documents + fields: + body: + arguments: {} + description: New value for public.documents.body + type: type: nullable underlying_type: + name: text type: named - name: numeric - sum: - result_type: + created_at: + arguments: {} + description: New value for public.documents.created_at + type: type: nullable underlying_type: + name: timestamp_with_time_zone type: named - name: int8 - var_pop: - result_type: + language: + arguments: {} + description: New value for public.documents.language + type: type: nullable underlying_type: + name: text type: named - name: numeric - var_samp: - result_type: + rating: + arguments: {} + description: New value for public.documents.rating + type: type: nullable underlying_type: + name: integer type: named - name: numeric - variance: - result_type: + status: + arguments: {} + description: New value for public.documents.status + type: type: nullable underlying_type: + name: text type: named - name: numeric - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: int4 - _gte: - type: custom - argument_type: - type: named - name: int4 - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: int4 - _lte: - type: custom - argument_type: - type: named - name: int4 - _neq: - type: custom - argument_type: - type: named - name: int4 - int8: - representation: - type: int64 - aggregate_functions: - avg: - result_type: + tags: + arguments: {} + description: New value for public.documents.tags + type: type: nullable underlying_type: + name: text type: named - name: numeric - bit_and: - result_type: + title: + arguments: {} + description: New value for public.documents.title + type: type: nullable underlying_type: + name: text type: named - name: int8 - bit_or: - result_type: + updated_at: + arguments: {} + description: New value for public.documents.updated_at + type: type: nullable underlying_type: + name: timestamp_with_time_zone type: named - name: int8 - bit_xor: - result_type: + uuid: + arguments: {} + description: New value for public.documents.uuid + type: + name: uuid + type: named + view_count: + arguments: {} + description: New value for public.documents.view_count + type: type: nullable underlying_type: + name: integer type: named - name: int8 - max: - result_type: + foreign_keys: {} + public.documents_set_input: + description: Input type for updating public.documents + fields: + body: + arguments: {} + description: New value wrapper for public.documents.body + type: type: nullable underlying_type: + name: text_set_input type: named - name: int8 - min: - result_type: + created_at: + arguments: {} + description: New value wrapper for public.documents.created_at + type: type: nullable underlying_type: + name: timestamp_with_time_zone_set_input type: named - name: int8 - stddev: - result_type: + language: + arguments: {} + description: New value wrapper for public.documents.language + type: type: nullable underlying_type: + name: text_set_input type: named - name: numeric - stddev_pop: - result_type: + rating: + arguments: {} + description: New value wrapper for public.documents.rating + type: type: nullable underlying_type: + name: integer_set_input type: named - name: numeric - stddev_samp: - result_type: + status: + arguments: {} + description: New value wrapper for public.documents.status + type: type: nullable underlying_type: + name: text_set_input type: named - name: numeric - sum: - result_type: + tags: + arguments: {} + description: New value wrapper for public.documents.tags + type: type: nullable underlying_type: + name: text_set_input type: named - name: numeric - var_pop: - result_type: + title: + arguments: {} + description: New value wrapper for public.documents.title + type: type: nullable underlying_type: + name: text_set_input type: named - name: numeric - var_samp: - result_type: + updated_at: + arguments: {} + description: New value wrapper for public.documents.updated_at + type: type: nullable underlying_type: + name: timestamp_with_time_zone_set_input type: named - name: numeric - variance: - result_type: + uuid: + arguments: {} + description: New value wrapper for public.documents.uuid + type: type: nullable underlying_type: + name: uuid_set_input type: named - name: numeric - comparison_operators: - _eq: - type: equal - _gt: - type: custom - argument_type: - type: named - name: int8 - _gte: - type: custom - argument_type: - type: named - name: int8 - _in: - type: in - _lt: - type: custom - argument_type: - type: named - name: int8 - _lte: - type: custom - argument_type: - type: named - name: int8 - _neq: - type: custom - argument_type: - type: named - name: int8 - numeric: - representation: - type: bigdecimal - aggregate_functions: - avg: - result_type: + view_count: + arguments: {} + description: New value wrapper for public.documents.view_count + type: type: nullable underlying_type: + name: integer_set_input type: named - name: numeric - max: - result_type: + foreign_keys: {} + string_set_input: + description: Wrapper for setting scalar string + fields: + value: + arguments: {} + description: New value for scalar string + type: type: nullable underlying_type: + name: string type: named - name: numeric - min: - result_type: + foreign_keys: {} + text_set_input: + description: Wrapper for setting scalar text + fields: + value: + arguments: {} + description: New value for scalar text + type: type: nullable underlying_type: + name: text type: named - name: numeric - stddev: - result_type: + foreign_keys: {} + timestamp_with_time_zone_set_input: + description: Wrapper for setting scalar timestamp_with_time_zone + fields: + value: + arguments: {} + description: New value for scalar timestamp_with_time_zone + type: type: nullable underlying_type: + name: timestamp_with_time_zone type: named - name: numeric - stddev_pop: - result_type: + foreign_keys: {} + update_public.document_embeddings_result: + description: update from public.document_embeddings result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.document_embeddings + type: named + type: array + foreign_keys: {} + update_public.documents_result: + description: update from public.documents result + fields: + affected_rows: + arguments: {} + description: Number of affected rows + type: + name: int + type: named + returning: + arguments: {} + description: Objects that were affected by update + type: + element_type: + name: public.documents + type: named + type: array + foreign_keys: {} + uuid_set_input: + description: Wrapper for setting scalar uuid + fields: + value: + arguments: {} + description: New value for scalar uuid + type: type: nullable underlying_type: + name: uuid type: named - name: numeric - stddev_samp: - result_type: + foreign_keys: {} + vector(1536)_set_input: + description: Wrapper for setting scalar vector(1536) + fields: + value: + arguments: {} + description: New value for scalar vector(1536) + type: type: nullable underlying_type: + name: vector(1536) type: named - name: numeric - sum: - result_type: + foreign_keys: {} + procedures: + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: public.document_embeddings_insert_input + type: named + type: array + returning: + description: Fields to return + type: type: nullable underlying_type: - type: named - name: numeric - var_pop: - result_type: + element_type: + name: string + type: named + type: array + description: Insert into public.document_embeddings + name: insert_public.document_embeddings + result_type: + name: insert_public.document_embeddings_result + type: named + - arguments: + returning: + description: Fields to return + type: type: nullable underlying_type: - type: named - name: numeric - var_samp: - result_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.document_embeddings_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.document_embeddings + type: predicate + description: Update public.document_embeddings + name: update_public.document_embeddings + result_type: + name: update_public.document_embeddings_result + type: named + - arguments: + returning: + description: Fields to return + type: type: nullable underlying_type: + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.document_embeddings + type: predicate + description: Delete from public.document_embeddings + name: delete_public.document_embeddings + result_type: + name: delete_public.document_embeddings_result + type: named + - arguments: + objects: + description: Objects to insert + type: + element_type: + name: public.documents_insert_input type: named - name: numeric - variance: - result_type: + type: array + returning: + description: Fields to return + type: type: nullable underlying_type: - type: named - name: numeric + element_type: + name: string + type: named + type: array + description: Insert into public.documents + name: insert_public.documents + result_type: + name: insert_public.documents_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + set: + description: Values to set + type: + name: public.documents_set_input + type: named + where: + description: Filter for rows to update + type: + object_type_name: public.documents + type: predicate + description: Update public.documents + name: update_public.documents + result_type: + name: update_public.documents_result + type: named + - arguments: + returning: + description: Fields to return + type: + type: nullable + underlying_type: + element_type: + name: string + type: named + type: array + where: + description: Filter for rows to delete + type: + object_type_name: public.documents + type: predicate + description: Delete from public.documents + name: delete_public.documents + result_type: + name: delete_public.documents_result + type: named + scalar_types: + bigint: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: bigint + type: named + type: custom + stddev_samp: + result_type: + name: bigint + type: named + type: custom + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: bigint + type: named + type: custom + var_samp: + result_type: + name: bigint + type: named + type: custom comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: numeric + type: greater_than _gte: - type: custom - argument_type: - type: named - name: numeric + type: greater_than_or_equal _in: type: in _lt: - type: custom - argument_type: - type: named - name: numeric + type: less_than _lte: - type: custom - argument_type: - type: named - name: numeric + type: less_than_or_equal _neq: - type: custom argument_type: + name: bigint type: named - name: numeric - text: + type: custom representation: - type: string + type: biginteger + decimal: aggregate_functions: + avg: + result_type: decimal + type: average max: - result_type: - type: nullable - underlying_type: - type: named - name: text + type: max min: + type: min + stddev_pop: result_type: - type: nullable - underlying_type: - type: named - name: text - comparison_operators: - _eq: - type: equal - _gt: + name: decimal + type: named type: custom - argument_type: + stddev_samp: + result_type: + name: decimal type: named - name: text - _gte: type: custom - argument_type: + sum: + result_type: decimal + type: sum + var_pop: + result_type: + name: decimal type: named - name: text - _ilike: type: custom - argument_type: + var_samp: + result_type: + name: decimal type: named - name: text + type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal _in: type: in - _iregex: - type: custom + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: decimal type: named - name: text - _like: type: custom - argument_type: + representation: + type: bigdecimal + int: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: int type: named - name: text - _lt: type: custom - argument_type: + stddev_samp: + result_type: + name: int type: named - name: text - _lte: type: custom - argument_type: + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: int type: named - name: text - _neq: type: custom - argument_type: + var_samp: + result_type: + name: int type: named - name: text - _nilike: type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: int type: named - name: text - _niregex: type: custom - argument_type: + representation: + type: int32 + integer: + aggregate_functions: + avg: + result_type: decimal + type: average + max: + type: max + min: + type: min + stddev_pop: + result_type: + name: integer type: named - name: text - _nlike: type: custom - argument_type: + stddev_samp: + result_type: + name: integer type: named - name: text - _nregex: type: custom - argument_type: + sum: + result_type: bigint + type: sum + var_pop: + result_type: + name: integer type: named - name: text - _regex: type: custom - argument_type: + var_samp: + result_type: + name: integer type: named - name: text - starts_with: type: custom + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _in: + type: in + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: integer type: named - name: text - ts_match_tt: type: custom - argument_type: - type: named - name: text - timestamptz: representation: - type: timestamptz + type: int32 + string: aggregate_functions: max: - result_type: - type: nullable - underlying_type: - type: named - name: timestamptz + type: max min: - result_type: - type: nullable - underlying_type: - type: named - name: timestamptz + type: min comparison_operators: _eq: type: equal _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _ilike: + type: contains_insensitive + _in: + type: in + _iregex: + argument_type: + name: string + type: named type: custom + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: string type: named - name: timestamptz - _gte: type: custom + _nilike: argument_type: + name: string type: named - name: timestamptz - _in: - type: in - _lt: type: custom + _niregex: argument_type: + name: string type: named - name: timestamptz - _lte: type: custom + _nlike: argument_type: + name: string type: named - name: timestamptz - _neq: type: custom + _nregex: argument_type: + name: string type: named - name: timestamptz - uuid: + type: custom + _regex: + argument_type: + name: string + type: named + type: custom representation: - type: uuid - aggregate_functions: {} + type: string + text: + aggregate_functions: + max: + type: max + min: + type: min comparison_operators: _eq: type: equal _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _ilike: + type: contains_insensitive + _in: + type: in + _iregex: + argument_type: + name: text + type: named type: custom + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: text type: named - name: uuid - _gte: type: custom + _nilike: argument_type: + name: text + type: named + type: custom + _niregex: + argument_type: + name: text type: named - name: uuid - _in: - type: in - _lt: type: custom + _nlike: argument_type: + name: text type: named - name: uuid - _lte: type: custom + _nregex: argument_type: + name: text type: named - name: uuid - _neq: type: custom + _regex: argument_type: + name: text type: named - name: uuid - vector: + type: custom + representation: + type: string + timestamp_with_time_zone: aggregate_functions: - avg: - result_type: - type: nullable - underlying_type: - type: named - name: vector - sum: - result_type: - type: nullable - underlying_type: - type: named - name: vector + max: + type: max + min: + type: min comparison_operators: _eq: type: equal _gt: - type: custom - argument_type: - type: named - name: vector + type: greater_than _gte: - type: custom - argument_type: - type: named - name: vector + type: greater_than_or_equal _in: type: in _lt: - type: custom + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: timestamp_with_time_zone type: named - name: vector - _lte: type: custom + representation: + type: timestamptz + uuid: + aggregate_functions: + max: + type: max + min: + type: min + comparison_operators: + _eq: + type: equal + _gt: + type: greater_than + _gte: + type: greater_than_or_equal + _ilike: + type: contains_insensitive + _in: + type: in + _iregex: argument_type: + name: uuid type: named - name: vector - _neq: type: custom + _like: + type: contains + _lt: + type: less_than + _lte: + type: less_than_or_equal + _neq: argument_type: + name: uuid type: named - name: vector - object_types: - delete_document_embeddings_by_document_uuid_response: - description: Responses from the 'delete_document_embeddings_by_document_uuid' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: + type: custom + _nilike: + argument_type: + name: uuid type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: document_embeddings - delete_documents_by_uuid_response: - description: Responses from the 'delete_documents_by_uuid' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: + type: custom + _niregex: + argument_type: + name: uuid type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: documents - document_embeddings: - fields: - document_uuid: - type: + type: custom + _nlike: + argument_type: + name: uuid type: named + type: custom + _nregex: + argument_type: name: uuid - embeddings: - type: - type: nullable - underlying_type: - type: named - name: vector - document_vector_search: - fields: - distance: - type: - type: nullable - underlying_type: - type: named - name: float8 - document_uuid: - type: type: named + type: custom + _regex: + argument_type: name: uuid - documents: - fields: - body: - type: - type: nullable - underlying_type: - type: named - name: text - created_at: - type: - type: nullable - underlying_type: - type: named - name: timestamptz - language: - type: - type: nullable - underlying_type: - type: named - name: text - rating: - type: - type: nullable - underlying_type: - type: named - name: int4 - status: - type: - type: nullable - underlying_type: - type: named - name: text - tags: - type: - type: nullable - underlying_type: - type: named - name: text - title: - type: - type: nullable - underlying_type: - type: named - name: text - updated_at: - type: - type: nullable - underlying_type: - type: named - name: timestamptz - uuid: - type: type: named - name: uuid - view_count: - type: - type: nullable - underlying_type: - type: named - name: int4 - insert_document_embeddings_object: - fields: - document_uuid: - type: - type: named - name: uuid - embeddings: - type: - type: nullable - underlying_type: - type: named - name: vector - insert_document_embeddings_response: - description: Responses from the 'insert_document_embeddings' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: document_embeddings - insert_documents_object: - fields: - body: - type: - type: nullable - underlying_type: - type: named - name: text - created_at: - type: - type: nullable - underlying_type: - type: named - name: timestamptz - language: - type: - type: nullable - underlying_type: - type: named - name: text - rating: - type: - type: nullable - underlying_type: - type: named - name: int4 - status: - type: - type: nullable - underlying_type: - type: named - name: text - tags: - type: - type: nullable - underlying_type: - type: named - name: text - title: - type: - type: nullable - underlying_type: - type: named - name: text - updated_at: - type: - type: nullable - underlying_type: - type: named - name: timestamptz - uuid: - type: - type: nullable - underlying_type: - type: named - name: uuid - view_count: - type: - type: nullable - underlying_type: - type: named - name: int4 - insert_documents_response: - description: Responses from the 'insert_documents' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: documents - update_column_document_embeddings_document_uuid: - description: Update the 'document_uuid' column in the 'document_embeddings' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: uuid - update_column_document_embeddings_embeddings: - description: Update the 'embeddings' column in the 'document_embeddings' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: vector - update_column_documents_body: - description: Update the 'body' column in the 'documents' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: text - update_column_documents_created_at: - description: Update the 'created_at' column in the 'documents' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: timestamptz - update_column_documents_language: - description: Update the 'language' column in the 'documents' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: text - update_column_documents_rating: - description: Update the 'rating' column in the 'documents' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: int4 - update_column_documents_status: - description: Update the 'status' column in the 'documents' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: text - update_column_documents_tags: - description: Update the 'tags' column in the 'documents' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: text - update_column_documents_title: - description: Update the 'title' column in the 'documents' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: text - update_column_documents_updated_at: - description: Update the 'updated_at' column in the 'documents' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: timestamptz - update_column_documents_uuid: - description: Update the 'uuid' column in the 'documents' collection - fields: - _set: - description: Set the column to this value - type: - type: named - name: uuid - update_column_documents_view_count: - description: Update the 'view_count' column in the 'documents' collection - fields: - _set: - description: Set the column to this value - type: - type: nullable - underlying_type: - type: named - name: int4 - update_document_embeddings_by_document_uuid_response: - description: Responses from the 'update_document_embeddings_by_document_uuid' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: document_embeddings - update_document_embeddings_by_document_uuid_update_columns: - description: Update the columns of the 'document_embeddings' collection - fields: - document_uuid: - description: Update the 'document_uuid' column in the 'document_embeddings' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_document_embeddings_document_uuid - embeddings: - description: Update the 'embeddings' column in the 'document_embeddings' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_document_embeddings_embeddings - update_documents_by_uuid_response: - description: Responses from the 'update_documents_by_uuid' procedure - fields: - affected_rows: - description: The number of rows affected by the mutation - type: - type: named - name: int4 - returning: - description: Data from rows affected by the mutation - type: - type: array - element_type: - type: named - name: documents - update_documents_by_uuid_update_columns: - description: Update the columns of the 'documents' collection - fields: - body: - description: Update the 'body' column in the 'documents' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_documents_body - created_at: - description: Update the 'created_at' column in the 'documents' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_documents_created_at - language: - description: Update the 'language' column in the 'documents' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_documents_language - rating: - description: Update the 'rating' column in the 'documents' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_documents_rating - status: - description: Update the 'status' column in the 'documents' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_documents_status - tags: - description: Update the 'tags' column in the 'documents' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_documents_tags - title: - description: Update the 'title' column in the 'documents' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_documents_title - updated_at: - description: Update the 'updated_at' column in the 'documents' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_documents_updated_at - uuid: - description: Update the 'uuid' column in the 'documents' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_documents_uuid - view_count: - description: Update the 'view_count' column in the 'documents' collection. - type: - type: nullable - underlying_type: - type: named - name: update_column_documents_view_count - collections: - - name: document_embeddings - arguments: {} - type: document_embeddings - uniqueness_constraints: - document_embeddings_pkey: - unique_columns: - - document_uuid - foreign_keys: - document_embeddings_document_uuid_fkey: - column_mapping: - document_uuid: uuid - foreign_collection: documents - - name: documents - arguments: {} - type: documents - uniqueness_constraints: - documents_pkey: - unique_columns: - - uuid - foreign_keys: {} - - name: document_vector_search - arguments: - query_vector: - type: - type: named - name: vector - type: document_vector_search - uniqueness_constraints: {} - foreign_keys: {} - functions: [] - procedures: - - name: delete_document_embeddings_by_document_uuid - description: Delete any row on the 'document_embeddings' collection using the 'document_uuid' key - arguments: - key_document_uuid: - type: - type: named - name: uuid - pre_check: - description: Delete permission predicate over the 'document_embeddings' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: document_embeddings - result_type: - type: named - name: delete_document_embeddings_by_document_uuid_response - - name: delete_documents_by_uuid - description: Delete any row on the 'documents' collection using the 'uuid' key - arguments: - key_uuid: - type: - type: named - name: uuid - pre_check: - description: Delete permission predicate over the 'documents' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: documents - result_type: - type: named - name: delete_documents_by_uuid_response - - name: insert_document_embeddings - description: Insert into the document_embeddings table - arguments: - objects: - type: - type: array - element_type: - type: named - name: insert_document_embeddings_object - post_check: - description: Insert permission predicate over the 'document_embeddings' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: document_embeddings - result_type: - type: named - name: insert_document_embeddings_response - - name: insert_documents - description: Insert into the documents table - arguments: - objects: - type: - type: array - element_type: - type: named - name: insert_documents_object - post_check: - description: Insert permission predicate over the 'documents' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: documents - result_type: - type: named - name: insert_documents_response - - name: update_document_embeddings_by_document_uuid - description: Update any row on the 'document_embeddings' collection using the 'document_uuid' key - arguments: - key_document_uuid: - type: - type: named - name: uuid - post_check: - description: Update permission post-condition predicate over the 'document_embeddings' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: document_embeddings - pre_check: - description: Update permission pre-condition predicate over the 'document_embeddings' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: document_embeddings - update_columns: - type: - type: named - name: update_document_embeddings_by_document_uuid_update_columns - result_type: - type: named - name: update_document_embeddings_by_document_uuid_response - - name: update_documents_by_uuid - description: Update any row on the 'documents' collection using the 'uuid' key - arguments: - key_uuid: - type: - type: named - name: uuid - post_check: - description: Update permission post-condition predicate over the 'documents' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: documents - pre_check: - description: Update permission pre-condition predicate over the 'documents' collection - type: - type: nullable - underlying_type: - type: predicate - object_type_name: documents - update_columns: - type: + type: custom + representation: + type: string + vector(1536): + aggregate_functions: {} + comparison_operators: + _eq: + type: equal + _in: + type: in + _neq: + argument_type: + name: vector(1536) type: named - name: update_documents_by_uuid_update_columns - result_type: - type: named - name: update_documents_by_uuid_response + type: custom + representation: + type: json capabilities: - version: 0.1.6 capabilities: - query: - aggregates: {} - variables: {} - explain: {} - nested_fields: - filter_by: {} - order_by: {} - exists: - nested_collections: {} mutation: + explain: {} transactional: {} + query: + aggregates: + filter_by: {} + exists: {} explain: {} - relationships: - relation_comparisons: {} - order_by_aggregate: {} + nested_fields: {} + variables: {} + relational_query: + aggregate: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + group_by: {} + filter: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + join: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + join_types: + full: {} + inner: {} + left: {} + left_anti: {} + left_semi: {} + right: {} + right_anti: {} + right_semi: {} + project: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + sort: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + union: {} + window: + expression: + aggregate: + approx_distinct: {} + approx_percentile_cont: {} + avg: {} + bool_and: {} + bool_or: {} + count: + distinct: {} + first_value: {} + last_value: {} + max: {} + median: {} + min: {} + stddev: {} + stddev_pop: {} + string_agg: {} + sum: {} + var: {} + comparison: + between: {} + contains: {} + greater_than: {} + greater_than_eq: {} + ilike: {} + in_list: {} + is_false: {} + is_nan: {} + is_null: {} + is_true: {} + is_zero: {} + less_than: {} + less_than_eq: {} + like: {} + conditional: + case: {} + nullif: {} + scalar: + abs: {} + and: {} + array_element: {} + binary_concat: {} + btrim: {} + ceil: {} + character_length: {} + coalesce: {} + concat: {} + cos: {} + current_date: {} + current_time: {} + current_timestamp: {} + date_part: + day: {} + day_of_week: {} + day_of_year: {} + epoch: {} + hour: {} + microsecond: {} + millisecond: {} + minute: {} + month: {} + nanosecond: {} + quarter: {} + second: {} + week: {} + year: {} + date_trunc: {} + divide: {} + exp: {} + floor: {} + get_field: {} + greatest: {} + least: {} + left: {} + ln: {} + log: {} + log2: {} + log10: {} + lpad: {} + ltrim: {} + minus: {} + modulo: {} + multiply: {} + negate: {} + not: {} + nvl: {} + or: {} + plus: {} + power: {} + random: {} + replace: {} + reverse: {} + right: {} + round: {} + rpad: {} + rtrim: {} + sqrt: {} + str_pos: {} + substr: {} + substr_index: {} + tan: {} + to_date: {} + to_lower: {} + to_timestamp: {} + to_upper: {} + trunc: {} + window: + cume_dist: {} + dense_rank: {} + ntile: {} + percent_rank: {} + rank: {} + row_number: {} + version: 0.2.5 diff --git a/hasura/industry/telco/support/metadata/vector_search_service-types.hml b/hasura/industry/telco/support/metadata/vector_search_service-types.hml index 0a3ccdba..3396ca7b 100644 --- a/hasura/industry/telco/support/metadata/vector_search_service-types.hml +++ b/hasura/industry/telco/support/metadata/vector_search_service-types.hml @@ -3,18 +3,18 @@ kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: vector_search_service - dataConnectorScalarType: Float - representation: Float + dataConnectorScalarType: String + representation: String graphql: - comparisonExpressionTypeName: support_FloatComparisonExp + comparisonExpressionTypeName: support_StringComparisonExp_1 --- kind: DataConnectorScalarRepresentation version: v1 definition: dataConnectorName: vector_search_service - dataConnectorScalarType: String - representation: String + dataConnectorScalarType: Float + representation: Float graphql: - comparisonExpressionTypeName: support_StringComparisonExp_1 + comparisonExpressionTypeName: support_FloatComparisonExp diff --git a/hasura/industry/telco/support/metadata/vector_search_service.hml b/hasura/industry/telco/support/metadata/vector_search_service.hml index b7582365..c0758702 100644 --- a/hasura/industry/telco/support/metadata/vector_search_service.hml +++ b/hasura/industry/telco/support/metadata/vector_search_service.hml @@ -12,23 +12,36 @@ definition: Authorization: valueFromEnv: SUPPORT_VECTOR_SEARCH_SERVICE_AUTHORIZATION_HEADER schema: - version: v0.1 + version: v0.2 schema: - scalar_types: - Float: - representation: - type: float64 - aggregate_functions: {} - comparison_operators: - _eq: - type: equal - String: - representation: - type: string - aggregate_functions: {} - comparison_operators: - _eq: - type: equal + collections: [] + functions: + - arguments: + text: + description: String input for converting into embedding + type: + name: String + type: named + description: Generate embeddings for a collection of documents + name: generateEmbedding + result_type: + name: TextEmbeddingResponse + type: named + - arguments: + documents: + description: Array of document metadata + type: + element_type: + name: DocumentMetadata + type: named + type: array + description: Generate embeddings for a collection of documents + name: generateDocumentEmbeddings + result_type: + element_type: + name: DocumentEmbeddingResponse + type: named + type: array object_types: DocumentEmbeddingResponse: description: Interface for document embedding response @@ -43,6 +56,7 @@ definition: name: Float type: named type: array + foreign_keys: {} DocumentMetadata: description: Interface for document metadata fields: @@ -100,6 +114,7 @@ definition: underlying_type: name: Float type: named + foreign_keys: {} TextEmbeddingResponse: description: Interface for text embedding response fields: @@ -113,39 +128,27 @@ definition: type: name: String type: named - collections: [] - functions: - - name: generateEmbedding - description: Generate embeddings for a collection of documents - arguments: - text: - description: String input for converting into embedding - type: - name: String - type: named - result_type: - name: TextEmbeddingResponse - type: named - - name: generateDocumentEmbeddings - description: Generate embeddings for a collection of documents - arguments: - documents: - description: Array of document metadata - type: - element_type: - name: DocumentMetadata - type: named - type: array - result_type: - element_type: - name: DocumentEmbeddingResponse - type: named - type: array + foreign_keys: {} procedures: [] + scalar_types: + Float: + aggregate_functions: {} + comparison_operators: + _eq: + type: equal + representation: + type: float64 + String: + aggregate_functions: {} + comparison_operators: + _eq: + type: equal + representation: + type: string capabilities: - version: 0.1.6 capabilities: + mutation: {} query: - variables: {} nested_fields: {} - mutation: {} + variables: {} + version: 0.2.0 diff --git a/hasura/industry/telco/support/subgraph.yaml b/hasura/industry/telco/support/subgraph.yaml index b77f0bd3..70aeebc9 100644 --- a/hasura/industry/telco/support/subgraph.yaml +++ b/hasura/industry/telco/support/subgraph.yaml @@ -5,6 +5,7 @@ definition: generator: rootPath: . graphqlTypeNamePrefix: support_ + namingConvention: snake_case_v2 includePaths: - metadata envMapping: @@ -28,8 +29,6 @@ definition: fromEnv: SUPPORT_VECTOR_WRITE_URL SUPPORT_VECTOR_SEARCH_SERVICE_OPENAI_API_KEY: fromEnv: SUPPORT_VECTOR_SEARCH_SERVICE_OPENAI_API_KEY - SUPPORT_VECTOR_SEARCH_SERVICE_GQL_URL: - fromEnv: SUPPORT_VECTOR_SEARCH_SERVICE_GQL_URL connectors: - path: connector/atlas/connector.yaml connectorLinkName: atlas