From b167ecb903ef066a819c2166ee45d07f4a303820 Mon Sep 17 00:00:00 2001 From: Tristen Harr Date: Thu, 8 Aug 2024 14:35:05 -0500 Subject: [PATCH] update SDK to v6.0.0 --- CHANGELOG.md | 3 +++ connector-definition/connector-metadata.yaml | 4 ++-- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- src/constants.ts | 7 ++----- src/index.ts | 6 +++--- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e1aeb9..3ebfde7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Qdrant Connector Changelog This changelog documents changes between release tags. +## [0.2.5] - 2024-08-08 +* Update SDK to v6.0.0 + ## [0.2.4] - 2024-08-08 * Update connector-definition versions diff --git a/connector-definition/connector-metadata.yaml b/connector-definition/connector-metadata.yaml index 8b0aff7..97939b7 100644 --- a/connector-definition/connector-metadata.yaml +++ b/connector-definition/connector-metadata.yaml @@ -1,6 +1,6 @@ packagingDefinition: type: PrebuiltDockerImage - dockerImage: ghcr.io/hasura/ndc-qdrant:v0.2.4 + dockerImage: ghcr.io/hasura/ndc-qdrant:v0.2.5 supportedEnvironmentVariables: - name: QDRANT_URL description: The url for the Qdrant database @@ -9,7 +9,7 @@ supportedEnvironmentVariables: commands: update: type: Dockerized - dockerImage: ghcr.io/hasura/ndc-qdrant:v0.2.4 + dockerImage: ghcr.io/hasura/ndc-qdrant:v0.2.5 commandArgs: - update dockerComposeWatch: diff --git a/package-lock.json b/package-lock.json index dfea697..16c8ff2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,14 @@ { "name": "ndc-qdrant", - "version": "0.2.4", + "version": "0.2.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ndc-qdrant", - "version": "0.2.4", + "version": "0.2.5", "dependencies": { - "@hasura/ndc-sdk-typescript": "^5.2.0", + "@hasura/ndc-sdk-typescript": "^6.0.0", "@qdrant/js-client-rest": "^1.5.0" }, "devDependencies": { @@ -91,9 +91,9 @@ } }, "node_modules/@hasura/ndc-sdk-typescript": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-5.2.0.tgz", - "integrity": "sha512-XLfFGC5bz0En5J3JZzouRl5bS/qfvJrTNJA6sq7hQ09gk0qSNNCzaKHg0UZK6a1HeoOCsfAW4/S4633sWn9HjQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-6.0.0.tgz", + "integrity": "sha512-iLC7IAh2rsW7iyt6swLyOpk0zL32d5LeGN+KSJNJEO6n8eXKsjQpJZBsqKEYOyGcfSlbNqTC1qsobbtwe7Bjyw==", "dependencies": { "@json-schema-tools/meta-schema": "^1.7.0", "@opentelemetry/api": "^1.8.0", @@ -2323,9 +2323,9 @@ } }, "@hasura/ndc-sdk-typescript": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-5.2.0.tgz", - "integrity": "sha512-XLfFGC5bz0En5J3JZzouRl5bS/qfvJrTNJA6sq7hQ09gk0qSNNCzaKHg0UZK6a1HeoOCsfAW4/S4633sWn9HjQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@hasura/ndc-sdk-typescript/-/ndc-sdk-typescript-6.0.0.tgz", + "integrity": "sha512-iLC7IAh2rsW7iyt6swLyOpk0zL32d5LeGN+KSJNJEO6n8eXKsjQpJZBsqKEYOyGcfSlbNqTC1qsobbtwe7Bjyw==", "requires": { "@json-schema-tools/meta-schema": "^1.7.0", "@opentelemetry/api": "^1.8.0", diff --git a/package.json b/package.json index ae96d81..e36964a 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "ndc-qdrant", - "version": "0.2.4", + "version": "0.2.5", "main": "index.js", "scripts": { "start": "ts-node ./src/index.ts serve --configuration=.", "generate-config": "ts-node generate-config" }, "dependencies": { - "@hasura/ndc-sdk-typescript": "^5.2.0", + "@hasura/ndc-sdk-typescript": "^6.0.0", "@qdrant/js-client-rest": "^1.5.0" }, "devDependencies": { diff --git a/src/constants.ts b/src/constants.ts index c684e7f..26ce58f 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,13 +1,11 @@ import { - CapabilitiesResponse, + Capabilities, ScalarType, ObjectField, ObjectType, } from "@hasura/ndc-sdk-typescript"; const ID_FIELD_TYPE: "Int" | "String" = "Int"; -export const CAPABILITIES_RESPONSE: CapabilitiesResponse = { - version: "0.1.5", - capabilities: { +export const CAPABILITIES_RESPONSE: Capabilities = { query: { variables: {} }, @@ -18,7 +16,6 @@ export const CAPABILITIES_RESPONSE: CapabilitiesResponse = { relationships: { order_by_aggregate: {} } - }, }; export const SCALAR_TYPES: { [key: string]: ScalarType } = { Int: { diff --git a/src/index.ts b/src/index.ts index d76b260..b0c6e33 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ import { QueryResponse, MutationRequest, MutationResponse, - CapabilitiesResponse, + Capabilities, ExplainResponse, start, Connector, @@ -99,7 +99,7 @@ const connector: Connector = { * from the NDC specification. * @param configuration */ - getCapabilities(_: Configuration): CapabilitiesResponse { + getCapabilities(_: Configuration): Capabilities { return CAPABILITIES_RESPONSE; }, @@ -215,7 +215,7 @@ const connector: Connector = { * @param configuration * @param state */ - healthCheck(_: Configuration, __: State): Promise { + getHealthReadiness(_: Configuration, __: State): Promise { // TODO // https://qdrant.github.io/qdrant/redoc/index.html#tag/service/operation/healthz return Promise.resolve(undefined);