"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.ScoreScale$ = exports.ScoreScale$outboundSchema = exports.ScoreScale$inboundSchema = exports.ScoreScaleValue$ = exports.ScoreScaleValue$outboundSchema = exports.ScoreScaleValue$inboundSchema = exports.ScoreScaleCourse$ = exports.ScoreScaleCourse$outboundSchema = exports.ScoreScaleCourse$inboundSchema = exports.ScoreScaleClass$ = exports.ScoreScaleClass$outboundSchema = exports.ScoreScaleClass$inboundSchema = exports.ScoreScaleStatus$ = exports.ScoreScaleStatus$outboundSchema = exports.ScoreScaleStatus$inboundSchema = exports.ScoreScaleStatus = void 0;
exports.scoreScaleClassToJSON = scoreScaleClassToJSON;
exports.scoreScaleClassFromJSON = scoreScaleClassFromJSON;
exports.scoreScaleCourseToJSON = scoreScaleCourseToJSON;
exports.scoreScaleCourseFromJSON = scoreScaleCourseFromJSON;
exports.scoreScaleValueToJSON = scoreScaleValueToJSON;
exports.scoreScaleValueFromJSON = scoreScaleValueFromJSON;
exports.scoreScaleToJSON = scoreScaleToJSON;
exports.scoreScaleFromJSON = scoreScaleFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
exports.ScoreScaleStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
/** @internal */
exports.ScoreScaleStatus$inboundSchema = z.nativeEnum(exports.ScoreScaleStatus);
/** @internal */
exports.ScoreScaleStatus$outboundSchema = exports.ScoreScaleStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ScoreScaleStatus$;
(function (ScoreScaleStatus$) {
    /** @deprecated use `ScoreScaleStatus$inboundSchema` instead. */
    ScoreScaleStatus$.inboundSchema = exports.ScoreScaleStatus$inboundSchema;
    /** @deprecated use `ScoreScaleStatus$outboundSchema` instead. */
    ScoreScaleStatus$.outboundSchema = exports.ScoreScaleStatus$outboundSchema;
})(ScoreScaleStatus$ || (exports.ScoreScaleStatus$ = ScoreScaleStatus$ = {}));
/** @internal */
exports.ScoreScaleClass$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.ScoreScaleClass$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 ScoreScaleClass$;
(function (ScoreScaleClass$) {
    /** @deprecated use `ScoreScaleClass$inboundSchema` instead. */
    ScoreScaleClass$.inboundSchema = exports.ScoreScaleClass$inboundSchema;
    /** @deprecated use `ScoreScaleClass$outboundSchema` instead. */
    ScoreScaleClass$.outboundSchema = exports.ScoreScaleClass$outboundSchema;
})(ScoreScaleClass$ || (exports.ScoreScaleClass$ = ScoreScaleClass$ = {}));
function scoreScaleClassToJSON(scoreScaleClass) {
    return JSON.stringify(exports.ScoreScaleClass$outboundSchema.parse(scoreScaleClass));
}
function scoreScaleClassFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ScoreScaleClass$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScoreScaleClass' from JSON`);
}
/** @internal */
exports.ScoreScaleCourse$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.ScoreScaleCourse$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 ScoreScaleCourse$;
(function (ScoreScaleCourse$) {
    /** @deprecated use `ScoreScaleCourse$inboundSchema` instead. */
    ScoreScaleCourse$.inboundSchema = exports.ScoreScaleCourse$inboundSchema;
    /** @deprecated use `ScoreScaleCourse$outboundSchema` instead. */
    ScoreScaleCourse$.outboundSchema = exports.ScoreScaleCourse$outboundSchema;
})(ScoreScaleCourse$ || (exports.ScoreScaleCourse$ = ScoreScaleCourse$ = {}));
function scoreScaleCourseToJSON(scoreScaleCourse) {
    return JSON.stringify(exports.ScoreScaleCourse$outboundSchema.parse(scoreScaleCourse));
}
function scoreScaleCourseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ScoreScaleCourse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScoreScaleCourse' from JSON`);
}
/** @internal */
exports.ScoreScaleValue$inboundSchema = z.object({
    itemValueLHS: z.string(),
    itemValueRHS: z.string(),
    value: z.string().optional(),
    description: z.string().optional(),
});
/** @internal */
exports.ScoreScaleValue$outboundSchema = z.object({
    itemValueLHS: z.string(),
    itemValueRHS: z.string(),
    value: z.string().optional(),
    description: 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 ScoreScaleValue$;
(function (ScoreScaleValue$) {
    /** @deprecated use `ScoreScaleValue$inboundSchema` instead. */
    ScoreScaleValue$.inboundSchema = exports.ScoreScaleValue$inboundSchema;
    /** @deprecated use `ScoreScaleValue$outboundSchema` instead. */
    ScoreScaleValue$.outboundSchema = exports.ScoreScaleValue$outboundSchema;
})(ScoreScaleValue$ || (exports.ScoreScaleValue$ = ScoreScaleValue$ = {}));
function scoreScaleValueToJSON(scoreScaleValue) {
    return JSON.stringify(exports.ScoreScaleValue$outboundSchema.parse(scoreScaleValue));
}
function scoreScaleValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ScoreScaleValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScoreScaleValue' from JSON`);
}
/** @internal */
exports.ScoreScale$inboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.ScoreScaleStatus$inboundSchema,
    dateLastModified: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    title: z.string(),
    type: z.string(),
    class: z.lazy(() => exports.ScoreScaleClass$inboundSchema),
    course: z.nullable(z.lazy(() => exports.ScoreScaleCourse$inboundSchema)).optional(),
    scoreScaleValue: z.array(z.lazy(() => exports.ScoreScaleValue$inboundSchema)),
});
/** @internal */
exports.ScoreScale$outboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.ScoreScaleStatus$outboundSchema,
    dateLastModified: z.date().transform(v => v.toISOString()).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    title: z.string(),
    type: z.string(),
    class: z.lazy(() => exports.ScoreScaleClass$outboundSchema),
    course: z.nullable(z.lazy(() => exports.ScoreScaleCourse$outboundSchema)).optional(),
    scoreScaleValue: z.array(z.lazy(() => exports.ScoreScaleValue$outboundSchema)),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ScoreScale$;
(function (ScoreScale$) {
    /** @deprecated use `ScoreScale$inboundSchema` instead. */
    ScoreScale$.inboundSchema = exports.ScoreScale$inboundSchema;
    /** @deprecated use `ScoreScale$outboundSchema` instead. */
    ScoreScale$.outboundSchema = exports.ScoreScale$outboundSchema;
})(ScoreScale$ || (exports.ScoreScale$ = ScoreScale$ = {}));
function scoreScaleToJSON(scoreScale) {
    return JSON.stringify(exports.ScoreScale$outboundSchema.parse(scoreScale));
}
function scoreScaleFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ScoreScale$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScoreScale' from JSON`);
}
//# sourceMappingURL=scorescale.js.map