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