mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat(contacts): auto-complete contacts.
feat(items): auto-complete items. feat(resources): resource columns feat. feat(contacts): retrieve specific contact details.
This commit is contained in:
@@ -205,3 +205,12 @@ export interface ICustomersFilter extends IDynamicListFilter {
|
||||
pageSize?: number,
|
||||
};
|
||||
|
||||
export interface IContactsAutoCompleteFilter {
|
||||
limit: number,
|
||||
keyword: string,
|
||||
}
|
||||
|
||||
export interface IContactAutoCompleteItem {
|
||||
displayName: string,
|
||||
contactService: string,
|
||||
}
|
||||
@@ -1,25 +1,28 @@
|
||||
|
||||
export interface IDynamicFilter {
|
||||
setTableName(tableName: string): void;
|
||||
buildQuery(): void;
|
||||
}
|
||||
|
||||
export interface IFilterRole {
|
||||
fieldKey: string,
|
||||
value: string,
|
||||
condition?: string,
|
||||
index?: number,
|
||||
comparator?: string,
|
||||
};
|
||||
fieldKey: string;
|
||||
value: string;
|
||||
condition?: string;
|
||||
index?: number;
|
||||
comparator?: string;
|
||||
}
|
||||
|
||||
export interface IDynamicListFilterDTO {
|
||||
customViewId?: number,
|
||||
filterRoles?: IFilterRole[],
|
||||
columnSortBy: string,
|
||||
sortOrder: string,
|
||||
customViewId?: number;
|
||||
filterRoles?: IFilterRole[];
|
||||
columnSortBy: string;
|
||||
sortOrder: string;
|
||||
}
|
||||
|
||||
export interface IDynamicListService {
|
||||
dynamicList(tenantId: number, model: any, filter: IDynamicListFilterDTO): Promise<any>;
|
||||
dynamicList(
|
||||
tenantId: number,
|
||||
model: any,
|
||||
filter: IDynamicListFilterDTO
|
||||
): Promise<any>;
|
||||
handlerErrorsToResponse(error, req, res, next): void;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,4 +76,10 @@ export interface IItemsFilter extends IDynamicListFilter {
|
||||
stringifiedFilterRoles?: string,
|
||||
page: number,
|
||||
pageSize: number,
|
||||
};
|
||||
};
|
||||
|
||||
export interface IItemsAutoCompleteFilter {
|
||||
limit: number,
|
||||
keyword: string,
|
||||
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import { IDynamicListFilter } from 'interfaces/DynamicFilter';
|
||||
import { IItemEntry, IItemEntryDTO } from "./ItemEntry";
|
||||
|
||||
export interface ISaleInvoice {
|
||||
@@ -36,7 +37,7 @@ export interface ISaleInvoiceEditDTO extends ISaleInvoiceDTO {
|
||||
|
||||
};
|
||||
|
||||
export interface ISalesInvoicesFilter{
|
||||
export interface ISalesInvoicesFilter extends IDynamicListFilter{
|
||||
page: number,
|
||||
pageSize: number,
|
||||
};
|
||||
Reference in New Issue
Block a user