@roc-db/test-utils 0.2.0-pre.7 → 0.2.0-pre.71

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 (60) hide show
  1. package/dist/index.js +926 -286
  2. package/dist/types/entities/BlockImageEntity.d.ts +15 -0
  3. package/dist/types/entities/BlockParagraph.d.ts +15 -0
  4. package/dist/types/entities/BlockRow.d.ts +15 -0
  5. package/dist/types/entities/Draft.d.ts +15 -0
  6. package/dist/types/entities/PostEntity.d.ts +30 -0
  7. package/dist/types/entities/PostVersion.d.ts +18 -0
  8. package/dist/types/entities/UserEntity.d.ts +9 -0
  9. package/dist/types/entities/index.d.ts +97 -0
  10. package/dist/types/index.d.ts +2 -1
  11. package/dist/types/operations/applyDraft.d.ts +1 -0
  12. package/dist/types/operations/createBlockImage.d.ts +10 -14
  13. package/dist/types/operations/createBlockParagraph.d.ts +6 -13
  14. package/dist/types/operations/createBlockRow.d.ts +6 -13
  15. package/dist/types/operations/createBlockTitle.d.ts +6 -13
  16. package/dist/types/operations/createDraft.d.ts +6 -13
  17. package/dist/types/operations/createPost.d.ts +10 -15
  18. package/dist/types/operations/createUser.d.ts +8 -0
  19. package/dist/types/operations/crudBySlug.d.ts +11 -0
  20. package/dist/types/operations/deleteBlocks.d.ts +2 -0
  21. package/dist/types/operations/deleteDraft.d.ts +1 -0
  22. package/dist/types/operations/deletePost.d.ts +1 -9
  23. package/dist/types/operations/index.d.ts +1 -157
  24. package/dist/types/operations/moveBlocks.d.ts +11 -0
  25. package/dist/types/operations/pageBlocks.d.ts +1 -0
  26. package/dist/types/operations/pageEmptyEntitiesArray.d.ts +1 -0
  27. package/dist/types/operations/pagePosts.d.ts +1 -0
  28. package/dist/types/operations/pagePostsByTag.d.ts +1 -0
  29. package/dist/types/operations/pageSplat.d.ts +1 -0
  30. package/dist/types/operations/readMutation.d.ts +1 -0
  31. package/dist/types/operations/readPostBySlug.d.ts +1 -0
  32. package/dist/types/operations/testTransactionalEdits.d.ts +14 -0
  33. package/dist/types/operations/updateBlockParagraph.d.ts +8 -12
  34. package/dist/types/operations/updatePost.d.ts +12 -16
  35. package/dist/types/operations/updatePostDescription.d.ts +11 -0
  36. package/dist/types/operations/updatePostSlug.d.ts +11 -0
  37. package/dist/types/operations/updatePostTags.d.ts +11 -0
  38. package/dist/types/operations/updatePostTitle.d.ts +8 -14
  39. package/dist/types/schemas/BlockImageSchema.d.ts +56 -9
  40. package/dist/types/schemas/BlockParagraphSchema.d.ts +56 -9
  41. package/dist/types/schemas/BlockRowSchema.d.ts +61 -9
  42. package/dist/types/schemas/BlockTitleSchema.d.ts +56 -9
  43. package/dist/types/schemas/CreatePostMutationSchema.d.ts +31 -7
  44. package/dist/types/schemas/CreateUserMutationSchema.d.ts +31 -7
  45. package/dist/types/schemas/DraftSchema.d.ts +46 -9
  46. package/dist/types/schemas/PostSchema.d.ts +81 -9
  47. package/dist/types/schemas/UpdatePostMutationSchema.d.ts +32 -8
  48. package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +31 -7
  49. package/dist/types/schemas/index.d.ts +0 -31
  50. package/dist/types/testAdapterImplementation.d.ts +1 -1
  51. package/package.json +2 -2
  52. package/dist/types/operations/deleteBlock.d.ts +0 -11
  53. package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +0 -40
  54. package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +0 -40
  55. package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +0 -40
  56. package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +0 -40
  57. package/dist/types/schemas/CreateDraftMutationSchema.d.ts +0 -40
  58. package/dist/types/schemas/DeleteBlockMutationSchema.d.ts +0 -30
  59. package/dist/types/schemas/DeletePostMutationSchema.d.ts +0 -29
  60. package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +0 -45
