UNPKG

dingtalk-docs-cool-app

Version:

钉钉文档酷应用插件扩展 开发者初始化包

50 lines (49 loc) 1.15 kB
import { FieldType } from './field'; export interface TextResultType { type: FieldType.Text; } export interface NumberResultType { type: FieldType.Number; } interface SingleSelectResultType { type: FieldType.SingleSelect; extra: { options: Array<{ name: string; }>; }; } interface MultiSelectResultType { type: FieldType.MultiSelect; extra: { options: Array<{ name: string; }>; }; } interface ObjectFieldProperty { key: string; title: string; type: FieldType.Text; hidden?: boolean; primary?: boolean; defaultSelected?: boolean; } interface ObjectResultType { type: FieldType.Object; extra: { properties: ObjectFieldProperty[]; icon?: { light: string; dark?: string; }; }; } interface LinkResultType { type: FieldType.Link; } interface AttachmentResultType { type: FieldType.Attachment; } export type FieldResultType = TextResultType | NumberResultType | LinkResultType | AttachmentResultType | SingleSelectResultType | MultiSelectResultType | ObjectResultType; export {};