placementt-core 1.400.938 → 1.400.939
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/lib/typeDefinitions.d.ts +20 -0
- package/package.json +1 -1
- package/src/typeDefinitions.ts +17 -0
package/lib/typeDefinitions.d.ts
CHANGED
|
@@ -405,6 +405,18 @@ export type UserData = {
|
|
|
405
405
|
[oId: string]: string[];
|
|
406
406
|
};
|
|
407
407
|
analytics?: AnalyticsItem;
|
|
408
|
+
recentSkillScores?: {
|
|
409
|
+
[skillId: string]: {
|
|
410
|
+
students?: number;
|
|
411
|
+
parents?: number;
|
|
412
|
+
employers?: number;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
averageRecentSkillScore?: {
|
|
416
|
+
students?: number;
|
|
417
|
+
parents?: number;
|
|
418
|
+
employers?: number;
|
|
419
|
+
};
|
|
408
420
|
units?: string;
|
|
409
421
|
activationCode: number;
|
|
410
422
|
cohort?: string;
|
|
@@ -470,6 +482,11 @@ export type UserData = {
|
|
|
470
482
|
};
|
|
471
483
|
};
|
|
472
484
|
};
|
|
485
|
+
savedAnalyticsViews?: {
|
|
486
|
+
[cohortId: string]: {
|
|
487
|
+
[viewKey: string]: DataViewerFilterView;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
473
490
|
hasReservedListings?: boolean;
|
|
474
491
|
reservedListings?: {
|
|
475
492
|
expiryDate: string;
|
|
@@ -1117,6 +1134,9 @@ export type CohortData = {
|
|
|
1117
1134
|
[key: string]: DataViewerFilterView;
|
|
1118
1135
|
};
|
|
1119
1136
|
};
|
|
1137
|
+
savedAnalyticsViews?: {
|
|
1138
|
+
[viewKey: string]: DataViewerFilterView;
|
|
1139
|
+
};
|
|
1120
1140
|
userFilters?: {
|
|
1121
1141
|
allSelected: boolean;
|
|
1122
1142
|
search: string | undefined;
|
package/package.json
CHANGED
package/src/typeDefinitions.ts
CHANGED
|
@@ -411,6 +411,13 @@ export type UserData = {
|
|
|
411
411
|
cohortRequests: {[oId: string]: string[]},
|
|
412
412
|
cohorts: {[oId: string]: string[]},
|
|
413
413
|
analytics?: AnalyticsItem,
|
|
414
|
+
// ── Recent skills snapshot (maintained by onSkillsAssessmentWriteRecentSkills) ──
|
|
415
|
+
// Latest score per skill per rater, plus the mean across the institute's assessed
|
|
416
|
+
// skills per rater. Recomputed from the student's own skillsAssessments on every
|
|
417
|
+
// write to that collection, so edits and deletes stay correct without storing dates.
|
|
418
|
+
// Rater keys are the plurals used by SkillAssessment.userType.
|
|
419
|
+
recentSkillScores?: {[skillId: string]: {students?: number, parents?: number, employers?: number}},
|
|
420
|
+
averageRecentSkillScore?: {students?: number, parents?: number, employers?: number},
|
|
414
421
|
units?: string,
|
|
415
422
|
activationCode: number,
|
|
416
423
|
cohort?: string,
|
|
@@ -482,6 +489,12 @@ export type UserData = {
|
|
|
482
489
|
}
|
|
483
490
|
}
|
|
484
491
|
},
|
|
492
|
+
// Personal ("me") saved analytics views, keyed by cohort id then view key.
|
|
493
|
+
savedAnalyticsViews?: {
|
|
494
|
+
[cohortId: string]: {
|
|
495
|
+
[viewKey: string]: DataViewerFilterView
|
|
496
|
+
}
|
|
497
|
+
},
|
|
485
498
|
hasReservedListings?: boolean,
|
|
486
499
|
reservedListings?: {
|
|
487
500
|
expiryDate: string,
|
|
@@ -1126,6 +1139,10 @@ export type CohortData = {
|
|
|
1126
1139
|
[key: string]: DataViewerFilterView
|
|
1127
1140
|
}
|
|
1128
1141
|
},
|
|
1142
|
+
// Shared ("everyone") saved analytics views, keyed by view key.
|
|
1143
|
+
savedAnalyticsViews?: {
|
|
1144
|
+
[viewKey: string]: DataViewerFilterView
|
|
1145
|
+
},
|
|
1129
1146
|
userFilters?: {
|
|
1130
1147
|
allSelected: boolean;
|
|
1131
1148
|
search: string | undefined;
|