@pocketprep/types 1.14.43 → 1.14.45

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/Study/Class.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { IQuizAnswer, IStreakInfo, TChoiceKey } from './Cloud'
2
2
  import { Payload, Teach, CMS } from '../index'
3
+ import { OrgStudent } from '../Teach/Class'
3
4
 
4
5
  export type MagicToken = Parse.Object<{
5
6
  code: string
@@ -809,12 +810,14 @@ export type AggregateStatsPayload = Payload<AggregateStats>
809
810
 
810
811
  export type PrebuiltQuiz = Parse.Object<{
811
812
  name: string
812
- key: string
813
813
  questionSerials: string[]
814
814
  creator: User | Parse.Pointer
815
- orgGroup?: Teach.Class.OrgGroup | Parse.Pointer
816
815
  organization?: Teach.Class.Organization | Parse.Pointer
817
816
  examMetadata: ExamMetadata | Parse.Pointer
817
+ assignedOrgStudents?: (OrgStudent | Parse.Pointer)[]
818
+ dueDate?: Date
819
+ availableDate?: Date
820
+ status?: 'draft' | 'active' | 'deleted'
818
821
  config: {
819
822
  difficulties?: ('easy' | 'medium' | 'hard')[]
820
823
  questionCount: number
@@ -825,8 +828,13 @@ export type PrebuiltQuiz = Parse.Object<{
825
828
  incorrectCount: number
826
829
  correctCount: number
827
830
  attemptedAt: string
831
+ durationSeconds?: number
828
832
  }[]
829
833
  }
834
+
835
+ // DEPRECATED
836
+ orgGroup?: Teach.Class.OrgGroup | Parse.Pointer
837
+ key?: string
830
838
  }>
831
839
 
832
840
  export type PrebuiltQuizJSON = ReturnType<PrebuiltQuiz['toJSON']>
package/Study/Cloud.d.ts CHANGED
@@ -96,6 +96,7 @@ export interface IRecordQuizPayload {
96
96
  appBundleId?: string
97
97
  prebuiltQuizId?: string
98
98
  examMetadataId?: string
99
+ currentISODate?: string // YYYY-MM-DD
99
100
  }
100
101
 
101
102
  export type TLevelUpProgress = NonNullable<UserExamMetadataJSON['levelUpProgress']>
@@ -687,7 +688,10 @@ export type fetchReferralInfo = (params: { bundleId: string }) => {
687
688
  code: string
688
689
  }
689
690
 
690
- export type fetchPrebuiltQuizQuestions = (params: { prebuiltQuizId: string }) => {
691
+ export type fetchPrebuiltQuizQuestions = (params: {
692
+ prebuiltQuizId: string
693
+ currentISODate?: string // YYYY-MM-DD
694
+ }) => {
691
695
  prebuiltQuiz: PrebuiltQuiz
692
696
  questions: QuestionJSON[]
693
697
  } | Quiz
package/Teach/Cloud.d.ts CHANGED
@@ -52,6 +52,7 @@ export type fetchStudentStats = (params: {
52
52
  compositeKey: string
53
53
  }) => StudentStats
54
54
 
55
+ // DEPRECATED use `upsertAssignment` instead
55
56
  export type createAssignment = (params: {
56
57
  name: string
57
58
  examGuid: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.14.43",
3
+ "version": "1.14.45",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",