Skip to content

Commit

Permalink
Fixed up survey type
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Dec 9, 2024
1 parent 99e92b5 commit 1fa03f7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/posthog-surveys-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
| {
Expand All @@ -172,7 +171,7 @@ export interface Survey {
}[]
} | null
actions: {
values: ActionType[]
values: SurveyActionType[]
} | null
} | null
start_date: string | null
Expand All @@ -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 */
Expand Down

0 comments on commit 1fa03f7

Please sign in to comment.