@roc-db/test-utils 0.2.0-pre.21 → 0.2.0-pre.24

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 (28) hide show
  1. package/dist/index.js +1 -0
  2. package/dist/types/operations/applyDraft.d.ts +2 -0
  3. package/dist/types/operations/createBlockImage.d.ts +2 -0
  4. package/dist/types/operations/createBlockParagraph.d.ts +2 -0
  5. package/dist/types/operations/createBlockRow.d.ts +2 -0
  6. package/dist/types/operations/createBlockTitle.d.ts +2 -0
  7. package/dist/types/operations/createDraft.d.ts +2 -0
  8. package/dist/types/operations/createPost.d.ts +2 -0
  9. package/dist/types/operations/deleteBlock.d.ts +2 -0
  10. package/dist/types/operations/deletePost.d.ts +2 -0
  11. package/dist/types/operations/index.d.ts +24 -0
  12. package/dist/types/operations/updateBlockParagraph.d.ts +2 -0
  13. package/dist/types/operations/updatePost.d.ts +2 -0
  14. package/dist/types/operations/updatePostTitle.d.ts +2 -0
  15. package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +6 -0
  16. package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +6 -0
  17. package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +6 -0
  18. package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +6 -0
  19. package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +6 -0
  20. package/dist/types/schemas/CreateDraftMutationSchema.d.ts +6 -0
  21. package/dist/types/schemas/CreatePostMutationSchema.d.ts +6 -0
  22. package/dist/types/schemas/CreateUserMutationSchema.d.ts +6 -0
  23. package/dist/types/schemas/DeleteBlockMutationSchema.d.ts +6 -0
  24. package/dist/types/schemas/DeletePostMutationSchema.d.ts +6 -0
  25. package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +6 -0
  26. package/dist/types/schemas/UpdatePostMutationSchema.d.ts +6 -0
  27. package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +6 -0
  28. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -427,6 +427,7 @@ var testAdapterImplementation = (adapterConstructor, engineArgsAdapter1 = {}, en
427
427
  expect(post).toMatchZodSchema(PostSchema);
428
428
  expect(post.data.title).toBe("Title 1");
429
429
  expect(post.data.tags).toStrictEqual(["Foo", "Bar"]);
430
+ expect(createPostMutation).toMatchZodSchema(CreatePostMutationSchema);
430
431
  });
431
432
  test("read (readEntity function)", async () => {
432
433
  const readPostRes = await adapter1.readPost(postRef);
@@ -7,7 +7,9 @@ export declare const applyDraft: import("roc-db").WriteOperation<"applyDraft", {
7
7
  };
8
8
  log: [never, string, null][];
9
9
  debounceCount: number;
10
+ identityRef: string;
10
11
  name: "applyDraft";
12
+ sessionRef?: string | undefined;
11
13
  }, {
12
14
  ref: `Draft/${string}`;
13
15
  }, any>;
@@ -7,7 +7,9 @@ export declare const createBlockImage: import("roc-db").WriteOperation<"createBl
7
7
  };
8
8
  log: [never, string, null][];
9
9
  debounceCount: number;
10
+ identityRef: string;
10
11
  name: "createBlockImage";
12
+ sessionRef?: string | undefined;
11
13
  }, {
12
14
  postRef: `Post/${string}`;
13
15
  }, {
@@ -7,7 +7,9 @@ export declare const createBlockParagrah: import("roc-db").WriteOperation<"creat
7
7
  };
8
8
  log: [never, string, null][];
9
9
  debounceCount: number;
10
+ identityRef: string;
10
11
  name: "createBlockParagraph";
12
+ sessionRef?: string | undefined;
11
13
  }, {
12
14
  parentRef: `Post/${string}` | `BlockRow/${string}`;
13
15
  }, {
@@ -7,7 +7,9 @@ export declare const createBlockRow: import("roc-db").WriteOperation<"createBloc
7
7
  };
8
8
  log: [never, string, null][];
9
9
  debounceCount: number;
10
+ identityRef: string;
10
11
  name: "createBlockRow";
