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