@remit/data-ports 0.0.58 → 0.0.59

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/data-ports",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -199,6 +199,17 @@ export interface IThreadMessageRepository {
199
199
  excludeDeleted?: boolean;
200
200
  },
201
201
  ): Promise<ResultList<ThreadMessageItem>>;
202
+ /**
203
+ * COUNT of matching MESSAGES in one mailbox, under the same predicate
204
+ * `searchByMailboxWindow` reads with — the per-mailbox counterpart of
205
+ * `countThreadsInScope`, and not distinct on `threadId` because the listing
206
+ * it answers for renders a row per message.
207
+ *
208
+ * The number is over the whole mailbox. No page size bounds it and no cursor
209
+ * narrows it, so it does not shrink as the caller pages and does not change
210
+ * when the page size does (#305). There is nothing to cap: the count is one
211
+ * aggregate read that returns no rows.
212
+ */
202
213
  countByMailbox(
203
214
  accountConfigId: string,
204
215
  mailboxId: string,