Files
doneit-web/src/app/models/event.model.ts
T

141 lines
3.3 KiB
TypeScript
Raw Normal View History

import { EventBody } from './eventbody.model';
import { EventPerson } from './eventperson.model';
2021-08-19 12:52:26 +01:00
export interface EventRecurrence {
Type: number | string;
Day?: number;
DayOfWeek?: number;
Month?: number | string;
LastOccurrence?: Date | string;
}
2020-08-21 16:18:37 +01:00
export class Event{
2021-04-26 13:29:19 +01:00
ParentId?: string;
EventId: string;
Subject: string;
Body: EventBody;
Location: string;
CalendarId: string;
CalendarName: string;
2020-09-04 01:25:32 +01:00
StartDate: Date;
EndDate: Date;
EventType: string;
Attendees: EventPerson[];
IsMeeting: boolean;
IsRecurring: boolean;
AppointmentState: number;
TimeZone: string;
2021-07-26 22:46:33 +01:00
Organizer: any
2021-07-15 08:53:54 +01:00
Category: string;
2021-07-14 15:23:45 +01:00
HasAttachments: boolean;
2021-07-20 12:30:52 +01:00
EventRecurrence: EventRecurrence;
2021-07-26 22:46:33 +01:00
Name?: string
2021-07-08 13:20:54 +01:00
/* public Event(){
2021-07-08 21:31:14 +01:00
this.EventRecurrence = new EventRecurrence();
2021-07-08 13:20:54 +01:00
} */
2021-05-14 14:37:38 +01:00
}
2021-08-19 12:52:26 +01:00
// event to approve details ================================================
export interface Originator {
email: string;
manager: string;
displayName: string;
fqn: string;
username: string;
}
export interface WorkflowInstanceDataFields {
Body: string;
Location: string;
Subject: string;
StartDate: string;
EndDate: string;
Participants?: string;
CC?: string;
ReviewUserComment?: string;
Role?: number;
MDName: string;
MDEmail: string;
OriginatorComments?: string;
Status?: string;
TimeZone?: string;
Agenda: string;
EventType: string;
EventID?: string;
IsRecurring?: any;
HasAttachments?: boolean;
ParticipantsList?: any;
EventOrganizer?: string;
CreateEvent?: string;
IsAllDayEvent: boolean;
SerializedItem?: string;
MDwxUserID?: number;
DeserializedItem?: string;
Message: string;
InstanceId: string;
Header?: string;
RecurringString?: string;
LastOccurrence: string;
OccurrenceType: string;
SerialNumber?: string;
UserEmail?: string;
PREmail?: string;
2021-07-14 15:23:45 +01:00
}
2021-08-19 12:52:26 +01:00
export interface EventToApproveDetails {
serialNumber: string;
originator?: Originator;
actions?: string[];
activityInstanceName?: string;
workflowInstanceFolio?: string;
taskStartDate?: string;
workflowID?: number;
workflowInstanceID?: number;
workflowName?: string;
workflowDisplayName?: string;
formURL?: string;
workflowInstanceDataFields: WorkflowInstanceDataFields;
totalDocuments?: any;
Documents?: any;
}
// ================================================================================
// event event to approve ================
export interface ParticipantsList {
Id: number;
EmailAddress: string;
Name: string;
IsRequired: boolean;
}
export interface EventToApproveEdit {
SerialNumber: string;
Body: string;
Location: string;
Subject: string;
StartDate: Date | string;
EndDate: Date | string;
ReviewUserComment: string;
MDName: string;
MDEmail: string;
IsAllDayEvent: boolean;
Status: string;
EventType: string;
IsRecurring: boolean;
ParticipantsList: ParticipantsList[];
Message: string;
EventRecurrence: EventRecurrence;
Participants?: string;
CC?: string;
Agenda: string;
HasAttachments?: boolean;
EventOrganizer?: string;
InstanceId?: string;
}
// ================================================================================