@roc-db/test-utils 0.2.0-pre.8 → 0.2.0-pre.82

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 (68) hide show
  1. package/dist/index.js +933 -287
  2. package/dist/types/entities/BlockImageEntity.d.ts +7 -0
  3. package/dist/types/entities/BlockParagraph.d.ts +7 -0
  4. package/dist/types/entities/BlockRow.d.ts +7 -0
  5. package/dist/types/entities/Draft.d.ts +7 -0
  6. package/dist/types/entities/PostEntity.d.ts +12 -0
  7. package/dist/types/entities/PostVersion.d.ts +8 -0
  8. package/dist/types/entities/UserEntity.d.ts +5 -0
  9. package/dist/types/entities/index.d.ts +33 -0
  10. package/dist/types/index.d.ts +2 -1
  11. package/dist/types/operations/applyDraft.d.ts +1 -0
  12. package/dist/types/operations/createBlockImage.d.ts +5 -15
  13. package/dist/types/operations/createBlockParagraph.d.ts +5 -15
  14. package/dist/types/operations/createBlockRow.d.ts +4 -15
  15. package/dist/types/operations/createBlockTitle.d.ts +4 -15
  16. package/dist/types/operations/createDraft.d.ts +4 -15
  17. package/dist/types/operations/createPost.d.ts +6 -19
  18. package/dist/types/operations/createUser.d.ts +4 -0
  19. package/dist/types/operations/crudBySlug.d.ts +5 -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 -9
  23. package/dist/types/operations/index.d.ts +1 -157
  24. package/dist/types/operations/moveBlocks.d.ts +5 -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/readMutation.d.ts +1 -0
  31. package/dist/types/operations/readPostBySlug.d.ts +1 -0
  32. package/dist/types/operations/testTransactionalEdits.d.ts +6 -0
  33. package/dist/types/operations/updateBlockParagraph.d.ts +5 -15
  34. package/dist/types/operations/updatePost.d.ts +7 -21
  35. package/dist/types/operations/updatePostDescription.d.ts +5 -0
  36. package/dist/types/operations/updatePostSlug.d.ts +5 -0
  37. package/dist/types/operations/updatePostTags.d.ts +5 -0
  38. package/dist/types/operations/updatePostTitle.d.ts +5 -17
  39. package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -1
  40. package/dist/types/schemas/BlockImageSchema.d.ts +20 -31
  41. package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -1
  42. package/dist/types/schemas/BlockParagraphSchema.d.ts +20 -31
  43. package/dist/types/schemas/BlockRefSchema.d.ts +1 -1
  44. package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -1
  45. package/dist/types/schemas/BlockRowSchema.d.ts +21 -31
  46. package/dist/types/schemas/BlockTitleRefSchema.d.ts +1 -1
  47. package/dist/types/schemas/BlockTitleSchema.d.ts +20 -31
  48. package/dist/types/schemas/CreatePostMutationSchema.d.ts +14 -44
  49. package/dist/types/schemas/CreateUserMutationSchema.d.ts +13 -35
  50. package/dist/types/schemas/DraftRefSchema.d.ts +1 -1
  51. package/dist/types/schemas/DraftSchema.d.ts +18 -31
  52. package/dist/types/schemas/PostRefSchema.d.ts +1 -1
  53. package/dist/types/schemas/PostSchema.d.ts +25 -31
  54. package/dist/types/schemas/UpdatePostMutationSchema.d.ts +16 -50
  55. package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +14 -40
  56. package/dist/types/schemas/UserRefSchema.d.ts +1 -1
  57. package/dist/types/schemas/index.d.ts +0 -31
  58. package/dist/types/testAdapterImplementation.d.ts +1 -1
  59. package/package.json +3 -3
  60. package/dist/types/operations/deleteBlock.d.ts +0 -11
  61. package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +0 -40
  62. package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +0 -40
  63. package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +0 -40
  64. package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +0 -40
  65. package/dist/types/schemas/CreateDraftMutationSchema.d.ts +0 -40
  66. package/dist/types/schemas/DeleteBlockMutationSchema.d.ts +0 -30
  67. package/dist/types/schemas/DeletePostMutationSchema.d.ts +0 -29
  68. package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +0 -45
@@ -0,0 +1,7 @@
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
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
6
+ parent: z.ZodTemplateLiteral<`Post/${number}`>;
7
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -0,0 +1,7 @@
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
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
6
+ parent: z.ZodUnion<readonly z.core.SomeType[]>;
7
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -0,0 +1,7 @@
1
+ import { Entity } from "roc-db";
2
+ import { z } from "zod";
3
+ export declare const BlockRow: Entity<"BlockRow", z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
4
+ blocks: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`BlockParagraph/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>>;
5
+ }, z.core.$strip>, z.ZodObject<{
6
+ parent: z.ZodUnion<readonly z.core.SomeType[]>;
7
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -0,0 +1,7 @@
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
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
6
+ post: z.ZodTemplateLiteral<`Post/${number}`>;
7
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -0,0 +1,12 @@
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>;
7
+ slug: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>, z.ZodObject<{
9
+ blocks: z.ZodArray<z.ZodString>;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ author: z.ZodOptional<z.ZodTemplateLiteral<`User/${number}`>>;
12
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -0,0 +1,8 @@
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>;
6
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
7
+ post: z.ZodTemplateLiteral<`Post/${number}`>;
8
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -0,0 +1,5 @@
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
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -0,0 +1,33 @@
1
+ export declare const entities: (import("roc-db").Entity<"Draft", import("zod").ZodObject<{
2
+ appliedAt: import("zod").ZodOptional<import("zod").ZodString>;
3
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4
+ post: import("zod").ZodTemplateLiteral<`Post/${number}`>;
5
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"BlockImage", import("zod").ZodObject<{
6
+ url: import("zod").ZodString;
7
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
8
+ parent: import("zod").ZodTemplateLiteral<`Post/${number}`>;
9
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"Post", import("zod").ZodObject<{
10
+ title: import("zod").ZodString;
11
+ text: import("zod").ZodOptional<import("zod").ZodString>;
12
+ tags: import("zod").ZodArray<import("zod").ZodString>;
13
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
14
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
15
+ blocks: import("zod").ZodArray<import("zod").ZodString>;
16
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
17
+ author: import("zod").ZodOptional<import("zod").ZodTemplateLiteral<`User/${number}`>>;
18
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"BlockParagraph", import("zod").ZodObject<{
19
+ content: import("zod").ZodOptional<import("zod").ZodString>;
20
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
21
+ parent: import("zod").ZodUnion<readonly import("zod/v4/core").SomeType[]>;
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<`BlockParagraph/${number}`>, import("zod").ZodTemplateLiteral<`BlockRow/${number}`>]>>;
24
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
25
+ parent: import("zod").ZodUnion<readonly import("zod/v4/core").SomeType[]>;
26
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"PostVersion", import("zod").ZodObject<{
27
+ version: import("zod").ZodNumber;
28
+ snapshot: import("zod").ZodArray<import("zod").ZodAny>;
29
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
30
+ post: import("zod").ZodTemplateLiteral<`Post/${number}`>;
31
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"User", import("zod").ZodObject<{
32
+ email: import("zod").ZodString;
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,4 +1,5 @@
1
1
  export * from "./schemas";
2
- export * from "./operations";
2
+ export { entities } from "./entities";
3
+ export { operations } from "./operations";
3
4
  export { testAdapterImplementation } from "./testAdapterImplementation";
4
5
  export { inMemoryAdapter } from "./inMemoryAdapter";
@@ -0,0 +1 @@
1
+ export declare const applyDraft: import("roc-db").WriteOperation<"applyDraft", import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
@@ -1,15 +1,5 @@
1
- export declare const createBlockImage: import("roc-db").WriteOperation<"createBlockImage", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- postRef: `Post/${string}`;
7
- };
8
- log: [never, string, null][];
9
- debounceCount: number;
10
- name: "createBlockImage";
11
- }, {
12
- postRef: `Post/${string}`;
13
- }, {
14
- [x: string]: any;
15
- }>;
1
+ import { z } from "zod";
2
+ export declare const createBlockImage: import("roc-db").WriteOperation<"createBlockImage", z.ZodObject<{
3
+ parentRef: z.ZodTemplateLiteral<`Post/${number}`>;
4
+ url: z.ZodString;
5
+ }, z.core.$strict>>;
@@ -1,15 +1,5 @@
1
- export declare const createBlockParagrah: import("roc-db").WriteOperation<"createBlockParagraph", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- parentRef: `Post/${string}` | `BlockRow/${string}`;
7
- };
8
- log: [never, string, null][];
9
- debounceCount: number;
10
- name: "createBlockParagraph";
11
- }, {
12
- parentRef: `Post/${string}` | `BlockRow/${string}`;
13
- }, {
14
- [x: string]: any;
15
- }>;
1
+ import { z } from "zod";
2
+ export declare const createBlockParagrah: import("roc-db").WriteOperation<"createBlockParagraph", z.ZodObject<{
3
+ parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral<`Post/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>;
4
+ content: z.ZodOptional<z.ZodString>;
5
+ }, z.core.$strict>>;
@@ -1,15 +1,4 @@
1
- export declare const createBlockRow: import("roc-db").WriteOperation<"createBlockRow", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- parentRef: `Post/${string}` | `BlockRow/${string}`;
7
- };
8
- log: [never, string, null][];
9
- debounceCount: number;
10
- name: "createBlockRow";
11
- }, {
12
- parentRef: `Post/${string}` | `BlockRow/${string}`;
13
- }, {
14
- [x: string]: any;
15
- }>;
1
+ import { z } from "zod";
2
+ export declare const createBlockRow: import("roc-db").WriteOperation<"createBlockRow", z.ZodObject<{
3
+ parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral<`Post/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>;
4
+ }, z.core.$strict>>;
@@ -1,15 +1,4 @@
1
- export declare const createBlockTitle: import("roc-db").WriteOperation<"createBlockTitle", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- parentRef: `Post/${string}` | `BlockRow/${string}`;
7
- };
8
- log: [never, string, null][];
9
- debounceCount: number;
10
- name: "createBlockTitle";
11
- }, {
12
- parentRef: `Post/${string}` | `BlockRow/${string}`;
13
- }, {
14
- [x: string]: any;
15
- }>;
1
+ import { z } from "zod";
2
+ export declare const createBlockTitle: import("roc-db").WriteOperation<"createBlockTitle", z.ZodObject<{
3
+ parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral<`Post/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>;
4
+ }, z.core.$strict>>;
@@ -1,15 +1,4 @@
1
- export declare const createDraft: import("roc-db").WriteOperation<"createDraft", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- postRef: `Post/${string}`;
7
- };
8
- log: [never, string, null][];
9
- debounceCount: number;
10
- name: "createDraft";
11
- }, {
12
- postRef: `Post/${string}`;
13
- }, {
14
- [x: string]: any;
15
- }>;
1
+ import { z } from "zod";
2
+ export declare const createDraft: import("roc-db").WriteOperation<"createDraft", z.ZodObject<{
3
+ postRef: z.ZodTemplateLiteral<`Post/${number}`>;
4
+ }, z.core.$strict>>;
@@ -1,19 +1,6 @@
1
- export declare const createPost: import("roc-db").WriteOperation<"createPost", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- title: string;
7
- tags: string[];
8
- slug?: string | undefined;
9
- };
10
- log: [never, string, null][];
11
- debounceCount: number;
12
- name: "createPost";
13
- }, {
14
- title: string;
15
- tags: string[];
16
- slug?: string | undefined;
17
- }, {
18
- [x: string]: any;
19
- }>;
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>>;
6
+ }, z.core.$strict>>;
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ export declare const createUser: import("roc-db").WriteOperation<"createUser", z.ZodObject<{
3
+ email: z.ZodString;
4
+ }, z.core.$strip>>;
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export declare const crudBySlug: import("roc-db").WriteOperation<"crudBySlug", z.ZodObject<{
3
+ slug: z.ZodString;
4
+ newSlug: z.ZodString;
5
+ }, z.core.$strip>>;
@@ -0,0 +1,2 @@
1
+ import { z } from "zod";
2
+ export declare const deleteBlocks: import("roc-db").WriteOperation<"deleteBlocks", z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`BlockParagraph/${number}`>, z.ZodTemplateLiteral<`BlockImage/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>>>;
@@ -0,0 +1 @@
1
+ export declare const deleteDraft: import("roc-db").WriteOperation<"deleteDraft", import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
@@ -1,9 +1 @@
1
- export declare const deletePost: import("roc-db").WriteOperation<"deletePost", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: `Post/${string}`;
6
- log: [never, string, null][];
7
- debounceCount: number;
8
- name: "deletePost";
9
- }, `Post/${string}`, any>;
1
+ export declare const deletePost: import("roc-db").WriteOperation<"deletePost", import("zod").ZodTemplateLiteral<`Post/${number}`>>;
@@ -1,157 +1 @@
1
- export declare const operations: readonly [import("roc-db").WriteOperation<"createBlockImage", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- postRef: `Post/${string}`;
7
- };
8
- log: [never, string, null][];
9
- debounceCount: number;
10
- name: "createBlockImage";
11
- }, {
12
- postRef: `Post/${string}`;
13
- }, {
14
- [x: string]: any;
15
- }>, import("roc-db").WriteOperation<"createBlockTitle", {
16
- ref: `Mutation/${string}`;
17
- timestamp: string;
18
- changeSetRef: null;
19
- payload: {
20
- parentRef: `Post/${string}` | `BlockRow/${string}`;
21
- };
22
- log: [never, string, null][];
23
- debounceCount: number;
24
- name: "createBlockTitle";
25
- }, {
26
- parentRef: `Post/${string}` | `BlockRow/${string}`;
27
- }, {
28
- [x: string]: any;
29
- }>, import("roc-db").WriteOperation<"createBlockParagraph", {
30
- ref: `Mutation/${string}`;
31
- timestamp: string;
32
- changeSetRef: null;
33
- payload: {
34
- parentRef: `Post/${string}` | `BlockRow/${string}`;
35
- };
36
- log: [never, string, null][];
37
- debounceCount: number;
38
- name: "createBlockParagraph";
39
- }, {
40
- parentRef: `Post/${string}` | `BlockRow/${string}`;
41
- }, {
42
- [x: string]: any;
43
- }>, import("roc-db").WriteOperation<"createBlockRow", {
44
- ref: `Mutation/${string}`;
45
- timestamp: string;
46
- changeSetRef: null;
47
- payload: {
48
- parentRef: `Post/${string}` | `BlockRow/${string}`;
49
- };
50
- log: [never, string, null][];
51
- debounceCount: number;
52
- name: "createBlockRow";
53
- }, {
54
- parentRef: `Post/${string}` | `BlockRow/${string}`;
55
- }, {
56
- [x: string]: any;
57
- }>, import("roc-db").WriteOperation<"createDraft", {
58
- ref: `Mutation/${string}`;
59
- timestamp: string;
60
- changeSetRef: null;
61
- payload: {
62
- postRef: `Post/${string}`;
63
- };
64
- log: [never, string, null][];
65
- debounceCount: number;
66
- name: "createDraft";
67
- }, {
68
- postRef: `Post/${string}`;
69
- }, {
70
- [x: string]: any;
71
- }>, import("roc-db").WriteOperation<"createPost", {
72
- ref: `Mutation/${string}`;
73
- timestamp: string;
74
- changeSetRef: null;
75
- payload: {
76
- title: string;
77
- tags: string[];
78
- slug?: string | undefined;
79
- };
80
- log: [never, string, null][];
81
- debounceCount: number;
82
- name: "createPost";
83
- }, {
84
- title: string;
85
- tags: string[];
86
- slug?: string | undefined;
87
- }, {
88
- [x: string]: any;
89
- }>, import("roc-db").WriteOperation<"deleteBlock", {
90
- ref: `Mutation/${string}`;
91
- timestamp: string;
92
- changeSetRef: null;
93
- payload: `BlockImage/${string}` | `BlockParagraph/${string}`;
94
- log: [never, string, null][];
95
- debounceCount: number;
96
- name: "deleteBlock";
97
- }, `BlockImage/${string}` | `BlockParagraph/${string}`, {
98
- [x: string]: any;
99
- }>, import("roc-db").WriteOperation<"deletePost", {
100
- ref: `Mutation/${string}`;
101
- timestamp: string;
102
- changeSetRef: null;
103
- payload: `Post/${string}`;
104
- log: [never, string, null][];
105
- debounceCount: number;
106
- name: "deletePost";
107
- }, `Post/${string}`, any>, any, any, import("roc-db").WriteOperation<"updateBlockParagraph", {
108
- ref: `Mutation/${string}`;
109
- timestamp: string;
110
- changeSetRef: null;
111
- payload: {
112
- ref: `BlockParagraph/${string}`;
113
- content: string;
114
- };
115
- log: [never, string, null][];
116
- debounceCount: number;
117
- name: "updateBlockParagraph";
118
- }, {
119
- ref: `BlockParagraph/${string}`;
120
- content: string;
121
- }, `BlockParagraph/${string}`>, import("roc-db").WriteOperation<"updatePost", {
122
- ref: `Mutation/${string}`;
123
- timestamp: string;
124
- changeSetRef: null;
125
- payload: {
126
- ref: `Post/${string}`;
127
- tags: string[];
128
- title?: string | undefined;
129
- authorRef?: `User/${string}` | undefined;
130
- };
131
- log: [never, string, null][];
132
- debounceCount: number;
133
- name: "updatePost";
134
- }, {
135
- ref: `Post/${string}`;
136
- tags: string[];
137
- title?: string | undefined;
138
- authorRef?: `User/${string}` | undefined;
139
- }, {
140
- [x: string]: any;
141
- }>, import("roc-db").WriteOperation<"updatePostTitle", {
142
- ref: `Mutation/${string}`;
143
- timestamp: string;
144
- changeSetRef: null;
145
- payload: {
146
- ref: `Post/${string}`;
147
- title: string;
148
- };
149
- log: [never, string, null][];
150
- debounceCount: number;
151
- name: "updatePostTitle";
152
- }, {
153
- ref: `Post/${string}`;
154
- title: string;
155
- }, {
156
- [x: string]: any;
157
- }>];
1
+ export declare const operations: any[];
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export declare const moveBlocks: import("roc-db").WriteOperation<"moveBlocks", z.ZodObject<{
3
+ refs: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`BlockParagraph/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>>;
4
+ targetPosition: z.ZodNumber;
5
+ }, z.core.$strict>>;
@@ -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 readMutation: any;
@@ -0,0 +1 @@
1
+ export declare const readPostBySlug: any;
@@ -0,0 +1,6 @@
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.ZodTemplateLiteral<`Post/${number}`>>;
5
+ post2ref: z.ZodOptional<z.ZodTemplateLiteral<`Post/${number}`>>;
6
+ }, z.core.$strict>>;
@@ -1,15 +1,5 @@
1
- export declare const updateBlockParagraph: import("roc-db").WriteOperation<"updateBlockParagraph", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- ref: `BlockParagraph/${string}`;
7
- content: string;
8
- };
9
- log: [never, string, null][];
10
- debounceCount: number;
11
- name: "updateBlockParagraph";
12
- }, {
13
- ref: `BlockParagraph/${string}`;
14
- content: string;
15
- }, `BlockParagraph/${string}`>;
1
+ import { z } from "zod";
2
+ export declare const updateBlockParagraph: import("roc-db").WriteOperation<"updateBlockParagraph", z.ZodObject<{
3
+ ref: z.ZodTemplateLiteral<`BlockParagraph/${number}`>;
4
+ content: z.ZodString;
5
+ }, z.core.$strip>>;
@@ -1,21 +1,7 @@
1
- export declare const updatePost: import("roc-db").WriteOperation<"updatePost", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- ref: `Post/${string}`;
7
- tags: string[];
8
- title?: string | undefined;
9
- authorRef?: `User/${string}` | undefined;
10
- };
11
- log: [never, string, null][];
12
- debounceCount: number;
13
- name: "updatePost";
14
- }, {
15
- ref: `Post/${string}`;
16
- tags: string[];
17
- title?: string | undefined;
18
- authorRef?: `User/${string}` | undefined;
19
- }, {
20
- [x: string]: any;
21
- }>;
1
+ import { z } from "zod";
2
+ export declare const updatePost: import("roc-db").WriteOperation<"updatePost", z.ZodObject<{
3
+ ref: z.ZodTemplateLiteral<`Post/${number}`>;
4
+ title: z.ZodOptional<z.ZodString>;
5
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
6
+ authorRef: z.ZodOptional<z.ZodTemplateLiteral<`User/${number}`>>;
7
+ }, z.core.$strip>>;
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export declare const updatePostDescription: import("roc-db").WriteOperation<"updatePostDescription", z.ZodObject<{
3
+ ref: z.ZodTemplateLiteral<`Post/${number}`>;
4
+ description: z.ZodString;
5
+ }, z.core.$strip>>;
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export declare const updatePostSlug: import("roc-db").WriteOperation<"updatePostSlug", z.ZodObject<{
3
+ ref: z.ZodTemplateLiteral<`Post/${number}`>;
4
+ slug: z.ZodString;
5
+ }, z.core.$strip>>;
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export declare const updatePostTags: import("roc-db").WriteOperation<"updatePostTags", z.ZodObject<{
3
+ ref: z.ZodTemplateLiteral<`Post/${number}`>;
4
+ tags: z.ZodArray<z.ZodString>;
5
+ }, z.core.$strip>>;
@@ -1,17 +1,5 @@
1
- export declare const updatePostTitle: import("roc-db").WriteOperation<"updatePostTitle", {
2
- ref: `Mutation/${string}`;
3
- timestamp: string;
4
- changeSetRef: null;
5
- payload: {
6
- ref: `Post/${string}`;
7
- title: string;
8
- };
9
- log: [never, string, null][];
10
- debounceCount: number;
11
- name: "updatePostTitle";
12
- }, {
13
- ref: `Post/${string}`;
14
- title: string;
15
- }, {
16
- [x: string]: any;
17
- }>;
1
+ import { z } from "zod";
2
+ export declare const updatePostTitle: import("roc-db").WriteOperation<"updatePostTitle", z.ZodObject<{
3
+ ref: z.ZodTemplateLiteral<`Post/${number}`>;
4
+ title: z.ZodString;
5
+ }, z.core.$strip>>;
@@ -1 +1 @@
1
- export declare const BlockImageRefSchema: import("zod").ZodType<`BlockImage/${string}`, import("zod").ZodTypeDef, `BlockImage/${string}`>;
1
+ export declare const BlockImageRefSchema: import("zod").ZodTemplateLiteral<`BlockImage/${number}`>;
@@ -1,32 +1,21 @@
1
1
  import { z } from "zod";
