signalwire-js icon indicating copy to clipboard operation
signalwire-js copied to clipboard

WIP: Allow user to sort conversations

Open iAmmar7 opened this issue 8 months ago • 1 comments

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'
    })

iAmmar7 avatar Jun 14 '24 15:06 iAmmar7