@tinacms/graphql 0.0.0-2022320202159 → 0.0.0-2022321184050
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/CHANGELOG.md +8 -2
- package/dist/ast-builder/index.d.ts +4 -0
- package/dist/builder/index.d.ts +14 -22
- package/dist/database/index.d.ts +1 -0
- package/dist/index.js +219 -635
- package/dist/resolver/index.d.ts +31 -88
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# tina-graphql
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-2022321184050
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6a6f137ae: Simplify gql remove data
|
|
8
|
+
|
|
9
|
+
## 0.59.11
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
@@ -11,7 +17,7 @@
|
|
|
11
17
|
- 3e2d9e43a: Adds new GraphQL `deleteDocument` mutation and logic
|
|
12
18
|
- Updated dependencies [a2906d6fe]
|
|
13
19
|
- Updated dependencies [3e2d9e43a]
|
|
14
|
-
- @tinacms/datalayer@0.
|
|
20
|
+
- @tinacms/datalayer@0.1.1
|
|
15
21
|
|
|
16
22
|
## 0.59.10
|
|
17
23
|
|
|
@@ -147,6 +147,10 @@ export declare const NAMER: {
|
|
|
147
147
|
dataMutationTypeName: (namespace: string[]) => string;
|
|
148
148
|
updateName: (namespace: string[]) => string;
|
|
149
149
|
createName: (namespace: string[]) => string;
|
|
150
|
+
documentQueryName: () => string;
|
|
151
|
+
documentConnectionQueryName: () => string;
|
|
152
|
+
collectionQueryName: () => string;
|
|
153
|
+
collectionListQueryName: () => string;
|
|
150
154
|
queryName: (namespace: string[]) => string;
|
|
151
155
|
generateQueryListName: (namespace: string[]) => string;
|
|
152
156
|
fragmentName: (namespace: string[]) => string;
|
package/dist/builder/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
|
|
|
11
11
|
limitations under the License.
|
|
12
12
|
*/
|
|
13
13
|
import { Database } from '../database';
|
|
14
|
-
import type { ObjectTypeDefinitionNode, InlineFragmentNode } from 'graphql';
|
|
14
|
+
import type { ObjectTypeDefinitionNode, InlineFragmentNode, FieldDefinitionNode } from 'graphql';
|
|
15
15
|
import type { TinaCloudCollectionEnriched, Template } from '../types';
|
|
16
16
|
import { TinaSchema } from '../schema';
|
|
17
17
|
export declare const createBuilder: ({ database, tinaSchema, }: {
|
|
@@ -47,7 +47,7 @@ export declare class Builder {
|
|
|
47
47
|
*
|
|
48
48
|
* @param collections
|
|
49
49
|
*/
|
|
50
|
-
buildCollectionDefinition: (collections: TinaCloudCollectionEnriched[]) => Promise<
|
|
50
|
+
buildCollectionDefinition: (collections: TinaCloudCollectionEnriched[]) => Promise<FieldDefinitionNode>;
|
|
51
51
|
/**
|
|
52
52
|
* ```graphql
|
|
53
53
|
* # ex.
|
|
@@ -61,7 +61,7 @@ export declare class Builder {
|
|
|
61
61
|
*
|
|
62
62
|
* @param collections
|
|
63
63
|
*/
|
|
64
|
-
buildMultiCollectionDefinition: (collections: TinaCloudCollectionEnriched[]) => Promise<
|
|
64
|
+
buildMultiCollectionDefinition: (collections: TinaCloudCollectionEnriched[]) => Promise<FieldDefinitionNode>;
|
|
65
65
|
/**
|
|
66
66
|
* ```graphql
|
|
67
67
|
* # ex.
|
|
@@ -73,7 +73,7 @@ export declare class Builder {
|
|
|
73
73
|
* }
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
|
-
multiNodeDocument: () => Promise<
|
|
76
|
+
multiNodeDocument: () => Promise<FieldDefinitionNode>;
|
|
77
77
|
/**
|
|
78
78
|
* ```graphql
|
|
79
79
|
* # ex.
|
|
@@ -87,15 +87,7 @@ export declare class Builder {
|
|
|
87
87
|
*
|
|
88
88
|
* @param collections
|
|
89
89
|
*/
|
|
90
|
-
multiCollectionDocument: (collections: TinaCloudCollectionEnriched[]) => Promise<
|
|
91
|
-
/**
|
|
92
|
-
* ```graphql
|
|
93
|
-
* {
|
|
94
|
-
* getDocumentFields()
|
|
95
|
-
* }
|
|
96
|
-
* ```
|
|
97
|
-
*/
|
|
98
|
-
multiCollectionDocumentFields: () => Promise<import("graphql").FieldDefinitionNode>;
|
|
90
|
+
multiCollectionDocument: (collections: TinaCloudCollectionEnriched[]) => Promise<FieldDefinitionNode>;
|
|
99
91
|
/**
|
|
100
92
|
* ```graphql
|
|
101
93
|
* # ex.
|
|
@@ -109,7 +101,7 @@ export declare class Builder {
|
|
|
109
101
|
*
|
|
110
102
|
* @param collections
|
|
111
103
|
*/
|
|
112
|
-
addMultiCollectionDocumentMutation: () => Promise<
|
|
104
|
+
addMultiCollectionDocumentMutation: () => Promise<FieldDefinitionNode>;
|
|
113
105
|
/**
|
|
114
106
|
* ```graphql
|
|
115
107
|
* # ex.
|
|
@@ -123,7 +115,7 @@ export declare class Builder {
|
|
|
123
115
|
*
|
|
124
116
|
* @param collections
|
|
125
117
|
*/
|
|
126
|
-
buildCreateCollectionDocumentMutation: (collections: TinaCloudCollectionEnriched[]) => Promise<
|
|
118
|
+
buildCreateCollectionDocumentMutation: (collections: TinaCloudCollectionEnriched[]) => Promise<FieldDefinitionNode>;
|
|
127
119
|
/**
|
|
128
120
|
* ```graphql
|
|
129
121
|
* # ex.
|
|
@@ -137,7 +129,7 @@ export declare class Builder {
|
|
|
137
129
|
*
|
|
138
130
|
* @param collections
|
|
139
131
|
*/
|
|
140
|
-
buildUpdateCollectionDocumentMutation: (collections: TinaCloudCollectionEnriched[]) => Promise<
|
|
132
|
+
buildUpdateCollectionDocumentMutation: (collections: TinaCloudCollectionEnriched[]) => Promise<FieldDefinitionNode>;
|
|
141
133
|
/**
|
|
142
134
|
* ```graphql
|
|
143
135
|
* # ex.
|
|
@@ -151,7 +143,7 @@ export declare class Builder {
|
|
|
151
143
|
*
|
|
152
144
|
* @param collections
|
|
153
145
|
*/
|
|
154
|
-
buildDeleteCollectionDocumentMutation: (collections: TinaCloudCollectionEnriched[]) => Promise<
|
|
146
|
+
buildDeleteCollectionDocumentMutation: (collections: TinaCloudCollectionEnriched[]) => Promise<FieldDefinitionNode>;
|
|
155
147
|
/**
|
|
156
148
|
* ```graphql
|
|
157
149
|
* # ex.
|
|
@@ -168,7 +160,7 @@ export declare class Builder {
|
|
|
168
160
|
*
|
|
169
161
|
* @param collections
|
|
170
162
|
*/
|
|
171
|
-
multiCollectionDocumentList: (collections: TinaCloudCollectionEnriched[]) => Promise<
|
|
163
|
+
multiCollectionDocumentList: (collections: TinaCloudCollectionEnriched[]) => Promise<FieldDefinitionNode>;
|
|
172
164
|
/**
|
|
173
165
|
* ```graphql
|
|
174
166
|
* # ex.
|
|
@@ -182,7 +174,7 @@ export declare class Builder {
|
|
|
182
174
|
*
|
|
183
175
|
* @param collection
|
|
184
176
|
*/
|
|
185
|
-
collectionDocument: (collection: TinaCloudCollectionEnriched) => Promise<
|
|
177
|
+
collectionDocument: (collection: TinaCloudCollectionEnriched) => Promise<FieldDefinitionNode>;
|
|
186
178
|
/**
|
|
187
179
|
* Turns a collection into a fragment that gets updated on build. This fragment does not resolve references
|
|
188
180
|
* ```graphql
|
|
@@ -213,7 +205,7 @@ export declare class Builder {
|
|
|
213
205
|
*
|
|
214
206
|
* @param collection
|
|
215
207
|
*/
|
|
216
|
-
updateCollectionDocumentMutation: (collection: TinaCloudCollectionEnriched) => Promise<
|
|
208
|
+
updateCollectionDocumentMutation: (collection: TinaCloudCollectionEnriched) => Promise<FieldDefinitionNode>;
|
|
217
209
|
/**
|
|
218
210
|
* ```graphql
|
|
219
211
|
* # ex.
|
|
@@ -227,7 +219,7 @@ export declare class Builder {
|
|
|
227
219
|
*
|
|
228
220
|
* @param collection
|
|
229
221
|
*/
|
|
230
|
-
createCollectionDocumentMutation: (collection: TinaCloudCollectionEnriched) => Promise<
|
|
222
|
+
createCollectionDocumentMutation: (collection: TinaCloudCollectionEnriched) => Promise<FieldDefinitionNode>;
|
|
231
223
|
/**
|
|
232
224
|
* ```graphql
|
|
233
225
|
* # ex.
|
|
@@ -244,7 +236,7 @@ export declare class Builder {
|
|
|
244
236
|
*
|
|
245
237
|
* @param collection
|
|
246
238
|
*/
|
|
247
|
-
collectionDocumentList: (collection: TinaCloudCollectionEnriched) => Promise<
|
|
239
|
+
collectionDocumentList: (collection: TinaCloudCollectionEnriched) => Promise<FieldDefinitionNode>;
|
|
248
240
|
/**
|
|
249
241
|
* GraphQL type definitions which remain unchanged regardless
|
|
250
242
|
* of the supplied Tina schema. Ex. "node" interface
|
package/dist/database/index.d.ts
CHANGED