@marcoappio/marco-config 2.0.446 → 2.0.448

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.
@@ -12,6 +12,7 @@ describe('threadMutators', () => {
12
12
  id: 'test-label-id-1',
13
13
  path: 'Work',
14
14
  };
15
+ const messageRecords = [{ id: 'test-message-id-1' }, { id: 'test-message-id-2' }];
15
16
  const runThread = mock(async () => threadRecord);
16
17
  const oneThread = mock(() => ({ run: runThread }));
17
18
  const whereThread = mock(() => ({ one: oneThread }));
@@ -19,6 +20,8 @@ describe('threadMutators', () => {
19
20
  const oneLabel = mock(() => ({ run: runLabel }));
20
21
  const whereLabelPath = mock(() => ({ one: oneLabel }));
21
22
  const whereLabelAccount = mock(() => ({ where: whereLabelPath }));
23
+ const runMessages = mock(async () => messageRecords);
24
+ const whereMessages = mock(() => ({ run: runMessages }));
22
25
  const runExisting = mock(async () => null);
23
26
  const oneExisting = mock(() => ({ run: runExisting }));
24
27
  const whereLabelId = mock(() => ({ one: oneExisting }));
@@ -41,6 +44,9 @@ describe('threadMutators', () => {
41
44
  threadLabel: {
42
45
  where: whereThreadLabel,
43
46
  },
47
+ threadMessage: {
48
+ where: whereMessages,
49
+ },
44
50
  },
45
51
  };
46
52
  const mutators = createMutators();
@@ -48,9 +54,16 @@ describe('threadMutators', () => {
48
54
  labelPath: 'Work',
49
55
  threadIds: ['test-thread-id-1'],
50
56
  });
57
+ expect(threadLabelInsert).toHaveBeenCalledTimes(2);
58
+ expect(threadLabelInsert).toHaveBeenCalledWith({
59
+ labelId: 'test-label-id-1',
60
+ threadId: 'test-thread-id-1',
61
+ threadMessageId: 'test-message-id-1',
62
+ });
51
63
  expect(threadLabelInsert).toHaveBeenCalledWith({
52
64
  labelId: 'test-label-id-1',
53
65
  threadId: 'test-thread-id-1',
66
+ threadMessageId: 'test-message-id-2',
54
67
  });
55
68
  });
56
69
  });
@@ -89,10 +102,18 @@ describe('threadMutators', () => {
89
102
  id: 'test-label-id-1',
90
103
  path: 'Work',
91
104
  };
92
- const existingRecord = {
93
- labelId: 'test-label-id-1',
94
- threadId: 'test-thread-id-1',
95
- };
105
+ const existingRecords = [
106
+ {
107
+ labelId: 'test-label-id-1',
108
+ threadId: 'test-thread-id-1',
109
+ threadMessageId: 'test-message-id-1',
110
+ },
111
+ {
112
+ labelId: 'test-label-id-1',
113
+ threadId: 'test-thread-id-1',
114
+ threadMessageId: 'test-message-id-2',
115
+ },
116
+ ];
96
117
  const runThread = mock(async () => threadRecord);
97
118
  const oneThread = mock(() => ({ run: runThread }));
98
119
  const whereThread = mock(() => ({ one: oneThread }));
@@ -100,9 +121,8 @@ describe('threadMutators', () => {
100
121
  const oneLabel = mock(() => ({ run: runLabel }));
101
122
  const whereLabelPath = mock(() => ({ one: oneLabel }));
102
123
  const whereLabelAccount = mock(() => ({ where: whereLabelPath }));
103
- const runExisting = mock(async () => existingRecord);
104
- const oneExisting = mock(() => ({ run: runExisting }));
105
- const whereLabelId = mock(() => ({ one: oneExisting }));
124
+ const runExisting = mock(async () => existingRecords);
125
+ const whereLabelId = mock(() => ({ run: runExisting }));
106
126
  const whereThreadLabel = mock(() => ({ where: whereLabelId }));
107
127
  const threadLabelDelete = mock(async () => { });
108
128
  const transaction = {
@@ -128,9 +148,14 @@ describe('threadMutators', () => {
128
148
  labelPath: 'Work',
129
149
  threadIds: ['test-thread-id-1'],
130
150
  });
151
+ expect(threadLabelDelete).toHaveBeenCalledTimes(2);
131
152
  expect(threadLabelDelete).toHaveBeenCalledWith({
132
153
  labelId: 'test-label-id-1',
133
- threadId: 'test-thread-id-1',
154
+ threadMessageId: 'test-message-id-1',
155
+ });
156
+ expect(threadLabelDelete).toHaveBeenCalledWith({
157
+ labelId: 'test-label-id-1',
158
+ threadMessageId: 'test-message-id-2',
134
159
  });
135
160
  });
136
161
  });
