/*
 * 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 GetAllClassesOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetAllClassesOrderBy$inboundSchema = z.nativeEnum(GetAllClassesOrderBy);
/** @internal */
export const GetAllClassesOrderBy$outboundSchema = GetAllClassesOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAllClassesOrderBy$;
(function (GetAllClassesOrderBy$) {
    /** @deprecated use `GetAllClassesOrderBy$inboundSchema` instead. */
    GetAllClassesOrderBy$.inboundSchema = GetAllClassesOrderBy$inboundSchema;
    /** @deprecated use `GetAllClassesOrderBy$outboundSchema` instead. */
    GetAllClassesOrderBy$.outboundSchema = GetAllClassesOrderBy$outboundSchema;
})(GetAllClassesOrderBy$ || (GetAllClassesOrderBy$ = {}));
/** @internal */
export const GetAllClassesRequest$inboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetAllClassesOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetAllClassesRequest$outboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetAllClassesOrderBy$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 GetAllClassesRequest$;
(function (GetAllClassesRequest$) {
    /** @deprecated use `GetAllClassesRequest$inboundSchema` instead. */
    GetAllClassesRequest$.inboundSchema = GetAllClassesRequest$inboundSchema;
    /** @deprecated use `GetAllClassesRequest$outboundSchema` instead. */
    GetAllClassesRequest$.outboundSchema = GetAllClassesRequest$outboundSchema;
})(GetAllClassesRequest$ || (GetAllClassesRequest$ = {}));
export function getAllClassesRequestToJSON(getAllClassesRequest) {
    return JSON.stringify(GetAllClassesRequest$outboundSchema.parse(getAllClassesRequest));
}
export function getAllClassesRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllClassesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllClassesRequest' from JSON`);
}
/** @internal */
export const GetAllClassesResponseBody$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 GetAllClassesResponseBody$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 GetAllClassesResponseBody$;
(function (GetAllClassesResponseBody$) {
    /** @deprecated use `GetAllClassesResponseBody$inboundSchema` instead. */
    GetAllClassesResponseBody$.inboundSchema = GetAllClassesResponseBody$inboundSchema;
    /** @deprecated use `GetAllClassesResponseBody$outboundSchema` instead. */
    GetAllClassesResponseBody$.outboundSchema = GetAllClassesResponseBody$outboundSchema;
})(GetAllClassesResponseBody$ || (GetAllClassesResponseBody$ = {}));
export function getAllClassesResponseBodyToJSON(getAllClassesResponseBody) {
    return JSON.stringify(GetAllClassesResponseBody$outboundSchema.parse(getAllClassesResponseBody));
}
export function getAllClassesResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllClassesResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllClassesResponseBody' from JSON`);
}
/** @internal */
export const GetAllClassesResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetAllClassesResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetAllClassesResponse$outboundSchema = z.object({
    result: z.lazy(() => GetAllClassesResponseBody$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 GetAllClassesResponse$;
(function (GetAllClassesResponse$) {
    /** @deprecated use `GetAllClassesResponse$inboundSchema` instead. */
    GetAllClassesResponse$.inboundSchema = GetAllClassesResponse$inboundSchema;
    /** @deprecated use `GetAllClassesResponse$outboundSchema` instead. */
    GetAllClassesResponse$.outboundSchema = GetAllClassesResponse$outboundSchema;
})(GetAllClassesResponse$ || (GetAllClassesResponse$ = {}));
export function getAllClassesResponseToJSON(getAllClassesResponse) {
    return JSON.stringify(GetAllClassesResponse$outboundSchema.parse(getAllClassesResponse));
}
export function getAllClassesResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllClassesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllClassesResponse' from JSON`);
}
//# sourceMappingURL=getallclasses.js.map