/*
 * 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";
import * as components from "../components/index.js";
/**
 * The order to sort the response by
 */
export const GetResultsForStudentForClassOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetResultsForStudentForClassOrderBy$inboundSchema = z.nativeEnum(GetResultsForStudentForClassOrderBy);
/** @internal */
export const GetResultsForStudentForClassOrderBy$outboundSchema = GetResultsForStudentForClassOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetResultsForStudentForClassOrderBy$;
(function (GetResultsForStudentForClassOrderBy$) {
    /** @deprecated use `GetResultsForStudentForClassOrderBy$inboundSchema` instead. */
    GetResultsForStudentForClassOrderBy$.inboundSchema = GetResultsForStudentForClassOrderBy$inboundSchema;
    /** @deprecated use `GetResultsForStudentForClassOrderBy$outboundSchema` instead. */
    GetResultsForStudentForClassOrderBy$.outboundSchema = GetResultsForStudentForClassOrderBy$outboundSchema;
})(GetResultsForStudentForClassOrderBy$ || (GetResultsForStudentForClassOrderBy$ = {}));
/** @internal */
export const GetResultsForStudentForClassRequest$inboundSchema = z.object({
    classSourcedId: z.string(),
    studentSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetResultsForStudentForClassOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetResultsForStudentForClassRequest$outboundSchema = z.object({
    classSourcedId: z.string(),
    studentSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetResultsForStudentForClassOrderBy$outboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetResultsForStudentForClassRequest$;
(function (GetResultsForStudentForClassRequest$) {
    /** @deprecated use `GetResultsForStudentForClassRequest$inboundSchema` instead. */
    GetResultsForStudentForClassRequest$.inboundSchema = GetResultsForStudentForClassRequest$inboundSchema;
    /** @deprecated use `GetResultsForStudentForClassRequest$outboundSchema` instead. */
    GetResultsForStudentForClassRequest$.outboundSchema = GetResultsForStudentForClassRequest$outboundSchema;
})(GetResultsForStudentForClassRequest$ || (GetResultsForStudentForClassRequest$ = {}));
export function getResultsForStudentForClassRequestToJSON(getResultsForStudentForClassRequest) {
    return JSON.stringify(GetResultsForStudentForClassRequest$outboundSchema.parse(getResultsForStudentForClassRequest));
}
export function getResultsForStudentForClassRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResultsForStudentForClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultsForStudentForClassRequest' from JSON`);
}
/** @internal */
export const GetResultsForStudentForClassResponseBody$inboundSchema = z.object({
    results: z.array(components.Result$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetResultsForStudentForClassResponseBody$outboundSchema = z.object({
    results: z.array(components.Result$outboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: 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 GetResultsForStudentForClassResponseBody$;
(function (GetResultsForStudentForClassResponseBody$) {
    /** @deprecated use `GetResultsForStudentForClassResponseBody$inboundSchema` instead. */
    GetResultsForStudentForClassResponseBody$.inboundSchema = GetResultsForStudentForClassResponseBody$inboundSchema;
    /** @deprecated use `GetResultsForStudentForClassResponseBody$outboundSchema` instead. */
    GetResultsForStudentForClassResponseBody$.outboundSchema = GetResultsForStudentForClassResponseBody$outboundSchema;
})(GetResultsForStudentForClassResponseBody$ || (GetResultsForStudentForClassResponseBody$ = {}));
export function getResultsForStudentForClassResponseBodyToJSON(getResultsForStudentForClassResponseBody) {
    return JSON.stringify(GetResultsForStudentForClassResponseBody$outboundSchema.parse(getResultsForStudentForClassResponseBody));
}
export function getResultsForStudentForClassResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResultsForStudentForClassResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultsForStudentForClassResponseBody' from JSON`);
}
/** @internal */
export const GetResultsForStudentForClassResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetResultsForStudentForClassResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetResultsForStudentForClassResponse$outboundSchema = z.object({
    result: z.lazy(() => GetResultsForStudentForClassResponseBody$outboundSchema),
}).transform((v) => {
    return remap$(v, {
        result: "Result",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetResultsForStudentForClassResponse$;
(function (GetResultsForStudentForClassResponse$) {
    /** @deprecated use `GetResultsForStudentForClassResponse$inboundSchema` instead. */
    GetResultsForStudentForClassResponse$.inboundSchema = GetResultsForStudentForClassResponse$inboundSchema;
    /** @deprecated use `GetResultsForStudentForClassResponse$outboundSchema` instead. */
    GetResultsForStudentForClassResponse$.outboundSchema = GetResultsForStudentForClassResponse$outboundSchema;
})(GetResultsForStudentForClassResponse$ || (GetResultsForStudentForClassResponse$ = {}));
export function getResultsForStudentForClassResponseToJSON(getResultsForStudentForClassResponse) {
    return JSON.stringify(GetResultsForStudentForClassResponse$outboundSchema.parse(getResultsForStudentForClassResponse));
}
export function getResultsForStudentForClassResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResultsForStudentForClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultsForStudentForClassResponse' from JSON`);
}
//# sourceMappingURL=getresultsforstudentforclass.js.map