@marcoappio/marco-config 2.0.502 → 2.0.503

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.
@@ -1,5 +1,5 @@
1
1
  export declare const queries: import("@rocicorp/zero").QueryRegistry<{
2
- readonly getAccounts: import("@rocicorp/zero").QueryDefinition<"account", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
2
+ getAccounts: import("@rocicorp/zero").QueryDefinition<"account", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
3
3
  readonly color: string;
4
4
  readonly displayName: string | null;
5
5
  readonly id: string;
@@ -37,7 +37,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
37
37
  }, {
38
38
  readonly userId: string;
39
39
  }>;
40
- readonly getContacts: import("@rocicorp/zero").QueryDefinition<"contact", {
40
+ getContacts: import("@rocicorp/zero").QueryDefinition<"contact", {
41
41
  limit?: number | undefined;
42
42
  search?: string | undefined;
43
43
  where?: {
@@ -61,7 +61,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
61
61
  }, {
62
62
  readonly userId: string;
63
63
  }>;
64
- readonly getDrafts: import("@rocicorp/zero").QueryDefinition<"draft", {
64
+ getDrafts: import("@rocicorp/zero").QueryDefinition<"draft", {
65
65
  accountId?: string | undefined;
66
66
  limit?: number | undefined;
67
67
  status?: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED" | undefined;
@@ -101,7 +101,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
101
101
  }, {
102
102
  readonly userId: string;
103
103
  }>;
104
- readonly getThread: import("@rocicorp/zero").QueryDefinition<"thread", {
104
+ getThread: import("@rocicorp/zero").QueryDefinition<"thread", {
105
105
  id: string;
106
106
  }, {
107
107
  id: string;
@@ -151,7 +151,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
151
151
  }) | undefined, {
152
152
  readonly userId: string;
153
153
  }>;
154
- readonly getThreadList: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
154
+ getThreadList: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
155
155
  labelIds: string[];
156
156
  limit?: number | undefined;
157
157
  search?: string | undefined;
@@ -198,7 +198,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
198
198
  }, {
199
199
  readonly userId: string;
200
200
  }>;
201
- readonly getThreads: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
201
+ getThreads: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
202
202
  labelIds: string[];
203
203
  limit?: number | undefined;
204
204
  search?: string | undefined;
@@ -272,7 +272,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
272
272
  }, {
273
273
  readonly userId: string;
274
274
  }>;
275
- readonly getUser: import("@rocicorp/zero").QueryDefinition<"user", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
275
+ getUser: import("@rocicorp/zero").QueryDefinition<"user", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
276
276
  readonly id: string;
277
277
  readonly name: string | null;
278
278
  readonly profilePicture: string | null;
@@ -324,5 +324,1027 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
324
324
  }, {
325
325
  readonly userId: string;
326
326
  }>;
327
- }, import("@rocicorp/zero").Schema>;
327
+ }, {
328
+ tables: {
329
+ readonly user: {
330
+ name: "user";
331
+ columns: {
332
+ readonly id: {
333
+ type: "string";
334
+ optional: false;
335
+ customType: string;
336
+ };
337
+ readonly name: Omit<{
338
+ type: "string";
339
+ optional: false;
340
+ customType: string;
341
+ }, "optional"> & {
342
+ optional: true;
343
+ };
344
+ readonly profilePicture: Omit<{
345
+ type: "string";
346
+ optional: false;
347
+ customType: string;
348
+ }, "optional"> & {
349
+ optional: true;
350
+ } & {
351
+ serverName: string;
352
+ };
353
+ readonly undoSendEnabled: {
354
+ type: "boolean";
355
+ optional: false;
356
+ customType: boolean;
357
+ } & {
358
+ serverName: string;
359
+ };
360
+ };
361
+ primaryKey: readonly [string, ...string[]];
362
+ } & {
363
+ primaryKey: ["id"];
364
+ };
365
+ readonly draftAttachment: {
366
+ name: "draftAttachment";
367
+ columns: {
368
+ readonly draftId: {
369
+ type: "string";
370
+ optional: false;
371
+ customType: string;
372
+ } & {
373
+ serverName: string;
374
+ };
375
+ readonly fileName: {
376
+ type: "string";
377
+ optional: false;
378
+ customType: string;
379
+ } & {
380
+ serverName: string;
381
+ };
382
+ readonly id: {
383
+ type: "string";
384
+ optional: false;
385
+ customType: string;
386
+ };
387
+ readonly mimeType: {
388
+ type: "string";
389
+ optional: false;
390
+ customType: string;
391
+ } & {
392
+ serverName: string;
393
+ };
394
+ readonly status: {
395
+ type: "string";
396
+ optional: false;
397
+ customType: "PENDING" | "COMPLETE" | "FAILED";
398
+ } & {
399
+ serverName: string;
400
+ };
401
+ readonly totalSize: {
402
+ type: "number";
403
+ optional: false;
404
+ customType: number;
405
+ } & {
406
+ serverName: string;
407
+ };
408
+ };
409
+ primaryKey: readonly [string, ...string[]];
410
+ } & {
411
+ primaryKey: ["id"];
412
+ };
413
+ readonly userPushNotificationToken: {
414
+ name: "userPushNotificationToken";
415
+ columns: {
416
+ readonly createdAt: {
417
+ type: "number";
418
+ optional: false;
419
+ customType: number;
420
+ } & {
421
+ serverName: string;
422
+ };
423
+ readonly id: {
424
+ type: "string";
425
+ optional: false;
426
+ customType: string;
427
+ };
428
+ readonly token: {
429
+ type: "string";
430
+ optional: false;
431
+ customType: string;
432
+ };
433
+ readonly userId: {
434
+ type: "string";
435
+ optional: false;
436
+ customType: string;
437
+ } & {
438
+ serverName: string;
439
+ };
440
+ };
441
+ primaryKey: readonly [string, ...string[]];
442
+ } & {
443
+ primaryKey: ["id"];
444
+ };
445
+ readonly contact: {
446
+ name: "contact";
447
+ columns: {
448
+ readonly emailAddress: {
449
+ type: "string";
450
+ optional: false;
451
+ customType: string;
452
+ } & {
453
+ serverName: string;
454
+ };
455
+ readonly id: {
456
+ type: "string";
457
+ optional: false;
458
+ customType: string;
459
+ };
460
+ readonly name: Omit<{
461
+ type: "string";
462
+ optional: false;
463
+ customType: string;
464
+ }, "optional"> & {
465
+ optional: true;
466
+ };
467
+ readonly userId: {
468
+ type: "string";
469
+ optional: false;
470
+ customType: string;
471
+ } & {
472
+ serverName: string;
473
+ };
474
+ };
475
+ primaryKey: readonly [string, ...string[]];
476
+ } & {
477
+ primaryKey: ["id"];
478
+ };
479
+ readonly account: {
480
+ name: "account";
481
+ columns: {
482
+ readonly color: {
483
+ type: "string";
484
+ optional: false;
485
+ customType: string;
486
+ };
487
+ readonly displayName: Omit<{
488
+ type: "string";
489
+ optional: false;
490
+ customType: string;
491
+ }, "optional"> & {
492
+ optional: true;
493
+ } & {
494
+ serverName: string;
495
+ };
496
+ readonly id: {
497
+ type: "string";
498
+ optional: false;
499
+ customType: string;
500
+ };
501
+ readonly imapConnectionStatus: {
502
+ type: "string";
503
+ optional: false;
504
+ 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";
505
+ } & {
506
+ serverName: string;
507
+ };
508
+ readonly mailProcessedCount: {
509
+ type: "number";
510
+ optional: false;
511
+ customType: number;
512
+ } & {
513
+ serverName: string;
514
+ };
515
+ readonly mailTotalCount: {
516
+ type: "number";
517
+ optional: false;
518
+ customType: number;
519
+ } & {
520
+ serverName: string;
521
+ };
522
+ readonly primaryAliasId: Omit<{
523
+ type: "string";
524
+ optional: false;
525
+ customType: string;
526
+ }, "optional"> & {
527
+ optional: true;
528
+ } & {
529
+ serverName: string;
530
+ };
531
+ readonly userId: {
532
+ type: "string";
533
+ optional: false;
534
+ customType: string;
535
+ } & {
536
+ serverName: string;
537
+ };
538
+ };
539
+ primaryKey: readonly [string, ...string[]];
540
+ } & {
541
+ primaryKey: ["id"];
542
+ };
543
+ readonly accountAlias: {
544
+ name: "accountAlias";
545
+ columns: {
546
+ readonly accountId: {
547
+ type: "string";
548
+ optional: false;
549
+ customType: string;
550
+ } & {
551
+ serverName: string;
552
+ };
553
+ readonly emailAddress: {
554
+ type: "string";
555
+ optional: false;
556
+ customType: string;
557
+ } & {
558
+ serverName: string;
559
+ };
560
+ readonly id: {
561
+ type: "string";
562
+ optional: false;
563
+ customType: string;
564
+ };
565
+ readonly isPrimary: {
566
+ type: "boolean";
567
+ optional: false;
568
+ customType: boolean;
569
+ } & {
570
+ serverName: string;
571
+ };
572
+ readonly name: Omit<{
573
+ type: "string";
574
+ optional: false;
575
+ customType: string;
576
+ }, "optional"> & {
577
+ optional: true;
578
+ };
579
+ };
580
+ primaryKey: readonly [string, ...string[]];
581
+ } & {
582
+ primaryKey: ["id"];
583
+ };
584
+ readonly accountLabel: {
585
+ name: "accountLabel";
586
+ columns: {
587
+ readonly accountId: {
588
+ type: "string";
589
+ optional: false;
590
+ customType: string;
591
+ } & {
592
+ serverName: string;
593
+ };
594
+ readonly id: {
595
+ type: "string";
596
+ optional: false;
597
+ customType: string;
598
+ };
599
+ readonly name: Omit<{
600
+ type: "string";
601
+ optional: false;
602
+ customType: string;
603
+ }, "optional"> & {
604
+ optional: true;
605
+ };
606
+ readonly path: {
607
+ type: "string";
608
+ optional: false;
609
+ customType: string;
610
+ };
611
+ readonly specialUse: Omit<{
612
+ type: "string";
613
+ optional: false;
614
+ customType: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH";
615
+ }, "optional"> & {
616
+ optional: true;
617
+ } & {
618
+ serverName: string;
619
+ };
620
+ readonly uidValidity: {
621
+ type: "number";
622
+ optional: false;
623
+ customType: number;
624
+ } & {
625
+ serverName: string;
626
+ };
627
+ readonly unreadCount: {
628
+ type: "number";
629
+ optional: false;
630
+ customType: number;
631
+ } & {
632
+ serverName: string;
633
+ };
634
+ };
635
+ primaryKey: readonly [string, ...string[]];
636
+ } & {
637
+ primaryKey: ["id"];
638
+ };
639
+ readonly draft: {
640
+ name: "draft";
641
+ columns: {
642
+ readonly accountId: {
643
+ type: "string";
644
+ optional: false;
645
+ customType: string;
646
+ } & {
647
+ serverName: string;
648
+ };
649
+ readonly body: {
650
+ type: "json";
651
+ optional: false;
652
+ customType: {
653
+ content: string;
654
+ to: string[];
655
+ cc: string[];
656
+ bcc: string[];
657
+ };
658
+ };
659
+ readonly error: Omit<{
660
+ type: "string";
661
+ optional: false;
662
+ customType: string;
663
+ }, "optional"> & {
664
+ optional: true;
665
+ };
666
+ readonly fromAliasId: Omit<{
667
+ type: "string";
668
+ optional: false;
669
+ customType: string;
670
+ }, "optional"> & {
671
+ optional: true;
672
+ } & {
673
+ serverName: string;
674
+ };
675
+ readonly fromEmail: {
676
+ type: "string";
677
+ optional: false;
678
+ customType: string;
679
+ } & {
680
+ serverName: string;
681
+ };
682
+ readonly fromName: Omit<{
683
+ type: "string";
684
+ optional: false;
685
+ customType: string;
686
+ }, "optional"> & {
687
+ optional: true;
688
+ } & {
689
+ serverName: string;
690
+ };
691
+ readonly id: {
692
+ type: "string";
693
+ optional: false;
694
+ customType: string;
695
+ };
696
+ readonly referencedMessageId: Omit<{
697
+ type: "string";
698
+ optional: false;
699
+ customType: string;
700
+ }, "optional"> & {
701
+ optional: true;
702
+ } & {
703
+ serverName: string;
704
+ };
705
+ readonly scheduledFor: Omit<{
706
+ type: "number";
707
+ optional: false;
708
+ customType: number;
709
+ }, "optional"> & {
710
+ optional: true;
711
+ } & {
712
+ serverName: string;
713
+ };
714
+ readonly status: {
715
+ type: "string";
716
+ optional: false;
717
+ customType: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
718
+ };
719
+ readonly subject: Omit<{
720
+ type: "string";
721
+ optional: false;
722
+ customType: string;
723
+ }, "optional"> & {
724
+ optional: true;
725
+ };
726
+ readonly type: {
727
+ type: "string";
728
+ optional: false;
729
+ customType: "NEW" | "REPLY" | "FORWARD";
730
+ };
731
+ readonly updatedAt: {
732
+ type: "number";
733
+ optional: false;
734
+ customType: number;
735
+ } & {
736
+ serverName: string;
737
+ };
738
+ readonly userId: {
739
+ type: "string";
740
+ optional: false;
741
+ customType: string;
742
+ } & {
743
+ serverName: string;
744
+ };
745
+ };
746
+ primaryKey: readonly [string, ...string[]];
747
+ } & {
748
+ primaryKey: ["id"];
749
+ };
750
+ readonly thread: {
751
+ name: "thread";
752
+ columns: {
753
+ readonly accountId: {
754
+ type: "string";
755
+ optional: false;
756
+ customType: string;
757
+ } & {
758
+ serverName: string;
759
+ };
760
+ readonly flagged: {
761
+ type: "boolean";
762
+ optional: false;
763
+ customType: boolean;
764
+ };
765
+ readonly hasAttachments: {
766
+ type: "boolean";
767
+ optional: false;
768
+ customType: boolean;
769
+ } & {
770
+ serverName: string;
771
+ };
772
+ readonly id: {
773
+ type: "string";
774
+ optional: false;
775
+ customType: string;
776
+ };
777
+ readonly labelIdList: {
778
+ type: "string";
779
+ optional: false;
780
+ customType: string;
781
+ } & {
782
+ serverName: string;
783
+ };
784
+ readonly latestMessageDate: {
785
+ type: "number";
786
+ optional: false;
787
+ customType: number;
788
+ } & {
789
+ serverName: string;
790
+ };
791
+ readonly latestMessageId: {
792
+ type: "string";
793
+ optional: false;
794
+ customType: string;
795
+ } & {
796
+ serverName: string;
797
+ };
798
+ readonly messageCount: {
799
+ type: "number";
800
+ optional: false;
801
+ customType: number;
802
+ } & {
803
+ serverName: string;
804
+ };
805
+ readonly previewText: {
806
+ type: "string";
807
+ optional: false;
808
+ customType: string;
809
+ } & {
810
+ serverName: string;
811
+ };
812
+ readonly seen: {
813
+ type: "boolean";
814
+ optional: false;
815
+ customType: boolean;
816
+ };
817
+ readonly senderEmail: {
818
+ type: "string";
819
+ optional: false;
820
+ customType: string;
821
+ } & {
822
+ serverName: string;
823
+ };
824
+ readonly senderName: Omit<{
825
+ type: "string";
826
+ optional: false;
827
+ customType: string;
828
+ }, "optional"> & {
829
+ optional: true;
830
+ } & {
831
+ serverName: string;
832
+ };
833
+ readonly subject: Omit<{
834
+ type: "string";
835
+ optional: false;
836
+ customType: string;
837
+ }, "optional"> & {
838
+ optional: true;
839
+ };
840
+ readonly userId: {
841
+ type: "string";
842
+ optional: false;
843
+ customType: string;
844
+ } & {
845
+ serverName: string;
846
+ };
847
+ readonly words: {
848
+ type: "string";
849
+ optional: false;
850
+ customType: string;
851
+ };
852
+ };
853
+ primaryKey: readonly [string, ...string[]];
854
+ } & {
855
+ primaryKey: ["id"];
856
+ };
857
+ readonly threadLabel: {
858
+ name: "threadLabel";
859
+ columns: {
860
+ readonly accountId: {
861
+ type: "string";
862
+ optional: false;
863
+ customType: string;
864
+ } & {
865
+ serverName: string;
866
+ };
867
+ readonly labelId: {
868
+ type: "string";
869
+ optional: false;
870
+ customType: string;
871
+ } & {
872
+ serverName: string;
873
+ };
874
+ readonly lastSyncedAt: {
875
+ type: "number";
876
+ optional: false;
877
+ customType: number;
878
+ } & {
879
+ serverName: string;
880
+ };
881
+ readonly threadId: {
882
+ type: "string";
883
+ optional: false;
884
+ customType: string;
885
+ } & {
886
+ serverName: string;
887
+ };
888
+ readonly threadMessageId: {
889
+ type: "string";
890
+ optional: false;
891
+ customType: string;
892
+ } & {
893
+ serverName: string;
894
+ };
895
+ readonly uid: {
896
+ type: "number";
897
+ optional: false;
898
+ customType: number;
899
+ };
900
+ readonly uidValidity: {
901
+ type: "number";
902
+ optional: false;
903
+ customType: number;
904
+ } & {
905
+ serverName: string;
906
+ };
907
+ };
908
+ primaryKey: readonly [string, ...string[]];
909
+ } & {
910
+ primaryKey: ["accountId", "labelId", "threadMessageId"];
911
+ };
912
+ readonly threadByLabel: {
913
+ name: "threadByLabel";
914
+ columns: {
915
+ readonly labelId: {
916
+ type: "string";
917
+ optional: false;
918
+ customType: string;
919
+ } & {
920
+ serverName: string;
921
+ };
922
+ readonly latestMessageDate: {
923
+ type: "number";
924
+ optional: false;
925
+ customType: number;
926
+ } & {
927
+ serverName: string;
928
+ };
929
+ readonly threadId: {
930
+ type: "string";
931
+ optional: false;
932
+ customType: string;
933
+ } & {
934
+ serverName: string;
935
+ };
936
+ };
937
+ primaryKey: readonly [string, ...string[]];
938
+ } & {
939
+ primaryKey: ["labelId", "threadId"];
940
+ };
941
+ readonly threadMessage: {
942
+ name: "threadMessage";
943
+ columns: {
944
+ readonly accountId: {
945
+ type: "string";
946
+ optional: false;
947
+ customType: string;
948
+ } & {
949
+ serverName: string;
950
+ };
951
+ readonly envelopeDate: {
952
+ type: "number";
953
+ optional: false;
954
+ customType: number;
955
+ } & {
956
+ serverName: string;
957
+ };
958
+ readonly envelopeSubject: Omit<{
959
+ type: "string";
960
+ optional: false;
961
+ customType: string;
962
+ }, "optional"> & {
963
+ optional: true;
964
+ } & {
965
+ serverName: string;
966
+ };
967
+ readonly id: {
968
+ type: "string";
969
+ optional: false;
970
+ customType: string;
971
+ };
972
+ readonly previewText: {
973
+ type: "string";
974
+ optional: false;
975
+ customType: string;
976
+ } & {
977
+ serverName: string;
978
+ };
979
+ readonly senderEmail: {
980
+ type: "string";
981
+ optional: false;
982
+ customType: string;
983
+ } & {
984
+ serverName: string;
985
+ };
986
+ readonly senderName: Omit<{
987
+ type: "string";
988
+ optional: false;
989
+ customType: string;
990
+ }, "optional"> & {
991
+ optional: true;
992
+ } & {
993
+ serverName: string;
994
+ };
995
+ readonly threadId: {
996
+ type: "string";
997
+ optional: false;
998
+ customType: string;
999
+ } & {
1000
+ serverName: string;
1001
+ };
1002
+ };
1003
+ primaryKey: readonly [string, ...string[]];
1004
+ } & {
1005
+ primaryKey: ["id"];
1006
+ };
1007
+ readonly threadMessageRecipient: {
1008
+ name: "threadMessageRecipient";
1009
+ columns: {
1010
+ readonly emailAddress: {
1011
+ type: "string";
1012
+ optional: false;
1013
+ customType: string;
1014
+ } & {
1015
+ serverName: string;
1016
+ };
1017
+ readonly id: {
1018
+ type: "string";
1019
+ optional: false;
1020
+ customType: string;
1021
+ };
1022
+ readonly name: Omit<{
1023
+ type: "string";
1024
+ optional: false;
1025
+ customType: string;
1026
+ }, "optional"> & {
1027
+ optional: true;
1028
+ };
1029
+ readonly threadMessageId: {
1030
+ type: "string";
1031
+ optional: false;
1032
+ customType: string;
1033
+ } & {
1034
+ serverName: string;
1035
+ };
1036
+ readonly type: {
1037
+ type: "string";
1038
+ optional: false;
1039
+ customType: "bcc" | "cc" | "to" | "replyTo";
1040
+ };
1041
+ };
1042
+ primaryKey: readonly [string, ...string[]];
1043
+ } & {
1044
+ primaryKey: ["id"];
1045
+ };
1046
+ readonly threadMessageAttachment: {
1047
+ name: "threadMessageAttachment";
1048
+ columns: {
1049
+ readonly fileName: {
1050
+ type: "string";
1051
+ optional: false;
1052
+ customType: string;
1053
+ } & {
1054
+ serverName: string;
1055
+ };
1056
+ readonly id: {
1057
+ type: "string";
1058
+ optional: false;
1059
+ customType: string;
1060
+ };
1061
+ readonly mimeType: {
1062
+ type: "string";
1063
+ optional: false;
1064
+ customType: string;
1065
+ } & {
1066
+ serverName: string;
1067
+ };
1068
+ readonly size: {
1069
+ type: "number";
1070
+ optional: false;
1071
+ customType: number;
1072
+ };
1073
+ readonly threadMessageId: {
1074
+ type: "string";
1075
+ optional: false;
1076
+ customType: string;
1077
+ } & {
1078
+ serverName: string;
1079
+ };
1080
+ };
1081
+ primaryKey: readonly [string, ...string[]];
1082
+ } & {
1083
+ primaryKey: ["id"];
1084
+ };
1085
+ };
1086
+ relationships: {
1087
+ readonly user: {
1088
+ accounts: [{
1089
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1090
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1091
+ readonly destSchema: "account";
1092
+ readonly cardinality: "many";
1093
+ }];
1094
+ contacts: [{
1095
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1096
+ readonly destField: readonly ("id" | "name" | "userId" | "emailAddress")[];
1097
+ readonly destSchema: "contact";
1098
+ readonly cardinality: "many";
1099
+ }];
1100
+ drafts: [{
1101
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1102
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1103
+ readonly destSchema: "draft";
1104
+ readonly cardinality: "many";
1105
+ }];
1106
+ pushNotificationTokens: [{
1107
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1108
+ readonly destField: readonly ("createdAt" | "id" | "token" | "userId")[];
1109
+ readonly destSchema: "userPushNotificationToken";
1110
+ readonly cardinality: "many";
1111
+ }];
1112
+ threads: [{
1113
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1114
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1115
+ readonly destSchema: "thread";
1116
+ readonly cardinality: "many";
1117
+ }];
1118
+ };
1119
+ readonly draftAttachment: {
1120
+ draft: [{
1121
+ readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
1122
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1123
+ readonly destSchema: "draft";
1124
+ readonly cardinality: "one";
1125
+ }];
1126
+ };
1127
+ readonly userPushNotificationToken: {
1128
+ user: [{
1129
+ readonly sourceField: readonly ("createdAt" | "id" | "token" | "userId")[];
1130
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1131
+ readonly destSchema: "user";
1132
+ readonly cardinality: "one";
1133
+ }];
1134
+ };
1135
+ readonly contact: {
1136
+ user: [{
1137
+ readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
1138
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1139
+ readonly destSchema: "user";
1140
+ readonly cardinality: "one";
1141
+ }];
1142
+ };
1143
+ readonly account: {
1144
+ aliases: [{
1145
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1146
+ readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
1147
+ readonly destSchema: "accountAlias";
1148
+ readonly cardinality: "many";
1149
+ }];
1150
+ drafts: [{
1151
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1152
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1153
+ readonly destSchema: "draft";
1154
+ readonly cardinality: "many";
1155
+ }];
1156
+ labels: [{
1157
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1158
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1159
+ readonly destSchema: "accountLabel";
1160
+ readonly cardinality: "many";
1161
+ }];
1162
+ primaryAlias: [{
1163
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1164
+ readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
1165
+ readonly destSchema: "accountAlias";
1166
+ readonly cardinality: "one";
1167
+ }];
1168
+ threads: [{
1169
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1170
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1171
+ readonly destSchema: "thread";
1172
+ readonly cardinality: "many";
1173
+ }];
1174
+ user: [{
1175
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1176
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1177
+ readonly destSchema: "user";
1178
+ readonly cardinality: "one";
1179
+ }];
1180
+ };
1181
+ readonly accountAlias: {
1182
+ account: [{
1183
+ readonly sourceField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
1184
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1185
+ readonly destSchema: "account";
1186
+ readonly cardinality: "one";
1187
+ }];
1188
+ };
1189
+ readonly accountLabel: {
1190
+ account: [{
1191
+ readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1192
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1193
+ readonly destSchema: "account";
1194
+ readonly cardinality: "one";
1195
+ }];
1196
+ threads: [{
1197
+ readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1198
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1199
+ readonly destSchema: "threadLabel";
1200
+ readonly cardinality: "many";
1201
+ }, {
1202
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1203
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1204
+ readonly destSchema: "thread";
1205
+ readonly cardinality: "many";
1206
+ }];
1207
+ };
1208
+ readonly draft: {
1209
+ account: [{
1210
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1211
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1212
+ readonly destSchema: "account";
1213
+ readonly cardinality: "one";
1214
+ }];
1215
+ attachments: [{
1216
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1217
+ readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
1218
+ readonly destSchema: "draftAttachment";
1219
+ readonly cardinality: "many";
1220
+ }];
1221
+ user: [{
1222
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1223
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1224
+ readonly destSchema: "user";
1225
+ readonly cardinality: "one";
1226
+ }];
1227
+ };
1228
+ readonly thread: {
1229
+ account: [{
1230
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1231
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1232
+ readonly destSchema: "account";
1233
+ readonly cardinality: "one";
1234
+ }];
1235
+ labels: [{
1236
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1237
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1238
+ readonly destSchema: "threadLabel";
1239
+ readonly cardinality: "many";
1240
+ }, {
1241
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1242
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1243
+ readonly destSchema: "accountLabel";
1244
+ readonly cardinality: "many";
1245
+ }];
1246
+ messages: [{
1247
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1248
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1249
+ readonly destSchema: "threadMessage";
1250
+ readonly cardinality: "many";
1251
+ }];
1252
+ threadByLabel: [{
1253
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1254
+ readonly destField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
1255
+ readonly destSchema: "threadByLabel";
1256
+ readonly cardinality: "many";
1257
+ }];
1258
+ user: [{
1259
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1260
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1261
+ readonly destSchema: "user";
1262
+ readonly cardinality: "one";
1263
+ }];
1264
+ };
1265
+ readonly threadLabel: {
1266
+ label: [{
1267
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1268
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1269
+ readonly destSchema: "accountLabel";
1270
+ readonly cardinality: "one";
1271
+ }];
1272
+ message: [{
1273
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1274
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1275
+ readonly destSchema: "threadMessage";
1276
+ readonly cardinality: "one";
1277
+ }];
1278
+ thread: [{
1279
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1280
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1281
+ readonly destSchema: "thread";
1282
+ readonly cardinality: "one";
1283
+ }];
1284
+ };
1285
+ readonly threadByLabel: {
1286
+ label: [{
1287
+ readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
1288
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1289
+ readonly destSchema: "accountLabel";
1290
+ readonly cardinality: "one";
1291
+ }];
1292
+ thread: [{
1293
+ readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
1294
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1295
+ readonly destSchema: "thread";
1296
+ readonly cardinality: "one";
1297
+ }];
1298
+ };
1299
+ readonly threadMessage: {
1300
+ attachments: [{
1301
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1302
+ readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
1303
+ readonly destSchema: "threadMessageAttachment";
1304
+ readonly cardinality: "many";
1305
+ }];
1306
+ labels: [{
1307
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1308
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1309
+ readonly destSchema: "threadLabel";
1310
+ readonly cardinality: "many";
1311
+ }, {
1312
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1313
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1314
+ readonly destSchema: "accountLabel";
1315
+ readonly cardinality: "many";
1316
+ }];
1317
+ recipients: [{
1318
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1319
+ readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
1320
+ readonly destSchema: "threadMessageRecipient";
1321
+ readonly cardinality: "many";
1322
+ }];
1323
+ thread: [{
1324
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1325
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1326
+ readonly destSchema: "thread";
1327
+ readonly cardinality: "one";
1328
+ }];
1329
+ };
1330
+ readonly threadMessageRecipient: {
1331
+ message: [{
1332
+ readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
1333
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1334
+ readonly destSchema: "threadMessage";
1335
+ readonly cardinality: "one";
1336
+ }];
1337
+ };
1338
+ readonly threadMessageAttachment: {
1339
+ message: [{
1340
+ readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
1341
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1342
+ readonly destSchema: "threadMessage";
1343
+ readonly cardinality: "one";
1344
+ }];
1345
+ };
1346
+ };
1347
+ enableLegacyQueries: boolean | undefined;
1348
+ enableLegacyMutators: boolean | undefined;
1349
+ }>;
328
1350
  //# sourceMappingURL=index.d.ts.map