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