import { z } from 'zod';
import { ZFormDataFormFieldOptions } from './fields/options.js';
export var FieldType;
(function (FieldType) {
    FieldType["INPUT"] = "INPUT";
    FieldType["TEXTAREA"] = "TEXTAREA";
    FieldType["SELECT_SINGLE"] = "SELECT_SINGLE";
    FieldType["SELECT_MULTIPLE"] = "SELECT_MULTIPLE";
    FieldType["LEGALS"] = "LEGALS";
    FieldType["PHONE_NUMBER"] = "PHONE_NUMBER";
    FieldType["EMAIL_ADDRESS"] = "EMAIL_ADDRESS";
    FieldType["SELECT_DATE"] = "SELECT_DATE";
    FieldType["SELECT_COUNTRY"] = "SELECT_COUNT";
})(FieldType || (FieldType = {}));
export const ZFormDataFormFields = z.object({
    checked: z.boolean().optional(),
    formId: z.string().optional().nullable(),
    id: z.string().uuid().optional(),
    label: z.string().optional(),
    legalType: z.string().optional(),
    moduleId: z.string().optional().nullable(),
    name: z.string().optional(),
    options: z.array(ZFormDataFormFieldOptions).optional(),
    order: z.number().optional(),
    required: z.boolean().optional(),
    text: z.string().optional(),
    type: z.string(),
    versionId: z.string().optional().nullable()
});
