"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const zod_1 = __importDefault(require("zod"));
exports.fields = {
    mode: {
        id: 'mode',
        label: 'Mode',
        description: "The mode of the checkout session which can be 'payment', 'setup', and 'subscription'",
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    item: {
        id: 'item',
        label: 'Item',
        description: 'The id of the item (price ID) the customer is purchasing',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.default.object({
    mode: zod_1.default
        .string()
        .min(1)
        .toLowerCase()
        .pipe(zod_1.default.enum(['payment', 'setup', 'subscription'])),
    item: zod_1.default.string().min(1),
});
//# sourceMappingURL=fields.js.map