17 lines
397 B
TypeScript
17 lines
397 B
TypeScript
import { Field, InputType } from "type-graphql";
|
|
|
|
@InputType()
|
|
export class GuardrailsRuleInput {
|
|
@Field(() => [String], { nullable: true })
|
|
allowList?: string[] = [];
|
|
|
|
@Field(() => [String], { nullable: true })
|
|
denyList?: string[] = [];
|
|
}
|
|
|
|
@InputType()
|
|
export class GuardrailsInput {
|
|
@Field(() => GuardrailsRuleInput, { nullable: false })
|
|
inputValidationRules: GuardrailsRuleInput;
|
|
}
|