"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 = {
    bookingId: {
        label: 'Booking ID',
        id: 'bookingId',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        description: 'The ID of a Booking in Cal.com',
    },
    allRemainingBookings: {
        label: 'All remaining bookings',
        id: 'allRemainingBookings',
        type: extensions_core_1.FieldType.BOOLEAN,
        required: false,
        description: 'Delete all remaining bookings',
    },
    reason: {
        label: 'Reason',
        id: 'reason',
        type: extensions_core_1.FieldType.TEXT,
        required: false,
        description: 'The reason for cancellation of the booking',
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    bookingId: zod_1.z.string().nonempty(),
    allRemainingBookings: zod_1.z.boolean().optional(),
    reason: (0, extensions_core_1.makeStringOptional)(zod_1.z.string()),
});
//# sourceMappingURL=fields.js.map