@roc-db/test-utils 0.2.0-pre.33 → 0.2.0-pre.35
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 +311 -172
- package/dist/types/operations/applyDraft.d.ts +1 -1
- package/dist/types/operations/createBlockImage.d.ts +1 -1
- package/dist/types/operations/createBlockParagraph.d.ts +1 -1
- package/dist/types/operations/createBlockRow.d.ts +1 -1
- package/dist/types/operations/createBlockTitle.d.ts +1 -1
- package/dist/types/operations/createDraft.d.ts +1 -1
- package/dist/types/operations/createPost.d.ts +1 -1
- package/dist/types/operations/deleteBlock.d.ts +1 -1
- package/dist/types/operations/deletePost.d.ts +1 -1
- package/dist/types/operations/index.d.ts +50 -14
- package/dist/types/operations/moveBlocks.d.ts +17 -0
- package/dist/types/operations/testTransactionalEdits.d.ts +21 -0
- package/dist/types/operations/updateBlockParagraph.d.ts +1 -1
- package/dist/types/operations/updatePost.d.ts +1 -1
- package/dist/types/operations/updatePostDescription.d.ts +1 -1
- package/dist/types/operations/updatePostTitle.d.ts +1 -1
- package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +4 -4
- package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +4 -4
- package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +4 -4
- package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +4 -4
- package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +4 -4
- package/dist/types/schemas/CreateDraftMutationSchema.d.ts +4 -4
- package/dist/types/schemas/CreatePostMutationSchema.d.ts +4 -4
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +4 -4
- package/dist/types/schemas/DeleteBlockMutationSchema.d.ts +4 -4
- package/dist/types/schemas/DeletePostMutationSchema.d.ts +4 -4
- package/dist/types/schemas/MoveBlocksMutationSchema.d.ts +51 -0
- package/dist/types/schemas/TestTransactionalEditsMutationSchema.d.ts +56 -0
- package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +4 -4
- package/dist/types/schemas/UpdatePostDescriptionMutationSchema.d.ts +4 -4
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +5 -5
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +4 -4
- package/dist/types/testAdapterImplementation.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const MoveBlocksMutationSchema: 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.ZodString>;
|
|
11
|
+
}, {
|
|
12
|
+
name: z.ZodLiteral<"moveBlocks">;
|
|
13
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
14
|
+
payload: z.ZodObject<{
|
|
15
|
+
refs: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
|
|
16
|
+
targetPosition: z.ZodNumber;
|
|
17
|
+
}, "strict", z.ZodTypeAny, {
|
|
18
|
+
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
19
|
+
targetPosition: number;
|
|
20
|
+
}, {
|
|
21
|
+
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
22
|
+
targetPosition: number;
|
|
23
|
+
}>;
|
|
24
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
25
|
+
}>, "strict", z.ZodTypeAny, {
|
|
26
|
+
ref: `Mutation/${string}`;
|
|
27
|
+
timestamp: string;
|
|
28
|
+
changeSetRef: null;
|
|
29
|
+
payload: {
|
|
30
|
+
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
31
|
+
targetPosition: number;
|
|
32
|
+
};
|
|
33
|
+
log: any[];
|
|
34
|
+
debounceCount: number;
|
|
35
|
+
identityRef: string;
|
|
36
|
+
name: "moveBlocks";
|
|
37
|
+
sessionRef?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
ref: `Mutation/${string}`;
|
|
40
|
+
timestamp: string;
|
|
41
|
+
changeSetRef: null;
|
|
42
|
+
payload: {
|
|
43
|
+
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
44
|
+
targetPosition: number;
|
|
45
|
+
};
|
|
46
|
+
log: any[];
|
|
47
|
+
debounceCount: number;
|
|
48
|
+
identityRef: string;
|
|
49
|
+
name: "moveBlocks";
|
|
50
|
+
sessionRef?: string | undefined;
|
|
51
|
+
}>;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.ZodString>;
|
|
11
|
+
}, {
|
|
12
|
+
name: z.ZodLiteral<"testTransactionalEdits">;
|
|
13
|
+
changeSetRef: z.ZodType<never, z.ZodTypeDef, never> | z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
14
|
+
payload: z.ZodObject<{
|
|
15
|
+
name: z.ZodOptional<z.ZodString>;
|
|
16
|
+
post1ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
|
|
17
|
+
post2ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
post1ref?: `Post/${string}` | undefined;
|
|
21
|
+
post2ref?: `Post/${string}` | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
post1ref?: `Post/${string}` | undefined;
|
|
25
|
+
post2ref?: `Post/${string}` | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
28
|
+
}>, "strict", z.ZodTypeAny, {
|
|
29
|
+
ref: `Mutation/${string}`;
|
|
30
|
+
timestamp: string;
|
|
31
|
+
changeSetRef: null;
|
|
32
|
+
payload: {
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
post1ref?: `Post/${string}` | undefined;
|
|
35
|
+
post2ref?: `Post/${string}` | undefined;
|
|
36
|
+
};
|
|
37
|
+
log: any[];
|
|
38
|
+
debounceCount: number;
|
|
39
|
+
identityRef: string;
|
|
40
|
+
name: "testTransactionalEdits";
|
|
41
|
+
sessionRef?: string | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
ref: `Mutation/${string}`;
|
|
44
|
+
timestamp: string;
|
|
45
|
+
changeSetRef: null;
|
|
46
|
+
payload: {
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
post1ref?: `Post/${string}` | undefined;
|
|
49
|
+
post2ref?: `Post/${string}` | undefined;
|
|
50
|
+
};
|
|
51
|
+
log: any[];
|
|
52
|
+
debounceCount: number;
|
|
53
|
+
identityRef: string;
|
|
54
|
+
name: "testTransactionalEdits";
|
|
55
|
+
sessionRef?: string | undefined;
|
|
56
|
+
}>;
|
|
@@ -4,7 +4,7 @@ export declare const UpdateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
|
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
5
|
changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
6
6
|
payload: z.ZodAny;
|
|
7
|
-
log: z.ZodArray<z.
|
|
7
|
+
log: z.ZodArray<z.ZodAny, "many">;
|
|
8
8
|
debounceCount: z.ZodNumber;
|
|
9
9
|
identityRef: z.ZodString;
|
|
10
10
|
sessionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -21,7 +21,7 @@ export declare const UpdateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
|
|
|
21
21
|
ref: `BlockParagraph/${string}`;
|
|
22
22
|
content: string;
|
|
23
23
|
}>;
|
|
24
|
-
log: z.ZodType<[
|
|
24
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
25
25
|
}>, "strict", z.ZodTypeAny, {
|
|
26
26
|
ref: `Mutation/${string}`;
|
|
27
27
|
timestamp: string;
|
|
@@ -30,7 +30,7 @@ export declare const UpdateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
|
|
|
30
30
|
ref: `BlockParagraph/${string}`;
|
|
31
31
|
content: string;
|
|
32
32
|
};
|
|
33
|
-
log: [
|
|
33
|
+
log: any[];
|
|
34
34
|
debounceCount: number;
|
|
35
35
|
identityRef: string;
|
|
36
36
|
name: "updateBlockParagraph";
|
|
@@ -43,7 +43,7 @@ export declare const UpdateBlockParagraphMutationSchema: z.ZodObject<z.objectUti
|
|
|
43
43
|
ref: `BlockParagraph/${string}`;
|
|
44
44
|
content: string;
|
|
45
45
|
};
|
|
46
|
-
log: [
|
|
46
|
+
log: any[];
|
|
47
47
|
debounceCount: number;
|
|
48
48
|
identityRef: string;
|
|
49
49
|
name: "updateBlockParagraph";
|
|
@@ -4,7 +4,7 @@ export declare const UpdatePostDescriptionMutationSchema: z.ZodObject<z.objectUt
|
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
5
|
changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
6
6
|
payload: z.ZodAny;
|
|
7
|
-
log: z.ZodArray<z.
|
|
7
|
+
log: z.ZodArray<z.ZodAny, "many">;
|
|
8
8
|
debounceCount: z.ZodNumber;
|
|
9
9
|
identityRef: z.ZodString;
|
|
10
10
|
sessionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -21,7 +21,7 @@ export declare const UpdatePostDescriptionMutationSchema: z.ZodObject<z.objectUt
|
|
|
21
21
|
ref: `Post/${string}`;
|
|
22
22
|
description: string;
|
|
23
23
|
}>;
|
|
24
|
-
log: z.ZodType<[
|
|
24
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
25
25
|
}>, "strict", z.ZodTypeAny, {
|
|
26
26
|
ref: `Mutation/${string}`;
|
|
27
27
|
timestamp: string;
|
|
@@ -30,7 +30,7 @@ export declare const UpdatePostDescriptionMutationSchema: z.ZodObject<z.objectUt
|
|
|
30
30
|
ref: `Post/${string}`;
|
|
31
31
|
description: string;
|
|
32
32
|
};
|
|
33
|
-
log: [
|
|
33
|
+
log: any[];
|
|
34
34
|
debounceCount: number;
|
|
35
35
|
identityRef: string;
|
|
36
36
|
name: "updatePostDescription";
|
|
@@ -43,7 +43,7 @@ export declare const UpdatePostDescriptionMutationSchema: z.ZodObject<z.objectUt
|
|
|
43
43
|
ref: `Post/${string}`;
|
|
44
44
|
description: string;
|
|
45
45
|
};
|
|
46
|
-
log: [
|
|
46
|
+
log: any[];
|
|
47
47
|
debounceCount: number;
|
|
48
48
|
identityRef: string;
|
|
49
49
|
name: "updatePostDescription";
|
|
@@ -4,7 +4,7 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
5
|
changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
6
6
|
payload: z.ZodAny;
|
|
7
|
-
log: z.ZodArray<z.
|
|
7
|
+
log: z.ZodArray<z.ZodAny, "many">;
|
|
8
8
|
debounceCount: z.ZodNumber;
|
|
9
9
|
identityRef: z.ZodString;
|
|
10
10
|
sessionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -15,7 +15,7 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
15
15
|
ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
|
|
16
16
|
title: z.ZodOptional<z.ZodString>;
|
|
17
17
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
18
|
-
authorRef: z.ZodOptional<z.
|
|
18
|
+
authorRef: z.ZodOptional<z.ZodType<`User/${string}`, z.ZodTypeDef, `User/${string}`>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
ref: `Post/${string}`;
|
|
21
21
|
tags: string[];
|
|
@@ -27,7 +27,7 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
27
27
|
tags?: string[] | undefined;
|
|
28
28
|
authorRef?: `User/${string}` | undefined;
|
|
29
29
|
}>;
|
|
30
|
-
log: z.ZodType<[
|
|
30
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
31
31
|
}>, "strict", z.ZodTypeAny, {
|
|
32
32
|
ref: `Mutation/${string}`;
|
|
33
33
|
timestamp: string;
|
|
@@ -38,7 +38,7 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
38
38
|
title?: string | undefined;
|
|
39
39
|
authorRef?: `User/${string}` | undefined;
|
|
40
40
|
};
|
|
41
|
-
log: [
|
|
41
|
+
log: any[];
|
|
42
42
|
debounceCount: number;
|
|
43
43
|
identityRef: string;
|
|
44
44
|
name: "updatePost";
|
|
@@ -53,7 +53,7 @@ export declare const UpdatePostMutationSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
53
53
|
tags?: string[] | undefined;
|
|
54
54
|
authorRef?: `User/${string}` | undefined;
|
|
55
55
|
};
|
|
56
|
-
log: [
|
|
56
|
+
log: any[];
|
|
57
57
|
debounceCount: number;
|
|
58
58
|
identityRef: string;
|
|
59
59
|
name: "updatePost";
|
|
@@ -4,7 +4,7 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
|
|
|
4
4
|
timestamp: z.ZodString;
|
|
5
5
|
changeSetRef: z.ZodNullable<z.ZodType<never, z.ZodTypeDef, never>>;
|
|
6
6
|
payload: z.ZodAny;
|
|
7
|
-
log: z.ZodArray<z.
|
|
7
|
+
log: z.ZodArray<z.ZodAny, "many">;
|
|
8
8
|
debounceCount: z.ZodNumber;
|
|
9
9
|
identityRef: z.ZodString;
|
|
10
10
|
sessionRef: z.ZodOptional<z.ZodString>;
|
|
@@ -21,7 +21,7 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
|
|
|
21
21
|
ref: `Post/${string}`;
|
|
22
22
|
title: string;
|
|
23
23
|
}>;
|
|
24
|
-
log: z.ZodType<[
|
|
24
|
+
log: z.ZodType<any[], z.ZodTypeDef, any[]>;
|
|
25
25
|
}>, "strict", z.ZodTypeAny, {
|
|
26
26
|
ref: `Mutation/${string}`;
|
|
27
27
|
timestamp: string;
|
|
@@ -30,7 +30,7 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
|
|
|
30
30
|
ref: `Post/${string}`;
|
|
31
31
|
title: string;
|
|
32
32
|
};
|
|
33
|
-
log: [
|
|
33
|
+
log: any[];
|
|
34
34
|
debounceCount: number;
|
|
35
35
|
identityRef: string;
|
|
36
36
|
name: "updatePostTitle";
|
|
@@ -43,7 +43,7 @@ export declare const UpdatePostTitleMutationSchema: z.ZodObject<z.objectUtil.ext
|
|
|
43
43
|
ref: `Post/${string}`;
|
|
44
44
|
title: string;
|
|
45
45
|
};
|
|
46
|
-
log: [
|
|
46
|
+
log: any[];
|
|
47
47
|
debounceCount: number;
|
|
48
48
|
identityRef: string;
|
|
49
49
|
name: "updatePostTitle";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const testAdapterImplementation: <EngineOptions extends {}>(adapterConstructor: any,
|
|
1
|
+
export declare const testAdapterImplementation: <EngineOptions extends {}>(adapterConstructor: any, generateArgs: () => EngineOptions) => Promise<void>;
|
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.35",
|
|
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.35",
|
|
21
21
|
"zod": "3.24.2"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [],
|