@demind-inc/core 1.6.41 → 1.6.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -126,6 +126,54 @@ export interface EventCategorySet {
|
|
|
126
126
|
name: string;
|
|
127
127
|
predicted?: boolean;
|
|
128
128
|
}
|
|
129
|
+
export interface NativeAppleEvent {
|
|
130
|
+
id: string;
|
|
131
|
+
title: string;
|
|
132
|
+
startDate: string;
|
|
133
|
+
endDate: string;
|
|
134
|
+
allDay: boolean;
|
|
135
|
+
url?: string;
|
|
136
|
+
occurrenceDate?: string;
|
|
137
|
+
availability?: string;
|
|
138
|
+
location?: string;
|
|
139
|
+
notes?: string;
|
|
140
|
+
timeZone?: string | null;
|
|
141
|
+
recurrence?: string;
|
|
142
|
+
isDetached?: boolean;
|
|
143
|
+
recurrenceRule?: {
|
|
144
|
+
frequency: string;
|
|
145
|
+
interval: number;
|
|
146
|
+
endDate: string;
|
|
147
|
+
};
|
|
148
|
+
calendar?: {
|
|
149
|
+
allowedAvailabilities: string[];
|
|
150
|
+
allowsModifications: boolean;
|
|
151
|
+
source: string;
|
|
152
|
+
title: string;
|
|
153
|
+
color: string;
|
|
154
|
+
id: string;
|
|
155
|
+
};
|
|
156
|
+
alarms?: Array<{
|
|
157
|
+
date: string;
|
|
158
|
+
}>;
|
|
159
|
+
structuredLocation?: {
|
|
160
|
+
radius: number;
|
|
161
|
+
coords: {
|
|
162
|
+
longitude: number;
|
|
163
|
+
latitude: number;
|
|
164
|
+
};
|
|
165
|
+
title: string;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
export interface AppleCalendar {
|
|
169
|
+
id: string;
|
|
170
|
+
title: string;
|
|
171
|
+
color: string;
|
|
172
|
+
isPrimary: boolean;
|
|
173
|
+
source: string;
|
|
174
|
+
allowsModifications: boolean;
|
|
175
|
+
events?: NativeAppleEvent[];
|
|
176
|
+
}
|
|
129
177
|
export declare const defaultEventCategorySet: EventCategorySet[];
|
|
130
178
|
export type DefaultEventCategoryId = "default_mtg" | "default_lightTask" | "default_deepWork" | "default_exercise" | "default_meal" | "default_break" | "default_other" | "default_social";
|
|
131
179
|
export declare const eventCategoryColorMap: Record<DefaultEventCategoryId, string>;
|
package/lib/models/Calendar.ts
CHANGED
|
@@ -167,6 +167,56 @@ export interface EventCategorySet {
|
|
|
167
167
|
predicted?: boolean;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
export interface NativeAppleEvent {
|
|
171
|
+
id: string;
|
|
172
|
+
title: string;
|
|
173
|
+
startDate: string;
|
|
174
|
+
endDate: string;
|
|
175
|
+
allDay: boolean;
|
|
176
|
+
url?: string;
|
|
177
|
+
occurrenceDate?: string;
|
|
178
|
+
availability?: string;
|
|
179
|
+
location?: string;
|
|
180
|
+
notes?: string;
|
|
181
|
+
timeZone?: string | null;
|
|
182
|
+
recurrence?: string;
|
|
183
|
+
isDetached?: boolean;
|
|
184
|
+
recurrenceRule?: {
|
|
185
|
+
frequency: string;
|
|
186
|
+
interval: number;
|
|
187
|
+
endDate: string;
|
|
188
|
+
};
|
|
189
|
+
calendar?: {
|
|
190
|
+
allowedAvailabilities: string[];
|
|
191
|
+
allowsModifications: boolean;
|
|
192
|
+
source: string;
|
|
193
|
+
title: string;
|
|
194
|
+
color: string;
|
|
195
|
+
id: string;
|
|
196
|
+
};
|
|
197
|
+
alarms?: Array<{
|
|
198
|
+
date: string;
|
|
199
|
+
}>;
|
|
200
|
+
structuredLocation?: {
|
|
201
|
+
radius: number;
|
|
202
|
+
coords: {
|
|
203
|
+
longitude: number;
|
|
204
|
+
latitude: number;
|
|
205
|
+
};
|
|
206
|
+
title: string;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export interface AppleCalendar {
|
|
211
|
+
id: string;
|
|
212
|
+
title: string;
|
|
213
|
+
color: string;
|
|
214
|
+
isPrimary: boolean;
|
|
215
|
+
source: string;
|
|
216
|
+
allowsModifications: boolean;
|
|
217
|
+
events?: NativeAppleEvent[];
|
|
218
|
+
}
|
|
219
|
+
|
|
170
220
|
export const defaultEventCategorySet: EventCategorySet[] = [
|
|
171
221
|
{ id: "default_mtg", name: "Meeting" },
|
|
172
222
|
{ id: "default_lightTask", name: "Light Task" },
|