/*
 * 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 GetAllAssessmentLineItemsOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetAllAssessmentLineItemsOrderBy$inboundSchema = z.nativeEnum(GetAllAssessmentLineItemsOrderBy);
/** @internal */
export const GetAllAssessmentLineItemsOrderBy$outboundSchema = GetAllAssessmentLineItemsOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAllAssessmentLineItemsOrderBy$;
(function (GetAllAssessmentLineItemsOrderBy$) {
    /** @deprecated use `GetAllAssessmentLineItemsOrderBy$inboundSchema` instead. */
    GetAllAssessmentLineItemsOrderBy$.inboundSchema = GetAllAssessmentLineItemsOrderBy$inboundSchema;
    /** @deprecated use `GetAllAssessmentLineItemsOrderBy$outboundSchema` instead. */
    GetAllAssessmentLineItemsOrderBy$.outboundSchema = GetAllAssessmentLineItemsOrderBy$outboundSchema;
})(GetAllAssessmentLineItemsOrderBy$ || (GetAllAssessmentLineItemsOrderBy$ = {}));
/** @internal */
export const GetAllAssessmentLineItemsRequest$inboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetAllAssessmentLineItemsOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetAllAssessmentLineItemsRequest$outboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetAllAssessmentLineItemsOrderBy$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 GetAllAssessmentLineItemsRequest$;
(function (GetAllAssessmentLineItemsRequest$) {
    /** @deprecated use `GetAllAssessmentLineItemsRequest$inboundSchema` instead. */
    GetAllAssessmentLineItemsRequest$.inboundSchema = GetAllAssessmentLineItemsRequest$inboundSchema;
    /** @deprecated use `GetAllAssessmentLineItemsRequest$outboundSchema` instead. */
    GetAllAssessmentLineItemsRequest$.outboundSchema = GetAllAssessmentLineItemsRequest$outboundSchema;
})(GetAllAssessmentLineItemsRequest$ || (GetAllAssessmentLineItemsRequest$ = {}));
export function getAllAssessmentLineItemsRequestToJSON(getAllAssessmentLineItemsRequest) {
    return JSON.stringify(GetAllAssessmentLineItemsRequest$outboundSchema.parse(getAllAssessmentLineItemsRequest));
}
export function getAllAssessmentLineItemsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllAssessmentLineItemsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllAssessmentLineItemsRequest' from JSON`);
}
/** @internal */
export const GetAllAssessmentLineItemsResponseBody$inboundSchema = z.object({
    assessmentLineItems: z.array(components.AssessmentLineItem$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetAllAssessmentLineItemsResponseBody$outboundSchema = z.object({
    assessmentLineItems: z.array(components.AssessmentLineItem$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 GetAllAssessmentLineItemsResponseBody$;
(function (GetAllAssessmentLineItemsResponseBody$) {
    /** @deprecated use `GetAllAssessmentLineItemsResponseBody$inboundSchema` instead. */
    GetAllAssessmentLineItemsResponseBody$.inboundSchema = GetAllAssessmentLineItemsResponseBody$inboundSchema;
    /** @deprecated use `GetAllAssessmentLineItemsResponseBody$outboundSchema` instead. */
    GetAllAssessmentLineItemsResponseBody$.outboundSchema = GetAllAssessmentLineItemsResponseBody$outboundSchema;
})(GetAllAssessmentLineItemsResponseBody$ || (GetAllAssessmentLineItemsResponseBody$ = {}));
export function getAllAssessmentLineItemsResponseBodyToJSON(getAllAssessmentLineItemsResponseBody) {
    return JSON.stringify(GetAllAssessmentLineItemsResponseBody$outboundSchema.parse(getAllAssessmentLineItemsResponseBody));
}
export function getAllAssessmentLineItemsResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllAssessmentLineItemsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllAssessmentLineItemsResponseBody' from JSON`);
}
/** @internal */
export const GetAllAssessmentLineItemsResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetAllAssessmentLineItemsResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetAllAssessmentLineItemsResponse$outboundSchema = z.object({
    result: z.lazy(() => GetAllAssessmentLineItemsResponseBody$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 GetAllAssessmentLineItemsResponse$;
(function (GetAllAssessmentLineItemsResponse$) {
    /** @deprecated use `GetAllAssessmentLineItemsResponse$inboundSchema` instead. */
    GetAllAssessmentLineItemsResponse$.inboundSchema = GetAllAssessmentLineItemsResponse$inboundSchema;
    /** @deprecated use `GetAllAssessmentLineItemsResponse$outboundSchema` instead. */
    GetAllAssessmentLineItemsResponse$.outboundSchema = GetAllAssessmentLineItemsResponse$outboundSchema;
})(GetAllAssessmentLineItemsResponse$ || (GetAllAssessmentLineItemsResponse$ = {}));
export function getAllAssessmentLineItemsResponseToJSON(getAllAssessmentLineItemsResponse) {
    return JSON.stringify(GetAllAssessmentLineItemsResponse$outboundSchema.parse(getAllAssessmentLineItemsResponse));
}
export function getAllAssessmentLineItemsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllAssessmentLineItemsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllAssessmentLineItemsResponse' from JSON`);
}
//# sourceMappingURL=getallassessmentlineitems.js.map