"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.GetAllPlacementTestsResponse$ = exports.GetAllPlacementTestsResponse$outboundSchema = exports.GetAllPlacementTestsResponse$inboundSchema = exports.PlacementTest$ = exports.PlacementTest$outboundSchema = exports.PlacementTest$inboundSchema = exports.AssessmentResult$ = exports.AssessmentResult$outboundSchema = exports.AssessmentResult$inboundSchema = exports.AssessmentLineItems$ = exports.AssessmentLineItems$outboundSchema = exports.AssessmentLineItems$inboundSchema = exports.ResourcesMetadata$ = exports.ResourcesMetadata$outboundSchema = exports.ResourcesMetadata$inboundSchema = exports.Resources$ = exports.Resources$outboundSchema = exports.Resources$inboundSchema = exports.ComponentResources$ = exports.ComponentResources$outboundSchema = exports.ComponentResources$inboundSchema = exports.GetAllPlacementTestsRequest$ = exports.GetAllPlacementTestsRequest$outboundSchema = exports.GetAllPlacementTestsRequest$inboundSchema = void 0;
exports.getAllPlacementTestsRequestToJSON = getAllPlacementTestsRequestToJSON;
exports.getAllPlacementTestsRequestFromJSON = getAllPlacementTestsRequestFromJSON;
exports.componentResourcesToJSON = componentResourcesToJSON;
exports.componentResourcesFromJSON = componentResourcesFromJSON;
exports.resourcesToJSON = resourcesToJSON;
exports.resourcesFromJSON = resourcesFromJSON;
exports.resourcesMetadataToJSON = resourcesMetadataToJSON;
exports.resourcesMetadataFromJSON = resourcesMetadataFromJSON;
exports.assessmentLineItemsToJSON = assessmentLineItemsToJSON;
exports.assessmentLineItemsFromJSON = assessmentLineItemsFromJSON;
exports.assessmentResultToJSON = assessmentResultToJSON;
exports.assessmentResultFromJSON = assessmentResultFromJSON;
exports.placementTestToJSON = placementTestToJSON;
exports.placementTestFromJSON = placementTestFromJSON;
exports.getAllPlacementTestsResponseToJSON = getAllPlacementTestsResponseToJSON;
exports.getAllPlacementTestsResponseFromJSON = getAllPlacementTestsResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.GetAllPlacementTestsRequest$inboundSchema = z.object({
    student: z.string(),
    subject: z.string(),
});
/** @internal */
exports.GetAllPlacementTestsRequest$outboundSchema = z.object({
    student: z.string(),
    subject: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllPlacementTestsRequest$;
(function (GetAllPlacementTestsRequest$) {
    /** @deprecated use `GetAllPlacementTestsRequest$inboundSchema` instead. */
    GetAllPlacementTestsRequest$.inboundSchema = exports.GetAllPlacementTestsRequest$inboundSchema;
    /** @deprecated use `GetAllPlacementTestsRequest$outboundSchema` instead. */
    GetAllPlacementTestsRequest$.outboundSchema = exports.GetAllPlacementTestsRequest$outboundSchema;
})(GetAllPlacementTestsRequest$ || (exports.GetAllPlacementTestsRequest$ = GetAllPlacementTestsRequest$ = {}));
function getAllPlacementTestsRequestToJSON(getAllPlacementTestsRequest) {
    return JSON.stringify(exports.GetAllPlacementTestsRequest$outboundSchema.parse(getAllPlacementTestsRequest));
}
function getAllPlacementTestsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPlacementTestsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPlacementTestsRequest' from JSON`);
}
/** @internal */
exports.ComponentResources$inboundSchema = z.object({});
/** @internal */
exports.ComponentResources$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 ComponentResources$;
(function (ComponentResources$) {
    /** @deprecated use `ComponentResources$inboundSchema` instead. */
    ComponentResources$.inboundSchema = exports.ComponentResources$inboundSchema;
    /** @deprecated use `ComponentResources$outboundSchema` instead. */
    ComponentResources$.outboundSchema = exports.ComponentResources$outboundSchema;
})(ComponentResources$ || (exports.ComponentResources$ = ComponentResources$ = {}));
function componentResourcesToJSON(componentResources) {
    return JSON.stringify(exports.ComponentResources$outboundSchema.parse(componentResources));
}
function componentResourcesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ComponentResources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ComponentResources' from JSON`);
}
/** @internal */
exports.Resources$inboundSchema = z.object({});
/** @internal */
exports.Resources$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 Resources$;
(function (Resources$) {
    /** @deprecated use `Resources$inboundSchema` instead. */
    Resources$.inboundSchema = exports.Resources$inboundSchema;
    /** @deprecated use `Resources$outboundSchema` instead. */
    Resources$.outboundSchema = exports.Resources$outboundSchema;
})(Resources$ || (exports.Resources$ = Resources$ = {}));
function resourcesToJSON(resources) {
    return JSON.stringify(exports.Resources$outboundSchema.parse(resources));
}
function resourcesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Resources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Resources' from JSON`);
}
/** @internal */
exports.ResourcesMetadata$inboundSchema = z.object({});
/** @internal */
exports.ResourcesMetadata$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 ResourcesMetadata$;
(function (ResourcesMetadata$) {
    /** @deprecated use `ResourcesMetadata$inboundSchema` instead. */
    ResourcesMetadata$.inboundSchema = exports.ResourcesMetadata$inboundSchema;
    /** @deprecated use `ResourcesMetadata$outboundSchema` instead. */
    ResourcesMetadata$.outboundSchema = exports.ResourcesMetadata$outboundSchema;
})(ResourcesMetadata$ || (exports.ResourcesMetadata$ = ResourcesMetadata$ = {}));
function resourcesMetadataToJSON(resourcesMetadata) {
    return JSON.stringify(exports.ResourcesMetadata$outboundSchema.parse(resourcesMetadata));
}
function resourcesMetadataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResourcesMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResourcesMetadata' from JSON`);
}
/** @internal */
exports.AssessmentLineItems$inboundSchema = z.object({});
/** @internal */
exports.AssessmentLineItems$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 AssessmentLineItems$;
(function (AssessmentLineItems$) {
    /** @deprecated use `AssessmentLineItems$inboundSchema` instead. */
    AssessmentLineItems$.inboundSchema = exports.AssessmentLineItems$inboundSchema;
    /** @deprecated use `AssessmentLineItems$outboundSchema` instead. */
    AssessmentLineItems$.outboundSchema = exports.AssessmentLineItems$outboundSchema;
})(AssessmentLineItems$ || (exports.AssessmentLineItems$ = AssessmentLineItems$ = {}));
function assessmentLineItemsToJSON(assessmentLineItems) {
    return JSON.stringify(exports.AssessmentLineItems$outboundSchema.parse(assessmentLineItems));
}
function assessmentLineItemsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentLineItems$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentLineItems' from JSON`);
}
/** @internal */
exports.AssessmentResult$inboundSchema = z.object({});
/** @internal */
exports.AssessmentResult$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 AssessmentResult$;
(function (AssessmentResult$) {
    /** @deprecated use `AssessmentResult$inboundSchema` instead. */
    AssessmentResult$.inboundSchema = exports.AssessmentResult$inboundSchema;
    /** @deprecated use `AssessmentResult$outboundSchema` instead. */
    AssessmentResult$.outboundSchema = exports.AssessmentResult$outboundSchema;
})(AssessmentResult$ || (exports.AssessmentResult$ = AssessmentResult$ = {}));
function assessmentResultToJSON(assessmentResult) {
    return JSON.stringify(exports.AssessmentResult$outboundSchema.parse(assessmentResult));
}
function assessmentResultFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentResult' from JSON`);
}
/** @internal */
exports.PlacementTest$inboundSchema = z.object({
    component_resources: z.lazy(() => exports.ComponentResources$inboundSchema),
    resources: z.lazy(() => exports.Resources$inboundSchema),
    resources_metadata: z.lazy(() => exports.ResourcesMetadata$inboundSchema),
    assessment_line_items: z.nullable(z.lazy(() => exports.AssessmentLineItems$inboundSchema)),
    assessment_results: z.nullable(z.array(z.lazy(() => exports.AssessmentResult$inboundSchema))),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "component_resources": "componentResources",
        "resources_metadata": "resourcesMetadata",
        "assessment_line_items": "assessmentLineItems",
        "assessment_results": "assessmentResults",
    });
});
/** @internal */
exports.PlacementTest$outboundSchema = z.object({
    componentResources: z.lazy(() => exports.ComponentResources$outboundSchema),
    resources: z.lazy(() => exports.Resources$outboundSchema),
    resourcesMetadata: z.lazy(() => exports.ResourcesMetadata$outboundSchema),
    assessmentLineItems: z.nullable(z.lazy(() => exports.AssessmentLineItems$outboundSchema)),
    assessmentResults: z.nullable(z.array(z.lazy(() => exports.AssessmentResult$outboundSchema))),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        componentResources: "component_resources",
        resourcesMetadata: "resources_metadata",
        assessmentLineItems: "assessment_line_items",
        assessmentResults: "assessment_results",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PlacementTest$;
(function (PlacementTest$) {
    /** @deprecated use `PlacementTest$inboundSchema` instead. */
    PlacementTest$.inboundSchema = exports.PlacementTest$inboundSchema;
    /** @deprecated use `PlacementTest$outboundSchema` instead. */
    PlacementTest$.outboundSchema = exports.PlacementTest$outboundSchema;
})(PlacementTest$ || (exports.PlacementTest$ = PlacementTest$ = {}));
function placementTestToJSON(placementTest) {
    return JSON.stringify(exports.PlacementTest$outboundSchema.parse(placementTest));
}
function placementTestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PlacementTest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlacementTest' from JSON`);
}
/** @internal */
exports.GetAllPlacementTestsResponse$inboundSchema = z.object({
    placementTests: z.array(z.lazy(() => exports.PlacementTest$inboundSchema)),
});
/** @internal */
exports.GetAllPlacementTestsResponse$outboundSchema = z.object({
    placementTests: z.array(z.lazy(() => exports.PlacementTest$outboundSchema)),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllPlacementTestsResponse$;
(function (GetAllPlacementTestsResponse$) {
    /** @deprecated use `GetAllPlacementTestsResponse$inboundSchema` instead. */
    GetAllPlacementTestsResponse$.inboundSchema = exports.GetAllPlacementTestsResponse$inboundSchema;
    /** @deprecated use `GetAllPlacementTestsResponse$outboundSchema` instead. */
    GetAllPlacementTestsResponse$.outboundSchema = exports.GetAllPlacementTestsResponse$outboundSchema;
})(GetAllPlacementTestsResponse$ || (exports.GetAllPlacementTestsResponse$ = GetAllPlacementTestsResponse$ = {}));
function getAllPlacementTestsResponseToJSON(getAllPlacementTestsResponse) {
    return JSON.stringify(exports.GetAllPlacementTestsResponse$outboundSchema.parse(getAllPlacementTestsResponse));
}
function getAllPlacementTestsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPlacementTestsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPlacementTestsResponse' from JSON`);
}
//# sourceMappingURL=getallplacementtests.js.map