mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-13 01:59:39 -06:00
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com> Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com> Co-authored-by: Johannes <johannes@formbricks.com>
135 lines
2.9 KiB
TypeScript
135 lines
2.9 KiB
TypeScript
// https://github.com/airbnb/javascript/#naming--uppercase
|
|
import { TSurvey } from "@formbricks/types/surveys";
|
|
|
|
export const COLOR_DEFAULTS = {
|
|
brandColor: "#64748b",
|
|
questionColor: "#2b2524",
|
|
inputColor: "#ffffff",
|
|
inputBorderColor: "#cbd5e1",
|
|
cardBackgroundColor: "#ffffff",
|
|
cardBorderColor: "#f8fafc",
|
|
cardShadowColor: "#000000",
|
|
highlightBorderColor: "#64748b",
|
|
} as const;
|
|
|
|
export const PREVIEW_SURVEY = {
|
|
id: "cltxxaa6x0000g8hacxdxejeu",
|
|
createdAt: new Date(),
|
|
updatedAt: new Date(),
|
|
name: "New Survey",
|
|
type: "link",
|
|
environmentId: "cltwumfcz0009echxg02fh7oa",
|
|
createdBy: "cltwumfbz0000echxysz6ptvq",
|
|
status: "inProgress",
|
|
welcomeCard: {
|
|
html: {
|
|
default: "Thanks for providing your feedback - let's go!",
|
|
},
|
|
enabled: false,
|
|
headline: {
|
|
default: "Welcome!",
|
|
},
|
|
timeToFinish: false,
|
|
showResponseCount: false,
|
|
},
|
|
styling: null,
|
|
segment: null,
|
|
questions: [
|
|
{
|
|
id: "tunaz8ricd4regvkz1j0rbf6",
|
|
type: "openText",
|
|
headline: {
|
|
default: "This is a preview survey",
|
|
},
|
|
required: true,
|
|
inputType: "text",
|
|
subheader: {
|
|
default: "Click through it to check the look and feel of the surveying experience.",
|
|
},
|
|
placeholder: {
|
|
default: "Type your answer here...",
|
|
},
|
|
},
|
|
{
|
|
id: "lbdxozwikh838yc6a8vbwuju",
|
|
type: "rating",
|
|
range: 5,
|
|
scale: "star",
|
|
isDraft: true,
|
|
headline: {
|
|
default: "How would you rate My Product",
|
|
},
|
|
required: true,
|
|
subheader: {
|
|
default: "Don't worry, be honest.",
|
|
},
|
|
lowerLabel: {
|
|
default: "Not good",
|
|
},
|
|
upperLabel: {
|
|
default: "Very good",
|
|
},
|
|
},
|
|
{
|
|
id: "rjpu42ps6dzirsn9ds6eydgt",
|
|
type: "multipleChoiceSingle",
|
|
choices: [
|
|
{
|
|
id: "x6wty2s72v7vd538aadpurqx",
|
|
label: {
|
|
default: "Eat the cake 🍰",
|
|
},
|
|
},
|
|
{
|
|
id: "fbcj4530t2n357ymjp2h28d6",
|
|
label: {
|
|
default: "Have the cake 🎂",
|
|
},
|
|
},
|
|
],
|
|
isDraft: true,
|
|
headline: {
|
|
default: "What do you do?",
|
|
},
|
|
required: true,
|
|
subheader: {
|
|
default: "Can't do both.",
|
|
},
|
|
shuffleOption: "none",
|
|
},
|
|
],
|
|
thankYouCard: {
|
|
enabled: true,
|
|
headline: {
|
|
default: "Thank you!",
|
|
},
|
|
subheader: {
|
|
default: "We appreciate your feedback.",
|
|
},
|
|
},
|
|
hiddenFields: {
|
|
enabled: true,
|
|
fieldIds: [],
|
|
},
|
|
displayOption: "displayOnce",
|
|
recontactDays: null,
|
|
autoClose: null,
|
|
runOnDate: null,
|
|
closeOnDate: null,
|
|
delay: 0,
|
|
displayPercentage: null,
|
|
autoComplete: 50,
|
|
verifyEmail: null,
|
|
redirectUrl: null,
|
|
productOverwrites: null,
|
|
surveyClosedMessage: null,
|
|
singleUse: {
|
|
enabled: false,
|
|
isEncrypted: true,
|
|
},
|
|
pin: null,
|
|
resultShareKey: null,
|
|
languages: [],
|
|
triggers: [],
|
|
} as TSurvey;
|