"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.JobPostingCompensation$inboundSchema = exports.JobPostingCompensationType$inboundSchema = exports.JobPostingCompensationSchemasTypeValue$inboundSchema = exports.JobPostingCompensationSchemasTypeSourceValue$inboundSchema = exports.JobPostingCompensationSchemasType4$inboundSchema = exports.JobPostingCompensationPayPeriod$inboundSchema = exports.JobPostingCompensationSchemasValue$inboundSchema = exports.JobPostingCompensationSchemasSourceValue$inboundSchema = exports.JobPostingCompensationSchemas4$inboundSchema = exports.JobPostingCompensationPayFrequency$inboundSchema = exports.JobPostingCompensationValue$inboundSchema = exports.JobPostingCompensationSourceValue$inboundSchema = exports.JobPostingCompensation4$inboundSchema = exports.JobPostingCompensationSchemasTypeValue = exports.JobPostingCompensationSchemasValue = exports.JobPostingCompensationValue = void 0;
exports.jobPostingCompensation4FromJSON = jobPostingCompensation4FromJSON;
exports.jobPostingCompensationSourceValueFromJSON = jobPostingCompensationSourceValueFromJSON;
exports.jobPostingCompensationPayFrequencyFromJSON = jobPostingCompensationPayFrequencyFromJSON;
exports.jobPostingCompensationSchemas4FromJSON = jobPostingCompensationSchemas4FromJSON;
exports.jobPostingCompensationSchemasSourceValueFromJSON = jobPostingCompensationSchemasSourceValueFromJSON;
exports.jobPostingCompensationPayPeriodFromJSON = jobPostingCompensationPayPeriodFromJSON;
exports.jobPostingCompensationSchemasType4FromJSON = jobPostingCompensationSchemasType4FromJSON;
exports.jobPostingCompensationSchemasTypeSourceValueFromJSON = jobPostingCompensationSchemasTypeSourceValueFromJSON;
exports.jobPostingCompensationTypeFromJSON = jobPostingCompensationTypeFromJSON;
exports.jobPostingCompensationFromJSON = jobPostingCompensationFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const openEnums = __importStar(require("../../types/enums.js"));
/**
 * The pay frequency of the job postings.
 */
var JobPostingCompensationValue;
(function (JobPostingCompensationValue) {
    JobPostingCompensationValue["Hourly"] = "hourly";
    JobPostingCompensationValue["Weekly"] = "weekly";
    JobPostingCompensationValue["BiWeekly"] = "bi_weekly";
    JobPostingCompensationValue["FourWeekly"] = "four_weekly";
    JobPostingCompensationValue["SemiMonthly"] = "semi_monthly";
    JobPostingCompensationValue["Monthly"] = "monthly";
    JobPostingCompensationValue["BiMonthly"] = "bi_monthly";
    JobPostingCompensationValue["Quarterly"] = "quarterly";
    JobPostingCompensationValue["SemiAnnually"] = "semi_annually";
    JobPostingCompensationValue["Yearly"] = "yearly";
    JobPostingCompensationValue["ThirteenMonthly"] = "thirteen_monthly";
    JobPostingCompensationValue["ProRata"] = "pro_rata";
    JobPostingCompensationValue["UnmappedValue"] = "unmapped_value";
    JobPostingCompensationValue["HalfYearly"] = "half_yearly";
    JobPostingCompensationValue["Daily"] = "daily";
})(JobPostingCompensationValue || (exports.JobPostingCompensationValue = JobPostingCompensationValue = {}));
/**
 * The pay period of the job postings.
 */
var JobPostingCompensationSchemasValue;
(function (JobPostingCompensationSchemasValue) {
    JobPostingCompensationSchemasValue["Hour"] = "hour";
    JobPostingCompensationSchemasValue["Day"] = "day";
    JobPostingCompensationSchemasValue["Week"] = "week";
    JobPostingCompensationSchemasValue["EveryTwoWeeks"] = "every_two_weeks";
    JobPostingCompensationSchemasValue["Month"] = "month";
    JobPostingCompensationSchemasValue["TwiceAMonth"] = "twice_a_month";
    JobPostingCompensationSchemasValue["EveryTwoMonths"] = "every_two_months";
    JobPostingCompensationSchemasValue["Quarter"] = "quarter";
    JobPostingCompensationSchemasValue["EverySixMonths"] = "every_six_months";
    JobPostingCompensationSchemasValue["Year"] = "year";
    JobPostingCompensationSchemasValue["OneOff"] = "one_off";
    JobPostingCompensationSchemasValue["None"] = "none";
    JobPostingCompensationSchemasValue["UnmappedValue"] = "unmapped_value";
})(JobPostingCompensationSchemasValue || (exports.JobPostingCompensationSchemasValue = JobPostingCompensationSchemasValue = {}));
/**
 * The type of the compensation.
 */
