@@ -23,13 +23,14 @@ export function createClient(api: DeferredJobsApiClient) {
23
23
* List Contacts Exports with sorting, and pagination.
24
24
*/
25
25
async function list ( options : ListOptions = { } ) : Promise < ListResponse > {
26
- const { limit, offset, sortOrder } = options ;
26
+ const { limit, offset, search , sortOrder } = options ;
27
27
const { contacts, pagination, sort } = await api . get < {
28
28
contacts : Contact [ ] ;
29
29
pagination : Pagination ;
30
30
sort : string ;
31
31
} > ( routing . contactsUrl , {
32
32
query : {
33
+ search,
33
34
limit,
34
35
offset,
35
36
sort : SortOrder . stringify ( sortOrder ) ,
@@ -43,7 +44,7 @@ export function createClient(api: DeferredJobsApiClient) {
43
44
* List Contacts Exports with sorting, pagination, and filtering.
44
45
*/
45
46
async function search ( options : SearchOptions = { } ) : Promise < SearchResponse > {
46
- const { limit, offset, query, sortOrder } = options ;
47
+ const { limit, offset, query, search , sortOrder } = options ;
47
48
const url = `${ routing . contactsUrl } /search` ;
48
49
const { contacts, pagination, sort } = await api . post < {
49
50
contacts : Contact [ ] ;
@@ -53,6 +54,7 @@ export function createClient(api: DeferredJobsApiClient) {
53
54
payload : {
54
55
limit,
55
56
offset,
57
+ search,
56
58
sort : SortOrder . stringify ( sortOrder ) ,
57
59
query,
58
60
} ,
0 commit comments