@remit/data-ports 0.0.61 → 0.0.63
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 +1 -1
- package/src/message-settlement.ts +5 -6
- package/src/types.ts +6 -2
package/package.json
CHANGED
|
@@ -33,13 +33,12 @@ export type MessageSettlementFields = Pick<
|
|
|
33
33
|
* those handlers `status` stays at its in-flight value (`moving`, `deleting`),
|
|
34
34
|
* which is what separates them from the pair above.
|
|
35
35
|
*
|
|
36
|
-
*
|
|
36
|
+
* Two give-ups this cannot see, and must not pretend to:
|
|
37
37
|
*
|
|
38
|
-
* - A MOVE that
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* actually is), so it reads as fully settled here.
|
|
38
|
+
* - A MOVE or a DELETE that exhausted its retries settles `active` + `synced`
|
|
39
|
+
* (`resolveExhaustedMessageMoveFailure` and
|
|
40
|
+
* `resolveExhaustedMessageDeleteFailure` repair the row to where the message
|
|
41
|
+
* actually is — #1098, #1005), so both read as fully settled here.
|
|
43
42
|
* - `flag-push` and `placement-move-push` never write either field at all.
|
|
44
43
|
* Their give-up state lives on their own marker rows.
|
|
45
44
|
*/
|
package/src/types.ts
CHANGED
|
@@ -385,6 +385,7 @@ export type CreateMessageInput = Omit<
|
|
|
385
385
|
| "status"
|
|
386
386
|
| "syncStatus"
|
|
387
387
|
| "category"
|
|
388
|
+
| "classificationState"
|
|
388
389
|
| "authenticityVerdict"
|
|
389
390
|
| "hasListUnsubscribe"
|
|
390
391
|
| "movedByRemit"
|
|
@@ -393,6 +394,7 @@ export type CreateMessageInput = Omit<
|
|
|
393
394
|
status?: MessageItem["status"];
|
|
394
395
|
syncStatus?: MessageItem["syncStatus"];
|
|
395
396
|
category?: MessageItem["category"];
|
|
397
|
+
classificationState?: MessageItem["classificationState"];
|
|
396
398
|
authenticityVerdict?: MessageItem["authenticityVerdict"];
|
|
397
399
|
hasListUnsubscribe?: MessageItem["hasListUnsubscribe"];
|
|
398
400
|
movedByRemit?: MessageItem["movedByRemit"];
|
|
@@ -497,8 +499,10 @@ export type SearchOptions = {
|
|
|
497
499
|
* Any-of set over the denormalized `category` column on the ThreadMessage
|
|
498
500
|
* row. An empty or absent set means no category filter. `uncategorized` is
|
|
499
501
|
* a member like any other — the column is NOT NULL with that default, so it
|
|
500
|
-
* names
|
|
501
|
-
*
|
|
502
|
+
* names "no category" rather than standing for absence (issue #45). It
|
|
503
|
+
* matches mail the classifier has not reached and mail it declined to
|
|
504
|
+
* categorize alike; `Message.classificationState` is what separates those,
|
|
505
|
+
* and no read path filters on it (issue #331).
|
|
502
506
|
*/
|
|
503
507
|
category?: ThreadMessageItem["category"][];
|
|
504
508
|
};
|