@demind-inc/core 1.6.45 → 1.6.47
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.
- package/dist/models/Calendar.d.ts +25 -5
- package/dist/types.d.ts +1 -0
- package/lib/models/Calendar.ts +33 -5
- package/lib/types.ts +1 -0
- package/package.json +1 -1
|
@@ -80,6 +80,18 @@ export interface CalendarEvent {
|
|
|
80
80
|
emoji: string;
|
|
81
81
|
color: string;
|
|
82
82
|
};
|
|
83
|
+
recurrence?: {
|
|
84
|
+
recurringEventId?: string;
|
|
85
|
+
pattern?: {
|
|
86
|
+
type: AppleRecurrenceRuleFrequency;
|
|
87
|
+
interval: number;
|
|
88
|
+
count: number;
|
|
89
|
+
};
|
|
90
|
+
range?: {
|
|
91
|
+
startDate: string;
|
|
92
|
+
endDate?: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
83
95
|
}
|
|
84
96
|
export type CalendarScheduleFrom = "todo" | "activity" | "calendar" | "energyBoost" | "aiScheduler" | "sleep" | "meal";
|
|
85
97
|
export type CalendarEventType = "default" | "outOfOffice" | "focusTime" | "workingLocation" | "other";
|
|
@@ -126,6 +138,18 @@ export interface EventCategorySet {
|
|
|
126
138
|
name: string;
|
|
127
139
|
predicted?: boolean;
|
|
128
140
|
}
|
|
141
|
+
export type AppleRecurrenceRuleFrequency = "daily" | "weekly" | "monthly" | "yearly";
|
|
142
|
+
export type AppleRecurrenceRule = {
|
|
143
|
+
frequency: AppleRecurrenceRuleFrequency;
|
|
144
|
+
interval: number;
|
|
145
|
+
endDate?: string;
|
|
146
|
+
occurrence?: number;
|
|
147
|
+
} | {
|
|
148
|
+
frequency: "";
|
|
149
|
+
interval: "";
|
|
150
|
+
endDate: "";
|
|
151
|
+
occurrence: "";
|
|
152
|
+
};
|
|
129
153
|
export interface NativeAppleEvent {
|
|
130
154
|
id: string;
|
|
131
155
|
title: string;
|
|
@@ -140,11 +164,7 @@ export interface NativeAppleEvent {
|
|
|
140
164
|
timeZone?: string | null;
|
|
141
165
|
recurrence?: string;
|
|
142
166
|
isDetached?: boolean;
|
|
143
|
-
recurrenceRule?:
|
|
144
|
-
frequency: string;
|
|
145
|
-
interval: number;
|
|
146
|
-
endDate: string;
|
|
147
|
-
};
|
|
167
|
+
recurrenceRule?: AppleRecurrenceRule;
|
|
148
168
|
calendar?: {
|
|
149
169
|
allowedAvailabilities: string[];
|
|
150
170
|
allowsModifications: boolean;
|
package/dist/types.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ export interface ChatAdjustmentCTA {
|
|
|
127
127
|
sleep?: ChatAdjustmentChangeWrapper<ChatAdjustmentSleep>;
|
|
128
128
|
schedule?: ChatAdjustmentChangeWrapper<ScheduledAction>[];
|
|
129
129
|
tasks?: ChatAdjustmentChangeWrapper<ChatAdjustmentTask>[];
|
|
130
|
+
date?: string;
|
|
130
131
|
}
|
|
131
132
|
export interface ChatAdjustmentChangeWrapper<T> {
|
|
132
133
|
before?: Partial<T>;
|
package/lib/models/Calendar.ts
CHANGED
|
@@ -86,6 +86,18 @@ export interface CalendarEvent {
|
|
|
86
86
|
emoji: string;
|
|
87
87
|
color: string;
|
|
88
88
|
};
|
|
89
|
+
recurrence?: {
|
|
90
|
+
recurringEventId?: string;
|
|
91
|
+
pattern?: {
|
|
92
|
+
type: AppleRecurrenceRuleFrequency;
|
|
93
|
+
interval: number;
|
|
94
|
+
count: number;
|
|
95
|
+
};
|
|
96
|
+
range?: {
|
|
97
|
+
startDate: string;
|
|
98
|
+
endDate?: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
89
101
|
}
|
|
90
102
|
|
|
91
103
|
export type CalendarScheduleFrom =
|
|
@@ -167,6 +179,26 @@ export interface EventCategorySet {
|
|
|
167
179
|
predicted?: boolean;
|
|
168
180
|
}
|
|
169
181
|
|
|
182
|
+
export type AppleRecurrenceRuleFrequency =
|
|
183
|
+
| "daily"
|
|
184
|
+
| "weekly"
|
|
185
|
+
| "monthly"
|
|
186
|
+
| "yearly";
|
|
187
|
+
|
|
188
|
+
export type AppleRecurrenceRule =
|
|
189
|
+
| {
|
|
190
|
+
frequency: AppleRecurrenceRuleFrequency;
|
|
191
|
+
interval: number;
|
|
192
|
+
endDate?: string;
|
|
193
|
+
occurrence?: number;
|
|
194
|
+
}
|
|
195
|
+
| {
|
|
196
|
+
frequency: "";
|
|
197
|
+
interval: "";
|
|
198
|
+
endDate: "";
|
|
199
|
+
occurrence: "";
|
|
200
|
+
};
|
|
201
|
+
|
|
170
202
|
export interface NativeAppleEvent {
|
|
171
203
|
id: string;
|
|
172
204
|
title: string;
|
|
@@ -181,11 +213,7 @@ export interface NativeAppleEvent {
|
|
|
181
213
|
timeZone?: string | null;
|
|
182
214
|
recurrence?: string;
|
|
183
215
|
isDetached?: boolean;
|
|
184
|
-
recurrenceRule?:
|
|
185
|
-
frequency: string;
|
|
186
|
-
interval: number;
|
|
187
|
-
endDate: string;
|
|
188
|
-
};
|
|
216
|
+
recurrenceRule?: AppleRecurrenceRule;
|
|
189
217
|
calendar?: {
|
|
190
218
|
allowedAvailabilities: string[];
|
|
191
219
|
allowsModifications: boolean;
|
package/lib/types.ts
CHANGED
|
@@ -218,6 +218,7 @@ export interface ChatAdjustmentCTA {
|
|
|
218
218
|
sleep?: ChatAdjustmentChangeWrapper<ChatAdjustmentSleep>;
|
|
219
219
|
schedule?: ChatAdjustmentChangeWrapper<ScheduledAction>[];
|
|
220
220
|
tasks?: ChatAdjustmentChangeWrapper<ChatAdjustmentTask>[];
|
|
221
|
+
date?: string; // YYYY-MM-DD
|
|
221
222
|
}
|
|
222
223
|
|
|
223
224
|
export interface ChatAdjustmentChangeWrapper<T> {
|