@roc-db/test-utils 0.2.0-pre.7 → 0.2.0-pre.70
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 +926 -286
- package/dist/types/entities/BlockImageEntity.d.ts +15 -0
- package/dist/types/entities/BlockParagraph.d.ts +15 -0
- package/dist/types/entities/BlockRow.d.ts +15 -0
- package/dist/types/entities/Draft.d.ts +15 -0
- package/dist/types/entities/PostEntity.d.ts +30 -0
- package/dist/types/entities/PostVersion.d.ts +18 -0
- package/dist/types/entities/UserEntity.d.ts +9 -0
- package/dist/types/entities/index.d.ts +97 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/operations/applyDraft.d.ts +1 -0
- package/dist/types/operations/createBlockImage.d.ts +10 -14
- package/dist/types/operations/createBlockParagraph.d.ts +6 -13
- package/dist/types/operations/createBlockRow.d.ts +6 -13
- package/dist/types/operations/createBlockTitle.d.ts +6 -13
- package/dist/types/operations/createDraft.d.ts +6 -13
- package/dist/types/operations/createPost.d.ts +10 -15
- package/dist/types/operations/createUser.d.ts +8 -0
- package/dist/types/operations/crudBySlug.d.ts +11 -0
- package/dist/types/operations/deleteBlocks.d.ts +2 -0
- package/dist/types/operations/deleteDraft.d.ts +1 -0
- package/dist/types/operations/deletePost.d.ts +1 -9
- package/dist/types/operations/index.d.ts +1 -157
- package/dist/types/operations/moveBlocks.d.ts +11 -0
- package/dist/types/operations/pageBlocks.d.ts +1 -0
- package/dist/types/operations/pageEmptyEntitiesArray.d.ts +1 -0
- package/dist/types/operations/pagePosts.d.ts +1 -0
- package/dist/types/operations/pagePostsByTag.d.ts +1 -0
- package/dist/types/operations/pageSplat.d.ts +1 -0
- package/dist/types/operations/readMutation.d.ts +1 -0
- package/dist/types/operations/readPostBySlug.d.ts +1 -0
- package/dist/types/operations/testTransactionalEdits.d.ts +14 -0
- package/dist/types/operations/updateBlockParagraph.d.ts +8 -12
- package/dist/types/operations/updatePost.d.ts +12 -16
- package/dist/types/operations/updatePostDescription.d.ts +11 -0
- package/dist/types/operations/updatePostSlug.d.ts +11 -0
- package/dist/types/operations/updatePostTags.d.ts +11 -0
- package/dist/types/operations/updatePostTitle.d.ts +8 -14
- 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/CreatePostMutationSchema.d.ts +31 -7
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +31 -7
- package/dist/types/schemas/DraftSchema.d.ts +46 -9
- package/dist/types/schemas/PostSchema.d.ts +81 -9
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +32 -8
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +31 -7
- package/dist/types/schemas/index.d.ts +0 -31
- package/dist/types/testAdapterImplementation.d.ts +1 -1
- package/package.json +2 -2
- package/dist/types/operations/deleteBlock.d.ts +0 -11
- package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +0 -40
- package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +0 -40
- package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +0 -40
- package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +0 -40
- package/dist/types/schemas/CreateDraftMutationSchema.d.ts +0 -40
- package/dist/types/schemas/DeleteBlockMutationSchema.d.ts +0 -30
- package/dist/types/schemas/DeletePostMutationSchema.d.ts +0 -29
- package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +0 -45
|
@@ -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>;
|
|
@@ -4,16 +4,28 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
5
|
changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
6
6
|
payload: z.ZodAny;
|
|
7
|
-
log: z.ZodArray<z.
|
|
7
|
+
log: z.ZodArray<z.ZodAny, "many">;
|
|
8
8
|
debounceCount: z.ZodNumber;
|
|
9
|
+
identityRef: z.ZodString;
|
|
10
|
+
sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
12
|
}, {
|
|
10
|
-
|
|
13
|
+
operation: z.ZodObject<{
|
|
14
|
+
name: z.ZodLiteral<"updatePost">;
|
|
15
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: "updatePost";
|
|
18
|
+
version: number;
|
|
19
|
+
}, {
|
|
20
|
+
name: "updatePost";
|
|
21
|
+
version?: number | undefined;
|
|
22
|
+
}>;
|
|
11
23
|
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
12
24
|
payload: z.ZodObject<{
|
|
13
25
|
ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
14
26
|
title: z.ZodOptional<z.ZodString>;
|
|
15
27
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
16
|
-
authorRef: z.ZodOptional<z.
|
|
28
|
+
authorRef: z.ZodOptional<z.ZodType<`User/${string}`, z.ZodTypeDef, `User/${string}`>>;
|
|
17
29
|
}, "strip", z.ZodTypeAny, {
|
|
18
30
|
ref: `Post/${string}`;
|
|
19
31
|
tags: string[];
|
|
@@ -25,7 +37,7 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
25
37
|
tags?: string[] | undefined;
|
|
26
38
|
authorRef?: `User/${string}` | undefined;
|
|
27
39
|
}>;
|
|
28
|
-
log: z.ZodType<[
|
|
40
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
29
41
|
}>, "strict", z.ZodTypeAny, {
|
|
30
42
|
ref: `Mutation/${string}`;
|
|
31
43
|
timestamp: string;
|
|
@@ -36,9 +48,15 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
36
48
|
title?: string | undefined;
|
|
37
49
|
authorRef?: `User/${string}` | undefined;
|
|
38
50
|
};
|
|
39
|
-
log: [
|
|
51
|
+
log: any[];
|
|
40
52
|
debounceCount: number;
|
|
41
|
-
|
|
53
|
+
identityRef: string;
|
|
54
|
+
operation: {
|
|
55
|
+
name: "updatePost";
|
|
56
|
+
version: number;
|
|
57
|
+
};
|
|
58
|
+
sessionRef?: string | null | undefined;
|
|
59
|
+
persistedAt?: string | null | undefined;
|
|
42
60
|
}, {
|
|
43
61
|
ref: `Mutation/${string}`;
|
|
44
62
|
timestamp: string;
|
|
@@ -49,7 +67,13 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
49
67
|
tags?: string[] | undefined;
|
|
50
68
|
authorRef?: `User/${string}` | undefined;
|
|
51
69
|
};
|
|
52
|
-
log: [
|
|
70
|
+
log: any[];
|
|
53
71
|
debounceCount: number;
|
|
54
|
-
|
|
72
|
+
identityRef: string;
|
|
73
|
+
operation: {
|
|
74
|
+
name: "updatePost";
|
|
75
|
+
version?: number | undefined;
|
|
76
|
+
};
|
|
77
|
+
sessionRef?: string | null | undefined;
|
|
78
|
+
persistedAt?: string | null | undefined;
|
|
55
79
|
}>;
|
|
@@ -4,10 +4,22 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
|
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
5
|
changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
6
6
|
payload: z.ZodAny;
|
|
7
|
-
log: z.ZodArray<z.
|
|
7
|
+
log: z.ZodArray<z.ZodAny, "many">;
|
|
8
8
|
debounceCount: z.ZodNumber;
|
|
9
|
+
identityRef: z.ZodString;
|
|
10
|
+
sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
12
|
}, {
|
|
10
|
-
|
|
13
|
+
operation: z.ZodObject<{
|
|
14
|
+
name: z.ZodLiteral<"updatePostTitle">;
|
|
15
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: "updatePostTitle";
|
|
18
|
+
version: number;
|
|
19
|
+
}, {
|
|
20
|
+
name: "updatePostTitle";
|
|
21
|
+
version?: number | undefined;
|
|
22
|
+
}>;
|
|
11
23
|
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
12
24
|
payload: z.ZodObject<{
|
|
13
25
|
ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
@@ -19,7 +31,7 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
|
|
|
19
31
|
ref: `Post/${string}`;
|
|
20
32
|
title: string;
|
|
21
33
|
}>;
|
|
22
|
-
log: z.ZodType<[
|
|
34
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
23
35
|
}>, "strict", z.ZodTypeAny, {
|
|
24
36
|
ref: `Mutation/${string}`;
|
|
25
37
|
timestamp: string;
|
|
@@ -28,9 +40,15 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
|
|
|
28
40
|
ref: `Post/${string}`;
|
|
29
41
|
title: string;
|
|
30
42
|
};
|
|
31
|
-
log: [
|
|
43
|
+
log: any[];
|
|
32
44
|
debounceCount: number;
|
|
33
|
-
|
|
45
|
+
identityRef: string;
|
|
46
|
+
operation: {
|
|
47
|
+
name: "updatePostTitle";
|
|
48
|
+
version: number;
|
|
49
|
+
};
|
|
50
|
+
sessionRef?: string | null | undefined;
|
|
51
|
+
persistedAt?: string | null | undefined;
|
|
34
52
|
}, {
|
|
35
53
|
ref: `Mutation/${string}`;
|
|
36
54
|
timestamp: string;
|
|
@@ -39,7 +57,13 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
|
|
|
39
57
|
ref: `Post/${string}`;
|
|
40
58
|
title: string;
|
|
41
59
|
};
|
|
42
|
-
log: [
|
|
60
|
+
log: any[];
|
|
43
61
|
debounceCount: number;
|
|
44
|
-
|
|
62
|
+
identityRef: string;
|
|
63
|
+
operation: {
|
|
64
|
+
name: "updatePostTitle";
|
|
65
|
+
version?: number | undefined;
|
|
66
|
+
};
|
|
67
|
+
sessionRef?: string | null | undefined;
|
|
68
|
+
persistedAt?: string | null | undefined;
|
|
45
69
|
}>;
|
|
@@ -4,37 +4,6 @@ import { BlockTitleSchema } from "./BlockTitleSchema";
|
|
|
4
4
|
import { DraftSchema } from "./DraftSchema";
|
|
5
5
|
import { PostSchema } from "./PostSchema";
|
|
6
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
7
|
export { DraftRefSchema } from "./DraftRefSchema";
|
|
39
8
|
export { PostRefSchema } from "./PostRefSchema";
|
|
40
9
|
export { UserRefSchema } from "./UserRefSchema";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const testAdapterImplementation: <EngineOptions extends {}>(adapterConstructor: any,
|
|
1
|
+
export declare const testAdapterImplementation: <EngineOptions extends {}>(adapterConstructor: any, generateArgs: () => EngineOptions) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roc-db/test-utils",
|
|
3
|
-
"version": "0.2.0-pre.
|
|
3
|
+
"version": "0.2.0-pre.70",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"roc-db": "0.2.0-pre.
|
|
20
|
+
"roc-db": "0.2.0-pre.70",
|
|
21
21
|
"zod": "3.24.2"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [],
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const deleteBlock: import("roc-db").WriteOperation<"deleteBlock", {
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: `BlockImage/${string}` | `BlockParagraph/${string}`;
|
|
6
|
-
log: [never, string, null][];
|
|
7
|
-
debounceCount: number;
|
|
8
|
-
name: "deleteBlock";
|
|
9
|
-
}, `BlockImage/${string}` | `BlockParagraph/${string}`, {
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}>;
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
}>;
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
}>;
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
}>;
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
}>;
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
}>;
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}>;
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
}>;
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
}>;
|