@conduit-client/graphql-normalization 2.0.1 → 3.0.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.
|
@@ -377,7 +377,7 @@ export declare class TestAuraNormalizedCacheControlCommand extends AuraNormalize
|
|
|
377
377
|
fragments: GraphQLFragmentDefinitions;
|
|
378
378
|
};
|
|
379
379
|
};
|
|
380
|
-
parentFieldSelection: import("graphql/
|
|
380
|
+
parentFieldSelection: import("@conduit-client/onestore-graphql-parser/v1").FieldNode | undefined;
|
|
381
381
|
type: string;
|
|
382
382
|
keyParams: null;
|
|
383
383
|
};
|
|
@@ -24,6 +24,6 @@ export declare abstract class BaseGraphQLTypeRepository<Data extends GraphQLData
|
|
|
24
24
|
protected getFieldDef(input: NormalizeDataInput<Data, NormalizedData, GraphQLInputExtension & ExtraInputExtension> | DenormalizeDataInput<NormalizedData, GraphQLInputExtension & ExtraInputExtension> | undefined, selection: FieldNode): FieldDef<Data, NormalizedData> | undefined;
|
|
25
25
|
shouldProcessFragment(input: NormalizeDataInput<Data, NormalizedData, GraphQLInputExtension & ExtraInputExtension> | DenormalizeDataInput<NormalizedData, GraphQLInputExtension & ExtraInputExtension>, fragment: InlineFragmentNode | FragmentDefinitionNode): Result<boolean, Error>;
|
|
26
26
|
satisfiesFragmentTypeCondition(_input: NormalizeDataInput<Data, NormalizedData, GraphQLInputExtension & ExtraInputExtension> | DenormalizeDataInput<NormalizedData, GraphQLInputExtension & ExtraInputExtension> | undefined, fragment: InlineFragmentNode | FragmentDefinitionNode): Result<boolean, Error>;
|
|
27
|
-
protected getCacheKeyFieldArguments(selection: FieldNode): readonly import("graphql/
|
|
27
|
+
protected getCacheKeyFieldArguments(selection: FieldNode): readonly import("@conduit-client/onestore-graphql-parser/v1").ArgumentNode[] | undefined;
|
|
28
28
|
buildFieldKey(selection: FieldNode, variables: GraphQLVariables): Result<string, Error>;
|
|
29
29
|
}
|
package/dist/types/v1/types.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { SyncOrAsync, SubscribableResult } from '@conduit-client/utils';
|
|
2
|
+
import type { Command } from '@conduit-client/command-base/v1';
|
|
1
3
|
import { DocumentNode, FieldNode, FragmentDefinitionNode, SelectionNode, VariableDefinitionNode } from '@conduit-client/onestore-graphql-parser/v1';
|
|
2
4
|
import { QueryParams } from '@conduit-client/pagination';
|
|
5
|
+
import { GraphQLCommandError } from './errors';
|
|
3
6
|
export interface GraphQLRequestParams {
|
|
4
7
|
query: DocumentNode;
|
|
5
8
|
variables?: Record<string, any>;
|
|
@@ -50,3 +53,4 @@ export type GraphQLVariables = Record<string, {
|
|
|
50
53
|
value: unknown;
|
|
51
54
|
}>;
|
|
52
55
|
export type GraphQLFragmentDefinitions = Record<string, FragmentDefinitionNode>;
|
|
56
|
+
export type GraphQLCommand = Command<SyncOrAsync<SubscribableResult<GraphQLResponse, GraphQLCommandError>>>;
|
|
@@ -19,7 +19,7 @@ export declare abstract class BaseInterfaceRepository<Data = unknown, Normalized
|
|
|
19
19
|
protected getTypeDiscriminator(data: any, selections: SelectionNode[]): any;
|
|
20
20
|
protected verifyInterfaceFields(selections: readonly SelectionNode[]): (ReadErrors & WriteErrors) | void;
|
|
21
21
|
buildFieldKey(selection: FieldNode, variables: GraphQLVariables): Result<string, Error>;
|
|
22
|
-
protected getCacheKeyFieldArguments(selection: FieldNode): readonly import("graphql/
|
|
22
|
+
protected getCacheKeyFieldArguments(selection: FieldNode): readonly import("@conduit-client/onestore-graphql-parser/v1").ArgumentNode[] | undefined;
|
|
23
23
|
}
|
|
24
24
|
export declare abstract class BaseUnionRepository<Data = unknown, NormalizedData = unknown, ExtraInputExtension extends Record<string, any> = Record<string, unknown>> implements GraphQLTypeRepository<Data, NormalizedData, ExtraInputExtension> {
|
|
25
25
|
protected services: {};
|
|
@@ -34,5 +34,5 @@ export declare abstract class BaseUnionRepository<Data = unknown, NormalizedData
|
|
|
34
34
|
protected getTypeDiscriminator(data: any, selections: SelectionNode[]): any;
|
|
35
35
|
protected verifyUnionFields(selections: readonly SelectionNode[]): (ReadErrors & WriteErrors) | void;
|
|
36
36
|
buildFieldKey(selection: FieldNode, variables: GraphQLVariables): Result<string, Error>;
|
|
37
|
-
protected getCacheKeyFieldArguments(selection: FieldNode): readonly import("graphql/
|
|
37
|
+
protected getCacheKeyFieldArguments(selection: FieldNode): readonly import("@conduit-client/onestore-graphql-parser/v1").ArgumentNode[] | undefined;
|
|
38
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conduit-client/graphql-normalization",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Luvio GraphQL Normalization",
|
|
6
6
|
"type": "module",
|
|
@@ -32,17 +32,18 @@
|
|
|
32
32
|
"watch": "npm run build --watch"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@conduit-client/onestore-graphql-parser": "
|
|
36
|
-
"@conduit-client/pagination": "
|
|
37
|
-
"@conduit-client/service-cache": "
|
|
38
|
-
"@conduit-client/service-pubsub": "
|
|
39
|
-
"@conduit-client/type-normalization": "
|
|
40
|
-
"@conduit-client/utils": "
|
|
35
|
+
"@conduit-client/onestore-graphql-parser": "3.0.0",
|
|
36
|
+
"@conduit-client/pagination": "3.0.0",
|
|
37
|
+
"@conduit-client/service-cache": "3.0.0",
|
|
38
|
+
"@conduit-client/service-pubsub": "3.0.0",
|
|
39
|
+
"@conduit-client/type-normalization": "3.0.0",
|
|
40
|
+
"@conduit-client/utils": "3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@conduit-client/command-aura-normalized-cache-control": "
|
|
44
|
-
"@conduit-client/
|
|
45
|
-
"@conduit-client/service-cache-
|
|
43
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.0.0",
|
|
44
|
+
"@conduit-client/command-base": "3.0.0",
|
|
45
|
+
"@conduit-client/service-cache-control": "3.0.0",
|
|
46
|
+
"@conduit-client/service-cache-inclusion-policy": "3.0.0"
|
|
46
47
|
},
|
|
47
48
|
"volta": {
|
|
48
49
|
"extends": "../../../package.json"
|