/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/**
 * The order to sort the response by
 */
export const GetClassesForCourseOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetClassesForCourseOrderBy$inboundSchema = z.nativeEnum(GetClassesForCourseOrderBy);
/** @internal */
export const GetClassesForCourseOrderBy$outboundSchema = GetClassesForCourseOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetClassesForCourseOrderBy$;
(function (GetClassesForCourseOrderBy$) {
    /** @deprecated use `GetClassesForCourseOrderBy$inboundSchema` instead. */
    GetClassesForCourseOrderBy$.inboundSchema = GetClassesForCourseOrderBy$inboundSchema;
    /** @deprecated use `GetClassesForCourseOrderBy$outboundSchema` instead. */
    GetClassesForCourseOrderBy$.outboundSchema = GetClassesForCourseOrderBy$outboundSchema;
})(GetClassesForCourseOrderBy$ || (GetClassesForCourseOrderBy$ = {}));
/** @internal */
export const GetClassesForCourseRequest$inboundSchema = z.object({
    courseSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetClassesForCourseOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetClassesForCourseRequest$outboundSchema = z.object({
    courseSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetClassesForCourseOrderBy$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.
 */
export var GetClassesForCourseRequest$;
(function (GetClassesForCourseRequest$) {
    /** @deprecated use `GetClassesForCourseRequest$inboundSchema` instead. */
    GetClassesForCourseRequest$.inboundSchema = GetClassesForCourseRequest$inboundSchema;
    /** @deprecated use `GetClassesForCourseRequest$outboundSchema` instead. */
    GetClassesForCourseRequest$.outboundSchema = GetClassesForCourseRequest$outboundSchema;
})(GetClassesForCourseRequest$ || (GetClassesForCourseRequest$ = {}));
export function getClassesForCourseRequestToJSON(getClassesForCourseRequest) {
    return JSON.stringify(GetClassesForCourseRequest$outboundSchema.parse(getClassesForCourseRequest));
}
export function getClassesForCourseRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForCourseRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForCourseRequest' from JSON`);
}
/** @internal */
export const GetClassesForCourseResponseBody$inboundSchema = z.object({
    classes: z.array(components.Class$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetClassesForCourseResponseBody$outboundSchema = z.object({
    classes: z.array(components.Class$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.
 */
export var GetClassesForCourseResponseBody$;
(function (GetClassesForCourseResponseBody$) {
    /** @deprecated use `GetClassesForCourseResponseBody$inboundSchema` instead. */
    GetClassesForCourseResponseBody$.inboundSchema = GetClassesForCourseResponseBody$inboundSchema;
    /** @deprecated use `GetClassesForCourseResponseBody$outboundSchema` instead. */
    GetClassesForCourseResponseBody$.outboundSchema = GetClassesForCourseResponseBody$outboundSchema;
})(GetClassesForCourseResponseBody$ || (GetClassesForCourseResponseBody$ = {}));
export function getClassesForCourseResponseBodyToJSON(getClassesForCourseResponseBody) {
    return JSON.stringify(GetClassesForCourseResponseBody$outboundSchema.parse(getClassesForCourseResponseBody));
}
export function getClassesForCourseResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForCourseResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForCourseResponseBody' from JSON`);
}
/** @internal */
export const GetClassesForCourseResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetClassesForCourseResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetClassesForCourseResponse$outboundSchema = z.object({
    result: z.lazy(() => GetClassesForCourseResponseBody$outboundSchema),
}).transform((v) => {
    return 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.
 */
export var GetClassesForCourseResponse$;
(function (GetClassesForCourseResponse$) {
    /** @deprecated use `GetClassesForCourseResponse$inboundSchema` instead. */
    GetClassesForCourseResponse$.inboundSchema = GetClassesForCourseResponse$inboundSchema;
    /** @deprecated use `GetClassesForCourseResponse$outboundSchema` instead. */
    GetClassesForCourseResponse$.outboundSchema = GetClassesForCourseResponse$outboundSchema;
})(GetClassesForCourseResponse$ || (GetClassesForCourseResponse$ = {}));
export function getClassesForCourseResponseToJSON(getClassesForCourseResponse) {
    return JSON.stringify(GetClassesForCourseResponse$outboundSchema.parse(getClassesForCourseResponse));
}
export function getClassesForCourseResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForCourseResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForCourseResponse' from JSON`);
}
//# sourceMappingURL=getclassesforcourse.js.map