@marcoappio/marco-config 2.0.460 → 2.0.462

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,6 +1,5 @@
1
1
  export * from './AuthData';
2
2
  export * from './DraftAttachmentUploadStatus';
3
- export * from './DraftRecipientType';
4
3
  export * from './DraftStatus';
5
4
  export * from './DraftType';
6
5
  export * from './EmailProvider';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA"}
@@ -1,6 +1,5 @@
1
1
  export * from './AuthData';
2
2
  export * from './DraftAttachmentUploadStatus';
3
- export * from './DraftRecipientType';
4
3
  export * from './DraftStatus';
5
4
  export * from './DraftType';
6
5
  export * from './EmailProvider';
@@ -708,38 +708,6 @@ export declare const marcoZero: {
708
708
  } & {
709
709
  primaryKey: ["id"];
710
710
  };
711
- readonly draftRecipient: {
712
- name: "draftRecipient";
713
- columns: {
714
- readonly draftId: {
715
- type: "string";
716
- optional: false;
717
- customType: string;
718
- } & {
719
- serverName: string;
720
- };
721
- readonly emailAddress: {
722
- type: "string";
723
- optional: false;
724
- customType: string;
725
- } & {
726
- serverName: string;
727
- };
728
- readonly id: {
729
- type: "string";
730
- optional: false;
731
- customType: string;
732
- };
733
- readonly type: {
734
- type: "string";
735
- optional: false;
736
- customType: "bcc" | "cc" | "to";
737
- };
738
- };
739
- primaryKey: readonly [string, ...string[]];
740
- } & {
741
- primaryKey: ["id"];
742
- };
743
711
  readonly draftAttachment: {
744
712
  name: "draftAttachment";
745
713
  columns: {
@@ -1164,12 +1132,6 @@ export declare const marcoZero: {
1164
1132
  readonly destSchema: "draftAttachment";
1165
1133
  readonly cardinality: "many";
1166
1134
  }];
1167
- recipients: [{
1168
- readonly sourceField: string[];
1169
- readonly destField: ("type" | "id" | "emailAddress" | "draftId")[];
1170
- readonly destSchema: "draftRecipient";
1171
- readonly cardinality: "many";
1172
- }];
1173
1135
  user: [{
1174
1136
  readonly sourceField: string[];
1175
1137
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -1177,14 +1139,6 @@ export declare const marcoZero: {
1177
1139
  readonly cardinality: "one";
1178
1140
  }];
1179
1141
  };
1180
- readonly draftRecipient: {
1181
- draft: [{
1182
- readonly sourceField: string[];
1183
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
1184
- readonly destSchema: "draft";
1185
- readonly cardinality: "one";
1186
- }];
1187
- };
1188
1142
  readonly draftAttachment: {
1189
1143
  draft: [{
1190
1144
  readonly sourceField: string[];
@@ -1705,38 +1659,6 @@ export declare const marcoZero: {
1705
1659
  } & {
1706
1660
  primaryKey: ["id"];
1707
1661
  };
1708
- readonly draftRecipient: {
1709
- name: "draftRecipient";
1710
- columns: {
1711
- readonly draftId: {
1712
- type: "string";
1713
- optional: false;
1714
- customType: string;
1715
- } & {
1716
- serverName: string;
1717
- };
1718
- readonly emailAddress: {
1719
- type: "string";
1720
- optional: false;
1721
- customType: string;
1722
- } & {
1723
- serverName: string;
1724
- };
1725
- readonly id: {
1726
- type: "string";
1727
- optional: false;
1728
- customType: string;
1729
- };
1730
- readonly type: {
1731
- type: "string";
1732
- optional: false;
1733
- customType: "bcc" | "cc" | "to";
1734
- };
1735
- };
1736
- primaryKey: readonly [string, ...string[]];
1737
- } & {
1738
- primaryKey: ["id"];
1739
- };
1740
1662
  readonly draftAttachment: {
1741
1663
  name: "draftAttachment";
1742
1664
  columns: {
@@ -2161,12 +2083,6 @@ export declare const marcoZero: {
2161
2083
  readonly destSchema: "draftAttachment";
2162
2084
  readonly cardinality: "many";
2163
2085
  }];
2164
- recipients: [{
2165
- readonly sourceField: string[];
2166
- readonly destField: ("type" | "id" | "emailAddress" | "draftId")[];
2167
- readonly destSchema: "draftRecipient";
2168
- readonly cardinality: "many";
2169
- }];
2170
2086
  user: [{
2171
2087
  readonly sourceField: string[];
2172
2088
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -2174,14 +2090,6 @@ export declare const marcoZero: {
2174
2090
  readonly cardinality: "one";
2175
2091
  }];
2176
2092
  };
2177
- readonly draftRecipient: {
2178
- draft: [{
2179
- readonly sourceField: string[];
2180
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
2181
- readonly destSchema: "draft";
2182
- readonly cardinality: "one";
2183
- }];
2184
- };
2185
2093
  readonly draftAttachment: {
2186
2094
  draft: [{
2187
2095
  readonly sourceField: string[];
@@ -2669,38 +2577,6 @@ export declare const marcoZero: {
2669
2577
  } & {
2670
2578
  primaryKey: ["id"];
2671
2579
  };
2672
- readonly draftRecipient: {
2673
- name: "draftRecipient";
2674
- columns: {
2675
- readonly draftId: {
2676
- type: "string";
2677
- optional: false;
2678
- customType: string;
2679
- } & {
2680
- serverName: string;
2681
- };
2682
- readonly emailAddress: {
2683
- type: "string";
2684
- optional: false;
2685
- customType: string;
2686
- } & {
2687
- serverName: string;
2688
- };
2689
- readonly id: {
2690
- type: "string";
2691
- optional: false;
2692
- customType: string;
2693
- };
2694
- readonly type: {
2695
- type: "string";
2696
- optional: false;
2697
- customType: "bcc" | "cc" | "to";
2698
- };
2699
- };
2700
- primaryKey: readonly [string, ...string[]];
2701
- } & {
2702
- primaryKey: ["id"];
2703
- };
2704
2580
  readonly draftAttachment: {
2705
2581
  name: "draftAttachment";
2706
2582
  columns: {
@@ -3125,12 +3001,6 @@ export declare const marcoZero: {
3125
3001
  readonly destSchema: "draftAttachment";
3126
3002
  readonly cardinality: "many";
3127
3003
  }];
3128
- recipients: [{
3129
- readonly sourceField: string[];
3130
- readonly destField: ("type" | "id" | "emailAddress" | "draftId")[];
3131
- readonly destSchema: "draftRecipient";
3132
- readonly cardinality: "many";
3133
- }];
3134
3004
  user: [{
3135
3005
  readonly sourceField: string[];
3136
3006
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -3138,14 +3008,6 @@ export declare const marcoZero: {
3138
3008
  readonly cardinality: "one";
3139
3009
  }];
3140
3010
  };
3141
- readonly draftRecipient: {
3142
- draft: [{
3143
- readonly sourceField: string[];
3144
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
3145
- readonly destSchema: "draft";
3146
- readonly cardinality: "one";
3147
- }];
3148
- };
3149
3011
  readonly draftAttachment: {
3150
3012
  draft: [{
3151
3013
  readonly sourceField: string[];
@@ -3275,13 +3137,6 @@ export declare const marcoZero: {
3275
3137
  readonly type: "NEW" | "REPLY" | "FORWARD";
3276
3138
  readonly updatedAt: number;
3277
3139
  readonly userId: string;
3278
- } & {
3279
- readonly recipients: readonly {
3280
- readonly draftId: string;
3281
- readonly emailAddress: string;
3282
- readonly id: string;
3283
- readonly type: "bcc" | "cc" | "to";
3284
- }[];
3285
3140
  } & {
3286
3141
  readonly attachments: readonly {
3287
3142
  readonly draftId: string;
@@ -3671,38 +3526,6 @@ export declare const marcoZero: {
3671
3526
  } & {
3672
3527
  primaryKey: ["id"];
3673
3528
  };
3674
- readonly draftRecipient: {
3675
- name: "draftRecipient";
3676
- columns: {
3677
- readonly draftId: {
3678
- type: "string";
3679
- optional: false;
3680
- customType: string;
3681
- } & {
3682
- serverName: string;
3683
- };
3684
- readonly emailAddress: {
3685
- type: "string";
3686
- optional: false;
3687
- customType: string;
3688
- } & {
3689
- serverName: string;
3690
- };
3691
- readonly id: {
3692
- type: "string";
3693
- optional: false;
3694
- customType: string;
3695
- };
3696
- readonly type: {
3697
- type: "string";
3698
- optional: false;
3699
- customType: "bcc" | "cc" | "to";
3700
- };
3701
- };
3702
- primaryKey: readonly [string, ...string[]];
3703
- } & {
3704
- primaryKey: ["id"];
3705
- };
3706
3529
  readonly draftAttachment: {
3707
3530
  name: "draftAttachment";
3708
3531
  columns: {
@@ -4127,12 +3950,6 @@ export declare const marcoZero: {
4127
3950
  readonly destSchema: "draftAttachment";
4128
3951
  readonly cardinality: "many";
4129
3952
  }];
4130
- recipients: [{
4131
- readonly sourceField: string[];
4132
- readonly destField: ("type" | "id" | "emailAddress" | "draftId")[];
4133
- readonly destSchema: "draftRecipient";
4134
- readonly cardinality: "many";
4135
- }];
4136
3953
  user: [{
4137
3954
  readonly sourceField: string[];
4138
3955
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -4140,14 +3957,6 @@ export declare const marcoZero: {
4140
3957
  readonly cardinality: "one";
4141
3958
  }];
4142
3959
  };
4143
- readonly draftRecipient: {
4144
- draft: [{
4145
- readonly sourceField: string[];
4146
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
4147
- readonly destSchema: "draft";
4148
- readonly cardinality: "one";
4149
- }];
4150
- };
4151
3960
  readonly draftAttachment: {
4152
3961
  draft: [{
4153
3962
  readonly sourceField: string[];
@@ -4670,38 +4479,6 @@ export declare const marcoZero: {
4670
4479
  } & {
4671
4480
  primaryKey: ["id"];
4672
4481
  };
4673
- readonly draftRecipient: {
4674
- name: "draftRecipient";
4675
- columns: {
4676
- readonly draftId: {
4677
- type: "string";
4678
- optional: false;
4679
- customType: string;
4680
- } & {
4681
- serverName: string;
4682
- };
4683
- readonly emailAddress: {
4684
- type: "string";
4685
- optional: false;
4686
- customType: string;
4687
- } & {
4688
- serverName: string;
4689
- };
4690
- readonly id: {
4691
- type: "string";
4692
- optional: false;
4693
- customType: string;
4694
- };
4695
- readonly type: {
4696
- type: "string";
4697
- optional: false;
4698
- customType: "bcc" | "cc" | "to";
4699
- };
4700
- };
4701
- primaryKey: readonly [string, ...string[]];
4702
- } & {
4703
- primaryKey: ["id"];
4704
- };
4705
4482
  readonly draftAttachment: {
4706
4483
  name: "draftAttachment";
4707
4484
  columns: {
@@ -5126,12 +4903,6 @@ export declare const marcoZero: {
5126
4903
  readonly destSchema: "draftAttachment";
5127
4904
  readonly cardinality: "many";
5128
4905
  }];
5129
- recipients: [{
5130
- readonly sourceField: string[];
5131
- readonly destField: ("type" | "id" | "emailAddress" | "draftId")[];
5132
- readonly destSchema: "draftRecipient";
5133
- readonly cardinality: "many";
5134
- }];
5135
4906
  user: [{
5136
4907
  readonly sourceField: string[];
5137
4908
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -5139,14 +4910,6 @@ export declare const marcoZero: {
5139
4910
  readonly cardinality: "one";
5140
4911
  }];
5141
4912
  };
5142
- readonly draftRecipient: {
5143
- draft: [{
5144
- readonly sourceField: string[];
5145
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
5146
- readonly destSchema: "draft";
5147
- readonly cardinality: "one";
5148
- }];
5149
- };
5150
4913
  readonly draftAttachment: {
5151
4914
  draft: [{
5152
4915
  readonly sourceField: string[];
@@ -5674,38 +5437,6 @@ export declare const marcoZero: {
5674
5437
  } & {
5675
5438
  primaryKey: ["id"];
5676
5439
  };
5677
- readonly draftRecipient: {
5678
- name: "draftRecipient";
5679
- columns: {
5680
- readonly draftId: {
5681
- type: "string";
5682
- optional: false;
5683
- customType: string;
5684
- } & {
5685
- serverName: string;
5686
- };
5687
- readonly emailAddress: {
5688
- type: "string";
5689
- optional: false;
5690
- customType: string;
5691
- } & {
5692
- serverName: string;
5693
- };
5694
- readonly id: {
5695
- type: "string";
5696
- optional: false;
5697
- customType: string;
5698
- };
5699
- readonly type: {
5700
- type: "string";
5701
- optional: false;
5702
- customType: "bcc" | "cc" | "to";
5703
- };
5704
- };
5705
- primaryKey: readonly [string, ...string[]];
5706
- } & {
5707
- primaryKey: ["id"];
5708
- };
5709
5440
  readonly draftAttachment: {
5710
5441
  name: "draftAttachment";
5711
5442
  columns: {
@@ -6130,12 +5861,6 @@ export declare const marcoZero: {
6130
5861
  readonly destSchema: "draftAttachment";
6131
5862
  readonly cardinality: "many";
6132
5863
  }];
6133
- recipients: [{
6134
- readonly sourceField: string[];
6135
- readonly destField: ("type" | "id" | "emailAddress" | "draftId")[];
6136
- readonly destSchema: "draftRecipient";
6137
- readonly cardinality: "many";
6138
- }];
6139
5864
  user: [{
6140
5865
  readonly sourceField: string[];
6141
5866
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -6143,14 +5868,6 @@ export declare const marcoZero: {
6143
5868
  readonly cardinality: "one";
6144
5869
  }];
6145
5870
  };
6146
- readonly draftRecipient: {
6147
- draft: [{
6148
- readonly sourceField: string[];
6149
- readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
6150
- readonly destSchema: "draft";
6151
- readonly cardinality: "one";
6152
- }];
6153
- };
6154
5871
  readonly draftAttachment: {
6155
5872
  draft: [{
6156
5873
  readonly sourceField: string[];
@@ -6608,38 +6325,6 @@ export declare const marcoZero: {
6608
6325
  } & {
6609
6326
  primaryKey: ["id"];
6610
6327
  }>;
6611
- readonly draftRecipient: import("@rocicorp/zero").TableBuilderWithColumns<{
6612
- name: "draftRecipient";
6613
- columns: {
6614
- readonly draftId: {
6615
- type: "string";
6616
- optional: false;
6617
- customType: string;
6618
- } & {
6619
- serverName: string;
6620
- };
6621
- readonly emailAddress: {
6622
- type: "string";
6623
- optional: false;
6624
- customType: string;
6625
- } & {
6626
- serverName: string;
6627
- };
6628
- readonly id: {
6629
- type: "string";
6630
- optional: false;
6631
- customType: string;
6632
- };
6633
- readonly type: {
6634
- type: "string";
6635
- optional: false;
6636
- customType: "bcc" | "cc" | "to";
6637
- };
6638
- };
6639
- primaryKey: readonly [string, ...string[]];
6640
- } & {
6641
- primaryKey: ["id"];
6642
- }>;
6643
6328
  readonly thread: import("@rocicorp/zero").TableBuilderWithColumns<{
6644
6329
  name: "thread";
6645
6330
  columns: {
@@ -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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E9B,CAAA;AAED,eAAO,MAAM,oBAAoB,cACpB,QAAQ,GAAG,SAAS,cACnB,sBAAsB,KACjC,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAqLxC,CAAA"}
@@ -167,6 +167,19 @@ export const createThreadMutators = (_authData, callbacks) => ({
167
167
  callbacks?.setInbox?.({ ...args, sourceLocations: allSourceLocations });
168
168
  },
169
169
  setSeen: async (tx, args) => {
170
+ const threadLabels = await tx.query.threadLabel.where('threadId', 'IN', args.threadIds).run();
171
+ const uniqueLabelIds = [...new Set(threadLabels.map(x => x.labelId))];
172
+ if (uniqueLabelIds.length > 0) {
173
+ const labels = await tx.query.accountLabel.where('id', 'IN', uniqueLabelIds).run();
174
+ const delta = args.seen ? -1 : 1;
175
+ for (const label of labels.filter(x => x.specialUse === 'INBOX')) {
176
+ const threadCount = new Set(threadLabels.filter(x => x.labelId === label.id).map(x => x.threadId)).size;
177
+ await tx.mutate.accountLabel.update({
178
+ id: label.id,
179
+ unreadCount: Math.max(0, (label.unreadCount ?? 0) + delta * threadCount),
180
+ });
181
+ }
182
+ }
170
183
  for (const threadId of args.threadIds) {
171
184
  await tx.mutate.thread.update({
172
185
  id: threadId,
@@ -322,15 +322,35 @@ describe('threadMutators', () => {
322
322
  });
323
323
  });
324
324
  describe('setSeen', () => {
325
- it('sets thread seen status', async () => {
325
+ it('sets thread seen status and updates unread count', async () => {
326
326
  const threadUpdate = mock(async () => { });
327
+ const labelUpdate = mock(async () => { });
328
+ const threadLabels = [
329
+ { labelId: 'test-inbox-label-id', threadId: 'test-thread-id-1' },
330
+ { labelId: 'test-inbox-label-id', threadId: 'test-thread-id-2' },
331
+ ];
332
+ const labels = [{ id: 'test-inbox-label-id', specialUse: 'INBOX', unreadCount: 5 }];
333
+ const runThreadLabels = mock(async () => threadLabels);
334
+ const whereThreadLabel = mock(() => ({ run: runThreadLabels }));
335
+ const runLabels = mock(async () => labels);
336
+ const whereLabel = mock(() => ({ run: runLabels }));
327
337
  const transaction = {
328
338
  mutate: {
339
+ accountLabel: {
340
+ update: labelUpdate,
341
+ },
329
342
  thread: {
330
343
  update: threadUpdate,
331
344
  },
332
345
  },
333
- query: {},
346
+ query: {
347
+ accountLabel: {
348
+ where: whereLabel,
349
+ },
350
+ threadLabel: {
351
+ where: whereThreadLabel,
352
+ },
353
+ },
334
354
  };
335
355
  const mutators = createMutators();
336
356
  await mutators.thread.setSeen(transaction, {
@@ -346,6 +366,38 @@ describe('threadMutators', () => {
346
366
  id: 'test-thread-id-2',
347
367
  seen: true,
348
368
  });
369
+ expect(labelUpdate).toHaveBeenCalledWith({
370
+ id: 'test-inbox-label-id',
371
+ unreadCount: 3,
372
+ });
373
+ });
374
+ it('skips label update when threads have no labels', async () => {
375
+ const threadUpdate = mock(async () => { });
376
+ const labelUpdate = mock(async () => { });
377
+ const runThreadLabels = mock(async () => []);
378
+ const whereThreadLabel = mock(() => ({ run: runThreadLabels }));
379
+ const transaction = {
380
+ mutate: {
381
+ accountLabel: {
382
+ update: labelUpdate,
383
+ },
384
+ thread: {
385
+ update: threadUpdate,
386
+ },
387
+ },
388
+ query: {
389
+ threadLabel: {
390
+ where: whereThreadLabel,
391
+ },
392
+ },
393
+ };
394
+ const mutators = createMutators();
395
+ await mutators.thread.setSeen(transaction, {
396
+ seen: true,
397
+ threadIds: ['test-thread-id-1'],
398
+ });
399
+ expect(threadUpdate).toHaveBeenCalledTimes(1);
400
+ expect(labelUpdate).not.toHaveBeenCalled();
349
401
  });
350
402
  });
351
403
  describe('setSpam', () => {