@query-farm/vgi 0.41.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +34 -1
- package/dist/index.js.map +5 -4
- package/dist/protocol/dispatch.d.ts +13 -0
- package/dist/protocol/handlers/unimplemented.d.ts +17 -0
- package/dist/serve-entry.js +34 -1
- package/dist/serve-entry.js.map +5 -4
- package/dist/worker-cf-entry.js +34 -1
- package/dist/worker-cf-entry.js.map +5 -4
- package/package.json +1 -1
- package/src/protocol/dispatch.ts +16 -0
- package/src/protocol/handlers/unimplemented.ts +74 -0
package/dist/index.js
CHANGED
|
@@ -12998,6 +12998,38 @@ function registerCatalogMethods(protocol, catalog, _catalogName, signingKey) {
|
|
|
12998
12998
|
registerCatalogIndexMethods(protocol, getCatalog, signingKey);
|
|
12999
12999
|
}
|
|
13000
13000
|
|
|
13001
|
+
// src/protocol/handlers/unimplemented.ts
|
|
13002
|
+
import { MethodNotImplementedError } from "@query-farm/vgi-rpc";
|
|
13003
|
+
var UNIMPLEMENTED_METHODS = [
|
|
13004
|
+
{ name: "aggregate_streaming_open", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
|
|
13005
|
+
{ name: "aggregate_streaming_chunk", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
|
|
13006
|
+
{ name: "aggregate_streaming_close", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
|
|
13007
|
+
{ name: "aggregate_window_init", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
|
|
13008
|
+
{ name: "aggregate_window", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
|
|
13009
|
+
{ name: "aggregate_window_batch", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
|
|
13010
|
+
{ name: "aggregate_window_destructor", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
|
|
13011
|
+
{ name: "catalog_index_create", params: CatalogIndexCreateParamsSchema, result: emptyResultSchema },
|
|
13012
|
+
{ name: "catalog_index_drop", params: CatalogIndexDropParamsSchema, result: emptyResultSchema },
|
|
13013
|
+
{ name: "catalog_table_column_comment_set", params: CatalogTableColumnCommentSetParamsSchema, result: emptyResultSchema },
|
|
13014
|
+
{ name: "catalog_table_insert_function_get", params: CatalogTableInsertFunctionGetParamsSchema, result: RESULT_BINARY_SCHEMA },
|
|
13015
|
+
{ name: "catalog_table_update_function_get", params: CatalogTableUpdateFunctionGetParamsSchema, result: RESULT_BINARY_SCHEMA },
|
|
13016
|
+
{ name: "catalog_table_delete_function_get", params: CatalogTableDeleteFunctionGetParamsSchema, result: RESULT_BINARY_SCHEMA }
|
|
13017
|
+
];
|
|
13018
|
+
function unimplementedMessage(method) {
|
|
13019
|
+
return `${method} is not implemented by this worker`;
|
|
13020
|
+
}
|
|
13021
|
+
function registerUnimplementedMethods(protocol) {
|
|
13022
|
+
for (const m of UNIMPLEMENTED_METHODS) {
|
|
13023
|
+
protocol.unary(m.name, {
|
|
13024
|
+
params: m.params,
|
|
13025
|
+
result: m.result,
|
|
13026
|
+
handler: async () => {
|
|
13027
|
+
throw new MethodNotImplementedError(unimplementedMessage(m.name));
|
|
13028
|
+
}
|
|
13029
|
+
});
|
|
13030
|
+
}
|
|
13031
|
+
}
|
|
13032
|
+
|
|
13001
13033
|
// src/protocol/dispatch.ts
|
|
13002
13034
|
var VGI_PROTOCOL_NAME = "vgi.v2";
|
|
13003
13035
|
function buildVgiProtocol(config) {
|
|
@@ -13010,6 +13042,7 @@ function buildVgiProtocol(config) {
|
|
|
13010
13042
|
registerAggregateMethods(protocol, config.registry);
|
|
13011
13043
|
registerTableBufferingMethods(protocol, config.registry, config.signingKey);
|
|
13012
13044
|
registerCatalogMethods(protocol, config.catalogInterface, config.catalogName, config.signingKey);
|
|
13045
|
+
registerUnimplementedMethods(protocol);
|
|
13013
13046
|
return protocol;
|
|
13014
13047
|
}
|
|
13015
13048
|
// src/http/landing-html.ts
|
|
@@ -14767,4 +14800,4 @@ export {
|
|
|
14767
14800
|
utf82 as utf8
|
|
14768
14801
|
};
|
|
14769
14802
|
|
|
14770
|
-
//# debugId=
|
|
14803
|
+
//# debugId=94D9493DB61AA87264756E2164756E21
|