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

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 (51) hide show
  1. package/dist/index.js +213 -183
  2. package/dist/types/entities/BlockImageEntity.d.ts +3 -11
  3. package/dist/types/entities/BlockParagraph.d.ts +3 -11
  4. package/dist/types/entities/BlockRow.d.ts +5 -13
  5. package/dist/types/entities/Draft.d.ts +3 -11
  6. package/dist/types/entities/PostEntity.d.ts +6 -24
  7. package/dist/types/entities/PostVersion.d.ts +4 -14
  8. package/dist/types/entities/UserEntity.d.ts +1 -5
  9. package/dist/types/entities/index.d.ts +24 -88
  10. package/dist/types/operations/applyDraft.d.ts +1 -1
  11. package/dist/types/operations/createBlockImage.d.ts +2 -8
  12. package/dist/types/operations/createBlockParagraph.d.ts +2 -6
  13. package/dist/types/operations/createBlockRow.d.ts +2 -6
  14. package/dist/types/operations/createBlockTitle.d.ts +2 -6
  15. package/dist/types/operations/createDraft.d.ts +2 -6
  16. package/dist/types/operations/createImage.d.ts +5 -0
  17. package/dist/types/operations/createPost.d.ts +2 -10
  18. package/dist/types/operations/createUser.d.ts +1 -5
  19. package/dist/types/operations/crudBySlug.d.ts +1 -7
  20. package/dist/types/operations/deleteBlocks.d.ts +1 -1
  21. package/dist/types/operations/deleteDraft.d.ts +1 -1
  22. package/dist/types/operations/deletePost.d.ts +1 -1
  23. package/dist/types/operations/moveBlocks.d.ts +2 -8
  24. package/dist/types/operations/testTransactionalEdits.d.ts +3 -11
  25. package/dist/types/operations/updateBlockParagraph.d.ts +2 -8
  26. package/dist/types/operations/updatePost.d.ts +4 -14
  27. package/dist/types/operations/updatePostDescription.d.ts +2 -8
  28. package/dist/types/operations/updatePostSlug.d.ts +2 -8
  29. package/dist/types/operations/updatePostTags.d.ts +3 -9
  30. package/dist/types/operations/updatePostTitle.d.ts +2 -8
  31. package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -1
  32. package/dist/types/schemas/BlockImageSchema.d.ts +18 -76
  33. package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -1
  34. package/dist/types/schemas/BlockParagraphSchema.d.ts +18 -76
  35. package/dist/types/schemas/BlockRefSchema.d.ts +1 -1
  36. package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -1
  37. package/dist/types/schemas/BlockRowSchema.d.ts +20 -82
  38. package/dist/types/schemas/BlockTitleRefSchema.d.ts +1 -1
  39. package/dist/types/schemas/BlockTitleSchema.d.ts +18 -76
  40. package/dist/types/schemas/CreatePostMutationSchema.d.ts +8 -62
  41. package/dist/types/schemas/CreateUserMutationSchema.d.ts +7 -53
  42. package/dist/types/schemas/DraftRefSchema.d.ts +1 -1
  43. package/dist/types/schemas/DraftSchema.d.ts +17 -67
  44. package/dist/types/schemas/ImageSchema.d.ts +23 -0
  45. package/dist/types/schemas/PostRefSchema.d.ts +1 -1
  46. package/dist/types/schemas/PostSchema.d.ts +21 -99
  47. package/dist/types/schemas/UpdatePostMutationSchema.d.ts +10 -68
  48. package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +8 -58
  49. package/dist/types/schemas/UserRefSchema.d.ts +1 -1
  50. package/dist/types/schemas/index.d.ts +2 -1
  51. package/package.json +3 -3
@@ -1,79 +1,21 @@
1
1
  import { z } from "zod";
2
2
  export declare const BlockImageSchema: z.ZodObject<{
3
- ref: z.ZodType<`BlockImage/${string}`, z.ZodTypeDef, `BlockImage/${string}`>;
4
- entity: z.ZodLiteral<"BlockImage">;
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<{
3
+ ref: z.ZodNonOptional<z.ZodTemplateLiteral<`BlockImage/${number}`>>;
4
+ entity: z.ZodNonOptional<z.ZodLiteral<"BlockImage">>;
5
+ created: z.ZodNonOptional<z.ZodObject<{
6
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
7
+ timestamp: z.ZodNonOptional<z.ZodString>;
8
+ }, z.core.$strict>>;
9
+ updated: z.ZodNonOptional<z.ZodObject<{
10
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
11
+ timestamp: z.ZodNonOptional<z.ZodString>;
12
+ }, z.core.$strict>>;
13
+ data: z.ZodNonOptional<z.ZodObject<{
26
14
  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: {};
60
- }, {
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: {};
79
- }>;
15
+ }, z.core.$strip>>;
16
+ children: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
17
+ parents: z.ZodNonOptional<z.ZodObject<{
18
+ post: z.ZodTemplateLiteral<`Post/${number}`>;
19
+ }, z.core.$strip>>;
20
+ ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
21
+ }, z.core.$strict>;
@@ -1 +1 @@
1
- export declare const BlockParagraphRefSchema: import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>;
1
+ export declare const BlockParagraphRefSchema: import("zod").ZodTemplateLiteral<`BlockParagraph/${number}`>;
@@ -1,80 +1,22 @@
1
1
  import { z } from "zod";
2
2
  export declare const BlockParagraphSchema: z.ZodObject<{
3
- ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
4
- entity: z.ZodLiteral<"BlockParagraph">;
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<{
3
+ ref: z.ZodNonOptional<z.ZodTemplateLiteral<`BlockParagraph/${number}`>>;
4
+ entity: z.ZodNonOptional<z.ZodLiteral<"BlockParagraph">>;
5
+ created: z.ZodNonOptional<z.ZodObject<{
6
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
7
+ timestamp: z.ZodNonOptional<z.ZodString>;
8
+ }, z.core.$strict>>;
9
+ updated: z.ZodNonOptional<z.ZodObject<{
10
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
11
+ timestamp: z.ZodNonOptional<z.ZodString>;
12
+ }, z.core.$strict>>;
13
+ data: z.ZodNonOptional<z.ZodObject<{
26
14
  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: {};
60
- }, {
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: {};
79
- }>;
15
+ }, z.core.$strip>>;
16
+ children: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
17
+ parents: z.ZodNonOptional<z.ZodObject<{
18
+ parent: z.ZodTemplateLiteral<`Post/${number}`>;
19
+ }, z.core.$strip>>;
20
+ ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
21
+ }, z.core.$strict>;
80
22
  export type BlockParagraph = z.infer<typeof BlockParagraphSchema>;
@@ -1,2 +1,2 @@
1
1
  import { z } from "zod";
