import { Observable } from 'rxjs'; import { ConditionOptions, TypeRequest } from '../../../enums/export'; import { OptionsTable } from '../export'; /** * select status option */ export interface SelectStatusOption extends OptionsTable { /** * type to send data */ typeRequest: TypeRequest; /** * get values to select */ options: Array<{ text: any; value: any; }> | (({ data }: { data: any; }) => Array<{ text: any; value: any; }>); /** * attribute to send data */ attribute: string; /** * confirm condition */ condition?: { /** * confirm title */ title?: string | ((data: any) => string); /** * position to pop */ position?: ConditionOptions; }; /** * custom http subscriber */ httpSubscribe?: ({ data, item }: { data: any; item: any; }) => Observable; /** * custom map to http subscriber */ mapHttpSubscribe?: ({ response, component }: { response: any; component: any; }) => any; }