|
|
@ -49,11 +49,18 @@ export class ApiWorkPackagesService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected queryAsV3Params(offset:number, pageSize:number, query:api.ex.Query) { |
|
|
|
protected queryAsV3Params(offset:number, pageSize:number, query:api.ex.Query) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const v3Filters = _.map(query.filters, (filter) => { |
|
|
|
|
|
|
|
const newFilter = {}; |
|
|
|
|
|
|
|
newFilter[filter.name] = {operator: filter.operator, values: filter.values}; |
|
|
|
|
|
|
|
return newFilter; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const params = { |
|
|
|
const params = { |
|
|
|
offset: offset, |
|
|
|
offset: offset, |
|
|
|
pageSize: pageSize, |
|
|
|
pageSize: pageSize, |
|
|
|
filters: [query.filters], |
|
|
|
filters: [v3Filters], |
|
|
|
sortBy: query.sort_criteria, |
|
|
|
sortBy: [query.sort_criteria], |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
if (query.group_by) { |
|
|
|
if (query.group_by) { |
|
|
|