"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.ImportExternalTestAssignmentResultsResponse$ = exports.ImportExternalTestAssignmentResultsResponse$outboundSchema = exports.ImportExternalTestAssignmentResultsResponse$inboundSchema = exports.ImportExternalTestAssignmentResultsCredentials$ = exports.ImportExternalTestAssignmentResultsCredentials$outboundSchema = exports.ImportExternalTestAssignmentResultsCredentials$inboundSchema = exports.ImportExternalTestAssignmentResultsLessonType$ = exports.ImportExternalTestAssignmentResultsLessonType$outboundSchema = exports.ImportExternalTestAssignmentResultsLessonType$inboundSchema = exports.ImportExternalTestAssignmentResultsRequest$ = exports.ImportExternalTestAssignmentResultsRequest$outboundSchema = exports.ImportExternalTestAssignmentResultsRequest$inboundSchema = exports.ImportExternalTestAssignmentResultsLessonType = void 0;
exports.importExternalTestAssignmentResultsRequestToJSON = importExternalTestAssignmentResultsRequestToJSON;
exports.importExternalTestAssignmentResultsRequestFromJSON = importExternalTestAssignmentResultsRequestFromJSON;
exports.importExternalTestAssignmentResultsCredentialsToJSON = importExternalTestAssignmentResultsCredentialsToJSON;
exports.importExternalTestAssignmentResultsCredentialsFromJSON = importExternalTestAssignmentResultsCredentialsFromJSON;
exports.importExternalTestAssignmentResultsResponseToJSON = importExternalTestAssignmentResultsResponseToJSON;
exports.importExternalTestAssignmentResultsResponseFromJSON = importExternalTestAssignmentResultsResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
exports.ImportExternalTestAssignmentResultsLessonType = {
    TestOut: "test-out",
    Placement: "placement",
};
/** @internal */
exports.ImportExternalTestAssignmentResultsRequest$inboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
    applicationName: z.string().optional(),
});
/** @internal */
exports.ImportExternalTestAssignmentResultsRequest$outboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
    applicationName: 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 ImportExternalTestAssignmentResultsRequest$;
(function (ImportExternalTestAssignmentResultsRequest$) {
    /** @deprecated use `ImportExternalTestAssignmentResultsRequest$inboundSchema` instead. */
    ImportExternalTestAssignmentResultsRequest$.inboundSchema = exports.ImportExternalTestAssignmentResultsRequest$inboundSchema;
    /** @deprecated use `ImportExternalTestAssignmentResultsRequest$outboundSchema` instead. */
    ImportExternalTestAssignmentResultsRequest$.outboundSchema = exports.ImportExternalTestAssignmentResultsRequest$outboundSchema;
})(ImportExternalTestAssignmentResultsRequest$ || (exports.ImportExternalTestAssignmentResultsRequest$ = ImportExternalTestAssignmentResultsRequest$ = {}));
function importExternalTestAssignmentResultsRequestToJSON(importExternalTestAssignmentResultsRequest) {
    return JSON.stringify(exports.ImportExternalTestAssignmentResultsRequest$outboundSchema.parse(importExternalTestAssignmentResultsRequest));
}
function importExternalTestAssignmentResultsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ImportExternalTestAssignmentResultsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ImportExternalTestAssignmentResultsRequest' from JSON`);
}
/** @internal */
exports.ImportExternalTestAssignmentResultsLessonType$inboundSchema = z
    .nativeEnum(exports.ImportExternalTestAssignmentResultsLessonType);
