/*
 * 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 GetGradingPeriodRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
export const GetGradingPeriodRequest$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 GetGradingPeriodRequest$;
(function (GetGradingPeriodRequest$) {
    /** @deprecated use `GetGradingPeriodRequest$inboundSchema` instead. */
    GetGradingPeriodRequest$.inboundSchema = GetGradingPeriodRequest$inboundSchema;
    /** @deprecated use `GetGradingPeriodRequest$outboundSchema` instead. */
    GetGradingPeriodRequest$.outboundSchema = GetGradingPeriodRequest$outboundSchema;
})(GetGradingPeriodRequest$ || (GetGradingPeriodRequest$ = {}));
export function getGradingPeriodRequestToJSON(getGradingPeriodRequest) {
    return JSON.stringify(GetGradingPeriodRequest$outboundSchema.parse(getGradingPeriodRequest));
}
export function getGradingPeriodRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetGradingPeriodRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetGradingPeriodRequest' from JSON`);
}
/** @internal */
export const GetGradingPeriodResponse$inboundSchema = z.object({
    gradingPeriod: components.AcademicSession$inboundSchema,
});
/** @internal */
export const GetGradingPeriodResponse$outboundSchema = z.object({
    gradingPeriod: 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 GetGradingPeriodResponse$;
(function (GetGradingPeriodResponse$) {
    /** @deprecated use `GetGradingPeriodResponse$inboundSchema` instead. */
    GetGradingPeriodResponse$.inboundSchema = GetGradingPeriodResponse$inboundSchema;
    /** @deprecated use `GetGradingPeriodResponse$outboundSchema` instead. */
    GetGradingPeriodResponse$.outboundSchema = GetGradingPeriodResponse$outboundSchema;
})(GetGradingPeriodResponse$ || (GetGradingPeriodResponse$ = {}));
export function getGradingPeriodResponseToJSON(getGradingPeriodResponse) {
    return JSON.stringify(GetGradingPeriodResponse$outboundSchema.parse(getGradingPeriodResponse));
}
export function getGradingPeriodResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetGradingPeriodResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetGradingPeriodResponse' from JSON`);
}
//# sourceMappingURL=getgradingperiod.js.map