"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetAllSchoolsResponse$ = exports.GetAllSchoolsResponse$outboundSchema = exports.GetAllSchoolsResponse$inboundSchema = exports.GetAllSchoolsResponseBody$ = exports.GetAllSchoolsResponseBody$outboundSchema = exports.GetAllSchoolsResponseBody$inboundSchema = exports.GetAllSchoolsRequest$ = exports.GetAllSchoolsRequest$outboundSchema = exports.GetAllSchoolsRequest$inboundSchema = exports.GetAllSchoolsOrderBy$ = exports.GetAllSchoolsOrderBy$outboundSchema = exports.GetAllSchoolsOrderBy$inboundSchema = exports.GetAllSchoolsOrderBy = void 0;
exports.getAllSchoolsRequestToJSON = getAllSchoolsRequestToJSON;
exports.getAllSchoolsRequestFromJSON = getAllSchoolsRequestFromJSON;
exports.getAllSchoolsResponseBodyToJSON = getAllSchoolsResponseBodyToJSON;
exports.getAllSchoolsResponseBodyFromJSON = getAllSchoolsResponseBodyFromJSON;
exports.getAllSchoolsResponseToJSON = getAllSchoolsResponseToJSON;
exports.getAllSchoolsResponseFromJSON = getAllSchoolsResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/**
 * The order to sort the response by
 */
exports.GetAllSchoolsOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetAllSchoolsOrderBy$inboundSchema = z.nativeEnum(exports.GetAllSchoolsOrderBy);
/** @internal */
exports.GetAllSchoolsOrderBy$outboundSchema = exports.GetAllSchoolsOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllSchoolsOrderBy$;
(function (GetAllSchoolsOrderBy$) {
    /** @deprecated use `GetAllSchoolsOrderBy$inboundSchema` instead. */
    GetAllSchoolsOrderBy$.inboundSchema = exports.GetAllSchoolsOrderBy$inboundSchema;
    /** @deprecated use `GetAllSchoolsOrderBy$outboundSchema` instead. */
    GetAllSchoolsOrderBy$.outboundSchema = exports.GetAllSchoolsOrderBy$outboundSchema;
})(GetAllSchoolsOrderBy$ || (exports.GetAllSchoolsOrderBy$ = GetAllSchoolsOrderBy$ = {}));
/** @internal */
exports.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: exports.GetAllSchoolsOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.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: exports.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.
 */
var GetAllSchoolsRequest$;
(function (GetAllSchoolsRequest$) {
    /** @deprecated use `GetAllSchoolsRequest$inboundSchema` instead. */
    GetAllSchoolsRequest$.inboundSchema = exports.GetAllSchoolsRequest$inboundSchema;
    /** @deprecated use `GetAllSchoolsRequest$outboundSchema` instead. */
    GetAllSchoolsRequest$.outboundSchema = exports.GetAllSchoolsRequest$outboundSchema;
})(GetAllSchoolsRequest$ || (exports.GetAllSchoolsRequest$ = GetAllSchoolsRequest$ = {}));
function getAllSchoolsRequestToJSON(getAllSchoolsRequest) {
    return JSON.stringify(exports.GetAllSchoolsRequest$outboundSchema.parse(getAllSchoolsRequest));
}
function getAllSchoolsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllSchoolsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllSchoolsRequest' from JSON`);
}
/** @internal */
exports.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 */
exports.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.
 */
var GetAllSchoolsResponseBody$;
(function (GetAllSchoolsResponseBody$) {
    /** @deprecated use `GetAllSchoolsResponseBody$inboundSchema` instead. */
    GetAllSchoolsResponseBody$.inboundSchema = exports.GetAllSchoolsResponseBody$inboundSchema;
    /** @deprecated use `GetAllSchoolsResponseBody$outboundSchema` instead. */
    GetAllSchoolsResponseBody$.outboundSchema = exports.GetAllSchoolsResponseBody$outboundSchema;
})(GetAllSchoolsResponseBody$ || (exports.GetAllSchoolsResponseBody$ = GetAllSchoolsResponseBody$ = {}));
function getAllSchoolsResponseBodyToJSON(getAllSchoolsResponseBody) {
    return JSON.stringify(exports.GetAllSchoolsResponseBody$outboundSchema.parse(getAllSchoolsResponseBody));
}
function getAllSchoolsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllSchoolsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllSchoolsResponseBody' from JSON`);
}
/** @internal */
exports.GetAllSchoolsResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetAllSchoolsResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetAllSchoolsResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetAllSchoolsResponseBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var GetAllSchoolsResponse$;
(function (GetAllSchoolsResponse$) {
    /** @deprecated use `GetAllSchoolsResponse$inboundSchema` instead. */
    GetAllSchoolsResponse$.inboundSchema = exports.GetAllSchoolsResponse$inboundSchema;
    /** @deprecated use `GetAllSchoolsResponse$outboundSchema` instead. */
    GetAllSchoolsResponse$.outboundSchema = exports.GetAllSchoolsResponse$outboundSchema;
})(GetAllSchoolsResponse$ || (exports.GetAllSchoolsResponse$ = GetAllSchoolsResponse$ = {}));
function getAllSchoolsResponseToJSON(getAllSchoolsResponse) {
    return JSON.stringify(exports.GetAllSchoolsResponse$outboundSchema.parse(getAllSchoolsResponse));
}
function getAllSchoolsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllSchoolsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllSchoolsResponse' from JSON`);
}
//# sourceMappingURL=getallschools.js.map