@marcoappio/marco-config 2.0.419 → 2.0.421

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.
@@ -0,0 +1,993 @@
1
+ import type { MarcoSyncedQueryContext } from '../../types';
2
+ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccounts", MarcoSyncedQueryContext, true, [], import("@rocicorp/zero").Query<{
3
+ tables: {
4
+ readonly user: {
5
+ name: "user";
6
+ columns: {
7
+ readonly id: {
8
+ type: "string";
9
+ optional: false;
10
+ customType: string;
11
+ };
12
+ readonly name: Omit<{
13
+ type: "string";
14
+ optional: false;
15
+ customType: string;
16
+ }, "optional"> & {
17
+ optional: true;
18
+ };
19
+ readonly profilePicture: Omit<{
20
+ type: "string";
21
+ optional: false;
22
+ customType: string;
23
+ }, "optional"> & {
24
+ optional: true;
25
+ } & {
26
+ serverName: string;
27
+ };
28
+ readonly undoSendEnabled: {
29
+ type: "boolean";
30
+ optional: false;
31
+ customType: boolean;
32
+ } & {
33
+ serverName: string;
34
+ };
35
+ };
36
+ primaryKey: readonly [string, ...string[]];
37
+ } & {
38
+ primaryKey: ["id"];
39
+ };
40
+ readonly userPushNotificationToken: {
41
+ name: "userPushNotificationToken";
42
+ columns: {
43
+ readonly createdAt: {
44
+ type: "number";
45
+ optional: false;
46
+ customType: number;
47
+ } & {
48
+ serverName: string;
49
+ };
50
+ readonly id: {
51
+ type: "string";
52
+ optional: false;
53
+ customType: string;
54
+ };
55
+ readonly token: {
56
+ type: "string";
57
+ optional: false;
58
+ customType: string;
59
+ };
60
+ readonly userId: {
61
+ type: "string";
62
+ optional: false;
63
+ customType: string;
64
+ } & {
65
+ serverName: string;
66
+ };
67
+ };
68
+ primaryKey: readonly [string, ...string[]];
69
+ } & {
70
+ primaryKey: ["id"];
71
+ };
72
+ readonly contact: {
73
+ name: "contact";
74
+ columns: {
75
+ readonly emailAddress: {
76
+ type: "string";
77
+ optional: false;
78
+ customType: string;
79
+ } & {
80
+ serverName: string;
81
+ };
82
+ readonly id: {
83
+ type: "string";
84
+ optional: false;
85
+ customType: string;
86
+ };
87
+ readonly name: Omit<{
88
+ type: "string";
89
+ optional: false;
90
+ customType: string;
91
+ }, "optional"> & {
92
+ optional: true;
93
+ };
94
+ readonly userId: {
95
+ type: "string";
96
+ optional: false;
97
+ customType: string;
98
+ } & {
99
+ serverName: string;
100
+ };
101
+ };
102
+ primaryKey: readonly [string, ...string[]];
103
+ } & {
104
+ primaryKey: ["id"];
105
+ };
106
+ readonly account: {
107
+ name: "account";
108
+ columns: {
109
+ readonly color: {
110
+ type: "string";
111
+ optional: false;
112
+ customType: string;
113
+ };
114
+ readonly displayName: Omit<{
115
+ type: "string";
116
+ optional: false;
117
+ customType: string;
118
+ }, "optional"> & {
119
+ optional: true;
120
+ } & {
121
+ serverName: string;
122
+ };
123
+ readonly id: {
124
+ type: "string";
125
+ optional: false;
126
+ customType: string;
127
+ };
128
+ readonly imapConnectionStatus: {
129
+ type: "string";
130
+ optional: false;
131
+ customType: "AWAITING_CONNECTION" | "CONNECTED" | "CONNECTION_FAILED_AUTHENTICATION_ERROR" | "CONNECTION_FAILED_CONNECTION_ERROR" | "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR" | "CONNECTION_FAILED_QUOTA_ERROR" | "CONNECTION_FAILED_UNKNOWN_ERROR";
132
+ } & {
133
+ serverName: string;
134
+ };
135
+ readonly mailProcessedCount: {
136
+ type: "number";
137
+ optional: false;
138
+ customType: number;
139
+ } & {
140
+ serverName: string;
141
+ };
142
+ readonly mailTotalCount: {
143
+ type: "number";
144
+ optional: false;
145
+ customType: number;
146
+ } & {
147
+ serverName: string;
148
+ };
149
+ readonly primaryAliasId: Omit<{
150
+ type: "string";
151
+ optional: false;
152
+ customType: string;
153
+ }, "optional"> & {
154
+ optional: true;
155
+ } & {
156
+ serverName: string;
157
+ };
158
+ readonly userId: {
159
+ type: "string";
160
+ optional: false;
161
+ customType: string;
162
+ } & {
163
+ serverName: string;
164
+ };
165
+ };
166
+ primaryKey: readonly [string, ...string[]];
167
+ } & {
168
+ primaryKey: ["id"];
169
+ };
170
+ readonly accountAlias: {
171
+ name: "accountAlias";
172
+ columns: {
173
+ readonly accountId: {
174
+ type: "string";
175
+ optional: false;
176
+ customType: string;
177
+ } & {
178
+ serverName: string;
179
+ };
180
+ readonly emailAddress: {
181
+ type: "string";
182
+ optional: false;
183
+ customType: string;
184
+ } & {
185
+ serverName: string;
186
+ };
187
+ readonly id: {
188
+ type: "string";
189
+ optional: false;
190
+ customType: string;
191
+ };
192
+ readonly isPrimary: {
193
+ type: "boolean";
194
+ optional: false;
195
+ customType: boolean;
196
+ } & {
197
+ serverName: string;
198
+ };
199
+ readonly name: Omit<{
200
+ type: "string";
201
+ optional: false;
202
+ customType: string;
203
+ }, "optional"> & {
204
+ optional: true;
205
+ };
206
+ };
207
+ primaryKey: readonly [string, ...string[]];
208
+ } & {
209
+ primaryKey: ["id"];
210
+ };
211
+ readonly accountLabel: {
212
+ name: "accountLabel";
213
+ columns: {
214
+ readonly accountId: {
215
+ type: "string";
216
+ optional: false;
217
+ customType: string;
218
+ } & {
219
+ serverName: string;
220
+ };
221
+ readonly id: {
222
+ type: "string";
223
+ optional: false;
224
+ customType: string;
225
+ };
226
+ readonly path: {
227
+ type: "string";
228
+ optional: false;
229
+ customType: string;
230
+ };
231
+ readonly specialUse: Omit<{
232
+ type: "string";
233
+ optional: false;
234
+ customType: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH";
235
+ }, "optional"> & {
236
+ optional: true;
237
+ } & {
238
+ serverName: string;
239
+ };
240
+ };
241
+ primaryKey: readonly [string, ...string[]];
242
+ } & {
243
+ primaryKey: ["id"];
244
+ };
245
+ readonly draft: {
246
+ name: "draft";
247
+ columns: {
248
+ readonly accountId: {
249
+ type: "string";
250
+ optional: false;
251
+ customType: string;
252
+ } & {
253
+ serverName: string;
254
+ };
255
+ readonly body: {
256
+ type: "json";
257
+ optional: false;
258
+ customType: {
259
+ content: string;
260
+ to: string[];
261
+ cc: string[];
262
+ bcc: string[];
263
+ };
264
+ };
265
+ readonly error: Omit<{
266
+ type: "string";
267
+ optional: false;
268
+ customType: string;
269
+ }, "optional"> & {
270
+ optional: true;
271
+ };
272
+ readonly fromAliasId: Omit<{
273
+ type: "string";
274
+ optional: false;
275
+ customType: string;
276
+ }, "optional"> & {
277
+ optional: true;
278
+ } & {
279
+ serverName: string;
280
+ };
281
+ readonly fromEmail: {
282
+ type: "string";
283
+ optional: false;
284
+ customType: string;
285
+ } & {
286
+ serverName: string;
287
+ };
288
+ readonly fromName: Omit<{
289
+ type: "string";
290
+ optional: false;
291
+ customType: string;
292
+ }, "optional"> & {
293
+ optional: true;
294
+ } & {
295
+ serverName: string;
296
+ };
297
+ readonly id: {
298
+ type: "string";
299
+ optional: false;
300
+ customType: string;
301
+ };
302
+ readonly referencedMessageId: Omit<{
303
+ type: "string";
304
+ optional: false;
305
+ customType: string;
306
+ }, "optional"> & {
307
+ optional: true;
308
+ } & {
309
+ serverName: string;
310
+ };
311
+ readonly scheduledFor: Omit<{
312
+ type: "number";
313
+ optional: false;
314
+ customType: number;
315
+ }, "optional"> & {
316
+ optional: true;
317
+ } & {
318
+ serverName: string;
319
+ };
320
+ readonly status: {
321
+ type: "string";
322
+ optional: false;
323
+ customType: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
324
+ };
325
+ readonly subject: Omit<{
326
+ type: "string";
327
+ optional: false;
328
+ customType: string;
329
+ }, "optional"> & {
330
+ optional: true;
331
+ };
332
+ readonly type: {
333
+ type: "string";
334
+ optional: false;
335
+ customType: "NEW" | "REPLY" | "FORWARD";
336
+ };
337
+ readonly updatedAt: {
338
+ type: "number";
339
+ optional: false;
340
+ customType: number;
341
+ } & {
342
+ serverName: string;
343
+ };
344
+ readonly userId: {
345
+ type: "string";
346
+ optional: false;
347
+ customType: string;
348
+ } & {
349
+ serverName: string;
350
+ };
351
+ };
352
+ primaryKey: readonly [string, ...string[]];
353
+ } & {
354
+ primaryKey: ["id"];
355
+ };
356
+ readonly draftRecipient: {
357
+ name: "draftRecipient";
358
+ columns: {
359
+ readonly draftId: {
360
+ type: "string";
361
+ optional: false;
362
+ customType: string;
363
+ } & {
364
+ serverName: string;
365
+ };
366
+ readonly emailAddress: {
367
+ type: "string";
368
+ optional: false;
369
+ customType: string;
370
+ } & {
371
+ serverName: string;
372
+ };
373
+ readonly id: {
374
+ type: "string";
375
+ optional: false;
376
+ customType: string;
377
+ };
378
+ readonly type: {
379
+ type: "string";
380
+ optional: false;
381
+ customType: "bcc" | "cc" | "to";
382
+ };
383
+ };
384
+ primaryKey: readonly [string, ...string[]];
385
+ } & {
386
+ primaryKey: ["id"];
387
+ };
388
+ readonly draftAttachment: {
389
+ name: "draftAttachment";
390
+ columns: {
391
+ readonly draftId: {
392
+ type: "string";
393
+ optional: false;
394
+ customType: string;
395
+ } & {
396
+ serverName: string;
397
+ };
398
+ readonly failed: {
399
+ type: "boolean";
400
+ optional: false;
401
+ customType: boolean;
402
+ };
403
+ readonly fileName: {
404
+ type: "string";
405
+ optional: false;
406
+ customType: string;
407
+ } & {
408
+ serverName: string;
409
+ };
410
+ readonly id: {
411
+ type: "string";
412
+ optional: false;
413
+ customType: string;
414
+ };
415
+ readonly mimeType: {
416
+ type: "string";
417
+ optional: false;
418
+ customType: string;
419
+ } & {
420
+ serverName: string;
421
+ };
422
+ readonly totalChunks: {
423
+ type: "number";
424
+ optional: false;
425
+ customType: number;
426
+ } & {
427
+ serverName: string;
428
+ };
429
+ readonly totalSize: {
430
+ type: "number";
431
+ optional: false;
432
+ customType: number;
433
+ } & {
434
+ serverName: string;
435
+ };
436
+ readonly uploadedChunks: {
437
+ type: "number";
438
+ optional: false;
439
+ customType: number;
440
+ } & {
441
+ serverName: string;
442
+ };
443
+ };
444
+ primaryKey: readonly [string, ...string[]];
445
+ } & {
446
+ primaryKey: ["id"];
447
+ };
448
+ readonly thread: {
449
+ name: "thread";
450
+ columns: {
451
+ readonly accountId: {
452
+ type: "string";
453
+ optional: false;
454
+ customType: string;
455
+ } & {
456
+ serverName: string;
457
+ };
458
+ readonly flagged: {
459
+ type: "boolean";
460
+ optional: false;
461
+ customType: boolean;
462
+ };
463
+ readonly id: {
464
+ type: "string";
465
+ optional: false;
466
+ customType: string;
467
+ };
468
+ readonly latestMessageDate: {
469
+ type: "number";
470
+ optional: false;
471
+ customType: number;
472
+ } & {
473
+ serverName: string;
474
+ };
475
+ readonly seen: {
476
+ type: "boolean";
477
+ optional: false;
478
+ customType: boolean;
479
+ };
480
+ readonly userId: {
481
+ type: "string";
482
+ optional: false;
483
+ customType: string;
484
+ } & {
485
+ serverName: string;
486
+ };
487
+ readonly words: {
488
+ type: "string";
489
+ optional: false;
490
+ customType: string;
491
+ };
492
+ };
493
+ primaryKey: readonly [string, ...string[]];
494
+ } & {
495
+ primaryKey: ["id"];
496
+ };
497
+ readonly threadLabel: {
498
+ name: "threadLabel";
499
+ columns: {
500
+ readonly labelId: {
501
+ type: "string";
502
+ optional: false;
503
+ customType: string;
504
+ } & {
505
+ serverName: string;
506
+ };
507
+ readonly threadId: {
508
+ type: "string";
509
+ optional: false;
510
+ customType: string;
511
+ } & {
512
+ serverName: string;
513
+ };
514
+ };
515
+ primaryKey: readonly [string, ...string[]];
516
+ } & {
517
+ primaryKey: ["threadId", "labelId"];
518
+ };
519
+ readonly threadMessage: {
520
+ name: "threadMessage";
521
+ columns: {
522
+ readonly envelopeDate: {
523
+ type: "number";
524
+ optional: false;
525
+ customType: number;
526
+ } & {
527
+ serverName: string;
528
+ };
529
+ readonly envelopeSubject: Omit<{
530
+ type: "string";
531
+ optional: false;
532
+ customType: string;
533
+ }, "optional"> & {
534
+ optional: true;
535
+ } & {
536
+ serverName: string;
537
+ };
538
+ readonly id: {
539
+ type: "string";
540
+ optional: false;
541
+ customType: string;
542
+ };
543
+ readonly previewText: {
544
+ type: "string";
545
+ optional: false;
546
+ customType: string;
547
+ } & {
548
+ serverName: string;
549
+ };
550
+ readonly senderEmail: {
551
+ type: "string";
552
+ optional: false;
553
+ customType: string;
554
+ } & {
555
+ serverName: string;
556
+ };
557
+ readonly senderName: Omit<{
558
+ type: "string";
559
+ optional: false;
560
+ customType: string;
561
+ }, "optional"> & {
562
+ optional: true;
563
+ } & {
564
+ serverName: string;
565
+ };
566
+ readonly threadId: {
567
+ type: "string";
568
+ optional: false;
569
+ customType: string;
570
+ } & {
571
+ serverName: string;
572
+ };
573
+ };
574
+ primaryKey: readonly [string, ...string[]];
575
+ } & {
576
+ primaryKey: ["id"];
577
+ };
578
+ readonly threadMessageRecipient: {
579
+ name: "threadMessageRecipient";
580
+ columns: {
581
+ readonly emailAddress: {
582
+ type: "string";
583
+ optional: false;
584
+ customType: string;
585
+ } & {
586
+ serverName: string;
587
+ };
588
+ readonly id: {
589
+ type: "string";
590
+ optional: false;
591
+ customType: string;
592
+ };
593
+ readonly name: Omit<{
594
+ type: "string";
595
+ optional: false;
596
+ customType: string;
597
+ }, "optional"> & {
598
+ optional: true;
599
+ };
600
+ readonly threadMessageId: {
601
+ type: "string";
602
+ optional: false;
603
+ customType: string;
604
+ } & {
605
+ serverName: string;
606
+ };
607
+ readonly type: {
608
+ type: "string";
609
+ optional: false;
610
+ customType: "bcc" | "cc" | "to" | "replyTo";
611
+ };
612
+ };
613
+ primaryKey: readonly [string, ...string[]];
614
+ } & {
615
+ primaryKey: ["id"];
616
+ };
617
+ readonly threadMessageAttachment: {
618
+ name: "threadMessageAttachment";
619
+ columns: {
620
+ readonly fileName: {
621
+ type: "string";
622
+ optional: false;
623
+ customType: string;
624
+ } & {
625
+ serverName: string;
626
+ };
627
+ readonly id: {
628
+ type: "string";
629
+ optional: false;
630
+ customType: string;
631
+ };
632
+ readonly mimeType: {
633
+ type: "string";
634
+ optional: false;
635
+ customType: string;
636
+ } & {
637
+ serverName: string;
638
+ };
639
+ readonly size: {
640
+ type: "number";
641
+ optional: false;
642
+ customType: number;
643
+ };
644
+ readonly status: {
645
+ type: "string";
646
+ optional: false;
647
+ customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
648
+ };
649
+ readonly threadMessageId: {
650
+ type: "string";
651
+ optional: false;
652
+ customType: string;
653
+ } & {
654
+ serverName: string;
655
+ };
656
+ };
657
+ primaryKey: readonly [string, ...string[]];
658
+ } & {
659
+ primaryKey: ["id"];
660
+ };
661
+ readonly threadMessageLabel: {
662
+ name: "threadMessageLabel";
663
+ columns: {
664
+ readonly labelId: {
665
+ type: "string";
666
+ optional: false;
667
+ customType: string;
668
+ } & {
669
+ serverName: string;
670
+ };
671
+ readonly threadMessageId: {
672
+ type: "string";
673
+ optional: false;
674
+ customType: string;
675
+ } & {
676
+ serverName: string;
677
+ };
678
+ };
679
+ primaryKey: readonly [string, ...string[]];
680
+ } & {
681
+ primaryKey: ["threadMessageId", "labelId"];
682
+ };
683
+ };
684
+ relationships: {
685
+ readonly user: {
686
+ accounts: [{
687
+ readonly sourceField: string[];
688
+ readonly destField: ("id" | "color" | "userId" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
689
+ readonly destSchema: "account";
690
+ readonly cardinality: "many";
691
+ }];
692
+ contacts: [{
693
+ readonly sourceField: string[];
694
+ readonly destField: ("id" | "name" | "emailAddress" | "userId")[];
695
+ readonly destSchema: "contact";
696
+ readonly cardinality: "many";
697
+ }];
698
+ drafts: [{
699
+ readonly sourceField: string[];
700
+ readonly destField: ("type" | "status" | "id" | "updatedAt" | "body" | "accountId" | "subject" | "scheduledFor" | "error" | "fromName" | "referencedMessageId" | "userId" | "fromAliasId" | "fromEmail")[];
701
+ readonly destSchema: "draft";
702
+ readonly cardinality: "many";
703
+ }];
704
+ pushNotificationTokens: [{
705
+ readonly sourceField: string[];
706
+ readonly destField: ("createdAt" | "id" | "token" | "userId")[];
707
+ readonly destSchema: "userPushNotificationToken";
708
+ readonly cardinality: "many";
709
+ }];
710
+ threads: [{
711
+ readonly sourceField: string[];
712
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "userId" | "latestMessageDate" | "words")[];
713
+ readonly destSchema: "thread";
714
+ readonly cardinality: "many";
715
+ }];
716
+ };
717
+ readonly userPushNotificationToken: {
718
+ user: [{
719
+ readonly sourceField: string[];
720
+ readonly destField: ("id" | "name" | "profilePicture" | "undoSendEnabled")[];
721
+ readonly destSchema: "user";
722
+ readonly cardinality: "one";
723
+ }];
724
+ };
725
+ readonly contact: {
726
+ user: [{
727
+ readonly sourceField: string[];
728
+ readonly destField: ("id" | "name" | "profilePicture" | "undoSendEnabled")[];
729
+ readonly destSchema: "user";
730
+ readonly cardinality: "one";
731
+ }];
732
+ };
733
+ readonly account: {
734
+ aliases: [{
735
+ readonly sourceField: string[];
736
+ readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
737
+ readonly destSchema: "accountAlias";
738
+ readonly cardinality: "many";
739
+ }];
740
+ drafts: [{
741
+ readonly sourceField: string[];
742
+ readonly destField: ("type" | "status" | "id" | "updatedAt" | "body" | "accountId" | "subject" | "scheduledFor" | "error" | "fromName" | "referencedMessageId" | "userId" | "fromAliasId" | "fromEmail")[];
743
+ readonly destSchema: "draft";
744
+ readonly cardinality: "many";
745
+ }];
746
+ labels: [{
747
+ readonly sourceField: string[];
748
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
749
+ readonly destSchema: "accountLabel";
750
+ readonly cardinality: "many";
751
+ }];
752
+ primaryAlias: [{
753
+ readonly sourceField: string[];
754
+ readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
755
+ readonly destSchema: "accountAlias";
756
+ readonly cardinality: "one";
757
+ }];
758
+ threads: [{
759
+ readonly sourceField: string[];
760
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "userId" | "latestMessageDate" | "words")[];
761
+ readonly destSchema: "thread";
762
+ readonly cardinality: "many";
763
+ }];
764
+ user: [{
765
+ readonly sourceField: string[];
766
+ readonly destField: ("id" | "name" | "profilePicture" | "undoSendEnabled")[];
767
+ readonly destSchema: "user";
768
+ readonly cardinality: "one";
769
+ }];
770
+ };
771
+ readonly accountAlias: {
772
+ account: [{
773
+ readonly sourceField: string[];
774
+ readonly destField: ("id" | "color" | "userId" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
775
+ readonly destSchema: "account";
776
+ readonly cardinality: "one";
777
+ }];
778
+ };
779
+ readonly accountLabel: {
780
+ account: [{
781
+ readonly sourceField: string[];
782
+ readonly destField: ("id" | "color" | "userId" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
783
+ readonly destSchema: "account";
784
+ readonly cardinality: "one";
785
+ }];
786
+ threadMessages: [{
787
+ readonly sourceField: string[];
788
+ readonly destField: ("labelId" | "threadMessageId")[];
789
+ readonly destSchema: "threadMessageLabel";
790
+ readonly cardinality: "many";
791
+ }, {
792
+ readonly sourceField: string[];
793
+ readonly destField: ("threadId" | "id" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
794
+ readonly destSchema: "threadMessage";
795
+ readonly cardinality: "many";
796
+ }];
797
+ threads: [{
798
+ readonly sourceField: string[];
799
+ readonly destField: ("threadId" | "labelId")[];
800
+ readonly destSchema: "threadLabel";
801
+ readonly cardinality: "many";
802
+ }, {
803
+ readonly sourceField: string[];
804
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "userId" | "latestMessageDate" | "words")[];
805
+ readonly destSchema: "thread";
806
+ readonly cardinality: "many";
807
+ }];
808
+ };
809
+ readonly draft: {
810
+ account: [{
811
+ readonly sourceField: string[];
812
+ readonly destField: ("id" | "color" | "userId" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
813
+ readonly destSchema: "account";
814
+ readonly cardinality: "one";
815
+ }];
816
+ attachments: [{
817
+ readonly sourceField: string[];
818
+ readonly destField: ("id" | "failed" | "fileName" | "mimeType" | "totalChunks" | "totalSize" | "uploadedChunks" | "draftId")[];
819
+ readonly destSchema: "draftAttachment";
820
+ readonly cardinality: "many";
821
+ }];
822
+ recipients: [{
823
+ readonly sourceField: string[];
824
+ readonly destField: ("type" | "id" | "emailAddress" | "draftId")[];
825
+ readonly destSchema: "draftRecipient";
826
+ readonly cardinality: "many";
827
+ }];
828
+ user: [{
829
+ readonly sourceField: string[];
830
+ readonly destField: ("id" | "name" | "profilePicture" | "undoSendEnabled")[];
831
+ readonly destSchema: "user";
832
+ readonly cardinality: "one";
833
+ }];
834
+ };
835
+ readonly draftRecipient: {
836
+ draft: [{
837
+ readonly sourceField: string[];
838
+ readonly destField: ("type" | "status" | "id" | "updatedAt" | "body" | "accountId" | "subject" | "scheduledFor" | "error" | "fromName" | "referencedMessageId" | "userId" | "fromAliasId" | "fromEmail")[];
839
+ readonly destSchema: "draft";
840
+ readonly cardinality: "one";
841
+ }];
842
+ };
843
+ readonly draftAttachment: {
844
+ draft: [{
845
+ readonly sourceField: string[];
846
+ readonly destField: ("type" | "status" | "id" | "updatedAt" | "body" | "accountId" | "subject" | "scheduledFor" | "error" | "fromName" | "referencedMessageId" | "userId" | "fromAliasId" | "fromEmail")[];
847
+ readonly destSchema: "draft";
848
+ readonly cardinality: "one";
849
+ }];
850
+ };
851
+ readonly thread: {
852
+ account: [{
853
+ readonly sourceField: string[];
854
+ readonly destField: ("id" | "color" | "userId" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
855
+ readonly destSchema: "account";
856
+ readonly cardinality: "one";
857
+ }];
858
+ labels: [{
859
+ readonly sourceField: string[];
860
+ readonly destField: ("threadId" | "labelId")[];
861
+ readonly destSchema: "threadLabel";
862
+ readonly cardinality: "many";
863
+ }, {
864
+ readonly sourceField: string[];
865
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
866
+ readonly destSchema: "accountLabel";
867
+ readonly cardinality: "many";
868
+ }];
869
+ messages: [{
870
+ readonly sourceField: string[];
871
+ readonly destField: ("threadId" | "id" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
872
+ readonly destSchema: "threadMessage";
873
+ readonly cardinality: "many";
874
+ }];
875
+ user: [{
876
+ readonly sourceField: string[];
877
+ readonly destField: ("id" | "name" | "profilePicture" | "undoSendEnabled")[];
878
+ readonly destSchema: "user";
879
+ readonly cardinality: "one";
880
+ }];
881
+ };
882
+ readonly threadLabel: {
883
+ label: [{
884
+ readonly sourceField: string[];
885
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
886
+ readonly destSchema: "accountLabel";
887
+ readonly cardinality: "one";
888
+ }];
889
+ thread: [{
890
+ readonly sourceField: string[];
891
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "userId" | "latestMessageDate" | "words")[];
892
+ readonly destSchema: "thread";
893
+ readonly cardinality: "one";
894
+ }];
895
+ };
896
+ readonly threadMessage: {
897
+ attachments: [{
898
+ readonly sourceField: string[];
899
+ readonly destField: ("status" | "id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
900
+ readonly destSchema: "threadMessageAttachment";
901
+ readonly cardinality: "many";
902
+ }];
903
+ labels: [{
904
+ readonly sourceField: string[];
905
+ readonly destField: ("labelId" | "threadMessageId")[];
906
+ readonly destSchema: "threadMessageLabel";
907
+ readonly cardinality: "many";
908
+ }, {
909
+ readonly sourceField: string[];
910
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
911
+ readonly destSchema: "accountLabel";
912
+ readonly cardinality: "many";
913
+ }];
914
+ recipients: [{
915
+ readonly sourceField: string[];
916
+ readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
917
+ readonly destSchema: "threadMessageRecipient";
918
+ readonly cardinality: "many";
919
+ }];
920
+ thread: [{
921
+ readonly sourceField: string[];
922
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "userId" | "latestMessageDate" | "words")[];
923
+ readonly destSchema: "thread";
924
+ readonly cardinality: "one";
925
+ }];
926
+ };
927
+ readonly threadMessageRecipient: {
928
+ message: [{
929
+ readonly sourceField: string[];
930
+ readonly destField: ("threadId" | "id" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
931
+ readonly destSchema: "threadMessage";
932
+ readonly cardinality: "one";
933
+ }];
934
+ };
935
+ readonly threadMessageAttachment: {
936
+ message: [{
937
+ readonly sourceField: string[];
938
+ readonly destField: ("threadId" | "id" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
939
+ readonly destSchema: "threadMessage";
940
+ readonly cardinality: "one";
941
+ }];
942
+ };
943
+ readonly threadMessageLabel: {
944
+ label: [{
945
+ readonly sourceField: string[];
946
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
947
+ readonly destSchema: "accountLabel";
948
+ readonly cardinality: "one";
949
+ }];
950
+ message: [{
951
+ readonly sourceField: string[];
952
+ readonly destField: ("threadId" | "id" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
953
+ readonly destSchema: "threadMessage";
954
+ readonly cardinality: "one";
955
+ }];
956
+ };
957
+ };
958
+ enableLegacyQueries: boolean | undefined;
959
+ enableLegacyMutators: false;
960
+ }, "account", {
961
+ readonly color: string;
962
+ readonly displayName: string | null;
963
+ readonly id: string;
964
+ readonly imapConnectionStatus: "AWAITING_CONNECTION" | "CONNECTED" | "CONNECTION_FAILED_AUTHENTICATION_ERROR" | "CONNECTION_FAILED_CONNECTION_ERROR" | "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR" | "CONNECTION_FAILED_QUOTA_ERROR" | "CONNECTION_FAILED_UNKNOWN_ERROR";
965
+ readonly mailProcessedCount: number;
966
+ readonly mailTotalCount: number;
967
+ readonly primaryAliasId: string | null;
968
+ readonly userId: string;
969
+ } & {
970
+ readonly aliases: readonly {
971
+ readonly accountId: string;
972
+ readonly emailAddress: string;
973
+ readonly id: string;
974
+ readonly isPrimary: boolean;
975
+ readonly name: string | null;
976
+ }[];
977
+ } & {
978
+ readonly primaryAlias: {
979
+ readonly accountId: string;
980
+ readonly emailAddress: string;
981
+ readonly id: string;
982
+ readonly isPrimary: boolean;
983
+ readonly name: string | null;
984
+ } | undefined;
985
+ } & {
986
+ readonly labels: readonly {
987
+ readonly accountId: string;
988
+ readonly id: string;
989
+ readonly path: string;
990
+ readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
991
+ }[];
992
+ }>>;
993
+ //# sourceMappingURL=getAccounts.d.ts.map