"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.lmsCreateAssignmentRequestDtoFromJSON = exports.lmsCreateAssignmentRequestDtoToJSON = exports.LmsCreateAssignmentRequestDto$ = exports.LmsCreateAssignmentRequestDto$outboundSchema = exports.LmsCreateAssignmentRequestDto$inboundSchema = exports.lmsCreateAssignmentRequestDtoStatusFromJSON = exports.lmsCreateAssignmentRequestDtoStatusToJSON = exports.LmsCreateAssignmentRequestDtoStatus$ = exports.LmsCreateAssignmentRequestDtoStatus$outboundSchema = exports.LmsCreateAssignmentRequestDtoStatus$inboundSchema = exports.LmsCreateAssignmentRequestDtoValue$ = exports.LmsCreateAssignmentRequestDtoValue$outboundSchema = exports.LmsCreateAssignmentRequestDtoValue$inboundSchema = exports.lmsCreateAssignmentRequestDtoSourceValueFromJSON = exports.lmsCreateAssignmentRequestDtoSourceValueToJSON = exports.LmsCreateAssignmentRequestDtoSourceValue$ = exports.LmsCreateAssignmentRequestDtoSourceValue$outboundSchema = exports.LmsCreateAssignmentRequestDtoSourceValue$inboundSchema = exports.lmsCreateAssignmentRequestDto4FromJSON = exports.lmsCreateAssignmentRequestDto4ToJSON = exports.LmsCreateAssignmentRequestDto4$ = exports.LmsCreateAssignmentRequestDto4$outboundSchema = exports.LmsCreateAssignmentRequestDto4$inboundSchema = exports.LmsCreateAssignmentRequestDtoValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
var LmsCreateAssignmentRequestDtoValue;
(function (LmsCreateAssignmentRequestDtoValue) {
    LmsCreateAssignmentRequestDtoValue["Pending"] = "pending";
    LmsCreateAssignmentRequestDtoValue["InProgress"] = "in_progress";
    LmsCreateAssignmentRequestDtoValue["Completed"] = "completed";
})(LmsCreateAssignmentRequestDtoValue || (exports.LmsCreateAssignmentRequestDtoValue = LmsCreateAssignmentRequestDtoValue = {}));
/** @internal */
exports.LmsCreateAssignmentRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.LmsCreateAssignmentRequestDto4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsCreateAssignmentRequestDto4$;
(function (LmsCreateAssignmentRequestDto4$) {
    /** @deprecated use `LmsCreateAssignmentRequestDto4$inboundSchema` instead. */
    LmsCreateAssignmentRequestDto4$.inboundSchema = exports.LmsCreateAssignmentRequestDto4$inboundSchema;
    /** @deprecated use `LmsCreateAssignmentRequestDto4$outboundSchema` instead. */
    LmsCreateAssignmentRequestDto4$.outboundSchema = exports.LmsCreateAssignmentRequestDto4$outboundSchema;
})(LmsCreateAssignmentRequestDto4$ || (exports.LmsCreateAssignmentRequestDto4$ = LmsCreateAssignmentRequestDto4$ = {}));
function lmsCreateAssignmentRequestDto4ToJSON(lmsCreateAssignmentRequestDto4) {
    return JSON.stringify(exports.LmsCreateAssignmentRequestDto4$outboundSchema.parse(lmsCreateAssignmentRequestDto4));
}
exports.lmsCreateAssignmentRequestDto4ToJSON = lmsCreateAssignmentRequestDto4ToJSON;
function lmsCreateAssignmentRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsCreateAssignmentRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsCreateAssignmentRequestDto4' from JSON`);
}
exports.lmsCreateAssignmentRequestDto4FromJSON = lmsCreateAssignmentRequestDto4FromJSON;
/** @internal */
exports.LmsCreateAssignmentRequestDtoSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.LmsCreateAssignmentRequestDto4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.LmsCreateAssignmentRequestDtoSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.LmsCreateAssignmentRequestDto4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsCreateAssignmentRequestDtoSourceValue$;
(function (LmsCreateAssignmentRequestDtoSourceValue$) {
    /** @deprecated use `LmsCreateAssignmentRequestDtoSourceValue$inboundSchema` instead. */
    LmsCreateAssignmentRequestDtoSourceValue$.inboundSchema = exports.LmsCreateAssignmentRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `LmsCreateAssignmentRequestDtoSourceValue$outboundSchema` instead. */
    LmsCreateAssignmentRequestDtoSourceValue$.outboundSchema = exports.LmsCreateAssignmentRequestDtoSourceValue$outboundSchema;
})(LmsCreateAssignmentRequestDtoSourceValue$ || (exports.LmsCreateAssignmentRequestDtoSourceValue$ = LmsCreateAssignmentRequestDtoSourceValue$ = {}));
function lmsCreateAssignmentRequestDtoSourceValueToJSON(lmsCreateAssignmentRequestDtoSourceValue) {
    return JSON.stringify(exports.LmsCreateAssignmentRequestDtoSourceValue$outboundSchema.parse(lmsCreateAssignmentRequestDtoSourceValue));
}
exports.lmsCreateAssignmentRequestDtoSourceValueToJSON = lmsCreateAssignmentRequestDtoSourceValueToJSON;
function lmsCreateAssignmentRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsCreateAssignmentRequestDtoSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsCreateAssignmentRequestDtoSourceValue' from JSON`);
}
exports.lmsCreateAssignmentRequestDtoSourceValueFromJSON = lmsCreateAssignmentRequestDtoSourceValueFromJSON;
/** @internal */
exports.LmsCreateAssignmentRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(LmsCreateAssignmentRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.LmsCreateAssignmentRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(LmsCreateAssignmentRequestDtoValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsCreateAssignmentRequestDtoValue$;
(function (LmsCreateAssignmentRequestDtoValue$) {
    /** @deprecated use `LmsCreateAssignmentRequestDtoValue$inboundSchema` instead. */
    LmsCreateAssignmentRequestDtoValue$.inboundSchema = exports.LmsCreateAssignmentRequestDtoValue$inboundSchema;
    /** @deprecated use `LmsCreateAssignmentRequestDtoValue$outboundSchema` instead. */
    LmsCreateAssignmentRequestDtoValue$.outboundSchema = exports.LmsCreateAssignmentRequestDtoValue$outboundSchema;
})(LmsCreateAssignmentRequestDtoValue$ || (exports.LmsCreateAssignmentRequestDtoValue$ = LmsCreateAssignmentRequestDtoValue$ = {}));
/** @internal */
exports.LmsCreateAssignmentRequestDtoStatus$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.LmsCreateAssignmentRequestDto4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LmsCreateAssignmentRequestDtoValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.LmsCreateAssignmentRequestDtoStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.LmsCreateAssignmentRequestDto4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LmsCreateAssignmentRequestDtoValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsCreateAssignmentRequestDtoStatus$;
(function (LmsCreateAssignmentRequestDtoStatus$) {
    /** @deprecated use `LmsCreateAssignmentRequestDtoStatus$inboundSchema` instead. */
    LmsCreateAssignmentRequestDtoStatus$.inboundSchema = exports.LmsCreateAssignmentRequestDtoStatus$inboundSchema;
    /** @deprecated use `LmsCreateAssignmentRequestDtoStatus$outboundSchema` instead. */
    LmsCreateAssignmentRequestDtoStatus$.outboundSchema = exports.LmsCreateAssignmentRequestDtoStatus$outboundSchema;
})(LmsCreateAssignmentRequestDtoStatus$ || (exports.LmsCreateAssignmentRequestDtoStatus$ = LmsCreateAssignmentRequestDtoStatus$ = {}));
function lmsCreateAssignmentRequestDtoStatusToJSON(lmsCreateAssignmentRequestDtoStatus) {
    return JSON.stringify(exports.LmsCreateAssignmentRequestDtoStatus$outboundSchema.parse(lmsCreateAssignmentRequestDtoStatus));
}
exports.lmsCreateAssignmentRequestDtoStatusToJSON = lmsCreateAssignmentRequestDtoStatusToJSON;
function lmsCreateAssignmentRequestDtoStatusFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsCreateAssignmentRequestDtoStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsCreateAssignmentRequestDtoStatus' from JSON`);
}
exports.lmsCreateAssignmentRequestDtoStatusFromJSON = lmsCreateAssignmentRequestDtoStatusFromJSON;
/** @internal */
exports.LmsCreateAssignmentRequestDto$inboundSchema = z.object({
    created_at: z.nullable(z.string()).optional(),
    due_date: z.nullable(z.string()).optional(),
    external_reference: z.nullable(z.string()).optional(),
    learning_object_external_reference: z.nullable(z.string()).optional(),
    learning_object_id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    progress: z.nullable(z.number()).optional(),
    status: z.nullable(z.lazy(() => exports.LmsCreateAssignmentRequestDtoStatus$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "created_at": "createdAt",
        "due_date": "dueDate",
        "external_reference": "externalReference",
        "learning_object_external_reference": "learningObjectExternalReference",
        "learning_object_id": "learningObjectId",
    });
});
/** @internal */
exports.LmsCreateAssignmentRequestDto$outboundSchema = z.object({
    createdAt: z.nullable(z.string()).optional(),
    dueDate: z.nullable(z.string()).optional(),
    externalReference: z.nullable(z.string()).optional(),
    learningObjectExternalReference: z.nullable(z.string()).optional(),
    learningObjectId: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    progress: z.nullable(z.number()).optional(),
    status: z.nullable(z.lazy(() => exports.LmsCreateAssignmentRequestDtoStatus$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        createdAt: "created_at",
        dueDate: "due_date",
        externalReference: "external_reference",
        learningObjectExternalReference: "learning_object_external_reference",
        learningObjectId: "learning_object_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsCreateAssignmentRequestDto$;
(function (LmsCreateAssignmentRequestDto$) {
    /** @deprecated use `LmsCreateAssignmentRequestDto$inboundSchema` instead. */
    LmsCreateAssignmentRequestDto$.inboundSchema = exports.LmsCreateAssignmentRequestDto$inboundSchema;
    /** @deprecated use `LmsCreateAssignmentRequestDto$outboundSchema` instead. */
    LmsCreateAssignmentRequestDto$.outboundSchema = exports.LmsCreateAssignmentRequestDto$outboundSchema;
})(LmsCreateAssignmentRequestDto$ || (exports.LmsCreateAssignmentRequestDto$ = LmsCreateAssignmentRequestDto$ = {}));
function lmsCreateAssignmentRequestDtoToJSON(lmsCreateAssignmentRequestDto) {
    return JSON.stringify(exports.LmsCreateAssignmentRequestDto$outboundSchema.parse(lmsCreateAssignmentRequestDto));
}
exports.lmsCreateAssignmentRequestDtoToJSON = lmsCreateAssignmentRequestDtoToJSON;
function lmsCreateAssignmentRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsCreateAssignmentRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsCreateAssignmentRequestDto' from JSON`);
}
exports.lmsCreateAssignmentRequestDtoFromJSON = lmsCreateAssignmentRequestDtoFromJSON;
//# sourceMappingURL=lmscreateassignmentrequestdto.js.map