12
+ sessionRef?: string | undefined;
11
13
  }, {
12
14
  parentRef: `Post/${string}` | `BlockRow/${string}`;
13
15
  }, {
@@ -7,7 +7,9 @@ export declare const createBlockTitle: import("roc-db").WriteOperation<"createBl
7
7
  };
8
8
  log: [never, string, null][];
9
9
  debounceCount: number;
10
+ identityRef: string;
10
11
  name: "createBlockTitle";
12
+ sessionRef?: string | undefined;
11
13
  }, {
12
14
  parentRef: `Post/${string}` | `BlockRow/${string}`;
13
15
  }, {
@@ -7,7 +7,9 @@ export declare const createDraft: import("roc-db").WriteOperation<"createDraft",
7
7
  };
8
8
  log: [never, string, null][];
9
9
  debounceCount: number;
10
+ identityRef: string;
10
11
  name: "createDraft";
12
+ sessionRef?: string | undefined;
11
13
  }, {
12
14
  postRef: `Post/${string}`;
13
15
  }, {
@@ -9,7 +9,9 @@ export declare const createPost: import("roc-db").WriteOperation<"createPost", {
9
9
  };
10
10
  log: [never, string, null][];
11
11
  debounceCount: number;
12
+ identityRef: string;
12
13
  name: "createPost";
14
+ sessionRef?: string | undefined;
13
15
  }, {
14
16
  title: string;
15
17
  tags: string[];
@@ -5,7 +5,9 @@ export declare const deleteBlock: import("roc-db").WriteOperation<"deleteBlock",
5
5
  payload: `BlockImage/${string}` | `BlockParagraph/${string}`;
6
6
  log: [never, string, null][];
7
7
  debounceCount: number;
8
+ identityRef: string;
8
9
  name: "deleteBlock";
10
+ sessionRef?: string | undefined;
9
11
  }, `BlockImage/${string}` | `BlockParagraph/${string}`, {
10
12
  [x: string]: any;
11
13
  }>;
@@ -5,5 +5,7 @@ export declare const deletePost: import("roc-db").WriteOperation<"deletePost", {
5
5
  payload: `Post/${string}`;
6
6
  log: [never, string, null][];
7
7
  debounceCount: number;
8
+ identityRef: string;
8
9
  name: "deletePost";
10
+ sessionRef?: string | undefined;
9
11
  }, `Post/${string}`, any>;
@@ -7,7 +7,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
7
7
  };
8
8
  log: [never, string, null][];
9
9
  debounceCount: number;
10
+ identityRef: string;
10
11
  name: "applyDraft";
12
+ sessionRef?: string | undefined;
11
13
  }, {
12
14
  ref: `Draft/${string}`;
13
15
  }, any>, import("roc-db").WriteOperation<"createBlockImage", {
@@ -19,7 +21,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
19
21
  };
20
22
  log: [never, string, null][];
21
23
  debounceCount: number;
24
+ identityRef: string;
22
25
  name: "createBlockImage";
26
+ sessionRef?: string | undefined;
23
27
  }, {
24
28
  postRef: `Post/${string}`;
25
29
  }, {
@@ -33,7 +37,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
33
37
  };
34
38
  log: [never, string, null][];
35
39
  debounceCount: number;
40
+ identityRef: string;
36
41
  name: "createBlockTitle";
42
+ sessionRef?: string | undefined;
37
43
  }, {
38
44
  parentRef: `Post/${string}` | `BlockRow/${string}`;
39
45
  }, {
@@ -47,7 +53,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
47
53
  };
48
54
  log: [never, string, null][];
49
55
  debounceCount: number;
56
+ identityRef: string;
50
57
  name: "createBlockParagraph";
58
+ sessionRef?: string | undefined;
51
59
  }, {
52
60
  parentRef: `Post/${string}` | `BlockRow/${string}`;
53
61
  }, {
@@ -61,7 +69,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
61
69
  };
62
70
  log: [never, string, null][];
63
71
  debounceCount: number;
72
+ identityRef: string;
64
73
  name: "createBlockRow";
74
+ sessionRef?: string | undefined;
65
75
  }, {
66
76
  parentRef: `Post/${string}` | `BlockRow/${string}`;
67
77
  }, {
@@ -75,7 +85,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
75
85
  };
