@marcoappio/marco-config 2.0.487 → 2.0.488
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 +103 -103
- package/dist/zero/mutators/threadMutators/threadMutators.js +8 -8
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +63 -63
- package/dist/zero/queries/getAccounts.d.ts +6 -6
- package/dist/zero/queries/getContacts.d.ts +6 -6
- package/dist/zero/queries/getDrafts.d.ts +6 -6
- package/dist/zero/queries/getThread.d.ts +6 -6
- package/dist/zero/queries/getThreadList.d.ts +6 -6
- package/dist/zero/queries/getThreads.d.ts +6 -6
- package/dist/zero/queries/getUser.d.ts +6 -6
- package/dist/zero/queries/index.d.ts +6 -6
- package/dist/zero/schema.d.ts +61 -61
- package/dist/zero/schema.js +8 -8
- package/package.json +1 -1
|
@@ -25,17 +25,17 @@ describe('threadMutators', () => {
|
|
|
25
25
|
const runExisting = mock(async () => null);
|
|
26
26
|
const oneExisting = mock(() => ({ run: runExisting }));
|
|
27
27
|
const whereLabelId = mock(() => ({ one: oneExisting }));
|
|
28
|
-
const
|
|
29
|
-
const
|
|
28
|
+
const runAllThreadLabels = mock(async () => [{ labelId: 'test-label-id-1', threadId: 'test-thread-id-1' }]);
|
|
29
|
+
const whereThreadLabel = mock((field) => {
|
|
30
30
|
if (field === 'threadId') {
|
|
31
|
-
return { run:
|
|
31
|
+
return { run: runAllThreadLabels, where: whereLabelId };
|
|
32
32
|
}
|
|
33
33
|
if (field === 'threadMessageId') {
|
|
34
34
|
return { where: whereLabelId };
|
|
35
35
|
}
|
|
36
36
|
return { where: whereLabelId };
|
|
37
37
|
});
|
|
38
|
-
const
|
|
38
|
+
const threadLabelInsert = mock(async () => { });
|
|
39
39
|
const threadUpdate = mock(async () => { });
|
|
40
40
|
const threadByLabelInsert = mock(async () => { });
|
|
41
41
|
const runThreadByLabel = mock(async () => null);
|
|
@@ -54,9 +54,9 @@ describe('threadMutators', () => {
|
|
|
54
54
|
delete: mock(async () => { }),
|
|
55
55
|
insert: threadByLabelInsert,
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
threadLabel: {
|
|
58
58
|
delete: mock(async () => { }),
|
|
59
|
-
insert:
|
|
59
|
+
insert: threadLabelInsert,
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
query: {
|
|
@@ -69,12 +69,12 @@ describe('threadMutators', () => {
|
|
|
69
69
|
threadByLabel: {
|
|
70
70
|
where: whereThreadByLabel,
|
|
71
71
|
},
|
|
72
|
+
threadLabel: {
|
|
73
|
+
where: whereThreadLabel,
|
|
74
|
+
},
|
|
72
75
|
threadMessage: {
|
|
73
76
|
where: whereMessages,
|
|
74
77
|
},
|
|
75
|
-
threadMessageLabelUid: {
|
|
76
|
-
where: whereThreadMessageLabelUid,
|
|
77
|
-
},
|
|
78
78
|
},
|
|
79
79
|
};
|
|
80
80
|
const mutators = createMutators();
|
|
@@ -83,14 +83,14 @@ describe('threadMutators', () => {
|
|
|
83
83
|
sourceLocations: [],
|
|
84
84
|
threadIds: ['test-thread-id-1'],
|
|
85
85
|
});
|
|
86
|
-
expect(
|
|
87
|
-
expect(
|
|
86
|
+
expect(threadLabelInsert).toHaveBeenCalledTimes(2);
|
|
87
|
+
expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
|
|
88
88
|
accountId: 'test-account-id-1',
|
|
89
89
|
labelId: 'test-label-id-1',
|
|
90
90
|
threadId: 'test-thread-id-1',
|
|
91
91
|
threadMessageId: 'test-message-id-1',
|
|
92
92
|
}));
|
|
93
|
-
expect(
|
|
93
|
+
expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
|
|
94
94
|
accountId: 'test-account-id-1',
|
|
95
95
|
labelId: 'test-label-id-1',
|
|
96
96
|
threadId: 'test-thread-id-1',
|
|
@@ -236,13 +236,13 @@ describe('threadMutators', () => {
|
|
|
236
236
|
const whereLabelAccount = mock(() => ({ where: whereLabelPath }));
|
|
237
237
|
const runExisting = mock(async () => existingRecords);
|
|
238
238
|
const whereLabelId = mock(() => ({ run: runExisting }));
|
|
239
|
-
const
|
|
239
|
+
const whereThreadLabel = mock((field) => {
|
|
240
240
|
if (field === 'threadId') {
|
|
241
241
|
return { run: runExisting, where: whereLabelId };
|
|
242
242
|
}
|
|
243
243
|
return { where: whereLabelId };
|
|
244
244
|
});
|
|
245
|
-
const
|
|
245
|
+
const threadLabelDelete = mock(async () => { });
|
|
246
246
|
const threadUpdate = mock(async () => { });
|
|
247
247
|
const threadByLabelDelete = mock(async () => { });
|
|
248
248
|
const runThreadByLabel = mock(async () => ({
|
|
@@ -264,8 +264,8 @@ describe('threadMutators', () => {
|
|
|
264
264
|
threadByLabel: {
|
|
265
265
|
delete: threadByLabelDelete,
|
|
266
266
|
},
|
|
267
|
-
|
|
268
|
-
delete:
|
|
267
|
+
threadLabel: {
|
|
268
|
+
delete: threadLabelDelete,
|
|
269
269
|
},
|
|
270
270
|
},
|
|
271
271
|
query: {
|
|
@@ -278,8 +278,8 @@ describe('threadMutators', () => {
|
|
|
278
278
|
threadByLabel: {
|
|
279
279
|
where: whereThreadByLabel,
|
|
280
280
|
},
|
|
281
|
-
|
|
282
|
-
where:
|
|
281
|
+
threadLabel: {
|
|
282
|
+
where: whereThreadLabel,
|
|
283
283
|
},
|
|
284
284
|
},
|
|
285
285
|
};
|
|
@@ -289,13 +289,13 @@ describe('threadMutators', () => {
|
|
|
289
289
|
sourceLocations: [],
|
|
290
290
|
threadIds: ['test-thread-id-1'],
|
|
291
291
|
});
|
|
292
|
-
expect(
|
|
293
|
-
expect(
|
|
292
|
+
expect(threadLabelDelete).toHaveBeenCalledTimes(2);
|
|
293
|
+
expect(threadLabelDelete).toHaveBeenCalledWith({
|
|
294
294
|
accountId: 'test-account-id-1',
|
|
295
295
|
labelId: 'test-label-id-1',
|
|
296
296
|
threadMessageId: 'test-message-id-1',
|
|
297
297
|
});
|
|
298
|
-
expect(
|
|
298
|
+
expect(threadLabelDelete).toHaveBeenCalledWith({
|
|
299
299
|
accountId: 'test-account-id-1',
|
|
300
300
|
labelId: 'test-label-id-1',
|
|
301
301
|
threadMessageId: 'test-message-id-2',
|
|
@@ -331,14 +331,14 @@ describe('threadMutators', () => {
|
|
|
331
331
|
}
|
|
332
332
|
return { where: whereSpecialUse };
|
|
333
333
|
});
|
|
334
|
-
const
|
|
334
|
+
const runAllThreadLabels = mock(async () => [
|
|
335
335
|
{ labelId: 'test-inbox-label-id', threadId: 'test-thread-id-1', threadMessageId: 'test-message-id-1' },
|
|
336
336
|
]);
|
|
337
|
-
const
|
|
337
|
+
const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
|
|
338
338
|
const runMessages = mock(async () => messageRecords);
|
|
339
339
|
const whereMessages = mock(() => ({ run: runMessages }));
|
|
340
|
-
const
|
|
341
|
-
const
|
|
340
|
+
const threadLabelDelete = mock(async () => { });
|
|
341
|
+
const threadLabelInsert = mock(async () => { });
|
|
342
342
|
const threadUpdate = mock(async () => { });
|
|
343
343
|
const threadByLabelDelete = mock(async () => { });
|
|
344
344
|
const threadByLabelInsert = mock(async () => { });
|
|
@@ -362,9 +362,9 @@ describe('threadMutators', () => {
|
|
|
362
362
|
delete: threadByLabelDelete,
|
|
363
363
|
insert: threadByLabelInsert,
|
|
364
364
|
},
|
|
365
|
-
|
|
366
|
-
delete:
|
|
367
|
-
insert:
|
|
365
|
+
threadLabel: {
|
|
366
|
+
delete: threadLabelDelete,
|
|
367
|
+
insert: threadLabelInsert,
|
|
368
368
|
},
|
|
369
369
|
},
|
|
370
370
|
query: {
|
|
@@ -377,12 +377,12 @@ describe('threadMutators', () => {
|
|
|
377
377
|
threadByLabel: {
|
|
378
378
|
where: whereThreadByLabel,
|
|
379
379
|
},
|
|
380
|
+
threadLabel: {
|
|
381
|
+
where: whereThreadLabel,
|
|
382
|
+
},
|
|
380
383
|
threadMessage: {
|
|
381
384
|
where: whereMessages,
|
|
382
385
|
},
|
|
383
|
-
threadMessageLabelUid: {
|
|
384
|
-
where: whereThreadMessageLabelUid,
|
|
385
|
-
},
|
|
386
386
|
},
|
|
387
387
|
};
|
|
388
388
|
const mutators = createMutators();
|
|
@@ -390,12 +390,12 @@ describe('threadMutators', () => {
|
|
|
390
390
|
sourceLocations: [],
|
|
391
391
|
threadIds: ['test-thread-id-1'],
|
|
392
392
|
});
|
|
393
|
-
expect(
|
|
393
|
+
expect(threadLabelDelete).toHaveBeenCalledWith({
|
|
394
394
|
accountId: 'test-account-id-1',
|
|
395
395
|
labelId: 'test-inbox-label-id',
|
|
396
396
|
threadMessageId: 'test-message-id-1',
|
|
397
397
|
});
|
|
398
|
-
expect(
|
|
398
|
+
expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
|
|
399
399
|
accountId: 'test-account-id-1',
|
|
400
400
|
labelId: 'test-archive-label-id',
|
|
401
401
|
threadId: 'test-thread-id-1',
|
|
@@ -454,14 +454,14 @@ describe('threadMutators', () => {
|
|
|
454
454
|
}
|
|
455
455
|
return { where: whereSpecialUse };
|
|
456
456
|
});
|
|
457
|
-
const
|
|
457
|
+
const runAllThreadLabels = mock(async () => [
|
|
458
458
|
{ labelId: 'test-archive-label-id', threadId: 'test-thread-id-1', threadMessageId: 'test-message-id-1' },
|
|
459
459
|
]);
|
|
460
|
-
const
|
|
460
|
+
const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
|
|
461
461
|
const runMessages = mock(async () => messageRecords);
|
|
462
462
|
const whereMessages = mock(() => ({ run: runMessages }));
|
|
463
|
-
const
|
|
464
|
-
const
|
|
463
|
+
const threadLabelDelete = mock(async () => { });
|
|
464
|
+
const threadLabelInsert = mock(async () => { });
|
|
465
465
|
const threadUpdate = mock(async () => { });
|
|
466
466
|
const threadByLabelDelete = mock(async () => { });
|
|
467
467
|
const threadByLabelInsert = mock(async () => { });
|
|
@@ -485,9 +485,9 @@ describe('threadMutators', () => {
|
|
|
485
485
|
delete: threadByLabelDelete,
|
|
486
486
|
insert: threadByLabelInsert,
|
|
487
487
|
},
|
|
488
|
-
|
|
489
|
-
delete:
|
|
490
|
-
insert:
|
|
488
|
+
threadLabel: {
|
|
489
|
+
delete: threadLabelDelete,
|
|
490
|
+
insert: threadLabelInsert,
|
|
491
491
|
},
|
|
492
492
|
},
|
|
493
493
|
query: {
|
|
@@ -500,12 +500,12 @@ describe('threadMutators', () => {
|
|
|
500
500
|
threadByLabel: {
|
|
501
501
|
where: whereThreadByLabel,
|
|
502
502
|
},
|
|
503
|
+
threadLabel: {
|
|
504
|
+
where: whereThreadLabel,
|
|
505
|
+
},
|
|
503
506
|
threadMessage: {
|
|
504
507
|
where: whereMessages,
|
|
505
508
|
},
|
|
506
|
-
threadMessageLabelUid: {
|
|
507
|
-
where: whereThreadMessageLabelUid,
|
|
508
|
-
},
|
|
509
509
|
},
|
|
510
510
|
};
|
|
511
511
|
const mutators = createMutators();
|
|
@@ -513,12 +513,12 @@ describe('threadMutators', () => {
|
|
|
513
513
|
sourceLocations: [],
|
|
514
514
|
threadIds: ['test-thread-id-1'],
|
|
515
515
|
});
|
|
516
|
-
expect(
|
|
516
|
+
expect(threadLabelDelete).toHaveBeenCalledWith({
|
|
517
517
|
accountId: 'test-account-id-1',
|
|
518
518
|
labelId: 'test-archive-label-id',
|
|
519
519
|
threadMessageId: 'test-message-id-1',
|
|
520
520
|
});
|
|
521
|
-
expect(
|
|
521
|
+
expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
|
|
522
522
|
accountId: 'test-account-id-1',
|
|
523
523
|
labelId: 'test-inbox-label-id',
|
|
524
524
|
threadId: 'test-thread-id-1',
|
|
@@ -688,11 +688,11 @@ describe('threadMutators', () => {
|
|
|
688
688
|
const oneLabel = mock(() => ({ run: runSpam }));
|
|
689
689
|
const whereSpecialUse = mock(() => ({ one: oneLabel }));
|
|
690
690
|
const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
|
|
691
|
-
const
|
|
692
|
-
const
|
|
691
|
+
const runAllThreadLabels = mock(async () => []);
|
|
692
|
+
const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
|
|
693
693
|
const runMessages = mock(async () => messageRecords);
|
|
694
694
|
const whereMessages = mock(() => ({ run: runMessages }));
|
|
695
|
-
const
|
|
695
|
+
const threadLabelInsert = mock(async () => { });
|
|
696
696
|
const threadUpdate = mock(async () => { });
|
|
697
697
|
const threadByLabelInsert = mock(async () => { });
|
|
698
698
|
const transaction = {
|
|
@@ -707,9 +707,9 @@ describe('threadMutators', () => {
|
|
|
707
707
|
delete: mock(async () => { }),
|
|
708
708
|
insert: threadByLabelInsert,
|
|
709
709
|
},
|
|
710
|
-
|
|
710
|
+
threadLabel: {
|
|
711
711
|
delete: mock(async () => { }),
|
|
712
|
-
insert:
|
|
712
|
+
insert: threadLabelInsert,
|
|
713
713
|
},
|
|
714
714
|
},
|
|
715
715
|
query: {
|
|
@@ -719,12 +719,12 @@ describe('threadMutators', () => {
|
|
|
719
719
|
thread: {
|
|
720
720
|
where: whereThread,
|
|
721
721
|
},
|
|
722
|
+
threadLabel: {
|
|
723
|
+
where: whereThreadLabel,
|
|
724
|
+
},
|
|
722
725
|
threadMessage: {
|
|
723
726
|
where: whereMessages,
|
|
724
727
|
},
|
|
725
|
-
threadMessageLabelUid: {
|
|
726
|
-
where: whereThreadMessageLabelUid,
|
|
727
|
-
},
|
|
728
728
|
},
|
|
729
729
|
};
|
|
730
730
|
const mutators = createMutators();
|
|
@@ -732,7 +732,7 @@ describe('threadMutators', () => {
|
|
|
732
732
|
sourceLocations: [],
|
|
733
733
|
threadIds: ['test-thread-id-1'],
|
|
734
734
|
});
|
|
735
|
-
expect(
|
|
735
|
+
expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
|
|
736
736
|
accountId: 'test-account-id-1',
|
|
737
737
|
labelId: 'test-spam-label-id',
|
|
738
738
|
threadId: 'test-thread-id-1',
|
|
@@ -763,11 +763,11 @@ describe('threadMutators', () => {
|
|
|
763
763
|
const oneLabel = mock(() => ({ run: runTrash }));
|
|
764
764
|
const whereSpecialUse = mock(() => ({ one: oneLabel }));
|
|
765
765
|
const whereLabelAccount = mock(() => ({ where: whereSpecialUse }));
|
|
766
|
-
const
|
|
767
|
-
const
|
|
766
|
+
const runAllThreadLabels = mock(async () => []);
|
|
767
|
+
const whereThreadLabel = mock(() => ({ run: runAllThreadLabels }));
|
|
768
768
|
const runMessages = mock(async () => messageRecords);
|
|
769
769
|
const whereMessages = mock(() => ({ run: runMessages }));
|
|
770
|
-
const
|
|
770
|
+
const threadLabelInsert = mock(async () => { });
|
|
771
771
|
const threadUpdate = mock(async () => { });
|
|
772
772
|
const threadByLabelInsert = mock(async () => { });
|
|
773
773
|
const transaction = {
|
|
@@ -782,9 +782,9 @@ describe('threadMutators', () => {
|
|
|
782
782
|
delete: mock(async () => { }),
|
|
783
783
|
insert: threadByLabelInsert,
|
|
784
784
|
},
|
|
785
|
-
|
|
785
|
+
threadLabel: {
|
|
786
786
|
delete: mock(async () => { }),
|
|
787
|
-
insert:
|
|
787
|
+
insert: threadLabelInsert,
|
|
788
788
|
},
|
|
789
789
|
},
|
|
790
790
|
query: {
|
|
@@ -794,12 +794,12 @@ describe('threadMutators', () => {
|
|
|
794
794
|
thread: {
|
|
795
795
|
where: whereThread,
|
|
796
796
|
},
|
|
797
|
+
threadLabel: {
|
|
798
|
+
where: whereThreadLabel,
|
|
799
|
+
},
|
|
797
800
|
threadMessage: {
|
|
798
801
|
where: whereMessages,
|
|
799
802
|
},
|
|
800
|
-
threadMessageLabelUid: {
|
|
801
|
-
where: whereThreadMessageLabelUid,
|
|
802
|
-
},
|
|
803
803
|
},
|
|
804
804
|
};
|
|
805
805
|
const mutators = createMutators();
|
|
@@ -807,7 +807,7 @@ describe('threadMutators', () => {
|
|
|
807
807
|
sourceLocations: [],
|
|
808
808
|
threadIds: ['test-thread-id-1'],
|
|
809
809
|
});
|
|
810
|
-
expect(
|
|
810
|
+
expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
|
|
811
811
|
accountId: 'test-account-id-1',
|
|
812
812
|
labelId: 'test-trash-label-id',
|
|
813
813
|
threadId: 'test-thread-id-1',
|
|
@@ -529,8 +529,8 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
529
529
|
} & {
|
|
530
530
|
primaryKey: ["id"];
|
|
531
531
|
};
|
|
532
|
-
readonly
|
|
533
|
-
name: "
|
|
532
|
+
readonly threadLabel: {
|
|
533
|
+
name: "threadLabel";
|
|
534
534
|
columns: {
|
|
535
535
|
readonly accountId: {
|
|
536
536
|
type: "string";
|
|
@@ -863,7 +863,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
863
863
|
threads: [{
|
|
864
864
|
readonly sourceField: string[];
|
|
865
865
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
866
|
-
readonly destSchema: "
|
|
866
|
+
readonly destSchema: "threadLabel";
|
|
867
867
|
readonly cardinality: "many";
|
|
868
868
|
}, {
|
|
869
869
|
readonly sourceField: string[];
|
|
@@ -910,7 +910,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
910
910
|
labels: [{
|
|
911
911
|
readonly sourceField: string[];
|
|
912
912
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
913
|
-
readonly destSchema: "
|
|
913
|
+
readonly destSchema: "threadLabel";
|
|
914
914
|
readonly cardinality: "many";
|
|
915
915
|
}, {
|
|
916
916
|
readonly sourceField: string[];
|
|
@@ -937,7 +937,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
937
937
|
readonly cardinality: "one";
|
|
938
938
|
}];
|
|
939
939
|
};
|
|
940
|
-
readonly
|
|
940
|
+
readonly threadLabel: {
|
|
941
941
|
label: [{
|
|
942
942
|
readonly sourceField: string[];
|
|
943
943
|
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
@@ -981,7 +981,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
981
981
|
labels: [{
|
|
982
982
|
readonly sourceField: string[];
|
|
983
983
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
984
|
-
readonly destSchema: "
|
|
984
|
+
readonly destSchema: "threadLabel";
|
|
985
985
|
readonly cardinality: "many";
|
|
986
986
|
}, {
|
|
987
987
|
readonly sourceField: string[];
|
|
@@ -538,8 +538,8 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
538
538
|
} & {
|
|
539
539
|
primaryKey: ["id"];
|
|
540
540
|
};
|
|
541
|
-
readonly
|
|
542
|
-
name: "
|
|
541
|
+
readonly threadLabel: {
|
|
542
|
+
name: "threadLabel";
|
|
543
543
|
columns: {
|
|
544
544
|
readonly accountId: {
|
|
545
545
|
type: "string";
|
|
@@ -872,7 +872,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
872
872
|
threads: [{
|
|
873
873
|
readonly sourceField: string[];
|
|
874
874
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
875
|
-
readonly destSchema: "
|
|
875
|
+
readonly destSchema: "threadLabel";
|
|
876
876
|
readonly cardinality: "many";
|
|
877
877
|
}, {
|
|
878
878
|
readonly sourceField: string[];
|
|
@@ -919,7 +919,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
919
919
|
labels: [{
|
|
920
920
|
readonly sourceField: string[];
|
|
921
921
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
922
|
-
readonly destSchema: "
|
|
922
|
+
readonly destSchema: "threadLabel";
|
|
923
923
|
readonly cardinality: "many";
|
|
924
924
|
}, {
|
|
925
925
|
readonly sourceField: string[];
|
|
@@ -946,7 +946,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
946
946
|
readonly cardinality: "one";
|
|
947
947
|
}];
|
|
948
948
|
};
|
|
949
|
-
readonly
|
|
949
|
+
readonly threadLabel: {
|
|
950
950
|
label: [{
|
|
951
951
|
readonly sourceField: string[];
|
|
952
952
|
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
@@ -990,7 +990,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
990
990
|
labels: [{
|
|
991
991
|
readonly sourceField: string[];
|
|
992
992
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
993
|
-
readonly destSchema: "
|
|
993
|
+
readonly destSchema: "threadLabel";
|
|
994
994
|
readonly cardinality: "many";
|
|
995
995
|
}, {
|
|
996
996
|
readonly sourceField: string[];
|
|
@@ -535,8 +535,8 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
535
535
|
} & {
|
|
536
536
|
primaryKey: ["id"];
|
|
537
537
|
};
|
|
538
|
-
readonly
|
|
539
|
-
name: "
|
|
538
|
+
readonly threadLabel: {
|
|
539
|
+
name: "threadLabel";
|
|
540
540
|
columns: {
|
|
541
541
|
readonly accountId: {
|
|
542
542
|
type: "string";
|
|
@@ -869,7 +869,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
869
869
|
threads: [{
|
|
870
870
|
readonly sourceField: string[];
|
|
871
871
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
872
|
-
readonly destSchema: "
|
|
872
|
+
readonly destSchema: "threadLabel";
|
|
873
873
|
readonly cardinality: "many";
|
|
874
874
|
}, {
|
|
875
875
|
readonly sourceField: string[];
|
|
@@ -916,7 +916,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
916
916
|
labels: [{
|
|
917
917
|
readonly sourceField: string[];
|
|
918
918
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
919
|
-
readonly destSchema: "
|
|
919
|
+
readonly destSchema: "threadLabel";
|
|
920
920
|
readonly cardinality: "many";
|
|
921
921
|
}, {
|
|
922
922
|
readonly sourceField: string[];
|
|
@@ -943,7 +943,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
943
943
|
readonly cardinality: "one";
|
|
944
944
|
}];
|
|
945
945
|
};
|
|
946
|
-
readonly
|
|
946
|
+
readonly threadLabel: {
|
|
947
947
|
label: [{
|
|
948
948
|
readonly sourceField: string[];
|
|
949
949
|
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
@@ -987,7 +987,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
987
987
|
labels: [{
|
|
988
988
|
readonly sourceField: string[];
|
|
989
989
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
990
|
-
readonly destSchema: "
|
|
990
|
+
readonly destSchema: "threadLabel";
|
|
991
991
|
readonly cardinality: "many";
|
|
992
992
|
}, {
|
|
993
993
|
readonly sourceField: string[];
|
|
@@ -532,8 +532,8 @@ export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread"
|
|
|
532
532
|
} & {
|
|
533
533
|
primaryKey: ["id"];
|
|
534
534
|
};
|
|
535
|
-
readonly
|
|
536
|
-
name: "
|
|
535
|
+
readonly threadLabel: {
|
|
536
|
+
name: "threadLabel";
|
|
537
537
|
columns: {
|
|
538
538
|
readonly accountId: {
|
|
539
539
|
type: "string";
|
|
@@ -866,7 +866,7 @@ export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread"
|
|
|
866
866
|
threads: [{
|
|
867
867
|
readonly sourceField: string[];
|
|
868
868
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
869
|
-
readonly destSchema: "
|
|
869
|
+
readonly destSchema: "threadLabel";
|
|
870
870
|
readonly cardinality: "many";
|
|
871
871
|
}, {
|
|
872
872
|
readonly sourceField: string[];
|
|
@@ -913,7 +913,7 @@ export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread"
|
|
|
913
913
|
labels: [{
|
|
914
914
|
readonly sourceField: string[];
|
|
915
915
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
916
|
-
readonly destSchema: "
|
|
916
|
+
readonly destSchema: "threadLabel";
|
|
917
917
|
readonly cardinality: "many";
|
|
918
918
|
}, {
|
|
919
919
|
readonly sourceField: string[];
|
|
@@ -940,7 +940,7 @@ export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread"
|
|
|
940
940
|
readonly cardinality: "one";
|
|
941
941
|
}];
|
|
942
942
|
};
|
|
943
|
-
readonly
|
|
943
|
+
readonly threadLabel: {
|
|
944
944
|
label: [{
|
|
945
945
|
readonly sourceField: string[];
|
|
946
946
|
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
@@ -984,7 +984,7 @@ export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread"
|
|
|
984
984
|
labels: [{
|
|
985
985
|
readonly sourceField: string[];
|
|
986
986
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
987
|
-
readonly destSchema: "
|
|
987
|
+
readonly destSchema: "threadLabel";
|
|
988
988
|
readonly cardinality: "many";
|
|
989
989
|
}, {
|
|
990
990
|
readonly sourceField: string[];
|
|
@@ -541,8 +541,8 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
541
541
|
} & {
|
|
542
542
|
primaryKey: ["id"];
|
|
543
543
|
};
|
|
544
|
-
readonly
|
|
545
|
-
name: "
|
|
544
|
+
readonly threadLabel: {
|
|
545
|
+
name: "threadLabel";
|
|
546
546
|
columns: {
|
|
547
547
|
readonly accountId: {
|
|
548
548
|
type: "string";
|
|
@@ -875,7 +875,7 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
875
875
|
threads: [{
|
|
876
876
|
readonly sourceField: string[];
|
|
877
877
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
878
|
-
readonly destSchema: "
|
|
878
|
+
readonly destSchema: "threadLabel";
|
|
879
879
|
readonly cardinality: "many";
|
|
880
880
|
}, {
|
|
881
881
|
readonly sourceField: string[];
|
|
@@ -922,7 +922,7 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
922
922
|
labels: [{
|
|
923
923
|
readonly sourceField: string[];
|
|
924
924
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
925
|
-
readonly destSchema: "
|
|
925
|
+
readonly destSchema: "threadLabel";
|
|
926
926
|
readonly cardinality: "many";
|
|
927
927
|
}, {
|
|
928
928
|
readonly sourceField: string[];
|
|
@@ -949,7 +949,7 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
949
949
|
readonly cardinality: "one";
|
|
950
950
|
}];
|
|
951
951
|
};
|
|
952
|
-
readonly
|
|
952
|
+
readonly threadLabel: {
|
|
953
953
|
label: [{
|
|
954
954
|
readonly sourceField: string[];
|
|
955
955
|
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
@@ -993,7 +993,7 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
993
993
|
labels: [{
|
|
994
994
|
readonly sourceField: string[];
|
|
995
995
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
996
|
-
readonly destSchema: "
|
|
996
|
+
readonly destSchema: "threadLabel";
|
|
997
997
|
readonly cardinality: "many";
|
|
998
998
|
}, {
|
|
999
999
|
readonly sourceField: string[];
|
|
@@ -541,8 +541,8 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
541
541
|
} & {
|
|
542
542
|
primaryKey: ["id"];
|
|
543
543
|
};
|
|
544
|
-
readonly
|
|
545
|
-
name: "
|
|
544
|
+
readonly threadLabel: {
|
|
545
|
+
name: "threadLabel";
|
|
546
546
|
columns: {
|
|
547
547
|
readonly accountId: {
|
|
548
548
|
type: "string";
|
|
@@ -875,7 +875,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
875
875
|
threads: [{
|
|
876
876
|
readonly sourceField: string[];
|
|
877
877
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
878
|
-
readonly destSchema: "
|
|
878
|
+
readonly destSchema: "threadLabel";
|
|
879
879
|
readonly cardinality: "many";
|
|
880
880
|
}, {
|
|
881
881
|
readonly sourceField: string[];
|
|
@@ -922,7 +922,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
922
922
|
labels: [{
|
|
923
923
|
readonly sourceField: string[];
|
|
924
924
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
925
|
-
readonly destSchema: "
|
|
925
|
+
readonly destSchema: "threadLabel";
|
|
926
926
|
readonly cardinality: "many";
|
|
927
927
|
}, {
|
|
928
928
|
readonly sourceField: string[];
|
|
@@ -949,7 +949,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
949
949
|
readonly cardinality: "one";
|
|
950
950
|
}];
|
|
951
951
|
};
|
|
952
|
-
readonly
|
|
952
|
+
readonly threadLabel: {
|
|
953
953
|
label: [{
|
|
954
954
|
readonly sourceField: string[];
|
|
955
955
|
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
@@ -993,7 +993,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
993
993
|
labels: [{
|
|
994
994
|
readonly sourceField: string[];
|
|
995
995
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
996
|
-
readonly destSchema: "
|
|
996
|
+
readonly destSchema: "threadLabel";
|
|
997
997
|
readonly cardinality: "many";
|
|
998
998
|
}, {
|
|
999
999
|
readonly sourceField: string[];
|