"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 (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Assignment$ = exports.Assignment$outboundSchema = exports.Assignment$inboundSchema = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const assignmentstatusenum_js_1 = require("./assignmentstatusenum.js");
const learningobjecttypeenum_js_1 = require("./learningobjecttypeenum.js");
/** @internal */
exports.Assignment$inboundSchema = z.object({
    course_id: z.nullable(z.string()).optional(),
    created_at: z.nullable(z.string()).optional(),
    due_date: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    learning_object_external_reference: z.nullable(z.string()).optional(),
    learning_object_id: z.nullable(z.string()).optional(),
    learning_object_type: z.nullable(z.array(learningobjecttypeenum_js_1.LearningObjectTypeEnum$inboundSchema)).optional(),
    progress: z.nullable(z.number()).optional(),
    remote_course_id: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    remote_learning_object_id: z.nullable(z.string()).optional(),
    remote_user_id: z.nullable(z.string()).optional(),
    status: z.nullable(z.array(assignmentstatusenum_js_1.AssignmentStatusEnum$inboundSchema)).optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
    updated_at: z.nullable(z.string()).optional(),
    user_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "course_id": "courseId",
        "created_at": "createdAt",
        "due_date": "dueDate",
        "learning_object_external_reference": "learningObjectExternalReference",
        "learning_object_id": "learningObjectId",
        "learning_object_type": "learningObjectType",
        "remote_course_id": "remoteCourseId",
        "remote_id": "remoteId",
        "remote_learning_object_id": "remoteLearningObjectId",
        "remote_user_id": "remoteUserId",
        "unified_custom_fields": "unifiedCustomFields",
        "updated_at": "updatedAt",
        "user_id": "userId",
    });
});
/** @internal */
exports.Assignment$outboundSchema = z.object({
    courseId: z.nullable(z.string()).optional(),
    createdAt: z.nullable(z.string()).optional(),
    dueDate: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    learningObjectExternalReference: z.nullable(z.string()).optional(),
    learningObjectId: z.nullable(z.string()).optional(),
    learningObjectType: z.nullable(z.array(learningobjecttypeenum_js_1.LearningObjectTypeEnum$outboundSchema))
        .optional(),
    progress: z.nullable(z.number()).optional(),
    remoteCourseId: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    remoteLearningObjectId: z.nullable(z.string()).optional(),
    remoteUserId: z.nullable(z.string()).optional(),
    status: z.nullable(z.array(assignmentstatusenum_js_1.AssignmentStatusEnum$outboundSchema)).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
    updatedAt: z.nullable(z.string()).optional(),
    userId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        courseId: "course_id",
        createdAt: "created_at",
        dueDate: "due_date",
        learningObjectExternalReference: "learning_object_external_reference",
        learningObjectId: "learning_object_id",
        learningObjectType: "learning_object_type",
        remoteCourseId: "remote_course_id",
        remoteId: "remote_id",
        remoteLearningObjectId: "remote_learning_object_id",
        remoteUserId: "remote_user_id",
        unifiedCustomFields: "unified_custom_fields",
        updatedAt: "updated_at",
        userId: "user_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Assignment$;
(function (Assignment$) {
    /** @deprecated use `Assignment$inboundSchema` instead. */
    Assignment$.inboundSchema = exports.Assignment$inboundSchema;
    /** @deprecated use `Assignment$outboundSchema` instead. */
    Assignment$.outboundSchema = exports.Assignment$outboundSchema;
})(Assignment$ || (exports.Assignment$ = Assignment$ = {}));
//# sourceMappingURL=assignment.js.map