@astrale-os/kernel-client 0.6.0-beta.13 → 0.6.0-beta.15
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/store/store.d.ts +2 -3
- package/package.json +1 -1
package/dist/store/store.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { MutationAST, MutationInput, MutationResult } from '@astrale-os/kernel-core/graph/mutate';
|
|
2
2
|
import type { QueryAST, QueryResultFor } from '@astrale-os/kernel-core/graph/query';
|
|
3
3
|
import type { QueryResponse } from '../graph/index.js';
|
|
4
|
-
import type { GraphApi, GraphQueryOptions, MutationAuthor } from '../graph/index.js';
|
|
5
|
-
import type { RequestOptions } from '../transport/index.js';
|
|
4
|
+
import type { GraphApi, GraphMutationOptions, GraphQueryOptions, MutationAuthor } from '../graph/index.js';
|
|
6
5
|
export type StoreQuery = QueryAST;
|
|
7
6
|
export type StoreQueryResponse<Query extends StoreQuery = StoreQuery> = QueryResponse<QueryResultFor<Query>>;
|
|
8
7
|
export interface StoreReadOptions extends GraphQueryOptions {
|
|
9
8
|
readonly freshness?: 'cached' | 'refresh';
|
|
10
9
|
}
|
|
11
|
-
export interface StoreMutationOptions extends
|
|
10
|
+
export interface StoreMutationOptions extends GraphMutationOptions {
|
|
12
11
|
readonly optimistic?: boolean;
|
|
13
12
|
}
|
|
14
13
|
export type StoreSnapshot<Query extends StoreQuery = StoreQuery> = {
|