@roc-db/test-utils 0.2.0-pre.44 → 0.2.0-pre.45

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.
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- export declare const BlockParagraphSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
2
+ export declare const BlockParagraphSchema: z.ZodObject<{
3
+ ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
4
4
  entity: z.ZodString;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
@@ -22,12 +22,59 @@ export declare const BlockParagraphSchema: z.ZodObject<z.objectUtil.extendShape<
22
22
  mutationRef: `Mutation/${string}`;
23
23
  timestamp: string;
24
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;
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: string;
50
+ created: {
51
+ mutationRef: `Mutation/${string}`;
52
+ timestamp: string;
53
+ };
54
+ updated: {
55
+ mutationRef: `Mutation/${string}`;
56
+ timestamp: string;
57
+ };
58
+ children: {};
59
+ ancestors: {};
30
60
  }, {
31
- [x: string]: any;
61
+ ref: `BlockParagraph/${string}`;
62
+ data: {
63
+ content?: string | undefined;
64
+ };
65
+ parents: {
66
+ parent: `Post/${string}`;
67
+ };
68
+ entity: string;
69
+ created: {
70
+ mutationRef: `Mutation/${string}`;
71
+ timestamp: string;
72
+ };
73
+ updated: {
74
+ mutationRef: `Mutation/${string}`;
75
+ timestamp: string;
76
+ };
77
+ children: {};
78
+ ancestors: {};
32
79
  }>;
33
80
  export type BlockParagraph = z.infer<typeof BlockParagraphSchema>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- export declare const BlockRowSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
