1- import type { TProjectStyling } from "@/types/config" ;
21import type { TResponseData , TResponseUpdate } from "@/types/response" ;
32import type { TFileUploadParams , TUploadFileConfig } from "@/types/storage" ;
3+ import type { TProjectStyling } from "./project" ;
44
55export type TJsFileUploadParams = {
66 file : {
@@ -219,10 +219,10 @@ export type TSurvey = {
219219 recontactDays : number | null ;
220220 displayLimit : number | null ;
221221 displayOption :
222- | "displayOnce"
223- | "displayMultiple"
224- | "respondMultiple"
225- | "displaySome" ;
222+ | "displayOnce"
223+ | "displayMultiple"
224+ | "respondMultiple"
225+ | "displaySome" ;
226226 hiddenFields : {
227227 enabled : boolean ;
228228 fieldIds ?: string [ ] ;
@@ -232,12 +232,12 @@ export type TSurvey = {
232232 brandColor ?: string | null ;
233233 highlightBorderColor ?: string | null ;
234234 placement ?:
235- | "topLeft"
236- | "topRight"
237- | "bottomLeft"
238- | "bottomRight"
239- | "center"
240- | null ;
235+ | "topLeft"
236+ | "topRight"
237+ | "bottomLeft"
238+ | "bottomRight"
239+ | "center"
240+ | null ;
241241 clickOutsideClose ?: boolean | null ;
242242 darkOverlay ?: boolean | null ;
243243 } | null ;
@@ -267,12 +267,12 @@ export type TSurvey = {
267267 urlFilters : {
268268 value : string ;
269269 rule :
270- | "exactMatch"
271- | "contains"
272- | "startsWith"
273- | "endsWith"
274- | "notMatch"
275- | "notContains" ;
270+ | "exactMatch"
271+ | "contains"
272+ | "startsWith"
273+ | "endsWith"
274+ | "notMatch"
275+ | "notContains" ;
276276 } [ ] ;
277277 elementSelector ?: {
278278 cssSelector ?: string ;
@@ -318,3 +318,32 @@ export type TSurvey = {
318318 overwriteThemeStyling ?: boolean | null ;
319319 } ;
320320} ;
321+
322+ export interface TStylingColor {
323+ light : string ;
324+ dark ?: string | null ;
325+ }
326+
327+ export interface TBaseStyling {
328+ brandColor ?: TStylingColor | null ;
329+ questionColor ?: TStylingColor | null ;
330+ inputColor ?: TStylingColor | null ;
331+ inputBorderColor ?: TStylingColor | null ;
332+ cardBackgroundColor ?: TStylingColor | null ;
333+ cardBorderColor ?: TStylingColor | null ;
334+ cardShadowColor ?: TStylingColor | null ;
335+ highlightBorderColor ?: TStylingColor | null ;
336+ isDarkModeEnabled ?: boolean | null ;
337+ roundness ?: number | null ;
338+ cardArrangement ?: {
339+ linkSurveys : "casual" | "straight" | "simple" ;
340+ appSurveys : "casual" | "straight" | "simple" ;
341+ } | null ;
342+ background ?: {
343+ bg ?: string | null ;
344+ bgType ?: "animation" | "color" | "image" | "upload" | null ;
345+ brightness ?: number | null ;
346+ } | null ;
347+ hideProgressBar ?: boolean | null ;
348+ isLogoHidden ?: boolean | null ;
349+ }
0 commit comments