@@ -178,6 +203,7 @@ describe('threadMutators', () => {
178
203
  id: 'test-archive-label-id',
179
204
  specialUse: 'ARCHIVE',
180
205
  };
206
+ const messageRecords = [{ id: 'test-message-id-1' }];
181
207
  const runThread = mock(async () => threadRecord);
182
208
  const oneThread = mock(() => ({ run: runThread }));
183
209
  const whereThread = mock(() => ({ one: oneThread }));
@@ -185,8 +211,12 @@ describe('threadMutators', () => {
185
211
  const oneLabel = mock(() => ({ run: runLabel }));
186
212
  const whereSpecialUse = mock(() => ({ one: oneLabel }));
187
213
  const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
188
- const runAllThreadLabels = mock(async () => [{ labelId: 'test-inbox-label-id', threadId: 'test-thread-id-1' }]);
214
+ const runAllThreadLabels = mock(async () => [
215
+ { labelId: 'test-inbox-label-id', threadId: 'test-thread-id-1', threadMessageId: 'test-message-id-1' },
216
+ ]);
189
217
  const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
218
+ const runMessages = mock(async () => messageRecords);
219
+ const whereMessages = mock(() => ({ run: runMessages }));
190
220
  const threadLabelDelete = mock(async () => { });
191
221
  const threadLabelInsert = mock(async () => { });
192
222
  const transaction = {
@@ -206,6 +236,9 @@ describe('threadMutators', () => {
206
236
  threadLabel: {
207
237
  where: whereThreadLabel,
208
238
  },
239
+ threadMessage: {
240
+ where: whereMessages,
241
+ },
209
242
  },
210
243
  };
211
244
  const mutators = createMutators();
@@ -214,11 +247,12 @@ describe('threadMutators', () => {
214
247
  });
215
248
  expect(threadLabelDelete).toHaveBeenCalledWith({
216
249
  labelId: 'test-inbox-label-id',
217
- threadId: 'test-thread-id-1',
250
+ threadMessageId: 'test-message-id-1',
218
251
  });
219
252
  expect(threadLabelInsert).toHaveBeenCalledWith({
220
253
  labelId: 'test-archive-label-id',
221
254
  threadId: 'test-thread-id-1',
255
+ threadMessageId: 'test-message-id-1',
222
256
  });
223
257
  });
224
258
  });
@@ -255,6 +289,7 @@ describe('threadMutators', () => {
255
289
  id: 'test-inbox-label-id',
256
290
  specialUse: 'INBOX',
257
291
  };
292
+ const messageRecords = [{ id: 'test-message-id-1' }];
258
293
  const runThread = mock(async () => threadRecord);
259
294
  const oneThread = mock(() => ({ run: runThread }));
260
295
  const whereThread = mock(() => ({ one: oneThread }));
@@ -262,8 +297,12 @@ describe('threadMutators', () => {
262
297
  const oneLabel = mock(() => ({ run: runLabel }));
263
298
  const whereSpecialUse = mock(() => ({ one: oneLabel }));
264
299
  const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
265
- const runAllThreadLabels = mock(async () => [{ labelId: 'test-archive-label-id', threadId: 'test-thread-id-1' }]);
300
+ const runAllThreadLabels = mock(async () => [
301
+ { labelId: 'test-archive-label-id', threadId: 'test-thread-id-1', threadMessageId: 'test-message-id-1' },
302
+ ]);
266
303
  const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
304
+ const runMessages = mock(async () => messageRecords);
305
+ const whereMessages = mock(() => ({ run: runMessages }));
267
306
  const threadLabelDelete = mock(async () => { });
268
307
  const threadLabelInsert = mock(async () => { });
269
308
  const transaction = {
@@ -283,6 +322,9 @@ describe('threadMutators', () => {
283
322
  threadLabel: {
284
323
  where: whereThreadLabel,
285
324
  },
325
+ threadMessage: {
326
+ where: whereMessages,
327
+ },
286
328
  },
287
329
  };
288
330
  const mutators = createMutators();
@@ -291,11 +333,12 @@ describe('threadMutators', () => {
291
333
  });
292
334
  expect(threadLabelDelete).toHaveBeenCalledWith({
293
335
  labelId: 'test-archive-label-id',
294
- threadId: 'test-thread-id-1',
336
+ threadMessageId: 'test-message-id-1',
295
337
  });
296
338
  expect(threadLabelInsert).toHaveBeenCalledWith({
297
339
  labelId: 'test-inbox-label-id',
298
340
  threadId: 'test-thread-id-1',
341
+ threadMessageId: 'test-message-id-1',
299
342
  });
300
343
  });
301
344
  });
@@ -337,6 +380,7 @@ describe('threadMutators', () => {
337
380
  id: 'test-spam-label-id',
338
381
  specialUse: 'SPAM',
339
382
  };
383
+ const messageRecords = [{ id: 'test-message-id-1' }];
340
384
  const runThread = mock(async () => threadRecord);
341
385
  const oneThread = mock(() => ({ run: runThread }));
342
386
  const whereThread = mock(() => ({ one: oneThread }));
@@ -346,6 +390,8 @@ describe('threadMutators', () => {
346
390
  const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
347
391
  const runAllThreadLabels = mock(async () => []);
348
392
  const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
393
+ const runMessages = mock(async () => messageRecords);
394
+ const whereMessages = mock(() => ({ run: runMessages }));
349
395
  const threadLabelInsert = mock(async () => { });
350
396
  const transaction = {
351
397
  mutate: {
@@ -363,6 +409,9 @@ describe('threadMutators', () => {
363
409
  threadLabel: {
364
410
  where: whereThreadLabel,
365
411
  },
412
+ threadMessage: {
413
+ where: whereMessages,
414
+ },
366
415
  },
367
416
  };
368
417
  const mutators = createMutators();
@@ -372,6 +421,7 @@ describe('threadMutators', () => {
372
421
  expect(threadLabelInsert).toHaveBeenCalledWith({
373
422
  labelId: 'test-spam-label-id',
374
423
  threadId: 'test-thread-id-1',
424
+ threadMessageId: 'test-message-id-1',
375
425
  });
376
426
  });
377
427
  });
@@ -386,6 +436,7 @@ describe('threadMutators', () => {
386
436
  id: 'test-trash-label-id',
387
437
  specialUse: 'TRASH',
388
438
  };
439
+ const messageRecords = [{ id: 'test-message-id-1' }];
389
440
  const runThread = mock(async () => threadRecord);
390
441
  const oneThread = mock(() => ({ run: runThread }));
391
442
  const whereThread = mock(() => ({ one: oneThread }));
@@ -395,6 +446,8 @@ describe('threadMutators', () => {
395
446
  const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
396
447
  const runAllThreadLabels = mock(async () => []);
397
448
  const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
449
+ const runMessages = mock(async () => messageRecords);
450
+ const whereMessages = mock(() => ({ run: runMessages }));
398
451
  const threadLabelInsert = mock(async () => { });
399
452
  const transaction = {
400
453
  mutate: {
@@ -412,6 +465,9 @@ describe('threadMutators', () => {
412
465
  threadLabel: {
413
466
  where: whereThreadLabel,
414
467
  },
468
+ threadMessage: {
469
+ where: whereMessages,
470
+ },
415
471
  },
416
472
  };
417
473
  const mutators = createMutators();
@@ -421,6 +477,7 @@ describe('threadMutators', () => {
421
477
  expect(threadLabelInsert).toHaveBeenCalledWith({
422
478
  labelId: 'test-trash-label-id',
423
479
  threadId: 'test-thread-id-1',
480
+ threadMessageId: 'test-message-id-1',
424
481
  });
425
482
  });
426
483
  });
@@ -511,10 +511,17 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
511
511
  } & {
512
512
  serverName: string;
513
513
  };
514
+ readonly threadMessageId: {
515
+ type: "string";
516
+ optional: false;
517
+ customType: string;
518
+ } & {
519
+ serverName: string;
520
+ };
514
521
  };
515
522
  primaryKey: readonly [string, ...string[]];
516
523
  } & {
517
- primaryKey: ["threadId", "labelId"];
524
+ primaryKey: ["threadMessageId", "labelId"];
518
525
  };
519
526
  readonly threadMessage: {
520
527
  name: "threadMessage";
@@ -763,7 +770,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
763
770
  }];
764
771
  threads: [{
765
772
  readonly sourceField: string[];
766
- readonly destField: ("labelId" | "threadId")[];
773
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
767
774
  readonly destSchema: "threadLabel";
768
775
  readonly cardinality: "many";
769
776
  }, {
@@ -824,7 +831,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
824
831
  }];
825
832
  labels: [{
826
833
  readonly sourceField: string[];
827
- readonly destField: ("labelId" | "threadId")[];
834
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
828
835
  readonly destSchema: "threadLabel";
829
836
  readonly cardinality: "many";
830
837
  }, {
@@ -853,6 +860,12 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
853
860
  readonly destSchema: "accountLabel";
854
861
  readonly cardinality: "one";
855
862
  }];
863
+ message: [{
864
+ readonly sourceField: string[];
865
+ readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
866
+ readonly destSchema: "threadMessage";
867
+ readonly cardinality: "one";
868
+ }];
856
869
  thread: [{
857
870
  readonly sourceField: string[];
858
871
  readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
@@ -867,6 +880,17 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
867
880
  readonly destSchema: "threadMessageAttachment";
868
881
  readonly cardinality: "many";
869
882
  }];
883
+ labels: [{
884
+ readonly sourceField: string[];
885
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
886
+ readonly destSchema: "threadLabel";
887
+ readonly cardinality: "many";
888
+ }, {
889
+ readonly sourceField: string[];
890
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
891
+ readonly destSchema: "accountLabel";
892
+ readonly cardinality: "many";
893
+ }];
870
894
  recipients: [{
871
895
  readonly sourceField: string[];
872
896
  readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
@@ -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"}
@@ -520,10 +520,17 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
520
520
  } & {
521
521
  serverName: string;
522
522
  };
523
+ readonly threadMessageId: {
524
+ type: "string";
525
+ optional: false;
526
+ customType: string;
527
+ } & {
528
+ serverName: string;
529
+ };
523
530
  };
524
531
  primaryKey: readonly [string, ...string[]];
525
532
  } & {
526
- primaryKey: ["threadId", "labelId"];
533
+ primaryKey: ["threadMessageId", "labelId"];
527
534
  };
528
535
  readonly threadMessage: {
529
536
  name: "threadMessage";
@@ -772,7 +779,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
772
779
  }];