2
- export declare const BlockRefSchema: z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
2
+ export declare const BlockRefSchema: z.ZodUnion<readonly [z.ZodTemplateLiteral<`BlockParagraph/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>;
@@ -1 +1 @@
1
- export declare const BlockRowRefSchema: import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>;
1
+ export declare const BlockRowRefSchema: import("zod").ZodTemplateLiteral<`BlockRow/${number}`>;
@@ -1,85 +1,23 @@
1
1
  import { z } from "zod";
2
2
  export declare const BlockRowSchema: z.ZodObject<{
3
- ref: z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>;
4
- entity: z.ZodLiteral<"BlockRow">;
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<{}, 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: {};
64
- }, {
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: {};
84
- }>;
3
+ ref: z.ZodNonOptional<z.ZodTemplateLiteral<`BlockRow/${number}`>>;
4
+ entity: z.ZodNonOptional<z.ZodLiteral<"BlockRow">>;
5
+ created: z.ZodNonOptional<z.ZodObject<{
6
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
7
+ timestamp: z.ZodNonOptional<z.ZodString>;
8
+ }, z.core.$strict>>;
9
+ updated: z.ZodNonOptional<z.ZodObject<{
10
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
11
+ timestamp: z.ZodNonOptional<z.ZodString>;
12
+ }, z.core.$strict>>;
13
+ data: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
14
+ children: z.ZodNonOptional<z.ZodObject<{
15
+ blocks: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`BlockParagraph/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>>;
16
+ }, z.core.$strip>>;
17
+ parents: z.ZodNonOptional<z.ZodObject<{
18
+ post: z.ZodTemplateLiteral<`Post/${number}`>;
19
+ block: z.ZodUnion<readonly [z.ZodTemplateLiteral<`BlockParagraph/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>;
20
+ }, z.core.$strip>>;
21
+ ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
22
+ }, z.core.$strict>;
85
23
  export type BlockRow = z.infer<typeof BlockRowSchema>;
@@ -1 +1 @@
1
- export declare const BlockTitleRefSchema: import("zod").ZodType<`BlockTitle/${string}`, import("zod").ZodTypeDef, `BlockTitle/${string}`>;
1
+ export declare const BlockTitleRefSchema: import("zod").ZodTemplateLiteral<`BlockTitle/${number}`>;
@@ -1,79 +1,21 @@
1
1
  import { z } from "zod";
2
2
  export declare const BlockTitleSchema: z.ZodObject<{
3
- ref: z.ZodType<`BlockTitle/${string}`, z.ZodTypeDef, `BlockTitle/${string}`>;
4
- entity: z.ZodLiteral<"BlockTitle">;
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<{
3
+ ref: z.ZodNonOptional<z.ZodTemplateLiteral<`BlockTitle/${number}`>>;
4
+ entity: z.ZodNonOptional<z.ZodLiteral<"BlockTitle">>;
5
+ created: z.ZodNonOptional<z.ZodObject<{
6
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
7
+ timestamp: z.ZodNonOptional<z.ZodString>;
8
+ }, z.core.$strict>>;
9
+ updated: z.ZodNonOptional<z.ZodObject<{
10
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
11
+ timestamp: z.ZodNonOptional<z.ZodString>;
12
+ }, z.core.$strict>>;
13
+ data: z.ZodNonOptional<z.ZodObject<{
26
14
  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: {};
60
- }, {
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: {};
79
- }>;
15
+ }, z.core.$strip>>;
16
+ children: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
17
+ parents: z.ZodNonOptional<z.ZodObject<{
18
+ post: z.ZodTemplateLiteral<`Post/${number}`>;
19
+ }, z.core.$strip>>;
20
+ ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
21
+ }, z.core.$strict>;
@@ -1,74 +1,20 @@
1
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}`>;
2
+ export declare const CreatePostMutationSchema: z.ZodObject<{
3
+ ref: z.ZodTemplateLiteral<`Mutation/${number}`>;
4
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
5
  debounceCount: z.ZodNumber;
9
6
  identityRef: z.ZodString;
10
7
  sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
8
  persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- }, {
13
9
  operation: z.ZodObject<{
14
10
  name: z.ZodLiteral<"createPost">;
15
11
  version: z.ZodDefault<z.ZodNumber>;
16
- }, "strip", z.ZodTypeAny, {
17
- name: "createPost";
18
- version: number;
19
- }, {
20
- name: "createPost";
21
- version?: number | undefined;
22
- }>;
23
- changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ }, z.core.$strip>;
13
+ changeSetRef: z.ZodTemplateLiteral<never> | z.ZodNullable<z.ZodTemplateLiteral<never>>;
24
14
  payload: z.ZodObject<{
25
15
  title: z.ZodString;
26
16
  slug: z.ZodOptional<z.ZodString>;
27
- tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
28
- }, "strict", z.ZodTypeAny, {
29
- title: string;
30
- tags: string[];
31
- slug?: string | undefined;
32
- }, {
33
- title: string;
34
- tags?: string[] | undefined;
35
- slug?: string | undefined;
36
- }>;
37
- log: z.ZodType<any[], z.ZodTypeDef, any[]>;
38
- }>, "strict", z.ZodTypeAny, {
39
- ref: `Mutation/${string}`;
40
- timestamp: string;
41
- changeSetRef: null;
42
- payload: {
43
- title: string;
44
- tags: string[];
45
- slug?: string | undefined;
46
- };
47
- log: any[];
48
- debounceCount: number;
49
- identityRef: string;
50
- operation: {
51
- name: "createPost";
52
- version: number;
53
- };
54
- sessionRef?: string | null | undefined;
55
- persistedAt?: string | null | undefined;
56
- }, {
57
- ref: `Mutation/${string}`;
58
- timestamp: string;
59
- changeSetRef: null;
60
- payload: {
61
- title: string;
62
- tags?: string[] | undefined;
63
- slug?: string | undefined;
64
- };
65
- log: any[];
66
- debounceCount: number;
67
- identityRef: string;
68
- operation: {
69
- name: "createPost";
70
- version?: number | undefined;
71
- };
72
- sessionRef?: string | null | undefined;
73
- persistedAt?: string | null | undefined;
74
- }>;
17
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
18
+ }, z.core.$strict>;
19
+ log: z.ZodType<any[], unknown, z.core.$ZodTypeInternals<any[], unknown>>;
20
+ }, z.core.$strict>;
@@ -1,64 +1,18 @@
1
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}`>;
2
+ export declare const CreateUserMutationSchema: z.ZodObject<{
3
+ ref: z.ZodTemplateLiteral<`Mutation/${number}`>;
4
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
5
  debounceCount: z.ZodNumber;
9
6
  identityRef: z.ZodString;
10
7
  sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
8
  persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- }, {
13
9
  operation: z.ZodObject<{
14
10
  name: z.ZodLiteral<"createUser">;
15
11
  version: z.ZodDefault<z.ZodNumber>;
16
- }, "strip", z.ZodTypeAny, {
17
- name: "createUser";
18
- version: number;
19
- }, {
20
- name: "createUser";
21
- version?: number | undefined;
22
- }>;
23
- changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
12
+ }, z.core.$strip>;
13
+ changeSetRef: z.ZodTemplateLiteral<never> | z.ZodNullable<z.ZodTemplateLiteral<never>>;
24
14
  payload: z.ZodObject<{
25
15
  email: z.ZodString;
26
- }, "strip", z.ZodTypeAny, {
27
- email: string;
28
- }, {
29
- email: string;
30
- }>;
31
- log: z.ZodType<any[], z.ZodTypeDef, any[]>;
32
- }>, "strict", z.ZodTypeAny, {
33
- ref: `Mutation/${string}`;
34
- timestamp: string;
35
- changeSetRef: null;
36
- payload: {
37
- email: string;
38
- };
39
- log: any[];
40
- debounceCount: number;
41
- identityRef: string;
42
- operation: {
43
- name: "createUser";
44
- version: number;
45
- };
46
- sessionRef?: string | null | undefined;
47
- persistedAt?: string | null | undefined;
48
- }, {
49
- ref: `Mutation/${string}`;
50
- timestamp: string;
51
- changeSetRef: null;
52
- payload: {
53
- email: string;
54
- };
55
- log: any[];
56
- debounceCount: number;
57
- identityRef: string;
58
- operation: {
59
- name: "createUser";
60
- version?: number | undefined;
61
- };
62
- sessionRef?: string | null | undefined;
63
- persistedAt?: string | null | undefined;
64
- }>;
16
+ }, z.core.$strip>;
17
+ log: z.ZodType<any[], unknown, z.core.$ZodTypeInternals<any[], unknown>>;
18
+ }, z.core.$strict>;
@@ -1 +1 @@
1
- export declare const DraftRefSchema: import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>;
1
+ export declare const DraftRefSchema: import("zod").ZodType<`Draft/${string}`, z.ZodTypeDef, `Draft/${string}`>;
@@ -1,69 +1,19 @@
1
1
  import { z } from "zod";
2
2
  export declare const DraftSchema: z.ZodObject<{
3
- ref: z.ZodType<`Draft/${string}`, z.ZodTypeDef, `Draft/${string}`>;
4
- entity: z.ZodLiteral<"Draft">;
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<{}, 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: {};
52
- }, {
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: {};
69
- }>;
3
+ ref: z.ZodNonOptional<z.ZodTemplateLiteral<`Draft/${number}`>>;
4
+ entity: z.ZodNonOptional<z.ZodLiteral<"Draft">>;
5
+ created: z.ZodNonOptional<z.ZodObject<{
6
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
7
+ timestamp: z.ZodNonOptional<z.ZodString>;
8
+ }, z.core.$strict>>;
9
+ updated: z.ZodNonOptional<z.ZodObject<{
10
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
11
+ timestamp: z.ZodNonOptional<z.ZodString>;
12
+ }, z.core.$strict>>;
13
+ data: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
14
+ children: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
15
+ parents: z.ZodNonOptional<z.ZodObject<{
16
+ post: z.ZodTemplateLiteral<`Post/${number}`>;
17
+ }, z.core.$strip>>;
18
+ ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
19
+ }, z.core.$strict>;