/*
 * 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 GetCategoriesForClassOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetCategoriesForClassOrderBy$inboundSchema = z.nativeEnum(GetCategoriesForClassOrderBy);
/** @internal */
export const GetCategoriesForClassOrderBy$outboundSchema = GetCategoriesForClassOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetCategoriesForClassOrderBy$;
(function (GetCategoriesForClassOrderBy$) {
    /** @deprecated use `GetCategoriesForClassOrderBy$inboundSchema` instead. */
    GetCategoriesForClassOrderBy$.inboundSchema = GetCategoriesForClassOrderBy$inboundSchema;
    /** @deprecated use `GetCategoriesForClassOrderBy$outboundSchema` instead. */
    GetCategoriesForClassOrderBy$.outboundSchema = GetCategoriesForClassOrderBy$outboundSchema;
})(GetCategoriesForClassOrderBy$ || (GetCategoriesForClassOrderBy$ = {}));
/** @internal */
export const GetCategoriesForClassRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetCategoriesForClassOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetCategoriesForClassRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetCategoriesForClassOrderBy$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 GetCategoriesForClassRequest$;
(function (GetCategoriesForClassRequest$) {
    /** @deprecated use `GetCategoriesForClassRequest$inboundSchema` instead. */
    GetCategoriesForClassRequest$.inboundSchema = GetCategoriesForClassRequest$inboundSchema;
    /** @deprecated use `GetCategoriesForClassRequest$outboundSchema` instead. */
    GetCategoriesForClassRequest$.outboundSchema = GetCategoriesForClassRequest$outboundSchema;
})(GetCategoriesForClassRequest$ || (GetCategoriesForClassRequest$ = {}));
export function getCategoriesForClassRequestToJSON(getCategoriesForClassRequest) {
    return JSON.stringify(GetCategoriesForClassRequest$outboundSchema.parse(getCategoriesForClassRequest));
}
export function getCategoriesForClassRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetCategoriesForClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCategoriesForClassRequest' from JSON`);
}
/** @internal */
export const GetCategoriesForClassResponseBody$inboundSchema = z.object({
    categories: z.array(components.Category$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetCategoriesForClassResponseBody$outboundSchema = z.object({
    categories: z.array(components.Category$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 GetCategoriesForClassResponseBody$;
(function (GetCategoriesForClassResponseBody$) {
    /** @deprecated use `GetCategoriesForClassResponseBody$inboundSchema` instead. */
    GetCategoriesForClassResponseBody$.inboundSchema = GetCategoriesForClassResponseBody$inboundSchema;
    /** @deprecated use `GetCategoriesForClassResponseBody$outboundSchema` instead. */
    GetCategoriesForClassResponseBody$.outboundSchema = GetCategoriesForClassResponseBody$outboundSchema;
})(GetCategoriesForClassResponseBody$ || (GetCategoriesForClassResponseBody$ = {}));
export function getCategoriesForClassResponseBodyToJSON(getCategoriesForClassResponseBody) {
    return JSON.stringify(GetCategoriesForClassResponseBody$outboundSchema.parse(getCategoriesForClassResponseBody));
}
export function getCategoriesForClassResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetCategoriesForClassResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCategoriesForClassResponseBody' from JSON`);
}
/** @internal */
export const GetCategoriesForClassResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetCategoriesForClassResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetCategoriesForClassResponse$outboundSchema = z.object({
    result: z.lazy(() => GetCategoriesForClassResponseBody$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 GetCategoriesForClassResponse$;
(function (GetCategoriesForClassResponse$) {
    /** @deprecated use `GetCategoriesForClassResponse$inboundSchema` instead. */
    GetCategoriesForClassResponse$.inboundSchema = GetCategoriesForClassResponse$inboundSchema;
    /** @deprecated use `GetCategoriesForClassResponse$outboundSchema` instead. */
    GetCategoriesForClassResponse$.outboundSchema = GetCategoriesForClassResponse$outboundSchema;
})(GetCategoriesForClassResponse$ || (GetCategoriesForClassResponse$ = {}));
export function getCategoriesForClassResponseToJSON(getCategoriesForClassResponse) {
    return JSON.stringify(GetCategoriesForClassResponse$outboundSchema.parse(getCategoriesForClassResponse));
}
export function getCategoriesForClassResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetCategoriesForClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCategoriesForClassResponse' from JSON`);
}
//# sourceMappingURL=getcategoriesforclass.js.map