/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const GetTermRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
export const GetTermRequest$outboundSchema = z.object({
    sourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetTermRequest$;
(function (GetTermRequest$) {
    /** @deprecated use `GetTermRequest$inboundSchema` instead. */
    GetTermRequest$.inboundSchema = GetTermRequest$inboundSchema;
    /** @deprecated use `GetTermRequest$outboundSchema` instead. */
    GetTermRequest$.outboundSchema = GetTermRequest$outboundSchema;
})(GetTermRequest$ || (GetTermRequest$ = {}));
export function getTermRequestToJSON(getTermRequest) {
    return JSON.stringify(GetTermRequest$outboundSchema.parse(getTermRequest));
}
export function getTermRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetTermRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTermRequest' from JSON`);
}
/** @internal */
export const GetTermResponse$inboundSchema = z.object({
    term: components.AcademicSession$inboundSchema,
});
/** @internal */
export const GetTermResponse$outboundSchema = z.object({
    term: components.AcademicSession$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetTermResponse$;
(function (GetTermResponse$) {
    /** @deprecated use `GetTermResponse$inboundSchema` instead. */
    GetTermResponse$.inboundSchema = GetTermResponse$inboundSchema;
    /** @deprecated use `GetTermResponse$outboundSchema` instead. */
    GetTermResponse$.outboundSchema = GetTermResponse$outboundSchema;
})(GetTermResponse$ || (GetTermResponse$ = {}));
export function getTermResponseToJSON(getTermResponse) {
    return JSON.stringify(GetTermResponse$outboundSchema.parse(getTermResponse));
}
export function getTermResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetTermResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTermResponse' from JSON`);
}
//# sourceMappingURL=getterm.js.map