catchup-library-web 2.7.14 → 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 +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +50 -63
- package/dist/index.mjs +47 -61
- package/package.json +1 -1
- package/src/utilization/CatchtivityUtilization.ts +5 -8
- package/src/utilization/GamificationUtilization.ts +20 -44
- package/src/utilization/ManagementUtilization.ts +28 -0
- 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;
|
|
@@ -887,6 +887,11 @@ declare const findAISettingsFromCurrentProfile: (userProfileBrand: any, userProf
|
|
|
887
887
|
canGenerateImage: any;
|
|
888
888
|
canGeneratePodcast: any;
|
|
889
889
|
};
|
|
890
|
+
declare const findGeneralSettingsFromCurrentProfile: (userProfileBrand: any, userProfileCampus: any, userProfileInstitution: any) => {
|
|
891
|
+
canAutoAssignCorporateAssignment: any;
|
|
892
|
+
corporatePersonalizedAssignmentDelayType: any;
|
|
893
|
+
corporatePersonalizedAssignmentActivityCount: any;
|
|
894
|
+
};
|
|
890
895
|
declare const formatPriceWithCommas: (number: number, language: string) => string;
|
|
891
896
|
declare const retrieveInstitutionTypeByLevel: (level: number) => "EAST_PRIMARY" | "EAST_SECONDARY" | "HIGH_SCHOOL" | undefined;
|
|
892
897
|
|
|
@@ -903,7 +908,7 @@ declare const retrieveReportTypeOptionList: () => {
|
|
|
903
908
|
value: string;
|
|
904
909
|
text: string;
|
|
905
910
|
}[];
|
|
906
|
-
declare const
|
|
911
|
+
declare const constructCombinedCorporateAssignmentReportMap: (filteredSelectedLearnerCorporateAssignmentReportDTOList: any[]) => any;
|
|
907
912
|
declare const constructOutcomeActivityScoreList: (data: any) => any[];
|
|
908
913
|
declare const constructCombinedOutcomeActivityScoreMapFromCombinedReport: (combinedCorporateAssessmentAssignmentReportMap: any) => any;
|
|
909
914
|
|
|
@@ -934,4 +939,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
934
939
|
text: string;
|
|
935
940
|
}[];
|
|
936
941
|
|
|
937
|
-
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;
|
|
@@ -887,6 +887,11 @@ declare const findAISettingsFromCurrentProfile: (userProfileBrand: any, userProf
|
|
|
887
887
|
canGenerateImage: any;
|
|
888
888
|
canGeneratePodcast: any;
|
|
889
889
|
};
|
|
890
|
+
declare const findGeneralSettingsFromCurrentProfile: (userProfileBrand: any, userProfileCampus: any, userProfileInstitution: any) => {
|
|
891
|
+
canAutoAssignCorporateAssignment: any;
|
|
892
|
+
corporatePersonalizedAssignmentDelayType: any;
|
|
893
|
+
corporatePersonalizedAssignmentActivityCount: any;
|
|
894
|
+
};
|
|
890
895
|
declare const formatPriceWithCommas: (number: number, language: string) => string;
|
|
891
896
|
declare const retrieveInstitutionTypeByLevel: (level: number) => "EAST_PRIMARY" | "EAST_SECONDARY" | "HIGH_SCHOOL" | undefined;
|
|
892
897
|
|
|
@@ -903,7 +908,7 @@ declare const retrieveReportTypeOptionList: () => {
|
|
|
903
908
|
value: string;
|
|
904
909
|
text: string;
|
|
905
910
|
}[];
|
|
906
|
-
declare const
|
|
911
|
+
declare const constructCombinedCorporateAssignmentReportMap: (filteredSelectedLearnerCorporateAssignmentReportDTOList: any[]) => any;
|
|
907
912
|
declare const constructOutcomeActivityScoreList: (data: any) => any[];
|
|
908
913
|
declare const constructCombinedOutcomeActivityScoreMapFromCombinedReport: (combinedCorporateAssessmentAssignmentReportMap: any) => any;
|
|
909
914
|
|
|
@@ -934,4 +939,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
934
939
|
text: string;
|
|
935
940
|
}[];
|
|
936
941
|
|
|
937
|
-
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,
|
|
@@ -2702,11 +2703,10 @@ var retrieveFrequencyTypeOptionList = () => {
|
|
|
2702
2703
|
}
|
|
2703
2704
|
];
|
|
2704
2705
|
};
|
|
2705
|
-
var
|
|
2706
|
+
var retrieveDistinctCoterieTypeFromCorporateAssignmentDTO = (corporateAssignmentDTOList) => {
|
|
2706
2707
|
const coterieTypeList = [];
|
|
2707
|
-
for (const
|
|
2708
|
-
const {
|
|
2709
|
-
const { coterieType } = corporatePersonalizedAssignmentDTO;
|
|
2708
|
+
for (const corporateAssignmentDTO of corporateAssignmentDTOList) {
|
|
2709
|
+
const { coterieType } = corporateAssignmentDTO;
|
|
2710
2710
|
if (coterieTypeList.findIndex(
|
|
2711
2711
|
(foundCoterieType) => foundCoterieType === coterieType
|
|
2712
2712
|
) === -1) {
|
|
@@ -2716,7 +2716,7 @@ var retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO
|
|
|
2716
2716
|
return coterieTypeList;
|
|
2717
2717
|
};
|
|
2718
2718
|
var retrieveClockTimeLeft = (type, value, durationType, durationInMinutes, activityProgressDTOSet, activity) => {
|
|
2719
|
-
if (type === "
|
|
2719
|
+
if (type === "CORPORATE_ASSIGNMENT" || type === "CORPORATE_STANDARD_EXAM" || type === "CONTEST") {
|
|
2720
2720
|
if (durationType === "ALL") {
|
|
2721
2721
|
return durationInMinutes ? durationInMinutes * 60 - retrieveTotalTimeSpentInSeconds(activityProgressDTOSet) : 0;
|
|
2722
2722
|
} else if (durationType === "EACH") {
|
|
@@ -9446,6 +9446,17 @@ var findAISettingsFromCurrentProfile = (userProfileBrand, userProfileCampus, use
|
|
|
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("
|
|
10172
|
-
},
|
|
10173
|
-
{
|
|
10174
|
-
value: "CORPORATE_ASSESSMENT_ASSIGNMENT",
|
|
10175
|
-
text: i18n_default.t("CORPORATE_ASSESSMENT_ASSIGNMENT")
|
|
10181
|
+
value: "CORPORATE_ASSIGNMENT",
|
|
10182
|
+
text: i18n_default.t("CORPORATE_ASSIGNMENT")
|
|
10176
10183
|
},
|
|
10177
10184
|
{
|
|
10178
|
-
value: "
|
|
10179
|
-
text: i18n_default.t("
|
|
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
|
-
)}`;
|
|
10545
|
+
return `${i18n_default.t("total_count_personalized_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_personalized_assignment_text_2")}`;
|
|
10543
10546
|
} else {
|
|
10544
|
-
return i18n_default.t("
|
|
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")}`;
|
|
10549
|
-
} else {
|
|
10550
|
-
return i18n_default.t("none_count_completion_assignment_text");
|
|
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 === "
|
|
10591
|
-
if (foundBadgeRule) {
|
|
10592
|
-
return `${i18n_default.t(
|
|
10593
|
-
"coterie_count_corporate_personalized_assignment_text_1"
|
|
10594
|
-
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10595
|
-
"coterie_count_corporate_personalized_assignment_text_2"
|
|
10596
|
-
)}`;
|
|
10597
|
-
} else {
|
|
10598
|
-
return i18n_default.t("none_count_corporate_personalized_assignment_text");
|
|
10599
|
-
}
|
|
10600
|
-
} else if (sourceType === "CORPORATE_ASSESSMENT_ASSIGNMENT") {
|
|
10587
|
+
} else if (sourceType === "CORPORATE_ASSIGNMENT") {
|
|
10601
10588
|
if (foundBadgeRule) {
|
|
10602
10589
|
return `${i18n_default.t(
|
|
10603
|
-
"
|
|
10590
|
+
"coterie_count_corporate_assignment_text_1"
|
|
10604
10591
|
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10605
|
-
"
|
|
10592
|
+
"coterie_count_corporate_assignment_text_2"
|
|
10606
10593
|
)}`;
|
|
10607
10594
|
} else {
|
|
10608
|
-
return i18n_default.t("
|
|
10595
|
+
return i18n_default.t("none_count_corporate_assignment_text");
|
|
10609
10596
|
}
|
|
10610
|
-
} else if (sourceType === "
|
|
10597
|
+
} else if (sourceType === "PERSONALIZED_ASSIGNMENT") {
|
|
10611
10598
|
if (foundBadgeRule) {
|
|
10612
|
-
return `${i18n_default.t("
|
|
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 = [];
|
|
@@ -11237,7 +11223,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
11237
11223
|
constructBaseNumericIndividualModel,
|
|
11238
11224
|
constructBaseVerbalIndvidualModel,
|
|
11239
11225
|
constructCategoryTreeFromParentCode,
|
|
11240
|
-
|
|
11226
|
+
constructCombinedCorporateAssignmentReportMap,
|
|
11241
11227
|
constructCombinedOutcomeActivityScoreMapFromCombinedReport,
|
|
11242
11228
|
constructInputWithSpecialExpressionList,
|
|
11243
11229
|
constructMonthName,
|
|
@@ -11263,6 +11249,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
11263
11249
|
filterUserRoleOptionList,
|
|
11264
11250
|
findAISettingsFromCurrentProfile,
|
|
11265
11251
|
findBestFitActivity,
|
|
11252
|
+
findGeneralSettingsFromCurrentProfile,
|
|
11266
11253
|
formatPriceWithCommas,
|
|
11267
11254
|
getColorByIndex,
|
|
11268
11255
|
getCurrentDateTime,
|
|
@@ -11311,7 +11298,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
11311
11298
|
retrieveDifficultyByActivityTypeFromData,
|
|
11312
11299
|
retrieveDifficultyOptionList,
|
|
11313
11300
|
retrieveDiscountAmountTypeOptionList,
|
|
11314
|
-
|
|
11301
|
+
retrieveDistinctCoterieTypeFromCorporateAssignmentDTO,
|
|
11315
11302
|
retrieveDurationInMinutesOptionList,
|
|
11316
11303
|
retrieveDurationInSecondsOptionList,
|
|
11317
11304
|
retrieveDurationTypeOptionList,
|
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") {
|
|
@@ -9207,6 +9206,17 @@ var findAISettingsFromCurrentProfile = (userProfileBrand, userProfileCampus, use
|
|
|
9207
9206
|
canGeneratePodcast: resolve("canGeneratePodcast")
|
|
9208
9207
|
};
|
|
9209
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
|
+
};
|
|
9210
9220
|
var formatPriceWithCommas = (number, language) => {
|
|
9211
9221
|
return number.toLocaleString(language, {
|
|
9212
9222
|
minimumFractionDigits: 2,
|
|
@@ -9928,16 +9938,12 @@ var mergeObjects = (...objects) => {
|
|
|
9928
9938
|
var retrieveSourceTypeOptionList = (coterieOnly) => {
|
|
9929
9939
|
const currentSourceTypeOptionList = [
|
|
9930
9940
|
{
|
|
9931
|
-
value: "
|
|
9932
|
-
text: i18n_default.t("
|
|
9933
|
-
},
|
|
9934
|
-
{
|
|
9935
|
-
value: "CORPORATE_ASSESSMENT_ASSIGNMENT",
|
|
9936
|
-
text: i18n_default.t("CORPORATE_ASSESSMENT_ASSIGNMENT")
|
|
9941
|
+
value: "CORPORATE_ASSIGNMENT",
|
|
9942
|
+
text: i18n_default.t("CORPORATE_ASSIGNMENT")
|
|
9937
9943
|
},
|
|
9938
9944
|
{
|
|
9939
|
-
value: "
|
|
9940
|
-
text: i18n_default.t("
|
|
9945
|
+
value: "PERSONALIZED_ASSIGNMENT",
|
|
9946
|
+
text: i18n_default.t("PERSONALIZED_ASSIGNMENT")
|
|
9941
9947
|
},
|
|
9942
9948
|
{
|
|
9943
9949
|
value: "CONTEST",
|
|
@@ -10284,31 +10290,21 @@ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, trackingType, leve
|
|
|
10284
10290
|
} else {
|
|
10285
10291
|
return i18n_default.t("none_count_activity_time_spent_text");
|
|
10286
10292
|
}
|
|
10287
|
-
} else if (sourceType === "
|
|
10293
|
+
} else if (sourceType === "CORPORATE_ASSIGNMENT") {
|
|
10288
10294
|
if (foundBadgeRule) {
|
|
10289
10295
|
return `${i18n_default.t(
|
|
10290
|
-
"
|
|
10296
|
+
"total_count_corporate_assignment_text_1"
|
|
10291
10297
|
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10292
|
-
"
|
|
10298
|
+
"total_count_corporate_assignment_text_2"
|
|
10293
10299
|
)}`;
|
|
10294
10300
|
} else {
|
|
10295
|
-
return i18n_default.t("
|
|
10301
|
+
return i18n_default.t("none_count_corporate_assignment_text");
|
|
10296
10302
|
}
|
|
10297
|
-
} else if (sourceType === "
|
|
10303
|
+
} else if (sourceType === "PERSONALIZED_ASSIGNMENT") {
|
|
10298
10304
|
if (foundBadgeRule) {
|
|
10299
|
-
return `${i18n_default.t(
|
|
10300
|
-
"total_count_corporate_assessment_assignment_text_1"
|
|
10301
|
-
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10302
|
-
"total_count_corporate_assessment_assignment_text_2"
|
|
10303
|
-
)}`;
|
|
10305
|
+
return `${i18n_default.t("total_count_personalized_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_personalized_assignment_text_2")}`;
|
|
10304
10306
|
} else {
|
|
10305
|
-
return i18n_default.t("
|
|
10306
|
-
}
|
|
10307
|
-
} else if (sourceType === "COMPLETION_ASSIGNMENT") {
|
|
10308
|
-
if (foundBadgeRule) {
|
|
10309
|
-
return `${i18n_default.t("total_count_completion_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_completion_assignment_text_2")}`;
|
|
10310
|
-
} else {
|
|
10311
|
-
return i18n_default.t("none_count_completion_assignment_text");
|
|
10307
|
+
return i18n_default.t("none_count_personalized_assignment_text");
|
|
10312
10308
|
}
|
|
10313
10309
|
} else if (sourceType === "CONTEST") {
|
|
10314
10310
|
if (foundBadgeRule) {
|
|
@@ -10348,31 +10344,21 @@ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, trackingType, leve
|
|
|
10348
10344
|
} else {
|
|
10349
10345
|
return i18n_default.t("none_count_activity_time_spent_text");
|
|
10350
10346
|
}
|
|
10351
|
-
} else if (sourceType === "
|
|
10352
|
-
if (foundBadgeRule) {
|
|
10353
|
-
return `${i18n_default.t(
|
|
10354
|
-
"coterie_count_corporate_personalized_assignment_text_1"
|
|
10355
|
-
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10356
|
-
"coterie_count_corporate_personalized_assignment_text_2"
|
|
10357
|
-
)}`;
|
|
10358
|
-
} else {
|
|
10359
|
-
return i18n_default.t("none_count_corporate_personalized_assignment_text");
|
|
10360
|
-
}
|
|
10361
|
-
} else if (sourceType === "CORPORATE_ASSESSMENT_ASSIGNMENT") {
|
|
10347
|
+
} else if (sourceType === "CORPORATE_ASSIGNMENT") {
|
|
10362
10348
|
if (foundBadgeRule) {
|
|
10363
10349
|
return `${i18n_default.t(
|
|
10364
|
-
"
|
|
10350
|
+
"coterie_count_corporate_assignment_text_1"
|
|
10365
10351
|
)}${foundBadgeRule.value}${i18n_default.t(
|
|
10366
|
-
"
|
|
10352
|
+
"coterie_count_corporate_assignment_text_2"
|
|
10367
10353
|
)}`;
|
|
10368
10354
|
} else {
|
|
10369
|
-
return i18n_default.t("
|
|
10355
|
+
return i18n_default.t("none_count_corporate_assignment_text");
|
|
10370
10356
|
}
|
|
10371
|
-
} else if (sourceType === "
|
|
10357
|
+
} else if (sourceType === "PERSONALIZED_ASSIGNMENT") {
|
|
10372
10358
|
if (foundBadgeRule) {
|
|
10373
|
-
return `${i18n_default.t("
|
|
10359
|
+
return `${i18n_default.t("coterie_count_personalized_assignment_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_personalized_assignment_text_2")}`;
|
|
10374
10360
|
} else {
|
|
10375
|
-
return i18n_default.t("
|
|
10361
|
+
return i18n_default.t("none_count_personalized_assignment_text");
|
|
10376
10362
|
}
|
|
10377
10363
|
} else if (sourceType === "CONTEST") {
|
|
10378
10364
|
if (foundBadgeRule) {
|
|
@@ -10629,31 +10615,30 @@ var recursivelyIncludeCategoryActivityAnswerDTOList = (parentCategoryActivityAns
|
|
|
10629
10615
|
);
|
|
10630
10616
|
}
|
|
10631
10617
|
};
|
|
10632
|
-
var
|
|
10633
|
-
const
|
|
10634
|
-
const
|
|
10618
|
+
var constructCombinedCorporateAssignmentReportMap = (filteredSelectedLearnerCorporateAssignmentReportDTOList) => {
|
|
10619
|
+
const combinedCorporateAssignmentReportMap = {};
|
|
10620
|
+
const copyFilteredSelectedLearnerCorporateAssignmentReportDTOList = JSON.parse(
|
|
10635
10621
|
JSON.stringify(
|
|
10636
|
-
|
|
10622
|
+
filteredSelectedLearnerCorporateAssignmentReportDTOList
|
|
10637
10623
|
)
|
|
10638
10624
|
);
|
|
10639
|
-
for (const
|
|
10625
|
+
for (const learnerCorporateAssignmentReportDetailDTO of copyFilteredSelectedLearnerCorporateAssignmentReportDTOList) {
|
|
10640
10626
|
const {
|
|
10641
|
-
|
|
10627
|
+
corporateAssignmentDTO,
|
|
10642
10628
|
categoryActivityAnswerDTOList
|
|
10643
|
-
} =
|
|
10644
|
-
const {
|
|
10645
|
-
const
|
|
10646
|
-
const currentCategoryActivityAnswerDTOList = combinedCorporateAssessmentAssignmentReportMap[coterieType];
|
|
10629
|
+
} = learnerCorporateAssignmentReportDetailDTO;
|
|
10630
|
+
const { coterieType } = corporateAssignmentDTO;
|
|
10631
|
+
const currentCategoryActivityAnswerDTOList = combinedCorporateAssignmentReportMap[coterieType];
|
|
10647
10632
|
if (currentCategoryActivityAnswerDTOList) {
|
|
10648
10633
|
recursivelyIncludeCategoryActivityAnswerDTOList(
|
|
10649
10634
|
{ currentCategoryActivityAnswerDTOList },
|
|
10650
10635
|
categoryActivityAnswerDTOList
|
|
10651
10636
|
);
|
|
10652
10637
|
} else {
|
|
10653
|
-
|
|
10638
|
+
combinedCorporateAssignmentReportMap[coterieType] = categoryActivityAnswerDTOList;
|
|
10654
10639
|
}
|
|
10655
10640
|
}
|
|
10656
|
-
return
|
|
10641
|
+
return combinedCorporateAssignmentReportMap;
|
|
10657
10642
|
};
|
|
10658
10643
|
var constructOutcomeActivityScoreList = (data) => {
|
|
10659
10644
|
const outcomeActivityScoreList = [];
|
|
@@ -10997,7 +10982,7 @@ export {
|
|
|
10997
10982
|
constructBaseNumericIndividualModel,
|
|
10998
10983
|
constructBaseVerbalIndvidualModel,
|
|
10999
10984
|
constructCategoryTreeFromParentCode,
|
|
11000
|
-
|
|
10985
|
+
constructCombinedCorporateAssignmentReportMap,
|
|
11001
10986
|
constructCombinedOutcomeActivityScoreMapFromCombinedReport,
|
|
11002
10987
|
constructInputWithSpecialExpressionList,
|
|
11003
10988
|
constructMonthName,
|
|
@@ -11023,6 +11008,7 @@ export {
|
|
|
11023
11008
|
filterUserRoleOptionList,
|
|
11024
11009
|
findAISettingsFromCurrentProfile,
|
|
11025
11010
|
findBestFitActivity,
|
|
11011
|
+
findGeneralSettingsFromCurrentProfile,
|
|
11026
11012
|
formatPriceWithCommas,
|
|
11027
11013
|
getColorByIndex,
|
|
11028
11014
|
getCurrentDateTime,
|
|
@@ -11071,7 +11057,7 @@ export {
|
|
|
11071
11057
|
retrieveDifficultyByActivityTypeFromData,
|
|
11072
11058
|
retrieveDifficultyOptionList,
|
|
11073
11059
|
retrieveDiscountAmountTypeOptionList,
|
|
11074
|
-
|
|
11060
|
+
retrieveDistinctCoterieTypeFromCorporateAssignmentDTO,
|
|
11075
11061
|
retrieveDurationInMinutesOptionList,
|
|
11076
11062
|
retrieveDurationInSecondsOptionList,
|
|
11077
11063
|
retrieveDurationTypeOptionList,
|
package/package.json
CHANGED
|
@@ -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) {
|
|
@@ -1272,6 +1272,34 @@ export const findAISettingsFromCurrentProfile = (
|
|
|
1272
1272
|
};
|
|
1273
1273
|
};
|
|
1274
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
|
+
|
|
1275
1303
|
export const formatPriceWithCommas = (number: number, language: string) => {
|
|
1276
1304
|
return number.toLocaleString(language, {
|
|
1277
1305
|
minimumFractionDigits: 2,
|
|
@@ -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) => {
|