From 6c920cda6443e832be39eae9c9fb5d62dca64790 Mon Sep 17 00:00:00 2001 From: Lyndon Maydwell Date: Mon, 27 Nov 2023 17:26:50 +1000 Subject: [PATCH] Updating the TS SDK to 1.2.4 and fixing incorrectly required insert_schema field --- src/connector.ts | 11 ++--------- src/mod.ts | 4 ++-- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/connector.ts b/src/connector.ts index fe1766a..728940f 100644 --- a/src/connector.ts +++ b/src/connector.ts @@ -3,8 +3,7 @@ import { FunctionPositions, ProgramInfo, programInfo, Struct } from "./infer.ts" import { resolve } from "https://deno.land/std@0.203.0/path/mod.ts"; import { JSONSchemaObject } from "npm:@json-schema-tools/meta-schema"; -import * as sdk from 'npm:@hasura/ndc-sdk-typescript@1.2.3'; -export * as sdk from 'npm:@hasura/ndc-sdk-typescript@1.2.3'; +import sdk from 'npm:@hasura/ndc-sdk-typescript@1.2.4'; /** * Implementation of the Connector interface for Deno connector. @@ -59,9 +58,7 @@ export const CONFIGURATION_SCHEMA: JSONSchemaObject = { export const CAPABILITIES_RESPONSE: sdk.CapabilitiesResponse = { versions: "^0.1.0", capabilities: { - query: { }, - mutations: { - returning: {} + query: { }, }, }; @@ -236,10 +233,6 @@ export const connector: sdk.Connector = { return CAPABILITIES_RESPONSE; }, - get_configuration_schema(): JSONSchemaObject { - return CONFIGURATION_SCHEMA; - }, - make_empty_configuration(): Configuration { const conf: Configuration = { functions: './functions/index.ts', diff --git a/src/mod.ts b/src/mod.ts index 47f6696..ee39cdf 100644 --- a/src/mod.ts +++ b/src/mod.ts @@ -6,9 +6,9 @@ // NOTE: Ensure that sdk matches version in connector.ts import * as commander from 'npm:commander@11.0.0'; -import * as path from "https://deno.land/std@0.203.0/path/mod.ts"; import { programInfo } from './infer.ts' -import { connector, sdk } from './connector.ts' +import { connector } from './connector.ts' +import sdk from 'npm:@hasura/ndc-sdk-typescript@1.2.4'; const inferCommand = new commander.Command("infer") .argument('', 'Typescript source entrypoint')