export class DailyWorkTask{
    SerialNumber: string;
    Folio: string;
    Senders: string;
    CreateDate: any;
    DocumentURL: string;
    Remetente:string;
    DocumentsQty:any;
    WorkflowName:string;
    activityInstanceName: string;
    Status: string;
}

export class fullTask {
    actions: null;
    activityInstanceName: string;
    formURL: string;
    originator: {
        displayName: string,
        email: string,
        fqn: string,
        manager: string,
        username: string,
    };
    serialNumber: string;
    taskStartDate: string;
    workflowDisplayName: string;
    workflowID: number;
    totalDocuments: any;
    workflowInstanceDataFields: {
        DispatchNumber: any,
        AttachmentsProcessLastInstanceId: number,
        Sender: string,
        ViewerRequest: string,
        DispatchDocId: number,
        Remetente: string,
        DispatchImageId: number,
        Status: string,
        DistributionTypeName: string,
        DocID: number,
        DocIDTmp: string,
        FolderID: number,
        ImageID: string,
        ImageIDTmp: string,
        ImageXMLTmp: string,
        InstanceDistributionId: number,
        DeadlineType: any,
        Note: string,
        InstanceID: string,
        InstanceIDNew: string,
        NewSerialNumber: string,
        ReviewUserComment: string,
        ReviewUserEmail: string,
        ReviewUserName: string,
        SourceID: number,
        SourceSecFsID: number,
        SourceType: string,
        Subject: string,
        TaskMessage: string,
        UserName: string,
        WorkflowID: string,
        wxUserID: number,
    }
    Documents: any[]
    workflowInstanceFolio: string
    workflowInstanceID: number
    workflowName: string
}

export interface fullTaskList {
    serialNumber: string;
    taskStartDate: string;
    workflowDisplayName: string;
    activityInstanceName: string;
    totalDocuments: number;
    workflowInstanceDataFields: {
        Subject: string;
        Sender: string;
        FolderID: number;
        DispatchDocId: number;
        Status: string;
        // all list
        ViewerRequest?: any
        Remetente?: any
        Agenda?: any // event to approve
        StartDate?: any // event to approve
        EndDate?: any // event to approve
        InstanceId?: string // event to approve
        Location?: string // event to approve
        IsAllDayEvent?: any // event to approve
        // pedidos
        DocIdDiferimento?: any
        // pedidos deferimento // Despacho do Presidente da República
        originator?: any
    }
}

export class customFullTask {
    serialNumber: string;
    taskStartDate: string;
    isEvent: true;
    workflowInstanceDataFields: {
      FsId: string,
      FolderID: number,
      DocId: number,
      Subject: string
    }
}

export class customTask {
    SerialNumber: string
    Folio : string
    Senders: string
    CreateDate : string
    DocumentURL : string
    Remetente : string
    DocumentsQty : string
    DocId : number
    FolderID  : number
    WorkflowName : string
    activityInstanceName  : string
    Status : string
}


export interface expedienteTask  {
    SerialNumber: string
    Folio : string
    Senders: string
    CreateDate : string
    DocumentURL : string
    Note: any
    FolderId  : number | string
    Remetente : string
    DocId : number
    FsId: any
    WorkflowName : string
    Status : string
    DispatchNumber: any
    AttachmentsProcessLastInstanceID: any
    InstanceID: any
}

export interface ExpedienteTask {
    SerialNumber: string
    Senders  : string
    CreateDate  : string
    DocumentsQty  : number
    WorkflowName  : string
    activityInstanceName  : string
    Status  : string
    taskStartDate: string
    Subject: string
}