@roc-db/test-utils 0.2.0-pre.4 → 0.2.0-pre.40

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 (55) hide show
  1. package/dist/index.js +474 -138
  2. package/dist/types/inMemoryAdapter.d.ts +1 -0
  3. package/dist/types/index.d.ts +4 -0
  4. package/dist/types/operations/applyDraft.d.ts +5 -0
  5. package/dist/types/operations/createBlockImage.d.ts +7 -0
  6. package/dist/types/operations/createBlockParagraph.d.ts +7 -0
  7. package/dist/types/operations/createBlockRow.d.ts +7 -0
  8. package/dist/types/operations/createBlockTitle.d.ts +7 -0
  9. package/dist/types/operations/createDraft.d.ts +7 -0
  10. package/dist/types/operations/createPost.d.ts +7 -0
  11. package/dist/types/operations/deleteBlocks.d.ts +7 -0
  12. package/dist/types/operations/deletePost.d.ts +5 -0
  13. package/dist/types/operations/index.d.ts +83 -0
  14. package/dist/types/operations/moveBlocks.d.ts +5 -0
  15. package/dist/types/operations/readEntity.d.ts +1 -0
  16. package/dist/types/operations/readPost.d.ts +1 -0
  17. package/dist/types/operations/testTransactionalEdits.d.ts +7 -0
  18. package/dist/types/operations/updateBlockParagraph.d.ts +5 -0
  19. package/dist/types/operations/updatePost.d.ts +7 -0
  20. package/dist/types/operations/updatePostDescription.d.ts +7 -0
  21. package/dist/types/operations/updatePostTitle.d.ts +7 -0
  22. package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +61 -0
  23. package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -0
  24. package/dist/types/schemas/BlockImageSchema.d.ts +32 -0
  25. package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -0
  26. package/dist/types/schemas/BlockParagraphSchema.d.ts +33 -0
  27. package/dist/types/schemas/BlockRefSchema.d.ts +2 -0
  28. package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -0
  29. package/dist/types/schemas/BlockRowSchema.d.ts +33 -0
  30. package/dist/types/schemas/BlockTitleRefSchema.d.ts +1 -0
  31. package/dist/types/schemas/BlockTitleSchema.d.ts +32 -0
  32. package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +61 -0
  33. package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +61 -0
  34. package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +61 -0
  35. package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +61 -0
  36. package/dist/types/schemas/CreateDraftMutationSchema.d.ts +61 -0
  37. package/dist/types/schemas/CreatePostMutationSchema.d.ts +71 -0
  38. package/dist/types/schemas/CreateUserMutationSchema.d.ts +61 -0
  39. package/dist/types/schemas/DeleteBlocksMutationSchema.d.ts +51 -0
  40. package/dist/types/schemas/DeletePostMutationSchema.d.ts +50 -0
  41. package/dist/types/schemas/DraftRefSchema.d.ts +1 -0
  42. package/dist/types/schemas/DraftSchema.d.ts +32 -0
  43. package/dist/types/schemas/MoveBlocksMutationSchema.d.ts +66 -0
  44. package/dist/types/schemas/PostRefSchema.d.ts +1 -0
  45. package/dist/types/schemas/PostSchema.d.ts +33 -0
  46. package/dist/types/schemas/TestTransactionalEditsMutationSchema.d.ts +71 -0
  47. package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +66 -0
  48. package/dist/types/schemas/UpdatePostDescriptionMutationSchema.d.ts +66 -0
  49. package/dist/types/schemas/UpdatePostMutationSchema.d.ts +76 -0
  50. package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +66 -0
  51. package/dist/types/schemas/UserRefSchema.d.ts +1 -0
  52. package/dist/types/schemas/index.d.ts +44 -0
  53. package/dist/types/testAdapterImplementation.d.ts +1 -0
  54. package/package.json +10 -17
  55. package/dist/tarball/roc-db-test-utils-0.2.0-pre.4.tgz +0 -0
