"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.AddStudentToClassResponse$ = exports.AddStudentToClassResponse$outboundSchema = exports.AddStudentToClassResponse$inboundSchema = exports.AddStudentToClassSourcedIdPairs$ = exports.AddStudentToClassSourcedIdPairs$outboundSchema = exports.AddStudentToClassSourcedIdPairs$inboundSchema = exports.AddStudentToClassRequest$ = exports.AddStudentToClassRequest$outboundSchema = exports.AddStudentToClassRequest$inboundSchema = exports.AddStudentToClassRequestBody$ = exports.AddStudentToClassRequestBody$outboundSchema = exports.AddStudentToClassRequestBody$inboundSchema = exports.AddStudentToClassEnrollment$ = exports.AddStudentToClassEnrollment$outboundSchema = exports.AddStudentToClassEnrollment$inboundSchema = exports.AddStudentToClassUser$ = exports.AddStudentToClassUser$outboundSchema = exports.AddStudentToClassUser$inboundSchema = void 0;
exports.addStudentToClassUserToJSON = addStudentToClassUserToJSON;
exports.addStudentToClassUserFromJSON = addStudentToClassUserFromJSON;
exports.addStudentToClassEnrollmentToJSON = addStudentToClassEnrollmentToJSON;
exports.addStudentToClassEnrollmentFromJSON = addStudentToClassEnrollmentFromJSON;
exports.addStudentToClassRequestBodyToJSON = addStudentToClassRequestBodyToJSON;
exports.addStudentToClassRequestBodyFromJSON = addStudentToClassRequestBodyFromJSON;
exports.addStudentToClassRequestToJSON = addStudentToClassRequestToJSON;
exports.addStudentToClassRequestFromJSON = addStudentToClassRequestFromJSON;
exports.addStudentToClassSourcedIdPairsToJSON = addStudentToClassSourcedIdPairsToJSON;
exports.addStudentToClassSourcedIdPairsFromJSON = addStudentToClassSourcedIdPairsFromJSON;
exports.addStudentToClassResponseToJSON = addStudentToClassResponseToJSON;
exports.addStudentToClassResponseFromJSON = addStudentToClassResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.AddStudentToClassUser$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.AddStudentToClassUser$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 AddStudentToClassUser$;
(function (AddStudentToClassUser$) {
    /** @deprecated use `AddStudentToClassUser$inboundSchema` instead. */
    AddStudentToClassUser$.inboundSchema = exports.AddStudentToClassUser$inboundSchema;
    /** @deprecated use `AddStudentToClassUser$outboundSchema` instead. */
    AddStudentToClassUser$.outboundSchema = exports.AddStudentToClassUser$outboundSchema;
})(AddStudentToClassUser$ || (exports.AddStudentToClassUser$ = AddStudentToClassUser$ = {}));
function addStudentToClassUserToJSON(addStudentToClassUser) {
    return JSON.stringify(exports.AddStudentToClassUser$outboundSchema.parse(addStudentToClassUser));
}
function addStudentToClassUserFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddStudentToClassUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddStudentToClassUser' from JSON`);
}
/** @internal */
exports.AddStudentToClassEnrollment$inboundSchema = z.object({
    user: z.lazy(() => exports.AddStudentToClassUser$inboundSchema),
    primary: z.boolean().default(false),
    beginDate: z.string().optional(),
    endDate: z.string().optional(),
});
/** @internal */
exports.AddStudentToClassEnrollment$outboundSchema = z.object({
    user: z.lazy(() => exports.AddStudentToClassUser$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 AddStudentToClassEnrollment$;
(function (AddStudentToClassEnrollment$) {
    /** @deprecated use `AddStudentToClassEnrollment$inboundSchema` instead. */
    AddStudentToClassEnrollment$.inboundSchema = exports.AddStudentToClassEnrollment$inboundSchema;
    /** @deprecated use `AddStudentToClassEnrollment$outboundSchema` instead. */
    AddStudentToClassEnrollment$.outboundSchema = exports.AddStudentToClassEnrollment$outboundSchema;
})(AddStudentToClassEnrollment$ || (exports.AddStudentToClassEnrollment$ = AddStudentToClassEnrollment$ = {}));
function addStudentToClassEnrollmentToJSON(addStudentToClassEnrollment) {
    return JSON.stringify(exports.AddStudentToClassEnrollment$outboundSchema.parse(addStudentToClassEnrollment));
}
function addStudentToClassEnrollmentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddStudentToClassEnrollment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddStudentToClassEnrollment' from JSON`);
}
/** @internal */
exports.AddStudentToClassRequestBody$inboundSchema = z.object({
    enrollment: z.lazy(() => exports.AddStudentToClassEnrollment$inboundSchema),
});
/** @internal */
exports.AddStudentToClassRequestBody$outboundSchema = z.object({
    enrollment: z.lazy(() => exports.AddStudentToClassEnrollment$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AddStudentToClassRequestBody$;
(function (AddStudentToClassRequestBody$) {
    /** @deprecated use `AddStudentToClassRequestBody$inboundSchema` instead. */
    AddStudentToClassRequestBody$.inboundSchema = exports.AddStudentToClassRequestBody$inboundSchema;
    /** @deprecated use `AddStudentToClassRequestBody$outboundSchema` instead. */
    AddStudentToClassRequestBody$.outboundSchema = exports.AddStudentToClassRequestBody$outboundSchema;
})(AddStudentToClassRequestBody$ || (exports.AddStudentToClassRequestBody$ = AddStudentToClassRequestBody$ = {}));
function addStudentToClassRequestBodyToJSON(addStudentToClassRequestBody) {
    return JSON.stringify(exports.AddStudentToClassRequestBody$outboundSchema.parse(addStudentToClassRequestBody));
}
function addStudentToClassRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddStudentToClassRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddStudentToClassRequestBody' from JSON`);
}
/** @internal */
exports.AddStudentToClassRequest$inboundSchema = z.object({
    classSourcedId: z.string(),
    RequestBody: z.lazy(() => exports.AddStudentToClassRequestBody$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.AddStudentToClassRequest$outboundSchema = z.object({
    classSourcedId: z.string(),
    requestBody: z.lazy(() => exports.AddStudentToClassRequestBody$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 AddStudentToClassRequest$;
(function (AddStudentToClassRequest$) {
    /** @deprecated use `AddStudentToClassRequest$inboundSchema` instead. */
    AddStudentToClassRequest$.inboundSchema = exports.AddStudentToClassRequest$inboundSchema;
    /** @deprecated use `AddStudentToClassRequest$outboundSchema` instead. */
    AddStudentToClassRequest$.outboundSchema = exports.AddStudentToClassRequest$outboundSchema;
})(AddStudentToClassRequest$ || (exports.AddStudentToClassRequest$ = AddStudentToClassRequest$ = {}));
function addStudentToClassRequestToJSON(addStudentToClassRequest) {
    return JSON.stringify(exports.AddStudentToClassRequest$outboundSchema.parse(addStudentToClassRequest));
}
function addStudentToClassRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddStudentToClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddStudentToClassRequest' from JSON`);
}
/** @internal */
exports.AddStudentToClassSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
exports.AddStudentToClassSourcedIdPairs$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 AddStudentToClassSourcedIdPairs$;
(function (AddStudentToClassSourcedIdPairs$) {
    /** @deprecated use `AddStudentToClassSourcedIdPairs$inboundSchema` instead. */
    AddStudentToClassSourcedIdPairs$.inboundSchema = exports.AddStudentToClassSourcedIdPairs$inboundSchema;
    /** @deprecated use `AddStudentToClassSourcedIdPairs$outboundSchema` instead. */
    AddStudentToClassSourcedIdPairs$.outboundSchema = exports.AddStudentToClassSourcedIdPairs$outboundSchema;
})(AddStudentToClassSourcedIdPairs$ || (exports.AddStudentToClassSourcedIdPairs$ = AddStudentToClassSourcedIdPairs$ = {}));
function addStudentToClassSourcedIdPairsToJSON(addStudentToClassSourcedIdPairs) {
    return JSON.stringify(exports.AddStudentToClassSourcedIdPairs$outboundSchema.parse(addStudentToClassSourcedIdPairs));
}
function addStudentToClassSourcedIdPairsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddStudentToClassSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddStudentToClassSourcedIdPairs' from JSON`);
}
/** @internal */
exports.AddStudentToClassResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.AddStudentToClassSourcedIdPairs$inboundSchema),
});
/** @internal */
exports.AddStudentToClassResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.AddStudentToClassSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AddStudentToClassResponse$;
(function (AddStudentToClassResponse$) {
    /** @deprecated use `AddStudentToClassResponse$inboundSchema` instead. */
    AddStudentToClassResponse$.inboundSchema = exports.AddStudentToClassResponse$inboundSchema;
    /** @deprecated use `AddStudentToClassResponse$outboundSchema` instead. */
    AddStudentToClassResponse$.outboundSchema = exports.AddStudentToClassResponse$outboundSchema;
})(AddStudentToClassResponse$ || (exports.AddStudentToClassResponse$ = AddStudentToClassResponse$ = {}));
function addStudentToClassResponseToJSON(addStudentToClassResponse) {
    return JSON.stringify(exports.AddStudentToClassResponse$outboundSchema.parse(addStudentToClassResponse));
}
function addStudentToClassResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddStudentToClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddStudentToClassResponse' from JSON`);
}
//# sourceMappingURL=addstudenttoclass.js.map