"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.GetStudentsForClassInSchoolResponse$ = exports.GetStudentsForClassInSchoolResponse$outboundSchema = exports.GetStudentsForClassInSchoolResponse$inboundSchema = exports.GetStudentsForClassInSchoolResponseBody$ = exports.GetStudentsForClassInSchoolResponseBody$outboundSchema = exports.GetStudentsForClassInSchoolResponseBody$inboundSchema = exports.GetStudentsForClassInSchoolUser$ = exports.GetStudentsForClassInSchoolUser$outboundSchema = exports.GetStudentsForClassInSchoolUser$inboundSchema = exports.GetStudentsForClassInSchoolPrimaryOrg$ = exports.GetStudentsForClassInSchoolPrimaryOrg$outboundSchema = exports.GetStudentsForClassInSchoolPrimaryOrg$inboundSchema = exports.GetStudentsForClassInSchoolAgent$ = exports.GetStudentsForClassInSchoolAgent$outboundSchema = exports.GetStudentsForClassInSchoolAgent$inboundSchema = exports.GetStudentsForClassInSchoolType$ = exports.GetStudentsForClassInSchoolType$outboundSchema = exports.GetStudentsForClassInSchoolType$inboundSchema = exports.GetStudentsForClassInSchoolRole$ = exports.GetStudentsForClassInSchoolRole$outboundSchema = exports.GetStudentsForClassInSchoolRole$inboundSchema = exports.GetStudentsForClassInSchoolOrg$ = exports.GetStudentsForClassInSchoolOrg$outboundSchema = exports.GetStudentsForClassInSchoolOrg$inboundSchema = exports.GetStudentsForClassInSchoolRoleEnum$ = exports.GetStudentsForClassInSchoolRoleEnum$outboundSchema = exports.GetStudentsForClassInSchoolRoleEnum$inboundSchema = exports.GetStudentsForClassInSchoolRoleType$ = exports.GetStudentsForClassInSchoolRoleType$outboundSchema = exports.GetStudentsForClassInSchoolRoleType$inboundSchema = exports.GetStudentsForClassInSchoolUserId$ = exports.GetStudentsForClassInSchoolUserId$outboundSchema = exports.GetStudentsForClassInSchoolUserId$inboundSchema = exports.GetStudentsForClassInSchoolStatus$ = exports.GetStudentsForClassInSchoolStatus$outboundSchema = exports.GetStudentsForClassInSchoolStatus$inboundSchema = exports.GetStudentsForClassInSchoolRequest$ = exports.GetStudentsForClassInSchoolRequest$outboundSchema = exports.GetStudentsForClassInSchoolRequest$inboundSchema = exports.GetStudentsForClassInSchoolOrderBy$ = exports.GetStudentsForClassInSchoolOrderBy$outboundSchema = exports.GetStudentsForClassInSchoolOrderBy$inboundSchema = exports.GetStudentsForClassInSchoolType = exports.GetStudentsForClassInSchoolRoleEnum = exports.GetStudentsForClassInSchoolRoleType = exports.GetStudentsForClassInSchoolStatus = exports.GetStudentsForClassInSchoolOrderBy = void 0;
exports.getStudentsForClassInSchoolRequestToJSON = getStudentsForClassInSchoolRequestToJSON;
exports.getStudentsForClassInSchoolRequestFromJSON = getStudentsForClassInSchoolRequestFromJSON;
exports.getStudentsForClassInSchoolUserIdToJSON = getStudentsForClassInSchoolUserIdToJSON;
exports.getStudentsForClassInSchoolUserIdFromJSON = getStudentsForClassInSchoolUserIdFromJSON;
exports.getStudentsForClassInSchoolOrgToJSON = getStudentsForClassInSchoolOrgToJSON;
exports.getStudentsForClassInSchoolOrgFromJSON = getStudentsForClassInSchoolOrgFromJSON;
exports.getStudentsForClassInSchoolRoleToJSON = getStudentsForClassInSchoolRoleToJSON;
exports.getStudentsForClassInSchoolRoleFromJSON = getStudentsForClassInSchoolRoleFromJSON;
exports.getStudentsForClassInSchoolAgentToJSON = getStudentsForClassInSchoolAgentToJSON;
exports.getStudentsForClassInSchoolAgentFromJSON = getStudentsForClassInSchoolAgentFromJSON;
exports.getStudentsForClassInSchoolPrimaryOrgToJSON = getStudentsForClassInSchoolPrimaryOrgToJSON;
exports.getStudentsForClassInSchoolPrimaryOrgFromJSON = getStudentsForClassInSchoolPrimaryOrgFromJSON;
exports.getStudentsForClassInSchoolUserToJSON = getStudentsForClassInSchoolUserToJSON;
exports.getStudentsForClassInSchoolUserFromJSON = getStudentsForClassInSchoolUserFromJSON;
exports.getStudentsForClassInSchoolResponseBodyToJSON = getStudentsForClassInSchoolResponseBodyToJSON;
exports.getStudentsForClassInSchoolResponseBodyFromJSON = getStudentsForClassInSchoolResponseBodyFromJSON;
exports.getStudentsForClassInSchoolResponseToJSON = getStudentsForClassInSchoolResponseToJSON;
exports.getStudentsForClassInSchoolResponseFromJSON = getStudentsForClassInSchoolResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * The order to sort the response by
 */
exports.GetStudentsForClassInSchoolOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
exports.GetStudentsForClassInSchoolStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
exports.GetStudentsForClassInSchoolRoleType = {
    Primary: "primary",
    Secondary: "secondary",
};
exports.GetStudentsForClassInSchoolRoleEnum = {
    Administrator: "administrator",
    Aide: "aide",
    Guardian: "guardian",
    Parent: "parent",
    Proctor: "proctor",
    Relative: "relative",
    Student: "student",
    Teacher: "teacher",
};
exports.GetStudentsForClassInSchoolType = {
    AcademicSession: "academicSession",
    AssessmentLineItem: "assessmentLineItem",
    Category: "category",
    Class: "class",
    Course: "course",
    Demographics: "demographics",
    Enrollment: "enrollment",
    GradingPeriod: "gradingPeriod",
    LineItem: "lineItem",
    Org: "org",
    Resource: "resource",
    Result: "result",
    ScoreScale: "scoreScale",
    Student: "student",
    Teacher: "teacher",
    Term: "term",
    User: "user",
    ComponentResource: "componentResource",
    CourseComponent: "courseComponent",
};
/** @internal */
exports.GetStudentsForClassInSchoolOrderBy$inboundSchema = z.nativeEnum(exports.GetStudentsForClassInSchoolOrderBy);
/** @internal */
exports.GetStudentsForClassInSchoolOrderBy$outboundSchema = exports.GetStudentsForClassInSchoolOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolOrderBy$;
(function (GetStudentsForClassInSchoolOrderBy$) {
    /** @deprecated use `GetStudentsForClassInSchoolOrderBy$inboundSchema` instead. */
    GetStudentsForClassInSchoolOrderBy$.inboundSchema = exports.GetStudentsForClassInSchoolOrderBy$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolOrderBy$outboundSchema` instead. */
    GetStudentsForClassInSchoolOrderBy$.outboundSchema = exports.GetStudentsForClassInSchoolOrderBy$outboundSchema;
})(GetStudentsForClassInSchoolOrderBy$ || (exports.GetStudentsForClassInSchoolOrderBy$ = GetStudentsForClassInSchoolOrderBy$ = {}));
/** @internal */
exports.GetStudentsForClassInSchoolRequest$inboundSchema = z.object({
    schoolSourcedId: z.string(),
    classSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetStudentsForClassInSchoolOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetStudentsForClassInSchoolRequest$outboundSchema = z.object({
    schoolSourcedId: z.string(),
    classSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetStudentsForClassInSchoolOrderBy$outboundSchema.optional(),
    filter: z.string().optional(),
    search: 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 GetStudentsForClassInSchoolRequest$;
(function (GetStudentsForClassInSchoolRequest$) {
    /** @deprecated use `GetStudentsForClassInSchoolRequest$inboundSchema` instead. */
    GetStudentsForClassInSchoolRequest$.inboundSchema = exports.GetStudentsForClassInSchoolRequest$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolRequest$outboundSchema` instead. */
    GetStudentsForClassInSchoolRequest$.outboundSchema = exports.GetStudentsForClassInSchoolRequest$outboundSchema;
})(GetStudentsForClassInSchoolRequest$ || (exports.GetStudentsForClassInSchoolRequest$ = GetStudentsForClassInSchoolRequest$ = {}));
function getStudentsForClassInSchoolRequestToJSON(getStudentsForClassInSchoolRequest) {
    return JSON.stringify(exports.GetStudentsForClassInSchoolRequest$outboundSchema.parse(getStudentsForClassInSchoolRequest));
}
function getStudentsForClassInSchoolRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForClassInSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolRequest' from JSON`);
}
/** @internal */
exports.GetStudentsForClassInSchoolStatus$inboundSchema = z.nativeEnum(exports.GetStudentsForClassInSchoolStatus);
/** @internal */
exports.GetStudentsForClassInSchoolStatus$outboundSchema = exports.GetStudentsForClassInSchoolStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolStatus$;
(function (GetStudentsForClassInSchoolStatus$) {
    /** @deprecated use `GetStudentsForClassInSchoolStatus$inboundSchema` instead. */
    GetStudentsForClassInSchoolStatus$.inboundSchema = exports.GetStudentsForClassInSchoolStatus$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolStatus$outboundSchema` instead. */
    GetStudentsForClassInSchoolStatus$.outboundSchema = exports.GetStudentsForClassInSchoolStatus$outboundSchema;
})(GetStudentsForClassInSchoolStatus$ || (exports.GetStudentsForClassInSchoolStatus$ = GetStudentsForClassInSchoolStatus$ = {}));
/** @internal */
exports.GetStudentsForClassInSchoolUserId$inboundSchema = z.object({
    type: z.string(),
    identifier: z.string(),
});
/** @internal */
exports.GetStudentsForClassInSchoolUserId$outboundSchema = z.object({
    type: z.string(),
    identifier: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolUserId$;
(function (GetStudentsForClassInSchoolUserId$) {
    /** @deprecated use `GetStudentsForClassInSchoolUserId$inboundSchema` instead. */
    GetStudentsForClassInSchoolUserId$.inboundSchema = exports.GetStudentsForClassInSchoolUserId$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolUserId$outboundSchema` instead. */
    GetStudentsForClassInSchoolUserId$.outboundSchema = exports.GetStudentsForClassInSchoolUserId$outboundSchema;
})(GetStudentsForClassInSchoolUserId$ || (exports.GetStudentsForClassInSchoolUserId$ = GetStudentsForClassInSchoolUserId$ = {}));
function getStudentsForClassInSchoolUserIdToJSON(getStudentsForClassInSchoolUserId) {
    return JSON.stringify(exports.GetStudentsForClassInSchoolUserId$outboundSchema.parse(getStudentsForClassInSchoolUserId));
}
function getStudentsForClassInSchoolUserIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForClassInSchoolUserId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolUserId' from JSON`);
}
/** @internal */
exports.GetStudentsForClassInSchoolRoleType$inboundSchema = z.nativeEnum(exports.GetStudentsForClassInSchoolRoleType);
/** @internal */
exports.GetStudentsForClassInSchoolRoleType$outboundSchema = exports.GetStudentsForClassInSchoolRoleType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolRoleType$;
(function (GetStudentsForClassInSchoolRoleType$) {
    /** @deprecated use `GetStudentsForClassInSchoolRoleType$inboundSchema` instead. */
    GetStudentsForClassInSchoolRoleType$.inboundSchema = exports.GetStudentsForClassInSchoolRoleType$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolRoleType$outboundSchema` instead. */
    GetStudentsForClassInSchoolRoleType$.outboundSchema = exports.GetStudentsForClassInSchoolRoleType$outboundSchema;
})(GetStudentsForClassInSchoolRoleType$ || (exports.GetStudentsForClassInSchoolRoleType$ = GetStudentsForClassInSchoolRoleType$ = {}));
/** @internal */
exports.GetStudentsForClassInSchoolRoleEnum$inboundSchema = z.nativeEnum(exports.GetStudentsForClassInSchoolRoleEnum);
/** @internal */
exports.GetStudentsForClassInSchoolRoleEnum$outboundSchema = exports.GetStudentsForClassInSchoolRoleEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolRoleEnum$;
(function (GetStudentsForClassInSchoolRoleEnum$) {
    /** @deprecated use `GetStudentsForClassInSchoolRoleEnum$inboundSchema` instead. */
    GetStudentsForClassInSchoolRoleEnum$.inboundSchema = exports.GetStudentsForClassInSchoolRoleEnum$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolRoleEnum$outboundSchema` instead. */
    GetStudentsForClassInSchoolRoleEnum$.outboundSchema = exports.GetStudentsForClassInSchoolRoleEnum$outboundSchema;
})(GetStudentsForClassInSchoolRoleEnum$ || (exports.GetStudentsForClassInSchoolRoleEnum$ = GetStudentsForClassInSchoolRoleEnum$ = {}));
/** @internal */
exports.GetStudentsForClassInSchoolOrg$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/** @internal */
exports.GetStudentsForClassInSchoolOrg$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolOrg$;
(function (GetStudentsForClassInSchoolOrg$) {
    /** @deprecated use `GetStudentsForClassInSchoolOrg$inboundSchema` instead. */
    GetStudentsForClassInSchoolOrg$.inboundSchema = exports.GetStudentsForClassInSchoolOrg$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolOrg$outboundSchema` instead. */
    GetStudentsForClassInSchoolOrg$.outboundSchema = exports.GetStudentsForClassInSchoolOrg$outboundSchema;
})(GetStudentsForClassInSchoolOrg$ || (exports.GetStudentsForClassInSchoolOrg$ = GetStudentsForClassInSchoolOrg$ = {}));
function getStudentsForClassInSchoolOrgToJSON(getStudentsForClassInSchoolOrg) {
    return JSON.stringify(exports.GetStudentsForClassInSchoolOrg$outboundSchema.parse(getStudentsForClassInSchoolOrg));
}
function getStudentsForClassInSchoolOrgFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForClassInSchoolOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolOrg' from JSON`);
}
/** @internal */
exports.GetStudentsForClassInSchoolRole$inboundSchema = z.object({
    roleType: exports.GetStudentsForClassInSchoolRoleType$inboundSchema,
    role: exports.GetStudentsForClassInSchoolRoleEnum$inboundSchema,
    org: z.lazy(() => exports.GetStudentsForClassInSchoolOrg$inboundSchema),
    userProfile: z.string().optional(),
    beginDate: z.nullable(z.string()),
    endDate: z.nullable(z.string()),
});
/** @internal */
exports.GetStudentsForClassInSchoolRole$outboundSchema = z.object({
    roleType: exports.GetStudentsForClassInSchoolRoleType$outboundSchema,
    role: exports.GetStudentsForClassInSchoolRoleEnum$outboundSchema,
    org: z.lazy(() => exports.GetStudentsForClassInSchoolOrg$outboundSchema),
    userProfile: z.string().optional(),
    beginDate: z.nullable(z.string()),
    endDate: z.nullable(z.string()),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolRole$;
(function (GetStudentsForClassInSchoolRole$) {
    /** @deprecated use `GetStudentsForClassInSchoolRole$inboundSchema` instead. */
    GetStudentsForClassInSchoolRole$.inboundSchema = exports.GetStudentsForClassInSchoolRole$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolRole$outboundSchema` instead. */
    GetStudentsForClassInSchoolRole$.outboundSchema = exports.GetStudentsForClassInSchoolRole$outboundSchema;
})(GetStudentsForClassInSchoolRole$ || (exports.GetStudentsForClassInSchoolRole$ = GetStudentsForClassInSchoolRole$ = {}));
function getStudentsForClassInSchoolRoleToJSON(getStudentsForClassInSchoolRole) {
    return JSON.stringify(exports.GetStudentsForClassInSchoolRole$outboundSchema.parse(getStudentsForClassInSchoolRole));
}
function getStudentsForClassInSchoolRoleFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForClassInSchoolRole$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolRole' from JSON`);
}
/** @internal */
exports.GetStudentsForClassInSchoolType$inboundSchema = z.nativeEnum(exports.GetStudentsForClassInSchoolType);
/** @internal */
exports.GetStudentsForClassInSchoolType$outboundSchema = exports.GetStudentsForClassInSchoolType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolType$;
(function (GetStudentsForClassInSchoolType$) {
    /** @deprecated use `GetStudentsForClassInSchoolType$inboundSchema` instead. */
    GetStudentsForClassInSchoolType$.inboundSchema = exports.GetStudentsForClassInSchoolType$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolType$outboundSchema` instead. */
    GetStudentsForClassInSchoolType$.outboundSchema = exports.GetStudentsForClassInSchoolType$outboundSchema;
})(GetStudentsForClassInSchoolType$ || (exports.GetStudentsForClassInSchoolType$ = GetStudentsForClassInSchoolType$ = {}));
/** @internal */
exports.GetStudentsForClassInSchoolAgent$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: exports.GetStudentsForClassInSchoolType$inboundSchema,
});
/** @internal */
exports.GetStudentsForClassInSchoolAgent$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: exports.GetStudentsForClassInSchoolType$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolAgent$;
(function (GetStudentsForClassInSchoolAgent$) {
    /** @deprecated use `GetStudentsForClassInSchoolAgent$inboundSchema` instead. */
    GetStudentsForClassInSchoolAgent$.inboundSchema = exports.GetStudentsForClassInSchoolAgent$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolAgent$outboundSchema` instead. */
    GetStudentsForClassInSchoolAgent$.outboundSchema = exports.GetStudentsForClassInSchoolAgent$outboundSchema;
})(GetStudentsForClassInSchoolAgent$ || (exports.GetStudentsForClassInSchoolAgent$ = GetStudentsForClassInSchoolAgent$ = {}));
function getStudentsForClassInSchoolAgentToJSON(getStudentsForClassInSchoolAgent) {
    return JSON.stringify(exports.GetStudentsForClassInSchoolAgent$outboundSchema.parse(getStudentsForClassInSchoolAgent));
}
function getStudentsForClassInSchoolAgentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForClassInSchoolAgent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolAgent' from JSON`);
}
/** @internal */
exports.GetStudentsForClassInSchoolPrimaryOrg$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/** @internal */
exports.GetStudentsForClassInSchoolPrimaryOrg$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolPrimaryOrg$;
(function (GetStudentsForClassInSchoolPrimaryOrg$) {
    /** @deprecated use `GetStudentsForClassInSchoolPrimaryOrg$inboundSchema` instead. */
    GetStudentsForClassInSchoolPrimaryOrg$.inboundSchema = exports.GetStudentsForClassInSchoolPrimaryOrg$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolPrimaryOrg$outboundSchema` instead. */
    GetStudentsForClassInSchoolPrimaryOrg$.outboundSchema = exports.GetStudentsForClassInSchoolPrimaryOrg$outboundSchema;
})(GetStudentsForClassInSchoolPrimaryOrg$ || (exports.GetStudentsForClassInSchoolPrimaryOrg$ = GetStudentsForClassInSchoolPrimaryOrg$ = {}));
function getStudentsForClassInSchoolPrimaryOrgToJSON(getStudentsForClassInSchoolPrimaryOrg) {
    return JSON.stringify(exports.GetStudentsForClassInSchoolPrimaryOrg$outboundSchema.parse(getStudentsForClassInSchoolPrimaryOrg));
}
function getStudentsForClassInSchoolPrimaryOrgFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForClassInSchoolPrimaryOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolPrimaryOrg' from JSON`);
}
/** @internal */
exports.GetStudentsForClassInSchoolUser$inboundSchema = z.object({
    sourcedId: z.string(),
    status: exports.GetStudentsForClassInSchoolStatus$inboundSchema,
    dateLastModified: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    userMasterIdentifier: z.nullable(z.string()).optional(),
    username: z.nullable(z.string()).optional(),
    userIds: z.array(z.lazy(() => exports.GetStudentsForClassInSchoolUserId$inboundSchema)).optional(),
    enabledUser: z.boolean(),
    givenName: z.string(),
    familyName: z.string(),
    middleName: z.nullable(z.string()).optional(),
    roles: z.array(z.lazy(() => exports.GetStudentsForClassInSchoolRole$inboundSchema)),
    agents: z.array(z.lazy(() => exports.GetStudentsForClassInSchoolAgent$inboundSchema)),
    primaryOrg: z.lazy(() => exports.GetStudentsForClassInSchoolPrimaryOrg$inboundSchema)
        .optional(),
    email: z.nullable(z.string()).optional(),
    preferredFirstName: z.nullable(z.string()).optional(),
    preferredMiddleName: z.nullable(z.string()).optional(),
    preferredLastName: z.nullable(z.string()).optional(),
    pronouns: z.nullable(z.string()).optional(),
    grades: z.array(z.string()).optional(),
    password: z.nullable(z.string()).optional(),
    sms: z.nullable(z.string()).optional(),
    phone: z.nullable(z.string()).optional(),
});
/** @internal */
exports.GetStudentsForClassInSchoolUser$outboundSchema = z.object({
    sourcedId: z.string(),
    status: exports.GetStudentsForClassInSchoolStatus$outboundSchema,
    dateLastModified: z.date().transform(v => v.toISOString()).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    userMasterIdentifier: z.nullable(z.string()).optional(),
    username: z.nullable(z.string()).optional(),
    userIds: z.array(z.lazy(() => exports.GetStudentsForClassInSchoolUserId$outboundSchema)).optional(),
    enabledUser: z.boolean(),
    givenName: z.string(),
    familyName: z.string(),
    middleName: z.nullable(z.string()).optional(),
    roles: z.array(z.lazy(() => exports.GetStudentsForClassInSchoolRole$outboundSchema)),
    agents: z.array(z.lazy(() => exports.GetStudentsForClassInSchoolAgent$outboundSchema)),
    primaryOrg: z.lazy(() => exports.GetStudentsForClassInSchoolPrimaryOrg$outboundSchema)
        .optional(),
    email: z.nullable(z.string()).optional(),
    preferredFirstName: z.nullable(z.string()).optional(),
    preferredMiddleName: z.nullable(z.string()).optional(),
    preferredLastName: z.nullable(z.string()).optional(),
    pronouns: z.nullable(z.string()).optional(),
    grades: z.array(z.string()).optional(),
    password: z.nullable(z.string()).optional(),
    sms: z.nullable(z.string()).optional(),
    phone: z.nullable(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 GetStudentsForClassInSchoolUser$;
(function (GetStudentsForClassInSchoolUser$) {
    /** @deprecated use `GetStudentsForClassInSchoolUser$inboundSchema` instead. */
    GetStudentsForClassInSchoolUser$.inboundSchema = exports.GetStudentsForClassInSchoolUser$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolUser$outboundSchema` instead. */
    GetStudentsForClassInSchoolUser$.outboundSchema = exports.GetStudentsForClassInSchoolUser$outboundSchema;
})(GetStudentsForClassInSchoolUser$ || (exports.GetStudentsForClassInSchoolUser$ = GetStudentsForClassInSchoolUser$ = {}));
function getStudentsForClassInSchoolUserToJSON(getStudentsForClassInSchoolUser) {
    return JSON.stringify(exports.GetStudentsForClassInSchoolUser$outboundSchema.parse(getStudentsForClassInSchoolUser));
}
function getStudentsForClassInSchoolUserFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForClassInSchoolUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolUser' from JSON`);
}
/** @internal */
exports.GetStudentsForClassInSchoolResponseBody$inboundSchema = z.object({
    users: z.array(z.lazy(() => exports.GetStudentsForClassInSchoolUser$inboundSchema)),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetStudentsForClassInSchoolResponseBody$outboundSchema = z.object({
    users: z.array(z.lazy(() => exports.GetStudentsForClassInSchoolUser$outboundSchema)),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolResponseBody$;
(function (GetStudentsForClassInSchoolResponseBody$) {
    /** @deprecated use `GetStudentsForClassInSchoolResponseBody$inboundSchema` instead. */
    GetStudentsForClassInSchoolResponseBody$.inboundSchema = exports.GetStudentsForClassInSchoolResponseBody$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolResponseBody$outboundSchema` instead. */
    GetStudentsForClassInSchoolResponseBody$.outboundSchema = exports.GetStudentsForClassInSchoolResponseBody$outboundSchema;
})(GetStudentsForClassInSchoolResponseBody$ || (exports.GetStudentsForClassInSchoolResponseBody$ = GetStudentsForClassInSchoolResponseBody$ = {}));
function getStudentsForClassInSchoolResponseBodyToJSON(getStudentsForClassInSchoolResponseBody) {
    return JSON.stringify(exports.GetStudentsForClassInSchoolResponseBody$outboundSchema.parse(getStudentsForClassInSchoolResponseBody));
}
function getStudentsForClassInSchoolResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForClassInSchoolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolResponseBody' from JSON`);
}
/** @internal */
exports.GetStudentsForClassInSchoolResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetStudentsForClassInSchoolResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetStudentsForClassInSchoolResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetStudentsForClassInSchoolResponseBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        result: "Result",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForClassInSchoolResponse$;
(function (GetStudentsForClassInSchoolResponse$) {
    /** @deprecated use `GetStudentsForClassInSchoolResponse$inboundSchema` instead. */
    GetStudentsForClassInSchoolResponse$.inboundSchema = exports.GetStudentsForClassInSchoolResponse$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolResponse$outboundSchema` instead. */
    GetStudentsForClassInSchoolResponse$.outboundSchema = exports.GetStudentsForClassInSchoolResponse$outboundSchema;
})(GetStudentsForClassInSchoolResponse$ || (exports.GetStudentsForClassInSchoolResponse$ = GetStudentsForClassInSchoolResponse$ = {}));
function getStudentsForClassInSchoolResponseToJSON(getStudentsForClassInSchoolResponse) {
    return JSON.stringify(exports.GetStudentsForClassInSchoolResponse$outboundSchema.parse(getStudentsForClassInSchoolResponse));
}
function getStudentsForClassInSchoolResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForClassInSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolResponse' from JSON`);
}
//# sourceMappingURL=getstudentsforclassinschool.js.map