@playcademy/sdk 0.16.1-beta.16 → 0.16.1-beta.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/README.md +11 -10
- package/dist/index.js +4 -4
- package/dist/internal.js +4 -4
- package/dist/server/edge.js +2 -2
- package/dist/server.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -147,16 +147,17 @@ mutation.
|
|
|
147
147
|
The returned `flow` is authoritative and is derived from `purpose`; callers do not configure
|
|
148
148
|
navigation, feedback, and submission independently:
|
|
149
149
|
|
|
150
|
-
- `attempt-submit` is used for diagnostic
|
|
151
|
-
through `save()` until `submit()` finalizes the whole attempt and returns feedback.
|
|
152
|
-
- `item-submit` is used for review
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
The host rejects `submitItem()` for attempt-submit flows, rejects `submit()` until
|
|
159
|
-
|
|
150
|
+
- `attempt-submit` is used for diagnostic, end-of-course, and mastery attempts. Responses remain
|
|
151
|
+
editable through `save()` until `submit()` finalizes the whole attempt and returns feedback.
|
|
152
|
+
- `item-submit` is used for review attempts. Submit each administered item with `submitItem()`.
|
|
153
|
+
That operation atomically saves the item's responses, locks them, and returns safe immediate
|
|
154
|
+
feedback. Give each item request its own stable `submissionId` and reuse that ID for an ambiguous
|
|
155
|
+
retry; the returned canonical `itemSubmissions` ledger identifies committed items after retry or
|
|
156
|
+
resume.
|
|
157
|
+
|
|
158
|
+
The host rejects `submitItem()` for attempt-submit flows, rejects `submit()` until an item-submit
|
|
159
|
+
attempt has administered at least one item, and enforces `expectedResponseVersion` for every
|
|
160
|
+
mutation.
|
|
160
161
|
|
|
161
162
|
For local development, import the current ordered catalog before starting the dev host:
|
|
162
163
|
|
package/dist/index.js
CHANGED
|
@@ -826,7 +826,7 @@ var TIMEBACK_SUBJECTS = [
|
|
|
826
826
|
var ASSESSMENT_PURPOSES = ["end_of_course", "diagnostic", "review", "mastery"];
|
|
827
827
|
var TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS = {
|
|
828
828
|
standards: 20,
|
|
829
|
-
|
|
829
|
+
candidateItemsPerStandard: 2,
|
|
830
830
|
standardFieldLength: 128
|
|
831
831
|
};
|
|
832
832
|
var VALID_E_LEVELS = ["E1", "E2", "E3", "E4"];
|
|
@@ -3165,8 +3165,8 @@ function createTimebackNamespace(client) {
|
|
|
3165
3165
|
throw new Error(`review standard fields must be at most ${TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS.standardFieldLength} characters`);
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
|
-
if (input.
|
|
3169
|
-
throw new Error(`
|
|
3168
|
+
if (input.candidateItemsPerStandard !== undefined && (!Number.isInteger(input.candidateItemsPerStandard) || input.candidateItemsPerStandard <= 0 || input.candidateItemsPerStandard > TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS.candidateItemsPerStandard)) {
|
|
3169
|
+
throw new Error(`candidateItemsPerStandard must be a positive integer at most ${TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS.candidateItemsPerStandard}`);
|
|
3170
3170
|
}
|
|
3171
3171
|
}
|
|
3172
3172
|
const snapshot = await client["requestGameBackend"](`${ASSESSMENTS_ROUTE}/start`, "POST", input);
|
|
@@ -3670,7 +3670,7 @@ async function request({
|
|
|
3670
3670
|
return rawText && rawText.length > 0 ? rawText : undefined;
|
|
3671
3671
|
}
|
|
3672
3672
|
// src/version.ts
|
|
3673
|
-
var SDK_VERSION = "0.16.1-beta.
|
|
3673
|
+
var SDK_VERSION = "0.16.1-beta.18";
|
|
3674
3674
|
|
|
3675
3675
|
// src/clients/base.ts
|
|
3676
3676
|
class PlaycademyBaseClient {
|
package/dist/internal.js
CHANGED
|
@@ -826,7 +826,7 @@ var TIMEBACK_SUBJECTS = [
|
|
|
826
826
|
var ASSESSMENT_PURPOSES = ["end_of_course", "diagnostic", "review", "mastery"];
|
|
827
827
|
var TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS = {
|
|
828
828
|
standards: 20,
|
|
829
|
-
|
|
829
|
+
candidateItemsPerStandard: 2,
|
|
830
830
|
standardFieldLength: 128
|
|
831
831
|
};
|
|
832
832
|
var VALID_E_LEVELS = ["E1", "E2", "E3", "E4"];
|
|
@@ -3165,8 +3165,8 @@ function createTimebackNamespace(client) {
|
|
|
3165
3165
|
throw new Error(`review standard fields must be at most ${TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS.standardFieldLength} characters`);
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
|
-
if (input.
|
|
3169
|
-
throw new Error(`
|
|
3168
|
+
if (input.candidateItemsPerStandard !== undefined && (!Number.isInteger(input.candidateItemsPerStandard) || input.candidateItemsPerStandard <= 0 || input.candidateItemsPerStandard > TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS.candidateItemsPerStandard)) {
|
|
3169
|
+
throw new Error(`candidateItemsPerStandard must be a positive integer at most ${TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS.candidateItemsPerStandard}`);
|
|
3170
3170
|
}
|
|
3171
3171
|
}
|
|
3172
3172
|
const snapshot = await client["requestGameBackend"](`${ASSESSMENTS_ROUTE}/start`, "POST", input);
|
|
@@ -4546,7 +4546,7 @@ async function request({
|
|
|
4546
4546
|
return rawText && rawText.length > 0 ? rawText : undefined;
|
|
4547
4547
|
}
|
|
4548
4548
|
// src/version.ts
|
|
4549
|
-
var SDK_VERSION = "0.16.1-beta.
|
|
4549
|
+
var SDK_VERSION = "0.16.1-beta.18";
|
|
4550
4550
|
|
|
4551
4551
|
// src/clients/base.ts
|
|
4552
4552
|
class PlaycademyBaseClient {
|
package/dist/server/edge.js
CHANGED
|
@@ -44,7 +44,7 @@ var TIMEBACK_SUBJECTS = [
|
|
|
44
44
|
var ASSESSMENT_PURPOSES = ["end_of_course", "diagnostic", "review", "mastery"];
|
|
45
45
|
var TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS = {
|
|
46
46
|
standards: 20,
|
|
47
|
-
|
|
47
|
+
candidateItemsPerStandard: 2,
|
|
48
48
|
standardFieldLength: 128
|
|
49
49
|
};
|
|
50
50
|
var VALID_E_LEVELS = ["E1", "E2", "E3", "E4"];
|
|
@@ -313,7 +313,7 @@ function extractApiErrorInfo(error) {
|
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
// src/version.ts
|
|
316
|
-
var SDK_VERSION = "0.16.1-beta.
|
|
316
|
+
var SDK_VERSION = "0.16.1-beta.18";
|
|
317
317
|
|
|
318
318
|
// src/server/request.ts
|
|
319
319
|
async function makeApiRequest(opts) {
|
package/dist/server.js
CHANGED
|
@@ -233,7 +233,7 @@ var TIMEBACK_SUBJECTS = [
|
|
|
233
233
|
var ASSESSMENT_PURPOSES = ["end_of_course", "diagnostic", "review", "mastery"];
|
|
234
234
|
var TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS = {
|
|
235
235
|
standards: 20,
|
|
236
|
-
|
|
236
|
+
candidateItemsPerStandard: 2,
|
|
237
237
|
standardFieldLength: 128
|
|
238
238
|
};
|
|
239
239
|
var VALID_E_LEVELS = ["E1", "E2", "E3", "E4"];
|
|
@@ -502,7 +502,7 @@ function extractApiErrorInfo(error) {
|
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
// src/version.ts
|
|
505
|
-
var SDK_VERSION = "0.16.1-beta.
|
|
505
|
+
var SDK_VERSION = "0.16.1-beta.18";
|
|
506
506
|
|
|
507
507
|
// src/server/request.ts
|
|
508
508
|
async function makeApiRequest(opts) {
|