@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.
Files changed (41) hide show
  1. package/dist/index.js +181 -114
  2. package/dist/types/operations/createBlockImage.d.ts +1 -1
  3. package/dist/types/operations/createBlockParagraph.d.ts +1 -1
  4. package/dist/types/operations/createBlockRow.d.ts +1 -1
  5. package/dist/types/operations/createBlockTitle.d.ts +1 -1
  6. package/dist/types/operations/createDraft.d.ts +1 -1
  7. package/dist/types/operations/createPost.d.ts +1 -1
  8. package/dist/types/operations/deleteBlocks.d.ts +1 -1
  9. package/dist/types/operations/deleteDraft.d.ts +5 -0
  10. package/dist/types/operations/index.d.ts +15 -11
  11. package/dist/types/operations/testTransactionalEdits.d.ts +1 -1
  12. package/dist/types/operations/updatePost.d.ts +1 -1
  13. package/dist/types/operations/updatePostDescription.d.ts +1 -1
  14. package/dist/types/operations/updatePostTitle.d.ts +1 -1
  15. package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +2 -2
  16. package/dist/types/schemas/BlockImageSchema.d.ts +3 -3
  17. package/dist/types/schemas/BlockParagraphSchema.d.ts +3 -3
  18. package/dist/types/schemas/BlockRowSchema.d.ts +3 -3
  19. package/dist/types/schemas/BlockTitleSchema.d.ts +3 -3
  20. package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +2 -2
  21. package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +2 -2
  22. package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +2 -2
  23. package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +2 -2
  24. package/dist/types/schemas/CreateDraftMutationSchema.d.ts +2 -2
  25. package/dist/types/schemas/CreatePostMutationSchema.d.ts +2 -2
  26. package/dist/types/schemas/CreateUserMutationSchema.d.ts +2 -2
  27. package/dist/types/schemas/DeleteBlocksMutationSchema.d.ts +2 -2
  28. package/dist/types/schemas/DeleteDraftMutationSchema.d.ts +53 -0
  29. package/dist/types/schemas/DeletePostMutationSchema.d.ts +2 -2
  30. package/dist/types/schemas/DraftSchema.d.ts +3 -3
  31. package/dist/types/schemas/MoveBlocksMutationSchema.d.ts +2 -2
  32. package/dist/types/schemas/PostSchema.d.ts +3 -3
  33. package/dist/types/schemas/PostVersionRefSchema.d.ts +1 -0
  34. package/dist/types/schemas/PostVersionSchema.d.ts +85 -0
  35. package/dist/types/schemas/TestTransactionalEditsMutationSchema.d.ts +2 -2
  36. package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +2 -2
  37. package/dist/types/schemas/UpdatePostDescriptionMutationSchema.d.ts +2 -2
  38. package/dist/types/schemas/UpdatePostMutationSchema.d.ts +2 -2
  39. package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +2 -2
  40. package/dist/types/schemas/index.d.ts +179 -15
  41. package/package.json +2 -2
@@ -14,7 +14,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
14
14
  parents: {
15
15
  post: `Post/${string}`;
16
16
  };
