mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-22 11:29:22 -05:00
fix: notion integration (#3162)
This commit is contained in:
committed by
GitHub
parent
59a29dd3d6
commit
9a98772210
@@ -36,7 +36,7 @@ export const ZIntegrationBaseSurveyData = z.object({
|
||||
surveyName: z.string(),
|
||||
});
|
||||
|
||||
export const ZIntegrationInput = z.union([
|
||||
export const ZIntegrationInput = z.discriminatedUnion("type", [
|
||||
ZIntegrationGoogleSheetsInput,
|
||||
ZIntegrationAirtableInput,
|
||||
ZIntegrationNotionInput,
|
||||
|
||||
@@ -8,17 +8,19 @@ export const ZIntegrationNotionCredential = z.object({
|
||||
duplicated_template_id: z.string().nullable(),
|
||||
owner: z.object({
|
||||
type: z.string(),
|
||||
workspace: z.boolean().nullable(),
|
||||
workspace: z.boolean().nullish(),
|
||||
user: z
|
||||
.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
type: z.string(),
|
||||
name: z.string().nullish(),
|
||||
type: z.string().nullish(),
|
||||
object: z.string(),
|
||||
person: z.object({
|
||||
email: z.string().email(),
|
||||
}),
|
||||
avatar_url: z.string(),
|
||||
person: z
|
||||
.object({
|
||||
email: z.string().email(),
|
||||
})
|
||||
.nullish(),
|
||||
avatar_url: z.string().nullish(),
|
||||
})
|
||||
.nullable(),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user