/*
 * 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";
/**
 * The order to sort the response by
 */
export const GetAllTeachersOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
export const GetAllTeachersStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
export const GetAllTeachersRoleType = {
    Primary: "primary",
    Secondary: "secondary",
};
export const GetAllTeachersRoleEnum = {
    Administrator: "administrator",
    Aide: "aide",
    Guardian: "guardian",
    Parent: "parent",
    Proctor: "proctor",
    Relative: "relative",
    Student: "student",
    Teacher: "teacher",
};
export const GetAllTeachersType = {
    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 */
export const GetAllTeachersOrderBy$inboundSchema = z.nativeEnum(GetAllTeachersOrderBy);
/** @internal */
export const GetAllTeachersOrderBy$outboundSchema = GetAllTeachersOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAllTeachersOrderBy$;
(function (GetAllTeachersOrderBy$) {
    /** @deprecated use `GetAllTeachersOrderBy$inboundSchema` instead. */
    GetAllTeachersOrderBy$.inboundSchema = GetAllTeachersOrderBy$inboundSchema;
    /** @deprecated use `GetAllTeachersOrderBy$outboundSchema` instead. */
    GetAllTeachersOrderBy$.outboundSchema = GetAllTeachersOrderBy$outboundSchema;
})(GetAllTeachersOrderBy$ || (GetAllTeachersOrderBy$ = {}));
/** @internal */
export const GetAllTeachersRequest$inboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetAllTeachersOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetAllTeachersRequest$outboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetAllTeachersOrderBy$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.
 */
export var GetAllTeachersRequest$;
(function (GetAllTeachersRequest$) {
    /** @deprecated use `GetAllTeachersRequest$inboundSchema` instead. */
    GetAllTeachersRequest$.inboundSchema = GetAllTeachersRequest$inboundSchema;
    /** @deprecated use `GetAllTeachersRequest$outboundSchema` instead. */
    GetAllTeachersRequest$.outboundSchema = GetAllTeachersRequest$outboundSchema;
})(GetAllTeachersRequest$ || (GetAllTeachersRequest$ = {}));
export function getAllTeachersRequestToJSON(getAllTeachersRequest) {
    return JSON.stringify(GetAllTeachersRequest$outboundSchema.parse(getAllTeachersRequest));
}
export function getAllTeachersRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllTeachersRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTeachersRequest' from JSON`);
}
/** @internal */
export const GetAllTeachersStatus$inboundSchema = z.nativeEnum(GetAllTeachersStatus);
/** @internal */
export const GetAllTeachersStatus$outboundSchema = GetAllTeachersStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAllTeachersStatus$;
(function (GetAllTeachersStatus$) {
    /** @deprecated use `GetAllTeachersStatus$inboundSchema` instead. */
    GetAllTeachersStatus$.inboundSchema = GetAllTeachersStatus$inboundSchema;
    /** @deprecated use `GetAllTeachersStatus$outboundSchema` instead. */
    GetAllTeachersStatus$.outboundSchema = GetAllTeachersStatus$outboundSchema;
})(GetAllTeachersStatus$ || (GetAllTeachersStatus$ = {}));
/** @internal */
export const GetAllTeachersUserId$inboundSchema = z.object({
    type: z.string(),
    identifier: z.string(),
});
/** @internal */
export const GetAllTeachersUserId$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.
 */
