New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

waii-sdk-js

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waii-sdk-js - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

dist/samples/auto_complete_test.d.ts

13

dist/clients/query/src/Query.d.ts

@@ -66,2 +66,12 @@ import { SearchContext, TableName, Column } from "../../database/src/Database";

type LikeQueryResponse = {};
type AutoCompleteRequest = {
text: string;
cursor_offset?: number;
dialect?: string;
search_context?: SearchContext[];
max_output_tokens?: number;
};
type AutoCompleteResponse = {
text?: string;
};
export declare let Query: {

@@ -75,4 +85,5 @@ generate: (params: QueryGenerationRequest, signal?: AbortSignal) => Promise<GeneratedQuery>;

describe: (params: DescribeQueryRequest, signal?: AbortSignal) => Promise<DescribeQueryResponse>;
autoComplete: (params: AutoCompleteRequest, signal?: AbortSignal) => Promise<AutoCompleteResponse>;
};
export default Query;
export { GetQueryResultRequest, GetQueryResultResponse, GeneratedQuery, QueryGenerationRequest, RunQueryRequest, RunQueryResponse, LikeQueryRequest, LikeQueryResponse, DescribeQueryRequest, DescribeQueryResponse, CancelQueryRequest, CancelQueryResponse, Tweak };
export { GetQueryResultRequest, GetQueryResultResponse, GeneratedQuery, QueryGenerationRequest, RunQueryRequest, RunQueryResponse, LikeQueryRequest, LikeQueryResponse, DescribeQueryRequest, DescribeQueryResponse, CancelQueryRequest, CancelQueryResponse, Tweak, AutoCompleteRequest, AutoCompleteResponse };

@@ -24,2 +24,3 @@ "use strict";

const CANCEL_ENDPOINT = 'cancel-query';
const AUTOCOMPLETE_ENDPOINT = 'auto-complete';
exports.Query = (function () {

@@ -48,4 +49,7 @@ return {

}),
autoComplete: (params, signal) => __awaiter(this, void 0, void 0, function* () {
return WaiiHttpClient_1.default.getInstance().commonFetch(AUTOCOMPLETE_ENDPOINT, params, signal);
})
};
})();
exports.default = exports.Query;

@@ -20,2 +20,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
console.log('-----Initializing WAII-----');
waii_sdk_1.default.initialize(connection, '');

@@ -22,0 +23,0 @@ let dbConnection = yield waii_sdk_1.default.Database.modifyConnections({

@@ -17,2 +17,3 @@ export declare let WAII: {

describe: (params: import("../clients/query/src/Query").DescribeQueryRequest, signal?: AbortSignal | undefined) => Promise<import("../clients/query/src/Query").DescribeQueryResponse>;
autoComplete: (params: import("../clients/query/src/Query").AutoCompleteRequest, signal?: AbortSignal | undefined) => Promise<import("../clients/query/src/Query").AutoCompleteResponse>;
};

@@ -19,0 +20,0 @@ Database: {

5

package.json
{
"name": "waii-sdk-js",
"version": "1.0.3",
"version": "1.0.4",
"description": "Typescript / Javascript SDK for the waii api. SQL generation and much more.",

@@ -26,4 +26,5 @@ "main": "dist/src/waii-sdk.js",

"dependencies": {
"uuid": "^9.0.0"
"uuid": "^9.0.0",
"js-yaml": "^4.1.0"
}
}

@@ -7,2 +7,3 @@ import WAII from '../src/waii-sdk';

async function main() {
console.log('-----Initializing WAII-----');
WAII.initialize(connection, '');

@@ -9,0 +10,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc