Add VoIP webhook connector for call logging, notifications, and optional click-to-call; align brand to Montact.

This commit is contained in:
2026-09-27 08:47:11 +03:30
parent 26085b54a9
commit db65b55660
17 changed files with 1385 additions and 14 deletions
+61
View File
@@ -0,0 +1,61 @@
import {
IsBoolean,
IsOptional,
IsString,
MaxLength,
MinLength,
} from 'class-validator';
export class CreateVoipConnectionDto {
@IsString()
@MinLength(2)
@MaxLength(80)
label!: string;
@IsOptional()
@IsString()
@MaxLength(200)
webhookSecret?: string;
@IsOptional()
@IsString()
@MaxLength(500)
clickToCallUrl?: string | null;
@IsOptional()
@IsBoolean()
enabled?: boolean;
}
export class UpdateVoipConnectionDto {
@IsOptional()
@IsString()
@MinLength(2)
@MaxLength(80)
label?: string;
@IsOptional()
@IsString()
@MaxLength(200)
webhookSecret?: string | null;
@IsOptional()
@IsString()
@MaxLength(500)
clickToCallUrl?: string | null;
@IsOptional()
@IsBoolean()
enabled?: boolean;
}
export class VoipClickToCallDto {
@IsString()
@MinLength(3)
@MaxLength(32)
number!: string;
@IsOptional()
@IsString()
personId?: string;
}