773
780
  threads: [{
774
781
  readonly sourceField: string[];
775
- readonly destField: ("labelId" | "threadId")[];
782
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
776
783
  readonly destSchema: "threadLabel";
777
784
  readonly cardinality: "many";
778
785
  }, {
@@ -833,7 +840,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
833
840
  }];
834
841
  labels: [{
835
842
  readonly sourceField: string[];
836
- readonly destField: ("labelId" | "threadId")[];
843
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
837
844
  readonly destSchema: "threadLabel";
838
845
  readonly cardinality: "many";
839
846
  }, {
@@ -862,6 +869,12 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
862
869
  readonly destSchema: "accountLabel";
863
870
  readonly cardinality: "one";
864
871
  }];
872
+ message: [{
873
+ readonly sourceField: string[];
874
+ readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
875
+ readonly destSchema: "threadMessage";
876
+ readonly cardinality: "one";
877
+ }];
865
878
  thread: [{
866
879
  readonly sourceField: string[];
867
880
  readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
@@ -876,6 +889,17 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
876
889
  readonly destSchema: "threadMessageAttachment";
877
890
  readonly cardinality: "many";
878
891
  }];
892
+ labels: [{
893
+ readonly sourceField: string[];
894
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
895
+ readonly destSchema: "threadLabel";
896
+ readonly cardinality: "many";
897
+ }, {
898
+ readonly sourceField: string[];
899
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
900
+ readonly destSchema: "accountLabel";
901
+ readonly cardinality: "many";
902
+ }];
879
903
  recipients: [{
880
904
  readonly sourceField: string[];
881
905
  readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
@@ -1 +1 @@
1
- {"version":3,"file":"getContacts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getContacts.ts"],"names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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BvB,CAAA"}
@@ -517,10 +517,17 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
517
517
  } & {
518
518
  serverName: string;
519
519
  };
