catchup-library-web 2.2.22 → 2.2.24
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.js +180 -150
- package/dist/index.mjs +180 -150
- package/package.json +1 -1
- package/src/utilization/ManagementUtilization.ts +265 -220
package/dist/index.mjs
CHANGED
|
@@ -7834,64 +7834,74 @@ var retrieveCampusDTOByUserProfileOptionList = (userProfile, selectedBrandId) =>
|
|
|
7834
7834
|
const campusDTOOptionList = [];
|
|
7835
7835
|
if (userProfile) {
|
|
7836
7836
|
if (selectedBrandId) {
|
|
7837
|
-
|
|
7838
|
-
const
|
|
7839
|
-
|
|
7840
|
-
(
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7837
|
+
if (userProfile.branchDTOList) {
|
|
7838
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
7839
|
+
const currentCampus = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO;
|
|
7840
|
+
if (campusDTOOptionList.findIndex(
|
|
7841
|
+
(campusDTOOption) => campusDTOOption.value === currentCampus.id
|
|
7842
|
+
) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
|
|
7843
|
+
campusDTOOptionList.push({
|
|
7844
|
+
value: currentCampus.id,
|
|
7845
|
+
fullValue: currentCampus,
|
|
7846
|
+
text: currentCampus.name
|
|
7847
|
+
});
|
|
7848
|
+
}
|
|
7847
7849
|
}
|
|
7848
7850
|
}
|
|
7849
|
-
|
|
7850
|
-
const
|
|
7851
|
-
|
|
7852
|
-
(
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7851
|
+
if (userProfile.gradeDTOList) {
|
|
7852
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
7853
|
+
const currentCampus = gradeDTO.seasonDTO.institutionDTO.campusDTO;
|
|
7854
|
+
if (campusDTOOptionList.findIndex(
|
|
7855
|
+
(campusDTOOption) => campusDTOOption.value === currentCampus.id
|
|
7856
|
+
) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
|
|
7857
|
+
campusDTOOptionList.push({
|
|
7858
|
+
value: currentCampus.id,
|
|
7859
|
+
fullValue: currentCampus,
|
|
7860
|
+
text: currentCampus.name
|
|
7861
|
+
});
|
|
7862
|
+
}
|
|
7859
7863
|
}
|
|
7860
7864
|
}
|
|
7861
|
-
|
|
7862
|
-
const
|
|
7863
|
-
|
|
7864
|
-
(
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7865
|
+
if (userProfile.seasonDTOList) {
|
|
7866
|
+
for (const seasonDTO of userProfile.seasonDTOList) {
|
|
7867
|
+
const currentCampus = seasonDTO.institutionDTO.campusDTO;
|
|
7868
|
+
if (campusDTOOptionList.findIndex(
|
|
7869
|
+
(campusDTOOption) => campusDTOOption.value === currentCampus.id
|
|
7870
|
+
) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
|
|
7871
|
+
campusDTOOptionList.push({
|
|
7872
|
+
value: currentCampus.id,
|
|
7873
|
+
fullValue: currentCampus,
|
|
7874
|
+
text: currentCampus.name
|
|
7875
|
+
});
|
|
7876
|
+
}
|
|
7871
7877
|
}
|
|
7872
7878
|
}
|
|
7873
|
-
|
|
7874
|
-
const
|
|
7875
|
-
|
|
7876
|
-
(
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7879
|
+
if (userProfile.institutionDTOList) {
|
|
7880
|
+
for (const institutionDTO of userProfile.institutionDTOList) {
|
|
7881
|
+
const currentCampus = institutionDTO.campusDTO;
|
|
7882
|
+
if (campusDTOOptionList.findIndex(
|
|
7883
|
+
(campusDTOOption) => campusDTOOption.value === currentCampus.id
|
|
7884
|
+
) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
|
|
7885
|
+
campusDTOOptionList.push({
|
|
7886
|
+
value: currentCampus.id,
|
|
7887
|
+
fullValue: currentCampus,
|
|
7888
|
+
text: currentCampus.name
|
|
7889
|
+
});
|
|
7890
|
+
}
|
|
7883
7891
|
}
|
|
7884
7892
|
}
|
|
7885
|
-
|
|
7886
|
-
const
|
|
7887
|
-
|
|
7888
|
-
(
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7893
|
+
if (userProfile.campusDTOList) {
|
|
7894
|
+
for (const campusDTO of userProfile.campusDTOList) {
|
|
7895
|
+
const currentCampus = campusDTO;
|
|
7896
|
+
if (campusDTOOptionList.findIndex(
|
|
7897
|
+
(campusDTOOption) => campusDTOOption.value === currentCampus.id
|
|
7898
|
+
) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
|
|
7899
|
+
campusDTOOptionList.push({
|
|
7900
|
+
value: currentCampus.id,
|
|
7901
|
+
fullValue: currentCampus,
|
|
7902
|
+
text: currentCampus.name
|
|
7903
|
+
});
|
|
7904
|
+
}
|
|
7895
7905
|
}
|
|
7896
7906
|
}
|
|
7897
7907
|
return campusDTOOptionList;
|
|
@@ -7903,52 +7913,60 @@ var retrieveInstitutionDTOByUserProfileOptionList = (userProfile, selectedBrandI
|
|
|
7903
7913
|
const institutionDTOOptionList = [];
|
|
7904
7914
|
if (userProfile) {
|
|
7905
7915
|
if (selectedCampusId) {
|
|
7906
|
-
|
|
7907
|
-
const
|
|
7908
|
-
|
|
7909
|
-
(
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
+
if (userProfile.branchDTOList) {
|
|
7917
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
7918
|
+
const currentInstitution = branchDTO.gradeDTO.seasonDTO.institutionDTO;
|
|
7919
|
+
if (institutionDTOOptionList.findIndex(
|
|
7920
|
+
(institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
|
|
7921
|
+
) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
|
|
7922
|
+
institutionDTOOptionList.push({
|
|
7923
|
+
value: currentInstitution.id,
|
|
7924
|
+
fullValue: currentInstitution,
|
|
7925
|
+
text: currentInstitution.name
|
|
7926
|
+
});
|
|
7927
|
+
}
|
|
7916
7928
|
}
|
|
7917
7929
|
}
|
|
7918
|
-
|
|
7919
|
-
const
|
|
7920
|
-
|
|
7921
|
-
(
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7930
|
+
if (userProfile.gradeDTOList) {
|
|
7931
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
7932
|
+
const currentInstitution = gradeDTO.seasonDTO.institutionDTO;
|
|
7933
|
+
if (institutionDTOOptionList.findIndex(
|
|
7934
|
+
(institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
|
|
7935
|
+
) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
|
|
7936
|
+
institutionDTOOptionList.push({
|
|
7937
|
+
value: currentInstitution.id,
|
|
7938
|
+
fullValue: currentInstitution,
|
|
7939
|
+
text: currentInstitution.name
|
|
7940
|
+
});
|
|
7941
|
+
}
|
|
7928
7942
|
}
|
|
7929
7943
|
}
|
|
7930
|
-
|
|
7931
|
-
const
|
|
7932
|
-
|
|
7933
|
-
(
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7944
|
+
if (userProfile.seasonDTOList) {
|
|
7945
|
+
for (const seasonDTO of userProfile.seasonDTOList) {
|
|
7946
|
+
const currentInstitution = seasonDTO.institutionDTO;
|
|
7947
|
+
if (institutionDTOOptionList.findIndex(
|
|
7948
|
+
(institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
|
|
7949
|
+
) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
|
|
7950
|
+
institutionDTOOptionList.push({
|
|
7951
|
+
value: currentInstitution.id,
|
|
7952
|
+
fullValue: currentInstitution,
|
|
7953
|
+
text: currentInstitution.name
|
|
7954
|
+
});
|
|
7955
|
+
}
|
|
7940
7956
|
}
|
|
7941
7957
|
}
|
|
7942
|
-
|
|
7943
|
-
const
|
|
7944
|
-
|
|
7945
|
-
(
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7958
|
+
if (userProfile.institutionDTOList) {
|
|
7959
|
+
for (const institutionDTO of userProfile.institutionDTOList) {
|
|
7960
|
+
const currentInstitution = institutionDTO;
|
|
7961
|
+
if (institutionDTOOptionList.findIndex(
|
|
7962
|
+
(institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
|
|
7963
|
+
) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
|
|
7964
|
+
institutionDTOOptionList.push({
|
|
7965
|
+
value: currentInstitution.id,
|
|
7966
|
+
fullValue: currentInstitution,
|
|
7967
|
+
text: currentInstitution.name
|
|
7968
|
+
});
|
|
7969
|
+
}
|
|
7952
7970
|
}
|
|
7953
7971
|
}
|
|
7954
7972
|
}
|
|
@@ -7959,40 +7977,46 @@ var retrieveSeasonDTOByUserProfileOptionList = (userProfile, selectedBrandId, se
|
|
|
7959
7977
|
const seasonDTOOptionList = [];
|
|
7960
7978
|
if (userProfile) {
|
|
7961
7979
|
if (selectedInstitutionId) {
|
|
7962
|
-
|
|
7963
|
-
const
|
|
7964
|
-
|
|
7965
|
-
(
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7980
|
+
if (userProfile.branchDTOList) {
|
|
7981
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
7982
|
+
const currentSeason = branchDTO.gradeDTO.seasonDTO;
|
|
7983
|
+
if (seasonDTOOptionList.findIndex(
|
|
7984
|
+
(seasonDTOOption) => seasonDTOOption.value === currentSeason.id
|
|
7985
|
+
) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
|
|
7986
|
+
seasonDTOOptionList.push({
|
|
7987
|
+
value: currentSeason.id,
|
|
7988
|
+
fullValue: currentSeason,
|
|
7989
|
+
text: currentSeason.name
|
|
7990
|
+
});
|
|
7991
|
+
}
|
|
7972
7992
|
}
|
|
7973
7993
|
}
|
|
7974
|
-
|
|
7975
|
-
const
|
|
7976
|
-
|
|
7977
|
-
(
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7994
|
+
if (userProfile.gradeDTOList) {
|
|
7995
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
7996
|
+
const currentSeason = gradeDTO.seasonDTO;
|
|
7997
|
+
if (seasonDTOOptionList.findIndex(
|
|
7998
|
+
(seasonDTOOption) => seasonDTOOption.value === currentSeason.id
|
|
7999
|
+
) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
|
|
8000
|
+
seasonDTOOptionList.push({
|
|
8001
|
+
value: currentSeason.id,
|
|
8002
|
+
fullValue: currentSeason,
|
|
8003
|
+
text: currentSeason.name
|
|
8004
|
+
});
|
|
8005
|
+
}
|
|
7984
8006
|
}
|
|
7985
8007
|
}
|
|
7986
|
-
|
|
7987
|
-
const
|
|
7988
|
-
|
|
7989
|
-
(
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
8008
|
+
if (userProfile.seasonDTOList) {
|
|
8009
|
+
for (const seasonDTO of userProfile.seasonDTOList) {
|
|
8010
|
+
const currentSeason = seasonDTO;
|
|
8011
|
+
if (seasonDTOOptionList.findIndex(
|
|
8012
|
+
(seasonDTOOption) => seasonDTOOption.value === currentSeason.id
|
|
8013
|
+
) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
|
|
8014
|
+
seasonDTOOptionList.push({
|
|
8015
|
+
value: currentSeason.id,
|
|
8016
|
+
fullValue: currentSeason,
|
|
8017
|
+
text: currentSeason.name
|
|
8018
|
+
});
|
|
8019
|
+
}
|
|
7996
8020
|
}
|
|
7997
8021
|
}
|
|
7998
8022
|
}
|
|
@@ -8003,28 +8027,32 @@ var retrieveGradeDTOByUserProfileOptionList = (userProfile, selectedBrandId, sel
|
|
|
8003
8027
|
const gradeDTOOptionList = [];
|
|
8004
8028
|
if (userProfile) {
|
|
8005
8029
|
if (selectedSeasonId) {
|
|
8006
|
-
|
|
8007
|
-
const
|
|
8008
|
-
|
|
8009
|
-
(
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8030
|
+
if (userProfile.branchDTOList) {
|
|
8031
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
8032
|
+
const currentGrade = branchDTO.gradeDTO;
|
|
8033
|
+
if (gradeDTOOptionList.findIndex(
|
|
8034
|
+
(gradeDTOOption) => gradeDTOOption.value === currentGrade.id
|
|
8035
|
+
) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
|
|
8036
|
+
gradeDTOOptionList.push({
|
|
8037
|
+
value: currentGrade.id,
|
|
8038
|
+
fullValue: currentGrade,
|
|
8039
|
+
text: currentGrade.name
|
|
8040
|
+
});
|
|
8041
|
+
}
|
|
8016
8042
|
}
|
|
8017
8043
|
}
|
|
8018
|
-
|
|
8019
|
-
const
|
|
8020
|
-
|
|
8021
|
-
(
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8044
|
+
if (userProfile.gradeDTOList) {
|
|
8045
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
8046
|
+
const currentGrade = gradeDTO;
|
|
8047
|
+
if (gradeDTOOptionList.findIndex(
|
|
8048
|
+
(gradeDTOOption) => gradeDTOOption.value === currentGrade.id
|
|
8049
|
+
) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
|
|
8050
|
+
gradeDTOOptionList.push({
|
|
8051
|
+
value: currentGrade.id,
|
|
8052
|
+
fullValue: currentGrade,
|
|
8053
|
+
text: currentGrade.name
|
|
8054
|
+
});
|
|
8055
|
+
}
|
|
8028
8056
|
}
|
|
8029
8057
|
}
|
|
8030
8058
|
}
|
|
@@ -8035,16 +8063,18 @@ var retrieveBranchDTOByUserProfileOptionList = (userProfile, selectedBrandId, se
|
|
|
8035
8063
|
const branchDTOOptionList = [];
|
|
8036
8064
|
if (userProfile) {
|
|
8037
8065
|
if (selectedGradeId) {
|
|
8038
|
-
|
|
8039
|
-
const
|
|
8040
|
-
|
|
8041
|
-
(
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8066
|
+
if (userProfile.branchDTOList) {
|
|
8067
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
8068
|
+
const currentBranch = branchDTO;
|
|
8069
|
+
if (branchDTOOptionList.findIndex(
|
|
8070
|
+
(branchDTOOption) => branchDTOOption.value === currentBranch.id
|
|
8071
|
+
) === -1 && currentBranch.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentBranch.gradeDTO.id === parseFloat(selectedGradeId)) {
|
|
8072
|
+
branchDTOOptionList.push({
|
|
8073
|
+
value: currentBranch.id,
|
|
8074
|
+
fullValue: currentBranch,
|
|
8075
|
+
text: currentBranch.name
|
|
8076
|
+
});
|
|
8077
|
+
}
|
|
8048
8078
|
}
|
|
8049
8079
|
}
|
|
8050
8080
|
}
|