"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.GetAllTermsResponse$ = exports.GetAllTermsResponse$outboundSchema = exports.GetAllTermsResponse$inboundSchema = exports.GetAllTermsResponseBody$ = exports.GetAllTermsResponseBody$outboundSchema = exports.GetAllTermsResponseBody$inboundSchema = exports.GetAllTermsRequest$ = exports.GetAllTermsRequest$outboundSchema = exports.GetAllTermsRequest$inboundSchema = exports.GetAllTermsOrderBy$ = exports.GetAllTermsOrderBy$outboundSchema = exports.GetAllTermsOrderBy$inboundSchema = exports.GetAllTermsOrderBy = void 0;
exports.getAllTermsRequestToJSON = getAllTermsRequestToJSON;
exports.getAllTermsRequestFromJSON = getAllTermsRequestFromJSON;
exports.getAllTermsResponseBodyToJSON = getAllTermsResponseBodyToJSON;
exports.getAllTermsResponseBodyFromJSON = getAllTermsResponseBodyFromJSON;
exports.getAllTermsResponseToJSON = getAllTermsResponseToJSON;
exports.getAllTermsResponseFromJSON = getAllTermsResponseFromJSON;
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.GetAllTermsOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetAllTermsOrderBy$inboundSchema = z.nativeEnum(exports.GetAllTermsOrderBy);
/** @internal */
exports.GetAllTermsOrderBy$outboundSchema = exports.GetAllTermsOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllTermsOrderBy$;
(function (GetAllTermsOrderBy$) {
    /** @deprecated use `GetAllTermsOrderBy$inboundSchema` instead. */
    GetAllTermsOrderBy$.inboundSchema = exports.GetAllTermsOrderBy$inboundSchema;
    /** @deprecated use `GetAllTermsOrderBy$outboundSchema` instead. */
    GetAllTermsOrderBy$.outboundSchema = exports.GetAllTermsOrderBy$outboundSchema;
})(GetAllTermsOrderBy$ || (exports.GetAllTermsOrderBy$ = GetAllTermsOrderBy$ = {}));
/** @internal */
exports.GetAllTermsRequest$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.GetAllTermsOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetAllTermsRequest$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.GetAllTermsOrderBy$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 GetAllTermsRequest$;
(function (GetAllTermsRequest$) {
    /** @deprecated use `GetAllTermsRequest$inboundSchema` instead. */
    GetAllTermsRequest$.inboundSchema = exports.GetAllTermsRequest$inboundSchema;
    /** @deprecated use `GetAllTermsRequest$outboundSchema` instead. */
    GetAllTermsRequest$.outboundSchema = exports.GetAllTermsRequest$outboundSchema;
})(GetAllTermsRequest$ || (exports.GetAllTermsRequest$ = GetAllTermsRequest$ = {}));
function getAllTermsRequestToJSON(getAllTermsRequest) {
    return JSON.stringify(exports.GetAllTermsRequest$outboundSchema.parse(getAllTermsRequest));
}
function getAllTermsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllTermsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTermsRequest' from JSON`);
}
/** @internal */
exports.GetAllTermsResponseBody$inboundSchema = z.object({
    terms: z.array(components.AcademicSession$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetAllTermsResponseBody$outboundSchema = z.object({
    terms: 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 GetAllTermsResponseBody$;
(function (GetAllTermsResponseBody$) {
    /** @deprecated use `GetAllTermsResponseBody$inboundSchema` instead. */
    GetAllTermsResponseBody$.inboundSchema = exports.GetAllTermsResponseBody$inboundSchema;
    /** @deprecated use `GetAllTermsResponseBody$outboundSchema` instead. */
    GetAllTermsResponseBody$.outboundSchema = exports.GetAllTermsResponseBody$outboundSchema;
})(GetAllTermsResponseBody$ || (exports.GetAllTermsResponseBody$ = GetAllTermsResponseBody$ = {}));
function getAllTermsResponseBodyToJSON(getAllTermsResponseBody) {
    return JSON.stringify(exports.GetAllTermsResponseBody$outboundSchema.parse(getAllTermsResponseBody));
}
function getAllTermsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllTermsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTermsResponseBody' from JSON`);
}
/** @internal */
exports.GetAllTermsResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetAllTermsResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetAllTermsResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetAllTermsResponseBody$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 GetAllTermsResponse$;
(function (GetAllTermsResponse$) {
    /** @deprecated use `GetAllTermsResponse$inboundSchema` instead. */
    GetAllTermsResponse$.inboundSchema = exports.GetAllTermsResponse$inboundSchema;
    /** @deprecated use `GetAllTermsResponse$outboundSchema` instead. */
    GetAllTermsResponse$.outboundSchema = exports.GetAllTermsResponse$outboundSchema;
})(GetAllTermsResponse$ || (exports.GetAllTermsResponse$ = GetAllTermsResponse$ = {}));
function getAllTermsResponseToJSON(getAllTermsResponse) {
    return JSON.stringify(exports.GetAllTermsResponse$outboundSchema.parse(getAllTermsResponse));
}
function getAllTermsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllTermsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTermsResponse' from JSON`);
}
//# sourceMappingURL=getallterms.js.map