1
0

feat(filter): remove now unused code

This commit is contained in:
kolaente
2024-03-08 12:52:24 +01:00
parent 4dcd3abe9e
commit a22652b737
4 changed files with 18 additions and 582 deletions

View File

@ -3,15 +3,12 @@ import TaskModel from '@/models/task'
import type {ITask} from '@/modelTypes/ITask'
// FIXME: unite with other filter params types
export interface GetAllTasksParams {
export interface TaskFilterParams {
sort_by: ('start_date' | 'done' | 'id')[],
order_by: ('asc' | 'asc' | 'desc')[],
filter_by: 'start_date'[],
filter_comparator: ('greater_equals' | 'less_equals')[],
filter_value: [string, string] // [dateFrom, dateTo],
filter_concat: 'and',
order_by: ('asc' | 'desc')[],
filter: string,
filter_include_nulls: boolean,
s: string,
}
export default class TaskCollectionService extends AbstractService<ITask> {