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.mjs CHANGED
@@ -7834,64 +7834,74 @@ var retrieveCampusDTOByUserProfileOptionList = (userProfile, selectedBrandId) =>
7834
7834
  const campusDTOOptionList = [];
7835
7835
  if (userProfile) {
7836
7836
  if (selectedBrandId) {
7837
- for (const branchDTO of userProfile.branchDTOList) {
7838
- const currentCampus = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO;
7839
- if (campusDTOOptionList.findIndex(
7840
- (campusDTOOption) => campusDTOOption.value === currentCampus.id
7841
- ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7842
- campusDTOOptionList.push({
7843
- value: currentCampus.id,
7844
- fullValue: currentCampus,
7845
- text: currentCampus.name
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
- for (const gradeDTO of userProfile.gradeDTOList) {
7850
- const currentCampus = gradeDTO.seasonDTO.institutionDTO.campusDTO;
7851
- if (campusDTOOptionList.findIndex(
7852
- (campusDTOOption) => campusDTOOption.value === currentCampus.id
7853
- ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7854
- campusDTOOptionList.push({
7855
- value: currentCampus.id,
7856
- fullValue: currentCampus,
7857
- text: currentCampus.name
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
- for (const seasonDTO of userProfile.seasonDTOList) {
7862
- const currentCampus = seasonDTO.institutionDTO.campusDTO;
7863
- if (campusDTOOptionList.findIndex(
7864
- (campusDTOOption) => campusDTOOption.value === currentCampus.id
7865
- ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7866
- campusDTOOptionList.push({
7867
- value: currentCampus.id,
7868
- fullValue: currentCampus,
7869
- text: currentCampus.name
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
- for (const institutionDTO of userProfile.institutionDTOList) {
7874
- const currentCampus = institutionDTO.campusDTO;
7875
- if (campusDTOOptionList.findIndex(
7876
- (campusDTOOption) => campusDTOOption.value === currentCampus.id
7877
- ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7878
- campusDTOOptionList.push({
7879
- value: currentCampus.id,
7880
- fullValue: currentCampus,
7881
- text: currentCampus.name
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
- for (const campusDTO of userProfile.campusDTOList) {
7886
- const currentCampus = campusDTO;
7887
- if (campusDTOOptionList.findIndex(
7888
- (campusDTOOption) => campusDTOOption.value === currentCampus.id
7889
- ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7890
- campusDTOOptionList.push({
7891
- value: currentCampus.id,
7892
- fullValue: currentCampus,
7893
- text: currentCampus.name
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
- for (const branchDTO of userProfile.branchDTOList) {
7907
- const currentInstitution = branchDTO.gradeDTO.seasonDTO.institutionDTO;
7908
- if (institutionDTOOptionList.findIndex(
7909
- (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7910
- ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7911
- institutionDTOOptionList.push({
7912
- value: currentInstitution.id,
7913
- fullValue: currentInstitution,
7914
- text: currentInstitution.name
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
- for (const gradeDTO of userProfile.gradeDTOList) {
7919
- const currentInstitution = gradeDTO.seasonDTO.institutionDTO;
7920
- if (institutionDTOOptionList.findIndex(
7921
- (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7922
- ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7923
- institutionDTOOptionList.push({
7924
- value: currentInstitution.id,
7925
- fullValue: currentInstitution,
7926
- text: currentInstitution.name
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
- for (const seasonDTO of userProfile.seasonDTOList) {
7931
- const currentInstitution = seasonDTO.institutionDTO;
7932
- if (institutionDTOOptionList.findIndex(
7933
- (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7934
- ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7935
- institutionDTOOptionList.push({
7936
- value: currentInstitution.id,
7937
- fullValue: currentInstitution,
7938
- text: currentInstitution.name
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
- for (const institutionDTO of userProfile.institutionDTOList) {
7943
- const currentInstitution = institutionDTO;
7944
- if (institutionDTOOptionList.findIndex(
7945
- (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7946
- ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7947
- institutionDTOOptionList.push({
7948
- value: currentInstitution.id,
7949
- fullValue: currentInstitution,
7950
- text: currentInstitution.name
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
- for (const branchDTO of userProfile.branchDTOList) {
7963
- const currentSeason = branchDTO.gradeDTO.seasonDTO;
7964
- if (seasonDTOOptionList.findIndex(
7965
- (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
7966
- ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
7967
- seasonDTOOptionList.push({
7968
- value: currentSeason.id,
7969
- fullValue: currentSeason,
7970
- text: currentSeason.name
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
- for (const gradeDTO of userProfile.gradeDTOList) {
7975
- const currentSeason = gradeDTO.seasonDTO;
7976
- if (seasonDTOOptionList.findIndex(
7977
- (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
7978
- ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
7979
- seasonDTOOptionList.push({
7980
- value: currentSeason.id,
7981
- fullValue: currentSeason,
7982
- text: currentSeason.name
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
- for (const seasonDTO of userProfile.seasonDTOList) {
7987
- const currentSeason = seasonDTO;
7988
- if (seasonDTOOptionList.findIndex(
7989
- (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
7990
- ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
7991
- seasonDTOOptionList.push({
7992
- value: currentSeason.id,
7993
- fullValue: currentSeason,
7994
- text: currentSeason.name
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
- for (const branchDTO of userProfile.branchDTOList) {
8007
- const currentGrade = branchDTO.gradeDTO;
8008
- if (gradeDTOOptionList.findIndex(
8009
- (gradeDTOOption) => gradeDTOOption.value === currentGrade.id
8010
- ) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
8011
- gradeDTOOptionList.push({
8012
- value: currentGrade.id,
8013
- fullValue: currentGrade,
8014
- text: currentGrade.name
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
- for (const gradeDTO of userProfile.gradeDTOList) {
8019
- const currentGrade = gradeDTO;
8020
- if (gradeDTOOptionList.findIndex(
8021
- (gradeDTOOption) => gradeDTOOption.value === currentGrade.id
8022
- ) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
8023
- gradeDTOOptionList.push({
8024
- value: currentGrade.id,
8025
- fullValue: currentGrade,
8026
- text: currentGrade.name
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
- for (const branchDTO of userProfile.branchDTOList) {
8039
- const currentBranch = branchDTO;
8040
- if (branchDTOOptionList.findIndex(
8041
- (branchDTOOption) => branchDTOOption.value === currentBranch.id
8042
- ) === -1 && currentBranch.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentBranch.gradeDTO.id === parseFloat(selectedGradeId)) {
8043
- branchDTOOptionList.push({
8044
- value: currentBranch.id,
8045
- fullValue: currentBranch,
8046
- text: currentBranch.name
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "2.2.22",
3
+ "version": "2.2.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {