@marcoappio/marco-config 2.0.447 → 2.0.449

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAkB,CAAC,QAAQ,CAAC,CAqJxC,CAAA"}
@@ -21,16 +21,22 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
21
21
  }
22
22
  else {
23
23
  await tx.mutate.threadLabel.delete({
24
+ accountId,
24
25
  labelId: label.labelId,
25
- threadId,
26
+ threadMessageId: label.threadMessageId,
26
27
  });
27
28
  }
28
29
  }
29
30
  if (!hasTarget) {
30
- await tx.mutate.threadLabel.insert({
31
- labelId: targetLabel.id,
32
- threadId,
33
- });
31
+ const messages = await tx.query.threadMessage.where('threadId', threadId).run();
32
+ for (const message of messages) {
33
+ await tx.mutate.threadLabel.insert({
34
+ accountId,
35
+ labelId: targetLabel.id,
36
+ threadId,
37
+ threadMessageId: message.id,
38
+ });
39
+ }
34
40
  }
35
41
  };
36
42
  export const createThreadMutators = (_authData, callbacks) => ({
@@ -48,12 +54,21 @@ export const createThreadMutators = (_authData, callbacks) => ({
48
54
  if (!label) {
49
55
  throw new Error(MutationError.ENTITY_NOT_FOUND);
50
56
  }
51
- const existing = await tx.query.threadLabel.where('threadId', threadId).where('labelId', label.id).one().run();
52
- if (!existing) {
53
- await tx.mutate.threadLabel.insert({
54
- labelId: label.id,
55
- threadId,
56
- });
57
+ const messages = await tx.query.threadMessage.where('threadId', threadId).run();
58
+ for (const message of messages) {
59
+ const existing = await tx.query.threadLabel
60
+ .where('threadMessageId', message.id)
61
+ .where('labelId', label.id)
62
+ .one()
63
+ .run();
64
+ if (!existing) {
65
+ await tx.mutate.threadLabel.insert({
66
+ accountId: thread.accountId,
67
+ labelId: label.id,
68
+ threadId,
69
+ threadMessageId: message.id,
70
+ });
71
+ }
57
72
  }
58
73
  }
59
74
  callbacks?.addLabel?.(args);
@@ -80,14 +95,17 @@ export const createThreadMutators = (_authData, callbacks) => ({
80
95
  if (!label) {
81
96
  throw new Error(MutationError.ENTITY_NOT_FOUND);
82
97
  }
83
- const existing = await tx.query.threadLabel.where('threadId', threadId).where('labelId', label.id).one().run();
84
- if (!existing) {
98
+ const existingLabels = await tx.query.threadLabel.where('threadId', threadId).where('labelId', label.id).run();
99
+ if (existingLabels.length === 0) {
85
100
  throw new Error(MutationError.ENTITY_NOT_FOUND);
86
101
  }
87
- await tx.mutate.threadLabel.delete({
88
- labelId: label.id,
89
- threadId,
90
- });
102
+ for (const existing of existingLabels) {
103
+ await tx.mutate.threadLabel.delete({
104
+ accountId: thread.accountId,
105
+ labelId: label.id,
106
+ threadMessageId: existing.threadMessageId,
107
+ });
108
+ }
91
109
  }
92
110
  callbacks?.removeLabel?.(args);
93
111
  },
@@ -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,18 @@ 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
+ accountId: 'test-account-id-1',
60
+ labelId: 'test-label-id-1',
61
+ threadId: 'test-thread-id-1',
62
+ threadMessageId: 'test-message-id-1',
63
+ });
51
64
  expect(threadLabelInsert).toHaveBeenCalledWith({
65
+ accountId: 'test-account-id-1',
52
66
  labelId: 'test-label-id-1',
53
67
  threadId: 'test-thread-id-1',
68
+ threadMessageId: 'test-message-id-2',
54
69
  });
55
70
  });
56
71
  });
