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:
7 files changed
+129
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { IsArray, IsNumber, IsOptional, IsString } from "class-validator";
|
||||
import { IsArray, IsNumber, IsOptional, IsBoolean, IsString } from "class-validator";
|
||||
import { z } from "zod";
|
||||
|
||||
export class CreateOAuthClientInput {
|
||||
@@ -15,6 +15,22 @@ export class CreateOAuthClientInput {
|
||||
|
||||
@IsNumber()
|
||||
permissions!: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
bookingRedirectUri?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
bookingCancelRedirectUri?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
bookingRescheduleRedirectUri?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
areEmailsEnabled?: boolean;
|
||||
}
|
||||
|
||||
export class DeleteOAuthClientInput {
|
||||
|
||||
Reference in new issue
Block a user