"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.GetResultsForStudentForClassResponse$ = exports.GetResultsForStudentForClassResponse$outboundSchema = exports.GetResultsForStudentForClassResponse$inboundSchema = exports.GetResultsForStudentForClassResponseBody$ = exports.GetResultsForStudentForClassResponseBody$outboundSchema = exports.GetResultsForStudentForClassResponseBody$inboundSchema = exports.GetResultsForStudentForClassRequest$ = exports.GetResultsForStudentForClassRequest$outboundSchema = exports.GetResultsForStudentForClassRequest$inboundSchema = exports.GetResultsForStudentForClassOrderBy$ = exports.GetResultsForStudentForClassOrderBy$outboundSchema = exports.GetResultsForStudentForClassOrderBy$inboundSchema = exports.GetResultsForStudentForClassOrderBy = void 0;
exports.getResultsForStudentForClassRequestToJSON = getResultsForStudentForClassRequestToJSON;
exports.getResultsForStudentForClassRequestFromJSON = getResultsForStudentForClassRequestFromJSON;
exports.getResultsForStudentForClassResponseBodyToJSON = getResultsForStudentForClassResponseBodyToJSON;
exports.getResultsForStudentForClassResponseBodyFromJSON = getResultsForStudentForClassResponseBodyFromJSON;
exports.getResultsForStudentForClassResponseToJSON = getResultsForStudentForClassResponseToJSON;
exports.getResultsForStudentForClassResponseFromJSON = getResultsForStudentForClassResponseFromJSON;
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.GetResultsForStudentForClassOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetResultsForStudentForClassOrderBy$inboundSchema = z.nativeEnum(exports.GetResultsForStudentForClassOrderBy);
/** @internal */
exports.GetResultsForStudentForClassOrderBy$outboundSchema = exports.GetResultsForStudentForClassOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetResultsForStudentForClassOrderBy$;
(function (GetResultsForStudentForClassOrderBy$) {
    /** @deprecated use `GetResultsForStudentForClassOrderBy$inboundSchema` instead. */
    GetResultsForStudentForClassOrderBy$.inboundSchema = exports.GetResultsForStudentForClassOrderBy$inboundSchema;
    /** @deprecated use `GetResultsForStudentForClassOrderBy$outboundSchema` instead. */
    GetResultsForStudentForClassOrderBy$.outboundSchema = exports.GetResultsForStudentForClassOrderBy$outboundSchema;
})(GetResultsForStudentForClassOrderBy$ || (exports.GetResultsForStudentForClassOrderBy$ = GetResultsForStudentForClassOrderBy$ = {}));
/** @internal */
exports.GetResultsForStudentForClassRequest$inboundSchema = z.object({
    classSourcedId: z.string(),
    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.GetResultsForStudentForClassOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetResultsForStudentForClassRequest$outboundSchema = z.object({
    classSourcedId: z.string(),
    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.GetResultsForStudentForClassOrderBy$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 GetResultsForStudentForClassRequest$;
(function (GetResultsForStudentForClassRequest$) {
    /** @deprecated use `GetResultsForStudentForClassRequest$inboundSchema` instead. */
    GetResultsForStudentForClassRequest$.inboundSchema = exports.GetResultsForStudentForClassRequest$inboundSchema;
    /** @deprecated use `GetResultsForStudentForClassRequest$outboundSchema` instead. */
    GetResultsForStudentForClassRequest$.outboundSchema = exports.GetResultsForStudentForClassRequest$outboundSchema;
})(GetResultsForStudentForClassRequest$ || (exports.GetResultsForStudentForClassRequest$ = GetResultsForStudentForClassRequest$ = {}));
function getResultsForStudentForClassRequestToJSON(getResultsForStudentForClassRequest) {
    return JSON.stringify(exports.GetResultsForStudentForClassRequest$outboundSchema.parse(getResultsForStudentForClassRequest));
}
function getResultsForStudentForClassRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetResultsForStudentForClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultsForStudentForClassRequest' from JSON`);
}
/** @internal */
exports.GetResultsForStudentForClassResponseBody$inboundSchema = z.object({
    results: z.array(components.Result$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetResultsForStudentForClassResponseBody$outboundSchema = z.object({
    results: z.array(components.Result$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 GetResultsForStudentForClassResponseBody$;
(function (GetResultsForStudentForClassResponseBody$) {
    /** @deprecated use `GetResultsForStudentForClassResponseBody$inboundSchema` instead. */
    GetResultsForStudentForClassResponseBody$.inboundSchema = exports.GetResultsForStudentForClassResponseBody$inboundSchema;
    /** @deprecated use `GetResultsForStudentForClassResponseBody$outboundSchema` instead. */
    GetResultsForStudentForClassResponseBody$.outboundSchema = exports.GetResultsForStudentForClassResponseBody$outboundSchema;
})(GetResultsForStudentForClassResponseBody$ || (exports.GetResultsForStudentForClassResponseBody$ = GetResultsForStudentForClassResponseBody$ = {}));
function getResultsForStudentForClassResponseBodyToJSON(getResultsForStudentForClassResponseBody) {
    return JSON.stringify(exports.GetResultsForStudentForClassResponseBody$outboundSchema.parse(getResultsForStudentForClassResponseBody));
}
function getResultsForStudentForClassResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetResultsForStudentForClassResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultsForStudentForClassResponseBody' from JSON`);
}
/** @internal */
exports.GetResultsForStudentForClassResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetResultsForStudentForClassResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetResultsForStudentForClassResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetResultsForStudentForClassResponseBody$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 GetResultsForStudentForClassResponse$;
(function (GetResultsForStudentForClassResponse$) {
    /** @deprecated use `GetResultsForStudentForClassResponse$inboundSchema` instead. */
    GetResultsForStudentForClassResponse$.inboundSchema = exports.GetResultsForStudentForClassResponse$inboundSchema;
    /** @deprecated use `GetResultsForStudentForClassResponse$outboundSchema` instead. */
    GetResultsForStudentForClassResponse$.outboundSchema = exports.GetResultsForStudentForClassResponse$outboundSchema;
})(GetResultsForStudentForClassResponse$ || (exports.GetResultsForStudentForClassResponse$ = GetResultsForStudentForClassResponse$ = {}));
function getResultsForStudentForClassResponseToJSON(getResultsForStudentForClassResponse) {
    return JSON.stringify(exports.GetResultsForStudentForClassResponse$outboundSchema.parse(getResultsForStudentForClassResponse));
}
function getResultsForStudentForClassResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetResultsForStudentForClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultsForStudentForClassResponse' from JSON`);
}
//# sourceMappingURL=getresultsforstudentforclass.js.map