@pocketprep/types 1.12.2 → 1.12.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/Study/Class.d.ts CHANGED
@@ -69,9 +69,20 @@ export type SubjectInsight = {
69
69
  export type AggregateStats = {
70
70
  correctAnswerSerials: string[]
71
71
  incorrectAnswerSerials: string[]
72
- subjectInsights: SubjectInsight[]
73
72
  durationSeconds: number
74
73
  }
74
+ type MessageConfigOptions = {
75
+ visibleStartingAt?: Date
76
+ lastSeen?: Date
77
+ hasClicked?: boolean
78
+ }
79
+ type MessageConfig = {
80
+ referral?: {
81
+ mockExamResults?: MessageConfigOptions
82
+ quizResults?: MessageConfigOptions
83
+ tenDayStreak?: MessageConfigOptions
84
+ }
85
+ }
75
86
  export type UserExamMetadata = Parse.Object<{
76
87
  examGuid: string
77
88
  user: User | Parse.Pointer
@@ -90,6 +101,7 @@ export type UserExamMetadata = Parse.Object<{
90
101
  }[]
91
102
  levelUpResetDates?: Date[]
92
103
  aggregateStats?: AggregateStats
104
+ messageConfig?: MessageConfig
93
105
  }>
94
106
 
95
107
  export type UserExamMetadataJSON = ReturnType<UserExamMetadata['toJSON']>
package/Study/Cloud.d.ts CHANGED
@@ -564,3 +564,7 @@ export type resetLevelUpProgress = (params: {
564
564
  majorVersion: string
565
565
  subjectNames?: string[]
566
566
  }) => TLevelUpProgress
567
+
568
+ export type fetchReferralStats = (params: { bundleId: string }) => {
569
+ redeemedUsersCount: number
570
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.12.2",
3
+ "version": "1.12.4",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",