@mui-toolpad-extended-tuni/courses 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ /** @format */
2
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui-toolpad-extended-tuni/courses",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Courses microservice for MUI Toolpad Extended TUNI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
File without changes
@@ -1,9 +0,0 @@
1
- /** @format */
2
- export declare const subjectTopics: {
3
- readonly 'COMP.CS': readonly ["Programming", "Data Structures", "Algorithms", "Web Development", "Machine Learning", "Artificial Intelligence", "Cybersecurity", "Computer Networks", "Operating Systems", "Software Engineering", "Database Systems", "Computer Graphics", "Mobile Development", "Cloud Computing"];
4
- readonly MATH: readonly ["Calculus", "Linear Algebra", "Discrete Mathematics", "Statistics", "Probability Theory", "Number Theory", "Differential Equations", "Numerical Analysis", "Optimization", "Graph Theory"];
5
- readonly PHYS: readonly ["Mechanics", "Thermodynamics", "Electromagnetism", "Quantum Physics", "Optics", "Nuclear Physics", "Relativity", "Particle Physics", "Astrophysics", "Material Science"];
6
- readonly BIO: readonly ["Cell Biology", "Genetics", "Ecology", "Microbiology", "Molecular Biology", "Physiology", "Evolution", "Biochemistry", "Neuroscience", "Biotechnology"];
7
- readonly CHEM: readonly ["Organic Chemistry", "Inorganic Chemistry", "Physical Chemistry", "Analytical Chemistry", "Biochemistry", "Polymer Chemistry", "Environmental Chemistry", "Medicinal Chemistry", "Material Chemistry", "Chemical Engineering"];
8
- readonly LANG: readonly ["Academic Writing", "Technical Communication", "Scientific Writing", "Research Methods", "Professional Communication", "Intercultural Communication", "Digital Communication", "Documentation", "Content Design", "Public Speaking"];
9
- };
@@ -1,8 +0,0 @@
1
- import { HttpResponse } from 'msw';
2
- import { CourseBackendData, CourseRawBackendData } from './types';
3
- export declare const getCourseByIdResponse: (courseId: string) => HttpResponse;
4
- export declare const getCoursesResponse: () => HttpResponse;
5
- export declare const createCourseResponse: (newCourse: CourseRawBackendData) => HttpResponse;
6
- export declare const updateCourseResponse: (updatedCourse: CourseBackendData) => HttpResponse;
7
- export declare const deleteCourseResponse: (courseId: string) => HttpResponse;
8
- export declare const courseHandlers: import('msw').HttpHandler[];
@@ -1,19 +0,0 @@
1
- import { CourseBackendData, CourseEnrollmentBackendData } from './types';
2
- /** @format */
3
- type UserBackendData = {
4
- id: string;
5
- name: string;
6
- email: string;
7
- };
8
- export declare function generateCourses(config: {
9
- coursesPerYear: number;
10
- startYear: number;
11
- numberOfYears: number;
12
- users: UserBackendData[];
13
- }): {
14
- courses: CourseBackendData[];
15
- enrollmentsByCourse: {
16
- [key: string]: CourseEnrollmentBackendData[];
17
- };
18
- };
19
- export {};
@@ -1,109 +0,0 @@
1
- import { courseEventFrequency, courseLevel, courseRelationType, enrollmentStatus, legalBasis, visibilityMode, courseEventType, courseRole } from '../store/useCourseStore';
2
- export interface CourseEventBackendData {
3
- id: string;
4
- type: courseEventType;
5
- title: string;
6
- description?: string;
7
- start_time: string;
8
- end_time?: string;
9
- location?: string;
10
- teachers?: CourseEnrollmentBackendData[];
11
- recurring?: {
12
- frequency: courseEventFrequency;
13
- until: string;
14
- exceptions?: string[];
15
- };
16
- max_participants?: number;
17
- requires_registration?: boolean;
18
- }
19
- export interface CourseEnrollmentBackendData {
20
- user_id: string;
21
- role: courseRole;
22
- status: enrollmentStatus;
23
- enrollment_date?: string;
24
- request_date?: string;
25
- }
26
- export interface CourseRelationBackendData {
27
- code: string;
28
- type: courseRelationType;
29
- description?: string;
30
- required?: boolean;
31
- }
32
- export type CourseRawBackendData = {
33
- title: string;
34
- description: string;
35
- code: string;
36
- instance: string;
37
- lti_login_url?: string;
38
- services?: string[];
39
- image?: {
40
- large: string;
41
- medium: string;
42
- thumbnail: string;
43
- };
44
- start_date: string | null;
45
- end_date: string | null;
46
- visibility: {
47
- mode: visibilityMode;
48
- start_date: string | null;
49
- end_date: string | null;
50
- };
51
- events: {
52
- [key in courseEventType]: CourseEventBackendData[];
53
- };
54
- tags?: string[];
55
- language?: string;
56
- data_processing: {
57
- purposes: string[];
58
- retention: number;
59
- third_party_processors: {
60
- name: string;
61
- purpose: string;
62
- data_shared: string[];
63
- }[];
64
- special_categories: boolean;
65
- legal_basis: legalBasis;
66
- };
67
- enrollment: {
68
- start_date: string | null;
69
- end_date: string | null;
70
- status: {
71
- open: boolean;
72
- max_students?: number;
73
- };
74
- };
75
- relationships?: {
76
- prerequisites: CourseRelationBackendData[];
77
- continuations: CourseRelationBackendData[];
78
- alternatives: CourseRelationBackendData[];
79
- related: CourseRelationBackendData[];
80
- };
81
- study_module?: {
82
- name: string;
83
- order?: number;
84
- credits: number;
85
- level: courseLevel;
86
- };
87
- };
88
- export interface CourseBackendData extends CourseRawBackendData {
89
- id: string;
90
- created_at: string;
91
- updated_at: string;
92
- }
93
- export interface CourseBackendDataWithEnrollments extends CourseBackendData {
94
- data: {
95
- my_data?: {
96
- role: courseRole;
97
- status: enrollmentStatus;
98
- };
99
- enrollment_data?: CourseEnrollmentBackendData[];
100
- };
101
- }
102
- export interface CourseEnrollmentBackendData {
103
- user_id: string;
104
- course_id: string;
105
- name: string;
106
- email: string;
107
- role: courseRole;
108
- status: enrollmentStatus;
109
- }