@roc-db/test-utils 0.2.0-pre.6 → 0.2.0-pre.60

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.
Files changed (61) hide show
  1. package/dist/index.js +872 -213
  2. package/dist/types/entities/BlockImageEntity.d.ts +15 -0
  3. package/dist/types/entities/BlockParagraph.d.ts +15 -0
  4. package/dist/types/entities/BlockRow.d.ts +15 -0
  5. package/dist/types/entities/Draft.d.ts +15 -0
  6. package/dist/types/entities/PostEntity.d.ts +30 -0
  7. package/dist/types/entities/PostVersion.d.ts +18 -0
  8. package/dist/types/entities/UserEntity.d.ts +9 -0
  9. package/dist/types/entities/index.d.ts +97 -0
  10. package/dist/types/inMemoryAdapter.d.ts +1 -0
  11. package/dist/types/index.d.ts +5 -0
  12. package/dist/types/operations/applyDraft.d.ts +1 -0
  13. package/dist/types/operations/createBlockImage.d.ts +11 -0
  14. package/dist/types/operations/createBlockParagraph.d.ts +8 -0
  15. package/dist/types/operations/createBlockRow.d.ts +8 -0
  16. package/dist/types/operations/createBlockTitle.d.ts +8 -0
  17. package/dist/types/operations/createDraft.d.ts +8 -0
  18. package/dist/types/operations/createPost.d.ts +14 -0
  19. package/dist/types/operations/createUser.d.ts +8 -0
  20. package/dist/types/operations/deleteBlocks.d.ts +2 -0
  21. package/dist/types/operations/deleteDraft.d.ts +1 -0
  22. package/dist/types/operations/deletePost.d.ts +1 -0
  23. package/dist/types/operations/index.d.ts +1 -0
  24. package/dist/types/operations/moveBlocks.d.ts +11 -0
  25. package/dist/types/operations/pageBlocks.d.ts +1 -0
  26. package/dist/types/operations/pageEmptyEntitiesArray.d.ts +1 -0
  27. package/dist/types/operations/pagePosts.d.ts +1 -0
  28. package/dist/types/operations/pagePostsByTag.d.ts +1 -0
  29. package/dist/types/operations/pageSplat.d.ts +1 -0
  30. package/dist/types/operations/readEntity.d.ts +1 -0
  31. package/dist/types/operations/readMutation.d.ts +1 -0
  32. package/dist/types/operations/readPost.d.ts +1 -0
  33. package/dist/types/operations/readPostBySlug.d.ts +1 -0
  34. package/dist/types/operations/testTransactionalEdits.d.ts +14 -0
  35. package/dist/types/operations/updateBlockParagraph.d.ts +11 -0
  36. package/dist/types/operations/updatePost.d.ts +17 -0
  37. package/dist/types/operations/updatePostDescription.d.ts +11 -0
  38. package/dist/types/operations/updatePostSlug.d.ts +11 -0
  39. package/dist/types/operations/updatePostTags.d.ts +11 -0
  40. package/dist/types/operations/updatePostTitle.d.ts +11 -0
  41. package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -0
  42. package/dist/types/schemas/BlockImageSchema.d.ts +79 -0
  43. package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -0
  44. package/dist/types/schemas/BlockParagraphSchema.d.ts +80 -0
  45. package/dist/types/schemas/BlockRefSchema.d.ts +2 -0
  46. package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -0
  47. package/dist/types/schemas/BlockRowSchema.d.ts +85 -0
  48. package/dist/types/schemas/BlockTitleRefSchema.d.ts +1 -0
  49. package/dist/types/schemas/BlockTitleSchema.d.ts +79 -0
  50. package/dist/types/schemas/CreatePostMutationSchema.d.ts +74 -0
  51. package/dist/types/schemas/CreateUserMutationSchema.d.ts +64 -0
  52. package/dist/types/schemas/DraftRefSchema.d.ts +1 -0
  53. package/dist/types/schemas/DraftSchema.d.ts +69 -0
  54. package/dist/types/schemas/PostRefSchema.d.ts +1 -0
  55. package/dist/types/schemas/PostSchema.d.ts +105 -0
  56. package/dist/types/schemas/UpdatePostMutationSchema.d.ts +79 -0
  57. package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +69 -0
  58. package/dist/types/schemas/UserRefSchema.d.ts +1 -0
  59. package/dist/types/schemas/index.d.ts +13 -0
  60. package/dist/types/testAdapterImplementation.d.ts +1 -0
  61. package/package.json +2 -2
