Spaces:
Build error
Build error
File size: 530 Bytes
d9494a5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { Field, InputType } from '@nestjs/graphql';
import { IsString, Matches } from 'class-validator';
import { HANDLER_NAME_REGEX } from 'src/engine/metadata-modules/logic-function/constants/handler.contant';
@InputType()
export class LogicFunctionSourceInput {
@IsString()
@Field({ nullable: false })
sourceHandlerCode: string;
@IsString()
@Matches(HANDLER_NAME_REGEX, {
message: 'handlerName must be a valid JavaScript identifier or dotted path',
})
@Field({ nullable: false })
handlerName: string;
}
|