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