"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.GetEnrollmentsForSchoolResponse$ = exports.GetEnrollmentsForSchoolResponse$outboundSchema = exports.GetEnrollmentsForSchoolResponse$inboundSchema = exports.GetEnrollmentsForSchoolResponseBody$ = exports.GetEnrollmentsForSchoolResponseBody$outboundSchema = exports.GetEnrollmentsForSchoolResponseBody$inboundSchema = exports.GetEnrollmentsForSchoolRequest$ = exports.GetEnrollmentsForSchoolRequest$outboundSchema = exports.GetEnrollmentsForSchoolRequest$inboundSchema = exports.GetEnrollmentsForSchoolOrderBy$ = exports.GetEnrollmentsForSchoolOrderBy$outboundSchema = exports.GetEnrollmentsForSchoolOrderBy$inboundSchema = exports.GetEnrollmentsForSchoolOrderBy = void 0;
exports.getEnrollmentsForSchoolRequestToJSON = getEnrollmentsForSchoolRequestToJSON;
exports.getEnrollmentsForSchoolRequestFromJSON = getEnrollmentsForSchoolRequestFromJSON;
exports.getEnrollmentsForSchoolResponseBodyToJSON = getEnrollmentsForSchoolResponseBodyToJSON;
exports.getEnrollmentsForSchoolResponseBodyFromJSON = getEnrollmentsForSchoolResponseBodyFromJSON;
exports.getEnrollmentsForSchoolResponseToJSON = getEnrollmentsForSchoolResponseToJSON;
exports.getEnrollmentsForSchoolResponseFromJSON = getEnrollmentsForSchoolResponseFromJSON;
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.GetEnrollmentsForSchoolOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetEnrollmentsForSchoolOrderBy$inboundSchema = z.nativeEnum(exports.GetEnrollmentsForSchoolOrderBy);
/** @internal */
exports.GetEnrollmentsForSchoolOrderBy$outboundSchema = exports.GetEnrollmentsForSchoolOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetEnrollmentsForSchoolOrderBy$;
(function (GetEnrollmentsForSchoolOrderBy$) {
    /** @deprecated use `GetEnrollmentsForSchoolOrderBy$inboundSchema` instead. */
    GetEnrollmentsForSchoolOrderBy$.inboundSchema = exports.GetEnrollmentsForSchoolOrderBy$inboundSchema;
    /** @deprecated use `GetEnrollmentsForSchoolOrderBy$outboundSchema` instead. */
    GetEnrollmentsForSchoolOrderBy$.outboundSchema = exports.GetEnrollmentsForSchoolOrderBy$outboundSchema;
})(GetEnrollmentsForSchoolOrderBy$ || (exports.GetEnrollmentsForSchoolOrderBy$ = GetEnrollmentsForSchoolOrderBy$ = {}));
/** @internal */
exports.GetEnrollmentsForSchoolRequest$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: exports.GetEnrollmentsForSchoolOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetEnrollmentsForSchoolRequest$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: exports.GetEnrollmentsForSchoolOrderBy$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 GetEnrollmentsForSchoolRequest$;
(function (GetEnrollmentsForSchoolRequest$) {
    /** @deprecated use `GetEnrollmentsForSchoolRequest$inboundSchema` instead. */
    GetEnrollmentsForSchoolRequest$.inboundSchema = exports.GetEnrollmentsForSchoolRequest$inboundSchema;
    /** @deprecated use `GetEnrollmentsForSchoolRequest$outboundSchema` instead. */
    GetEnrollmentsForSchoolRequest$.outboundSchema = exports.GetEnrollmentsForSchoolRequest$outboundSchema;
})(GetEnrollmentsForSchoolRequest$ || (exports.GetEnrollmentsForSchoolRequest$ = GetEnrollmentsForSchoolRequest$ = {}));
function getEnrollmentsForSchoolRequestToJSON(getEnrollmentsForSchoolRequest) {
    return JSON.stringify(exports.GetEnrollmentsForSchoolRequest$outboundSchema.parse(getEnrollmentsForSchoolRequest));
}
function getEnrollmentsForSchoolRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEnrollmentsForSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnrollmentsForSchoolRequest' from JSON`);
}
/** @internal */
exports.GetEnrollmentsForSchoolResponseBody$inboundSchema = z.object({
    enrollments: z.array(components.Enrollment$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetEnrollmentsForSchoolResponseBody$outboundSchema = z.object({
    enrollments: z.array(components.Enrollment$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 GetEnrollmentsForSchoolResponseBody$;
(function (GetEnrollmentsForSchoolResponseBody$) {
    /** @deprecated use `GetEnrollmentsForSchoolResponseBody$inboundSchema` instead. */
    GetEnrollmentsForSchoolResponseBody$.inboundSchema = exports.GetEnrollmentsForSchoolResponseBody$inboundSchema;
    /** @deprecated use `GetEnrollmentsForSchoolResponseBody$outboundSchema` instead. */
    GetEnrollmentsForSchoolResponseBody$.outboundSchema = exports.GetEnrollmentsForSchoolResponseBody$outboundSchema;
})(GetEnrollmentsForSchoolResponseBody$ || (exports.GetEnrollmentsForSchoolResponseBody$ = GetEnrollmentsForSchoolResponseBody$ = {}));
function getEnrollmentsForSchoolResponseBodyToJSON(getEnrollmentsForSchoolResponseBody) {
    return JSON.stringify(exports.GetEnrollmentsForSchoolResponseBody$outboundSchema.parse(getEnrollmentsForSchoolResponseBody));
}
function getEnrollmentsForSchoolResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEnrollmentsForSchoolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnrollmentsForSchoolResponseBody' from JSON`);
}
/** @internal */
exports.GetEnrollmentsForSchoolResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetEnrollmentsForSchoolResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetEnrollmentsForSchoolResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetEnrollmentsForSchoolResponseBody$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 GetEnrollmentsForSchoolResponse$;
(function (GetEnrollmentsForSchoolResponse$) {
    /** @deprecated use `GetEnrollmentsForSchoolResponse$inboundSchema` instead. */
    GetEnrollmentsForSchoolResponse$.inboundSchema = exports.GetEnrollmentsForSchoolResponse$inboundSchema;
    /** @deprecated use `GetEnrollmentsForSchoolResponse$outboundSchema` instead. */
    GetEnrollmentsForSchoolResponse$.outboundSchema = exports.GetEnrollmentsForSchoolResponse$outboundSchema;
})(GetEnrollmentsForSchoolResponse$ || (exports.GetEnrollmentsForSchoolResponse$ = GetEnrollmentsForSchoolResponse$ = {}));
function getEnrollmentsForSchoolResponseToJSON(getEnrollmentsForSchoolResponse) {
    return JSON.stringify(exports.GetEnrollmentsForSchoolResponse$outboundSchema.parse(getEnrollmentsForSchoolResponse));
}
function getEnrollmentsForSchoolResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEnrollmentsForSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnrollmentsForSchoolResponse' from JSON`);
}
//# sourceMappingURL=getenrollmentsforschool.js.map