76
86
  log: [never, string, null][];
77
87
  debounceCount: number;
88
+ identityRef: string;
78
89
  name: "createDraft";
90
+ sessionRef?: string | undefined;
79
91
  }, {
80
92
  postRef: `Post/${string}`;
81
93
  }, {
@@ -91,7 +103,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
91
103
  };
92
104
  log: [never, string, null][];
93
105
  debounceCount: number;
106
+ identityRef: string;
94
107
  name: "createPost";
108
+ sessionRef?: string | undefined;
95
109
  }, {
96
110
  title: string;
97
111
  tags: string[];
@@ -105,7 +119,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
105
119
  payload: `BlockImage/${string}` | `BlockParagraph/${string}`;
106
120
  log: [never, string, null][];
107
121
  debounceCount: number;
122
+ identityRef: string;
108
123
  name: "deleteBlock";
124
+ sessionRef?: string | undefined;
109
125
  }, `BlockImage/${string}` | `BlockParagraph/${string}`, {
110
126
  [x: string]: any;
111
127
  }>, import("roc-db").WriteOperation<"deletePost", {
@@ -115,7 +131,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
115
131
  payload: `Post/${string}`;
116
132
  log: [never, string, null][];
117
133
  debounceCount: number;
134
+ identityRef: string;
118
135
  name: "deletePost";
136
+ sessionRef?: string | undefined;
119
137
  }, `Post/${string}`, any>, any, any, import("roc-db").WriteOperation<"updateBlockParagraph", {
120
138
  ref: `Mutation/${string}`;
121
139
  timestamp: string;
@@ -126,7 +144,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
126
144
  };
127
145
  log: [never, string, null][];
128
146
  debounceCount: number;
147
+ identityRef: string;
129
148
  name: "updateBlockParagraph";
149
+ sessionRef?: string | undefined;
130
150
  }, {
131
151
  ref: `BlockParagraph/${string}`;
132
152
  content: string;
@@ -142,7 +162,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
142
162
  };
143
163
  log: [never, string, null][];
144
164
  debounceCount: number;
165
+ identityRef: string;
145
166
  name: "updatePost";
167
+ sessionRef?: string | undefined;
146
168
  }, {
147
169
  ref: `Post/${string}`;
148
170
  tags: string[];
@@ -160,7 +182,9 @@ export declare const operations: readonly [import("roc-db").WriteOperation<"appl
160
182
  };
161
183
  log: [never, string, null][];
162
184
  debounceCount: number;
185
+ identityRef: string;
163
186
  name: "updatePostTitle";
187
+ sessionRef?: string | undefined;
164
188
  }, {
165
189
  ref: `Post/${string}`;
166
190
  title: string;
@@ -8,7 +8,9 @@ export declare const updateBlockParagraph: import("roc-db").WriteOperation<"upda
8
8
  };
9
9
  log: [never, string, null][];
10
10
  debounceCount: number;
11
+ identityRef: string;
11
12
  name: "updateBlockParagraph";
13
+ sessionRef?: string | undefined;
12
14
  }, {
13
15
  ref: `BlockParagraph/${string}`;
14
16
  content: string;
@@ -10,7 +10,9 @@ export declare const updatePost: import("roc-db").WriteOperation<"updatePost", {
10
10
  };
11
11
  log: [never, string, null][];
12
12
  debounceCount: number;
13
+ identityRef: string;
13
14
  name: "updatePost";
15
+ sessionRef?: string | undefined;
14
16
  }, {
15
17
  ref: `Post/${string}`;
16
18
  tags: string[];
@@ -8,7 +8,9 @@ export declare const updatePostTitle: import("roc-db").WriteOperation<"updatePos
8
8
  };
9
9
  log: [never, string, null][];
10
10
  debounceCount: number;
11
+ identityRef: string;
11
12
  name: "updatePostTitle";
