Skip to content

feat(inbox): status, since and multi-account filters, plus resolve() - #43

Merged
alihesari merged 2 commits into
mainfrom
feature/inbox-filters
Nov 3, 2026
Merged

alihesari merged 2 commits into
mainfrom
feature/inbox-filters

Conversation

@alihesari

Copy link
Copy Markdown
Member

Pairs with fopost/fopost branch feature/inbox-simplify and merges after it.

What changed

  • $client->inbox()->list(), threads() and conversations() take status (unanswered, replied, resolved) and since (DateTimeInterface or ISO 8601 string). accountId accepts one id or an array, sent comma-joined.
  • The state, platform and q filters are removed from those three methods, and sort is newest or oldest only. Parameter order changed too, so positional callers should use named arguments. This is a breaking change, matching the API.
  • New $client->inbox()->resolve($workspaceId, $type, $accountId = null, $before = null) calls POST /v1/inbox/resolve and returns the resolved count.
  • README, CHANGELOG (Unreleased) and CLAUDE.md updated.

Tested

  • phpunit: 238 tests, 1216 assertions, OK
  • phpcs: clean

Owed

  • No version bump or release; that happens in the batched SDK release.
  • fopost-laravel README still shows inbox()->list(..., state: 'unread'); it needs a matching update. fopost-symfony and fopost-woocommerce do not use the inbox filters.

list(), threads() and conversations() take status, since and an array of
account ids, and no longer take state, platform or q.
Resolves every unanswered item of one type through POST /v1/inbox/resolve,
optionally narrowed to some accounts or to items dated before a cutoff.
@alihesari
alihesari merged commit 579215c into main Nov 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant