@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
@@ -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
- }>;