@shaxpir/duiduidui-models 1.9.17 → 1.9.18
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/models/Session.d.ts +6 -1
- package/package.json +1 -1
package/dist/models/Session.d.ts
CHANGED
|
@@ -5,13 +5,18 @@ import { Conditions } from './Condition';
|
|
|
5
5
|
import { Content, ContentBody, ContentId, ContentMeta, ContentRef } from "./Content";
|
|
6
6
|
import { Review } from './Review';
|
|
7
7
|
import { UncertainValue } from './Progress';
|
|
8
|
+
/**
|
|
9
|
+
* How aggressively the card selection algorithm stretches the user
|
|
10
|
+
* beyond their current skill level.
|
|
11
|
+
*/
|
|
12
|
+
export type ChallengeLevel = 'easy' | 'mild' | 'medium' | 'hard' | 'max';
|
|
8
13
|
export interface SessionConfig {
|
|
9
14
|
constraints?: {
|
|
10
15
|
card_limit?: number | null;
|
|
11
16
|
time_limit?: number;
|
|
12
17
|
};
|
|
13
18
|
selection?: {
|
|
14
|
-
|
|
19
|
+
challenge?: ChallengeLevel;
|
|
15
20
|
filters?: Conditions;
|
|
16
21
|
strategy?: {
|
|
17
22
|
name: string;
|