"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 = {
    workingHoursStart: {
        id: 'workingHoursStart',
        label: 'Working hours start',
        description: 'The start time of working hours in HH:MM format (e.g., "09:00"). Uses 24-hour format.',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    workingHoursEnd: {
        id: 'workingHoursEnd',
        label: 'Working hours end',
        description: 'The end time of working hours in HH:MM format (e.g., "17:00"). Uses 24-hour format.',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    timezone: {
        id: 'timezone',
        label: 'Timezone',
        description: 'The IANA timezone identifier to use for the working hours check (e.g., "America/New_York", "Europe/London", "Asia/Tokyo", "UTC"). If not specified, UTC will be used.',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    workingHoursStart: zod_1.z.string().regex(/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/, {
        message: 'Working hours start must be in HH:MM format (e.g., "09:00")',
    }),
    workingHoursEnd: zod_1.z.string().regex(/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/, {
        message: 'Working hours end must be in HH:MM format (e.g., "17:00")',
    }),
    timezone: zod_1.z.string().optional().default('UTC'),
});
//# sourceMappingURL=fields.js.map