@roc-db/test-utils 0.2.0-pre.47 → 0.2.0-pre.49
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/index.js +85 -131
- package/dist/types/operations/applyDraft.d.ts +1 -5
- package/dist/types/operations/createBlockImage.d.ts +8 -24
- package/dist/types/operations/createBlockParagraph.d.ts +8 -24
- package/dist/types/operations/createBlockRow.d.ts +8 -24
- package/dist/types/operations/createBlockTitle.d.ts +8 -24
- package/dist/types/operations/createDraft.d.ts +8 -22
- package/dist/types/operations/createPost.d.ts +14 -29
- package/dist/types/operations/deleteBlocks.d.ts +2 -29
- package/dist/types/operations/deleteDraft.d.ts +1 -5
- package/dist/types/operations/deletePost.d.ts +1 -5
- package/dist/types/operations/index.d.ts +98 -294
- package/dist/types/operations/moveBlocks.d.ts +11 -5
- package/dist/types/operations/testTransactionalEdits.d.ts +14 -29
- package/dist/types/operations/updateBlockParagraph.d.ts +11 -5
- package/dist/types/operations/updatePost.d.ts +16 -28
- package/dist/types/operations/updatePostDescription.d.ts +10 -28
- package/dist/types/operations/updatePostTitle.d.ts +10 -28
- package/dist/types/schemas/DraftSchema.d.ts +12 -12
- package/dist/types/schemas/index.d.ts +12 -12
- package/package.json +2 -2
- package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +0 -64
- package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +0 -64
- package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +0 -64
- package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +0 -64
- package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +0 -64
- package/dist/types/schemas/CreateDraftMutationSchema.d.ts +0 -64
- package/dist/types/schemas/DeleteBlocksMutationSchema.d.ts +0 -54
- package/dist/types/schemas/DeleteDraftMutationSchema.d.ts +0 -53
- package/dist/types/schemas/DeletePostMutationSchema.d.ts +0 -53
- package/dist/types/schemas/MoveBlocksMutationSchema.d.ts +0 -69
- package/dist/types/schemas/TestTransactionalEditsMutationSchema.d.ts +0 -74
- package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +0 -69
- package/dist/types/schemas/UpdatePostDescriptionMutationSchema.d.ts +0 -69
|
@@ -340,22 +340,22 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
340
340
|
mutationRef: `Mutation/${string}`;
|
|
341
341
|
timestamp: string;
|
|
342
342
|
}>;
|
|
343
|
-
data: import("zod").ZodObject<{
|
|
344
|
-
|
|
343
|
+
data: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
344
|
+
children: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
345
|
+
parents: import("zod").ZodObject<{
|
|
346
|
+
post: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
|
|
345
347
|
}, "strip", import("zod").ZodTypeAny, {
|
|
346
|
-
|
|
348
|
+
post: `Post/${string}`;
|
|
347
349
|
}, {
|
|
348
|
-
|
|
350
|
+
post: `Post/${string}`;
|
|
349
351
|
}>;
|
|
350
|
-
children: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
351
|
-
parents: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
352
352
|
ancestors: import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>;
|
|
353
353
|
}, "strict", import("zod").ZodTypeAny, {
|
|
354
354
|
ref: `Draft/${string}`;
|
|
355
|
-
data: {
|
|
356
|
-
|
|
355
|
+
data: {};
|
|
356
|
+
parents: {
|
|
357
|
+
post: `Post/${string}`;
|
|
357
358
|
};
|
|
358
|
-
parents: {};
|
|
359
359
|
entity: "Draft";
|
|
360
360
|
created: {
|
|
361
361
|
mutationRef: `Mutation/${string}`;
|
|
@@ -369,10 +369,10 @@ export declare const entities: (import("zod").ZodObject<{
|
|
|
369
369
|
ancestors: {};
|
|
370
370
|
}, {
|
|
371
371
|
ref: `Draft/${string}`;
|
|
372
|
-
data: {
|
|
373
|
-
|
|
372
|
+
data: {};
|
|
373
|
+
parents: {
|
|
374
|
+
post: `Post/${string}`;
|
|
374
375
|
};
|
|
375
|
-
parents: {};
|
|
376
376
|
entity: "Draft";
|
|
377
377
|
created: {
|
|
378
378
|
mutationRef: `Mutation/${string}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roc-db/test-utils",
|
|
3
|
-
"version": "0.2.0-pre.
|
|
3
|
+
"version": "0.2.0-pre.49",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"roc-db": "0.2.0-pre.
|
|
20
|
+
"roc-db": "0.2.0-pre.49",
|
|
21
21
|
"zod": "3.24.2"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [],
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ApplyDraftMutationSchema: 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.ZodAny, "many">;
|
|
8
|
-
debounceCount: z.ZodNumber;
|
|
9
|
-
identityRef: z.ZodString;
|
|
10
|
-
sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, {
|
|
13
|
-
operation: z.ZodObject<{
|
|
14
|
-
name: z.ZodLiteral<"applyDraft">;
|
|
15
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
version: number;
|
|
18
|
-
name: "applyDraft";
|
|
19
|
-
}, {
|
|
20
|
-
name: "applyDraft";
|
|
21
|
-
version?: number | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
-
payload: z.ZodObject<{
|
|
25
|
-
ref: z.ZodType<`Draft/${string}`, z.ZodTypeDef, `Draft/${string}`>;
|
|
26
|
-
}, "strict", z.ZodTypeAny, {
|
|
27
|
-
ref: `Draft/${string}`;
|
|
28
|
-
}, {
|
|
29
|
-
ref: `Draft/${string}`;
|
|
30
|
-
}>;
|
|
31
|
-
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
32
|
-
}>, "strict", z.ZodTypeAny, {
|
|
33
|
-
ref: `Mutation/${string}`;
|
|
34
|
-
timestamp: string;
|
|
35
|
-
changeSetRef: null;
|
|
36
|
-
payload: {
|
|
37
|
-
ref: `Draft/${string}`;
|
|
38
|
-
};
|
|
39
|
-
log: any[];
|
|
40
|
-
debounceCount: number;
|
|
41
|
-
identityRef: string;
|
|
42
|
-
operation: {
|
|
43
|
-
version: number;
|
|
44
|
-
name: "applyDraft";
|
|
45
|
-
};
|
|
46
|
-
sessionRef?: string | null | undefined;
|
|
47
|
-
persistedAt?: string | null | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
ref: `Mutation/${string}`;
|
|
50
|
-
timestamp: string;
|
|
51
|
-
changeSetRef: null;
|
|
52
|
-
payload: {
|
|
53
|
-
ref: `Draft/${string}`;
|
|
54
|
-
};
|
|
55
|
-
log: any[];
|
|
56
|
-
debounceCount: number;
|
|
57
|
-
identityRef: string;
|
|
58
|
-
operation: {
|
|
59
|
-
name: "applyDraft";
|
|
60
|
-
version?: number | undefined;
|
|
61
|
-
};
|
|
62
|
-
sessionRef?: string | null | undefined;
|
|
63
|
-
persistedAt?: string | null | undefined;
|
|
64
|
-
}>;
|
|
@@ -1,64 +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.ZodAny, "many">;
|
|
8
|
-
debounceCount: z.ZodNumber;
|
|
9
|
-
identityRef: z.ZodString;
|
|
10
|
-
sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, {
|
|
13
|
-
operation: z.ZodObject<{
|
|
14
|
-
name: z.ZodLiteral<"createBlockImage">;
|
|
15
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
version: number;
|
|
18
|
-
name: "createBlockImage";
|
|
19
|
-
}, {
|
|
20
|
-
name: "createBlockImage";
|
|
21
|
-
version?: number | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
-
payload: z.ZodObject<{
|
|
25
|
-
postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
26
|
-
}, "strict", z.ZodTypeAny, {
|
|
27
|
-
postRef: `Post/${string}`;
|
|
28
|
-
}, {
|
|
29
|
-
postRef: `Post/${string}`;
|
|
30
|
-
}>;
|
|
31
|
-
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
32
|
-
}>, "strict", z.ZodTypeAny, {
|
|
33
|
-
ref: `Mutation/${string}`;
|
|
34
|
-
timestamp: string;
|
|
35
|
-
changeSetRef: null;
|
|
36
|
-
payload: {
|
|
37
|
-
postRef: `Post/${string}`;
|
|
38
|
-
};
|
|
39
|
-
log: any[];
|
|
40
|
-
debounceCount: number;
|
|
41
|
-
identityRef: string;
|
|
42
|
-
operation: {
|
|
43
|
-
version: number;
|
|
44
|
-
name: "createBlockImage";
|
|
45
|
-
};
|
|
46
|
-
sessionRef?: string | null | undefined;
|
|
47
|
-
persistedAt?: string | null | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
ref: `Mutation/${string}`;
|
|
50
|
-
timestamp: string;
|
|
51
|
-
changeSetRef: null;
|
|
52
|
-
payload: {
|
|
53
|
-
postRef: `Post/${string}`;
|
|
54
|
-
};
|
|
55
|
-
log: any[];
|
|
56
|
-
debounceCount: number;
|
|
57
|
-
identityRef: string;
|
|
58
|
-
operation: {
|
|
59
|
-
name: "createBlockImage";
|
|
60
|
-
version?: number | undefined;
|
|
61
|
-
};
|
|
62
|
-
sessionRef?: string | null | undefined;
|
|
63
|
-
persistedAt?: string | null | undefined;
|
|
64
|
-
}>;
|
|
@@ -1,64 +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.ZodAny, "many">;
|
|
8
|
-
debounceCount: z.ZodNumber;
|
|
9
|
-
identityRef: z.ZodString;
|
|
10
|
-
sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, {
|
|
13
|
-
operation: z.ZodObject<{
|
|
14
|
-
name: z.ZodLiteral<"createBlockParagraph">;
|
|
15
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
version: number;
|
|
18
|
-
name: "createBlockParagraph";
|
|
19
|
-
}, {
|
|
20
|
-
name: "createBlockParagraph";
|
|
21
|
-
version?: number | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
-
payload: z.ZodObject<{
|
|
25
|
-
parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
|
|
26
|
-
}, "strict", z.ZodTypeAny, {
|
|
27
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
28
|
-
}, {
|
|
29
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
30
|
-
}>;
|
|
31
|
-
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
32
|
-
}>, "strict", z.ZodTypeAny, {
|
|
33
|
-
ref: `Mutation/${string}`;
|
|
34
|
-
timestamp: string;
|
|
35
|
-
changeSetRef: null;
|
|
36
|
-
payload: {
|
|
37
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
38
|
-
};
|
|
39
|
-
log: any[];
|
|
40
|
-
debounceCount: number;
|
|
41
|
-
identityRef: string;
|
|
42
|
-
operation: {
|
|
43
|
-
version: number;
|
|
44
|
-
name: "createBlockParagraph";
|
|
45
|
-
};
|
|
46
|
-
sessionRef?: string | null | undefined;
|
|
47
|
-
persistedAt?: string | null | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
ref: `Mutation/${string}`;
|
|
50
|
-
timestamp: string;
|
|
51
|
-
changeSetRef: null;
|
|
52
|
-
payload: {
|
|
53
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
54
|
-
};
|
|
55
|
-
log: any[];
|
|
56
|
-
debounceCount: number;
|
|
57
|
-
identityRef: string;
|
|
58
|
-
operation: {
|
|
59
|
-
name: "createBlockParagraph";
|
|
60
|
-
version?: number | undefined;
|
|
61
|
-
};
|
|
62
|
-
sessionRef?: string | null | undefined;
|
|
63
|
-
persistedAt?: string | null | undefined;
|
|
64
|
-
}>;
|
|
@@ -1,64 +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.ZodAny, "many">;
|
|
8
|
-
debounceCount: z.ZodNumber;
|
|
9
|
-
identityRef: z.ZodString;
|
|
10
|
-
sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, {
|
|
13
|
-
operation: z.ZodObject<{
|
|
14
|
-
name: z.ZodLiteral<"createBlockRow">;
|
|
15
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
version: number;
|
|
18
|
-
name: "createBlockRow";
|
|
19
|
-
}, {
|
|
20
|
-
name: "createBlockRow";
|
|
21
|
-
version?: number | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
-
payload: z.ZodObject<{
|
|
25
|
-
parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
|
|
26
|
-
}, "strict", z.ZodTypeAny, {
|
|
27
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
28
|
-
}, {
|
|
29
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
30
|
-
}>;
|
|
31
|
-
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
32
|
-
}>, "strict", z.ZodTypeAny, {
|
|
33
|
-
ref: `Mutation/${string}`;
|
|
34
|
-
timestamp: string;
|
|
35
|
-
changeSetRef: null;
|
|
36
|
-
payload: {
|
|
37
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
38
|
-
};
|
|
39
|
-
log: any[];
|
|
40
|
-
debounceCount: number;
|
|
41
|
-
identityRef: string;
|
|
42
|
-
operation: {
|
|
43
|
-
version: number;
|
|
44
|
-
name: "createBlockRow";
|
|
45
|
-
};
|
|
46
|
-
sessionRef?: string | null | undefined;
|
|
47
|
-
persistedAt?: string | null | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
ref: `Mutation/${string}`;
|
|
50
|
-
timestamp: string;
|
|
51
|
-
changeSetRef: null;
|
|
52
|
-
payload: {
|
|
53
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
54
|
-
};
|
|
55
|
-
log: any[];
|
|
56
|
-
debounceCount: number;
|
|
57
|
-
identityRef: string;
|
|
58
|
-
operation: {
|
|
59
|
-
name: "createBlockRow";
|
|
60
|
-
version?: number | undefined;
|
|
61
|
-
};
|
|
62
|
-
sessionRef?: string | null | undefined;
|
|
63
|
-
persistedAt?: string | null | undefined;
|
|
64
|
-
}>;
|
|
@@ -1,64 +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.ZodAny, "many">;
|
|
8
|
-
debounceCount: z.ZodNumber;
|
|
9
|
-
identityRef: z.ZodString;
|
|
10
|
-
sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, {
|
|
13
|
-
operation: z.ZodObject<{
|
|
14
|
-
name: z.ZodLiteral<"createBlockTitle">;
|
|
15
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
version: number;
|
|
18
|
-
name: "createBlockTitle";
|
|
19
|
-
}, {
|
|
20
|
-
name: "createBlockTitle";
|
|
21
|
-
version?: number | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
-
payload: z.ZodObject<{
|
|
25
|
-
parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
|
|
26
|
-
}, "strict", z.ZodTypeAny, {
|
|
27
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
28
|
-
}, {
|
|
29
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
30
|
-
}>;
|
|
31
|
-
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
32
|
-
}>, "strict", z.ZodTypeAny, {
|
|
33
|
-
ref: `Mutation/${string}`;
|
|
34
|
-
timestamp: string;
|
|
35
|
-
changeSetRef: null;
|
|
36
|
-
payload: {
|
|
37
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
38
|
-
};
|
|
39
|
-
log: any[];
|
|
40
|
-
debounceCount: number;
|
|
41
|
-
identityRef: string;
|
|
42
|
-
operation: {
|
|
43
|
-
version: number;
|
|
44
|
-
name: "createBlockTitle";
|
|
45
|
-
};
|
|
46
|
-
sessionRef?: string | null | undefined;
|
|
47
|
-
persistedAt?: string | null | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
ref: `Mutation/${string}`;
|
|
50
|
-
timestamp: string;
|
|
51
|
-
changeSetRef: null;
|
|
52
|
-
payload: {
|
|
53
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
54
|
-
};
|
|
55
|
-
log: any[];
|
|
56
|
-
debounceCount: number;
|
|
57
|
-
identityRef: string;
|
|
58
|
-
operation: {
|
|
59
|
-
name: "createBlockTitle";
|
|
60
|
-
version?: number | undefined;
|
|
61
|
-
};
|
|
62
|
-
sessionRef?: string | null | undefined;
|
|
63
|
-
persistedAt?: string | null | undefined;
|
|
64
|
-
}>;
|
|
@@ -1,64 +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.ZodAny, "many">;
|
|
8
|
-
debounceCount: z.ZodNumber;
|
|
9
|
-
identityRef: z.ZodString;
|
|
10
|
-
sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, {
|
|
13
|
-
operation: z.ZodObject<{
|
|
14
|
-
name: z.ZodLiteral<"createDraft">;
|
|
15
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
version: number;
|
|
18
|
-
name: "createDraft";
|
|
19
|
-
}, {
|
|
20
|
-
name: "createDraft";
|
|
21
|
-
version?: number | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
-
payload: z.ZodObject<{
|
|
25
|
-
postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
26
|
-
}, "strict", z.ZodTypeAny, {
|
|
27
|
-
postRef: `Post/${string}`;
|
|
28
|
-
}, {
|
|
29
|
-
postRef: `Post/${string}`;
|
|
30
|
-
}>;
|
|
31
|
-
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
32
|
-
}>, "strict", z.ZodTypeAny, {
|
|
33
|
-
ref: `Mutation/${string}`;
|
|
34
|
-
timestamp: string;
|
|
35
|
-
changeSetRef: null;
|
|
36
|
-
payload: {
|
|
37
|
-
postRef: `Post/${string}`;
|
|
38
|
-
};
|
|
39
|
-
log: any[];
|
|
40
|
-
debounceCount: number;
|
|
41
|
-
identityRef: string;
|
|
42
|
-
operation: {
|
|
43
|
-
version: number;
|
|
44
|
-
name: "createDraft";
|
|
45
|
-
};
|
|
46
|
-
sessionRef?: string | null | undefined;
|
|
47
|
-
persistedAt?: string | null | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
ref: `Mutation/${string}`;
|
|
50
|
-
timestamp: string;
|
|
51
|
-
changeSetRef: null;
|
|
52
|
-
payload: {
|
|
53
|
-
postRef: `Post/${string}`;
|
|
54
|
-
};
|
|
55
|
-
log: any[];
|
|
56
|
-
debounceCount: number;
|
|
57
|
-
identityRef: string;
|
|
58
|
-
operation: {
|
|
59
|
-
name: "createDraft";
|
|
60
|
-
version?: number | undefined;
|
|
61
|
-
};
|
|
62
|
-
sessionRef?: string | null | undefined;
|
|
63
|
-
persistedAt?: string | null | undefined;
|
|
64
|
-
}>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const DeleteBlocksMutationSchema: 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.ZodAny, "many">;
|
|
8
|
-
debounceCount: z.ZodNumber;
|
|
9
|
-
identityRef: z.ZodString;
|
|
10
|
-
sessionRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
persistedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, {
|
|
13
|
-
operation: z.ZodObject<{
|
|
14
|
-
name: z.ZodLiteral<"deleteBlocks">;
|
|
15
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
version: number;
|
|
18
|
-
name: "deleteBlocks";
|
|
19
|
-
}, {
|
|
20
|
-
name: "deleteBlocks";
|
|
21
|
-
version?: number | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
24
|
-
payload: 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">;
|
|
25
|
-
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
26
|
-
}>, "strict", z.ZodTypeAny, {
|
|
27
|
-
ref: `Mutation/${string}`;
|
|
28
|
-
timestamp: string;
|
|
29
|
-
changeSetRef: null;
|
|
30
|
-
payload: (`BlockImage/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
31
|
-
log: any[];
|
|
32
|
-
debounceCount: number;
|
|
33
|
-
identityRef: string;
|
|
34
|
-
operation: {
|
|
35
|
-
version: number;
|
|
36
|
-
name: "deleteBlocks";
|
|
37
|
-
};
|
|
38
|
-
sessionRef?: string | null | undefined;
|
|
39
|
-
persistedAt?: string | null | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
ref: `Mutation/${string}`;
|
|
42
|
-
timestamp: string;
|
|
43
|
-
changeSetRef: null;
|
|
44
|
-
payload: (`BlockImage/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
45
|
-
log: any[];
|
|
46
|
-
debounceCount: number;
|
|
47
|
-
identityRef: string;
|
|
48
|
-
operation: {
|
|
49
|
-
name: "deleteBlocks";
|
|
50
|
-
version?: number | undefined;
|
|
51
|
-
};
|
|
52
|
-
sessionRef?: string | null | undefined;
|
|
53
|
-
persistedAt?: string | null | undefined;
|
|
54
|
-
}>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export declare const DeleteDraftMutationSchema: 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").ZodAny, "many">;
|
|
7
|
-
debounceCount: import("zod").ZodNumber;
|
|
8
|
-
identityRef: import("zod").ZodString;
|
|
9
|
-
sessionRef: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
10
|
-
persistedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
11
|
-
}, {
|
|
12
|
-
operation: import("zod").ZodObject<{
|
|
13
|
-
name: import("zod").ZodLiteral<"deleteDraft">;
|
|
14
|
-
version: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
15
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
16
|
-
version: number;
|
|
17
|
-
name: "deleteDraft";
|
|
18
|
-
}, {
|
|
19
|
-
name: "deleteDraft";
|
|
20
|
-
version?: number | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
changeSetRef: import("zod").ZodType<never, import("zod").ZodTypeDef, never> | import("zod").ZodNullable<import("zod").ZodType<never, import("zod").ZodTypeDef, never>>;
|
|
23
|
-
payload: import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>;
|
|
24
|
-
log: import("zod").ZodType<any[], import("zod").ZodTypeDef, any[]>;
|
|
25
|
-
}>, "strict", import("zod").ZodTypeAny, {
|
|
26
|
-
ref: `Mutation/${string}`;
|
|
27
|
-
timestamp: string;
|
|
28
|
-
changeSetRef: null;
|
|
29
|
-
payload: `Draft/${string}`;
|
|
30
|
-
log: any[];
|
|
31
|
-
debounceCount: number;
|
|
32
|
-
identityRef: string;
|
|
33
|
-
operation: {
|
|
34
|
-
version: number;
|
|
35
|
-
name: "deleteDraft";
|
|
36
|
-
};
|
|
37
|
-
sessionRef?: string | null | undefined;
|
|
38
|
-
persistedAt?: string | null | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
ref: `Mutation/${string}`;
|
|
41
|
-
timestamp: string;
|
|
42
|
-
changeSetRef: null;
|
|
43
|
-
payload: `Draft/${string}`;
|
|
44
|
-
log: any[];
|
|
45
|
-
debounceCount: number;
|
|
46
|
-
identityRef: string;
|
|
47
|
-
operation: {
|
|
48
|
-
name: "deleteDraft";
|
|
49
|
-
version?: number | undefined;
|
|
50
|
-
};
|
|
51
|
-
sessionRef?: string | null | undefined;
|
|
52
|
-
persistedAt?: string | null | undefined;
|
|
53
|
-
}>;
|
|
@@ -1,53 +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").ZodAny, "many">;
|
|
7
|
-
debounceCount: import("zod").ZodNumber;
|
|
8
|
-
identityRef: import("zod").ZodString;
|
|
9
|
-
sessionRef: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
10
|
-
persistedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
11
|
-
}, {
|
|
12
|
-
operation: import("zod").ZodObject<{
|
|
13
|
-
name: import("zod").ZodLiteral<"deletePost">;
|
|
14
|
-
version: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
15
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
16
|
-
version: number;
|
|
17
|
-
name: "deletePost";
|
|
18
|
-
}, {
|
|
19
|
-
name: "deletePost";
|
|
20
|
-
version?: number | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
changeSetRef: import("zod").ZodType<never, import("zod").ZodTypeDef, never> | import("zod").ZodNullable<import("zod").ZodType<never, import("zod").ZodTypeDef, never>>;
|
|
23
|
-
payload: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
|
|
24
|
-
log: import("zod").ZodType<any[], import("zod").ZodTypeDef, any[]>;
|
|
25
|
-
}>, "strict", import("zod").ZodTypeAny, {
|
|
26
|
-
ref: `Mutation/${string}`;
|
|
27
|
-
timestamp: string;
|
|
28
|
-
changeSetRef: null;
|
|
29
|
-
payload: `Post/${string}`;
|
|
30
|
-
log: any[];
|
|
31
|
-
debounceCount: number;
|
|
32
|
-
identityRef: string;
|
|
33
|
-
operation: {
|
|
34
|
-
version: number;
|
|
35
|
-
name: "deletePost";
|
|
36
|
-
};
|
|
37
|
-
sessionRef?: string | null | undefined;
|
|
38
|
-
persistedAt?: string | null | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
ref: `Mutation/${string}`;
|
|
41
|
-
timestamp: string;
|
|
42
|
-
changeSetRef: null;
|
|
43
|
-
payload: `Post/${string}`;
|
|
44
|
-
log: any[];
|
|
45
|
-
debounceCount: number;
|
|
46
|
-
identityRef: string;
|
|
47
|
-
operation: {
|
|
48
|
-
name: "deletePost";
|
|
49
|
-
version?: number | undefined;
|
|
50
|
-
};
|
|
51
|
-
sessionRef?: string | null | undefined;
|
|
52
|
-
persistedAt?: string | null | undefined;
|
|
53
|
-
}>;
|