/*
 * 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 GetClassesForSchoolOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetClassesForSchoolOrderBy$inboundSchema = z.nativeEnum(GetClassesForSchoolOrderBy);
/** @internal */
export const GetClassesForSchoolOrderBy$outboundSchema = GetClassesForSchoolOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetClassesForSchoolOrderBy$;
(function (GetClassesForSchoolOrderBy$) {
    /** @deprecated use `GetClassesForSchoolOrderBy$inboundSchema` instead. */
    GetClassesForSchoolOrderBy$.inboundSchema = GetClassesForSchoolOrderBy$inboundSchema;
    /** @deprecated use `GetClassesForSchoolOrderBy$outboundSchema` instead. */
    GetClassesForSchoolOrderBy$.outboundSchema = GetClassesForSchoolOrderBy$outboundSchema;
})(GetClassesForSchoolOrderBy$ || (GetClassesForSchoolOrderBy$ = {}));
/** @internal */
export const GetClassesForSchoolRequest$inboundSchema = z.object({
    schoolSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetClassesForSchoolOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetClassesForSchoolRequest$outboundSchema = z.object({
    schoolSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetClassesForSchoolOrderBy$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 GetClassesForSchoolRequest$;
(function (GetClassesForSchoolRequest$) {
    /** @deprecated use `GetClassesForSchoolRequest$inboundSchema` instead. */
    GetClassesForSchoolRequest$.inboundSchema = GetClassesForSchoolRequest$inboundSchema;
    /** @deprecated use `GetClassesForSchoolRequest$outboundSchema` instead. */
    GetClassesForSchoolRequest$.outboundSchema = GetClassesForSchoolRequest$outboundSchema;
})(GetClassesForSchoolRequest$ || (GetClassesForSchoolRequest$ = {}));
export function getClassesForSchoolRequestToJSON(getClassesForSchoolRequest) {
    return JSON.stringify(GetClassesForSchoolRequest$outboundSchema.parse(getClassesForSchoolRequest));
}
export function getClassesForSchoolRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForSchoolRequest' from JSON`);
}
/** @internal */
export const GetClassesForSchoolResponseBody$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 GetClassesForSchoolResponseBody$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 GetClassesForSchoolResponseBody$;
(function (GetClassesForSchoolResponseBody$) {
    /** @deprecated use `GetClassesForSchoolResponseBody$inboundSchema` instead. */
    GetClassesForSchoolResponseBody$.inboundSchema = GetClassesForSchoolResponseBody$inboundSchema;
    /** @deprecated use `GetClassesForSchoolResponseBody$outboundSchema` instead. */
    GetClassesForSchoolResponseBody$.outboundSchema = GetClassesForSchoolResponseBody$outboundSchema;
})(GetClassesForSchoolResponseBody$ || (GetClassesForSchoolResponseBody$ = {}));
export function getClassesForSchoolResponseBodyToJSON(getClassesForSchoolResponseBody) {
    return JSON.stringify(GetClassesForSchoolResponseBody$outboundSchema.parse(getClassesForSchoolResponseBody));
}
export function getClassesForSchoolResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForSchoolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForSchoolResponseBody' from JSON`);
}
/** @internal */
export const GetClassesForSchoolResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetClassesForSchoolResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetClassesForSchoolResponse$outboundSchema = z.object({
    result: z.lazy(() => GetClassesForSchoolResponseBody$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 GetClassesForSchoolResponse$;
(function (GetClassesForSchoolResponse$) {
    /** @deprecated use `GetClassesForSchoolResponse$inboundSchema` instead. */
    GetClassesForSchoolResponse$.inboundSchema = GetClassesForSchoolResponse$inboundSchema;
    /** @deprecated use `GetClassesForSchoolResponse$outboundSchema` instead. */
    GetClassesForSchoolResponse$.outboundSchema = GetClassesForSchoolResponse$outboundSchema;
})(GetClassesForSchoolResponse$ || (GetClassesForSchoolResponse$ = {}));
export function getClassesForSchoolResponseToJSON(getClassesForSchoolResponse) {
    return JSON.stringify(GetClassesForSchoolResponse$outboundSchema.parse(getClassesForSchoolResponse));
}
export function getClassesForSchoolResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForSchoolResponse' from JSON`);
}
//# sourceMappingURL=getclassesforschool.js.map