/*
 * 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 GetLineItemsForSchoolOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetLineItemsForSchoolOrderBy$inboundSchema = z.nativeEnum(GetLineItemsForSchoolOrderBy);
/** @internal */
export const GetLineItemsForSchoolOrderBy$outboundSchema = GetLineItemsForSchoolOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetLineItemsForSchoolOrderBy$;
(function (GetLineItemsForSchoolOrderBy$) {
    /** @deprecated use `GetLineItemsForSchoolOrderBy$inboundSchema` instead. */
    GetLineItemsForSchoolOrderBy$.inboundSchema = GetLineItemsForSchoolOrderBy$inboundSchema;
    /** @deprecated use `GetLineItemsForSchoolOrderBy$outboundSchema` instead. */
    GetLineItemsForSchoolOrderBy$.outboundSchema = GetLineItemsForSchoolOrderBy$outboundSchema;
})(GetLineItemsForSchoolOrderBy$ || (GetLineItemsForSchoolOrderBy$ = {}));
/** @internal */
export const GetLineItemsForSchoolRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetLineItemsForSchoolOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetLineItemsForSchoolRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetLineItemsForSchoolOrderBy$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 GetLineItemsForSchoolRequest$;
(function (GetLineItemsForSchoolRequest$) {
    /** @deprecated use `GetLineItemsForSchoolRequest$inboundSchema` instead. */
    GetLineItemsForSchoolRequest$.inboundSchema = GetLineItemsForSchoolRequest$inboundSchema;
    /** @deprecated use `GetLineItemsForSchoolRequest$outboundSchema` instead. */
    GetLineItemsForSchoolRequest$.outboundSchema = GetLineItemsForSchoolRequest$outboundSchema;
})(GetLineItemsForSchoolRequest$ || (GetLineItemsForSchoolRequest$ = {}));
export function getLineItemsForSchoolRequestToJSON(getLineItemsForSchoolRequest) {
    return JSON.stringify(GetLineItemsForSchoolRequest$outboundSchema.parse(getLineItemsForSchoolRequest));
}
export function getLineItemsForSchoolRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetLineItemsForSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemsForSchoolRequest' from JSON`);
}
/** @internal */
export const GetLineItemsForSchoolResponseBody$inboundSchema = z.object({
    lineItems: z.array(components.LineItem$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetLineItemsForSchoolResponseBody$outboundSchema = z.object({
    lineItems: z.array(components.LineItem$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 GetLineItemsForSchoolResponseBody$;
(function (GetLineItemsForSchoolResponseBody$) {
    /** @deprecated use `GetLineItemsForSchoolResponseBody$inboundSchema` instead. */
    GetLineItemsForSchoolResponseBody$.inboundSchema = GetLineItemsForSchoolResponseBody$inboundSchema;
    /** @deprecated use `GetLineItemsForSchoolResponseBody$outboundSchema` instead. */
    GetLineItemsForSchoolResponseBody$.outboundSchema = GetLineItemsForSchoolResponseBody$outboundSchema;
})(GetLineItemsForSchoolResponseBody$ || (GetLineItemsForSchoolResponseBody$ = {}));
export function getLineItemsForSchoolResponseBodyToJSON(getLineItemsForSchoolResponseBody) {
    return JSON.stringify(GetLineItemsForSchoolResponseBody$outboundSchema.parse(getLineItemsForSchoolResponseBody));
}
export function getLineItemsForSchoolResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetLineItemsForSchoolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemsForSchoolResponseBody' from JSON`);
}
/** @internal */
export const GetLineItemsForSchoolResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetLineItemsForSchoolResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetLineItemsForSchoolResponse$outboundSchema = z.object({
    result: z.lazy(() => GetLineItemsForSchoolResponseBody$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 GetLineItemsForSchoolResponse$;
(function (GetLineItemsForSchoolResponse$) {
    /** @deprecated use `GetLineItemsForSchoolResponse$inboundSchema` instead. */
    GetLineItemsForSchoolResponse$.inboundSchema = GetLineItemsForSchoolResponse$inboundSchema;
    /** @deprecated use `GetLineItemsForSchoolResponse$outboundSchema` instead. */
    GetLineItemsForSchoolResponse$.outboundSchema = GetLineItemsForSchoolResponse$outboundSchema;
})(GetLineItemsForSchoolResponse$ || (GetLineItemsForSchoolResponse$ = {}));
export function getLineItemsForSchoolResponseToJSON(getLineItemsForSchoolResponse) {
    return JSON.stringify(GetLineItemsForSchoolResponse$outboundSchema.parse(getLineItemsForSchoolResponse));
}
export function getLineItemsForSchoolResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetLineItemsForSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemsForSchoolResponse' from JSON`);
}
//# sourceMappingURL=getlineitemsforschool.js.map