-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into domain-wide-delegatio…
…n-google-calendar
- Loading branch information
Showing
323 changed files
with
8,086 additions
and
3,086 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
"dependencies": { | ||
"@calcom/platform-constants": "*", | ||
"@calcom/platform-enums": "*", | ||
"@calcom/platform-libraries": "npm:@calcom/[email protected].33", | ||
"@calcom/platform-libraries": "npm:@calcom/[email protected].34", | ||
"@calcom/platform-libraries-0.0.2": "npm:@calcom/[email protected]", | ||
"@calcom/platform-types": "*", | ||
"@calcom/platform-utils": "*", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
apps/api/v2/src/ee/event-types/event-types_2024_06_14/inputs/create-phone-call.input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import { ApiProperty as DocsProperty } from "@nestjs/swagger"; | ||
import { Transform } from "class-transformer"; | ||
import { IsString, IsBoolean, IsOptional, IsEnum, Matches } from "class-validator"; | ||
|
||
export enum TemplateType { | ||
CHECK_IN_APPOINTMENT = "CHECK_IN_APPOINTMENT", | ||
CUSTOM_TEMPLATE = "CUSTOM_TEMPLATE", | ||
} | ||
|
||
export class CreatePhoneCallInput { | ||
@IsString() | ||
@Matches(/^\+[1-9]\d{1,14}$/, { | ||
message: | ||
"Invalid phone number format. Expected format: +<CountryCode><PhoneNumber> with no spaces or separators.", | ||
}) | ||
@DocsProperty({ description: "Your phone number" }) | ||
yourPhoneNumber!: string; | ||
|
||
@IsString() | ||
@Matches(/^\+[1-9]\d{1,14}$/, { | ||
message: | ||
"Invalid phone number format. Expected format: +<CountryCode><PhoneNumber> with no spaces or separators.", | ||
}) | ||
@DocsProperty({ description: "Number to call" }) | ||
numberToCall!: string; | ||
|
||
@IsString() | ||
@DocsProperty({ description: "CAL API Key" }) | ||
calApiKey!: string; | ||
|
||
@IsBoolean() | ||
@DocsProperty({ description: "Enabled status", default: true }) | ||
enabled = true; | ||
|
||
@IsEnum(TemplateType) | ||
@DocsProperty({ description: "Template type", enum: TemplateType }) | ||
templateType: TemplateType = TemplateType.CUSTOM_TEMPLATE; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@DocsProperty({ description: "Scheduler name" }) | ||
schedulerName?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@Transform(({ value }) => (value ? value : undefined)) | ||
@DocsProperty({ description: "Guest name" }) | ||
guestName?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@Transform(({ value }) => (value ? value : undefined)) | ||
@DocsProperty({ description: "Guest email" }) | ||
guestEmail?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@Transform(({ value }) => (value ? value : undefined)) | ||
@DocsProperty({ description: "Guest company" }) | ||
guestCompany?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@DocsProperty({ description: "Begin message" }) | ||
beginMessage?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@DocsProperty({ description: "General prompt" }) | ||
generalPrompt?: string; | ||
} |
Oops, something went wrong.