import { OptionalNumbersStringToNumbersArray } from '@humand-packages/common';
import { Expose } from 'class-transformer';
import { IsArray, IsNumber, IsOptional, IsString, MaxLength } from 'class-validator';

export default class ListKioskCollabsVC {
    @IsOptional()
    @IsArray()
    @IsNumber({}, { each: true })
    @Expose()
    @OptionalNumbersStringToNumbersArray()
    userIds!: number[];

    @IsOptional()
    @IsArray()
    @IsNumber({}, { each: true })
    @Expose()
    @OptionalNumbersStringToNumbersArray()
    itemIds!: number[];

    @IsOptional()
    @IsString()
    @MaxLength(255)
    @Expose()
    q?: string;

    @IsOptional()
    @IsArray()
    @IsNumber({}, { each: true })
    @Expose()
    @OptionalNumbersStringToNumbersArray()
    departmentIds!: number[];
}
