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