@roc-db/test-utils 0.2.0-pre.4 → 0.2.0-pre.40
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 +474 -138
- package/dist/types/inMemoryAdapter.d.ts +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/operations/applyDraft.d.ts +5 -0
- package/dist/types/operations/createBlockImage.d.ts +7 -0
- package/dist/types/operations/createBlockParagraph.d.ts +7 -0
- package/dist/types/operations/createBlockRow.d.ts +7 -0
- package/dist/types/operations/createBlockTitle.d.ts +7 -0
- package/dist/types/operations/createDraft.d.ts +7 -0
- package/dist/types/operations/createPost.d.ts +7 -0
- package/dist/types/operations/deleteBlocks.d.ts +7 -0
- package/dist/types/operations/deletePost.d.ts +5 -0
- package/dist/types/operations/index.d.ts +83 -0
- package/dist/types/operations/moveBlocks.d.ts +5 -0
- package/dist/types/operations/readEntity.d.ts +1 -0
- package/dist/types/operations/readPost.d.ts +1 -0
- package/dist/types/operations/testTransactionalEdits.d.ts +7 -0
- package/dist/types/operations/updateBlockParagraph.d.ts +5 -0
- package/dist/types/operations/updatePost.d.ts +7 -0
- package/dist/types/operations/updatePostDescription.d.ts +7 -0
- package/dist/types/operations/updatePostTitle.d.ts +7 -0
- package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +61 -0
- package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -0
- package/dist/types/schemas/BlockImageSchema.d.ts +32 -0
- package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -0
- package/dist/types/schemas/BlockParagraphSchema.d.ts +33 -0
- package/dist/types/schemas/BlockRefSchema.d.ts +2 -0
- package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -0
- package/dist/types/schemas/BlockRowSchema.d.ts +33 -0
- package/dist/types/schemas/BlockTitleRefSchema.d.ts +1 -0
- package/dist/types/schemas/BlockTitleSchema.d.ts +32 -0
- package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +61 -0
- package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +61 -0
- package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +61 -0
- package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +61 -0
- package/dist/types/schemas/CreateDraftMutationSchema.d.ts +61 -0
- package/dist/types/schemas/CreatePostMutationSchema.d.ts +71 -0
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +61 -0
- package/dist/types/schemas/DeleteBlocksMutationSchema.d.ts +51 -0
- package/dist/types/schemas/DeletePostMutationSchema.d.ts +50 -0
- package/dist/types/schemas/DraftRefSchema.d.ts +1 -0
- package/dist/types/schemas/DraftSchema.d.ts +32 -0
- package/dist/types/schemas/MoveBlocksMutationSchema.d.ts +66 -0
- package/dist/types/schemas/PostRefSchema.d.ts +1 -0
- package/dist/types/schemas/PostSchema.d.ts +33 -0
- package/dist/types/schemas/TestTransactionalEditsMutationSchema.d.ts +71 -0
- package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +66 -0
- package/dist/types/schemas/UpdatePostDescriptionMutationSchema.d.ts +66 -0
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +76 -0
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +66 -0
- package/dist/types/schemas/UserRefSchema.d.ts +1 -0
- package/dist/types/schemas/index.d.ts +44 -0
- package/dist/types/testAdapterImplementation.d.ts +1 -0
- package/package.json +10 -17
- package/dist/tarball/roc-db-test-utils-0.2.0-pre.4.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const inMemoryAdapter: any;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const operations: readonly [import("roc-db").WriteOperation<string, {
|
|
2
|
+
debounceCount: number;
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, any>, import("roc-db").WriteOperation<string, {
|
|
6
|
+
debounceCount: number;
|
|
7
|
+
name: string;
|
|
8
|
+
payload?: any;
|
|
9
|
+
}, any, {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
12
|
+
debounceCount: number;
|
|
13
|
+
name: string;
|
|
14
|
+
payload?: any;
|
|
15
|
+
}, any, {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
18
|
+
debounceCount: number;
|
|
19
|
+
name: string;
|
|
20
|
+
payload?: any;
|
|
21
|
+
}, any, {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
24
|
+
debounceCount: number;
|
|
25
|
+
name: string;
|
|
26
|
+
payload?: any;
|
|
27
|
+
}, any, {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
30
|
+
debounceCount: number;
|
|
31
|
+
name: string;
|
|
32
|
+
payload?: any;
|
|
33
|
+
}, any, {
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
36
|
+
debounceCount: number;
|
|
37
|
+
name: string;
|
|
38
|
+
payload?: any;
|
|
39
|
+
}, any, {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
42
|
+
debounceCount: number;
|
|
43
|
+
name: string;
|
|
44
|
+
payload?: any;
|
|
45
|
+
}, any, {
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
48
|
+
debounceCount: number;
|
|
49
|
+
name: string;
|
|
50
|
+
payload?: any;
|
|
51
|
+
}, any, any>, import("roc-db").WriteOperation<string, {
|
|
52
|
+
debounceCount: number;
|
|
53
|
+
name: string;
|
|
54
|
+
payload?: any;
|
|
55
|
+
}, any, any>, any, any, import("roc-db").WriteOperation<string, {
|
|
56
|
+
debounceCount: number;
|
|
57
|
+
name: string;
|
|
58
|
+
payload?: any;
|
|
59
|
+
}, any, {
|
|
60
|
+
[x: string]: any;
|
|
61
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
62
|
+
debounceCount: number;
|
|
63
|
+
name: string;
|
|
64
|
+
payload?: any;
|
|
65
|
+
}, any, `BlockParagraph/${string}`>, import("roc-db").WriteOperation<string, {
|
|
66
|
+
debounceCount: number;
|
|
67
|
+
name: string;
|
|
68
|
+
payload?: any;
|
|
69
|
+
}, any, {
|
|
70
|
+
[x: string]: any;
|
|
71
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
72
|
+
debounceCount: number;
|
|
73
|
+
name: string;
|
|
74
|
+
payload?: any;
|
|
75
|
+
}, any, {
|
|
76
|
+
[x: string]: any;
|
|
77
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
78
|
+
debounceCount: number;
|
|
79
|
+
name: string;
|
|
80
|
+
payload?: any;
|
|
81
|
+
}, any, {
|
|
82
|
+
[x: string]: any;
|
|
83
|
+
}>];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const readEntity: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const readPost: any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ApplyDraftMutationSchema: 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.ZodAny, "many">;
|
|
8
|
+
debounceCount: z.ZodNumber;
|
|
9
|
+
identityRef: z.ZodString;
|
|
10
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, {
|
|
12
|
+
operation: z.ZodObject<{
|
|
13
|
+
name: z.ZodLiteral<"applyDraft">;
|
|
14
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
name: "applyDraft";
|
|
17
|
+
version: number;
|
|
18
|
+
}, {
|
|
19
|
+
name: "applyDraft";
|
|
20
|
+
version?: number | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
23
|
+
payload: z.ZodObject<{
|
|
24
|
+
ref: z.ZodType<`Draft/${string}`, z.ZodTypeDef, `Draft/${string}`>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
ref: `Draft/${string}`;
|
|
27
|
+
}, {
|
|
28
|
+
ref: `Draft/${string}`;
|
|
29
|
+
}>;
|
|
30
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
31
|
+
}>, "strict", z.ZodTypeAny, {
|
|
32
|
+
ref: `Mutation/${string}`;
|
|
33
|
+
timestamp: string;
|
|
34
|
+
changeSetRef: null;
|
|
35
|
+
payload: {
|
|
36
|
+
ref: `Draft/${string}`;
|
|
37
|
+
};
|
|
38
|
+
log: any[];
|
|
39
|
+
debounceCount: number;
|
|
40
|
+
identityRef: string;
|
|
41
|
+
operation: {
|
|
42
|
+
name: "applyDraft";
|
|
43
|
+
version: number;
|
|
44
|
+
};
|
|
45
|
+
sessionRef?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
ref: `Mutation/${string}`;
|
|
48
|
+
timestamp: string;
|
|
49
|
+
changeSetRef: null;
|
|
50
|
+
payload: {
|
|
51
|
+
ref: `Draft/${string}`;
|
|
52
|
+
};
|
|
53
|
+
log: any[];
|
|
54
|
+
debounceCount: number;
|
|
55
|
+
identityRef: string;
|
|
56
|
+
operation: {
|
|
57
|
+
name: "applyDraft";
|
|
58
|
+
version?: number | undefined;
|
|
59
|
+
};
|
|
60
|
+
sessionRef?: string | undefined;
|
|
61
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BlockImageRefSchema: import("zod").ZodType<`BlockImage/${string}`, import("zod").ZodTypeDef, `BlockImage/${string}`>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BlockImageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
ref: z.ZodType<never, z.ZodTypeDef, never>;
|
|
4
|
+
entity: z.ZodString;
|
|
5
|
+
created: z.ZodObject<{
|
|
6
|
+
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
7
|
+
timestamp: z.ZodString;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
mutationRef: `Mutation/${string}`;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
}, {
|
|
12
|
+
mutationRef: `Mutation/${string}`;
|
|
13
|
+
timestamp: string;
|
|
14
|
+
}>;
|
|
15
|
+
updated: z.ZodObject<{
|
|
16
|
+
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
17
|
+
timestamp: z.ZodString;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
mutationRef: `Mutation/${string}`;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
}, {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
}>;
|
|
25
|
+
data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
26
|
+
parents: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
27
|
+
ancestors: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
28
|
+
}, z.ZodRawShape>, "strict", z.ZodTypeAny, {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
}, {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BlockParagraphRefSchema: import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BlockParagraphSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
ref: z.ZodType<never, z.ZodTypeDef, never>;
|
|
4
|
+
entity: z.ZodString;
|
|
5
|
+
created: z.ZodObject<{
|
|
6
|
+
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
7
|
+
timestamp: z.ZodString;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
mutationRef: `Mutation/${string}`;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
}, {
|
|
12
|
+
mutationRef: `Mutation/${string}`;
|
|
13
|
+
timestamp: string;
|
|
14
|
+
}>;
|
|
15
|
+
updated: z.ZodObject<{
|
|
16
|
+
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
17
|
+
timestamp: z.ZodString;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
mutationRef: `Mutation/${string}`;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
}, {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
}>;
|
|
25
|
+
data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
26
|
+
parents: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
27
|
+
ancestors: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
28
|
+
}, z.ZodRawShape>, "strict", z.ZodTypeAny, {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
}, {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
}>;
|
|
33
|
+
export type BlockParagraph = z.infer<typeof BlockParagraphSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BlockRowRefSchema: import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BlockRowSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
ref: z.ZodType<never, z.ZodTypeDef, never>;
|
|
4
|
+
entity: z.ZodString;
|
|
5
|
+
created: z.ZodObject<{
|
|
6
|
+
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
7
|
+
timestamp: z.ZodString;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
mutationRef: `Mutation/${string}`;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
}, {
|
|
12
|
+
mutationRef: `Mutation/${string}`;
|
|
13
|
+
timestamp: string;
|
|
14
|
+
}>;
|
|
15
|
+
updated: z.ZodObject<{
|
|
16
|
+
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
17
|
+
timestamp: z.ZodString;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
mutationRef: `Mutation/${string}`;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
}, {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
}>;
|
|
25
|
+
data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
26
|
+
parents: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
27
|
+
ancestors: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
28
|
+
}, z.ZodRawShape>, "strict", z.ZodTypeAny, {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
}, {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
}>;
|
|
33
|
+
export type BlockRow = z.infer<typeof BlockRowSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BlockTitleRefSchema: import("zod").ZodType<`BlockTitle/${string}`, import("zod").ZodTypeDef, `BlockTitle/${string}`>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BlockTitleSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
ref: z.ZodType<never, z.ZodTypeDef, never>;
|
|
4
|
+
entity: z.ZodString;
|
|
5
|
+
created: z.ZodObject<{
|
|
6
|
+
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
7
|
+
timestamp: z.ZodString;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
mutationRef: `Mutation/${string}`;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
}, {
|
|
12
|
+
mutationRef: `Mutation/${string}`;
|
|
13
|
+
timestamp: string;
|
|
14
|
+
}>;
|
|
15
|
+
updated: z.ZodObject<{
|
|
16
|
+
mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
17
|
+
timestamp: z.ZodString;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
mutationRef: `Mutation/${string}`;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
}, {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
}>;
|
|
25
|
+
data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
26
|
+
parents: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
27
|
+
ancestors: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
28
|
+
}, z.ZodRawShape>, "strict", z.ZodTypeAny, {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
}, {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
}>;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.ZodAny, "many">;
|
|
8
|
+
debounceCount: z.ZodNumber;
|
|
9
|
+
identityRef: z.ZodString;
|
|
10
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, {
|
|
12
|
+
operation: z.ZodObject<{
|
|
13
|
+
name: z.ZodLiteral<"createBlockImage">;
|
|
14
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
name: "createBlockImage";
|
|
17
|
+
version: number;
|
|
18
|
+
}, {
|
|
19
|
+
name: "createBlockImage";
|
|
20
|
+
version?: number | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
23
|
+
payload: z.ZodObject<{
|
|
24
|
+
postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
postRef: `Post/${string}`;
|
|
27
|
+
}, {
|
|
28
|
+
postRef: `Post/${string}`;
|
|
29
|
+
}>;
|
|
30
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
31
|
+
}>, "strict", z.ZodTypeAny, {
|
|
32
|
+
ref: `Mutation/${string}`;
|
|
33
|
+
timestamp: string;
|
|
34
|
+
changeSetRef: null;
|
|
35
|
+
payload: {
|
|
36
|
+
postRef: `Post/${string}`;
|
|
37
|
+
};
|
|
38
|
+
log: any[];
|
|
39
|
+
debounceCount: number;
|
|
40
|
+
identityRef: string;
|
|
41
|
+
operation: {
|
|
42
|
+
name: "createBlockImage";
|
|
43
|
+
version: number;
|
|
44
|
+
};
|
|
45
|
+
sessionRef?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
ref: `Mutation/${string}`;
|
|
48
|
+
timestamp: string;
|
|
49
|
+
changeSetRef: null;
|
|
50
|
+
payload: {
|
|
51
|
+
postRef: `Post/${string}`;
|
|
52
|
+
};
|
|
53
|
+
log: any[];
|
|
54
|
+
debounceCount: number;
|
|
55
|
+
identityRef: string;
|
|
56
|
+
operation: {
|
|
57
|
+
name: "createBlockImage";
|
|
58
|
+
version?: number | undefined;
|
|
59
|
+
};
|
|
60
|
+
sessionRef?: string | undefined;
|
|
61
|
+
}>;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.ZodAny, "many">;
|
|
8
|
+
debounceCount: z.ZodNumber;
|
|
9
|
+
identityRef: z.ZodString;
|
|
10
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, {
|
|
12
|
+
operation: z.ZodObject<{
|
|
13
|
+
name: z.ZodLiteral<"createBlockParagraph">;
|
|
14
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
name: "createBlockParagraph";
|
|
17
|
+
version: number;
|
|
18
|
+
}, {
|
|
19
|
+
name: "createBlockParagraph";
|
|
20
|
+
version?: number | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
23
|
+
payload: z.ZodObject<{
|
|
24
|
+
parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
27
|
+
}, {
|
|
28
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
29
|
+
}>;
|
|
30
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
31
|
+
}>, "strict", z.ZodTypeAny, {
|
|
32
|
+
ref: `Mutation/${string}`;
|
|
33
|
+
timestamp: string;
|
|
34
|
+
changeSetRef: null;
|
|
35
|
+
payload: {
|
|
36
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
37
|
+
};
|
|
38
|
+
log: any[];
|
|
39
|
+
debounceCount: number;
|
|
40
|
+
identityRef: string;
|
|
41
|
+
operation: {
|
|
42
|
+
name: "createBlockParagraph";
|
|
43
|
+
version: number;
|
|
44
|
+
};
|
|
45
|
+
sessionRef?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
ref: `Mutation/${string}`;
|
|
48
|
+
timestamp: string;
|
|
49
|
+
changeSetRef: null;
|
|
50
|
+
payload: {
|
|
51
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
52
|
+
};
|
|
53
|
+
log: any[];
|
|
54
|
+
debounceCount: number;
|
|
55
|
+
identityRef: string;
|
|
56
|
+
operation: {
|
|
57
|
+
name: "createBlockParagraph";
|
|
58
|
+
version?: number | undefined;
|
|
59
|
+
};
|
|
60
|
+
sessionRef?: string | undefined;
|
|
61
|
+
}>;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.ZodAny, "many">;
|
|
8
|
+
debounceCount: z.ZodNumber;
|
|
9
|
+
identityRef: z.ZodString;
|
|
10
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, {
|
|
12
|
+
operation: z.ZodObject<{
|
|
13
|
+
name: z.ZodLiteral<"createBlockRow">;
|
|
14
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
name: "createBlockRow";
|
|
17
|
+
version: number;
|
|
18
|
+
}, {
|
|
19
|
+
name: "createBlockRow";
|
|
20
|
+
version?: number | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
23
|
+
payload: z.ZodObject<{
|
|
24
|
+
parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
27
|
+
}, {
|
|
28
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
29
|
+
}>;
|
|
30
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
31
|
+
}>, "strict", z.ZodTypeAny, {
|
|
32
|
+
ref: `Mutation/${string}`;
|
|
33
|
+
timestamp: string;
|
|
34
|
+
changeSetRef: null;
|
|
35
|
+
payload: {
|
|
36
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
37
|
+
};
|
|
38
|
+
log: any[];
|
|
39
|
+
debounceCount: number;
|
|
40
|
+
identityRef: string;
|
|
41
|
+
operation: {
|
|
42
|
+
name: "createBlockRow";
|
|
43
|
+
version: number;
|
|
44
|
+
};
|
|
45
|
+
sessionRef?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
ref: `Mutation/${string}`;
|
|
48
|
+
timestamp: string;
|
|
49
|
+
changeSetRef: null;
|
|
50
|
+
payload: {
|
|
51
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
52
|
+
};
|
|
53
|
+
log: any[];
|
|
54
|
+
debounceCount: number;
|
|
55
|
+
identityRef: string;
|
|
56
|
+
operation: {
|
|
57
|
+
name: "createBlockRow";
|
|
58
|
+
version?: number | undefined;
|
|
59
|
+
};
|
|
60
|
+
sessionRef?: string | undefined;
|
|
61
|
+
}>;
|