mobx-lark 2.6.3 → 2.6.4
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/module/BITable/type.d.ts +3 -4
- package/package.json +1 -1
- package/src/Lark.ts +2 -2
- package/src/module/BITable/type.ts +3 -4
|
@@ -17,6 +17,7 @@ export type LarkFormData = LarkData<{
|
|
|
17
17
|
form: TableFormView;
|
|
18
18
|
}>;
|
|
19
19
|
export interface BiTableSchema {
|
|
20
|
+
appId: string;
|
|
20
21
|
tables: BITable[];
|
|
21
22
|
tableIdMap: Record<string, string>;
|
|
22
23
|
forms: Record<string, TableFormView[]>;
|
|
@@ -37,10 +38,8 @@ export interface TableCellMedia extends Record<'file_token' | 'name' | `${'' | '
|
|
|
37
38
|
export interface TableCellAttachment extends Pick<TableCellMedia, 'name' | 'size'>, Record<'id' | 'attachmentToken', string>, Record<'height' | 'timeStamp' | 'width', number> {
|
|
38
39
|
mimeType: TableCellMedia['type'];
|
|
39
40
|
}
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
export type TableCellGroup = Record<'id' | 'name' | 'avatar_url', string>;
|
|
41
|
+
export type TableCellUser = LocaleUser & Record<'id' | 'avatar_url', string>;
|
|
42
|
+
export type TableCellGroup = Pick<TableCellUser, 'id' | 'name' | 'avatar_url'>;
|
|
44
43
|
export interface TableCellMetion extends Record<'mentionType' | 'text', string> {
|
|
45
44
|
type: 'mention';
|
|
46
45
|
}
|
package/package.json
CHANGED
package/src/Lark.ts
CHANGED
|
@@ -286,7 +286,7 @@ export class LarkApp implements LarkAppOption {
|
|
|
286
286
|
return this.documentStore.getOneContent(doc_token, 'markdown');
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
async getBiTableSchema(appId: string) {
|
|
289
|
+
async getBiTableSchema(appId: string): Promise<BiTableSchema> {
|
|
290
290
|
const { client } = this;
|
|
291
291
|
|
|
292
292
|
class InternalTableModel extends BiTable() {
|
|
@@ -308,6 +308,6 @@ export class LarkApp implements LarkAppOption {
|
|
|
308
308
|
Object.fromEntries(list.map(({ name, shared_url }) => [name, shared_url]))
|
|
309
309
|
])
|
|
310
310
|
);
|
|
311
|
-
return { tables, tableIdMap, forms, formLinkMap }
|
|
311
|
+
return { appId, tables, tableIdMap, forms, formLinkMap };
|
|
312
312
|
}
|
|
313
313
|
}
|
|
@@ -24,6 +24,7 @@ export interface TableFormView
|
|
|
24
24
|
export type LarkFormData = LarkData<{ form: TableFormView }>;
|
|
25
25
|
|
|
26
26
|
export interface BiTableSchema {
|
|
27
|
+
appId: string;
|
|
27
28
|
tables: BITable[];
|
|
28
29
|
tableIdMap: Record<string, string>;
|
|
29
30
|
forms: Record<string, TableFormView[]>;
|
|
@@ -60,11 +61,9 @@ export interface TableCellAttachment
|
|
|
60
61
|
mimeType: TableCellMedia['type'];
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
export
|
|
64
|
-
id: string;
|
|
65
|
-
}
|
|
64
|
+
export type TableCellUser = LocaleUser & Record<'id' | 'avatar_url', string>;
|
|
66
65
|
|
|
67
|
-
export type TableCellGroup =
|
|
66
|
+
export type TableCellGroup = Pick<TableCellUser, 'id' | 'name' | 'avatar_url'>;
|
|
68
67
|
|
|
69
68
|
export interface TableCellMetion extends Record<'mentionType' | 'text', string> {
|
|
70
69
|
type: 'mention';
|