"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.AssignmentStatusEnum$ = exports.AssignmentStatusEnum$outboundSchema = exports.AssignmentStatusEnum$inboundSchema = exports.AssignmentStatusEnumValue$ = exports.AssignmentStatusEnumValue$outboundSchema = exports.AssignmentStatusEnumValue$inboundSchema = exports.SourceValue$ = exports.SourceValue$outboundSchema = exports.SourceValue$inboundSchema = exports.AssignmentStatusEnum4$ = exports.AssignmentStatusEnum4$outboundSchema = exports.AssignmentStatusEnum4$inboundSchema = exports.AssignmentStatusEnumValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const enums_js_1 = require("../../types/enums.js");
var AssignmentStatusEnumValue;
(function (AssignmentStatusEnumValue) {
    AssignmentStatusEnumValue["Pending"] = "pending";
    AssignmentStatusEnumValue["InProgress"] = "in_progress";
    AssignmentStatusEnumValue["Completed"] = "completed";
})(AssignmentStatusEnumValue || (exports.AssignmentStatusEnumValue = AssignmentStatusEnumValue = {}));
/** @internal */
exports.AssignmentStatusEnum4$inboundSchema = z.object({});
/** @internal */
exports.AssignmentStatusEnum4$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 AssignmentStatusEnum4$;
(function (AssignmentStatusEnum4$) {
    /** @deprecated use `AssignmentStatusEnum4$inboundSchema` instead. */
    AssignmentStatusEnum4$.inboundSchema = exports.AssignmentStatusEnum4$inboundSchema;
    /** @deprecated use `AssignmentStatusEnum4$outboundSchema` instead. */
    AssignmentStatusEnum4$.outboundSchema = exports.AssignmentStatusEnum4$outboundSchema;
})(AssignmentStatusEnum4$ || (exports.AssignmentStatusEnum4$ = AssignmentStatusEnum4$ = {}));
/** @internal */
exports.SourceValue$inboundSchema = z.union([
    z.lazy(() => exports.AssignmentStatusEnum4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.SourceValue$outboundSchema = z.union([
    z.lazy(() => exports.AssignmentStatusEnum4$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 SourceValue$;
(function (SourceValue$) {
    /** @deprecated use `SourceValue$inboundSchema` instead. */
    SourceValue$.inboundSchema = exports.SourceValue$inboundSchema;
    /** @deprecated use `SourceValue$outboundSchema` instead. */
    SourceValue$.outboundSchema = exports.SourceValue$outboundSchema;
})(SourceValue$ || (exports.SourceValue$ = SourceValue$ = {}));
/** @internal */
exports.AssignmentStatusEnumValue$inboundSchema = z
    .union([
    z.nativeEnum(AssignmentStatusEnumValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AssignmentStatusEnumValue$outboundSchema = z.union([
    z.nativeEnum(AssignmentStatusEnumValue),
    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 AssignmentStatusEnumValue$;
(function (AssignmentStatusEnumValue$) {
    /** @deprecated use `AssignmentStatusEnumValue$inboundSchema` instead. */
    AssignmentStatusEnumValue$.inboundSchema = exports.AssignmentStatusEnumValue$inboundSchema;
    /** @deprecated use `AssignmentStatusEnumValue$outboundSchema` instead. */
    AssignmentStatusEnumValue$.outboundSchema = exports.AssignmentStatusEnumValue$outboundSchema;
})(AssignmentStatusEnumValue$ || (exports.AssignmentStatusEnumValue$ = AssignmentStatusEnumValue$ = {}));
/** @internal */
exports.AssignmentStatusEnum$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.AssignmentStatusEnum4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssignmentStatusEnumValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.AssignmentStatusEnum$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.AssignmentStatusEnum4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssignmentStatusEnumValue$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 AssignmentStatusEnum$;
(function (AssignmentStatusEnum$) {
    /** @deprecated use `AssignmentStatusEnum$inboundSchema` instead. */
    AssignmentStatusEnum$.inboundSchema = exports.AssignmentStatusEnum$inboundSchema;
    /** @deprecated use `AssignmentStatusEnum$outboundSchema` instead. */
    AssignmentStatusEnum$.outboundSchema = exports.AssignmentStatusEnum$outboundSchema;
})(AssignmentStatusEnum$ || (exports.AssignmentStatusEnum$ = AssignmentStatusEnum$ = {}));
//# sourceMappingURL=assignmentstatusenum.js.map