@roc-db/test-utils 0.2.0-pre.70 → 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.
- package/dist/index.js +213 -183
- package/dist/types/entities/BlockImageEntity.d.ts +3 -11
- package/dist/types/entities/BlockParagraph.d.ts +3 -11
- package/dist/types/entities/BlockRow.d.ts +5 -13
- package/dist/types/entities/Draft.d.ts +3 -11
- package/dist/types/entities/PostEntity.d.ts +6 -24
- package/dist/types/entities/PostVersion.d.ts +4 -14
- package/dist/types/entities/UserEntity.d.ts +1 -5
- package/dist/types/entities/index.d.ts +24 -88
- package/dist/types/operations/applyDraft.d.ts +1 -1
- package/dist/types/operations/createBlockImage.d.ts +2 -8
- package/dist/types/operations/createBlockParagraph.d.ts +2 -6
- package/dist/types/operations/createBlockRow.d.ts +2 -6
- package/dist/types/operations/createBlockTitle.d.ts +2 -6
- package/dist/types/operations/createDraft.d.ts +2 -6
- package/dist/types/operations/createImage.d.ts +5 -0
- package/dist/types/operations/createPost.d.ts +2 -10
- package/dist/types/operations/createUser.d.ts +1 -5
- package/dist/types/operations/crudBySlug.d.ts +1 -7
- package/dist/types/operations/deleteBlocks.d.ts +1 -1
- package/dist/types/operations/deleteDraft.d.ts +1 -1
- package/dist/types/operations/deletePost.d.ts +1 -1
- package/dist/types/operations/moveBlocks.d.ts +2 -8
- package/dist/types/operations/testTransactionalEdits.d.ts +3 -11
- package/dist/types/operations/updateBlockParagraph.d.ts +2 -8
- package/dist/types/operations/updatePost.d.ts +4 -14
- package/dist/types/operations/updatePostDescription.d.ts +2 -8
- package/dist/types/operations/updatePostSlug.d.ts +2 -8
- package/dist/types/operations/updatePostTags.d.ts +3 -9
- package/dist/types/operations/updatePostTitle.d.ts +2 -8
- package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockImageSchema.d.ts +18 -76
- package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockParagraphSchema.d.ts +18 -76
- package/dist/types/schemas/BlockRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockRowSchema.d.ts +20 -82
- package/dist/types/schemas/BlockTitleRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockTitleSchema.d.ts +18 -76
- package/dist/types/schemas/CreatePostMutationSchema.d.ts +8 -62
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +7 -53
- package/dist/types/schemas/DraftRefSchema.d.ts +1 -1
- package/dist/types/schemas/DraftSchema.d.ts +17 -67
- package/dist/types/schemas/ImageSchema.d.ts +23 -0
- package/dist/types/schemas/PostRefSchema.d.ts +1 -1
- package/dist/types/schemas/PostSchema.d.ts +21 -99
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +10 -68
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +8 -58
- package/dist/types/schemas/UserRefSchema.d.ts +1 -1
- package/dist/types/schemas/index.d.ts +2 -1
- 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.
|
|
4
|
-
entity: z.ZodLiteral<"BlockImage"
|
|
5
|
-
created: z.ZodObject<{
|
|
6
|
-
mutationRef: z.
|
|
7
|
-
timestamp: z.ZodString
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
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").
|
|
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.
|
|
4
|
-
entity: z.ZodLiteral<"BlockParagraph"
|
|
5
|
-
created: z.ZodObject<{
|
|
6
|
-
mutationRef: z.
|
|
7
|
-
timestamp: z.ZodString
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
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.
|
|
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").
|
|
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.
|
|
4
|
-
entity: z.ZodLiteral<"BlockRow"
|
|
5
|
-
created: z.ZodObject<{
|
|
6
|
-
mutationRef: z.
|
|
7
|
-
timestamp: z.ZodString
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
|
|
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").
|
|
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.
|
|
4
|
-
entity: z.ZodLiteral<"BlockTitle"
|
|
5
|
-
created: z.ZodObject<{
|
|
6
|
-
mutationRef: z.
|
|
7
|
-
timestamp: z.ZodString
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
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<
|
|
3
|
-
ref: z.
|
|
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
|
-
},
|
|
17
|
-
|
|
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
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
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<
|
|
3
|
-
ref: z.
|
|
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
|
-
},
|
|
17
|
-
|
|
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
|
-
},
|
|
27
|
-
|
|
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}`,
|
|
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.
|
|
4
|
-
entity: z.ZodLiteral<"Draft"
|
|
5
|
-
created: z.ZodObject<{
|
|
6
|
-
mutationRef: z.
|
|
7
|
-
timestamp: z.ZodString
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
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>;
|