mobx-lark 2.8.1 → 2.10.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.
package/dist/Lark.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Context, HTTPClient } from 'koajax';
2
- import { BiTableSchema, CopiedFile, DocumentAIModel, DocumentModel, DriveFileModel, UserIdType, WikiNode, WikiNodeModel } from './module';
2
+ import { BiTableSchema, CopiedFile, DocumentAIModel, DocumentModel, DriveFileModel, PublishedFile, UserIdType, WikiNode, WikiNodeModel } from './module';
3
3
  import { LarkDocumentPathType, UploadTargetType, UserMeta } from './type';
4
4
  export interface LarkAppBaseOption {
5
5
  host?: string;
@@ -11,8 +11,7 @@ export interface LarkAppServerOption extends LarkAppBaseOption {
11
11
  export interface LarkAppClientOption extends LarkAppBaseOption {
12
12
  accessToken: string;
13
13
  }
14
- export interface LarkAppOption extends LarkAppServerOption, LarkAppClientOption {
15
- }
14
+ export type LarkAppOption = LarkAppServerOption & LarkAppClientOption;
16
15
  export declare class LarkApp implements LarkAppOption {
17
16
  host: string;
18
17
  id: string;
@@ -74,5 +73,10 @@ export declare class LarkApp implements LarkAppOption {
74
73
  * @see {@link DocumentModel#getOneContent}
75
74
  */
76
75
  downloadMarkdown(URI: string): Promise<string>;
76
+ /**
77
+ * @see {@link DriveFileModel#updatePublicPermission}
78
+ * @see {@link DriveFileModel#createPublicPassword}
79
+ */
80
+ publishFile(URI: string, enablePassword?: boolean, editable?: boolean): Promise<PublishedFile>;
77
81
  getBiTableSchema(appId: string): Promise<BiTableSchema>;
78
82
  }