"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.GetClassesForStudentResponse$ = exports.GetClassesForStudentResponse$outboundSchema = exports.GetClassesForStudentResponse$inboundSchema = exports.GetClassesForStudentResponseBody$ = exports.GetClassesForStudentResponseBody$outboundSchema = exports.GetClassesForStudentResponseBody$inboundSchema = exports.GetClassesForStudentRequest$ = exports.GetClassesForStudentRequest$outboundSchema = exports.GetClassesForStudentRequest$inboundSchema = exports.GetClassesForStudentOrderBy$ = exports.GetClassesForStudentOrderBy$outboundSchema = exports.GetClassesForStudentOrderBy$inboundSchema = exports.GetClassesForStudentOrderBy = void 0;
exports.getClassesForStudentRequestToJSON = getClassesForStudentRequestToJSON;
exports.getClassesForStudentRequestFromJSON = getClassesForStudentRequestFromJSON;
exports.getClassesForStudentResponseBodyToJSON = getClassesForStudentResponseBodyToJSON;
exports.getClassesForStudentResponseBodyFromJSON = getClassesForStudentResponseBodyFromJSON;
exports.getClassesForStudentResponseToJSON = getClassesForStudentResponseToJSON;
exports.getClassesForStudentResponseFromJSON = getClassesForStudentResponseFromJSON;
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.GetClassesForStudentOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetClassesForStudentOrderBy$inboundSchema = z.nativeEnum(exports.GetClassesForStudentOrderBy);
/** @internal */
exports.GetClassesForStudentOrderBy$outboundSchema = exports.GetClassesForStudentOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetClassesForStudentOrderBy$;
(function (GetClassesForStudentOrderBy$) {
    /** @deprecated use `GetClassesForStudentOrderBy$inboundSchema` instead. */
    GetClassesForStudentOrderBy$.inboundSchema = exports.GetClassesForStudentOrderBy$inboundSchema;
    /** @deprecated use `GetClassesForStudentOrderBy$outboundSchema` instead. */
    GetClassesForStudentOrderBy$.outboundSchema = exports.GetClassesForStudentOrderBy$outboundSchema;
})(GetClassesForStudentOrderBy$ || (exports.GetClassesForStudentOrderBy$ = GetClassesForStudentOrderBy$ = {}));
/** @internal */
exports.GetClassesForStudentRequest$inboundSchema = z.object({
    studentSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetClassesForStudentOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetClassesForStudentRequest$outboundSchema = z.object({
    studentSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetClassesForStudentOrderBy$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 GetClassesForStudentRequest$;
(function (GetClassesForStudentRequest$) {
    /** @deprecated use `GetClassesForStudentRequest$inboundSchema` instead. */
    GetClassesForStudentRequest$.inboundSchema = exports.GetClassesForStudentRequest$inboundSchema;
    /** @deprecated use `GetClassesForStudentRequest$outboundSchema` instead. */
    GetClassesForStudentRequest$.outboundSchema = exports.GetClassesForStudentRequest$outboundSchema;
})(GetClassesForStudentRequest$ || (exports.GetClassesForStudentRequest$ = GetClassesForStudentRequest$ = {}));
function getClassesForStudentRequestToJSON(getClassesForStudentRequest) {
    return JSON.stringify(exports.GetClassesForStudentRequest$outboundSchema.parse(getClassesForStudentRequest));
}
function getClassesForStudentRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetClassesForStudentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForStudentRequest' from JSON`);
}
/** @internal */
exports.GetClassesForStudentResponseBody$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 */
exports.GetClassesForStudentResponseBody$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.
 */
var GetClassesForStudentResponseBody$;
(function (GetClassesForStudentResponseBody$) {
    /** @deprecated use `GetClassesForStudentResponseBody$inboundSchema` instead. */
    GetClassesForStudentResponseBody$.inboundSchema = exports.GetClassesForStudentResponseBody$inboundSchema;
    /** @deprecated use `GetClassesForStudentResponseBody$outboundSchema` instead. */
    GetClassesForStudentResponseBody$.outboundSchema = exports.GetClassesForStudentResponseBody$outboundSchema;
})(GetClassesForStudentResponseBody$ || (exports.GetClassesForStudentResponseBody$ = GetClassesForStudentResponseBody$ = {}));
function getClassesForStudentResponseBodyToJSON(getClassesForStudentResponseBody) {
    return JSON.stringify(exports.GetClassesForStudentResponseBody$outboundSchema.parse(getClassesForStudentResponseBody));
}
function getClassesForStudentResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetClassesForStudentResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForStudentResponseBody' from JSON`);
}
/** @internal */
exports.GetClassesForStudentResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetClassesForStudentResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetClassesForStudentResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetClassesForStudentResponseBody$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 GetClassesForStudentResponse$;
(function (GetClassesForStudentResponse$) {
    /** @deprecated use `GetClassesForStudentResponse$inboundSchema` instead. */
    GetClassesForStudentResponse$.inboundSchema = exports.GetClassesForStudentResponse$inboundSchema;
    /** @deprecated use `GetClassesForStudentResponse$outboundSchema` instead. */
    GetClassesForStudentResponse$.outboundSchema = exports.GetClassesForStudentResponse$outboundSchema;
})(GetClassesForStudentResponse$ || (exports.GetClassesForStudentResponse$ = GetClassesForStudentResponse$ = {}));
function getClassesForStudentResponseToJSON(getClassesForStudentResponse) {
    return JSON.stringify(exports.GetClassesForStudentResponse$outboundSchema.parse(getClassesForStudentResponse));
}
function getClassesForStudentResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetClassesForStudentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForStudentResponse' from JSON`);
}
//# sourceMappingURL=getclassesforstudent.js.map