/*
 * 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 GetResourcesForCourseOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetResourcesForCourseOrderBy$inboundSchema = z.nativeEnum(GetResourcesForCourseOrderBy);
/** @internal */
export const GetResourcesForCourseOrderBy$outboundSchema = GetResourcesForCourseOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetResourcesForCourseOrderBy$;
(function (GetResourcesForCourseOrderBy$) {
    /** @deprecated use `GetResourcesForCourseOrderBy$inboundSchema` instead. */
    GetResourcesForCourseOrderBy$.inboundSchema = GetResourcesForCourseOrderBy$inboundSchema;
    /** @deprecated use `GetResourcesForCourseOrderBy$outboundSchema` instead. */
    GetResourcesForCourseOrderBy$.outboundSchema = GetResourcesForCourseOrderBy$outboundSchema;
})(GetResourcesForCourseOrderBy$ || (GetResourcesForCourseOrderBy$ = {}));
/** @internal */
export const GetResourcesForCourseRequest$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: GetResourcesForCourseOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetResourcesForCourseRequest$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: GetResourcesForCourseOrderBy$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 GetResourcesForCourseRequest$;
(function (GetResourcesForCourseRequest$) {
    /** @deprecated use `GetResourcesForCourseRequest$inboundSchema` instead. */
    GetResourcesForCourseRequest$.inboundSchema = GetResourcesForCourseRequest$inboundSchema;
    /** @deprecated use `GetResourcesForCourseRequest$outboundSchema` instead. */
    GetResourcesForCourseRequest$.outboundSchema = GetResourcesForCourseRequest$outboundSchema;
})(GetResourcesForCourseRequest$ || (GetResourcesForCourseRequest$ = {}));
export function getResourcesForCourseRequestToJSON(getResourcesForCourseRequest) {
    return JSON.stringify(GetResourcesForCourseRequest$outboundSchema.parse(getResourcesForCourseRequest));
}
export function getResourcesForCourseRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResourcesForCourseRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourcesForCourseRequest' from JSON`);
}
/** @internal */
export const GetResourcesForCourseResponseBody$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 GetResourcesForCourseResponseBody$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 GetResourcesForCourseResponseBody$;
(function (GetResourcesForCourseResponseBody$) {
    /** @deprecated use `GetResourcesForCourseResponseBody$inboundSchema` instead. */
    GetResourcesForCourseResponseBody$.inboundSchema = GetResourcesForCourseResponseBody$inboundSchema;
    /** @deprecated use `GetResourcesForCourseResponseBody$outboundSchema` instead. */
    GetResourcesForCourseResponseBody$.outboundSchema = GetResourcesForCourseResponseBody$outboundSchema;
})(GetResourcesForCourseResponseBody$ || (GetResourcesForCourseResponseBody$ = {}));
export function getResourcesForCourseResponseBodyToJSON(getResourcesForCourseResponseBody) {
    return JSON.stringify(GetResourcesForCourseResponseBody$outboundSchema.parse(getResourcesForCourseResponseBody));
}
export function getResourcesForCourseResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResourcesForCourseResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourcesForCourseResponseBody' from JSON`);
}
/** @internal */
export const GetResourcesForCourseResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetResourcesForCourseResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetResourcesForCourseResponse$outboundSchema = z.object({
    result: z.lazy(() => GetResourcesForCourseResponseBody$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 GetResourcesForCourseResponse$;
(function (GetResourcesForCourseResponse$) {
    /** @deprecated use `GetResourcesForCourseResponse$inboundSchema` instead. */
    GetResourcesForCourseResponse$.inboundSchema = GetResourcesForCourseResponse$inboundSchema;
    /** @deprecated use `GetResourcesForCourseResponse$outboundSchema` instead. */
    GetResourcesForCourseResponse$.outboundSchema = GetResourcesForCourseResponse$outboundSchema;
})(GetResourcesForCourseResponse$ || (GetResourcesForCourseResponse$ = {}));
export function getResourcesForCourseResponseToJSON(getResourcesForCourseResponse) {
    return JSON.stringify(GetResourcesForCourseResponse$outboundSchema.parse(getResourcesForCourseResponse));
}
export function getResourcesForCourseResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResourcesForCourseResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourcesForCourseResponse' from JSON`);
}
//# sourceMappingURL=getresourcesforcourse.js.map