export var GetAllTeachersUserId$;
(function (GetAllTeachersUserId$) {
    /** @deprecated use `GetAllTeachersUserId$inboundSchema` instead. */
    GetAllTeachersUserId$.inboundSchema = GetAllTeachersUserId$inboundSchema;
    /** @deprecated use `GetAllTeachersUserId$outboundSchema` instead. */
    GetAllTeachersUserId$.outboundSchema = GetAllTeachersUserId$outboundSchema;
})(GetAllTeachersUserId$ || (GetAllTeachersUserId$ = {}));
export function getAllTeachersUserIdToJSON(getAllTeachersUserId) {
    return JSON.stringify(GetAllTeachersUserId$outboundSchema.parse(getAllTeachersUserId));
}
export function getAllTeachersUserIdFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllTeachersUserId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTeachersUserId' from JSON`);
}
/** @internal */
export const GetAllTeachersRoleType$inboundSchema = z.nativeEnum(GetAllTeachersRoleType);
/** @internal */
export const GetAllTeachersRoleType$outboundSchema = GetAllTeachersRoleType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAllTeachersRoleType$;
(function (GetAllTeachersRoleType$) {
    /** @deprecated use `GetAllTeachersRoleType$inboundSchema` instead. */
    GetAllTeachersRoleType$.inboundSchema = GetAllTeachersRoleType$inboundSchema;
    /** @deprecated use `GetAllTeachersRoleType$outboundSchema` instead. */
    GetAllTeachersRoleType$.outboundSchema = GetAllTeachersRoleType$outboundSchema;
})(GetAllTeachersRoleType$ || (GetAllTeachersRoleType$ = {}));
/** @internal */
export const GetAllTeachersRoleEnum$inboundSchema = z.nativeEnum(GetAllTeachersRoleEnum);
/** @internal */
export const GetAllTeachersRoleEnum$outboundSchema = GetAllTeachersRoleEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAllTeachersRoleEnum$;
(function (GetAllTeachersRoleEnum$) {
    /** @deprecated use `GetAllTeachersRoleEnum$inboundSchema` instead. */
    GetAllTeachersRoleEnum$.inboundSchema = GetAllTeachersRoleEnum$inboundSchema;
    /** @deprecated use `GetAllTeachersRoleEnum$outboundSchema` instead. */
    GetAllTeachersRoleEnum$.outboundSchema = GetAllTeachersRoleEnum$outboundSchema;
})(GetAllTeachersRoleEnum$ || (GetAllTeachersRoleEnum$ = {}));
/** @internal */
export const GetAllTeachersOrg$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/** @internal */
export const GetAllTeachersOrg$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.
 */