@@ -1,15 +1,11 @@
1
- export declare const updateBlockParagraph: import("roc-db").WriteOperation<"updateBlockParagraph", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- ref: `BlockParagraph/${string}`;
7
- content: string;
8
- };
9
- log: [never, string, null][];
10
- debounceCount: number;
11
- name: "updateBlockParagraph";
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;
12
8
  }, {
13
9
  ref: `BlockParagraph/${string}`;
14
10
  content: string;
15
- }, `BlockParagraph/${string}`>;
11
+ }>>;
@@ -1,21 +1,17 @@
1
- export declare const updatePost: import("roc-db").WriteOperation<"updatePost", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- ref: `Post/${string}`;
7
- tags: string[];
8
- title?: string | undefined;
9
- authorRef?: `User/${string}` | undefined;
10
- };
11
- log: [never, string, null][];
12
- debounceCount: number;
13
- name: "updatePost";
14
- }, {
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, {
15
8
  ref: `Post/${string}`;
16
9
  tags: string[];
17
10
  title?: string | undefined;
18
11
  authorRef?: `User/${string}` | undefined;
19
12
  }, {
20
- [x: string]: any;
21
- }>;
13
+ ref: `Post/${string}`;
14
+ title?: string | undefined;
15
+ tags?: string[] | undefined;
16
+ authorRef?: `User/${string}` | undefined;
17
+ }>>;
@@ -0,0 +1,11 @@
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
+ ref: `Post/${string}`;
7
+ description: string;
8
+ }, {
9
+ ref: `Post/${string}`;
10
+ description: string;
11
+ }>>;
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const updatePostSlug: import("roc-db").WriteOperation<"updatePostSlug", z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ slug: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ ref: `Post/${string}`;
7
+ slug: string;
8
+ }, {
9
+ ref: `Post/${string}`;
10
+ slug: string;
11
+ }>>;
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const updatePostTags: import("roc-db").WriteOperation<"updatePostTags", z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ tags: z.ZodArray<z.ZodString, "many">;
5
+ }, "strip", z.ZodTypeAny, {
6
+ ref: `Post/${string}`;
7
+ tags: string[];
8
+ }, {
9
+ ref: `Post/${string}`;
10
+ tags: string[];
11
+ }>>;
@@ -1,17 +1,11 @@
1
- export declare const updatePostTitle: import("roc-db").WriteOperation<"updatePostTitle", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- ref: `Post/${string}`;
7
- title: string;
8
- };
9
- log: [never, string, null][];
10
- debounceCount: number;
11
- name: "updatePostTitle";
12
- }, {
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, {
13
6
  ref: `Post/${string}`;
14
7
  title: string;
15
8
  }, {
16
- [x: string]: any;
17
- }>;
9
+ ref: `Post/${string}`;
10
+ title: string;
11
+ }>>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
- export declare const BlockImageSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
4
- entity: z.ZodString;
2
+ export declare const BlockImageSchema: z.ZodObject<{
3
+ ref: z.ZodType<`BlockImage/${string}`, z.ZodTypeDef, `BlockImage/${string}`>;
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;
@@ -22,11 +22,58 @@ export declare const BlockImageSchema: z.ZodObject<z.objectUtil.extendShape<{
22
22
  mutationRef: `Mutation/${string}`;
23
23
  timestamp: string;
24
24
  }>;
25
- data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
26
- parents: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
27
- ancestors: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
28
- }, z.ZodRawShape>, "strict", z.ZodTypeAny, {
29
- [x: string]: any;
25
+ data: z.ZodObject<{
26
+ url: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ url: string;
29
+ }, {
30
+ url: string;
31
+ }>;
32
+ children: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
33
+ parents: z.ZodObject<{
34
+ post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ post: `Post/${string}`;
37
+ }, {
38
+ post: `Post/${string}`;
39
+ }>;
40
+ ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ ref: `BlockImage/${string}`;
43
+ data: {
44
+ url: string;
45
+ };
46
+ parents: {
47
+ post: `Post/${string}`;
48
+ };
49
+ entity: "BlockImage";
50
+ created: {
51
+ mutationRef: `Mutation/${string}`;
52
+ timestamp: string;
53
+ };
54
+ updated: {
55
+ mutationRef: `Mutation/${string}`;
56
+ timestamp: string;
57
+ };
58
+ children: {};
59
+ ancestors: {};
30
60
  }, {
31
- [x: string]: any;
61
+ ref: `BlockImage/${string}`;
62
+ data: {
63
+ url: string;
64
+ };
65
+ parents: {
66
+ post: `Post/${string}`;
67
+ };
68
+ entity: "BlockImage";
69
+ created: {
70
+ mutationRef: `Mutation/${string}`;
71
+ timestamp: string;
72
+ };
73
+ updated: {
74
+ mutationRef: `Mutation/${string}`;
75
+ timestamp: string;
76
+ };
77
+ children: {};
78
+ ancestors: {};
32
79
  }>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
- export declare const BlockParagraphSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
4
- entity: z.ZodString;
2
+ export declare const BlockParagraphSchema: z.ZodObject<{
3
+ ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
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;
@@ -22,12 +22,59 @@ export declare const BlockParagraphSchema: z.ZodObject<z.objectUtil.extendShape<
22
22
  mutationRef: `Mutation/${string}`;
23
23
  timestamp: string;
24
24
  }>;
25
- data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
26
- parents: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
27
- ancestors: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
28
- }, z.ZodRawShape>, "strict", z.ZodTypeAny, {
29
- [x: string]: any;
25
+ data: z.ZodObject<{
26
+ content: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ content?: string | undefined;
29
+ }, {
30
+ content?: string | undefined;
31
+ }>;
32
+ children: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
33
+ parents: z.ZodObject<{
34
+ parent: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ parent: `Post/${string}`;
37
+ }, {
38
+ parent: `Post/${string}`;
39
+ }>;
40
+ ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ ref: `BlockParagraph/${string}`;
43
+ data: {
44
+ content?: string | undefined;
45
+ };
46
+ parents: {
47
+ parent: `Post/${string}`;
48
+ };
49
+ entity: "BlockParagraph";
50
+ created: {
51
+ mutationRef: `Mutation/${string}`;
52
+ timestamp: string;
53
+ };
54
+ updated: {
55
+ mutationRef: `Mutation/${string}`;
56
+ timestamp: string;
57
+ };
58
+ children: {};
59
+ ancestors: {};
30
60
  }, {
31
- [x: string]: any;
61
+ ref: `BlockParagraph/${string}`;
62
+ data: {
63
+ content?: string | undefined;
64
+ };
65
+ parents: {
66
+ parent: `Post/${string}`;
67
+ };
68
+ entity: "BlockParagraph";
69
+ created: {
70
+ mutationRef: `Mutation/${string}`;
71
+ timestamp: string;
72
+ };
73
+ updated: {
74
+ mutationRef: `Mutation/${string}`;
75
+ timestamp: string;
76
+ };
77
+ children: {};
78
+ ancestors: {};
32
79
  }>;
33
80
  export type BlockParagraph = z.infer<typeof BlockParagraphSchema>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
- export declare const BlockRowSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
4
- entity: z.ZodString;
2
+ export declare const BlockRowSchema: z.ZodObject<{
3
+ ref: z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>;
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;
@@ -22,12 +22,64 @@ export declare const BlockRowSchema: z.ZodObject<z.objectUtil.extendShape<{
22
22
  mutationRef: `Mutation/${string}`;
23
23
  timestamp: string;
24
24
  }>;
25
- data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
26
- parents: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
27
- ancestors: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
28
- }, z.ZodRawShape>, "strict", z.ZodTypeAny, {
29
- [x: string]: any;
25
+ data: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
26
+ children: z.ZodObject<{
27
+ blocks: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
28
+ }, "strip", z.ZodTypeAny, {
29
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
30
+ }, {
31
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
32
+ }>;
33
+ parents: z.ZodObject<{
34
+ post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
35
+ block: z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ post: `Post/${string}`;
38
+ block: `BlockParagraph/${string}` | `BlockRow/${string}`;
39
+ }, {
40
+ post: `Post/${string}`;
41
+ block: `BlockParagraph/${string}` | `BlockRow/${string}`;
42
+ }>;
43
+ ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
44
+ }, "strict", z.ZodTypeAny, {
45
+ ref: `BlockRow/${string}`;
46
+ data: {};
47
+ parents: {
48
+ post: `Post/${string}`;
49
+ block: `BlockParagraph/${string}` | `BlockRow/${string}`;
50
+ };
51
+ entity: "BlockRow";
52
+ created: {
53
+ mutationRef: `Mutation/${string}`;
54
+ timestamp: string;
55
+ };
56
+ updated: {
57
+ mutationRef: `Mutation/${string}`;
58
+ timestamp: string;
59
+ };
60
+ children: {
61
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
62
+ };
63
+ ancestors: {};
30
64
  }, {
31
- [x: string]: any;
65
+ ref: `BlockRow/${string}`;
66
+ data: {};
67
+ parents: {
68
+ post: `Post/${string}`;
69
+ block: `BlockParagraph/${string}` | `BlockRow/${string}`;
70
+ };
71
+ entity: "BlockRow";
72
+ created: {
73
+ mutationRef: `Mutation/${string}`;
74
+ timestamp: string;
75
+ };
76
+ updated: {
77
+ mutationRef: `Mutation/${string}`;
78
+ timestamp: string;
79
+ };
80
+ children: {
81
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
82
+ };
83
+ ancestors: {};
32
84
  }>;
