@roc-db/test-utils 0.2.0-pre.37 → 0.2.0-pre.39
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 +3 -1
- package/dist/types/operations/applyDraft.d.ts +4 -14
- package/dist/types/operations/createBlockImage.d.ts +4 -14
- package/dist/types/operations/createBlockParagraph.d.ts +4 -14
- package/dist/types/operations/createBlockRow.d.ts +4 -14
- package/dist/types/operations/createBlockTitle.d.ts +4 -14
- package/dist/types/operations/createDraft.d.ts +4 -14
- package/dist/types/operations/createPost.d.ts +4 -18
- package/dist/types/operations/deleteBlocks.d.ts +4 -10
- package/dist/types/operations/deletePost.d.ts +4 -10
- package/dist/types/operations/index.d.ts +56 -220
- package/dist/types/operations/moveBlocks.d.ts +4 -16
- package/dist/types/operations/testTransactionalEdits.d.ts +4 -18
- package/dist/types/operations/updateBlockParagraph.d.ts +4 -16
- package/dist/types/operations/updatePost.d.ts +4 -20
- package/dist/types/operations/updatePostDescription.d.ts +4 -16
- package/dist/types/operations/updatePostTitle.d.ts +4 -16
- package/dist/types/schemas/ApplyDraftMutationSchema.d.ts +18 -3
- package/dist/types/schemas/CreateBlockImageMutationSchema.d.ts +18 -3
- package/dist/types/schemas/CreateBlockParagraphMutationSchema.d.ts +18 -3
- package/dist/types/schemas/CreateBlockRowMutationSchema.d.ts +18 -3
- package/dist/types/schemas/CreateBlockTitleMutationSchema.d.ts +18 -3
- package/dist/types/schemas/CreateDraftMutationSchema.d.ts +18 -3
- package/dist/types/schemas/CreatePostMutationSchema.d.ts +18 -3
- package/dist/types/schemas/CreateUserMutationSchema.d.ts +18 -3
- package/dist/types/schemas/DeleteBlocksMutationSchema.d.ts +18 -3
- package/dist/types/schemas/DeletePostMutationSchema.d.ts +18 -3
- package/dist/types/schemas/MoveBlocksMutationSchema.d.ts +18 -3
- package/dist/types/schemas/TestTransactionalEditsMutationSchema.d.ts +18 -3
- package/dist/types/schemas/UpdateBlockParagraphMutationSchema.d.ts +18 -3
- package/dist/types/schemas/UpdatePostDescriptionMutationSchema.d.ts +18 -3
- package/dist/types/schemas/UpdatePostMutationSchema.d.ts +18 -3
- package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +18 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -466,7 +466,8 @@ var operations = [
|
|
|
466
466
|
];
|
|
467
467
|
// src/testAdapterImplementation.ts
|
|
468
468
|
import { beforeAll, describe, expect as expect2, test } from "bun:test";
|
|
469
|
-
import { BadRequestError, NotFoundError as NotFoundError2 } from "roc-db";
|
|
469
|
+
import { BadRequestError, NotFoundError as NotFoundError2, Snowflake } from "roc-db";
|
|
470
|
+
var snowflake = new Snowflake(10, 10);
|
|
470
471
|
var prepareChangeSetTest = async (adapter, adapter2) => {
|
|
471
472
|
const [post, createPostMutation] = await adapter.createPost({
|
|
472
473
|
title: "Title 1",
|
|
@@ -518,6 +519,7 @@ var testAdapterImplementation = async (adapterConstructor, generateArgs) => {
|
|
|
518
519
|
operations,
|
|
519
520
|
entities,
|
|
520
521
|
session: { identityRef: "User/42" },
|
|
522
|
+
snowflake,
|
|
521
523
|
...await generateArgs()
|
|
522
524
|
});
|
|
523
525
|
};
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
export declare const applyDraft: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
ref: `Draft/${string}`;
|
|
7
|
-
};
|
|
8
|
-
log: any[];
|
|
1
|
+
export declare const applyDraft: import("roc-db").WriteOperation<string, {
|
|
9
2
|
debounceCount: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, {
|
|
14
|
-
ref: `Draft/${string}`;
|
|
15
|
-
}, any>;
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, any>;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
export declare const createBlockImage: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
postRef: `Post/${string}`;
|
|
7
|
-
};
|
|
8
|
-
log: any[];
|
|
1
|
+
export declare const createBlockImage: import("roc-db").WriteOperation<string, {
|
|
9
2
|
debounceCount: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, {
|
|
14
|
-
postRef: `Post/${string}`;
|
|
15
|
-
}, {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
16
6
|
[x: string]: any;
|
|
17
7
|
}>;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
export declare const createBlockParagrah: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
7
|
-
};
|
|
8
|
-
log: any[];
|
|
1
|
+
export declare const createBlockParagrah: import("roc-db").WriteOperation<string, {
|
|
9
2
|
debounceCount: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, {
|
|
14
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
15
|
-
}, {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
16
6
|
[x: string]: any;
|
|
17
7
|
}>;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
export declare const createBlockRow: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
7
|
-
};
|
|
8
|
-
log: any[];
|
|
1
|
+
export declare const createBlockRow: import("roc-db").WriteOperation<string, {
|
|
9
2
|
debounceCount: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, {
|
|
14
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
15
|
-
}, {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
16
6
|
[x: string]: any;
|
|
17
7
|
}>;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
export declare const createBlockTitle: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
7
|
-
};
|
|
8
|
-
log: any[];
|
|
1
|
+
export declare const createBlockTitle: import("roc-db").WriteOperation<string, {
|
|
9
2
|
debounceCount: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, {
|
|
14
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
15
|
-
}, {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
16
6
|
[x: string]: any;
|
|
17
7
|
}>;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
export declare const createDraft: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
postRef: `Post/${string}`;
|
|
7
|
-
};
|
|
8
|
-
log: any[];
|
|
1
|
+
export declare const createDraft: import("roc-db").WriteOperation<string, {
|
|
9
2
|
debounceCount: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, {
|
|
14
|
-
postRef: `Post/${string}`;
|
|
15
|
-
}, {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
16
6
|
[x: string]: any;
|
|
17
7
|
}>;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
export declare const createPost: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
title: string;
|
|
7
|
-
tags: string[];
|
|
8
|
-
slug?: string | undefined;
|
|
9
|
-
};
|
|
10
|
-
log: any[];
|
|
1
|
+
export declare const createPost: import("roc-db").WriteOperation<string, {
|
|
11
2
|
debounceCount: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, {
|
|
16
|
-
title: string;
|
|
17
|
-
tags: string[];
|
|
18
|
-
slug?: string | undefined;
|
|
19
|
-
}, {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
20
6
|
[x: string]: any;
|
|
21
7
|
}>;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
export declare const deleteBlocks: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: (`BlockImage/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
6
|
-
log: any[];
|
|
1
|
+
export declare const deleteBlocks: import("roc-db").WriteOperation<string, {
|
|
7
2
|
debounceCount: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, (`BlockImage/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`)[], {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
12
6
|
[x: string]: any;
|
|
13
7
|
}>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
export declare const deletePost: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: `Post/${string}`;
|
|
6
|
-
log: any[];
|
|
1
|
+
export declare const deletePost: import("roc-db").WriteOperation<string, {
|
|
7
2
|
debounceCount: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, `Post/${string}`, any>;
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, any>;
|
|
@@ -1,247 +1,83 @@
|
|
|
1
|
-
export declare const operations: readonly [import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
ref: `Draft/${string}`;
|
|
7
|
-
};
|
|
8
|
-
log: any[];
|
|
1
|
+
export declare const operations: readonly [import("roc-db").WriteOperation<string, {
|
|
9
2
|
debounceCount: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, {
|
|
14
|
-
ref: `Draft/${string}`;
|
|
15
|
-
}, any>, import("roc-db").WriteOperation<"createBlockImage", {
|
|
16
|
-
ref: `Mutation/${string}`;
|
|
17
|
-
timestamp: string;
|
|
18
|
-
changeSetRef: null;
|
|
19
|
-
payload: {
|
|
20
|
-
postRef: `Post/${string}`;
|
|
21
|
-
};
|
|
22
|
-
log: any[];
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, any>, import("roc-db").WriteOperation<string, {
|
|
23
6
|
debounceCount: number;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}, {
|
|
28
|
-
postRef: `Post/${string}`;
|
|
29
|
-
}, {
|
|
7
|
+
name: string;
|
|
8
|
+
payload?: any;
|
|
9
|
+
}, any, {
|
|
30
10
|
[x: string]: any;
|
|
31
|
-
}>, import("roc-db").WriteOperation<
|
|
32
|
-
ref: `Mutation/${string}`;
|
|
33
|
-
timestamp: string;
|
|
34
|
-
changeSetRef: null;
|
|
35
|
-
payload: {
|
|
36
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
37
|
-
};
|
|
38
|
-
log: any[];
|
|
11
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
39
12
|
debounceCount: number;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, {
|
|
44
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
45
|
-
}, {
|
|
13
|
+
name: string;
|
|
14
|
+
payload?: any;
|
|
15
|
+
}, any, {
|
|
46
16
|
[x: string]: any;
|
|
47
|
-
}>, import("roc-db").WriteOperation<
|
|
48
|
-
ref: `Mutation/${string}`;
|
|
49
|
-
timestamp: string;
|
|
50
|
-
changeSetRef: null;
|
|
51
|
-
payload: {
|
|
52
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
53
|
-
};
|
|
54
|
-
log: any[];
|
|
17
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
55
18
|
debounceCount: number;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}, {
|
|
60
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
61
|
-
}, {
|
|
19
|
+
name: string;
|
|
20
|
+
payload?: any;
|
|
21
|
+
}, any, {
|
|
62
22
|
[x: string]: any;
|
|
63
|
-
}>, import("roc-db").WriteOperation<
|
|
64
|
-
ref: `Mutation/${string}`;
|
|
65
|
-
timestamp: string;
|
|
66
|
-
changeSetRef: null;
|
|
67
|
-
payload: {
|
|
68
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
69
|
-
};
|
|
70
|
-
log: any[];
|
|
23
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
71
24
|
debounceCount: number;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}, {
|
|
76
|
-
parentRef: `Post/${string}` | `BlockRow/${string}`;
|
|
77
|
-
}, {
|
|
25
|
+
name: string;
|
|
26
|
+
payload?: any;
|
|
27
|
+
}, any, {
|
|
78
28
|
[x: string]: any;
|
|
79
|
-
}>, import("roc-db").WriteOperation<
|
|
80
|
-
ref: `Mutation/${string}`;
|
|
81
|
-
timestamp: string;
|
|
82
|
-
changeSetRef: null;
|
|
83
|
-
payload: {
|
|
84
|
-
postRef: `Post/${string}`;
|
|
85
|
-
};
|
|
86
|
-
log: any[];
|
|
29
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
87
30
|
debounceCount: number;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}, {
|
|
92
|
-
postRef: `Post/${string}`;
|
|
93
|
-
}, {
|
|
31
|
+
name: string;
|
|
32
|
+
payload?: any;
|
|
33
|
+
}, any, {
|
|
94
34
|
[x: string]: any;
|
|
95
|
-
}>, import("roc-db").WriteOperation<
|
|
96
|
-
ref: `Mutation/${string}`;
|
|
97
|
-
timestamp: string;
|
|
98
|
-
changeSetRef: null;
|
|
99
|
-
payload: {
|
|
100
|
-
title: string;
|
|
101
|
-
tags: string[];
|
|
102
|
-
slug?: string | undefined;
|
|
103
|
-
};
|
|
104
|
-
log: any[];
|
|
35
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
105
36
|
debounceCount: number;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}, {
|
|
110
|
-
title: string;
|
|
111
|
-
tags: string[];
|
|
112
|
-
slug?: string | undefined;
|
|
113
|
-
}, {
|
|
37
|
+
name: string;
|
|
38
|
+
payload?: any;
|
|
39
|
+
}, any, {
|
|
114
40
|
[x: string]: any;
|
|
115
|
-
}>, import("roc-db").WriteOperation<
|
|
116
|
-
ref: `Mutation/${string}`;
|
|
117
|
-
timestamp: string;
|
|
118
|
-
changeSetRef: null;
|
|
119
|
-
payload: (`BlockImage/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
120
|
-
log: any[];
|
|
41
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
121
42
|
debounceCount: number;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}, (`BlockImage/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`)[], {
|
|
43
|
+
name: string;
|
|
44
|
+
payload?: any;
|
|
45
|
+
}, any, {
|
|
126
46
|
[x: string]: any;
|
|
127
|
-
}>, import("roc-db").WriteOperation<
|
|
128
|
-
ref: `Mutation/${string}`;
|
|
129
|
-
timestamp: string;
|
|
130
|
-
changeSetRef: null;
|
|
131
|
-
payload: `Post/${string}`;
|
|
132
|
-
log: any[];
|
|
47
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
133
48
|
debounceCount: number;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}, `Post/${string}`, any>, import("roc-db").WriteOperation<"moveBlocks", {
|
|
138
|
-
ref: `Mutation/${string}`;
|
|
139
|
-
timestamp: string;
|
|
140
|
-
changeSetRef: null;
|
|
141
|
-
payload: {
|
|
142
|
-
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
143
|
-
targetPosition: number;
|
|
144
|
-
};
|
|
145
|
-
log: any[];
|
|
49
|
+
name: string;
|
|
50
|
+
payload?: any;
|
|
51
|
+
}, any, any>, import("roc-db").WriteOperation<string, {
|
|
146
52
|
debounceCount: number;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}, {
|
|
151
|
-
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
152
|
-
targetPosition: number;
|
|
153
|
-
}, any>, any, any, import("roc-db").WriteOperation<"testTransactionalEdits", {
|
|
154
|
-
ref: `Mutation/${string}`;
|
|
155
|
-
timestamp: string;
|
|
156
|
-
changeSetRef: null;
|
|
157
|
-
payload: {
|
|
158
|
-
name?: string | undefined;
|
|
159
|
-
post1ref?: `Post/${string}` | undefined;
|
|
160
|
-
post2ref?: `Post/${string}` | undefined;
|
|
161
|
-
};
|
|
162
|
-
log: any[];
|
|
53
|
+
name: string;
|
|
54
|
+
payload?: any;
|
|
55
|
+
}, any, any>, any, any, import("roc-db").WriteOperation<string, {
|
|
163
56
|
debounceCount: number;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}, {
|
|
168
|
-
name?: string | undefined;
|
|
169
|
-
post1ref?: `Post/${string}` | undefined;
|
|
170
|
-
post2ref?: `Post/${string}` | undefined;
|
|
171
|
-
}, {
|
|
57
|
+
name: string;
|
|
58
|
+
payload?: any;
|
|
59
|
+
}, any, {
|
|
172
60
|
[x: string]: any;
|
|
173
|
-
}>, import("roc-db").WriteOperation<
|
|
174
|
-
ref: `Mutation/${string}`;
|
|
175
|
-
timestamp: string;
|
|
176
|
-
changeSetRef: null;
|
|
177
|
-
payload: {
|
|
178
|
-
ref: `BlockParagraph/${string}`;
|
|
179
|
-
content: string;
|
|
180
|
-
};
|
|
181
|
-
log: any[];
|
|
61
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
182
62
|
debounceCount: number;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}, {
|
|
187
|
-
ref: `BlockParagraph/${string}`;
|
|
188
|
-
content: string;
|
|
189
|
-
}, `BlockParagraph/${string}`>, import("roc-db").WriteOperation<"updatePost", {
|
|
190
|
-
ref: `Mutation/${string}`;
|
|
191
|
-
timestamp: string;
|
|
192
|
-
changeSetRef: null;
|
|
193
|
-
payload: {
|
|
194
|
-
ref: `Post/${string}`;
|
|
195
|
-
tags: string[];
|
|
196
|
-
title?: string | undefined;
|
|
197
|
-
authorRef?: `User/${string}` | undefined;
|
|
198
|
-
};
|
|
199
|
-
log: any[];
|
|
63
|
+
name: string;
|
|
64
|
+
payload?: any;
|
|
65
|
+
}, any, `BlockParagraph/${string}`>, import("roc-db").WriteOperation<string, {
|
|
200
66
|
debounceCount: number;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}, {
|
|
205
|
-
ref: `Post/${string}`;
|
|
206
|
-
tags: string[];
|
|
207
|
-
title?: string | undefined;
|
|
208
|
-
authorRef?: `User/${string}` | undefined;
|
|
209
|
-
}, {
|
|
67
|
+
name: string;
|
|
68
|
+
payload?: any;
|
|
69
|
+
}, any, {
|
|
210
70
|
[x: string]: any;
|
|
211
|
-
}>, import("roc-db").WriteOperation<
|
|
212
|
-
ref: `Mutation/${string}`;
|
|
213
|
-
timestamp: string;
|
|
214
|
-
changeSetRef: null;
|
|
215
|
-
payload: {
|
|
216
|
-
ref: `Post/${string}`;
|
|
217
|
-
description: string;
|
|
218
|
-
};
|
|
219
|
-
log: any[];
|
|
71
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
220
72
|
debounceCount: number;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}, {
|
|
225
|
-
ref: `Post/${string}`;
|
|
226
|
-
description: string;
|
|
227
|
-
}, {
|
|
73
|
+
name: string;
|
|
74
|
+
payload?: any;
|
|
75
|
+
}, any, {
|
|
228
76
|
[x: string]: any;
|
|
229
|
-
}>, import("roc-db").WriteOperation<
|
|
230
|
-
ref: `Mutation/${string}`;
|
|
231
|
-
timestamp: string;
|
|
232
|
-
changeSetRef: null;
|
|
233
|
-
payload: {
|
|
234
|
-
ref: `Post/${string}`;
|
|
235
|
-
title: string;
|
|
236
|
-
};
|
|
237
|
-
log: any[];
|
|
77
|
+
}>, import("roc-db").WriteOperation<string, {
|
|
238
78
|
debounceCount: number;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}, {
|
|
243
|
-
ref: `Post/${string}`;
|
|
244
|
-
title: string;
|
|
245
|
-
}, {
|
|
79
|
+
name: string;
|
|
80
|
+
payload?: any;
|
|
81
|
+
}, any, {
|
|
246
82
|
[x: string]: any;
|
|
247
83
|
}>];
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
export declare const moveBlocks: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
7
|
-
targetPosition: number;
|
|
8
|
-
};
|
|
9
|
-
log: any[];
|
|
1
|
+
export declare const moveBlocks: import("roc-db").WriteOperation<string, {
|
|
10
2
|
debounceCount: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}, {
|
|
15
|
-
refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
|
|
16
|
-
targetPosition: number;
|
|
17
|
-
}, any>;
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, any>;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
export declare const testTransactionalEdits: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
name?: string | undefined;
|
|
7
|
-
post1ref?: `Post/${string}` | undefined;
|
|
8
|
-
post2ref?: `Post/${string}` | undefined;
|
|
9
|
-
};
|
|
10
|
-
log: any[];
|
|
1
|
+
export declare const testTransactionalEdits: import("roc-db").WriteOperation<string, {
|
|
11
2
|
debounceCount: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, {
|
|
16
|
-
name?: string | undefined;
|
|
17
|
-
post1ref?: `Post/${string}` | undefined;
|
|
18
|
-
post2ref?: `Post/${string}` | undefined;
|
|
19
|
-
}, {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
20
6
|
[x: string]: any;
|
|
21
7
|
}>;
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
export declare const updateBlockParagraph: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
ref: `BlockParagraph/${string}`;
|
|
7
|
-
content: string;
|
|
8
|
-
};
|
|
9
|
-
log: any[];
|
|
1
|
+
export declare const updateBlockParagraph: import("roc-db").WriteOperation<string, {
|
|
10
2
|
debounceCount: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}, {
|
|
15
|
-
ref: `BlockParagraph/${string}`;
|
|
16
|
-
content: string;
|
|
17
|
-
}, `BlockParagraph/${string}`>;
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, `BlockParagraph/${string}`>;
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
export declare const updatePost: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
ref: `Post/${string}`;
|
|
7
|
-
tags: string[];
|
|
8
|
-
title?: string | undefined;
|
|
9
|
-
authorRef?: `User/${string}` | undefined;
|
|
10
|
-
};
|
|
11
|
-
log: any[];
|
|
1
|
+
export declare const updatePost: import("roc-db").WriteOperation<string, {
|
|
12
2
|
debounceCount: number;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}, {
|
|
17
|
-
ref: `Post/${string}`;
|
|
18
|
-
tags: string[];
|
|
19
|
-
title?: string | undefined;
|
|
20
|
-
authorRef?: `User/${string}` | undefined;
|
|
21
|
-
}, {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
22
6
|
[x: string]: any;
|
|
23
7
|
}>;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
export declare const updatePostDescription: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
ref: `Post/${string}`;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
log: any[];
|
|
1
|
+
export declare const updatePostDescription: import("roc-db").WriteOperation<string, {
|
|
10
2
|
debounceCount: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}, {
|
|
15
|
-
ref: `Post/${string}`;
|
|
16
|
-
description: string;
|
|
17
|
-
}, {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
18
6
|
[x: string]: any;
|
|
19
7
|
}>;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
export declare const updatePostTitle: import("roc-db").WriteOperation<
|
|
2
|
-
ref: `Mutation/${string}`;
|
|
3
|
-
timestamp: string;
|
|
4
|
-
changeSetRef: null;
|
|
5
|
-
payload: {
|
|
6
|
-
ref: `Post/${string}`;
|
|
7
|
-
title: string;
|
|
8
|
-
};
|
|
9
|
-
log: any[];
|
|
1
|
+
export declare const updatePostTitle: import("roc-db").WriteOperation<string, {
|
|
10
2
|
debounceCount: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}, {
|
|
15
|
-
ref: `Post/${string}`;
|
|
16
|
-
title: string;
|
|
17
|
-
}, {
|
|
3
|
+
name: string;
|
|
4
|
+
payload?: any;
|
|
5
|
+
}, any, {
|
|
18
6
|
[x: string]: any;
|
|
19
7
|
}>;
|