var JobPostingCompensationSchemasTypeValue;
(function (JobPostingCompensationSchemasTypeValue) {
    JobPostingCompensationSchemasTypeValue["Salary"] = "salary";
    JobPostingCompensationSchemasTypeValue["Hourly"] = "hourly";
    JobPostingCompensationSchemasTypeValue["Commission"] = "commission";
    JobPostingCompensationSchemasTypeValue["Bonus"] = "bonus";
    JobPostingCompensationSchemasTypeValue["Equity"] = "equity";
    JobPostingCompensationSchemasTypeValue["Other"] = "other";
    JobPostingCompensationSchemasTypeValue["UnmappedValue"] = "unmapped_value";
})(JobPostingCompensationSchemasTypeValue || (exports.JobPostingCompensationSchemasTypeValue = JobPostingCompensationSchemasTypeValue = {}));
/** @internal */
exports.JobPostingCompensation4$inboundSchema = z.object({});
function jobPostingCompensation4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JobPostingCompensation4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JobPostingCompensation4' from JSON`);
}
/** @internal */
exports.JobPostingCompensationSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.JobPostingCompensation4$inboundSchema),
    z.array(z.any()),
]);
function jobPostingCompensationSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JobPostingCompensationSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JobPostingCompensationSourceValue' from JSON`);
}
/** @internal */
exports.JobPostingCompensationValue$inboundSchema = openEnums.inboundSchema(JobPostingCompensationValue);
/** @internal */
exports.JobPostingCompensationPayFrequency$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.JobPostingCompensation4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.JobPostingCompensationValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
function jobPostingCompensationPayFrequencyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JobPostingCompensationPayFrequency$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JobPostingCompensationPayFrequency' from JSON`);
}
/** @internal */
exports.JobPostingCompensationSchemas4$inboundSchema = z.object({});
function jobPostingCompensationSchemas4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JobPostingCompensationSchemas4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JobPostingCompensationSchemas4' from JSON`);
}
/** @internal */
exports.JobPostingCompensationSchemasSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.JobPostingCompensationSchemas4$inboundSchema),
    z.array(z.any()),
]);
function jobPostingCompensationSchemasSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JobPostingCompensationSchemasSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JobPostingCompensationSchemasSourceValue' from JSON`);
}
/** @internal */
exports.JobPostingCompensationSchemasValue$inboundSchema = openEnums.inboundSchema(JobPostingCompensationSchemasValue);
/** @internal */
exports.JobPostingCompensationPayPeriod$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.JobPostingCompensationSchemas4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.JobPostingCompensationSchemasValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
function jobPostingCompensationPayPeriodFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JobPostingCompensationPayPeriod$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JobPostingCompensationPayPeriod' from JSON`);
}
/** @internal */
exports.JobPostingCompensationSchemasType4$inboundSchema = z.object({});
function jobPostingCompensationSchemasType4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JobPostingCompensationSchemasType4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JobPostingCompensationSchemasType4' from JSON`);
}
/** @internal */
exports.JobPostingCompensationSchemasTypeSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.JobPostingCompensationSchemasType4$inboundSchema),
    z.array(z.any()),
]);
function jobPostingCompensationSchemasTypeSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JobPostingCompensationSchemasTypeSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JobPostingCompensationSchemasTypeSourceValue' from JSON`);
}
/** @internal */
exports.JobPostingCompensationSchemasTypeValue$inboundSchema = openEnums.inboundSchema(JobPostingCompensationSchemasTypeValue);
/** @internal */
exports.JobPostingCompensationType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.JobPostingCompensationSchemasType4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.JobPostingCompensationSchemasTypeValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
function jobPostingCompensationTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JobPostingCompensationType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JobPostingCompensationType' from JSON`);
}
/** @internal */
exports.JobPostingCompensation$inboundSchema = z.object({
    currency: z.nullable(z.string()).optional(),
    max_value_range: z.nullable(z.string()).optional(),
    min_value_range: z.nullable(z.string()).optional(),
    pay_frequency: z.nullable(z.lazy(() => exports.JobPostingCompensationPayFrequency$inboundSchema)).optional(),
    pay_period: z.nullable(z.lazy(() => exports.JobPostingCompensationPayPeriod$inboundSchema)).optional(),
    title: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.JobPostingCompensationType$inboundSchema))
        .optional(),
    value: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "max_value_range": "maxValueRange",
        "min_value_range": "minValueRange",
        "pay_frequency": "payFrequency",
        "pay_period": "payPeriod",
    });
});
function jobPostingCompensationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JobPostingCompensation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JobPostingCompensation' from JSON`);
}
//# sourceMappingURL=jobpostingcompensation.js.map