export var GetAllTeachersOrg$;
(function (GetAllTeachersOrg$) {
    /** @deprecated use `GetAllTeachersOrg$inboundSchema` instead. */
    GetAllTeachersOrg$.inboundSchema = GetAllTeachersOrg$inboundSchema;
    /** @deprecated use `GetAllTeachersOrg$outboundSchema` instead. */
    GetAllTeachersOrg$.outboundSchema = GetAllTeachersOrg$outboundSchema;
})(GetAllTeachersOrg$ || (GetAllTeachersOrg$ = {}));
export function getAllTeachersOrgToJSON(getAllTeachersOrg) {
    return JSON.stringify(GetAllTeachersOrg$outboundSchema.parse(getAllTeachersOrg));
}
export function getAllTeachersOrgFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllTeachersOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTeachersOrg' from JSON`);
}
/** @internal */
export const GetAllTeachersRole$inboundSchema = z.object({
    roleType: GetAllTeachersRoleType$inboundSchema,
    role: GetAllTeachersRoleEnum$inboundSchema,
    org: z.lazy(() => GetAllTeachersOrg$inboundSchema),
    userProfile: z.string().optional(),
    beginDate: z.nullable(z.string()),
    endDate: z.nullable(z.string()),
});
/** @internal */
export const GetAllTeachersRole$outboundSchema = z.object({
    roleType: GetAllTeachersRoleType$outboundSchema,
    role: GetAllTeachersRoleEnum$outboundSchema,
    org: z.lazy(() => GetAllTeachersOrg$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.
 */
export var GetAllTeachersRole$;
(function (GetAllTeachersRole$) {
    /** @deprecated use `GetAllTeachersRole$inboundSchema` instead. */
    GetAllTeachersRole$.inboundSchema = GetAllTeachersRole$inboundSchema;
    /** @deprecated use `GetAllTeachersRole$outboundSchema` instead. */
    GetAllTeachersRole$.outboundSchema = GetAllTeachersRole$outboundSchema;
})(GetAllTeachersRole$ || (GetAllTeachersRole$ = {}));
export function getAllTeachersRoleToJSON(getAllTeachersRole) {
    return JSON.stringify(GetAllTeachersRole$outboundSchema.parse(getAllTeachersRole));
}
export function getAllTeachersRoleFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllTeachersRole$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTeachersRole' from JSON`);
}
/** @internal */
export const GetAllTeachersType$inboundSchema = z.nativeEnum(GetAllTeachersType);
/** @internal */
export const GetAllTeachersType$outboundSchema = GetAllTeachersType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAllTeachersType$;
(function (GetAllTeachersType$) {
    /** @deprecated use `GetAllTeachersType$inboundSchema` instead. */
    GetAllTeachersType$.inboundSchema = GetAllTeachersType$inboundSchema;
    /** @deprecated use `GetAllTeachersType$outboundSchema` instead. */
    GetAllTeachersType$.outboundSchema = GetAllTeachersType$outboundSchema;
})(GetAllTeachersType$ || (GetAllTeachersType$ = {}));
/** @internal */
export const GetAllTeachersAgent$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: GetAllTeachersType$inboundSchema,
});
/** @internal */
export const GetAllTeachersAgent$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: GetAllTeachersType$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAllTeachersAgent$;
(function (GetAllTeachersAgent$) {
    /** @deprecated use `GetAllTeachersAgent$inboundSchema` instead. */
    GetAllTeachersAgent$.inboundSchema = GetAllTeachersAgent$inboundSchema;
    /** @deprecated use `GetAllTeachersAgent$outboundSchema` instead. */
    GetAllTeachersAgent$.outboundSchema = GetAllTeachersAgent$outboundSchema;
})(GetAllTeachersAgent$ || (GetAllTeachersAgent$ = {}));
export function getAllTeachersAgentToJSON(getAllTeachersAgent) {
    return JSON.stringify(GetAllTeachersAgent$outboundSchema.parse(getAllTeachersAgent));
}
export function getAllTeachersAgentFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllTeachersAgent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTeachersAgent' from JSON`);
}
/** @internal */
export const GetAllTeachersPrimaryOrg$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/** @internal */
export const GetAllTeachersPrimaryOrg$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.
 */
