/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const GetNextPlacementTestRequest$inboundSchema = z.object({
    student: z.string(),
    subject: z.string(),
});
/** @internal */
export const GetNextPlacementTestRequest$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 GetNextPlacementTestRequest$;
(function (GetNextPlacementTestRequest$) {
    /** @deprecated use `GetNextPlacementTestRequest$inboundSchema` instead. */
    GetNextPlacementTestRequest$.inboundSchema = GetNextPlacementTestRequest$inboundSchema;
    /** @deprecated use `GetNextPlacementTestRequest$outboundSchema` instead. */
    GetNextPlacementTestRequest$.outboundSchema = GetNextPlacementTestRequest$outboundSchema;
})(GetNextPlacementTestRequest$ || (GetNextPlacementTestRequest$ = {}));
export function getNextPlacementTestRequestToJSON(getNextPlacementTestRequest) {
    return JSON.stringify(GetNextPlacementTestRequest$outboundSchema.parse(getNextPlacementTestRequest));
}
export function getNextPlacementTestRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetNextPlacementTestRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetNextPlacementTestRequest' from JSON`);
}
/** @internal */
export const GetNextPlacementTestResponse$inboundSchema = z.object({
    exhaustedTests: z.boolean(),
    gradeLevel: z.nullable(z.number()),
    lesson: z.nullable(z.string()),
    onboarded: z.boolean(),
    availableTests: z.number(),
});
/** @internal */
export const GetNextPlacementTestResponse$outboundSchema = z.object({
    exhaustedTests: z.boolean(),
    gradeLevel: z.nullable(z.number()),
    lesson: z.nullable(z.string()),
    onboarded: z.boolean(),
    availableTests: z.number(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetNextPlacementTestResponse$;
(function (GetNextPlacementTestResponse$) {
    /** @deprecated use `GetNextPlacementTestResponse$inboundSchema` instead. */
    GetNextPlacementTestResponse$.inboundSchema = GetNextPlacementTestResponse$inboundSchema;
    /** @deprecated use `GetNextPlacementTestResponse$outboundSchema` instead. */
    GetNextPlacementTestResponse$.outboundSchema = GetNextPlacementTestResponse$outboundSchema;
})(GetNextPlacementTestResponse$ || (GetNextPlacementTestResponse$ = {}));
export function getNextPlacementTestResponseToJSON(getNextPlacementTestResponse) {
    return JSON.stringify(GetNextPlacementTestResponse$outboundSchema.parse(getNextPlacementTestResponse));
}
export function getNextPlacementTestResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetNextPlacementTestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetNextPlacementTestResponse' from JSON`);
}
//# sourceMappingURL=getnextplacementtest.js.map