@tinacms/graphql 1.4.6 → 1.4.8

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.
@@ -75,6 +75,39 @@ export declare class Resolver {
75
75
  hasDocuments: boolean;
76
76
  };
77
77
  }>;
78
+ getRaw: (fullPath: unknown) => Promise<{
79
+ _collection: string;
80
+ _template: string;
81
+ }>;
82
+ getDocumentOrDirectory: (fullPath: unknown) => Promise<{
83
+ _sys: {
84
+ title: any;
85
+ basename: string;
86
+ filename: string;
87
+ extension: string;
88
+ path: string;
89
+ relativePath: string;
90
+ breadcrumbs: string[];
91
+ collection: Collection<true>;
92
+ template: string | number;
93
+ };
94
+ _values: {
95
+ _collection: any;
96
+ _template: any;
97
+ };
98
+ _rawData: {
99
+ _collection: any;
100
+ _template: any;
101
+ };
102
+ _collection: any;
103
+ _template: any;
104
+ __typename: string;
105
+ id: string;
106
+ } | {
107
+ __typename: string;
108
+ name: any;
109
+ path: any;
110
+ }>;
78
111
  getDocument: (fullPath: unknown) => Promise<{
79
112
  _sys: {
80
113
  title: any;
@@ -88,18 +121,19 @@ export declare class Resolver {
88
121
  template: string | number;
89
122
  };
90
123
  _values: {
91
- _collection: string;
92
- _template: string;
124
+ _collection: any;
125
+ _template: any;
93
126
  };
94
127
  _rawData: {
95
- _collection: string;
96
- _template: string;
128
+ _collection: any;
129
+ _template: any;
97
130
  };
98
- _collection: string;
99
- _template: string;
131
+ _collection: any;
132
+ _template: any;
100
133
  __typename: string;
101
134
  id: string;
102
135
  }>;
136
+ private transformDocumentIntoPayload;
103
137
  deleteDocument: (fullPath: unknown) => Promise<void>;
104
138
  buildObjectMutations: (fieldValue: any, field: Collectable) => {
105
139
  [key: string]: unknown;
@@ -124,15 +158,15 @@ export declare class Resolver {
124
158
  template: string | number;
125
159
  };
126
160
  _values: {
127
- _collection: string;
128
- _template: string;
161
+ _collection: any;
162
+ _template: any;
129
163
  };
130
164
  _rawData: {
131
- _collection: string;
132
- _template: string;
165
+ _collection: any;
166
+ _template: any;
133
167
  };
134
- _collection: string;
135
- _template: string;
168
+ _collection: any;
169
+ _template: any;
136
170
  __typename: string;
137
171
  id: string;
138
172
  }>;
@@ -155,15 +189,15 @@ export declare class Resolver {
155
189
  template: string | number;
156
190
  };
157
191
  _values: {
158
- _collection: string;
159
- _template: string;
192
+ _collection: any;
193
+ _template: any;
160
194
  };
161
195
  _rawData: {
162
- _collection: string;
163
- _template: string;
196
+ _collection: any;
197
+ _template: any;
164
198
  };
165
- _collection: string;
166
- _template: string;
199
+ _collection: any;
200
+ _template: any;
167
201
  __typename: string;
168
202
  id: string;
169
203
  }>;
@@ -189,15 +223,15 @@ export declare class Resolver {
189
223
  template: string | number;
190
224
  };
191
225
  _values: {
192
- _collection: string;
193
- _template: string;
226
+ _collection: any;
227
+ _template: any;
194
228
  };
195
229
  _rawData: {
196
- _collection: string;
197
- _template: string;
230
+ _collection: any;
231
+ _template: any;
198
232
  };
199
- _collection: string;
200
- _template: string;
233
+ _collection: any;
234
+ _template: any;
201
235
  __typename: string;
202
236
  id: string;
203
237
  }>;
@@ -219,15 +253,15 @@ export declare class Resolver {
219
253
  template: string | number;
220
254
  };
221
255
  _values: {
222
- _collection: string;
223
- _template: string;
256
+ _collection: any;
257
+ _template: any;
224
258
  };
225
259
  _rawData: {
226
- _collection: string;
227
- _template: string;
260
+ _collection: any;
261
+ _template: any;
228
262
  };
229
- _collection: string;
230
- _template: string;
263
+ _collection: any;
264
+ _template: any;
231
265
  __typename: string;
232
266
  id: string;
233
267
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
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.8",
29
- "@tinacms/schema-tools": "1.4.2",
28
+ "@tinacms/mdx": "1.3.9",
29
+ "@tinacms/schema-tools": "1.4.3",
30
30
  "abstract-level": "^1.0.3",
31
31
  "body-parser": "^1.19.0",
32
32
  "cors": "^2.8.5",
@@ -44,6 +44,7 @@
44
44
  "graphql-type-json": "^0.3.2",
45
45
  "gray-matter": "^4.0.2",
46
46
  "isomorphic-git": "^1.21.0",
47
+ "js-sha1": "^0.6.0",
47
48
  "js-yaml": "^3.14.1",
48
49
  "jsonpath-plus": "^6.0.1",
49
50
  "leveldown": "^6.1.0",
@@ -83,7 +84,7 @@
83
84
  "directory": "packages/tina-graphql"
84
85
  },
85
86
  "devDependencies": {
86
- "@tinacms/schema-tools": "1.4.2",
87
+ "@tinacms/schema-tools": "1.4.3",
87
88
  "@tinacms/scripts": "1.1.0",
88
89
  "@types/cors": "^2.8.7",
89
90
  "@types/estree": "^0.0.50",