import { ActionConfig, PopupWindowOptions } from './general-types'; export interface HomeScreenHeaderOptions { objectName: string; objectIcon: string; headerViewsNav?: ActionConfig[]; headerMainActions?: ActionConfig[]; customUseCases?: ActionConfig[]; craetionBtnActionFunction: (a: any) => void; /** this for home screen only */ } export interface CommonHomeScreenOptions { objectRemoteRestUrl: string; objectRoutingPath: string; objectName: string; gridColumns: any[]; //TODO create type for columns creationModel: any; detailTemplate?: string; detailInit?: (e: any) => void; dataSourceOptions?: kendo.data.DataSourceOptions; creationPopupWindow: PopupWindowOptions; } export interface ConfigHomeScreenOptions extends CommonHomeScreenOptions { customUseCases?: ActionConfig[]; creationCallback?: () => void; onCancelpopup?: () => void; onSuccessCreation?: () => void; } export interface LookupHomeScreenOptions extends CommonHomeScreenOptions { editPopupWindow: PopupWindowOptions; editingModel?: {}; }