@playcademy/sdk 0.7.3-beta.3 → 0.7.3-beta.4
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/internal.d.ts +28 -0
- package/dist/internal.js +3 -0
- package/package.json +1 -1
package/dist/internal.d.ts
CHANGED
|
@@ -557,6 +557,19 @@ interface TimebackStudentHistoryPoint {
|
|
|
557
557
|
masteredUnits: number;
|
|
558
558
|
}
|
|
559
559
|
type CourseCompletionStatus = 'none' | 'complete' | 'incomplete';
|
|
560
|
+
interface TimebackStudentEnrollmentSummary {
|
|
561
|
+
enrollmentId: string;
|
|
562
|
+
status: 'active' | 'tobedeleted';
|
|
563
|
+
beginDate: string | null;
|
|
564
|
+
endDate: string | null;
|
|
565
|
+
analyticsUnavailable: boolean;
|
|
566
|
+
totalXp: number;
|
|
567
|
+
todayXp: number;
|
|
568
|
+
activeTimeSeconds: number;
|
|
569
|
+
masteredUnits: number;
|
|
570
|
+
pctCompleteApp?: number;
|
|
571
|
+
history: TimebackStudentHistoryPoint[];
|
|
572
|
+
}
|
|
560
573
|
interface TimebackStudentCourseOverview {
|
|
561
574
|
courseId: string;
|
|
562
575
|
title: string;
|
|
@@ -573,6 +586,8 @@ interface TimebackStudentCourseOverview {
|
|
|
573
586
|
completionStatus: CourseCompletionStatus;
|
|
574
587
|
history: TimebackStudentHistoryPoint[];
|
|
575
588
|
inactive?: boolean;
|
|
589
|
+
/** All enrollment records for this course, sorted active-first then by most recent. */
|
|
590
|
+
enrollments?: TimebackStudentEnrollmentSummary[];
|
|
576
591
|
}
|
|
577
592
|
type TimebackRecentActivityKind = 'activity' | 'activity-in-progress' | 'time-spent' | 'remediation-xp' | 'remediation-time' | 'remediation-mastery' | 'course-completed' | 'course-resumed';
|
|
578
593
|
interface TimebackRecentActivity {
|
|
@@ -647,16 +662,28 @@ interface EnrollStudentRequest {
|
|
|
647
662
|
courseId: string;
|
|
648
663
|
studentId: string;
|
|
649
664
|
}
|
|
665
|
+
interface ReactivateEnrollmentRequest {
|
|
666
|
+
gameId: string;
|
|
667
|
+
courseId: string;
|
|
668
|
+
studentId: string;
|
|
669
|
+
enrollmentId: string;
|
|
670
|
+
}
|
|
650
671
|
interface UnenrollStudentRequest {
|
|
651
672
|
gameId: string;
|
|
652
673
|
courseId: string;
|
|
653
674
|
studentId: string;
|
|
654
675
|
}
|
|
676
|
+
interface SearchStudentPastEnrollment {
|
|
677
|
+
enrollmentId: string;
|
|
678
|
+
beginDate: string | null;
|
|
679
|
+
endDate: string | null;
|
|
680
|
+
}
|
|
655
681
|
interface SearchStudentResult {
|
|
656
682
|
studentId: string;
|
|
657
683
|
name: string;
|
|
658
684
|
email: string | null;
|
|
659
685
|
alreadyEnrolled: boolean;
|
|
686
|
+
pastEnrollments?: SearchStudentPastEnrollment[];
|
|
660
687
|
}
|
|
661
688
|
interface SearchStudentsResponse {
|
|
662
689
|
students: SearchStudentResult[];
|
|
@@ -7703,6 +7730,7 @@ declare class PlaycademyInternalClient extends PlaycademyBaseClient {
|
|
|
7703
7730
|
searchStudents: (gameId: string, courseId: string, query: string) => Promise<SearchStudentsResponse>;
|
|
7704
7731
|
enrollStudent: (request: EnrollStudentRequest) => Promise<TimebackAdminMutationResponse>;
|
|
7705
7732
|
unenrollStudent: (request: UnenrollStudentRequest) => Promise<TimebackAdminMutationResponse>;
|
|
7733
|
+
reactivateEnrollment: (request: ReactivateEnrollmentRequest) => Promise<TimebackAdminMutationResponse>;
|
|
7706
7734
|
};
|
|
7707
7735
|
assessments: {
|
|
7708
7736
|
list: (gameId: string, courseId: string) => Promise<AssessmentSummary[]>;
|
package/dist/internal.js
CHANGED
|
@@ -3184,6 +3184,9 @@ function createTimebackNamespace2(client) {
|
|
|
3184
3184
|
}),
|
|
3185
3185
|
unenrollStudent: (request) => client["request"]("/timeback/unenroll-student", "POST", {
|
|
3186
3186
|
body: request
|
|
3187
|
+
}),
|
|
3188
|
+
reactivateEnrollment: (request) => client["request"]("/timeback/reactivate-enrollment", "POST", {
|
|
3189
|
+
body: request
|
|
3187
3190
|
})
|
|
3188
3191
|
},
|
|
3189
3192
|
assessments: {
|