@remit/imap-worker 0.0.55 → 0.0.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/imap-worker",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -17,6 +17,7 @@ import { SQSClient } from "@aws-sdk/client-sqs";
17
17
  import { getClient, type RemitClient, setClient } from "@remit/backend/client";
18
18
  import type {
19
19
  IAddressRepository,
20
+ IMailboxSpecialUseRepository,
20
21
  IMessageFlagPushRepository,
21
22
  IMessageFlagRepository,
22
23
  IMessagePlacementMoveRepository,
@@ -181,6 +182,12 @@ const buildHarness = (): Harness => {
181
182
  addressService: {
182
183
  reconcileJunkOnlyForMessage: async () => {},
183
184
  } as unknown as IAddressRepository,
185
+ mailboxSpecialUseService: {
186
+ resolveJunkRolesForConfig: async () => ({
187
+ junkMailboxIds: [],
188
+ trashMailboxIds: [],
189
+ }),
190
+ } as unknown as IMailboxSpecialUseRepository,
184
191
  sqsQueueUrl: "https://sqs.eu-west-1.amazonaws.com/000/message-mgmt",
185
192
  });
186
193
 
@@ -179,6 +179,7 @@ export const syncMessageBody = async (
179
179
  threadMessageService,
180
180
  markerService,
181
181
  addressService,
182
+ mailboxSpecialUseService,
182
183
  sqsQueueUrl: placementMoveQueueUrl,
183
184
  })
184
185
  : undefined;