@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
@@ -8,7 +8,7 @@ type GetContactsArgs = {
8
8
  name?: string;
9
9
  };
10
10
  };
11
- export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getContacts", MarcoSyncedQueryContext, true, [GetContactsArgs], import("@rocicorp/zero").Query<{
11
+ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getContacts", MarcoSyncedQueryContext, true, [GetContactsArgs], import("@rocicorp/zero").Query<"contact", {
12
12
  tables: {
13
13
  readonly user: {
14
14
  name: "user";
@@ -46,6 +46,54 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
46
46
  } & {
47
47
  primaryKey: ["id"];
48
48
  };
49
+ readonly draftAttachment: {
50
+ name: "draftAttachment";
51
+ columns: {
52
+ readonly draftId: {
53
+ type: "string";
54
+ optional: false;
55
+ customType: string;
56
+ } & {
57
+ serverName: string;
58
+ };
59
+ readonly fileName: {
60
+ type: "string";
61
+ optional: false;
62
+ customType: string;
63
+ } & {
64
+ serverName: string;
65
+ };
66
+ readonly id: {
67
+ type: "string";
68
+ optional: false;
69
+ customType: string;
70
+ };
71
+ readonly mimeType: {
72
+ type: "string";
73
+ optional: false;
74
+ customType: string;
75
+ } & {
76
+ serverName: string;
77
+ };
78
+ readonly status: {
79
+ type: "string";
80
+ optional: false;
81
+ customType: "PENDING" | "COMPLETE" | "FAILED";
82
+ } & {
83
+ serverName: string;
84
+ };
85
+ readonly totalSize: {
86
+ type: "number";
87
+ optional: false;
88
+ customType: number;
89
+ } & {
90
+ serverName: string;
91
+ };
92
+ };
93
+ primaryKey: readonly [string, ...string[]];
94
+ } & {
95
+ primaryKey: ["id"];
96
+ };
49
97
  readonly userPushNotificationToken: {
50
98
  name: "userPushNotificationToken";
51
99
  columns: {
@@ -383,54 +431,6 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
383
431
  } & {
384
432
  primaryKey: ["id"];
385
433
  };
386
- readonly draftAttachment: {
387
- name: "draftAttachment";
388
- columns: {
389
- readonly draftId: {
390
- type: "string";
391
- optional: false;
392
- customType: string;
393
- } & {
394
- serverName: string;
395
- };
396
- readonly fileName: {
397
- type: "string";
398
- optional: false;
399
- customType: string;
400
- } & {
401
- serverName: string;
402
- };
403
- readonly id: {
404
- type: "string";
405
- optional: false;
406
- customType: string;
407
- };
408
- readonly mimeType: {
409
- type: "string";
410
- optional: false;
411
- customType: string;
412
- } & {
413
- serverName: string;
414
- };
415
- readonly status: {
416
- type: "string";
417
- optional: false;
418
- customType: "PENDING" | "COMPLETE" | "FAILED";
419
- } & {
420
- serverName: string;
421
- };
422
- readonly totalSize: {
423
- type: "number";
424
- optional: false;
425
- customType: number;
426
- } & {
427
- serverName: string;
428
- };
429
- };
430
- primaryKey: readonly [string, ...string[]];
431
- } & {
432
- primaryKey: ["id"];
433
- };
434
434
  readonly thread: {
435
435
  name: "thread";
436
436
  columns: {
@@ -770,267 +770,267 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
770
770
  relationships: {
771
771
  readonly user: {
772
772
  accounts: [{
773
- readonly sourceField: string[];
774
- readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
773
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
774
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
775
775
  readonly destSchema: "account";
776
776
  readonly cardinality: "many";
777
777
  }];
778
778
  contacts: [{
779
- readonly sourceField: string[];
780
- readonly destField: ("id" | "name" | "userId" | "emailAddress")[];
779
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
780
+ readonly destField: readonly ("id" | "name" | "userId" | "emailAddress")[];
781
781
  readonly destSchema: "contact";
782
782
  readonly cardinality: "many";
783
783
  }];
784
784
  drafts: [{
785
- readonly sourceField: string[];
786
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
785
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
786
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
787
787
  readonly destSchema: "draft";
788
788
  readonly cardinality: "many";
789
789
  }];
790
790
  pushNotificationTokens: [{
791
- readonly sourceField: string[];
792
- readonly destField: ("id" | "createdAt" | "token" | "userId")[];
791
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
792
+ readonly destField: readonly ("createdAt" | "id" | "token" | "userId")[];
793
793
  readonly destSchema: "userPushNotificationToken";
794
794
  readonly cardinality: "many";
795
795
  }];
796
796
  threads: [{
797
- readonly sourceField: string[];
798
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
797
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
798
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
799
799
  readonly destSchema: "thread";
800
800
  readonly cardinality: "many";
801
801
  }];
802
802
  };
803
+ readonly draftAttachment: {
804
+ draft: [{
805
+ readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
806
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
807
+ readonly destSchema: "draft";
808
+ readonly cardinality: "one";
809
+ }];
810
+ };
803
811
  readonly userPushNotificationToken: {
804
812
  user: [{
805
- readonly sourceField: string[];
806
- readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
813
+ readonly sourceField: readonly ("createdAt" | "id" | "token" | "userId")[];
814
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
807
815
  readonly destSchema: "user";
808
816
  readonly cardinality: "one";
809
817
  }];
810
818
  };
811
819
  readonly contact: {
812
820
  user: [{
813
- readonly sourceField: string[];
814
- readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
821
+ readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
822
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
815
823
  readonly destSchema: "user";
816
824
  readonly cardinality: "one";
817
825
  }];
818
826
  };
819
827
  readonly account: {
820
828
  aliases: [{
821
- readonly sourceField: string[];
822
- readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
829
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
830
+ readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
823
831
  readonly destSchema: "accountAlias";
824
832
  readonly cardinality: "many";
825
833
  }];
826
834
  drafts: [{
827
- readonly sourceField: string[];
828
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
835
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
836
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
829
837
  readonly destSchema: "draft";
830
838
  readonly cardinality: "many";
831
839
  }];
832
840
  labels: [{
833
- readonly sourceField: string[];
834
- readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
841
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
842
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
835
843
  readonly destSchema: "accountLabel";
836
844
  readonly cardinality: "many";
837
845
  }];
838
846
  primaryAlias: [{
839
- readonly sourceField: string[];
840
- readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
847
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
848
+ readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
841
849
  readonly destSchema: "accountAlias";
842
850
  readonly cardinality: "one";
843
851
  }];
844
852
  threads: [{
845
- readonly sourceField: string[];
846
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
853
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
854
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
847
855
  readonly destSchema: "thread";
848
856
  readonly cardinality: "many";
849
857
  }];
850
858
  user: [{
851
- readonly sourceField: string[];
852
- readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
859
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
860
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
853
861
  readonly destSchema: "user";
854
862
  readonly cardinality: "one";
855
863
  }];
856
864
  };
857
865
  readonly accountAlias: {
858
866
  account: [{
859
- readonly sourceField: string[];
860
- readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
867
+ readonly sourceField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
868
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
861
869
  readonly destSchema: "account";
862
870
  readonly cardinality: "one";
863
871
  }];
864
872
  };
865
873
  readonly accountLabel: {
866
874
  account: [{
867
- readonly sourceField: string[];
868
- readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
875
+ readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
876
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
869
877
  readonly destSchema: "account";
870
878
  readonly cardinality: "one";
871
879
  }];
872
880
  threads: [{
873
- readonly sourceField: string[];
874
- readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
881
+ readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
882
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
875
883
  readonly destSchema: "threadLabel";
876
884
  readonly cardinality: "many";
877
885
  }, {
878
- readonly sourceField: string[];
879
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
886
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
887
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
880
888
  readonly destSchema: "thread";
881
889
  readonly cardinality: "many";
882
890
  }];
883
891
  };
884
892
  readonly draft: {
885
893
  account: [{
886
- readonly sourceField: string[];
887
- readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
894
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
895
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
888
896
  readonly destSchema: "account";
889
897
  readonly cardinality: "one";
890
898
  }];
891
899
  attachments: [{
892
- readonly sourceField: string[];
893
- readonly destField: ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
900
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
901
+ readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
894
902
  readonly destSchema: "draftAttachment";
895
903
  readonly cardinality: "many";
896
904
  }];
897
905
  user: [{
898
- readonly sourceField: string[];
899
- readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
906
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
907
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
900
908
  readonly destSchema: "user";
901
909
  readonly cardinality: "one";
902
910
  }];
903
911
  };
904
- readonly draftAttachment: {
905
- draft: [{
906
- readonly sourceField: string[];
907
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
908
- readonly destSchema: "draft";
909
- readonly cardinality: "one";
910
- }];
911
- };
912
912
  readonly thread: {
913
913
  account: [{
914
- readonly sourceField: string[];
915
- readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
914
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
915
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
916
916
  readonly destSchema: "account";
917
917
  readonly cardinality: "one";
918
918
  }];
919
919
  labels: [{
920
- readonly sourceField: string[];
921
- readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
920
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
921
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
922
922
  readonly destSchema: "threadLabel";
923
923
  readonly cardinality: "many";
924
924
  }, {
925
- readonly sourceField: string[];
926
- readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
925
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
926
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
927
927
  readonly destSchema: "accountLabel";
928
928
  readonly cardinality: "many";
929
929
  }];
930
930
  messages: [{
931
- readonly sourceField: string[];
932
- readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
931
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
932
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
933
933
  readonly destSchema: "threadMessage";
934
934
  readonly cardinality: "many";
935
935
  }];
936
936
  threadByLabel: [{
937
- readonly sourceField: string[];
938
- readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
937
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
938
+ readonly destField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
939
939
  readonly destSchema: "threadByLabel";
940
940
  readonly cardinality: "many";
941
941
  }];
942
942
  user: [{
943
- readonly sourceField: string[];
944
- readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
943
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
944
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
945
945
  readonly destSchema: "user";
946
946
  readonly cardinality: "one";
947
947
  }];
948
948
  };
949
949
  readonly threadLabel: {
950
950
  label: [{
951
- readonly sourceField: string[];
952
- readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
951
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
952
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
953
953
  readonly destSchema: "accountLabel";
954
954
  readonly cardinality: "one";
955
955
  }];
956
956
  message: [{
957
- readonly sourceField: string[];
958
- readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
957
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
958
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
959
959
  readonly destSchema: "threadMessage";
960
960
  readonly cardinality: "one";
961
961
  }];
962
962
  thread: [{
963
- readonly sourceField: string[];
964
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
963
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
964
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
965
965
  readonly destSchema: "thread";
966
966
  readonly cardinality: "one";
967
967
  }];
968
968
  };
969
969
  readonly threadByLabel: {
970
970
  label: [{
971
- readonly sourceField: string[];
972
- readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
971
+ readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
972
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
973
973
  readonly destSchema: "accountLabel";
974
974
  readonly cardinality: "one";
975
975
  }];
976
976
  thread: [{
977
- readonly sourceField: string[];
978
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
977
+ readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
978
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
979
979
  readonly destSchema: "thread";
980
980
  readonly cardinality: "one";
981
981
  }];
982
982
  };
983
983
  readonly threadMessage: {
984
984
  attachments: [{
985
- readonly sourceField: string[];
986
- readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
985
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
986
+ readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
987
987
  readonly destSchema: "threadMessageAttachment";
988
988
  readonly cardinality: "many";
989
989
  }];
990
990
  labels: [{
991
- readonly sourceField: string[];
992
- readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
991
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
992
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
993
993
  readonly destSchema: "threadLabel";
994
994
  readonly cardinality: "many";
995
995
  }, {
996
- readonly sourceField: string[];
997
- readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
996
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
997
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
998
998
  readonly destSchema: "accountLabel";
999
999
  readonly cardinality: "many";
1000
1000
  }];
1001
1001
  recipients: [{
1002
- readonly sourceField: string[];
1003
- readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
1002
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1003
+ readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
1004
1004
  readonly destSchema: "threadMessageRecipient";
1005
1005
  readonly cardinality: "many";
1006
1006
  }];
1007
1007
  thread: [{
1008
- readonly sourceField: string[];
1009
- readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1008
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1009
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1010
1010
  readonly destSchema: "thread";
1011
1011
  readonly cardinality: "one";
1012
1012
  }];
1013
1013
  };
1014
1014
  readonly threadMessageRecipient: {
1015
1015
  message: [{
1016
- readonly sourceField: string[];
1017
- readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
1016
+ readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
1017
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1018
1018
  readonly destSchema: "threadMessage";
1019
1019
  readonly cardinality: "one";
1020
1020
  }];
1021
1021
  };
1022
1022
  readonly threadMessageAttachment: {
1023
1023
  message: [{
1024
- readonly sourceField: string[];
1025
- readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
1024
+ readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
1025
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1026
1026
  readonly destSchema: "threadMessage";
1027
1027
  readonly cardinality: "one";
1028
1028
  }];
1029
1029
  };
1030
1030
  };
1031
1031
  enableLegacyQueries: boolean | undefined;
1032
- enableLegacyMutators: false;
1033
- }, "contact", {
1032
+ enableLegacyMutators: boolean | undefined;
1033
+ }, {
1034
1034
  readonly emailAddress: string;
1035
1035
  readonly id: string;
1036
1036
  readonly name: string | null;