@tinacms/graphql 0.59.11 → 0.60.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.
@@ -10,8 +10,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
10
  See the License for the specific language governing permissions and
11
11
  limitations under the License.
12
12
  */
13
- import { TinaSchema } from '../schema';
14
13
  import { Database } from '../database';
14
+ import { TinaSchema } from '../schema';
15
15
  import type { Collectable, ReferenceTypeWithNamespace, TinaCloudCollection } from '../types';
16
16
  import { TinaFieldInner } from '../types';
17
17
  interface ResolverConfig {
@@ -60,9 +60,7 @@ export declare class Resolver {
60
60
  documents: {};
61
61
  }>;
62
62
  getDocument: (fullPath: unknown) => Promise<{
63
- __typename: string;
64
- id: string;
65
- sys: {
63
+ _sys: {
66
64
  basename: string;
67
65
  filename: string;
68
66
  extension: string;
@@ -72,26 +70,16 @@ export declare class Resolver {
72
70
  collection: TinaCloudCollection<true>;
73
71
  template: string | number;
74
72
  };
75
- data: {
73
+ _values: {
76
74
  _collection: string;
77
75
  _template: string;
78
76
  };
79
- values: {
80
- _collection: string;
81
- _template: string;
82
- };
83
- dataJSON: {
84
- _collection: string;
85
- _template: string;
86
- };
87
- form: {
88
- label: string;
89
- name: string;
90
- fields: unknown[];
91
- };
77
+ _collection: string;
78
+ _template: string;
79
+ __typename: string;
80
+ id: string;
92
81
  }>;
93
82
  deleteDocument: (fullPath: unknown) => Promise<void>;
94
- getDocumentFields: () => Promise<{}>;
95
83
  buildObjectMutations: (fieldValue: any, field: Collectable) => {
96
84
  [key: string]: unknown;
97
85
  } | {
@@ -103,9 +91,7 @@ export declare class Resolver {
103
91
  args: unknown;
104
92
  isAddPendingDocument: boolean;
105
93
  }) => Promise<{
106
- __typename: string;
107
- id: string;
108
- sys: {
94
+ _sys: {
109
95
  basename: string;
110
96
  filename: string;
111
97
  extension: string;
@@ -115,23 +101,14 @@ export declare class Resolver {
115
101
  collection: TinaCloudCollection<true>;
116
102
  template: string | number;
117
103
  };
118
- data: {
104
+ _values: {
119
105
  _collection: string;
120
106
  _template: string;
121
107
  };
122
- values: {
123
- _collection: string;
124
- _template: string;
125
- };
126
- dataJSON: {
127
- _collection: string;
128
- _template: string;
129
- };
130
- form: {
131
- label: string;
132
- name: string;
133
- fields: unknown[];
134
- };
108
+ _collection: string;
109
+ _template: string;
110
+ __typename: string;
111
+ id: string;
135
112
  }>;
136
113
  updateResolveDocument: ({ collection, realPath, args, isAddPendingDocument, isCollectionSpecific, }: {
137
114
  collection: TinaCloudCollection<true>;
@@ -140,9 +117,7 @@ export declare class Resolver {
140
117
  isAddPendingDocument: boolean;
141
118
  isCollectionSpecific: boolean;
142
119
  }) => Promise<{
143
- __typename: string;
144
- id: string;
145
- sys: {
120
+ _sys: {
146
121
  basename: string;
147
122
  filename: string;
148
123
  extension: string;
@@ -152,23 +127,14 @@ export declare class Resolver {
152
127
  collection: TinaCloudCollection<true>;
153
128
  template: string | number;
154
129
  };
155
- data: {
156
- _collection: string;
157
- _template: string;
158
- };
159
- values: {
130
+ _values: {
160
131
  _collection: string;
161
132
  _template: string;
162
133
  };
163
- dataJSON: {
164
- _collection: string;
165
- _template: string;
166
- };
167
- form: {
168
- label: string;
169
- name: string;
170
- fields: unknown[];
171
- };
134
+ _collection: string;
135
+ _template: string;
136
+ __typename: string;
137
+ id: string;
172
138
  }>;
173
139
  resolveDocument: ({ args, collection: collectionName, isMutation, isCreation, isDeletion, isAddPendingDocument, isCollectionSpecific, }: {
174
140
  args: unknown;
@@ -179,9 +145,7 @@ export declare class Resolver {
179
145
  isAddPendingDocument?: boolean;
180
146
  isCollectionSpecific?: boolean;
181
147
  }) => Promise<{
182
- __typename: string;
183
- id: string;
184
- sys: {
148
+ _sys: {
185
149
  basename: string;
186
150
  filename: string;
187
151
  extension: string;
@@ -191,23 +155,14 @@ export declare class Resolver {
191
155
  collection: TinaCloudCollection<true>;
192
156
  template: string | number;
193
157
  };
194
- data: {
195
- _collection: string;
196
- _template: string;
197
- };
198
- values: {
199
- _collection: string;
200
- _template: string;
201
- };
202
- dataJSON: {
158
+ _values: {
203
159
  _collection: string;
204
160
  _template: string;
205
161
  };
206
- form: {
207
- label: string;
208
- name: string;
209
- fields: unknown[];
210
- };
162
+ _collection: string;
163
+ _template: string;
164
+ __typename: string;
165
+ id: string;
211
166
  }>;
212
167
  resolveCollectionConnections: ({ ids }: {
213
168
  ids: string[];
@@ -215,9 +170,7 @@ export declare class Resolver {
215
170
  totalCount: number;
216
171
  edges: {
217
172
  node: {
218
- __typename: string;
219
- id: string;
220
- sys: {
173
+ _sys: {
221
174
  basename: string;
222
175
  filename: string;
223
176
  extension: string;
@@ -227,23 +180,14 @@ export declare class Resolver {
227
180
  collection: TinaCloudCollection<true>;
228
181
  template: string | number;
229
182
  };
230
- data: {
231
- _collection: string;
232
- _template: string;
233
- };
234
- values: {
235
- _collection: string;
236
- _template: string;
237
- };
238
- dataJSON: {
183
+ _values: {
239
184
  _collection: string;
240
185
  _template: string;
241
186
  };
242
- form: {
243
- label: string;
244
- name: string;
245
- fields: unknown[];
246
- };
187
+ _collection: string;
188
+ _template: string;
189
+ __typename: string;
190
+ id: string;
247
191
  };
248
192
  }[];
249
193
  }>;
@@ -283,6 +227,5 @@ export declare class Resolver {
283
227
  * from the corresponding field name in the key
284
228
  */
285
229
  private buildParams;
286
- private resolveField;
287
230
  }
288
231
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
- "version": "0.59.11",
3
+ "version": "0.60.0",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [