Skip to content

Commit

Permalink
update SDK to v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TristenHarr committed Aug 8, 2024
1 parent f516a6a commit b167ecb
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions connector-definition/connector-metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
7 changes: 2 additions & 5 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -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: {}
},
Expand All @@ -18,7 +16,6 @@ export const CAPABILITIES_RESPONSE: CapabilitiesResponse = {
relationships: {
order_by_aggregate: {}
}
},
};
export const SCALAR_TYPES: { [key: string]: ScalarType } = {
Int: {
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
QueryResponse,
MutationRequest,
MutationResponse,
CapabilitiesResponse,
Capabilities,
ExplainResponse,
start,
Connector,
Expand Down Expand Up @@ -99,7 +99,7 @@ const connector: Connector<Configuration, State> = {
* from the NDC specification.
* @param configuration
*/
getCapabilities(_: Configuration): CapabilitiesResponse {
getCapabilities(_: Configuration): Capabilities {
return CAPABILITIES_RESPONSE;
},

Expand Down Expand Up @@ -215,7 +215,7 @@ const connector: Connector<Configuration, State> = {
* @param configuration
* @param state
*/
healthCheck(_: Configuration, __: State): Promise<undefined> {
getHealthReadiness(_: Configuration, __: State): Promise<undefined> {
// TODO
// https://qdrant.github.io/qdrant/redoc/index.html#tag/service/operation/healthz
return Promise.resolve(undefined);
Expand Down

0 comments on commit b167ecb

Please sign in to comment.