Skip to content

Commit fdee409

Browse files
committed
v1.0.23(Mar 10, 2023)
feat: add Ticket.getList() Add new API to get by groups, otherwise, we have to modify other methods to handle callback to the end& JS doesnt really have first class support for polymorphism ``` * @param {integer} filters.offset - list offset. * @param {object} filters.customFieldFilter - customField filter. * @param {string} filters.group - group key(to filter tickets by a team). * @param {string} filters.status - status to get tickets. ('all', 'CLOSED', 'OPEN'). * @param {function} callback - Function(list:Array<Ticket>, err:Error) Ticket.getList(params, callback) ```
1 parent c50fced commit fdee409

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
## Change Log
22

3+
### v1.0.23(Mar 10, 2023)
4+
5+
feat: add Ticket.getList()
6+
Add new API to get by groups, otherwise, we have to modify other methods to
7+
handle callback to the end& JS doesnt really have first class support for polymorphism
8+
```
9+
* @param {integer} filters.offset - list offset.
10+
* @param {object} filters.customFieldFilter - customField filter.
11+
* @param {string} filters.group - group key(to filter tickets by a team).
12+
* @param {string} filters.status - status to get tickets. ('all', 'CLOSED', 'OPEN').
13+
* @param {function} callback - Function(list:Array<Ticket>, err:Error)
14+
Ticket.getList(params, callback)
15+
```
16+
317
### v1.0.21(Mar 29, 2022)
418

519
- Add `getAllTickets` interface in `Ticket`.

SendBird.Desk.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Type Definitions for SendBird Desc SDK v1.0.21
2+
* Type Definitions for SendBird Desc SDK v1.0.23
33
* homepage: https://sendbird.com/
44
*/
55
import SendBird from 'sendbird';
@@ -68,6 +68,13 @@ declare namespace SendBirdDesk {
6868
type TicketCallback = (ticket: Ticket, error: Error) => void;
6969
type TicketArrayCallback = (list: Array<Ticket>, error: Error) => void;
7070

71+
type GetTicketListParams = {
72+
offset: integer;
73+
customFieldFilter: object;
74+
group: string;
75+
status: string;
76+
}
77+
7178
interface TicketStatic {
7279
Status: TicketStatus;
7380
isStatus(val: string): boolean;
@@ -105,6 +112,7 @@ declare namespace SendBirdDesk {
105112
getOpenCount(callback: CommonCallback): void;
106113
getByChannelUrl(channelUrl: string, callback: TicketCallback): void;
107114
getByChannelUrl(channelUrl: string, cachingEnabled: boolean , callback: TicketCallback): void;
115+
getList(params: GetTicketListParams, callback: TicketArrayCallback): void;
108116
getAllTickets(offset: number, callback: TicketArrayCallback): void;
109117
getAllTickets(offset: number, customFieldFilter: object, callback: TicketArrayCallback): void;
110118
getOpenedList(offset: number, callback: TicketArrayCallback): void;

SendBird.Desk.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird-desk",
3-
"version": "1.0.22",
3+
"version": "1.0.23",
44
"description": "SendBird Desk SDK Integration Guide for JavaScript =========== SendBird Desk is a chat customer service platform built on SendBird SDK and API.",
55
"main": "SendBird.Desk.min.js",
66
"scripts": {

0 commit comments

Comments
 (0)