/** @internal */
exports.ImportExternalTestAssignmentResultsLessonType$outboundSchema = exports.ImportExternalTestAssignmentResultsLessonType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ImportExternalTestAssignmentResultsLessonType$;
(function (ImportExternalTestAssignmentResultsLessonType$) {
    /** @deprecated use `ImportExternalTestAssignmentResultsLessonType$inboundSchema` instead. */
    ImportExternalTestAssignmentResultsLessonType$.inboundSchema = exports.ImportExternalTestAssignmentResultsLessonType$inboundSchema;
    /** @deprecated use `ImportExternalTestAssignmentResultsLessonType$outboundSchema` instead. */
    ImportExternalTestAssignmentResultsLessonType$.outboundSchema = exports.ImportExternalTestAssignmentResultsLessonType$outboundSchema;
})(ImportExternalTestAssignmentResultsLessonType$ || (exports.ImportExternalTestAssignmentResultsLessonType$ = ImportExternalTestAssignmentResultsLessonType$ = {}));
/** @internal */
exports.ImportExternalTestAssignmentResultsCredentials$inboundSchema = z.object({
    email: z.string(),
    password: z.string(),
});
/** @internal */
exports.ImportExternalTestAssignmentResultsCredentials$outboundSchema = z.object({
    email: z.string(),
    password: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ImportExternalTestAssignmentResultsCredentials$;
(function (ImportExternalTestAssignmentResultsCredentials$) {
    /** @deprecated use `ImportExternalTestAssignmentResultsCredentials$inboundSchema` instead. */
    ImportExternalTestAssignmentResultsCredentials$.inboundSchema = exports.ImportExternalTestAssignmentResultsCredentials$inboundSchema;
    /** @deprecated use `ImportExternalTestAssignmentResultsCredentials$outboundSchema` instead. */
    ImportExternalTestAssignmentResultsCredentials$.outboundSchema = exports.ImportExternalTestAssignmentResultsCredentials$outboundSchema;
})(ImportExternalTestAssignmentResultsCredentials$ || (exports.ImportExternalTestAssignmentResultsCredentials$ = ImportExternalTestAssignmentResultsCredentials$ = {}));
function importExternalTestAssignmentResultsCredentialsToJSON(importExternalTestAssignmentResultsCredentials) {
    return JSON.stringify(exports.ImportExternalTestAssignmentResultsCredentials$outboundSchema.parse(importExternalTestAssignmentResultsCredentials));
}
function importExternalTestAssignmentResultsCredentialsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ImportExternalTestAssignmentResultsCredentials$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ImportExternalTestAssignmentResultsCredentials' from JSON`);
}
/** @internal */
exports.ImportExternalTestAssignmentResultsResponse$inboundSchema = z.object({
    lessonType: exports.ImportExternalTestAssignmentResultsLessonType$inboundSchema,
    lessonId: z.nullable(z.string()),
    toolProvider: z.string(),
    finalized: z.boolean(),
    attempt: z.number(),
    credentials: z.lazy(() => exports.ImportExternalTestAssignmentResultsCredentials$inboundSchema).optional(),
    assignmentId: z.string().optional(),
    classId: z.string().optional(),
    testUrl: z.string().optional(),
    testId: z.string().optional(),
    courseIdOnFail: z.nullable(z.string()),
    hasFallbackCourse: z.boolean(),
});
/** @internal */
exports.ImportExternalTestAssignmentResultsResponse$outboundSchema = z.object({
    lessonType: exports.ImportExternalTestAssignmentResultsLessonType$outboundSchema,
    lessonId: z.nullable(z.string()),
    toolProvider: z.string(),
    finalized: z.boolean(),
    attempt: z.number(),
    credentials: z.lazy(() => exports.ImportExternalTestAssignmentResultsCredentials$outboundSchema).optional(),
    assignmentId: z.string().optional(),
    classId: z.string().optional(),
    testUrl: z.string().optional(),
    testId: z.string().optional(),
    courseIdOnFail: z.nullable(z.string()),
    hasFallbackCourse: z.boolean(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ImportExternalTestAssignmentResultsResponse$;
(function (ImportExternalTestAssignmentResultsResponse$) {
    /** @deprecated use `ImportExternalTestAssignmentResultsResponse$inboundSchema` instead. */
    ImportExternalTestAssignmentResultsResponse$.inboundSchema = exports.ImportExternalTestAssignmentResultsResponse$inboundSchema;
    /** @deprecated use `ImportExternalTestAssignmentResultsResponse$outboundSchema` instead. */
    ImportExternalTestAssignmentResultsResponse$.outboundSchema = exports.ImportExternalTestAssignmentResultsResponse$outboundSchema;
})(ImportExternalTestAssignmentResultsResponse$ || (exports.ImportExternalTestAssignmentResultsResponse$ = ImportExternalTestAssignmentResultsResponse$ = {}));
function importExternalTestAssignmentResultsResponseToJSON(importExternalTestAssignmentResultsResponse) {
    return JSON.stringify(exports.ImportExternalTestAssignmentResultsResponse$outboundSchema.parse(importExternalTestAssignmentResultsResponse));
}
function importExternalTestAssignmentResultsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ImportExternalTestAssignmentResultsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ImportExternalTestAssignmentResultsResponse' from JSON`);
}
//# sourceMappingURL=importexternaltestassignmentresults.js.map