import { IsNotEmpty, IsString } from "class-validator"; import { TenantSettingsCommand } from "./TenantSettingsCommand"; export abstract class ChannelSettingsCommand extends TenantSettingsCommand { @IsString() @IsNotEmpty() readonly channelId:string; constructor({ commandName, tenantId, channelId }: { commandName:string; tenantId: string; channelId:string; }) { super({ commandName:commandName, tenantId, }); this.channelId = channelId; } }