ToolJet/server/src/dto/create-plugin.dto.ts
Arpit 85391d260a
[Marketplace] AWS S3 (#4670)
* fix: sub path for static asset serve (#4665)

* fix: sub path for static asset serve

* fix: sub path for static asset serve

* marketplace: s3

* rename operations file to query_operations

* fix: crash on click of existing plugin

* remove unused console

* adds missing async await

* add isoptional for repo

* plugin card ui style fixes

* update plugin name

Co-authored-by: Gandharv <gandharvkumargarg@gmail.com>
2022-11-01 16:24:30 +05:30

28 lines
431 B
TypeScript

import { IsNotEmpty, IsString, IsUUID, IsOptional, IsSemVer } from 'class-validator';
export class CreatePluginDto {
@IsString()
@IsNotEmpty()
name: string;
@IsString()
@IsOptional()
repo: string;
@IsString()
@IsNotEmpty()
description: string;
@IsString()
@IsNotEmpty()
id: string;
@IsString()
@IsNotEmpty()
@IsSemVer()
version: string;
@IsUUID()
@IsOptional()
organizationId: string;
}