@bobfrankston/mailx-types 0.1.23 → 0.1.26
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/index.d.ts +8 -1
- package/mailx-api.d.ts +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -321,6 +321,10 @@ export interface ExtractedEvent {
|
|
|
321
321
|
startISO?: string;
|
|
322
322
|
endISO?: string;
|
|
323
323
|
allDay?: boolean;
|
|
324
|
+
/** IANA zone the times are wall-clock in, when the source text stated one
|
|
325
|
+
* (e.g. an invitation with "(Malaysia Time - Kuala Lumpur)"). Client
|
|
326
|
+
* passes it to Google Calendar as `ctz=`. Absent = user's local zone. */
|
|
327
|
+
timeZone?: string;
|
|
324
328
|
location?: string;
|
|
325
329
|
notes?: string;
|
|
326
330
|
}
|
|
@@ -331,8 +335,11 @@ export interface AiTransformResponse {
|
|
|
331
335
|
* response shape stays single-field across all actions. */
|
|
332
336
|
text: string;
|
|
333
337
|
/** Parsed ExtractedEvent, populated only for extractEvent. Lets the
|
|
334
|
-
* client skip the JSON.parse step (the service already validated).
|
|
338
|
+
* client skip the JSON.parse step (the service already validated).
|
|
339
|
+
* First event when the text described several. */
|
|
335
340
|
event?: ExtractedEvent;
|
|
341
|
+
/** All extracted events — the text may describe more than one. */
|
|
342
|
+
events?: ExtractedEvent[];
|
|
336
343
|
/** Optional reason for empty result, surfaced to UI status bar. */
|
|
337
344
|
reason?: string;
|
|
338
345
|
}
|
package/mailx-api.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export interface MailxApi {
|
|
|
78
78
|
moveFolderToTrash(accountId: string, folderId: number): Promise<void>;
|
|
79
79
|
emptyFolder(accountId: string, folderId: number): Promise<void>;
|
|
80
80
|
sendMessage(msg: any): Promise<void>;
|
|
81
|
-
saveDraft(accountId: string, subject: string, bodyHtml: string, bodyText: string, to?: string, cc?: string, previousDraftUid?: number, draftId?: string): Promise<{
|
|
81
|
+
saveDraft(accountId: string, subject: string, bodyHtml: string, bodyText: string, to?: string, cc?: string, previousDraftUid?: number, draftId?: string, bcc?: string): Promise<{
|
|
82
82
|
draftUid: number | null;
|
|
83
83
|
draftId: string;
|
|
84
84
|
}>;
|