33
85
  export type BlockRow = z.infer<typeof BlockRowSchema>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
- export declare const BlockTitleSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
4
- entity: z.ZodString;
2
+ export declare const BlockTitleSchema: z.ZodObject<{
3
+ ref: z.ZodType<`BlockTitle/${string}`, z.ZodTypeDef, `BlockTitle/${string}`>;
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;
@@ -22,11 +22,58 @@ export declare const BlockTitleSchema: z.ZodObject<z.objectUtil.extendShape<{
22
22
  mutationRef: `Mutation/${string}`;
23
23
  timestamp: string;
24
24
  }>;
25
- data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
26
- parents: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
27
- ancestors: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
28
- }, z.ZodRawShape>, "strict", z.ZodTypeAny, {
29
- [x: string]: any;
25
+ data: z.ZodObject<{
26
+ content: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ content: string;
29
+ }, {
30
+ content: string;
31
+ }>;
32
+ children: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
33
+ parents: z.ZodObject<{
34
+ post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ post: `Post/${string}`;
37
+ }, {
38
+ post: `Post/${string}`;
39
+ }>;
40
+ ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ ref: `BlockTitle/${string}`;
43
+ data: {
44
+ content: string;
45
+ };
46
+ parents: {
47
+ post: `Post/${string}`;
48
+ };
49
+ entity: "BlockTitle";
50
+ created: {
51
+ mutationRef: `Mutation/${string}`;
52
+ timestamp: string;
53
+ };
54
+ updated: {
55
+ mutationRef: `Mutation/${string}`;
56
+ timestamp: string;
57
+ };
58
+ children: {};
59
+ ancestors: {};
30
60
  }, {
31
- [x: string]: any;
61
+ ref: `BlockTitle/${string}`;
62
+ data: {
63
+ content: string;
64
+ };
65
+ parents: {
66
+ post: `Post/${string}`;
67
+ };
68
+ entity: "BlockTitle";
69
+ created: {
70
+ mutationRef: `Mutation/${string}`;
71
+ timestamp: string;
72
+ };
73
+ updated: {
74
+ mutationRef: `Mutation/${string}`;
75
+ timestamp: string;
76
+ };
77
+ children: {};
78
+ ancestors: {};
32
79
  }>;
@@ -4,10 +4,22 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
4
4
  timestamp: z.ZodString;
5
5
  changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
6
6
  payload: z.ZodAny;
7
- log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
7
+ log: z.ZodArray<z.ZodAny, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
12
  }, {
10
- name: z.ZodLiteral<"createPost">;
13
+ operation: z.ZodObject<{
14
+ name: z.ZodLiteral<"createPost">;
15
+ version: z.ZodDefault<z.ZodNumber>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ name: "createPost";
18
+ version: number;
19
+ }, {
20
+ name: "createPost";
21
+ version?: number | undefined;
22
+ }>;
11
23
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
24
  payload: z.ZodObject<{
13
25
  title: z.ZodString;
@@ -22,7 +34,7 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
22
34
  tags?: string[] | undefined;
23
35
  slug?: string | undefined;
24
36
  }>;
25
- log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
37
+ log: z.ZodType<any[], z.ZodTypeDef, any[]>;
26
38
  }>, "strict", z.ZodTypeAny, {
27
39
  ref: `Mutation/${string}`;
28
40
  timestamp: string;
@@ -32,9 +44,15 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
32
44
  tags: string[];
33
45
  slug?: string | undefined;
34
46
  };
35
- log: [never, string, null][];
47
+ log: any[];
36
48
  debounceCount: number;
37
- name: "createPost";
49
+ identityRef: string;
50
+ operation: {
51
+ name: "createPost";
52
+ version: number;
53
+ };
54
+ sessionRef?: string | null | undefined;
55
+ persistedAt?: string | null | undefined;
38
56
  }, {
39
57
  ref: `Mutation/${string}`;
40
58
  timestamp: string;
@@ -44,7 +62,13 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
44
62
  tags?: string[] | undefined;
45
63
  slug?: string | undefined;
46
64
  };
