Matomo integration (#7009)

This commit is contained in:
Tom Moor
2024-06-12 08:03:38 -04:00
committed by GitHub
parent 0bf66cc560
commit df3cd22aee
19 changed files with 314 additions and 62 deletions

View File

@@ -51,7 +51,12 @@ export const IntegrationsCreateSchema = BaseSchema.extend({
channelId: z.string(),
})
)
.or(z.object({ measurementId: z.string() }))
.or(
z.object({
measurementId: z.string(),
instanceUrl: z.string().url().optional(),
})
)
.or(z.object({ serviceTeamId: z.string() }))
.optional(),
}),
@@ -74,7 +79,12 @@ export const IntegrationsUpdateSchema = BaseSchema.extend({
channelId: z.string(),
})
)
.or(z.object({ measurementId: z.string() }))
.or(
z.object({
measurementId: z.string(),
instanceUrl: z.string().url().optional(),
})
)
.or(z.object({ serviceTeamId: z.string() }))
.optional(),