"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.UpdateAssessmentLineItemResponse$ = exports.UpdateAssessmentLineItemResponse$outboundSchema = exports.UpdateAssessmentLineItemResponse$inboundSchema = exports.UpdateAssessmentLineItemRequest$ = exports.UpdateAssessmentLineItemRequest$outboundSchema = exports.UpdateAssessmentLineItemRequest$inboundSchema = exports.UpdateAssessmentLineItemRequestBody$ = exports.UpdateAssessmentLineItemRequestBody$outboundSchema = exports.UpdateAssessmentLineItemRequestBody$inboundSchema = void 0;
exports.updateAssessmentLineItemRequestBodyToJSON = updateAssessmentLineItemRequestBodyToJSON;
exports.updateAssessmentLineItemRequestBodyFromJSON = updateAssessmentLineItemRequestBodyFromJSON;
exports.updateAssessmentLineItemRequestToJSON = updateAssessmentLineItemRequestToJSON;
exports.updateAssessmentLineItemRequestFromJSON = updateAssessmentLineItemRequestFromJSON;
exports.updateAssessmentLineItemResponseToJSON = updateAssessmentLineItemResponseToJSON;
exports.updateAssessmentLineItemResponseFromJSON = updateAssessmentLineItemResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/** @internal */
exports.UpdateAssessmentLineItemRequestBody$inboundSchema = z.object({
    assessmentLineItem: components.AssessmentLineItem$inboundSchema,
});
/** @internal */
exports.UpdateAssessmentLineItemRequestBody$outboundSchema = z.object({
    assessmentLineItem: components.AssessmentLineItem$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateAssessmentLineItemRequestBody$;
(function (UpdateAssessmentLineItemRequestBody$) {
    /** @deprecated use `UpdateAssessmentLineItemRequestBody$inboundSchema` instead. */
    UpdateAssessmentLineItemRequestBody$.inboundSchema = exports.UpdateAssessmentLineItemRequestBody$inboundSchema;
    /** @deprecated use `UpdateAssessmentLineItemRequestBody$outboundSchema` instead. */
    UpdateAssessmentLineItemRequestBody$.outboundSchema = exports.UpdateAssessmentLineItemRequestBody$outboundSchema;
})(UpdateAssessmentLineItemRequestBody$ || (exports.UpdateAssessmentLineItemRequestBody$ = UpdateAssessmentLineItemRequestBody$ = {}));
function updateAssessmentLineItemRequestBodyToJSON(updateAssessmentLineItemRequestBody) {
    return JSON.stringify(exports.UpdateAssessmentLineItemRequestBody$outboundSchema.parse(updateAssessmentLineItemRequestBody));
}
function updateAssessmentLineItemRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateAssessmentLineItemRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAssessmentLineItemRequestBody' from JSON`);
}
/** @internal */
exports.UpdateAssessmentLineItemRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => exports.UpdateAssessmentLineItemRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.UpdateAssessmentLineItemRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => exports.UpdateAssessmentLineItemRequestBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateAssessmentLineItemRequest$;
(function (UpdateAssessmentLineItemRequest$) {
    /** @deprecated use `UpdateAssessmentLineItemRequest$inboundSchema` instead. */
    UpdateAssessmentLineItemRequest$.inboundSchema = exports.UpdateAssessmentLineItemRequest$inboundSchema;
    /** @deprecated use `UpdateAssessmentLineItemRequest$outboundSchema` instead. */
    UpdateAssessmentLineItemRequest$.outboundSchema = exports.UpdateAssessmentLineItemRequest$outboundSchema;
})(UpdateAssessmentLineItemRequest$ || (exports.UpdateAssessmentLineItemRequest$ = UpdateAssessmentLineItemRequest$ = {}));
function updateAssessmentLineItemRequestToJSON(updateAssessmentLineItemRequest) {
    return JSON.stringify(exports.UpdateAssessmentLineItemRequest$outboundSchema.parse(updateAssessmentLineItemRequest));
}
function updateAssessmentLineItemRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateAssessmentLineItemRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAssessmentLineItemRequest' from JSON`);
}
/** @internal */
exports.UpdateAssessmentLineItemResponse$inboundSchema = z.object({
    assessmentLineItem: components.AssessmentLineItem$inboundSchema,
});
/** @internal */
exports.UpdateAssessmentLineItemResponse$outboundSchema = z.object({
    assessmentLineItem: components.AssessmentLineItem$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateAssessmentLineItemResponse$;
(function (UpdateAssessmentLineItemResponse$) {
    /** @deprecated use `UpdateAssessmentLineItemResponse$inboundSchema` instead. */
    UpdateAssessmentLineItemResponse$.inboundSchema = exports.UpdateAssessmentLineItemResponse$inboundSchema;
    /** @deprecated use `UpdateAssessmentLineItemResponse$outboundSchema` instead. */
    UpdateAssessmentLineItemResponse$.outboundSchema = exports.UpdateAssessmentLineItemResponse$outboundSchema;
})(UpdateAssessmentLineItemResponse$ || (exports.UpdateAssessmentLineItemResponse$ = UpdateAssessmentLineItemResponse$ = {}));
function updateAssessmentLineItemResponseToJSON(updateAssessmentLineItemResponse) {
    return JSON.stringify(exports.UpdateAssessmentLineItemResponse$outboundSchema.parse(updateAssessmentLineItemResponse));
}
function updateAssessmentLineItemResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateAssessmentLineItemResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAssessmentLineItemResponse' from JSON`);
}
//# sourceMappingURL=updateassessmentlineitem.js.map