feat: add redirect uris for booking success, cancel and reschedule for a platform user (#14518)

* update typings

* update prisma to include redirect uris for booking success, cancel and reschedule

* update migrations

* add input for uris and send them back in custom hook

* display new uris

* add type for enabling emails

* update prisma schema and add migrations

* chores

* fixup

* chore: fix style, remove console log, rewrite migration

---------

Co-authored-by: Morgan Vernay <[email protected]>
Co-authored-by: Morgan <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-04-11 17:46:57 +00:00
1 parent af0cc5c899
commit 7836aeacc6
7 files changed
+129 -4

No files matched your search

@@ -1,4 +1,4 @@
import { IsArray, IsOptional, IsString } from "class-validator";
import { IsArray, IsBoolean, IsOptional, IsString } from "class-validator";
export class UpdateOAuthClientInput {
@IsOptional()
@@ -13,4 +13,20 @@ export class UpdateOAuthClientInput {
@IsOptional()
@IsString({ each: true })
redirectUris?: string[] = [];
@IsOptional()
@IsString()
bookingRedirectUri?: string;
@IsOptional()
@IsString()
bookingCancelRedirectUri?: string;
@IsOptional()
@IsString()
bookingRescheduleRedirectUri?: string;
@IsOptional()
@IsBoolean()
areEmailsEnabled?: boolean;
}