@@ -89,10 +104,18 @@ describe('threadMutators', () => {
89
104
  id: 'test-label-id-1',
90
105
  path: 'Work',
91
106
  };
92
- const existingRecord = {
93
- labelId: 'test-label-id-1',
94
- threadId: 'test-thread-id-1',
95
- };
107
+ const existingRecords = [
108
+ {
109
+ labelId: 'test-label-id-1',
110
+ threadId: 'test-thread-id-1',
111
+ threadMessageId: 'test-message-id-1',
112
+ },
113
+ {
114
+ labelId: 'test-label-id-1',
115
+ threadId: 'test-thread-id-1',
116
+ threadMessageId: 'test-message-id-2',
117
+ },
118
+ ];
96
119
  const runThread = mock(async () => threadRecord);
97
120
  const oneThread = mock(() => ({ run: runThread }));
98
121
  const whereThread = mock(() => ({ one: oneThread }));
@@ -100,9 +123,8 @@ describe('threadMutators', () => {
100
123
  const oneLabel = mock(() => ({ run: runLabel }));
101
124
  const whereLabelPath = mock(() => ({ one: oneLabel }));
102
125
  const whereLabelAccount = mock(() => ({ where: whereLabelPath }));
103
- const runExisting = mock(async () => existingRecord);
104
- const oneExisting = mock(() => ({ run: runExisting }));
105
- const whereLabelId = mock(() => ({ one: oneExisting }));
126
+ const runExisting = mock(async () => existingRecords);
127
+ const whereLabelId = mock(() => ({ run: runExisting }));
106
128
  const whereThreadLabel = mock(() => ({ where: whereLabelId }));
107
129
  const threadLabelDelete = mock(async () => { });
108
130
  const transaction = {
@@ -128,9 +150,16 @@ describe('threadMutators', () => {
128
150
  labelPath: 'Work',
129
151
  threadIds: ['test-thread-id-1'],
130
152
  });
153
+ expect(threadLabelDelete).toHaveBeenCalledTimes(2);
131
154
  expect(threadLabelDelete).toHaveBeenCalledWith({
155
+ accountId: 'test-account-id-1',
132
156
  labelId: 'test-label-id-1',
133
- threadId: 'test-thread-id-1',
157
+ threadMessageId: 'test-message-id-1',
158
+ });
159
+ expect(threadLabelDelete).toHaveBeenCalledWith({
160
+ accountId: 'test-account-id-1',
161
+ labelId: 'test-label-id-1',
162
+ threadMessageId: 'test-message-id-2',
134
163
  });
135
164
  });
136
165
  });
@@ -178,6 +207,7 @@ describe('threadMutators', () => {
178
207
  id: 'test-archive-label-id',
179
208
  specialUse: 'ARCHIVE',
180
209
  };
210
+ const messageRecords = [{ id: 'test-message-id-1' }];
181
211
  const runThread = mock(async () => threadRecord);
182
212
  const oneThread = mock(() => ({ run: runThread }));
183
213
  const whereThread = mock(() => ({ one: oneThread }));
@@ -185,8 +215,12 @@ describe('threadMutators', () => {
185
215
  const oneLabel = mock(() => ({ run: runLabel }));
186
216
  const whereSpecialUse = mock(() => ({ one: oneLabel }));
187
217
  const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
188
- const runAllThreadLabels = mock(async () => [{ labelId: 'test-inbox-label-id', threadId: 'test-thread-id-1' }]);
218
+ const runAllThreadLabels = mock(async () => [
219
+ { labelId: 'test-inbox-label-id', threadId: 'test-thread-id-1', threadMessageId: 'test-message-id-1' },
220
+ ]);
189
221
  const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
222
+ const runMessages = mock(async () => messageRecords);
223
+ const whereMessages = mock(() => ({ run: runMessages }));
190
224
  const threadLabelDelete = mock(async () => { });
191
225
  const threadLabelInsert = mock(async () => { });
192
226
  const transaction = {
@@ -206,6 +240,9 @@ describe('threadMutators', () => {
206
240
  threadLabel: {
207
241
  where: whereThreadLabel,
208
242
  },
243
+ threadMessage: {
244
+ where: whereMessages,
245
+ },
209
246
  },
210
247
  };
211
248
  const mutators = createMutators();
@@ -213,12 +250,15 @@ describe('threadMutators', () => {
213
250
  threadIds: ['test-thread-id-1'],
214
251
  });
215
252
  expect(threadLabelDelete).toHaveBeenCalledWith({
253
+ accountId: 'test-account-id-1',
216
254
  labelId: 'test-inbox-label-id',
217
- threadId: 'test-thread-id-1',
255
+ threadMessageId: 'test-message-id-1',
218
256
  });
219
257
  expect(threadLabelInsert).toHaveBeenCalledWith({
258
+ accountId: 'test-account-id-1',
220
259
  labelId: 'test-archive-label-id',
221
260
  threadId: 'test-thread-id-1',
261
+ threadMessageId: 'test-message-id-1',
222
262
  });
223
263
  });
224
264
  });
