This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
models.ts
163 lines (146 loc) · 4.11 KB
/
models.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
namespace Kurve {
export interface ItemBody {
contentType?: string;
content?: string;
}
export interface EmailAddress {
name?: string;
address?: string;
}
export interface Recipient {
emailAddress?: EmailAddress;
}
export interface UserDataModel {
businessPhones?: string;
displayName?: string;
givenName?: string;
jobTitle?: string;
mail?: string;
mobilePhone?: string;
officeLocation?: string;
preferredLanguage?: string;
surname?: string;
userPrincipalName?: string;
id?: string;
}
export interface ProfilePhotoDataModel {
id?: string;
height?: Number;
width?: Number;
}
export interface MessageDataModel {
attachments?: AttachmentDataModel[];
bccRecipients?: Recipient[];
body?: ItemBody;
bodyPreview?: string;
categories?: string[]
ccRecipients?: Recipient[];
changeKey?: string;
conversationId?: string;
createdDateTime?: string;
from?: Recipient;
graph?: any;
hasAttachments?: boolean;
id?: string;
importance?: string;
isDeliveryReceiptRequested?: boolean;
isDraft?: boolean;
isRead?: boolean;
isReadReceiptRequested?: boolean;
lastModifiedDateTime?: string;
parentFolderId?: string;
receivedDateTime?: string;
replyTo?: Recipient[]
sender?: Recipient;
sentDateTime?: string;
subject?: string;
toRecipients?: Recipient[];
webLink?: string;
}
export interface Attendee {
status?: ResponseStatus;
type?: string;
emailAddress?: EmailAddress;
}
export interface DateTimeTimeZone {
dateTime?: string;
timeZone?: string;
}
export interface PatternedRecurrence { }
export interface ResponseStatus {
response?: string;
time?: string
}
export interface Location {
displayName?: string;
address?: any;
}
export interface EventDataModel {
attendees?: Attendee[];
body?: ItemBody;
bodyPreview?: string;
categories?: string[];
changeKey?: string;
createdDateTime?: string;
end?: DateTimeTimeZone;
hasAttachments?: boolean;
iCalUId?: string;
id?: string;
IDBCursor?: string;
importance?: string;
isAllDay?: boolean;
isCancelled?: boolean;
isOrganizer?: boolean;
isReminderOn?: boolean;
lastModifiedDateTime?: string;
location?: Location;
organizer?: Recipient;
originalEndTimeZone?: string;
originalStartTimeZone?: string;
recurrence?: PatternedRecurrence;
reminderMinutesBeforeStart?: number;
responseRequested?: boolean;
responseStatus?: ResponseStatus;
sensitivity?: string;
seriesMasterId?: string;
showAs?: string;
start?: DateTimeTimeZone;
subject?: string;
type?: string;
webLink?: string;
}
export interface GroupDataModel {
id?: string;
description?: string;
displayName?: string;
groupTypes?: string[];
mail?: string;
mailEnabled?: Boolean;
mailNickname?: string;
onPremisesLastSyncDateTime?: Date;
onPremisesSecurityIdentifier?: string;
onPremisesSyncEnabled?: Boolean;
proxyAddresses?: string[];
securityEnabled?: Boolean;
visibility?: string;
}
export interface MailFolderDataModel {
id?: string;
displayName?: string;
childFolderCount?: number;
unreadItemCount?: number;
totalItemCount?: number;
}
export interface AttachmentDataModel {
contentId?: string;
id?: string;
isInline?: boolean;
lastModifiedDateTime?: Date;
name?: string;
size?: number;
/* File Attachments */
contentBytes?: string;
contentLocation?: string;
contentType?: string;
}
}