"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");
const extensions_core_2 = require("@awell-health/extensions-core");
const validation_1 = require("../../../validation");
exports.fields = {
    recipient: {
        id: 'recipient',
        label: '"To" phone number',
        type: extensions_core_2.FieldType.STRING,
        stringType: extensions_core_2.StringType.PHONE,
        description: 'The phone number you would like to send the text message to.',
        required: true,
    },
    message: {
        id: 'message',
        label: 'Message',
        description: 'The message you would like to send.',
        type: extensions_core_2.FieldType.TEXT,
        required: true,
    },
    departmentId: {
        id: 'departmentId',
        label: 'Department Id',
        description: 'The department from which you want to send the message. Defaults to to your first department.',
        type: extensions_core_2.FieldType.STRING,
        required: false,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    recipient: extensions_core_1.E164PhoneValidationSchema,
    message: validation_1.MessageValidationSchema,
    departmentId: zod_1.z.optional(zod_1.z.string())
});
//# sourceMappingURL=fields.js.map