/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/**
 * The order to sort the response by
 */
export const GetScoreScalesForSchoolOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetScoreScalesForSchoolOrderBy$inboundSchema = z.nativeEnum(GetScoreScalesForSchoolOrderBy);
/** @internal */
export const GetScoreScalesForSchoolOrderBy$outboundSchema = GetScoreScalesForSchoolOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetScoreScalesForSchoolOrderBy$;
(function (GetScoreScalesForSchoolOrderBy$) {
    /** @deprecated use `GetScoreScalesForSchoolOrderBy$inboundSchema` instead. */
    GetScoreScalesForSchoolOrderBy$.inboundSchema = GetScoreScalesForSchoolOrderBy$inboundSchema;
    /** @deprecated use `GetScoreScalesForSchoolOrderBy$outboundSchema` instead. */
    GetScoreScalesForSchoolOrderBy$.outboundSchema = GetScoreScalesForSchoolOrderBy$outboundSchema;
})(GetScoreScalesForSchoolOrderBy$ || (GetScoreScalesForSchoolOrderBy$ = {}));
/** @internal */
export const 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: GetScoreScalesForSchoolOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const 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: 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.
 */
export var GetScoreScalesForSchoolRequest$;
(function (GetScoreScalesForSchoolRequest$) {
    /** @deprecated use `GetScoreScalesForSchoolRequest$inboundSchema` instead. */
    GetScoreScalesForSchoolRequest$.inboundSchema = GetScoreScalesForSchoolRequest$inboundSchema;
    /** @deprecated use `GetScoreScalesForSchoolRequest$outboundSchema` instead. */
    GetScoreScalesForSchoolRequest$.outboundSchema = GetScoreScalesForSchoolRequest$outboundSchema;
})(GetScoreScalesForSchoolRequest$ || (GetScoreScalesForSchoolRequest$ = {}));
export function getScoreScalesForSchoolRequestToJSON(getScoreScalesForSchoolRequest) {
    return JSON.stringify(GetScoreScalesForSchoolRequest$outboundSchema.parse(getScoreScalesForSchoolRequest));
}
export function getScoreScalesForSchoolRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetScoreScalesForSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScoreScalesForSchoolRequest' from JSON`);
}
/** @internal */
export const 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 */
export const 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.
 */
export var GetScoreScalesForSchoolResponseBody$;
(function (GetScoreScalesForSchoolResponseBody$) {
    /** @deprecated use `GetScoreScalesForSchoolResponseBody$inboundSchema` instead. */
    GetScoreScalesForSchoolResponseBody$.inboundSchema = GetScoreScalesForSchoolResponseBody$inboundSchema;
    /** @deprecated use `GetScoreScalesForSchoolResponseBody$outboundSchema` instead. */
    GetScoreScalesForSchoolResponseBody$.outboundSchema = GetScoreScalesForSchoolResponseBody$outboundSchema;
})(GetScoreScalesForSchoolResponseBody$ || (GetScoreScalesForSchoolResponseBody$ = {}));
export function getScoreScalesForSchoolResponseBodyToJSON(getScoreScalesForSchoolResponseBody) {
    return JSON.stringify(GetScoreScalesForSchoolResponseBody$outboundSchema.parse(getScoreScalesForSchoolResponseBody));
}
export function getScoreScalesForSchoolResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetScoreScalesForSchoolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScoreScalesForSchoolResponseBody' from JSON`);
}
/** @internal */
export const GetScoreScalesForSchoolResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetScoreScalesForSchoolResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetScoreScalesForSchoolResponse$outboundSchema = z.object({
    result: z.lazy(() => GetScoreScalesForSchoolResponseBody$outboundSchema),
}).transform((v) => {
    return 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.
 */
export var GetScoreScalesForSchoolResponse$;
(function (GetScoreScalesForSchoolResponse$) {
    /** @deprecated use `GetScoreScalesForSchoolResponse$inboundSchema` instead. */
    GetScoreScalesForSchoolResponse$.inboundSchema = GetScoreScalesForSchoolResponse$inboundSchema;
    /** @deprecated use `GetScoreScalesForSchoolResponse$outboundSchema` instead. */
    GetScoreScalesForSchoolResponse$.outboundSchema = GetScoreScalesForSchoolResponse$outboundSchema;
})(GetScoreScalesForSchoolResponse$ || (GetScoreScalesForSchoolResponse$ = {}));
export function getScoreScalesForSchoolResponseToJSON(getScoreScalesForSchoolResponse) {
    return JSON.stringify(GetScoreScalesForSchoolResponse$outboundSchema.parse(getScoreScalesForSchoolResponse));
}
export function getScoreScalesForSchoolResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetScoreScalesForSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScoreScalesForSchoolResponse' from JSON`);
}
//# sourceMappingURL=getscorescalesforschool.js.map