@timeback/core 0.2.1-beta.20260314020510 → 0.2.1-beta.20260314151810
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/{chunk-cjf6wewp.js → chunk-y0b5t60e.js} +9 -1
- package/dist/index.js +26 -1
- package/dist/qti.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
|
@@ -1591,6 +1591,14 @@ var PowerPathPlacementQueryParams = z10.object({
|
|
|
1591
1591
|
student: NonEmptyString,
|
|
1592
1592
|
subject: TimebackSubject
|
|
1593
1593
|
});
|
|
1594
|
+
var PowerPathRenderConfigUpsertInput = z10.object({
|
|
1595
|
+
courseIds: z10.array(NonEmptyString).min(1),
|
|
1596
|
+
rendererId: NonEmptyString,
|
|
1597
|
+
rendererUrl: z10.url(),
|
|
1598
|
+
rendererVersion: NonEmptyString.optional(),
|
|
1599
|
+
suppressFeedback: z10.boolean().optional(),
|
|
1600
|
+
suppressCorrectResponse: z10.boolean().optional()
|
|
1601
|
+
});
|
|
1594
1602
|
var PowerPathSyllabusQueryParams = z10.object({
|
|
1595
1603
|
status: z10.enum(["active", "tobedeleted"]).optional()
|
|
1596
1604
|
});
|
|
@@ -2119,4 +2127,4 @@ function createEdubridgeClient(registry = DEFAULT_PROVIDER_REGISTRY) {
|
|
|
2119
2127
|
|
|
2120
2128
|
// ../edubridge/src/client.ts
|
|
2121
2129
|
var EdubridgeClient = createEdubridgeClient();
|
|
2122
|
-
export { ActivityCompletedInput, TimeSpentInput, CaliperEnvelopeInput, CaliperSendEventsInput, CaliperListEventsParams, QuestionSeenInput, QuestionAnsweredInput, QuestionGradedInput, WebhookCreateInput, WebhookUpdateInput, WebhookFilterCreateInput, WebhookFilterUpdateInput, CasePackageInput, ClrCredentialInput, OneRosterUserCreateInput, OneRosterCourseCreateInput, OneRosterClassCreateInput, OneRosterEnrollmentCreateInput, OneRosterCategoryCreateInput, OneRosterLineItemCreateInput, OneRosterResultCreateInput, OneRosterScoreScaleCreateInput, OneRosterAssessmentLineItemCreateInput, OneRosterAssessmentResultCreateInput, OneRosterOrgCreateInput, OneRosterSchoolCreateInput, OneRosterAcademicSessionCreateInput, OneRosterComponentResourceCreateInput, OneRosterCourseComponentCreateInput, OneRosterEnrollInput, OneRosterAgentInput, OneRosterCredentialInput, OneRosterDemographicsCreateInput, OneRosterResourceCreateInput, OneRosterCourseStructureInput, OneRosterBulkResultsInput, PowerPathCreateExternalPlacementTestInput, PowerPathCreateExternalTestOutInput, PowerPathCreateInternalTestInput, PowerPathCreateNewAttemptInput, PowerPathFinalStudentAssessmentResponseInput, PowerPathLessonPlansCreateInput, PowerPathLessonPlanOperationsInput, PowerPathLessonPlanUpdateStudentItemResponseInput, PowerPathMakeExternalTestAssignmentInput, PowerPathPlacementResetUserPlacementInput, PowerPathResetAttemptInput, PowerPathScreeningResetSessionInput, PowerPathScreeningAssignTestInput, PowerPathTestAssignmentsCreateInput, PowerPathTestAssignmentsUpdateInput, PowerPathTestAssignmentsBulkInput, PowerPathTestAssignmentsImportInput, PowerPathTestAssignmentsListParams, PowerPathTestAssignmentsAdminParams, PowerPathUpdateStudentQuestionResponseInput, PowerPathGetAssessmentProgressParams, PowerPathGetNextQuestionParams, PowerPathGetAttemptsParams, PowerPathTestOutParams, PowerPathImportExternalTestAssignmentResultsParams, PowerPathPlacementQueryParams, PowerPathSyllabusQueryParams, QtiAssessmentItemXmlCreateInput, QtiAssessmentItemJsonCreateInput, QtiAssessmentItemCreateInput, QtiAssessmentItemUpdateInput, QtiAssessmentItemProcessResponseInput, QtiAssessmentItemRef, QtiAssessmentSection, QtiTestPart, QtiReorderItemsInput, QtiAssessmentTestMetadataUpdateInput, QtiAssessmentTestCreateInput, QtiAssessmentTestUpdateInput, QtiStimulusCreateInput, QtiStimulusUpdateInput, QtiValidateInput, QtiValidateBatchInput, QtiLessonFeedbackInput, aggregateActivityMetrics, EdubridgeClient };
|
|
2130
|
+
export { ActivityCompletedInput, TimeSpentInput, CaliperEnvelopeInput, CaliperSendEventsInput, CaliperListEventsParams, QuestionSeenInput, QuestionAnsweredInput, QuestionGradedInput, WebhookCreateInput, WebhookUpdateInput, WebhookFilterCreateInput, WebhookFilterUpdateInput, CasePackageInput, ClrCredentialInput, OneRosterUserCreateInput, OneRosterCourseCreateInput, OneRosterClassCreateInput, OneRosterEnrollmentCreateInput, OneRosterCategoryCreateInput, OneRosterLineItemCreateInput, OneRosterResultCreateInput, OneRosterScoreScaleCreateInput, OneRosterAssessmentLineItemCreateInput, OneRosterAssessmentResultCreateInput, OneRosterOrgCreateInput, OneRosterSchoolCreateInput, OneRosterAcademicSessionCreateInput, OneRosterComponentResourceCreateInput, OneRosterCourseComponentCreateInput, OneRosterEnrollInput, OneRosterAgentInput, OneRosterCredentialInput, OneRosterDemographicsCreateInput, OneRosterResourceCreateInput, OneRosterCourseStructureInput, OneRosterBulkResultsInput, PowerPathCreateExternalPlacementTestInput, PowerPathCreateExternalTestOutInput, PowerPathCreateInternalTestInput, PowerPathCreateNewAttemptInput, PowerPathFinalStudentAssessmentResponseInput, PowerPathLessonPlansCreateInput, PowerPathLessonPlanOperationsInput, PowerPathLessonPlanUpdateStudentItemResponseInput, PowerPathMakeExternalTestAssignmentInput, PowerPathPlacementResetUserPlacementInput, PowerPathResetAttemptInput, PowerPathScreeningResetSessionInput, PowerPathScreeningAssignTestInput, PowerPathTestAssignmentsCreateInput, PowerPathTestAssignmentsUpdateInput, PowerPathTestAssignmentsBulkInput, PowerPathTestAssignmentsImportInput, PowerPathTestAssignmentsListParams, PowerPathTestAssignmentsAdminParams, PowerPathUpdateStudentQuestionResponseInput, PowerPathGetAssessmentProgressParams, PowerPathGetNextQuestionParams, PowerPathGetAttemptsParams, PowerPathTestOutParams, PowerPathImportExternalTestAssignmentResultsParams, PowerPathPlacementQueryParams, PowerPathRenderConfigUpsertInput, PowerPathSyllabusQueryParams, QtiAssessmentItemXmlCreateInput, QtiAssessmentItemJsonCreateInput, QtiAssessmentItemCreateInput, QtiAssessmentItemUpdateInput, QtiAssessmentItemProcessResponseInput, QtiAssessmentItemRef, QtiAssessmentSection, QtiTestPart, QtiReorderItemsInput, QtiAssessmentTestMetadataUpdateInput, QtiAssessmentTestCreateInput, QtiAssessmentTestUpdateInput, QtiStimulusCreateInput, QtiStimulusUpdateInput, QtiValidateInput, QtiValidateBatchInput, QtiLessonFeedbackInput, aggregateActivityMetrics, EdubridgeClient };
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
PowerPathMakeExternalTestAssignmentInput,
|
|
44
44
|
PowerPathPlacementQueryParams,
|
|
45
45
|
PowerPathPlacementResetUserPlacementInput,
|
|
46
|
+
PowerPathRenderConfigUpsertInput,
|
|
46
47
|
PowerPathResetAttemptInput,
|
|
47
48
|
PowerPathScreeningAssignTestInput,
|
|
48
49
|
PowerPathScreeningResetSessionInput,
|
|
@@ -80,7 +81,7 @@ import {
|
|
|
80
81
|
WebhookFilterCreateInput,
|
|
81
82
|
WebhookFilterUpdateInput,
|
|
82
83
|
WebhookUpdateInput
|
|
83
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-y0b5t60e.js";
|
|
84
85
|
import {
|
|
85
86
|
ApiError,
|
|
86
87
|
BaseTransport,
|
|
@@ -2822,6 +2823,28 @@ class PlacementResource {
|
|
|
2822
2823
|
});
|
|
2823
2824
|
}
|
|
2824
2825
|
}
|
|
2826
|
+
// ../powerpath/src/resources/render-config.ts
|
|
2827
|
+
class RenderConfigResource {
|
|
2828
|
+
transport;
|
|
2829
|
+
constructor(transport) {
|
|
2830
|
+
this.transport = transport;
|
|
2831
|
+
}
|
|
2832
|
+
upsert(input) {
|
|
2833
|
+
validateWithSchema(PowerPathRenderConfigUpsertInput, input, "render config upsert");
|
|
2834
|
+
return this.transport.request(`${this.transport.paths.base}/render-config/`, {
|
|
2835
|
+
method: "PUT",
|
|
2836
|
+
body: input
|
|
2837
|
+
});
|
|
2838
|
+
}
|
|
2839
|
+
get(courseId) {
|
|
2840
|
+
validateNonEmptyString(courseId, "courseId");
|
|
2841
|
+
return this.transport.request(`${this.transport.paths.base}/render-config/${encodeURIComponent(courseId)}`);
|
|
2842
|
+
}
|
|
2843
|
+
delete(courseId) {
|
|
2844
|
+
validateNonEmptyString(courseId, "courseId");
|
|
2845
|
+
return this.transport.request(`${this.transport.paths.base}/render-config/${encodeURIComponent(courseId)}`, { method: "DELETE" });
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2825
2848
|
// ../powerpath/src/resources/screening.ts
|
|
2826
2849
|
class ScreeningResource {
|
|
2827
2850
|
transport;
|
|
@@ -2985,6 +3008,7 @@ function createPowerPathClient(registry = DEFAULT_PROVIDER_REGISTRY) {
|
|
|
2985
3008
|
assessments;
|
|
2986
3009
|
lessonPlans;
|
|
2987
3010
|
placement;
|
|
3011
|
+
renderConfig;
|
|
2988
3012
|
screening;
|
|
2989
3013
|
syllabus;
|
|
2990
3014
|
testAssignments;
|
|
@@ -3016,6 +3040,7 @@ function createPowerPathClient(registry = DEFAULT_PROVIDER_REGISTRY) {
|
|
|
3016
3040
|
this.assessments = new AssessmentResource(this.transport);
|
|
3017
3041
|
this.lessonPlans = new LessonPlansResource(this.transport);
|
|
3018
3042
|
this.placement = new PlacementResource(this.transport);
|
|
3043
|
+
this.renderConfig = new RenderConfigResource(this.transport);
|
|
3019
3044
|
this.screening = new ScreeningResource(this.transport);
|
|
3020
3045
|
this.syllabus = new SyllabusResource(this.transport);
|
|
3021
3046
|
this.testAssignments = new TestAssignmentsResource(this.transport);
|
package/dist/qti.js
CHANGED
|
@@ -11,7 +11,7 @@ function extractChoices(xml) {
|
|
|
11
11
|
if (!xml)
|
|
12
12
|
return [];
|
|
13
13
|
const choices = [];
|
|
14
|
-
const regex = /<qti-simple-choice[^>]*identifier="([^"]+)"[^>]*>([\s\S]*?)<\/qti-simple-choice>/gi;
|
|
14
|
+
const regex = /<qti-simple-choice[^>]*(?:^|\s)identifier="([^"]+)"[^>]*>([\s\S]*?)<\/qti-simple-choice>/gi;
|
|
15
15
|
let match;
|
|
16
16
|
while ((match = regex.exec(xml)) !== null) {
|
|
17
17
|
let text = match[2] ?? "";
|
package/dist/utils.js
CHANGED