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