13
+ sessionRef?: string | undefined;
12
14
  }, {
13
15
  ref: `Post/${string}`;
14
16
  title: string;
@@ -6,6 +6,8 @@ export declare const ApplyDraftMutationSchema: z.ZodObject<z.objectUtil.extendSh
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"applyDraft">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -26,7 +28,9 @@ export declare const ApplyDraftMutationSchema: z.ZodObject<z.objectUtil.extendSh
26
28
  };
27
29
  log: [never, string, null][];
28
30
  debounceCount: number;
31
+ identityRef: string;
29
32
  name: "applyDraft";
33
+ sessionRef?: string | undefined;
30
34
  }, {
31
35
  ref: `Mutation/${string}`;
32
36
  timestamp: string;
@@ -36,5 +40,7 @@ export declare const ApplyDraftMutationSchema: z.ZodObject<z.objectUtil.extendSh
36
40
  };
37
41
  log: [never, string, null][];
38
42
  debounceCount: number;
43
+ identityRef: string;
39
44
  name: "applyDraft";
45
+ sessionRef?: string | undefined;
40
46
  }>;
@@ -6,6 +6,8 @@ export declare const CreateBlockImageMutationSchema: z.ZodObject<z.objectUtil.ex
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"createBlockImage">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -26,7 +28,9 @@ export declare const CreateBlockImageMutationSchema: z.ZodObject<z.objectUtil.ex
26
28
  };
27
29
  log: [never, string, null][];
28
30
  debounceCount: number;
31
+ identityRef: string;
29
32
  name: "createBlockImage";
33
+ sessionRef?: string | undefined;
30
34
  }, {
31
35
  ref: `Mutation/${string}`;
32
36
  timestamp: string;
@@ -36,5 +40,7 @@ export declare const CreateBlockImageMutationSchema: z.ZodObject<z.objectUtil.ex
36
40
  };
37
41
  log: [never, string, null][];
38
42
  debounceCount: number;
43
+ identityRef: string;
39
44
  name: "createBlockImage";
45
+ sessionRef?: string | undefined;
40
46
  }>;
@@ -6,6 +6,8 @@ export declare const CreateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"createBlockParagraph">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -26,7 +28,9 @@ export declare const CreateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
26
28
  };
27
29
  log: [never, string, null][];
28
30
  debounceCount: number;
31
+ identityRef: string;
29
32
  name: "createBlockParagraph";
33
+ sessionRef?: string | undefined;
30
34
  }, {
31
35
  ref: `Mutation/${string}`;
32
36
  timestamp: string;
@@ -36,5 +40,7 @@ export declare const CreateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
36
40
  };
37
41
  log: [never, string, null][];
38
42
  debounceCount: number;
43
+ identityRef: string;
39
44
  name: "createBlockParagraph";
45
+ sessionRef?: string | undefined;
40
46
  }>;
@@ -6,6 +6,8 @@ export declare const CreateBlockRowMutationSchema: z.ZodObject<z.objectUtil.exte
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"createBlockRow">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -26,7 +28,9 @@ export declare const CreateBlockRowMutationSchema: z.ZodObject<z.objectUtil.exte
26
28
  };
27
29
  log: [never, string, null][];
28
30
  debounceCount: number;
31
+ identityRef: string;
29
32
  name: "createBlockRow";
33
+ sessionRef?: string | undefined;
30
34
  }, {
31
35
  ref: `Mutation/${string}`;
32
36
  timestamp: string;
@@ -36,5 +40,7 @@ export declare const CreateBlockRowMutationSchema: z.ZodObject<z.objectUtil.exte
36
40
  };
37
41
  log: [never, string, null][];
38
42
  debounceCount: number;
43
+ identityRef: string;
39
44
  name: "createBlockRow";
45
+ sessionRef?: string | undefined;
40
46
  }>;
@@ -6,6 +6,8 @@ export declare const CreateBlockTitleMutationSchema: z.ZodObject<z.objectUtil.ex
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"createBlockTitle">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -26,7 +28,9 @@ export declare const CreateBlockTitleMutationSchema: z.ZodObject<z.objectUtil.ex
26
28
  };
27
29
  log: [never, string, null][];
28
30
  debounceCount: number;
31
+ identityRef: string;
29
32
  name: "createBlockTitle";
