"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.GetAllAssessmentResultsResponse$ = exports.GetAllAssessmentResultsResponse$outboundSchema = exports.GetAllAssessmentResultsResponse$inboundSchema = exports.GetAllAssessmentResultsResponseBody$ = exports.GetAllAssessmentResultsResponseBody$outboundSchema = exports.GetAllAssessmentResultsResponseBody$inboundSchema = exports.GetAllAssessmentResultsRequest$ = exports.GetAllAssessmentResultsRequest$outboundSchema = exports.GetAllAssessmentResultsRequest$inboundSchema = exports.GetAllAssessmentResultsOrderBy$ = exports.GetAllAssessmentResultsOrderBy$outboundSchema = exports.GetAllAssessmentResultsOrderBy$inboundSchema = exports.GetAllAssessmentResultsOrderBy = void 0;
exports.getAllAssessmentResultsRequestToJSON = getAllAssessmentResultsRequestToJSON;
exports.getAllAssessmentResultsRequestFromJSON = getAllAssessmentResultsRequestFromJSON;
exports.getAllAssessmentResultsResponseBodyToJSON = getAllAssessmentResultsResponseBodyToJSON;
exports.getAllAssessmentResultsResponseBodyFromJSON = getAllAssessmentResultsResponseBodyFromJSON;
exports.getAllAssessmentResultsResponseToJSON = getAllAssessmentResultsResponseToJSON;
exports.getAllAssessmentResultsResponseFromJSON = getAllAssessmentResultsResponseFromJSON;
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.GetAllAssessmentResultsOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetAllAssessmentResultsOrderBy$inboundSchema = z.nativeEnum(exports.GetAllAssessmentResultsOrderBy);
/** @internal */
exports.GetAllAssessmentResultsOrderBy$outboundSchema = exports.GetAllAssessmentResultsOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllAssessmentResultsOrderBy$;
(function (GetAllAssessmentResultsOrderBy$) {
    /** @deprecated use `GetAllAssessmentResultsOrderBy$inboundSchema` instead. */
    GetAllAssessmentResultsOrderBy$.inboundSchema = exports.GetAllAssessmentResultsOrderBy$inboundSchema;
    /** @deprecated use `GetAllAssessmentResultsOrderBy$outboundSchema` instead. */
    GetAllAssessmentResultsOrderBy$.outboundSchema = exports.GetAllAssessmentResultsOrderBy$outboundSchema;
})(GetAllAssessmentResultsOrderBy$ || (exports.GetAllAssessmentResultsOrderBy$ = GetAllAssessmentResultsOrderBy$ = {}));
/** @internal */
exports.GetAllAssessmentResultsRequest$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.GetAllAssessmentResultsOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetAllAssessmentResultsRequest$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.GetAllAssessmentResultsOrderBy$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 GetAllAssessmentResultsRequest$;
(function (GetAllAssessmentResultsRequest$) {
    /** @deprecated use `GetAllAssessmentResultsRequest$inboundSchema` instead. */
    GetAllAssessmentResultsRequest$.inboundSchema = exports.GetAllAssessmentResultsRequest$inboundSchema;
    /** @deprecated use `GetAllAssessmentResultsRequest$outboundSchema` instead. */
    GetAllAssessmentResultsRequest$.outboundSchema = exports.GetAllAssessmentResultsRequest$outboundSchema;
})(GetAllAssessmentResultsRequest$ || (exports.GetAllAssessmentResultsRequest$ = GetAllAssessmentResultsRequest$ = {}));
function getAllAssessmentResultsRequestToJSON(getAllAssessmentResultsRequest) {
    return JSON.stringify(exports.GetAllAssessmentResultsRequest$outboundSchema.parse(getAllAssessmentResultsRequest));
}
function getAllAssessmentResultsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllAssessmentResultsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllAssessmentResultsRequest' from JSON`);
}
/** @internal */
exports.GetAllAssessmentResultsResponseBody$inboundSchema = z.object({
    assessmentResults: z.array(components.AssessmentResult$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetAllAssessmentResultsResponseBody$outboundSchema = z.object({
    assessmentResults: z.array(components.AssessmentResult$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 GetAllAssessmentResultsResponseBody$;
(function (GetAllAssessmentResultsResponseBody$) {
    /** @deprecated use `GetAllAssessmentResultsResponseBody$inboundSchema` instead. */
    GetAllAssessmentResultsResponseBody$.inboundSchema = exports.GetAllAssessmentResultsResponseBody$inboundSchema;
    /** @deprecated use `GetAllAssessmentResultsResponseBody$outboundSchema` instead. */
    GetAllAssessmentResultsResponseBody$.outboundSchema = exports.GetAllAssessmentResultsResponseBody$outboundSchema;
})(GetAllAssessmentResultsResponseBody$ || (exports.GetAllAssessmentResultsResponseBody$ = GetAllAssessmentResultsResponseBody$ = {}));
function getAllAssessmentResultsResponseBodyToJSON(getAllAssessmentResultsResponseBody) {
    return JSON.stringify(exports.GetAllAssessmentResultsResponseBody$outboundSchema.parse(getAllAssessmentResultsResponseBody));
}
function getAllAssessmentResultsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllAssessmentResultsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllAssessmentResultsResponseBody' from JSON`);
}
/** @internal */
exports.GetAllAssessmentResultsResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetAllAssessmentResultsResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetAllAssessmentResultsResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetAllAssessmentResultsResponseBody$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 GetAllAssessmentResultsResponse$;
(function (GetAllAssessmentResultsResponse$) {
    /** @deprecated use `GetAllAssessmentResultsResponse$inboundSchema` instead. */
    GetAllAssessmentResultsResponse$.inboundSchema = exports.GetAllAssessmentResultsResponse$inboundSchema;
    /** @deprecated use `GetAllAssessmentResultsResponse$outboundSchema` instead. */
    GetAllAssessmentResultsResponse$.outboundSchema = exports.GetAllAssessmentResultsResponse$outboundSchema;
})(GetAllAssessmentResultsResponse$ || (exports.GetAllAssessmentResultsResponse$ = GetAllAssessmentResultsResponse$ = {}));
function getAllAssessmentResultsResponseToJSON(getAllAssessmentResultsResponse) {
    return JSON.stringify(exports.GetAllAssessmentResultsResponse$outboundSchema.parse(getAllAssessmentResultsResponse));
}
function getAllAssessmentResultsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllAssessmentResultsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllAssessmentResultsResponse' from JSON`);
}
//# sourceMappingURL=getallassessmentresults.js.map