"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.GetCategoriesForClassResponse$ = exports.GetCategoriesForClassResponse$outboundSchema = exports.GetCategoriesForClassResponse$inboundSchema = exports.GetCategoriesForClassResponseBody$ = exports.GetCategoriesForClassResponseBody$outboundSchema = exports.GetCategoriesForClassResponseBody$inboundSchema = exports.GetCategoriesForClassRequest$ = exports.GetCategoriesForClassRequest$outboundSchema = exports.GetCategoriesForClassRequest$inboundSchema = exports.GetCategoriesForClassOrderBy$ = exports.GetCategoriesForClassOrderBy$outboundSchema = exports.GetCategoriesForClassOrderBy$inboundSchema = exports.GetCategoriesForClassOrderBy = void 0;
exports.getCategoriesForClassRequestToJSON = getCategoriesForClassRequestToJSON;
exports.getCategoriesForClassRequestFromJSON = getCategoriesForClassRequestFromJSON;
exports.getCategoriesForClassResponseBodyToJSON = getCategoriesForClassResponseBodyToJSON;
exports.getCategoriesForClassResponseBodyFromJSON = getCategoriesForClassResponseBodyFromJSON;
exports.getCategoriesForClassResponseToJSON = getCategoriesForClassResponseToJSON;
exports.getCategoriesForClassResponseFromJSON = getCategoriesForClassResponseFromJSON;
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.GetCategoriesForClassOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetCategoriesForClassOrderBy$inboundSchema = z.nativeEnum(exports.GetCategoriesForClassOrderBy);
/** @internal */
exports.GetCategoriesForClassOrderBy$outboundSchema = exports.GetCategoriesForClassOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetCategoriesForClassOrderBy$;
(function (GetCategoriesForClassOrderBy$) {
    /** @deprecated use `GetCategoriesForClassOrderBy$inboundSchema` instead. */
    GetCategoriesForClassOrderBy$.inboundSchema = exports.GetCategoriesForClassOrderBy$inboundSchema;
    /** @deprecated use `GetCategoriesForClassOrderBy$outboundSchema` instead. */
    GetCategoriesForClassOrderBy$.outboundSchema = exports.GetCategoriesForClassOrderBy$outboundSchema;
})(GetCategoriesForClassOrderBy$ || (exports.GetCategoriesForClassOrderBy$ = GetCategoriesForClassOrderBy$ = {}));
/** @internal */
exports.GetCategoriesForClassRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetCategoriesForClassOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetCategoriesForClassRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetCategoriesForClassOrderBy$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 GetCategoriesForClassRequest$;
(function (GetCategoriesForClassRequest$) {
    /** @deprecated use `GetCategoriesForClassRequest$inboundSchema` instead. */
    GetCategoriesForClassRequest$.inboundSchema = exports.GetCategoriesForClassRequest$inboundSchema;
    /** @deprecated use `GetCategoriesForClassRequest$outboundSchema` instead. */
    GetCategoriesForClassRequest$.outboundSchema = exports.GetCategoriesForClassRequest$outboundSchema;
})(GetCategoriesForClassRequest$ || (exports.GetCategoriesForClassRequest$ = GetCategoriesForClassRequest$ = {}));
function getCategoriesForClassRequestToJSON(getCategoriesForClassRequest) {
    return JSON.stringify(exports.GetCategoriesForClassRequest$outboundSchema.parse(getCategoriesForClassRequest));
}
function getCategoriesForClassRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCategoriesForClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCategoriesForClassRequest' from JSON`);
}
/** @internal */
exports.GetCategoriesForClassResponseBody$inboundSchema = z.object({
    categories: z.array(components.Category$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetCategoriesForClassResponseBody$outboundSchema = z.object({
    categories: z.array(components.Category$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 GetCategoriesForClassResponseBody$;
(function (GetCategoriesForClassResponseBody$) {
    /** @deprecated use `GetCategoriesForClassResponseBody$inboundSchema` instead. */
    GetCategoriesForClassResponseBody$.inboundSchema = exports.GetCategoriesForClassResponseBody$inboundSchema;
    /** @deprecated use `GetCategoriesForClassResponseBody$outboundSchema` instead. */
    GetCategoriesForClassResponseBody$.outboundSchema = exports.GetCategoriesForClassResponseBody$outboundSchema;
})(GetCategoriesForClassResponseBody$ || (exports.GetCategoriesForClassResponseBody$ = GetCategoriesForClassResponseBody$ = {}));
function getCategoriesForClassResponseBodyToJSON(getCategoriesForClassResponseBody) {
    return JSON.stringify(exports.GetCategoriesForClassResponseBody$outboundSchema.parse(getCategoriesForClassResponseBody));
}
function getCategoriesForClassResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCategoriesForClassResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCategoriesForClassResponseBody' from JSON`);
}
/** @internal */
exports.GetCategoriesForClassResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetCategoriesForClassResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetCategoriesForClassResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetCategoriesForClassResponseBody$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 GetCategoriesForClassResponse$;
(function (GetCategoriesForClassResponse$) {
    /** @deprecated use `GetCategoriesForClassResponse$inboundSchema` instead. */
    GetCategoriesForClassResponse$.inboundSchema = exports.GetCategoriesForClassResponse$inboundSchema;
    /** @deprecated use `GetCategoriesForClassResponse$outboundSchema` instead. */
    GetCategoriesForClassResponse$.outboundSchema = exports.GetCategoriesForClassResponse$outboundSchema;
})(GetCategoriesForClassResponse$ || (exports.GetCategoriesForClassResponse$ = GetCategoriesForClassResponse$ = {}));
function getCategoriesForClassResponseToJSON(getCategoriesForClassResponse) {
    return JSON.stringify(exports.GetCategoriesForClassResponse$outboundSchema.parse(getCategoriesForClassResponse));
}
function getCategoriesForClassResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCategoriesForClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCategoriesForClassResponse' from JSON`);
}
//# sourceMappingURL=getcategoriesforclass.js.map