@playcademy/sdk 0.16.1-beta.3 → 0.16.1-beta.5
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/README.md +40 -0
- package/dist/index.d.ts +607 -153
- package/dist/index.js +1657 -685
- package/dist/internal.d.ts +490 -23
- package/dist/internal.js +1689 -722
- package/dist/server/edge.js +5 -1
- package/dist/server.js +5 -1
- package/dist/types.d.ts +553 -151
- package/package.json +1 -1
package/dist/server/edge.js
CHANGED
|
@@ -42,6 +42,7 @@ var TIMEBACK_SUBJECTS = [
|
|
|
42
42
|
"None"
|
|
43
43
|
];
|
|
44
44
|
var ASSESSMENT_PURPOSES = ["end_of_course", "diagnostic"];
|
|
45
|
+
var VALID_E_LEVELS = ["E1", "E2", "E3", "E4"];
|
|
45
46
|
var TIMEBACK_GAME_METRIC_DECIMAL_PLACES = {
|
|
46
47
|
xp: 1,
|
|
47
48
|
mastery: 0,
|
|
@@ -65,6 +66,9 @@ function isValidSubject(value) {
|
|
|
65
66
|
function isAssessmentPurpose(value) {
|
|
66
67
|
return typeof value === "string" && ASSESSMENT_PURPOSES.includes(value);
|
|
67
68
|
}
|
|
69
|
+
function isValidELevel(value) {
|
|
70
|
+
return typeof value === "string" && VALID_E_LEVELS.includes(value);
|
|
71
|
+
}
|
|
68
72
|
// src/server/namespaces/timeback.ts
|
|
69
73
|
function createTimebackNamespace(client) {
|
|
70
74
|
function enrichActivityData(data) {
|
|
@@ -299,7 +303,7 @@ function extractApiErrorInfo(error) {
|
|
|
299
303
|
}
|
|
300
304
|
|
|
301
305
|
// src/version.ts
|
|
302
|
-
var SDK_VERSION = "0.16.1-beta.
|
|
306
|
+
var SDK_VERSION = "0.16.1-beta.5";
|
|
303
307
|
|
|
304
308
|
// src/server/request.ts
|
|
305
309
|
async function makeApiRequest(opts) {
|
package/dist/server.js
CHANGED
|
@@ -231,6 +231,7 @@ var TIMEBACK_SUBJECTS = [
|
|
|
231
231
|
"None"
|
|
232
232
|
];
|
|
233
233
|
var ASSESSMENT_PURPOSES = ["end_of_course", "diagnostic"];
|
|
234
|
+
var VALID_E_LEVELS = ["E1", "E2", "E3", "E4"];
|
|
234
235
|
var TIMEBACK_GAME_METRIC_DECIMAL_PLACES = {
|
|
235
236
|
xp: 1,
|
|
236
237
|
mastery: 0,
|
|
@@ -254,6 +255,9 @@ function isValidSubject(value) {
|
|
|
254
255
|
function isAssessmentPurpose(value) {
|
|
255
256
|
return typeof value === "string" && ASSESSMENT_PURPOSES.includes(value);
|
|
256
257
|
}
|
|
258
|
+
function isValidELevel(value) {
|
|
259
|
+
return typeof value === "string" && VALID_E_LEVELS.includes(value);
|
|
260
|
+
}
|
|
257
261
|
// src/server/namespaces/timeback.ts
|
|
258
262
|
function createTimebackNamespace(client) {
|
|
259
263
|
function enrichActivityData(data) {
|
|
@@ -488,7 +492,7 @@ function extractApiErrorInfo(error) {
|
|
|
488
492
|
}
|
|
489
493
|
|
|
490
494
|
// src/version.ts
|
|
491
|
-
var SDK_VERSION = "0.16.1-beta.
|
|
495
|
+
var SDK_VERSION = "0.16.1-beta.5";
|
|
492
496
|
|
|
493
497
|
// src/server/request.ts
|
|
494
498
|
async function makeApiRequest(opts) {
|