@roc-db/test-utils 0.2.0-pre.75 → 0.2.0-pre.77
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/types/entities/BlockImageEntity.d.ts +1 -1
- package/dist/types/entities/BlockRow.d.ts +1 -1
- package/dist/types/entities/Draft.d.ts +1 -1
- package/dist/types/entities/PostEntity.d.ts +1 -1
- package/dist/types/entities/PostVersion.d.ts +1 -1
- package/dist/types/entities/index.d.ts +5 -5
- package/dist/types/operations/createBlockImage.d.ts +1 -1
- package/dist/types/operations/createBlockParagraph.d.ts +1 -1
- package/dist/types/operations/createBlockRow.d.ts +1 -1
- package/dist/types/operations/createBlockTitle.d.ts +1 -1
- package/dist/types/operations/createDraft.d.ts +1 -1
- package/dist/types/operations/deleteBlocks.d.ts +1 -1
- package/dist/types/operations/deletePost.d.ts +1 -1
- package/dist/types/operations/moveBlocks.d.ts +1 -1
- package/dist/types/operations/testTransactionalEdits.d.ts +2 -2
- package/dist/types/operations/updateBlockParagraph.d.ts +1 -1
- package/dist/types/operations/updatePost.d.ts +2 -2
- package/dist/types/operations/updatePostDescription.d.ts +1 -1
- package/dist/types/operations/updatePostSlug.d.ts +1 -1
- package/dist/types/operations/updatePostTags.d.ts +1 -1
- package/dist/types/operations/updatePostTitle.d.ts +1 -1
- package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockImageSchema.d.ts +4 -4
- package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockParagraphSchema.d.ts +4 -4
- 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 +6 -6
- package/dist/types/schemas/BlockTitleRefSchema.d.ts +1 -1
- package/dist/types/schemas/BlockTitleSchema.d.ts +4 -4
- package/dist/types/schemas/CreatePostMutationSchema.d.ts +2 -2
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +2 -2
- package/dist/types/schemas/DraftSchema.d.ts +4 -4
- package/dist/types/schemas/PostRefSchema.d.ts +1 -1
- package/dist/types/schemas/PostSchema.d.ts +4 -4
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +4 -4
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +3 -3
- package/dist/types/schemas/UserRefSchema.d.ts +1 -1
- package/package.json +2 -2
|
@@ -3,5 +3,5 @@ import { z } from "zod";
|
|
|
3
3
|
export declare const BlockImageEntity: Entity<"BlockImage", z.ZodObject<{
|
|
4
4
|
url: z.ZodString;
|
|
5
5
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
6
|
-
parent: z.ZodTemplateLiteral
|
|
6
|
+
parent: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
7
7
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Entity } from "roc-db";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export declare const BlockRow: Entity<"BlockRow", z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
4
|
-
blocks: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral
|
|
4
|
+
blocks: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodTemplateLiteral<`${string}/${number}`>]>>;
|
|
5
5
|
}, z.core.$strip>, z.ZodObject<{
|
|
6
6
|
parent: z.ZodUnion<readonly z.core.SomeType[]>;
|
|
7
7
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
@@ -3,5 +3,5 @@ import { z } from "zod";
|
|
|
3
3
|
export declare const Draft: Entity<"Draft", z.ZodObject<{
|
|
4
4
|
appliedAt: z.ZodOptional<z.ZodString>;
|
|
5
5
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
6
|
-
post: z.ZodTemplateLiteral
|
|
6
|
+
post: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
7
7
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
@@ -8,5 +8,5 @@ export declare const PostEntity: Entity<"Post", z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>, z.ZodObject<{
|
|
9
9
|
blocks: z.ZodArray<z.ZodString>;
|
|
10
10
|
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
-
author: z.ZodOptional<z.ZodTemplateLiteral
|
|
11
|
+
author: z.ZodOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
12
12
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
@@ -4,5 +4,5 @@ export declare const PostVersion: Entity<"PostVersion", z.ZodObject<{
|
|
|
4
4
|
version: z.ZodNumber;
|
|
5
5
|
snapshot: z.ZodArray<z.ZodAny>;
|
|
6
6
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
7
|
-
post: z.ZodTemplateLiteral
|
|
7
|
+
post: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
8
8
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const entities: (import("roc-db").Entity<"Draft", import("zod").ZodObject<{
|
|
2
2
|
appliedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3
3
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
4
|
-
post: import("zod").ZodTemplateLiteral
|
|
4
|
+
post: import("zod").ZodTemplateLiteral<`${string}/${number}`>;
|
|
5
5
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"BlockImage", import("zod").ZodObject<{
|
|
6
6
|
url: import("zod").ZodString;
|
|
7
7
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8
|
-
parent: import("zod").ZodTemplateLiteral
|
|
8
|
+
parent: import("zod").ZodTemplateLiteral<`${string}/${number}`>;
|
|
9
9
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"Post", import("zod").ZodObject<{
|
|
10
10
|
title: import("zod").ZodString;
|
|
11
11
|
text: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -14,20 +14,20 @@ export declare const entities: (import("roc-db").Entity<"Draft", import("zod").Z
|
|
|
14
14
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
15
15
|
blocks: import("zod").ZodArray<import("zod").ZodString>;
|
|
16
16
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
17
|
-
author: import("zod").ZodOptional<import("zod").ZodTemplateLiteral
|
|
17
|
+
author: import("zod").ZodOptional<import("zod").ZodTemplateLiteral<`${string}/${number}`>>;
|
|
18
18
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"BlockParagraph", import("zod").ZodObject<{
|
|
19
19
|
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
20
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
21
21
|
parent: import("zod").ZodUnion<readonly import("zod/v4/core").SomeType[]>;
|
|
22
22
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"BlockRow", import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
23
|
-
blocks: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodTemplateLiteral
|
|
23
|
+
blocks: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodTemplateLiteral<`${string}/${number}`>, import("zod").ZodTemplateLiteral<`${string}/${number}`>]>>;
|
|
24
24
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
25
25
|
parent: import("zod").ZodUnion<readonly import("zod/v4/core").SomeType[]>;
|
|
26
26
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"PostVersion", import("zod").ZodObject<{
|
|
27
27
|
version: import("zod").ZodNumber;
|
|
28
28
|
snapshot: import("zod").ZodArray<import("zod").ZodAny>;
|
|
29
29
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
30
|
-
post: import("zod").ZodTemplateLiteral
|
|
30
|
+
post: import("zod").ZodTemplateLiteral<`${string}/${number}`>;
|
|
31
31
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"User", import("zod").ZodObject<{
|
|
32
32
|
email: import("zod").ZodString;
|
|
33
33
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>>)[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const createBlockImage: import("roc-db").WriteOperation<"createBlockImage", z.ZodObject<{
|
|
3
|
-
parentRef: z.ZodTemplateLiteral
|
|
3
|
+
parentRef: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
4
4
|
url: z.ZodString;
|
|
5
5
|
}, z.core.$strict>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const createBlockParagrah: import("roc-db").WriteOperation<"createBlockParagraph", z.ZodObject<{
|
|
3
|
-
parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral
|
|
3
|
+
parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodTemplateLiteral<`${string}/${number}`>]>;
|
|
4
4
|
}, z.core.$strict>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const createBlockRow: import("roc-db").WriteOperation<"createBlockRow", z.ZodObject<{
|
|
3
|
-
parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral
|
|
3
|
+
parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodTemplateLiteral<`${string}/${number}`>]>;
|
|
4
4
|
}, z.core.$strict>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const createBlockTitle: import("roc-db").WriteOperation<"createBlockTitle", z.ZodObject<{
|
|
3
|
-
parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral
|
|
3
|
+
parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodTemplateLiteral<`${string}/${number}`>]>;
|
|
4
4
|
}, z.core.$strict>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const deleteBlocks: import("roc-db").WriteOperation<"deleteBlocks", z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral
|
|
2
|
+
export declare const deleteBlocks: import("roc-db").WriteOperation<"deleteBlocks", z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodTemplateLiteral<`${string}/${number}`>]>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const deletePost: import("roc-db").WriteOperation<"deletePost", import("zod").ZodTemplateLiteral
|
|
1
|
+
export declare const deletePost: import("roc-db").WriteOperation<"deletePost", import("zod").ZodTemplateLiteral<`${string}/${number}`>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const moveBlocks: import("roc-db").WriteOperation<"moveBlocks", z.ZodObject<{
|
|
3
|
-
refs: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral
|
|
3
|
+
refs: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodTemplateLiteral<`${string}/${number}`>]>>;
|
|
4
4
|
targetPosition: z.ZodNumber;
|
|
5
5
|
}, z.core.$strict>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const testTransactionalEdits: import("roc-db").WriteOperation<"testTransactionalEdits", z.ZodObject<{
|
|
3
3
|
name: z.ZodOptional<z.ZodString>;
|
|
4
|
-
post1ref: z.ZodOptional<z.ZodTemplateLiteral
|
|
5
|
-
post2ref: z.ZodOptional<z.ZodTemplateLiteral
|
|
4
|
+
post1ref: z.ZodOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
5
|
+
post2ref: z.ZodOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
6
6
|
}, z.core.$strict>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const updateBlockParagraph: import("roc-db").WriteOperation<"updateBlockParagraph", z.ZodObject<{
|
|
3
|
-
ref: z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
4
4
|
content: z.ZodString;
|
|
5
5
|
}, z.core.$strip>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const updatePost: import("roc-db").WriteOperation<"updatePost", z.ZodObject<{
|
|
3
|
-
ref: z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
4
4
|
title: z.ZodOptional<z.ZodString>;
|
|
5
5
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6
|
-
authorRef: z.ZodOptional<z.ZodTemplateLiteral
|
|
6
|
+
authorRef: z.ZodOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
7
7
|
}, z.core.$strip>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const updatePostDescription: import("roc-db").WriteOperation<"updatePostDescription", z.ZodObject<{
|
|
3
|
-
ref: z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
4
4
|
description: z.ZodString;
|
|
5
5
|
}, z.core.$strip>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const updatePostTags: import("roc-db").WriteOperation<"updatePostTags", z.ZodObject<{
|
|
3
|
-
ref: z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
4
4
|
tags: z.ZodArray<z.ZodString>;
|
|
5
5
|
}, z.core.$strip>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const updatePostTitle: import("roc-db").WriteOperation<"updatePostTitle", z.ZodObject<{
|
|
3
|
-
ref: z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
4
4
|
title: z.ZodString;
|
|
5
5
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const BlockImageRefSchema: import("zod").ZodTemplateLiteral
|
|
1
|
+
export declare const BlockImageRefSchema: import("zod").ZodTemplateLiteral<`${string}/${number}`>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BlockImageSchema: z.ZodObject<{
|
|
3
|
-
ref: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
4
4
|
entity: z.ZodNonOptional<z.ZodLiteral<"BlockImage">>;
|
|
5
5
|
created: z.ZodNonOptional<z.ZodObject<{
|
|
6
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
6
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
7
7
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
8
8
|
}, z.core.$strict>>;
|
|
9
9
|
updated: z.ZodNonOptional<z.ZodObject<{
|
|
10
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
10
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
11
11
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strict>>;
|
|
13
13
|
data: z.ZodNonOptional<z.ZodObject<{
|
|
@@ -15,7 +15,7 @@ export declare const BlockImageSchema: z.ZodObject<{
|
|
|
15
15
|
}, z.core.$strip>>;
|
|
16
16
|
children: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
17
17
|
parents: z.ZodNonOptional<z.ZodObject<{
|
|
18
|
-
post: z.ZodTemplateLiteral
|
|
18
|
+
post: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
20
|
ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
21
21
|
}, z.core.$strict>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const BlockParagraphRefSchema: import("zod").ZodTemplateLiteral
|
|
1
|
+
export declare const BlockParagraphRefSchema: import("zod").ZodTemplateLiteral<`${string}/${number}`>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BlockParagraphSchema: z.ZodObject<{
|
|
3
|
-
ref: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
4
4
|
entity: z.ZodNonOptional<z.ZodLiteral<"BlockParagraph">>;
|
|
5
5
|
created: z.ZodNonOptional<z.ZodObject<{
|
|
6
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
6
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
7
7
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
8
8
|
}, z.core.$strict>>;
|
|
9
9
|
updated: z.ZodNonOptional<z.ZodObject<{
|
|
10
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
10
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
11
11
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strict>>;
|
|
13
13
|
data: z.ZodNonOptional<z.ZodObject<{
|
|
@@ -15,7 +15,7 @@ export declare const BlockParagraphSchema: z.ZodObject<{
|
|
|
15
15
|
}, z.core.$strip>>;
|
|
16
16
|
children: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
17
17
|
parents: z.ZodNonOptional<z.ZodObject<{
|
|
18
|
-
parent: z.ZodTemplateLiteral
|
|
18
|
+
parent: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
20
|
ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
21
21
|
}, z.core.$strict>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const BlockRefSchema: z.ZodUnion<readonly [z.ZodTemplateLiteral
|
|
2
|
+
export declare const BlockRefSchema: z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodTemplateLiteral<`${string}/${number}`>]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const BlockRowRefSchema: import("zod").ZodTemplateLiteral
|
|
1
|
+
export declare const BlockRowRefSchema: import("zod").ZodTemplateLiteral<`${string}/${number}`>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BlockRowSchema: z.ZodObject<{
|
|
3
|
-
ref: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
4
4
|
entity: z.ZodNonOptional<z.ZodLiteral<"BlockRow">>;
|
|
5
5
|
created: z.ZodNonOptional<z.ZodObject<{
|
|
6
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
6
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
7
7
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
8
8
|
}, z.core.$strict>>;
|
|
9
9
|
updated: z.ZodNonOptional<z.ZodObject<{
|
|
10
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
10
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
11
11
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strict>>;
|
|
13
13
|
data: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
14
14
|
children: z.ZodNonOptional<z.ZodObject<{
|
|
15
|
-
blocks: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral
|
|
15
|
+
blocks: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodTemplateLiteral<`${string}/${number}`>]>>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
17
|
parents: z.ZodNonOptional<z.ZodObject<{
|
|
18
|
-
post: z.ZodTemplateLiteral
|
|
19
|
-
block: z.ZodUnion<readonly [z.ZodTemplateLiteral
|
|
18
|
+
post: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
19
|
+
block: z.ZodUnion<readonly [z.ZodTemplateLiteral<`${string}/${number}`>, z.ZodTemplateLiteral<`${string}/${number}`>]>;
|
|
20
20
|
}, z.core.$strip>>;
|
|
21
21
|
ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
22
22
|
}, z.core.$strict>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const BlockTitleRefSchema: import("zod").ZodTemplateLiteral
|
|
1
|
+
export declare const BlockTitleRefSchema: import("zod").ZodTemplateLiteral<`${string}/${number}`>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BlockTitleSchema: z.ZodObject<{
|
|
3
|
-
ref: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
4
4
|
entity: z.ZodNonOptional<z.ZodLiteral<"BlockTitle">>;
|
|
5
5
|
created: z.ZodNonOptional<z.ZodObject<{
|
|
6
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
6
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
7
7
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
8
8
|
}, z.core.$strict>>;
|
|
9
9
|
updated: z.ZodNonOptional<z.ZodObject<{
|
|
10
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
10
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
11
11
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strict>>;
|
|
13
13
|
data: z.ZodNonOptional<z.ZodObject<{
|
|
@@ -15,7 +15,7 @@ export declare const BlockTitleSchema: z.ZodObject<{
|
|
|
15
15
|
}, z.core.$strip>>;
|
|
16
16
|
children: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
17
17
|
parents: z.ZodNonOptional<z.ZodObject<{
|
|
18
|
-
post: z.ZodTemplateLiteral
|
|
18
|
+
post: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
20
|
ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
21
21
|
}, z.core.$strict>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CreatePostMutationSchema: z.ZodObject<{
|
|
3
|
-
ref: z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
5
|
debounceCount: z.ZodNumber;
|
|
6
6
|
identityRef: z.ZodString;
|
|
@@ -10,7 +10,7 @@ export declare const CreatePostMutationSchema: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodLiteral<"createPost">;
|
|
11
11
|
version: z.ZodDefault<z.ZodNumber>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
changeSetRef: z.ZodTemplateLiteral
|
|
13
|
+
changeSetRef: z.ZodTemplateLiteral<`${string}/${number}`> | z.ZodNullable<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
14
14
|
payload: z.ZodObject<{
|
|
15
15
|
title: z.ZodString;
|
|
16
16
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CreateUserMutationSchema: z.ZodObject<{
|
|
3
|
-
ref: z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
5
|
debounceCount: z.ZodNumber;
|
|
6
6
|
identityRef: z.ZodString;
|
|
@@ -10,7 +10,7 @@ export declare const CreateUserMutationSchema: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodLiteral<"createUser">;
|
|
11
11
|
version: z.ZodDefault<z.ZodNumber>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
changeSetRef: z.ZodTemplateLiteral
|
|
13
|
+
changeSetRef: z.ZodTemplateLiteral<`${string}/${number}`> | z.ZodNullable<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
14
14
|
payload: z.ZodObject<{
|
|
15
15
|
email: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const DraftSchema: z.ZodObject<{
|
|
3
|
-
ref: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
4
4
|
entity: z.ZodNonOptional<z.ZodLiteral<"Draft">>;
|
|
5
5
|
created: z.ZodNonOptional<z.ZodObject<{
|
|
6
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
6
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
7
7
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
8
8
|
}, z.core.$strict>>;
|
|
9
9
|
updated: z.ZodNonOptional<z.ZodObject<{
|
|
10
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
10
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
11
11
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strict>>;
|
|
13
13
|
data: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
14
14
|
children: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
15
15
|
parents: z.ZodNonOptional<z.ZodObject<{
|
|
16
|
-
post: z.ZodTemplateLiteral
|
|
16
|
+
post: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
18
|
ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
19
19
|
}, z.core.$strict>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PostRefSchema: import("zod").ZodTemplateLiteral
|
|
1
|
+
export declare const PostRefSchema: import("zod").ZodTemplateLiteral<`${string}/${number}`>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const PostSchema: z.ZodObject<{
|
|
3
|
-
ref: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
4
4
|
entity: z.ZodNonOptional<z.ZodLiteral<"Post">>;
|
|
5
5
|
created: z.ZodNonOptional<z.ZodObject<{
|
|
6
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
6
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
7
7
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
8
8
|
}, z.core.$strict>>;
|
|
9
9
|
updated: z.ZodNonOptional<z.ZodObject<{
|
|
10
|
-
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral
|
|
10
|
+
mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
11
11
|
timestamp: z.ZodNonOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strict>>;
|
|
13
13
|
data: z.ZodNonOptional<z.ZodObject<{
|
|
@@ -20,7 +20,7 @@ export declare const PostSchema: z.ZodObject<{
|
|
|
20
20
|
blocks: z.ZodArray<z.ZodString>;
|
|
21
21
|
}, z.core.$strip>>;
|
|
22
22
|
parents: z.ZodNonOptional<z.ZodObject<{
|
|
23
|
-
author: z.ZodOptional<z.ZodTemplateLiteral
|
|
23
|
+
author: z.ZodOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
24
24
|
}, z.core.$strip>>;
|
|
25
25
|
ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
26
26
|
}, z.core.$strict>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const UpdatePostMutationSchema: z.ZodObject<{
|
|
3
|
-
ref: z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
5
|
debounceCount: z.ZodNumber;
|
|
6
6
|
identityRef: z.ZodString;
|
|
@@ -10,12 +10,12 @@ export declare const UpdatePostMutationSchema: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodLiteral<"updatePost">;
|
|
11
11
|
version: z.ZodDefault<z.ZodNumber>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
changeSetRef: z.ZodTemplateLiteral
|
|
13
|
+
changeSetRef: z.ZodTemplateLiteral<`${string}/${number}`> | z.ZodNullable<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
14
14
|
payload: z.ZodObject<{
|
|
15
|
-
ref: z.ZodTemplateLiteral
|
|
15
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
16
16
|
title: z.ZodOptional<z.ZodString>;
|
|
17
17
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
18
|
-
authorRef: z.ZodOptional<z.ZodTemplateLiteral
|
|
18
|
+
authorRef: z.ZodOptional<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
log: z.ZodType<any[], unknown, z.core.$ZodTypeInternals<any[], unknown>>;
|
|
21
21
|
}, z.core.$strict>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const UpdatePostTitleMutationSchema: z.ZodObject<{
|
|
3
|
-
ref: z.ZodTemplateLiteral
|
|
3
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
5
|
debounceCount: z.ZodNumber;
|
|
6
6
|
identityRef: z.ZodString;
|
|
@@ -10,9 +10,9 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodLiteral<"updatePostTitle">;
|
|
11
11
|
version: z.ZodDefault<z.ZodNumber>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
changeSetRef: z.ZodTemplateLiteral
|
|
13
|
+
changeSetRef: z.ZodTemplateLiteral<`${string}/${number}`> | z.ZodNullable<z.ZodTemplateLiteral<`${string}/${number}`>>;
|
|
14
14
|
payload: z.ZodObject<{
|
|
15
|
-
ref: z.ZodTemplateLiteral
|
|
15
|
+
ref: z.ZodTemplateLiteral<`${string}/${number}`>;
|
|
16
16
|
title: z.ZodString;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
log: z.ZodType<any[], unknown, z.core.$ZodTypeInternals<any[], unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const UserRefSchema: import("zod").ZodTemplateLiteral
|
|
1
|
+
export declare const UserRefSchema: import("zod").ZodTemplateLiteral<`${string}/${number}`>;
|
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.77",
|
|
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.77",
|
|
21
21
|
"zod": "^4.0.0"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [],
|