catchup-library-web 2.6.24 → 2.6.25
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 +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +1 -1
- package/src/utilization/CategoryUtilization.ts +21 -21
package/dist/index.js
CHANGED
|
@@ -9615,12 +9615,12 @@ var retrieveCategoryVersionCodeOptionList = (curriculumType) => {
|
|
|
9615
9615
|
type: "LITERATURE",
|
|
9616
9616
|
availableLevelList: [11, 12]
|
|
9617
9617
|
},
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9618
|
+
{
|
|
9619
|
+
value: "GENERAL-CULTURE",
|
|
9620
|
+
text: i18n_default.t("GENERAL-CULTURE"),
|
|
9621
|
+
type: "GENERAL_CULTURE",
|
|
9622
|
+
availableLevelList: [8, 12]
|
|
9623
|
+
},
|
|
9624
9624
|
{
|
|
9625
9625
|
value: "SPE-TYT-TUR-2024",
|
|
9626
9626
|
text: i18n_default.t("SPE-TYT-TUR-2024"),
|
package/dist/index.mjs
CHANGED
|
@@ -9375,12 +9375,12 @@ var retrieveCategoryVersionCodeOptionList = (curriculumType) => {
|
|
|
9375
9375
|
type: "LITERATURE",
|
|
9376
9376
|
availableLevelList: [11, 12]
|
|
9377
9377
|
},
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9378
|
+
{
|
|
9379
|
+
value: "GENERAL-CULTURE",
|
|
9380
|
+
text: i18n_default.t("GENERAL-CULTURE"),
|
|
9381
|
+
type: "GENERAL_CULTURE",
|
|
9382
|
+
availableLevelList: [8, 12]
|
|
9383
|
+
},
|
|
9384
9384
|
{
|
|
9385
9385
|
value: "SPE-TYT-TUR-2024",
|
|
9386
9386
|
text: i18n_default.t("SPE-TYT-TUR-2024"),
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ export const filterCurriculumTypeOptionList = (gradeDTO: any) => {
|
|
|
18
18
|
if (gradeDTO) {
|
|
19
19
|
return retrieveCurriculumTypeOptionList().filter(
|
|
20
20
|
(curriculumTypeOption) =>
|
|
21
|
-
curriculumTypeOption.value === gradeDTO.curriculumType
|
|
21
|
+
curriculumTypeOption.value === gradeDTO.curriculumType,
|
|
22
22
|
);
|
|
23
23
|
} else {
|
|
24
24
|
return retrieveCurriculumTypeOptionList();
|
|
@@ -26,7 +26,7 @@ export const filterCurriculumTypeOptionList = (gradeDTO: any) => {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export const retrieveCategoryVersionCodeOptionList = (
|
|
29
|
-
curriculumType: string
|
|
29
|
+
curriculumType: string,
|
|
30
30
|
) => {
|
|
31
31
|
if (curriculumType === "MEB") {
|
|
32
32
|
return [
|
|
@@ -216,12 +216,12 @@ export const retrieveCategoryVersionCodeOptionList = (
|
|
|
216
216
|
type: "LITERATURE",
|
|
217
217
|
availableLevelList: [11, 12],
|
|
218
218
|
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
219
|
+
{
|
|
220
|
+
value: "GENERAL-CULTURE",
|
|
221
|
+
text: i18n.t("GENERAL-CULTURE"),
|
|
222
|
+
type: "GENERAL_CULTURE",
|
|
223
|
+
availableLevelList: [8, 12],
|
|
224
|
+
},
|
|
225
225
|
{
|
|
226
226
|
value: "SPE-TYT-TUR-2024",
|
|
227
227
|
text: i18n.t("SPE-TYT-TUR-2024"),
|
|
@@ -252,7 +252,7 @@ export const retrieveCategoryVersionCodeOptionList = (
|
|
|
252
252
|
export const filterCategoryVersionCodeOptionList = (
|
|
253
253
|
categoryVersionCodeOptionList: any,
|
|
254
254
|
coterieTypeOrTypes: string | string[],
|
|
255
|
-
level: any
|
|
255
|
+
level: any,
|
|
256
256
|
) => {
|
|
257
257
|
const coterieTypes = Array.isArray(coterieTypeOrTypes)
|
|
258
258
|
? coterieTypeOrTypes
|
|
@@ -266,14 +266,14 @@ export const filterCategoryVersionCodeOptionList = (
|
|
|
266
266
|
if (!coterieTypes.includes("MANAGEMENT")) {
|
|
267
267
|
currentCategoryVersionCodeOptionList =
|
|
268
268
|
currentCategoryVersionCodeOptionList.filter((categoryVersionCode: any) =>
|
|
269
|
-
coterieTypes.includes(categoryVersionCode.type)
|
|
269
|
+
coterieTypes.includes(categoryVersionCode.type),
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
if (level) {
|
|
274
274
|
currentCategoryVersionCodeOptionList =
|
|
275
275
|
currentCategoryVersionCodeOptionList.filter((categoryVersionCode: any) =>
|
|
276
|
-
categoryVersionCode.availableLevelList.includes(level)
|
|
276
|
+
categoryVersionCode.availableLevelList.includes(level),
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
279
|
|
|
@@ -283,7 +283,7 @@ export const filterCategoryVersionCodeOptionList = (
|
|
|
283
283
|
export const filterCategoryVersionCodeOptionListByGradeDTO = (
|
|
284
284
|
categoryVersionCodeOptionList: any,
|
|
285
285
|
coterieType: string,
|
|
286
|
-
gradeDTO: any
|
|
286
|
+
gradeDTO: any,
|
|
287
287
|
) => {
|
|
288
288
|
if (coterieType && coterieType === "DEFAULT_OPTION") return [];
|
|
289
289
|
|
|
@@ -292,14 +292,14 @@ export const filterCategoryVersionCodeOptionListByGradeDTO = (
|
|
|
292
292
|
if (coterieType !== "MANAGEMENT") {
|
|
293
293
|
currentCategoryVersionCodeOptionList =
|
|
294
294
|
currentCategoryVersionCodeOptionList.filter(
|
|
295
|
-
(categoryVersionCode: any) => categoryVersionCode.type === coterieType
|
|
295
|
+
(categoryVersionCode: any) => categoryVersionCode.type === coterieType,
|
|
296
296
|
);
|
|
297
297
|
}
|
|
298
298
|
if (gradeDTO) {
|
|
299
299
|
currentCategoryVersionCodeOptionList =
|
|
300
300
|
currentCategoryVersionCodeOptionList.filter(
|
|
301
301
|
(categoryVersionCodeOption: any) =>
|
|
302
|
-
categoryVersionCodeOption.availableLevelList.includes(gradeDTO.level)
|
|
302
|
+
categoryVersionCodeOption.availableLevelList.includes(gradeDTO.level),
|
|
303
303
|
);
|
|
304
304
|
}
|
|
305
305
|
|
|
@@ -309,7 +309,7 @@ export const filterCategoryVersionCodeOptionListByGradeDTO = (
|
|
|
309
309
|
export const filterCategoryVersionCodeOptionListByInstitutionDTO = (
|
|
310
310
|
categoryVersionCodeOptionList: any,
|
|
311
311
|
coterieType: string,
|
|
312
|
-
institutionDTO: any
|
|
312
|
+
institutionDTO: any,
|
|
313
313
|
) => {
|
|
314
314
|
if (coterieType && coterieType === "DEFAULT_OPTION") return [];
|
|
315
315
|
|
|
@@ -319,22 +319,22 @@ export const filterCategoryVersionCodeOptionListByInstitutionDTO = (
|
|
|
319
319
|
currentCategoryVersionCodeOptionList =
|
|
320
320
|
currentCategoryVersionCodeOptionList.filter(
|
|
321
321
|
(categoryVersionCodeOption: any) =>
|
|
322
|
-
categoryVersionCodeOption.type === coterieType
|
|
322
|
+
categoryVersionCodeOption.type === coterieType,
|
|
323
323
|
);
|
|
324
324
|
}
|
|
325
325
|
if (institutionDTO) {
|
|
326
326
|
const gradeLevelList = filterGradeLevelOptionList(institutionDTO, null).map(
|
|
327
|
-
(option) => option.value
|
|
327
|
+
(option) => option.value,
|
|
328
328
|
);
|
|
329
329
|
currentCategoryVersionCodeOptionList =
|
|
330
330
|
currentCategoryVersionCodeOptionList.filter(
|
|
331
331
|
(categoryVersionCodeOption: any) => {
|
|
332
332
|
return (
|
|
333
333
|
gradeLevelList.find((gradeLevel) =>
|
|
334
|
-
categoryVersionCodeOption.availableLevelList.includes(gradeLevel)
|
|
334
|
+
categoryVersionCodeOption.availableLevelList.includes(gradeLevel),
|
|
335
335
|
) !== undefined
|
|
336
336
|
);
|
|
337
|
-
}
|
|
337
|
+
},
|
|
338
338
|
);
|
|
339
339
|
}
|
|
340
340
|
|
|
@@ -408,13 +408,13 @@ export const retrieveSkillVersionCodeOptionList = () => {
|
|
|
408
408
|
|
|
409
409
|
export const filterSkillVersionCodeOptionList = (
|
|
410
410
|
skillVersionCodeOptionList: any,
|
|
411
|
-
coterieType: string | null
|
|
411
|
+
coterieType: string | null,
|
|
412
412
|
) => {
|
|
413
413
|
if (!coterieType || coterieType === "DEFAULT_OPTION") return [];
|
|
414
414
|
|
|
415
415
|
return skillVersionCodeOptionList.filter(
|
|
416
416
|
(skillVersionCode: any) =>
|
|
417
|
-
skillVersionCode.type === null || skillVersionCode.type === coterieType
|
|
417
|
+
skillVersionCode.type === null || skillVersionCode.type === coterieType,
|
|
418
418
|
);
|
|
419
419
|
};
|
|
420
420
|
|