24 lines
491 B
TypeScript
24 lines
491 B
TypeScript
import { ViewStyle } from "react-native";
|
|
|
|
export interface Widget {
|
|
widgetId: string;
|
|
widgetData: GenericWidgetData;
|
|
widgetName: string;
|
|
widgetType: string | null;
|
|
widgetStyle: ViewStyle;
|
|
widgetVisibility?: boolean;
|
|
}
|
|
|
|
export interface GenericWidgetData {
|
|
widgetOutputDetails?: WidgetOutputData
|
|
}
|
|
|
|
interface WidgetOutputData {
|
|
dynamicInputUpdate?: Record<string, any>;
|
|
widgetOutput?: WidgetOutput[];
|
|
}
|
|
|
|
interface WidgetOutput {
|
|
fieldName?: string;
|
|
layoutId?: string;
|
|
} |