520
+ readonly threadMessageId: {
521
+ type: "string";
522
+ optional: false;
523
+ customType: string;
524
+ } & {
525
+ serverName: string;
526
+ };
520
527
  };
521
528
  primaryKey: readonly [string, ...string[]];
522
529
  } & {
523
- primaryKey: ["threadId", "labelId"];
530
+ primaryKey: ["threadMessageId", "labelId"];
524
531
  };
525
532
  readonly threadMessage: {
526
533
  name: "threadMessage";
@@ -769,7 +776,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
769
776
  }];
770
777
  threads: [{
771
778
  readonly sourceField: string[];
772
- readonly destField: ("labelId" | "threadId")[];
779
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
773
780
  readonly destSchema: "threadLabel";
774
781
  readonly cardinality: "many";
775
782
  }, {
@@ -830,7 +837,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
830
837
  }];
831
838
  labels: [{
832
839
  readonly sourceField: string[];
833
- readonly destField: ("labelId" | "threadId")[];
840
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
834
841
  readonly destSchema: "threadLabel";
835
842
  readonly cardinality: "many";
836
843
  }, {
@@ -859,6 +866,12 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
859
866
  readonly destSchema: "accountLabel";
860
867
  readonly cardinality: "one";
861
868
  }];
869
+ message: [{
870
+ readonly sourceField: string[];
871
+ readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
872
+ readonly destSchema: "threadMessage";
873
+ readonly cardinality: "one";
874
+ }];
862
875
  thread: [{
863
876
  readonly sourceField: string[];
864
877
  readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
@@ -873,6 +886,17 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
873
886
  readonly destSchema: "threadMessageAttachment";
874
887
  readonly cardinality: "many";
875
888
  }];
889
+ labels: [{
890
+ readonly sourceField: string[];
891
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
892
+ readonly destSchema: "threadLabel";
893
+ readonly cardinality: "many";
894
+ }, {
895
+ readonly sourceField: string[];
896
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
897
+ readonly destSchema: "accountLabel";
898
+ readonly cardinality: "many";
899
+ }];
876
900
  recipients: [{
877
901
  readonly sourceField: string[];
878
902
  readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
@@ -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,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBrB,CAAA"}
@@ -523,10 +523,17 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
523
523
  } & {
524
524
  serverName: string;
525
525
  };
526
+ readonly threadMessageId: {
527
+ type: "string";
528
+ optional: false;
529
+ customType: string;
530
+ } & {
531
+ serverName: string;
532
+ };
526
533
  };
527
534
  primaryKey: readonly [string, ...string[]];
528
535
  } & {
529
- primaryKey: ["threadId", "labelId"];
536
+ primaryKey: ["threadMessageId", "labelId"];
530
537
  };
531
538
  readonly threadMessage: {
532
539
  name: "threadMessage";
@@ -775,7 +782,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
775
782
  }];
776
783
  threads: [{
777
784
  readonly sourceField: string[];
778
- readonly destField: ("labelId" | "threadId")[];
785
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
779
786
  readonly destSchema: "threadLabel";
780
787
  readonly cardinality: "many";
781
788
  }, {
@@ -836,7 +843,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
836
843
  }];
837
844
  labels: [{
838
845
  readonly sourceField: string[];
839
- readonly destField: ("labelId" | "threadId")[];
846
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
840
847
  readonly destSchema: "threadLabel";
841
848
  readonly cardinality: "many";
842
849
  }, {
@@ -865,6 +872,12 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
865
872
  readonly destSchema: "accountLabel";
866
873
  readonly cardinality: "one";
867
874
  }];
