@tinacms/graphql 1.4.15 → 1.4.16
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/database/index.d.ts +0 -1
- package/dist/database/util.d.ts +17 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +548 -472
- package/dist/index.js +555 -476
- package/dist/resolver/index.d.ts +28 -2
- package/dist/schema/validate.d.ts +1 -1
- package/package.json +4 -4
package/dist/resolver/index.d.ts
CHANGED
|
@@ -11,6 +11,34 @@ interface ResolverConfig {
|
|
|
11
11
|
isAudit: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare const createResolver: (args: ResolverConfig) => Resolver;
|
|
14
|
+
export declare const transformDocumentIntoPayload: (fullPath: string, rawData: {
|
|
15
|
+
_collection;
|
|
16
|
+
_template;
|
|
17
|
+
}, tinaSchema: TinaSchema, config?: GraphQLConfig, isAudit?: boolean) => Promise<{
|
|
18
|
+
_sys: {
|
|
19
|
+
title: any;
|
|
20
|
+
basename: string;
|
|
21
|
+
filename: string;
|
|
22
|
+
extension: string;
|
|
23
|
+
path: string;
|
|
24
|
+
relativePath: string;
|
|
25
|
+
breadcrumbs: string[];
|
|
26
|
+
collection: Collection<true>;
|
|
27
|
+
template: string | number;
|
|
28
|
+
};
|
|
29
|
+
_values: {
|
|
30
|
+
_collection: any;
|
|
31
|
+
_template: any;
|
|
32
|
+
};
|
|
33
|
+
_rawData: {
|
|
34
|
+
_collection: any;
|
|
35
|
+
_template: any;
|
|
36
|
+
};
|
|
37
|
+
_collection: any;
|
|
38
|
+
_template: any;
|
|
39
|
+
__typename: string;
|
|
40
|
+
id: string;
|
|
41
|
+
}>;
|
|
14
42
|
/**
|
|
15
43
|
* The resolver provides functions for all possible types of lookup
|
|
16
44
|
* values and retrieves them from the database
|
|
@@ -133,7 +161,6 @@ export declare class Resolver {
|
|
|
133
161
|
__typename: string;
|
|
134
162
|
id: string;
|
|
135
163
|
}>;
|
|
136
|
-
private transformDocumentIntoPayload;
|
|
137
164
|
deleteDocument: (fullPath: unknown) => Promise<void>;
|
|
138
165
|
buildObjectMutations: (fieldValue: any, field: Collectable) => {
|
|
139
166
|
[key: string]: unknown;
|
|
@@ -287,7 +314,6 @@ export declare class Resolver {
|
|
|
287
314
|
};
|
|
288
315
|
}>;
|
|
289
316
|
private buildFieldMutations;
|
|
290
|
-
private resolveFieldData;
|
|
291
317
|
/**
|
|
292
318
|
* A mutation looks nearly identical between updateDocument:
|
|
293
319
|
* ```graphql
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Schema, Collection } from '@tinacms/schema-tools';
|
|
5
5
|
export declare const validateSchema: (schema: Schema) => Promise<{
|
|
6
6
|
collections: Collection<true>[];
|
|
7
|
-
config: import("@tinacms/schema-tools").Config<undefined, undefined, undefined, undefined>;
|
|
7
|
+
config: import("@tinacms/schema-tools").Config<undefined, undefined, undefined, undefined, undefined>;
|
|
8
8
|
} | {
|
|
9
9
|
collections: Collection<true>[];
|
|
10
10
|
config?: undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/graphql",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.16",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@graphql-tools/relay-operation-optimizer": "^6.4.1",
|
|
27
27
|
"@iarna/toml": "^2.2.5",
|
|
28
|
-
"@tinacms/mdx": "1.3.
|
|
29
|
-
"@tinacms/schema-tools": "1.4.
|
|
28
|
+
"@tinacms/mdx": "1.3.11",
|
|
29
|
+
"@tinacms/schema-tools": "1.4.5",
|
|
30
30
|
"abstract-level": "^1.0.3",
|
|
31
31
|
"body-parser": "^1.19.0",
|
|
32
32
|
"cors": "^2.8.5",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"directory": "packages/tina-graphql"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@tinacms/schema-tools": "1.4.
|
|
87
|
+
"@tinacms/schema-tools": "1.4.5",
|
|
88
88
|
"@tinacms/scripts": "1.1.0",
|
|
89
89
|
"@types/cors": "^2.8.7",
|
|
90
90
|
"@types/estree": "^0.0.50",
|