@roc-db/test-utils 0.2.0-pre.10 → 0.2.0-pre.101
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 +1233 -303
- package/dist/types/entities/BlockImageEntity.d.ts +7 -0
- package/dist/types/entities/BlockParagraph.d.ts +7 -0
- package/dist/types/entities/BlockRow.d.ts +7 -0
- package/dist/types/entities/Draft.d.ts +8 -0
- package/dist/types/entities/OrgSettingsEntity.d.ts +10 -0
- package/dist/types/entities/PostEntity.d.ts +12 -0
- package/dist/types/entities/PostVersion.d.ts +8 -0
- package/dist/types/entities/UserEntity.d.ts +5 -0
- package/dist/types/entities/index.d.ts +41 -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 +5 -15
- package/dist/types/operations/createBlockParagraph.d.ts +5 -15
- package/dist/types/operations/createBlockRow.d.ts +4 -15
- package/dist/types/operations/createBlockRowReadingRoot.d.ts +13 -0
- package/dist/types/operations/createBlockTitle.d.ts +4 -15
- package/dist/types/operations/createDraft.d.ts +4 -15
- package/dist/types/operations/createOrgSettings.d.ts +6 -0
- package/dist/types/operations/createPost.d.ts +6 -19
- package/dist/types/operations/createUnknownRef.d.ts +2 -0
- package/dist/types/operations/createUser.d.ts +4 -0
- package/dist/types/operations/crudBySlug.d.ts +5 -0
- package/dist/types/operations/deleteBlocks.d.ts +2 -0
- package/dist/types/operations/deleteDraft.d.ts +1 -0
- package/dist/types/operations/deleteOrgSettings.d.ts +2 -0
- package/dist/types/operations/deletePost.d.ts +1 -9
- package/dist/types/operations/duplicateDraft.d.ts +10 -0
- package/dist/types/operations/index.d.ts +1 -157
- package/dist/types/operations/moveBlocks.d.ts +5 -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/readOrgSettings.d.ts +2 -0
- package/dist/types/operations/readPostBySlug.d.ts +1 -0
- package/dist/types/operations/testTransactionalEdits.d.ts +6 -0
- package/dist/types/operations/updateBlockParagraph.d.ts +5 -15
- package/dist/types/operations/updateOrgSettingsName.d.ts +4 -0
- package/dist/types/operations/updatePost.d.ts +7 -21
- package/dist/types/operations/updatePostDescription.d.ts +5 -0
- package/dist/types/operations/updatePostSlug.d.ts +5 -0
- package/dist/types/operations/updatePostTags.d.ts +5 -0
- package/dist/types/operations/updatePostTitle.d.ts +5 -17
- package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockImageSchema.d.ts +20 -31
- package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockParagraphSchema.d.ts +20 -31
- package/dist/types/schemas/BlockRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockRowSchema.d.ts +21 -31
- package/dist/types/schemas/BlockTitleSchema.d.ts +20 -31
- package/dist/types/schemas/CreatePostMutationSchema.d.ts +14 -44
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +13 -35
- package/dist/types/schemas/DraftRefSchema.d.ts +1 -1
- package/dist/types/schemas/DraftSchema.d.ts +18 -31
- package/dist/types/schemas/PostRefSchema.d.ts +1 -1
- package/dist/types/schemas/PostSchema.d.ts +25 -31
- package/dist/types/schemas/PostVersionRefSchema.d.ts +1 -0
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +16 -50
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +14 -40
- package/dist/types/schemas/UserRefSchema.d.ts +1 -1
- package/dist/types/schemas/index.d.ts +0 -31
- package/dist/types/setup/index.d.ts +11 -0
- package/dist/types/testAdapterImplementation.d.ts +1 -1
- package/package.json +8 -4
- package/dist/types/operations/deleteBlock.d.ts +0 -11
- package/dist/types/schemas/BlockTitleRefSchema.d.ts +0 -1
- 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,45 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const UpdatePostTitleMutationSchema: z.ZodObject<
|
|
3
|
-
ref: z.
|
|
2
|
+
export declare const UpdatePostTitleMutationSchema: z.ZodObject<{
|
|
3
|
+
ref: z.ZodTemplateLiteral<`Mutation/${number}`>;
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
|
-
changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
6
|
-
payload: z.ZodAny;
|
|
7
|
-
log: z.ZodArray<z.ZodTuple<[z.ZodType<never, z.ZodTypeDef, never>, z.ZodString, z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>], null>, "many">;
|
|
8
5
|
debounceCount: z.ZodNumber;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
identityRef: z.ZodString;
|
|
7
|
+
sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
operation: z.ZodObject<{
|
|
10
|
+
name: z.ZodLiteral<"updatePostTitle">;
|
|
11
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
changeSetRef: z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodString]> | z.ZodTemplateLiteral<never> | z.ZodNullable<z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodString]>> | z.ZodNullable<z.ZodTemplateLiteral<never>>;
|
|
12
14
|
payload: z.ZodObject<{
|
|
13
|
-
ref: z.
|
|
15
|
+
ref: z.ZodTemplateLiteral<`Post/${number}`>;
|
|
14
16
|
title: z.ZodString;
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, {
|
|
19
|
-
ref: `Post/${string}`;
|
|
20
|
-
title: 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: `Post/${string}`;
|
|
29
|
-
title: string;
|
|
30
|
-
};
|
|
31
|
-
log: [never, string, null][];
|
|
32
|
-
debounceCount: number;
|
|
33
|
-
name: "updatePostTitle";
|
|
34
|
-
}, {
|
|
35
|
-
ref: `Mutation/${string}`;
|
|
36
|
-
timestamp: string;
|
|
37
|
-
changeSetRef: null;
|
|
38
|
-
payload: {
|
|
39
|
-
ref: `Post/${string}`;
|
|
40
|
-
title: string;
|
|
41
|
-
};
|
|
42
|
-
log: [never, string, null][];
|
|
43
|
-
debounceCount: number;
|
|
44
|
-
name: "updatePostTitle";
|
|
45
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
log: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
19
|
+
}, z.core.$strict>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const UserRefSchema: import("zod").
|
|
1
|
+
export declare const UserRefSchema: import("zod").ZodTemplateLiteral<`User/${number}`>;
|
|
@@ -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";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ZodSchema } from "zod";
|
|
2
|
+
interface CustomMatchers {
|
|
3
|
+
toMatchZodSchema(schema: ZodSchema): any;
|
|
4
|
+
}
|
|
5
|
+
declare module "bun:test" {
|
|
6
|
+
interface Matchers<T> extends CustomMatchers {
|
|
7
|
+
}
|
|
8
|
+
interface AsymmetricMatchers extends CustomMatchers {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -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.101",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
],
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"roc-db": "0.2.0-pre.
|
|
21
|
-
"zod": "
|
|
20
|
+
"roc-db": ">=0.2.0-pre.98 <1.0.0",
|
|
21
|
+
"zod": ">=4.0.0"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [],
|
|
24
24
|
"author": "Eigil Sagafos",
|
|
@@ -26,5 +26,9 @@
|
|
|
26
26
|
"type": "git",
|
|
27
27
|
"url": "git+https://github.com/eigilsagafos/roc-db.git"
|
|
28
28
|
},
|
|
29
|
-
"license": "MIT"
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
|
+
}
|
|
30
34
|
}
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export declare const BlockTitleRefSchema: import("zod").ZodType<`BlockTitle/${string}`, import("zod").ZodTypeDef, `BlockTitle/${string}`>;
|
|
@@ -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
|
-
}>;
|