"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.GetScoreScalesForClassResponse$ = exports.GetScoreScalesForClassResponse$outboundSchema = exports.GetScoreScalesForClassResponse$inboundSchema = exports.GetScoreScalesForClassResponseBody$ = exports.GetScoreScalesForClassResponseBody$outboundSchema = exports.GetScoreScalesForClassResponseBody$inboundSchema = exports.GetScoreScalesForClassRequest$ = exports.GetScoreScalesForClassRequest$outboundSchema = exports.GetScoreScalesForClassRequest$inboundSchema = exports.GetScoreScalesForClassOrderBy$ = exports.GetScoreScalesForClassOrderBy$outboundSchema = exports.GetScoreScalesForClassOrderBy$inboundSchema = exports.GetScoreScalesForClassOrderBy = void 0;
exports.getScoreScalesForClassRequestToJSON = getScoreScalesForClassRequestToJSON;
exports.getScoreScalesForClassRequestFromJSON = getScoreScalesForClassRequestFromJSON;
exports.getScoreScalesForClassResponseBodyToJSON = getScoreScalesForClassResponseBodyToJSON;
exports.getScoreScalesForClassResponseBodyFromJSON = getScoreScalesForClassResponseBodyFromJSON;
exports.getScoreScalesForClassResponseToJSON = getScoreScalesForClassResponseToJSON;
exports.getScoreScalesForClassResponseFromJSON = getScoreScalesForClassResponseFromJSON;
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.GetScoreScalesForClassOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetScoreScalesForClassOrderBy$inboundSchema = z.nativeEnum(exports.GetScoreScalesForClassOrderBy);
/** @internal */
exports.GetScoreScalesForClassOrderBy$outboundSchema = exports.GetScoreScalesForClassOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetScoreScalesForClassOrderBy$;
(function (GetScoreScalesForClassOrderBy$) {
    /** @deprecated use `GetScoreScalesForClassOrderBy$inboundSchema` instead. */
    GetScoreScalesForClassOrderBy$.inboundSchema = exports.GetScoreScalesForClassOrderBy$inboundSchema;
    /** @deprecated use `GetScoreScalesForClassOrderBy$outboundSchema` instead. */
    GetScoreScalesForClassOrderBy$.outboundSchema = exports.GetScoreScalesForClassOrderBy$outboundSchema;
})(GetScoreScalesForClassOrderBy$ || (exports.GetScoreScalesForClassOrderBy$ = GetScoreScalesForClassOrderBy$ = {}));
/** @internal */
exports.GetScoreScalesForClassRequest$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.GetScoreScalesForClassOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetScoreScalesForClassRequest$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.GetScoreScalesForClassOrderBy$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 GetScoreScalesForClassRequest$;
(function (GetScoreScalesForClassRequest$) {
    /** @deprecated use `GetScoreScalesForClassRequest$inboundSchema` instead. */
    GetScoreScalesForClassRequest$.inboundSchema = exports.GetScoreScalesForClassRequest$inboundSchema;
    /** @deprecated use `GetScoreScalesForClassRequest$outboundSchema` instead. */
    GetScoreScalesForClassRequest$.outboundSchema = exports.GetScoreScalesForClassRequest$outboundSchema;
})(GetScoreScalesForClassRequest$ || (exports.GetScoreScalesForClassRequest$ = GetScoreScalesForClassRequest$ = {}));
function getScoreScalesForClassRequestToJSON(getScoreScalesForClassRequest) {
    return JSON.stringify(exports.GetScoreScalesForClassRequest$outboundSchema.parse(getScoreScalesForClassRequest));
}
function getScoreScalesForClassRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetScoreScalesForClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScoreScalesForClassRequest' from JSON`);
}
/** @internal */
exports.GetScoreScalesForClassResponseBody$inboundSchema = z.object({
    scoreScales: z.array(components.ScoreScale$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetScoreScalesForClassResponseBody$outboundSchema = z.object({
    scoreScales: z.array(components.ScoreScale$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 GetScoreScalesForClassResponseBody$;
(function (GetScoreScalesForClassResponseBody$) {
    /** @deprecated use `GetScoreScalesForClassResponseBody$inboundSchema` instead. */
    GetScoreScalesForClassResponseBody$.inboundSchema = exports.GetScoreScalesForClassResponseBody$inboundSchema;
    /** @deprecated use `GetScoreScalesForClassResponseBody$outboundSchema` instead. */
    GetScoreScalesForClassResponseBody$.outboundSchema = exports.GetScoreScalesForClassResponseBody$outboundSchema;
})(GetScoreScalesForClassResponseBody$ || (exports.GetScoreScalesForClassResponseBody$ = GetScoreScalesForClassResponseBody$ = {}));
function getScoreScalesForClassResponseBodyToJSON(getScoreScalesForClassResponseBody) {
    return JSON.stringify(exports.GetScoreScalesForClassResponseBody$outboundSchema.parse(getScoreScalesForClassResponseBody));
}
function getScoreScalesForClassResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetScoreScalesForClassResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScoreScalesForClassResponseBody' from JSON`);
}
/** @internal */
exports.GetScoreScalesForClassResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetScoreScalesForClassResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetScoreScalesForClassResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetScoreScalesForClassResponseBody$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 GetScoreScalesForClassResponse$;
(function (GetScoreScalesForClassResponse$) {
    /** @deprecated use `GetScoreScalesForClassResponse$inboundSchema` instead. */
    GetScoreScalesForClassResponse$.inboundSchema = exports.GetScoreScalesForClassResponse$inboundSchema;
    /** @deprecated use `GetScoreScalesForClassResponse$outboundSchema` instead. */
    GetScoreScalesForClassResponse$.outboundSchema = exports.GetScoreScalesForClassResponse$outboundSchema;
})(GetScoreScalesForClassResponse$ || (exports.GetScoreScalesForClassResponse$ = GetScoreScalesForClassResponse$ = {}));
function getScoreScalesForClassResponseToJSON(getScoreScalesForClassResponse) {
    return JSON.stringify(exports.GetScoreScalesForClassResponse$outboundSchema.parse(getScoreScalesForClassResponse));
}
function getScoreScalesForClassResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetScoreScalesForClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScoreScalesForClassResponse' from JSON`);
}
//# sourceMappingURL=getscorescalesforclass.js.map