2
+ export declare const BlockRowSchema: z.ZodObject<{
3
+ ref: z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>;
4
4
  entity: z.ZodString;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
@@ -22,12 +22,64 @@ export declare const BlockRowSchema: z.ZodObject<z.objectUtil.extendShape<{
22
22
  mutationRef: `Mutation/${string}`;
23
23
  timestamp: string;
24
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;
25
+ data: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
26
+ children: z.ZodObject<{
27
+ blocks: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
28
+ }, "strip", z.ZodTypeAny, {
29
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
30
+ }, {
31
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
32
+ }>;
33
+ parents: z.ZodObject<{
34
+ post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
35
+ block: z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ post: `Post/${string}`;
38
+ block: `BlockParagraph/${string}` | `BlockRow/${string}`;
39
+ }, {
40
+ post: `Post/${string}`;
41
+ block: `BlockParagraph/${string}` | `BlockRow/${string}`;
42
+ }>;
43
+ ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
44
+ }, "strict", z.ZodTypeAny, {
45
+ ref: `BlockRow/${string}`;
46
+ data: {};
47
+ parents: {
48
+ post: `Post/${string}`;
49
+ block: `BlockParagraph/${string}` | `BlockRow/${string}`;
50
+ };
51
+ entity: string;
52
+ created: {
53
+ mutationRef: `Mutation/${string}`;
54
+ timestamp: string;
55
+ };
56
+ updated: {
57
+ mutationRef: `Mutation/${string}`;
58
+ timestamp: string;
59
+ };
60
+ children: {
61
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
62
+ };
63
+ ancestors: {};
30
64
  }, {
31
- [x: string]: any;
65
+ ref: `BlockRow/${string}`;
66
+ data: {};
67
+ parents: {
68
+ post: `Post/${string}`;
69
+ block: `BlockParagraph/${string}` | `BlockRow/${string}`;
70
+ };
71
+ entity: string;
72
+ created: {
73
+ mutationRef: `Mutation/${string}`;
74
+ timestamp: string;
75
+ };
76
+ updated: {
77
+ mutationRef: `Mutation/${string}`;
78
+ timestamp: string;
79
+ };
80
+ children: {
81
+ blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
82
+ };
83
+ ancestors: {};
32
84
  }>;
33
85
  export type BlockRow = z.infer<typeof BlockRowSchema>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- export declare const BlockTitleSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
2
+ export declare const BlockTitleSchema: z.ZodObject<{
3
+ ref: z.ZodType<`BlockTitle/${string}`, z.ZodTypeDef, `BlockTitle/${string}`>;
4
4
  entity: z.ZodString;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
@@ -22,11 +22,58 @@ export declare const BlockTitleSchema: z.ZodObject<z.objectUtil.extendShape<{
22
22
  mutationRef: `Mutation/${string}`;
23
23
  timestamp: string;
24
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;
25
+ data: z.ZodObject<{
26
+ content: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ content: string;
29
+ }, {
30
+ content: 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: `BlockTitle/${string}`;
43
+ data: {
44
+ content: string;
45
+ };
46
+ parents: {
47
+ post: `Post/${string}`;
48
+ };
49
+ entity: string;
50
+ created: {
51
+ mutationRef: `Mutation/${string}`;
52
+ timestamp: string;
53
+ };
54
+ updated: {
55
+ mutationRef: `Mutation/${string}`;
56
+ timestamp: string;
57
+ };
58
+ children: {};
59
+ ancestors: {};
30
60
  }, {
31
- [x: string]: any;
61
+ ref: `BlockTitle/${string}`;
62
+ data: {
63
+ content: string;
64
+ };
65
+ parents: {
66
+ post: `Post/${string}`;
67
+ };
68
+ entity: string;
69
+ created: {
70
+ mutationRef: `Mutation/${string}`;
71
+ timestamp: string;
72
+ };
73
+ updated: {
74
+ mutationRef: `Mutation/${string}`;
75
+ timestamp: string;
76
+ };
77
+ children: {};
78
+ ancestors: {};
32
79
  }>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- export declare const DraftSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
2
+ export declare const DraftSchema: z.ZodObject<{
3
+ ref: z.ZodType<`Draft/${string}`, z.ZodTypeDef, `Draft/${string}`>;
4
4
  entity: z.ZodString;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
@@ -22,11 +22,48 @@ export declare const DraftSchema: z.ZodObject<z.objectUtil.extendShape<{
22
22
  mutationRef: `Mutation/${string}`;
23
23
  timestamp: string;
24
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;
25
+ data: z.ZodObject<{
26
+ postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ postRef: `Post/${string}`;
29
+ }, {
30
+ postRef: `Post/${string}`;
31
+ }>;
32
+ children: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
33
+ parents: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
34
+ ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
35
+ }, "strict", z.ZodTypeAny, {
36
+ ref: `Draft/${string}`;
37
+ data: {
38
+ postRef: `Post/${string}`;
39
+ };
40
+ parents: {};
41
+ entity: string;
42
+ created: {
43
+ mutationRef: `Mutation/${string}`;
44
+ timestamp: string;
45
+ };
46
+ updated: {
47
+ mutationRef: `Mutation/${string}`;
48
+ timestamp: string;
49
+ };
50
+ children: {};
51
+ ancestors: {};
30
52
  }, {
31
- [x: string]: any;
53
+ ref: `Draft/${string}`;
54
+ data: {
55
+ postRef: `Post/${string}`;
56
+ };
57
+ parents: {};
58
+ entity: string;
59
+ created: {
60
+ mutationRef: `Mutation/${string}`;
61
+ timestamp: string;
62
+ };
63
+ updated: {
64
+ mutationRef: `Mutation/${string}`;
65
+ timestamp: string;
66
+ };
67
+ children: {};
68
+ ancestors: {};
32
69
  }>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- export declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- ref: z.ZodType<never, z.ZodTypeDef, never>;
2
+ export declare const PostSchema: z.ZodObject<{
3
+ ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
4
  entity: z.ZodString;
5
5
  created: z.ZodObject<{
6
6
  mutationRef: z.ZodType<`Mutation/${string}`, z.ZodTypeDef, `Mutation/${string}`>;
@@ -22,12 +22,84 @@ export declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
22
22
  mutationRef: `Mutation/${string}`;
23
23
  timestamp: string;
24
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;
25
+ data: z.ZodObject<{
26
+ title: z.ZodString;
27
+ text: z.ZodOptional<z.ZodString>;
28
+ tags: z.ZodArray<z.ZodString, "many">;
29
+ slug: z.ZodOptional<z.ZodString>;
30
+ }, "strip", z.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
+ }>;
41
+ children: z.ZodObject<{
42
+ blocks: z.ZodArray<z.ZodString, "many">;
43
+ }, "strip", z.ZodTypeAny, {
44
+ blocks: string[];
45
+ }, {
46
+ blocks: string[];
47
+ }>;
48
+ parents: z.ZodObject<{
49
+ author: z.ZodOptional<z.ZodType<`User/${string}`, z.ZodTypeDef, `User/${string}`>>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ author?: `User/${string}` | undefined;
52
+ }, {
53
+ author?: `User/${string}` | undefined;
54
+ }>;
55
+ ancestors: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
56
+ }, "strict", z.ZodTypeAny, {
57
+ ref: `Post/${string}`;
58
+ data: {
59
+ title: string;
60
+ tags: string[];
61
+ text?: string | undefined;
62
+ slug?: string | undefined;
63
+ };
64
+ parents: {
65
+ author?: `User/${string}` | undefined;
66
+ };
67
+ entity: string;
68
+ created: {
69
+ mutationRef: `Mutation/${string}`;
70
+ timestamp: string;
71
+ };
72
+ updated: {
73
+ mutationRef: `Mutation/${string}`;
74
+ timestamp: string;
75
+ };
76
+ children: {
77
+ blocks: string[];
78
+ };
79
+ ancestors: {};
30
80
  }, {
31
- [x: string]: any;
81
+ ref: `Post/${string}`;
82
+ data: {
83
+ title: string;
84
+ tags: string[];
85
+ text?: string | undefined;
86
+ slug?: string | undefined;
87
+ };
88
+ parents: {
89
+ author?: `User/${string}` | undefined;
90
+ };
91
+ entity: string;
92
+ created: {
93
+ mutationRef: `Mutation/${string}`;
94
+ timestamp: string;
95
+ };
96
+ updated: {
97
+ mutationRef: `Mutation/${string}`;
98
+ timestamp: string;
99
+ };
100
+ children: {
101
+ blocks: string[];
102
+ };
103
+ ancestors: {};
32
104
  }>;
33
105
  export type Post = z.infer<typeof PostSchema>;