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