@pocketprep/types 1.14.39 → 1.14.41

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/CMS/Class.d.ts CHANGED
@@ -178,6 +178,14 @@ export type ExamDraft = Parse.Object<{
178
178
  description: string
179
179
  mockExamDrafts?: (Parse.Pointer | MockExamDraft)[]
180
180
  isFree: boolean
181
+ sunsetAt?: Date
182
+ minorVersionMessaging?: {
183
+ type: 'newQuestions'
184
+ count: number
185
+ } | {
186
+ type: 'newMockExams'
187
+ count: number
188
+ }
181
189
  }>
182
190
 
183
191
  export type ExamDraftJSON = ReturnType<ExamDraft['toJSON']>
package/Study/Class.d.ts CHANGED
@@ -339,6 +339,17 @@ export type CustomerIOBackup = Parse.Object<{
339
339
  customerWithAttributes: CustomerWithAttributes
340
340
  }>
341
341
 
342
+ export type MessageName = 'sunsetWillDiscontinue'
343
+ | 'sunsetWasDiscontinued'
344
+ | 'majorNewVersion'
345
+ | 'minorNewQuestions'
346
+ | 'minorNewMockExams'
347
+ | 'teachSunsetWillDiscontinue'
348
+ | 'teachSunsetWasDiscontinued'
349
+ | 'teachMajorNewVersion'
350
+ | 'teachMinorNewQuestions'
351
+ | 'teachMinorNewMockExams'
352
+
342
353
  export type UserWebConfig = {
343
354
  hasSeenOnboarding?: boolean
344
355
  hasSeenWelcomeModal?: boolean
@@ -359,6 +370,12 @@ export type UserWebConfig = {
359
370
  sawExamReadinessCount?: number
360
371
  sawReadinessSurveyTimestamps?: string[] // array of ISO Date strings
361
372
  hasSeenAIFeedbackSurveyModal?: boolean
373
+ messagesSeen?: {
374
+ name: MessageName
375
+ examMetadataId: string // user's examMetadataId when message was seen
376
+ version: string // user's version when message was seen
377
+ timestamp: number // unix timestamp
378
+ }[]
362
379
  }
363
380
 
364
381
  export type UserQuizSettings = {
@@ -562,6 +579,14 @@ export type ExamMetadata = Parse.Object<{
562
579
  description: string
563
580
  isFree: boolean
564
581
  mockExams?: (MockExam | Parse.Pointer)[]
582
+ sunsetAt?: Date
583
+ minorVersionMessaging?: {
584
+ type: 'newQuestions'
585
+ count: number
586
+ } | {
587
+ type: 'newMockExams'
588
+ count: number
589
+ }
565
590
 
566
591
  // DEPRECATED FIELDS
567
592
  appId: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.14.39",
3
+ "version": "1.14.41",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",