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