@roc-db/test-utils 0.2.0-pre.4 → 0.2.0-pre.41
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 +64 -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 +64 -0
- package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +64 -0
- package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +64 -0
- package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +64 -0
- package/dist/types/schemas/CreateDraftMutationSchema.d.ts +64 -0
- package/dist/types/schemas/CreatePostMutationSchema.d.ts +74 -0
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +64 -0
- package/dist/types/schemas/DeleteBlocksMutationSchema.d.ts +54 -0
- package/dist/types/schemas/DeletePostMutationSchema.d.ts +53 -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 +69 -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 +74 -0
- package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +69 -0
- package/dist/types/schemas/UpdatePostDescriptionMutationSchema.d.ts +69 -0
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +79 -0
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +69 -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,64 @@
|
|
|
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.ZodAny, "many">;
|
|
8
|
+
debounceCount: z.ZodNumber;
|
|
9
|
+
identityRef: z.ZodString;
|
|
10
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
11
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, {
|
|
13
|
+
operation: z.ZodObject<{
|
|
14
|
+
name: z.ZodLiteral<"createBlockTitle">;
|
|
15
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: "createBlockTitle";
|
|
18
|
+
version: number;
|
|
19
|
+
}, {
|
|
20
|
+
name: "createBlockTitle";
|
|
21
|
+
version?: number | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
+
payload: z.ZodObject<{
|
|
25
|
+
parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
|
|
26
|
+
}, "strict", z.ZodTypeAny, {
|
|
27
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
28
|
+
}, {
|
|
29
|
+
parentRef: `Post/${string}` | `BlockRow/${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
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
38
|
+
};
|
|
39
|
+
log: any[];
|
|
40
|
+
debounceCount: number;
|
|
41
|
+
identityRef: string;
|
|
42
|
+
operation: {
|
|
43
|
+
name: "createBlockTitle";
|
|
44
|
+
version: number;
|
|
45
|
+
};
|
|
46
|
+
sessionRef?: string | undefined;
|
|
47
|
+
persistedAt?: string | null | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
ref: `Mutation/${string}`;
|
|
50
|
+
timestamp: string;
|
|
51
|
+
changeSetRef: null;
|
|
52
|
+
payload: {
|
|
53
|
+
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
54
|
+
};
|
|
55
|
+
log: any[];
|
|
56
|
+
debounceCount: number;
|
|
57
|
+
identityRef: string;
|
|
58
|
+
operation: {
|
|
59
|
+
name: "createBlockTitle";
|
|
60
|
+
version?: number | undefined;
|
|
61
|
+
};
|
|
62
|
+
sessionRef?: string | undefined;
|
|
63
|
+
persistedAt?: string | null | undefined;
|
|
64
|
+
}>;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.ZodAny, "many">;
|
|
8
|
+
debounceCount: z.ZodNumber;
|
|
9
|
+
identityRef: z.ZodString;
|
|
10
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
11
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, {
|
|
13
|
+
operation: z.ZodObject<{
|
|
14
|
+
name: z.ZodLiteral<"createDraft">;
|
|
15
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: "createDraft";
|
|
18
|
+
version: number;
|
|
19
|
+
}, {
|
|
20
|
+
name: "createDraft";
|
|
21
|
+
version?: number | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
+
payload: z.ZodObject<{
|
|
25
|
+
postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
26
|
+
}, "strict", z.ZodTypeAny, {
|
|
27
|
+
postRef: `Post/${string}`;
|
|
28
|
+
}, {
|
|
29
|
+
postRef: `Post/${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
|
+
postRef: `Post/${string}`;
|
|
38
|
+
};
|
|
39
|
+
log: any[];
|
|
40
|
+
debounceCount: number;
|
|
41
|
+
identityRef: string;
|
|
42
|
+
operation: {
|
|
43
|
+
name: "createDraft";
|
|
44
|
+
version: number;
|
|
45
|
+
};
|
|
46
|
+
sessionRef?: string | undefined;
|
|
47
|
+
persistedAt?: string | null | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
ref: `Mutation/${string}`;
|
|
50
|
+
timestamp: string;
|
|
51
|
+
changeSetRef: null;
|
|
52
|
+
payload: {
|
|
53
|
+
postRef: `Post/${string}`;
|
|
54
|
+
};
|
|
55
|
+
log: any[];
|
|
56
|
+
debounceCount: number;
|
|
57
|
+
identityRef: string;
|
|
58
|
+
operation: {
|
|
59
|
+
name: "createDraft";
|
|
60
|
+
version?: number | undefined;
|
|
61
|
+
};
|
|
62
|
+
sessionRef?: string | undefined;
|
|
63
|
+
persistedAt?: string | null | undefined;
|
|
64
|
+
}>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreatePostMutationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
ref: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
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
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, {
|
|
13
|
+
operation: z.ZodObject<{
|
|
14
|
+
name: z.ZodLiteral<"createPost">;
|
|
15
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: "createPost";
|
|
18
|
+
version: number;
|
|
19
|
+
}, {
|
|
20
|
+
name: "createPost";
|
|
21
|
+
version?: number | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
+
payload: z.ZodObject<{
|
|
25
|
+
title: z.ZodString;
|
|
26
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
27
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
+
}, "strict", z.ZodTypeAny, {
|
|
29
|
+
title: string;
|
|
30
|
+
tags: string[];
|
|
31
|
+
slug?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
title: string;
|
|
34
|
+
tags?: string[] | undefined;
|
|
35
|
+
slug?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
38
|
+
}>, "strict", z.ZodTypeAny, {
|
|
39
|
+
ref: `Mutation/${string}`;
|
|
40
|
+
timestamp: string;
|
|
41
|
+
changeSetRef: null;
|
|
42
|
+
payload: {
|
|
43
|
+
title: string;
|
|
44
|
+
tags: string[];
|
|
45
|
+
slug?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
log: any[];
|
|
48
|
+
debounceCount: number;
|
|
49
|
+
identityRef: string;
|
|
50
|
+
operation: {
|
|
51
|
+
name: "createPost";
|
|
52
|
+
version: number;
|
|
53
|
+
};
|
|
54
|
+
sessionRef?: string | 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 | undefined;
|
|
73
|
+
persistedAt?: string | null | undefined;
|
|
74
|
+
}>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreateUserMutationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
ref: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
|
|
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
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, {
|
|
13
|
+
operation: z.ZodObject<{
|
|
14
|
+
name: z.ZodLiteral<"createUser">;
|
|
15
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: "createUser";
|
|
18
|
+
version: number;
|
|
19
|
+
}, {
|
|
20
|
+
name: "createUser";
|
|
21
|
+
version?: number | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
+
payload: z.ZodObject<{
|
|
25
|
+
email: z.ZodString;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
email: string;
|
|
28
|
+
}, {
|
|
29
|
+
email: string;
|
|
30
|
+
}>;
|
|
31
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
32
|
+
}>, "strict", z.ZodTypeAny, {
|
|
33
|
+
ref: `Mutation/${string}`;
|
|
34
|
+
timestamp: string;
|
|
35
|
+
changeSetRef: null;
|
|
36
|
+
payload: {
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
log: any[];
|
|
40
|
+
debounceCount: number;
|
|
41
|
+
identityRef: string;
|
|
42
|
+
operation: {
|
|
43
|
+
name: "createUser";
|
|
44
|
+
version: number;
|
|
45
|
+
};
|
|
46
|
+
sessionRef?: string | 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 | undefined;
|
|
63
|
+
persistedAt?: string | null | undefined;
|
|
64
|
+
}>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DeleteBlocksMutationSchema: 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
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, {
|
|
13
|
+
operation: z.ZodObject<{
|
|
14
|
+
name: z.ZodLiteral<"deleteBlocks">;
|
|
15
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: "deleteBlocks";
|
|
18
|
+
version: number;
|
|
19
|
+
}, {
|
|
20
|
+
name: "deleteBlocks";
|
|
21
|
+
version?: number | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
+
payload: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockImage/${string}`, z.ZodTypeDef, `BlockImage/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
|
|
25
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
26
|
+
}>, "strict", z.ZodTypeAny, {
|
|
27
|
+
ref: `Mutation/${string}`;
|
|
28
|
+
timestamp: string;
|
|
29
|
+
changeSetRef: null;
|
|
30
|
+
payload: (`BlockImage/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
31
|
+
log: any[];
|
|
32
|
+
debounceCount: number;
|
|
33
|
+
identityRef: string;
|
|
34
|
+
operation: {
|
|
35
|
+
name: "deleteBlocks";
|
|
36
|
+
version: number;
|
|
37
|
+
};
|
|
38
|
+
sessionRef?: string | undefined;
|
|
39
|
+
persistedAt?: string | null | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
ref: `Mutation/${string}`;
|
|
42
|
+
timestamp: string;
|
|
43
|
+
changeSetRef: null;
|
|
44
|
+
payload: (`BlockImage/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
45
|
+
log: any[];
|
|
46
|
+
debounceCount: number;
|
|
47
|
+
identityRef: string;
|
|
48
|
+
operation: {
|
|
49
|
+
name: "deleteBlocks";
|
|
50
|
+
version?: number | undefined;
|
|
51
|
+
};
|
|
52
|
+
sessionRef?: string | undefined;
|
|
53
|
+
persistedAt?: string | null | undefined;
|
|
54
|
+
}>;
|
|
@@ -0,0 +1,53 @@
|
|
|
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").ZodAny, "many">;
|
|
7
|
+
debounceCount: import("zod").ZodNumber;
|
|
8
|
+
identityRef: import("zod").ZodString;
|
|
9
|
+
sessionRef: import("zod").ZodOptional<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<"deletePost">;
|
|
14
|
+
version: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
15
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
16
|
+
name: "deletePost";
|
|
17
|
+
version: number;
|
|
18
|
+
}, {
|
|
19
|
+
name: "deletePost";
|
|
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<`Post/${string}`, import("zod").ZodTypeDef, `Post/${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: `Post/${string}`;
|
|
30
|
+
log: any[];
|
|
31
|
+
debounceCount: number;
|
|
32
|
+
identityRef: string;
|
|
33
|
+
operation: {
|
|
34
|
+
name: "deletePost";
|
|
35
|
+
version: number;
|
|
36
|
+
};
|
|
37
|
+
sessionRef?: string | undefined;
|
|
38
|
+
persistedAt?: string | null | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
ref: `Mutation/${string}`;
|
|
41
|
+
timestamp: string;
|
|
42
|
+
changeSetRef: null;
|
|
43
|
+
payload: `Post/${string}`;
|
|
44
|
+
log: any[];
|
|
45
|
+
debounceCount: number;
|
|
46
|
+
identityRef: string;
|
|
47
|
+
operation: {
|
|
48
|
+
name: "deletePost";
|
|
49
|
+
version?: number | undefined;
|
|
50
|
+
};
|
|
51
|
+
sessionRef?: string | undefined;
|
|
52
|
+
persistedAt?: string | null | undefined;
|
|
53
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DraftRefSchema: import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DraftSchema: 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,69 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const MoveBlocksMutationSchema: 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
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, {
|
|
13
|
+
operation: z.ZodObject<{
|
|
14
|
+
name: z.ZodLiteral<"moveBlocks">;
|
|
15
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: "moveBlocks";
|
|
18
|
+
version: number;
|
|
19
|
+
}, {
|
|
20
|
+
name: "moveBlocks";
|
|
21
|
+
version?: number | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
+
payload: z.ZodObject<{
|
|
25
|
+
refs: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
|
|
26
|
+
targetPosition: z.ZodNumber;
|
|
27
|
+
}, "strict", z.ZodTypeAny, {
|
|
28
|
+
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
29
|
+
targetPosition: number;
|
|
30
|
+
}, {
|
|
31
|
+
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
32
|
+
targetPosition: number;
|
|
33
|
+
}>;
|
|
34
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
35
|
+
}>, "strict", z.ZodTypeAny, {
|
|
36
|
+
ref: `Mutation/${string}`;
|
|
37
|
+
timestamp: string;
|
|
38
|
+
changeSetRef: null;
|
|
39
|
+
payload: {
|
|
40
|
+
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
41
|
+
targetPosition: number;
|
|
42
|
+
};
|
|
43
|
+
log: any[];
|
|
44
|
+
debounceCount: number;
|
|
45
|
+
identityRef: string;
|
|
46
|
+
operation: {
|
|
47
|
+
name: "moveBlocks";
|
|
48
|
+
version: number;
|
|
49
|
+
};
|
|
50
|
+
sessionRef?: string | undefined;
|
|
51
|
+
persistedAt?: string | null | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
ref: `Mutation/${string}`;
|
|
54
|
+
timestamp: string;
|
|
55
|
+
changeSetRef: null;
|
|
56
|
+
payload: {
|
|
57
|
+
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
58
|
+
targetPosition: number;
|
|
59
|
+
};
|
|
60
|
+
log: any[];
|
|
61
|
+
debounceCount: number;
|
|
62
|
+
identityRef: string;
|
|
63
|
+
operation: {
|
|
64
|
+
name: "moveBlocks";
|
|
65
|
+
version?: number | undefined;
|
|
66
|
+
};
|
|
67
|
+
sessionRef?: string | undefined;
|
|
68
|
+
persistedAt?: string | null | undefined;
|
|
69
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PostRefSchema: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PostSchema: 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 Post = z.infer<typeof PostSchema>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TestTransactionalEditsMutationSchema: 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
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, {
|
|
13
|
+
operation: z.ZodObject<{
|
|
14
|
+
name: z.ZodLiteral<"testTransactionalEdits">;
|
|
15
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: "testTransactionalEdits";
|
|
18
|
+
version: number;
|
|
19
|
+
}, {
|
|
20
|
+
name: "testTransactionalEdits";
|
|
21
|
+
version?: number | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
+
payload: z.ZodObject<{
|
|
25
|
+
name: z.ZodOptional<z.ZodString>;
|
|
26
|
+
post1ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
|
|
27
|
+
post2ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
|
|
28
|
+
}, "strict", z.ZodTypeAny, {
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
post1ref?: `Post/${string}` | undefined;
|
|
31
|
+
post2ref?: `Post/${string}` | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
post1ref?: `Post/${string}` | undefined;
|
|
35
|
+
post2ref?: `Post/${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
|
+
name?: string | undefined;
|
|
44
|
+
post1ref?: `Post/${string}` | undefined;
|
|
45
|
+
post2ref?: `Post/${string}` | undefined;
|
|
46
|
+
};
|
|
47
|
+
log: any[];
|
|
48
|
+
debounceCount: number;
|
|
49
|
+
identityRef: string;
|
|
50
|
+
operation: {
|
|
51
|
+
name: "testTransactionalEdits";
|
|
52
|
+
version: number;
|
|
53
|
+
};
|
|
54
|
+
sessionRef?: string | undefined;
|
|
55
|
+
persistedAt?: string | null | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
ref: `Mutation/${string}`;
|
|
58
|
+
timestamp: string;
|
|
59
|
+
changeSetRef: null;
|
|
60
|
+
payload: {
|
|
61
|
+
name?: string | undefined;
|
|
62
|
+
post1ref?: `Post/${string}` | undefined;
|
|
63
|
+
post2ref?: `Post/${string}` | undefined;
|
|
64
|
+
};
|
|
65
|
+
log: any[];
|
|
66
|
+
debounceCount: number;
|
|
67
|
+
identityRef: string;
|
|
68
|
+
operation: {
|
|
69
|
+
name: "testTransactionalEdits";
|
|
70
|
+
version?: number | undefined;
|
|
71
|
+
};
|
|
72
|
+
sessionRef?: string | undefined;
|
|
73
|
+
persistedAt?: string | null | undefined;
|
|
74
|
+
}>;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.ZodAny, "many">;
|
|
8
|
+
debounceCount: z.ZodNumber;
|
|
9
|
+
identityRef: z.ZodString;
|
|
10
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
11
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, {
|
|
13
|
+
operation: z.ZodObject<{
|
|
14
|
+
name: z.ZodLiteral<"updateBlockParagraph">;
|
|
15
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: "updateBlockParagraph";
|
|
18
|
+
version: number;
|
|
19
|
+
}, {
|
|
20
|
+
name: "updateBlockParagraph";
|
|
21
|
+
version?: number | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
+
payload: z.ZodObject<{
|
|
25
|
+
ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
|
|
26
|
+
content: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
ref: `BlockParagraph/${string}`;
|
|
29
|
+
content: string;
|
|
30
|
+
}, {
|
|
31
|
+
ref: `BlockParagraph/${string}`;
|
|
32
|
+
content: string;
|
|
33
|
+
}>;
|
|
34
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
35
|
+
}>, "strict", z.ZodTypeAny, {
|
|
36
|
+
ref: `Mutation/${string}`;
|
|
37
|
+
timestamp: string;
|
|
38
|
+
changeSetRef: null;
|
|
39
|
+
payload: {
|
|
40
|
+
ref: `BlockParagraph/${string}`;
|
|
41
|
+
content: string;
|
|
42
|
+
};
|
|
43
|
+
log: any[];
|
|
44
|
+
debounceCount: number;
|
|
45
|
+
identityRef: string;
|
|
46
|
+
operation: {
|
|
47
|
+
name: "updateBlockParagraph";
|
|
48
|
+
version: number;
|
|
49
|
+
};
|
|
50
|
+
sessionRef?: string | undefined;
|
|
51
|
+
persistedAt?: string | null | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
ref: `Mutation/${string}`;
|
|
54
|
+
timestamp: string;
|
|
55
|
+
changeSetRef: null;
|
|
56
|
+
payload: {
|
|
57
|
+
ref: `BlockParagraph/${string}`;
|
|
58
|
+
content: string;
|
|
59
|
+
};
|
|
60
|
+
log: any[];
|
|
61
|
+
debounceCount: number;
|
|
62
|
+
identityRef: string;
|
|
63
|
+
operation: {
|
|
64
|
+
name: "updateBlockParagraph";
|
|
65
|
+
version?: number | undefined;
|
|
66
|
+
};
|
|
67
|
+
sessionRef?: string | undefined;
|
|
68
|
+
persistedAt?: string | null | undefined;
|
|
69
|
+
}>;
|