17
- entity: string;
17
+ entity: "BlockImage";
18
18
  created: {
19
19
  mutationRef: `Mutation/${string}`;
20
20
  timestamp: string;
@@ -37,7 +37,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
37
37
  parents: {
38
38
  post: `Post/${string}`;
39
39
  };
40
- entity: string;
40
+ entity: "BlockTitle";
41
41
  created: {
42
42
  mutationRef: `Mutation/${string}`;
43
43
  timestamp: string;
@@ -60,7 +60,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
60
60
  parents: {
61
61
  parent: `Post/${string}`;
62
62
  };
63
- entity: string;
63
+ entity: "BlockParagraph";
64
64
  created: {
65
65
  mutationRef: `Mutation/${string}`;
66
66
  timestamp: string;
@@ -83,7 +83,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
83
83
  parents: {
84
84
  parent: `Post/${string}`;
85
85
  };
86
- entity: string;
86
+ entity: "BlockParagraph";
87
87
  created: {
88
88
  mutationRef: `Mutation/${string}`;
89
89
  timestamp: string;
@@ -104,7 +104,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
104
104
  postRef: `Post/${string}`;
105
105
  };
106
106
  parents: {};
107
- entity: string;
107
+ entity: "Draft";
108
108
  created: {
109
109
  mutationRef: `Mutation/${string}`;
110
110
  timestamp: string;
@@ -130,7 +130,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
130
130
  parents: {
131
131
  author?: `User/${string}` | undefined;
132
132
  };
133
- entity: string;
133
+ entity: "Post";
134
134
  created: {
135
135
  mutationRef: `Mutation/${string}`;
136
136
  timestamp: string;
@@ -158,7 +158,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
158
158
  parents: {
159
159
  author?: `User/${string}` | undefined;
160
160
  };
161
- entity: string;
161
+ entity: "Post";
162
162
  created: {
163
163
  mutationRef: `Mutation/${string}`;
164
164
  timestamp: string;
@@ -179,6 +179,10 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
179
179
  debounceCount: number;
180
180
  name: string;
181
181
  payload?: any;
182
+ }, any, any>, import("roc-db").WriteOperation<string, {
183
+ debounceCount: number;
184
+ name: string;
185
+ payload?: any;
182
186
  }, any, any>, any, any, any, import("roc-db").WriteOperation<string, {
183
187
  debounceCount: number;
184
188
  name: string;
@@ -194,7 +198,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
194
198
  parents: {
195
199
  author?: `User/${string}` | undefined;
196
200
  };
197
- entity: string;
201
+ entity: "Post";
198
202
  created: {
199
203
  mutationRef: `Mutation/${string}`;
200
204
  timestamp: string;
@@ -226,7 +230,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
226
230
  parents: {
227
231
  author?: `User/${string}` | undefined;
228
232
  };
229
- entity: string;
233
+ entity: "Post";
230
234
  created: {
231
235
  mutationRef: `Mutation/${string}`;
232
236
  timestamp: string;
@@ -254,7 +258,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
254
258
  parents: {
255
259
  author?: `User/${string}` | undefined;
256
260
  };
257
- entity: string;
261
+ entity: "Post";
258
262
  created: {
259
263
  mutationRef: `Mutation/${string}`;
260
264
  timestamp: string;
@@ -282,7 +286,7 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
282
286
  parents: {
283
287
  author?: `User/${string}` | undefined;
284
288
  };
285
- entity: string;
289
+ entity: "Post";
286
290
  created: {
287
291
  mutationRef: `Mutation/${string}`;
288
292
  timestamp: string;
@@ -13,7 +13,7 @@ export declare const testTransactionalEdits: import("roc-db").WriteOperation<str
13
13
  parents: {
14
14
  author?: `User/${string}` | undefined;
15
15
  };
16
- entity: string;
16
+ entity: "Post";
17
17
  created: {
18
18
  mutationRef: `Mutation/${string}`;
19
19
  timestamp: string;
@@ -13,7 +13,7 @@ export declare const updatePost: import("roc-db").WriteOperation<string, {
13
13
  parents: {
14
14
  author?: `User/${string}` | undefined;
15
15
  };
16
- entity: string;
16
+ entity: "Post";
17
17
  created: {
18
18
  mutationRef: `Mutation/${string}`;
19
19
  timestamp: string;
@@ -13,7 +13,7 @@ export declare const updatePostDescription: import("roc-db").WriteOperation<stri
13
13
  parents: {
14
14
  author?: `User/${string}` | undefined;
15
15
  };
16
- entity: string;
16
+ entity: "Post";
17
17
  created: {
18
18
  mutationRef: `Mutation/${string}`;
19
19
  timestamp: string;
@@ -13,7 +13,7 @@ export declare const updatePostTitle: import("roc-db").WriteOperation<string, {
13
13
  parents: {
14
14
  author?: `User/${string}` | undefined;
15
15
  };
16
- entity: string;
16
+ entity: "Post";
17
17
  created: {
18
18
  mutationRef: `Mutation/${string}`;
19
19
  timestamp: string;
@@ -14,8 +14,8 @@ export declare const ApplyDraftMutationSchema: z.ZodObject<z.objectUtil.extendSh
14
14
  name: z.ZodLiteral<"applyDraft">;
15
15
  version: z.ZodDefault<z.ZodNumber>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: "applyDraft";
18
17
  version: number;
18
+ name: "applyDraft";
19
19
  }, {
20
20
  name: "applyDraft";
21
21
  version?: number | undefined;
@@ -40,8 +40,8 @@ export declare const ApplyDraftMutationSchema: z.ZodObject<z.objectUtil.extendSh
40
40
  debounceCount: number;
41
41
  identityRef: string;
42
42
  operation: {
43
- name: "applyDraft";
44
43
  version: number;
44
+ name: "applyDraft";
45
45
  };
46
46
  sessionRef?: string | null | undefined;
47
47
  persistedAt?: string | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const BlockImageSchema: z.ZodObject<{
3
3
  ref: z.ZodType<`BlockImage/${string}`, z.ZodTypeDef, `BlockImage/${string}`>;
4
- entity: z.ZodString;
4
+ entity: z.ZodLiteral<"BlockImage">;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
7
7
  timestamp: z.ZodString;
@@ -46,7 +46,7 @@ export declare const BlockImageSchema: z.ZodObject<{
46
46
  parents: {
47
47
  post: `Post/${string}`;
48
48
  };
49
- entity: string;
49
+ entity: "BlockImage";
50
50
  created: {
51
51
  mutationRef: `Mutation/${string}`;
52
52
  timestamp: string;
@@ -65,7 +65,7 @@ export declare const BlockImageSchema: z.ZodObject<{
65
65
  parents: {
66
66
  post: `Post/${string}`;
67
67
  };
68
- entity: string;
68
+ entity: "BlockImage";
69
69
  created: {
70
70
  mutationRef: `Mutation/${string}`;
71
71
  timestamp: string;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const BlockParagraphSchema: z.ZodObject<{
3
3
  ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
4
- entity: z.ZodString;
4
+ entity: z.ZodLiteral<"BlockParagraph">;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
7
7
  timestamp: z.ZodString;
@@ -46,7 +46,7 @@ export declare const BlockParagraphSchema: z.ZodObject<{
46
46
  parents: {
47
47
  parent: `Post/${string}`;
48
48
  };
49
- entity: string;
49
+ entity: "BlockParagraph";
50
50
  created: {
51
51
  mutationRef: `Mutation/${string}`;
52
52
  timestamp: string;
@@ -65,7 +65,7 @@ export declare const BlockParagraphSchema: z.ZodObject<{
65
65
  parents: {
66
66
  parent: `Post/${string}`;
67
67
  };
68
- entity: string;
68
+ entity: "BlockParagraph";
69
69
  created: {
70
70
  mutationRef: `Mutation/${string}`;
71
71
  timestamp: string;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const BlockRowSchema: z.ZodObject<{
3
3
  ref: z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>;
4
- entity: z.ZodString;
4
+ entity: z.ZodLiteral<"BlockRow">;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
7
7
  timestamp: z.ZodString;
@@ -48,7 +48,7 @@ export declare const BlockRowSchema: z.ZodObject<{
48
48
  post: `Post/${string}`;
49
49
  block: `BlockParagraph/${string}` | `BlockRow/${string}`;
50
50
  };
51
- entity: string;
51
+ entity: "BlockRow";
52
52
  created: {
53
53
  mutationRef: `Mutation/${string}`;
54
54
  timestamp: string;
@@ -68,7 +68,7 @@ export declare const BlockRowSchema: z.ZodObject<{
68
68
  post: `Post/${string}`;
69
69
  block: `BlockParagraph/${string}` | `BlockRow/${string}`;
70
70
  };
71
- entity: string;
71
+ entity: "BlockRow";
72
72
  created: {
73
73
  mutationRef: `Mutation/${string}`;
74
74
  timestamp: string;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const BlockTitleSchema: z.ZodObject<{
3
3
  ref: z.ZodType<`BlockTitle/${string}`, z.ZodTypeDef, `BlockTitle/${string}`>;
4
- entity: z.ZodString;
4
+ entity: z.ZodLiteral<"BlockTitle">;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
7
7
  timestamp: z.ZodString;
@@ -46,7 +46,7 @@ export declare const BlockTitleSchema: z.ZodObject<{
46
46
  parents: {
47
47
  post: `Post/${string}`;
48
48
  };
49
- entity: string;
49
+ entity: "BlockTitle";
50
50
  created: {
51
51
  mutationRef: `Mutation/${string}`;
52
52
  timestamp: string;
@@ -65,7 +65,7 @@ export declare const BlockTitleSchema: z.ZodObject<{
65
65
  parents: {
66
66
  post: `Post/${string}`;
67
67
  };
68
- entity: string;
68
+ entity: "BlockTitle";
69
69
  created: {
70
70
  mutationRef: `Mutation/${string}`;
71
71
  timestamp: string;
@@ -14,8 +14,8 @@ export declare const CreateBlockImageMutationSchema: z.ZodObject<z.objectUtil.ex
14
14
  name: z.ZodLiteral<"createBlockImage">;
15
15
  version: z.ZodDefault<z.ZodNumber>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: "createBlockImage";
18
17
  version: number;
18
+ name: "createBlockImage";
19
19
  }, {
20
20
  name: "createBlockImage";
21
21
  version?: number | undefined;
@@ -40,8 +40,8 @@ export declare const CreateBlockImageMutationSchema: z.ZodObject<z.objectUtil.ex
40
40
  debounceCount: number;
41
41
  identityRef: string;
42
42
  operation: {
43
- name: "createBlockImage";
44
43
  version: number;
44
+ name: "createBlockImage";
45
45
  };
46
46
  sessionRef?: string | null | undefined;
47
47
  persistedAt?: string | null | undefined;
@@ -14,8 +14,8 @@ export declare const CreateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
14
14
  name: z.ZodLiteral<"createBlockParagraph">;
15
15
  version: z.ZodDefault<z.ZodNumber>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: "createBlockParagraph";
18
17
  version: number;
18
+ name: "createBlockParagraph";
19
19
  }, {
20
20
  name: "createBlockParagraph";
21
21
  version?: number | undefined;
@@ -40,8 +40,8 @@ export declare const CreateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
40
40
  debounceCount: number;
41
41
  identityRef: string;
42
42
  operation: {
43
- name: "createBlockParagraph";
44
43
  version: number;
44
+ name: "createBlockParagraph";
45
45
  };
46
46
  sessionRef?: string | null | undefined;
47
47
  persistedAt?: string | null | undefined;
@@ -14,8 +14,8 @@ export declare const CreateBlockRowMutationSchema: z.ZodObject<z.objectUtil.exte
14
14
  name: z.ZodLiteral<"createBlockRow">;
15
15
  version: z.ZodDefault<z.ZodNumber>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: "createBlockRow";
18
17
  version: number;
18
+ name: "createBlockRow";
19
19
  }, {
20
20
  name: "createBlockRow";
21
21
  version?: number | undefined;
@@ -40,8 +40,8 @@ export declare const CreateBlockRowMutationSchema: z.ZodObject<z.objectUtil.exte
40
40
  debounceCount: number;
41
41
  identityRef: string;
42
42
  operation: {
43
- name: "createBlockRow";
44
43
  version: number;
44
+ name: "createBlockRow";
45
45
  };
46
46
  sessionRef?: string | null | undefined;
47
47
  persistedAt?: string | null | undefined;
@@ -14,8 +14,8 @@ export declare const CreateBlockTitleMutationSchema: z.ZodObject<z.objectUtil.ex
14
14
  name: z.ZodLiteral<"createBlockTitle">;
15
15
  version: z.ZodDefault<z.ZodNumber>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: "createBlockTitle";
18
17
  version: number;
18
+ name: "createBlockTitle";
19
19
  }, {
20
20
  name: "createBlockTitle";
21
21
  version?: number | undefined;
@@ -40,8 +40,8 @@ export declare const CreateBlockTitleMutationSchema: z.ZodObject<z.objectUtil.ex
40
40
  debounceCount: number;
41
41
  identityRef: string;
42
42
  operation: {
43
- name: "createBlockTitle";
44
43
  version: number;
44
+ name: "createBlockTitle";
45
45
  };
46
46
  sessionRef?: string | null | undefined;
47
47
  persistedAt?: string | null | undefined;
@@ -14,8 +14,8 @@ export declare const CreateDraftMutationSchema: z.ZodObject<z.objectUtil.extendS
14
14
  name: z.ZodLiteral<"createDraft">;
15
15
  version: z.ZodDefault<z.ZodNumber>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: "createDraft";
18
17
  version: number;
18
+ name: "createDraft";
19
19
  }, {
20
20
  name: "createDraft";
21
21
  version?: number | undefined;
@@ -40,8 +40,8 @@ export declare const CreateDraftMutationSchema: z.ZodObject<z.objectUtil.extendS
40
40
  debounceCount: number;
41
41
  identityRef: string;
42
42
  operation: {
43
- name: "createDraft";
44
43
  version: number;
44
+ name: "createDraft";
45
45
  };
46
46
  sessionRef?: string | null | undefined;
47
47
  persistedAt?: string | null | undefined;
@@ -14,8 +14,8 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
14
14
  name: z.ZodLiteral<"createPost">;
15
15
  version: z.ZodDefault<z.ZodNumber>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: "createPost";
18
17
  version: number;
18
+ name: "createPost";
19
19
  }, {
20
20
  name: "createPost";
21
21
  version?: number | undefined;
@@ -48,8 +48,8 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
48
48
  debounceCount: number;
49
49
  identityRef: string;
50
50
  operation: {
51
- name: "createPost";
52
51
  version: number;
52
+ name: "createPost";
53
53
  };
54
54
  sessionRef?: string | null | undefined;
55
55
  persistedAt?: string | null | undefined;
@@ -14,8 +14,8 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
14
14
  name: z.ZodLiteral<"createUser">;
15
15
  version: z.ZodDefault<z.ZodNumber>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: "createUser";
18
17
  version: number;
18
+ name: "createUser";
19
19
  }, {
20
20
  name: "createUser";
21
21
  version?: number | undefined;
@@ -40,8 +40,8 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
40
40
  debounceCount: number;
41
41
  identityRef: string;
42
42
  operation: {
43
- name: "createUser";
44
43
  version: number;
44
+ name: "createUser";
45
45
  };
46
46
  sessionRef?: string | null | undefined;
47
47
  persistedAt?: string | null | undefined;
@@ -14,8 +14,8 @@ export declare const DeleteBlocksMutationSchema: z.ZodObject<z.objectUtil.extend
14
14
  name: z.ZodLiteral<"deleteBlocks">;
15
15
  version: z.ZodDefault<z.ZodNumber>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: "deleteBlocks";
18
17
  version: number;
18
+ name: "deleteBlocks";
19
19
  }, {
20
20
  name: "deleteBlocks";
21
21
  version?: number | undefined;
@@ -32,8 +32,8 @@ export declare const DeleteBlocksMutationSchema: z.ZodObject<z.objectUtil.extend
32
32
  debounceCount: number;
33
33
  identityRef: string;
34
34
  operation: {
35
- name: "deleteBlocks";
36
35
  version: number;
36
+ name: "deleteBlocks";
37
37
  };
38
38
  sessionRef?: string | null | undefined;
39
39
  persistedAt?: string | null | undefined;
@@ -0,0 +1,53 @@
1
+ export declare const DeleteDraftMutationSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
2
+ ref: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
3
+ timestamp: import("zod").ZodString;
4
+ changeSetRef: import("zod").ZodNullable<import("zod").ZodType<never, import("zod").ZodTypeDef, never>>;
5
+ payload: import("zod").ZodAny;
6
+ log: import("zod").ZodArray<import("zod").ZodAny, "many">;
7
+ debounceCount: import("zod").ZodNumber;
8
+ identityRef: import("zod").ZodString;
9
+ sessionRef: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
10
+ persistedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
11
+ }, {
12
+ operation: import("zod").ZodObject<{
13
+ name: import("zod").ZodLiteral<"deleteDraft">;
14
+ version: import("zod").ZodDefault<import("zod").ZodNumber>;
15
+ }, "strip", import("zod").ZodTypeAny, {
16
+ version: number;
17
+ name: "deleteDraft";
18
+ }, {
19
+ name: "deleteDraft";
20
+ version?: number | undefined;
21
+ }>;
22
+ changeSetRef: import("zod").ZodType<never, import("zod").ZodTypeDef, never> | import("zod").ZodNullable<import("zod").ZodType<never, import("zod").ZodTypeDef, never>>;
23
+ payload: import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>;
24
+ log: import("zod").ZodType<any[], import("zod").ZodTypeDef, any[]>;
25
+ }>, "strict", import("zod").ZodTypeAny, {
26
+ ref: `Mutation/${string}`;
27
+ timestamp: string;
28
+ changeSetRef: null;
29
+ payload: `Draft/${string}`;
30
+ log: any[];
31
+ debounceCount: number;
32
+ identityRef: string;
33
+ operation: {
34
+ version: number;
35
+ name: "deleteDraft";
36
+ };
37
+ sessionRef?: string | null | undefined;
38
+ persistedAt?: string | null | undefined;
39
+ }, {
40
+ ref: `Mutation/${string}`;
41
+ timestamp: string;
42
+ changeSetRef: null;
43
+ payload: `Draft/${string}`;
44
+ log: any[];
45
+ debounceCount: number;
46
+ identityRef: string;
47
+ operation: {
48
+ name: "deleteDraft";
49
+ version?: number | undefined;
50
+ };
51
+ sessionRef?: string | null | undefined;
52
+ persistedAt?: string | null | undefined;
53
+ }>;
@@ -13,8 +13,8 @@ export declare const DeletePostMutationSchema: import("zod").ZodObject<import("z
13
13
  name: import("zod").ZodLiteral<"deletePost">;
14
14
  version: import("zod").ZodDefault<import("zod").ZodNumber>;
15
15
  }, "strip", import("zod").ZodTypeAny, {
16
- name: "deletePost";
17
16
  version: number;
17
+ name: "deletePost";
18
18
  }, {
19
19
  name: "deletePost";
20
20
  version?: number | undefined;
@@ -31,8 +31,8 @@ export declare const DeletePostMutationSchema: import("zod").ZodObject<import("z
31
31
  debounceCount: number;
32
32
  identityRef: string;
33
33
  operation: {
34
- name: "deletePost";
35
34
  version: number;
35
+ name: "deletePost";
36
36
  };
37
37
  sessionRef?: string | null | undefined;
38
38
  persistedAt?: string | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const DraftSchema: z.ZodObject<{
3
3
  ref: z.ZodType<`Draft/${string}`, z.ZodTypeDef, `Draft/${string}`>;
4
- entity: z.ZodString;
4
+ entity: z.ZodLiteral<"Draft">;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
7
7
  timestamp: z.ZodString;
@@ -38,7 +38,7 @@ export declare const DraftSchema: z.ZodObject<{
38
38
  postRef: `Post/${string}`;
39
39
  };
40
40
  parents: {};
41
- entity: string;
41
+ entity: "Draft";
42
42
  created: {
43
43
  mutationRef: `Mutation/${string}`;
44
44
  timestamp: string;
@@ -55,7 +55,7 @@ export declare const DraftSchema: z.ZodObject<{
55
55
  postRef: `Post/${string}`;
56
56
  };
57
57
  parents: {};
58
- entity: string;
58
+ entity: "Draft";
59
59
  created: {
60
60
  mutationRef: `Mutation/${string}`;
61
61
  timestamp: string;
@@ -14,8 +14,8 @@ export declare const MoveBlocksMutationSchema: z.ZodObject<z.objectUtil.extendSh
14
14
  name: z.ZodLiteral<"moveBlocks">;
15
15
  version: z.ZodDefault<z.ZodNumber>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: "moveBlocks";
18
17
  version: number;
18
+ name: "moveBlocks";
19
19
  }, {
20
20
  name: "moveBlocks";
21
21
  version?: number | undefined;
@@ -44,8 +44,8 @@ export declare const MoveBlocksMutationSchema: z.ZodObject<z.objectUtil.extendSh
44
44
  debounceCount: number;
45
45
  identityRef: string;
46
46
  operation: {
47
- name: "moveBlocks";
48
47
  version: number;
48
+ name: "moveBlocks";
49
49
  };
50
50
  sessionRef?: string | null | undefined;
51
51
  persistedAt?: string | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const PostSchema: z.ZodObject<{
3
3
  ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
- entity: z.ZodString;
4
+ entity: z.ZodLiteral<"Post">;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
7
7
  timestamp: z.ZodString;
@@ -64,7 +64,7 @@ export declare const PostSchema: z.ZodObject<{
64
64
  parents: {
65
65
  author?: `User/${string}` | undefined;
66
66
  };
67
- entity: string;
67
+ entity: "Post";
68
68
  created: {
69
69
  mutationRef: `Mutation/${string}`;
70
70
  timestamp: string;
@@ -88,7 +88,7 @@ export declare const PostSchema: z.ZodObject<{
88
88
  parents: {
89
89
  author?: `User/${string}` | undefined;
90
90
  };
91
- entity: string;
91
+ entity: "Post";
92
92
  created: {
93
93
  mutationRef: `Mutation/${string}`;
94
94
  timestamp: string;
@@ -0,0 +1 @@
1
+ export declare const PostVersionRefSchema: import("zod").ZodType<`PostVersion/${string}`, import("zod").ZodTypeDef, `PostVersion/${string}`>;