fix idp on started
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
||||
import { IsBoolean, IsIn, IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
||||
|
||||
export class UpsertSettingDto {
|
||||
@ApiProperty({ description: 'Ключ настройки', example: 'PIN_LOCK_TIMEOUT_MINUTES' })
|
||||
@@ -43,6 +43,17 @@ export class UpsertSocialProviderDto {
|
||||
isEnabled!: boolean;
|
||||
}
|
||||
|
||||
export class TestMessagingDeliveryDto {
|
||||
@ApiProperty({ description: 'Канал доставки', enum: ['email', 'sms'] })
|
||||
@IsIn(['email', 'sms'], { message: 'Канал должен быть email или sms' })
|
||||
channel!: 'email' | 'sms';
|
||||
|
||||
@ApiProperty({ description: 'Email или номер телефона получателя', example: 'user@example.com' })
|
||||
@IsString({ message: 'Получатель должен быть строкой' })
|
||||
@IsNotEmpty({ message: 'Укажите email или телефон' })
|
||||
target!: string;
|
||||
}
|
||||
|
||||
export class ConnectLinkedAccountDto {
|
||||
@ApiProperty({ description: 'Название провайдера', example: 'google' })
|
||||
@IsString({ message: 'Название провайдера должно быть строкой' })
|
||||
|
||||
Reference in New Issue
Block a user