@roc-db/test-utils 0.2.0-pre.44 → 0.2.0-pre.46
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 +181 -114
- package/dist/types/operations/createBlockImage.d.ts +18 -1
- package/dist/types/operations/createBlockParagraph.d.ts +18 -1
- package/dist/types/operations/createBlockRow.d.ts +18 -1
- package/dist/types/operations/createBlockTitle.d.ts +18 -1
- package/dist/types/operations/createDraft.d.ts +16 -1
- package/dist/types/operations/createPost.d.ts +23 -1
- package/dist/types/operations/deleteBlocks.d.ts +23 -1
- package/dist/types/operations/deleteDraft.d.ts +5 -0
- package/dist/types/operations/index.d.ts +230 -11
- package/dist/types/operations/testTransactionalEdits.d.ts +23 -1
- package/dist/types/operations/updatePost.d.ts +23 -1
- package/dist/types/operations/updatePostDescription.d.ts +23 -1
- package/dist/types/operations/updatePostTitle.d.ts +23 -1
- package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +2 -2
- package/dist/types/schemas/BlockImageSchema.d.ts +56 -9
- package/dist/types/schemas/BlockParagraphSchema.d.ts +56 -9
- package/dist/types/schemas/BlockRowSchema.d.ts +61 -9
- package/dist/types/schemas/BlockTitleSchema.d.ts +56 -9
- package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateDraftMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreatePostMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +2 -2
- package/dist/types/schemas/DeleteBlocksMutationSchema.d.ts +2 -2
- package/dist/types/schemas/DeleteDraftMutationSchema.d.ts +53 -0
- package/dist/types/schemas/DeletePostMutationSchema.d.ts +2 -2
- package/dist/types/schemas/DraftSchema.d.ts +46 -9
- package/dist/types/schemas/MoveBlocksMutationSchema.d.ts +2 -2
- package/dist/types/schemas/PostSchema.d.ts +81 -9
- package/dist/types/schemas/PostVersionRefSchema.d.ts +1 -0
- package/dist/types/schemas/PostVersionSchema.d.ts +85 -0
- package/dist/types/schemas/TestTransactionalEditsMutationSchema.d.ts +2 -2
- package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +2 -2
- package/dist/types/schemas/UpdatePostDescriptionMutationSchema.d.ts +2 -2
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +2 -2
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +2 -2
- package/dist/types/schemas/index.d.ts +544 -10
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const BlockRowSchema: z.ZodObject<
|
|
3
|
-
ref: z.ZodType
|
|
4
|
-
entity: z.
|
|
2
|
+
export declare const BlockRowSchema: z.ZodObject<{
|
|
3
|
+
ref: z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>;
|
|
4
|
+
entity: z.ZodLiteral<"BlockRow">;
|
|
5
5
|
created: z.ZodObject<{
|
|
6
6
|
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
7
7
|
timestamp: z.ZodString;
|
|
@@ -22,12 +22,64 @@ export declare const BlockRowSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
22
22
|
mutationRef: `Mutation/${string}`;
|
|
23
23
|
timestamp: string;
|
|
24
24
|
}>;
|
|
25
|
-
data: z.ZodObject<{},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
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: {};
|
|
30
64
|
}, {
|
|
31
|
-
|
|
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: {};
|
|
32
84
|
}>;
|
|
33
85
|
export type BlockRow = z.infer<typeof BlockRowSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const BlockTitleSchema: z.ZodObject<
|
|
3
|
-
ref: z.ZodType
|
|
4
|
-
entity: z.
|
|
2
|
+
export declare const BlockTitleSchema: z.ZodObject<{
|
|
3
|
+
ref: z.ZodType<`BlockTitle/${string}`, z.ZodTypeDef, `BlockTitle/${string}`>;
|
|
4
|
+
entity: z.ZodLiteral<"BlockTitle">;
|
|
5
5
|
created: z.ZodObject<{
|
|
6
6
|
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
7
7
|
timestamp: z.ZodString;
|
|
@@ -22,11 +22,58 @@ export declare const BlockTitleSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
22
22
|
mutationRef: `Mutation/${string}`;
|
|
23
23
|
timestamp: string;
|
|
24
24
|
}>;
|
|
25
|
-
data: z.ZodObject<{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
data: z.ZodObject<{
|
|
26
|
+
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: {};
|
|
30
60
|
}, {
|
|
31
|
-
|
|
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: {};
|
|
32
79
|
}>;
|
|
@@ -14,8 +14,8 @@ export declare const CreateBlockImageMutationSchema: z.ZodObject<z.objectUtil.ex
|
|
|
14
14
|
name: z.ZodLiteral<"createBlockImage">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "createBlockImage";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "createBlockImage";
|
|
19
19
|
}, {
|
|
20
20
|
name: "createBlockImage";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -40,8 +40,8 @@ export declare const CreateBlockImageMutationSchema: z.ZodObject<z.objectUtil.ex
|
|
|
40
40
|
debounceCount: number;
|
|
41
41
|
identityRef: string;
|
|
42
42
|
operation: {
|
|
43
|
-
name: "createBlockImage";
|
|
44
43
|
version: number;
|
|
44
|
+
name: "createBlockImage";
|
|
45
45
|
};
|
|
46
46
|
sessionRef?: string | null | undefined;
|
|
47
47
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const CreateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
|
|
|
14
14
|
name: z.ZodLiteral<"createBlockParagraph">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "createBlockParagraph";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "createBlockParagraph";
|
|
19
19
|
}, {
|
|
20
20
|
name: "createBlockParagraph";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -40,8 +40,8 @@ export declare const CreateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
|
|
|
40
40
|
debounceCount: number;
|
|
41
41
|
identityRef: string;
|
|
42
42
|
operation: {
|
|
43
|
-
name: "createBlockParagraph";
|
|
44
43
|
version: number;
|
|
44
|
+
name: "createBlockParagraph";
|
|
45
45
|
};
|
|
46
46
|
sessionRef?: string | null | undefined;
|
|
47
47
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const CreateBlockRowMutationSchema: z.ZodObject<z.objectUtil.exte
|
|
|
14
14
|
name: z.ZodLiteral<"createBlockRow">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "createBlockRow";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "createBlockRow";
|
|
19
19
|
}, {
|
|
20
20
|
name: "createBlockRow";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -40,8 +40,8 @@ export declare const CreateBlockRowMutationSchema: z.ZodObject<z.objectUtil.exte
|
|
|
40
40
|
debounceCount: number;
|
|
41
41
|
identityRef: string;
|
|
42
42
|
operation: {
|
|
43
|
-
name: "createBlockRow";
|
|
44
43
|
version: number;
|
|
44
|
+
name: "createBlockRow";
|
|
45
45
|
};
|
|
46
46
|
sessionRef?: string | null | undefined;
|
|
47
47
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const CreateBlockTitleMutationSchema: z.ZodObject<z.objectUtil.ex
|
|
|
14
14
|
name: z.ZodLiteral<"createBlockTitle">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "createBlockTitle";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "createBlockTitle";
|
|
19
19
|
}, {
|
|
20
20
|
name: "createBlockTitle";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -40,8 +40,8 @@ export declare const CreateBlockTitleMutationSchema: z.ZodObject<z.objectUtil.ex
|
|
|
40
40
|
debounceCount: number;
|
|
41
41
|
identityRef: string;
|
|
42
42
|
operation: {
|
|
43
|
-
name: "createBlockTitle";
|
|
44
43
|
version: number;
|
|
44
|
+
name: "createBlockTitle";
|
|
45
45
|
};
|
|
46
46
|
sessionRef?: string | null | undefined;
|
|
47
47
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const CreateDraftMutationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
14
14
|
name: z.ZodLiteral<"createDraft">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "createDraft";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "createDraft";
|
|
19
19
|
}, {
|
|
20
20
|
name: "createDraft";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -40,8 +40,8 @@ export declare const CreateDraftMutationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
40
40
|
debounceCount: number;
|
|
41
41
|
identityRef: string;
|
|
42
42
|
operation: {
|
|
43
|
-
name: "createDraft";
|
|
44
43
|
version: number;
|
|
44
|
+
name: "createDraft";
|
|
45
45
|
};
|
|
46
46
|
sessionRef?: string | null | undefined;
|
|
47
47
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
14
14
|
name: z.ZodLiteral<"createPost">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "createPost";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "createPost";
|
|
19
19
|
}, {
|
|
20
20
|
name: "createPost";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -48,8 +48,8 @@ export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
48
48
|
debounceCount: number;
|
|
49
49
|
identityRef: string;
|
|
50
50
|
operation: {
|
|
51
|
-
name: "createPost";
|
|
52
51
|
version: number;
|
|
52
|
+
name: "createPost";
|
|
53
53
|
};
|
|
54
54
|
sessionRef?: string | null | undefined;
|
|
55
55
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
14
14
|
name: z.ZodLiteral<"createUser">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "createUser";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "createUser";
|
|
19
19
|
}, {
|
|
20
20
|
name: "createUser";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -40,8 +40,8 @@ export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
40
40
|
debounceCount: number;
|
|
41
41
|
identityRef: string;
|
|
42
42
|
operation: {
|
|
43
|
-
name: "createUser";
|
|
44
43
|
version: number;
|
|
44
|
+
name: "createUser";
|
|
45
45
|
};
|
|
46
46
|
sessionRef?: string | null | undefined;
|
|
47
47
|
persistedAt?: string | null | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const DeleteBlocksMutationSchema: z.ZodObject<z.objectUtil.extend
|
|
|
14
14
|
name: z.ZodLiteral<"deleteBlocks">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "deleteBlocks";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "deleteBlocks";
|
|
19
19
|
}, {
|
|
20
20
|
name: "deleteBlocks";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -32,8 +32,8 @@ export declare const DeleteBlocksMutationSchema: z.ZodObject<z.objectUtil.extend
|
|
|
32
32
|
debounceCount: number;
|
|
33
33
|
identityRef: string;
|
|
34
34
|
operation: {
|
|
35
|
-
name: "deleteBlocks";
|
|
36
35
|
version: number;
|
|
36
|
+
name: "deleteBlocks";
|
|
37
37
|
};
|
|
38
38
|
sessionRef?: string | null | undefined;
|
|
39
39
|
persistedAt?: string | null | undefined;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const DeleteDraftMutationSchema: 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").ZodNullable<import("zod").ZodString>>;
|
|
10
|
+
persistedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
11
|
+
}, {
|
|
12
|
+
operation: import("zod").ZodObject<{
|
|
13
|
+
name: import("zod").ZodLiteral<"deleteDraft">;
|
|
14
|
+
version: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
15
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
16
|
+
version: number;
|
|
17
|
+
name: "deleteDraft";
|
|
18
|
+
}, {
|
|
19
|
+
name: "deleteDraft";
|
|
20
|
+
version?: number | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
changeSetRef: import("zod").ZodType<never, import("zod").ZodTypeDef, never> | import("zod").ZodNullable<import("zod").ZodType<never, import("zod").ZodTypeDef, never>>;
|
|
23
|
+
payload: import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>;
|
|
24
|
+
log: import("zod").ZodType<any[], import("zod").ZodTypeDef, any[]>;
|
|
25
|
+
}>, "strict", import("zod").ZodTypeAny, {
|
|
26
|
+
ref: `Mutation/${string}`;
|
|
27
|
+
timestamp: string;
|
|
28
|
+
changeSetRef: null;
|
|
29
|
+
payload: `Draft/${string}`;
|
|
30
|
+
log: any[];
|
|
31
|
+
debounceCount: number;
|
|
32
|
+
identityRef: string;
|
|
33
|
+
operation: {
|
|
34
|
+
version: number;
|
|
35
|
+
name: "deleteDraft";
|
|
36
|
+
};
|
|
37
|
+
sessionRef?: string | null | undefined;
|
|
38
|
+
persistedAt?: string | null | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
ref: `Mutation/${string}`;
|
|
41
|
+
timestamp: string;
|
|
42
|
+
changeSetRef: null;
|
|
43
|
+
payload: `Draft/${string}`;
|
|
44
|
+
log: any[];
|
|
45
|
+
debounceCount: number;
|
|
46
|
+
identityRef: string;
|
|
47
|
+
operation: {
|
|
48
|
+
name: "deleteDraft";
|
|
49
|
+
version?: number | undefined;
|
|
50
|
+
};
|
|
51
|
+
sessionRef?: string | null | undefined;
|
|
52
|
+
persistedAt?: string | null | undefined;
|
|
53
|
+
}>;
|
|
@@ -13,8 +13,8 @@ export declare const DeletePostMutationSchema: import("zod").ZodObject<import("z
|
|
|
13
13
|
name: import("zod").ZodLiteral<"deletePost">;
|
|
14
14
|
version: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
15
15
|
}, "strip", import("zod").ZodTypeAny, {
|
|
16
|
-
name: "deletePost";
|
|
17
16
|
version: number;
|
|
17
|
+
name: "deletePost";
|
|
18
18
|
}, {
|
|
19
19
|
name: "deletePost";
|
|
20
20
|
version?: number | undefined;
|
|
@@ -31,8 +31,8 @@ export declare const DeletePostMutationSchema: import("zod").ZodObject<import("z
|
|
|
31
31
|
debounceCount: number;
|
|
32
32
|
identityRef: string;
|
|
33
33
|
operation: {
|
|
34
|
-
name: "deletePost";
|
|
35
34
|
version: number;
|
|
35
|
+
name: "deletePost";
|
|
36
36
|
};
|
|
37
37
|
sessionRef?: string | null | undefined;
|
|
38
38
|
persistedAt?: string | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const DraftSchema: z.ZodObject<
|
|
3
|
-
ref: z.ZodType
|
|
4
|
-
entity: z.
|
|
2
|
+
export declare const DraftSchema: z.ZodObject<{
|
|
3
|
+
ref: z.ZodType<`Draft/${string}`, z.ZodTypeDef, `Draft/${string}`>;
|
|
4
|
+
entity: z.ZodLiteral<"Draft">;
|
|
5
5
|
created: z.ZodObject<{
|
|
6
6
|
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
7
7
|
timestamp: z.ZodString;
|
|
@@ -22,11 +22,48 @@ export declare const DraftSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
22
22
|
mutationRef: `Mutation/${string}`;
|
|
23
23
|
timestamp: string;
|
|
24
24
|
}>;
|
|
25
|
-
data: z.ZodObject<{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
data: z.ZodObject<{
|
|
26
|
+
postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
postRef: `Post/${string}`;
|
|
29
|
+
}, {
|
|
30
|
+
postRef: `Post/${string}`;
|
|
31
|
+
}>;
|
|
32
|
+
children: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
|
|
33
|
+
parents: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
|
|
34
|
+
ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
|
|
35
|
+
}, "strict", z.ZodTypeAny, {
|
|
36
|
+
ref: `Draft/${string}`;
|
|
37
|
+
data: {
|
|
38
|
+
postRef: `Post/${string}`;
|
|
39
|
+
};
|
|
40
|
+
parents: {};
|
|
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: {};
|
|
30
52
|
}, {
|
|
31
|
-
|
|
53
|
+
ref: `Draft/${string}`;
|
|
54
|
+
data: {
|
|
55
|
+
postRef: `Post/${string}`;
|
|
56
|
+
};
|
|
57
|
+
parents: {};
|
|
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: {};
|
|
32
69
|
}>;
|
|
@@ -14,8 +14,8 @@ export declare const MoveBlocksMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
14
14
|
name: z.ZodLiteral<"moveBlocks">;
|
|
15
15
|
version: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: "moveBlocks";
|
|
18
17
|
version: number;
|
|
18
|
+
name: "moveBlocks";
|
|
19
19
|
}, {
|
|
20
20
|
name: "moveBlocks";
|
|
21
21
|
version?: number | undefined;
|
|
@@ -44,8 +44,8 @@ export declare const MoveBlocksMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
44
44
|
debounceCount: number;
|
|
45
45
|
identityRef: string;
|
|
46
46
|
operation: {
|
|
47
|
-
name: "moveBlocks";
|
|
48
47
|
version: number;
|
|
48
|
+
name: "moveBlocks";
|
|
49
49
|
};
|
|
50
50
|
sessionRef?: string | null | undefined;
|
|
51
51
|
persistedAt?: string | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const PostSchema: z.ZodObject<
|
|
3
|
-
ref: z.ZodType
|
|
4
|
-
entity: z.
|
|
2
|
+
export declare const PostSchema: z.ZodObject<{
|
|
3
|
+
ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
4
|
+
entity: z.ZodLiteral<"Post">;
|
|
5
5
|
created: z.ZodObject<{
|
|
6
6
|
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
7
7
|
timestamp: z.ZodString;
|
|
@@ -22,12 +22,84 @@ export declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
22
22
|
mutationRef: `Mutation/${string}`;
|
|
23
23
|
timestamp: string;
|
|
24
24
|
}>;
|
|
25
|
-
data: z.ZodObject<{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
data: z.ZodObject<{
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
text: z.ZodOptional<z.ZodString>;
|
|
28
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
29
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
title: string;
|
|
32
|
+
tags: string[];
|
|
33
|
+
text?: string | undefined;
|
|
34
|
+
slug?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
title: string;
|
|
37
|
+
tags: string[];
|
|
38
|
+
text?: string | undefined;
|
|
39
|
+
slug?: string | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
children: z.ZodObject<{
|
|
42
|
+
blocks: z.ZodArray<z.ZodString, "many">;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
blocks: string[];
|
|
45
|
+
}, {
|
|
46
|
+
blocks: string[];
|
|
47
|
+
}>;
|
|
48
|
+
parents: z.ZodObject<{
|
|
49
|
+
author: z.ZodOptional<z.ZodType<`User/${string}`, z.ZodTypeDef, `User/${string}`>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
author?: `User/${string}` | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
author?: `User/${string}` | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
|
|
56
|
+
}, "strict", z.ZodTypeAny, {
|
|
57
|
+
ref: `Post/${string}`;
|
|
58
|
+
data: {
|
|
59
|
+
title: string;
|
|
60
|
+
tags: string[];
|
|
61
|
+
text?: string | undefined;
|
|
62
|
+
slug?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
parents: {
|
|
65
|
+
author?: `User/${string}` | undefined;
|
|
66
|
+
};
|
|
67
|
+
entity: "Post";
|
|
68
|
+
created: {
|
|
69
|
+
mutationRef: `Mutation/${string}`;
|
|
70
|
+
timestamp: string;
|
|
71
|
+
};
|
|
72
|
+
updated: {
|
|
73
|
+
mutationRef: `Mutation/${string}`;
|
|
74
|
+
timestamp: string;
|
|
75
|
+
};
|
|
76
|
+
children: {
|
|
77
|
+
blocks: string[];
|
|
78
|
+
};
|
|
79
|
+
ancestors: {};
|
|
30
80
|
}, {
|
|
31
|
-
|
|
81
|
+
ref: `Post/${string}`;
|
|
82
|
+
data: {
|
|
83
|
+
title: string;
|
|
84
|
+
tags: string[];
|
|
85
|
+
text?: string | undefined;
|
|
86
|
+
slug?: string | undefined;
|
|
87
|
+
};
|
|
88
|
+
parents: {
|
|
89
|
+
author?: `User/${string}` | undefined;
|
|
90
|
+
};
|
|
91
|
+
entity: "Post";
|
|
92
|
+
created: {
|
|
93
|
+
mutationRef: `Mutation/${string}`;
|
|
94
|
+
timestamp: string;
|
|
95
|
+
};
|
|
96
|
+
updated: {
|
|
97
|
+
mutationRef: `Mutation/${string}`;
|
|
98
|
+
timestamp: string;
|
|
99
|
+
};
|
|
100
|
+
children: {
|
|
101
|
+
blocks: string[];
|
|
102
|
+
};
|
|
103
|
+
ancestors: {};
|
|
32
104
|
}>;
|
|
33
105
|
export type Post = z.infer<typeof PostSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PostVersionRefSchema: import("zod").ZodType<`PostVersion/${string}`, import("zod").ZodTypeDef, `PostVersion/${string}`>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PostVersionSchema: z.ZodObject<{
|
|
3
|
+
ref: z.ZodType<`PostVersion/${string}`, z.ZodTypeDef, `PostVersion/${string}`>;
|
|
4
|
+
entity: z.ZodLiteral<"PostVersion">;
|
|
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<{
|
|
26
|
+
version: z.ZodNumber;
|
|
27
|
+
snapshot: z.ZodArray<z.ZodAny, "many">;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
version: number;
|
|
30
|
+
snapshot: any[];
|
|
31
|
+
}, {
|
|
32
|
+
version: number;
|
|
33
|
+
snapshot: any[];
|
|
34
|
+
}>;
|
|
35
|
+
children: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
|
|
36
|
+
parents: z.ZodObject<{
|
|
37
|
+
post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
post: `Post/${string}`;
|
|
40
|
+
}, {
|
|
41
|
+
post: `Post/${string}`;
|
|
42
|
+
}>;
|
|
43
|
+
ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
|
|
44
|
+
}, "strict", z.ZodTypeAny, {
|
|
45
|
+
ref: `PostVersion/${string}`;
|
|
46
|
+
data: {
|
|
47
|
+
version: number;
|
|
48
|
+
snapshot: any[];
|
|
49
|
+
};
|
|
50
|
+
parents: {
|
|
51
|
+
post: `Post/${string}`;
|
|
52
|
+
};
|
|
53
|
+
entity: "PostVersion";
|
|
54
|
+
created: {
|
|
55
|
+
mutationRef: `Mutation/${string}`;
|
|
56
|
+
timestamp: string;
|
|
57
|
+
};
|
|
58
|
+
updated: {
|
|
59
|
+
mutationRef: `Mutation/${string}`;
|
|
60
|
+
timestamp: string;
|
|
61
|
+
};
|
|
62
|
+
children: {};
|
|
63
|
+
ancestors: {};
|
|
64
|
+
}, {
|
|
65
|
+
ref: `PostVersion/${string}`;
|
|
66
|
+
data: {
|
|
67
|
+
version: number;
|
|
68
|
+
snapshot: any[];
|
|
69
|
+
};
|
|
70
|
+
parents: {
|
|
71
|
+
post: `Post/${string}`;
|
|
72
|
+
};
|
|
73
|
+
entity: "PostVersion";
|
|
74
|
+
created: {
|
|
75
|
+
mutationRef: `Mutation/${string}`;
|
|
76
|
+
timestamp: string;
|
|
77
|
+
};
|
|
78
|
+
updated: {
|
|
79
|
+
mutationRef: `Mutation/${string}`;
|
|
80
|
+
timestamp: string;
|
|
81
|
+
};
|
|
82
|
+
children: {};
|
|
83
|
+
ancestors: {};
|
|
84
|
+
}>;
|
|
85
|
+
export type PostVersion = z.infer<typeof PostVersionSchema>;
|