mui-toolpad-extended-tuni
Version:
32 lines (31 loc) • 829 B
TypeScript
/** @format */
export interface CourseRaw {
title: string;
description: string;
code: string;
instance: string;
ltiLoginUrl?: string;
services?: string[];
}
export interface Course extends CourseRaw {
id: string;
createdAt: string;
updatedAt: string;
}
/**
* Course management store with enhanced instance handling.
*
* @version 2.1.0
* @updates
* - Added support for course codes and instances
* - Enhanced course filtering capabilities
* - Added currentCourseCode state
* - Updated Course interface with new fields
* - Added instance-specific state management
*
* @breaking-changes
* - Updated Course interface requires code and instance fields
* - Changed course identification logic to use code + instance
*/
declare const useCourseStore: any;
export default useCourseStore;