@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.
- package/dist/types/operations/createBlockImage.d.ts +18 -1
- package/dist/types/operations/createBlockParagraph.d.ts +18 -1
- package/dist/types/operations/createBlockRow.d.ts +18 -1
- package/dist/types/operations/createBlockTitle.d.ts +18 -1
- package/dist/types/operations/createDraft.d.ts +16 -1
- package/dist/types/operations/createPost.d.ts +23 -1
- package/dist/types/operations/deleteBlocks.d.ts +23 -1
- package/dist/types/operations/index.d.ts +226 -11
- package/dist/types/operations/testTransactionalEdits.d.ts +23 -1
- package/dist/types/operations/updatePost.d.ts +23 -1
- package/dist/types/operations/updatePostDescription.d.ts +23 -1
- package/dist/types/operations/updatePostTitle.d.ts +23 -1
- package/dist/types/schemas/BlockImageSchema.d.ts +55 -8
- package/dist/types/schemas/BlockParagraphSchema.d.ts +55 -8
- package/dist/types/schemas/BlockRowSchema.d.ts +60 -8
- package/dist/types/schemas/BlockTitleSchema.d.ts +55 -8
- package/dist/types/schemas/DraftSchema.d.ts +45 -8
- package/dist/types/schemas/PostSchema.d.ts +80 -8
- package/dist/types/schemas/index.d.ts +379 -9
- package/package.json +2 -2
|
@@ -3,5 +3,22 @@ export declare const createBlockImage: import("roc-db").WriteOperation<string, {
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `BlockImage/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
parents: {
|
|
11
|
+
post: `Post/${string}`;
|
|
12
|
+
};
|
|
13
|
+
entity: string;
|
|
14
|
+
created: {
|
|
15
|
+
mutationRef: `Mutation/${string}`;
|
|
16
|
+
timestamp: string;
|
|
17
|
+
};
|
|
18
|
+
updated: {
|
|
19
|
+
mutationRef: `Mutation/${string}`;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
};
|
|
22
|
+
children: {};
|
|
23
|
+
ancestors: {};
|
|
7
24
|
}>;
|
|
@@ -3,5 +3,22 @@ export declare const createBlockParagrah: import("roc-db").WriteOperation<string
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `BlockParagraph/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
content?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
parents: {
|
|
11
|
+
parent: `Post/${string}`;
|
|
12
|
+
};
|
|
13
|
+
entity: string;
|
|
14
|
+
created: {
|
|
15
|
+
mutationRef: `Mutation/${string}`;
|
|
16
|
+
timestamp: string;
|
|
17
|
+
};
|
|
18
|
+
updated: {
|
|
19
|
+
mutationRef: `Mutation/${string}`;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
};
|
|
22
|
+
children: {};
|
|
23
|
+
ancestors: {};
|
|
7
24
|
}>;
|
|
@@ -3,5 +3,22 @@ export declare const createBlockRow: import("roc-db").WriteOperation<string, {
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `BlockParagraph/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
content?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
parents: {
|
|
11
|
+
parent: `Post/${string}`;
|
|
12
|
+
};
|
|
13
|
+
entity: string;
|
|
14
|
+
created: {
|
|
15
|
+
mutationRef: `Mutation/${string}`;
|
|
16
|
+
timestamp: string;
|
|
17
|
+
};
|
|
18
|
+
updated: {
|
|
19
|
+
mutationRef: `Mutation/${string}`;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
};
|
|
22
|
+
children: {};
|
|
23
|
+
ancestors: {};
|
|
7
24
|
}>;
|
|
@@ -3,5 +3,22 @@ export declare const createBlockTitle: import("roc-db").WriteOperation<string, {
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `BlockTitle/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
content: string;
|
|
9
|
+
};
|
|
10
|
+
parents: {
|
|
11
|
+
post: `Post/${string}`;
|
|
12
|
+
};
|
|
13
|
+
entity: string;
|
|
14
|
+
created: {
|
|
15
|
+
mutationRef: `Mutation/${string}`;
|
|
16
|
+
timestamp: string;
|
|
17
|
+
};
|
|
18
|
+
updated: {
|
|
19
|
+
mutationRef: `Mutation/${string}`;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
};
|
|
22
|
+
children: {};
|
|
23
|
+
ancestors: {};
|
|
7
24
|
}>;
|
|
@@ -3,5 +3,20 @@ export declare const createDraft: import("roc-db").WriteOperation<string, {
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `Draft/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
postRef: `Post/${string}`;
|
|
9
|
+
};
|
|
10
|
+
parents: {};
|
|
11
|
+
entity: string;
|
|
12
|
+
created: {
|
|
13
|
+
mutationRef: `Mutation/${string}`;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
};
|
|
16
|
+
updated: {
|
|
17
|
+
mutationRef: `Mutation/${string}`;
|
|
18
|
+
timestamp: string;
|
|
19
|
+
};
|
|
20
|
+
children: {};
|
|
21
|
+
ancestors: {};
|
|
7
22
|
}>;
|
|
@@ -3,5 +3,27 @@ export declare const createPost: import("roc-db").WriteOperation<string, {
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `Post/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
title: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
text?: string | undefined;
|
|
11
|
+
slug?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
parents: {
|
|
14
|
+
author?: `User/${string}` | undefined;
|
|
15
|
+
};
|
|
16
|
+
entity: string;
|
|
17
|
+
created: {
|
|
18
|
+
mutationRef: `Mutation/${string}`;
|
|
19
|
+
timestamp: string;
|
|
20
|
+
};
|
|
21
|
+
updated: {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
};
|
|
25
|
+
children: {
|
|
26
|
+
blocks: string[];
|
|
27
|
+
};
|
|
28
|
+
ancestors: {};
|
|
7
29
|
}>;
|
|
@@ -3,5 +3,27 @@ export declare const deleteBlocks: import("roc-db").WriteOperation<string, {
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `Post/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
title: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
text?: string | undefined;
|
|
11
|
+
slug?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
parents: {
|
|
14
|
+
author?: `User/${string}` | undefined;
|
|
15
|
+
};
|
|
16
|
+
entity: string;
|
|
17
|
+
created: {
|
|
18
|
+
mutationRef: `Mutation/${string}`;
|
|
19
|
+
timestamp: string;
|
|
20
|
+
};
|
|
21
|
+
updated: {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
};
|
|
25
|
+
children: {
|
|
26
|
+
blocks: string[];
|
|
27
|
+
};
|
|
28
|
+
ancestors: {};
|
|
7
29
|
}>;
|
|
@@ -7,43 +7,170 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
|
|
|
7
7
|
name: string;
|
|
8
8
|
payload?: any;
|
|
9
9
|
}, any, {
|
|
10
|
-
|
|
10
|
+
ref: `BlockImage/${string}`;
|
|
11
|
+
data: {
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
parents: {
|
|
15
|
+
post: `Post/${string}`;
|
|
16
|
+
};
|
|
17
|
+
entity: string;
|
|
18
|
+
created: {
|
|
19
|
+
mutationRef: `Mutation/${string}`;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
};
|
|
22
|
+
updated: {
|
|
23
|
+
mutationRef: `Mutation/${string}`;
|
|
24
|
+
timestamp: string;
|
|
25
|
+
};
|
|
26
|
+
children: {};
|
|
27
|
+
ancestors: {};
|
|
11
28
|
}>, import("roc-db").WriteOperation<string, {
|
|
12
29
|
debounceCount: number;
|
|
13
30
|
name: string;
|
|
14
31
|
payload?: any;
|
|
15
32
|
}, any, {
|
|
16
|
-
|
|
33
|
+
ref: `BlockTitle/${string}`;
|
|
34
|
+
data: {
|
|
35
|
+
content: string;
|
|
36
|
+
};
|
|
37
|
+
parents: {
|
|
38
|
+
post: `Post/${string}`;
|
|
39
|
+
};
|
|
40
|
+
entity: string;
|
|
41
|
+
created: {
|
|
42
|
+
mutationRef: `Mutation/${string}`;
|
|
43
|
+
timestamp: string;
|
|
44
|
+
};
|
|
45
|
+
updated: {
|
|
46
|
+
mutationRef: `Mutation/${string}`;
|
|
47
|
+
timestamp: string;
|
|
48
|
+
};
|
|
49
|
+
children: {};
|
|
50
|
+
ancestors: {};
|
|
17
51
|
}>, import("roc-db").WriteOperation<string, {
|
|
18
52
|
debounceCount: number;
|
|
19
53
|
name: string;
|
|
20
54
|
payload?: any;
|
|
21
55
|
}, any, {
|
|
22
|
-
|
|
56
|
+
ref: `BlockParagraph/${string}`;
|
|
57
|
+
data: {
|
|
58
|
+
content?: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
parents: {
|
|
61
|
+
parent: `Post/${string}`;
|
|
62
|
+
};
|
|
63
|
+
entity: string;
|
|
64
|
+
created: {
|
|
65
|
+
mutationRef: `Mutation/${string}`;
|
|
66
|
+
timestamp: string;
|
|
67
|
+
};
|
|
68
|
+
updated: {
|
|
69
|
+
mutationRef: `Mutation/${string}`;
|
|
70
|
+
timestamp: string;
|
|
71
|
+
};
|
|
72
|
+
children: {};
|
|
73
|
+
ancestors: {};
|
|
23
74
|
}>, import("roc-db").WriteOperation<string, {
|
|
24
75
|
debounceCount: number;
|
|
25
76
|
name: string;
|
|
26
77
|
payload?: any;
|
|
27
78
|
}, any, {
|
|
28
|
-
|
|
79
|
+
ref: `BlockParagraph/${string}`;
|
|
80
|
+
data: {
|
|
81
|
+
content?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
parents: {
|
|
84
|
+
parent: `Post/${string}`;
|
|
85
|
+
};
|
|
86
|
+
entity: string;
|
|
87
|
+
created: {
|
|
88
|
+
mutationRef: `Mutation/${string}`;
|
|
89
|
+
timestamp: string;
|
|
90
|
+
};
|
|
91
|
+
updated: {
|
|
92
|
+
mutationRef: `Mutation/${string}`;
|
|
93
|
+
timestamp: string;
|
|
94
|
+
};
|
|
95
|
+
children: {};
|
|
96
|
+
ancestors: {};
|
|
29
97
|
}>, import("roc-db").WriteOperation<string, {
|
|
30
98
|
debounceCount: number;
|
|
31
99
|
name: string;
|
|
32
100
|
payload?: any;
|
|
33
101
|
}, any, {
|
|
34
|
-
|
|
102
|
+
ref: `Draft/${string}`;
|
|
103
|
+
data: {
|
|
104
|
+
postRef: `Post/${string}`;
|
|
105
|
+
};
|
|
106
|
+
parents: {};
|
|
107
|
+
entity: string;
|
|
108
|
+
created: {
|
|
109
|
+
mutationRef: `Mutation/${string}`;
|
|
110
|
+
timestamp: string;
|
|
111
|
+
};
|
|
112
|
+
updated: {
|
|
113
|
+
mutationRef: `Mutation/${string}`;
|
|
114
|
+
timestamp: string;
|
|
115
|
+
};
|
|
116
|
+
children: {};
|
|
117
|
+
ancestors: {};
|
|
35
118
|
}>, import("roc-db").WriteOperation<string, {
|
|
36
119
|
debounceCount: number;
|
|
37
120
|
name: string;
|
|
38
121
|
payload?: any;
|
|
39
122
|
}, any, {
|
|
40
|
-
|
|
123
|
+
ref: `Post/${string}`;
|
|
124
|
+
data: {
|
|
125
|
+
title: string;
|
|
126
|
+
tags: string[];
|
|
127
|
+
text?: string | undefined;
|
|
128
|
+
slug?: string | undefined;
|
|
129
|
+
};
|
|
130
|
+
parents: {
|
|
131
|
+
author?: `User/${string}` | undefined;
|
|
132
|
+
};
|
|
133
|
+
entity: string;
|
|
134
|
+
created: {
|
|
135
|
+
mutationRef: `Mutation/${string}`;
|
|
136
|
+
timestamp: string;
|
|
137
|
+
};
|
|
138
|
+
updated: {
|
|
139
|
+
mutationRef: `Mutation/${string}`;
|
|
140
|
+
timestamp: string;
|
|
141
|
+
};
|
|
142
|
+
children: {
|
|
143
|
+
blocks: string[];
|
|
144
|
+
};
|
|
145
|
+
ancestors: {};
|
|
41
146
|
}>, import("roc-db").WriteOperation<string, {
|
|
42
147
|
debounceCount: number;
|
|
43
148
|
name: string;
|
|
44
149
|
payload?: any;
|
|
45
150
|
}, any, {
|
|
46
|
-
|
|
151
|
+
ref: `Post/${string}`;
|
|
152
|
+
data: {
|
|
153
|
+
title: string;
|
|
154
|
+
tags: string[];
|
|
155
|
+
text?: string | undefined;
|
|
156
|
+
slug?: string | undefined;
|
|
157
|
+
};
|
|
158
|
+
parents: {
|
|
159
|
+
author?: `User/${string}` | undefined;
|
|
160
|
+
};
|
|
161
|
+
entity: string;
|
|
162
|
+
created: {
|
|
163
|
+
mutationRef: `Mutation/${string}`;
|
|
164
|
+
timestamp: string;
|
|
165
|
+
};
|
|
166
|
+
updated: {
|
|
167
|
+
mutationRef: `Mutation/${string}`;
|
|
168
|
+
timestamp: string;
|
|
169
|
+
};
|
|
170
|
+
children: {
|
|
171
|
+
blocks: string[];
|
|
172
|
+
};
|
|
173
|
+
ancestors: {};
|
|
47
174
|
}>, import("roc-db").WriteOperation<string, {
|
|
48
175
|
debounceCount: number;
|
|
49
176
|
name: string;
|
|
@@ -57,7 +184,29 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
|
|
|
57
184
|
name: string;
|
|
58
185
|
payload?: any;
|
|
59
186
|
}, any, {
|
|
60
|
-
|
|
187
|
+
ref: `Post/${string}`;
|
|
188
|
+
data: {
|
|
189
|
+
title: string;
|
|
190
|
+
tags: string[];
|
|
191
|
+
text?: string | undefined;
|
|
192
|
+
slug?: string | undefined;
|
|
193
|
+
};
|
|
194
|
+
parents: {
|
|
195
|
+
author?: `User/${string}` | undefined;
|
|
196
|
+
};
|
|
197
|
+
entity: string;
|
|
198
|
+
created: {
|
|
199
|
+
mutationRef: `Mutation/${string}`;
|
|
200
|
+
timestamp: string;
|
|
201
|
+
};
|
|
202
|
+
updated: {
|
|
203
|
+
mutationRef: `Mutation/${string}`;
|
|
204
|
+
timestamp: string;
|
|
205
|
+
};
|
|
206
|
+
children: {
|
|
207
|
+
blocks: string[];
|
|
208
|
+
};
|
|
209
|
+
ancestors: {};
|
|
61
210
|
}>, import("roc-db").WriteOperation<string, {
|
|
62
211
|
debounceCount: number;
|
|
63
212
|
name: string;
|
|
@@ -67,17 +216,83 @@ export declare const operations: readonly [import("roc-db").WriteOperation<strin
|
|
|
67
216
|
name: string;
|
|
68
217
|
payload?: any;
|
|
69
218
|
}, any, {
|
|
70
|
-
|
|
219
|
+
ref: `Post/${string}`;
|
|
220
|
+
data: {
|
|
221
|
+
title: string;
|
|
222
|
+
tags: string[];
|
|
223
|
+
text?: string | undefined;
|
|
224
|
+
slug?: string | undefined;
|
|
225
|
+
};
|
|
226
|
+
parents: {
|
|
227
|
+
author?: `User/${string}` | undefined;
|
|
228
|
+
};
|
|
229
|
+
entity: string;
|
|
230
|
+
created: {
|
|
231
|
+
mutationRef: `Mutation/${string}`;
|
|
232
|
+
timestamp: string;
|
|
233
|
+
};
|
|
234
|
+
updated: {
|
|
235
|
+
mutationRef: `Mutation/${string}`;
|
|
236
|
+
timestamp: string;
|
|
237
|
+
};
|
|
238
|
+
children: {
|
|
239
|
+
blocks: string[];
|
|
240
|
+
};
|
|
241
|
+
ancestors: {};
|
|
71
242
|
}>, import("roc-db").WriteOperation<string, {
|
|
72
243
|
debounceCount: number;
|
|
73
244
|
name: string;
|
|
74
245
|
payload?: any;
|
|
75
246
|
}, any, {
|
|
76
|
-
|
|
247
|
+
ref: `Post/${string}`;
|
|
248
|
+
data: {
|
|
249
|
+
title: string;
|
|
250
|
+
tags: string[];
|
|
251
|
+
text?: string | undefined;
|
|
252
|
+
slug?: string | undefined;
|
|
253
|
+
};
|
|
254
|
+
parents: {
|
|
255
|
+
author?: `User/${string}` | undefined;
|
|
256
|
+
};
|
|
257
|
+
entity: string;
|
|
258
|
+
created: {
|
|
259
|
+
mutationRef: `Mutation/${string}`;
|
|
260
|
+
timestamp: string;
|
|
261
|
+
};
|
|
262
|
+
updated: {
|
|
263
|
+
mutationRef: `Mutation/${string}`;
|
|
264
|
+
timestamp: string;
|
|
265
|
+
};
|
|
266
|
+
children: {
|
|
267
|
+
blocks: string[];
|
|
268
|
+
};
|
|
269
|
+
ancestors: {};
|
|
77
270
|
}>, import("roc-db").WriteOperation<string, {
|
|
78
271
|
debounceCount: number;
|
|
79
272
|
name: string;
|
|
80
273
|
payload?: any;
|
|
81
274
|
}, any, {
|
|
82
|
-
|
|
275
|
+
ref: `Post/${string}`;
|
|
276
|
+
data: {
|
|
277
|
+
title: string;
|
|
278
|
+
tags: string[];
|
|
279
|
+
text?: string | undefined;
|
|
280
|
+
slug?: string | undefined;
|
|
281
|
+
};
|
|
282
|
+
parents: {
|
|
283
|
+
author?: `User/${string}` | undefined;
|
|
284
|
+
};
|
|
285
|
+
entity: string;
|
|
286
|
+
created: {
|
|
287
|
+
mutationRef: `Mutation/${string}`;
|
|
288
|
+
timestamp: string;
|
|
289
|
+
};
|
|
290
|
+
updated: {
|
|
291
|
+
mutationRef: `Mutation/${string}`;
|
|
292
|
+
timestamp: string;
|
|
293
|
+
};
|
|
294
|
+
children: {
|
|
295
|
+
blocks: string[];
|
|
296
|
+
};
|
|
297
|
+
ancestors: {};
|
|
83
298
|
}>];
|
|
@@ -3,5 +3,27 @@ export declare const testTransactionalEdits: import("roc-db").WriteOperation<str
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `Post/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
title: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
text?: string | undefined;
|
|
11
|
+
slug?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
parents: {
|
|
14
|
+
author?: `User/${string}` | undefined;
|
|
15
|
+
};
|
|
16
|
+
entity: string;
|
|
17
|
+
created: {
|
|
18
|
+
mutationRef: `Mutation/${string}`;
|
|
19
|
+
timestamp: string;
|
|
20
|
+
};
|
|
21
|
+
updated: {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
};
|
|
25
|
+
children: {
|
|
26
|
+
blocks: string[];
|
|
27
|
+
};
|
|
28
|
+
ancestors: {};
|
|
7
29
|
}>;
|
|
@@ -3,5 +3,27 @@ export declare const updatePost: import("roc-db").WriteOperation<string, {
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `Post/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
title: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
text?: string | undefined;
|
|
11
|
+
slug?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
parents: {
|
|
14
|
+
author?: `User/${string}` | undefined;
|
|
15
|
+
};
|
|
16
|
+
entity: string;
|
|
17
|
+
created: {
|
|
18
|
+
mutationRef: `Mutation/${string}`;
|
|
19
|
+
timestamp: string;
|
|
20
|
+
};
|
|
21
|
+
updated: {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
};
|
|
25
|
+
children: {
|
|
26
|
+
blocks: string[];
|
|
27
|
+
};
|
|
28
|
+
ancestors: {};
|
|
7
29
|
}>;
|
|
@@ -3,5 +3,27 @@ export declare const updatePostDescription: import("roc-db").WriteOperation<stri
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `Post/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
title: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
text?: string | undefined;
|
|
11
|
+
slug?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
parents: {
|
|
14
|
+
author?: `User/${string}` | undefined;
|
|
15
|
+
};
|
|
16
|
+
entity: string;
|
|
17
|
+
created: {
|
|
18
|
+
mutationRef: `Mutation/${string}`;
|
|
19
|
+
timestamp: string;
|
|
20
|
+
};
|
|
21
|
+
updated: {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
};
|
|
25
|
+
children: {
|
|
26
|
+
blocks: string[];
|
|
27
|
+
};
|
|
28
|
+
ancestors: {};
|
|
7
29
|
}>;
|
|
@@ -3,5 +3,27 @@ export declare const updatePostTitle: import("roc-db").WriteOperation<string, {
|
|
|
3
3
|
name: string;
|
|
4
4
|
payload?: any;
|
|
5
5
|
}, any, {
|
|
6
|
-
|
|
6
|
+
ref: `Post/${string}`;
|
|
7
|
+
data: {
|
|
8
|
+
title: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
text?: string | undefined;
|
|
11
|
+
slug?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
parents: {
|
|
14
|
+
author?: `User/${string}` | undefined;
|
|
15
|
+
};
|
|
16
|
+
entity: string;
|
|
17
|
+
created: {
|
|
18
|
+
mutationRef: `Mutation/${string}`;
|
|
19
|
+
timestamp: string;
|
|
20
|
+
};
|
|
21
|
+
updated: {
|
|
22
|
+
mutationRef: `Mutation/${string}`;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
};
|
|
25
|
+
children: {
|
|
26
|
+
blocks: string[];
|
|
27
|
+
};
|
|
28
|
+
ancestors: {};
|
|
7
29
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const BlockImageSchema: z.ZodObject<
|
|
3
|
-
ref: z.ZodType
|
|
2
|
+
export declare const BlockImageSchema: z.ZodObject<{
|
|
3
|
+
ref: z.ZodType<`BlockImage/${string}`, z.ZodTypeDef, `BlockImage/${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 BlockImageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
22
22
|
mutationRef: `Mutation/${string}`;
|
|
23
23
|
timestamp: string;
|
|
24
24
|
}>;
|
|
25
|
-
data: z.ZodObject<{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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: 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
|
-
|
|
61
|
+
ref: `BlockImage/${string}`;
|
|
62
|
+
data: {
|
|
63
|
+
url: 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
|
}>;
|