@marcoappio/marco-config 2.0.458 → 2.0.460

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 (32) hide show
  1. package/dist/types/index.d.ts +0 -1
  2. package/dist/types/index.d.ts.map +1 -1
  3. package/dist/types/index.js +0 -1
  4. package/dist/zero/index.d.ts +82 -72
  5. package/dist/zero/index.d.ts.map +1 -1
  6. package/dist/zero/mutatorSchemas/index.d.ts +0 -6
  7. package/dist/zero/mutatorSchemas/index.d.ts.map +1 -1
  8. package/dist/zero/mutatorSchemas/thread.d.ts +0 -6
  9. package/dist/zero/mutatorSchemas/thread.d.ts.map +1 -1
  10. package/dist/zero/mutatorSchemas/thread.js +0 -6
  11. package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
  12. package/dist/zero/mutators/threadMutators/threadMutators.js +0 -13
  13. package/dist/zero/mutators/threadMutators/threadMutators.test.js +0 -33
  14. package/dist/zero/queries/getAccounts.d.ts +13 -10
  15. package/dist/zero/queries/getAccounts.d.ts.map +1 -1
  16. package/dist/zero/queries/getContacts.d.ts +12 -10
  17. package/dist/zero/queries/getContacts.d.ts.map +1 -1
  18. package/dist/zero/queries/getDrafts.d.ts +12 -10
  19. package/dist/zero/queries/getDrafts.d.ts.map +1 -1
  20. package/dist/zero/queries/getThreads.d.ts +13 -11
  21. package/dist/zero/queries/getThreads.d.ts.map +1 -1
  22. package/dist/zero/queries/getUser.d.ts +13 -10
  23. package/dist/zero/queries/getUser.d.ts.map +1 -1
  24. package/dist/zero/queries/index.d.ts +12 -10
  25. package/dist/zero/queries/index.d.ts.map +1 -1
  26. package/dist/zero/schema.d.ts +19 -15
  27. package/dist/zero/schema.d.ts.map +1 -1
  28. package/dist/zero/schema.js +1 -1
  29. package/package.json +1 -1
  30. package/dist/types/MessageAttachmentStatus.d.ts +0 -3
  31. package/dist/types/MessageAttachmentStatus.d.ts.map +0 -1
  32. package/dist/types/MessageAttachmentStatus.js +0 -6
@@ -165,39 +165,6 @@ describe('threadMutators', () => {
165
165
  });
166
166
  });
167
167
  });
168
- describe('requestAttachmentDownload', () => {
169
- it('requests attachment download', async () => {
170
- const attachmentRecord = {
171
- id: 'test-attachment-id-1',
172
- status: 'NOT_DOWNLOADED',
173
- };
174
- const run = mock(async () => attachmentRecord);
175
- const one = mock(() => ({ run }));
176
- const where = mock(() => ({ one }));
177
- const attachmentUpdate = mock(async () => { });
178
- const transaction = {
179
- mutate: {
180
- threadMessageAttachment: {
181
- update: attachmentUpdate,
182
- },
183
- },
184
- query: {
185
- threadMessageAttachment: {
186
- where,
187
- },
188
- },
189
- };
190
- const mutators = createMutators();
191
- await mutators.thread.requestAttachmentDownload(transaction, {
192
- attachmentIds: ['test-attachment-id-1'],
193
- threadIds: ['test-thread-id-1'],
194
- });
195
- expect(attachmentUpdate).toHaveBeenCalledWith({
196
- id: 'test-attachment-id-1',
197
- status: 'DOWNLOAD_REQUESTED',
198
- });
199
- });
200
- });
201
168
  describe('setArchive', () => {
202
169
  it('archives thread', async () => {
203
170
  const threadRecord = {
@@ -244,6 +244,13 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
244
244
  } & {
245
245
  serverName: string;
246
246
  };
247
+ readonly unreadCount: {
248
+ type: "number";
249
+ optional: false;
250
+ customType: number;
251
+ } & {
252
+ serverName: string;
253
+ };
247
254
  };
248
255
  primaryKey: readonly [string, ...string[]];
249
256
  } & {
@@ -676,11 +683,6 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
676
683
  optional: false;
677
684
  customType: number;
678
685
  };
679
- readonly status: {
680
- type: "string";
681
- optional: false;
682
- customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
683
- };
684
686
  readonly threadMessageId: {
685
687
  type: "string";
686
688
  optional: false;
@@ -758,7 +760,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
758
760
  }];
759
761
  labels: [{
760
762
  readonly sourceField: string[];
761
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
763
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
762
764
  readonly destSchema: "accountLabel";
763
765
  readonly cardinality: "many";
764
766
  }];
@@ -864,7 +866,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
864
866
  readonly cardinality: "many";
865
867
  }, {
866
868
  readonly sourceField: string[];
867
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
869
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
868
870
  readonly destSchema: "accountLabel";
869
871
  readonly cardinality: "many";
870
872
  }];
