@shaxpir/duiduidui-models 1.9.16 → 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
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;
|
package/dist/repo/ShareSync.js
CHANGED
|
@@ -42,6 +42,7 @@ const shaxpir_common_1 = require("@shaxpir/shaxpir-common");
|
|
|
42
42
|
const reconnecting_websocket_1 = __importDefault(require("reconnecting-websocket"));
|
|
43
43
|
const models_1 = require("../models");
|
|
44
44
|
const Billing_1 = require("../models/Billing");
|
|
45
|
+
const Collection_1 = require("../models/Collection");
|
|
45
46
|
const Content_1 = require("../models/Content");
|
|
46
47
|
const ContentKind_1 = require("../models/ContentKind");
|
|
47
48
|
const Device_1 = require("../models/Device");
|
|
@@ -477,6 +478,9 @@ class ShareSync {
|
|
|
477
478
|
if (kind === ContentKind_1.ContentKind.BILLING) {
|
|
478
479
|
return new Billing_1.Billing(doc, shouldAcquire, shareSync);
|
|
479
480
|
}
|
|
481
|
+
else if (kind === ContentKind_1.ContentKind.COLLECTION) {
|
|
482
|
+
return new Collection_1.Collection(doc, shouldAcquire, shareSync);
|
|
483
|
+
}
|
|
480
484
|
else if (kind === ContentKind_1.ContentKind.DEVICE) {
|
|
481
485
|
return new Device_1.Device(doc, shouldAcquire, shareSync);
|
|
482
486
|
}
|