catchup-library-web 2.7.13 → 2.7.15
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/index.d.mts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +52 -78
- package/dist/index.mjs +49 -75
- package/package.json +1 -1
- package/src/components/errors/StatusError.tsx +1 -1
- package/src/utilization/CatchtivityUtilization.ts +5 -8
- package/src/utilization/GamificationUtilization.ts +20 -44
- package/src/utilization/ManagementUtilization.ts +29 -0
- package/src/utilization/PlanUtilization.ts +0 -13
- package/src/utilization/ReportUtilization.ts +12 -14
package/dist/index.d.mts
CHANGED
|
@@ -538,7 +538,7 @@ declare const retrieveFrequencyTypeOptionList: () => {
|
|
|
538
538
|
value: string;
|
|
539
539
|
text: string;
|
|
540
540
|
}[];
|
|
541
|
-
declare const
|
|
541
|
+
declare const retrieveDistinctCoterieTypeFromCorporateAssignmentDTO: (corporateAssignmentDTOList: any) => any[];
|
|
542
542
|
declare const retrieveClockTimeLeft: (type: string, value: number, durationType: string, durationInMinutes: number, activityProgressDTOSet: any, activity: any) => number;
|
|
543
543
|
declare const retrieveEachTimeSpentInSeconds: (activityProgressList: any, activity: any) => number;
|
|
544
544
|
declare const retrieveTotalTimeSpentInSeconds: (activityProgressList: any) => number;
|
|
@@ -883,9 +883,15 @@ declare const findAISettingsFromCurrentProfile: (userProfileBrand: any, userProf
|
|
|
883
883
|
canSolveActivityTemplate: any;
|
|
884
884
|
canGenerateRubric: any;
|
|
885
885
|
canGenerateLessonPlan: any;
|
|
886
|
+
canGenerateInClassActivity: any;
|
|
886
887
|
canGenerateImage: any;
|
|
887
888
|
canGeneratePodcast: any;
|
|
888
889
|
};
|
|
890
|
+
declare const findGeneralSettingsFromCurrentProfile: (userProfileBrand: any, userProfileCampus: any, userProfileInstitution: any) => {
|
|
891
|
+
canAutoAssignCorporateAssignment: any;
|
|
892
|
+
corporatePersonalizedAssignmentDelayType: any;
|
|
893
|
+
corporatePersonalizedAssignmentActivityCount: any;
|
|
894
|
+
};
|
|
889
895
|
declare const formatPriceWithCommas: (number: number, language: string) => string;
|
|
890
896
|
declare const retrieveInstitutionTypeByLevel: (level: number) => "EAST_PRIMARY" | "EAST_SECONDARY" | "HIGH_SCHOOL" | undefined;
|
|
891
897
|
|
|
@@ -902,7 +908,7 @@ declare const retrieveReportTypeOptionList: () => {
|
|
|
902
908
|
value: string;
|
|
903
909
|
text: string;
|
|
904
910
|
}[];
|
|
905
|
-
declare const
|
|
911
|
+
declare const constructCombinedCorporateAssignmentReportMap: (filteredSelectedLearnerCorporateAssignmentReportDTOList: any[]) => any;
|
|
906
912
|
declare const constructOutcomeActivityScoreList: (data: any) => any[];
|
|
907
913
|
declare const constructCombinedOutcomeActivityScoreMapFromCombinedReport: (combinedCorporateAssessmentAssignmentReportMap: any) => any;
|
|
908
914
|
|
|
@@ -924,10 +930,6 @@ declare const retrieveTokenUsageSubTypeOptionList: () => {
|
|
|
924
930
|
value: string;
|
|
925
931
|
}[];
|
|
926
932
|
|
|
927
|
-
declare const retrieveOutcomePlanTypeOptionList: () => {
|
|
928
|
-
value: string;
|
|
929
|
-
text: string;
|
|
930
|
-
}[];
|
|
931
933
|
declare const retrieveTeachingMethodologyOptionList: () => {
|
|
932
934
|
value: string;
|
|
933
935
|
text: string;
|
|
@@ -937,4 +939,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
937
939
|
text: string;
|
|
938
940
|
}[];
|
|
939
941
|
|
|
940
|
-
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, StartButton, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkAnswerState, checkIsActivityAnswerFullyCorrect, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode,
|
|
942
|
+
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, StartButton, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkAnswerState, checkIsActivityAnswerFullyCorrect, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCorporateAssignmentReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, decodeJWT, encodeJWT, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterCurriculumTypeOptionList, filterGradeLevelOptionList, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, findGeneralSettingsFromCurrentProfile, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporateAssignmentDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -538,7 +538,7 @@ declare const retrieveFrequencyTypeOptionList: () => {
|
|
|
538
538
|
value: string;
|
|
539
539
|
text: string;
|
|
540
540
|
}[];
|
|
541
|
-
declare const
|
|
541
|
+
declare const retrieveDistinctCoterieTypeFromCorporateAssignmentDTO: (corporateAssignmentDTOList: any) => any[];
|
|
542
542
|
declare const retrieveClockTimeLeft: (type: string, value: number, durationType: string, durationInMinutes: number, activityProgressDTOSet: any, activity: any) => number;
|
|
543
543
|
declare const retrieveEachTimeSpentInSeconds: (activityProgressList: any, activity: any) => number;
|
|
544
544
|
declare const retrieveTotalTimeSpentInSeconds: (activityProgressList: any) => number;
|
|
@@ -883,9 +883,15 @@ declare const findAISettingsFromCurrentProfile: (userProfileBrand: any, userProf
|
|
|
883
883
|
canSolveActivityTemplate: any;
|
|
884
884
|
canGenerateRubric: any;
|
|
885
885
|
canGenerateLessonPlan: any;
|
|
886
|
+
canGenerateInClassActivity: any;
|
|
886
887
|
canGenerateImage: any;
|
|
887
888
|
canGeneratePodcast: any;
|
|
888
889
|
};
|
|
890
|
+
declare const findGeneralSettingsFromCurrentProfile: (userProfileBrand: any, userProfileCampus: any, userProfileInstitution: any) => {
|
|
891
|
+
canAutoAssignCorporateAssignment: any;
|
|
892
|
+
corporatePersonalizedAssignmentDelayType: any;
|
|
893
|
+
corporatePersonalizedAssignmentActivityCount: any;
|
|
894
|
+
};
|
|
889
895
|
declare const formatPriceWithCommas: (number: number, language: string) => string;
|
|
890
896
|
declare const retrieveInstitutionTypeByLevel: (level: number) => "EAST_PRIMARY" | "EAST_SECONDARY" | "HIGH_SCHOOL" | undefined;
|
|
891
897
|
|
|
@@ -902,7 +908,7 @@ declare const retrieveReportTypeOptionList: () => {
|
|
|
902
908
|
value: string;
|
|
903
909
|
text: string;
|
|
904
910
|
}[];
|
|
905
|
-
declare const
|
|
911
|
+
declare const constructCombinedCorporateAssignmentReportMap: (filteredSelectedLearnerCorporateAssignmentReportDTOList: any[]) => any;
|
|
906
912
|
declare const constructOutcomeActivityScoreList: (data: any) => any[];
|
|
907
913
|
declare const constructCombinedOutcomeActivityScoreMapFromCombinedReport: (combinedCorporateAssessmentAssignmentReportMap: any) => any;
|
|
908
914
|
|
|
@@ -924,10 +930,6 @@ declare const retrieveTokenUsageSubTypeOptionList: () => {
|
|
|
924
930
|
value: string;
|
|
925
931
|
}[];
|
|
926
932
|
|
|
927
|
-
declare const retrieveOutcomePlanTypeOptionList: () => {
|
|
928
|
-
value: string;
|
|
929
|
-
text: string;
|
|
930
|
-
}[];
|
|
931
933
|
declare const retrieveTeachingMethodologyOptionList: () => {
|
|
932
934
|
value: string;
|
|
933
935
|
text: string;
|
|
@@ -937,4 +939,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
937
939
|
text: string;
|
|
938
940
|
}[];
|
|
939
941
|
|
|
940
|
-
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, StartButton, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkAnswerState, checkIsActivityAnswerFullyCorrect, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode,
|
|
942
|
+
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, StartButton, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkAnswerState, checkIsActivityAnswerFullyCorrect, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCorporateAssignmentReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, decodeJWT, encodeJWT, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterCurriculumTypeOptionList, filterGradeLevelOptionList, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, findGeneralSettingsFromCurrentProfile, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporateAssignmentDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.js
CHANGED
|
@@ -150,7 +150,7 @@ __export(index_exports, {
|
|
|
150
150
|
constructBaseNumericIndividualModel: () => constructBaseNumericIndividualModel,
|
|
151
151
|
constructBaseVerbalIndvidualModel: () => constructBaseVerbalIndvidualModel,
|
|
152
152
|
constructCategoryTreeFromParentCode: () => constructCategoryTreeFromParentCode,
|
|
153
|
-
|
|
153
|
+
constructCombinedCorporateAssignmentReportMap: () => constructCombinedCorporateAssignmentReportMap,
|
|
154
154
|
constructCombinedOutcomeActivityScoreMapFromCombinedReport: () => constructCombinedOutcomeActivityScoreMapFromCombinedReport,
|
|
155
155
|
constructInputWithSpecialExpressionList: () => constructInputWithSpecialExpressionList,
|
|
156
156
|
constructMonthName: () => constructMonthName,
|
|
@@ -176,6 +176,7 @@ __export(index_exports, {
|
|
|
176
176
|
filterUserRoleOptionList: () => filterUserRoleOptionList,
|
|
177
177
|
findAISettingsFromCurrentProfile: () => findAISettingsFromCurrentProfile,
|
|
178
178
|
findBestFitActivity: () => findBestFitActivity,
|
|
179
|
+
findGeneralSettingsFromCurrentProfile: () => findGeneralSettingsFromCurrentProfile,
|
|
179
180
|
formatPriceWithCommas: () => formatPriceWithCommas,
|
|
180
181
|
getColorByIndex: () => getColorByIndex,
|
|
181
182
|
getCurrentDateTime: () => getCurrentDateTime,
|
|
@@ -224,7 +225,7 @@ __export(index_exports, {
|
|
|
224
225
|
retrieveDifficultyByActivityTypeFromData: () => retrieveDifficultyByActivityTypeFromData,
|
|
225
226
|
retrieveDifficultyOptionList: () => retrieveDifficultyOptionList,
|
|
226
227
|
retrieveDiscountAmountTypeOptionList: () => retrieveDiscountAmountTypeOptionList,
|
|
227
|
-
|
|
228
|
+
retrieveDistinctCoterieTypeFromCorporateAssignmentDTO: () => retrieveDistinctCoterieTypeFromCorporateAssignmentDTO,
|
|
228
229
|
retrieveDurationInMinutesOptionList: () => retrieveDurationInMinutesOptionList,
|
|
229
230
|
retrieveDurationInSecondsOptionList: () => retrieveDurationInSecondsOptionList,
|
|
230
231
|
retrieveDurationTypeOptionList: () => retrieveDurationTypeOptionList,
|
|
@@ -252,7 +253,6 @@ __export(index_exports, {
|
|
|
252
253
|
retrieveOpticalExamPartTypeOptionList: () => retrieveOpticalExamPartTypeOptionList,
|
|
253
254
|
retrieveOpticalExamTypeOptionList: () => retrieveOpticalExamTypeOptionList,
|
|
254
255
|
retrieveOtherBadgeDTOList: () => retrieveOtherBadgeDTOList,
|
|
255
|
-
retrieveOutcomePlanTypeOptionList: () => retrieveOutcomePlanTypeOptionList,
|
|
256
256
|
retrievePhoneNumberAreaCodeList: () => retrievePhoneNumberAreaCodeList,
|
|
257
257
|
retrieveProvinceNameOptionList: () => retrieveProvinceNameOptionList,
|
|
258
258
|
retrieveReportTypeOptionList: () => retrieveReportTypeOptionList,
|
|
@@ -2703,11 +2703,10 @@ var retrieveFrequencyTypeOptionList = () => {
|
|
|
2703
2703
|
}
|
|
2704
2704
|
];
|
|
2705
2705
|
};
|
|
2706
|
-
var
|
|
2706
|
+
var retrieveDistinctCoterieTypeFromCorporateAssignmentDTO = (corporateAssignmentDTOList) => {
|
|
2707
2707
|
const coterieTypeList = [];
|
|
2708
|
-
for (const
|
|
2709
|
-
const {
|
|
2710
|
-
const { coterieType } = corporatePersonalizedAssignmentDTO;
|
|
2708
|
+
for (const corporateAssignmentDTO of corporateAssignmentDTOList) {
|
|
2709
|
+
const { coterieType } = corporateAssignmentDTO;
|
|
2711
2710
|
if (coterieTypeList.findIndex(
|
|
2712
2711
|
(foundCoterieType) => foundCoterieType === coterieType
|
|
2713
2712
|
) === -1) {
|
|
@@ -2717,7 +2716,7 @@ var retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO
|
|
|
2717
2716
|
return coterieTypeList;
|
|
2718
2717
|
};
|
|
2719
2718
|
var retrieveClockTimeLeft = (type, value, durationType, durationInMinutes, activityProgressDTOSet, activity) => {
|
|
2720
|
-
if (type === "
|
|
2719
|
+
if (type === "CORPORATE_ASSIGNMENT" || type === "CORPORATE_STANDARD_EXAM" || type === "CONTEST") {
|
|
2721
2720
|
if (durationType === "ALL") {
|
|
2722
2721
|
return durationInMinutes ? durationInMinutes * 60 - retrieveTotalTimeSpentInSeconds(activityProgressDTOSet) : 0;
|
|
2723
2722
|
} else if (durationType === "EACH") {
|
|
@@ -7805,7 +7804,7 @@ var StatusError = ({
|
|
|
7805
7804
|
statusText,
|
|
7806
7805
|
textSize
|
|
7807
7806
|
}) => {
|
|
7808
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col justify-center items-center max-w-md", children: [
|
|
7809
7808
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7810
7809
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "text-center my-5", children: [
|
|
7811
7810
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
@@ -9442,10 +9441,22 @@ var findAISettingsFromCurrentProfile = (userProfileBrand, userProfileCampus, use
|
|
|
9442
9441
|
canSolveActivityTemplate: resolve("canSolveActivityTemplate"),
|
|
9443
9442
|
canGenerateRubric: resolve("canGenerateRubric"),
|
|
9444
9443
|
canGenerateLessonPlan: resolve("canGenerateLessonPlan"),
|
|
9444
|
+
canGenerateInClassActivity: resolve("canGenerateInClassActivity"),
|
|
9445
9445
|
canGenerateImage: resolve("canGenerateImage"),
|
|
9446
9446
|
canGeneratePodcast: resolve("canGeneratePodcast")
|
|
9447
9447
|
};
|
|
9448
9448
|
};
|
|
9449
|
+
var findGeneralSettingsFromCurrentProfile = (userProfileBrand, userProfileCampus, userProfileInstitution) => {
|
|
9450
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
9451
|
+
const brandSettings = (_a = userProfileBrand == null ? void 0 : userProfileBrand.brandSettingsDTO) == null ? void 0 : _a.brandGeneralSettingsDTO;
|
|
9452
|
+
const campusSettings = (_b = userProfileCampus == null ? void 0 : userProfileCampus.campusSettingsDTO) == null ? void 0 : _b.campusGeneralSettingsDTO;
|
|
9453
|
+
const instSettings = (_c = userProfileInstitution == null ? void 0 : userProfileInstitution.institutionSettingsDTO) == null ? void 0 : _c.institutionGeneralSettingsDTO;
|
|
9454
|
+
return {
|
|
9455
|
+
canAutoAssignCorporateAssignment: (_f = (_e = (_d = instSettings == null ? void 0 : instSettings.canAutoAssignCorporateAssignment) != null ? _d : campusSettings == null ? void 0 : campusSettings.canAutoAssignCorporateAssignment) != null ? _e : brandSettings == null ? void 0 : brandSettings.canAutoAssignCorporateAssignment) != null ? _f : false,
|
|
9456
|
+
corporatePersonalizedAssignmentDelayType: (_i = (_h = (_g = instSettings == null ? void 0 : instSettings.corporatePersonalizedAssignmentDelayType) != null ? _g : campusSettings == null ? void 0 : campusSettings.corporatePersonalizedAssignmentDelayType) != null ? _h : brandSettings == null ? void 0 : brandSettings.corporatePersonalizedAssignmentDelayType) != null ? _i : "NO_DELAY",
|
|
9457
|
+
corporatePersonalizedAssignmentActivityCount: (_l = (_k = (_j = instSettings == null ? void 0 : instSettings.corporatePersonalizedAssignmentActivityCount) != null ? _j : campusSettings == null ? void 0 : campusSettings.corporatePersonalizedAssignmentActivityCount) != null ? _k : brandSettings == null ? void 0 : brandSettings.corporatePersonalizedAssignmentActivityCount) != null ? _l : 5
|
|
9458
|
+
};
|
|
9459
|
+
};
|
|
9449
9460
|
var formatPriceWithCommas = (number, language) => {
|
|
9450
9461
|
return number.toLocaleString(language, {
|
|
9451
9462
|
minimumFractionDigits: 2,
|
|
@@ -10167,16 +10178,12 @@ var mergeObjects = (...objects) => {
|
|
|
10167
10178
|
var retrieveSourceTypeOptionList = (coterieOnly) => {
|
|
10168
10179
|
const currentSourceTypeOptionList = [
|
|
10169
10180
|
{
|
|
10170
|
-
value: "
|
|
10171
|
-
text: i18n_default.t("
|
|
10181
|
+
value: "CORPORATE_ASSIGNMENT",
|
|
10182
|
+
text: i18n_default.t("CORPORATE_ASSIGNMENT")
|
|
10172
10183
|
},
|
|
10173
10184
|
{
|
|
10174
|
-
value: "
|
|
10175
|
-
text: i18n_default.t("
|
|
10176
|
-
},
|
|
10177
|
-
{
|
|
10178
|
-
value: "COMPLETION_ASSIGNMENT",
|
|
10179
|
-
text: i18n_default.t("COMPLETION_ASSIGNMENT")
|
|
10185
|
+
value: "PERSONALIZED_ASSIGNMENT",
|
|
10186
|
+
text: i18n_default.t("PERSONALIZED_ASSIGNMENT")
|
|
10180
10187
|
},
|
|
10181
10188
|
{
|
|
10182
10189
|
value: "CONTEST",
|
|
@@ -10523,31 +10530,21 @@ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, trackingType, leve
|
|
|
10523
10530
|
} else {
|
|
10524
10531
|
return i18n_default.t("none_count_activity_time_spent_text");
|
|
10525
10532
|
}
|
|
10526
|
-
} else if (sourceType === "
|
|
10533
|
+
} else if (sourceType === "CORPORATE_ASSIGNMENT") {
|
|
10527
10534
|
if (foundBadgeRule) {
|
|
10528
10535
|
return `${i18n_default.t(
|
|
10529
|
-
"
|
|
10536
|
+
"total_count_corporate_assignment_text_1"
|
|
10530
10537
|
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10531
|
-
"
|
|
10538
|
+
"total_count_corporate_assignment_text_2"
|
|
10532
10539
|
)}`;
|
|
10533
10540
|
} else {
|
|
10534
|
-
return i18n_default.t("
|
|
10541
|
+
return i18n_default.t("none_count_corporate_assignment_text");
|
|
10535
10542
|
}
|
|
10536
|
-
} else if (sourceType === "
|
|
10543
|
+
} else if (sourceType === "PERSONALIZED_ASSIGNMENT") {
|
|
10537
10544
|
if (foundBadgeRule) {
|
|
10538
|
-
return `${i18n_default.t(
|
|
10539
|
-
"total_count_corporate_assessment_assignment_text_1"
|
|
10540
|
-
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10541
|
-
"total_count_corporate_assessment_assignment_text_2"
|
|
10542
|
-
)}`;
|
|
10543
|
-
} else {
|
|
10544
|
-
return i18n_default.t("none_count_corporate_assessment_assignment_text");
|
|
10545
|
-
}
|
|
10546
|
-
} else if (sourceType === "COMPLETION_ASSIGNMENT") {
|
|
10547
|
-
if (foundBadgeRule) {
|
|
10548
|
-
return `${i18n_default.t("total_count_completion_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_completion_assignment_text_2")}`;
|
|
10545
|
+
return `${i18n_default.t("total_count_personalized_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_personalized_assignment_text_2")}`;
|
|
10549
10546
|
} else {
|
|
10550
|
-
return i18n_default.t("
|
|
10547
|
+
return i18n_default.t("none_count_personalized_assignment_text");
|
|
10551
10548
|
}
|
|
10552
10549
|
} else if (sourceType === "CONTEST") {
|
|
10553
10550
|
if (foundBadgeRule) {
|
|
@@ -10587,31 +10584,21 @@ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, trackingType, leve
|
|
|
10587
10584
|
} else {
|
|
10588
10585
|
return i18n_default.t("none_count_activity_time_spent_text");
|
|
10589
10586
|
}
|
|
10590
|
-
} else if (sourceType === "
|
|
10587
|
+
} else if (sourceType === "CORPORATE_ASSIGNMENT") {
|
|
10591
10588
|
if (foundBadgeRule) {
|
|
10592
10589
|
return `${i18n_default.t(
|
|
10593
|
-
"
|
|
10590
|
+
"coterie_count_corporate_assignment_text_1"
|
|
10594
10591
|
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10595
|
-
"
|
|
10592
|
+
"coterie_count_corporate_assignment_text_2"
|
|
10596
10593
|
)}`;
|
|
10597
10594
|
} else {
|
|
10598
|
-
return i18n_default.t("
|
|
10595
|
+
return i18n_default.t("none_count_corporate_assignment_text");
|
|
10599
10596
|
}
|
|
10600
|
-
} else if (sourceType === "
|
|
10597
|
+
} else if (sourceType === "PERSONALIZED_ASSIGNMENT") {
|
|
10601
10598
|
if (foundBadgeRule) {
|
|
10602
|
-
return `${i18n_default.t(
|
|
10603
|
-
"coterie_count_corporate_assessment_assignment_text_1"
|
|
10604
|
-
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10605
|
-
"coterie_count_corporate_assessment_assignment_text_2"
|
|
10606
|
-
)}`;
|
|
10607
|
-
} else {
|
|
10608
|
-
return i18n_default.t("none_count_corporate_assessment_assignment_text");
|
|
10609
|
-
}
|
|
10610
|
-
} else if (sourceType === "COMPLETION_ASSIGNMENT") {
|
|
10611
|
-
if (foundBadgeRule) {
|
|
10612
|
-
return `${i18n_default.t("coterie_count_completion_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_completion_assignment_text_2")}`;
|
|
10599
|
+
return `${i18n_default.t("coterie_count_personalized_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_personalized_assignment_text_2")}`;
|
|
10613
10600
|
} else {
|
|
10614
|
-
return i18n_default.t("
|
|
10601
|
+
return i18n_default.t("none_count_personalized_assignment_text");
|
|
10615
10602
|
}
|
|
10616
10603
|
} else if (sourceType === "CONTEST") {
|
|
10617
10604
|
if (foundBadgeRule) {
|
|
@@ -10868,31 +10855,30 @@ var recursivelyIncludeCategoryActivityAnswerDTOList = (parentCategoryActivityAns
|
|
|
10868
10855
|
);
|
|
10869
10856
|
}
|
|
10870
10857
|
};
|
|
10871
|
-
var
|
|
10872
|
-
const
|
|
10873
|
-
const
|
|
10858
|
+
var constructCombinedCorporateAssignmentReportMap = (filteredSelectedLearnerCorporateAssignmentReportDTOList) => {
|
|
10859
|
+
const combinedCorporateAssignmentReportMap = {};
|
|
10860
|
+
const copyFilteredSelectedLearnerCorporateAssignmentReportDTOList = JSON.parse(
|
|
10874
10861
|
JSON.stringify(
|
|
10875
|
-
|
|
10862
|
+
filteredSelectedLearnerCorporateAssignmentReportDTOList
|
|
10876
10863
|
)
|
|
10877
10864
|
);
|
|
10878
|
-
for (const
|
|
10865
|
+
for (const learnerCorporateAssignmentReportDetailDTO of copyFilteredSelectedLearnerCorporateAssignmentReportDTOList) {
|
|
10879
10866
|
const {
|
|
10880
|
-
|
|
10867
|
+
corporateAssignmentDTO,
|
|
10881
10868
|
categoryActivityAnswerDTOList
|
|
10882
|
-
} =
|
|
10883
|
-
const {
|
|
10884
|
-
const
|
|
10885
|
-
const currentCategoryActivityAnswerDTOList = combinedCorporateAssessmentAssignmentReportMap[coterieType];
|
|
10869
|
+
} = learnerCorporateAssignmentReportDetailDTO;
|
|
10870
|
+
const { coterieType } = corporateAssignmentDTO;
|
|
10871
|
+
const currentCategoryActivityAnswerDTOList = combinedCorporateAssignmentReportMap[coterieType];
|
|
10886
10872
|
if (currentCategoryActivityAnswerDTOList) {
|
|
10887
10873
|
recursivelyIncludeCategoryActivityAnswerDTOList(
|
|
10888
10874
|
{ currentCategoryActivityAnswerDTOList },
|
|
10889
10875
|
categoryActivityAnswerDTOList
|
|
10890
10876
|
);
|
|
10891
10877
|
} else {
|
|
10892
|
-
|
|
10878
|
+
combinedCorporateAssignmentReportMap[coterieType] = categoryActivityAnswerDTOList;
|
|
10893
10879
|
}
|
|
10894
10880
|
}
|
|
10895
|
-
return
|
|
10881
|
+
return combinedCorporateAssignmentReportMap;
|
|
10896
10882
|
};
|
|
10897
10883
|
var constructOutcomeActivityScoreList = (data) => {
|
|
10898
10884
|
const outcomeActivityScoreList = [];
|
|
@@ -10976,18 +10962,6 @@ var retrieveTokenUsageSubTypeOptionList = () => {
|
|
|
10976
10962
|
};
|
|
10977
10963
|
|
|
10978
10964
|
// src/utilization/PlanUtilization.ts
|
|
10979
|
-
var retrieveOutcomePlanTypeOptionList = () => {
|
|
10980
|
-
return [
|
|
10981
|
-
{
|
|
10982
|
-
value: "PLAN",
|
|
10983
|
-
text: i18n_default.t("OUTCOME_NARRATIVE_PLAN")
|
|
10984
|
-
},
|
|
10985
|
-
{
|
|
10986
|
-
value: "ACTIVITY",
|
|
10987
|
-
text: i18n_default.t("IN_CLASS_ACTIVITY")
|
|
10988
|
-
}
|
|
10989
|
-
];
|
|
10990
|
-
};
|
|
10991
10965
|
var retrieveTeachingMethodologyOptionList = () => {
|
|
10992
10966
|
return [
|
|
10993
10967
|
{
|
|
@@ -11249,7 +11223,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
11249
11223
|
constructBaseNumericIndividualModel,
|
|
11250
11224
|
constructBaseVerbalIndvidualModel,
|
|
11251
11225
|
constructCategoryTreeFromParentCode,
|
|
11252
|
-
|
|
11226
|
+
constructCombinedCorporateAssignmentReportMap,
|
|
11253
11227
|
constructCombinedOutcomeActivityScoreMapFromCombinedReport,
|
|
11254
11228
|
constructInputWithSpecialExpressionList,
|
|
11255
11229
|
constructMonthName,
|
|
@@ -11275,6 +11249,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
11275
11249
|
filterUserRoleOptionList,
|
|
11276
11250
|
findAISettingsFromCurrentProfile,
|
|
11277
11251
|
findBestFitActivity,
|
|
11252
|
+
findGeneralSettingsFromCurrentProfile,
|
|
11278
11253
|
formatPriceWithCommas,
|
|
11279
11254
|
getColorByIndex,
|
|
11280
11255
|
getCurrentDateTime,
|
|
@@ -11323,7 +11298,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
11323
11298
|
retrieveDifficultyByActivityTypeFromData,
|
|
11324
11299
|
retrieveDifficultyOptionList,
|
|
11325
11300
|
retrieveDiscountAmountTypeOptionList,
|
|
11326
|
-
|
|
11301
|
+
retrieveDistinctCoterieTypeFromCorporateAssignmentDTO,
|
|
11327
11302
|
retrieveDurationInMinutesOptionList,
|
|
11328
11303
|
retrieveDurationInSecondsOptionList,
|
|
11329
11304
|
retrieveDurationTypeOptionList,
|
|
@@ -11351,7 +11326,6 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
11351
11326
|
retrieveOpticalExamPartTypeOptionList,
|
|
11352
11327
|
retrieveOpticalExamTypeOptionList,
|
|
11353
11328
|
retrieveOtherBadgeDTOList,
|
|
11354
|
-
retrieveOutcomePlanTypeOptionList,
|
|
11355
11329
|
retrievePhoneNumberAreaCodeList,
|
|
11356
11330
|
retrieveProvinceNameOptionList,
|
|
11357
11331
|
retrieveReportTypeOptionList,
|
package/dist/index.mjs
CHANGED
|
@@ -2463,11 +2463,10 @@ var retrieveFrequencyTypeOptionList = () => {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
];
|
|
2465
2465
|
};
|
|
2466
|
-
var
|
|
2466
|
+
var retrieveDistinctCoterieTypeFromCorporateAssignmentDTO = (corporateAssignmentDTOList) => {
|
|
2467
2467
|
const coterieTypeList = [];
|
|
2468
|
-
for (const
|
|
2469
|
-
const {
|
|
2470
|
-
const { coterieType } = corporatePersonalizedAssignmentDTO;
|
|
2468
|
+
for (const corporateAssignmentDTO of corporateAssignmentDTOList) {
|
|
2469
|
+
const { coterieType } = corporateAssignmentDTO;
|
|
2471
2470
|
if (coterieTypeList.findIndex(
|
|
2472
2471
|
(foundCoterieType) => foundCoterieType === coterieType
|
|
2473
2472
|
) === -1) {
|
|
@@ -2477,7 +2476,7 @@ var retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO
|
|
|
2477
2476
|
return coterieTypeList;
|
|
2478
2477
|
};
|
|
2479
2478
|
var retrieveClockTimeLeft = (type, value, durationType, durationInMinutes, activityProgressDTOSet, activity) => {
|
|
2480
|
-
if (type === "
|
|
2479
|
+
if (type === "CORPORATE_ASSIGNMENT" || type === "CORPORATE_STANDARD_EXAM" || type === "CONTEST") {
|
|
2481
2480
|
if (durationType === "ALL") {
|
|
2482
2481
|
return durationInMinutes ? durationInMinutes * 60 - retrieveTotalTimeSpentInSeconds(activityProgressDTOSet) : 0;
|
|
2483
2482
|
} else if (durationType === "EACH") {
|
|
@@ -7565,7 +7564,7 @@ var StatusError = ({
|
|
|
7565
7564
|
statusText,
|
|
7566
7565
|
textSize
|
|
7567
7566
|
}) => {
|
|
7568
|
-
return /* @__PURE__ */ jsxs40("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7567
|
+
return /* @__PURE__ */ jsxs40("div", { className: "flex flex-col justify-center items-center max-w-md", children: [
|
|
7569
7568
|
/* @__PURE__ */ jsx50("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7570
7569
|
/* @__PURE__ */ jsxs40("div", { className: "text-center my-5", children: [
|
|
7571
7570
|
/* @__PURE__ */ jsx50("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
@@ -9202,10 +9201,22 @@ var findAISettingsFromCurrentProfile = (userProfileBrand, userProfileCampus, use
|
|
|
9202
9201
|
canSolveActivityTemplate: resolve("canSolveActivityTemplate"),
|
|
9203
9202
|
canGenerateRubric: resolve("canGenerateRubric"),
|
|
9204
9203
|
canGenerateLessonPlan: resolve("canGenerateLessonPlan"),
|
|
9204
|
+
canGenerateInClassActivity: resolve("canGenerateInClassActivity"),
|
|
9205
9205
|
canGenerateImage: resolve("canGenerateImage"),
|
|
9206
9206
|
canGeneratePodcast: resolve("canGeneratePodcast")
|
|
9207
9207
|
};
|
|
9208
9208
|
};
|
|
9209
|
+
var findGeneralSettingsFromCurrentProfile = (userProfileBrand, userProfileCampus, userProfileInstitution) => {
|
|
9210
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
9211
|
+
const brandSettings = (_a = userProfileBrand == null ? void 0 : userProfileBrand.brandSettingsDTO) == null ? void 0 : _a.brandGeneralSettingsDTO;
|
|
9212
|
+
const campusSettings = (_b = userProfileCampus == null ? void 0 : userProfileCampus.campusSettingsDTO) == null ? void 0 : _b.campusGeneralSettingsDTO;
|
|
9213
|
+
const instSettings = (_c = userProfileInstitution == null ? void 0 : userProfileInstitution.institutionSettingsDTO) == null ? void 0 : _c.institutionGeneralSettingsDTO;
|
|
9214
|
+
return {
|
|
9215
|
+
canAutoAssignCorporateAssignment: (_f = (_e = (_d = instSettings == null ? void 0 : instSettings.canAutoAssignCorporateAssignment) != null ? _d : campusSettings == null ? void 0 : campusSettings.canAutoAssignCorporateAssignment) != null ? _e : brandSettings == null ? void 0 : brandSettings.canAutoAssignCorporateAssignment) != null ? _f : false,
|
|
9216
|
+
corporatePersonalizedAssignmentDelayType: (_i = (_h = (_g = instSettings == null ? void 0 : instSettings.corporatePersonalizedAssignmentDelayType) != null ? _g : campusSettings == null ? void 0 : campusSettings.corporatePersonalizedAssignmentDelayType) != null ? _h : brandSettings == null ? void 0 : brandSettings.corporatePersonalizedAssignmentDelayType) != null ? _i : "NO_DELAY",
|
|
9217
|
+
corporatePersonalizedAssignmentActivityCount: (_l = (_k = (_j = instSettings == null ? void 0 : instSettings.corporatePersonalizedAssignmentActivityCount) != null ? _j : campusSettings == null ? void 0 : campusSettings.corporatePersonalizedAssignmentActivityCount) != null ? _k : brandSettings == null ? void 0 : brandSettings.corporatePersonalizedAssignmentActivityCount) != null ? _l : 5
|
|
9218
|
+
};
|
|
9219
|
+
};
|
|
9209
9220
|
var formatPriceWithCommas = (number, language) => {
|
|
9210
9221
|
return number.toLocaleString(language, {
|
|
9211
9222
|
minimumFractionDigits: 2,
|
|
@@ -9927,16 +9938,12 @@ var mergeObjects = (...objects) => {
|
|
|
9927
9938
|
var retrieveSourceTypeOptionList = (coterieOnly) => {
|
|
9928
9939
|
const currentSourceTypeOptionList = [
|
|
9929
9940
|
{
|
|
9930
|
-
value: "
|
|
9931
|
-
text: i18n_default.t("
|
|
9941
|
+
value: "CORPORATE_ASSIGNMENT",
|
|
9942
|
+
text: i18n_default.t("CORPORATE_ASSIGNMENT")
|
|
9932
9943
|
},
|
|
9933
9944
|
{
|
|
9934
|
-
value: "
|
|
9935
|
-
text: i18n_default.t("
|
|
9936
|
-
},
|
|
9937
|
-
{
|
|
9938
|
-
value: "COMPLETION_ASSIGNMENT",
|
|
9939
|
-
text: i18n_default.t("COMPLETION_ASSIGNMENT")
|
|
9945
|
+
value: "PERSONALIZED_ASSIGNMENT",
|
|
9946
|
+
text: i18n_default.t("PERSONALIZED_ASSIGNMENT")
|
|
9940
9947
|
},
|
|
9941
9948
|
{
|
|
9942
9949
|
value: "CONTEST",
|
|
@@ -10283,31 +10290,21 @@ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, trackingType, leve
|
|
|
10283
10290
|
} else {
|
|
10284
10291
|
return i18n_default.t("none_count_activity_time_spent_text");
|
|
10285
10292
|
}
|
|
10286
|
-
} else if (sourceType === "
|
|
10293
|
+
} else if (sourceType === "CORPORATE_ASSIGNMENT") {
|
|
10287
10294
|
if (foundBadgeRule) {
|
|
10288
10295
|
return `${i18n_default.t(
|
|
10289
|
-
"
|
|
10296
|
+
"total_count_corporate_assignment_text_1"
|
|
10290
10297
|
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10291
|
-
"
|
|
10298
|
+
"total_count_corporate_assignment_text_2"
|
|
10292
10299
|
)}`;
|
|
10293
10300
|
} else {
|
|
10294
|
-
return i18n_default.t("
|
|
10301
|
+
return i18n_default.t("none_count_corporate_assignment_text");
|
|
10295
10302
|
}
|
|
10296
|
-
} else if (sourceType === "
|
|
10303
|
+
} else if (sourceType === "PERSONALIZED_ASSIGNMENT") {
|
|
10297
10304
|
if (foundBadgeRule) {
|
|
10298
|
-
return `${i18n_default.t(
|
|
10299
|
-
"total_count_corporate_assessment_assignment_text_1"
|
|
10300
|
-
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10301
|
-
"total_count_corporate_assessment_assignment_text_2"
|
|
10302
|
-
)}`;
|
|
10303
|
-
} else {
|
|
10304
|
-
return i18n_default.t("none_count_corporate_assessment_assignment_text");
|
|
10305
|
-
}
|
|
10306
|
-
} else if (sourceType === "COMPLETION_ASSIGNMENT") {
|
|
10307
|
-
if (foundBadgeRule) {
|
|
10308
|
-
return `${i18n_default.t("total_count_completion_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_completion_assignment_text_2")}`;
|
|
10305
|
+
return `${i18n_default.t("total_count_personalized_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_personalized_assignment_text_2")}`;
|
|
10309
10306
|
} else {
|
|
10310
|
-
return i18n_default.t("
|
|
10307
|
+
return i18n_default.t("none_count_personalized_assignment_text");
|
|
10311
10308
|
}
|
|
10312
10309
|
} else if (sourceType === "CONTEST") {
|
|
10313
10310
|
if (foundBadgeRule) {
|
|
@@ -10347,31 +10344,21 @@ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, trackingType, leve
|
|
|
10347
10344
|
} else {
|
|
10348
10345
|
return i18n_default.t("none_count_activity_time_spent_text");
|
|
10349
10346
|
}
|
|
10350
|
-
} else if (sourceType === "
|
|
10347
|
+
} else if (sourceType === "CORPORATE_ASSIGNMENT") {
|
|
10351
10348
|
if (foundBadgeRule) {
|
|
10352
10349
|
return `${i18n_default.t(
|
|
10353
|
-
"
|
|
10350
|
+
"coterie_count_corporate_assignment_text_1"
|
|
10354
10351
|
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10355
|
-
"
|
|
10352
|
+
"coterie_count_corporate_assignment_text_2"
|
|
10356
10353
|
)}`;
|
|
10357
10354
|
} else {
|
|
10358
|
-
return i18n_default.t("
|
|
10355
|
+
return i18n_default.t("none_count_corporate_assignment_text");
|
|
10359
10356
|
}
|
|
10360
|
-
} else if (sourceType === "
|
|
10357
|
+
} else if (sourceType === "PERSONALIZED_ASSIGNMENT") {
|
|
10361
10358
|
if (foundBadgeRule) {
|
|
10362
|
-
return `${i18n_default.t(
|
|
10363
|
-
"coterie_count_corporate_assessment_assignment_text_1"
|
|
10364
|
-
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10365
|
-
"coterie_count_corporate_assessment_assignment_text_2"
|
|
10366
|
-
)}`;
|
|
10367
|
-
} else {
|
|
10368
|
-
return i18n_default.t("none_count_corporate_assessment_assignment_text");
|
|
10369
|
-
}
|
|
10370
|
-
} else if (sourceType === "COMPLETION_ASSIGNMENT") {
|
|
10371
|
-
if (foundBadgeRule) {
|
|
10372
|
-
return `${i18n_default.t("coterie_count_completion_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_completion_assignment_text_2")}`;
|
|
10359
|
+
return `${i18n_default.t("coterie_count_personalized_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_personalized_assignment_text_2")}`;
|
|
10373
10360
|
} else {
|
|
10374
|
-
return i18n_default.t("
|
|
10361
|
+
return i18n_default.t("none_count_personalized_assignment_text");
|
|
10375
10362
|
}
|
|
10376
10363
|
} else if (sourceType === "CONTEST") {
|
|
10377
10364
|
if (foundBadgeRule) {
|
|
@@ -10628,31 +10615,30 @@ var recursivelyIncludeCategoryActivityAnswerDTOList = (parentCategoryActivityAns
|
|
|
10628
10615
|
);
|
|
10629
10616
|
}
|
|
10630
10617
|
};
|
|
10631
|
-
var
|
|
10632
|
-
const
|
|
10633
|
-
const
|
|
10618
|
+
var constructCombinedCorporateAssignmentReportMap = (filteredSelectedLearnerCorporateAssignmentReportDTOList) => {
|
|
10619
|
+
const combinedCorporateAssignmentReportMap = {};
|
|
10620
|
+
const copyFilteredSelectedLearnerCorporateAssignmentReportDTOList = JSON.parse(
|
|
10634
10621
|
JSON.stringify(
|
|
10635
|
-
|
|
10622
|
+
filteredSelectedLearnerCorporateAssignmentReportDTOList
|
|
10636
10623
|
)
|
|
10637
10624
|
);
|
|
10638
|
-
for (const
|
|
10625
|
+
for (const learnerCorporateAssignmentReportDetailDTO of copyFilteredSelectedLearnerCorporateAssignmentReportDTOList) {
|
|
10639
10626
|
const {
|
|
10640
|
-
|
|
10627
|
+
corporateAssignmentDTO,
|
|
10641
10628
|
categoryActivityAnswerDTOList
|
|
10642
|
-
} =
|
|
10643
|
-
const {
|
|
10644
|
-
const
|
|
10645
|
-
const currentCategoryActivityAnswerDTOList = combinedCorporateAssessmentAssignmentReportMap[coterieType];
|
|
10629
|
+
} = learnerCorporateAssignmentReportDetailDTO;
|
|
10630
|
+
const { coterieType } = corporateAssignmentDTO;
|
|
10631
|
+
const currentCategoryActivityAnswerDTOList = combinedCorporateAssignmentReportMap[coterieType];
|
|
10646
10632
|
if (currentCategoryActivityAnswerDTOList) {
|
|
10647
10633
|
recursivelyIncludeCategoryActivityAnswerDTOList(
|
|
10648
10634
|
{ currentCategoryActivityAnswerDTOList },
|
|
10649
10635
|
categoryActivityAnswerDTOList
|
|
10650
10636
|
);
|
|
10651
10637
|
} else {
|
|
10652
|
-
|
|
10638
|
+
combinedCorporateAssignmentReportMap[coterieType] = categoryActivityAnswerDTOList;
|
|
10653
10639
|
}
|
|
10654
10640
|
}
|
|
10655
|
-
return
|
|
10641
|
+
return combinedCorporateAssignmentReportMap;
|
|
10656
10642
|
};
|
|
10657
10643
|
var constructOutcomeActivityScoreList = (data) => {
|
|
10658
10644
|
const outcomeActivityScoreList = [];
|
|
@@ -10736,18 +10722,6 @@ var retrieveTokenUsageSubTypeOptionList = () => {
|
|
|
10736
10722
|
};
|
|
10737
10723
|
|
|
10738
10724
|
// src/utilization/PlanUtilization.ts
|
|
10739
|
-
var retrieveOutcomePlanTypeOptionList = () => {
|
|
10740
|
-
return [
|
|
10741
|
-
{
|
|
10742
|
-
value: "PLAN",
|
|
10743
|
-
text: i18n_default.t("OUTCOME_NARRATIVE_PLAN")
|
|
10744
|
-
},
|
|
10745
|
-
{
|
|
10746
|
-
value: "ACTIVITY",
|
|
10747
|
-
text: i18n_default.t("IN_CLASS_ACTIVITY")
|
|
10748
|
-
}
|
|
10749
|
-
];
|
|
10750
|
-
};
|
|
10751
10725
|
var retrieveTeachingMethodologyOptionList = () => {
|
|
10752
10726
|
return [
|
|
10753
10727
|
{
|
|
@@ -11008,7 +10982,7 @@ export {
|
|
|
11008
10982
|
constructBaseNumericIndividualModel,
|
|
11009
10983
|
constructBaseVerbalIndvidualModel,
|
|
11010
10984
|
constructCategoryTreeFromParentCode,
|
|
11011
|
-
|
|
10985
|
+
constructCombinedCorporateAssignmentReportMap,
|
|
11012
10986
|
constructCombinedOutcomeActivityScoreMapFromCombinedReport,
|
|
11013
10987
|
constructInputWithSpecialExpressionList,
|
|
11014
10988
|
constructMonthName,
|
|
@@ -11034,6 +11008,7 @@ export {
|
|
|
11034
11008
|
filterUserRoleOptionList,
|
|
11035
11009
|
findAISettingsFromCurrentProfile,
|
|
11036
11010
|
findBestFitActivity,
|
|
11011
|
+
findGeneralSettingsFromCurrentProfile,
|
|
11037
11012
|
formatPriceWithCommas,
|
|
11038
11013
|
getColorByIndex,
|
|
11039
11014
|
getCurrentDateTime,
|
|
@@ -11082,7 +11057,7 @@ export {
|
|
|
11082
11057
|
retrieveDifficultyByActivityTypeFromData,
|
|
11083
11058
|
retrieveDifficultyOptionList,
|
|
11084
11059
|
retrieveDiscountAmountTypeOptionList,
|
|
11085
|
-
|
|
11060
|
+
retrieveDistinctCoterieTypeFromCorporateAssignmentDTO,
|
|
11086
11061
|
retrieveDurationInMinutesOptionList,
|
|
11087
11062
|
retrieveDurationInSecondsOptionList,
|
|
11088
11063
|
retrieveDurationTypeOptionList,
|
|
@@ -11110,7 +11085,6 @@ export {
|
|
|
11110
11085
|
retrieveOpticalExamPartTypeOptionList,
|
|
11111
11086
|
retrieveOpticalExamTypeOptionList,
|
|
11112
11087
|
retrieveOtherBadgeDTOList,
|
|
11113
|
-
retrieveOutcomePlanTypeOptionList,
|
|
11114
11088
|
retrievePhoneNumberAreaCodeList,
|
|
11115
11089
|
retrieveProvinceNameOptionList,
|
|
11116
11090
|
retrieveReportTypeOptionList,
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ const StatusError = ({
|
|
|
7
7
|
textSize,
|
|
8
8
|
}: IStatusErrorProperties) => {
|
|
9
9
|
return (
|
|
10
|
-
<div className="flex flex-col justify-center items-center">
|
|
10
|
+
<div className="flex flex-col justify-center items-center max-w-md">
|
|
11
11
|
<p className="text-6xl text-catchup-red my-5">{i18n.t("ooops_text")}</p>
|
|
12
12
|
<div className="text-center my-5">
|
|
13
13
|
<p className="italic">{i18n.t("unexcepted_error_text")}</p>
|
|
@@ -1453,13 +1453,11 @@ export const retrieveFrequencyTypeOptionList = () => {
|
|
|
1453
1453
|
];
|
|
1454
1454
|
};
|
|
1455
1455
|
|
|
1456
|
-
export const
|
|
1457
|
-
(
|
|
1456
|
+
export const retrieveDistinctCoterieTypeFromCorporateAssignmentDTO =
|
|
1457
|
+
(corporateAssignmentDTOList: any) => {
|
|
1458
1458
|
const coterieTypeList = [];
|
|
1459
|
-
for (const
|
|
1460
|
-
const {
|
|
1461
|
-
corporatePersonalizedAssignmentApplicationDTO;
|
|
1462
|
-
const { coterieType } = corporatePersonalizedAssignmentDTO;
|
|
1459
|
+
for (const corporateAssignmentDTO of corporateAssignmentDTOList) {
|
|
1460
|
+
const { coterieType } = corporateAssignmentDTO;
|
|
1463
1461
|
if (
|
|
1464
1462
|
coterieTypeList.findIndex(
|
|
1465
1463
|
(foundCoterieType) => foundCoterieType === coterieType
|
|
@@ -1480,8 +1478,7 @@ export const retrieveClockTimeLeft = (
|
|
|
1480
1478
|
activity: any
|
|
1481
1479
|
) => {
|
|
1482
1480
|
if (
|
|
1483
|
-
type === "
|
|
1484
|
-
type === "CORPORATE_ASSESSMENT_ASSIGNMENT" ||
|
|
1481
|
+
type === "CORPORATE_ASSIGNMENT" ||
|
|
1485
1482
|
type === "CORPORATE_STANDARD_EXAM" ||
|
|
1486
1483
|
type === "CONTEST"
|
|
1487
1484
|
) {
|
|
@@ -3,16 +3,12 @@ import i18n from "../language/i18n";
|
|
|
3
3
|
const retrieveSourceTypeOptionList = (coterieOnly: boolean) => {
|
|
4
4
|
const currentSourceTypeOptionList = [
|
|
5
5
|
{
|
|
6
|
-
value: "
|
|
7
|
-
text: i18n.t("
|
|
6
|
+
value: "CORPORATE_ASSIGNMENT",
|
|
7
|
+
text: i18n.t("CORPORATE_ASSIGNMENT"),
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
|
-
value: "
|
|
11
|
-
text: i18n.t("
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
value: "COMPLETION_ASSIGNMENT",
|
|
15
|
-
text: i18n.t("COMPLETION_ASSIGNMENT"),
|
|
10
|
+
value: "PERSONALIZED_ASSIGNMENT",
|
|
11
|
+
text: i18n.t("PERSONALIZED_ASSIGNMENT"),
|
|
16
12
|
},
|
|
17
13
|
{
|
|
18
14
|
value: "CONTEST",
|
|
@@ -393,33 +389,23 @@ export const retrieveBadgeRuleTextByParams = (
|
|
|
393
389
|
} else {
|
|
394
390
|
return i18n.t("none_count_activity_time_spent_text");
|
|
395
391
|
}
|
|
396
|
-
} else if (sourceType === "
|
|
397
|
-
if (foundBadgeRule) {
|
|
398
|
-
return `${i18n.t(
|
|
399
|
-
"total_count_corporate_personalized_assignment_text_1"
|
|
400
|
-
)}${foundBadgeRule.value}${i18n.t(
|
|
401
|
-
"total_count_corporate_personalized_assignment_text_2"
|
|
402
|
-
)}`;
|
|
403
|
-
} else {
|
|
404
|
-
return i18n.t("none_count_corporate_personalized_assignment_text");
|
|
405
|
-
}
|
|
406
|
-
} else if (sourceType === "CORPORATE_ASSESSMENT_ASSIGNMENT") {
|
|
392
|
+
} else if (sourceType === "CORPORATE_ASSIGNMENT") {
|
|
407
393
|
if (foundBadgeRule) {
|
|
408
394
|
return `${i18n.t(
|
|
409
|
-
"
|
|
395
|
+
"total_count_corporate_assignment_text_1"
|
|
410
396
|
)}${foundBadgeRule.value}${i18n.t(
|
|
411
|
-
"
|
|
397
|
+
"total_count_corporate_assignment_text_2"
|
|
412
398
|
)}`;
|
|
413
399
|
} else {
|
|
414
|
-
return i18n.t("
|
|
400
|
+
return i18n.t("none_count_corporate_assignment_text");
|
|
415
401
|
}
|
|
416
|
-
} else if (sourceType === "
|
|
402
|
+
} else if (sourceType === "PERSONALIZED_ASSIGNMENT") {
|
|
417
403
|
if (foundBadgeRule) {
|
|
418
|
-
return `${i18n.t("
|
|
404
|
+
return `${i18n.t("total_count_personalized_assignment_text_1")}${
|
|
419
405
|
foundBadgeRule.value
|
|
420
|
-
}${i18n.t("
|
|
406
|
+
}${i18n.t("total_count_personalized_assignment_text_2")}`;
|
|
421
407
|
} else {
|
|
422
|
-
return i18n.t("
|
|
408
|
+
return i18n.t("none_count_personalized_assignment_text");
|
|
423
409
|
}
|
|
424
410
|
} else if (sourceType === "CONTEST") {
|
|
425
411
|
if (foundBadgeRule) {
|
|
@@ -471,33 +457,23 @@ export const retrieveBadgeRuleTextByParams = (
|
|
|
471
457
|
} else {
|
|
472
458
|
return i18n.t("none_count_activity_time_spent_text");
|
|
473
459
|
}
|
|
474
|
-
} else if (sourceType === "
|
|
475
|
-
if (foundBadgeRule) {
|
|
476
|
-
return `${i18n.t(
|
|
477
|
-
"coterie_count_corporate_personalized_assignment_text_1"
|
|
478
|
-
)}${foundBadgeRule.value}${i18n.t(
|
|
479
|
-
"coterie_count_corporate_personalized_assignment_text_2"
|
|
480
|
-
)}`;
|
|
481
|
-
} else {
|
|
482
|
-
return i18n.t("none_count_corporate_personalized_assignment_text");
|
|
483
|
-
}
|
|
484
|
-
} else if (sourceType === "CORPORATE_ASSESSMENT_ASSIGNMENT") {
|
|
460
|
+
} else if (sourceType === "CORPORATE_ASSIGNMENT") {
|
|
485
461
|
if (foundBadgeRule) {
|
|
486
462
|
return `${i18n.t(
|
|
487
|
-
"
|
|
463
|
+
"coterie_count_corporate_assignment_text_1"
|
|
488
464
|
)}${foundBadgeRule.value}${i18n.t(
|
|
489
|
-
"
|
|
465
|
+
"coterie_count_corporate_assignment_text_2"
|
|
490
466
|
)}`;
|
|
491
467
|
} else {
|
|
492
|
-
return i18n.t("
|
|
468
|
+
return i18n.t("none_count_corporate_assignment_text");
|
|
493
469
|
}
|
|
494
|
-
} else if (sourceType === "
|
|
470
|
+
} else if (sourceType === "PERSONALIZED_ASSIGNMENT") {
|
|
495
471
|
if (foundBadgeRule) {
|
|
496
|
-
return `${i18n.t("
|
|
472
|
+
return `${i18n.t("coterie_count_personalized_assignment_text_1")}${
|
|
497
473
|
foundBadgeRule.value
|
|
498
|
-
}${i18n.t("
|
|
474
|
+
}${i18n.t("coterie_count_personalized_assignment_text_2")}`;
|
|
499
475
|
} else {
|
|
500
|
-
return i18n.t("
|
|
476
|
+
return i18n.t("none_count_personalized_assignment_text");
|
|
501
477
|
}
|
|
502
478
|
} else if (sourceType === "CONTEST") {
|
|
503
479
|
if (foundBadgeRule) {
|
|
@@ -1266,11 +1266,40 @@ export const findAISettingsFromCurrentProfile = (
|
|
|
1266
1266
|
canSolveActivityTemplate: resolve("canSolveActivityTemplate"),
|
|
1267
1267
|
canGenerateRubric: resolve("canGenerateRubric"),
|
|
1268
1268
|
canGenerateLessonPlan: resolve("canGenerateLessonPlan"),
|
|
1269
|
+
canGenerateInClassActivity: resolve("canGenerateInClassActivity"),
|
|
1269
1270
|
canGenerateImage: resolve("canGenerateImage"),
|
|
1270
1271
|
canGeneratePodcast: resolve("canGeneratePodcast"),
|
|
1271
1272
|
};
|
|
1272
1273
|
};
|
|
1273
1274
|
|
|
1275
|
+
export const findGeneralSettingsFromCurrentProfile = (
|
|
1276
|
+
userProfileBrand: any,
|
|
1277
|
+
userProfileCampus: any,
|
|
1278
|
+
userProfileInstitution: any,
|
|
1279
|
+
) => {
|
|
1280
|
+
const brandSettings =
|
|
1281
|
+
userProfileBrand?.brandSettingsDTO?.brandGeneralSettingsDTO;
|
|
1282
|
+
const campusSettings =
|
|
1283
|
+
userProfileCampus?.campusSettingsDTO?.campusGeneralSettingsDTO;
|
|
1284
|
+
const instSettings =
|
|
1285
|
+
userProfileInstitution?.institutionSettingsDTO?.institutionGeneralSettingsDTO;
|
|
1286
|
+
|
|
1287
|
+
return {
|
|
1288
|
+
canAutoAssignCorporateAssignment:
|
|
1289
|
+
instSettings?.canAutoAssignCorporateAssignment
|
|
1290
|
+
?? campusSettings?.canAutoAssignCorporateAssignment
|
|
1291
|
+
?? brandSettings?.canAutoAssignCorporateAssignment ?? false,
|
|
1292
|
+
corporatePersonalizedAssignmentDelayType:
|
|
1293
|
+
instSettings?.corporatePersonalizedAssignmentDelayType
|
|
1294
|
+
?? campusSettings?.corporatePersonalizedAssignmentDelayType
|
|
1295
|
+
?? brandSettings?.corporatePersonalizedAssignmentDelayType ?? "NO_DELAY",
|
|
1296
|
+
corporatePersonalizedAssignmentActivityCount:
|
|
1297
|
+
instSettings?.corporatePersonalizedAssignmentActivityCount
|
|
1298
|
+
?? campusSettings?.corporatePersonalizedAssignmentActivityCount
|
|
1299
|
+
?? brandSettings?.corporatePersonalizedAssignmentActivityCount ?? 5,
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1274
1303
|
export const formatPriceWithCommas = (number: number, language: string) => {
|
|
1275
1304
|
return number.toLocaleString(language, {
|
|
1276
1305
|
minimumFractionDigits: 2,
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import i18n from "../language/i18n";
|
|
2
2
|
|
|
3
|
-
export const retrieveOutcomePlanTypeOptionList = () => {
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
value: "PLAN",
|
|
7
|
-
text: i18n.t("OUTCOME_NARRATIVE_PLAN"),
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
value: "ACTIVITY",
|
|
11
|
-
text: i18n.t("IN_CLASS_ACTIVITY"),
|
|
12
|
-
},
|
|
13
|
-
];
|
|
14
|
-
};
|
|
15
|
-
|
|
16
3
|
export const retrieveTeachingMethodologyOptionList = () => {
|
|
17
4
|
return [
|
|
18
5
|
{
|
|
@@ -93,37 +93,35 @@ const recursivelyIncludeCategoryActivityAnswerDTOList = (
|
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
export const
|
|
97
|
-
|
|
96
|
+
export const constructCombinedCorporateAssignmentReportMap = (
|
|
97
|
+
filteredSelectedLearnerCorporateAssignmentReportDTOList: any[]
|
|
98
98
|
) => {
|
|
99
|
-
const
|
|
100
|
-
const
|
|
99
|
+
const combinedCorporateAssignmentReportMap: any = {};
|
|
100
|
+
const copyFilteredSelectedLearnerCorporateAssignmentReportDTOList =
|
|
101
101
|
JSON.parse(
|
|
102
102
|
JSON.stringify(
|
|
103
|
-
|
|
103
|
+
filteredSelectedLearnerCorporateAssignmentReportDTOList
|
|
104
104
|
)
|
|
105
105
|
);
|
|
106
|
-
for (const
|
|
106
|
+
for (const learnerCorporateAssignmentReportDetailDTO of copyFilteredSelectedLearnerCorporateAssignmentReportDTOList) {
|
|
107
107
|
const {
|
|
108
|
-
|
|
108
|
+
corporateAssignmentDTO,
|
|
109
109
|
categoryActivityAnswerDTOList,
|
|
110
|
-
} =
|
|
111
|
-
const {
|
|
112
|
-
corporateAssessmentAssignmentApplicationDTO;
|
|
113
|
-
const { coterieType } = corporateAssessmentAssignmentDTO;
|
|
110
|
+
} = learnerCorporateAssignmentReportDetailDTO;
|
|
111
|
+
const { coterieType } = corporateAssignmentDTO;
|
|
114
112
|
const currentCategoryActivityAnswerDTOList =
|
|
115
|
-
|
|
113
|
+
combinedCorporateAssignmentReportMap[coterieType];
|
|
116
114
|
if (currentCategoryActivityAnswerDTOList) {
|
|
117
115
|
recursivelyIncludeCategoryActivityAnswerDTOList(
|
|
118
116
|
{ currentCategoryActivityAnswerDTOList },
|
|
119
117
|
categoryActivityAnswerDTOList
|
|
120
118
|
);
|
|
121
119
|
} else {
|
|
122
|
-
|
|
120
|
+
combinedCorporateAssignmentReportMap[coterieType] =
|
|
123
121
|
categoryActivityAnswerDTOList;
|
|
124
122
|
}
|
|
125
123
|
}
|
|
126
|
-
return
|
|
124
|
+
return combinedCorporateAssignmentReportMap;
|
|
127
125
|
};
|
|
128
126
|
|
|
129
127
|
export const constructOutcomeActivityScoreList = (data: any) => {
|