Skip to content

Commit

Permalink
update SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
TristenHarr committed Aug 8, 2024
1 parent 1d840db commit ecd084a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ This changelog documents changes between release tags.
## [Unreleased]
Upcoming changes for the next versioned release.

## [0.0.30]
* Update SDK version

## [0.0.29]
* Update connector-metadata to use proper version

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-turso:v0.0.29
dockerImage: ghcr.io/hasura/ndc-turso:v0.0.30
supportedEnvironmentVariables:
- name: TURSO_URL
description: The url for the Turso database
Expand All @@ -9,7 +9,7 @@ supportedEnvironmentVariables:
commands:
update:
type: Dockerized
dockerImage: ghcr.io/hasura/ndc-turso:v0.0.29
dockerImage: ghcr.io/hasura/ndc-turso:v0.0.30
commandArgs:
- update
dockerComposeWatch:
Expand Down
12 changes: 6 additions & 6 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,14 +1,14 @@
{
"name": "ndc-turso",
"version": "0.0.29",
"version": "0.0.30",
"main": "index.js",
"author": "Tristen Harr",
"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",
"@json-schema-tools/meta-schema": "^1.7.0",
"@libsql/client": "^0.5.2",
"@types/node": "^20.6.0",
Expand Down
7 changes: 2 additions & 5 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { CapabilitiesResponse, ObjectField, ObjectType, ScalarType } from "@hasura/ndc-sdk-typescript";
import { Capabilities, ObjectField, ObjectType, ScalarType } from "@hasura/ndc-sdk-typescript";
export const MAX_32_INT: number = 2147483647;
export const CAPABILITIES_RESPONSE: CapabilitiesResponse = {
version: "0.1.5",
capabilities: {
export const CAPABILITIES_RESPONSE: Capabilities = {
query: {
variables: {}
},
Expand All @@ -14,7 +12,6 @@ export const CAPABILITIES_RESPONSE: CapabilitiesResponse = {
order_by_aggregate: {},
relation_comparisons: {}
}
},
};
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 @@ -5,7 +5,7 @@ import {
QueryResponse,
MutationRequest,
MutationResponse,
CapabilitiesResponse,
Capabilities,
ExplainResponse,
start,
Connector,
Expand Down Expand Up @@ -112,7 +112,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 @@ -224,7 +224,7 @@ const connector: Connector<Configuration, State> = {
* @param configuration
* @param state
*/
healthCheck(_: Configuration, __: State): Promise<undefined> {
getHealthReadiness(_: Configuration, __: State): Promise<undefined> {
// TODO
return Promise.resolve(undefined);
},
Expand Down

0 comments on commit ecd084a

Please sign in to comment.