catchup-library-web 2.0.9 → 2.0.10
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -9
- package/dist/index.mjs +3 -9
- package/package.json +1 -1
- package/src/utilization/CatchtivityUtilization.ts +3 -11
package/dist/index.d.mts
CHANGED
|
@@ -568,7 +568,7 @@ declare const constructActivityAnswerMap: (activityTemplate: any, activityData:
|
|
|
568
568
|
declare const ignoreMathematicalExpression: (inputText: string) => string;
|
|
569
569
|
declare const constructActivityAnswerStateList: (answerList: any[], activityList: any[]) => any;
|
|
570
570
|
declare const retrieveActivityAnswerFromAnswerList: (answerList: any[], activity: any) => any;
|
|
571
|
-
declare const checkActivityAnswerState: (answerList: any[], activity: any) => "NOT_EXISTS" | "
|
|
571
|
+
declare const checkActivityAnswerState: (answerList: any[], activity: any) => "NOT_EXISTS" | "EMPTY" | "ANSWERED";
|
|
572
572
|
declare const findBestFitActivity: (activity: any, individualModelList: any, outcomeModelList: any) => {
|
|
573
573
|
bestScore: number;
|
|
574
574
|
bestActivityTemplate: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -568,7 +568,7 @@ declare const constructActivityAnswerMap: (activityTemplate: any, activityData:
|
|
|
568
568
|
declare const ignoreMathematicalExpression: (inputText: string) => string;
|
|
569
569
|
declare const constructActivityAnswerStateList: (answerList: any[], activityList: any[]) => any;
|
|
570
570
|
declare const retrieveActivityAnswerFromAnswerList: (answerList: any[], activity: any) => any;
|
|
571
|
-
declare const checkActivityAnswerState: (answerList: any[], activity: any) => "NOT_EXISTS" | "
|
|
571
|
+
declare const checkActivityAnswerState: (answerList: any[], activity: any) => "NOT_EXISTS" | "EMPTY" | "ANSWERED";
|
|
572
572
|
declare const findBestFitActivity: (activity: any, individualModelList: any, outcomeModelList: any) => {
|
|
573
573
|
bestScore: number;
|
|
574
574
|
bestActivityTemplate: any;
|
package/dist/index.js
CHANGED
|
@@ -2429,17 +2429,11 @@ var checkActivityAnswerState = (answerList, activity) => {
|
|
|
2429
2429
|
answerList,
|
|
2430
2430
|
activity
|
|
2431
2431
|
);
|
|
2432
|
-
if (!activityAnswer)
|
|
2433
|
-
return "NOT_EXISTS";
|
|
2434
|
-
}
|
|
2432
|
+
if (!activityAnswer) return "NOT_EXISTS";
|
|
2435
2433
|
const { data } = activityAnswer;
|
|
2436
2434
|
if (!data) return "NOT_EXISTS";
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
return "ANSWERED";
|
|
2440
|
-
} else {
|
|
2441
|
-
return "EMPTY";
|
|
2442
|
-
}
|
|
2435
|
+
if (activityAnswer.isEmpty) return "EMPTY";
|
|
2436
|
+
return "ANSWERED";
|
|
2443
2437
|
};
|
|
2444
2438
|
var findBestFitActivity = (activity, individualModelList, outcomeModelList) => {
|
|
2445
2439
|
const { activityTemplateDTOList, data, coterieType, categoryIdList } = activity;
|
package/dist/index.mjs
CHANGED
|
@@ -2207,17 +2207,11 @@ var checkActivityAnswerState = (answerList, activity) => {
|
|
|
2207
2207
|
answerList,
|
|
2208
2208
|
activity
|
|
2209
2209
|
);
|
|
2210
|
-
if (!activityAnswer)
|
|
2211
|
-
return "NOT_EXISTS";
|
|
2212
|
-
}
|
|
2210
|
+
if (!activityAnswer) return "NOT_EXISTS";
|
|
2213
2211
|
const { data } = activityAnswer;
|
|
2214
2212
|
if (!data) return "NOT_EXISTS";
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
return "ANSWERED";
|
|
2218
|
-
} else {
|
|
2219
|
-
return "EMPTY";
|
|
2220
|
-
}
|
|
2213
|
+
if (activityAnswer.isEmpty) return "EMPTY";
|
|
2214
|
+
return "ANSWERED";
|
|
2221
2215
|
};
|
|
2222
2216
|
var findBestFitActivity = (activity, individualModelList, outcomeModelList) => {
|
|
2223
2217
|
const { activityTemplateDTOList, data, coterieType, categoryIdList } = activity;
|
package/package.json
CHANGED
|
@@ -1281,19 +1281,11 @@ export const checkActivityAnswerState = (answerList: any[], activity: any) => {
|
|
|
1281
1281
|
answerList,
|
|
1282
1282
|
activity
|
|
1283
1283
|
);
|
|
1284
|
-
if (!activityAnswer)
|
|
1285
|
-
return "NOT_EXISTS";
|
|
1286
|
-
}
|
|
1284
|
+
if (!activityAnswer) return "NOT_EXISTS";
|
|
1287
1285
|
const { data } = activityAnswer;
|
|
1288
1286
|
if (!data) return "NOT_EXISTS";
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
parsedData.filter((item: any) => !item.isEmpty).length === parsedData.length
|
|
1292
|
-
) {
|
|
1293
|
-
return "ANSWERED";
|
|
1294
|
-
} else {
|
|
1295
|
-
return "EMPTY";
|
|
1296
|
-
}
|
|
1287
|
+
if (activityAnswer.isEmpty) return "EMPTY";
|
|
1288
|
+
return "ANSWERED";
|
|
1297
1289
|
};
|
|
1298
1290
|
|
|
1299
1291
|
export const findBestFitActivity = (
|