@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.
- package/dist/outbox-status.d.ts +3 -2
- package/dist/outbox-status.js +5 -3
- package/package.json +1 -1
package/dist/outbox-status.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
14
|
-
*
|
|
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;
|
package/dist/outbox-status.js
CHANGED
|
@@ -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
|
-
*
|
|
14
|
-
*
|
|
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;
|