2024-03-27 20:36:03 +05:30
|
|
|
import { ViewStyle } from "react-native";
|
2024-05-14 23:40:14 +05:30
|
|
|
import { GenericActionPayload } from "../../actions/GenericAction";
|
2024-03-27 20:36:03 +05:30
|
|
|
|
|
|
|
|
export interface Widget {
|
|
|
|
|
widgetId: string;
|
|
|
|
|
widgetData: GenericWidgetData;
|
|
|
|
|
widgetName: string;
|
|
|
|
|
widgetType: string | null;
|
|
|
|
|
widgetStyle: ViewStyle;
|
|
|
|
|
widgetVisibility?: boolean;
|
2024-05-14 23:40:14 +05:30
|
|
|
widgetRenderActions?: GenericActionPayload
|
2024-03-27 20:36:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface GenericWidgetData {
|
|
|
|
|
widgetOutputDetails?: WidgetOutputData
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface WidgetOutputData {
|
|
|
|
|
dynamicInputUpdate?: Record<string, any>;
|
|
|
|
|
widgetOutput?: WidgetOutput[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface WidgetOutput {
|
|
|
|
|
fieldName?: string;
|
|
|
|
|
layoutId?: string;
|
|
|
|
|
}
|