WayrApp Backend & Ecosystem Documentation - v1.0.0
    Preparing search index...

    Variable ModuleTypeSchemaConst

    ModuleTypeSchema: ZodEnum<
        ["informative", "basic_lesson", "reading", "dialogue", "exam"],
    > = ...

    Module type validation schema for educational content categorization

    Enumeration schema that defines the different types of learning modules available in the language learning platform. This schema ensures consistent module categorization and supports the platform's pedagogical structure by enforcing valid module types for content organization and user navigation.

    The module types represent different learning approaches: informative modules provide background knowledge, basic lessons cover fundamental concepts, reading modules focus on comprehension skills, dialogue modules practice conversational skills, and exam modules assess learning progress.

    // Module creation with type validation
    const CreateModuleSchema = z.object({
    title: z.string().min(1).max(200),
    type: ModuleTypeSchema,
    description: z.string().max(1000).optional(),
    order: OrderSchema
    });
    // Module filtering by type
    const ModuleQuerySchema = z.object({
    type: ModuleTypeSchema.optional(),
    difficulty: z.enum(['beginner', 'intermediate', 'advanced']).optional()
    });