"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.GetEnrollmentsForClassInSchoolResponse$ = exports.GetEnrollmentsForClassInSchoolResponse$outboundSchema = exports.GetEnrollmentsForClassInSchoolResponse$inboundSchema = exports.GetEnrollmentsForClassInSchoolResponseBody$ = exports.GetEnrollmentsForClassInSchoolResponseBody$outboundSchema = exports.GetEnrollmentsForClassInSchoolResponseBody$inboundSchema = exports.GetEnrollmentsForClassInSchoolRequest$ = exports.GetEnrollmentsForClassInSchoolRequest$outboundSchema = exports.GetEnrollmentsForClassInSchoolRequest$inboundSchema = exports.GetEnrollmentsForClassInSchoolOrderBy$ = exports.GetEnrollmentsForClassInSchoolOrderBy$outboundSchema = exports.GetEnrollmentsForClassInSchoolOrderBy$inboundSchema = exports.GetEnrollmentsForClassInSchoolOrderBy = void 0;
exports.getEnrollmentsForClassInSchoolRequestToJSON = getEnrollmentsForClassInSchoolRequestToJSON;
exports.getEnrollmentsForClassInSchoolRequestFromJSON = getEnrollmentsForClassInSchoolRequestFromJSON;
exports.getEnrollmentsForClassInSchoolResponseBodyToJSON = getEnrollmentsForClassInSchoolResponseBodyToJSON;
exports.getEnrollmentsForClassInSchoolResponseBodyFromJSON = getEnrollmentsForClassInSchoolResponseBodyFromJSON;
exports.getEnrollmentsForClassInSchoolResponseToJSON = getEnrollmentsForClassInSchoolResponseToJSON;
exports.getEnrollmentsForClassInSchoolResponseFromJSON = getEnrollmentsForClassInSchoolResponseFromJSON;
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.GetEnrollmentsForClassInSchoolOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetEnrollmentsForClassInSchoolOrderBy$inboundSchema = z.nativeEnum(exports.GetEnrollmentsForClassInSchoolOrderBy);
/** @internal */
exports.GetEnrollmentsForClassInSchoolOrderBy$outboundSchema = exports.GetEnrollmentsForClassInSchoolOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetEnrollmentsForClassInSchoolOrderBy$;
(function (GetEnrollmentsForClassInSchoolOrderBy$) {
    /** @deprecated use `GetEnrollmentsForClassInSchoolOrderBy$inboundSchema` instead. */
    GetEnrollmentsForClassInSchoolOrderBy$.inboundSchema = exports.GetEnrollmentsForClassInSchoolOrderBy$inboundSchema;
    /** @deprecated use `GetEnrollmentsForClassInSchoolOrderBy$outboundSchema` instead. */
    GetEnrollmentsForClassInSchoolOrderBy$.outboundSchema = exports.GetEnrollmentsForClassInSchoolOrderBy$outboundSchema;
})(GetEnrollmentsForClassInSchoolOrderBy$ || (exports.GetEnrollmentsForClassInSchoolOrderBy$ = GetEnrollmentsForClassInSchoolOrderBy$ = {}));
/** @internal */
exports.GetEnrollmentsForClassInSchoolRequest$inboundSchema = z.object({
    schoolSourcedId: z.string(),
    classSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetEnrollmentsForClassInSchoolOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetEnrollmentsForClassInSchoolRequest$outboundSchema = z.object({
    schoolSourcedId: z.string(),
    classSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetEnrollmentsForClassInSchoolOrderBy$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 GetEnrollmentsForClassInSchoolRequest$;
(function (GetEnrollmentsForClassInSchoolRequest$) {
    /** @deprecated use `GetEnrollmentsForClassInSchoolRequest$inboundSchema` instead. */
    GetEnrollmentsForClassInSchoolRequest$.inboundSchema = exports.GetEnrollmentsForClassInSchoolRequest$inboundSchema;
    /** @deprecated use `GetEnrollmentsForClassInSchoolRequest$outboundSchema` instead. */
    GetEnrollmentsForClassInSchoolRequest$.outboundSchema = exports.GetEnrollmentsForClassInSchoolRequest$outboundSchema;
})(GetEnrollmentsForClassInSchoolRequest$ || (exports.GetEnrollmentsForClassInSchoolRequest$ = GetEnrollmentsForClassInSchoolRequest$ = {}));
function getEnrollmentsForClassInSchoolRequestToJSON(getEnrollmentsForClassInSchoolRequest) {
    return JSON.stringify(exports.GetEnrollmentsForClassInSchoolRequest$outboundSchema.parse(getEnrollmentsForClassInSchoolRequest));
}
function getEnrollmentsForClassInSchoolRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEnrollmentsForClassInSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnrollmentsForClassInSchoolRequest' from JSON`);
}
/** @internal */
exports.GetEnrollmentsForClassInSchoolResponseBody$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.GetEnrollmentsForClassInSchoolResponseBody$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 GetEnrollmentsForClassInSchoolResponseBody$;
(function (GetEnrollmentsForClassInSchoolResponseBody$) {
    /** @deprecated use `GetEnrollmentsForClassInSchoolResponseBody$inboundSchema` instead. */
    GetEnrollmentsForClassInSchoolResponseBody$.inboundSchema = exports.GetEnrollmentsForClassInSchoolResponseBody$inboundSchema;
    /** @deprecated use `GetEnrollmentsForClassInSchoolResponseBody$outboundSchema` instead. */
    GetEnrollmentsForClassInSchoolResponseBody$.outboundSchema = exports.GetEnrollmentsForClassInSchoolResponseBody$outboundSchema;
})(GetEnrollmentsForClassInSchoolResponseBody$ || (exports.GetEnrollmentsForClassInSchoolResponseBody$ = GetEnrollmentsForClassInSchoolResponseBody$ = {}));
function getEnrollmentsForClassInSchoolResponseBodyToJSON(getEnrollmentsForClassInSchoolResponseBody) {
    return JSON.stringify(exports.GetEnrollmentsForClassInSchoolResponseBody$outboundSchema.parse(getEnrollmentsForClassInSchoolResponseBody));
}
function getEnrollmentsForClassInSchoolResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEnrollmentsForClassInSchoolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnrollmentsForClassInSchoolResponseBody' from JSON`);
}
/** @internal */
exports.GetEnrollmentsForClassInSchoolResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetEnrollmentsForClassInSchoolResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetEnrollmentsForClassInSchoolResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetEnrollmentsForClassInSchoolResponseBody$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 GetEnrollmentsForClassInSchoolResponse$;
(function (GetEnrollmentsForClassInSchoolResponse$) {
    /** @deprecated use `GetEnrollmentsForClassInSchoolResponse$inboundSchema` instead. */
    GetEnrollmentsForClassInSchoolResponse$.inboundSchema = exports.GetEnrollmentsForClassInSchoolResponse$inboundSchema;
    /** @deprecated use `GetEnrollmentsForClassInSchoolResponse$outboundSchema` instead. */
    GetEnrollmentsForClassInSchoolResponse$.outboundSchema = exports.GetEnrollmentsForClassInSchoolResponse$outboundSchema;
})(GetEnrollmentsForClassInSchoolResponse$ || (exports.GetEnrollmentsForClassInSchoolResponse$ = GetEnrollmentsForClassInSchoolResponse$ = {}));
function getEnrollmentsForClassInSchoolResponseToJSON(getEnrollmentsForClassInSchoolResponse) {
    return JSON.stringify(exports.GetEnrollmentsForClassInSchoolResponse$outboundSchema.parse(getEnrollmentsForClassInSchoolResponse));
}
function getEnrollmentsForClassInSchoolResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEnrollmentsForClassInSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnrollmentsForClassInSchoolResponse' from JSON`);
}
//# sourceMappingURL=getenrollmentsforclassinschool.js.map