@roc-db/test-utils 0.2.0-pre.45 → 0.2.0-pre.46
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/index.js +181 -114
- package/dist/types/operations/createBlockImage.d.ts +1 -1
- package/dist/types/operations/createBlockParagraph.d.ts +1 -1
- package/dist/types/operations/createBlockRow.d.ts +1 -1
- package/dist/types/operations/createBlockTitle.d.ts +1 -1
- package/dist/types/operations/createDraft.d.ts +1 -1
- package/dist/types/operations/createPost.d.ts +1 -1
- package/dist/types/operations/deleteBlocks.d.ts +1 -1
- package/dist/types/operations/deleteDraft.d.ts +5 -0
- package/dist/types/operations/index.d.ts +15 -11
- package/dist/types/operations/testTransactionalEdits.d.ts +1 -1
- package/dist/types/operations/updatePost.d.ts +1 -1
- package/dist/types/operations/updatePostDescription.d.ts +1 -1
- package/dist/types/operations/updatePostTitle.d.ts +1 -1
- package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +2 -2
- package/dist/types/schemas/BlockImageSchema.d.ts +3 -3
- package/dist/types/schemas/BlockParagraphSchema.d.ts +3 -3
- package/dist/types/schemas/BlockRowSchema.d.ts +3 -3
- package/dist/types/schemas/BlockTitleSchema.d.ts +3 -3
- package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateDraftMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreatePostMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +2 -2
- package/dist/types/schemas/DeleteBlocksMutationSchema.d.ts +2 -2
- package/dist/types/schemas/DeleteDraftMutationSchema.d.ts +53 -0
- package/dist/types/schemas/DeletePostMutationSchema.d.ts +2 -2
- package/dist/types/schemas/DraftSchema.d.ts +3 -3
- package/dist/types/schemas/MoveBlocksMutationSchema.d.ts +2 -2
- package/dist/types/schemas/PostSchema.d.ts +3 -3
- package/dist/types/schemas/PostVersionRefSchema.d.ts +1 -0
- package/dist/types/schemas/PostVersionSchema.d.ts +85 -0
- package/dist/types/schemas/TestTransactionalEditsMutationSchema.d.ts +2 -2
- package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +2 -2
- package/dist/types/schemas/UpdatePostDescriptionMutationSchema.d.ts +2 -2
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +2 -2
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +2 -2
- package/dist/types/schemas/index.d.ts +179 -15
- package/package.json +2 -2
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PostVersionSchema: z.ZodObject<{
|
|
3
|
+
ref: z.ZodType<`PostVersion/${string}`, z.ZodTypeDef, `PostVersion/${string}`>;
|
|
4
|
+
entity: z.ZodLiteral<"PostVersion">;
|
|
5
|
+
created: z.ZodObject<{
|
|
6
|
+
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
7
|
+
timestamp: z.ZodString;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
mutationRef: `Mutation/${string}`;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
}, {
|
|
12
|
+
mutationRef: `Mutation/${string}`;
|
|
13
|
+
timestamp: string;
|
|
14
|
+
}>;
|
|
15
|
+
updated: z.ZodObject<{
|
|
16
|
+
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
17
|
+
timestamp: z.ZodString;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
mutationRef: `Mutation/${string}`;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
}, {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
}>;
|
|
25
|
+
data: z.ZodObject<{
|
|
26
|
+
version: z.ZodNumber;
|
|
27
|
+
snapshot: z.ZodArray<z.ZodAny, "many">;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
version: number;
|
|
30
|
+
snapshot: any[];
|
|
31
|
+
}, {
|
|
32
|
+
version: number;
|
|
33
|
+
snapshot: any[];
|
|
34
|
+
}>;
|
|
35
|
+
children: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
|
|
36
|
+
parents: z.ZodObject<{
|
|
37
|
+
post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
post: `Post/${string}`;
|
|
40
|
+
}, {
|
|
41
|
+
post: `Post/${string}`;
|
|
42
|
+
}>;
|
|
43
|
+
ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
|
|
44
|
+
}, "strict", z.ZodTypeAny, {
|
|
45
|
+
ref: `PostVersion/${string}`;
|
|
46
|
+
data: {
|
|
47
|
+
version: number;
|
|
48
|
+
snapshot: any[];
|
|
49
|
+
};
|
|
50
|
+
parents: {
|
|
51
|
+
post: `Post/${string}`;
|
|
52
|
+
};
|
|
53
|
+
entity: "PostVersion";
|
|
54
|
+
created: {
|
|
55
|
+
mutationRef: `Mutation/${string}`;
|
|
56
|
+
timestamp: string;
|
|
57
|
+
};
|
|
58
|
+
updated: {
|
|
59
|
+
mutationRef: `Mutation/${string}`;
|
|
60
|
+
timestamp: string;
|
|
61
|
+
};
|
|
62
|
+
children: {};
|
|
63
|
+
ancestors: {};
|
|
64
|
+
}, {
|
|
65
|
+
ref: `PostVersion/${string}`;
|
|
66
|
+
data: {
|
|
67
|
+
version: number;
|
|
68
|
+
snapshot: any[];
|
|
69
|
+
};
|
|
70
|
+
parents: {
|
|
71
|
+
post: `Post/${string}`;
|
|
72
|
+
};
|
|
73
|
+
entity: "PostVersion";
|
|
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
|
+
}>;
|
|
85
|
+
export type PostVersion = z.infer<typeof PostVersionSchema>;
|
|
@@ -14,8 +14,8 @@ export declare const TestTransactionalEditsMutationSchema: z.ZodObject<z.objectU
|
|
|
14
14
|
name: z.ZodLiteral<"testTransactionalEdits">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "testTransactionalEdits";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "testTransactionalEdits";
|
|
19
19
|
}, {
|
|
20
20
|
name: "testTransactionalEdits";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -48,8 +48,8 @@ export declare const TestTransactionalEditsMutationSchema: z.ZodObject<z.objectU
|
|
|
48
48
|
debounceCount: number;
|
|
49
49
|
identityRef: string;
|
|
50
50
|
operation: {
|
|
51
|
-
name: "testTransactionalEdits";
|
|
52
51
|
version: number;
|
|
52
|
+
name: "testTransactionalEdits";
|
|
53
53
|
};
|
|
54
54
|
sessionRef?: string | null | undefined;
|
|
55
55
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const UpdateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
|
|
|
14
14
|
name: z.ZodLiteral<"updateBlockParagraph">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "updateBlockParagraph";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "updateBlockParagraph";
|
|
19
19
|
}, {
|
|
20
20
|
name: "updateBlockParagraph";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -44,8 +44,8 @@ export declare const UpdateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
|
|
|
44
44
|
debounceCount: number;
|
|
45
45
|
identityRef: string;
|
|
46
46
|
operation: {
|
|
47
|
-
name: "updateBlockParagraph";
|
|
48
47
|
version: number;
|
|
48
|
+
name: "updateBlockParagraph";
|
|
49
49
|
};
|
|
50
50
|
sessionRef?: string | null | undefined;
|
|
51
51
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const UpdatePostDescriptionMutationSchema: z.ZodObject<z.objectUt
|
|
|
14
14
|
name: z.ZodLiteral<"updatePostDescription">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "updatePostDescription";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "updatePostDescription";
|
|
19
19
|
}, {
|
|
20
20
|
name: "updatePostDescription";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -44,8 +44,8 @@ export declare const UpdatePostDescriptionMutationSchema: z.ZodObject<z.objectUt
|
|
|
44
44
|
debounceCount: number;
|
|
45
45
|
identityRef: string;
|
|
46
46
|
operation: {
|
|
47
|
-
name: "updatePostDescription";
|
|
48
47
|
version: number;
|
|
48
|
+
name: "updatePostDescription";
|
|
49
49
|
};
|
|
50
50
|
sessionRef?: string | null | undefined;
|
|
51
51
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
14
14
|
name: z.ZodLiteral<"updatePost">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "updatePost";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "updatePost";
|
|
19
19
|
}, {
|
|
20
20
|
name: "updatePost";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -52,8 +52,8 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
52
52
|
debounceCount: number;
|
|
53
53
|
identityRef: string;
|
|
54
54
|
operation: {
|
|
55
|
-
name: "updatePost";
|
|
56
55
|
version: number;
|
|
56
|
+
name: "updatePost";
|
|
57
57
|
};
|
|
58
58
|
sessionRef?: string | null | undefined;
|
|
59
59
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
|
|
|
14
14
|
name: z.ZodLiteral<"updatePostTitle">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "updatePostTitle";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "updatePostTitle";
|
|
19
19
|
}, {
|
|
20
20
|
name: "updatePostTitle";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -44,8 +44,8 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
|
|
|
44
44
|
debounceCount: number;
|
|
45
45
|
identityRef: string;
|
|
46
46
|
operation: {
|
|
47
|
-
name: "updatePostTitle";
|
|
48
47
|
version: number;
|
|
48
|
+
name: "updatePostTitle";
|
|
49
49
|
};
|
|
50
50
|
sessionRef?: string | null | undefined;
|
|
51
51
|
persistedAt?: string | null | undefined;
|
|
@@ -6,7 +6,7 @@ import { PostSchema } from "./PostSchema";
|
|
|
6
6
|
export { BlockImageSchema, BlockParagraphSchema, BlockTitleSchema, DraftSchema, PostSchema, };
|
|
7
7
|
export declare const entities: (import("zod").ZodObject<{
|
|
8
8
|
ref: import("zod").ZodType<`BlockImage/${string}`, import("zod").ZodTypeDef, `BlockImage/${string}`>;
|
|
9
|
-
entity: import("zod").
|
|
9
|
+
entity: import("zod").ZodLiteral<"BlockImage">;
|
|
10
10
|
created: import("zod").ZodObject<{
|
|
11
11
|
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
12
12
|
timestamp: import("zod").ZodString;
|
|
@@ -51,7 +51,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
51
51
|
parents: {
|
|
52
52
|
post: `Post/${string}`;
|
|
53
53
|
};
|
|
54
|
-
entity:
|
|
54
|
+
entity: "BlockImage";
|
|
55
55
|
created: {
|
|
56
56
|
mutationRef: `Mutation/${string}`;
|
|
57
57
|
timestamp: string;
|
|
@@ -70,7 +70,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
70
70
|
parents: {
|
|
71
71
|
post: `Post/${string}`;
|
|
72
72
|
};
|
|
73
|
-
entity:
|
|
73
|
+
entity: "BlockImage";
|
|
74
74
|
created: {
|
|
75
75
|
mutationRef: `Mutation/${string}`;
|
|
76
76
|
timestamp: string;
|
|
@@ -83,7 +83,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
83
83
|
ancestors: {};
|
|
84
84
|
}> | import("zod").ZodObject<{
|
|
85
85
|
ref: import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>;
|
|
86
|
-
entity: import("zod").
|
|
86
|
+
entity: import("zod").ZodLiteral<"BlockParagraph">;
|
|
87
87
|
created: import("zod").ZodObject<{
|
|
88
88
|
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
89
89
|
timestamp: import("zod").ZodString;
|
|
@@ -128,7 +128,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
128
128
|
parents: {
|
|
129
129
|
parent: `Post/${string}`;
|
|
130
130
|
};
|
|
131
|
-
entity:
|
|
131
|
+
entity: "BlockParagraph";
|
|
132
132
|
created: {
|
|
133
133
|
mutationRef: `Mutation/${string}`;
|
|
134
134
|
timestamp: string;
|
|
@@ -147,7 +147,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
147
147
|
parents: {
|
|
148
148
|
parent: `Post/${string}`;
|
|
149
149
|
};
|
|
150
|
-
entity:
|
|
150
|
+
entity: "BlockParagraph";
|
|
151
151
|
created: {
|
|
152
152
|
mutationRef: `Mutation/${string}`;
|
|
153
153
|
timestamp: string;
|
|
@@ -158,9 +158,91 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
158
158
|
};
|
|
159
159
|
children: {};
|
|
160
160
|
ancestors: {};
|
|
161
|
+
}> | import("zod").ZodObject<{
|
|
162
|
+
ref: import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>;
|
|
163
|
+
entity: import("zod").ZodLiteral<"BlockRow">;
|
|
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<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
185
|
+
children: import("zod").ZodObject<{
|
|
186
|
+
blocks: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>, "many">;
|
|
187
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
188
|
+
blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
189
|
+
}, {
|
|
190
|
+
blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
191
|
+
}>;
|
|
192
|
+
parents: import("zod").ZodObject<{
|
|
193
|
+
post: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
|
|
194
|
+
block: import("zod").ZodUnion<[import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>;
|
|
195
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
196
|
+
post: `Post/${string}`;
|
|
197
|
+
block: `BlockParagraph/${string}` | `BlockRow/${string}`;
|
|
198
|
+
}, {
|
|
199
|
+
post: `Post/${string}`;
|
|
200
|
+
block: `BlockParagraph/${string}` | `BlockRow/${string}`;
|
|
201
|
+
}>;
|
|
202
|
+
ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
203
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
204
|
+
ref: `BlockRow/${string}`;
|
|
205
|
+
data: {};
|
|
206
|
+
parents: {
|
|
207
|
+
post: `Post/${string}`;
|
|
208
|
+
block: `BlockParagraph/${string}` | `BlockRow/${string}`;
|
|
209
|
+
};
|
|
210
|
+
entity: "BlockRow";
|
|
211
|
+
created: {
|
|
212
|
+
mutationRef: `Mutation/${string}`;
|
|
213
|
+
timestamp: string;
|
|
214
|
+
};
|
|
215
|
+
updated: {
|
|
216
|
+
mutationRef: `Mutation/${string}`;
|
|
217
|
+
timestamp: string;
|
|
218
|
+
};
|
|
219
|
+
children: {
|
|
220
|
+
blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
221
|
+
};
|
|
222
|
+
ancestors: {};
|
|
223
|
+
}, {
|
|
224
|
+
ref: `BlockRow/${string}`;
|
|
225
|
+
data: {};
|
|
226
|
+
parents: {
|
|
227
|
+
post: `Post/${string}`;
|
|
228
|
+
block: `BlockParagraph/${string}` | `BlockRow/${string}`;
|
|
229
|
+
};
|
|
230
|
+
entity: "BlockRow";
|
|
231
|
+
created: {
|
|
232
|
+
mutationRef: `Mutation/${string}`;
|
|
233
|
+
timestamp: string;
|
|
234
|
+
};
|
|
235
|
+
updated: {
|
|
236
|
+
mutationRef: `Mutation/${string}`;
|
|
237
|
+
timestamp: string;
|
|
238
|
+
};
|
|
239
|
+
children: {
|
|
240
|
+
blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
241
|
+
};
|
|
242
|
+
ancestors: {};
|
|
161
243
|
}> | import("zod").ZodObject<{
|
|
162
244
|
ref: import("zod").ZodType<`BlockTitle/${string}`, import("zod").ZodTypeDef, `BlockTitle/${string}`>;
|
|
163
|
-
entity: import("zod").
|
|
245
|
+
entity: import("zod").ZodLiteral<"BlockTitle">;
|
|
164
246
|
created: import("zod").ZodObject<{
|
|
165
247
|
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
166
248
|
timestamp: import("zod").ZodString;
|
|
@@ -205,7 +287,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
205
287
|
parents: {
|
|
206
288
|
post: `Post/${string}`;
|
|
207
289
|
};
|
|
208
|
-
entity:
|
|
290
|
+
entity: "BlockTitle";
|
|
209
291
|
created: {
|
|
210
292
|
mutationRef: `Mutation/${string}`;
|
|
211
293
|
timestamp: string;
|
|
@@ -224,7 +306,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
224
306
|
parents: {
|
|
225
307
|
post: `Post/${string}`;
|
|
226
308
|
};
|
|
227
|
-
entity:
|
|
309
|
+
entity: "BlockTitle";
|
|
228
310
|
created: {
|
|
229
311
|
mutationRef: `Mutation/${string}`;
|
|
230
312
|
timestamp: string;
|
|
@@ -237,7 +319,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
237
319
|
ancestors: {};
|
|
238
320
|
}> | import("zod").ZodObject<{
|
|
239
321
|
ref: import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>;
|
|
240
|
-
entity: import("zod").
|
|
322
|
+
entity: import("zod").ZodLiteral<"Draft">;
|
|
241
323
|
created: import("zod").ZodObject<{
|
|
242
324
|
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
243
325
|
timestamp: import("zod").ZodString;
|
|
@@ -274,7 +356,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
274
356
|
postRef: `Post/${string}`;
|
|
275
357
|
};
|
|
276
358
|
parents: {};
|
|
277
|
-
entity:
|
|
359
|
+
entity: "Draft";
|
|
278
360
|
created: {
|
|
279
361
|
mutationRef: `Mutation/${string}`;
|
|
280
362
|
timestamp: string;
|
|
@@ -291,7 +373,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
291
373
|
postRef: `Post/${string}`;
|
|
292
374
|
};
|
|
293
375
|
parents: {};
|
|
294
|
-
entity:
|
|
376
|
+
entity: "Draft";
|
|
295
377
|
created: {
|
|
296
378
|
mutationRef: `Mutation/${string}`;
|
|
297
379
|
timestamp: string;
|
|
@@ -304,7 +386,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
304
386
|
ancestors: {};
|
|
305
387
|
}> | import("zod").ZodObject<{
|
|
306
388
|
ref: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
|
|
307
|
-
entity: import("zod").
|
|
389
|
+
entity: import("zod").ZodLiteral<"Post">;
|
|
308
390
|
created: import("zod").ZodObject<{
|
|
309
391
|
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
310
392
|
timestamp: import("zod").ZodString;
|
|
@@ -367,7 +449,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
367
449
|
parents: {
|
|
368
450
|
author?: `User/${string}` | undefined;
|
|
369
451
|
};
|
|
370
|
-
entity:
|
|
452
|
+
entity: "Post";
|
|
371
453
|
created: {
|
|
372
454
|
mutationRef: `Mutation/${string}`;
|
|
373
455
|
timestamp: string;
|
|
@@ -391,7 +473,7 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
391
473
|
parents: {
|
|
392
474
|
author?: `User/${string}` | undefined;
|
|
393
475
|
};
|
|
394
|
-
entity:
|
|
476
|
+
entity: "Post";
|
|
395
477
|
created: {
|
|
396
478
|
mutationRef: `Mutation/${string}`;
|
|
397
479
|
timestamp: string;
|
|
@@ -404,6 +486,88 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
404
486
|
blocks: string[];
|
|
405
487
|
};
|
|
406
488
|
ancestors: {};
|
|
489
|
+
}> | import("zod").ZodObject<{
|
|
490
|
+
ref: import("zod").ZodType<`PostVersion/${string}`, import("zod").ZodTypeDef, `PostVersion/${string}`>;
|
|
491
|
+
entity: import("zod").ZodLiteral<"PostVersion">;
|
|
492
|
+
created: import("zod").ZodObject<{
|
|
493
|
+
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
494
|
+
timestamp: import("zod").ZodString;
|
|
495
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
496
|
+
mutationRef: `Mutation/${string}`;
|
|
497
|
+
timestamp: string;
|
|
498
|
+
}, {
|
|
499
|
+
mutationRef: `Mutation/${string}`;
|
|
500
|
+
timestamp: string;
|
|
501
|
+
}>;
|
|
502
|
+
updated: import("zod").ZodObject<{
|
|
503
|
+
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
504
|
+
timestamp: import("zod").ZodString;
|
|
505
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
506
|
+
mutationRef: `Mutation/${string}`;
|
|
507
|
+
timestamp: string;
|
|
508
|
+
}, {
|
|
509
|
+
mutationRef: `Mutation/${string}`;
|
|
510
|
+
timestamp: string;
|
|
511
|
+
}>;
|
|
512
|
+
data: import("zod").ZodObject<{
|
|
513
|
+
version: import("zod").ZodNumber;
|
|
514
|
+
snapshot: import("zod").ZodArray<import("zod").ZodAny, "many">;
|
|
515
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
516
|
+
version: number;
|
|
517
|
+
snapshot: any[];
|
|
518
|
+
}, {
|
|
519
|
+
version: number;
|
|
520
|
+
snapshot: any[];
|
|
521
|
+
}>;
|
|
522
|
+
children: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
523
|
+
parents: import("zod").ZodObject<{
|
|
524
|
+
post: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
|
|
525
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
526
|
+
post: `Post/${string}`;
|
|
527
|
+
}, {
|
|
528
|
+
post: `Post/${string}`;
|
|
529
|
+
}>;
|
|
530
|
+
ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
531
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
532
|
+
ref: `PostVersion/${string}`;
|
|
533
|
+
data: {
|
|
534
|
+
version: number;
|
|
535
|
+
snapshot: any[];
|
|
536
|
+
};
|
|
537
|
+
parents: {
|
|
538
|
+
post: `Post/${string}`;
|
|
539
|
+
};
|
|
540
|
+
entity: "PostVersion";
|
|
541
|
+
created: {
|
|
542
|
+
mutationRef: `Mutation/${string}`;
|
|
543
|
+
timestamp: string;
|
|
544
|
+
};
|
|
545
|
+
updated: {
|
|
546
|
+
mutationRef: `Mutation/${string}`;
|
|
547
|
+
timestamp: string;
|
|
548
|
+
};
|
|
549
|
+
children: {};
|
|
550
|
+
ancestors: {};
|
|
551
|
+
}, {
|
|
552
|
+
ref: `PostVersion/${string}`;
|
|
553
|
+
data: {
|
|
554
|
+
version: number;
|
|
555
|
+
snapshot: any[];
|
|
556
|
+
};
|
|
557
|
+
parents: {
|
|
558
|
+
post: `Post/${string}`;
|
|
559
|
+
};
|
|
560
|
+
entity: "PostVersion";
|
|
561
|
+
created: {
|
|
562
|
+
mutationRef: `Mutation/${string}`;
|
|
563
|
+
timestamp: string;
|
|
564
|
+
};
|
|
565
|
+
updated: {
|
|
566
|
+
mutationRef: `Mutation/${string}`;
|
|
567
|
+
timestamp: string;
|
|
568
|
+
};
|
|
569
|
+
children: {};
|
|
570
|
+
ancestors: {};
|
|
407
571
|
}>)[];
|
|
408
572
|
export { DraftRefSchema } from "./DraftRefSchema";
|
|
409
573
|
export { PostRefSchema } from "./PostRefSchema";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roc-db/test-utils",
|
|
3
|
-
"version": "0.2.0-pre.
|
|
3
|
+
"version": "0.2.0-pre.46",
|
|
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.
|
|
20
|
+
"roc-db": "0.2.0-pre.46",
|
|
21
21
|
"zod": "3.24.2"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [],
|