Spaces:
Runtime error
Runtime error
| import { ApiExtraModels, ApiProperty, getSchemaPath } from '@nestjs/swagger'; | |
| import { BinaryFile, RemoteFile } from '@waha/structures/files.dto'; | |
| import { ChatIdProperty } from '@waha/structures/properties.dto'; | |
| import { IsNotEmpty, IsString } from 'class-validator'; | |
| export class MyProfile { | |
| () | |
| id: string; | |
| name: string; | |
| ({ | |
| example: 'https://example.com/picture.jpg', | |
| }) | |
| picture: string | null; | |
| } | |
| export class ProfileNameRequest { | |
| () | |
| () | |
| ({ | |
| example: 'My New Name', | |
| }) | |
| name: string; | |
| } | |
| export class ProfileStatusRequest { | |
| () | |
| () | |
| ({ | |
| example: 'π Hey there! I am using WhatsApp π', | |
| }) | |
| status: string; | |
| } | |
| (RemoteFile, BinaryFile) | |
| export class ProfilePictureRequest { | |
| ({ | |
| oneOf: [ | |
| { $ref: getSchemaPath(RemoteFile) }, | |
| { $ref: getSchemaPath(BinaryFile) }, | |
| ], | |
| }) | |
| file: BinaryFile | RemoteFile; | |
| } | |