@@ -0,0 +1,15 @@
1
+ import { Entity } from "roc-db";
2
+ import { z } from "zod";
3
+ export declare const BlockImageEntity: Entity<"BlockImage", z.ZodObject<{
4
+ url: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ url: string;
7
+ }, {
8
+ url: string;
9
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{
10
+ parent: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ parent: `Post/${string}`;
13
+ }, {
14
+ parent: `Post/${string}`;
15
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
@@ -0,0 +1,15 @@
1
+ import { Entity } from "roc-db";
2
+ import { z } from "zod";
3
+ export declare const BlockParagraph: Entity<"BlockParagraph", z.ZodObject<{
4
+ content: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ content?: string | undefined;
7
+ }, {
8
+ content?: string | undefined;
9
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{
10
+ parent: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>]>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
13
+ }, {
14
+ parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
15
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
@@ -0,0 +1,15 @@
1
+ import { Entity } from "roc-db";
2
+ import { z } from "zod";
3
+ export declare const BlockRow: Entity<"BlockRow", z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{
4
+ blocks: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
5
+ }, "strip", z.ZodTypeAny, {
6
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
7
+ }, {
8
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
9
+ }>, z.ZodObject<{
10
+ parent: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>]>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
13
+ }, {
14
+ parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
15
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
@@ -0,0 +1,15 @@
1
+ import { Entity } from "roc-db";
2
+ import { z } from "zod";
3
+ export declare const Draft: Entity<"Draft", z.ZodObject<{
4
+ appliedAt: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ appliedAt?: string | undefined;
7
+ }, {
8
+ appliedAt?: string | undefined;
9
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{
10
+ post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ post: `Post/${string}`;
13
+ }, {
14
+ post: `Post/${string}`;
15
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
@@ -0,0 +1,30 @@
1
+ import { Entity } from "roc-db";
2
+ import { z } from "zod";
3
+ export declare const PostEntity: Entity<"Post", z.ZodObject<{
4
+ title: z.ZodString;
5
+ text: z.ZodOptional<z.ZodString>;
6
+ tags: z.ZodArray<z.ZodString, "many">;
7
+ slug: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ title: string;
10
+ tags: string[];
11
+ text?: string | undefined;
12
+ slug?: string | undefined;
13
+ }, {
14
+ title: string;
15
+ tags: string[];
16
+ text?: string | undefined;
17
+ slug?: string | undefined;
18
+ }>, z.ZodObject<{
19
+ blocks: z.ZodArray<z.ZodString, "many">;
20
+ }, "strip", z.ZodTypeAny, {
21
+ blocks: string[];
22
+ }, {
23
+ blocks: string[];
24
+ }>, z.ZodObject<{
25
+ author: z.ZodOptional<z.ZodType<`User/${string}`, z.ZodTypeDef, `User/${string}`>>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ author?: `User/${string}` | undefined;
28
+ }, {
29
+ author?: `User/${string}` | undefined;
30
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
@@ -0,0 +1,18 @@
1
+ import { Entity } from "roc-db";
2
+ import { z } from "zod";
3
+ export declare const PostVersion: Entity<"PostVersion", z.ZodObject<{
4
+ version: z.ZodNumber;
5
+ snapshot: z.ZodArray<z.ZodAny, "many">;
6
+ }, "strip", z.ZodTypeAny, {
7
+ version: number;
8
+ snapshot: any[];
9
+ }, {
10
+ version: number;
11
+ snapshot: any[];
12
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{
13
+ post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ post: `Post/${string}`;
16
+ }, {
17
+ post: `Post/${string}`;
18
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
@@ -0,0 +1,9 @@
1
+ import { Entity } from "roc-db";
2
+ import { z } from "zod";
3
+ export declare const UserEntity: Entity<"User", z.ZodObject<{
4
+ email: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ email: string;
7
+ }, {
8
+ email: string;
9
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
@@ -0,0 +1,97 @@
1
+ export declare const entities: (import("roc-db").Entity<"Draft", import("zod").ZodObject<{
2
+ appliedAt: import("zod").ZodOptional<import("zod").ZodString>;
3
+ }, "strip", import("zod").ZodTypeAny, {
4
+ appliedAt?: string | undefined;
5
+ }, {
6
+ appliedAt?: string | undefined;
7
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
8
+ post: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
9
+ }, "strip", import("zod").ZodTypeAny, {
10
+ post: `Post/${string}`;
11
+ }, {
12
+ post: `Post/${string}`;
13
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"BlockImage", import("zod").ZodObject<{
14
+ url: import("zod").ZodString;
15
+ }, "strip", import("zod").ZodTypeAny, {
16
+ url: string;
17
+ }, {
18
+ url: string;
19
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
20
+ parent: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
21
+ }, "strip", import("zod").ZodTypeAny, {
22
+ parent: `Post/${string}`;
23
+ }, {
24
+ parent: `Post/${string}`;
25
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"Post", import("zod").ZodObject<{
26
+ title: import("zod").ZodString;
27
+ text: import("zod").ZodOptional<import("zod").ZodString>;
28
+ tags: import("zod").ZodArray<import("zod").ZodString, "many">;
29
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
30
+ }, "strip", import("zod").ZodTypeAny, {
31
+ title: string;
32
+ tags: string[];
33
+ text?: string | undefined;
34
+ slug?: string | undefined;
35
+ }, {
36
+ title: string;
37
+ tags: string[];
38
+ text?: string | undefined;
39
+ slug?: string | undefined;
40
+ }>, import("zod").ZodObject<{
41
+ blocks: import("zod").ZodArray<import("zod").ZodString, "many">;
42
+ }, "strip", import("zod").ZodTypeAny, {
43
+ blocks: string[];
44
+ }, {
45
+ blocks: string[];
46
+ }>, import("zod").ZodObject<{
47
+ author: import("zod").ZodOptional<import("zod").ZodType<`User/${string}`, import("zod").ZodTypeDef, `User/${string}`>>;
48
+ }, "strip", import("zod").ZodTypeAny, {
49
+ author?: `User/${string}` | undefined;
50
+ }, {
51
+ author?: `User/${string}` | undefined;
52
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"BlockParagraph", import("zod").ZodObject<{
53
+ content: import("zod").ZodOptional<import("zod").ZodString>;
54
+ }, "strip", import("zod").ZodTypeAny, {
55
+ content?: string | undefined;
56
+ }, {
57
+ content?: string | undefined;
58
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
59
+ parent: import("zod").ZodUnion<[import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>, import("zod").ZodUnion<[import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>]>;
60
+ }, "strip", import("zod").ZodTypeAny, {
61
+ parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
62
+ }, {
63
+ parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
64
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"BlockRow", import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
65
+ blocks: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>, "many">;
66
+ }, "strip", import("zod").ZodTypeAny, {
67
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
68
+ }, {
69
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
70
+ }>, import("zod").ZodObject<{
71
+ parent: import("zod").ZodUnion<[import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>, import("zod").ZodUnion<[import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>]>;
72
+ }, "strip", import("zod").ZodTypeAny, {
73
+ parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
74
+ }, {
75
+ parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
76
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"PostVersion", import("zod").ZodObject<{
77
+ version: import("zod").ZodNumber;
78
+ snapshot: import("zod").ZodArray<import("zod").ZodAny, "many">;
79
+ }, "strip", import("zod").ZodTypeAny, {
80
+ version: number;
81
+ snapshot: any[];
82
+ }, {
83
+ version: number;
84
+ snapshot: any[];
85
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
86
+ post: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
87
+ }, "strip", import("zod").ZodTypeAny, {
88
+ post: `Post/${string}`;
89
+ }, {
90
+ post: `Post/${string}`;
91
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"User", import("zod").ZodObject<{
92
+ email: import("zod").ZodString;
93
+ }, "strip", import("zod").ZodTypeAny, {
94
+ email: string;
95
+ }, {
96
+ email: string;
97
+ }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>>)[];
@@ -0,0 +1 @@
1
+ export declare const inMemoryAdapter: any;
@@ -0,0 +1,5 @@
1
+ export * from "./schemas";
2
+ export { entities } from "./entities";
3
+ export { operations } from "./operations";
4
+ export { testAdapterImplementation } from "./testAdapterImplementation";
5
+ export { inMemoryAdapter } from "./inMemoryAdapter";
@@ -0,0 +1 @@
1
+ export declare const applyDraft: import("roc-db").WriteOperation<"applyDraft", import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>>;
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const createBlockImage: import("roc-db").WriteOperation<"createBlockImage", z.ZodObject<{
3
+ parentRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ url: z.ZodString;
5
+ }, "strict", z.ZodTypeAny, {
6
+ url: string;
7
+ parentRef: `Post/${string}`;
8
+ }, {
9
+ url: string;
10
+ parentRef: `Post/${string}`;
11
+ }>>;
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ export declare const createBlockParagrah: import("roc-db").WriteOperation<"createBlockParagraph", z.ZodObject<{
3
+ parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
4
+ }, "strict", z.ZodTypeAny, {
5
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
6
+ }, {
7
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
8
+ }>>;
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ export declare const createBlockRow: import("roc-db").WriteOperation<"createBlockRow", z.ZodObject<{
3
+ parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
4
+ }, "strict", z.ZodTypeAny, {
5
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
6
+ }, {
7
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
8
+ }>>;
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ export declare const createBlockTitle: import("roc-db").WriteOperation<"createBlockTitle", z.ZodObject<{
3
+ parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
4
+ }, "strict", z.ZodTypeAny, {
5
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
6
+ }, {
7
+ parentRef: `Post/${string}` | `BlockRow/${string}`;
8
+ }>>;
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ export declare const createDraft: import("roc-db").WriteOperation<"createDraft", z.ZodObject<{
3
+ postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ }, "strict", z.ZodTypeAny, {
5
+ postRef: `Post/${string}`;
6
+ }, {
7
+ postRef: `Post/${string}`;
8
+ }>>;
@@ -0,0 +1,14 @@
1
+ import { z } from "zod";
2
+ export declare const createPost: import("roc-db").WriteOperation<"createPost", z.ZodObject<{
3
+ title: z.ZodString;
4
+ slug: z.ZodOptional<z.ZodString>;
5
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ title: string;
8
+ tags: string[];
9
+ slug?: string | undefined;
10
+ }, {
11
+ title: string;
12
+ tags?: string[] | undefined;
13
+ slug?: string | undefined;
14
+ }>>;
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ export declare const createUser: import("roc-db").WriteOperation<"createUser", z.ZodObject<{
3
+ email: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ email: string;
6
+ }, {
7
+ email: string;
8
+ }>>;
@@ -0,0 +1,2 @@
1
+ import { z } from "zod";
2
+ export declare const deleteBlocks: import("roc-db").WriteOperation<"deleteBlocks", 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">>;
@@ -0,0 +1 @@
1
+ export declare const deleteDraft: import("roc-db").WriteOperation<"deleteDraft", import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>>;
@@ -0,0 +1 @@
1
+ export declare const deletePost: import("roc-db").WriteOperation<"deletePost", import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>>;
@@ -0,0 +1 @@
1
+ export declare const operations: any[];
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const moveBlocks: import("roc-db").WriteOperation<"moveBlocks", z.ZodObject<{
3
+ refs: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
4
+ targetPosition: z.ZodNumber;
5
+ }, "strict", z.ZodTypeAny, {
6
+ refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
7
+ targetPosition: number;
8
+ }, {
9
+ refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
10
+ targetPosition: number;
11
+ }>>;
@@ -0,0 +1 @@
1
+ export declare const pageBlocks: any;
@@ -0,0 +1 @@
1
+ export declare const pageEmptyEntitiesArray: any;
@@ -0,0 +1 @@
1
+ export declare const pagePosts: any;
@@ -0,0 +1 @@
1
+ export declare const pagePostsByTag: any;
@@ -0,0 +1 @@
1
+ export declare const pageSplat: any;
@@ -0,0 +1 @@
1
+ export declare const readEntity: any;
@@ -0,0 +1 @@
1
+ export declare const readMutation: any;
@@ -0,0 +1 @@
1
+ export declare const readPost: any;
@@ -0,0 +1 @@
1
+ export declare const readPostBySlug: any;
@@ -0,0 +1,14 @@
1
+ import { z } from "zod";
2
+ export declare const testTransactionalEdits: import("roc-db").WriteOperation<"testTransactionalEdits", z.ZodObject<{
3
+ name: z.ZodOptional<z.ZodString>;
4
+ post1ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
5
+ post2ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ name?: string | undefined;
8
+ post1ref?: `Post/${string}` | undefined;
9
+ post2ref?: `Post/${string}` | undefined;
10
+ }, {
11
+ name?: string | undefined;
12
+ post1ref?: `Post/${string}` | undefined;
13
+ post2ref?: `Post/${string}` | undefined;
14
+ }>>;
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const updateBlockParagraph: import("roc-db").WriteOperation<"updateBlockParagraph", z.ZodObject<{
3
+ ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
4
+ content: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ ref: `BlockParagraph/${string}`;
7
+ content: string;
8
+ }, {
9
+ ref: `BlockParagraph/${string}`;
10
+ content: string;
11
+ }>>;
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ export declare const updatePost: import("roc-db").WriteOperation<"updatePost", z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ title: z.ZodOptional<z.ZodString>;
5
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6
+ authorRef: z.ZodOptional<z.ZodType<`User/${string}`, z.ZodTypeDef, `User/${string}`>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ ref: `Post/${string}`;
9
+ tags: string[];
10
+ title?: string | undefined;
11
+ authorRef?: `User/${string}` | undefined;
12
+ }, {
13
+ ref: `Post/${string}`;
14
+ title?: string | undefined;
15
+ tags?: string[] | undefined;
16
+ authorRef?: `User/${string}` | undefined;
17
+ }>>;
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const updatePostDescription: import("roc-db").WriteOperation<"updatePostDescription", z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ description: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ ref: `Post/${string}`;
7
+ description: string;
8
+ }, {
9
+ ref: `Post/${string}`;
10
+ description: string;
11
+ }>>;
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const updatePostSlug: import("roc-db").WriteOperation<"updatePostSlug", z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ slug: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ ref: `Post/${string}`;
7
+ slug: string;
8
+ }, {
9
+ ref: `Post/${string}`;
10
+ slug: string;
11
+ }>>;
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const updatePostTags: import("roc-db").WriteOperation<"updatePostTags", z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ tags: z.ZodArray<z.ZodString, "many">;
5
+ }, "strip", z.ZodTypeAny, {
6
+ ref: `Post/${string}`;
7
+ tags: string[];
8
+ }, {
9
+ ref: `Post/${string}`;
10
+ tags: string[];
11
+ }>>;
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const updatePostTitle: import("roc-db").WriteOperation<"updatePostTitle", z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
+ title: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ ref: `Post/${string}`;
7
+ title: string;
8
+ }, {
9
+ ref: `Post/${string}`;
10
+ title: string;
11
+ }>>;
@@ -0,0 +1 @@
1
+ export declare const BlockImageRefSchema: import("zod").ZodType<`BlockImage/${string}`, import("zod").ZodTypeDef, `BlockImage/${string}`>;
@@ -0,0 +1,79 @@
1
+ import { z } from "zod";
2
+ export declare const BlockImageSchema: z.ZodObject<{
3
+ ref: z.ZodType<`BlockImage/${string}`, z.ZodTypeDef, `BlockImage/${string}`>;
4
+ entity: z.ZodLiteral<"BlockImage">;
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<{
26
+ url: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ url: string;
29
+ }, {
30
+ url: string;
31
+ }>;
32
+ children: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
33
+ parents: z.ZodObject<{
34
+ post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ post: `Post/${string}`;
37
+ }, {
38
+ post: `Post/${string}`;
39
+ }>;
40
+ ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ ref: `BlockImage/${string}`;
43
+ data: {
44
+ url: string;
45
+ };
46
+ parents: {
47
+ post: `Post/${string}`;
48
+ };
49
+ entity: "BlockImage";
50
+ created: {
51
+ mutationRef: `Mutation/${string}`;
52
+ timestamp: string;
53
+ };
54
+ updated: {
55
+ mutationRef: `Mutation/${string}`;
56
+ timestamp: string;
57
+ };
58
+ children: {};
59
+ ancestors: {};
60
+ }, {
61
+ ref: `BlockImage/${string}`;
62
+ data: {
63
+ url: string;
64
+ };
65
+ parents: {
66
+ post: `Post/${string}`;
67
+ };
68
+ entity: "BlockImage";
69
+ created: {
70
+ mutationRef: `Mutation/${string}`;
71
+ timestamp: string;
72
+ };
73
+ updated: {
74
+ mutationRef: `Mutation/${string}`;
75
+ timestamp: string;
76
+ };
77
+ children: {};
78
+ ancestors: {};
79
+ }>;
@@ -0,0 +1 @@
1
+ export declare const BlockParagraphRefSchema: import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>;
@@ -0,0 +1,80 @@
1
+ import { z } from "zod";
2
+ export declare const BlockParagraphSchema: z.ZodObject<{
3
+ ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
4
+ entity: z.ZodLiteral<"BlockParagraph">;
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<{
26
+ content: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ content?: string | undefined;
29
+ }, {
30
+ content?: string | undefined;
31
+ }>;
32
+ children: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
33
+ parents: z.ZodObject<{
34
+ parent: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ parent: `Post/${string}`;
37
+ }, {
38
+ parent: `Post/${string}`;
39
+ }>;
40
+ ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ ref: `BlockParagraph/${string}`;
43
+ data: {
44
+ content?: string | undefined;
45
+ };
46
+ parents: {
47
+ parent: `Post/${string}`;
48
+ };
49
+ entity: "BlockParagraph";
50
+ created: {
51
+ mutationRef: `Mutation/${string}`;
52
+ timestamp: string;
53
+ };
54
+ updated: {
55
+ mutationRef: `Mutation/${string}`;
56
+ timestamp: string;
57
+ };
58
+ children: {};
59
+ ancestors: {};
60
+ }, {
61
+ ref: `BlockParagraph/${string}`;
62
+ data: {
63
+ content?: string | undefined;
64
+ };
65
+ parents: {
66
+ parent: `Post/${string}`;
67
+ };
68
+ entity: "BlockParagraph";
69
+ created: {
70
+ mutationRef: `Mutation/${string}`;
71
+ timestamp: string;
72
+ };
73
+ updated: {
74
+ mutationRef: `Mutation/${string}`;
75
+ timestamp: string;
76
+ };
77
+ children: {};
78
+ ancestors: {};
79
+ }>;
80
+ export type BlockParagraph = z.infer<typeof BlockParagraphSchema>;