"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");
exports.fields = {
    phoneNumber: {
        id: 'phoneNumber',
        label: 'Phone number to filter',
        type: extensions_core_2.FieldType.STRING,
        stringType: extensions_core_2.StringType.PHONE,
        description: 'Search for text messages received from this phone number',
        required: false,
    },
    afterMessageId: {
        id: 'afterMessageId',
        label: 'Messages after',
        type: extensions_core_2.FieldType.STRING,
        description: 'The id of a message to use as non inclusive lower bound of post results.',
        required: false,
    },
    departmentId: {
        id: 'departmentId',
        label: 'Department Id',
        description: 'The ID of the department from which you want to retrieve the message. Defaults to to your first department.',
        type: extensions_core_2.FieldType.STRING,
        required: false,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    phoneNumber: extensions_core_1.E164PhoneValidationOptionalSchema,
    afterMessageId: zod_1.z.optional(zod_1.z
        .string()
        .min(10, { message: 'Message ID needs to be bigger than 10 characters.' })),
    departmentId: zod_1.z.optional(zod_1.z.string())
});
//# sourceMappingURL=fields.js.map