"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.EntitySkillsCreateRequestDto$outboundSchema = exports.EntitySkillsCreateRequestDtoMinimumProficiency$outboundSchema = exports.EntitySkillsCreateRequestDtoSchemasValue$outboundSchema = exports.EntitySkillsCreateRequestDtoSchemasSourceValue$outboundSchema = exports.EntitySkillsCreateRequestDtoSchemas4$outboundSchema = exports.EntitySkillsCreateRequestDtoMaximumProficiency$outboundSchema = exports.EntitySkillsCreateRequestDtoValue$outboundSchema = exports.EntitySkillsCreateRequestDtoSourceValue$outboundSchema = exports.EntitySkillsCreateRequestDto4$outboundSchema = exports.EntitySkillsCreateRequestDtoSchemasValue = exports.EntitySkillsCreateRequestDtoValue = void 0;
exports.entitySkillsCreateRequestDto4ToJSON = entitySkillsCreateRequestDto4ToJSON;
exports.entitySkillsCreateRequestDtoSourceValueToJSON = entitySkillsCreateRequestDtoSourceValueToJSON;
exports.entitySkillsCreateRequestDtoMaximumProficiencyToJSON = entitySkillsCreateRequestDtoMaximumProficiencyToJSON;
exports.entitySkillsCreateRequestDtoSchemas4ToJSON = entitySkillsCreateRequestDtoSchemas4ToJSON;
exports.entitySkillsCreateRequestDtoSchemasSourceValueToJSON = entitySkillsCreateRequestDtoSchemasSourceValueToJSON;
exports.entitySkillsCreateRequestDtoMinimumProficiencyToJSON = entitySkillsCreateRequestDtoMinimumProficiencyToJSON;
exports.entitySkillsCreateRequestDtoToJSON = entitySkillsCreateRequestDtoToJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const openEnums = __importStar(require("../../types/enums.js"));
var EntitySkillsCreateRequestDtoValue;
(function (EntitySkillsCreateRequestDtoValue) {
    EntitySkillsCreateRequestDtoValue["One"] = "1";
    EntitySkillsCreateRequestDtoValue["Two"] = "2";
    EntitySkillsCreateRequestDtoValue["Three"] = "3";
    EntitySkillsCreateRequestDtoValue["Four"] = "4";
    EntitySkillsCreateRequestDtoValue["Five"] = "5";
    EntitySkillsCreateRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(EntitySkillsCreateRequestDtoValue || (exports.EntitySkillsCreateRequestDtoValue = EntitySkillsCreateRequestDtoValue = {}));
var EntitySkillsCreateRequestDtoSchemasValue;
(function (EntitySkillsCreateRequestDtoSchemasValue) {
    EntitySkillsCreateRequestDtoSchemasValue["One"] = "1";
    EntitySkillsCreateRequestDtoSchemasValue["Two"] = "2";
    EntitySkillsCreateRequestDtoSchemasValue["Three"] = "3";
    EntitySkillsCreateRequestDtoSchemasValue["Four"] = "4";
    EntitySkillsCreateRequestDtoSchemasValue["Five"] = "5";
    EntitySkillsCreateRequestDtoSchemasValue["UnmappedValue"] = "unmapped_value";
})(EntitySkillsCreateRequestDtoSchemasValue || (exports.EntitySkillsCreateRequestDtoSchemasValue = EntitySkillsCreateRequestDtoSchemasValue = {}));
/** @internal */
exports.EntitySkillsCreateRequestDto4$outboundSchema = z.object({});
function entitySkillsCreateRequestDto4ToJSON(entitySkillsCreateRequestDto4) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDto4$outboundSchema.parse(entitySkillsCreateRequestDto4));
}
/** @internal */
exports.EntitySkillsCreateRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.EntitySkillsCreateRequestDto4$outboundSchema),
    z.array(z.any()),
]);
function entitySkillsCreateRequestDtoSourceValueToJSON(entitySkillsCreateRequestDtoSourceValue) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDtoSourceValue$outboundSchema.parse(entitySkillsCreateRequestDtoSourceValue));
}
/** @internal */
exports.EntitySkillsCreateRequestDtoValue$outboundSchema = openEnums.outboundSchema(EntitySkillsCreateRequestDtoValue);
/** @internal */
exports.EntitySkillsCreateRequestDtoMaximumProficiency$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.EntitySkillsCreateRequestDto4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EntitySkillsCreateRequestDtoValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
        sourceValue: "source_value",
    });
});
function entitySkillsCreateRequestDtoMaximumProficiencyToJSON(entitySkillsCreateRequestDtoMaximumProficiency) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDtoMaximumProficiency$outboundSchema.parse(entitySkillsCreateRequestDtoMaximumProficiency));
}
/** @internal */
exports.EntitySkillsCreateRequestDtoSchemas4$outboundSchema = z.object({});
function entitySkillsCreateRequestDtoSchemas4ToJSON(entitySkillsCreateRequestDtoSchemas4) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDtoSchemas4$outboundSchema.parse(entitySkillsCreateRequestDtoSchemas4));
}
/** @internal */
exports.EntitySkillsCreateRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.EntitySkillsCreateRequestDtoSchemas4$outboundSchema),
    z.array(z.any()),
]);
function entitySkillsCreateRequestDtoSchemasSourceValueToJSON(entitySkillsCreateRequestDtoSchemasSourceValue) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDtoSchemasSourceValue$outboundSchema.parse(entitySkillsCreateRequestDtoSchemasSourceValue));
}
/** @internal */
exports.EntitySkillsCreateRequestDtoSchemasValue$outboundSchema = openEnums.outboundSchema(EntitySkillsCreateRequestDtoSchemasValue);
/** @internal */
exports.EntitySkillsCreateRequestDtoMinimumProficiency$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.EntitySkillsCreateRequestDtoSchemas4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EntitySkillsCreateRequestDtoSchemasValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
        sourceValue: "source_value",
    });
});
function entitySkillsCreateRequestDtoMinimumProficiencyToJSON(entitySkillsCreateRequestDtoMinimumProficiency) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDtoMinimumProficiency$outboundSchema.parse(entitySkillsCreateRequestDtoMinimumProficiency));
}
/** @internal */
exports.EntitySkillsCreateRequestDto$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    maximumProficiency: z.nullable(z.lazy(() => exports.EntitySkillsCreateRequestDtoMaximumProficiency$outboundSchema)).optional(),
    minimumProficiency: z.nullable(z.lazy(() => exports.EntitySkillsCreateRequestDtoMinimumProficiency$outboundSchema)).optional(),
    name: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        maximumProficiency: "maximum_proficiency",
        minimumProficiency: "minimum_proficiency",
    });
});
function entitySkillsCreateRequestDtoToJSON(entitySkillsCreateRequestDto) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDto$outboundSchema.parse(entitySkillsCreateRequestDto));
}
//# sourceMappingURL=entityskillscreaterequestdto.js.map