"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.GetAllAcademicSessionsResponse$ = exports.GetAllAcademicSessionsResponse$outboundSchema = exports.GetAllAcademicSessionsResponse$inboundSchema = exports.GetAllAcademicSessionsResponseBody$ = exports.GetAllAcademicSessionsResponseBody$outboundSchema = exports.GetAllAcademicSessionsResponseBody$inboundSchema = exports.GetAllAcademicSessionsRequest$ = exports.GetAllAcademicSessionsRequest$outboundSchema = exports.GetAllAcademicSessionsRequest$inboundSchema = exports.GetAllAcademicSessionsOrderBy$ = exports.GetAllAcademicSessionsOrderBy$outboundSchema = exports.GetAllAcademicSessionsOrderBy$inboundSchema = exports.GetAllAcademicSessionsOrderBy = void 0;
exports.getAllAcademicSessionsRequestToJSON = getAllAcademicSessionsRequestToJSON;
exports.getAllAcademicSessionsRequestFromJSON = getAllAcademicSessionsRequestFromJSON;
exports.getAllAcademicSessionsResponseBodyToJSON = getAllAcademicSessionsResponseBodyToJSON;
exports.getAllAcademicSessionsResponseBodyFromJSON = getAllAcademicSessionsResponseBodyFromJSON;
exports.getAllAcademicSessionsResponseToJSON = getAllAcademicSessionsResponseToJSON;
exports.getAllAcademicSessionsResponseFromJSON = getAllAcademicSessionsResponseFromJSON;
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.GetAllAcademicSessionsOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetAllAcademicSessionsOrderBy$inboundSchema = z.nativeEnum(exports.GetAllAcademicSessionsOrderBy);
/** @internal */
exports.GetAllAcademicSessionsOrderBy$outboundSchema = exports.GetAllAcademicSessionsOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllAcademicSessionsOrderBy$;
(function (GetAllAcademicSessionsOrderBy$) {
    /** @deprecated use `GetAllAcademicSessionsOrderBy$inboundSchema` instead. */
    GetAllAcademicSessionsOrderBy$.inboundSchema = exports.GetAllAcademicSessionsOrderBy$inboundSchema;
    /** @deprecated use `GetAllAcademicSessionsOrderBy$outboundSchema` instead. */
    GetAllAcademicSessionsOrderBy$.outboundSchema = exports.GetAllAcademicSessionsOrderBy$outboundSchema;
})(GetAllAcademicSessionsOrderBy$ || (exports.GetAllAcademicSessionsOrderBy$ = GetAllAcademicSessionsOrderBy$ = {}));
/** @internal */
exports.GetAllAcademicSessionsRequest$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.GetAllAcademicSessionsOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetAllAcademicSessionsRequest$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.GetAllAcademicSessionsOrderBy$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 GetAllAcademicSessionsRequest$;
(function (GetAllAcademicSessionsRequest$) {
    /** @deprecated use `GetAllAcademicSessionsRequest$inboundSchema` instead. */
    GetAllAcademicSessionsRequest$.inboundSchema = exports.GetAllAcademicSessionsRequest$inboundSchema;
    /** @deprecated use `GetAllAcademicSessionsRequest$outboundSchema` instead. */
    GetAllAcademicSessionsRequest$.outboundSchema = exports.GetAllAcademicSessionsRequest$outboundSchema;
})(GetAllAcademicSessionsRequest$ || (exports.GetAllAcademicSessionsRequest$ = GetAllAcademicSessionsRequest$ = {}));
function getAllAcademicSessionsRequestToJSON(getAllAcademicSessionsRequest) {
    return JSON.stringify(exports.GetAllAcademicSessionsRequest$outboundSchema.parse(getAllAcademicSessionsRequest));
}
function getAllAcademicSessionsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllAcademicSessionsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllAcademicSessionsRequest' from JSON`);
}
/** @internal */
exports.GetAllAcademicSessionsResponseBody$inboundSchema = z.object({
    academicSessions: z.array(components.AcademicSession$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetAllAcademicSessionsResponseBody$outboundSchema = z.object({
    academicSessions: z.array(components.AcademicSession$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 GetAllAcademicSessionsResponseBody$;
(function (GetAllAcademicSessionsResponseBody$) {
    /** @deprecated use `GetAllAcademicSessionsResponseBody$inboundSchema` instead. */
    GetAllAcademicSessionsResponseBody$.inboundSchema = exports.GetAllAcademicSessionsResponseBody$inboundSchema;
    /** @deprecated use `GetAllAcademicSessionsResponseBody$outboundSchema` instead. */
    GetAllAcademicSessionsResponseBody$.outboundSchema = exports.GetAllAcademicSessionsResponseBody$outboundSchema;
})(GetAllAcademicSessionsResponseBody$ || (exports.GetAllAcademicSessionsResponseBody$ = GetAllAcademicSessionsResponseBody$ = {}));
function getAllAcademicSessionsResponseBodyToJSON(getAllAcademicSessionsResponseBody) {
    return JSON.stringify(exports.GetAllAcademicSessionsResponseBody$outboundSchema.parse(getAllAcademicSessionsResponseBody));
}
function getAllAcademicSessionsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllAcademicSessionsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllAcademicSessionsResponseBody' from JSON`);
}
/** @internal */
exports.GetAllAcademicSessionsResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetAllAcademicSessionsResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetAllAcademicSessionsResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetAllAcademicSessionsResponseBody$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 GetAllAcademicSessionsResponse$;
(function (GetAllAcademicSessionsResponse$) {
    /** @deprecated use `GetAllAcademicSessionsResponse$inboundSchema` instead. */
    GetAllAcademicSessionsResponse$.inboundSchema = exports.GetAllAcademicSessionsResponse$inboundSchema;
    /** @deprecated use `GetAllAcademicSessionsResponse$outboundSchema` instead. */
    GetAllAcademicSessionsResponse$.outboundSchema = exports.GetAllAcademicSessionsResponse$outboundSchema;
})(GetAllAcademicSessionsResponse$ || (exports.GetAllAcademicSessionsResponse$ = GetAllAcademicSessionsResponse$ = {}));
function getAllAcademicSessionsResponseToJSON(getAllAcademicSessionsResponse) {
    return JSON.stringify(exports.GetAllAcademicSessionsResponse$outboundSchema.parse(getAllAcademicSessionsResponse));
}
function getAllAcademicSessionsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllAcademicSessionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllAcademicSessionsResponse' from JSON`);
}
//# sourceMappingURL=getallacademicsessions.js.map