@@ -0,0 +1,61 @@
1
+ import { z } from "zod";
2
+ export declare const CreateBlockTitleMutationSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ ref: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
4
+ timestamp: z.ZodString;
5
+ changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
6
+ payload: z.ZodAny;
7
+ log: z.ZodArray<z.ZodAny, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
11
+ }, {
12
+ operation: z.ZodObject<{
13
+ name: z.ZodLiteral<"createBlockTitle">;
14
+ version: z.ZodDefault<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: "createBlockTitle";
17
+ version: number;
18
+ }, {
19
+ name: "createBlockTitle";
20
+ version?: number | undefined;
21
+ }>;
22
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
23
+ payload: z.ZodObject<{
24
+ parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
25
+ }, "strict", z.ZodTypeAny, {
26
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
27
+ }, {
28
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
29
+ }>;
30
+ log: z.ZodType<any[], z.ZodTypeDef, any[]>;
31
+ }>, "strict", z.ZodTypeAny, {
32
+ ref: `Mutation/${string}`;
33
+ timestamp: string;
34
+ changeSetRef: null;
35
+ payload: {
36
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
37
+ };
38
+ log: any[];
39
+ debounceCount: number;
40
+ identityRef: string;
41
+ operation: {
42
+ name: "createBlockTitle";
43
+ version: number;
44
+ };
45
+ sessionRef?: string | undefined;
46
+ }, {
47
+ ref: `Mutation/${string}`;
48
+ timestamp: string;
49
+ changeSetRef: null;
50
+ payload: {
51
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
52
+ };
53
+ log: any[];
54
+ debounceCount: number;
55
+ identityRef: string;
56
+ operation: {
57
+ name: "createBlockTitle";
58
+ version?: number | undefined;
59
+ };
60
+ sessionRef?: string | undefined;
61
+ }>;
@@ -0,0 +1,61 @@
1
+ import { z } from "zod";
2
+ export declare const CreateDraftMutationSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ ref: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
4
+ timestamp: z.ZodString;
5
+ changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
6
+ payload: z.ZodAny;
7
+ log: z.ZodArray<z.ZodAny, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
11
+ }, {
12
+ operation: z.ZodObject<{
13
+ name: z.ZodLiteral<"createDraft">;
14
+ version: z.ZodDefault<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: "createDraft";
17
+ version: number;
18
+ }, {
19
+ name: "createDraft";
20
+ version?: number | undefined;
21
+ }>;
22
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
23
+ payload: z.ZodObject<{
24
+ postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
25
+ }, "strict", z.ZodTypeAny, {
26
+ postRef: `Post/${string}`;
27
+ }, {
28
+ postRef: `Post/${string}`;
29
+ }>;
30
+ log: z.ZodType<any[], z.ZodTypeDef, any[]>;
31
+ }>, "strict", z.ZodTypeAny, {
32
+ ref: `Mutation/${string}`;
33
+ timestamp: string;
34
+ changeSetRef: null;
35
+ payload: {
36
+ postRef: `Post/${string}`;
37
+ };
38
+ log: any[];
39
+ debounceCount: number;
40
+ identityRef: string;
41
+ operation: {
42
+ name: "createDraft";
43
+ version: number;
44
+ };
45
+ sessionRef?: string | undefined;
46
+ }, {
47
+ ref: `Mutation/${string}`;
48
+ timestamp: string;
49
+ changeSetRef: null;
50
+ payload: {
51
+ postRef: `Post/${string}`;
52
+ };
53
+ log: any[];
54
+ debounceCount: number;
55
+ identityRef: string;
56
+ operation: {
57
+ name: "createDraft";
58
+ version?: number | undefined;
59
+ };
60
+ sessionRef?: string | undefined;
61
+ }>;
@@ -0,0 +1,71 @@
1
+ import { z } from "zod";
2
+ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ ref: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
4
+ timestamp: z.ZodString;
5
+ changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
6
+ payload: z.ZodAny;
7
+ log: z.ZodArray<z.ZodAny, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
11
+ }, {
12
+ operation: z.ZodObject<{
13
+ name: z.ZodLiteral<"createPost">;
14
+ version: z.ZodDefault<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: "createPost";
17
+ version: number;
18
+ }, {
19
+ name: "createPost";
20
+ version?: number | undefined;
21
+ }>;
22
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
23
+ payload: z.ZodObject<{
24
+ title: z.ZodString;
25
+ slug: z.ZodOptional<z.ZodString>;
26
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
27
+ }, "strict", z.ZodTypeAny, {
28
+ title: string;
29
+ tags: string[];
30
+ slug?: string | undefined;
31
+ }, {
32
+ title: string;
33
+ tags?: string[] | undefined;
34
+ slug?: string | undefined;
35
+ }>;
36
+ log: z.ZodType<any[], z.ZodTypeDef, any[]>;
37
+ }>, "strict", z.ZodTypeAny, {
38
+ ref: `Mutation/${string}`;
39
+ timestamp: string;
40
+ changeSetRef: null;
41
+ payload: {
42
+ title: string;
43
+ tags: string[];
44
+ slug?: string | undefined;
45
+ };
46
+ log: any[];
47
+ debounceCount: number;
48
+ identityRef: string;
49
+ operation: {
50
+ name: "createPost";
51
+ version: number;
52
+ };
53
+ sessionRef?: string | undefined;
54
+ }, {
55
+ ref: `Mutation/${string}`;
56
+ timestamp: string;
57
+ changeSetRef: null;
58
+ payload: {
59
+ title: string;
60
+ tags?: string[] | undefined;
61
+ slug?: string | undefined;
62
+ };
63
+ log: any[];
64
+ debounceCount: number;
65
+ identityRef: string;
66
+ operation: {
67
+ name: "createPost";
68
+ version?: number | undefined;
69
+ };
70
+ sessionRef?: string | undefined;
71
+ }>;
@@ -0,0 +1,61 @@
1
+ import { z } from "zod";
2
+ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ ref: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
4
+ timestamp: z.ZodString;
5
+ changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
6
+ payload: z.ZodAny;
7
+ log: z.ZodArray<z.ZodAny, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
11
+ }, {
12
+ operation: z.ZodObject<{
13
+ name: z.ZodLiteral<"createUser">;
14
+ version: z.ZodDefault<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: "createUser";
17
+ version: number;
18
+ }, {
19
+ name: "createUser";
20
+ version?: number | undefined;
21
+ }>;
22
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
23
+ payload: z.ZodObject<{
24
+ email: z.ZodString;
25
+ }, "strip", z.ZodTypeAny, {
26
+ email: string;
27
+ }, {
28
+ email: string;
29
+ }>;
30
+ log: z.ZodType<any[], z.ZodTypeDef, any[]>;
31
+ }>, "strict", z.ZodTypeAny, {
32
+ ref: `Mutation/${string}`;
33
+ timestamp: string;
34
+ changeSetRef: null;
35
+ payload: {
36
+ email: string;
37
+ };
38
+ log: any[];
39
+ debounceCount: number;
40
+ identityRef: string;
41
+ operation: {
42
+ name: "createUser";
43
+ version: number;
44
+ };
45
+ sessionRef?: string | undefined;
46
+ }, {
47
+ ref: `Mutation/${string}`;
48
+ timestamp: string;
49
+ changeSetRef: null;
50
+ payload: {
51
+ email: string;
52
+ };
53
+ log: any[];
54
+ debounceCount: number;
55
+ identityRef: string;
56
+ operation: {
57
+ name: "createUser";
58
+ version?: number | undefined;
59
+ };
60
+ sessionRef?: string | undefined;
61
+ }>;
@@ -0,0 +1,51 @@
1
+ import { z } from "zod";
2
+ export declare const DeleteBlocksMutationSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ ref: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
4
+ timestamp: z.ZodString;
5
+ changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
6
+ payload: z.ZodAny;
7
+ log: z.ZodArray<z.ZodAny, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
11
+ }, {
12
+ operation: z.ZodObject<{
13
+ name: z.ZodLiteral<"deleteBlocks">;
14
+ version: z.ZodDefault<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: "deleteBlocks";
17
+ version: number;
18
+ }, {
19
+ name: "deleteBlocks";
20
+ version?: number | undefined;
21
+ }>;
22
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
23
+ payload: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockImage/${string}`, z.ZodTypeDef, `BlockImage/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
24
+ log: z.ZodType<any[], z.ZodTypeDef, any[]>;
25
+ }>, "strict", z.ZodTypeAny, {
26
+ ref: `Mutation/${string}`;
27
+ timestamp: string;
28
+ changeSetRef: null;
29
+ payload: (`BlockImage/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`)[];
30
+ log: any[];
31
+ debounceCount: number;
32
+ identityRef: string;
33
+ operation: {
34
+ name: "deleteBlocks";
35
+ version: number;
36
+ };
37
+ sessionRef?: string | undefined;
38
+ }, {
39
+ ref: `Mutation/${string}`;
40
+ timestamp: string;
41
+ changeSetRef: null;
42
+ payload: (`BlockImage/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`)[];
43
+ log: any[];
44
+ debounceCount: number;
45
+ identityRef: string;
46
+ operation: {
47
+ name: "deleteBlocks";
48
+ version?: number | undefined;
49
+ };
50
+ sessionRef?: string | undefined;
51
+ }>;
@@ -0,0 +1,50 @@
1
+ export declare const DeletePostMutationSchema: 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").ZodString>;
10
+ }, {
11
+ operation: import("zod").ZodObject<{
12
+ name: import("zod").ZodLiteral<"deletePost">;
13
+ version: import("zod").ZodDefault<import("zod").ZodNumber>;
14
+ }, "strip", import("zod").ZodTypeAny, {
15
+ name: "deletePost";
16
+ version: number;
17
+ }, {
18
+ name: "deletePost";
19
+ version?: number | undefined;
20
+ }>;
21
+ changeSetRef: import("zod").ZodType<never, import("zod").ZodTypeDef, never> | import("zod").ZodNullable<import("zod").ZodType<never, import("zod").ZodTypeDef, never>>;
22
+ payload: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
23
+ log: import("zod").ZodType<any[], import("zod").ZodTypeDef, any[]>;
24
+ }>, "strict", import("zod").ZodTypeAny, {
25
+ ref: `Mutation/${string}`;
26
+ timestamp: string;
27
+ changeSetRef: null;
28
+ payload: `Post/${string}`;
29
+ log: any[];
30
+ debounceCount: number;
31
+ identityRef: string;
32
+ operation: {
33
+ name: "deletePost";
34
+ version: number;
35
+ };
36
+ sessionRef?: string | undefined;
37
+ }, {
38
+ ref: `Mutation/${string}`;
39
+ timestamp: string;
40
+ changeSetRef: null;
41
+ payload: `Post/${string}`;
42
+ log: any[];
43
+ debounceCount: number;
44
+ identityRef: string;
45
+ operation: {
46
+ name: "deletePost";
47
+ version?: number | undefined;
48
+ };
49
+ sessionRef?: string | undefined;
50
+ }>;
@@ -0,0 +1 @@
1
+ export declare const DraftRefSchema: import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>;
@@ -0,0 +1,32 @@
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;
5
+ created: z.ZodObject<{
6
+ mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
7
+ timestamp: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ mutationRef: `Mutation/${string}`;
10
+ timestamp: string;
11
+ }, {
12
+ mutationRef: `Mutation/${string}`;
13
+ timestamp: string;
14
+ }>;
15
+ updated: z.ZodObject<{
16
+ mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
17
+ timestamp: z.ZodString;
18
+ }, "strict", z.ZodTypeAny, {
19
+ mutationRef: `Mutation/${string}`;
20
+ timestamp: string;
21
+ }, {
22
+ mutationRef: `Mutation/${string}`;
23
+ timestamp: string;
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;
30
+ }, {
31
+ [x: string]: any;
32
+ }>;
@@ -0,0 +1,66 @@
1
+ import { z } from "zod";
2
+ export declare const MoveBlocksMutationSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ ref: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
4
+ timestamp: z.ZodString;
5
+ changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
6
+ payload: z.ZodAny;
7
+ log: z.ZodArray<z.ZodAny, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
11
+ }, {
12
+ operation: z.ZodObject<{
13
+ name: z.ZodLiteral<"moveBlocks">;
14
+ version: z.ZodDefault<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: "moveBlocks";
17
+ version: number;
18
+ }, {
19
+ name: "moveBlocks";
20
+ version?: number | undefined;
21
+ }>;
22
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
23
+ payload: z.ZodObject<{
24
+ refs: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
25
+ targetPosition: z.ZodNumber;
26
+ }, "strict", z.ZodTypeAny, {
27
+ refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
28
+ targetPosition: number;
29
+ }, {
30
+ refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
31
+ targetPosition: number;
32
+ }>;
33
+ log: z.ZodType<any[], z.ZodTypeDef, any[]>;
34
+ }>, "strict", z.ZodTypeAny, {
35
+ ref: `Mutation/${string}`;
36
+ timestamp: string;
37
+ changeSetRef: null;
38
+ payload: {
39
+ refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
40
+ targetPosition: number;
41
+ };
42
+ log: any[];
43
+ debounceCount: number;
44
+ identityRef: string;
45
+ operation: {
46
+ name: "moveBlocks";
47
+ version: number;
48
+ };
49
+ sessionRef?: string | undefined;
50
+ }, {
51
+ ref: `Mutation/${string}`;
52
+ timestamp: string;
53
+ changeSetRef: null;
54
+ payload: {
55
+ refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
56
+ targetPosition: number;
57
+ };
58
+ log: any[];
59
+ debounceCount: number;
60
+ identityRef: string;
61
+ operation: {
62
+ name: "moveBlocks";
63
+ version?: number | undefined;
64
+ };
65
+ sessionRef?: string | undefined;
66
+ }>;
@@ -0,0 +1 @@
1
+ export declare const PostRefSchema: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ export declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ ref: z.ZodType<never, z.ZodTypeDef, never>;
4
+ entity: z.ZodString;
5
+ created: z.ZodObject<{
6
+ mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
7
+ timestamp: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ mutationRef: `Mutation/${string}`;
10
+ timestamp: string;
11
+ }, {
12
+ mutationRef: `Mutation/${string}`;
13
+ timestamp: string;
14
+ }>;
15
+ updated: z.ZodObject<{
16
+ mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
17
+ timestamp: z.ZodString;
18
+ }, "strict", z.ZodTypeAny, {
19
+ mutationRef: `Mutation/${string}`;
20
+ timestamp: string;
21
+ }, {
22
+ mutationRef: `Mutation/${string}`;
23
+ timestamp: string;
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;
30
+ }, {
31
+ [x: string]: any;
32
+ }>;
33
+ export type Post = z.infer<typeof PostSchema>;
@@ -0,0 +1,71 @@
1
+ import { z } from "zod";
2
+ export declare const TestTransactionalEditsMutationSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ ref: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
4
+ timestamp: z.ZodString;
5
+ changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
6
+ payload: z.ZodAny;
7
+ log: z.ZodArray<z.ZodAny, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
11
+ }, {
12
+ operation: z.ZodObject<{
13
+ name: z.ZodLiteral<"testTransactionalEdits">;
14
+ version: z.ZodDefault<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: "testTransactionalEdits";
17
+ version: number;
18
+ }, {
19
+ name: "testTransactionalEdits";
20
+ version?: number | undefined;
21
+ }>;
22
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
23
+ payload: z.ZodObject<{
24
+ name: z.ZodOptional<z.ZodString>;
25
+ post1ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
26
+ post2ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
27
+ }, "strict", z.ZodTypeAny, {
28
+ name?: string | undefined;
29
+ post1ref?: `Post/${string}` | undefined;
30
+ post2ref?: `Post/${string}` | undefined;
31
+ }, {
32
+ name?: string | undefined;
33
+ post1ref?: `Post/${string}` | undefined;
34
+ post2ref?: `Post/${string}` | undefined;
35
+ }>;
36
+ log: z.ZodType<any[], z.ZodTypeDef, any[]>;
37
+ }>, "strict", z.ZodTypeAny, {
38
+ ref: `Mutation/${string}`;
39
+ timestamp: string;
40
+ changeSetRef: null;
41
+ payload: {
42
+ name?: string | undefined;
43
+ post1ref?: `Post/${string}` | undefined;
44
+ post2ref?: `Post/${string}` | undefined;
45
+ };
46
+ log: any[];
47
+ debounceCount: number;
48
+ identityRef: string;
49
+ operation: {
50
+ name: "testTransactionalEdits";
51
+ version: number;
52
+ };
53
+ sessionRef?: string | undefined;
54
+ }, {
55
+ ref: `Mutation/${string}`;
56
+ timestamp: string;
57
+ changeSetRef: null;
58
+ payload: {
59
+ name?: string | undefined;
60
+ post1ref?: `Post/${string}` | undefined;
61
+ post2ref?: `Post/${string}` | undefined;
62
+ };
63
+ log: any[];
64
+ debounceCount: number;
65
+ identityRef: string;
66
+ operation: {
67
+ name: "testTransactionalEdits";
68
+ version?: number | undefined;
69
+ };
70
+ sessionRef?: string | undefined;
71
+ }>;
@@ -0,0 +1,66 @@
1
+ import { z } from "zod";
2
+ export declare const UpdateBlockParagraphMutationSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ ref: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
4
+ timestamp: z.ZodString;
5
+ changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
6
+ payload: z.ZodAny;
7
+ log: z.ZodArray<z.ZodAny, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ identityRef: z.ZodString;
10
+ sessionRef: z.ZodOptional<z.ZodString>;
11
+ }, {
12
+ operation: z.ZodObject<{
13
+ name: z.ZodLiteral<"updateBlockParagraph">;
14
+ version: z.ZodDefault<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: "updateBlockParagraph";
17
+ version: number;
18
+ }, {
19
+ name: "updateBlockParagraph";
20
+ version?: number | undefined;
21
+ }>;
22
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
23
+ payload: z.ZodObject<{
24
+ ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
25
+ content: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ ref: `BlockParagraph/${string}`;
28
+ content: string;
29
+ }, {
30
+ ref: `BlockParagraph/${string}`;
31
+ content: string;
32
+ }>;
33
+ log: z.ZodType<any[], z.ZodTypeDef, any[]>;
34
+ }>, "strict", z.ZodTypeAny, {
35
+ ref: `Mutation/${string}`;
36
+ timestamp: string;
37
+ changeSetRef: null;
38
+ payload: {
39
+ ref: `BlockParagraph/${string}`;
40
+ content: string;
41
+ };
42
+ log: any[];
43
+ debounceCount: number;
44
+ identityRef: string;
45
+ operation: {
46
+ name: "updateBlockParagraph";
47
+ version: number;
48
+ };
49
+ sessionRef?: string | undefined;
50
+ }, {
51
+ ref: `Mutation/${string}`;
52
+ timestamp: string;
53
+ changeSetRef: null;
54
+ payload: {
55
+ ref: `BlockParagraph/${string}`;
56
+ content: string;
57
+ };
58
+ log: any[];
59
+ debounceCount: number;
60
+ identityRef: string;
61
+ operation: {
62
+ name: "updateBlockParagraph";
63
+ version?: number | undefined;
64
+ };
65
+ sessionRef?: string | undefined;
66
+ }>;