@roc-db/test-utils 0.2.0-pre.6 → 0.2.0-pre.8

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 (46) hide show
  1. package/dist/index.js +98 -30
  2. package/dist/types/inMemoryAdapter.d.ts +1 -0
  3. package/dist/types/index.d.ts +4 -0
  4. package/dist/types/operations/createBlockImage.d.ts +15 -0
  5. package/dist/types/operations/createBlockParagraph.d.ts +15 -0
  6. package/dist/types/operations/createBlockRow.d.ts +15 -0
  7. package/dist/types/operations/createBlockTitle.d.ts +15 -0
  8. package/dist/types/operations/createDraft.d.ts +15 -0
  9. package/dist/types/operations/createPost.d.ts +19 -0
  10. package/dist/types/operations/deleteBlock.d.ts +11 -0
  11. package/dist/types/operations/deletePost.d.ts +9 -0
  12. package/dist/types/operations/index.d.ts +157 -0
  13. package/dist/types/operations/readEntity.d.ts +1 -0
  14. package/dist/types/operations/readPost.d.ts +1 -0
  15. package/dist/types/operations/updateBlockParagraph.d.ts +15 -0
  16. package/dist/types/operations/updatePost.d.ts +21 -0
  17. package/dist/types/operations/updatePostTitle.d.ts +17 -0
  18. package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -0
  19. package/dist/types/schemas/BlockImageSchema.d.ts +32 -0
  20. package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -0
  21. package/dist/types/schemas/BlockParagraphSchema.d.ts +33 -0
  22. package/dist/types/schemas/BlockRefSchema.d.ts +2 -0
  23. package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -0
  24. package/dist/types/schemas/BlockRowSchema.d.ts +33 -0
  25. package/dist/types/schemas/BlockTitleRefSchema.d.ts +1 -0
  26. package/dist/types/schemas/BlockTitleSchema.d.ts +32 -0
  27. package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +40 -0
  28. package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +40 -0
  29. package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +40 -0
  30. package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +40 -0
  31. package/dist/types/schemas/CreateDraftMutationSchema.d.ts +40 -0
  32. package/dist/types/schemas/CreatePostMutationSchema.d.ts +50 -0
  33. package/dist/types/schemas/CreateUserMutationSchema.d.ts +40 -0
  34. package/dist/types/schemas/DeleteBlockMutationSchema.d.ts +30 -0
  35. package/dist/types/schemas/DeletePostMutationSchema.d.ts +29 -0
  36. package/dist/types/schemas/DraftRefSchema.d.ts +1 -0
  37. package/dist/types/schemas/DraftSchema.d.ts +32 -0
  38. package/dist/types/schemas/PostRefSchema.d.ts +1 -0
  39. package/dist/types/schemas/PostSchema.d.ts +33 -0
  40. package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +45 -0
  41. package/dist/types/schemas/UpdatePostMutationSchema.d.ts +55 -0
  42. package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +45 -0
  43. package/dist/types/schemas/UserRefSchema.d.ts +1 -0
  44. package/dist/types/schemas/index.d.ts +44 -0
  45. package/dist/types/testAdapterImplementation.d.ts +1 -0
  46. package/package.json +2 -2
