/*
 * 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 GetClassesForTeacherOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetClassesForTeacherOrderBy$inboundSchema = z.nativeEnum(GetClassesForTeacherOrderBy);
/** @internal */
export const GetClassesForTeacherOrderBy$outboundSchema = GetClassesForTeacherOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetClassesForTeacherOrderBy$;
(function (GetClassesForTeacherOrderBy$) {
    /** @deprecated use `GetClassesForTeacherOrderBy$inboundSchema` instead. */
    GetClassesForTeacherOrderBy$.inboundSchema = GetClassesForTeacherOrderBy$inboundSchema;
    /** @deprecated use `GetClassesForTeacherOrderBy$outboundSchema` instead. */
    GetClassesForTeacherOrderBy$.outboundSchema = GetClassesForTeacherOrderBy$outboundSchema;
})(GetClassesForTeacherOrderBy$ || (GetClassesForTeacherOrderBy$ = {}));
/** @internal */
export const GetClassesForTeacherRequest$inboundSchema = z.object({
    teacherSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetClassesForTeacherOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetClassesForTeacherRequest$outboundSchema = z.object({
    teacherSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetClassesForTeacherOrderBy$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 GetClassesForTeacherRequest$;
(function (GetClassesForTeacherRequest$) {
    /** @deprecated use `GetClassesForTeacherRequest$inboundSchema` instead. */
    GetClassesForTeacherRequest$.inboundSchema = GetClassesForTeacherRequest$inboundSchema;
    /** @deprecated use `GetClassesForTeacherRequest$outboundSchema` instead. */
    GetClassesForTeacherRequest$.outboundSchema = GetClassesForTeacherRequest$outboundSchema;
})(GetClassesForTeacherRequest$ || (GetClassesForTeacherRequest$ = {}));
export function getClassesForTeacherRequestToJSON(getClassesForTeacherRequest) {
    return JSON.stringify(GetClassesForTeacherRequest$outboundSchema.parse(getClassesForTeacherRequest));
}
export function getClassesForTeacherRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForTeacherRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForTeacherRequest' from JSON`);
}
/** @internal */
export const GetClassesForTeacherResponseBody$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 GetClassesForTeacherResponseBody$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 GetClassesForTeacherResponseBody$;
(function (GetClassesForTeacherResponseBody$) {
    /** @deprecated use `GetClassesForTeacherResponseBody$inboundSchema` instead. */
    GetClassesForTeacherResponseBody$.inboundSchema = GetClassesForTeacherResponseBody$inboundSchema;
    /** @deprecated use `GetClassesForTeacherResponseBody$outboundSchema` instead. */
    GetClassesForTeacherResponseBody$.outboundSchema = GetClassesForTeacherResponseBody$outboundSchema;
})(GetClassesForTeacherResponseBody$ || (GetClassesForTeacherResponseBody$ = {}));
export function getClassesForTeacherResponseBodyToJSON(getClassesForTeacherResponseBody) {
    return JSON.stringify(GetClassesForTeacherResponseBody$outboundSchema.parse(getClassesForTeacherResponseBody));
}
export function getClassesForTeacherResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForTeacherResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForTeacherResponseBody' from JSON`);
}
/** @internal */
export const GetClassesForTeacherResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetClassesForTeacherResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetClassesForTeacherResponse$outboundSchema = z.object({
    result: z.lazy(() => GetClassesForTeacherResponseBody$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 GetClassesForTeacherResponse$;
(function (GetClassesForTeacherResponse$) {
    /** @deprecated use `GetClassesForTeacherResponse$inboundSchema` instead. */
    GetClassesForTeacherResponse$.inboundSchema = GetClassesForTeacherResponse$inboundSchema;
    /** @deprecated use `GetClassesForTeacherResponse$outboundSchema` instead. */
    GetClassesForTeacherResponse$.outboundSchema = GetClassesForTeacherResponse$outboundSchema;
})(GetClassesForTeacherResponse$ || (GetClassesForTeacherResponse$ = {}));
export function getClassesForTeacherResponseToJSON(getClassesForTeacherResponse) {
    return JSON.stringify(GetClassesForTeacherResponse$outboundSchema.parse(getClassesForTeacherResponse));
}
export function getClassesForTeacherResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForTeacherResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForTeacherResponse' from JSON`);
}
//# sourceMappingURL=getclassesforteacher.js.map