"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.HrisCreateTimeOffRequestDto$outboundSchema = exports.HrisCreateTimeOffRequestDtoType$outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasValue$outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema = exports.HrisCreateTimeOffRequestDtoStatus$outboundSchema = exports.HrisCreateTimeOffRequestDtoValue$outboundSchema = exports.HrisCreateTimeOffRequestDtoSourceValue$outboundSchema = exports.HrisCreateTimeOffRequestDto4$outboundSchema = exports.StartHalfDay$outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemas2$outboundSchema = exports.HrisCreateTimeOffRequestDtoReason$outboundSchema = exports.EndHalfDay$outboundSchema = exports.HrisCreateTimeOffRequestDto2$outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasValue = exports.HrisCreateTimeOffRequestDtoValue = exports.HrisCreateTimeOffRequestDtoSchemas2 = exports.HrisCreateTimeOffRequestDto2 = void 0;
exports.endHalfDayToJSON = endHalfDayToJSON;
exports.hrisCreateTimeOffRequestDtoReasonToJSON = hrisCreateTimeOffRequestDtoReasonToJSON;
exports.startHalfDayToJSON = startHalfDayToJSON;
exports.hrisCreateTimeOffRequestDto4ToJSON = hrisCreateTimeOffRequestDto4ToJSON;
exports.hrisCreateTimeOffRequestDtoSourceValueToJSON = hrisCreateTimeOffRequestDtoSourceValueToJSON;
exports.hrisCreateTimeOffRequestDtoStatusToJSON = hrisCreateTimeOffRequestDtoStatusToJSON;
exports.hrisCreateTimeOffRequestDtoSchemas4ToJSON = hrisCreateTimeOffRequestDtoSchemas4ToJSON;
exports.hrisCreateTimeOffRequestDtoSchemasSourceValueToJSON = hrisCreateTimeOffRequestDtoSchemasSourceValueToJSON;
exports.hrisCreateTimeOffRequestDtoTypeToJSON = hrisCreateTimeOffRequestDtoTypeToJSON;
exports.hrisCreateTimeOffRequestDtoToJSON = hrisCreateTimeOffRequestDtoToJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const openEnums = __importStar(require("../../types/enums.js"));
var HrisCreateTimeOffRequestDto2;
(function (HrisCreateTimeOffRequestDto2) {
    HrisCreateTimeOffRequestDto2["True"] = "true";
    HrisCreateTimeOffRequestDto2["False"] = "false";
})(HrisCreateTimeOffRequestDto2 || (exports.HrisCreateTimeOffRequestDto2 = HrisCreateTimeOffRequestDto2 = {}));
var HrisCreateTimeOffRequestDtoSchemas2;
(function (HrisCreateTimeOffRequestDtoSchemas2) {
    HrisCreateTimeOffRequestDtoSchemas2["True"] = "true";
    HrisCreateTimeOffRequestDtoSchemas2["False"] = "false";
})(HrisCreateTimeOffRequestDtoSchemas2 || (exports.HrisCreateTimeOffRequestDtoSchemas2 = HrisCreateTimeOffRequestDtoSchemas2 = {}));
var HrisCreateTimeOffRequestDtoValue;
(function (HrisCreateTimeOffRequestDtoValue) {
    HrisCreateTimeOffRequestDtoValue["Approved"] = "approved";
    HrisCreateTimeOffRequestDtoValue["Cancelled"] = "cancelled";
    HrisCreateTimeOffRequestDtoValue["Rejected"] = "rejected";
    HrisCreateTimeOffRequestDtoValue["Pending"] = "pending";
    HrisCreateTimeOffRequestDtoValue["Deleted"] = "deleted";
    HrisCreateTimeOffRequestDtoValue["Draft"] = "draft";
    HrisCreateTimeOffRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(HrisCreateTimeOffRequestDtoValue || (exports.HrisCreateTimeOffRequestDtoValue = HrisCreateTimeOffRequestDtoValue = {}));
var HrisCreateTimeOffRequestDtoSchemasValue;
(function (HrisCreateTimeOffRequestDtoSchemasValue) {
    HrisCreateTimeOffRequestDtoSchemasValue["Sick"] = "sick";
    HrisCreateTimeOffRequestDtoSchemasValue["UnmappedValue"] = "unmapped_value";
    HrisCreateTimeOffRequestDtoSchemasValue["Vacation"] = "vacation";
    HrisCreateTimeOffRequestDtoSchemasValue["LongTermDisability"] = "long_term_disability";
    HrisCreateTimeOffRequestDtoSchemasValue["ShortTermDisability"] = "short_term_disability";
    HrisCreateTimeOffRequestDtoSchemasValue["Absent"] = "absent";
    HrisCreateTimeOffRequestDtoSchemasValue["CompTime"] = "comp_time";
    HrisCreateTimeOffRequestDtoSchemasValue["Training"] = "training";
    HrisCreateTimeOffRequestDtoSchemasValue["AnnualLeave"] = "annual_leave";
    HrisCreateTimeOffRequestDtoSchemasValue["LeaveOfAbsence"] = "leave_of_absence";
    HrisCreateTimeOffRequestDtoSchemasValue["Break"] = "break";
    HrisCreateTimeOffRequestDtoSchemasValue["ChildCareLeave"] = "child_care_leave";
    HrisCreateTimeOffRequestDtoSchemasValue["MaternityLeave"] = "maternity_leave";
    HrisCreateTimeOffRequestDtoSchemasValue["JuryDuty"] = "jury_duty";
    HrisCreateTimeOffRequestDtoSchemasValue["Sabbatical"] = "sabbatical";
    HrisCreateTimeOffRequestDtoSchemasValue["Accident"] = "accident";
    HrisCreateTimeOffRequestDtoSchemasValue["Paid"] = "paid";
    HrisCreateTimeOffRequestDtoSchemasValue["Unpaid"] = "unpaid";
    HrisCreateTimeOffRequestDtoSchemasValue["Holiday"] = "holiday";
    HrisCreateTimeOffRequestDtoSchemasValue["Personal"] = "personal";
    HrisCreateTimeOffRequestDtoSchemasValue["InLieu"] = "in_lieu";
    HrisCreateTimeOffRequestDtoSchemasValue["Bereavement"] = "bereavement";
    HrisCreateTimeOffRequestDtoSchemasValue["Other"] = "other";
})(HrisCreateTimeOffRequestDtoSchemasValue || (exports.HrisCreateTimeOffRequestDtoSchemasValue = HrisCreateTimeOffRequestDtoSchemasValue = {}));
/** @internal */
exports.HrisCreateTimeOffRequestDto2$outboundSchema = z.nativeEnum(HrisCreateTimeOffRequestDto2);
/** @internal */
exports.EndHalfDay$outboundSchema = z.union([z.boolean(), exports.HrisCreateTimeOffRequestDto2$outboundSchema]);
function endHalfDayToJSON(endHalfDay) {
    return JSON.stringify(exports.EndHalfDay$outboundSchema.parse(endHalfDay));
}
/** @internal */
exports.HrisCreateTimeOffRequestDtoReason$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
    });
});
function hrisCreateTimeOffRequestDtoReasonToJSON(hrisCreateTimeOffRequestDtoReason) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoReason$outboundSchema.parse(hrisCreateTimeOffRequestDtoReason));
}
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemas2$outboundSchema = z.nativeEnum(HrisCreateTimeOffRequestDtoSchemas2);
/** @internal */
exports.StartHalfDay$outboundSchema = z.union([z.boolean(), exports.HrisCreateTimeOffRequestDtoSchemas2$outboundSchema]);
function startHalfDayToJSON(startHalfDay) {
    return JSON.stringify(exports.StartHalfDay$outboundSchema.parse(startHalfDay));
}
/** @internal */
exports.HrisCreateTimeOffRequestDto4$outboundSchema = z.object({});
function hrisCreateTimeOffRequestDto4ToJSON(hrisCreateTimeOffRequestDto4) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDto4$outboundSchema.parse(hrisCreateTimeOffRequestDto4));
}
/** @internal */
exports.HrisCreateTimeOffRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisCreateTimeOffRequestDto4$outboundSchema),
    z.array(z.any()),
]);
function hrisCreateTimeOffRequestDtoSourceValueToJSON(hrisCreateTimeOffRequestDtoSourceValue) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoSourceValue$outboundSchema.parse(hrisCreateTimeOffRequestDtoSourceValue));
}
/** @internal */
exports.HrisCreateTimeOffRequestDtoValue$outboundSchema = openEnums.outboundSchema(HrisCreateTimeOffRequestDtoValue);
/** @internal */
exports.HrisCreateTimeOffRequestDtoStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisCreateTimeOffRequestDto4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateTimeOffRequestDtoValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisCreateTimeOffRequestDtoStatusToJSON(hrisCreateTimeOffRequestDtoStatus) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoStatus$outboundSchema.parse(hrisCreateTimeOffRequestDtoStatus));
}
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema = z.object({});
function hrisCreateTimeOffRequestDtoSchemas4ToJSON(hrisCreateTimeOffRequestDtoSchemas4) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema.parse(hrisCreateTimeOffRequestDtoSchemas4));
}
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema),
    z.array(z.any()),
]);
function hrisCreateTimeOffRequestDtoSchemasSourceValueToJSON(hrisCreateTimeOffRequestDtoSchemasSourceValue) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$outboundSchema.parse(hrisCreateTimeOffRequestDtoSchemasSourceValue));
}
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemasValue$outboundSchema = openEnums.outboundSchema(HrisCreateTimeOffRequestDtoSchemasValue);
/** @internal */
exports.HrisCreateTimeOffRequestDtoType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateTimeOffRequestDtoSchemasValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisCreateTimeOffRequestDtoTypeToJSON(hrisCreateTimeOffRequestDtoType) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoType$outboundSchema.parse(hrisCreateTimeOffRequestDtoType));
}
/** @internal */
exports.HrisCreateTimeOffRequestDto$outboundSchema = z.object({
    approverId: z.nullable(z.string()).optional(),
    comment: z.nullable(z.string()).optional(),
    endDate: z.nullable(z.string()).optional(),
    endHalfDay: z.nullable(z.union([z.boolean(), exports.HrisCreateTimeOffRequestDto2$outboundSchema])).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    reason: z.nullable(z.lazy(() => exports.HrisCreateTimeOffRequestDtoReason$outboundSchema)).optional(),
    startDate: z.nullable(z.string()).optional(),
    startHalfDay: z.nullable(z.union([z.boolean(), exports.HrisCreateTimeOffRequestDtoSchemas2$outboundSchema])).optional(),
    status: z.nullable(z.lazy(() => exports.HrisCreateTimeOffRequestDtoStatus$outboundSchema)).optional(),
    timeOffPolicyId: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.HrisCreateTimeOffRequestDtoType$outboundSchema))
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        approverId: "approver_id",
        endDate: "end_date",
        endHalfDay: "end_half_day",
        startDate: "start_date",
        startHalfDay: "start_half_day",
        timeOffPolicyId: "time_off_policy_id",
    });
});
function hrisCreateTimeOffRequestDtoToJSON(hrisCreateTimeOffRequestDto) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDto$outboundSchema.parse(hrisCreateTimeOffRequestDto));
}
//# sourceMappingURL=hriscreatetimeoffrequestdto.js.map