@roc-db/test-utils 0.2.0-pre.44 → 0.2.0-pre.45

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.
@@ -4,8 +4,8 @@ import { BlockTitleSchema } from "./BlockTitleSchema";
4
4
  import { DraftSchema } from "./DraftSchema";
5
5
  import { PostSchema } from "./PostSchema";
6
6
  export { BlockImageSchema, BlockParagraphSchema, BlockTitleSchema, DraftSchema, PostSchema, };
7
- export declare const entities: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
8
- ref: import("zod").ZodType<never, import("zod").ZodTypeDef, never>;
7
+ export declare const entities: (import("zod").ZodObject<{
8
+ ref: import("zod").ZodType<`BlockImage/${string}`, import("zod").ZodTypeDef, `BlockImage/${string}`>;
9
9
  entity: import("zod").ZodString;
10
10
  created: import("zod").ZodObject<{
11
11
  mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
@@ -27,14 +27,384 @@ export declare const entities: import("zod").ZodObject<import("zod").objectUtil.
27
27
  mutationRef: `Mutation/${string}`;
28
28
  timestamp: string;
29
29
  }>;
30
- data: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
31
- parents: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
32
- ancestors: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
33
- }, import("zod").ZodRawShape>, "strict", import("zod").ZodTypeAny, {
34
- [x: string]: any;
30
+ data: import("zod").ZodObject<{
31
+ url: import("zod").ZodString;
32
+ }, "strip", import("zod").ZodTypeAny, {
33
+ url: string;
34
+ }, {
35
+ url: string;
36
+ }>;
37
+ children: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
38
+ parents: import("zod").ZodObject<{
39
+ post: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
40
+ }, "strip", import("zod").ZodTypeAny, {
41
+ post: `Post/${string}`;
42
+ }, {
43
+ post: `Post/${string}`;
44
+ }>;
45
+ ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
46
+ }, "strict", import("zod").ZodTypeAny, {
47
+ ref: `BlockImage/${string}`;
48
+ data: {
49
+ url: string;
50
+ };
51
+ parents: {
52
+ post: `Post/${string}`;
53
+ };
54
+ entity: string;
55
+ created: {
56
+ mutationRef: `Mutation/${string}`;
57
+ timestamp: string;
58
+ };
59
+ updated: {
60
+ mutationRef: `Mutation/${string}`;
61
+ timestamp: string;
62
+ };
63
+ children: {};
64
+ ancestors: {};
65
+ }, {
66
+ ref: `BlockImage/${string}`;
67
+ data: {
68
+ url: string;
69
+ };
70
+ parents: {
71
+ post: `Post/${string}`;
72
+ };
73
+ entity: string;
74
+ created: {
75
+ mutationRef: `Mutation/${string}`;
76
+ timestamp: string;
77
+ };
78
+ updated: {
79
+ mutationRef: `Mutation/${string}`;
80
+ timestamp: string;
81
+ };
82
+ children: {};
83
+ ancestors: {};
84
+ }> | import("zod").ZodObject<{
85
+ ref: import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>;
86
+ entity: import("zod").ZodString;
87
+ created: import("zod").ZodObject<{
88
+ mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
89
+ timestamp: import("zod").ZodString;
90
+ }, "strict", import("zod").ZodTypeAny, {
91
+ mutationRef: `Mutation/${string}`;
92
+ timestamp: string;
93
+ }, {
94
+ mutationRef: `Mutation/${string}`;
95
+ timestamp: string;
96
+ }>;
97
+ updated: import("zod").ZodObject<{
98
+ mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
99
+ timestamp: import("zod").ZodString;
100
+ }, "strict", import("zod").ZodTypeAny, {
101
+ mutationRef: `Mutation/${string}`;
102
+ timestamp: string;
103
+ }, {
104
+ mutationRef: `Mutation/${string}`;
105
+ timestamp: string;
106
+ }>;
107
+ data: import("zod").ZodObject<{
108
+ content: import("zod").ZodOptional<import("zod").ZodString>;
109
+ }, "strip", import("zod").ZodTypeAny, {
110
+ content?: string | undefined;
111
+ }, {
112
+ content?: string | undefined;
113
+ }>;
114
+ children: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
115
+ parents: import("zod").ZodObject<{
116
+ parent: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
117
+ }, "strip", import("zod").ZodTypeAny, {
118
+ parent: `Post/${string}`;
119
+ }, {
120
+ parent: `Post/${string}`;
121
+ }>;
122
+ ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
123
+ }, "strict", import("zod").ZodTypeAny, {
124
+ ref: `BlockParagraph/${string}`;
125
+ data: {
126
+ content?: string | undefined;
127
+ };
128
+ parents: {
129
+ parent: `Post/${string}`;
130
+ };
131
+ entity: string;
132
+ created: {
133
+ mutationRef: `Mutation/${string}`;
134
+ timestamp: string;
135
+ };
136
+ updated: {
137
+ mutationRef: `Mutation/${string}`;
138
+ timestamp: string;
139
+ };
140
+ children: {};
141
+ ancestors: {};
142
+ }, {
143
+ ref: `BlockParagraph/${string}`;
144
+ data: {
145
+ content?: string | undefined;
146
+ };
147
+ parents: {
148
+ parent: `Post/${string}`;
149
+ };
150
+ entity: string;
151
+ created: {
152
+ mutationRef: `Mutation/${string}`;
153
+ timestamp: string;
154
+ };
155
+ updated: {
156
+ mutationRef: `Mutation/${string}`;
157
+ timestamp: string;
158
+ };
159
+ children: {};
160
+ ancestors: {};
161
+ }> | import("zod").ZodObject<{
162
+ ref: import("zod").ZodType<`BlockTitle/${string}`, import("zod").ZodTypeDef, `BlockTitle/${string}`>;
163
+ entity: import("zod").ZodString;
164
+ created: import("zod").ZodObject<{
165
+ mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
166
+ timestamp: import("zod").ZodString;
167
+ }, "strict", import("zod").ZodTypeAny, {
168
+ mutationRef: `Mutation/${string}`;
169
+ timestamp: string;
170
+ }, {
171
+ mutationRef: `Mutation/${string}`;
172
+ timestamp: string;
173
+ }>;
174
+ updated: import("zod").ZodObject<{
175
+ mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
176
+ timestamp: import("zod").ZodString;
177
+ }, "strict", import("zod").ZodTypeAny, {
178
+ mutationRef: `Mutation/${string}`;
179
+ timestamp: string;
180
+ }, {
181
+ mutationRef: `Mutation/${string}`;
182
+ timestamp: string;
183
+ }>;
184
+ data: import("zod").ZodObject<{
185
+ content: import("zod").ZodString;
186
+ }, "strip", import("zod").ZodTypeAny, {
187
+ content: string;
188
+ }, {
189
+ content: string;
190
+ }>;
191
+ children: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
192
+ parents: import("zod").ZodObject<{
193
+ post: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
194
+ }, "strip", import("zod").ZodTypeAny, {
195
+ post: `Post/${string}`;
196
+ }, {
197
+ post: `Post/${string}`;
198
+ }>;
199
+ ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
200
+ }, "strict", import("zod").ZodTypeAny, {
201
+ ref: `BlockTitle/${string}`;
202
+ data: {
203
+ content: string;
204
+ };
205
+ parents: {
206
+ post: `Post/${string}`;
207
+ };
208
+ entity: string;
209
+ created: {
210
+ mutationRef: `Mutation/${string}`;
211
+ timestamp: string;
212
+ };
213
+ updated: {
214
+ mutationRef: `Mutation/${string}`;
215
+ timestamp: string;
216
+ };
217
+ children: {};
218
+ ancestors: {};
219
+ }, {
220
+ ref: `BlockTitle/${string}`;
221
+ data: {
222
+ content: string;
223
+ };
224
+ parents: {
225
+ post: `Post/${string}`;
226
+ };
227
+ entity: string;
228
+ created: {
229
+ mutationRef: `Mutation/${string}`;
230
+ timestamp: string;
231
+ };
232
+ updated: {
233
+ mutationRef: `Mutation/${string}`;
234
+ timestamp: string;
235
+ };
236
+ children: {};
237
+ ancestors: {};
238
+ }> | import("zod").ZodObject<{
239
+ ref: import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>;
240
+ entity: import("zod").ZodString;
241
+ created: import("zod").ZodObject<{
242
+ mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
243
+ timestamp: import("zod").ZodString;
244
+ }, "strict", import("zod").ZodTypeAny, {
245
+ mutationRef: `Mutation/${string}`;
246
+ timestamp: string;
247
+ }, {
248
+ mutationRef: `Mutation/${string}`;
249
+ timestamp: string;
250
+ }>;
251
+ updated: import("zod").ZodObject<{
252
+ mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
253
+ timestamp: import("zod").ZodString;
254
+ }, "strict", import("zod").ZodTypeAny, {
255
+ mutationRef: `Mutation/${string}`;
256
+ timestamp: string;
257
+ }, {
258
+ mutationRef: `Mutation/${string}`;
259
+ timestamp: string;
260
+ }>;
261
+ data: import("zod").ZodObject<{
262
+ postRef: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
263
+ }, "strip", import("zod").ZodTypeAny, {
264
+ postRef: `Post/${string}`;
265
+ }, {
266
+ postRef: `Post/${string}`;
267
+ }>;
268
+ children: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
269
+ parents: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
270
+ ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
271
+ }, "strict", import("zod").ZodTypeAny, {
272
+ ref: `Draft/${string}`;
273
+ data: {
274
+ postRef: `Post/${string}`;
275
+ };
276
+ parents: {};
277
+ entity: string;
278
+ created: {
279
+ mutationRef: `Mutation/${string}`;
280
+ timestamp: string;
281
+ };
282
+ updated: {
283
+ mutationRef: `Mutation/${string}`;
284
+ timestamp: string;
285
+ };
286
+ children: {};
287
+ ancestors: {};
288
+ }, {
289
+ ref: `Draft/${string}`;
290
+ data: {
291
+ postRef: `Post/${string}`;
292
+ };
293
+ parents: {};
294
+ entity: string;
295
+ created: {
296
+ mutationRef: `Mutation/${string}`;
297
+ timestamp: string;
298
+ };
299
+ updated: {
300
+ mutationRef: `Mutation/${string}`;
301
+ timestamp: string;
302
+ };
303
+ children: {};
304
+ ancestors: {};
305
+ }> | import("zod").ZodObject<{
306
+ ref: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
307
+ entity: import("zod").ZodString;
308
+ created: import("zod").ZodObject<{
309
+ mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
310
+ timestamp: import("zod").ZodString;
311
+ }, "strict", import("zod").ZodTypeAny, {
312
+ mutationRef: `Mutation/${string}`;
313
+ timestamp: string;
314
+ }, {
315
+ mutationRef: `Mutation/${string}`;
316
+ timestamp: string;
317
+ }>;
318
+ updated: import("zod").ZodObject<{
319
+ mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
320
+ timestamp: import("zod").ZodString;
321
+ }, "strict", import("zod").ZodTypeAny, {
322
+ mutationRef: `Mutation/${string}`;
323
+ timestamp: string;
324
+ }, {
325
+ mutationRef: `Mutation/${string}`;
326
+ timestamp: string;
327
+ }>;
328
+ data: import("zod").ZodObject<{
329
+ title: import("zod").ZodString;
330
+ text: import("zod").ZodOptional<import("zod").ZodString>;
331
+ tags: import("zod").ZodArray<import("zod").ZodString, "many">;
332
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
333
+ }, "strip", import("zod").ZodTypeAny, {
334
+ title: string;
335
+ tags: string[];
336
+ text?: string | undefined;
337
+ slug?: string | undefined;
338
+ }, {
339
+ title: string;
340
+ tags: string[];
341
+ text?: string | undefined;
342
+ slug?: string | undefined;
343
+ }>;
344
+ children: import("zod").ZodObject<{
345
+ blocks: import("zod").ZodArray<import("zod").ZodString, "many">;
346
+ }, "strip", import("zod").ZodTypeAny, {
347
+ blocks: string[];
348
+ }, {
349
+ blocks: string[];
350
+ }>;
351
+ parents: import("zod").ZodObject<{
352
+ author: import("zod").ZodOptional<import("zod").ZodType<`User/${string}`, import("zod").ZodTypeDef, `User/${string}`>>;
353
+ }, "strip", import("zod").ZodTypeAny, {
354
+ author?: `User/${string}` | undefined;
355
+ }, {
356
+ author?: `User/${string}` | undefined;
357
+ }>;
358
+ ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
359
+ }, "strict", import("zod").ZodTypeAny, {
360
+ ref: `Post/${string}`;
361
+ data: {
362
+ title: string;
363
+ tags: string[];
364
+ text?: string | undefined;
365
+ slug?: string | undefined;
366
+ };
367
+ parents: {
368
+ author?: `User/${string}` | undefined;
369
+ };
370
+ entity: string;
371
+ created: {
372
+ mutationRef: `Mutation/${string}`;
373
+ timestamp: string;
374
+ };
375
+ updated: {
376
+ mutationRef: `Mutation/${string}`;
377
+ timestamp: string;
378
+ };
379
+ children: {
380
+ blocks: string[];
381
+ };
382
+ ancestors: {};
35
383
  }, {
36
- [x: string]: any;
37
- }>[];
384
+ ref: `Post/${string}`;
385
+ data: {
386
+ title: string;
387
+ tags: string[];
388
+ text?: string | undefined;
389
+ slug?: string | undefined;
390
+ };
391
+ parents: {
392
+ author?: `User/${string}` | undefined;
393
+ };
394
+ entity: string;
395
+ created: {
396
+ mutationRef: `Mutation/${string}`;
397
+ timestamp: string;
398
+ };
399
+ updated: {
400
+ mutationRef: `Mutation/${string}`;
401
+ timestamp: string;
402
+ };
403
+ children: {
404
+ blocks: string[];
405
+ };
406
+ ancestors: {};
407
+ }>)[];
38
408
  export { DraftRefSchema } from "./DraftRefSchema";
39
409
  export { PostRefSchema } from "./PostRefSchema";
40
410
  export { UserRefSchema } from "./UserRefSchema";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roc-db/test-utils",
3
- "version": "0.2.0-pre.44",
3
+ "version": "0.2.0-pre.45",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "sideEffects": false,
19
19
  "peerDependencies": {
20
- "roc-db": "0.2.0-pre.44",
20
+ "roc-db": "0.2.0-pre.45",
21
21
  "zod": "3.24.2"
22
22
  },
23
23
  "keywords": [],