Variable SurveySystemConfigSchemaConst
SurveySystemConfigSchema: ZodObject<
{
default_log_channel: ZodOptional<ZodType<string, ZodTypeDef, string>>;
enabled: ZodDefault<ZodBoolean>;
surveys: ZodDefault<
ZodRecord<
ZodString,
ZodObject<
{
description: ZodOptional<ZodString>;
end_message: ZodOptional<ZodString>;
log_channel: ZodOptional<ZodType<string, ZodTypeDef, string>>;
name: ZodString;
questions: ZodArray<
ZodObject<
{
default_value: ZodOptional<ZodString>;
maxLength: ZodOptional<ZodNumber>;
minLength: ZodOptional<ZodNumber>;
placeholder: ZodOptional<ZodString>;
question: ZodString;
required: ZodDefault<ZodBoolean>;
type: ZodEnum<[(...), (...)]>;
},
"strip",
ZodTypeAny,
{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required: boolean;
type: "paragraph"
| "short";
},
{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required?: boolean;
type: "paragraph"
| "short";
},
>,
"atleastone",
>;
required_channels: ZodDefault<
ZodArray<ZodType<string, ZodTypeDef, string>, "many">,
>;
required_permissions: ZodDefault<ZodArray<ZodString, "many">>;
required_roles: ZodDefault<
ZodArray<ZodType<string, ZodTypeDef, string>, "many">,
>;
required_users: ZodDefault<
ZodArray<ZodType<string, ZodTypeDef, string>, "many">,
>;
},
"strip",
ZodTypeAny,
{
description?: string;
end_message?: string;
log_channel?: string;
name: string;
questions: [
{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required: boolean;
type: "paragraph"
| "short";
},
...{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required: boolean;
type: "paragraph"
| "short";
}[],
];
required_channels: string[];
required_permissions: string[];
required_roles: string[];
required_users: string[];
},
{
description?: string;
end_message?: string;
log_channel?: string;
name: string;
questions: [
{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required?: boolean;
type: "paragraph"
| "short";
},
...{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required?: boolean;
type: "paragraph"
| "short";
}[],
];
required_channels?: string[];
required_permissions?: string[];
required_roles?: string[];
required_users?: string[];
},
>,
>,
>;
},
"strip",
ZodTypeAny,
{
default_log_channel?: string;
enabled: boolean;
surveys: Record<
string,
{
description?: string;
end_message?: string;
log_channel?: string;
name: string;
questions: [
{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required: boolean;
type: "paragraph"
| "short";
},
...{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required: boolean;
type: "paragraph"
| "short";
}[],
];
required_channels: string[];
required_permissions: string[];
required_roles: string[];
required_users: string[];
},
>;
},
{
default_log_channel?: string;
enabled?: boolean;
surveys?: Record<
string,
{
description?: string;
end_message?: string;
log_channel?: string;
name: string;
questions: [
{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required?: boolean;
type: "paragraph"
| "short";
},
...{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required?: boolean;
type: "paragraph"
| "short";
}[],
];
required_channels?: string[];
required_permissions?: string[];
required_roles?: string[];
required_users?: string[];
},
>;
},
> = ...