@@ -884,7 +886,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
884
886
  readonly threadLabel: {
885
887
  label: [{
886
888
  readonly sourceField: string[];
887
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
889
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
888
890
  readonly destSchema: "accountLabel";
889
891
  readonly cardinality: "one";
890
892
  }];
@@ -904,7 +906,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
904
906
  readonly threadMessage: {
905
907
  attachments: [{
906
908
  readonly sourceField: string[];
907
- readonly destField: ("status" | "id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
909
+ readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
908
910
  readonly destSchema: "threadMessageAttachment";
909
911
  readonly cardinality: "many";
910
912
  }];
@@ -915,7 +917,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
915
917
  readonly cardinality: "many";
916
918
  }, {
917
919
  readonly sourceField: string[];
918
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
920
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
919
921
  readonly destSchema: "accountLabel";
920
922
  readonly cardinality: "many";
921
923
  }];
@@ -983,6 +985,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
983
985
  readonly path: string;
984
986
  readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
985
987
  readonly uidValidity: number;
988
+ readonly unreadCount: number;
986
989
  }[];
987
990
  }>>;
988
991
  //# sourceMappingURL=getAccounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAccounts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEvB,CAAA"}
@@ -253,6 +253,13 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
253
253
  } & {
254
254
  serverName: string;
255
255
  };
256
+ readonly unreadCount: {
257
+ type: "number";
258
+ optional: false;
259
+ customType: number;
260
+ } & {
261
+ serverName: string;
262
+ };
256
263
  };
257
264
  primaryKey: readonly [string, ...string[]];
258
265
  } & {
@@ -685,11 +692,6 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
685
692
  optional: false;
686
693
  customType: number;
687
694
  };
688
- readonly status: {
689
- type: "string";
690
- optional: false;
691
- customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
692
- };
693
695
  readonly threadMessageId: {
694
696
  type: "string";
695
697
  optional: false;
@@ -767,7 +769,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
767
769
  }];
768
770
  labels: [{
769
771
  readonly sourceField: string[];
770
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
772
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
771
773
  readonly destSchema: "accountLabel";
772
774
  readonly cardinality: "many";
773
775
  }];
@@ -873,7 +875,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
873
875
  readonly cardinality: "many";
874
876
  }, {
875
877
  readonly sourceField: string[];
876
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
878
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
877
879
  readonly destSchema: "accountLabel";
878
880
  readonly cardinality: "many";
879
881
  }];
@@ -893,7 +895,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
893
895
  readonly threadLabel: {
894
896
  label: [{
895
897
  readonly sourceField: string[];
896
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
898
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
897
899
  readonly destSchema: "accountLabel";
898
900
  readonly cardinality: "one";
899
901
  }];
@@ -913,7 +915,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
913
915
  readonly threadMessage: {
914
916
  attachments: [{
915
917
  readonly sourceField: string[];
916
- readonly destField: ("status" | "id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
918
+ readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
917
919
  readonly destSchema: "threadMessageAttachment";
918
920
  readonly cardinality: "many";
919
921
  }];
@@ -924,7 +926,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
924
926
  readonly cardinality: "many";
925
927
  }, {
926
928
  readonly sourceField: string[];
927
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
929
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
928
930
  readonly destSchema: "accountLabel";
929
931
  readon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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BvB,CAAA"}
@@ -250,6 +250,13 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
250
250
  } & {
251
251
  serverName: string;
252
252
  };
253
+ readonly unreadCount: {
254
+ type: "number";
255
+ optional: false;
256
+ customType: number;
257
+ } & {
258
+ serverName: string;
259
+ };
253
260
  };
254
261
  primaryKey: readonly [string, ...string[]];
255
262
  } & {
@@ -682,11 +689,6 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
682
689
  optional: false;
683
690
  customType: number;
684
691
  };