33
+ sessionRef?: string | undefined;
30
34
  }, {
31
35
  ref: `Mutation/${string}`;
32
36
  timestamp: string;
@@ -36,5 +40,7 @@ export declare const CreateBlockTitleMutationSchema: z.ZodObject<z.objectUtil.ex
36
40
  };
37
41
  log: [never, string, null][];
38
42
  debounceCount: number;
43
+ identityRef: string;
39
44
  name: "createBlockTitle";
45
+ sessionRef?: string | undefined;
40
46
  }>;
@@ -6,6 +6,8 @@ export declare const CreateDraftMutationSchema: z.ZodObject<z.objectUtil.extendS
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"createDraft">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -26,7 +28,9 @@ export declare const CreateDraftMutationSchema: z.ZodObject<z.objectUtil.extendS
26
28
  };
27
29
  log: [never, string, null][];
28
30
  debounceCount: number;
31
+ identityRef: string;
29
32
  name: "createDraft";
33
+ sessionRef?: string | undefined;
30
34
  }, {
31
35
  ref: `Mutation/${string}`;
32
36
  timestamp: string;
@@ -36,5 +40,7 @@ export declare const CreateDraftMutationSchema: z.ZodObject<z.objectUtil.extendS
36
40
  };
37
41
  log: [never, string, null][];
38
42
  debounceCount: number;
43
+ identityRef: string;
39
44
  name: "createDraft";
45
+ sessionRef?: string | undefined;
40
46
  }>;
@@ -6,6 +6,8 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"createPost">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -34,7 +36,9 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
34
36
  };
35
37
  log: [never, string, null][];
36
38
  debounceCount: number;
39
+ identityRef: string;
37
40
  name: "createPost";
41
+ sessionRef?: string | undefined;
38
42
  }, {
39
43
  ref: `Mutation/${string}`;
40
44
  timestamp: string;
@@ -46,5 +50,7 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
46
50
  };
47
51
  log: [never, string, null][];
48
52
  debounceCount: number;
53
+ identityRef: string;
49
54
  name: "createPost";
55
+ sessionRef?: string | undefined;
50
56
  }>;
@@ -6,6 +6,8 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"createUser">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -26,7 +28,9 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
26
28
  };
27
29
  log: [never, string, null][];
28
30
  debounceCount: number;
31
+ identityRef: string;
29
32
  name: "createUser";
33
+ sessionRef?: string | undefined;
30
34
  }, {
31
35
  ref: `Mutation/${string}`;
32
36
  timestamp: string;
@@ -36,5 +40,7 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
36
40
  };
37
41
  log: [never, string, null][];
38
42
  debounceCount: number;
43
+ identityRef: string;
39
44
  name: "createUser";
45
+ sessionRef?: string | undefined;
40
46
  }>;
@@ -6,6 +6,8 @@ export declare const DeleteBlockMutationSchema: z.ZodObject<z.objectUtil.extendS
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"deleteBlock">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -18,7 +20,9 @@ export declare const DeleteBlockMutationSchema: z.ZodObject<z.objectUtil.extendS
18
20
  payload: `BlockImage/${string}` | `BlockParagraph/${string}`;
19
21
  log: [never, string, null][];
20
22
  debounceCount: number;
23
+ identityRef: string;
21
24
  name: "deleteBlock";
25
+ sessionRef?: string | undefined;
22
26
  }, {
23
27
  ref: `Mutation/${string}`;
24
28
  timestamp: string;
@@ -26,5 +30,7 @@ export declare const DeleteBlockMutationSchema: z.ZodObject<z.objectUtil.extendS
26
30
  payload: `BlockImage/${string}` | `BlockParagraph/${string}`;
27
31
  log: [never, string, null][];
28
32
  debounceCount: number;
33
+ identityRef: string;
29
34
  name: "deleteBlock";
35
+ sessionRef?: string | undefined;
30
36
  }>;
