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