export var GetAllTeachersPrimaryOrg$;
(function (GetAllTeachersPrimaryOrg$) {
    /** @deprecated use `GetAllTeachersPrimaryOrg$inboundSchema` instead. */
    GetAllTeachersPrimaryOrg$.inboundSchema = GetAllTeachersPrimaryOrg$inboundSchema;
    /** @deprecated use `GetAllTeachersPrimaryOrg$outboundSchema` instead. */
    GetAllTeachersPrimaryOrg$.outboundSchema = GetAllTeachersPrimaryOrg$outboundSchema;
})(GetAllTeachersPrimaryOrg$ || (GetAllTeachersPrimaryOrg$ = {}));
export function getAllTeachersPrimaryOrgToJSON(getAllTeachersPrimaryOrg) {
    return JSON.stringify(GetAllTeachersPrimaryOrg$outboundSchema.parse(getAllTeachersPrimaryOrg));
}
export function getAllTeachersPrimaryOrgFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllTeachersPrimaryOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTeachersPrimaryOrg' from JSON`);
}
/** @internal */
export const GetAllTeachersUser$inboundSchema = z.object({
    sourcedId: z.string(),
    status: GetAllTeachersStatus$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(() => GetAllTeachersUserId$inboundSchema)).optional(),
    enabledUser: z.boolean(),
    givenName: z.string(),
    familyName: z.string(),
    middleName: z.nullable(z.string()).optional(),
    roles: z.array(z.lazy(() => GetAllTeachersRole$inboundSchema)),
    agents: z.array(z.lazy(() => GetAllTeachersAgent$inboundSchema)),
    primaryOrg: z.lazy(() => GetAllTeachersPrimaryOrg$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 */
export const GetAllTeachersUser$outboundSchema = z.object({
    sourcedId: z.string(),
    status: GetAllTeachersStatus$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(() => GetAllTeachersUserId$outboundSchema))
        .optional(),
    enabledUser: z.boolean(),
    givenName: z.string(),
    familyName: z.string(),
    middleName: z.nullable(z.string()).optional(),
    roles: z.array(z.lazy(() => GetAllTeachersRole$outboundSchema)),
    agents: z.array(z.lazy(() => GetAllTeachersAgent$outboundSchema)),
    primaryOrg: z.lazy(() => GetAllTeachersPrimaryOrg$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.
 */
export var GetAllTeachersUser$;
(function (GetAllTeachersUser$) {
    /** @deprecated use `GetAllTeachersUser$inboundSchema` instead. */
    GetAllTeachersUser$.inboundSchema = GetAllTeachersUser$inboundSchema;
    /** @deprecated use `GetAllTeachersUser$outboundSchema` instead. */
    GetAllTeachersUser$.outboundSchema = GetAllTeachersUser$outboundSchema;
})(GetAllTeachersUser$ || (GetAllTeachersUser$ = {}));
export function getAllTeachersUserToJSON(getAllTeachersUser) {
    return JSON.stringify(GetAllTeachersUser$outboundSchema.parse(getAllTeachersUser));
}
export function getAllTeachersUserFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllTeachersUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTeachersUser' from JSON`);
}
/** @internal */
export const GetAllTeachersResponseBody$inboundSchema = z.object({
    users: z.array(z.lazy(() => GetAllTeachersUser$inboundSchema)),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetAllTeachersResponseBody$outboundSchema = z.object({
    users: z.array(z.lazy(() => GetAllTeachersUser$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.
 */
export var GetAllTeachersResponseBody$;
(function (GetAllTeachersResponseBody$) {
    /** @deprecated use `GetAllTeachersResponseBody$inboundSchema` instead. */
    GetAllTeachersResponseBody$.inboundSchema = GetAllTeachersResponseBody$inboundSchema;
    /** @deprecated use `GetAllTeachersResponseBody$outboundSchema` instead. */
    GetAllTeachersResponseBody$.outboundSchema = GetAllTeachersResponseBody$outboundSchema;
})(GetAllTeachersResponseBody$ || (GetAllTeachersResponseBody$ = {}));
export function getAllTeachersResponseBodyToJSON(getAllTeachersResponseBody) {
    return JSON.stringify(GetAllTeachersResponseBody$outboundSchema.parse(getAllTeachersResponseBody));
}
export function getAllTeachersResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllTeachersResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTeachersResponseBody' from JSON`);
}
/** @internal */
export const GetAllTeachersResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetAllTeachersResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetAllTeachersResponse$outboundSchema = z.object({
    result: z.lazy(() => GetAllTeachersResponseBody$outboundSchema),
}).transform((v) => {
    return 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.
 */
export var GetAllTeachersResponse$;
(function (GetAllTeachersResponse$) {
    /** @deprecated use `GetAllTeachersResponse$inboundSchema` instead. */
    GetAllTeachersResponse$.inboundSchema = GetAllTeachersResponse$inboundSchema;
    /** @deprecated use `GetAllTeachersResponse$outboundSchema` instead. */
    GetAllTeachersResponse$.outboundSchema = GetAllTeachersResponse$outboundSchema;
})(GetAllTeachersResponse$ || (GetAllTeachersResponse$ = {}));
export function getAllTeachersResponseToJSON(getAllTeachersResponse) {
    return JSON.stringify(GetAllTeachersResponse$outboundSchema.parse(getAllTeachersResponse));
}
export function getAllTeachersResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAllTeachersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllTeachersResponse' from JSON`);
}
//# sourceMappingURL=getallteachers.js.map