"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const zod_1 = require("zod");
const extensions_core_1 = require("@awell-health/extensions-core");
exports.fields = {
    referenceDate: {
        id: 'referenceDate',
        label: 'Reference date',
        description: 'Set the reference date to calculate the next workday from. If not specified, the current date (today) will be used.',
        type: extensions_core_1.FieldType.DATE,
        required: false,
    },
    includeReferenceDate: {
        id: 'includeReferenceDate',
        label: 'Include reference date',
        description: 'If this option is enabled and the reference date is a work day, that date will be returned. If it is disabled, the next work day after the reference date will be returned.',
        type: extensions_core_1.FieldType.BOOLEAN,
        required: false,
    },
    timezone: {
        id: 'timezone',
        label: 'Timezone',
        description: 'The IANA timezone identifier to use for the next workday calculation (e.g., "America/New_York", "Europe/London", "America/Chicago", "UTC"). If not specified, America/Chicago will be used.',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    referenceDate: zod_1.z.optional(zod_1.z.coerce.date()),
    includeReferenceDate: zod_1.z.boolean().optional().default(true),
    timezone: zod_1.z.string().optional().default('America/Chicago'),
});
//# sourceMappingURL=fields.js.map