@@ -5,6 +5,8 @@ export declare const DeletePostMutationSchema: import("zod").ZodObject<import("z
5
5
  payload: import("zod").ZodAny;
6
6
  log: import("zod").ZodArray<import("zod").ZodTuple<[import("zod").ZodType<never, import("zod").ZodTypeDef, never>, import("zod").ZodString, import("zod").ZodNullable<import("zod").ZodType<never, import("zod").ZodTypeDef, never>>], null>, "many">;
7
7
  debounceCount: import("zod").ZodNumber;
8
+ identityRef: import("zod").ZodString;
9
+ sessionRef: import("zod").ZodOptional<import("zod").ZodString>;
8
10
  }, {
9
11
  name: import("zod").ZodLiteral<"deletePost">;
10
12
  changeSetRef: import("zod").ZodType<never, import("zod").ZodTypeDef, never> | import("zod").ZodNullable<import("zod").ZodType<never, import("zod").ZodTypeDef, never>>;
@@ -17,7 +19,9 @@ export declare const DeletePostMutationSchema: import("zod").ZodObject<import("z
17
19
  payload: `Post/${string}`;
18
20
  log: [never, string, null][];
19
21
  debounceCount: number;
22
+ identityRef: string;
20
23
  name: "deletePost";
24
+ sessionRef?: string | undefined;
21
25
  }, {
22
26
  ref: `Mutation/${string}`;
23
27
  timestamp: string;
@@ -25,5 +29,7 @@ export declare const DeletePostMutationSchema: import("zod").ZodObject<import("z
25
29
  payload: `Post/${string}`;
26
30
  log: [never, string, null][];
27
31
  debounceCount: number;
32
+ identityRef: string;
28
33
  name: "deletePost";
34
+ sessionRef?: string | undefined;
29
35
  }>;
@@ -6,6 +6,8 @@ export declare const UpdateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"updateBlockParagraph">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -30,7 +32,9 @@ export declare const UpdateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
30
32
  };
31
33
  log: [never, string, null][];
32
34
  debounceCount: number;
35
+ identityRef: string;
33
36
  name: "updateBlockParagraph";
37
+ sessionRef?: string | undefined;
34
38
  }, {
35
39
  ref: `Mutation/${string}`;
36
40
  timestamp: string;
@@ -41,5 +45,7 @@ export declare const UpdateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
41
45
  };
42
46
  log: [never, string, null][];
43
47
  debounceCount: number;
48
+ identityRef: string;
44
49
  name: "updateBlockParagraph";
50
+ sessionRef?: string | undefined;
45
51
  }>;
@@ -6,6 +6,8 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"updatePost">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -38,7 +40,9 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
38
40
  };
39
41
  log: [never, string, null][];
40
42
  debounceCount: number;
43
+ identityRef: string;
41
44
  name: "updatePost";
45
+ sessionRef?: string | undefined;
42
46
  }, {
43
47
  ref: `Mutation/${string}`;
44
48
  timestamp: string;
@@ -51,5 +55,7 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
51
55
  };
52
56
  log: [never, string, null][];
53
57
  debounceCount: number;
58
+ identityRef: string;
54
59
  name: "updatePost";
60
+ sessionRef?: string | undefined;
55
61
  }>;
@@ -6,6 +6,8 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
6
6
  payload: z.ZodAny;
7
7
  log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
8
  debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
9
11
  }, {
10
12
  name: z.ZodLiteral<"updatePostTitle">;
11
13
  changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
@@ -30,7 +32,9 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
30
32
  };
31
33
  log: [never, string, null][];
32
34
  debounceCount: number;
35
+ identityRef: string;
33
36
  name: "updatePostTitle";
37
+ sessionRef?: string | undefined;
34
38
  }, {
35
39
  ref: `Mutation/${string}`;
36
40
  timestamp: string;
@@ -41,5 +45,7 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
41
45
  };
42
46
  log: [never, string, null][];
43
47
  debounceCount: number;
48
+ identityRef: string;
44
49
  name: "updatePostTitle";
50
+ sessionRef?: string | undefined;
45
51
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roc-db/test-utils",
3
- "version": "0.2.0-pre.21",
3
+ "version": "0.2.0-pre.24",
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.21",
20
+ "roc-db": "0.2.0-pre.24",
21
21
  "zod": "3.24.2"
22
22
  },
23
23
  "keywords": [],