"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.CreateEnrollmentResponse$ = exports.CreateEnrollmentResponse$outboundSchema = exports.CreateEnrollmentResponse$inboundSchema = exports.CreateEnrollmentSourcedIdPairs$ = exports.CreateEnrollmentSourcedIdPairs$outboundSchema = exports.CreateEnrollmentSourcedIdPairs$inboundSchema = exports.CreateEnrollmentRequest$ = exports.CreateEnrollmentRequest$outboundSchema = exports.CreateEnrollmentRequest$inboundSchema = exports.CreateEnrollmentEnrollment$ = exports.CreateEnrollmentEnrollment$outboundSchema = exports.CreateEnrollmentEnrollment$inboundSchema = exports.CreateEnrollmentClass$ = exports.CreateEnrollmentClass$outboundSchema = exports.CreateEnrollmentClass$inboundSchema = exports.CreateEnrollmentUser$ = exports.CreateEnrollmentUser$outboundSchema = exports.CreateEnrollmentUser$inboundSchema = exports.CreateEnrollmentRole$ = exports.CreateEnrollmentRole$outboundSchema = exports.CreateEnrollmentRole$inboundSchema = exports.CreateEnrollmentStatus$ = exports.CreateEnrollmentStatus$outboundSchema = exports.CreateEnrollmentStatus$inboundSchema = exports.CreateEnrollmentRole = exports.CreateEnrollmentStatus = void 0;
exports.createEnrollmentUserToJSON = createEnrollmentUserToJSON;
exports.createEnrollmentUserFromJSON = createEnrollmentUserFromJSON;
exports.createEnrollmentClassToJSON = createEnrollmentClassToJSON;
exports.createEnrollmentClassFromJSON = createEnrollmentClassFromJSON;
exports.createEnrollmentEnrollmentToJSON = createEnrollmentEnrollmentToJSON;
exports.createEnrollmentEnrollmentFromJSON = createEnrollmentEnrollmentFromJSON;
exports.createEnrollmentRequestToJSON = createEnrollmentRequestToJSON;
exports.createEnrollmentRequestFromJSON = createEnrollmentRequestFromJSON;
exports.createEnrollmentSourcedIdPairsToJSON = createEnrollmentSourcedIdPairsToJSON;
exports.createEnrollmentSourcedIdPairsFromJSON = createEnrollmentSourcedIdPairsFromJSON;
exports.createEnrollmentResponseToJSON = createEnrollmentResponseToJSON;
exports.createEnrollmentResponseFromJSON = createEnrollmentResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
exports.CreateEnrollmentStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
exports.CreateEnrollmentRole = {
    Administrator: "administrator",
    Proctor: "proctor",
    Student: "student",
    Teacher: "teacher",
};
/** @internal */
exports.CreateEnrollmentStatus$inboundSchema = z.nativeEnum(exports.CreateEnrollmentStatus);
/** @internal */
exports.CreateEnrollmentStatus$outboundSchema = exports.CreateEnrollmentStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateEnrollmentStatus$;
(function (CreateEnrollmentStatus$) {
    /** @deprecated use `CreateEnrollmentStatus$inboundSchema` instead. */
    CreateEnrollmentStatus$.inboundSchema = exports.CreateEnrollmentStatus$inboundSchema;
    /** @deprecated use `CreateEnrollmentStatus$outboundSchema` instead. */
    CreateEnrollmentStatus$.outboundSchema = exports.CreateEnrollmentStatus$outboundSchema;
})(CreateEnrollmentStatus$ || (exports.CreateEnrollmentStatus$ = CreateEnrollmentStatus$ = {}));
/** @internal */
exports.CreateEnrollmentRole$inboundSchema = z.nativeEnum(exports.CreateEnrollmentRole);
/** @internal */
exports.CreateEnrollmentRole$outboundSchema = exports.CreateEnrollmentRole$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateEnrollmentRole$;
(function (CreateEnrollmentRole$) {
    /** @deprecated use `CreateEnrollmentRole$inboundSchema` instead. */
    CreateEnrollmentRole$.inboundSchema = exports.CreateEnrollmentRole$inboundSchema;
    /** @deprecated use `CreateEnrollmentRole$outboundSchema` instead. */
    CreateEnrollmentRole$.outboundSchema = exports.CreateEnrollmentRole$outboundSchema;
})(CreateEnrollmentRole$ || (exports.CreateEnrollmentRole$ = CreateEnrollmentRole$ = {}));
/** @internal */
exports.CreateEnrollmentUser$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.CreateEnrollmentUser$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 CreateEnrollmentUser$;
(function (CreateEnrollmentUser$) {
    /** @deprecated use `CreateEnrollmentUser$inboundSchema` instead. */
    CreateEnrollmentUser$.inboundSchema = exports.CreateEnrollmentUser$inboundSchema;
    /** @deprecated use `CreateEnrollmentUser$outboundSchema` instead. */
    CreateEnrollmentUser$.outboundSchema = exports.CreateEnrollmentUser$outboundSchema;
})(CreateEnrollmentUser$ || (exports.CreateEnrollmentUser$ = CreateEnrollmentUser$ = {}));
function createEnrollmentUserToJSON(createEnrollmentUser) {
    return JSON.stringify(exports.CreateEnrollmentUser$outboundSchema.parse(createEnrollmentUser));
}
function createEnrollmentUserFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEnrollmentUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEnrollmentUser' from JSON`);
}
/** @internal */
exports.CreateEnrollmentClass$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.CreateEnrollmentClass$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 CreateEnrollmentClass$;
(function (CreateEnrollmentClass$) {
    /** @deprecated use `CreateEnrollmentClass$inboundSchema` instead. */
    CreateEnrollmentClass$.inboundSchema = exports.CreateEnrollmentClass$inboundSchema;
    /** @deprecated use `CreateEnrollmentClass$outboundSchema` instead. */
    CreateEnrollmentClass$.outboundSchema = exports.CreateEnrollmentClass$outboundSchema;
})(CreateEnrollmentClass$ || (exports.CreateEnrollmentClass$ = CreateEnrollmentClass$ = {}));
function createEnrollmentClassToJSON(createEnrollmentClass) {
    return JSON.stringify(exports.CreateEnrollmentClass$outboundSchema.parse(createEnrollmentClass));
}
function createEnrollmentClassFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEnrollmentClass$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEnrollmentClass' from JSON`);
}
/** @internal */
exports.CreateEnrollmentEnrollment$inboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.CreateEnrollmentStatus$inboundSchema.default("active"),
    metadata: z.record(z.any()).optional(),
    role: exports.CreateEnrollmentRole$inboundSchema,
    primary: z.boolean().default(false),
    beginDate: z.string().optional(),
    endDate: z.string().optional(),
    user: z.lazy(() => exports.CreateEnrollmentUser$inboundSchema),
    class: z.lazy(() => exports.CreateEnrollmentClass$inboundSchema),
});
/** @internal */
exports.CreateEnrollmentEnrollment$outboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.CreateEnrollmentStatus$outboundSchema.default("active"),
    metadata: z.record(z.any()).optional(),
    role: exports.CreateEnrollmentRole$outboundSchema,
    primary: z.boolean().default(false),
    beginDate: z.string().optional(),
    endDate: z.string().optional(),
    user: z.lazy(() => exports.CreateEnrollmentUser$outboundSchema),
    class: z.lazy(() => exports.CreateEnrollmentClass$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateEnrollmentEnrollment$;
(function (CreateEnrollmentEnrollment$) {
    /** @deprecated use `CreateEnrollmentEnrollment$inboundSchema` instead. */
    CreateEnrollmentEnrollment$.inboundSchema = exports.CreateEnrollmentEnrollment$inboundSchema;
    /** @deprecated use `CreateEnrollmentEnrollment$outboundSchema` instead. */
    CreateEnrollmentEnrollment$.outboundSchema = exports.CreateEnrollmentEnrollment$outboundSchema;
})(CreateEnrollmentEnrollment$ || (exports.CreateEnrollmentEnrollment$ = CreateEnrollmentEnrollment$ = {}));
function createEnrollmentEnrollmentToJSON(createEnrollmentEnrollment) {
    return JSON.stringify(exports.CreateEnrollmentEnrollment$outboundSchema.parse(createEnrollmentEnrollment));
}
function createEnrollmentEnrollmentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEnrollmentEnrollment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEnrollmentEnrollment' from JSON`);
}
/** @internal */
exports.CreateEnrollmentRequest$inboundSchema = z.object({
    enrollment: z.lazy(() => exports.CreateEnrollmentEnrollment$inboundSchema),
});
/** @internal */
exports.CreateEnrollmentRequest$outboundSchema = z.object({
    enrollment: z.lazy(() => exports.CreateEnrollmentEnrollment$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateEnrollmentRequest$;
(function (CreateEnrollmentRequest$) {
    /** @deprecated use `CreateEnrollmentRequest$inboundSchema` instead. */
    CreateEnrollmentRequest$.inboundSchema = exports.CreateEnrollmentRequest$inboundSchema;
    /** @deprecated use `CreateEnrollmentRequest$outboundSchema` instead. */
    CreateEnrollmentRequest$.outboundSchema = exports.CreateEnrollmentRequest$outboundSchema;
})(CreateEnrollmentRequest$ || (exports.CreateEnrollmentRequest$ = CreateEnrollmentRequest$ = {}));
function createEnrollmentRequestToJSON(createEnrollmentRequest) {
    return JSON.stringify(exports.CreateEnrollmentRequest$outboundSchema.parse(createEnrollmentRequest));
}
function createEnrollmentRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEnrollmentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEnrollmentRequest' from JSON`);
}
/** @internal */
exports.CreateEnrollmentSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
exports.CreateEnrollmentSourcedIdPairs$outboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateEnrollmentSourcedIdPairs$;
(function (CreateEnrollmentSourcedIdPairs$) {
    /** @deprecated use `CreateEnrollmentSourcedIdPairs$inboundSchema` instead. */
    CreateEnrollmentSourcedIdPairs$.inboundSchema = exports.CreateEnrollmentSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateEnrollmentSourcedIdPairs$outboundSchema` instead. */
    CreateEnrollmentSourcedIdPairs$.outboundSchema = exports.CreateEnrollmentSourcedIdPairs$outboundSchema;
})(CreateEnrollmentSourcedIdPairs$ || (exports.CreateEnrollmentSourcedIdPairs$ = CreateEnrollmentSourcedIdPairs$ = {}));
function createEnrollmentSourcedIdPairsToJSON(createEnrollmentSourcedIdPairs) {
    return JSON.stringify(exports.CreateEnrollmentSourcedIdPairs$outboundSchema.parse(createEnrollmentSourcedIdPairs));
}
function createEnrollmentSourcedIdPairsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEnrollmentSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEnrollmentSourcedIdPairs' from JSON`);
}
/** @internal */
exports.CreateEnrollmentResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.CreateEnrollmentSourcedIdPairs$inboundSchema),
});
/** @internal */
exports.CreateEnrollmentResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.CreateEnrollmentSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateEnrollmentResponse$;
(function (CreateEnrollmentResponse$) {
    /** @deprecated use `CreateEnrollmentResponse$inboundSchema` instead. */
    CreateEnrollmentResponse$.inboundSchema = exports.CreateEnrollmentResponse$inboundSchema;
    /** @deprecated use `CreateEnrollmentResponse$outboundSchema` instead. */
    CreateEnrollmentResponse$.outboundSchema = exports.CreateEnrollmentResponse$outboundSchema;
})(CreateEnrollmentResponse$ || (exports.CreateEnrollmentResponse$ = CreateEnrollmentResponse$ = {}));
function createEnrollmentResponseToJSON(createEnrollmentResponse) {
    return JSON.stringify(exports.CreateEnrollmentResponse$outboundSchema.parse(createEnrollmentResponse));
}
function createEnrollmentResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEnrollmentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEnrollmentResponse' from JSON`);
}
//# sourceMappingURL=createenrollment.js.map