@@ -255,6 +295,7 @@ describe('threadMutators', () => {
255
295
  id: 'test-inbox-label-id',
256
296
  specialUse: 'INBOX',
257
297
  };
298
+ const messageRecords = [{ id: 'test-message-id-1' }];
258
299
  const runThread = mock(async () => threadRecord);
259
300
  const oneThread = mock(() => ({ run: runThread }));
260
301
  const whereThread = mock(() => ({ one: oneThread }));
@@ -262,8 +303,12 @@ describe('threadMutators', () => {
262
303
  const oneLabel = mock(() => ({ run: runLabel }));
263
304
  const whereSpecialUse = mock(() => ({ one: oneLabel }));
264
305
  const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
265
- const runAllThreadLabels = mock(async () => [{ labelId: 'test-archive-label-id', threadId: 'test-thread-id-1' }]);
306
+ const runAllThreadLabels = mock(async () => [
307
+ { labelId: 'test-archive-label-id', threadId: 'test-thread-id-1', threadMessageId: 'test-message-id-1' },
308
+ ]);
266
309
  const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
310
+ const runMessages = mock(async () => messageRecords);
311
+ const whereMessages = mock(() => ({ run: runMessages }));
267
312
  const threadLabelDelete = mock(async () => { });
268
313
  const threadLabelInsert = mock(async () => { });
269
314
  const transaction = {
@@ -283,6 +328,9 @@ describe('threadMutators', () => {
283
328
  threadLabel: {
284
329
  where: whereThreadLabel,
285
330
  },
331
+ threadMessage: {
332
+ where: whereMessages,
333
+ },
286
334
  },
287
335
  };
288
336
  const mutators = createMutators();
@@ -290,12 +338,15 @@ describe('threadMutators', () => {
290
338
  threadIds: ['test-thread-id-1'],
291
339
  });
292
340
  expect(threadLabelDelete).toHaveBeenCalledWith({
341
+ accountId: 'test-account-id-1',
293
342
  labelId: 'test-archive-label-id',
294
- threadId: 'test-thread-id-1',
343
+ threadMessageId: 'test-message-id-1',
295
344
  });
296
345
  expect(threadLabelInsert).toHaveBeenCalledWith({
346
+ accountId: 'test-account-id-1',
297
347
  labelId: 'test-inbox-label-id',
298
348
  threadId: 'test-thread-id-1',
349
+ threadMessageId: 'test-message-id-1',
299
350
  });
300
351
  });
301
352
  });
