/*
 * 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 GetClassesForStudentOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetClassesForStudentOrderBy$inboundSchema = z.nativeEnum(GetClassesForStudentOrderBy);
/** @internal */
export const GetClassesForStudentOrderBy$outboundSchema = GetClassesForStudentOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetClassesForStudentOrderBy$;
(function (GetClassesForStudentOrderBy$) {
    /** @deprecated use `GetClassesForStudentOrderBy$inboundSchema` instead. */
    GetClassesForStudentOrderBy$.inboundSchema = GetClassesForStudentOrderBy$inboundSchema;
    /** @deprecated use `GetClassesForStudentOrderBy$outboundSchema` instead. */
    GetClassesForStudentOrderBy$.outboundSchema = GetClassesForStudentOrderBy$outboundSchema;
})(GetClassesForStudentOrderBy$ || (GetClassesForStudentOrderBy$ = {}));
/** @internal */
export const GetClassesForStudentRequest$inboundSchema = z.object({
    studentSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetClassesForStudentOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetClassesForStudentRequest$outboundSchema = z.object({
    studentSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetClassesForStudentOrderBy$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 GetClassesForStudentRequest$;
(function (GetClassesForStudentRequest$) {
    /** @deprecated use `GetClassesForStudentRequest$inboundSchema` instead. */
    GetClassesForStudentRequest$.inboundSchema = GetClassesForStudentRequest$inboundSchema;
    /** @deprecated use `GetClassesForStudentRequest$outboundSchema` instead. */
    GetClassesForStudentRequest$.outboundSchema = GetClassesForStudentRequest$outboundSchema;
})(GetClassesForStudentRequest$ || (GetClassesForStudentRequest$ = {}));
export function getClassesForStudentRequestToJSON(getClassesForStudentRequest) {
    return JSON.stringify(GetClassesForStudentRequest$outboundSchema.parse(getClassesForStudentRequest));
}
export function getClassesForStudentRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForStudentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForStudentRequest' from JSON`);
}
/** @internal */
export const GetClassesForStudentResponseBody$inboundSchema = z.object({
    classes: z.array(components.Class$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetClassesForStudentResponseBody$outboundSchema = z.object({
    classes: z.array(components.Class$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 GetClassesForStudentResponseBody$;
(function (GetClassesForStudentResponseBody$) {
    /** @deprecated use `GetClassesForStudentResponseBody$inboundSchema` instead. */
    GetClassesForStudentResponseBody$.inboundSchema = GetClassesForStudentResponseBody$inboundSchema;
    /** @deprecated use `GetClassesForStudentResponseBody$outboundSchema` instead. */
    GetClassesForStudentResponseBody$.outboundSchema = GetClassesForStudentResponseBody$outboundSchema;
})(GetClassesForStudentResponseBody$ || (GetClassesForStudentResponseBody$ = {}));
export function getClassesForStudentResponseBodyToJSON(getClassesForStudentResponseBody) {
    return JSON.stringify(GetClassesForStudentResponseBody$outboundSchema.parse(getClassesForStudentResponseBody));
}
export function getClassesForStudentResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForStudentResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForStudentResponseBody' from JSON`);
}
/** @internal */
export const GetClassesForStudentResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetClassesForStudentResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetClassesForStudentResponse$outboundSchema = z.object({
    result: z.lazy(() => GetClassesForStudentResponseBody$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 GetClassesForStudentResponse$;
(function (GetClassesForStudentResponse$) {
    /** @deprecated use `GetClassesForStudentResponse$inboundSchema` instead. */
    GetClassesForStudentResponse$.inboundSchema = GetClassesForStudentResponse$inboundSchema;
    /** @deprecated use `GetClassesForStudentResponse$outboundSchema` instead. */
    GetClassesForStudentResponse$.outboundSchema = GetClassesForStudentResponse$outboundSchema;
})(GetClassesForStudentResponse$ || (GetClassesForStudentResponse$ = {}));
export function getClassesForStudentResponseToJSON(getClassesForStudentResponse) {
    return JSON.stringify(GetClassesForStudentResponse$outboundSchema.parse(getClassesForStudentResponse));
}
export function getClassesForStudentResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForStudentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForStudentResponse' from JSON`);
}
//# sourceMappingURL=getclassesforstudent.js.map