@constructive-io/graphql-query 2.4.7 → 2.5.1
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/ast.d.ts +10 -38
- package/ast.js +291 -343
- package/custom-ast.d.ts +20 -3
- package/custom-ast.js +115 -15
- package/esm/ast.js +290 -340
- package/esm/custom-ast.js +111 -15
- package/esm/index.js +2 -341
- package/esm/meta-object/convert.js +14 -9
- package/esm/meta-object/format.json +56 -16
- package/esm/meta-object/validate.js +1 -1
- package/esm/query-builder.js +379 -0
- package/esm/types.js +24 -0
- package/index.d.ts +2 -21
- package/index.js +7 -346
- package/meta-object/convert.d.ts +62 -3
- package/meta-object/convert.js +14 -9
- package/meta-object/format.json +56 -16
- package/meta-object/validate.js +1 -1
- package/package.json +3 -3
- package/query-builder.d.ts +47 -0
- package/query-builder.js +416 -0
- package/types.d.ts +139 -0
- package/types.js +28 -0
package/ast.d.ts
CHANGED
|
@@ -1,38 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}) =>
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
query: any;
|
|
12
|
-
selection: any;
|
|
13
|
-
}) => import("graphql").DocumentNode;
|
|
14
|
-
export declare const getOne: ({ builder, queryName, operationName, query, selection }: {
|
|
15
|
-
builder: any;
|
|
16
|
-
queryName: any;
|
|
17
|
-
operationName: any;
|
|
18
|
-
query: any;
|
|
19
|
-
selection: any;
|
|
20
|
-
}) => import("graphql").DocumentNode;
|
|
21
|
-
export declare const createOne: ({ mutationName, operationName, mutation, selection }: {
|
|
22
|
-
mutationName: any;
|
|
23
|
-
operationName: any;
|
|
24
|
-
mutation: any;
|
|
25
|
-
selection: any;
|
|
26
|
-
}) => import("graphql").DocumentNode;
|
|
27
|
-
export declare const patchOne: ({ mutationName, operationName, mutation, selection }: {
|
|
28
|
-
mutationName: any;
|
|
29
|
-
operationName: any;
|
|
30
|
-
mutation: any;
|
|
31
|
-
selection: any;
|
|
32
|
-
}) => import("graphql").DocumentNode;
|
|
33
|
-
export declare const deleteOne: ({ mutationName, operationName, mutation }: {
|
|
34
|
-
mutationName: any;
|
|
35
|
-
operationName: any;
|
|
36
|
-
mutation: any;
|
|
37
|
-
}) => import("graphql").DocumentNode;
|
|
38
|
-
export declare function getSelections(selection?: any[]): import("graphql").FieldNode[];
|
|
1
|
+
import type { DocumentNode, FieldNode } from 'graphql';
|
|
2
|
+
import type { ASTFunctionParams, FieldSelection, MutationASTParams } from './types';
|
|
3
|
+
export declare const getAll: ({ queryName, operationName, query: _query, selection, }: ASTFunctionParams) => DocumentNode;
|
|
4
|
+
export declare const getCount: ({ queryName, operationName, query, }: Omit<ASTFunctionParams, "selection">) => DocumentNode;
|
|
5
|
+
export declare const getMany: ({ builder, queryName, operationName, query, selection, }: ASTFunctionParams) => DocumentNode;
|
|
6
|
+
export declare const getOne: ({ queryName, operationName, query, selection, }: ASTFunctionParams) => DocumentNode;
|
|
7
|
+
export declare const createOne: ({ mutationName, operationName, mutation, selection, }: MutationASTParams) => DocumentNode;
|
|
8
|
+
export declare const patchOne: ({ mutationName, operationName, mutation, selection, }: MutationASTParams) => DocumentNode;
|
|
9
|
+
export declare const deleteOne: ({ mutationName, operationName, mutation, }: Omit<MutationASTParams, "selection">) => DocumentNode;
|
|
10
|
+
export declare function getSelections(selection?: FieldSelection[]): FieldNode[];
|