"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActivityAttendeeInput$outboundSchema = exports.ActivityAttendee$inboundSchema = exports.ActivityAttendeeStatus$outboundSchema = exports.ActivityAttendeeStatus$inboundSchema = exports.ActivityAttendeeStatus = void 0;
exports.activityAttendeeFromJSON = activityAttendeeFromJSON;
exports.activityAttendeeInputToJSON = activityAttendeeInputToJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * Status of the attendee
 */
exports.ActivityAttendeeStatus = {
    Accepted: "accepted",
    Tentative: "tentative",
    Declined: "declined",
};
/** @internal */
exports.ActivityAttendeeStatus$inboundSchema = z.nativeEnum(exports.ActivityAttendeeStatus);
/** @internal */
exports.ActivityAttendeeStatus$outboundSchema = exports.ActivityAttendeeStatus$inboundSchema;
/** @internal */
exports.ActivityAttendee$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    first_name: z.nullable(z.string()).optional(),
    middle_name: z.nullable(z.string()).optional(),
    last_name: z.nullable(z.string()).optional(),
    prefix: z.nullable(z.string()).optional(),
    suffix: z.nullable(z.string()).optional(),
    email_address: z.nullable(z.string()).optional(),
    is_organizer: z.nullable(z.boolean()).optional(),
    status: z.nullable(exports.ActivityAttendeeStatus$inboundSchema).optional(),
    user_id: z.nullable(z.string()).optional(),
    contact_id: z.nullable(z.string()).optional(),
    updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "first_name": "firstName",
        "middle_name": "middleName",
        "last_name": "lastName",
        "email_address": "emailAddress",
        "is_organizer": "isOrganizer",
        "user_id": "userId",
        "contact_id": "contactId",
        "updated_at": "updatedAt",
        "created_at": "createdAt",
    });
});
function activityAttendeeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ActivityAttendee$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ActivityAttendee' from JSON`);
}
/** @internal */
exports.ActivityAttendeeInput$outboundSchema = z.object({
    name: z.nullable(z.string()).optional(),
    firstName: z.nullable(z.string()).optional(),
    middleName: z.nullable(z.string()).optional(),
    lastName: z.nullable(z.string()).optional(),
    prefix: z.nullable(z.string()).optional(),
    suffix: z.nullable(z.string()).optional(),
    emailAddress: z.nullable(z.string()).optional(),
    isOrganizer: z.nullable(z.boolean()).optional(),
    status: z.nullable(exports.ActivityAttendeeStatus$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        firstName: "first_name",
        middleName: "middle_name",
        lastName: "last_name",
        emailAddress: "email_address",
        isOrganizer: "is_organizer",
    });
});
function activityAttendeeInputToJSON(activityAttendeeInput) {
    return JSON.stringify(exports.ActivityAttendeeInput$outboundSchema.parse(activityAttendeeInput));
}
//# sourceMappingURL=activityattendee.js.map