import { Entity, ENTITY_TYPE } from './nuxeo-response.model'; export interface Task { [ENTITY_TYPE]?: string; id?: string; name?: string; workflowInstanceId?: string; workflowModelName?: string; workflowInitiator?: string; workflowTitle?: string; workflowLifeCycleState?: string; graphResource?: string; state?: string; directive?: any; created?: string; dueDate?: string; nodeName?: string; targetDocumentIds?: Entity[]; actors?: Actor[]; delegatedActors?: any[]; comments?: any[]; variables?: Record; taskInfo?: TaskInfo; workflowInitiatorDetails?: WorkflowInitiatorDetails; actorsDetails?: Record[]; customTaskVariables?: Record; workflowVariables?: Record; } export interface Actor { id?: string; [ENTITY_TYPE]?: string; properties?: BaseProperties; extendedGroups?: any[]; isPartial?: boolean; isAdministrator?: boolean; isAnonymous?: boolean; birthdate?: any; phonenumber?: any; avatar?: any; userGroups?: BaseModel[]; fullName?: string; } export interface WorkflowInitiatorDetails { properties?: BaseProperties; fullName?: string; birthdate?: any; phonenumber?: any; avatar?: any; } export interface TaskInfo { allowTaskReassignment?: boolean; taskActions?: BaseModel[]; layoutResource?: BaseModel; schemas?: BaseModel[]; } interface BaseModel { name?: string; url?: string; label?: string; validate?: boolean; } interface BaseProperties { firstName?: string; lastName?: string; jobTitle?: any; tenantId?: any; groups?: string[]; company?: any; email?: string; username?: string; } export {};