@astrale-os/sdk 0.6.0-beta.44 → 0.6.0-beta.45
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.
|
@@ -9,7 +9,8 @@ export interface QueryRequestOptions {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* The client a Query reads through, as a Kernel Client session serves it: a v7 document per
|
|
12
|
-
* request, or a V6 Query's AST page by page.
|
|
12
|
+
* request, or a V6 Query's AST page by page. A client that serves V6 Queries only implements
|
|
13
|
+
* `QueryV6Client`.
|
|
13
14
|
*/
|
|
14
15
|
export interface QueryClient {
|
|
15
16
|
query<Query extends QueryDocument>(query: Query, options: QueryRequestOptions): Promise<unknown>;
|
|
@@ -12,5 +12,5 @@ export type { QueryDocument } from './language/query.js';
|
|
|
12
12
|
export type { QueryRequestOptions } from './execution/client.js';
|
|
13
13
|
export { isQueryError, QueryError, type QueryErrorCode, type QueryErrorDetails, } from './execution/error.js';
|
|
14
14
|
export { runQuery, type QueryOptions, type QueryPageOptions } from './execution/run.js';
|
|
15
|
-
export { defineCollectionQuery, queryResult, type CollectionQueryDefinition, type CollectionQuerySpec, type CollectionValue, type CompleteQueryProjectionContext, type PaginatedQuery, type ProjectedQuery, type QueryAstOf, type QueryPages, type QueryProjectionContext, type RawQuery, type SingleQuery, type SingleQueryDefinition, } from './legacy/v6/index.js';
|
|
15
|
+
export { defineCollectionQuery, queryResult, type CollectionQueryDefinition, type CollectionQuerySpec, type CollectionValue, type CompleteQueryProjectionContext, type PaginatedQuery, type ProjectedQuery, type QueryAstOf, type QueryPages, type QueryProjectionContext, type QueryV6Client, type RawQuery, type SingleQuery, type SingleQueryDefinition, } from './legacy/v6/index.js';
|
|
16
16
|
export * from './legacy/v6/kernel.js';
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
export { defineCollectionQuery, defineQuery } from './define.js';
|
|
3
3
|
export type { CollectionQuerySpec } from './collection/metadata.js';
|
|
4
4
|
export type { CollectionQueryDefinition, CollectionValue, QueryAstOf, SingleQueryDefinition, } from '../../query.js';
|
|
5
|
+
export type { QueryV6Client } from './execution/execute.js';
|
|
5
6
|
export { queryResult } from './single/index.js';
|
|
6
7
|
export type { CompleteQueryProjectionContext, PaginatedQuery, ProjectedQuery, QueryPages, QueryProjectionContext, RawQuery, SingleQuery, } from './single/index.js';
|