Spaces:
Runtime error
Runtime error
| import { ApiProperty } from '@nestjs/swagger'; | |
| import { SessionConfig } from '@waha/structures/sessions.dto'; | |
| import { Type } from 'class-transformer'; | |
| import { | |
| IsBoolean, | |
| IsOptional, | |
| IsString, | |
| ValidateNested, | |
| } from 'class-validator'; | |
| export class SessionStartDeprecatedRequest { | |
| ({ | |
| example: 'default', | |
| description: 'Session name (id)', | |
| }) | |
| () | |
| name: string; | |
| () | |
| (() => SessionConfig) | |
| () | |
| config?: SessionConfig; | |
| } | |
| export class SessionStopDeprecatedRequest { | |
| ({ | |
| example: 'default', | |
| description: 'Session name (id)', | |
| }) | |
| () | |
| name: string; | |
| ({ | |
| example: false, | |
| required: false, | |
| description: 'Stop and logout from the session.', | |
| }) | |
| () | |
| () | |
| logout: boolean | undefined = false; | |
| } | |
| export class SessionLogoutDeprecatedRequest { | |
| ({ | |
| example: 'default', | |
| description: 'Session name (id)', | |
| }) | |
| () | |
| name: string; | |
| } | |