"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetClassesForCourseResponse$ = exports.GetClassesForCourseResponse$outboundSchema = exports.GetClassesForCourseResponse$inboundSchema = exports.GetClassesForCourseResponseBody$ = exports.GetClassesForCourseResponseBody$outboundSchema = exports.GetClassesForCourseResponseBody$inboundSchema = exports.GetClassesForCourseRequest$ = exports.GetClassesForCourseRequest$outboundSchema = exports.GetClassesForCourseRequest$inboundSchema = exports.GetClassesForCourseOrderBy$ = exports.GetClassesForCourseOrderBy$outboundSchema = exports.GetClassesForCourseOrderBy$inboundSchema = exports.GetClassesForCourseOrderBy = void 0;
exports.getClassesForCourseRequestToJSON = getClassesForCourseRequestToJSON;
exports.getClassesForCourseRequestFromJSON = getClassesForCourseRequestFromJSON;
exports.getClassesForCourseResponseBodyToJSON = getClassesForCourseResponseBodyToJSON;
exports.getClassesForCourseResponseBodyFromJSON = getClassesForCourseResponseBodyFromJSON;
exports.getClassesForCourseResponseToJSON = getClassesForCourseResponseToJSON;
exports.getClassesForCourseResponseFromJSON = getClassesForCourseResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/**
 * The order to sort the response by
 */
exports.GetClassesForCourseOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetClassesForCourseOrderBy$inboundSchema = z.nativeEnum(exports.GetClassesForCourseOrderBy);
/** @internal */
exports.GetClassesForCourseOrderBy$outboundSchema = exports.GetClassesForCourseOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetClassesForCourseOrderBy$;
(function (GetClassesForCourseOrderBy$) {
    /** @deprecated use `GetClassesForCourseOrderBy$inboundSchema` instead. */
    GetClassesForCourseOrderBy$.inboundSchema = exports.GetClassesForCourseOrderBy$inboundSchema;
    /** @deprecated use `GetClassesForCourseOrderBy$outboundSchema` instead. */
    GetClassesForCourseOrderBy$.outboundSchema = exports.GetClassesForCourseOrderBy$outboundSchema;
})(GetClassesForCourseOrderBy$ || (exports.GetClassesForCourseOrderBy$ = GetClassesForCourseOrderBy$ = {}));
/** @internal */
exports.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: exports.GetClassesForCourseOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.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: exports.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.
 */
var GetClassesForCourseRequest$;
(function (GetClassesForCourseRequest$) {
    /** @deprecated use `GetClassesForCourseRequest$inboundSchema` instead. */
    GetClassesForCourseRequest$.inboundSchema = exports.GetClassesForCourseRequest$inboundSchema;
    /** @deprecated use `GetClassesForCourseRequest$outboundSchema` instead. */
    GetClassesForCourseRequest$.outboundSchema = exports.GetClassesForCourseRequest$outboundSchema;
})(GetClassesForCourseRequest$ || (exports.GetClassesForCourseRequest$ = GetClassesForCourseRequest$ = {}));
function getClassesForCourseRequestToJSON(getClassesForCourseRequest) {
    return JSON.stringify(exports.GetClassesForCourseRequest$outboundSchema.parse(getClassesForCourseRequest));
}
function getClassesForCourseRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetClassesForCourseRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForCourseRequest' from JSON`);
}
/** @internal */
exports.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 */
exports.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.
 */
var GetClassesForCourseResponseBody$;
(function (GetClassesForCourseResponseBody$) {
    /** @deprecated use `GetClassesForCourseResponseBody$inboundSchema` instead. */
    GetClassesForCourseResponseBody$.inboundSchema = exports.GetClassesForCourseResponseBody$inboundSchema;
    /** @deprecated use `GetClassesForCourseResponseBody$outboundSchema` instead. */
    GetClassesForCourseResponseBody$.outboundSchema = exports.GetClassesForCourseResponseBody$outboundSchema;
})(GetClassesForCourseResponseBody$ || (exports.GetClassesForCourseResponseBody$ = GetClassesForCourseResponseBody$ = {}));
function getClassesForCourseResponseBodyToJSON(getClassesForCourseResponseBody) {
    return JSON.stringify(exports.GetClassesForCourseResponseBody$outboundSchema.parse(getClassesForCourseResponseBody));
}
function getClassesForCourseResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetClassesForCourseResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForCourseResponseBody' from JSON`);
}
/** @internal */
exports.GetClassesForCourseResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetClassesForCourseResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetClassesForCourseResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetClassesForCourseResponseBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var GetClassesForCourseResponse$;
(function (GetClassesForCourseResponse$) {
    /** @deprecated use `GetClassesForCourseResponse$inboundSchema` instead. */
    GetClassesForCourseResponse$.inboundSchema = exports.GetClassesForCourseResponse$inboundSchema;
    /** @deprecated use `GetClassesForCourseResponse$outboundSchema` instead. */
    GetClassesForCourseResponse$.outboundSchema = exports.GetClassesForCourseResponse$outboundSchema;
})(GetClassesForCourseResponse$ || (exports.GetClassesForCourseResponse$ = GetClassesForCourseResponse$ = {}));
function getClassesForCourseResponseToJSON(getClassesForCourseResponse) {
    return JSON.stringify(exports.GetClassesForCourseResponse$outboundSchema.parse(getClassesForCourseResponse));
}
function getClassesForCourseResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetClassesForCourseResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForCourseResponse' from JSON`);
}
//# sourceMappingURL=getclassesforcourse.js.map