@roc-db/test-utils 0.2.0-pre.46 → 0.2.0-pre.48
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 +72 -130
- 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/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
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const TestTransactionalEditsMutationSchema: 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<"testTransactionalEdits">;
|
|
15
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
version: number;
|
|
18
|
-
name: "testTransactionalEdits";
|
|
19
|
-
}, {
|
|
20
|
-
name: "testTransactionalEdits";
|
|
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
|
-
name: z.ZodOptional<z.ZodString>;
|
|
26
|
-
post1ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
|
|
27
|
-
post2ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
|
|
28
|
-
}, "strict", z.ZodTypeAny, {
|
|
29
|
-
name?: string | undefined;
|
|
30
|
-
post1ref?: `Post/${string}` | undefined;
|
|
31
|
-
post2ref?: `Post/${string}` | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
name?: string | undefined;
|
|
34
|
-
post1ref?: `Post/${string}` | undefined;
|
|
35
|
-
post2ref?: `Post/${string}` | undefined;
|
|
36
|
-
}>;
|
|
37
|
-
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
38
|
-
}>, "strict", z.ZodTypeAny, {
|
|
39
|
-
ref: `Mutation/${string}`;
|
|
40
|
-
timestamp: string;
|
|
41
|
-
changeSetRef: null;
|
|
42
|
-
payload: {
|
|
43
|
-
name?: string | undefined;
|
|
44
|
-
post1ref?: `Post/${string}` | undefined;
|
|
45
|
-
post2ref?: `Post/${string}` | undefined;
|
|
46
|
-
};
|
|
47
|
-
log: any[];
|
|
48
|
-
debounceCount: number;
|
|
49
|
-
identityRef: string;
|
|
50
|
-
operation: {
|
|
51
|
-
version: number;
|
|
52
|
-
name: "testTransactionalEdits";
|
|
53
|
-
};
|
|
54
|
-
sessionRef?: string | null | undefined;
|
|
55
|
-
persistedAt?: string | null | undefined;
|
|
56
|
-
}, {
|
|
57
|
-
ref: `Mutation/${string}`;
|
|
58
|
-
timestamp: string;
|
|
59
|
-
changeSetRef: null;
|
|
60
|
-
payload: {
|
|
61
|
-
name?: string | undefined;
|
|
62
|
-
post1ref?: `Post/${string}` | undefined;
|
|
63
|
-
post2ref?: `Post/${string}` | undefined;
|
|
64
|
-
};
|
|
65
|
-
log: any[];
|
|
66
|
-
debounceCount: number;
|
|
67
|
-
identityRef: string;
|
|
68
|
-
operation: {
|
|
69
|
-
name: "testTransactionalEdits";
|
|
70
|
-
version?: number | undefined;
|
|
71
|
-
};
|
|
72
|
-
sessionRef?: string | null | undefined;
|
|
73
|
-
persistedAt?: string | null | undefined;
|
|
74
|
-
}>;
|
|
@@ -1,69 +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.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<"updateBlockParagraph">;
|
|
15
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
version: number;
|
|
18
|
-
name: "updateBlockParagraph";
|
|
19
|
-
}, {
|
|
20
|
-
name: "updateBlockParagraph";
|
|
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<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
|
|
26
|
-
content: z.ZodString;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
ref: `BlockParagraph/${string}`;
|
|
29
|
-
content: string;
|
|
30
|
-
}, {
|
|
31
|
-
ref: `BlockParagraph/${string}`;
|
|
32
|
-
content: string;
|
|
33
|
-
}>;
|
|
34
|
-
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
35
|
-
}>, "strict", z.ZodTypeAny, {
|
|
36
|
-
ref: `Mutation/${string}`;
|
|
37
|
-
timestamp: string;
|
|
38
|
-
changeSetRef: null;
|
|
39
|
-
payload: {
|
|
40
|
-
ref: `BlockParagraph/${string}`;
|
|
41
|
-
content: string;
|
|
42
|
-
};
|
|
43
|
-
log: any[];
|
|
44
|
-
debounceCount: number;
|
|
45
|
-
identityRef: string;
|
|
46
|
-
operation: {
|
|
47
|
-
version: number;
|
|
48
|
-
name: "updateBlockParagraph";
|
|
49
|
-
};
|
|
50
|
-
sessionRef?: string | null | undefined;
|
|
51
|
-
persistedAt?: string | null | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
ref: `Mutation/${string}`;
|
|
54
|
-
timestamp: string;
|
|
55
|
-
changeSetRef: null;
|
|
56
|
-
payload: {
|
|
57
|
-
ref: `BlockParagraph/${string}`;
|
|
58
|
-
content: string;
|
|
59
|
-
};
|
|
60
|
-
log: any[];
|
|
61
|
-
debounceCount: number;
|
|
62
|
-
identityRef: string;
|
|
63
|
-
operation: {
|
|
64
|
-
name: "updateBlockParagraph";
|
|
65
|
-
version?: number | undefined;
|
|
66
|
-
};
|
|
67
|
-
sessionRef?: string | null | undefined;
|
|
68
|
-
persistedAt?: string | null | undefined;
|
|
69
|
-
}>;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const UpdatePostDescriptionMutationSchema: 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<"updatePostDescription">;
|
|
15
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
version: number;
|
|
18
|
-
name: "updatePostDescription";
|
|
19
|
-
}, {
|
|
20
|
-
name: "updatePostDescription";
|
|
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<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
26
|
-
description: z.ZodString;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
ref: `Post/${string}`;
|
|
29
|
-
description: string;
|
|
30
|
-
}, {
|
|
31
|
-
ref: `Post/${string}`;
|
|
32
|
-
description: string;
|
|
33
|
-
}>;
|
|
34
|
-
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
35
|
-
}>, "strict", z.ZodTypeAny, {
|
|
36
|
-
ref: `Mutation/${string}`;
|
|
37
|
-
timestamp: string;
|
|
38
|
-
changeSetRef: null;
|
|
39
|
-
payload: {
|
|
40
|
-
ref: `Post/${string}`;
|
|
41
|
-
description: string;
|
|
42
|
-
};
|
|
43
|
-
log: any[];
|
|
44
|
-
debounceCount: number;
|
|
45
|
-
identityRef: string;
|
|
46
|
-
operation: {
|
|
47
|
-
version: number;
|
|
48
|
-
name: "updatePostDescription";
|
|
49
|
-
};
|
|
50
|
-
sessionRef?: string | null | undefined;
|
|
51
|
-
persistedAt?: string | null | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
ref: `Mutation/${string}`;
|
|
54
|
-
timestamp: string;
|
|
55
|
-
changeSetRef: null;
|
|
56
|
-
payload: {
|
|
57
|
-
ref: `Post/${string}`;
|
|
58
|
-
description: string;
|
|
59
|
-
};
|
|
60
|
-
log: any[];
|
|
61
|
-
debounceCount: number;
|
|
62
|
-
identityRef: string;
|
|
63
|
-
operation: {
|
|
64
|
-
name: "updatePostDescription";
|
|
65
|
-
version?: number | undefined;
|
|
66
|
-
};
|
|
67
|
-
sessionRef?: string | null | undefined;
|
|
68
|
-
persistedAt?: string | null | undefined;
|
|
69
|
-
}>;
|