685
- readonly status: {
686
- type: "string";
687
- optional: false;
688
- customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
689
- };
690
692
  readonly threadMessageId: {
691
693
  type: "string";
692
694
  optional: false;
@@ -764,7 +766,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
764
766
  }];
765
767
  labels: [{
766
768
  readonly sourceField: string[];
767
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
769
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
768
770
  readonly destSchema: "accountLabel";
769
771
  readonly cardinality: "many";
770
772
  }];
@@ -870,7 +872,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
870
872
  readonly cardinality: "many";
871
873
  }, {
872
874
  readonly sourceField: string[];
873
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
875
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
874
876
  readonly destSchema: "accountLabel";
875
877
  readonly cardinality: "many";
876
878
  }];
@@ -890,7 +892,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
890
892
  readonly threadLabel: {
891
893
  label: [{
892
894
  readonly sourceField: string[];
893
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
895
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
894
896
  readonly destSchema: "accountLabel";
895
897
  readonly cardinality: "one";
896
898
  }];
@@ -910,7 +912,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
910
912
  readonly threadMessage: {
911
913
  attachments: [{
912
914
  readonly sourceField: string[];
913
- readonly destField: ("status" | "id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
915
+ readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
914
916
  readonly destSchema: "threadMessageAttachment";
915
917
  readonly cardinality: "many";
916
918
  }];
@@ -921,7 +923,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
921
923
  readonly cardinality: "many";
922
924
  }, {
923
925
  readonly sourceField: string[];
924
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
926
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
925
927
  readonly destSchema: "accountLabel";
926
928
  readonly cardinality: "many";
927
929
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"getDrafts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getDrafts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAMpD,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;CACzC,CAAA;AAWD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBrB,CAAA"}
@@ -256,6 +256,13 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
256
256
  } & {
257
257
  serverName: string;
258
258
  };
259
+ readonly unreadCount: {
260
+ type: "number";
261
+ optional: false;
262
+ customType: number;
263
+ } & {
264
+ serverName: string;
265
+ };
259
266
  };
260
267
  primaryKey: readonly [string, ...string[]];
261
268
  } & {
@@ -688,11 +695,6 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
688
695
  optional: false;
689
696
  customType: number;
690
697
  };
691
- readonly status: {
692
- type: "string";
693
- optional: false;
694
- customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
695
- };
696
698
  readonly threadMessageId: {
697
699
  type: "string";
698
700
  optional: false;
@@ -770,7 +772,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
770
772
  }];
771
773
  labels: [{
772
774
  readonly sourceField: string[];
773
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
775
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
774
776
  readonly destSchema: "accountLabel";
775
777
  readonly cardinality: "many";
776
778
  }];
@@ -876,7 +878,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
876
878
  readonly cardinality: "many";
877
879
  }, {
878
880
  readonly sourceField: string[];
879
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
881
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
880
882
  readonly destSchema: "accountLabel";
881
883
  readonly cardinality: "many";
882
884
  }];
@@ -896,7 +898,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
896
898
  readonly threadLabel: {
897
899
  label: [{
898
900
  readonly sourceField: string[];
899
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
901
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
900
902
  readonly destSchema: "accountLabel";
901
903
  readonly cardinality: "one";
902
904
  }];
@@ -916,7 +918,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
916
918
  readonly threadMessage: {
917
919
  attachments: [{
918
920
  readonly sourceField: string[];
919
- readonly destField: ("status" | "id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
921
+ readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
920
922
  readonly destSchema: "threadMessageAttachment";
921
923
  readonly cardinality: "many";
922
924
  }];
@@ -927,7 +929,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
927
929
  readonly cardinality: "many";
928
930
  }, {
929
931
  readonly sourceField: string[];
930
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
932
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
931
933
  readonly destSchema: "accountLabel";
932
934
  readonly cardinality: "many";
933
935
  }];
@@ -995,7 +997,6 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
995
997
  readonly id: string;
996
998
  readonly mimeType: string;
997
999
  readonly size: number;
998
- readonly status: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
999
1000
  readonly threadMessageId: string;
1000
1001
  }[];
1001
1002
  })[];
@@ -1006,6 +1007,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
1006
1007
  readonly path: string;
1007
1008
  readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
1008
1009
  readonly uidValidity: number;
1010
+ readonly unreadCount: number;
1009
1011
  }[];
1010
1012
  }>>;
1011
1013
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;QACrB,YAAY,CAAC,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDtB,CAAA"}
@@ -244,6 +244,13 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
244
244
  } & {
245
245
  serverName: string;
246
246
  };
