"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.TicketingTicketUpdateRequestDto$outboundSchema = exports.TicketingTicketUpdateRequestDtoStatus$outboundSchema = exports.TicketingTicketUpdateRequestDtoType$outboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasValue$outboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$outboundSchema = exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema = exports.TicketingTicketUpdateRequestDtoPriority$outboundSchema = exports.TicketingTicketUpdateRequestDtoValue$outboundSchema = exports.TicketingTicketUpdateRequestDtoSourceValue$outboundSchema = exports.TicketingTicketUpdateRequestDto4$outboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasValue = exports.TicketingTicketUpdateRequestDtoValue = void 0;
exports.ticketingTicketUpdateRequestDto4ToJSON = ticketingTicketUpdateRequestDto4ToJSON;
exports.ticketingTicketUpdateRequestDtoSourceValueToJSON = ticketingTicketUpdateRequestDtoSourceValueToJSON;
exports.ticketingTicketUpdateRequestDtoPriorityToJSON = ticketingTicketUpdateRequestDtoPriorityToJSON;
exports.ticketingTicketUpdateRequestDtoSchemas4ToJSON = ticketingTicketUpdateRequestDtoSchemas4ToJSON;
exports.ticketingTicketUpdateRequestDtoSchemasSourceValueToJSON = ticketingTicketUpdateRequestDtoSchemasSourceValueToJSON;
exports.ticketingTicketUpdateRequestDtoTypeToJSON = ticketingTicketUpdateRequestDtoTypeToJSON;
exports.ticketingTicketUpdateRequestDtoStatusToJSON = ticketingTicketUpdateRequestDtoStatusToJSON;
exports.ticketingTicketUpdateRequestDtoToJSON = ticketingTicketUpdateRequestDtoToJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const openEnums = __importStar(require("../../types/enums.js"));
const ticketingcontent_js_1 = require("./ticketingcontent.js");
/**
 * The priority of the ticket.
 */
var TicketingTicketUpdateRequestDtoValue;
(function (TicketingTicketUpdateRequestDtoValue) {
    TicketingTicketUpdateRequestDtoValue["Lowest"] = "lowest";
    TicketingTicketUpdateRequestDtoValue["Low"] = "low";
    TicketingTicketUpdateRequestDtoValue["Medium"] = "medium";
    TicketingTicketUpdateRequestDtoValue["High"] = "high";
    TicketingTicketUpdateRequestDtoValue["Highest"] = "highest";
    TicketingTicketUpdateRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(TicketingTicketUpdateRequestDtoValue || (exports.TicketingTicketUpdateRequestDtoValue = TicketingTicketUpdateRequestDtoValue = {}));
/**
 * The type of this status
 */
var TicketingTicketUpdateRequestDtoSchemasValue;
(function (TicketingTicketUpdateRequestDtoSchemasValue) {
    TicketingTicketUpdateRequestDtoSchemasValue["ToDo"] = "to-do";
    TicketingTicketUpdateRequestDtoSchemasValue["InProgress"] = "in-progress";
    TicketingTicketUpdateRequestDtoSchemasValue["Closed"] = "closed";
    TicketingTicketUpdateRequestDtoSchemasValue["UnmappedValue"] = "unmapped_value";
})(TicketingTicketUpdateRequestDtoSchemasValue || (exports.TicketingTicketUpdateRequestDtoSchemasValue = TicketingTicketUpdateRequestDtoSchemasValue = {}));
/** @internal */
exports.TicketingTicketUpdateRequestDto4$outboundSchema = z.object({});
function ticketingTicketUpdateRequestDto4ToJSON(ticketingTicketUpdateRequestDto4) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDto4$outboundSchema.parse(ticketingTicketUpdateRequestDto4));
}
/** @internal */
exports.TicketingTicketUpdateRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.TicketingTicketUpdateRequestDto4$outboundSchema),
    z.array(z.any()),
]);
function ticketingTicketUpdateRequestDtoSourceValueToJSON(ticketingTicketUpdateRequestDtoSourceValue) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoSourceValue$outboundSchema.parse(ticketingTicketUpdateRequestDtoSourceValue));
}
/** @internal */
exports.TicketingTicketUpdateRequestDtoValue$outboundSchema = openEnums.outboundSchema(TicketingTicketUpdateRequestDtoValue);
/** @internal */
exports.TicketingTicketUpdateRequestDtoPriority$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.TicketingTicketUpdateRequestDto4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.TicketingTicketUpdateRequestDtoValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function ticketingTicketUpdateRequestDtoPriorityToJSON(ticketingTicketUpdateRequestDtoPriority) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoPriority$outboundSchema.parse(ticketingTicketUpdateRequestDtoPriority));
}
/** @internal */
exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema = z.object({});
function ticketingTicketUpdateRequestDtoSchemas4ToJSON(ticketingTicketUpdateRequestDtoSchemas4) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema.parse(ticketingTicketUpdateRequestDtoSchemas4));
}
/** @internal */
exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema),
    z.array(z.any()),
]);
function ticketingTicketUpdateRequestDtoSchemasSourceValueToJSON(ticketingTicketUpdateRequestDtoSchemasSourceValue) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$outboundSchema.parse(ticketingTicketUpdateRequestDtoSchemasSourceValue));
}
/** @internal */
exports.TicketingTicketUpdateRequestDtoSchemasValue$outboundSchema = openEnums.outboundSchema(TicketingTicketUpdateRequestDtoSchemasValue);
/** @internal */
exports.TicketingTicketUpdateRequestDtoType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.TicketingTicketUpdateRequestDtoSchemasValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function ticketingTicketUpdateRequestDtoTypeToJSON(ticketingTicketUpdateRequestDtoType) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoType$outboundSchema.parse(ticketingTicketUpdateRequestDtoType));
}
/** @internal */
exports.TicketingTicketUpdateRequestDtoStatus$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.TicketingTicketUpdateRequestDtoType$outboundSchema)).optional(),
});
function ticketingTicketUpdateRequestDtoStatusToJSON(ticketingTicketUpdateRequestDtoStatus) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoStatus$outboundSchema.parse(ticketingTicketUpdateRequestDtoStatus));
}
/** @internal */
exports.TicketingTicketUpdateRequestDto$outboundSchema = z.object({
    assignees: z.nullable(z.array(z.string())).optional(),
    componentIds: z.nullable(z.string()).optional(),
    content: z.nullable(z.array(ticketingcontent_js_1.TicketingContent$outboundSchema)).optional(),
    parentId: z.nullable(z.string()).optional(),
    priority: z.nullable(z.lazy(() => exports.TicketingTicketUpdateRequestDtoPriority$outboundSchema)).optional(),
    projectId: z.nullable(z.string()).optional(),
    reporters: z.nullable(z.array(z.string())).optional(),
    status: z.nullable(z.lazy(() => exports.TicketingTicketUpdateRequestDtoStatus$outboundSchema)).optional(),
    tags: z.nullable(z.array(z.string())).optional(),
    title: z.nullable(z.string()).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        componentIds: "component_ids",
        parentId: "parent_id",
        projectId: "project_id",
        unifiedCustomFields: "unified_custom_fields",
    });
});
function ticketingTicketUpdateRequestDtoToJSON(ticketingTicketUpdateRequestDto) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDto$outboundSchema.parse(ticketingTicketUpdateRequestDto));
}
//# sourceMappingURL=ticketingticketupdaterequestdto.js.map