@remit/data-ports 0.0.21 → 0.0.23

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 +15 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/data-ports",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/types.ts CHANGED
@@ -462,6 +462,14 @@ export type SearchOptions = {
462
462
  unread?: boolean;
463
463
  starred?: boolean;
464
464
  attachments?: boolean;
465
+ /**
466
+ * Any-of set over the denormalized `category` column on the ThreadMessage
467
+ * row. An empty or absent set means no category filter. `uncategorized` is
468
+ * a member like any other — the column is NOT NULL with that default, so it
469
+ * names the not-yet-classified state rather than standing for absence
470
+ * (issue #45).
471
+ */
472
+ category?: ThreadMessageItem["category"][];
465
473
  };
466
474
 
467
475
  export type CreateLabelInput = Omit<
@@ -486,6 +494,7 @@ export type CreateFilterInput = Omit<
486
494
  | "state"
487
495
  | "hasAnchor"
488
496
  | "ruleChangedAt"
497
+ | "actionChangedAt"
489
498
  | "matchOperator"
490
499
  | "literalClauses"
491
500
  | "actionLabelId"
@@ -502,10 +511,12 @@ export type CreateFilterInput = Omit<
502
511
  // ruleChangedAt is never client-supplied: FilterService derives it, bumping
503
512
  // only when the predicate, the action, scope, or expiresAt is present in the
504
513
  // update (RFC 034 Decision 3.2, reader #266) — a cosmetic `name` rename must
505
- // not move it. `scope` is updatable here (reader #266): the handler resolves
506
- // the merged scope/expiresAt/ttl/state before calling through to the repo, so
507
- // this type must carry `scope` as a valid key, unlike the API-facing
508
- // `UpdateFilterInput` for that same reason.
514
+ // not move it. actionChangedAt is likewise server-derived, bumping only for
515
+ // the narrower predicate/action subset (reader #384) that selectMoveWinner
516
+ // reads for exclusive-move precedence. `scope` is updatable here (reader
517
+ // #266): the handler resolves the merged scope/expiresAt/ttl/state before
518
+ // calling through to the repo, so this type must carry `scope` as a valid
519
+ // key, unlike the API-facing `UpdateFilterInput` for that same reason.
509
520
  export type UpdateFilterInput = Partial<
510
521
  Omit<CreateFilterInput, "accountConfigId">
511
522
  >;