@remit/data-ports 0.0.61 → 0.0.62

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/data-ports",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
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 the not-yet-classified state rather than standing for absence
501
- * (issue #45).
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
  };