@roc-db/test-utils 0.2.0-pre.46 → 0.2.0-pre.48

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.
Files changed (32) hide show
  1. package/dist/index.js +72 -130
  2. package/dist/types/operations/applyDraft.d.ts +1 -5
  3. package/dist/types/operations/createBlockImage.d.ts +8 -24
  4. package/dist/types/operations/createBlockParagraph.d.ts +8 -24
  5. package/dist/types/operations/createBlockRow.d.ts +8 -24
  6. package/dist/types/operations/createBlockTitle.d.ts +8 -24
  7. package/dist/types/operations/createDraft.d.ts +8 -22
  8. package/dist/types/operations/createPost.d.ts +14 -29
  9. package/dist/types/operations/deleteBlocks.d.ts +2 -29
  10. package/dist/types/operations/deleteDraft.d.ts +1 -5
  11. package/dist/types/operations/deletePost.d.ts +1 -5
  12. package/dist/types/operations/index.d.ts +98 -294
  13. package/dist/types/operations/moveBlocks.d.ts +11 -5
  14. package/dist/types/operations/testTransactionalEdits.d.ts +14 -29
  15. package/dist/types/operations/updateBlockParagraph.d.ts +11 -5
  16. package/dist/types/operations/updatePost.d.ts +16 -28
  17. package/dist/types/operations/updatePostDescription.d.ts +10 -28
  18. package/dist/types/operations/updatePostTitle.d.ts +10 -28
  19. package/package.json +2 -2
  20. package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +0 -64
  21. package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +0 -64
  22. package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +0 -64
  23. package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +0 -64
  24. package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +0 -64
  25. package/dist/types/schemas/CreateDraftMutationSchema.d.ts +0 -64
  26. package/dist/types/schemas/DeleteBlocksMutationSchema.d.ts +0 -54
  27. package/dist/types/schemas/DeleteDraftMutationSchema.d.ts +0 -53
  28. package/dist/types/schemas/DeletePostMutationSchema.d.ts +0 -53
  29. package/dist/types/schemas/MoveBlocksMutationSchema.d.ts +0 -69
  30. package/dist/types/schemas/TestTransactionalEditsMutationSchema.d.ts +0 -74
  31. package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +0 -69
  32. package/dist/types/schemas/UpdatePostDescriptionMutationSchema.d.ts +0 -69
