/*
 * 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 GetAllSchoolsOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetAllSchoolsOrderBy$inboundSchema = z.nativeEnum(GetAllSchoolsOrderBy);
/** @internal */
export const GetAllSchoolsOrderBy$outboundSchema = GetAllSchoolsOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAllSchoolsOrderBy$;
(function (GetAllSchoolsOrderBy$) {
    /** @deprecated use `GetAllSchoolsOrderBy$inboundSchema` instead. */
    GetAllSchoolsOrderBy$.inboundSchema = GetAllSchoolsOrderBy$inboundSchema;
    /** @deprecated use `GetAllSchoolsOrderBy$outboundSchema` instead. */
    GetAllSchoolsOrderBy$.outboundSchema = GetAllSchoolsOrderBy$outboundSchema;
})(GetAllSchoolsOrderBy$ || (GetAllSchoolsOrderBy$ = {}));
/** @internal */
export const GetAllSchoolsRequest$inboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetAllSchoolsOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetAllSchoolsRequest$outboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetAllSchoolsOrderBy$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 GetAllSchoolsRequest$;
(function (GetAllSchoolsRequest$) {
    /** @deprecated use `GetAllSchoolsRequest$inboundSchema` instead. */
    GetAllSchoolsRequest$.inboundSchema = GetAllSchoolsRequest$inboundSchema;
    /** @deprecated use `GetAllSchoolsRequest$outboundSchema` instead. */
    GetAllSchoolsRequest$.outboundSchema = GetAllSchoolsRequest$outboundSchema;
})(GetAllSchoolsRequest$ || (GetAllSchoolsRequest$ = {}));
export function getAllSchoolsRequestToJSON(getAllSchoolsRequest) {
    return JSON.stringify(GetAllSchoolsRequest$outboundSchema.parse(getAllSchoolsRequest));
}
export function getAllSchoolsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllSchoolsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllSchoolsRequest' from JSON`);
}
/** @internal */
export const GetAllSchoolsResponseBody$inboundSchema = z.object({
    orgs: z.array(components.Org$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetAllSchoolsResponseBody$outboundSchema = z.object({
    orgs: z.array(components.Org$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 GetAllSchoolsResponseBody$;
(function (GetAllSchoolsResponseBody$) {
    /** @deprecated use `GetAllSchoolsResponseBody$inboundSchema` instead. */
    GetAllSchoolsResponseBody$.inboundSchema = GetAllSchoolsResponseBody$inboundSchema;
    /** @deprecated use `GetAllSchoolsResponseBody$outboundSchema` instead. */
    GetAllSchoolsResponseBody$.outboundSchema = GetAllSchoolsResponseBody$outboundSchema;
})(GetAllSchoolsResponseBody$ || (GetAllSchoolsResponseBody$ = {}));
export function getAllSchoolsResponseBodyToJSON(getAllSchoolsResponseBody) {
    return JSON.stringify(GetAllSchoolsResponseBody$outboundSchema.parse(getAllSchoolsResponseBody));
}
export function getAllSchoolsResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllSchoolsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllSchoolsResponseBody' from JSON`);
}
/** @internal */
export const GetAllSchoolsResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetAllSchoolsResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetAllSchoolsResponse$outboundSchema = z.object({
    result: z.lazy(() => GetAllSchoolsResponseBody$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 GetAllSchoolsResponse$;
(function (GetAllSchoolsResponse$) {
    /** @deprecated use `GetAllSchoolsResponse$inboundSchema` instead. */
    GetAllSchoolsResponse$.inboundSchema = GetAllSchoolsResponse$inboundSchema;
    /** @deprecated use `GetAllSchoolsResponse$outboundSchema` instead. */
    GetAllSchoolsResponse$.outboundSchema = GetAllSchoolsResponse$outboundSchema;
})(GetAllSchoolsResponse$ || (GetAllSchoolsResponse$ = {}));
export function getAllSchoolsResponseToJSON(getAllSchoolsResponse) {
    return JSON.stringify(GetAllSchoolsResponse$outboundSchema.parse(getAllSchoolsResponse));
}
export function getAllSchoolsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllSchoolsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllSchoolsResponse' from JSON`);
}
//# sourceMappingURL=getallschools.js.map