π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
import {
IsDefined,
IsEmail,
IsString,
MaxLength,
MinLength,
ValidateIf,
} from 'class-validator';
import { Provider } from '@prisma/client';
export class CreateOrgUserDto {
@IsString()
@MinLength(3)
@MaxLength(64)
@IsDefined()
@ValidateIf((o) => !o.providerToken)
password: string;
@IsString()
@IsDefined()
provider: Provider;
@IsString()
@IsDefined()
@ValidateIf((o) => !o.password)
providerToken: string;
@IsEmail()
@IsDefined()
@ValidateIf((o) => !o.providerToken)
email: string;
@IsString()
@IsDefined()
@MinLength(3)
@MaxLength(128)
company: string;
datafast_visitor_id: string;
}