import { RuleSet, RuleType, ScheduleConfig } from '../survey/distribution/InAppTriggerModels'; export interface SdkResponse { surveyPlans: SurveyPlan[]; inlineSurveys: InlineSurvey[]; sdkConfig?: SdkConfig; } export interface InlineSurvey { id: string; surveyName: string; webPageUrl: string; } export interface SurveyPlan { id: string; surveyPresentation: SurveyPresentation; ruleSetList: Array; distribution: { scheduleConfig: ScheduleConfig; }; } export interface SurveyPresentation { surveyWebAppUrl: string; useHeightMargin: boolean; useWidthMargin: boolean; isFullBleed: boolean; displayLocation: 'top_banner' | 'bottom_banner' | 'center_modal' | 'full_screen'; displayDuration: number; maxWidgetHeightInPercent: number; maxWidgetWidthInPercent: number; } export interface TriggerCondition { type: RuleType; property: string; operator: string; value: string; } export interface SdkConfig { refreshIntervalSec: number; baseServerUrl: string | null; } export type FeebaConfig = { serviceConfig: ServerConfig; }; export interface ServerConfig { hostUrl: string; langCode: string; apiToken: string; }