Files
doneit-web/src/app/models/dailyworktask.model.ts
T
2023-02-09 15:26:14 +01:00

194 lines
4.8 KiB
TypeScript

import * as internal from "stream";
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 const activityInstanceNameArray = [
'Concluir Despacho',
'Tarefa de Despacho','Reexecutar Despacho','Concluir Parecer',
'Concluir Deferimento',
'Reapreciar Deferimento',
'Tarefa de Deferimento',
'Assinar Diploma',
'Diploma Assinado',
'Retificar Diploma',
'Gerar Diploma',
'Editar Evento',
'Revisar Diploma',
'Tarefa de Parecer'
] as const; // TS3.4 syntax
export type activityInstanceName = typeof activityInstanceNameArray[number];
export interface fullTaskList {
serialNumber: string;
taskStartDate: string;
workflowDisplayName: string;
activityInstanceName: activityInstanceName;
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 {
Folio: string
SerialNumber: string
Senders : string
CreateDate : any
DocumentsQty : number
WorkflowName : string
activityInstanceName : string
Status : string
taskStartDate: string
Subject: string
}
export interface PedidoDeDeferimento {
serialNumber: string;
taskStartDate: Date;
deadline: Date | null;
workflowDisplayName: string;
activityInstanceName: string;
totalDocuments: number;
workflowInstanceDataFields: PedidoDeDeferimentoWorkflowInstanceDataFields;
}
export interface PedidoDeDeferimentoWorkflowInstanceDataFields {
Sender: string;
Subject: string;
FolderID: number;
Status: string;
originator: string;
}