@@ -0,0 +1,32 @@
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;
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,40 @@
1
+ import { z } from "zod";
2
+ export declare const CreateBlockImageMutationSchema: 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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"createBlockImage">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodObject<{
13
+ postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ postRef: `Post/${string}`;
16
+ }, {
17
+ postRef: `Post/${string}`;
18
+ }>;
19
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
20
+ }>, "strict", z.ZodTypeAny, {
21
+ ref: `Mutation/${string}`;
22
+ timestamp: string;
23
+ changeSetRef: null;
24
+ payload: {
25
+ postRef: `Post/${string}`;
26
+ };
27
+ log: [never, string, null][];
28
+ debounceCount: number;
29
+ name: "createBlockImage";
30
+ }, {
31
+ ref: `Mutation/${string}`;
32
+ timestamp: string;
33
+ changeSetRef: null;
34
+ payload: {
35
+ postRef: `Post/${string}`;
36
+ };
37
+ log: [never, string, null][];
38
+ debounceCount: number;
39
+ name: "createBlockImage";
40
+ }>;
@@ -0,0 +1,40 @@
1
+ import { z } from "zod";
2
+ export declare const CreateBlockParagraphMutationSchema: 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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"createBlockParagraph">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodObject<{
13
+ parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
16
+ }, {
17
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
18
+ }>;
19
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
20
+ }>, "strict", z.ZodTypeAny, {
21
+ ref: `Mutation/${string}`;
22
+ timestamp: string;
23
+ changeSetRef: null;
24
+ payload: {
25
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
26
+ };
27
+ log: [never, string, null][];
28
+ debounceCount: number;
29
+ name: "createBlockParagraph";
30
+ }, {
31
+ ref: `Mutation/${string}`;
32
+ timestamp: string;
33
+ changeSetRef: null;
34
+ payload: {
35
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
36
+ };
37
+ log: [never, string, null][];
38
+ debounceCount: number;
39
+ name: "createBlockParagraph";
40
+ }>;
@@ -0,0 +1,40 @@
1
+ import { z } from "zod";
2
+ export declare const CreateBlockRowMutationSchema: 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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"createBlockRow">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodObject<{
13
+ parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
16
+ }, {
17
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
18
+ }>;
19
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
20
+ }>, "strict", z.ZodTypeAny, {
21
+ ref: `Mutation/${string}`;
22
+ timestamp: string;
23
+ changeSetRef: null;
24
+ payload: {
25
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
26
+ };
27
+ log: [never, string, null][];
28
+ debounceCount: number;
29
+ name: "createBlockRow";
30
+ }, {
31
+ ref: `Mutation/${string}`;
32
+ timestamp: string;
33
+ changeSetRef: null;
34
+ payload: {
35
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
36
+ };
37
+ log: [never, string, null][];
38
+ debounceCount: number;
39
+ name: "createBlockRow";
40
+ }>;
@@ -0,0 +1,40 @@
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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"createBlockTitle">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodObject<{
13
+ parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
16
+ }, {
17
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
18
+ }>;
19
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
20
+ }>, "strict", z.ZodTypeAny, {
21
+ ref: `Mutation/${string}`;
22
+ timestamp: string;
23
+ changeSetRef: null;
24
+ payload: {
25
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
26
+ };
27
+ log: [never, string, null][];
28
+ debounceCount: number;
29
+ name: "createBlockTitle";
30
+ }, {
31
+ ref: `Mutation/${string}`;
32
+ timestamp: string;
33
+ changeSetRef: null;
34
+ payload: {
35
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
36
+ };
37
+ log: [never, string, null][];
38
+ debounceCount: number;
39
+ name: "createBlockTitle";
40
+ }>;
@@ -0,0 +1,40 @@
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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"createDraft">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodObject<{
13
+ postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ postRef: `Post/${string}`;
16
+ }, {
17
+ postRef: `Post/${string}`;
18
+ }>;
19
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
20
+ }>, "strict", z.ZodTypeAny, {
21
+ ref: `Mutation/${string}`;
22
+ timestamp: string;
23
+ changeSetRef: null;
24
+ payload: {
25
+ postRef: `Post/${string}`;
26
+ };
27
+ log: [never, string, null][];
28
+ debounceCount: number;
29
+ name: "createDraft";
30
+ }, {
31
+ ref: `Mutation/${string}`;
32
+ timestamp: string;
33
+ changeSetRef: null;
34
+ payload: {
35
+ postRef: `Post/${string}`;
36
+ };
37
+ log: [never, string, null][];
38
+ debounceCount: number;
39
+ name: "createDraft";
40
+ }>;
@@ -0,0 +1,50 @@
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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"createPost">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodObject<{
13
+ title: z.ZodString;
14
+ slug: z.ZodOptional<z.ZodString>;
15
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
16
+ }, "strict", z.ZodTypeAny, {
17
+ title: string;
18
+ tags: string[];
19
+ slug?: string | undefined;
20
+ }, {
21
+ title: string;
22
+ tags?: string[] | undefined;
23
+ slug?: string | undefined;
24
+ }>;
25
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
26
+ }>, "strict", z.ZodTypeAny, {
27
+ ref: `Mutation/${string}`;
28
+ timestamp: string;
29
+ changeSetRef: null;
30
+ payload: {
31
+ title: string;
32
+ tags: string[];
33
+ slug?: string | undefined;
34
+ };
35
+ log: [never, string, null][];
36
+ debounceCount: number;
37
+ name: "createPost";
38
+ }, {
39
+ ref: `Mutation/${string}`;
40
+ timestamp: string;
41
+ changeSetRef: null;
42
+ payload: {
43
+ title: string;
44
+ tags?: string[] | undefined;
45
+ slug?: string | undefined;
46
+ };
47
+ log: [never, string, null][];
48
+ debounceCount: number;
49
+ name: "createPost";
50
+ }>;
@@ -0,0 +1,40 @@
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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"createUser">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodObject<{
13
+ email: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ email: string;
16
+ }, {
17
+ email: string;
18
+ }>;
19
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
20
+ }>, "strict", z.ZodTypeAny, {
21
+ ref: `Mutation/${string}`;
22
+ timestamp: string;
23
+ changeSetRef: null;
24
+ payload: {
25
+ email: string;
26
+ };
27
+ log: [never, string, null][];
28
+ debounceCount: number;
29
+ name: "createUser";
30
+ }, {
31
+ ref: `Mutation/${string}`;
32
+ timestamp: string;
33
+ changeSetRef: null;
34
+ payload: {
35
+ email: string;
36
+ };
37
+ log: [never, string, null][];
38
+ debounceCount: number;
39
+ name: "createUser";
40
+ }>;
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ export declare const DeleteBlockMutationSchema: 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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"deleteBlock">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockImage/${string}`, z.ZodTypeDef, `BlockImage/${string}`>]>;
13
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
14
+ }>, "strict", z.ZodTypeAny, {
15
+ ref: `Mutation/${string}`;
16
+ timestamp: string;
17
+ changeSetRef: null;
18
+ payload: `BlockImage/${string}` | `BlockParagraph/${string}`;
19
+ log: [never, string, null][];
20
+ debounceCount: number;
21
+ name: "deleteBlock";
22
+ }, {
23
+ ref: `Mutation/${string}`;
24
+ timestamp: string;
25
+ changeSetRef: null;
26
+ payload: `BlockImage/${string}` | `BlockParagraph/${string}`;
27
+ log: [never, string, null][];
28
+ debounceCount: number;
29
+ name: "deleteBlock";
30
+ }>;
@@ -0,0 +1,29 @@
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").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
+ debounceCount: import("zod").ZodNumber;
8
+ }, {
9
+ name: import("zod").ZodLiteral<"deletePost">;
10
+ changeSetRef: import("zod").ZodType<never, import("zod").ZodTypeDef, never> | import("zod").ZodNullable<import("zod").ZodType<never, import("zod").ZodTypeDef, never>>;
11
+ payload: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
12
+ log: import("zod").ZodType<[never, string, null][], import("zod").ZodTypeDef, [never, string, null][]>;
13
+ }>, "strict", import("zod").ZodTypeAny, {
14
+ ref: `Mutation/${string}`;
15
+ timestamp: string;
16
+ changeSetRef: null;
17
+ payload: `Post/${string}`;
18
+ log: [never, string, null][];
19
+ debounceCount: number;
20
+ name: "deletePost";
21
+ }, {
22
+ ref: `Mutation/${string}`;
23
+ timestamp: string;
24
+ changeSetRef: null;
25
+ payload: `Post/${string}`;
26
+ log: [never, string, null][];
27
+ debounceCount: number;
28
+ name: "deletePost";
29
+ }>;
@@ -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 @@
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,45 @@
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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"updateBlockParagraph">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodObject<{
13
+ ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
14
+ content: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ ref: `BlockParagraph/${string}`;
17
+ content: string;
18
+ }, {
19
+ ref: `BlockParagraph/${string}`;
20
+ content: string;
21
+ }>;
22
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
23
+ }>, "strict", z.ZodTypeAny, {
24
+ ref: `Mutation/${string}`;
25
+ timestamp: string;
26
+ changeSetRef: null;
27
+ payload: {
28
+ ref: `BlockParagraph/${string}`;
29
+ content: string;
30
+ };
31
+ log: [never, string, null][];
32
+ debounceCount: number;
33
+ name: "updateBlockParagraph";
34
+ }, {
35
+ ref: `Mutation/${string}`;
36
+ timestamp: string;
37
+ changeSetRef: null;
38
+ payload: {
39
+ ref: `BlockParagraph/${string}`;
40
+ content: string;
41
+ };
42
+ log: [never, string, null][];
43
+ debounceCount: number;
44
+ name: "updateBlockParagraph";
45
+ }>;
@@ -0,0 +1,55 @@
1
+ import { z } from "zod";
2
+ export declare const UpdatePostMutationSchema: 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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"updatePost">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodObject<{
13
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
14
+ title: z.ZodOptional<z.ZodString>;
15
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
16
+ authorRef: z.ZodOptional<z.ZodOptional<z.ZodType<`User/${string}`, z.ZodTypeDef, `User/${string}`>>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ ref: `Post/${string}`;
19
+ tags: string[];
20
+ title?: string | undefined;
21
+ authorRef?: `User/${string}` | undefined;
22
+ }, {
23
+ ref: `Post/${string}`;
24
+ title?: string | undefined;
25
+ tags?: string[] | undefined;
26
+ authorRef?: `User/${string}` | undefined;
27
+ }>;
28
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
29
+ }>, "strict", z.ZodTypeAny, {
30
+ ref: `Mutation/${string}`;
31
+ timestamp: string;
32
+ changeSetRef: null;
33
+ payload: {
34
+ ref: `Post/${string}`;
35
+ tags: string[];
36
+ title?: string | undefined;
37
+ authorRef?: `User/${string}` | undefined;
38
+ };
39
+ log: [never, string, null][];
40
+ debounceCount: number;
41
+ name: "updatePost";
42
+ }, {
43
+ ref: `Mutation/${string}`;
44
+ timestamp: string;
45
+ changeSetRef: null;
46
+ payload: {
47
+ ref: `Post/${string}`;
48
+ title?: string | undefined;
49
+ tags?: string[] | undefined;
50
+ authorRef?: `User/${string}` | undefined;
51
+ };
52
+ log: [never, string, null][];
53
+ debounceCount: number;
54
+ name: "updatePost";
55
+ }>;
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ export declare const UpdatePostTitleMutationSchema: 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.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
8
+ debounceCount: z.ZodNumber;
9
+ }, {
10
+ name: z.ZodLiteral<"updatePostTitle">;
11
+ changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ payload: z.ZodObject<{
13
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
14
+ title: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ ref: `Post/${string}`;
17
+ title: string;
18
+ }, {
19
+ ref: `Post/${string}`;
20
+ title: string;
21
+ }>;
22
+ log: z.ZodType<[never, string, null][], z.ZodTypeDef, [never, string, null][]>;
23
+ }>, "strict", z.ZodTypeAny, {
24
+ ref: `Mutation/${string}`;
25
+ timestamp: string;
26
+ changeSetRef: null;
27
+ payload: {
28
+ ref: `Post/${string}`;
29
+ title: string;
30
+ };
31
+ log: [never, string, null][];
32
+ debounceCount: number;
33
+ name: "updatePostTitle";
34
+ }, {
35
+ ref: `Mutation/${string}`;
36
+ timestamp: string;
37
+ changeSetRef: null;
38
+ payload: {
39
+ ref: `Post/${string}`;
40
+ title: string;
41
+ };
42
+ log: [never, string, null][];
43
+ debounceCount: number;
44
+ name: "updatePostTitle";
45
+ }>;
@@ -0,0 +1 @@
1
+ export declare const UserRefSchema: import("zod").ZodType<`User/${string}`, import("zod").ZodTypeDef, `User/${string}`>;
@@ -0,0 +1,44 @@
1
+ import { BlockImageSchema } from "./BlockImageSchema";
2
+ import { BlockParagraphSchema } from "./BlockParagraphSchema";
3
+ import { BlockTitleSchema } from "./BlockTitleSchema";
4
+ import { DraftSchema } from "./DraftSchema";
5
+ import { PostSchema } from "./PostSchema";
6
+ export { BlockImageSchema, BlockParagraphSchema, BlockTitleSchema, DraftSchema, PostSchema, };
7
+ export declare const entities: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
8
+ ref: import("zod").ZodType<never, import("zod").ZodTypeDef, never>;
9
+ entity: import("zod").ZodString;
10
+ created: import("zod").ZodObject<{
11
+ mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
12
+ timestamp: import("zod").ZodString;
13
+ }, "strict", import("zod").ZodTypeAny, {
14
+ mutationRef: `Mutation/${string}`;
15
+ timestamp: string;
16
+ }, {
17
+ mutationRef: `Mutation/${string}`;
18
+ timestamp: string;
19
+ }>;
20
+ updated: import("zod").ZodObject<{
21
+ mutationRef: import("zod").ZodType<`Mutation/${string}`, import("zod").ZodTypeDef, `Mutation/${string}`>;
22
+ timestamp: import("zod").ZodString;
23
+ }, "strict", import("zod").ZodTypeAny, {
24
+ mutationRef: `Mutation/${string}`;
25
+ timestamp: string;
26
+ }, {
27
+ mutationRef: `Mutation/${string}`;
28
+ timestamp: string;
29
+ }>;
30
+ data: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
31
+ parents: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
32
+ ancestors: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
33
+ }, import("zod").ZodRawShape>, "strict", import("zod").ZodTypeAny, {
34
+ [x: string]: any;
35
+ }, {
36
+ [x: string]: any;
37
+ }>[];
38
+ export { DraftRefSchema } from "./DraftRefSchema";
39
+ export { PostRefSchema } from "./PostRefSchema";
40
+ export { UserRefSchema } from "./UserRefSchema";
41
+ export { CreatePostMutationSchema } from "./CreatePostMutationSchema";
42
+ export { CreateUserMutationSchema } from "./CreateUserMutationSchema";
43
+ export { UpdatePostMutationSchema } from "./UpdatePostMutationSchema";
44
+ export { UpdatePostTitleMutationSchema } from "./UpdatePostTitleMutationSchema";
@@ -0,0 +1 @@
1
+ export declare const testAdapterImplementation: <EngineOptions extends {}>(adapterConstructor: any, engineArgsAdapter1?: EngineOptions, engineArgsAdapter2?: EngineOptions) => () => Promise<void>;