/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/**
 * The type of external service (e.g.: 'edulastic')
 */
export const CreateExternalPlacementInputToolProvider = {
    Edulastic: "edulastic",
};
/** @internal */
export const CreateExternalPlacementInputToolProvider$inboundSchema = z
    .nativeEnum(CreateExternalPlacementInputToolProvider);
/** @internal */
export const CreateExternalPlacementInputToolProvider$outboundSchema = CreateExternalPlacementInputToolProvider$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateExternalPlacementInputToolProvider$;
(function (CreateExternalPlacementInputToolProvider$) {
    /** @deprecated use `CreateExternalPlacementInputToolProvider$inboundSchema` instead. */
    CreateExternalPlacementInputToolProvider$.inboundSchema = CreateExternalPlacementInputToolProvider$inboundSchema;
    /** @deprecated use `CreateExternalPlacementInputToolProvider$outboundSchema` instead. */
    CreateExternalPlacementInputToolProvider$.outboundSchema = CreateExternalPlacementInputToolProvider$outboundSchema;
})(CreateExternalPlacementInputToolProvider$ || (CreateExternalPlacementInputToolProvider$ = {}));
/** @internal */
export const CreateExternalPlacementInput$inboundSchema = z.object({
    courseId: z.string(),
    lessonTitle: z.string().optional(),
    launchUrl: z.string().optional(),
    toolProvider: CreateExternalPlacementInputToolProvider$inboundSchema,
    unitTitle: z.string().optional(),
    courseComponentSourcedId: z.string().optional(),
    vendorId: z.string(),
    description: z.string().optional(),
    resourceMetadata: z.any().optional(),
    lessonType: z.literal("placement").default("placement").optional(),
    grades: z.array(z.number()),
    courseIdOnFail: z.nullable(z.string()).optional(),
    xp: z.number().optional(),
});
/** @internal */
export const CreateExternalPlacementInput$outboundSchema = z.object({
    courseId: z.string(),
    lessonTitle: z.string().optional(),
    launchUrl: z.string().optional(),
    toolProvider: CreateExternalPlacementInputToolProvider$outboundSchema,
    unitTitle: z.string().optional(),
    courseComponentSourcedId: z.string().optional(),
    vendorId: z.string(),
    description: z.string().optional(),
    resourceMetadata: z.any().optional(),
    lessonType: z.literal("placement").default("placement"),
    grades: z.array(z.number()),
    courseIdOnFail: z.nullable(z.string()).optional(),
    xp: z.number().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateExternalPlacementInput$;
(function (CreateExternalPlacementInput$) {
    /** @deprecated use `CreateExternalPlacementInput$inboundSchema` instead. */
    CreateExternalPlacementInput$.inboundSchema = CreateExternalPlacementInput$inboundSchema;
    /** @deprecated use `CreateExternalPlacementInput$outboundSchema` instead. */
    CreateExternalPlacementInput$.outboundSchema = CreateExternalPlacementInput$outboundSchema;
})(CreateExternalPlacementInput$ || (CreateExternalPlacementInput$ = {}));
export function createExternalPlacementInputToJSON(createExternalPlacementInput) {
    return JSON.stringify(CreateExternalPlacementInput$outboundSchema.parse(createExternalPlacementInput));
}
export function createExternalPlacementInputFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateExternalPlacementInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateExternalPlacementInput' from JSON`);
}
//# sourceMappingURL=createexternalplacementinput.js.map