"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.AddTeacherToClassResponse$ = exports.AddTeacherToClassResponse$outboundSchema = exports.AddTeacherToClassResponse$inboundSchema = exports.AddTeacherToClassSourcedIdPairs$ = exports.AddTeacherToClassSourcedIdPairs$outboundSchema = exports.AddTeacherToClassSourcedIdPairs$inboundSchema = exports.AddTeacherToClassRequest$ = exports.AddTeacherToClassRequest$outboundSchema = exports.AddTeacherToClassRequest$inboundSchema = exports.AddTeacherToClassRequestBody$ = exports.AddTeacherToClassRequestBody$outboundSchema = exports.AddTeacherToClassRequestBody$inboundSchema = exports.AddTeacherToClassEnrollment$ = exports.AddTeacherToClassEnrollment$outboundSchema = exports.AddTeacherToClassEnrollment$inboundSchema = exports.AddTeacherToClassUser$ = exports.AddTeacherToClassUser$outboundSchema = exports.AddTeacherToClassUser$inboundSchema = void 0;
exports.addTeacherToClassUserToJSON = addTeacherToClassUserToJSON;
exports.addTeacherToClassUserFromJSON = addTeacherToClassUserFromJSON;
exports.addTeacherToClassEnrollmentToJSON = addTeacherToClassEnrollmentToJSON;
exports.addTeacherToClassEnrollmentFromJSON = addTeacherToClassEnrollmentFromJSON;
exports.addTeacherToClassRequestBodyToJSON = addTeacherToClassRequestBodyToJSON;
exports.addTeacherToClassRequestBodyFromJSON = addTeacherToClassRequestBodyFromJSON;
exports.addTeacherToClassRequestToJSON = addTeacherToClassRequestToJSON;
exports.addTeacherToClassRequestFromJSON = addTeacherToClassRequestFromJSON;
exports.addTeacherToClassSourcedIdPairsToJSON = addTeacherToClassSourcedIdPairsToJSON;
exports.addTeacherToClassSourcedIdPairsFromJSON = addTeacherToClassSourcedIdPairsFromJSON;
exports.addTeacherToClassResponseToJSON = addTeacherToClassResponseToJSON;
exports.addTeacherToClassResponseFromJSON = addTeacherToClassResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.AddTeacherToClassUser$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.AddTeacherToClassUser$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 AddTeacherToClassUser$;
(function (AddTeacherToClassUser$) {
    /** @deprecated use `AddTeacherToClassUser$inboundSchema` instead. */
    AddTeacherToClassUser$.inboundSchema = exports.AddTeacherToClassUser$inboundSchema;
    /** @deprecated use `AddTeacherToClassUser$outboundSchema` instead. */
    AddTeacherToClassUser$.outboundSchema = exports.AddTeacherToClassUser$outboundSchema;
})(AddTeacherToClassUser$ || (exports.AddTeacherToClassUser$ = AddTeacherToClassUser$ = {}));
function addTeacherToClassUserToJSON(addTeacherToClassUser) {
    return JSON.stringify(exports.AddTeacherToClassUser$outboundSchema.parse(addTeacherToClassUser));
}
function addTeacherToClassUserFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddTeacherToClassUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddTeacherToClassUser' from JSON`);
}
/** @internal */
exports.AddTeacherToClassEnrollment$inboundSchema = z.object({
    user: z.lazy(() => exports.AddTeacherToClassUser$inboundSchema),
    primary: z.boolean().default(false),
    beginDate: z.string().optional(),
    endDate: z.string().optional(),
});
/** @internal */
exports.AddTeacherToClassEnrollment$outboundSchema = z.object({
    user: z.lazy(() => exports.AddTeacherToClassUser$outboundSchema),
    primary: z.boolean().default(false),
    beginDate: z.string().optional(),
    endDate: 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 AddTeacherToClassEnrollment$;
(function (AddTeacherToClassEnrollment$) {
    /** @deprecated use `AddTeacherToClassEnrollment$inboundSchema` instead. */
    AddTeacherToClassEnrollment$.inboundSchema = exports.AddTeacherToClassEnrollment$inboundSchema;
    /** @deprecated use `AddTeacherToClassEnrollment$outboundSchema` instead. */
    AddTeacherToClassEnrollment$.outboundSchema = exports.AddTeacherToClassEnrollment$outboundSchema;
})(AddTeacherToClassEnrollment$ || (exports.AddTeacherToClassEnrollment$ = AddTeacherToClassEnrollment$ = {}));
function addTeacherToClassEnrollmentToJSON(addTeacherToClassEnrollment) {
    return JSON.stringify(exports.AddTeacherToClassEnrollment$outboundSchema.parse(addTeacherToClassEnrollment));
}
function addTeacherToClassEnrollmentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddTeacherToClassEnrollment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddTeacherToClassEnrollment' from JSON`);
}
/** @internal */
exports.AddTeacherToClassRequestBody$inboundSchema = z.object({
    enrollment: z.lazy(() => exports.AddTeacherToClassEnrollment$inboundSchema),
});
/** @internal */
exports.AddTeacherToClassRequestBody$outboundSchema = z.object({
    enrollment: z.lazy(() => exports.AddTeacherToClassEnrollment$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AddTeacherToClassRequestBody$;
(function (AddTeacherToClassRequestBody$) {
    /** @deprecated use `AddTeacherToClassRequestBody$inboundSchema` instead. */
    AddTeacherToClassRequestBody$.inboundSchema = exports.AddTeacherToClassRequestBody$inboundSchema;
    /** @deprecated use `AddTeacherToClassRequestBody$outboundSchema` instead. */
    AddTeacherToClassRequestBody$.outboundSchema = exports.AddTeacherToClassRequestBody$outboundSchema;
})(AddTeacherToClassRequestBody$ || (exports.AddTeacherToClassRequestBody$ = AddTeacherToClassRequestBody$ = {}));
function addTeacherToClassRequestBodyToJSON(addTeacherToClassRequestBody) {
    return JSON.stringify(exports.AddTeacherToClassRequestBody$outboundSchema.parse(addTeacherToClassRequestBody));
}
function addTeacherToClassRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddTeacherToClassRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddTeacherToClassRequestBody' from JSON`);
}
/** @internal */
exports.AddTeacherToClassRequest$inboundSchema = z.object({
    classSourcedId: z.string(),
    RequestBody: z.lazy(() => exports.AddTeacherToClassRequestBody$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.AddTeacherToClassRequest$outboundSchema = z.object({
    classSourcedId: z.string(),
    requestBody: z.lazy(() => exports.AddTeacherToClassRequestBody$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AddTeacherToClassRequest$;
(function (AddTeacherToClassRequest$) {
    /** @deprecated use `AddTeacherToClassRequest$inboundSchema` instead. */
    AddTeacherToClassRequest$.inboundSchema = exports.AddTeacherToClassRequest$inboundSchema;
    /** @deprecated use `AddTeacherToClassRequest$outboundSchema` instead. */
    AddTeacherToClassRequest$.outboundSchema = exports.AddTeacherToClassRequest$outboundSchema;
})(AddTeacherToClassRequest$ || (exports.AddTeacherToClassRequest$ = AddTeacherToClassRequest$ = {}));
function addTeacherToClassRequestToJSON(addTeacherToClassRequest) {
    return JSON.stringify(exports.AddTeacherToClassRequest$outboundSchema.parse(addTeacherToClassRequest));
}
function addTeacherToClassRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddTeacherToClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddTeacherToClassRequest' from JSON`);
}
/** @internal */
exports.AddTeacherToClassSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
exports.AddTeacherToClassSourcedIdPairs$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 AddTeacherToClassSourcedIdPairs$;
(function (AddTeacherToClassSourcedIdPairs$) {
    /** @deprecated use `AddTeacherToClassSourcedIdPairs$inboundSchema` instead. */
    AddTeacherToClassSourcedIdPairs$.inboundSchema = exports.AddTeacherToClassSourcedIdPairs$inboundSchema;
    /** @deprecated use `AddTeacherToClassSourcedIdPairs$outboundSchema` instead. */
    AddTeacherToClassSourcedIdPairs$.outboundSchema = exports.AddTeacherToClassSourcedIdPairs$outboundSchema;
})(AddTeacherToClassSourcedIdPairs$ || (exports.AddTeacherToClassSourcedIdPairs$ = AddTeacherToClassSourcedIdPairs$ = {}));
function addTeacherToClassSourcedIdPairsToJSON(addTeacherToClassSourcedIdPairs) {
    return JSON.stringify(exports.AddTeacherToClassSourcedIdPairs$outboundSchema.parse(addTeacherToClassSourcedIdPairs));
}
function addTeacherToClassSourcedIdPairsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddTeacherToClassSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddTeacherToClassSourcedIdPairs' from JSON`);
}
/** @internal */
exports.AddTeacherToClassResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.AddTeacherToClassSourcedIdPairs$inboundSchema),
});
/** @internal */
exports.AddTeacherToClassResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.AddTeacherToClassSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AddTeacherToClassResponse$;
(function (AddTeacherToClassResponse$) {
    /** @deprecated use `AddTeacherToClassResponse$inboundSchema` instead. */
    AddTeacherToClassResponse$.inboundSchema = exports.AddTeacherToClassResponse$inboundSchema;
    /** @deprecated use `AddTeacherToClassResponse$outboundSchema` instead. */
    AddTeacherToClassResponse$.outboundSchema = exports.AddTeacherToClassResponse$outboundSchema;
})(AddTeacherToClassResponse$ || (exports.AddTeacherToClassResponse$ = AddTeacherToClassResponse$ = {}));
function addTeacherToClassResponseToJSON(addTeacherToClassResponse) {
    return JSON.stringify(exports.AddTeacherToClassResponse$outboundSchema.parse(addTeacherToClassResponse));
}
function addTeacherToClassResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddTeacherToClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddTeacherToClassResponse' from JSON`);
}
//# sourceMappingURL=addteachertoclass.js.map