"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.AssessmentResult$ = exports.AssessmentResult$outboundSchema = exports.AssessmentResult$inboundSchema = exports.AssessmentResultLearningObjectiveSet$ = exports.AssessmentResultLearningObjectiveSet$outboundSchema = exports.AssessmentResultLearningObjectiveSet$inboundSchema = exports.AssessmentResultLearningObjectiveId$ = exports.AssessmentResultLearningObjectiveId$outboundSchema = exports.AssessmentResultLearningObjectiveId$inboundSchema = exports.AssessmentResultScoreStatus$ = exports.AssessmentResultScoreStatus$outboundSchema = exports.AssessmentResultScoreStatus$inboundSchema = exports.AssessmentResultScoreScale$ = exports.AssessmentResultScoreScale$outboundSchema = exports.AssessmentResultScoreScale$inboundSchema = exports.AssessmentResultStudent$ = exports.AssessmentResultStudent$outboundSchema = exports.AssessmentResultStudent$inboundSchema = exports.AssessmentResultAssessmentLineItem$ = exports.AssessmentResultAssessmentLineItem$outboundSchema = exports.AssessmentResultAssessmentLineItem$inboundSchema = exports.AssessmentResultStatus$ = exports.AssessmentResultStatus$outboundSchema = exports.AssessmentResultStatus$inboundSchema = exports.AssessmentResultScoreStatus = exports.AssessmentResultStatus = void 0;
exports.assessmentResultAssessmentLineItemToJSON = assessmentResultAssessmentLineItemToJSON;
exports.assessmentResultAssessmentLineItemFromJSON = assessmentResultAssessmentLineItemFromJSON;
exports.assessmentResultStudentToJSON = assessmentResultStudentToJSON;
exports.assessmentResultStudentFromJSON = assessmentResultStudentFromJSON;
exports.assessmentResultScoreScaleToJSON = assessmentResultScoreScaleToJSON;
exports.assessmentResultScoreScaleFromJSON = assessmentResultScoreScaleFromJSON;
exports.assessmentResultLearningObjectiveIdToJSON = assessmentResultLearningObjectiveIdToJSON;
exports.assessmentResultLearningObjectiveIdFromJSON = assessmentResultLearningObjectiveIdFromJSON;
exports.assessmentResultLearningObjectiveSetToJSON = assessmentResultLearningObjectiveSetToJSON;
exports.assessmentResultLearningObjectiveSetFromJSON = assessmentResultLearningObjectiveSetFromJSON;
exports.assessmentResultToJSON = assessmentResultToJSON;
exports.assessmentResultFromJSON = assessmentResultFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
exports.AssessmentResultStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
exports.AssessmentResultScoreStatus = {
    Exempt: "exempt",
    FullyGraded: "fully graded",
    NotSubmitted: "not submitted",
    PartiallyGraded: "partially graded",
    Submitted: "submitted",
};
/** @internal */
exports.AssessmentResultStatus$inboundSchema = z.nativeEnum(exports.AssessmentResultStatus);
/** @internal */
exports.AssessmentResultStatus$outboundSchema = exports.AssessmentResultStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentResultStatus$;
(function (AssessmentResultStatus$) {
    /** @deprecated use `AssessmentResultStatus$inboundSchema` instead. */
    AssessmentResultStatus$.inboundSchema = exports.AssessmentResultStatus$inboundSchema;
    /** @deprecated use `AssessmentResultStatus$outboundSchema` instead. */
    AssessmentResultStatus$.outboundSchema = exports.AssessmentResultStatus$outboundSchema;
})(AssessmentResultStatus$ || (exports.AssessmentResultStatus$ = AssessmentResultStatus$ = {}));
/** @internal */
exports.AssessmentResultAssessmentLineItem$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.AssessmentResultAssessmentLineItem$outboundSchema = z.object({
    sourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentResultAssessmentLineItem$;
(function (AssessmentResultAssessmentLineItem$) {
    /** @deprecated use `AssessmentResultAssessmentLineItem$inboundSchema` instead. */
    AssessmentResultAssessmentLineItem$.inboundSchema = exports.AssessmentResultAssessmentLineItem$inboundSchema;
    /** @deprecated use `AssessmentResultAssessmentLineItem$outboundSchema` instead. */
    AssessmentResultAssessmentLineItem$.outboundSchema = exports.AssessmentResultAssessmentLineItem$outboundSchema;
})(AssessmentResultAssessmentLineItem$ || (exports.AssessmentResultAssessmentLineItem$ = AssessmentResultAssessmentLineItem$ = {}));
function assessmentResultAssessmentLineItemToJSON(assessmentResultAssessmentLineItem) {
    return JSON.stringify(exports.AssessmentResultAssessmentLineItem$outboundSchema.parse(assessmentResultAssessmentLineItem));
}
function assessmentResultAssessmentLineItemFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentResultAssessmentLineItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentResultAssessmentLineItem' from JSON`);
}
/** @internal */
exports.AssessmentResultStudent$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.AssessmentResultStudent$outboundSchema = z.object({
    sourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentResultStudent$;
(function (AssessmentResultStudent$) {
    /** @deprecated use `AssessmentResultStudent$inboundSchema` instead. */
    AssessmentResultStudent$.inboundSchema = exports.AssessmentResultStudent$inboundSchema;
    /** @deprecated use `AssessmentResultStudent$outboundSchema` instead. */
    AssessmentResultStudent$.outboundSchema = exports.AssessmentResultStudent$outboundSchema;
})(AssessmentResultStudent$ || (exports.AssessmentResultStudent$ = AssessmentResultStudent$ = {}));
function assessmentResultStudentToJSON(assessmentResultStudent) {
    return JSON.stringify(exports.AssessmentResultStudent$outboundSchema.parse(assessmentResultStudent));
}
function assessmentResultStudentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentResultStudent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentResultStudent' from JSON`);
}
/** @internal */
exports.AssessmentResultScoreScale$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.AssessmentResultScoreScale$outboundSchema = z.object({
    sourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentResultScoreScale$;
(function (AssessmentResultScoreScale$) {
    /** @deprecated use `AssessmentResultScoreScale$inboundSchema` instead. */
    AssessmentResultScoreScale$.inboundSchema = exports.AssessmentResultScoreScale$inboundSchema;
    /** @deprecated use `AssessmentResultScoreScale$outboundSchema` instead. */
    AssessmentResultScoreScale$.outboundSchema = exports.AssessmentResultScoreScale$outboundSchema;
})(AssessmentResultScoreScale$ || (exports.AssessmentResultScoreScale$ = AssessmentResultScoreScale$ = {}));
function assessmentResultScoreScaleToJSON(assessmentResultScoreScale) {
    return JSON.stringify(exports.AssessmentResultScoreScale$outboundSchema.parse(assessmentResultScoreScale));
}
function assessmentResultScoreScaleFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentResultScoreScale$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentResultScoreScale' from JSON`);
}
/** @internal */
exports.AssessmentResultScoreStatus$inboundSchema = z.nativeEnum(exports.AssessmentResultScoreStatus);
/** @internal */
exports.AssessmentResultScoreStatus$outboundSchema = exports.AssessmentResultScoreStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentResultScoreStatus$;
(function (AssessmentResultScoreStatus$) {
    /** @deprecated use `AssessmentResultScoreStatus$inboundSchema` instead. */
    AssessmentResultScoreStatus$.inboundSchema = exports.AssessmentResultScoreStatus$inboundSchema;
    /** @deprecated use `AssessmentResultScoreStatus$outboundSchema` instead. */
    AssessmentResultScoreStatus$.outboundSchema = exports.AssessmentResultScoreStatus$outboundSchema;
})(AssessmentResultScoreStatus$ || (exports.AssessmentResultScoreStatus$ = AssessmentResultScoreStatus$ = {}));
/** @internal */
exports.AssessmentResultLearningObjectiveId$inboundSchema = z.object({
    learningObjectiveId: z.string(),
    score: z.number().optional(),
    textScore: z.string().optional(),
});
/** @internal */
exports.AssessmentResultLearningObjectiveId$outboundSchema = z.object({
    learningObjectiveId: z.string(),
    score: z.number().optional(),
    textScore: 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 AssessmentResultLearningObjectiveId$;
(function (AssessmentResultLearningObjectiveId$) {
    /** @deprecated use `AssessmentResultLearningObjectiveId$inboundSchema` instead. */
    AssessmentResultLearningObjectiveId$.inboundSchema = exports.AssessmentResultLearningObjectiveId$inboundSchema;
    /** @deprecated use `AssessmentResultLearningObjectiveId$outboundSchema` instead. */
    AssessmentResultLearningObjectiveId$.outboundSchema = exports.AssessmentResultLearningObjectiveId$outboundSchema;
})(AssessmentResultLearningObjectiveId$ || (exports.AssessmentResultLearningObjectiveId$ = AssessmentResultLearningObjectiveId$ = {}));
function assessmentResultLearningObjectiveIdToJSON(assessmentResultLearningObjectiveId) {
    return JSON.stringify(exports.AssessmentResultLearningObjectiveId$outboundSchema.parse(assessmentResultLearningObjectiveId));
}
function assessmentResultLearningObjectiveIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentResultLearningObjectiveId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentResultLearningObjectiveId' from JSON`);
}
/** @internal */
exports.AssessmentResultLearningObjectiveSet$inboundSchema = z.object({
    source: z.string(),
    learningObjectiveIds: z.array(z.lazy(() => exports.AssessmentResultLearningObjectiveId$inboundSchema)),
});
/** @internal */
exports.AssessmentResultLearningObjectiveSet$outboundSchema = z.object({
    source: z.string(),
    learningObjectiveIds: z.array(z.lazy(() => exports.AssessmentResultLearningObjectiveId$outboundSchema)),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentResultLearningObjectiveSet$;
(function (AssessmentResultLearningObjectiveSet$) {
    /** @deprecated use `AssessmentResultLearningObjectiveSet$inboundSchema` instead. */
    AssessmentResultLearningObjectiveSet$.inboundSchema = exports.AssessmentResultLearningObjectiveSet$inboundSchema;
    /** @deprecated use `AssessmentResultLearningObjectiveSet$outboundSchema` instead. */
    AssessmentResultLearningObjectiveSet$.outboundSchema = exports.AssessmentResultLearningObjectiveSet$outboundSchema;
})(AssessmentResultLearningObjectiveSet$ || (exports.AssessmentResultLearningObjectiveSet$ = AssessmentResultLearningObjectiveSet$ = {}));
function assessmentResultLearningObjectiveSetToJSON(assessmentResultLearningObjectiveSet) {
    return JSON.stringify(exports.AssessmentResultLearningObjectiveSet$outboundSchema.parse(assessmentResultLearningObjectiveSet));
}
function assessmentResultLearningObjectiveSetFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentResultLearningObjectiveSet$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentResultLearningObjectiveSet' from JSON`);
}
/** @internal */
exports.AssessmentResult$inboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.AssessmentResultStatus$inboundSchema,
    dateLastModified: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    assessmentLineItem: z.lazy(() => exports.AssessmentResultAssessmentLineItem$inboundSchema),
    student: z.lazy(() => exports.AssessmentResultStudent$inboundSchema),
    score: z.nullable(z.number()).optional(),
    textScore: z.nullable(z.string()).optional(),
    scoreDate: z.string().datetime({ offset: true }).transform(v => new Date(v)),
    scoreScale: z.nullable(z.lazy(() => exports.AssessmentResultScoreScale$inboundSchema))
        .optional(),
    scorePercentile: z.nullable(z.number()).optional(),
    scoreStatus: exports.AssessmentResultScoreStatus$inboundSchema,
    comment: z.nullable(z.string()).optional(),
    learningObjectiveSet: z.nullable(z.array(z.lazy(() => exports.AssessmentResultLearningObjectiveSet$inboundSchema))).optional(),
    inProgress: z.nullable(z.string()).optional(),
    incomplete: z.nullable(z.string()).optional(),
    late: z.nullable(z.string()).optional(),
    missing: z.nullable(z.string()).optional(),
});
/** @internal */
exports.AssessmentResult$outboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.AssessmentResultStatus$outboundSchema,
    dateLastModified: z.date().transform(v => v.toISOString()).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    assessmentLineItem: z.lazy(() => exports.AssessmentResultAssessmentLineItem$outboundSchema),
    student: z.lazy(() => exports.AssessmentResultStudent$outboundSchema),
    score: z.nullable(z.number()).optional(),
    textScore: z.nullable(z.string()).optional(),
    scoreDate: z.date().transform(v => v.toISOString()),
    scoreScale: z.nullable(z.lazy(() => exports.AssessmentResultScoreScale$outboundSchema)).optional(),
    scorePercentile: z.nullable(z.number()).optional(),
    scoreStatus: exports.AssessmentResultScoreStatus$outboundSchema,
    comment: z.nullable(z.string()).optional(),
    learningObjectiveSet: z.nullable(z.array(z.lazy(() => exports.AssessmentResultLearningObjectiveSet$outboundSchema))).optional(),
    inProgress: z.nullable(z.string()).optional(),
    incomplete: z.nullable(z.string()).optional(),
    late: z.nullable(z.string()).optional(),
    missing: z.nullable(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 AssessmentResult$;
(function (AssessmentResult$) {
    /** @deprecated use `AssessmentResult$inboundSchema` instead. */
    AssessmentResult$.inboundSchema = exports.AssessmentResult$inboundSchema;
    /** @deprecated use `AssessmentResult$outboundSchema` instead. */
    AssessmentResult$.outboundSchema = exports.AssessmentResult$outboundSchema;
})(AssessmentResult$ || (exports.AssessmentResult$ = AssessmentResult$ = {}));
function assessmentResultToJSON(assessmentResult) {
    return JSON.stringify(exports.AssessmentResult$outboundSchema.parse(assessmentResult));
}
function assessmentResultFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentResult' from JSON`);
}
//# sourceMappingURL=assessmentresult.js.map