waii-sdk-js
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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: { |
{ | ||
"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 @@ |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
91417
27
860
2
2
+ Addedjs-yaml@^4.1.0
+ Addedargparse@2.0.1(transitive)
+ Addedjs-yaml@4.1.0(transitive)