@@ -337,6 +388,7 @@ describe('threadMutators', () => {
337
388
  id: 'test-spam-label-id',
338
389
  specialUse: 'SPAM',
339
390
  };
391
+ const messageRecords = [{ id: 'test-message-id-1' }];
340
392
  const runThread = mock(async () => threadRecord);
341
393
  const oneThread = mock(() => ({ run: runThread }));
342
394
  const whereThread = mock(() => ({ one: oneThread }));
@@ -346,6 +398,8 @@ describe('threadMutators', () => {
346
398
  const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
347
399
  const runAllThreadLabels = mock(async () => []);
348
400
  const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
401
+ const runMessages = mock(async () => messageRecords);
402
+ const whereMessages = mock(() => ({ run: runMessages }));
349
403
  const threadLabelInsert = mock(async () => { });
350
404
  const transaction = {
351
405
  mutate: {
@@ -363,6 +417,9 @@ describe('threadMutators', () => {
363
417
  threadLabel: {
364
418
  where: whereThreadLabel,
365
419
  },
420
+ threadMessage: {
421
+ where: whereMessages,
422
+ },
366
423
  },
367
424
  };
368
425
  const mutators = createMutators();
@@ -370,8 +427,10 @@ describe('threadMutators', () => {
370
427
  threadIds: ['test-thread-id-1'],
371
428
  });
372
429
  expect(threadLabelInsert).toHaveBeenCalledWith({
430
+ accountId: 'test-account-id-1',
373
431
  labelId: 'test-spam-label-id',
374
432
  threadId: 'test-thread-id-1',
433
+ threadMessageId: 'test-message-id-1',
375
434
  });
376
435
  });
377
436
  });
@@ -386,6 +445,7 @@ describe('threadMutators', () => {
386
445
  id: 'test-trash-label-id',
387
446
  specialUse: 'TRASH',
388
447
  };
448
+ const messageRecords = [{ id: 'test-message-id-1' }];
389
449
  const runThread = mock(async () => threadRecord);
390
450
  const oneThread = mock(() => ({ run: runThread }));
391
451
  const whereThread = mock(() => ({ one: oneThread }));
@@ -395,6 +455,8 @@ describe('threadMutators', () => {
395
455
  const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
396
456
  const runAllThreadLabels = mock(async () => []);
397
457
  const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
458
+ const runMessages = mock(async () => messageRecords);
459
+ const whereMessages = mock(() => ({ run: runMessages }));
398
460
  const threadLabelInsert = mock(async () => { });
399
461
  const transaction = {
400
462
  mutate: {
@@ -412,6 +474,9 @@ describe('threadMutators', () => {
412
474
  threadLabel: {
413
475
  where: whereThreadLabel,
414
476
  },
477
+ threadMessage: {
478
+ where: whereMessages,
479
+ },
415
480
  },
416
481
  };
417
482
  const mutators = createMutators();
@@ -419,8 +484,10 @@ describe('threadMutators', () => {
419
484
  threadIds: ['test-thread-id-1'],
420
485
  });
421
486
  expect(threadLabelInsert).toHaveBeenCalledWith({
487
+ accountId: 'test-account-id-1',
422
488
  labelId: 'test-trash-label-id',
423
489
  threadId: 'test-thread-id-1',
490
+ threadMessageId: 'test-message-id-1',
424
491
  });
425
492
  });
426
493
  });
@@ -497,6 +497,13 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
497
497
  readonly threadLabel: {
498
498
  name: "threadLabel";
499
499
  columns: {
500
+ readonly accountId: {
501
+ type: "string";
502
+ optional: false;
503
+ customType: string;
504
+ } & {
505
+ serverName: string;
506
+ };
500
507
  readonly labelId: {
501
508
  type: "string";
502
509
  optional: false;
@@ -511,14 +518,28 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
511
518
  } & {
512
519
  serverName: string;
513
520
  };
521
+ readonly threadMessageId: {
522
+ type: "string";
523
+ optional: false;
524
+ customType: string;
525
+ } & {
526
+ serverName: string;
527
+ };
514
528
  };
515
529
  primaryKey: readonly [string, ...string[]];
516
530
  } & {
517
- primaryKey: ["threadId", "labelId"];
531
+ primaryKey: ["accountId", "labelId", "threadMessageId"];
518
532
  };
519
533
  readonly threadMessage: {
520
534
  name: "threadMessage";
521
535
  columns: {
536
+ readonly accountId: {
537
+ type: "string";
538
+ optional: false;
539
+ customType: string;
540
+ } & {
541
+ serverName: string;
542
+ };
522
543
  readonly envelopeDate: {
523
544
  type: "number";
524
545
  optional: false;
@@ -535,6 +556,11 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
535
556
  } & {
536
557
  serverName: string;
537
558
  };
559
+ readonly flagged: {
560
+ type: "boolean";
561
+ optional: false;
562
+ customType: boolean;
563
+ };
538
564
  readonly id: {
539
565
  type: "string";
540
566
  optional: false;
@@ -547,6 +573,11 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
547
573
  } & {
548
574
  serverName: string;
549
575
  };
576
+ readonly seen: {
577
+ type: "boolean";
578
+ optional: false;
579
+ customType: boolean;
580
+ };
550
581
  readonly senderEmail: {
551
582
  type: "string";
552
583
  optional: false;
@@ -763,7 +794,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
763
794
  }];
764
795
  threads: [{
765
796
  readonly sourceField: string[];
766
- readonly destField: ("labelId" | "threadId")[];
797
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
767
798
  readonly destSchema: "threadLabel";
768
799
  readonly cardinality: "many";
769
800
  }, {
@@ -824,7 +855,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
824
855
  }];
825
856
  labels: [{
826
857
  readonly sourceField: string[];
827
- readonly destField: ("labelId" | "threadId")[];
858
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
828
859
  readonly destSchema: "threadLabel";
829
860
  readonly cardinality: "many";
830
861
  }, {
@@ -835,7 +866,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
835
866
  }];
836
867
  messages: [{
837
868
  readonly sourceField: string[];
838
- readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
869
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
839
870
  readonly destSchema: "threadMessage";
840
871
  readonly cardinality: "many";
841
872
  }];
@@ -853,6 +884,12 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
853
884
  readonly destSchema: "accountLabel";
854
885
  readonly cardinality: "one";
855
886
  }];
887
+ message: [{
888
+ readonly sourceField: string[];
889
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
890
+ readonly destSchema: "threadMessage";
891
+ readonly cardinality: "one";
892
+ }];
856
893
  thread: [{
857
894
  readonly sourceField: string[];
858
895
  readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
@@ -867,6 +904,17 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
867
904
  readonly destSchema: "threadMessageAttachment";
868
905
  readonly cardinality: "many";
869
906
  }];
907
+ labels: [{
908
+ readonly sourceField: string[];
909
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
910
+ readonly destSchema: "threadLabel";
911
+ readonly cardinality: "many";
912
+ }, {
913
+ readonly sourceField: string[];
914
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
915
+ readonly destSchema: "accountLabel";
916
+ readonly cardinality: "many";
917
+ }];
870
918
  recipients: [{
871
919
  readonly sourceField: string[];
872
920
  readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
@@ -883,7 +931,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
883
931
  readonly threadMessageRecipient: {
884
932
  message: [{
885
933
  readonly sourceField: string[];
886
- readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
934
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
887
935
  readonly destSchema: "threadMessage";
888
936
  readonly cardinality: "one";
889
937
  }];
@@ -891,7 +939,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
891
939
  readonly threadMessageAttachment: {
892
940
  message: [{
893
941
  readonly sourceField: string[];
894
- readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
942
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
895
943
  readonly destSchema: "threadMessage";
896
944
  readonly cardinality: "one";
897
945
  }];
@@ -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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