@demind-inc/core 1.7.39 → 1.7.41

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.
@@ -44,6 +44,7 @@ export declare const DB_COLLECTION: {
44
44
  CHAT_TASK_SESSION: string;
45
45
  CHAT_GENERAL_SESSION: string;
46
46
  SHARED_ACCESS: string;
47
+ EVENT_SERIES: string;
47
48
  };
48
49
  export declare const SLEEP_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
49
50
  export declare const STRESS_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
package/dist/constants.js CHANGED
@@ -45,6 +45,7 @@ exports.DB_COLLECTION = {
45
45
  CHAT_TASK_SESSION: "taskSession",
46
46
  CHAT_GENERAL_SESSION: "generalSession",
47
47
  SHARED_ACCESS: "sharedAccess",
48
+ EVENT_SERIES: "eventSeries",
48
49
  };
49
50
  exports.SLEEP_SUPPORTED_TERRA_PROVIDERS = [
50
51
  "FITBIT",
@@ -83,6 +83,7 @@ export interface CalendarEvent {
83
83
  color: string;
84
84
  };
85
85
  recurrence?: CalendarEventRecurrence;
86
+ seriesId?: string;
86
87
  }
87
88
  export interface CalendarEventRecurrence {
88
89
  recurringEventId?: string;
@@ -146,17 +147,31 @@ export interface EventCategorySet {
146
147
  name: string;
147
148
  predicted?: boolean;
148
149
  }
149
- export type AppleRecurrenceRuleFrequency = "daily" | "weekly" | "monthly" | "yearly";
150
+ export type AppleRecurrenceRuleFrequency = "daily" | "weekly" | "monthly" | "yearly" | "";
150
151
  export type AppleRecurrenceRule = {
151
152
  frequency: AppleRecurrenceRuleFrequency;
152
153
  interval: number;
153
154
  endDate?: string;
154
- occurrence?: number;
155
+ occurrence?: number | "";
156
+ firstDayOfWeek?: number;
157
+ daysOfWeek?: Array<{
158
+ day: string;
159
+ weekNumber?: number;
160
+ }>;
161
+ daysOfMonth?: number[];
162
+ monthsOfYear?: number[];
155
163
  } | {
156
164
  frequency: "";
157
165
  interval: "";
158
166
  endDate: "";
159
167
  occurrence: "";
168
+ firstDayOfWeek?: number;
169
+ daysOfWeek?: Array<{
170
+ day: string;
171
+ weekNumber?: number;
172
+ }>;
173
+ daysOfMonth?: number[];
174
+ monthsOfYear?: number[];
160
175
  };
161
176
  export interface NativeAppleEvent {
162
177
  id: string;
@@ -206,3 +221,31 @@ export declare const defaultEventCategorySet: EventCategorySet[];
206
221
  export type DefaultEventCategoryId = "default_mtg" | "default_lightTask" | "default_deepWork" | "default_exercise" | "default_meal" | "default_break" | "default_other" | "default_social";
207
222
  export declare const eventCategoryColorMap: Record<DefaultEventCategoryId, string>;
208
223
  export declare const labelColors: Record<string, string>;
224
+ export interface EventSeries {
225
+ summary: string;
226
+ description: string;
227
+ location: string;
228
+ start: {
229
+ date: string;
230
+ timeZone: string;
231
+ };
232
+ end: {
233
+ date: string;
234
+ timeZone: string;
235
+ };
236
+ isAllDay: boolean;
237
+ rrule: string;
238
+ count: number | null;
239
+ until: string | null;
240
+ status: CalendarEventStatus;
241
+ calendarId: string;
242
+ createdDate: string;
243
+ updatedDate: string;
244
+ eventMetrics?: CalendarEventMetrics;
245
+ categories?: Array<EventCategorySet>;
246
+ color?: string;
247
+ providerRecurrence?: {
248
+ type: CalendarType;
249
+ raw: string | AppleRecurrenceRule;
250
+ };
251
+ }
@@ -41,6 +41,7 @@ export interface CalendarPreference {
41
41
  hideAutoSchedule?: {
42
42
  completedTask?: boolean;
43
43
  routine?: boolean;
44
+ exercise?: boolean;
44
45
  };
45
46
  }
46
47
  export type SchedulerItemPrefType = keyof Pick<SchedulerPreference, "workTime" | "deepWork" | "lightWork" | "lunch" | "dinner" | "workout">;
package/lib/constants.ts CHANGED
@@ -45,6 +45,7 @@ export const DB_COLLECTION = {
45
45
  CHAT_TASK_SESSION: "taskSession",
46
46
  CHAT_GENERAL_SESSION: "generalSession",
47
47
  SHARED_ACCESS: "sharedAccess",
48
+ EVENT_SERIES: "eventSeries",
48
49
  };
49
50
 
50
51
  export const SLEEP_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
@@ -89,6 +89,7 @@ export interface CalendarEvent {
89
89
  color: string;
90
90
  };
91
91
  recurrence?: CalendarEventRecurrence;
92
+ seriesId?: string;
92
93
  }
93
94
 
94
95
  export interface CalendarEventRecurrence {
@@ -194,20 +195,29 @@ export type AppleRecurrenceRuleFrequency =
194
195
  | "daily"
195
196
  | "weekly"
196
197
  | "monthly"
197
- | "yearly";
198
+ | "yearly"
199
+ | "";
198
200
 
199
201
  export type AppleRecurrenceRule =
200
202
  | {
201
203
  frequency: AppleRecurrenceRuleFrequency;
202
204
  interval: number;
203
205
  endDate?: string;
204
- occurrence?: number;
206
+ occurrence?: number | "";
207
+ firstDayOfWeek?: number;
208
+ daysOfWeek?: Array<{ day: string; weekNumber?: number }>;
209
+ daysOfMonth?: number[];
210
+ monthsOfYear?: number[];
205
211
  }
206
212
  | {
207
213
  frequency: "";
208
214
  interval: "";
209
215
  endDate: "";
210
216
  occurrence: "";
217
+ firstDayOfWeek?: number;
218
+ daysOfWeek?: Array<{ day: string; weekNumber?: number }>;
219
+ daysOfMonth?: number[];
220
+ monthsOfYear?: number[];
211
221
  };
212
222
 
213
223
  export interface NativeAppleEvent {
@@ -300,3 +310,26 @@ export const labelColors: Record<string, string> = {
300
310
  pink: "#FF69B4",
301
311
  lime: "#32CD32",
302
312
  };
313
+
314
+ export interface EventSeries {
315
+ summary: string;
316
+ description: string;
317
+ location: string;
318
+ start: { date: string; timeZone: string };
319
+ end: { date: string; timeZone: string };
320
+ isAllDay: boolean;
321
+ rrule: string;
322
+ count: number | null;
323
+ until: string | null;
324
+ status: CalendarEventStatus;
325
+ calendarId: string;
326
+ createdDate: string;
327
+ updatedDate: string;
328
+ eventMetrics?: CalendarEventMetrics;
329
+ categories?: Array<EventCategorySet>;
330
+ color?: string;
331
+ providerRecurrence?: {
332
+ type: CalendarType;
333
+ raw: string | AppleRecurrenceRule;
334
+ };
335
+ }
@@ -47,6 +47,7 @@ export interface CalendarPreference {
47
47
  hideAutoSchedule?: {
48
48
  completedTask?: boolean;
49
49
  routine?: boolean;
50
+ exercise?: boolean;
50
51
  };
51
52
  }
52
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.7.39",
3
+ "version": "1.7.41",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {