-
-
Notifications
You must be signed in to change notification settings - Fork 864
/
Copy pathInterfaceEvents.ts
82 lines (79 loc) · 1.71 KB
/
InterfaceEvents.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
export interface InterfaceAttendanceStatisticsModalProps {
show: boolean;
handleClose: () => void;
statistics: {
totalMembers: number;
membersAttended: number;
attendanceRate: number;
};
memberData: InterfaceMember[];
t: (key: string) => string;
}
export interface InterfaceMember {
createdAt: string;
firstName: string;
lastName: string;
email: `${string}@${string}.${string}`;
gender: string;
eventsAttended?: {
_id: string;
}[];
birthDate: Date;
__typename: string;
_id: string;
tagsAssignedWith: {
edges: {
cursor: string;
node: {
name: string;
};
}[];
};
}
export interface InterfaceEvent {
_id: string;
title: string;
description: string;
startDate: string;
endDate: string;
location: string;
startTime: string;
endTime: string;
allDay: boolean;
recurring: boolean;
recurrenceRule: {
recurrenceStartDate: string;
recurrenceEndDate?: string | null;
frequency: string;
weekDays: string[];
interval: number;
count?: number;
weekDayOccurenceInMonth?: number;
};
isRecurringEventException: boolean;
isPublic: boolean;
isRegisterable: boolean;
attendees: {
_id: string;
firstName: string;
lastName: string;
email: string;
gender: string;
birthDate: string;
}[];
__typename: string;
}
export interface InterfaceRecurringEvent {
_id: string;
title: string;
startDate: string;
endDate: string;
frequency: InterfaceEvent['recurrenceRule']['frequency'];
interval: InterfaceEvent['recurrenceRule']['interval'];
attendees: {
_id: string;
gender: 'MALE' | 'FEMALE' | 'OTHER' | 'PREFER_NOT_TO_SAY';
}[];
isPublic: boolean;
isRegisterable: boolean;
}