"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.GetResultsForLineItemForClassResponse$ = exports.GetResultsForLineItemForClassResponse$outboundSchema = exports.GetResultsForLineItemForClassResponse$inboundSchema = exports.GetResultsForLineItemForClassResponseBody$ = exports.GetResultsForLineItemForClassResponseBody$outboundSchema = exports.GetResultsForLineItemForClassResponseBody$inboundSchema = exports.GetResultsForLineItemForClassRequest$ = exports.GetResultsForLineItemForClassRequest$outboundSchema = exports.GetResultsForLineItemForClassRequest$inboundSchema = exports.GetResultsForLineItemForClassOrderBy$ = exports.GetResultsForLineItemForClassOrderBy$outboundSchema = exports.GetResultsForLineItemForClassOrderBy$inboundSchema = exports.GetResultsForLineItemForClassOrderBy = void 0;
exports.getResultsForLineItemForClassRequestToJSON = getResultsForLineItemForClassRequestToJSON;
exports.getResultsForLineItemForClassRequestFromJSON = getResultsForLineItemForClassRequestFromJSON;
exports.getResultsForLineItemForClassResponseBodyToJSON = getResultsForLineItemForClassResponseBodyToJSON;
exports.getResultsForLineItemForClassResponseBodyFromJSON = getResultsForLineItemForClassResponseBodyFromJSON;
exports.getResultsForLineItemForClassResponseToJSON = getResultsForLineItemForClassResponseToJSON;
exports.getResultsForLineItemForClassResponseFromJSON = getResultsForLineItemForClassResponseFromJSON;
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.GetResultsForLineItemForClassOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetResultsForLineItemForClassOrderBy$inboundSchema = z.nativeEnum(exports.GetResultsForLineItemForClassOrderBy);
/** @internal */
exports.GetResultsForLineItemForClassOrderBy$outboundSchema = exports.GetResultsForLineItemForClassOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetResultsForLineItemForClassOrderBy$;
(function (GetResultsForLineItemForClassOrderBy$) {
    /** @deprecated use `GetResultsForLineItemForClassOrderBy$inboundSchema` instead. */
    GetResultsForLineItemForClassOrderBy$.inboundSchema = exports.GetResultsForLineItemForClassOrderBy$inboundSchema;
    /** @deprecated use `GetResultsForLineItemForClassOrderBy$outboundSchema` instead. */
    GetResultsForLineItemForClassOrderBy$.outboundSchema = exports.GetResultsForLineItemForClassOrderBy$outboundSchema;
})(GetResultsForLineItemForClassOrderBy$ || (exports.GetResultsForLineItemForClassOrderBy$ = GetResultsForLineItemForClassOrderBy$ = {}));
/** @internal */
exports.GetResultsForLineItemForClassRequest$inboundSchema = z.object({
    classSourcedId: z.string(),
    lineItemSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetResultsForLineItemForClassOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetResultsForLineItemForClassRequest$outboundSchema = z.object({
    classSourcedId: z.string(),
    lineItemSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetResultsForLineItemForClassOrderBy$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 GetResultsForLineItemForClassRequest$;
(function (GetResultsForLineItemForClassRequest$) {
    /** @deprecated use `GetResultsForLineItemForClassRequest$inboundSchema` instead. */
    GetResultsForLineItemForClassRequest$.inboundSchema = exports.GetResultsForLineItemForClassRequest$inboundSchema;
    /** @deprecated use `GetResultsForLineItemForClassRequest$outboundSchema` instead. */
    GetResultsForLineItemForClassRequest$.outboundSchema = exports.GetResultsForLineItemForClassRequest$outboundSchema;
})(GetResultsForLineItemForClassRequest$ || (exports.GetResultsForLineItemForClassRequest$ = GetResultsForLineItemForClassRequest$ = {}));
function getResultsForLineItemForClassRequestToJSON(getResultsForLineItemForClassRequest) {
    return JSON.stringify(exports.GetResultsForLineItemForClassRequest$outboundSchema.parse(getResultsForLineItemForClassRequest));
}
function getResultsForLineItemForClassRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetResultsForLineItemForClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultsForLineItemForClassRequest' from JSON`);
}
/** @internal */
exports.GetResultsForLineItemForClassResponseBody$inboundSchema = z.object({
    results: z.array(components.Result$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetResultsForLineItemForClassResponseBody$outboundSchema = z.object({
    results: z.array(components.Result$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 GetResultsForLineItemForClassResponseBody$;
(function (GetResultsForLineItemForClassResponseBody$) {
    /** @deprecated use `GetResultsForLineItemForClassResponseBody$inboundSchema` instead. */
    GetResultsForLineItemForClassResponseBody$.inboundSchema = exports.GetResultsForLineItemForClassResponseBody$inboundSchema;
    /** @deprecated use `GetResultsForLineItemForClassResponseBody$outboundSchema` instead. */
    GetResultsForLineItemForClassResponseBody$.outboundSchema = exports.GetResultsForLineItemForClassResponseBody$outboundSchema;
})(GetResultsForLineItemForClassResponseBody$ || (exports.GetResultsForLineItemForClassResponseBody$ = GetResultsForLineItemForClassResponseBody$ = {}));
function getResultsForLineItemForClassResponseBodyToJSON(getResultsForLineItemForClassResponseBody) {
    return JSON.stringify(exports.GetResultsForLineItemForClassResponseBody$outboundSchema.parse(getResultsForLineItemForClassResponseBody));
}
function getResultsForLineItemForClassResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetResultsForLineItemForClassResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultsForLineItemForClassResponseBody' from JSON`);
}
/** @internal */
exports.GetResultsForLineItemForClassResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetResultsForLineItemForClassResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetResultsForLineItemForClassResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetResultsForLineItemForClassResponseBody$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 GetResultsForLineItemForClassResponse$;
(function (GetResultsForLineItemForClassResponse$) {
    /** @deprecated use `GetResultsForLineItemForClassResponse$inboundSchema` instead. */
    GetResultsForLineItemForClassResponse$.inboundSchema = exports.GetResultsForLineItemForClassResponse$inboundSchema;
    /** @deprecated use `GetResultsForLineItemForClassResponse$outboundSchema` instead. */
    GetResultsForLineItemForClassResponse$.outboundSchema = exports.GetResultsForLineItemForClassResponse$outboundSchema;
})(GetResultsForLineItemForClassResponse$ || (exports.GetResultsForLineItemForClassResponse$ = GetResultsForLineItemForClassResponse$ = {}));
function getResultsForLineItemForClassResponseToJSON(getResultsForLineItemForClassResponse) {
    return JSON.stringify(exports.GetResultsForLineItemForClassResponse$outboundSchema.parse(getResultsForLineItemForClassResponse));
}
function getResultsForLineItemForClassResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetResultsForLineItemForClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultsForLineItemForClassResponse' from JSON`);
}
//# sourceMappingURL=getresultsforlineitemforclass.js.map