UNPKG

dingtalk-jsapi

Version:

钉钉 模块化 多端统一 API

37 lines (36 loc) 1.28 kB
export declare const CHANNEL_NAMESPACE = "wiki_picker"; export declare const CHANNEL_EVENT = "wiki_picker_submit"; export interface IPageItem { id: string; name: string; dentryKey: string; createTime: number; updateTime: number; docType: 0 | 1; url: string; } export interface IBookItem { id: string; groupId: string; groupName: string; createTime: number; creatorName: string; updateTime: number; updatorName: string; name: string; desc: string; isFavorite: boolean; orgId: number; } /** * 打开知识库选文组件选择知识页 * @param title 选文组件窗口标题 * @param options 要传递的参数 示例{ limit: 5, corpId: xxxxx } corpId/orgId必传,传哪个都可以 */ export declare const chooseWikiPages: (title: string, options?: Record<string, string | number | boolean | null | undefined> | undefined) => Promise<IPageItem[]>; /** * 打开知识库选文组件选择知识本 * @param title 选文组件窗口标题 * @param options 要传递的参数 示例{ corpId: xxxxx } corpId/orgId必传,传哪个都可以 */ export declare const chooseWikiBook: (title: string, options?: Record<string, string | number | boolean | null | undefined> | undefined) => Promise<IBookItem>;