247
+ readonly unreadCount: {
248
+ type: "number";
249
+ optional: false;
250
+ customType: number;
251
+ } & {
252
+ serverName: string;
253
+ };
247
254
  };
248
255
  primaryKey: readonly [string, ...string[]];
249
256
  } & {
@@ -676,11 +683,6 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
676
683
  optional: false;
677
684
  customType: number;
678
685
  };
679
- readonly status: {
680
- type: "string";
681
- optional: false;
682
- customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
683
- };
684
686
  readonly threadMessageId: {
685
687
  type: "string";
686
688
  optional: false;
@@ -758,7 +760,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
758
760
  }];
759
761
  labels: [{
760
762
  readonly sourceField: string[];
761
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
763
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
762
764
  readonly destSchema: "accountLabel";
763
765
  readonly cardinality: "many";
764
766
  }];
@@ -864,7 +866,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
864
866
  readonly cardinality: "many";
865
867
  }, {
866
868
  readonly sourceField: string[];
867
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
869
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
868
870
  readonly destSchema: "accountLabel";
869
871
  readonly cardinality: "many";
870
872
  }];
@@ -884,7 +886,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
884
886
  readonly threadLabel: {
885
887
  label: [{
886
888
  readonly sourceField: string[];
887
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
889
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
888
890
  readonly destSchema: "accountLabel";
889
891
  readonly cardinality: "one";
890
892
  }];
@@ -904,7 +906,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
904
906
  readonly threadMessage: {
905
907
  attachments: [{
906
908
  readonly sourceField: string[];
907
- readonly destField: ("status" | "id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
909
+ readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
908
910
  readonly destSchema: "threadMessageAttachment";
909
911
  readonly cardinality: "many";
910
912
  }];
@@ -915,7 +917,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
915
917
  readonly cardinality: "many";
916
918
  }, {
917
919
  readonly sourceField: string[];
918
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
920
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
919
921
  readonly destSchema: "accountLabel";
920
922
  readonly cardinality: "many";
921
923
  }];
@@ -989,6 +991,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
989
991
  readonly path: string;
990
992
  readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
991
993
  readonly uidValidity: number;
994
+ readonly unreadCount: number;
992
995
  }[];
993
996
  })[];
994
997
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getUser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMnB,CAAA"}
@@ -243,6 +243,13 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
243
243
  } & {
244
244
  serverName: string;
245
245
  };
246
+ readonly unreadCount: {
247
+ type: "number";
248
+ optional: false;
249
+ customType: number;
250
+ } & {
251
+ serverName: string;
252
+ };
246
253
  };
247
254
  primaryKey: readonly [string, ...string[]];
248
255
  } & {
@@ -675,11 +682,6 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
675
682
  optional: false;
676
683
  customType: number;
677
684
  };
678
- readonly status: {
679
- type: "string";
680
- optional: false;
681
- customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
682
- };
683
685
  readonly threadMessageId: {
684
686
  type: "string";
685
687
  optional: false;
@@ -757,7 +759,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
757
759
  }];
758
760
  labels: [{
759
761
  readonly sourceField: string[];
760
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
762
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
761
763
  readonly destSchema: "accountLabel";
762
764
  readonly cardinality: "many";
763
765
  }];
@@ -863,7 +865,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
863
865
  readonly cardinality: "many";
864
866
  }, {
865
867
  readonly sourceField: string[];
866
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
868
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
867
869
  readonly destSchema: "accountLabel";
868
870
  readonly cardinality: "many";
869
871
  }];
@@ -883,7 +885,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
883
885
  readonly threadLabel: {
884
886
  label: [{
885
887
  readonly sourceField: string[];
886
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
888
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
887
889
  readonly destSchema: "accountLabel";
888
890
  readonly cardinality: "one";
889
891
  }];
@@ -903,7 +905,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
903
905
  readonly threadMessage: {
904
906
  attachments: [{
905
907
  readonly sourceField: string[];
906
- readonly destField: ("status" | "id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
908
+ readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
907
909
  readonly destSchema: "threadMessageAttachment";
908
910
  readonly cardinality: "many";
909
911
  }];
@@ -914,7 +916,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
914
916
  readonly cardinality: "many";
915
917
  }, {
916
918
  readonly sourceField: string[];
917
- readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
919
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
918
920
  readonly destSchema: "accountLabel";
919
921
  readonly cardinality: "many";
920
922
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/index.ts"],"names":[],"mapp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