2026-01-22 15:15:23 +00:00
import { ApiProperty } from '@nestjs/swagger' ;
export class PrintDataDto {
2026-01-26 21:48:06 +00:00
@ApiProperty ( {
example : [
'--------------------------------' ,
' TESTE DE IMPRESSAO ' ,
'--------------------------------' ,
] ,
description : 'Lista de linhas de texto para imprimir' ,
2026-01-22 15:15:23 +00:00
} )
lines : string [ ] ;
2026-01-26 21:48:06 +00:00
@ApiProperty ( {
required : false ,
2026-01-22 15:15:23 +00:00
enum : [ 'left' , 'center' , 'right' ] ,
example : 'center' ,
2026-01-26 21:48:06 +00:00
description : 'Alinhamento do texto' ,
2026-01-22 15:15:23 +00:00
} )
alignment ? : 'left' | 'center' | 'right' ;
2026-01-26 21:48:06 +00:00
@ApiProperty ( {
required : false ,
2026-01-22 15:15:23 +00:00
example : false ,
2026-01-26 21:48:06 +00:00
description : 'Se verdadeiro, imprime de cabeça para baixo (se suportado)' ,
2026-01-22 15:15:23 +00:00
} )
upsideDown? : boolean ;
@ApiProperty ( {
required : false ,
example : 'tcp://10.1.119.13' ,
2026-01-26 21:48:06 +00:00
description :
'Interface da impressora. Obrigatorio ao usar /printer/print; ignorado ao usar /printer/:printerName/print. Ex: tcp://ip:porta ou printer:NomeDaImpressora' ,
2026-01-22 15:15:23 +00:00
} )
printerInterface? : string ;
}