@marcoappio/marco-config 2.0.471 → 2.0.473

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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,MAAM,YAAY,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"threadMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/threadMutators/threadMutators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAiB,MAAM,qBAAqB,CAAA;AAEnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,MAAM,MAAM,sBAAsB,GAAG;KAClC,CAAC,IAAI,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAC1C,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAC1D,OAAO,CAAC,IAAI,CAAC;CACnB,CAAA;AAKD,eAAO,MAAM,cAAc,OACrB,WAAW,CAAC,eAAe,CAAC,YACtB,MAAM,oBACE,eAAe,KAChC,OAAO,CAAC,kBAAkB,EAAE,CAyE9B,CAAA;AAED,eAAO,MAAM,oBAAoB,cACpB,QAAQ,GAAG,SAAS,cACnB,sBAAsB,KACjC,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CA4MxC,CAAA"}
1
+ {"version":3,"file":"threadMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/threadMutators/threadMutators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAiB,MAAM,qBAAqB,CAAA;AAEnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,MAAM,MAAM,sBAAsB,GAAG;KAClC,CAAC,IAAI,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAC1C,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAC1D,OAAO,CAAC,IAAI,CAAC;CACnB,CAAA;AAKD,eAAO,MAAM,cAAc,OACrB,WAAW,CAAC,eAAe,CAAC,YACtB,MAAM,oBACE,eAAe,KAChC,OAAO,CAAC,kBAAkB,EAAE,CA0G9B,CAAA;AAED,eAAO,MAAM,oBAAoB,cACpB,QAAQ,GAAG,SAAS,cACnB,sBAAsB,KACjC,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CA+OxC,CAAA"}
@@ -17,6 +17,7 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
17
17
  const threadLabels = await tx.query.threadLabel.where('threadId', threadId).run();
18
18
  const sourceLocations = [];
19
19
  const labelsToDelete = [];
20
+ const labelIdsToRemove = new Set();
20
21
  let hasTarget = false;
21
22
  for (const label of threadLabels) {
22
23
  if (label.labelId === targetLabel.id) {
@@ -24,6 +25,7 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
24
25
  continue;
25
26
  }
26
27
  labelsToDelete.push(label);
28
+ labelIdsToRemove.add(label.labelId);
27
29
  if (label.uid > 0 && label.uidValidity > 0) {
28
30
  sourceLocations.push({
29
31
  labelId: label.labelId,
@@ -40,6 +42,21 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
40
42
  threadMessageId: label.threadMessageId,
41
43
  });
42
44
  }
45
+ for (const labelId of labelIdsToRemove) {
46
+ await tx.mutate.threadByLabel.delete({
47
+ labelId,
48
+ threadId,
49
+ });
50
+ }
51
+ if (thread.seen === false && labelIdsToRemove.size > 0) {
52
+ const labelsToUpdate = await tx.query.accountLabel.where('id', 'IN', [...labelIdsToRemove]).run();
53
+ for (const label of labelsToUpdate) {
54
+ await tx.mutate.accountLabel.update({
55
+ id: label.id,
56
+ unreadCount: Math.max(0, (label.unreadCount ?? 0) - 1),
57
+ });
58
+ }
59
+ }
43
60
  if (!hasTarget) {
44
61
  const messages = await tx.query.threadMessage.where('threadId', threadId).run();
45
62
  const baseTimestamp = Date.now();
@@ -55,6 +72,17 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
55
72
  uidValidity: targetLabel.uidValidity ?? 0,
56
73
  });
57
74
  }
75
+ await tx.mutate.threadByLabel.insert({
76
+ labelId: targetLabel.id,
77
+ latestMessageDate: thread.latestMessageDate,
78
+ threadId,
79
+ });
80
+ if (thread.seen === false) {
81
+ await tx.mutate.accountLabel.update({
82
+ id: targetLabel.id,
83
+ unreadCount: (targetLabel.unreadCount ?? 0) + 1,
84
+ });
85
+ }
58
86
  }
