@qwanyx/stack 0.2.102 → 0.2.103
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/client/MailClient.d.ts +68 -7
- package/dist/components/Mail.d.ts +4 -4
- package/dist/components/MailComposer.d.ts +11 -1
- package/dist/components/QMap/QMap.d.ts +1 -1
- package/dist/components/QMap/types.d.ts +2 -0
- package/dist/index.cjs.js +44 -44
- package/dist/index.esm.js +4342 -4109
- package/dist/types/index.d.ts +14 -3
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -178,6 +178,11 @@ export interface MailServer {
|
|
|
178
178
|
user: string;
|
|
179
179
|
password: string;
|
|
180
180
|
}
|
|
181
|
+
export interface GmailTokens {
|
|
182
|
+
access_token: string;
|
|
183
|
+
refresh_token: string;
|
|
184
|
+
token_expiry: number;
|
|
185
|
+
}
|
|
181
186
|
export interface MailAccount {
|
|
182
187
|
id: string;
|
|
183
188
|
label: string;
|
|
@@ -185,11 +190,17 @@ export interface MailAccount {
|
|
|
185
190
|
lastName: string;
|
|
186
191
|
email: string;
|
|
187
192
|
signature?: string;
|
|
188
|
-
|
|
189
|
-
|
|
193
|
+
/** Authentication type: 'imap' (default) or 'gmail_api' */
|
|
194
|
+
auth_type?: 'imap' | 'gmail_api';
|
|
195
|
+
/** IMAP settings (used when auth_type = 'imap') */
|
|
196
|
+
imap?: MailServer;
|
|
197
|
+
/** SMTP settings (used when auth_type = 'imap') */
|
|
198
|
+
smtp?: MailServer;
|
|
199
|
+
/** Gmail API tokens (used when auth_type = 'gmail_api') */
|
|
200
|
+
gmail_tokens?: GmailTokens;
|
|
190
201
|
}
|
|
191
202
|
export interface EmailMessage {
|
|
192
|
-
uid: number;
|
|
203
|
+
uid: number | string;
|
|
193
204
|
subject: string;
|
|
194
205
|
from: string;
|
|
195
206
|
date: string;
|
package/package.json
CHANGED