revdev 0.23.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,13 +15,11 @@ export interface FeTable {
11
15
  access: FeEntityAccess;
12
16
  knowledge: FeWordKnowledge;
13
17
  }
14
- export interface FeTableRowColumn {
15
- columnIndex: number;
16
- words: FeWord[];
18
+ export interface FeCell extends BasicCellStruct<FeWord[]> {
17
19
  }
18
- export interface FeTableRow {
20
+ export interface FeRow {
19
21
  id: string;
20
- columns: FeTableRowColumn[];
22
+ cells: FeCell[];
21
23
  }
22
24
  export interface FeTableEntity {
23
25
  id: string;
@@ -31,12 +33,10 @@ export interface FeTableEntity {
31
33
  knowledge: FeWordKnowledge;
32
34
  columns: string[];
33
35
  }
34
- export interface FeTableRowColumnInfo {
35
- index: number;
36
- words: RealWord[];
36
+ export interface FeCellInfo extends BasicCellStruct<RealWord[]> {
37
37
  }
38
- export interface FeTableRowInfo {
38
+ export interface FeRowInfo {
39
39
  tableId: string;
40
40
  rowId: string;
41
- columns: FeTableRowColumnInfo[];
41
+ cells: FeCellInfo[];
42
42
  }
@@ -1,6 +1,7 @@
1
1
  import { FeWordSetRequest, FeedRequest, LanguageFeedRequest } from "../../feed";
2
2
  import { EntryWord } from "../common";
3
- export interface FeTableRowFeedRequest extends FeedRequest {
3
+ import { BasicCellStruct } from "./entity";
4
+ export interface FeRowFeedRequest extends FeedRequest {
4
5
  slug: string;
5
6
  }
6
7
  export interface FeTableWordFeedRequest extends FeWordSetRequest, FeedRequest {
@@ -9,7 +10,7 @@ export interface FeTableWordFeedRequest extends FeWordSetRequest, FeedRequest {
9
10
  export interface FeTableFeedRequest extends LanguageFeedRequest {
10
11
  userSlug?: string;
11
12
  }
12
- export interface FeTableRowRequest {
13
+ export interface FeRowUpdateRequest {
13
14
  tableId: string;
14
15
  rowId?: string;
15
16
  }
@@ -24,12 +25,10 @@ export interface FeCreateTableRequest {
24
25
  export interface FeUpdateTableRequest extends Omit<FeCreateTableRequest, "languageCode"> {
25
26
  id: string;
26
27
  }
27
- export interface FeUpdateTableRowColumnRequest {
28
- index: number;
29
- words: EntryWord;
28
+ export interface FeUpdateCellRequest extends BasicCellStruct<EntryWord> {
30
29
  }
31
- export interface FeUpdateTableRowRequest {
30
+ export interface FeUpdateRowRequest {
32
31
  tableId: string;
33
32
  rowId?: string;
34
- columns: FeUpdateTableRowColumnRequest[];
33
+ cells: FeUpdateCellRequest[];
35
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",