catchup-library-web 2.2.21 → 2.2.22
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 +72 -60
- package/dist/index.mjs +72 -60
- package/package.json +1 -1
- package/src/utilization/ManagementUtilization.ts +90 -73
package/dist/index.js
CHANGED
|
@@ -7921,76 +7921,88 @@ var retrieveCurrencyTypeOptionList = () => {
|
|
|
7921
7921
|
var retrieveBrandDTOByUserProfileOptionList = (userProfile) => {
|
|
7922
7922
|
const brandDTOOptionList = [];
|
|
7923
7923
|
if (userProfile) {
|
|
7924
|
-
|
|
7925
|
-
const
|
|
7926
|
-
|
|
7927
|
-
(
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7924
|
+
if (userProfile.branchDTOList) {
|
|
7925
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
7926
|
+
const currentBrand = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
7927
|
+
if (brandDTOOptionList.findIndex(
|
|
7928
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7929
|
+
) === -1) {
|
|
7930
|
+
brandDTOOptionList.push({
|
|
7931
|
+
value: currentBrand.id,
|
|
7932
|
+
fullValue: currentBrand,
|
|
7933
|
+
text: currentBrand.name
|
|
7934
|
+
});
|
|
7935
|
+
}
|
|
7934
7936
|
}
|
|
7935
7937
|
}
|
|
7936
|
-
|
|
7937
|
-
const
|
|
7938
|
-
|
|
7939
|
-
(
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7938
|
+
if (userProfile.gradeDTOList) {
|
|
7939
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
7940
|
+
const currentBrand = gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
7941
|
+
if (brandDTOOptionList.findIndex(
|
|
7942
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7943
|
+
) === -1) {
|
|
7944
|
+
brandDTOOptionList.push({
|
|
7945
|
+
value: currentBrand.id,
|
|
7946
|
+
fullValue: currentBrand,
|
|
7947
|
+
text: currentBrand.name
|
|
7948
|
+
});
|
|
7949
|
+
}
|
|
7946
7950
|
}
|
|
7947
7951
|
}
|
|
7948
|
-
|
|
7949
|
-
const
|
|
7950
|
-
|
|
7951
|
-
(
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7952
|
+
if (userProfile.seasonDTOList) {
|
|
7953
|
+
for (const seasonDTO of userProfile.seasonDTOList) {
|
|
7954
|
+
const currentBrand = seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
7955
|
+
if (brandDTOOptionList.findIndex(
|
|
7956
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7957
|
+
) === -1) {
|
|
7958
|
+
brandDTOOptionList.push({
|
|
7959
|
+
value: currentBrand.id,
|
|
7960
|
+
fullValue: currentBrand,
|
|
7961
|
+
text: currentBrand.name
|
|
7962
|
+
});
|
|
7963
|
+
}
|
|
7958
7964
|
}
|
|
7959
7965
|
}
|
|
7960
|
-
|
|
7961
|
-
const
|
|
7962
|
-
|
|
7963
|
-
(
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7966
|
+
if (userProfile.institutionDTOList) {
|
|
7967
|
+
for (const institutionDTO of userProfile.institutionDTOList) {
|
|
7968
|
+
const currentBrand = institutionDTO.campusDTO.brandDTO;
|
|
7969
|
+
if (brandDTOOptionList.findIndex(
|
|
7970
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7971
|
+
) === -1) {
|
|
7972
|
+
brandDTOOptionList.push({
|
|
7973
|
+
value: currentBrand.id,
|
|
7974
|
+
fullValue: currentBrand,
|
|
7975
|
+
text: currentBrand.name
|
|
7976
|
+
});
|
|
7977
|
+
}
|
|
7970
7978
|
}
|
|
7971
7979
|
}
|
|
7972
|
-
|
|
7973
|
-
const
|
|
7974
|
-
|
|
7975
|
-
(
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7980
|
+
if (userProfile.campusDTOList) {
|
|
7981
|
+
for (const campusDTO of userProfile.campusDTOList) {
|
|
7982
|
+
const currentBrand = campusDTO.brandDTO;
|
|
7983
|
+
if (brandDTOOptionList.findIndex(
|
|
7984
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7985
|
+
) === -1) {
|
|
7986
|
+
brandDTOOptionList.push({
|
|
7987
|
+
value: currentBrand.id,
|
|
7988
|
+
fullValue: currentBrand,
|
|
7989
|
+
text: currentBrand.name
|
|
7990
|
+
});
|
|
7991
|
+
}
|
|
7982
7992
|
}
|
|
7983
7993
|
}
|
|
7984
|
-
|
|
7985
|
-
const
|
|
7986
|
-
|
|
7987
|
-
(
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
+
if (userProfile.brandDTOList) {
|
|
7995
|
+
for (const brandDTO of userProfile.brandDTOList) {
|
|
7996
|
+
const currentBrand = brandDTO;
|
|
7997
|
+
if (brandDTOOptionList.findIndex(
|
|
7998
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7999
|
+
) === -1) {
|
|
8000
|
+
brandDTOOptionList.push({
|
|
8001
|
+
value: currentBrand.id,
|
|
8002
|
+
fullValue: currentBrand,
|
|
8003
|
+
text: currentBrand.name
|
|
8004
|
+
});
|
|
8005
|
+
}
|
|
7994
8006
|
}
|
|
7995
8007
|
}
|
|
7996
8008
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -7698,76 +7698,88 @@ var retrieveCurrencyTypeOptionList = () => {
|
|
|
7698
7698
|
var retrieveBrandDTOByUserProfileOptionList = (userProfile) => {
|
|
7699
7699
|
const brandDTOOptionList = [];
|
|
7700
7700
|
if (userProfile) {
|
|
7701
|
-
|
|
7702
|
-
const
|
|
7703
|
-
|
|
7704
|
-
(
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7701
|
+
if (userProfile.branchDTOList) {
|
|
7702
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
7703
|
+
const currentBrand = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
7704
|
+
if (brandDTOOptionList.findIndex(
|
|
7705
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7706
|
+
) === -1) {
|
|
7707
|
+
brandDTOOptionList.push({
|
|
7708
|
+
value: currentBrand.id,
|
|
7709
|
+
fullValue: currentBrand,
|
|
7710
|
+
text: currentBrand.name
|
|
7711
|
+
});
|
|
7712
|
+
}
|
|
7711
7713
|
}
|
|
7712
7714
|
}
|
|
7713
|
-
|
|
7714
|
-
const
|
|
7715
|
-
|
|
7716
|
-
(
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7715
|
+
if (userProfile.gradeDTOList) {
|
|
7716
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
7717
|
+
const currentBrand = gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
7718
|
+
if (brandDTOOptionList.findIndex(
|
|
7719
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7720
|
+
) === -1) {
|
|
7721
|
+
brandDTOOptionList.push({
|
|
7722
|
+
value: currentBrand.id,
|
|
7723
|
+
fullValue: currentBrand,
|
|
7724
|
+
text: currentBrand.name
|
|
7725
|
+
});
|
|
7726
|
+
}
|
|
7723
7727
|
}
|
|
7724
7728
|
}
|
|
7725
|
-
|
|
7726
|
-
const
|
|
7727
|
-
|
|
7728
|
-
(
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7729
|
+
if (userProfile.seasonDTOList) {
|
|
7730
|
+
for (const seasonDTO of userProfile.seasonDTOList) {
|
|
7731
|
+
const currentBrand = seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
7732
|
+
if (brandDTOOptionList.findIndex(
|
|
7733
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7734
|
+
) === -1) {
|
|
7735
|
+
brandDTOOptionList.push({
|
|
7736
|
+
value: currentBrand.id,
|
|
7737
|
+
fullValue: currentBrand,
|
|
7738
|
+
text: currentBrand.name
|
|
7739
|
+
});
|
|
7740
|
+
}
|
|
7735
7741
|
}
|
|
7736
7742
|
}
|
|
7737
|
-
|
|
7738
|
-
const
|
|
7739
|
-
|
|
7740
|
-
(
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7743
|
+
if (userProfile.institutionDTOList) {
|
|
7744
|
+
for (const institutionDTO of userProfile.institutionDTOList) {
|
|
7745
|
+
const currentBrand = institutionDTO.campusDTO.brandDTO;
|
|
7746
|
+
if (brandDTOOptionList.findIndex(
|
|
7747
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7748
|
+
) === -1) {
|
|
7749
|
+
brandDTOOptionList.push({
|
|
7750
|
+
value: currentBrand.id,
|
|
7751
|
+
fullValue: currentBrand,
|
|
7752
|
+
text: currentBrand.name
|
|
7753
|
+
});
|
|
7754
|
+
}
|
|
7747
7755
|
}
|
|
7748
7756
|
}
|
|
7749
|
-
|
|
7750
|
-
const
|
|
7751
|
-
|
|
7752
|
-
(
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7757
|
+
if (userProfile.campusDTOList) {
|
|
7758
|
+
for (const campusDTO of userProfile.campusDTOList) {
|
|
7759
|
+
const currentBrand = campusDTO.brandDTO;
|
|
7760
|
+
if (brandDTOOptionList.findIndex(
|
|
7761
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7762
|
+
) === -1) {
|
|
7763
|
+
brandDTOOptionList.push({
|
|
7764
|
+
value: currentBrand.id,
|
|
7765
|
+
fullValue: currentBrand,
|
|
7766
|
+
text: currentBrand.name
|
|
7767
|
+
});
|
|
7768
|
+
}
|
|
7759
7769
|
}
|
|
7760
7770
|
}
|
|
7761
|
-
|
|
7762
|
-
const
|
|
7763
|
-
|
|
7764
|
-
(
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
+
if (userProfile.brandDTOList) {
|
|
7772
|
+
for (const brandDTO of userProfile.brandDTOList) {
|
|
7773
|
+
const currentBrand = brandDTO;
|
|
7774
|
+
if (brandDTOOptionList.findIndex(
|
|
7775
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7776
|
+
) === -1) {
|
|
7777
|
+
brandDTOOptionList.push({
|
|
7778
|
+
value: currentBrand.id,
|
|
7779
|
+
fullValue: currentBrand,
|
|
7780
|
+
text: currentBrand.name
|
|
7781
|
+
});
|
|
7782
|
+
}
|
|
7771
7783
|
}
|
|
7772
7784
|
}
|
|
7773
7785
|
}
|
package/package.json
CHANGED
|
@@ -3,89 +3,106 @@ import i18n from "../language/i18n";
|
|
|
3
3
|
export const retrieveBrandDTOByUserProfileOptionList = (userProfile: any) => {
|
|
4
4
|
const brandDTOOptionList = [];
|
|
5
5
|
if (userProfile) {
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
if (userProfile.branchDTOList) {
|
|
7
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
8
|
+
const currentBrand =
|
|
9
|
+
branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
10
|
+
if (
|
|
11
|
+
brandDTOOptionList.findIndex(
|
|
12
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
13
|
+
) === -1
|
|
14
|
+
) {
|
|
15
|
+
brandDTOOptionList.push({
|
|
16
|
+
value: currentBrand.id,
|
|
17
|
+
fullValue: currentBrand,
|
|
18
|
+
text: currentBrand.name,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
if (userProfile.gradeDTOList) {
|
|
24
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
25
|
+
const currentBrand =
|
|
26
|
+
gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
27
|
+
if (
|
|
28
|
+
brandDTOOptionList.findIndex(
|
|
29
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
30
|
+
) === -1
|
|
31
|
+
) {
|
|
32
|
+
brandDTOOptionList.push({
|
|
33
|
+
value: currentBrand.id,
|
|
34
|
+
fullValue: currentBrand,
|
|
35
|
+
text: currentBrand.name,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
|
|
41
|
+
if (userProfile.seasonDTOList) {
|
|
42
|
+
for (const seasonDTO of userProfile.seasonDTOList) {
|
|
43
|
+
const currentBrand = seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
44
|
+
if (
|
|
45
|
+
brandDTOOptionList.findIndex(
|
|
46
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
47
|
+
) === -1
|
|
48
|
+
) {
|
|
49
|
+
brandDTOOptionList.push({
|
|
50
|
+
value: currentBrand.id,
|
|
51
|
+
fullValue: currentBrand,
|
|
52
|
+
text: currentBrand.name,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
47
55
|
}
|
|
48
56
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
|
|
58
|
+
if (userProfile.institutionDTOList) {
|
|
59
|
+
for (const institutionDTO of userProfile.institutionDTOList) {
|
|
60
|
+
const currentBrand = institutionDTO.campusDTO.brandDTO;
|
|
61
|
+
if (
|
|
62
|
+
brandDTOOptionList.findIndex(
|
|
63
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
64
|
+
) === -1
|
|
65
|
+
) {
|
|
66
|
+
brandDTOOptionList.push({
|
|
67
|
+
value: currentBrand.id,
|
|
68
|
+
fullValue: currentBrand,
|
|
69
|
+
text: currentBrand.name,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
61
72
|
}
|
|
62
73
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
|
|
75
|
+
if (userProfile.campusDTOList) {
|
|
76
|
+
for (const campusDTO of userProfile.campusDTOList) {
|
|
77
|
+
const currentBrand = campusDTO.brandDTO;
|
|
78
|
+
if (
|
|
79
|
+
brandDTOOptionList.findIndex(
|
|
80
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
81
|
+
) === -1
|
|
82
|
+
) {
|
|
83
|
+
brandDTOOptionList.push({
|
|
84
|
+
value: currentBrand.id,
|
|
85
|
+
fullValue: currentBrand,
|
|
86
|
+
text: currentBrand.name,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
75
89
|
}
|
|
76
90
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
|
|
92
|
+
if (userProfile.brandDTOList) {
|
|
93
|
+
for (const brandDTO of userProfile.brandDTOList) {
|
|
94
|
+
const currentBrand = brandDTO;
|
|
95
|
+
if (
|
|
96
|
+
brandDTOOptionList.findIndex(
|
|
97
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
98
|
+
) === -1
|
|
99
|
+
) {
|
|
100
|
+
brandDTOOptionList.push({
|
|
101
|
+
value: currentBrand.id,
|
|
102
|
+
fullValue: currentBrand,
|
|
103
|
+
text: currentBrand.name,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
89
106
|
}
|
|
90
107
|
}
|
|
91
108
|
}
|