875
+ message: [{
876
+ readonly sourceField: string[];
877
+ readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
878
+ readonly destSchema: "threadMessage";
879
+ readonly cardinality: "one";
880
+ }];
868
881
  thread: [{
869
882
  readonly sourceField: string[];
870
883
  readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
@@ -879,6 +892,17 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
879
892
  readonly destSchema: "threadMessageAttachment";
880
893
  readonly cardinality: "many";
881
894
  }];
895
+ labels: [{
896
+ readonly sourceField: string[];
897
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
898
+ readonly destSchema: "threadLabel";
899
+ readonly cardinality: "many";
900
+ }, {
901
+ readonly sourceField: string[];
902
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
903
+ readonly destSchema: "accountLabel";
904
+ readonly cardinality: "many";
905
+ }];
882
906
  recipients: [{
883
907
  readonly sourceField: string[];
884
908
  readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
@@ -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,EAAE,MAAM,EAAE,CAAA;QACvB,IAAI,CAAC,EAAE,OAAO,CAAA;KACf,CAAA;CACF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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDtB,CAAA"}
@@ -21,7 +21,7 @@ const parseArgs = (args) => {
21
21
  export const getThreads = syncedQueryWithContext('getThreads', parseArgs, ({ userId }, { search, limit, where }) => {
22
22
  let query = z.thread
23
23
  .where('userId', userId)
24
- .related('messages', x => x.related('recipients').related('attachments').orderBy('envelopeDate', 'desc'))
24
+ .related('messages', x => x.related('recipients').related('attachments').orderBy('envelopeDate', 'asc'))
25
25
  .related('labels')
26
26
  .orderBy('latestMessageDate', 'desc');
27
27
  if (where?.id) {
@@ -511,10 +511,17 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
511
511
  } & {
512
512
  serverName: string;
513
513
  };
514
+ readonly threadMessageId: {
515
+ type: "string";
516
+ optional: false;
517
+ customType: string;
518
+ } & {
519
+ serverName: string;
520
+ };
514
521
  };
515
522
  primaryKey: readonly [string, ...string[]];
516
523
  } & {
517
- primaryKey: ["threadId", "labelId"];
524
+ primaryKey: ["threadMessageId", "labelId"];
518
525
  };
519
526
  readonly threadMessage: {
520
527
  name: "threadMessage";
@@ -763,7 +770,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
763
770
  }];
764
771
  threads: [{
765
772
  readonly sourceField: string[];
766
- readonly destField: ("labelId" | "threadId")[];
773
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
767
774
  readonly destSchema: "threadLabel";
768
775
  readonly cardinality: "many";
769
776
  }, {
@@ -824,7 +831,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
824
831
  }];
825
832
  labels: [{
826
833
  readonly sourceField: string[];
827
- readonly destField: ("labelId" | "threadId")[];
834
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
828
835
  readonly destSchema: "threadLabel";
829
836
  readonly cardinality: "many";
830
837
  }, {
@@ -853,6 +860,12 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
853
860
  readonly destSchema: "accountLabel";
854
861
  readonly cardinality: "one";
855
862
  }];
863
+ message: [{
864
+ readonly sourceField: string[];
865
+ readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
866
+ readonly destSchema: "threadMessage";
867
+ readonly cardinality: "one";
868
+ }];
856
869
  thread: [{
857
870
  readonly sourceField: string[];
858
871
  readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
@@ -867,6 +880,17 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
867
880
  readonly destSchema: "threadMessageAttachment";
868
881
  readonly cardinality: "many";
869
882
  }];
883
+ labels: [{
884
+ readonly sourceField: string[];
885
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
886
+ readonly destSchema: "threadLabel";
887
+ readonly cardinality: "many";
888
+ }, {
889
+ readonly sourceField: string[];
890
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
891
+ readonly destSchema: "accountLabel";
892
+ readonly cardinality: "many";
893
+ }];
870
894
  recipients: [{
871
895
  readonly sourceField: string[];
872
896
  readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
@@ -1 +1 @@
1
- {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getUser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,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