fix: RateLimit verify email and fix (#23718)
* fix: RateLimit verify email * update * client chnages * type error * fix * add test * Update event-types.e2e.ts * minor update * Update event-types.e2e.ts * fix test * handle it in api v2
This commit is contained in:
1 parent
79169de8d8
commit
ee70111c45
14 files changed
+456
-22
No files matched your search
@@ -63,6 +63,7 @@ export const useHandleBookEvent = ({
|
||||
const crmOwnerRecordType = useBookerStoreContext((state) => state.crmOwnerRecordType);
|
||||
const crmAppSlug = useBookerStoreContext((state) => state.crmAppSlug);
|
||||
const crmRecordId = useBookerStoreContext((state) => state.crmRecordId);
|
||||
const verificationCode = useBookerStoreContext((state) => state.verificationCode);
|
||||
const handleError = (err: any) => {
|
||||
const errorMessage = err?.message ? t(err.message) : t("can_you_try_again");
|
||||
showToast(errorMessage, "error");
|
||||
@@ -113,6 +114,7 @@ export const useHandleBookEvent = ({
|
||||
orgSlug: orgSlug ? orgSlug : undefined,
|
||||
routingFormSearchParams,
|
||||
isDryRunProp: isBookingDryRun,
|
||||
verificationCode: verificationCode || undefined,
|
||||
};
|
||||
|
||||
const tracking = getUtmTrackingParameters(searchParams);
|
||||
|
||||
@@ -371,6 +371,15 @@ export class CreateBookingInput_2024_08_13 {
|
||||
@ValidateNested()
|
||||
@Type(() => Routing)
|
||||
routing?: Routing;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
type: String,
|
||||
description: "Email verification code required when event type has email verification enabled.",
|
||||
example: "123456",
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
emailVerificationCode?: string;
|
||||
}
|
||||
|
||||
export class CreateInstantBookingInput_2024_08_13 extends CreateBookingInput_2024_08_13 {
|
||||
|
||||
@@ -27,6 +27,15 @@ export class RescheduleBookingInput_2024_08_13 {
|
||||
description: "Reason for rescheduling the booking",
|
||||
})
|
||||
reschedulingReason?: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
@ApiPropertyOptional({
|
||||
type: String,
|
||||
description: "Email verification code required when event type has email verification enabled.",
|
||||
example: "123456",
|
||||
})
|
||||
emailVerificationCode?: string;
|
||||
}
|
||||
|
||||
export class RescheduleSeatedBookingInput_2024_08_13 {
|
||||
@@ -51,4 +60,13 @@ export class RescheduleSeatedBookingInput_2024_08_13 {
|
||||
})
|
||||
@IsString()
|
||||
seatUid!: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
@ApiPropertyOptional({
|
||||
type: String,
|
||||
description: "Email verification code required when event type has email verification enabled.",
|
||||
example: "123456",
|
||||
})
|
||||
emailVerificationCode?: string;
|
||||
}
|
||||
Reference in new issue
Block a user