@remit/mailbox-service 2.1.0 → 2.1.1

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.
@@ -10,7 +10,8 @@ import type { OutboxMessageItem } from "@remit/data-ports";
10
10
  * queued the same envelope, and Edit took a 409 on the flush that precedes the
11
11
  * send (#933).
12
12
  *
13
- * Everything absent is in the worker's hands or settled: `queued` and `sending`
14
- * are mid-flight, `sent` and `unfiled` were delivered.
13
+ * `unfiled` may have been delivered, so it is open only to a deliberate edit
14
+ * and send; nothing re-sends it on its own. `queued` and `sending` are
15
+ * mid-flight and `sent` was delivered.
15
16
  */
16
17
  export declare const isOpenForWork: (status: OutboxMessageItem["status"]) => boolean;
@@ -10,9 +10,11 @@ import { OutboxMessageStatus } from "@remit/domain-enums";
10
10
  * queued the same envelope, and Edit took a 409 on the flush that precedes the
11
11
  * send (#933).
12
12
  *
13
- * Everything absent is in the worker's hands or settled: `queued` and `sending`
14
- * are mid-flight, `sent` and `unfiled` were delivered.
13
+ * `unfiled` may have been delivered, so it is open only to a deliberate edit
14
+ * and send; nothing re-sends it on its own. `queued` and `sending` are
15
+ * mid-flight and `sent` was delivered.
15
16
  */
16
17
  export const isOpenForWork = (status) => status === OutboxMessageStatus.draft ||
17
18
  status === OutboxMessageStatus.failed ||
18
- status === OutboxMessageStatus.blocked;
19
+ status === OutboxMessageStatus.blocked ||
20
+ status === OutboxMessageStatus.unfiled;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/mailbox-service",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",