signalwire-js
signalwire-js copied to clipboard
WIP: Allow user to sort conversations
Description
The conversation APIs now accepts sortOrder
param to sort the conversation result.
Type of change
- [ ] Internal refactoring
- [ ] Bug fix (bugfix - non-breaking)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Code snippets
const data = await client.conversation.getConversations({
pageSize: 10,
sortOrder: 'ASC', // Default is 'DESC'
})