@marcoappio/marco-config 2.0.492 → 2.0.494

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.
Files changed (71) hide show
  1. package/dist/types/Zero.d.ts +8 -14
  2. package/dist/types/Zero.d.ts.map +1 -1
  3. package/dist/types/index.d.ts +0 -1
  4. package/dist/types/index.d.ts.map +1 -1
  5. package/dist/types/index.js +0 -1
  6. package/dist/zero/crud.d.ts +1024 -0
  7. package/dist/zero/crud.d.ts.map +1 -0
  8. package/dist/zero/crud.js +3 -0
  9. package/dist/zero/index.d.ts +1621 -1447
  10. package/dist/zero/index.d.ts.map +1 -1
  11. package/dist/zero/index.js +2 -4
  12. package/dist/zero/mutators/accountMutators/accountMutators.d.ts +127 -3
  13. package/dist/zero/mutators/accountMutators/accountMutators.d.ts.map +1 -1
  14. package/dist/zero/mutators/accountMutators/accountMutators.js +88 -53
  15. package/dist/zero/mutators/draftMutators/draftMutators.d.ts +185 -3
  16. package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -1
  17. package/dist/zero/mutators/draftMutators/draftMutators.js +124 -51
  18. package/dist/zero/mutators/index.d.ts +1 -1
  19. package/dist/zero/mutators/index.d.ts.map +1 -1
  20. package/dist/zero/mutators/index.js +1 -1
  21. package/dist/zero/mutators/mutators.d.ts +497 -17
  22. package/dist/zero/mutators/mutators.d.ts.map +1 -1
  23. package/dist/zero/mutators/mutators.js +10 -38
  24. package/dist/zero/mutators/threadMutators/threadMutators.d.ts +147 -6
  25. package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
  26. package/dist/zero/mutators/threadMutators/threadMutators.js +79 -59
  27. package/dist/zero/mutators/userMutators/userMutators.d.ts +37 -3
  28. package/dist/zero/mutators/userMutators/userMutators.d.ts.map +1 -1
  29. package/dist/zero/mutators/userMutators/userMutators.js +32 -14
  30. package/dist/zero/queries/getAccounts.d.ts +135 -135
  31. package/dist/zero/queries/getContacts.d.ts +135 -135
  32. package/dist/zero/queries/getDrafts.d.ts +135 -135
  33. package/dist/zero/queries/getThread.d.ts +135 -135
  34. package/dist/zero/queries/getThreadList.d.ts +135 -135
  35. package/dist/zero/queries/getThreads.d.ts +135 -135
  36. package/dist/zero/queries/getUser.d.ts +135 -135
  37. package/dist/zero/queries/index.d.ts +133 -133
  38. package/dist/zero/schema.d.ts +133 -133
  39. package/dist/zero/schema.d.ts.map +1 -1
  40. package/dist/zero/schema.js +0 -1
  41. package/package.json +2 -2
  42. package/dist/types/AuthData.d.ts +0 -4
  43. package/dist/types/AuthData.d.ts.map +0 -1
  44. package/dist/types/AuthData.js +0 -1
  45. package/dist/zero/mutatorSchemas/account.d.ts +0 -80
  46. package/dist/zero/mutatorSchemas/account.d.ts.map +0 -1
  47. package/dist/zero/mutatorSchemas/account.js +0 -66
  48. package/dist/zero/mutatorSchemas/draft.d.ts +0 -150
  49. package/dist/zero/mutatorSchemas/draft.d.ts.map +0 -1
  50. package/dist/zero/mutatorSchemas/draft.js +0 -104
  51. package/dist/zero/mutatorSchemas/index.d.ts +0 -323
  52. package/dist/zero/mutatorSchemas/index.d.ts.map +0 -1
  53. package/dist/zero/mutatorSchemas/index.js +0 -10
  54. package/dist/zero/mutatorSchemas/thread.d.ts +0 -71
  55. package/dist/zero/mutatorSchemas/thread.d.ts.map +0 -1
  56. package/dist/zero/mutatorSchemas/thread.js +0 -47
  57. package/dist/zero/mutatorSchemas/user.d.ts +0 -26
  58. package/dist/zero/mutatorSchemas/user.d.ts.map +0 -1
  59. package/dist/zero/mutatorSchemas/user.js +0 -27
  60. package/dist/zero/mutators/accountMutators/accountMutators.test.d.ts +0 -2
  61. package/dist/zero/mutators/accountMutators/accountMutators.test.d.ts.map +0 -1
  62. package/dist/zero/mutators/accountMutators/accountMutators.test.js +0 -372
  63. package/dist/zero/mutators/draftMutators/draftMutators.test.d.ts +0 -2
  64. package/dist/zero/mutators/draftMutators/draftMutators.test.d.ts.map +0 -1
  65. package/dist/zero/mutators/draftMutators/draftMutators.test.js +0 -416
  66. package/dist/zero/mutators/threadMutators/threadMutators.test.d.ts +0 -2
  67. package/dist/zero/mutators/threadMutators/threadMutators.test.d.ts.map +0 -1
  68. package/dist/zero/mutators/threadMutators/threadMutators.test.js +0 -755
  69. package/dist/zero/mutators/userMutators/userMutators.test.d.ts +0 -2
  70. package/dist/zero/mutators/userMutators/userMutators.test.d.ts.map +0 -1
  71. package/dist/zero/mutators/userMutators/userMutators.test.js +0 -84