59
87
  await tx.mutate.thread.update({
60
88
  id: threadId,
@@ -77,6 +105,24 @@ export const createThreadMutators = (_authData, callbacks) => ({
77
105
  if (!label) {
78
106
  throw new Error(MutationError.ENTITY_NOT_FOUND);
79
107
  }
108
+ const existingThreadByLabel = await tx.query.threadByLabel
109
+ .where('labelId', label.id)
110
+ .where('threadId', threadId)
111
+ .one()
112
+ .run();
113
+ if (!existingThreadByLabel) {
114
+ await tx.mutate.threadByLabel.insert({
115
+ labelId: label.id,
116
+ latestMessageDate: thread.latestMessageDate,
117
+ threadId,
118
+ });
119
+ if (thread.seen === false) {
120
+ await tx.mutate.accountLabel.update({
121
+ id: label.id,
122
+ unreadCount: (label.unreadCount ?? 0) + 1,
123
+ });
124
+ }
125
+ }
80
126
  const messages = await tx.query.threadMessage.where('threadId', threadId).run();
81
127
  const baseTimestamp = Date.now();
82
128
  let insertIndex = 0;
@@ -149,6 +195,16 @@ export const createThreadMutators = (_authData, callbacks) => ({
149
195
  threadMessageId: existing.threadMessageId,
150
196
  });
151
197
  }
198
+ await tx.mutate.threadByLabel.delete({
199
+ labelId: label.id,
200
+ threadId,
201
+ });
202
+ if (thread.seen === false) {
203
+ await tx.mutate.accountLabel.update({
204
+ id: label.id,
205
+ unreadCount: Math.max(0, (label.unreadCount ?? 0) - 1),
206
+ });
207
+ }
152
208
  const remainingLabels = await tx.query.threadLabel.where('threadId', threadId).run();
153
209
  await tx.mutate.thread.update({
154
210
  id: threadId,
@@ -186,8 +242,10 @@ export const createThreadMutators = (_authData, callbacks) => ({
186
242
  const threads = await tx.query.thread.where('id', 'IN', args.threadIds).run();
187
243
  const labelCounts = new Map();
188
244
  for (const thread of threads) {
189
- for (const labelId of threadsUtils.parseLabelIdList(thread.labelIdList)) {
190
- labelCounts.set(labelId, (labelCounts.get(labelId) ?? 0) + 1);
245
+ if (thread.seen !== args.seen) {
246
+ for (const labelId of threadsUtils.parseLabelIdList(thread.labelIdList)) {
247
+ labelCounts.set(labelId, (labelCounts.get(labelId) ?? 0) + 1);
248
+ }
191
249
  }
192
250
  }
193
251
  if (labelCounts.size > 0) {
@@ -34,11 +34,23 @@ describe('threadMutators', () => {
34
34
  });
35
35
  const threadLabelInsert = mock(async () => { });
36
36
  const threadUpdate = mock(async () => { });
37
+ const threadByLabelInsert = mock(async () => { });
38
+ const runThreadByLabel = mock(async () => null);
39
+ const oneThreadByLabel = mock(() => ({ run: runThreadByLabel }));
40
+ const whereThreadByLabelThreadId = mock(() => ({ one: oneThreadByLabel }));
41
+ const whereThreadByLabel = mock(() => ({ where: whereThreadByLabelThreadId }));
37
42
  const transaction = {
38
43
  mutate: {
44
+ accountLabel: {
45
+ update: mock(async () => { }),
46
+ },
39
47
  thread: {
40
48
  update: threadUpdate,
41
49
  },
50
+ threadByLabel: {
51
+ delete: mock(async () => { }),
52
+ insert: threadByLabelInsert,
53
+ },
42
54
  threadLabel: {
43
55
  delete: mock(async () => { }),
44
56
  insert: threadLabelInsert,
@@ -51,6 +63,9 @@ describe('threadMutators', () => {
51
63
  thread: {
52
64
  where: whereThread,
53
65
  },
66
+ threadByLabel: {
67
+ where: whereThreadByLabel,
68
+ },
54
69
  threadLabel: {
55
70
  where: whereThreadLabel,
56
71
  },
@@ -149,11 +164,26 @@ describe('threadMutators', () => {
149
164
  });
150
165
  const threadLabelDelete = mock(async () => { });
151
166
  const threadUpdate = mock(async () => { });
167
+ const threadByLabelDelete = mock(async () => { });
168
+ const runThreadByLabel = mock(async () => ({
169
+ labelId: 'test-label-id-1',
170
+ latestMessageDate: 1234567890,
171
+ threadId: 'test-thread-id-1',
172
+ }));
173
+ const oneThreadByLabel = mock(() => ({ run: runThreadByLabel }));
174
+ const whereThreadByLabelThreadId = mock(() => ({ one: oneThreadByLabel }));
175
+ const whereThreadByLabel = mock(() => ({ where: whereThreadByLabelThreadId }));
152
176
  const transaction = {
153
177
  mutate: {
178
+ accountLabel: {
179
+ update: mock(async () => { }),
180
+ },
154
181
  thread: {
155
182
  update: threadUpdate,
156
183
  },
184
+ threadByLabel: {
185
+ delete: threadByLabelDelete,
186
+ },
157
187
  threadLabel: {
158
188
  delete: threadLabelDelete,
159
189
  },
@@ -165,6 +195,9 @@ describe('threadMutators', () => {
165
195
  thread: {
166
196
  where: whereThread,
167
197
  },
198
+ threadByLabel: {
199
+ where: whereThreadByLabel,
200
+ },
168
201
  threadLabel: {
169
202
  where: whereThreadLabel,
170
203
  },
@@ -211,7 +244,13 @@ describe('threadMutators', () => {
211
244
  const runLabel = mock(async () => archiveLabel);
212
245
  const oneLabel = mock(() => ({ run: runLabel }));
213
246
  const whereSpecialUse = mock(() => ({ one: oneLabel }));
214
- const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
247
+ const runLabelsToUpdate = mock(async () => [{ id: 'test-inbox-label-id', unreadCount: 1 }]);
248
+ const whereLabelAccount = mock((field) => {
249
+ if (field === 'id') {
250
+ return { run: runLabelsToUpdate };
251
+ }
252
+ return { where: whereSpecialUse };
253
+ });
215
254
  const runAllThreadLabels = mock(async () => [
216
255
  { labelId: 'test-inbox-label-id', threadId: 'test-thread-id-1', threadMessageId: 'test-message-id-1' },
217
256
  ]);
@@ -221,11 +260,28 @@ describe('threadMutators', () => {
221
260
  const threadLabelDelete = mock(async () => { });
222
261
  const threadLabelInsert = mock(async () => { });
223
262
  const threadUpdate = mock(async () => { });
263
+ const threadByLabelDelete = mock(async () => { });
264
+ const threadByLabelInsert = mock(async () => { });
265
+ const runThreadByLabel = mock(async () => ({
266
+ labelId: 'test-inbox-label-id',
267
+ latestMessageDate: 1234567890,
268
+ threadId: 'test-thread-id-1',
269
+ }));
270
+ const oneThreadByLabel = mock(() => ({ run: runThreadByLabel }));
271
+ const whereThreadByLabelThreadId = mock(() => ({ one: oneThreadByLabel }));
272
+ const whereThreadByLabel = mock(() => ({ where: whereThreadByLabelThreadId }));
224
273
  const transaction = {
225
274
  mutate: {
275
+ accountLabel: {
276
+ update: mock(async () => { }),
277
+ },
226
278
  thread: {
227
279
  update: threadUpdate,
228
280
  },
281
+ threadByLabel: {
282
+ delete: threadByLabelDelete,
283
+ insert: threadByLabelInsert,
284
+ },
229
285
  threadLabel: {
230
286
  delete: threadLabelDelete,
231
287
  insert: threadLabelInsert,
@@ -238,6 +294,9 @@ describe('threadMutators', () => {
238
294
  thread: {
239
295
  where: whereThread,
240
296
  },
297
+ threadByLabel: {
298
+ where: whereThreadByLabel,
299
+ },
241
300
  threadLabel: {
242
301
  where: whereThreadLabel,
243
302
  },
@@ -308,7 +367,13 @@ describe('threadMutators', () => {
308
367
  const runLabel = mock(async () => inboxLabel);
309
368
  const oneLabel = mock(() => ({ run: runLabel }));
310
369
  const whereSpecialUse = mock(() => ({ one: oneLabel }));
311
- const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
370
+ const runLabelsToUpdate = mock(async () => [{ id: 'test-archive-label-id', unreadCount: 1 }]);
371
+ const whereLabelAccount = mock((field) => {
372
+ if (field === 'id') {
373
+ return { run: runLabelsToUpdate };
374
+ }
375
+ return { where: whereSpecialUse };
376
+ });
312
377
  const runAllThreadLabels = mock(async () => [
313
378
  { labelId: 'test-archive-label-id', threadId: 'test-thread-id-1', threadMessageId: 'test-message-id-1' },
314
379
  ]);
@@ -318,11 +383,28 @@ describe('threadMutators', () => {
318
383
  const threadLabelDelete = mock(async () => { });
319
384
  const threadLabelInsert = mock(async () => { });
320
385
  const threadUpdate = mock(async () => { });
386
+ const threadByLabelDelete = mock(async () => { });
387
+ const threadByLabelInsert = mock(async () => { });
388
+ const runThreadByLabel = mock(async () => ({
389
+ labelId: 'test-archive-label-id',
390
+ latestMessageDate: 1234567890,
391
+ threadId: 'test-thread-id-1',
392
+ }));
393
+ const oneThreadByLabel = mock(() => ({ run: runThreadByLabel }));
394
+ const whereThreadByLabelThreadId = mock(() => ({ one: oneThreadByLabel }));
395
+ const whereThreadByLabel = mock(() => ({ where: whereThreadByLabelThreadId }));
321
396
  const transaction = {
322
397
  mutate: {
398
+ accountLabel: {
399
+ update: mock(async () => { }),
400
+ },
323
401
  thread: {
324
402
  update: threadUpdate,
325
403
  },
404
+ threadByLabel: {
405
+ delete: threadByLabelDelete,
406
+ insert: threadByLabelInsert,
407
+ },
326
408
  threadLabel: {
327
409
  delete: threadLabelDelete,
328
410
  insert: threadLabelInsert,
@@ -335,6 +417,9 @@ describe('threadMutators', () => {
335
417
  thread: {
336
418
  where: whereThread,
337
419
  },
420
+ threadByLabel: {
421
+ where: whereThreadByLabel,
422
+ },
338
423
  threadLabel: {
339
424
  where: whereThreadLabel,
340
425
  },
@@ -470,12 +555,21 @@ describe('threadMutators', () => {
470
555
  const whereMessages = mock(() => ({ run: runMessages }));
471
556
  const threadLabelInsert = mock(async () => { });
472
557
  const threadUpdate = mock(async () => { });
558
+ const threadByLabelInsert = mock(async () => { });
473
559
  const transaction = {
474
560
  mutate: {
561
+ accountLabel: {
562
+ update: mock(async () => { }),
563
+ },
475
564
  thread: {
476
565
  update: threadUpdate,
477
566
  },
567
+ threadByLabel: {
568
+ delete: mock(async () => { }),
569
+ insert: threadByLabelInsert,
570
+ },
478
571
  threadLabel: {
572
+ delete: mock(async () => { }),
479
573
  insert: threadLabelInsert,
480
574
  },
481
575
  },
@@ -536,12 +630,21 @@ describe('threadMutators', () => {
536
630
  const whereMessages = mock(() => ({ run: runMessages }));
537
631
  const threadLabelInsert = mock(async () => { });
538
632
  const threadUpdate = mock(async () => { });
633
+ const threadByLabelInsert = mock(async () => { });
539
634
  const transaction = {
540
635
  mutate: {
636
+ accountLabel: {
637
+ update: mock(async () => { }),
638
+ },
541
639
  thread: {
542
640
  update: threadUpdate,
543
641
  },
642
+ threadByLabel: {
643
+ delete: mock(async () => { }),
644
+ insert: threadByLabelInsert,
645
+ },
544
646
  threadLabel: {
647
+ delete: mock(async () => { }),
545
648
  insert: threadLabelInsert,
546
649
  },
547
650
  },
@@ -533,6 +533,35 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
533
533
  } & {
534
534
  primaryKey: ["accountId", "labelId", "threadMessageId"];
535
535
  };
536
+ readonly threadByLabel: {
537
+ name: "threadByLabel";
538
+ columns: {
539
+ readonly labelId: {
540
+ type: "string";
541
+ optional: false;
542
+ customType: string;
543
+ } & {
544
+ serverName: string;
545
+ };
546
+ readonly latestMessageDate: {
547
+ type: "number";
548
+ optional: false;
549
+ customType: number;
550
+ } & {
551
+ serverName: string;
552
+ };
553
+ readonly threadId: {
554
+ type: "string";
555
+ optional: false;
556
+ customType: string;
557
+ } & {
558
+ serverName: string;
559
+ };
560
+ };
561
+ primaryKey: readonly [string, ...string[]];
562
+ } & {
563
+ primaryKey: ["labelId", "threadId"];
564
+ };
536
565
  readonly threadMessage: {
537
566
  name: "threadMessage";
538
567
  columns: {
@@ -844,6 +873,12 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
844
873
  readonly destSchema: "threadMessage";
845
874
  readonly cardinality: "many";
846
875
  }];
876
+ threadByLabel: [{
877
+ readonly sourceField: string[];
878
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
879
+ readonly destSchema: "threadByLabel";
880
+ readonly cardinality: "many";
881
+ }];
847
882
  user: [{
848
883
  readonly sourceField: string[];
849
884
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -871,6 +906,20 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
871
906
  readonly cardinality: "one";
872
907
  }];
873
908
  };
909
+ readonly threadByLabel: {
910
+ label: [{
911
+ readonly sourceField: string[];
912
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
913
+ readonly destSchema: "accountLabel";
914
+ readonly cardinality: "one";
915
+ }];
916
+ thread: [{
917
+ readonly sourceField: string[];
918
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
919
+ readonly destSchema: "thread";
920
+ readonly cardinality: "one";
921
+ }];
922
+ };
874
923
  readonly threadMessage: {
875
924
  attachments: [{
876
925
  readonly sourceField: string[];
@@ -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"}
@@ -542,6 +542,35 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
542
542
  } & {
543
543
  primaryKey: ["accountId", "labelId", "threadMessageId"];
544
544
  };
545
+ readonly threadByLabel: {
546
+ name: "threadByLabel";
547
+ columns: {
548
+ readonly labelId: {
549
+ type: "string";
550
+ optional: false;
551
+ customType: string;
552
+ } & {
553
+ serverName: string;
554
+ };
555
+ readonly latestMessageDate: {
556
+ type: "number";
557
+ optional: false;
558
+ customType: number;
559
+ } & {
560
+ serverName: string;
561
+ };
562
+ readonly threadId: {
563
+ type: "string";
564
+ optional: false;
565
+ customType: string;
566
+ } & {
567
+ serverName: string;
568
+ };
569
+ };
570
+ primaryKey: readonly [string, ...string[]];
571
+ } & {
572
+ primaryKey: ["labelId", "threadId"];
573
+ };
545
574
  readonly threadMessage: {
546
575
  name: "threadMessage";
547
576
  columns: {
@@ -853,6 +882,12 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
853
882
  readonly destSchema: "threadMessage";
854
883
  readonly cardinality: "many";
855
884
  }];
885
+ threadByLabel: [{
886
+ readonly sourceField: string[];
887
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
888
+ readonly destSchema: "threadByLabel";
889
+ readonly cardinality: "many";
890
+ }];
856
891
  user: [{
857
892
  readonly sourceField: string[];
858
893
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -880,6 +915,20 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
880
915
  readonly cardinality: "one";
881
916
  }];
882
917
  };
918
+ readonly threadByLabel: {
919
+ label: [{
920
+ readonly sourceField: string[];
921
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
922
+ readonly destSchema: "accountLabel";
923
+ readonly cardinality: "one";
924
+ }];
925
+ thread: [{
926
+ readonly sourceField: string[];
927
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
928
+ readonly destSchema: "thread";
929
+ readonly cardinality: "one";
930
+ }];
931
+ };
883
932
  readonly threadMessage: {
884
933
  attachments: [{
885
934
  readonly sourceField: string[];
@@ -1 +1 @@
1
- {"version":3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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BvB,CAAA"}
@@ -539,6 +539,35 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
539
539
  } & {
540
540
  primaryKey: ["accountId", "labelId", "threadMessageId"];
541
541
  };
542
+ readonly threadByLabel: {
543
+ name: "threadByLabel";
544
+ columns: {
545
+ readonly labelId: {
546
+ type: "string";
547
+ optional: false;
548
+ customType: string;
549
+ } & {
550
+ serverName: string;
551
+ };
552
+ readonly latestMessageDate: {
553
+ type: "number";
554
+ optional: false;
555
+ customType: number;
556
+ } & {
557
+ serverName: string;
558
+ };
559
+ readonly threadId: {
560
+ type: "string";
561
+ optional: false;
562
+ customType: string;
563
+ } & {
564
+ serverName: string;
565
+ };
566
+ };
567
+ primaryKey: readonly [string, ...string[]];
568
+ } & {
569
+ primaryKey: ["labelId", "threadId"];
570
+ };
542
571
  readonly threadMessage: {
543
572
  name: "threadMessage";
544
573
  columns: {
@@ -850,6 +879,12 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
850
879
  readonly destSchema: "threadMessage";
851
880
  readonly cardinality: "many";
852
881
  }];
882
+ threadByLabel: [{
883
+ readonly sourceField: string[];
884
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
885
+ readonly destSchema: "threadByLabel";
886
+ readonly cardinality: "many";
887
+ }];
853
888
  user: [{
854
889
  readonly sourceField: string[];
855
890
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -877,6 +912,20 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
877
912
  readonly cardinality: "one";
878
913
  }];
879
914
  };
915
+ readonly threadByLabel: {
916
+ label: [{
917
+ readonly sourceField: string[];
918
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
919
+ readonly destSchema: "accountLabel";
920
+ readonly cardinality: "one";
921
+ }];
922
+ thread: [{
923
+ readonly sourceField: string[];
924
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
925
+ readonly destSchema: "thread";
926
+ readonly cardinality: "one";
927
+ }];
928
+ };
880
929
  readonly threadMessage: {
881
930
  attachments: [{
882
931
  readonly sourceField: string[];
@@ -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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