Repository navigation
feat(inbox): status, since and multi-account filters, plus inbox.resolve - #43
Merged
Merged
Conversation
inbox.list, inbox.threads and inbox.conversations take status (unanswered, replied, resolved), since and a list of account ids, and no longer take state, platform or q. ChatAdapter.receive reads unanswered DMs by default.
Resolves every unanswered item of one type through POST /v1/inbox/resolve, optionally narrowed to some accounts or to items dated before a cutoff.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pairs with fopost/fopost branch
feature/inbox-simplifyand merges after it.What changed
inbox.list,inbox.threadsandinbox.conversationstakestatus(unanswered,replied,resolved) andsince(datetimeor ISO 8601 string).account_idaccepts one id or a list, sent comma-joined.state,platformandqfilters are removed from those three methods, andsortisnewestoroldestonly. This is a breaking change, matching the API.inbox.resolve(workspace_id=, type=, account_id=None, before=None)callsPOST /v1/inbox/resolveand returns the resolved count.ChatAdapter.receivetakesstatus(defaultunanswered) instead ofstateandplatform.mark_readstill marks the item read; its docstring no longer saysreceive()skips read items, since the list cannot filter by read state anymore.Tested
uv run pytest: 226 passedruff check,ruff format --check,mypy: cleanOwed
fopost-djangoandfopost-fastapido not use the inbox filters, so they need no change.