"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.CreateSchoolRequest$ = exports.CreateSchoolRequest$outboundSchema = exports.CreateSchoolRequest$inboundSchema = exports.CreateSchoolOrg$ = exports.CreateSchoolOrg$outboundSchema = exports.CreateSchoolOrg$inboundSchema = exports.CreateSchoolParent$ = exports.CreateSchoolParent$outboundSchema = exports.CreateSchoolParent$inboundSchema = exports.CreateSchoolStatus$ = exports.CreateSchoolStatus$outboundSchema = exports.CreateSchoolStatus$inboundSchema = exports.CreateSchoolStatus = void 0;
exports.createSchoolParentToJSON = createSchoolParentToJSON;
exports.createSchoolParentFromJSON = createSchoolParentFromJSON;
exports.createSchoolOrgToJSON = createSchoolOrgToJSON;
exports.createSchoolOrgFromJSON = createSchoolOrgFromJSON;
exports.createSchoolRequestToJSON = createSchoolRequestToJSON;
exports.createSchoolRequestFromJSON = createSchoolRequestFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
exports.CreateSchoolStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
/** @internal */
exports.CreateSchoolStatus$inboundSchema = z.nativeEnum(exports.CreateSchoolStatus);
/** @internal */
exports.CreateSchoolStatus$outboundSchema = exports.CreateSchoolStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateSchoolStatus$;
(function (CreateSchoolStatus$) {
    /** @deprecated use `CreateSchoolStatus$inboundSchema` instead. */
    CreateSchoolStatus$.inboundSchema = exports.CreateSchoolStatus$inboundSchema;
    /** @deprecated use `CreateSchoolStatus$outboundSchema` instead. */
    CreateSchoolStatus$.outboundSchema = exports.CreateSchoolStatus$outboundSchema;
})(CreateSchoolStatus$ || (exports.CreateSchoolStatus$ = CreateSchoolStatus$ = {}));
/** @internal */
exports.CreateSchoolParent$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.CreateSchoolParent$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 CreateSchoolParent$;
(function (CreateSchoolParent$) {
    /** @deprecated use `CreateSchoolParent$inboundSchema` instead. */
    CreateSchoolParent$.inboundSchema = exports.CreateSchoolParent$inboundSchema;
    /** @deprecated use `CreateSchoolParent$outboundSchema` instead. */
    CreateSchoolParent$.outboundSchema = exports.CreateSchoolParent$outboundSchema;
})(CreateSchoolParent$ || (exports.CreateSchoolParent$ = CreateSchoolParent$ = {}));
function createSchoolParentToJSON(createSchoolParent) {
    return JSON.stringify(exports.CreateSchoolParent$outboundSchema.parse(createSchoolParent));
}
function createSchoolParentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateSchoolParent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateSchoolParent' from JSON`);
}
/** @internal */
exports.CreateSchoolOrg$inboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.CreateSchoolStatus$inboundSchema.default("active"),
    metadata: z.record(z.any()).optional(),
    name: z.string(),
    type: z.literal("school").optional(),
    identifier: z.string().optional(),
    parent: z.nullable(z.lazy(() => exports.CreateSchoolParent$inboundSchema)).optional(),
});
/** @internal */
exports.CreateSchoolOrg$outboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.CreateSchoolStatus$outboundSchema.default("active"),
    metadata: z.record(z.any()).optional(),
    name: z.string(),
    type: z.literal("school").default("school"),
    identifier: z.string().optional(),
    parent: z.nullable(z.lazy(() => exports.CreateSchoolParent$outboundSchema))
        .optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateSchoolOrg$;
(function (CreateSchoolOrg$) {
    /** @deprecated use `CreateSchoolOrg$inboundSchema` instead. */
    CreateSchoolOrg$.inboundSchema = exports.CreateSchoolOrg$inboundSchema;
    /** @deprecated use `CreateSchoolOrg$outboundSchema` instead. */
    CreateSchoolOrg$.outboundSchema = exports.CreateSchoolOrg$outboundSchema;
})(CreateSchoolOrg$ || (exports.CreateSchoolOrg$ = CreateSchoolOrg$ = {}));
function createSchoolOrgToJSON(createSchoolOrg) {
    return JSON.stringify(exports.CreateSchoolOrg$outboundSchema.parse(createSchoolOrg));
}
function createSchoolOrgFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateSchoolOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateSchoolOrg' from JSON`);
}
/** @internal */
exports.CreateSchoolRequest$inboundSchema = z.object({
    org: z.lazy(() => exports.CreateSchoolOrg$inboundSchema),
});
/** @internal */
exports.CreateSchoolRequest$outboundSchema = z.object({
    org: z.lazy(() => exports.CreateSchoolOrg$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateSchoolRequest$;
(function (CreateSchoolRequest$) {
    /** @deprecated use `CreateSchoolRequest$inboundSchema` instead. */
    CreateSchoolRequest$.inboundSchema = exports.CreateSchoolRequest$inboundSchema;
    /** @deprecated use `CreateSchoolRequest$outboundSchema` instead. */
    CreateSchoolRequest$.outboundSchema = exports.CreateSchoolRequest$outboundSchema;
})(CreateSchoolRequest$ || (exports.CreateSchoolRequest$ = CreateSchoolRequest$ = {}));
function createSchoolRequestToJSON(createSchoolRequest) {
    return JSON.stringify(exports.CreateSchoolRequest$outboundSchema.parse(createSchoolRequest));
}
function createSchoolRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateSchoolRequest' from JSON`);
}
//# sourceMappingURL=createschool.js.map