mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-22 19:39:01 -05:00
[FIX] zod-type
This commit is contained in:
@@ -231,7 +231,7 @@ export const ZSurvey = z.object({
|
||||
displayOption: z.enum(["displayOnce", "displayMultiple", "respondMultiple"]),
|
||||
autoClose: z.union([z.number(), z.null()]),
|
||||
triggers: z.array(ZActionClass),
|
||||
redirectUrl: z.string().url().optional(),
|
||||
redirectUrl: z.string().url().nullable(),
|
||||
recontactDays: z.union([z.number(), z.null()]),
|
||||
questions: ZSurveyQuestions,
|
||||
thankYouCard: ZSurveyThankYouCard,
|
||||
@@ -250,4 +250,9 @@ export const ZSurveyWithAnalytics = ZSurvey.extend({
|
||||
surveyClosedMessage: ZSurveyClosedMessage,
|
||||
});
|
||||
|
||||
export const ZSurveyWithResponseCount = ZSurvey.extend({
|
||||
responses: z.number(),
|
||||
});
|
||||
|
||||
export type TSurveyWithAnalytics = z.infer<typeof ZSurveyWithAnalytics>;
|
||||
export type TSurveyWithResponseCount = z.infer<typeof ZSurveyWithResponseCount>;
|
||||
|
||||
Reference in New Issue
Block a user