@marcoappio/marco-config 2.0.470 → 2.0.472
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.
- package/dist/zero/index.d.ts +316 -0
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +74 -10
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +84 -13
- package/dist/zero/queries/getAccounts.d.ts +42 -0
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +42 -0
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +42 -0
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreadList.d.ts +42 -0
- package/dist/zero/queries/getThreadList.d.ts.map +1 -1
- package/dist/zero/queries/getThreadList.js +1 -1
- package/dist/zero/queries/getThreads.d.ts +42 -0
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.js +1 -1
- package/dist/zero/queries/getUser.d.ts +42 -0
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +42 -0
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +64 -0
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +27 -0
- package/package.json +1 -1
|
@@ -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,18 @@ describe('threadMutators', () => {
|
|
|
149
164
|
});
|
|
150
165
|
const threadLabelDelete = mock(async () => { });
|
|
151
166
|
const threadUpdate = mock(async () => { });
|
|
167
|
+
const threadByLabelDelete = mock(async () => { });
|
|
152
168
|
const transaction = {
|
|
153
169
|
mutate: {
|
|
170
|
+
accountLabel: {
|
|
171
|
+
update: mock(async () => { }),
|
|
172
|
+
},
|
|
154
173
|
thread: {
|
|
155
174
|
update: threadUpdate,
|
|
156
175
|
},
|
|
176
|
+
threadByLabel: {
|
|
177
|
+
delete: threadByLabelDelete,
|
|
178
|
+
},
|
|
157
179
|
threadLabel: {
|
|
158
180
|
delete: threadLabelDelete,
|
|
159
181
|
},
|
|
@@ -211,7 +233,13 @@ describe('threadMutators', () => {
|
|
|
211
233
|
const runLabel = mock(async () => archiveLabel);
|
|
212
234
|
const oneLabel = mock(() => ({ run: runLabel }));
|
|
213
235
|
const whereSpecialUse = mock(() => ({ one: oneLabel }));
|
|
214
|
-
const
|
|
236
|
+
const runLabelsToUpdate = mock(async () => [{ id: 'test-inbox-label-id', unreadCount: 1 }]);
|
|
237
|
+
const whereLabelAccount = mock((field) => {
|
|
238
|
+
if (field === 'id') {
|
|
239
|
+
return { run: runLabelsToUpdate };
|
|
240
|
+
}
|
|
241
|
+
return { where: whereSpecialUse };
|
|
242
|
+
});
|
|
215
243
|
const runAllThreadLabels = mock(async () => [
|
|
216
244
|
{ labelId: 'test-inbox-label-id', threadId: 'test-thread-id-1', threadMessageId: 'test-message-id-1' },
|
|
217
245
|
]);
|
|
@@ -221,11 +249,20 @@ describe('threadMutators', () => {
|
|
|
221
249
|
const threadLabelDelete = mock(async () => { });
|
|
222
250
|
const threadLabelInsert = mock(async () => { });
|
|
223
251
|
const threadUpdate = mock(async () => { });
|
|
252
|
+
const threadByLabelDelete = mock(async () => { });
|
|
253
|
+
const threadByLabelInsert = mock(async () => { });
|
|
224
254
|
const transaction = {
|
|
225
255
|
mutate: {
|
|
256
|
+
accountLabel: {
|
|
257
|
+
update: mock(async () => { }),
|
|
258
|
+
},
|
|
226
259
|
thread: {
|
|
227
260
|
update: threadUpdate,
|
|
228
261
|
},
|
|
262
|
+
threadByLabel: {
|
|
263
|
+
delete: threadByLabelDelete,
|
|
264
|
+
insert: threadByLabelInsert,
|
|
265
|
+
},
|
|
229
266
|
threadLabel: {
|
|
230
267
|
delete: threadLabelDelete,
|
|
231
268
|
insert: threadLabelInsert,
|
|
@@ -308,7 +345,13 @@ describe('threadMutators', () => {
|
|
|
308
345
|
const runLabel = mock(async () => inboxLabel);
|
|
309
346
|
const oneLabel = mock(() => ({ run: runLabel }));
|
|
310
347
|
const whereSpecialUse = mock(() => ({ one: oneLabel }));
|
|
311
|
-
const
|
|
348
|
+
const runLabelsToUpdate = mock(async () => [{ id: 'test-archive-label-id', unreadCount: 1 }]);
|
|
349
|
+
const whereLabelAccount = mock((field) => {
|
|
350
|
+
if (field === 'id') {
|
|
351
|
+
return { run: runLabelsToUpdate };
|
|
352
|
+
}
|
|
353
|
+
return { where: whereSpecialUse };
|
|
354
|
+
});
|
|
312
355
|
const runAllThreadLabels = mock(async () => [
|
|
313
356
|
{ labelId: 'test-archive-label-id', threadId: 'test-thread-id-1', threadMessageId: 'test-message-id-1' },
|
|
314
357
|
]);
|
|
@@ -318,11 +361,20 @@ describe('threadMutators', () => {
|
|
|
318
361
|
const threadLabelDelete = mock(async () => { });
|
|
319
362
|
const threadLabelInsert = mock(async () => { });
|
|
320
363
|
const threadUpdate = mock(async () => { });
|
|
364
|
+
const threadByLabelDelete = mock(async () => { });
|
|
365
|
+
const threadByLabelInsert = mock(async () => { });
|
|
321
366
|
const transaction = {
|
|
322
367
|
mutate: {
|
|
368
|
+
accountLabel: {
|
|
369
|
+
update: mock(async () => { }),
|
|
370
|
+
},
|
|
323
371
|
thread: {
|
|
324
372
|
update: threadUpdate,
|
|
325
373
|
},
|
|
374
|
+
threadByLabel: {
|
|
375
|
+
delete: threadByLabelDelete,
|
|
376
|
+
insert: threadByLabelInsert,
|
|
377
|
+
},
|
|
326
378
|
threadLabel: {
|
|
327
379
|
delete: threadLabelDelete,
|
|
328
380
|
insert: threadLabelInsert,
|
|
@@ -369,13 +421,13 @@ describe('threadMutators', () => {
|
|
|
369
421
|
it('sets thread seen status and updates unread count', async () => {
|
|
370
422
|
const threadUpdate = mock(async () => { });
|
|
371
423
|
const labelUpdate = mock(async () => { });
|
|
372
|
-
const
|
|
373
|
-
{
|
|
374
|
-
{
|
|
424
|
+
const threads = [
|
|
425
|
+
{ id: 'test-thread-id-1', labelIdList: ' test-inbox-label-id ' },
|
|
426
|
+
{ id: 'test-thread-id-2', labelIdList: ' test-inbox-label-id ' },
|
|
375
427
|
];
|
|
376
428
|
const labels = [{ id: 'test-inbox-label-id', specialUse: 'INBOX', unreadCount: 5 }];
|
|
377
|
-
const
|
|
378
|
-
const
|
|
429
|
+
const runThreads = mock(async () => threads);
|
|
430
|
+
const whereThread = mock(() => ({ run: runThreads }));
|
|
379
431
|
const runLabels = mock(async () => labels);
|
|
380
432
|
const whereLabel = mock(() => ({ run: runLabels }));
|
|
381
433
|
const transaction = {
|
|
@@ -391,8 +443,8 @@ describe('threadMutators', () => {
|
|
|
391
443
|
accountLabel: {
|
|
392
444
|
where: whereLabel,
|
|
393
445
|
},
|
|
394
|
-
|
|
395
|
-
where:
|
|
446
|
+
thread: {
|
|
447
|
+
where: whereThread,
|
|
396
448
|
},
|
|
397
449
|
},
|
|
398
450
|
};
|
|
@@ -418,8 +470,9 @@ describe('threadMutators', () => {
|
|
|
418
470
|
it('skips label update when threads have no labels', async () => {
|
|
419
471
|
const threadUpdate = mock(async () => { });
|
|
420
472
|
const labelUpdate = mock(async () => { });
|
|
421
|
-
const
|
|
422
|
-
const
|
|
473
|
+
const threads = [{ id: 'test-thread-id-1', labelIdList: '' }];
|
|
474
|
+
const runThreads = mock(async () => threads);
|
|
475
|
+
const whereThread = mock(() => ({ run: runThreads }));
|
|
423
476
|
const transaction = {
|
|
424
477
|
mutate: {
|
|
425
478
|
accountLabel: {
|
|
@@ -430,8 +483,8 @@ describe('threadMutators', () => {
|
|
|
430
483
|
},
|
|
431
484
|
},
|
|
432
485
|
query: {
|
|
433
|
-
|
|
434
|
-
where:
|
|
486
|
+
thread: {
|
|
487
|
+
where: whereThread,
|
|
435
488
|
},
|
|
436
489
|
},
|
|
437
490
|
};
|
|
@@ -469,12 +522,21 @@ describe('threadMutators', () => {
|
|
|
469
522
|
const whereMessages = mock(() => ({ run: runMessages }));
|
|
470
523
|
const threadLabelInsert = mock(async () => { });
|
|
471
524
|
const threadUpdate = mock(async () => { });
|
|
525
|
+
const threadByLabelInsert = mock(async () => { });
|
|
472
526
|
const transaction = {
|
|
473
527
|
mutate: {
|
|
528
|
+
accountLabel: {
|
|
529
|
+
update: mock(async () => { }),
|
|
530
|
+
},
|
|
474
531
|
thread: {
|
|
475
532
|
update: threadUpdate,
|
|
476
533
|
},
|
|
534
|
+
threadByLabel: {
|
|
535
|
+
delete: mock(async () => { }),
|
|
536
|
+
insert: threadByLabelInsert,
|
|
537
|
+
},
|
|
477
538
|
threadLabel: {
|
|
539
|
+
delete: mock(async () => { }),
|
|
478
540
|
insert: threadLabelInsert,
|
|
479
541
|
},
|
|
480
542
|
},
|
|
@@ -535,12 +597,21 @@ describe('threadMutators', () => {
|
|
|
535
597
|
const whereMessages = mock(() => ({ run: runMessages }));
|
|
536
598
|
const threadLabelInsert = mock(async () => { });
|
|
537
599
|
const threadUpdate = mock(async () => { });
|
|
600
|
+
const threadByLabelInsert = mock(async () => { });
|
|
538
601
|
const transaction = {
|
|
539
602
|
mutate: {
|
|
603
|
+
accountLabel: {
|
|
604
|
+
update: mock(async () => { }),
|
|
605
|
+
},
|
|
540
606
|
thread: {
|
|
541
607
|
update: threadUpdate,
|
|
542
608
|
},
|
|
609
|
+
threadByLabel: {
|
|
610
|
+
delete: mock(async () => { }),
|
|
611
|
+
insert: threadByLabelInsert,
|
|
612
|
+
},
|
|
543
613
|
threadLabel: {
|
|
614
|
+
delete: mock(async () => { }),
|
|
544
615
|
insert: threadLabelInsert,
|
|
545
616
|
},
|
|
546
617
|
},
|
|
@@ -533,6 +533,28 @@ 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 threadId: {
|
|
547
|
+
type: "string";
|
|
548
|
+
optional: false;
|
|
549
|
+
customType: string;
|
|
550
|
+
} & {
|
|
551
|
+
serverName: string;
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
primaryKey: readonly [string, ...string[]];
|
|
555
|
+
} & {
|
|
556
|
+
primaryKey: ["labelId", "threadId"];
|
|
557
|
+
};
|
|
536
558
|
readonly threadMessage: {
|
|
537
559
|
name: "threadMessage";
|
|
538
560
|
columns: {
|
|
@@ -844,6 +866,12 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
844
866
|
readonly destSchema: "threadMessage";
|
|
845
867
|
readonly cardinality: "many";
|
|
846
868
|
}];
|
|
869
|
+
threadByLabel: [{
|
|
870
|
+
readonly sourceField: string[];
|
|
871
|
+
readonly destField: ("labelId" | "threadId")[];
|
|
872
|
+
readonly destSchema: "threadByLabel";
|
|
873
|
+
readonly cardinality: "many";
|
|
874
|
+
}];
|
|
847
875
|
user: [{
|
|
848
876
|
readonly sourceField: string[];
|
|
849
877
|
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
@@ -871,6 +899,20 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
871
899
|
readonly cardinality: "one";
|
|
872
900
|
}];
|
|
873
901
|
};
|
|
902
|
+
readonly threadByLabel: {
|
|
903
|
+
label: [{
|
|
904
|
+
readonly sourceField: string[];
|
|
905
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
906
|
+
readonly destSchema: "accountLabel";
|
|
907
|
+
readonly cardinality: "one";
|
|
908
|
+
}];
|
|
909
|
+
thread: [{
|
|
910
|
+
readonly sourceField: string[];
|
|
911
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
912
|
+
readonly destSchema: "thread";
|
|
913
|
+
readonly cardinality: "one";
|
|
914
|
+
}];
|
|
915
|
+
};
|
|
874
916
|
readonly threadMessage: {
|
|
875
917
|
attachments: [{
|
|
876
918
|
readonly sourceField: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccounts.d.ts","sourceRoot":"","sources":["../../../src/z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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEvB,CAAA"}
|
|
@@ -542,6 +542,28 @@ 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 threadId: {
|
|
556
|
+
type: "string";
|
|
557
|
+
optional: false;
|
|
558
|
+
customType: string;
|
|
559
|
+
} & {
|
|
560
|
+
serverName: string;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
primaryKey: readonly [string, ...string[]];
|
|
564
|
+
} & {
|
|
565
|
+
primaryKey: ["labelId", "threadId"];
|
|
566
|
+
};
|
|
545
567
|
readonly threadMessage: {
|
|
546
568
|
name: "threadMessage";
|
|
547
569
|
columns: {
|
|
@@ -853,6 +875,12 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
853
875
|
readonly destSchema: "threadMessage";
|
|
854
876
|
readonly cardinality: "many";
|
|
855
877
|
}];
|
|
878
|
+
threadByLabel: [{
|
|
879
|
+
readonly sourceField: string[];
|
|
880
|
+
readonly destField: ("labelId" | "threadId")[];
|
|
881
|
+
readonly destSchema: "threadByLabel";
|
|
882
|
+
readonly cardinality: "many";
|
|
883
|
+
}];
|
|
856
884
|
user: [{
|
|
857
885
|
readonly sourceField: string[];
|
|
858
886
|
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
@@ -880,6 +908,20 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
880
908
|
readonly cardinality: "one";
|
|
881
909
|
}];
|
|
882
910
|
};
|
|
911
|
+
readonly threadByLabel: {
|
|
912
|
+
label: [{
|
|
913
|
+
readonly sourceField: string[];
|
|
914
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
915
|
+
readonly destSchema: "accountLabel";
|
|
916
|
+
readonly cardinality: "one";
|
|
917
|
+
}];
|
|
918
|
+
thread: [{
|
|
919
|
+
readonly sourceField: string[];
|
|
920
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
921
|
+
readonly destSchema: "thread";
|
|
922
|
+
readonly cardinality: "one";
|
|
923
|
+
}];
|
|
924
|
+
};
|
|
883
925
|
readonly threadMessage: {
|
|
884
926
|
attachments: [{
|
|
885
927
|
readonly sourceField: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getContacts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getContacts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;QACd,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAiBD,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"getContacts.d.ts","sourceRoot":"","sources":["../../../src/zero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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BvB,CAAA"}
|
|
@@ -539,6 +539,28 @@ 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 threadId: {
|
|
553
|
+
type: "string";
|
|
554
|
+
optional: false;
|
|
555
|
+
customType: string;
|
|
556
|
+
} & {
|
|
557
|
+
serverName: string;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
primaryKey: readonly [string, ...string[]];
|
|
561
|
+
} & {
|
|
562
|
+
primaryKey: ["labelId", "threadId"];
|
|
563
|
+
};
|
|
542
564
|
readonly threadMessage: {
|
|
543
565
|
name: "threadMessage";
|
|
544
566
|
columns: {
|
|
@@ -850,6 +872,12 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
850
872
|
readonly destSchema: "threadMessage";
|
|
851
873
|
readonly cardinality: "many";
|
|
852
874
|
}];
|
|
875
|
+
threadByLabel: [{
|
|
876
|
+
readonly sourceField: string[];
|
|
877
|
+
readonly destField: ("labelId" | "threadId")[];
|
|
878
|
+
readonly destSchema: "threadByLabel";
|
|
879
|
+
readonly cardinality: "many";
|
|
880
|
+
}];
|
|
853
881
|
user: [{
|
|
854
882
|
readonly sourceField: string[];
|
|
855
883
|
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
@@ -877,6 +905,20 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
877
905
|
readonly cardinality: "one";
|
|
878
906
|
}];
|
|
879
907
|
};
|
|
908
|
+
readonly threadByLabel: {
|
|
909
|
+
label: [{
|
|
910
|
+
readonly sourceField: string[];
|
|
911
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
912
|
+
readonly destSchema: "accountLabel";
|
|
913
|
+
readonly cardinality: "one";
|
|
914
|
+
}];
|
|
915
|
+
thread: [{
|
|
916
|
+
readonly sourceField: string[];
|
|
917
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
918
|
+
readonly destSchema: "thread";
|
|
919
|
+
readonly cardinality: "one";
|
|
920
|
+
}];
|
|
921
|
+
};
|
|
880
922
|
readonly threadMessage: {
|
|
881
923
|
attachments: [{
|
|
882
924
|
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
|
|
1
|
+
{"version":3,"file":"getDrafts.d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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBrB,CAAA"}
|
|
@@ -545,6 +545,28 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
545
545
|
} & {
|
|
546
546
|
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
547
547
|
};
|
|
548
|
+
readonly threadByLabel: {
|
|
549
|
+
name: "threadByLabel";
|
|
550
|
+
columns: {
|
|
551
|
+
readonly labelId: {
|
|
552
|
+
type: "string";
|
|
553
|
+
optional: false;
|
|
554
|
+
customType: string;
|
|
555
|
+
} & {
|
|
556
|
+
serverName: string;
|
|
557
|
+
};
|
|
558
|
+
readonly threadId: {
|
|
559
|
+
type: "string";
|
|
560
|
+
optional: false;
|
|
561
|
+
customType: string;
|
|
562
|
+
} & {
|
|
563
|
+
serverName: string;
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
primaryKey: readonly [string, ...string[]];
|
|
567
|
+
} & {
|
|
568
|
+
primaryKey: ["labelId", "threadId"];
|
|
569
|
+
};
|
|
548
570
|
readonly threadMessage: {
|
|
549
571
|
name: "threadMessage";
|
|
550
572
|
columns: {
|
|
@@ -856,6 +878,12 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
856
878
|
readonly destSchema: "threadMessage";
|
|
857
879
|
readonly cardinality: "many";
|
|
858
880
|
}];
|
|
881
|
+
threadByLabel: [{
|
|
882
|
+
readonly sourceField: string[];
|
|
883
|
+
readonly destField: ("labelId" | "threadId")[];
|
|
884
|
+
readonly destSchema: "threadByLabel";
|
|
885
|
+
readonly cardinality: "many";
|
|
886
|
+
}];
|
|
859
887
|
user: [{
|
|
860
888
|
readonly sourceField: string[];
|
|
861
889
|
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
@@ -883,6 +911,20 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
883
911
|
readonly cardinality: "one";
|
|
884
912
|
}];
|
|
885
913
|
};
|
|
914
|
+
readonly threadByLabel: {
|
|
915
|
+
label: [{
|
|
916
|
+
readonly sourceField: string[];
|
|
917
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
918
|
+
readonly destSchema: "accountLabel";
|
|
919
|
+
readonly cardinality: "one";
|
|
920
|
+
}];
|
|
921
|
+
thread: [{
|
|
922
|
+
readonly sourceField: string[];
|
|
923
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
924
|
+
readonly destSchema: "thread";
|
|
925
|
+
readonly cardinality: "one";
|
|
926
|
+
}];
|
|
927
|
+
};
|
|
886
928
|
readonly threadMessage: {
|
|
887
929
|
attachments: [{
|
|
888
930
|
readonly sourceField: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThreadList.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreadList.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAOlE,KAAK,iBAAiB,GAAG;IACvB,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,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDzB,CAAA"}
|
|
@@ -35,7 +35,7 @@ export const getThreadList = syncedQueryWithContext('getThreadList', parseArgs,
|
|
|
35
35
|
}
|
|
36
36
|
if (where?.labelIds && where.labelIds.length > 0) {
|
|
37
37
|
for (const labelId of where.labelIds) {
|
|
38
|
-
query = query.
|
|
38
|
+
query = query.whereExists('threadByLabel', x => x.where('labelId', labelId));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
if (where?.messageIds && where.messageIds.length > 0) {
|
|
@@ -545,6 +545,28 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
545
545
|
} & {
|
|
546
546
|
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
547
547
|
};
|
|
548
|
+
readonly threadByLabel: {
|
|
549
|
+
name: "threadByLabel";
|
|
550
|
+
columns: {
|
|
551
|
+
readonly labelId: {
|
|
552
|
+
type: "string";
|
|
553
|
+
optional: false;
|
|
554
|
+
customType: string;
|
|
555
|
+
} & {
|
|
556
|
+
serverName: string;
|
|
557
|
+
};
|
|
558
|
+
readonly threadId: {
|
|
559
|
+
type: "string";
|
|
560
|
+
optional: false;
|
|
561
|
+
customType: string;
|
|
562
|
+
} & {
|
|
563
|
+
serverName: string;
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
primaryKey: readonly [string, ...string[]];
|
|
567
|
+
} & {
|
|
568
|
+
primaryKey: ["labelId", "threadId"];
|
|
569
|
+
};
|
|
548
570
|
readonly threadMessage: {
|
|
549
571
|
name: "threadMessage";
|
|
550
572
|
columns: {
|
|
@@ -856,6 +878,12 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
856
878
|
readonly destSchema: "threadMessage";
|
|
857
879
|
readonly cardinality: "many";
|
|
858
880
|
}];
|
|
881
|
+
threadByLabel: [{
|
|
882
|
+
readonly sourceField: string[];
|
|
883
|
+
readonly destField: ("labelId" | "threadId")[];
|
|
884
|
+
readonly destSchema: "threadByLabel";
|
|
885
|
+
readonly cardinality: "many";
|
|
886
|
+
}];
|
|
859
887
|
user: [{
|
|
860
888
|
readonly sourceField: string[];
|
|
861
889
|
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
@@ -883,6 +911,20 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
883
911
|
readonly cardinality: "one";
|
|
884
912
|
}];
|
|
885
913
|
};
|
|
914
|
+
readonly threadByLabel: {
|
|
915
|
+
label: [{
|
|
916
|
+
readonly sourceField: string[];
|
|
917
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
918
|
+
readonly destSchema: "accountLabel";
|
|
919
|
+
readonly cardinality: "one";
|
|
920
|
+
}];
|
|
921
|
+
thread: [{
|
|
922
|
+
readonly sourceField: string[];
|
|
923
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
924
|
+
readonly destSchema: "thread";
|
|
925
|
+
readonly cardinality: "one";
|
|
926
|
+
}];
|
|
927
|
+
};
|
|
886
928
|
readonly threadMessage: {
|
|
887
929
|
attachments: [{
|
|
888
930
|
readonly sourceField: string[];
|
|
@@ -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;AAOlE,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,CAAA;AAoBD,eAAO,MAAM,UAAU
|
|
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;AAOlE,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;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;;;;;;;;;;;;;;GAmDtB,CAAA"}
|
|
@@ -35,7 +35,7 @@ export const getThreads = syncedQueryWithContext('getThreads', parseArgs, ({ use
|
|
|
35
35
|
}
|
|
36
36
|
if (where?.labelIds && where.labelIds.length > 0) {
|
|
37
37
|
for (const labelId of where.labelIds) {
|
|
38
|
-
query = query.
|
|
38
|
+
query = query.whereExists('threadByLabel', x => x.where('labelId', labelId));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
if (where?.messageIds && where.messageIds.length > 0) {
|