"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.GetScoreScalesForSchoolResponse$ = exports.GetScoreScalesForSchoolResponse$outboundSchema = exports.GetScoreScalesForSchoolResponse$inboundSchema = exports.GetScoreScalesForSchoolResponseBody$ = exports.GetScoreScalesForSchoolResponseBody$outboundSchema = exports.GetScoreScalesForSchoolResponseBody$inboundSchema = exports.GetScoreScalesForSchoolRequest$ = exports.GetScoreScalesForSchoolRequest$outboundSchema = exports.GetScoreScalesForSchoolRequest$inboundSchema = exports.GetScoreScalesForSchoolOrderBy$ = exports.GetScoreScalesForSchoolOrderBy$outboundSchema = exports.GetScoreScalesForSchoolOrderBy$inboundSchema = exports.GetScoreScalesForSchoolOrderBy = void 0;
exports.getScoreScalesForSchoolRequestToJSON = getScoreScalesForSchoolRequestToJSON;
exports.getScoreScalesForSchoolRequestFromJSON = getScoreScalesForSchoolRequestFromJSON;
exports.getScoreScalesForSchoolResponseBodyToJSON = getScoreScalesForSchoolResponseBodyToJSON;
exports.getScoreScalesForSchoolResponseBodyFromJSON = getScoreScalesForSchoolResponseBodyFromJSON;
exports.getScoreScalesForSchoolResponseToJSON = getScoreScalesForSchoolResponseToJSON;
exports.getScoreScalesForSchoolResponseFromJSON = getScoreScalesForSchoolResponseFromJSON;
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.GetScoreScalesForSchoolOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetScoreScalesForSchoolOrderBy$inboundSchema = z.nativeEnum(exports.GetScoreScalesForSchoolOrderBy);
/** @internal */
exports.GetScoreScalesForSchoolOrderBy$outboundSchema = exports.GetScoreScalesForSchoolOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetScoreScalesForSchoolOrderBy$;
(function (GetScoreScalesForSchoolOrderBy$) {
    /** @deprecated use `GetScoreScalesForSchoolOrderBy$inboundSchema` instead. */
    GetScoreScalesForSchoolOrderBy$.inboundSchema = exports.GetScoreScalesForSchoolOrderBy$inboundSchema;
    /** @deprecated use `GetScoreScalesForSchoolOrderBy$outboundSchema` instead. */
    GetScoreScalesForSchoolOrderBy$.outboundSchema = exports.GetScoreScalesForSchoolOrderBy$outboundSchema;
})(GetScoreScalesForSchoolOrderBy$ || (exports.GetScoreScalesForSchoolOrderBy$ = GetScoreScalesForSchoolOrderBy$ = {}));
/** @internal */
exports.GetScoreScalesForSchoolRequest$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.GetScoreScalesForSchoolOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetScoreScalesForSchoolRequest$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.GetScoreScalesForSchoolOrderBy$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 GetScoreScalesForSchoolRequest$;
(function (GetScoreScalesForSchoolRequest$) {
    /** @deprecated use `GetScoreScalesForSchoolRequest$inboundSchema` instead. */
    GetScoreScalesForSchoolRequest$.inboundSchema = exports.GetScoreScalesForSchoolRequest$inboundSchema;
    /** @deprecated use `GetScoreScalesForSchoolRequest$outboundSchema` instead. */
    GetScoreScalesForSchoolRequest$.outboundSchema = exports.GetScoreScalesForSchoolRequest$outboundSchema;
})(GetScoreScalesForSchoolRequest$ || (exports.GetScoreScalesForSchoolRequest$ = GetScoreScalesForSchoolRequest$ = {}));
function getScoreScalesForSchoolRequestToJSON(getScoreScalesForSchoolRequest) {
    return JSON.stringify(exports.GetScoreScalesForSchoolRequest$outboundSchema.parse(getScoreScalesForSchoolRequest));
}
function getScoreScalesForSchoolRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetScoreScalesForSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScoreScalesForSchoolRequest' from JSON`);
}
/** @internal */
exports.GetScoreScalesForSchoolResponseBody$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.GetScoreScalesForSchoolResponseBody$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 GetScoreScalesForSchoolResponseBody$;
(function (GetScoreScalesForSchoolResponseBody$) {
    /** @deprecated use `GetScoreScalesForSchoolResponseBody$inboundSchema` instead. */
    GetScoreScalesForSchoolResponseBody$.inboundSchema = exports.GetScoreScalesForSchoolResponseBody$inboundSchema;
    /** @deprecated use `GetScoreScalesForSchoolResponseBody$outboundSchema` instead. */
    GetScoreScalesForSchoolResponseBody$.outboundSchema = exports.GetScoreScalesForSchoolResponseBody$outboundSchema;
})(GetScoreScalesForSchoolResponseBody$ || (exports.GetScoreScalesForSchoolResponseBody$ = GetScoreScalesForSchoolResponseBody$ = {}));
function getScoreScalesForSchoolResponseBodyToJSON(getScoreScalesForSchoolResponseBody) {
    return JSON.stringify(exports.GetScoreScalesForSchoolResponseBody$outboundSchema.parse(getScoreScalesForSchoolResponseBody));
}
function getScoreScalesForSchoolResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetScoreScalesForSchoolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScoreScalesForSchoolResponseBody' from JSON`);
}
/** @internal */
exports.GetScoreScalesForSchoolResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetScoreScalesForSchoolResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetScoreScalesForSchoolResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetScoreScalesForSchoolResponseBody$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 GetScoreScalesForSchoolResponse$;
(function (GetScoreScalesForSchoolResponse$) {
    /** @deprecated use `GetScoreScalesForSchoolResponse$inboundSchema` instead. */
    GetScoreScalesForSchoolResponse$.inboundSchema = exports.GetScoreScalesForSchoolResponse$inboundSchema;
    /** @deprecated use `GetScoreScalesForSchoolResponse$outboundSchema` instead. */
    GetScoreScalesForSchoolResponse$.outboundSchema = exports.GetScoreScalesForSchoolResponse$outboundSchema;
})(GetScoreScalesForSchoolResponse$ || (exports.GetScoreScalesForSchoolResponse$ = GetScoreScalesForSchoolResponse$ = {}));
function getScoreScalesForSchoolResponseToJSON(getScoreScalesForSchoolResponse) {
    return JSON.stringify(exports.GetScoreScalesForSchoolResponse$outboundSchema.parse(getScoreScalesForSchoolResponse));
}
function getScoreScalesForSchoolResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetScoreScalesForSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScoreScalesForSchoolResponse' from JSON`);
}
//# sourceMappingURL=getscorescalesforschool.js.map