revdev 0.24.0 → 0.25.0
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.
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { FeEntityAccess, FeEntityContribution, FeWordKnowledge, RealWord } from "../common";
|
|
2
2
|
import { FeWord } from "../word";
|
|
3
|
+
export interface BasicCellStruct<TWords> {
|
|
4
|
+
columnIndex: number;
|
|
5
|
+
words: TWords;
|
|
6
|
+
}
|
|
3
7
|
export interface FeTable {
|
|
4
8
|
id: string;
|
|
5
9
|
slug: string;
|
|
@@ -11,9 +15,7 @@ export interface FeTable {
|
|
|
11
15
|
access: FeEntityAccess;
|
|
12
16
|
knowledge: FeWordKnowledge;
|
|
13
17
|
}
|
|
14
|
-
export interface FeCell {
|
|
15
|
-
columnIndex: number;
|
|
16
|
-
words: FeWord[];
|
|
18
|
+
export interface FeCell extends BasicCellStruct<FeWord[]> {
|
|
17
19
|
}
|
|
18
20
|
export interface FeRow {
|
|
19
21
|
id: string;
|
|
@@ -31,9 +33,7 @@ export interface FeTableEntity {
|
|
|
31
33
|
knowledge: FeWordKnowledge;
|
|
32
34
|
columns: string[];
|
|
33
35
|
}
|
|
34
|
-
export interface FeCellInfo {
|
|
35
|
-
columnIndex: number;
|
|
36
|
-
words: RealWord[];
|
|
36
|
+
export interface FeCellInfo extends BasicCellStruct<RealWord[]> {
|
|
37
37
|
}
|
|
38
38
|
export interface FeRowInfo {
|
|
39
39
|
tableId: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FeWordSetRequest, FeedRequest, LanguageFeedRequest } from "../../feed";
|
|
2
2
|
import { EntryWord } from "../common";
|
|
3
|
+
import { BasicCellStruct } from "./entity";
|
|
3
4
|
export interface FeRowFeedRequest extends FeedRequest {
|
|
4
5
|
slug: string;
|
|
5
6
|
}
|
|
@@ -24,9 +25,7 @@ export interface FeCreateTableRequest {
|
|
|
24
25
|
export interface FeUpdateTableRequest extends Omit<FeCreateTableRequest, "languageCode"> {
|
|
25
26
|
id: string;
|
|
26
27
|
}
|
|
27
|
-
export interface FeUpdateCellRequest {
|
|
28
|
-
index: number;
|
|
29
|
-
words: EntryWord;
|
|
28
|
+
export interface FeUpdateCellRequest extends BasicCellStruct<EntryWord> {
|
|
30
29
|
}
|
|
31
30
|
export interface FeUpdateRowRequest {
|
|
32
31
|
tableId: string;
|