import { BoardAxisType, ProjectId, SmartGroupId, SmartGroupViewType, SmartGroupViewVisibilityType, SmartGroupPredefinedIcon, SmartGroupType, TaskSortMethod, TaskflowId, UserId, ScenarioFieldConfigId, SmartGroupViewTaskLayer, ExecutorOrCreator } from 'teambition-types'; export interface SmartGroupSchema { _id: SmartGroupId; _projectId: ProjectId; _creatorId: UserId; name: string; description: string; icon: SmartGroupPredefinedIcon | null; taskCount?: { total: number; }; type?: SmartGroupType; view: { type: SmartGroupViewType; vertical?: BoardAxisType; horizontal?: BoardAxisType; _verticalIds?: ScenarioFieldConfigId[]; _horizontalId?: TaskflowId; taskLayer?: SmartGroupViewTaskLayer; tableCellDescriptorList?: Array<{}>; tableSortBy?: { key: string; order: 'asc' | 'desc'; }; tableSeeThroughSubtasks?: boolean; }; orderBy?: TaskSortMethod; filter: string; creator: ExecutorOrCreator; created: string; updated: string; /** * visibility 是对 visible 的解析,真正对可见性起作用的是 visible 的第一项 */ visibility: SmartGroupViewVisibilityType; visible: string[]; isGlobal: boolean; labels: string[]; }