@marcoappio/marco-config 2.0.485 → 2.0.487
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 +217 -151
- package/dist/zero/index.d.ts.map +1 -1
- 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 +19 -12
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +19 -12
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +19 -12
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThread.d.ts +20 -12
- package/dist/zero/queries/getThread.d.ts.map +1 -1
- package/dist/zero/queries/getThreadList.d.ts +20 -12
- package/dist/zero/queries/getThreadList.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.d.ts +20 -12
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getUser.d.ts +19 -12
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +19 -12
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +81 -67
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +9 -8
- package/package.json +1 -1
package/dist/zero/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAU,CAAA;AAEV,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -8,7 +8,7 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
|
|
|
8
8
|
}
|
|
9
9
|
const [targetLabel, threadLabels] = await Promise.all([
|
|
10
10
|
tx.query.accountLabel.where('accountId', thread.accountId).where('specialUse', targetSpecialUse).one().run(),
|
|
11
|
-
tx.query.
|
|
11
|
+
tx.query.threadMessageLabelUid.where('threadId', threadId).run(),
|
|
12
12
|
]);
|
|
13
13
|
if (!targetLabel) {
|
|
14
14
|
throw new Error(MutationError.ENTITY_NOT_FOUND);
|
|
@@ -30,7 +30,7 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
|
|
|
30
30
|
uidValidity: label.uidValidity,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
threadLabelDeletePromises.push(tx.mutate.
|
|
33
|
+
threadLabelDeletePromises.push(tx.mutate.threadMessageLabelUid.delete({
|
|
34
34
|
accountId: thread.accountId,
|
|
35
35
|
labelId: label.labelId,
|
|
36
36
|
threadMessageId: label.threadMessageId,
|
|
@@ -51,7 +51,7 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
|
|
|
51
51
|
const messages = await tx.query.threadMessage.where('threadId', threadId).run();
|
|
52
52
|
const baseTimestamp = Date.now();
|
|
53
53
|
await Promise.all([
|
|
54
|
-
...messages.map((message, i) => tx.mutate.
|
|
54
|
+
...messages.map((message, i) => tx.mutate.threadMessageLabelUid.insert({
|
|
55
55
|
accountId: thread.accountId,
|
|
56
56
|
labelId: targetLabel.id,
|
|
57
57
|
lastSyncedAt: 0,
|
|
@@ -113,11 +113,11 @@ export const createThreadMutators = (_authData, callbacks) => ({
|
|
|
113
113
|
: []),
|
|
114
114
|
]);
|
|
115
115
|
}
|
|
116
|
-
const existingChecks = await Promise.all(messages.map(message => tx.query.
|
|
116
|
+
const existingChecks = await Promise.all(messages.map(message => tx.query.threadMessageLabelUid.where('threadMessageId', message.id).where('labelId', label.id).one().run()));
|
|
117
117
|
const messagesToInsert = messages.filter((_, i) => !existingChecks[i]);
|
|
118
118
|
const baseTimestamp = Date.now();
|
|
119
119
|
if (messagesToInsert.length > 0) {
|
|
120
|
-
await Promise.all(messagesToInsert.map((message, i) => tx.mutate.
|
|
120
|
+
await Promise.all(messagesToInsert.map((message, i) => tx.mutate.threadMessageLabelUid.insert({
|
|
121
121
|
accountId: thread.accountId,
|
|
122
122
|
labelId: label.id,
|
|
123
123
|
lastSyncedAt: 0,
|
|
@@ -127,7 +127,7 @@ export const createThreadMutators = (_authData, callbacks) => ({
|
|
|
127
127
|
uidValidity: label.uidValidity ?? 0,
|
|
128
128
|
})));
|
|
129
129
|
}
|
|
130
|
-
const allLabels = await tx.query.
|
|
130
|
+
const allLabels = await tx.query.threadMessageLabelUid.where('threadId', threadId).run();
|
|
131
131
|
await tx.mutate.thread.update({
|
|
132
132
|
id: threadId,
|
|
133
133
|
labelIdList: buildLabelIdList([...new Set(allLabels.map(x => x.labelId))]),
|
|
@@ -165,7 +165,7 @@ export const createThreadMutators = (_authData, callbacks) => ({
|
|
|
165
165
|
}
|
|
166
166
|
const [label, existingLabels] = await Promise.all([
|
|
167
167
|
tx.query.accountLabel.where('accountId', thread.accountId).where('path', args.labelPath).one().run(),
|
|
168
|
-
tx.query.
|
|
168
|
+
tx.query.threadMessageLabelUid.where('threadId', threadId).run(),
|
|
169
169
|
]);
|
|
170
170
|
if (!label) {
|
|
171
171
|
throw new Error(MutationError.ENTITY_NOT_FOUND);
|
|
@@ -187,7 +187,7 @@ export const createThreadMutators = (_authData, callbacks) => ({
|
|
|
187
187
|
const currentLabelIds = new Set(threadsUtils.parseLabelIdList(thread.labelIdList));
|
|
188
188
|
currentLabelIds.delete(label.id);
|
|
189
189
|
await Promise.all([
|
|
190
|
-
...labelsForThisLabel.map(existing => tx.mutate.
|
|
190
|
+
...labelsForThisLabel.map(existing => tx.mutate.threadMessageLabelUid.delete({
|
|
191
191
|
accountId: thread.accountId,
|
|
192
192
|
labelId: label.id,
|
|
193
193
|
threadMessageId: existing.threadMessageId,
|
|
@@ -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 runAllThreadMessageLabels = mock(async () => [{ labelId: 'test-label-id-1', threadId: 'test-thread-id-1' }]);
|
|
29
|
+
const whereThreadMessageLabelUid = mock((field) => {
|
|
30
30
|
if (field === 'threadId') {
|
|
31
|
-
return { run:
|
|
31
|
+
return { run: runAllThreadMessageLabels, 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 threadMessageLabelUidInsert = 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
|
+
threadMessageLabelUid: {
|
|
58
58
|
delete: mock(async () => { }),
|
|
59
|
-
insert:
|
|
59
|
+
insert: threadMessageLabelUidInsert,
|
|
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
|
-
},
|
|
75
72
|
threadMessage: {
|
|
76
73
|
where: whereMessages,
|
|
77
74
|
},
|
|
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(threadMessageLabelUidInsert).toHaveBeenCalledTimes(2);
|
|
87
|
+
expect(threadMessageLabelUidInsert).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(threadMessageLabelUidInsert).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 whereThreadMessageLabelUid = 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 threadMessageLabelUidDelete = 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
|
+
threadMessageLabelUid: {
|
|
268
|
+
delete: threadMessageLabelUidDelete,
|
|
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
|
+
threadMessageLabelUid: {
|
|
282
|
+
where: whereThreadMessageLabelUid,
|
|
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(threadMessageLabelUidDelete).toHaveBeenCalledTimes(2);
|
|
293
|
+
expect(threadMessageLabelUidDelete).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(threadMessageLabelUidDelete).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 runAllThreadMessageLabels = 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 whereThreadMessageLabelUid = mock(() => ({ run: runAllThreadMessageLabels }));
|
|
338
338
|
const runMessages = mock(async () => messageRecords);
|
|
339
339
|
const whereMessages = mock(() => ({ run: runMessages }));
|
|
340
|
-
const
|
|
341
|
-
const
|
|
340
|
+
const threadMessageLabelUidDelete = mock(async () => { });
|
|
341
|
+
const threadMessageLabelUidInsert = 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
|
+
threadMessageLabelUid: {
|
|
366
|
+
delete: threadMessageLabelUidDelete,
|
|
367
|
+
insert: threadMessageLabelUidInsert,
|
|
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
|
-
},
|
|
383
380
|
threadMessage: {
|
|
384
381
|
where: whereMessages,
|
|
385
382
|
},
|
|
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(threadMessageLabelUidDelete).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(threadMessageLabelUidInsert).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 runAllThreadMessageLabels = 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 whereThreadMessageLabelUid = mock(() => ({ run: runAllThreadMessageLabels }));
|
|
461
461
|
const runMessages = mock(async () => messageRecords);
|
|
462
462
|
const whereMessages = mock(() => ({ run: runMessages }));
|
|
463
|
-
const
|
|
464
|
-
const
|
|
463
|
+
const threadMessageLabelUidDelete = mock(async () => { });
|
|
464
|
+
const threadMessageLabelUidInsert = 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
|
+
threadMessageLabelUid: {
|
|
489
|
+
delete: threadMessageLabelUidDelete,
|
|
490
|
+
insert: threadMessageLabelUidInsert,
|
|
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
|
-
},
|
|
506
503
|
threadMessage: {
|
|
507
504
|
where: whereMessages,
|
|
508
505
|
},
|
|
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(threadMessageLabelUidDelete).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(threadMessageLabelUidInsert).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 runAllThreadMessageLabels = mock(async () => []);
|
|
692
|
+
const whereThreadMessageLabelUid = mock(() => ({ run: runAllThreadMessageLabels }));
|
|
693
693
|
const runMessages = mock(async () => messageRecords);
|
|
694
694
|
const whereMessages = mock(() => ({ run: runMessages }));
|
|
695
|
-
const
|
|
695
|
+
const threadMessageLabelUidInsert = 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
|
+
threadMessageLabelUid: {
|
|
711
711
|
delete: mock(async () => { }),
|
|
712
|
-
insert:
|
|
712
|
+
insert: threadMessageLabelUidInsert,
|
|
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
|
-
},
|
|
725
722
|
threadMessage: {
|
|
726
723
|
where: whereMessages,
|
|
727
724
|
},
|
|
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(threadMessageLabelUidInsert).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 runAllThreadMessageLabels = mock(async () => []);
|
|
767
|
+
const whereThreadMessageLabelUid = mock(() => ({ run: runAllThreadMessageLabels }));
|
|
768
768
|
const runMessages = mock(async () => messageRecords);
|
|
769
769
|
const whereMessages = mock(() => ({ run: runMessages }));
|
|
770
|
-
const
|
|
770
|
+
const threadMessageLabelUidInsert = 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
|
+
threadMessageLabelUid: {
|
|
786
786
|
delete: mock(async () => { }),
|
|
787
|
-
insert:
|
|
787
|
+
insert: threadMessageLabelUidInsert,
|
|
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
|
-
},
|
|
800
797
|
threadMessage: {
|
|
801
798
|
where: whereMessages,
|
|
802
799
|
},
|
|
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(threadMessageLabelUidInsert).toHaveBeenCalledWith(expect.objectContaining({
|
|
811
811
|
accountId: 'test-account-id-1',
|
|
812
812
|
labelId: 'test-trash-label-id',
|
|
813
813
|
threadId: 'test-thread-id-1',
|
|
@@ -463,6 +463,13 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
463
463
|
} & {
|
|
464
464
|
serverName: string;
|
|
465
465
|
};
|
|
466
|
+
readonly latestMessageId: {
|
|
467
|
+
type: "string";
|
|
468
|
+
optional: false;
|
|
469
|
+
customType: string;
|
|
470
|
+
} & {
|
|
471
|
+
serverName: string;
|
|
472
|
+
};
|
|
466
473
|
readonly messageCount: {
|
|
467
474
|
type: "number";
|
|
468
475
|
optional: false;
|
|
@@ -522,8 +529,8 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
522
529
|
} & {
|
|
523
530
|
primaryKey: ["id"];
|
|
524
531
|
};
|
|
525
|
-
readonly
|
|
526
|
-
name: "
|
|
532
|
+
readonly threadMessageLabelUid: {
|
|
533
|
+
name: "threadMessageLabelUid";
|
|
527
534
|
columns: {
|
|
528
535
|
readonly accountId: {
|
|
529
536
|
type: "string";
|
|
@@ -779,7 +786,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
779
786
|
}];
|
|
780
787
|
threads: [{
|
|
781
788
|
readonly sourceField: string[];
|
|
782
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
789
|
+
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
783
790
|
readonly destSchema: "thread";
|
|
784
791
|
readonly cardinality: "many";
|
|
785
792
|
}];
|
|
@@ -827,7 +834,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
827
834
|
}];
|
|
828
835
|
threads: [{
|
|
829
836
|
readonly sourceField: string[];
|
|
830
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
837
|
+
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
831
838
|
readonly destSchema: "thread";
|
|
832
839
|
readonly cardinality: "many";
|
|
833
840
|
}];
|
|
@@ -856,11 +863,11 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
856
863
|
threads: [{
|
|
857
864
|
readonly sourceField: string[];
|
|
858
865
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
859
|
-
readonly destSchema: "
|
|
866
|
+
readonly destSchema: "threadMessageLabelUid";
|
|
860
867
|
readonly cardinality: "many";
|
|
861
868
|
}, {
|
|
862
869
|
readonly sourceField: string[];
|
|
863
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
870
|
+
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
864
871
|
readonly destSchema: "thread";
|
|
865
872
|
readonly cardinality: "many";
|
|
866
873
|
}];
|
|
@@ -903,7 +910,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
903
910
|
labels: [{
|
|
904
911
|
readonly sourceField: string[];
|
|
905
912
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
906
|
-
readonly destSchema: "
|
|
913
|
+
readonly destSchema: "threadMessageLabelUid";
|
|
907
914
|
readonly cardinality: "many";
|
|
908
915
|
}, {
|
|
909
916
|
readonly sourceField: string[];
|
|
@@ -930,7 +937,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
930
937
|
readonly cardinality: "one";
|
|
931
938
|
}];
|
|
932
939
|
};
|
|
933
|
-
readonly
|
|
940
|
+
readonly threadMessageLabelUid: {
|
|
934
941
|
label: [{
|
|
935
942
|
readonly sourceField: string[];
|
|
936
943
|
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
@@ -945,7 +952,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
945
952
|
}];
|
|
946
953
|
thread: [{
|
|
947
954
|
readonly sourceField: string[];
|
|
948
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
955
|
+
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
949
956
|
readonly destSchema: "thread";
|
|
950
957
|
readonly cardinality: "one";
|
|
951
958
|
}];
|
|
@@ -959,7 +966,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
959
966
|
}];
|
|
960
967
|
thread: [{
|
|
961
968
|
readonly sourceField: string[];
|
|
962
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
969
|
+
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
963
970
|
readonly destSchema: "thread";
|
|
964
971
|
readonly cardinality: "one";
|
|
965
972
|
}];
|
|
@@ -974,7 +981,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
974
981
|
labels: [{
|
|
975
982
|
readonly sourceField: string[];
|
|
976
983
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
977
|
-
readonly destSchema: "
|
|
984
|
+
readonly destSchema: "threadMessageLabelUid";
|
|
978
985
|
readonly cardinality: "many";
|
|
979
986
|
}, {
|
|
980
987
|
readonly sourceField: string[];
|
|
@@ -990,7 +997,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
990
997
|
}];
|
|
991
998
|
thread: [{
|
|
992
999
|
readonly sourceField: string[];
|
|
993
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1000
|
+
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
994
1001
|
readonly destSchema: "thread";
|
|
995
1002
|
readonly cardinality: "one";
|
|
996
1003
|
}];
|
|
@@ -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
|
|
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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