feat(items): filter auto-complete results.

feat(contacts): filter auto-complete results.
This commit is contained in:
a.bouhuolia
2021-03-03 13:34:18 +02:00
parent 57c2c7e269
commit 0c6bbba647
7 changed files with 70 additions and 50 deletions

View File

@@ -1,7 +1,5 @@
// Contact Interfaces.
import { IDynamicListFilter } from "./DynamicFilter";
import { IFilterRole } from "./DynamicFilter";
// ----------------------------------
export interface IContactAddress {
@@ -208,6 +206,9 @@ export interface ICustomersFilter extends IDynamicListFilter {
export interface IContactsAutoCompleteFilter {
limit: number,
keyword: string,
filterRoles?: IFilterRole[];
columnSortBy: string;
sortOrder: string;
}
export interface IContactAutoCompleteItem {

View File

@@ -1,4 +1,4 @@
import { IDynamicListFilter } from 'interfaces/DynamicFilter';
import { IFilterRole } from 'interfaces/DynamicFilter';
export interface IItem{
id: number,
@@ -72,7 +72,7 @@ export interface IItemsService {
itemsList(tenantId: number, itemsFilter: IItemsFilter): Promise<{items: IItem[]}>;
}
export interface IItemsFilter extends IDynamicListFilter {
export interface IItemsFilter extends IDynamicListFilterDTO {
stringifiedFilterRoles?: string,
page: number,
pageSize: number,
@@ -81,5 +81,7 @@ export interface IItemsFilter extends IDynamicListFilter {
export interface IItemsAutoCompleteFilter {
limit: number,
keyword: string,
filterRoles?: IFilterRole[];
columnSortBy: string;
sortOrder: string;
}