@@ -1,302 +1,106 @@
1
- export declare const operations: readonly [import("roc-db").WriteOperation<string, {
2
- debounceCount: number;
3
- name: string;
4
- payload?: any;
5
- }, any, any>, import("roc-db").WriteOperation<string, {
6
- debounceCount: number;
7
- name: string;
8
- payload?: any;
9
- }, any, {
10
- ref: `BlockImage/${string}`;
11
- data: {
12
- url: string;
13
- };
14
- parents: {
15
- post: `Post/${string}`;
16
- };
17
- entity: "BlockImage";
18
- created: {
19
- mutationRef: `Mutation/${string}`;
20
- timestamp: string;
21
- };
22
- updated: {
23
- mutationRef: `Mutation/${string}`;
24
- timestamp: string;
25
- };
26
- children: {};
27
- ancestors: {};
28
- }>, import("roc-db").WriteOperation<string, {
29
- debounceCount: number;
30
- name: string;
31
- payload?: any;
32
- }, any, {
33
- ref: `BlockTitle/${string}`;
34
- data: {
35
- content: string;
36
- };
37
- parents: {
38
- post: `Post/${string}`;
39
- };
40
- entity: "BlockTitle";
41
- created: {
42
- mutationRef: `Mutation/${string}`;
43
- timestamp: string;
44
- };
45
- updated: {
46
- mutationRef: `Mutation/${string}`;
47
- timestamp: string;
48
- };
49
- children: {};
50
- ancestors: {};
51
- }>, import("roc-db").WriteOperation<string, {
52
- debounceCount: number;
53
- name: string;
54
- payload?: any;
55
- }, any, {
1
+ export declare const operations: readonly [import("roc-db").WriteOperation<"applyDraft", import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>>, import("roc-db").WriteOperation<"createBlockImage", import("zod").ZodObject<{
2
+ postRef: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
3
+ }, "strict", import("zod").ZodTypeAny, {
4
+ postRef: `Post/${string}`;
5
+ }, {
6
+ postRef: `Post/${string}`;
7
+ }>>, import("roc-db").WriteOperation<"createBlockTitle", import("zod").ZodObject<{
8
+ parentRef: import("zod").ZodUnion<[import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>;
9
+ }, "strict", import("zod").ZodTypeAny, {
10
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
11
+ }, {
12
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
13
+ }>>, import("roc-db").WriteOperation<"createBlockParagraph", import("zod").ZodObject<{
14
+ parentRef: import("zod").ZodUnion<[import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>;
15
+ }, "strict", import("zod").ZodTypeAny, {
16
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
17
+ }, {
18
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
19
+ }>>, import("roc-db").WriteOperation<"createBlockRow", import("zod").ZodObject<{
20
+ parentRef: import("zod").ZodUnion<[import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>;
21
+ }, "strict", import("zod").ZodTypeAny, {
22
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
23
+ }, {
24
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
25
+ }>>, import("roc-db").WriteOperation<"createDraft", import("zod").ZodObject<{
26
+ postRef: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
27
+ }, "strict", import("zod").ZodTypeAny, {
28
+ postRef: `Post/${string}`;
29
+ }, {
30
+ postRef: `Post/${string}`;
31
+ }>>, import("roc-db").WriteOperation<"createPost", import("zod").ZodObject<{
32
+ title: import("zod").ZodString;
33
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
34
+ tags: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
35
+ }, "strict", import("zod").ZodTypeAny, {
36
+ title: string;
37
+ tags: string[];
38
+ slug?: string | undefined;
39
+ }, {
40
+ title: string;
41
+ tags?: string[] | undefined;
42
+ slug?: string | undefined;
43
+ }>>, import("roc-db").WriteOperation<"deleteBlocks", import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>, import("zod").ZodType<`BlockImage/${string}`, import("zod").ZodTypeDef, `BlockImage/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>, "many">>, import("roc-db").WriteOperation<"deleteDraft", import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>>, import("roc-db").WriteOperation<"deletePost", import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>>, import("roc-db").WriteOperation<"moveBlocks", import("zod").ZodObject<{
44
+ refs: 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">;
45
+ targetPosition: import("zod").ZodNumber;
46
+ }, "strict", import("zod").ZodTypeAny, {
47
+ refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
48
+ targetPosition: number;
49
+ }, {
50
+ refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
51
+ targetPosition: number;
52
+ }>>, any, any, any, import("roc-db").WriteOperation<"testTransactionalEdits", import("zod").ZodObject<{
53
+ name: import("zod").ZodOptional<import("zod").ZodString>;
54
+ post1ref: import("zod").ZodOptional<import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>>;
55
+ post2ref: import("zod").ZodOptional<import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>>;
56
+ }, "strict", import("zod").ZodTypeAny, {
57
+ name?: string | undefined;
58
+ post1ref?: `Post/${string}` | undefined;
59
+ post2ref?: `Post/${string}` | undefined;
60
+ }, {
61
+ name?: string | undefined;
62
+ post1ref?: `Post/${string}` | undefined;
63
+ post2ref?: `Post/${string}` | undefined;
64
+ }>>, import("roc-db").WriteOperation<"updateBlockParagraph", import("zod").ZodObject<{
65
+ ref: import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>;
66
+ content: import("zod").ZodString;
67
+ }, "strip", import("zod").ZodTypeAny, {
56
68
  ref: `BlockParagraph/${string}`;
57
- data: {
58
- content?: string | undefined;
59
- };
60
- parents: {
61
- parent: `Post/${string}`;
62
- };
63
- entity: "BlockParagraph";
64
- created: {
65
- mutationRef: `Mutation/${string}`;
66
- timestamp: string;
67
- };
68
- updated: {
69
- mutationRef: `Mutation/${string}`;
70
- timestamp: string;
71
- };
72
- children: {};
73
- ancestors: {};
74
- }>, import("roc-db").WriteOperation<string, {
75
- debounceCount: number;
76
- name: string;
77
- payload?: any;
78
- }, any, {
69
+ content: string;
70
+ }, {
79
71
  ref: `BlockParagraph/${string}`;
80
- data: {
81
- content?: string | undefined;
82
- };
83
- parents: {
84
- parent: `Post/${string}`;
85
- };
86
- entity: "BlockParagraph";
87
- created: {
88
- mutationRef: `Mutation/${string}`;
89
- timestamp: string;
90
- };
91
- updated: {
92
- mutationRef: `Mutation/${string}`;
93
- timestamp: string;
94
- };
95
- children: {};
96
- ancestors: {};
97
- }>, import("roc-db").WriteOperation<string, {
98
- debounceCount: number;
99
- name: string;
100
- payload?: any;
101
- }, any, {
102
- ref: `Draft/${string}`;
103
- data: {
104
- postRef: `Post/${string}`;
105
- };
106
- parents: {};
107
- entity: "Draft";
108
- created: {
109
- mutationRef: `Mutation/${string}`;
110
- timestamp: string;
111
- };
112
- updated: {
113
- mutationRef: `Mutation/${string}`;
114
- timestamp: string;
115
- };
116
- children: {};
117
- ancestors: {};
118
- }>, import("roc-db").WriteOperation<string, {
119
- debounceCount: number;
120
- name: string;
121
- payload?: any;
122
- }, any, {
72
+ content: string;
73
+ }>>, import("roc-db").WriteOperation<"updatePost", import("zod").ZodObject<{
74
+ ref: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
75
+ title: import("zod").ZodOptional<import("zod").ZodString>;
76
+ tags: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
77
+ authorRef: import("zod").ZodOptional<import("zod").ZodType<`User/${string}`, import("zod").ZodTypeDef, `User/${string}`>>;
78
+ }, "strip", import("zod").ZodTypeAny, {
123
79
  ref: `Post/${string}`;
124
- data: {
125
- title: string;
126
- tags: string[];
127
- text?: string | undefined;
128
- slug?: string | undefined;
129
- };
130
- parents: {
131
- author?: `User/${string}` | undefined;
132
- };
133
- entity: "Post";
134
- created: {
135
- mutationRef: `Mutation/${string}`;
136
- timestamp: string;
137
- };
138
- updated: {
139
- mutationRef: `Mutation/${string}`;
140
- timestamp: string;
141
- };
142
- children: {
143
- blocks: string[];
144
- };
145
- ancestors: {};
146
- }>, import("roc-db").WriteOperation<string, {
147
- debounceCount: number;
148
- name: string;
149
- payload?: any;
150
- }, any, {
80
+ tags: string[];
81
+ title?: string | undefined;
82
+ authorRef?: `User/${string}` | undefined;
83
+ }, {
151
84
  ref: `Post/${string}`;
152
- data: {
153
- title: string;
154
- tags: string[];
155
- text?: string | undefined;
156
- slug?: string | undefined;
157
- };
158
- parents: {
159
- author?: `User/${string}` | undefined;
160
- };
161
- entity: "Post";
162
- created: {
163
- mutationRef: `Mutation/${string}`;
164
- timestamp: string;
165
- };
166
- updated: {
167
- mutationRef: `Mutation/${string}`;
168
- timestamp: string;
169
- };
170
- children: {
171
- blocks: string[];
172
- };
173
- ancestors: {};
174
- }>, import("roc-db").WriteOperation<string, {
175
- debounceCount: number;
176
- name: string;
177
- payload?: any;
178
- }, any, any>, import("roc-db").WriteOperation<string, {
179
- debounceCount: number;
180
- name: string;
181
- payload?: any;
182
- }, any, any>, import("roc-db").WriteOperation<string, {
183
- debounceCount: number;
184
- name: string;
185
- payload?: any;
186
- }, any, any>, any, any, any, import("roc-db").WriteOperation<string, {
187
- debounceCount: number;
188
- name: string;
189
- payload?: any;
190
- }, any, {
85
+ title?: string | undefined;
86
+ tags?: string[] | undefined;
87
+ authorRef?: `User/${string}` | undefined;
88
+ }>>, import("roc-db").WriteOperation<"updatePostDescription", import("zod").ZodObject<{
89
+ ref: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
90
+ description: import("zod").ZodString;
91
+ }, "strip", import("zod").ZodTypeAny, {
191
92
  ref: `Post/${string}`;
192
- data: {
193
- title: string;
194
- tags: string[];
195
- text?: string | undefined;
196
- slug?: string | undefined;
197
- };
198
- parents: {
199
- author?: `User/${string}` | undefined;
200
- };
201
- entity: "Post";
202
- created: {
203
- mutationRef: `Mutation/${string}`;
204
- timestamp: string;
205
- };
206
- updated: {
207
- mutationRef: `Mutation/${string}`;
208
- timestamp: string;
209
- };
210
- children: {
211
- blocks: string[];
212
- };
213
- ancestors: {};
214
- }>, import("roc-db").WriteOperation<string, {
215
- debounceCount: number;
216
- name: string;
217
- payload?: any;
218
- }, any, `BlockParagraph/${string}`>, import("roc-db").WriteOperation<string, {
219
- debounceCount: number;
220
- name: string;
221
- payload?: any;
222
- }, any, {
93
+ description: string;
94
+ }, {
223
95
  ref: `Post/${string}`;
224
- data: {
225
- title: string;
226
- tags: string[];
227
- text?: string | undefined;
228
- slug?: string | undefined;
229
- };
230
- parents: {
231
- author?: `User/${string}` | undefined;
232
- };
233
- entity: "Post";
234
- created: {
235
- mutationRef: `Mutation/${string}`;
236
- timestamp: string;
237
- };
238
- updated: {
239
- mutationRef: `Mutation/${string}`;
240
- timestamp: string;
241
- };
242
- children: {
243
- blocks: string[];
244
- };
245
- ancestors: {};
246
- }>, import("roc-db").WriteOperation<string, {
247
- debounceCount: number;
248
- name: string;
249
- payload?: any;
250
- }, any, {
96
+ description: string;
97
+ }>>, import("roc-db").WriteOperation<"updatePostTitle", import("zod").ZodObject<{
98
+ ref: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
99
+ title: import("zod").ZodString;
100
+ }, "strip", import("zod").ZodTypeAny, {
251
101
  ref: `Post/${string}`;
252
- data: {
253
- title: string;
254
- tags: string[];
255
- text?: string | undefined;
256
- slug?: string | undefined;
257
- };
258
- parents: {
259
- author?: `User/${string}` | undefined;
260
- };
261
- entity: "Post";
262
- created: {
263
- mutationRef: `Mutation/${string}`;
264
- timestamp: string;
265
- };
266
- updated: {
267
- mutationRef: `Mutation/${string}`;
268
- timestamp: string;
269
- };
270
- children: {
271
- blocks: string[];
272
- };
273
- ancestors: {};
274
- }>, import("roc-db").WriteOperation<string, {
275
- debounceCount: number;
276
- name: string;
277
- payload?: any;
278
- }, any, {
102
+ title: string;
103
+ }, {
279
104
  ref: `Post/${string}`;
280
- data: {
281
- title: string;
282
- tags: string[];
283
- text?: string | undefined;
284
- slug?: string | undefined;
285
- };
286
- parents: {
287
- author?: `User/${string}` | undefined;
288
- };
289
- entity: "Post";
290
- created: {
291
- mutationRef: `Mutation/${string}`;
292
- timestamp: string;
293
- };
294
- updated: {
295
- mutationRef: `Mutation/${string}`;
296
- timestamp: string;
297
- };
298
- children: {
299
- blocks: string[];
300
- };
301
- ancestors: {};
302
- }>];
105
+ title: string;
106
+ }>>];
@@ -1,5 +1,11 @@
1
- export declare const moveBlocks: import("roc-db").WriteOperation<string, {
2
- debounceCount: number;
3
- name: string;
4
- payload?: any;
5
- }, any, any>;
1
+ import { z } from "zod";
2
+ export declare const moveBlocks: import("roc-db").WriteOperation<"moveBlocks", z.ZodObject<{
3
+ refs: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
4
+ targetPosition: z.ZodNumber;
5
+ }, "strict", z.ZodTypeAny, {
6
+ refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
7
+ targetPosition: number;
8
+ }, {
9
+ refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
10
+ targetPosition: number;
11
+ }>>;
@@ -1,29 +1,14 @@
1
- export declare const testTransactionalEdits: import("roc-db").WriteOperation<string, {
2
- debounceCount: number;
3
- name: string;
4
- payload?: any;
5
- }, any, {
6
- ref: `Post/${string}`;
7
- data: {
8
- title: string;
9
- tags: string[];
10
- text?: string | undefined;
11
- slug?: string | undefined;
12
- };
13
- parents: {
14
- author?: `User/${string}` | undefined;
15
- };
16
- entity: "Post";
17
- created: {
18
- mutationRef: `Mutation/${string}`;
19
- timestamp: string;
20
- };
21
- updated: {
22
- mutationRef: `Mutation/${string}`;
23
- timestamp: string;
24
- };
25
- children: {
26
- blocks: string[];
27
- };
28
- ancestors: {};
29
- }>;
1
+ import { z } from "zod";
2
+ export declare const testTransactionalEdits: import("roc-db").WriteOperation<"testTransactionalEdits", z.ZodObject<{
3
+ name: z.ZodOptional<z.ZodString>;
4
+ post1ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
5
+ post2ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ name?: string | undefined;
8
+ post1ref?: `Post/${string}` | undefined;
9
+ post2ref?: `Post/${string}` | undefined;
10
+ }, {
11
+ name?: string | undefined;
12
+ post1ref?: `Post/${string}` | undefined;
13
+ post2ref?: `Post/${string}` | undefined;
14
+ }>>;
@@ -1,5 +1,11 @@
1
- export declare const updateBlockParagraph: import("roc-db").WriteOperation<string, {
2
- debounceCount: number;
3
- name: string;
4
- payload?: any;
5
- }, any, `BlockParagraph/${string}`>;
1
+ import { z } from "zod";
2
+ export declare const updateBlockParagraph: import("roc-db").WriteOperation<"updateBlockParagraph", z.ZodObject<{
3
+ ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
4
+ content: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ ref: `BlockParagraph/${string}`;
7
+ content: string;
8
+ }, {
9
+ ref: `BlockParagraph/${string}`;
10
+ content: string;
11
+ }>>;
@@ -1,29 +1,17 @@
1
- export declare const updatePost: import("roc-db").WriteOperation<string, {
2
- debounceCount: number;
3
- name: string;
4
- payload?: any;
5
- }, any, {
1
+ import { z } from "zod";
2
+ export declare const updatePost: import("roc-db").WriteOperation<"updatePost", z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ title: z.ZodOptional<z.ZodString>;
5
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6
+ authorRef: z.ZodOptional<z.ZodType<`User/${string}`, z.ZodTypeDef, `User/${string}`>>;
7
+ }, "strip", z.ZodTypeAny, {
6
8
  ref: `Post/${string}`;
7
- data: {
8
- title: string;
9
- tags: string[];
10
- text?: string | undefined;
11
- slug?: string | undefined;
12
- };
13
- parents: {
14
- author?: `User/${string}` | undefined;
15
- };
16
- entity: "Post";
17
- created: {
18
- mutationRef: `Mutation/${string}`;
19
- timestamp: string;
20
- };
21
- updated: {
22
- mutationRef: `Mutation/${string}`;
23
- timestamp: string;
24
- };
25
- children: {
26
- blocks: string[];
27
- };
28
- ancestors: {};
29
- }>;
9
+ tags: string[];
10
+ title?: string | undefined;
11
+ authorRef?: `User/${string}` | undefined;
12
+ }, {
13
+ ref: `Post/${string}`;
14
+ title?: string | undefined;
15
+ tags?: string[] | undefined;
16
+ authorRef?: `User/${string}` | undefined;
17
+ }>>;
@@ -1,29 +1,11 @@
1
- export declare const updatePostDescription: import("roc-db").WriteOperation<string, {
2
- debounceCount: number;
3
- name: string;
4
- payload?: any;
5
- }, any, {
1
+ import { z } from "zod";
2
+ export declare const updatePostDescription: import("roc-db").WriteOperation<"updatePostDescription", z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ description: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
6
  ref: `Post/${string}`;
7
- data: {
8
- title: string;
9
- tags: string[];
10
- text?: string | undefined;
11
- slug?: string | undefined;
12
- };
13
- parents: {
14
- author?: `User/${string}` | undefined;
15
- };
16
- entity: "Post";
17
- created: {
18
- mutationRef: `Mutation/${string}`;
19
- timestamp: string;
20
- };
21
- updated: {
22
- mutationRef: `Mutation/${string}`;
23
- timestamp: string;
24
- };
25
- children: {
26
- blocks: string[];
27
- };
28
- ancestors: {};
29
- }>;
7
+ description: string;
8
+ }, {
9
+ ref: `Post/${string}`;
10
+ description: string;
11
+ }>>;
@@ -1,29 +1,11 @@
1
- export declare const updatePostTitle: import("roc-db").WriteOperation<string, {
2
- debounceCount: number;
3
- name: string;
4
- payload?: any;
5
- }, any, {
1
+ import { z } from "zod";
2
+ export declare const updatePostTitle: import("roc-db").WriteOperation<"updatePostTitle", z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ title: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
6
  ref: `Post/${string}`;
7
- data: {
8
- title: string;
9
- tags: string[];
10
- text?: string | undefined;
11
- slug?: string | undefined;
12
- };
13
- parents: {
14
- author?: `User/${string}` | undefined;
15
- };
16
- entity: "Post";
17
- created: {
18
- mutationRef: `Mutation/${string}`;
19
- timestamp: string;
20
- };
21
- updated: {
22
- mutationRef: `Mutation/${string}`;
23
- timestamp: string;
24
- };
25
- children: {
26
- blocks: string[];
27
- };
28
- ancestors: {};
29
- }>;
7
+ title: string;
8
+ }, {
9
+ ref: `Post/${string}`;
10
+ title: string;
11
+ }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roc-db/test-utils",
3
- "version": "0.2.0-pre.46",
3
+ "version": "0.2.0-pre.48",
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.46",
20
+ "roc-db": "0.2.0-pre.48",
21
21
  "zod": "3.24.2"
22
22
  },
23
23
  "keywords": [],