/*
 * 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 GetResourcesForClassOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetResourcesForClassOrderBy$inboundSchema = z.nativeEnum(GetResourcesForClassOrderBy);
/** @internal */
export const GetResourcesForClassOrderBy$outboundSchema = GetResourcesForClassOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetResourcesForClassOrderBy$;
(function (GetResourcesForClassOrderBy$) {
    /** @deprecated use `GetResourcesForClassOrderBy$inboundSchema` instead. */
    GetResourcesForClassOrderBy$.inboundSchema = GetResourcesForClassOrderBy$inboundSchema;
    /** @deprecated use `GetResourcesForClassOrderBy$outboundSchema` instead. */
    GetResourcesForClassOrderBy$.outboundSchema = GetResourcesForClassOrderBy$outboundSchema;
})(GetResourcesForClassOrderBy$ || (GetResourcesForClassOrderBy$ = {}));
/** @internal */
export const GetResourcesForClassRequest$inboundSchema = z.object({
    classSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetResourcesForClassOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetResourcesForClassRequest$outboundSchema = z.object({
    classSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetResourcesForClassOrderBy$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 GetResourcesForClassRequest$;
(function (GetResourcesForClassRequest$) {
    /** @deprecated use `GetResourcesForClassRequest$inboundSchema` instead. */
    GetResourcesForClassRequest$.inboundSchema = GetResourcesForClassRequest$inboundSchema;
    /** @deprecated use `GetResourcesForClassRequest$outboundSchema` instead. */
    GetResourcesForClassRequest$.outboundSchema = GetResourcesForClassRequest$outboundSchema;
})(GetResourcesForClassRequest$ || (GetResourcesForClassRequest$ = {}));
export function getResourcesForClassRequestToJSON(getResourcesForClassRequest) {
    return JSON.stringify(GetResourcesForClassRequest$outboundSchema.parse(getResourcesForClassRequest));
}
export function getResourcesForClassRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResourcesForClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourcesForClassRequest' from JSON`);
}
/** @internal */
export const GetResourcesForClassResponseBody$inboundSchema = z.object({
    resources: z.array(components.Resource$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetResourcesForClassResponseBody$outboundSchema = z.object({
    resources: z.array(components.Resource$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 GetResourcesForClassResponseBody$;
(function (GetResourcesForClassResponseBody$) {
    /** @deprecated use `GetResourcesForClassResponseBody$inboundSchema` instead. */
    GetResourcesForClassResponseBody$.inboundSchema = GetResourcesForClassResponseBody$inboundSchema;
    /** @deprecated use `GetResourcesForClassResponseBody$outboundSchema` instead. */
    GetResourcesForClassResponseBody$.outboundSchema = GetResourcesForClassResponseBody$outboundSchema;
})(GetResourcesForClassResponseBody$ || (GetResourcesForClassResponseBody$ = {}));
export function getResourcesForClassResponseBodyToJSON(getResourcesForClassResponseBody) {
    return JSON.stringify(GetResourcesForClassResponseBody$outboundSchema.parse(getResourcesForClassResponseBody));
}
export function getResourcesForClassResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResourcesForClassResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourcesForClassResponseBody' from JSON`);
}
/** @internal */
export const GetResourcesForClassResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetResourcesForClassResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetResourcesForClassResponse$outboundSchema = z.object({
    result: z.lazy(() => GetResourcesForClassResponseBody$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 GetResourcesForClassResponse$;
(function (GetResourcesForClassResponse$) {
    /** @deprecated use `GetResourcesForClassResponse$inboundSchema` instead. */
    GetResourcesForClassResponse$.inboundSchema = GetResourcesForClassResponse$inboundSchema;
    /** @deprecated use `GetResourcesForClassResponse$outboundSchema` instead. */
    GetResourcesForClassResponse$.outboundSchema = GetResourcesForClassResponse$outboundSchema;
})(GetResourcesForClassResponse$ || (GetResourcesForClassResponse$ = {}));
export function getResourcesForClassResponseToJSON(getResourcesForClassResponse) {
    return JSON.stringify(GetResourcesForClassResponse$outboundSchema.parse(getResourcesForClassResponse));
}
export function getResourcesForClassResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResourcesForClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourcesForClassResponse' from JSON`);
}
//# sourceMappingURL=getresourcesforclass.js.map