chore: added email and company form to cal.ai form (#14306)

* added email and company form

* i18n

* feat: add guest email and company

* chore: update and format prompt

* chore: hint var

* chore: fix err message

---------

Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-04-04 11:57:43 +00:00
1 parent 99f9a121cb
commit a8d8c992a4
10 files changed
+96 -8

No files matched your search

@@ -0,0 +1,10 @@
/*
Warnings:
- Added the required column `guestCompany` to the `AIPhoneCallConfiguration` table without a default value. This is not possible if the table is not empty.
- Added the required column `guestEmail` to the `AIPhoneCallConfiguration` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "AIPhoneCallConfiguration" ADD COLUMN "guestCompany" TEXT NOT NULL,
ADD COLUMN "guestEmail" TEXT NOT NULL;
+3 -1
View File
@@ -396,7 +396,7 @@ model OrganizationSettings {
isOrganizationVerified Boolean @default(false)
orgAutoAcceptEmail String
lockEventTypeCreationForUsers Boolean @default(false)
// It decides if instance ADMIN has reviewed the organization or not.
// It decides if instance ADMIN has reviewed the organization or not.
// It is used to allow super sensitive operations like 'impersonation of Org members by Org admin'
isAdminReviewed Boolean @default(false)
dSyncData DSyncData?
@@ -919,6 +919,8 @@ model AIPhoneCallConfiguration {
yourPhoneNumber String
numberToCall String
guestName String
guestEmail String
guestCompany String
enabled Boolean @default(false)
beginMessage String?
llmId String?
+6
View File
@@ -702,6 +702,12 @@ export const AIPhoneSettingSchema = z.object({
guestName: z.string().trim().min(1, {
message: "Please enter Guest Name",
}),
guestEmail: z.string().trim().email().min(1, {
message: "Please enter Guest Email",
}),
guestCompany: z.string().trim().min(1, {
message: "Please enter Guest Company",
}),
generalPrompt: z.string().trim().min(1, {
message: "Please enter prompt",
}),