"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 (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$inboundSchema = exports.hrisCreateTimeOffRequestDtoSchemas4FromJSON = exports.hrisCreateTimeOffRequestDtoSchemas4ToJSON = exports.HrisCreateTimeOffRequestDtoSchemas4$ = exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemas4$inboundSchema = exports.hrisCreateTimeOffRequestDtoStatusFromJSON = exports.hrisCreateTimeOffRequestDtoStatusToJSON = exports.HrisCreateTimeOffRequestDtoStatus$ = exports.HrisCreateTimeOffRequestDtoStatus$outboundSchema = exports.HrisCreateTimeOffRequestDtoStatus$inboundSchema = exports.HrisCreateTimeOffRequestDtoValue$ = exports.HrisCreateTimeOffRequestDtoValue$outboundSchema = exports.HrisCreateTimeOffRequestDtoValue$inboundSchema = exports.hrisCreateTimeOffRequestDtoSourceValueFromJSON = exports.hrisCreateTimeOffRequestDtoSourceValueToJSON = exports.HrisCreateTimeOffRequestDtoSourceValue$ = exports.HrisCreateTimeOffRequestDtoSourceValue$outboundSchema = exports.HrisCreateTimeOffRequestDtoSourceValue$inboundSchema = exports.hrisCreateTimeOffRequestDto4FromJSON = exports.hrisCreateTimeOffRequestDto4ToJSON = exports.HrisCreateTimeOffRequestDto4$ = exports.HrisCreateTimeOffRequestDto4$outboundSchema = exports.HrisCreateTimeOffRequestDto4$inboundSchema = exports.startHalfDayFromJSON = exports.startHalfDayToJSON = exports.StartHalfDay$ = exports.StartHalfDay$outboundSchema = exports.StartHalfDay$inboundSchema = exports.HrisCreateTimeOffRequestDtoSchemas2$ = exports.HrisCreateTimeOffRequestDtoSchemas2$outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemas2$inboundSchema = exports.hrisCreateTimeOffRequestDtoReasonFromJSON = exports.hrisCreateTimeOffRequestDtoReasonToJSON = exports.HrisCreateTimeOffRequestDtoReason$ = exports.HrisCreateTimeOffRequestDtoReason$outboundSchema = exports.HrisCreateTimeOffRequestDtoReason$inboundSchema = exports.endHalfDayFromJSON = exports.endHalfDayToJSON = exports.EndHalfDay$ = exports.EndHalfDay$outboundSchema = exports.EndHalfDay$inboundSchema = exports.HrisCreateTimeOffRequestDto2$ = exports.HrisCreateTimeOffRequestDto2$outboundSchema = exports.HrisCreateTimeOffRequestDto2$inboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasValue = exports.HrisCreateTimeOffRequestDtoValue = exports.HrisCreateTimeOffRequestDtoSchemas2 = exports.HrisCreateTimeOffRequestDto2 = void 0;
exports.hrisCreateTimeOffRequestDtoFromJSON = exports.hrisCreateTimeOffRequestDtoToJSON = exports.HrisCreateTimeOffRequestDto$ = exports.HrisCreateTimeOffRequestDto$outboundSchema = exports.HrisCreateTimeOffRequestDto$inboundSchema = exports.hrisCreateTimeOffRequestDtoTypeFromJSON = exports.hrisCreateTimeOffRequestDtoTypeToJSON = exports.HrisCreateTimeOffRequestDtoType$ = exports.HrisCreateTimeOffRequestDtoType$outboundSchema = exports.HrisCreateTimeOffRequestDtoType$inboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasValue$ = exports.HrisCreateTimeOffRequestDtoSchemasValue$outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasValue$inboundSchema = exports.hrisCreateTimeOffRequestDtoSchemasSourceValueFromJSON = exports.hrisCreateTimeOffRequestDtoSchemasSourceValueToJSON = exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$ = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = 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["BereavementLeave"] = "bereavement_leave";
    HrisCreateTimeOffRequestDtoSchemasValue["Sabbatical"] = "sabbatical";
    HrisCreateTimeOffRequestDtoSchemasValue["Accident"] = "accident";
})(HrisCreateTimeOffRequestDtoSchemasValue || (exports.HrisCreateTimeOffRequestDtoSchemasValue = HrisCreateTimeOffRequestDtoSchemasValue = {}));
/** @internal */
exports.HrisCreateTimeOffRequestDto2$inboundSchema = z.nativeEnum(HrisCreateTimeOffRequestDto2);
/** @internal */
exports.HrisCreateTimeOffRequestDto2$outboundSchema = exports.HrisCreateTimeOffRequestDto2$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDto2$;
(function (HrisCreateTimeOffRequestDto2$) {
    /** @deprecated use `HrisCreateTimeOffRequestDto2$inboundSchema` instead. */
    HrisCreateTimeOffRequestDto2$.inboundSchema = exports.HrisCreateTimeOffRequestDto2$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDto2$outboundSchema` instead. */
    HrisCreateTimeOffRequestDto2$.outboundSchema = exports.HrisCreateTimeOffRequestDto2$outboundSchema;
})(HrisCreateTimeOffRequestDto2$ || (exports.HrisCreateTimeOffRequestDto2$ = HrisCreateTimeOffRequestDto2$ = {}));
/** @internal */
exports.EndHalfDay$inboundSchema = z.union([z.boolean(), exports.HrisCreateTimeOffRequestDto2$inboundSchema]);
/** @internal */
exports.EndHalfDay$outboundSchema = z.union([z.boolean(), exports.HrisCreateTimeOffRequestDto2$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var EndHalfDay$;
(function (EndHalfDay$) {
    /** @deprecated use `EndHalfDay$inboundSchema` instead. */
    EndHalfDay$.inboundSchema = exports.EndHalfDay$inboundSchema;
    /** @deprecated use `EndHalfDay$outboundSchema` instead. */
    EndHalfDay$.outboundSchema = exports.EndHalfDay$outboundSchema;
})(EndHalfDay$ || (exports.EndHalfDay$ = EndHalfDay$ = {}));
function endHalfDayToJSON(endHalfDay) {
    return JSON.stringify(exports.EndHalfDay$outboundSchema.parse(endHalfDay));
}
exports.endHalfDayToJSON = endHalfDayToJSON;
function endHalfDayFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EndHalfDay$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EndHalfDay' from JSON`);
}
exports.endHalfDayFromJSON = endHalfDayFromJSON;
/** @internal */
exports.HrisCreateTimeOffRequestDtoReason$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "remote_id": "remoteId",
    });
});
/** @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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDtoReason$;
(function (HrisCreateTimeOffRequestDtoReason$) {
    /** @deprecated use `HrisCreateTimeOffRequestDtoReason$inboundSchema` instead. */
    HrisCreateTimeOffRequestDtoReason$.inboundSchema = exports.HrisCreateTimeOffRequestDtoReason$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDtoReason$outboundSchema` instead. */
    HrisCreateTimeOffRequestDtoReason$.outboundSchema = exports.HrisCreateTimeOffRequestDtoReason$outboundSchema;
})(HrisCreateTimeOffRequestDtoReason$ || (exports.HrisCreateTimeOffRequestDtoReason$ = HrisCreateTimeOffRequestDtoReason$ = {}));
function hrisCreateTimeOffRequestDtoReasonToJSON(hrisCreateTimeOffRequestDtoReason) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoReason$outboundSchema.parse(hrisCreateTimeOffRequestDtoReason));
}
exports.hrisCreateTimeOffRequestDtoReasonToJSON = hrisCreateTimeOffRequestDtoReasonToJSON;
function hrisCreateTimeOffRequestDtoReasonFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisCreateTimeOffRequestDtoReason$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisCreateTimeOffRequestDtoReason' from JSON`);
}
exports.hrisCreateTimeOffRequestDtoReasonFromJSON = hrisCreateTimeOffRequestDtoReasonFromJSON;
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemas2$inboundSchema = z.nativeEnum(HrisCreateTimeOffRequestDtoSchemas2);
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemas2$outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemas2$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDtoSchemas2$;
(function (HrisCreateTimeOffRequestDtoSchemas2$) {
    /** @deprecated use `HrisCreateTimeOffRequestDtoSchemas2$inboundSchema` instead. */
    HrisCreateTimeOffRequestDtoSchemas2$.inboundSchema = exports.HrisCreateTimeOffRequestDtoSchemas2$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDtoSchemas2$outboundSchema` instead. */
    HrisCreateTimeOffRequestDtoSchemas2$.outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemas2$outboundSchema;
})(HrisCreateTimeOffRequestDtoSchemas2$ || (exports.HrisCreateTimeOffRequestDtoSchemas2$ = HrisCreateTimeOffRequestDtoSchemas2$ = {}));
/** @internal */
exports.StartHalfDay$inboundSchema = z.union([z.boolean(), exports.HrisCreateTimeOffRequestDtoSchemas2$inboundSchema]);
/** @internal */
exports.StartHalfDay$outboundSchema = z.union([z.boolean(), exports.HrisCreateTimeOffRequestDtoSchemas2$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StartHalfDay$;
(function (StartHalfDay$) {
    /** @deprecated use `StartHalfDay$inboundSchema` instead. */
    StartHalfDay$.inboundSchema = exports.StartHalfDay$inboundSchema;
    /** @deprecated use `StartHalfDay$outboundSchema` instead. */
    StartHalfDay$.outboundSchema = exports.StartHalfDay$outboundSchema;
})(StartHalfDay$ || (exports.StartHalfDay$ = StartHalfDay$ = {}));
function startHalfDayToJSON(startHalfDay) {
    return JSON.stringify(exports.StartHalfDay$outboundSchema.parse(startHalfDay));
}
exports.startHalfDayToJSON = startHalfDayToJSON;
function startHalfDayFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.StartHalfDay$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StartHalfDay' from JSON`);
}
exports.startHalfDayFromJSON = startHalfDayFromJSON;
/** @internal */
exports.HrisCreateTimeOffRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.HrisCreateTimeOffRequestDto4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDto4$;
(function (HrisCreateTimeOffRequestDto4$) {
    /** @deprecated use `HrisCreateTimeOffRequestDto4$inboundSchema` instead. */
    HrisCreateTimeOffRequestDto4$.inboundSchema = exports.HrisCreateTimeOffRequestDto4$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDto4$outboundSchema` instead. */
    HrisCreateTimeOffRequestDto4$.outboundSchema = exports.HrisCreateTimeOffRequestDto4$outboundSchema;
})(HrisCreateTimeOffRequestDto4$ || (exports.HrisCreateTimeOffRequestDto4$ = HrisCreateTimeOffRequestDto4$ = {}));
function hrisCreateTimeOffRequestDto4ToJSON(hrisCreateTimeOffRequestDto4) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDto4$outboundSchema.parse(hrisCreateTimeOffRequestDto4));
}
exports.hrisCreateTimeOffRequestDto4ToJSON = hrisCreateTimeOffRequestDto4ToJSON;
function hrisCreateTimeOffRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisCreateTimeOffRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisCreateTimeOffRequestDto4' from JSON`);
}
exports.hrisCreateTimeOffRequestDto4FromJSON = hrisCreateTimeOffRequestDto4FromJSON;
/** @internal */
exports.HrisCreateTimeOffRequestDtoSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.HrisCreateTimeOffRequestDto4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.HrisCreateTimeOffRequestDtoSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.HrisCreateTimeOffRequestDto4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDtoSourceValue$;
(function (HrisCreateTimeOffRequestDtoSourceValue$) {
    /** @deprecated use `HrisCreateTimeOffRequestDtoSourceValue$inboundSchema` instead. */
    HrisCreateTimeOffRequestDtoSourceValue$.inboundSchema = exports.HrisCreateTimeOffRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDtoSourceValue$outboundSchema` instead. */
    HrisCreateTimeOffRequestDtoSourceValue$.outboundSchema = exports.HrisCreateTimeOffRequestDtoSourceValue$outboundSchema;
})(HrisCreateTimeOffRequestDtoSourceValue$ || (exports.HrisCreateTimeOffRequestDtoSourceValue$ = HrisCreateTimeOffRequestDtoSourceValue$ = {}));
function hrisCreateTimeOffRequestDtoSourceValueToJSON(hrisCreateTimeOffRequestDtoSourceValue) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoSourceValue$outboundSchema.parse(hrisCreateTimeOffRequestDtoSourceValue));
}
exports.hrisCreateTimeOffRequestDtoSourceValueToJSON = hrisCreateTimeOffRequestDtoSourceValueToJSON;
function hrisCreateTimeOffRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisCreateTimeOffRequestDtoSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisCreateTimeOffRequestDtoSourceValue' from JSON`);
}
exports.hrisCreateTimeOffRequestDtoSourceValueFromJSON = hrisCreateTimeOffRequestDtoSourceValueFromJSON;
/** @internal */
exports.HrisCreateTimeOffRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(HrisCreateTimeOffRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.HrisCreateTimeOffRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(HrisCreateTimeOffRequestDtoValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDtoValue$;
(function (HrisCreateTimeOffRequestDtoValue$) {
    /** @deprecated use `HrisCreateTimeOffRequestDtoValue$inboundSchema` instead. */
    HrisCreateTimeOffRequestDtoValue$.inboundSchema = exports.HrisCreateTimeOffRequestDtoValue$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDtoValue$outboundSchema` instead. */
    HrisCreateTimeOffRequestDtoValue$.outboundSchema = exports.HrisCreateTimeOffRequestDtoValue$outboundSchema;
})(HrisCreateTimeOffRequestDtoValue$ || (exports.HrisCreateTimeOffRequestDtoValue$ = HrisCreateTimeOffRequestDtoValue$ = {}));
/** @internal */
exports.HrisCreateTimeOffRequestDtoStatus$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.HrisCreateTimeOffRequestDto4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateTimeOffRequestDtoValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.HrisCreateTimeOffRequestDtoStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.HrisCreateTimeOffRequestDto4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateTimeOffRequestDtoValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDtoStatus$;
(function (HrisCreateTimeOffRequestDtoStatus$) {
    /** @deprecated use `HrisCreateTimeOffRequestDtoStatus$inboundSchema` instead. */
    HrisCreateTimeOffRequestDtoStatus$.inboundSchema = exports.HrisCreateTimeOffRequestDtoStatus$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDtoStatus$outboundSchema` instead. */
    HrisCreateTimeOffRequestDtoStatus$.outboundSchema = exports.HrisCreateTimeOffRequestDtoStatus$outboundSchema;
})(HrisCreateTimeOffRequestDtoStatus$ || (exports.HrisCreateTimeOffRequestDtoStatus$ = HrisCreateTimeOffRequestDtoStatus$ = {}));
function hrisCreateTimeOffRequestDtoStatusToJSON(hrisCreateTimeOffRequestDtoStatus) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoStatus$outboundSchema.parse(hrisCreateTimeOffRequestDtoStatus));
}
exports.hrisCreateTimeOffRequestDtoStatusToJSON = hrisCreateTimeOffRequestDtoStatusToJSON;
function hrisCreateTimeOffRequestDtoStatusFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisCreateTimeOffRequestDtoStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisCreateTimeOffRequestDtoStatus' from JSON`);
}
exports.hrisCreateTimeOffRequestDtoStatusFromJSON = hrisCreateTimeOffRequestDtoStatusFromJSON;
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemas4$inboundSchema = z.object({});
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDtoSchemas4$;
(function (HrisCreateTimeOffRequestDtoSchemas4$) {
    /** @deprecated use `HrisCreateTimeOffRequestDtoSchemas4$inboundSchema` instead. */
    HrisCreateTimeOffRequestDtoSchemas4$.inboundSchema = exports.HrisCreateTimeOffRequestDtoSchemas4$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDtoSchemas4$outboundSchema` instead. */
    HrisCreateTimeOffRequestDtoSchemas4$.outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema;
})(HrisCreateTimeOffRequestDtoSchemas4$ || (exports.HrisCreateTimeOffRequestDtoSchemas4$ = HrisCreateTimeOffRequestDtoSchemas4$ = {}));
function hrisCreateTimeOffRequestDtoSchemas4ToJSON(hrisCreateTimeOffRequestDtoSchemas4) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema.parse(hrisCreateTimeOffRequestDtoSchemas4));
}
exports.hrisCreateTimeOffRequestDtoSchemas4ToJSON = hrisCreateTimeOffRequestDtoSchemas4ToJSON;
function hrisCreateTimeOffRequestDtoSchemas4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisCreateTimeOffRequestDtoSchemas4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisCreateTimeOffRequestDtoSchemas4' from JSON`);
}
exports.hrisCreateTimeOffRequestDtoSchemas4FromJSON = hrisCreateTimeOffRequestDtoSchemas4FromJSON;
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.HrisCreateTimeOffRequestDtoSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDtoSchemasSourceValue$;
(function (HrisCreateTimeOffRequestDtoSchemasSourceValue$) {
    /** @deprecated use `HrisCreateTimeOffRequestDtoSchemasSourceValue$inboundSchema` instead. */
    HrisCreateTimeOffRequestDtoSchemasSourceValue$.inboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDtoSchemasSourceValue$outboundSchema` instead. */
    HrisCreateTimeOffRequestDtoSchemasSourceValue$.outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$outboundSchema;
})(HrisCreateTimeOffRequestDtoSchemasSourceValue$ || (exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$ = HrisCreateTimeOffRequestDtoSchemasSourceValue$ = {}));
function hrisCreateTimeOffRequestDtoSchemasSourceValueToJSON(hrisCreateTimeOffRequestDtoSchemasSourceValue) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$outboundSchema.parse(hrisCreateTimeOffRequestDtoSchemasSourceValue));
}
exports.hrisCreateTimeOffRequestDtoSchemasSourceValueToJSON = hrisCreateTimeOffRequestDtoSchemasSourceValueToJSON;
function hrisCreateTimeOffRequestDtoSchemasSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisCreateTimeOffRequestDtoSchemasSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisCreateTimeOffRequestDtoSchemasSourceValue' from JSON`);
}
exports.hrisCreateTimeOffRequestDtoSchemasSourceValueFromJSON = hrisCreateTimeOffRequestDtoSchemasSourceValueFromJSON;
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(HrisCreateTimeOffRequestDtoSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.HrisCreateTimeOffRequestDtoSchemasValue$outboundSchema = z.union([
    z.nativeEnum(HrisCreateTimeOffRequestDtoSchemasValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDtoSchemasValue$;
(function (HrisCreateTimeOffRequestDtoSchemasValue$) {
    /** @deprecated use `HrisCreateTimeOffRequestDtoSchemasValue$inboundSchema` instead. */
    HrisCreateTimeOffRequestDtoSchemasValue$.inboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasValue$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDtoSchemasValue$outboundSchema` instead. */
    HrisCreateTimeOffRequestDtoSchemasValue$.outboundSchema = exports.HrisCreateTimeOffRequestDtoSchemasValue$outboundSchema;
})(HrisCreateTimeOffRequestDtoSchemasValue$ || (exports.HrisCreateTimeOffRequestDtoSchemasValue$ = HrisCreateTimeOffRequestDtoSchemasValue$ = {}));
/** @internal */
exports.HrisCreateTimeOffRequestDtoType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.HrisCreateTimeOffRequestDtoSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateTimeOffRequestDtoSchemasValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.HrisCreateTimeOffRequestDtoType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.HrisCreateTimeOffRequestDtoSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateTimeOffRequestDtoSchemasValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDtoType$;
(function (HrisCreateTimeOffRequestDtoType$) {
    /** @deprecated use `HrisCreateTimeOffRequestDtoType$inboundSchema` instead. */
    HrisCreateTimeOffRequestDtoType$.inboundSchema = exports.HrisCreateTimeOffRequestDtoType$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDtoType$outboundSchema` instead. */
    HrisCreateTimeOffRequestDtoType$.outboundSchema = exports.HrisCreateTimeOffRequestDtoType$outboundSchema;
})(HrisCreateTimeOffRequestDtoType$ || (exports.HrisCreateTimeOffRequestDtoType$ = HrisCreateTimeOffRequestDtoType$ = {}));
function hrisCreateTimeOffRequestDtoTypeToJSON(hrisCreateTimeOffRequestDtoType) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDtoType$outboundSchema.parse(hrisCreateTimeOffRequestDtoType));
}
exports.hrisCreateTimeOffRequestDtoTypeToJSON = hrisCreateTimeOffRequestDtoTypeToJSON;
function hrisCreateTimeOffRequestDtoTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisCreateTimeOffRequestDtoType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisCreateTimeOffRequestDtoType' from JSON`);
}
exports.hrisCreateTimeOffRequestDtoTypeFromJSON = hrisCreateTimeOffRequestDtoTypeFromJSON;
/** @internal */
exports.HrisCreateTimeOffRequestDto$inboundSchema = z.object({
    approver_id: z.nullable(z.string()).optional(),
    employee_id: z.nullable(z.string()).optional(),
    end_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    end_half_day: z.nullable(z.union([z.boolean(), exports.HrisCreateTimeOffRequestDto2$inboundSchema])).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    reason: z.nullable(z.lazy(() => exports.HrisCreateTimeOffRequestDtoReason$inboundSchema)).optional(),
    start_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    start_half_day: z.nullable(z.union([z.boolean(), exports.HrisCreateTimeOffRequestDtoSchemas2$inboundSchema])).optional(),
    status: z.nullable(z.lazy(() => exports.HrisCreateTimeOffRequestDtoStatus$inboundSchema)).optional(),
    time_off_policy_id: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.HrisCreateTimeOffRequestDtoType$inboundSchema))
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "approver_id": "approverId",
        "employee_id": "employeeId",
        "end_date": "endDate",
        "end_half_day": "endHalfDay",
        "start_date": "startDate",
        "start_half_day": "startHalfDay",
        "time_off_policy_id": "timeOffPolicyId",
    });
});
/** @internal */
exports.HrisCreateTimeOffRequestDto$outboundSchema = z.object({
    approverId: z.nullable(z.string()).optional(),
    employeeId: z.nullable(z.string()).optional(),
    endDate: z.nullable(z.date().transform(v => v.toISOString())).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.date().transform(v => v.toISOString())).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",
        employeeId: "employee_id",
        endDate: "end_date",
        endHalfDay: "end_half_day",
        startDate: "start_date",
        startHalfDay: "start_half_day",
        timeOffPolicyId: "time_off_policy_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisCreateTimeOffRequestDto$;
(function (HrisCreateTimeOffRequestDto$) {
    /** @deprecated use `HrisCreateTimeOffRequestDto$inboundSchema` instead. */
    HrisCreateTimeOffRequestDto$.inboundSchema = exports.HrisCreateTimeOffRequestDto$inboundSchema;
    /** @deprecated use `HrisCreateTimeOffRequestDto$outboundSchema` instead. */
    HrisCreateTimeOffRequestDto$.outboundSchema = exports.HrisCreateTimeOffRequestDto$outboundSchema;
})(HrisCreateTimeOffRequestDto$ || (exports.HrisCreateTimeOffRequestDto$ = HrisCreateTimeOffRequestDto$ = {}));
function hrisCreateTimeOffRequestDtoToJSON(hrisCreateTimeOffRequestDto) {
    return JSON.stringify(exports.HrisCreateTimeOffRequestDto$outboundSchema.parse(hrisCreateTimeOffRequestDto));
}
exports.hrisCreateTimeOffRequestDtoToJSON = hrisCreateTimeOffRequestDtoToJSON;
function hrisCreateTimeOffRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisCreateTimeOffRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisCreateTimeOffRequestDto' from JSON`);
}
exports.hrisCreateTimeOffRequestDtoFromJSON = hrisCreateTimeOffRequestDtoFromJSON;
//# sourceMappingURL=hriscreatetimeoffrequestdto.js.map