@roc-db/test-utils 0.2.0-pre.44 → 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 +18 -1
- package/dist/types/operations/createBlockParagraph.d.ts +18 -1
- package/dist/types/operations/createBlockRow.d.ts +18 -1
- package/dist/types/operations/createBlockTitle.d.ts +18 -1
- package/dist/types/operations/createDraft.d.ts +16 -1
- package/dist/types/operations/createPost.d.ts +23 -1
- package/dist/types/operations/deleteBlocks.d.ts +23 -1
- package/dist/types/operations/deleteDraft.d.ts +5 -0
- package/dist/types/operations/index.d.ts +230 -11
- package/dist/types/operations/testTransactionalEdits.d.ts +23 -1
- package/dist/types/operations/updatePost.d.ts +23 -1
- package/dist/types/operations/updatePostDescription.d.ts +23 -1
- package/dist/types/operations/updatePostTitle.d.ts +23 -1
- package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +2 -2
- package/dist/types/schemas/BlockImageSchema.d.ts +56 -9
- package/dist/types/schemas/BlockParagraphSchema.d.ts +56 -9
- package/dist/types/schemas/BlockRowSchema.d.ts +61 -9
- package/dist/types/schemas/BlockTitleSchema.d.ts +56 -9
- 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 +46 -9
- package/dist/types/schemas/MoveBlocksMutationSchema.d.ts +2 -2
- package/dist/types/schemas/PostSchema.d.ts +81 -9
- 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 +544 -10
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -4,9 +4,9 @@ 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<
|
|
8
|
-
ref: import("zod").ZodType
|
|
9
|
-
entity: import("zod").
|
|
7
|
+
export declare const entities: (import("zod").ZodObject<{
|
|
8
|
+
ref: import("zod").ZodType<`BlockImage/${string}`, import("zod").ZodTypeDef, `BlockImage/${string}`>;
|
|
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;
|
|
@@ -27,14 +27,548 @@ 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<{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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: "BlockImage";
|
|
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: "BlockImage";
|
|
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").ZodLiteral<"BlockParagraph">;
|
|
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: "BlockParagraph";
|
|
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: "BlockParagraph";
|
|
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<`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: {};
|
|
243
|
+
}> | import("zod").ZodObject<{
|
|
244
|
+
ref: import("zod").ZodType<`BlockTitle/${string}`, import("zod").ZodTypeDef, `BlockTitle/${string}`>;
|
|
245
|
+
entity: import("zod").ZodLiteral<"BlockTitle">;
|
|
246
|
+
created: import("zod").ZodObject<{
|
|
247
|
+
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
248
|
+
timestamp: import("zod").ZodString;
|
|
249
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
250
|
+
mutationRef: `Mutation/${string}`;
|
|
251
|
+
timestamp: string;
|
|
252
|
+
}, {
|
|
253
|
+
mutationRef: `Mutation/${string}`;
|
|
254
|
+
timestamp: string;
|
|
255
|
+
}>;
|
|
256
|
+
updated: import("zod").ZodObject<{
|
|
257
|
+
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
258
|
+
timestamp: import("zod").ZodString;
|
|
259
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
260
|
+
mutationRef: `Mutation/${string}`;
|
|
261
|
+
timestamp: string;
|
|
262
|
+
}, {
|
|
263
|
+
mutationRef: `Mutation/${string}`;
|
|
264
|
+
timestamp: string;
|
|
265
|
+
}>;
|
|
266
|
+
data: import("zod").ZodObject<{
|
|
267
|
+
content: import("zod").ZodString;
|
|
268
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
269
|
+
content: string;
|
|
270
|
+
}, {
|
|
271
|
+
content: string;
|
|
272
|
+
}>;
|
|
273
|
+
children: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
274
|
+
parents: import("zod").ZodObject<{
|
|
275
|
+
post: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
|
|
276
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
277
|
+
post: `Post/${string}`;
|
|
278
|
+
}, {
|
|
279
|
+
post: `Post/${string}`;
|
|
280
|
+
}>;
|
|
281
|
+
ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
282
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
283
|
+
ref: `BlockTitle/${string}`;
|
|
284
|
+
data: {
|
|
285
|
+
content: string;
|
|
286
|
+
};
|
|
287
|
+
parents: {
|
|
288
|
+
post: `Post/${string}`;
|
|
289
|
+
};
|
|
290
|
+
entity: "BlockTitle";
|
|
291
|
+
created: {
|
|
292
|
+
mutationRef: `Mutation/${string}`;
|
|
293
|
+
timestamp: string;
|
|
294
|
+
};
|
|
295
|
+
updated: {
|
|
296
|
+
mutationRef: `Mutation/${string}`;
|
|
297
|
+
timestamp: string;
|
|
298
|
+
};
|
|
299
|
+
children: {};
|
|
300
|
+
ancestors: {};
|
|
35
301
|
}, {
|
|
36
|
-
|
|
37
|
-
|
|
302
|
+
ref: `BlockTitle/${string}`;
|
|
303
|
+
data: {
|
|
304
|
+
content: string;
|
|
305
|
+
};
|
|
306
|
+
parents: {
|
|
307
|
+
post: `Post/${string}`;
|
|
308
|
+
};
|
|
309
|
+
entity: "BlockTitle";
|
|
310
|
+
created: {
|
|
311
|
+
mutationRef: `Mutation/${string}`;
|
|
312
|
+
timestamp: string;
|
|
313
|
+
};
|
|
314
|
+
updated: {
|
|
315
|
+
mutationRef: `Mutation/${string}`;
|
|
316
|
+
timestamp: string;
|
|
317
|
+
};
|
|
318
|
+
children: {};
|
|
319
|
+
ancestors: {};
|
|
320
|
+
}> | import("zod").ZodObject<{
|
|
321
|
+
ref: import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>;
|
|
322
|
+
entity: import("zod").ZodLiteral<"Draft">;
|
|
323
|
+
created: import("zod").ZodObject<{
|
|
324
|
+
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
325
|
+
timestamp: import("zod").ZodString;
|
|
326
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
327
|
+
mutationRef: `Mutation/${string}`;
|
|
328
|
+
timestamp: string;
|
|
329
|
+
}, {
|
|
330
|
+
mutationRef: `Mutation/${string}`;
|
|
331
|
+
timestamp: string;
|
|
332
|
+
}>;
|
|
333
|
+
updated: import("zod").ZodObject<{
|
|
334
|
+
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
335
|
+
timestamp: import("zod").ZodString;
|
|
336
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
337
|
+
mutationRef: `Mutation/${string}`;
|
|
338
|
+
timestamp: string;
|
|
339
|
+
}, {
|
|
340
|
+
mutationRef: `Mutation/${string}`;
|
|
341
|
+
timestamp: string;
|
|
342
|
+
}>;
|
|
343
|
+
data: import("zod").ZodObject<{
|
|
344
|
+
postRef: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
|
|
345
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
346
|
+
postRef: `Post/${string}`;
|
|
347
|
+
}, {
|
|
348
|
+
postRef: `Post/${string}`;
|
|
349
|
+
}>;
|
|
350
|
+
children: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
351
|
+
parents: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
352
|
+
ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
353
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
354
|
+
ref: `Draft/${string}`;
|
|
355
|
+
data: {
|
|
356
|
+
postRef: `Post/${string}`;
|
|
357
|
+
};
|
|
358
|
+
parents: {};
|
|
359
|
+
entity: "Draft";
|
|
360
|
+
created: {
|
|
361
|
+
mutationRef: `Mutation/${string}`;
|
|
362
|
+
timestamp: string;
|
|
363
|
+
};
|
|
364
|
+
updated: {
|
|
365
|
+
mutationRef: `Mutation/${string}`;
|
|
366
|
+
timestamp: string;
|
|
367
|
+
};
|
|
368
|
+
children: {};
|
|
369
|
+
ancestors: {};
|
|
370
|
+
}, {
|
|
371
|
+
ref: `Draft/${string}`;
|
|
372
|
+
data: {
|
|
373
|
+
postRef: `Post/${string}`;
|
|
374
|
+
};
|
|
375
|
+
parents: {};
|
|
376
|
+
entity: "Draft";
|
|
377
|
+
created: {
|
|
378
|
+
mutationRef: `Mutation/${string}`;
|
|
379
|
+
timestamp: string;
|
|
380
|
+
};
|
|
381
|
+
updated: {
|
|
382
|
+
mutationRef: `Mutation/${string}`;
|
|
383
|
+
timestamp: string;
|
|
384
|
+
};
|
|
385
|
+
children: {};
|
|
386
|
+
ancestors: {};
|
|
387
|
+
}> | import("zod").ZodObject<{
|
|
388
|
+
ref: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
|
|
389
|
+
entity: import("zod").ZodLiteral<"Post">;
|
|
390
|
+
created: import("zod").ZodObject<{
|
|
391
|
+
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
392
|
+
timestamp: import("zod").ZodString;
|
|
393
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
394
|
+
mutationRef: `Mutation/${string}`;
|
|
395
|
+
timestamp: string;
|
|
396
|
+
}, {
|
|
397
|
+
mutationRef: `Mutation/${string}`;
|
|
398
|
+
timestamp: string;
|
|
399
|
+
}>;
|
|
400
|
+
updated: import("zod").ZodObject<{
|
|
401
|
+
mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
|
|
402
|
+
timestamp: import("zod").ZodString;
|
|
403
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
404
|
+
mutationRef: `Mutation/${string}`;
|
|
405
|
+
timestamp: string;
|
|
406
|
+
}, {
|
|
407
|
+
mutationRef: `Mutation/${string}`;
|
|
408
|
+
timestamp: string;
|
|
409
|
+
}>;
|
|
410
|
+
data: import("zod").ZodObject<{
|
|
411
|
+
title: import("zod").ZodString;
|
|
412
|
+
text: import("zod").ZodOptional<import("zod").ZodString>;
|
|
413
|
+
tags: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
414
|
+
slug: import("zod").ZodOptional<import("zod").ZodString>;
|
|
415
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
416
|
+
title: string;
|
|
417
|
+
tags: string[];
|
|
418
|
+
text?: string | undefined;
|
|
419
|
+
slug?: string | undefined;
|
|
420
|
+
}, {
|
|
421
|
+
title: string;
|
|
422
|
+
tags: string[];
|
|
423
|
+
text?: string | undefined;
|
|
424
|
+
slug?: string | undefined;
|
|
425
|
+
}>;
|
|
426
|
+
children: import("zod").ZodObject<{
|
|
427
|
+
blocks: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
428
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
429
|
+
blocks: string[];
|
|
430
|
+
}, {
|
|
431
|
+
blocks: string[];
|
|
432
|
+
}>;
|
|
433
|
+
parents: import("zod").ZodObject<{
|
|
434
|
+
author: import("zod").ZodOptional<import("zod").ZodType<`User/${string}`, import("zod").ZodTypeDef, `User/${string}`>>;
|
|
435
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
436
|
+
author?: `User/${string}` | undefined;
|
|
437
|
+
}, {
|
|
438
|
+
author?: `User/${string}` | undefined;
|
|
439
|
+
}>;
|
|
440
|
+
ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
441
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
442
|
+
ref: `Post/${string}`;
|
|
443
|
+
data: {
|
|
444
|
+
title: string;
|
|
445
|
+
tags: string[];
|
|
446
|
+
text?: string | undefined;
|
|
447
|
+
slug?: string | undefined;
|
|
448
|
+
};
|
|
449
|
+
parents: {
|
|
450
|
+
author?: `User/${string}` | undefined;
|
|
451
|
+
};
|
|
452
|
+
entity: "Post";
|
|
453
|
+
created: {
|
|
454
|
+
mutationRef: `Mutation/${string}`;
|
|
455
|
+
timestamp: string;
|
|
456
|
+
};
|
|
457
|
+
updated: {
|
|
458
|
+
mutationRef: `Mutation/${string}`;
|
|
459
|
+
timestamp: string;
|
|
460
|
+
};
|
|
461
|
+
children: {
|
|
462
|
+
blocks: string[];
|
|
463
|
+
};
|
|
464
|
+
ancestors: {};
|
|
465
|
+
}, {
|
|
466
|
+
ref: `Post/${string}`;
|
|
467
|
+
data: {
|
|
468
|
+
title: string;
|
|
469
|
+
tags: string[];
|
|
470
|
+
text?: string | undefined;
|
|
471
|
+
slug?: string | undefined;
|
|
472
|
+
};
|
|
473
|
+
parents: {
|
|
474
|
+
author?: `User/${string}` | undefined;
|
|
475
|
+
};
|
|
476
|
+
entity: "Post";
|
|
477
|
+
created: {
|
|
478
|
+
mutationRef: `Mutation/${string}`;
|
|
479
|
+
timestamp: string;
|
|
480
|
+
};
|
|
481
|
+
updated: {
|
|
482
|
+
mutationRef: `Mutation/${string}`;
|
|
483
|
+
timestamp: string;
|
|
484
|
+
};
|
|
485
|
+
children: {
|
|
486
|
+
blocks: string[];
|
|
487
|
+
};
|
|
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: {};
|
|
571
|
+
}>)[];
|
|
38
572
|
export { DraftRefSchema } from "./DraftRefSchema";
|
|
39
573
|
export { PostRefSchema } from "./PostRefSchema";
|
|
40
574
|
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.
|
|
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": [],
|