@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 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 and end-of-course attempts. Responses remain editable
151
- through `save()` until `submit()` finalizes the whole attempt and returns feedback.
152
- - `item-submit` is used for review and mastery attempts. Submit each item in assessment order with
153
- `submitItem()`. That operation atomically saves the item's responses, locks them, and returns safe
154
- immediate feedback. Give each item request its own stable `submissionId` and reuse that ID for an
155
- ambiguous retry; the returned canonical `itemSubmissions` ledger identifies committed items after
156
- retry or resume.
157
-
158
- The host rejects `submitItem()` for attempt-submit flows, rejects `submit()` until every item-submit
159
- item is committed, and enforces `expectedResponseVersion` for every mutation.
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
- itemsPerStandard: 5,
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.itemsPerStandard !== undefined && (!Number.isInteger(input.itemsPerStandard) || input.itemsPerStandard <= 0 || input.itemsPerStandard > TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS.itemsPerStandard)) {
3169
- throw new Error(`itemsPerStandard must be a positive integer at most ${TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS.itemsPerStandard}`);
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.16";
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
- itemsPerStandard: 5,
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.itemsPerStandard !== undefined && (!Number.isInteger(input.itemsPerStandard) || input.itemsPerStandard <= 0 || input.itemsPerStandard > TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS.itemsPerStandard)) {
3169
- throw new Error(`itemsPerStandard must be a positive integer at most ${TIMEBACK_ASSESSMENT_REVIEW_REQUEST_LIMITS.itemsPerStandard}`);
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.16";
4549
+ var SDK_VERSION = "0.16.1-beta.18";
4550
4550
 
4551
4551
  // src/clients/base.ts
4552
4552
  class PlaycademyBaseClient {
@@ -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
- itemsPerStandard: 5,
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.16";
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
- itemsPerStandard: 5,
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.16";
505
+ var SDK_VERSION = "0.16.1-beta.18";
506
506
 
507
507
  // src/server/request.ts
508
508
  async function makeApiRequest(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcademy/sdk",
3
- "version": "0.16.1-beta.16",
3
+ "version": "0.16.1-beta.18",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {