@demind-inc/core 1.7.40 → 1.7.42

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;
@@ -95,6 +96,8 @@ export interface CalendarEventRecurrence {
95
96
  startDate: string;
96
97
  endDate?: string;
97
98
  };
99
+ string?: string;
100
+ rrule?: string;
98
101
  }
99
102
  export interface CalendarRoutineFrom {
100
103
  routineActivityId: string;
@@ -146,17 +149,31 @@ export interface EventCategorySet {
146
149
  name: string;
147
150
  predicted?: boolean;
148
151
  }
149
- export type AppleRecurrenceRuleFrequency = "daily" | "weekly" | "monthly" | "yearly";
152
+ export type AppleRecurrenceRuleFrequency = "daily" | "weekly" | "monthly" | "yearly" | "";
150
153
  export type AppleRecurrenceRule = {
151
154
  frequency: AppleRecurrenceRuleFrequency;
152
155
  interval: number;
153
156
  endDate?: string;
154
- occurrence?: number;
157
+ occurrence?: number | "";
158
+ firstDayOfWeek?: number;
159
+ daysOfWeek?: Array<{
160
+ day: string;
161
+ weekNumber?: number;
162
+ }>;
163
+ daysOfMonth?: number[];
164
+ monthsOfYear?: number[];
155
165
  } | {
156
166
  frequency: "";
157
167
  interval: "";
158
168
  endDate: "";
159
169
  occurrence: "";
170
+ firstDayOfWeek?: number;
171
+ daysOfWeek?: Array<{
172
+ day: string;
173
+ weekNumber?: number;
174
+ }>;
175
+ daysOfMonth?: number[];
176
+ monthsOfYear?: number[];
160
177
  };
161
178
  export interface NativeAppleEvent {
162
179
  id: string;
@@ -206,3 +223,32 @@ export declare const defaultEventCategorySet: EventCategorySet[];
206
223
  export type DefaultEventCategoryId = "default_mtg" | "default_lightTask" | "default_deepWork" | "default_exercise" | "default_meal" | "default_break" | "default_other" | "default_social";
207
224
  export declare const eventCategoryColorMap: Record<DefaultEventCategoryId, string>;
208
225
  export declare const labelColors: Record<string, string>;
226
+ export interface EventSeries {
227
+ summary: string;
228
+ description: string;
229
+ location: string;
230
+ start: {
231
+ date: string;
232
+ timeZone: string;
233
+ };
234
+ end: {
235
+ date: string;
236
+ timeZone: string;
237
+ };
238
+ isAllDay: boolean;
239
+ rrule: string;
240
+ string?: string;
241
+ count: number | null;
242
+ until: string | null;
243
+ status: CalendarEventStatus;
244
+ calendarId: string;
245
+ createdDate: string;
246
+ updatedDate: string;
247
+ eventMetrics?: CalendarEventMetrics;
248
+ categories?: Array<EventCategorySet>;
249
+ color?: string;
250
+ providerRecurrence?: {
251
+ type: CalendarType;
252
+ raw: string | AppleRecurrenceRule;
253
+ };
254
+ }
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 {
@@ -102,6 +103,8 @@ export interface CalendarEventRecurrence {
102
103
  startDate: string;
103
104
  endDate?: string;
104
105
  };
106
+ string?: string;
107
+ rrule?: string;
105
108
  }
106
109
 
107
110
  export interface CalendarRoutineFrom {
@@ -194,20 +197,29 @@ export type AppleRecurrenceRuleFrequency =
194
197
  | "daily"
195
198
  | "weekly"
196
199
  | "monthly"
197
- | "yearly";
200
+ | "yearly"
201
+ | "";
198
202
 
199
203
  export type AppleRecurrenceRule =
200
204
  | {
201
205
  frequency: AppleRecurrenceRuleFrequency;
202
206
  interval: number;
203
207
  endDate?: string;
204
- occurrence?: number;
208
+ occurrence?: number | "";
209
+ firstDayOfWeek?: number;
210
+ daysOfWeek?: Array<{ day: string; weekNumber?: number }>;
211
+ daysOfMonth?: number[];
212
+ monthsOfYear?: number[];
205
213
  }
206
214
  | {
207
215
  frequency: "";
208
216
  interval: "";
209
217
  endDate: "";
210
218
  occurrence: "";
219
+ firstDayOfWeek?: number;
220
+ daysOfWeek?: Array<{ day: string; weekNumber?: number }>;
221
+ daysOfMonth?: number[];
222
+ monthsOfYear?: number[];
211
223
  };
212
224
 
213
225
  export interface NativeAppleEvent {
@@ -300,3 +312,27 @@ export const labelColors: Record<string, string> = {
300
312
  pink: "#FF69B4",
301
313
  lime: "#32CD32",
302
314
  };
315
+
316
+ export interface EventSeries {
317
+ summary: string;
318
+ description: string;
319
+ location: string;
320
+ start: { date: string; timeZone: string };
321
+ end: { date: string; timeZone: string };
322
+ isAllDay: boolean;
323
+ rrule: string;
324
+ string?: string;
325
+ count: number | null;
326
+ until: string | null;
327
+ status: CalendarEventStatus;
328
+ calendarId: string;
329
+ createdDate: string;
330
+ updatedDate: string;
331
+ eventMetrics?: CalendarEventMetrics;
332
+ categories?: Array<EventCategorySet>;
333
+ color?: string;
334
+ providerRecurrence?: {
335
+ type: CalendarType;
336
+ raw: string | AppleRecurrenceRule;
337
+ };
338
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.7.40",
3
+ "version": "1.7.42",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {