Send Email to Owner on Form Submission (#5261)
Co-authored-by: alannnc <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
16 files changed
+241
-54
No files matched your search
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "App_RoutingForms_Form" ADD COLUMN "settings" JSONB;
|
||||
@@ -518,6 +518,8 @@ model App_RoutingForms_Form {
|
||||
userId Int
|
||||
responses App_RoutingForms_FormResponse[]
|
||||
disabled Boolean @default(false)
|
||||
/// @zod.custom(imports.RoutingFormSettings)
|
||||
settings Json?
|
||||
}
|
||||
|
||||
model App_RoutingForms_FormResponse {
|
||||
|
||||
@@ -213,6 +213,12 @@ export const successRedirectUrl = z
|
||||
])
|
||||
.optional();
|
||||
|
||||
export const RoutingFormSettings = z
|
||||
.object({
|
||||
emailOwnerOnSubmission: z.boolean(),
|
||||
})
|
||||
.nullable();
|
||||
|
||||
export type ZodDenullish<T extends ZodTypeAny> = T extends ZodNullable<infer U> | ZodOptional<infer U>
|
||||
? ZodDenullish<U>
|
||||
: T;
|
||||
|
||||
Reference in new issue
Block a user