import { IdentityTypeFlags, UserRole } from "@etsoo/appscript"; import { PersonProfileAttachmentItem } from "./PersonProfileAttachmentItem"; import { PersonProfileLinkItem } from "./PersonProfileLinkItem"; import { PersonListItem } from "../person/PersonListItem"; import { OrderKind } from "../order/OrderKind"; /** * Person profile inner view data * 人员档案查询浏览数据 */ export type PersonProfileInnerViewData = { /** * Person id * 人员编号 */ personId: number; /** * Person name * 人员名称 / 姓名 */ personName: string; /** * Person identity type * 人员身份类型 */ personIdentityType: IdentityTypeFlags; /** * Other persons * 其他参与者 */ persons?: PersonListItem[]; /** * Order / Purchase id * 订单 / 采购编号 */ orderId?: number; /** * Order title * 订单标题 */ orderTitle?: string; /** * Order kind * 订单类型 */ orderKind: OrderKind; /** * Comment * 评价 */ comment: string; /** * Location * 位置 */ location?: string; /** * User id * 用户编号 */ userId: number; /** * User role for privacy control * 隐私控制的用户角色 */ userRole?: UserRole; /** * JSON data * JSON 数据 */ data?: string; /** * Index key * 索引键 */ indexKey?: string; /** * Assignee id * 执行人编号 */ assigneeId?: number; /** * Assignee name * 执行人姓名 */ assigneeName?: string; /** * Is admin * 是否为管理员 */ isAdmin: boolean; /** * Links * 链接 */ links: PersonProfileLinkItem[]; /** * Attachments * 附件 */ attachments: PersonProfileAttachmentItem[]; };