"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.CreateAssessmentLineItemResponse$ = exports.CreateAssessmentLineItemResponse$outboundSchema = exports.CreateAssessmentLineItemResponse$inboundSchema = exports.CreateAssessmentLineItemSourcedIdPairs$ = exports.CreateAssessmentLineItemSourcedIdPairs$outboundSchema = exports.CreateAssessmentLineItemSourcedIdPairs$inboundSchema = exports.CreateAssessmentLineItemRequest$ = exports.CreateAssessmentLineItemRequest$outboundSchema = exports.CreateAssessmentLineItemRequest$inboundSchema = void 0;
exports.createAssessmentLineItemRequestToJSON = createAssessmentLineItemRequestToJSON;
exports.createAssessmentLineItemRequestFromJSON = createAssessmentLineItemRequestFromJSON;
exports.createAssessmentLineItemSourcedIdPairsToJSON = createAssessmentLineItemSourcedIdPairsToJSON;
exports.createAssessmentLineItemSourcedIdPairsFromJSON = createAssessmentLineItemSourcedIdPairsFromJSON;
exports.createAssessmentLineItemResponseToJSON = createAssessmentLineItemResponseToJSON;
exports.createAssessmentLineItemResponseFromJSON = createAssessmentLineItemResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/** @internal */
exports.CreateAssessmentLineItemRequest$inboundSchema = z.object({
    assessmentLineItem: components.AssessmentLineItem$inboundSchema,
});
/** @internal */
exports.CreateAssessmentLineItemRequest$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 CreateAssessmentLineItemRequest$;
(function (CreateAssessmentLineItemRequest$) {
    /** @deprecated use `CreateAssessmentLineItemRequest$inboundSchema` instead. */
    CreateAssessmentLineItemRequest$.inboundSchema = exports.CreateAssessmentLineItemRequest$inboundSchema;
    /** @deprecated use `CreateAssessmentLineItemRequest$outboundSchema` instead. */
    CreateAssessmentLineItemRequest$.outboundSchema = exports.CreateAssessmentLineItemRequest$outboundSchema;
})(CreateAssessmentLineItemRequest$ || (exports.CreateAssessmentLineItemRequest$ = CreateAssessmentLineItemRequest$ = {}));
function createAssessmentLineItemRequestToJSON(createAssessmentLineItemRequest) {
    return JSON.stringify(exports.CreateAssessmentLineItemRequest$outboundSchema.parse(createAssessmentLineItemRequest));
}
function createAssessmentLineItemRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAssessmentLineItemRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssessmentLineItemRequest' from JSON`);
}
/** @internal */
exports.CreateAssessmentLineItemSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
exports.CreateAssessmentLineItemSourcedIdPairs$outboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateAssessmentLineItemSourcedIdPairs$;
(function (CreateAssessmentLineItemSourcedIdPairs$) {
    /** @deprecated use `CreateAssessmentLineItemSourcedIdPairs$inboundSchema` instead. */
    CreateAssessmentLineItemSourcedIdPairs$.inboundSchema = exports.CreateAssessmentLineItemSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateAssessmentLineItemSourcedIdPairs$outboundSchema` instead. */
    CreateAssessmentLineItemSourcedIdPairs$.outboundSchema = exports.CreateAssessmentLineItemSourcedIdPairs$outboundSchema;
})(CreateAssessmentLineItemSourcedIdPairs$ || (exports.CreateAssessmentLineItemSourcedIdPairs$ = CreateAssessmentLineItemSourcedIdPairs$ = {}));
function createAssessmentLineItemSourcedIdPairsToJSON(createAssessmentLineItemSourcedIdPairs) {
    return JSON.stringify(exports.CreateAssessmentLineItemSourcedIdPairs$outboundSchema.parse(createAssessmentLineItemSourcedIdPairs));
}
function createAssessmentLineItemSourcedIdPairsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAssessmentLineItemSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssessmentLineItemSourcedIdPairs' from JSON`);
}
/** @internal */
exports.CreateAssessmentLineItemResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.CreateAssessmentLineItemSourcedIdPairs$inboundSchema),
});
/** @internal */
exports.CreateAssessmentLineItemResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.CreateAssessmentLineItemSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateAssessmentLineItemResponse$;
(function (CreateAssessmentLineItemResponse$) {
    /** @deprecated use `CreateAssessmentLineItemResponse$inboundSchema` instead. */
    CreateAssessmentLineItemResponse$.inboundSchema = exports.CreateAssessmentLineItemResponse$inboundSchema;
    /** @deprecated use `CreateAssessmentLineItemResponse$outboundSchema` instead. */
    CreateAssessmentLineItemResponse$.outboundSchema = exports.CreateAssessmentLineItemResponse$outboundSchema;
})(CreateAssessmentLineItemResponse$ || (exports.CreateAssessmentLineItemResponse$ = CreateAssessmentLineItemResponse$ = {}));
function createAssessmentLineItemResponseToJSON(createAssessmentLineItemResponse) {
    return JSON.stringify(exports.CreateAssessmentLineItemResponse$outboundSchema.parse(createAssessmentLineItemResponse));
}
function createAssessmentLineItemResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAssessmentLineItemResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssessmentLineItemResponse' from JSON`);
}
//# sourceMappingURL=createassessmentlineitem.js.map