/*
 * 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 GetAllScoreScalesOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetAllScoreScalesOrderBy$inboundSchema = z.nativeEnum(GetAllScoreScalesOrderBy);
/** @internal */
export const GetAllScoreScalesOrderBy$outboundSchema = GetAllScoreScalesOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAllScoreScalesOrderBy$;
(function (GetAllScoreScalesOrderBy$) {
    /** @deprecated use `GetAllScoreScalesOrderBy$inboundSchema` instead. */
    GetAllScoreScalesOrderBy$.inboundSchema = GetAllScoreScalesOrderBy$inboundSchema;
    /** @deprecated use `GetAllScoreScalesOrderBy$outboundSchema` instead. */
    GetAllScoreScalesOrderBy$.outboundSchema = GetAllScoreScalesOrderBy$outboundSchema;
})(GetAllScoreScalesOrderBy$ || (GetAllScoreScalesOrderBy$ = {}));
/** @internal */
export const GetAllScoreScalesRequest$inboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetAllScoreScalesOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetAllScoreScalesRequest$outboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetAllScoreScalesOrderBy$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 GetAllScoreScalesRequest$;
(function (GetAllScoreScalesRequest$) {
    /** @deprecated use `GetAllScoreScalesRequest$inboundSchema` instead. */
    GetAllScoreScalesRequest$.inboundSchema = GetAllScoreScalesRequest$inboundSchema;
    /** @deprecated use `GetAllScoreScalesRequest$outboundSchema` instead. */
    GetAllScoreScalesRequest$.outboundSchema = GetAllScoreScalesRequest$outboundSchema;
})(GetAllScoreScalesRequest$ || (GetAllScoreScalesRequest$ = {}));
export function getAllScoreScalesRequestToJSON(getAllScoreScalesRequest) {
    return JSON.stringify(GetAllScoreScalesRequest$outboundSchema.parse(getAllScoreScalesRequest));
}
export function getAllScoreScalesRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllScoreScalesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllScoreScalesRequest' from JSON`);
}
/** @internal */
export const GetAllScoreScalesResponseBody$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 GetAllScoreScalesResponseBody$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 GetAllScoreScalesResponseBody$;
(function (GetAllScoreScalesResponseBody$) {
    /** @deprecated use `GetAllScoreScalesResponseBody$inboundSchema` instead. */
    GetAllScoreScalesResponseBody$.inboundSchema = GetAllScoreScalesResponseBody$inboundSchema;
    /** @deprecated use `GetAllScoreScalesResponseBody$outboundSchema` instead. */
    GetAllScoreScalesResponseBody$.outboundSchema = GetAllScoreScalesResponseBody$outboundSchema;
})(GetAllScoreScalesResponseBody$ || (GetAllScoreScalesResponseBody$ = {}));
export function getAllScoreScalesResponseBodyToJSON(getAllScoreScalesResponseBody) {
    return JSON.stringify(GetAllScoreScalesResponseBody$outboundSchema.parse(getAllScoreScalesResponseBody));
}
export function getAllScoreScalesResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllScoreScalesResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllScoreScalesResponseBody' from JSON`);
}
/** @internal */
export const GetAllScoreScalesResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetAllScoreScalesResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetAllScoreScalesResponse$outboundSchema = z.object({
    result: z.lazy(() => GetAllScoreScalesResponseBody$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 GetAllScoreScalesResponse$;
(function (GetAllScoreScalesResponse$) {
    /** @deprecated use `GetAllScoreScalesResponse$inboundSchema` instead. */
    GetAllScoreScalesResponse$.inboundSchema = GetAllScoreScalesResponse$inboundSchema;
    /** @deprecated use `GetAllScoreScalesResponse$outboundSchema` instead. */
    GetAllScoreScalesResponse$.outboundSchema = GetAllScoreScalesResponse$outboundSchema;
})(GetAllScoreScalesResponse$ || (GetAllScoreScalesResponse$ = {}));
export function getAllScoreScalesResponseToJSON(getAllScoreScalesResponse) {
    return JSON.stringify(GetAllScoreScalesResponse$outboundSchema.parse(getAllScoreScalesResponse));
}
export function getAllScoreScalesResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllScoreScalesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllScoreScalesResponse' from JSON`);
}
//# sourceMappingURL=getallscorescales.js.map