@@ -1,5 +1,5 @@
1
1
  import type { MarcoSyncedQueryContext } from '../../types';
2
- export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", MarcoSyncedQueryContext, true, [], import("@rocicorp/zero").Query<{
2
+ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", MarcoSyncedQueryContext, true, [], import("@rocicorp/zero").Query<"user", {
3
3
  tables: {
4
4
  readonly user: {
5
5
  name: "user";
@@ -37,6 +37,54 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
37
37
  } & {
38
38
  primaryKey: ["id"];
39
39
  };
40
+ readonly draftAttachment: {
41
+ name: "draftAttachment";
42
+ columns: {
43
+ readonly draftId: {
44
+ type: "string";
45
+ optional: false;
46
+ customType: string;
47
+ } & {
48
+ serverName: string;
49
+ };
50
+ readonly fileName: {
51
+ type: "string";
52
+ optional: false;
53
+ customType: string;
54
+ } & {
55
+ serverName: string;
56
+ };
57
+ readonly id: {
58
+ type: "string";
59
+ optional: false;
60
+ customType: string;
61
+ };
62
+ readonly mimeType: {
63
+ type: "string";
64
+ optional: false;
65
+ customType: string;
66
+ } & {
67
+ serverName: string;
68
+ };
69
+ readonly status: {
70
+ type: "string";
71
+ optional: false;
72
+ customType: "PENDING" | "COMPLETE" | "FAILED";
73
+ } & {
74
+ serverName: string;
75
+ };
76
+ readonly totalSize: {
77
+ type: "number";
78
+ optional: false;
79
+ customType: number;
80
+ } & {
81
+ serverName: string;
82
+ };
83
+ };
84
+ primaryKey: readonly [string, ...string[]];
85
+ } & {
86
+ primaryKey: ["id"];
87
+ };
40
88
  readonly userPushNotificationToken: {
41
89
  name: "userPushNotificationToken";
42
90
  columns: {
@@ -374,54 +422,6 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
374
422
  } & {
375
423
  primaryKey: ["id"];
376
424
  };
377
- readonly draftAttachment: {
378
- name: "draftAttachment";
379
- columns: {
380
- readonly draftId: {
381
- type: "string";
382
- optional: false;
383
- customType: string;
384
- } & {
385
- serverName: string;
386
- };
387
- readonly fileName: {
388
- type: "string";
389
- optional: false;
390
- customType: string;
391
- } & {
392
- serverName: string;
393
- };
394
- readonly id: {
395
- type: "string";
396
- optional: false;
397
- customType: string;
398
- };
399
- readonly mimeType: {
400
- type: "string";
401
- optional: false;
402
- customType: string;
403
- } & {
404
- serverName: string;
405
- };
406
- readonly status: {
407
- type: "string";
408
- optional: false;
409
- customType: "PENDING" | "COMPLETE" | "FAILED";
410
- } & {
411
- serverName: string;
412
- };
413
- readonly totalSize: {
414
- type: "number";
415
- optional: false;
416
- customType: number;
417
- } & {
418
- serverName: string;
419
- };
420
- };
421
- primaryKey: readonly [string, ...string[]];
422
- } & {
423
- primaryKey: ["id"];
424
- };
425
425
  readonly thread: {
426
426
  name: "thread";
427
427
  columns: {
@@ -761,267 +761,267 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
761
761
  relationships: {
762
762
  readonly user: {
763
763
  accounts: [{
764
- readonly sourceField: string[];
765
- readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
764
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
765
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
766
766
  readonly destSchema: "account";
767
767
  readonly cardinality: "many";
768
768
  }];
769
769
  contacts: [{
770
- readonly sourceField: string[];
771
- readonly destField: ("id" | "name" | "userId" | "emailAddress")[];
770
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
771
+ readonly destField: readonly ("id" | "name" | "userId" | "emailAddress")[];
772
772
  readonly destSchema: "contact";
773
773
  readonly cardinality: "many";
774
774
  }];
775
775
  drafts: [{
776
- readonly sourceField: string[];
777
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
776
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
777
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
778
778
  readonly destSchema: "draft";
779
779
  readonly cardinality: "many";
780
780
  }];
781
781
  pushNotificationTokens: [{
782
- readonly sourceField: string[];
783
- readonly destField: ("id" | "createdAt" | "token" | "userId")[];
782
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
783
+ readonly destField: readonly ("createdAt" | "id" | "token" | "userId")[];
784
784
  readonly destSchema: "userPushNotificationToken";
785
785
  readonly cardinality: "many";
786
786
  }];
787
787
  threads: [{
788
- readonly sourceField: string[];
789
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
788
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
789
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
790
790
  readonly destSchema: "thread";
791
791
  readonly cardinality: "many";
792
792
  }];
793
793
  };
794
+ readonly draftAttachment: {
795
+ draft: [{
796
+ readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
797
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
798
+ readonly destSchema: "draft";
799
+ readonly cardinality: "one";
800
+ }];
801
+ };
794
802
  readonly userPushNotificationToken: {
795
803
  user: [{
796
- readonly sourceField: string[];
797
- readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
804
+ readonly sourceField: readonly ("createdAt" | "id" | "token" | "userId")[];
805
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
798
806
  readonly destSchema: "user";
799
807
  readonly cardinality: "one";
800
808
  }];
801
809
  };
802
810
  readonly contact: {
803
811
  user: [{
804
- readonly sourceField: string[];
805
- readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
812
+ readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
813
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
806
814
  readonly destSchema: "user";
807
815
  readonly cardinality: "one";
808
816
  }];
809
817
  };
810
818
  readonly account: {
811
819
  aliases: [{
812
- readonly sourceField: string[];
813
- readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
820
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
821
+ readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
814
822
  readonly destSchema: "accountAlias";
815
823
  readonly cardinality: "many";
816
824
  }];
817
825
  drafts: [{
818
- readonly sourceField: string[];
819
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
826
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
827
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
820
828
  readonly destSchema: "draft";
821
829
  readonly cardinality: "many";
822
830
  }];
823
831
  labels: [{
824
- readonly sourceField: string[];
825
- readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
832
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
833
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
826
834
  readonly destSchema: "accountLabel";
827
835
  readonly cardinality: "many";
828
836
  }];
829
837
  primaryAlias: [{
830
- readonly sourceField: string[];
831
- readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
838
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
839
+ readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
832
840
  readonly destSchema: "accountAlias";
833
841
  readonly cardinality: "one";
834
842
  }];
835
843
  threads: [{
836
- readonly sourceField: string[];
837
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
844
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
845
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
838
846
  readonly destSchema: "thread";
839
847
  readonly cardinality: "many";
840
848
  }];
841
849
  user: [{
842
- readonly sourceField: string[];
843
- readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
850
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
851
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
844
852
  readonly destSchema: "user";
845
853
  readonly cardinality: "one";
846
854
  }];
847
855
  };
848
856
  readonly accountAlias: {
849
857
  account: [{
850
- readonly sourceField: string[];
851
- readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
858
+ readonly sourceField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
859
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
852
860
  readonly destSchema: "account";
853
861
  readonly cardinality: "one";
854
862
  }];
855
863
  };
856
864
  readonly accountLabel: {
857
865
  account: [{
858
- readonly sourceField: string[];
859
- readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
866
+ readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
867
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
860
868
  readonly destSchema: "account";
861
869
  readonly cardinality: "one";
862
870
  }];
863
871
  threads: [{
864
- readonly sourceField: string[];
865
- readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
872
+ readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
873
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
866
874
  readonly destSchema: "threadLabel";
867
875
  readonly cardinality: "many";
868
876
  }, {
869
- readonly sourceField: string[];
870
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
877
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
878
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
871
879
  readonly destSchema: "thread";
872
880
  readonly cardinality: "many";
873
881
  }];
874
882
  };
875
883
  readonly draft: {
876
884
  account: [{
877
- readonly sourceField: string[];
878
- readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
885
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
886
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
879
887
  readonly destSchema: "account";
880
888
  readonly cardinality: "one";
881
889
  }];
882
890
  attachments: [{
883
- readonly sourceField: string[];
884
- readonly destField: ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
891
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
892
+ readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
885
893
  readonly destSchema: "draftAttachment";
886
894
  readonly cardinality: "many";
887
895
  }];
888
896
  user: [{
889
- readonly sourceField: string[];
890
- readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
897
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
898
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
891
899
  readonly destSchema: "user";
892
900
  readonly cardinality: "one";
893
901
  }];
894
902
  };
895
- readonly draftAttachment: {
896
- draft: [{
897
- readonly sourceField: string[];
898
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
899
- readonly destSchema: "draft";
900
- readonly cardinality: "one";
901
- }];
902
- };
903
903
  readonly thread: {
904
904
  account: [{
905
- readonly sourceField: string[];
906
- readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
905
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
906
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
907
907
  readonly destSchema: "account";
908
908
  readonly cardinality: "one";
909
909
  }];
910
910
  labels: [{
911
- readonly sourceField: string[];
912
- readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
911
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
912
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
913
913
  readonly destSchema: "threadLabel";
914
914
  readonly cardinality: "many";
915
915
  }, {
916
- readonly sourceField: string[];
917
- readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
916
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
917
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
918
918
  readonly destSchema: "accountLabel";
919
919
  readonly cardinality: "many";
920
920
  }];
921
921
  messages: [{
922
- readonly sourceField: string[];
923
- readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
922
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
923
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
924
924
  readonly destSchema: "threadMessage";
925
925
  readonly cardinality: "many";
926
926
  }];
927
927
  threadByLabel: [{
928
- readonly sourceField: string[];
929
- readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
928
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
929
+ readonly destField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
930
930
  readonly destSchema: "threadByLabel";
931
931
  readonly cardinality: "many";
932
932
  }];
933
933
  user: [{
934
- readonly sourceField: string[];
935
- readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
934
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
935
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
936
936
  readonly destSchema: "user";
937
937
  readonly cardinality: "one";
938
938
  }];
939
939
  };
940
940
  readonly threadLabel: {
941
941
  label: [{
942
- readonly sourceField: string[];
943
- readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
942
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
943
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
944
944
  readonly destSchema: "accountLabel";
945
945
  readonly cardinality: "one";
946
946
  }];
947
947
  message: [{
948
- readonly sourceField: string[];
949
- readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
948
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
949
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
950
950
  readonly destSchema: "threadMessage";
951
951
  readonly cardinality: "one";
952
952
  }];
953
953
  thread: [{
954
- readonly sourceField: string[];
955
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
954
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
955
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
956
956
  readonly destSchema: "thread";
957
957
  readonly cardinality: "one";
958
958
  }];
959
959
  };
960
960
  readonly threadByLabel: {
961
961
  label: [{
962
- readonly sourceField: string[];
963
- readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
962
+ readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
963
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
964
964
  readonly destSchema: "accountLabel";
965
965
  readonly cardinality: "one";
966
966
  }];
967
967
  thread: [{
968
- readonly sourceField: string[];
969
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
968
+ readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
969
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
970
970
  readonly destSchema: "thread";
971
971
  readonly cardinality: "one";
972
972
  }];
973
973
  };
974
974
  readonly threadMessage: {
975
975
  attachments: [{
976
- readonly sourceField: string[];
977
- readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
976
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
977
+ readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
978
978
  readonly destSchema: "threadMessageAttachment";
979
979
  readonly cardinality: "many";
980
980
  }];
981
981
  labels: [{
982
- readonly sourceField: string[];
983
- readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
982
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
983
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
984
984
  readonly destSchema: "threadLabel";
985
985
  readonly cardinality: "many";
986
986
  }, {
987
- readonly sourceField: string[];
988
- readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
987
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
988
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
989
989
  readonly destSchema: "accountLabel";
990
990
  readonly cardinality: "many";
991
991
  }];
992
992
  recipients: [{
993
- readonly sourceField: string[];
994
- readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
993
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
994
+ readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
995
995
  readonly destSchema: "threadMessageRecipient";
996
996
  readonly cardinality: "many";
997
997
  }];
998
998
  thread: [{
999
- readonly sourceField: string[];
1000
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
999
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1000
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1001
1001
  readonly destSchema: "thread";
1002
1002
  readonly cardinality: "one";
1003
1003
  }];
1004
1004
  };
1005
1005
  readonly threadMessageRecipient: {
1006
1006
  message: [{
1007
- readonly sourceField: string[];
1008
- readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
1007
+ readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
1008
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1009
1009
  readonly destSchema: "threadMessage";
1010
1010
  readonly cardinality: "one";
1011
1011
  }];
1012
1012
  };
1013
1013
  readonly threadMessageAttachment: {
1014
1014
  message: [{
1015
- readonly sourceField: string[];
1016
- readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
1015
+ readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
1016
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1017
1017
  readonly destSchema: "threadMessage";
1018
1018
  readonly cardinality: "one";
1019
1019
  }];
1020
1020
  };
1021
1021
  };
1022
1022
  enableLegacyQueries: boolean | undefined;
1023
- enableLegacyMutators: false;
1024
- }, "user", {
1023
+ enableLegacyMutators: boolean | undefined;
1024
+ }, {
1025
1025
  readonly id: string;
1026
1026
  readonly name: string | null;
1027
1027
  readonly profilePicture: string | null;