"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.UpdateClassRequest$ = exports.UpdateClassRequest$outboundSchema = exports.UpdateClassRequest$inboundSchema = exports.UpdateClassRequestBody$ = exports.UpdateClassRequestBody$outboundSchema = exports.UpdateClassRequestBody$inboundSchema = exports.UpdateClassClass$ = exports.UpdateClassClass$outboundSchema = exports.UpdateClassClass$inboundSchema = exports.UpdateClassTerm$ = exports.UpdateClassTerm$outboundSchema = exports.UpdateClassTerm$inboundSchema = exports.UpdateClassResource$ = exports.UpdateClassResource$outboundSchema = exports.UpdateClassResource$inboundSchema = exports.UpdateClassClassType$ = exports.UpdateClassClassType$outboundSchema = exports.UpdateClassClassType$inboundSchema = exports.UpdateClassStatus$ = exports.UpdateClassStatus$outboundSchema = exports.UpdateClassStatus$inboundSchema = exports.UpdateClassClassType = exports.UpdateClassStatus = void 0;
exports.updateClassResourceToJSON = updateClassResourceToJSON;
exports.updateClassResourceFromJSON = updateClassResourceFromJSON;
exports.updateClassTermToJSON = updateClassTermToJSON;
exports.updateClassTermFromJSON = updateClassTermFromJSON;
exports.updateClassClassToJSON = updateClassClassToJSON;
exports.updateClassClassFromJSON = updateClassClassFromJSON;
exports.updateClassRequestBodyToJSON = updateClassRequestBodyToJSON;
exports.updateClassRequestBodyFromJSON = updateClassRequestBodyFromJSON;
exports.updateClassRequestToJSON = updateClassRequestToJSON;
exports.updateClassRequestFromJSON = updateClassRequestFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.UpdateClassStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
exports.UpdateClassClassType = {
    Homeroom: "homeroom",
    Scheduled: "scheduled",
};
/** @internal */
exports.UpdateClassStatus$inboundSchema = z.nativeEnum(exports.UpdateClassStatus);
/** @internal */
exports.UpdateClassStatus$outboundSchema = exports.UpdateClassStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateClassStatus$;
(function (UpdateClassStatus$) {
    /** @deprecated use `UpdateClassStatus$inboundSchema` instead. */
    UpdateClassStatus$.inboundSchema = exports.UpdateClassStatus$inboundSchema;
    /** @deprecated use `UpdateClassStatus$outboundSchema` instead. */
    UpdateClassStatus$.outboundSchema = exports.UpdateClassStatus$outboundSchema;
})(UpdateClassStatus$ || (exports.UpdateClassStatus$ = UpdateClassStatus$ = {}));
/** @internal */
exports.UpdateClassClassType$inboundSchema = z.nativeEnum(exports.UpdateClassClassType);
/** @internal */
exports.UpdateClassClassType$outboundSchema = exports.UpdateClassClassType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateClassClassType$;
(function (UpdateClassClassType$) {
    /** @deprecated use `UpdateClassClassType$inboundSchema` instead. */
    UpdateClassClassType$.inboundSchema = exports.UpdateClassClassType$inboundSchema;
    /** @deprecated use `UpdateClassClassType$outboundSchema` instead. */
    UpdateClassClassType$.outboundSchema = exports.UpdateClassClassType$outboundSchema;
})(UpdateClassClassType$ || (exports.UpdateClassClassType$ = UpdateClassClassType$ = {}));
/** @internal */
exports.UpdateClassResource$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.UpdateClassResource$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 UpdateClassResource$;
(function (UpdateClassResource$) {
    /** @deprecated use `UpdateClassResource$inboundSchema` instead. */
    UpdateClassResource$.inboundSchema = exports.UpdateClassResource$inboundSchema;
    /** @deprecated use `UpdateClassResource$outboundSchema` instead. */
    UpdateClassResource$.outboundSchema = exports.UpdateClassResource$outboundSchema;
})(UpdateClassResource$ || (exports.UpdateClassResource$ = UpdateClassResource$ = {}));
function updateClassResourceToJSON(updateClassResource) {
    return JSON.stringify(exports.UpdateClassResource$outboundSchema.parse(updateClassResource));
}
function updateClassResourceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateClassResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateClassResource' from JSON`);
}
/** @internal */
exports.UpdateClassTerm$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.UpdateClassTerm$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 UpdateClassTerm$;
(function (UpdateClassTerm$) {
    /** @deprecated use `UpdateClassTerm$inboundSchema` instead. */
    UpdateClassTerm$.inboundSchema = exports.UpdateClassTerm$inboundSchema;
    /** @deprecated use `UpdateClassTerm$outboundSchema` instead. */
    UpdateClassTerm$.outboundSchema = exports.UpdateClassTerm$outboundSchema;
})(UpdateClassTerm$ || (exports.UpdateClassTerm$ = UpdateClassTerm$ = {}));
function updateClassTermToJSON(updateClassTerm) {
    return JSON.stringify(exports.UpdateClassTerm$outboundSchema.parse(updateClassTerm));
}
function updateClassTermFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateClassTerm$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateClassTerm' from JSON`);
}
/** @internal */
exports.UpdateClassClass$inboundSchema = z.object({
    status: exports.UpdateClassStatus$inboundSchema.optional(),
    metadata: z.record(z.any()).optional(),
    title: z.string().optional(),
    classCode: z.string().optional(),
    classType: exports.UpdateClassClassType$inboundSchema.optional(),
    location: z.string().optional(),
    grades: z.array(z.string()).optional(),
    subjects: z.array(z.string()).optional(),
    subjectCodes: z.array(z.string()).optional(),
    periods: z.array(z.string()).optional(),
    resources: z.array(z.lazy(() => exports.UpdateClassResource$inboundSchema))
        .optional(),
    terms: z.array(z.lazy(() => exports.UpdateClassTerm$inboundSchema)).optional(),
});
/** @internal */
exports.UpdateClassClass$outboundSchema = z.object({
    status: exports.UpdateClassStatus$outboundSchema.optional(),
    metadata: z.record(z.any()).optional(),
    title: z.string().optional(),
    classCode: z.string().optional(),
    classType: exports.UpdateClassClassType$outboundSchema.optional(),
    location: z.string().optional(),
    grades: z.array(z.string()).optional(),
    subjects: z.array(z.string()).optional(),
    subjectCodes: z.array(z.string()).optional(),
    periods: z.array(z.string()).optional(),
    resources: z.array(z.lazy(() => exports.UpdateClassResource$outboundSchema))
        .optional(),
    terms: z.array(z.lazy(() => exports.UpdateClassTerm$outboundSchema)).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateClassClass$;
(function (UpdateClassClass$) {
    /** @deprecated use `UpdateClassClass$inboundSchema` instead. */
    UpdateClassClass$.inboundSchema = exports.UpdateClassClass$inboundSchema;
    /** @deprecated use `UpdateClassClass$outboundSchema` instead. */
    UpdateClassClass$.outboundSchema = exports.UpdateClassClass$outboundSchema;
})(UpdateClassClass$ || (exports.UpdateClassClass$ = UpdateClassClass$ = {}));
function updateClassClassToJSON(updateClassClass) {
    return JSON.stringify(exports.UpdateClassClass$outboundSchema.parse(updateClassClass));
}
function updateClassClassFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateClassClass$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateClassClass' from JSON`);
}
/** @internal */
exports.UpdateClassRequestBody$inboundSchema = z.object({
    class: z.lazy(() => exports.UpdateClassClass$inboundSchema),
});
/** @internal */
exports.UpdateClassRequestBody$outboundSchema = z.object({
    class: z.lazy(() => exports.UpdateClassClass$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateClassRequestBody$;
(function (UpdateClassRequestBody$) {
    /** @deprecated use `UpdateClassRequestBody$inboundSchema` instead. */
    UpdateClassRequestBody$.inboundSchema = exports.UpdateClassRequestBody$inboundSchema;
    /** @deprecated use `UpdateClassRequestBody$outboundSchema` instead. */
    UpdateClassRequestBody$.outboundSchema = exports.UpdateClassRequestBody$outboundSchema;
})(UpdateClassRequestBody$ || (exports.UpdateClassRequestBody$ = UpdateClassRequestBody$ = {}));
function updateClassRequestBodyToJSON(updateClassRequestBody) {
    return JSON.stringify(exports.UpdateClassRequestBody$outboundSchema.parse(updateClassRequestBody));
}
function updateClassRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateClassRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateClassRequestBody' from JSON`);
}
/** @internal */
exports.UpdateClassRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => exports.UpdateClassRequestBody$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.UpdateClassRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => exports.UpdateClassRequestBody$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 UpdateClassRequest$;
(function (UpdateClassRequest$) {
    /** @deprecated use `UpdateClassRequest$inboundSchema` instead. */
    UpdateClassRequest$.inboundSchema = exports.UpdateClassRequest$inboundSchema;
    /** @deprecated use `UpdateClassRequest$outboundSchema` instead. */
    UpdateClassRequest$.outboundSchema = exports.UpdateClassRequest$outboundSchema;
})(UpdateClassRequest$ || (exports.UpdateClassRequest$ = UpdateClassRequest$ = {}));
function updateClassRequestToJSON(updateClassRequest) {
    return JSON.stringify(exports.UpdateClassRequest$outboundSchema.parse(updateClassRequest));
}
function updateClassRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateClassRequest' from JSON`);
}
//# sourceMappingURL=updateclass.js.map