UNPKG

@lark-project/cli

Version:

飞书项目插件开发工具

59 lines (58 loc) 1.77 kB
import { ECompType, EFeaturePlatform, EFeatureScene, EFeatureType, EFeatureWorkItemTypeScope, EPluginFrameworkVersion, IPluginFeature } from "../types"; export interface IResponse { plugin_info: { key: string; name: string; short: string; icon: string; }; point_info_map: Record<string, { description: string; icon?: string; key: string; name: string; type: EFeatureType; component_type?: ECompType; work_item_type: EFeatureWorkItemTypeScope[]; custom_work_item_type?: string[]; platform: Record<EFeaturePlatform, { scene: EFeatureScene[]; type: string; resource: string; }>; extension?: { ext_key: string; ext_type: string; ext_subType: string; ext_config: unknown; }[]; i18n_info: { ['zh-cn']: { name: string; description: string; }; ['en-us']: { name: string; description: string; }; ['ja-jp']: { name: string; description: string; }; }; }>; plugin_extension: { runtime_version?: '2.0.0'; }; } interface IPluginInfo { frameworkVersion: EPluginFrameworkVersion; id: string; name: string; icon: string; short: string; features: IPluginFeature[]; } export declare function getPluginPointInfo(pluginId: string, pluginSecret: string, siteDomain: string): Promise<Record<string, any>>; export declare function getPluginInfo(pluginId: string, pluginSecret: string, siteDomain: string): Promise<IPluginInfo>; export {};