analytica-frontend-lib 1.2.86 → 1.2.87
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.
- package/dist/ActivitiesHistory/index.js.map +1 -1
- package/dist/ActivitiesHistory/index.mjs.map +1 -1
- package/dist/NotificationCard/index.js +1 -1
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +1 -1
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/RecommendedLessonsHistory/index.d.ts +1 -1
- package/dist/RecommendedLessonsHistory/index.d.ts.map +1 -1
- package/dist/RecommendedLessonsHistory/index.js +148 -142
- package/dist/RecommendedLessonsHistory/index.js.map +1 -1
- package/dist/RecommendedLessonsHistory/index.mjs +147 -141
- package/dist/RecommendedLessonsHistory/index.mjs.map +1 -1
- package/dist/hooks/useActivitiesHistory/index.js.map +1 -1
- package/dist/hooks/useActivitiesHistory/index.mjs.map +1 -1
- package/dist/hooks/useNotifications.d.ts +2 -2
- package/dist/hooks/useNotifications.d.ts.map +1 -1
- package/dist/hooks/useRecommendedClassDrafts/index.d.ts +57 -0
- package/dist/hooks/useRecommendedClassDrafts/index.d.ts.map +1 -0
- package/dist/hooks/{useGoalDrafts → useRecommendedClassDrafts}/index.js +40 -40
- package/dist/hooks/useRecommendedClassDrafts/index.js.map +1 -0
- package/dist/hooks/{useGoalDrafts → useRecommendedClassDrafts}/index.mjs +33 -33
- package/dist/hooks/useRecommendedClassDrafts/index.mjs.map +1 -0
- package/dist/hooks/useRecommendedClassDrafts.d.ts +57 -0
- package/dist/hooks/useRecommendedClassDrafts.d.ts.map +1 -0
- package/dist/hooks/{useGoalModels.d.ts → useRecommendedClassModels.d.ts} +32 -32
- package/dist/hooks/useRecommendedClassModels.d.ts.map +1 -0
- package/dist/hooks/useRecommendedLessonDetails.d.ts +44 -44
- package/dist/hooks/useRecommendedLessonDetails.d.ts.map +1 -1
- package/dist/hooks/useRecommendedLessons/index.d.ts +35 -35
- package/dist/hooks/useRecommendedLessons/index.d.ts.map +1 -1
- package/dist/hooks/useRecommendedLessons/index.js +41 -41
- package/dist/hooks/useRecommendedLessons/index.js.map +1 -1
- package/dist/hooks/useRecommendedLessons/index.mjs +37 -37
- package/dist/hooks/useRecommendedLessons/index.mjs.map +1 -1
- package/dist/hooks/useRecommendedLessons.d.ts +35 -35
- package/dist/hooks/useRecommendedLessons.d.ts.map +1 -1
- package/dist/hooks/useRecommendedLessonsPage/index.d.ts +21 -21
- package/dist/hooks/useRecommendedLessonsPage/index.d.ts.map +1 -1
- package/dist/hooks/useRecommendedLessonsPage/index.js +39 -33
- package/dist/hooks/useRecommendedLessonsPage/index.js.map +1 -1
- package/dist/hooks/useRecommendedLessonsPage/index.mjs +39 -33
- package/dist/hooks/useRecommendedLessonsPage/index.mjs.map +1 -1
- package/dist/hooks/useRecommendedLessonsPage.d.ts +21 -21
- package/dist/hooks/useRecommendedLessonsPage.d.ts.map +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +304 -288
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +278 -262
- package/dist/index.mjs.map +1 -1
- package/dist/store/notificationStore.d.ts.map +1 -1
- package/dist/types/activitiesHistory/index.js.map +1 -1
- package/dist/types/activitiesHistory/index.mjs.map +1 -1
- package/dist/types/common.d.ts +2 -2
- package/dist/types/notifications.d.ts +5 -5
- package/dist/types/notifications.d.ts.map +1 -1
- package/dist/types/recommendedLessons/index.d.ts +112 -112
- package/dist/types/recommendedLessons/index.d.ts.map +1 -1
- package/dist/types/recommendedLessons/index.js +25 -25
- package/dist/types/recommendedLessons/index.js.map +1 -1
- package/dist/types/recommendedLessons/index.mjs +17 -17
- package/dist/types/recommendedLessons/index.mjs.map +1 -1
- package/dist/types/recommendedLessons.d.ts +112 -112
- package/dist/types/recommendedLessons.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/hooks/useGoalDrafts/index.d.ts +0 -57
- package/dist/hooks/useGoalDrafts/index.d.ts.map +0 -1
- package/dist/hooks/useGoalDrafts/index.js.map +0 -1
- package/dist/hooks/useGoalDrafts/index.mjs.map +0 -1
- package/dist/hooks/useGoalDrafts.d.ts +0 -57
- package/dist/hooks/useGoalDrafts.d.ts.map +0 -1
- package/dist/hooks/useGoalModels.d.ts.map +0 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Recommended Lessons /
|
|
2
|
+
* Recommended Lessons / Recommended Class (Aulas Recomendadas) Type Definitions
|
|
3
3
|
* Based on /recommended-class/history endpoint
|
|
4
4
|
*/
|
|
5
5
|
import { GenericApiStatus, GenericDisplayStatus, BadgeActionType } from './common';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Recommended Class status from backend API
|
|
8
8
|
* Re-exported from common for backward compatibility
|
|
9
9
|
*/
|
|
10
|
-
export { GenericApiStatus as
|
|
10
|
+
export { GenericApiStatus as RecommendedClassApiStatus } from './common';
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Recommended Class status for display in UI (Badge component)
|
|
13
13
|
* Re-exported from common for backward compatibility
|
|
14
14
|
*/
|
|
15
|
-
export { GenericDisplayStatus as
|
|
15
|
+
export { GenericDisplayStatus as RecommendedClassDisplayStatus } from './common';
|
|
16
16
|
/**
|
|
17
|
-
* Badge action types for
|
|
17
|
+
* Badge action types for recommended class status visualization
|
|
18
18
|
* Re-exported from common for backward compatibility
|
|
19
19
|
*/
|
|
20
|
-
export { BadgeActionType as
|
|
20
|
+
export { BadgeActionType as RecommendedClassBadgeActionType } from './common';
|
|
21
21
|
/**
|
|
22
22
|
* Subject info from API response
|
|
23
23
|
*/
|
|
24
|
-
export interface
|
|
24
|
+
export interface RecommendedClassSubject {
|
|
25
25
|
id: string;
|
|
26
26
|
name: string;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Creator info from API response
|
|
30
30
|
*/
|
|
31
|
-
export interface
|
|
31
|
+
export interface RecommendedClassCreator {
|
|
32
32
|
id: string;
|
|
33
33
|
name: string;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Recommended Class stats from API response
|
|
37
37
|
*/
|
|
38
|
-
export interface
|
|
38
|
+
export interface RecommendedClassStats {
|
|
39
39
|
totalStudents: number;
|
|
40
40
|
completedCount: number;
|
|
41
41
|
completionPercentage: number;
|
|
@@ -43,7 +43,7 @@ export interface GoalStats {
|
|
|
43
43
|
/**
|
|
44
44
|
* Class breakdown info from API response
|
|
45
45
|
*/
|
|
46
|
-
export interface
|
|
46
|
+
export interface RecommendedClassBreakdown {
|
|
47
47
|
classId: string;
|
|
48
48
|
className: string;
|
|
49
49
|
schoolId: string;
|
|
@@ -52,9 +52,9 @@ export interface GoalBreakdown {
|
|
|
52
52
|
completedCount: number;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Recommended Class data from API response
|
|
56
56
|
*/
|
|
57
|
-
export interface
|
|
57
|
+
export interface RecommendedClassData {
|
|
58
58
|
id: string;
|
|
59
59
|
title: string;
|
|
60
60
|
startDate: string | null;
|
|
@@ -64,19 +64,19 @@ export interface GoalData {
|
|
|
64
64
|
totalLessons: number;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Recommended Class history item from /recommended-class/history endpoint
|
|
68
68
|
*/
|
|
69
|
-
export interface
|
|
70
|
-
|
|
71
|
-
subject:
|
|
72
|
-
creator:
|
|
73
|
-
stats:
|
|
74
|
-
breakdown:
|
|
69
|
+
export interface RecommendedClassHistoryItem {
|
|
70
|
+
recommendedClass: RecommendedClassData;
|
|
71
|
+
subject: RecommendedClassSubject | null;
|
|
72
|
+
creator: RecommendedClassCreator | null;
|
|
73
|
+
stats: RecommendedClassStats;
|
|
74
|
+
breakdown: RecommendedClassBreakdown[];
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Recommended Class table item interface for recommended class list table
|
|
78
78
|
*/
|
|
79
|
-
export interface
|
|
79
|
+
export interface RecommendedClassTableItem extends Record<string, unknown> {
|
|
80
80
|
id: string;
|
|
81
81
|
startDate: string | null;
|
|
82
82
|
deadline: string | null;
|
|
@@ -89,19 +89,19 @@ export interface GoalTableItem extends Record<string, unknown> {
|
|
|
89
89
|
completionPercentage: number;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Recommended Class history API complete response from /recommended-class/history
|
|
93
93
|
*/
|
|
94
|
-
export interface
|
|
94
|
+
export interface RecommendedClassHistoryApiResponse {
|
|
95
95
|
message: string;
|
|
96
96
|
data: {
|
|
97
|
-
|
|
97
|
+
recommendedClass: RecommendedClassHistoryItem[];
|
|
98
98
|
total: number;
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Recommended Class history filters for API query parameters
|
|
103
103
|
*/
|
|
104
|
-
export interface
|
|
104
|
+
export interface RecommendedClassHistoryFilters {
|
|
105
105
|
page?: number;
|
|
106
106
|
limit?: number;
|
|
107
107
|
status?: GenericApiStatus;
|
|
@@ -118,9 +118,9 @@ export interface GoalHistoryFilters {
|
|
|
118
118
|
sortOrder?: 'asc' | 'desc';
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
|
-
* Pagination info for
|
|
121
|
+
* Pagination info for recommended class history
|
|
122
122
|
*/
|
|
123
|
-
export interface
|
|
123
|
+
export interface RecommendedClassHistoryPagination {
|
|
124
124
|
total: number;
|
|
125
125
|
page: number;
|
|
126
126
|
limit: number;
|
|
@@ -130,7 +130,7 @@ export interface GoalHistoryPagination {
|
|
|
130
130
|
* Filter option for dropdowns
|
|
131
131
|
* Extends with index signature to be compatible with CheckBoxGroup Item type
|
|
132
132
|
*/
|
|
133
|
-
export interface
|
|
133
|
+
export interface RecommendedClassFilterOption {
|
|
134
134
|
id: string;
|
|
135
135
|
name: string;
|
|
136
136
|
[key: string]: unknown;
|
|
@@ -138,7 +138,7 @@ export interface GoalFilterOption {
|
|
|
138
138
|
/**
|
|
139
139
|
* User data for filter options (schools, classes, subjects)
|
|
140
140
|
*/
|
|
141
|
-
export interface
|
|
141
|
+
export interface RecommendedClassUserFilterData {
|
|
142
142
|
schools?: Array<{
|
|
143
143
|
id: string;
|
|
144
144
|
name: string;
|
|
@@ -158,19 +158,19 @@ export interface GoalUserFilterData {
|
|
|
158
158
|
}>;
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
|
-
* Get status badge action based on
|
|
162
|
-
* @param status -
|
|
161
|
+
* Get status badge action based on recommended class display status
|
|
162
|
+
* @param status - Recommended Class display status
|
|
163
163
|
* @returns Badge action type for styling
|
|
164
164
|
*/
|
|
165
|
-
export declare const
|
|
165
|
+
export declare const getRecommendedClassStatusBadgeAction: (status: GenericDisplayStatus) => BadgeActionType;
|
|
166
166
|
/**
|
|
167
|
-
*
|
|
167
|
+
* Recommended Class status options for filter (Vencida and Ativa)
|
|
168
168
|
*/
|
|
169
|
-
export declare const
|
|
169
|
+
export declare const RECOMMENDED_CLASS_FILTER_STATUS_OPTIONS: RecommendedClassFilterOption[];
|
|
170
170
|
/**
|
|
171
|
-
* All
|
|
171
|
+
* All recommended class status options
|
|
172
172
|
*/
|
|
173
|
-
export declare const
|
|
173
|
+
export declare const RECOMMENDED_CLASS_STATUS_OPTIONS: RecommendedClassFilterOption[];
|
|
174
174
|
/**
|
|
175
175
|
* Student status for display in UI
|
|
176
176
|
*/
|
|
@@ -194,7 +194,7 @@ export declare const isDeadlinePassed: (deadline: string | null) => boolean;
|
|
|
194
194
|
* Derives student display status from progress, completedAt, and deadline
|
|
195
195
|
* @param progress - Student progress percentage (0-100)
|
|
196
196
|
* @param completedAt - ISO date string when student completed, or null
|
|
197
|
-
* @param deadline - ISO date string of the
|
|
197
|
+
* @param deadline - ISO date string of the recommended class deadline, or null
|
|
198
198
|
* @returns The appropriate StudentLessonStatus
|
|
199
199
|
*/
|
|
200
200
|
export declare const deriveStudentStatus: (progress: number, completedAt: string | null, deadline?: string | null) => StudentLessonStatus;
|
|
@@ -203,9 +203,9 @@ export declare const deriveStudentStatus: (progress: number, completedAt: string
|
|
|
203
203
|
*/
|
|
204
204
|
export declare const formatDaysToComplete: (daysToComplete: number | null) => string | null;
|
|
205
205
|
/**
|
|
206
|
-
* Student data from /
|
|
206
|
+
* Student data from /recommended class/{id}/details endpoint
|
|
207
207
|
*/
|
|
208
|
-
export interface
|
|
208
|
+
export interface RecommendedClassDetailStudent {
|
|
209
209
|
userInstitutionId: string;
|
|
210
210
|
userId: string;
|
|
211
211
|
name: string;
|
|
@@ -215,66 +215,66 @@ export interface GoalDetailStudent {
|
|
|
215
215
|
daysToComplete: number | null;
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
|
-
* Aggregated stats from /
|
|
218
|
+
* Aggregated stats from /recommended class/{id}/details endpoint
|
|
219
219
|
*/
|
|
220
|
-
export interface
|
|
220
|
+
export interface RecommendedClassDetailAggregated {
|
|
221
221
|
completionPercentage: number;
|
|
222
222
|
avgScore: number | null;
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
|
-
* Content performance item from /
|
|
225
|
+
* Content performance item from /recommended class/{id}/details endpoint
|
|
226
226
|
*/
|
|
227
|
-
export interface
|
|
227
|
+
export interface RecommendedClassDetailContentPerformanceItem {
|
|
228
228
|
contentId: string;
|
|
229
229
|
contentName: string;
|
|
230
230
|
rate: number;
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
|
-
* Content performance from /
|
|
233
|
+
* Content performance from /recommended class/{id}/details endpoint
|
|
234
234
|
*/
|
|
235
|
-
export interface
|
|
236
|
-
best:
|
|
237
|
-
worst:
|
|
235
|
+
export interface RecommendedClassDetailContentPerformance {
|
|
236
|
+
best: RecommendedClassDetailContentPerformanceItem | null;
|
|
237
|
+
worst: RecommendedClassDetailContentPerformanceItem | null;
|
|
238
238
|
}
|
|
239
239
|
/**
|
|
240
|
-
* Response data from /
|
|
240
|
+
* Response data from /recommended class/{id}/details endpoint
|
|
241
241
|
*/
|
|
242
|
-
export interface
|
|
243
|
-
students:
|
|
244
|
-
aggregated:
|
|
245
|
-
contentPerformance:
|
|
242
|
+
export interface RecommendedClassDetailsData {
|
|
243
|
+
students: RecommendedClassDetailStudent[];
|
|
244
|
+
aggregated: RecommendedClassDetailAggregated;
|
|
245
|
+
contentPerformance: RecommendedClassDetailContentPerformance;
|
|
246
246
|
}
|
|
247
247
|
/**
|
|
248
|
-
* Full API response from /
|
|
248
|
+
* Full API response from /recommended class/{id}/details endpoint
|
|
249
249
|
*/
|
|
250
|
-
export interface
|
|
250
|
+
export interface RecommendedClassDetailsApiResponse {
|
|
251
251
|
message: string;
|
|
252
|
-
data:
|
|
252
|
+
data: RecommendedClassDetailsData;
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
|
-
* Activity status for
|
|
256
|
-
* Used in
|
|
255
|
+
* Activity status for recommended class activities
|
|
256
|
+
* Used in activitiesRecommendedClass array from /recommended class/{id} endpoint
|
|
257
257
|
*/
|
|
258
|
-
export declare const
|
|
258
|
+
export declare const RECOMMENDED_CLASS_ACTIVITY_STATUS: {
|
|
259
259
|
readonly PENDENTE: "PENDENTE";
|
|
260
260
|
readonly CONCLUIDA: "CONCLUIDA";
|
|
261
261
|
readonly EXPIRADA: "EXPIRADA";
|
|
262
262
|
};
|
|
263
|
-
export type
|
|
263
|
+
export type RecommendedClassActivityStatus = (typeof RECOMMENDED_CLASS_ACTIVITY_STATUS)[keyof typeof RECOMMENDED_CLASS_ACTIVITY_STATUS];
|
|
264
264
|
/**
|
|
265
|
-
* Activity details within a
|
|
265
|
+
* Activity details within a recommended class
|
|
266
266
|
*/
|
|
267
|
-
export interface
|
|
267
|
+
export interface RecommendedClassActivity {
|
|
268
268
|
id: string;
|
|
269
269
|
title: string;
|
|
270
|
-
status:
|
|
270
|
+
status: RecommendedClassActivityStatus;
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
|
-
* User activities within a
|
|
273
|
+
* User activities within a recommended class
|
|
274
274
|
*/
|
|
275
|
-
export interface
|
|
275
|
+
export interface RecommendedClassSupUsersActivities {
|
|
276
276
|
id: string;
|
|
277
|
-
activity:
|
|
277
|
+
activity: RecommendedClassActivity;
|
|
278
278
|
userInstitutionId: string;
|
|
279
279
|
answeredAt: string | null;
|
|
280
280
|
timeSpent: number;
|
|
@@ -282,26 +282,26 @@ export interface GoalSupUsersActivities {
|
|
|
282
282
|
lastInteraction: string;
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
285
|
-
* Activities associated with a
|
|
285
|
+
* Activities associated with a recommended class
|
|
286
286
|
*/
|
|
287
|
-
export interface
|
|
288
|
-
|
|
287
|
+
export interface RecommendedClassActivities {
|
|
288
|
+
recommendedClassId: string;
|
|
289
289
|
supUsersActivitiesId: string;
|
|
290
|
-
supUsersActivities:
|
|
290
|
+
supUsersActivities: RecommendedClassSupUsersActivities;
|
|
291
291
|
}
|
|
292
292
|
/**
|
|
293
|
-
* Subject info from lesson in /
|
|
293
|
+
* Subject info from lesson in /recommended class/{id} response
|
|
294
294
|
*/
|
|
295
|
-
export interface
|
|
295
|
+
export interface RecommendedClassLessonSubject {
|
|
296
296
|
id: string;
|
|
297
297
|
name: string;
|
|
298
298
|
color: string;
|
|
299
299
|
icon: string;
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
|
-
* Lesson info from /
|
|
302
|
+
* Lesson info from /recommended class/{id} response
|
|
303
303
|
*/
|
|
304
|
-
export interface
|
|
304
|
+
export interface RecommendedClassLesson {
|
|
305
305
|
id: string;
|
|
306
306
|
content: {
|
|
307
307
|
id: string;
|
|
@@ -315,70 +315,70 @@ export interface GoalLesson {
|
|
|
315
315
|
id: string;
|
|
316
316
|
name: string;
|
|
317
317
|
};
|
|
318
|
-
subject:
|
|
318
|
+
subject: RecommendedClassLessonSubject;
|
|
319
319
|
}
|
|
320
320
|
/**
|
|
321
|
-
* Lesson progress from /
|
|
321
|
+
* Lesson progress from /recommended class/{id} response
|
|
322
322
|
*/
|
|
323
|
-
export interface
|
|
323
|
+
export interface RecommendedClassLessonProgress {
|
|
324
324
|
id: string;
|
|
325
325
|
userId: string;
|
|
326
326
|
lessonId: string;
|
|
327
327
|
progress: number;
|
|
328
|
-
lesson:
|
|
328
|
+
lesson: RecommendedClassLesson;
|
|
329
329
|
}
|
|
330
330
|
/**
|
|
331
|
-
* Lesson
|
|
331
|
+
* Lesson recommended class item from /recommended class/{id} response
|
|
332
332
|
*/
|
|
333
|
-
export interface
|
|
334
|
-
|
|
333
|
+
export interface RecommendedClassLessonsItem {
|
|
334
|
+
recommendedClassId: string;
|
|
335
335
|
supLessonsProgressId: string;
|
|
336
|
-
supLessonsProgress:
|
|
336
|
+
supLessonsProgress: RecommendedClassLessonProgress;
|
|
337
337
|
}
|
|
338
338
|
/**
|
|
339
|
-
*
|
|
339
|
+
* Recommended Class metadata from /recommended class/{id} endpoint
|
|
340
340
|
*/
|
|
341
|
-
export interface
|
|
341
|
+
export interface RecommendedClassMetadata {
|
|
342
342
|
id: string;
|
|
343
343
|
title: string;
|
|
344
344
|
startDate: string;
|
|
345
345
|
finalDate: string;
|
|
346
346
|
progress: number;
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
lessons: RecommendedClassLessonsItem[];
|
|
348
|
+
activities?: RecommendedClassActivities[];
|
|
349
349
|
}
|
|
350
350
|
/**
|
|
351
|
-
* Full API response from /
|
|
351
|
+
* Full API response from /recommended class/{id} endpoint
|
|
352
352
|
*/
|
|
353
|
-
export interface
|
|
353
|
+
export interface RecommendedClassApiResponse {
|
|
354
354
|
message: string;
|
|
355
|
-
data:
|
|
355
|
+
data: RecommendedClassMetadata;
|
|
356
356
|
}
|
|
357
357
|
/**
|
|
358
358
|
* Combined data structure for RecommendedLessonDetails component
|
|
359
|
-
* Combines data from /
|
|
359
|
+
* Combines data from /recommended class/{id}, /recommended class/{id}/details, and breakdown info
|
|
360
360
|
*/
|
|
361
361
|
export interface LessonDetailsData {
|
|
362
|
-
/**
|
|
363
|
-
|
|
364
|
-
/** Details from /
|
|
365
|
-
details:
|
|
362
|
+
/** Recommended Class metadata from /recommended class/{id} */
|
|
363
|
+
recommendedClass: RecommendedClassMetadata;
|
|
364
|
+
/** Details from /recommended class/{id}/details */
|
|
365
|
+
details: RecommendedClassDetailsData;
|
|
366
366
|
/** Optional breakdown info from /recommended-class/history */
|
|
367
|
-
breakdown?:
|
|
367
|
+
breakdown?: RecommendedClassBreakdown;
|
|
368
368
|
}
|
|
369
369
|
/**
|
|
370
|
-
*
|
|
370
|
+
* Recommended Class draft type enum - matches backend RECOMMENDED_CLASS_DRAFT_TYPE
|
|
371
371
|
*/
|
|
372
|
-
export declare enum
|
|
372
|
+
export declare enum RecommendedClassDraftType {
|
|
373
373
|
MODELO = "MODELO",
|
|
374
374
|
RASCUNHO = "RASCUNHO"
|
|
375
375
|
}
|
|
376
376
|
/**
|
|
377
|
-
*
|
|
377
|
+
* Recommended Class model response from backend API /recommended-class/drafts
|
|
378
378
|
*/
|
|
379
|
-
export interface
|
|
379
|
+
export interface RecommendedClassModelResponse {
|
|
380
380
|
id: string;
|
|
381
|
-
type:
|
|
381
|
+
type: RecommendedClassDraftType;
|
|
382
382
|
title: string;
|
|
383
383
|
description: string | null;
|
|
384
384
|
creatorUserInstitutionId: string;
|
|
@@ -389,9 +389,9 @@ export interface GoalModelResponse {
|
|
|
389
389
|
updatedAt: string;
|
|
390
390
|
}
|
|
391
391
|
/**
|
|
392
|
-
*
|
|
392
|
+
* Recommended Class model table item for display in models table
|
|
393
393
|
*/
|
|
394
|
-
export interface
|
|
394
|
+
export interface RecommendedClassModelTableItem extends Record<string, unknown> {
|
|
395
395
|
id: string;
|
|
396
396
|
title: string;
|
|
397
397
|
savedAt: string;
|
|
@@ -399,29 +399,29 @@ export interface GoalModelTableItem extends Record<string, unknown> {
|
|
|
399
399
|
subjectId: string | null;
|
|
400
400
|
}
|
|
401
401
|
/**
|
|
402
|
-
*
|
|
402
|
+
* Recommended Class models API complete response from /recommended-class/drafts
|
|
403
403
|
*/
|
|
404
|
-
export interface
|
|
404
|
+
export interface RecommendedClassModelsApiResponse {
|
|
405
405
|
message: string;
|
|
406
406
|
data: {
|
|
407
|
-
drafts:
|
|
407
|
+
drafts: RecommendedClassModelResponse[];
|
|
408
408
|
total: number;
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
411
|
/**
|
|
412
|
-
*
|
|
412
|
+
* Recommended Class model filters for API query parameters
|
|
413
413
|
*/
|
|
414
|
-
export interface
|
|
414
|
+
export interface RecommendedClassModelFilters {
|
|
415
415
|
page?: number;
|
|
416
416
|
limit?: number;
|
|
417
417
|
search?: string;
|
|
418
418
|
subjectId?: string;
|
|
419
|
-
type?:
|
|
419
|
+
type?: RecommendedClassDraftType;
|
|
420
420
|
}
|
|
421
421
|
/**
|
|
422
|
-
* Pagination info for
|
|
422
|
+
* Pagination info for recommended class models
|
|
423
423
|
*/
|
|
424
|
-
export interface
|
|
424
|
+
export interface RecommendedClassModelPagination {
|
|
425
425
|
total: number;
|
|
426
426
|
page: number;
|
|
427
427
|
limit: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recommendedLessons.d.ts","sourceRoot":"","sources":["../../src/types/recommendedLessons.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EAEhB,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,OAAO,EAAE,gBAAgB,IAAI,
|
|
1
|
+
{"version":3,"file":"recommendedLessons.d.ts","sourceRoot":"","sources":["../../src/types/recommendedLessons.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EAEhB,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,OAAO,EAAE,gBAAgB,IAAI,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAEzE;;;GAGG;AACH,OAAO,E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AAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;IACjC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,8BACf,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,MAAM,EAAE,6BAA6B,EAAE,CAAC;QACxC,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,yBAAyB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
package/package.json
CHANGED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { GoalModelTableItem, GoalModelsApiResponse, GoalModelFilters, GoalModelPagination } from '../types/recommendedLessons';
|
|
2
|
-
/**
|
|
3
|
-
* Hook state interface for goal drafts
|
|
4
|
-
*/
|
|
5
|
-
export interface UseGoalDraftsState {
|
|
6
|
-
models: GoalModelTableItem[];
|
|
7
|
-
loading: boolean;
|
|
8
|
-
error: string | null;
|
|
9
|
-
pagination: GoalModelPagination;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Hook return type for goal drafts
|
|
13
|
-
*/
|
|
14
|
-
export interface UseGoalDraftsReturn extends UseGoalDraftsState {
|
|
15
|
-
fetchModels: (filters?: GoalModelFilters, subjectsMap?: Map<string, string>) => Promise<void>;
|
|
16
|
-
deleteModel: (id: string) => Promise<boolean>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Default pagination values for drafts
|
|
20
|
-
*/
|
|
21
|
-
export declare const DEFAULT_GOAL_DRAFTS_PAGINATION: GoalModelPagination;
|
|
22
|
-
/**
|
|
23
|
-
* Handle errors during draft fetch
|
|
24
|
-
* Uses the generic error handler factory to reduce code duplication
|
|
25
|
-
*/
|
|
26
|
-
export declare const handleGoalDraftFetchError: (error: unknown) => string;
|
|
27
|
-
/**
|
|
28
|
-
* Factory function to create useGoalDrafts hook
|
|
29
|
-
*
|
|
30
|
-
* @param fetchGoalDrafts - Function to fetch drafts from API
|
|
31
|
-
* @param deleteGoalDraft - Function to delete a draft
|
|
32
|
-
* @returns Hook for managing goal drafts
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```tsx
|
|
36
|
-
* // In your app setup
|
|
37
|
-
* const fetchGoalDrafts = async (filters) => {
|
|
38
|
-
* const response = await api.get('/recommended-class/drafts', { params: { ...filters, type: 'RASCUNHO' } });
|
|
39
|
-
* return response.data;
|
|
40
|
-
* };
|
|
41
|
-
*
|
|
42
|
-
* const deleteGoalDraft = async (id) => {
|
|
43
|
-
* await api.delete(`/recommended-class/drafts/${id}`);
|
|
44
|
-
* };
|
|
45
|
-
*
|
|
46
|
-
* const useGoalDrafts = createUseGoalDrafts(fetchGoalDrafts, deleteGoalDraft);
|
|
47
|
-
*
|
|
48
|
-
* // In your component
|
|
49
|
-
* const { models, loading, error, pagination, fetchModels, deleteModel } = useGoalDrafts();
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
export declare const createUseGoalDrafts: (fetchGoalDrafts: (filters?: GoalModelFilters) => Promise<GoalModelsApiResponse>, deleteGoalDraft: (id: string) => Promise<void>) => () => UseGoalDraftsReturn;
|
|
53
|
-
/**
|
|
54
|
-
* Alias for createUseGoalDrafts
|
|
55
|
-
*/
|
|
56
|
-
export declare const createGoalDraftsHook: (fetchGoalDrafts: (filters?: GoalModelFilters) => Promise<GoalModelsApiResponse>, deleteGoalDraft: (id: string) => Promise<void>) => () => UseGoalDraftsReturn;
|
|
57
|
-
//# sourceMappingURL=useGoalDrafts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useGoalDrafts.d.ts","sourceRoot":"","sources":["../../src/hooks/useGoalDrafts.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,mBAAmB,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,WAAW,EAAE,CACX,OAAO,CAAC,EAAE,gBAAgB,EAC1B,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9B,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/C;AAED;;GAEG;AACH,eAAO,MAAM,8BA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