@marcoappio/marco-config 2.0.491 → 2.0.493

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