From 1fa03f73ada50fc1dfd62b483706d724cdcb39ad Mon Sep 17 00:00:00 2001 From: Ben White Date: Mon, 9 Dec 2024 16:58:39 +0100 Subject: [PATCH] Fixed up survey type --- src/posthog-surveys-types.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/posthog-surveys-types.ts b/src/posthog-surveys-types.ts index 8313093b1..709b18288 100644 --- a/src/posthog-surveys-types.ts +++ b/src/posthog-surveys-types.ts @@ -147,7 +147,6 @@ export interface Survey { // Sync this with the backend's SurveyAPISerializer! id: string name: string - description: string type: SurveyType feature_flag_keys: | { @@ -172,7 +171,7 @@ export interface Survey { }[] } | null actions: { - values: ActionType[] + values: SurveyActionType[] } | null } | null start_date: string | null @@ -181,16 +180,10 @@ export interface Survey { current_iteration_start_date: string | null } -export interface ActionType { - count?: number - created_at: string - deleted?: boolean +export interface SurveyActionType { id: number name: string | null steps?: ActionStepType[] - tags?: string[] - is_action?: true - action_id?: number // alias of id to make it compatible with event definitions uuid } /** Sync with plugin-server/src/types.ts */