"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.GetTermsForSchoolResponse$ = exports.GetTermsForSchoolResponse$outboundSchema = exports.GetTermsForSchoolResponse$inboundSchema = exports.GetTermsForSchoolResponseBody$ = exports.GetTermsForSchoolResponseBody$outboundSchema = exports.GetTermsForSchoolResponseBody$inboundSchema = exports.GetTermsForSchoolRequest$ = exports.GetTermsForSchoolRequest$outboundSchema = exports.GetTermsForSchoolRequest$inboundSchema = exports.GetTermsForSchoolOrderBy$ = exports.GetTermsForSchoolOrderBy$outboundSchema = exports.GetTermsForSchoolOrderBy$inboundSchema = exports.GetTermsForSchoolOrderBy = void 0;
exports.getTermsForSchoolRequestToJSON = getTermsForSchoolRequestToJSON;
exports.getTermsForSchoolRequestFromJSON = getTermsForSchoolRequestFromJSON;
exports.getTermsForSchoolResponseBodyToJSON = getTermsForSchoolResponseBodyToJSON;
exports.getTermsForSchoolResponseBodyFromJSON = getTermsForSchoolResponseBodyFromJSON;
exports.getTermsForSchoolResponseToJSON = getTermsForSchoolResponseToJSON;
exports.getTermsForSchoolResponseFromJSON = getTermsForSchoolResponseFromJSON;
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.GetTermsForSchoolOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetTermsForSchoolOrderBy$inboundSchema = z.nativeEnum(exports.GetTermsForSchoolOrderBy);
/** @internal */
exports.GetTermsForSchoolOrderBy$outboundSchema = exports.GetTermsForSchoolOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetTermsForSchoolOrderBy$;
(function (GetTermsForSchoolOrderBy$) {
    /** @deprecated use `GetTermsForSchoolOrderBy$inboundSchema` instead. */
    GetTermsForSchoolOrderBy$.inboundSchema = exports.GetTermsForSchoolOrderBy$inboundSchema;
    /** @deprecated use `GetTermsForSchoolOrderBy$outboundSchema` instead. */
    GetTermsForSchoolOrderBy$.outboundSchema = exports.GetTermsForSchoolOrderBy$outboundSchema;
})(GetTermsForSchoolOrderBy$ || (exports.GetTermsForSchoolOrderBy$ = GetTermsForSchoolOrderBy$ = {}));
/** @internal */
exports.GetTermsForSchoolRequest$inboundSchema = z.object({
    schoolSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetTermsForSchoolOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetTermsForSchoolRequest$outboundSchema = z.object({
    schoolSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetTermsForSchoolOrderBy$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 GetTermsForSchoolRequest$;
(function (GetTermsForSchoolRequest$) {
    /** @deprecated use `GetTermsForSchoolRequest$inboundSchema` instead. */
    GetTermsForSchoolRequest$.inboundSchema = exports.GetTermsForSchoolRequest$inboundSchema;
    /** @deprecated use `GetTermsForSchoolRequest$outboundSchema` instead. */
    GetTermsForSchoolRequest$.outboundSchema = exports.GetTermsForSchoolRequest$outboundSchema;
})(GetTermsForSchoolRequest$ || (exports.GetTermsForSchoolRequest$ = GetTermsForSchoolRequest$ = {}));
function getTermsForSchoolRequestToJSON(getTermsForSchoolRequest) {
    return JSON.stringify(exports.GetTermsForSchoolRequest$outboundSchema.parse(getTermsForSchoolRequest));
}
function getTermsForSchoolRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetTermsForSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTermsForSchoolRequest' from JSON`);
}
/** @internal */
exports.GetTermsForSchoolResponseBody$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.GetTermsForSchoolResponseBody$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 GetTermsForSchoolResponseBody$;
(function (GetTermsForSchoolResponseBody$) {
    /** @deprecated use `GetTermsForSchoolResponseBody$inboundSchema` instead. */
    GetTermsForSchoolResponseBody$.inboundSchema = exports.GetTermsForSchoolResponseBody$inboundSchema;
    /** @deprecated use `GetTermsForSchoolResponseBody$outboundSchema` instead. */
    GetTermsForSchoolResponseBody$.outboundSchema = exports.GetTermsForSchoolResponseBody$outboundSchema;
})(GetTermsForSchoolResponseBody$ || (exports.GetTermsForSchoolResponseBody$ = GetTermsForSchoolResponseBody$ = {}));
function getTermsForSchoolResponseBodyToJSON(getTermsForSchoolResponseBody) {
    return JSON.stringify(exports.GetTermsForSchoolResponseBody$outboundSchema.parse(getTermsForSchoolResponseBody));
}
function getTermsForSchoolResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetTermsForSchoolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTermsForSchoolResponseBody' from JSON`);
}
/** @internal */
exports.GetTermsForSchoolResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetTermsForSchoolResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetTermsForSchoolResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetTermsForSchoolResponseBody$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 GetTermsForSchoolResponse$;
(function (GetTermsForSchoolResponse$) {
    /** @deprecated use `GetTermsForSchoolResponse$inboundSchema` instead. */
    GetTermsForSchoolResponse$.inboundSchema = exports.GetTermsForSchoolResponse$inboundSchema;
    /** @deprecated use `GetTermsForSchoolResponse$outboundSchema` instead. */
    GetTermsForSchoolResponse$.outboundSchema = exports.GetTermsForSchoolResponse$outboundSchema;
})(GetTermsForSchoolResponse$ || (exports.GetTermsForSchoolResponse$ = GetTermsForSchoolResponse$ = {}));
function getTermsForSchoolResponseToJSON(getTermsForSchoolResponse) {
    return JSON.stringify(exports.GetTermsForSchoolResponse$outboundSchema.parse(getTermsForSchoolResponse));
}
function getTermsForSchoolResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetTermsForSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTermsForSchoolResponse' from JSON`);
}
//# sourceMappingURL=gettermsforschool.js.map