47
- log: [never, string, null][];
65
+ log: any[];
48
66
  debounceCount: number;
49
- name: "createPost";
67
+ identityRef: string;
68
+ operation: {
69
+ name: "createPost";
70
+ version?: number | undefined;
71
+ };
72
+ sessionRef?: string | null | undefined;
73
+ persistedAt?: string | null | undefined;
50
74
  }>;
@@ -4,10 +4,22 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
4
4
  timestamp: z.ZodString;
5
5
  changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
6
6
  payload: z.ZodAny;
7
- log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
7
+ log: z.ZodArray<z.ZodAny, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
12
  }, {
10
- name: z.ZodLiteral<"createUser">;
13
+ operation: z.ZodObject<{
14
+ name: z.ZodLiteral<"createUser">;
15
+ version: z.ZodDefault<z.ZodNumber>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ name: "createUser";
18
+ version: number;
19
+ }, {
20
+ name: "createUser";
21
+ version?: number | undefined;
22
+ }>;
11
23
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
24
  payload: z.ZodObject<{
13
25
  email: z.ZodString;
@@ -16,7 +28,7 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
16
28
  }, {
17
29
  email: string;
18
30
  }>;
19
- log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
31
+ log: z.ZodType<any[], z.ZodTypeDef, any[]>;
20
32
  }>, "strict", z.ZodTypeAny, {
21
33
  ref: `Mutation/${string}`;
22
34
  timestamp: string;
@@ -24,9 +36,15 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
24
36
  payload: {
25
37
  email: string;
26
38
  };
27
- log: [never, string, null][];
39
+ log: any[];
28
40
  debounceCount: number;
29
- name: "createUser";
41
+ identityRef: string;
42
+ operation: {
43
+ name: "createUser";
44
+ version: number;
45
+ };
46
+ sessionRef?: string | null | undefined;
47
+ persistedAt?: string | null | undefined;
30
48
  }, {
31
49
  ref: `Mutation/${string}`;
32
50
  timestamp: string;
@@ -34,7 +52,13 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
34
52
  payload: {
35
53
  email: string;
36
54
  };
37
- log: [never, string, null][];
55
+ log: any[];
38
56
  debounceCount: number;
39
- name: "createUser";
57
+ identityRef: string;
58
+ operation: {
59
+ name: "createUser";
60
+ version?: number | undefined;
61
+ };
62
+ sessionRef?: string | null | undefined;
63
+ persistedAt?: string | null | undefined;
40
64
  }>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
- export declare const DraftSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
4
- entity: z.ZodString;
2
+ export declare const DraftSchema: z.ZodObject<{
3
+ ref: z.ZodType<`Draft/${string}`, z.ZodTypeDef, `Draft/${string}`>;
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;
@@ -22,11 +22,48 @@ export declare const DraftSchema: z.ZodObject<z.objectUtil.extendShape<{
22
22
  mutationRef: `Mutation/${string}`;
23
23
  timestamp: string;
24
24
  }>;
25
- data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
26
- parents: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
27
- ancestors: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
28
- }, z.ZodRawShape>, "strict", z.ZodTypeAny, {
29
- [x: string]: any;
25
+ data: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
26
+ children: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
27
+ parents: z.ZodObject<{
28
+ post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ post: `Post/${string}`;
31
+ }, {
32
+ post: `Post/${string}`;
33
+ }>;
34
+ ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
35
+ }, "strict", z.ZodTypeAny, {
36
+ ref: `Draft/${string}`;
37
+ data: {};
38
+ parents: {
39
+ post: `Post/${string}`;
40
+ };
41
+ entity: "Draft";
42
+ created: {
43
+ mutationRef: `Mutation/${string}`;
44
+ timestamp: string;
45
+ };
46
+ updated: {
47
+ mutationRef: `Mutation/${string}`;
48
+ timestamp: string;
49
+ };
50
+ children: {};
51
+ ancestors: {};
30
52
  }, {
31
- [x: string]: any;
53
+ ref: `Draft/${string}`;
54
+ data: {};
55
+ parents: {
56
+ post: `Post/${string}`;
57
+ };
58
+ entity: "Draft";
59
+ created: {
60
+ mutationRef: `Mutation/${string}`;
61
+ timestamp: string;
62
+ };
63
+ updated: {
64
+ mutationRef: `Mutation/${string}`;
65
+ timestamp: string;
66
+ };
67
+ children: {};
68
+ ancestors: {};
32
69
  }>;