2
- export declare const BlockImageSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
4
- entity: z.ZodString;
5
- created: z.ZodObject<{
6
- mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
7
- timestamp: z.ZodString;
8
- }, "strict", z.ZodTypeAny, {
9
- mutationRef: `Mutation/${string}`;
10
- timestamp: string;
11
- }, {
12
- mutationRef: `Mutation/${string}`;
13
- timestamp: string;
14
- }>;
15
- updated: z.ZodObject<{
16
- mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
17
- timestamp: z.ZodString;
18
- }, "strict", z.ZodTypeAny, {
19
- mutationRef: `Mutation/${string}`;
20
- timestamp: string;
21
- }, {
22
- mutationRef: `Mutation/${string}`;
23
- timestamp: string;
24
- }>;
25
- data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
26
- parents: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
27
- ancestors: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
28
- }, z.ZodRawShape>, "strict", z.ZodTypeAny, {
29
- [x: string]: any;
30
- }, {
31
- [x: string]: any;
32
- }>;
2
+ export declare const BlockImageSchema: z.ZodObject<{
3
+ ref: z.ZodNonOptional<z.ZodTemplateLiteral<`BlockImage/${number}`>>;
4
+ entity: z.ZodNonOptional<z.ZodLiteral<"BlockImage">>;
5
+ created: z.ZodNonOptional<z.ZodObject<{
6
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
7
+ timestamp: z.ZodNonOptional<z.ZodString>;
8
+ }, z.core.$strict>>;
9
+ updated: z.ZodNonOptional<z.ZodObject<{
10
+ mutationRef: z.ZodNonOptional<z.ZodTemplateLiteral<`Mutation/${number}`>>;
11
+ timestamp: z.ZodNonOptional<z.ZodString>;
12
+ }, z.core.$strict>>;
13
+ data: z.ZodNonOptional<z.ZodObject<{
14
+ url: z.ZodString;
15
+ }, z.core.$strip>>;
16
+ children: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
17
+ parents: z.ZodNonOptional<z.ZodObject<{
18
+ post: z.ZodTemplateLiteral<`Post/${number}`>;
19
+ }, z.core.$strip>>;
20
+ ancestors: z.ZodNonOptional<z.ZodObject<{}, z.core.$strip>>;
21
+ }, z.core.$strict>;
@@ -1 +1 @@
1
- export declare const BlockParagraphRefSchema: import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>;
1
+ export declare const BlockParagraphRefSchema: import("zod").ZodTemplateLiteral<`BlockParagraph/${number}`>;