@pocketprep/types 1.14.38 → 1.14.40

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
@@ -273,7 +273,7 @@ export interface SubscriptionBase {
273
273
  receipt: Receipt | Parse.Pointer
274
274
  isTrial: boolean
275
275
  source?: SubscriptionSource[keyof SubscriptionSource]
276
- duration?: 'Monthly' | 'Quarterly' | 'Yearly'
276
+ days?: number
277
277
  }
278
278
 
279
279
  export type SubscriptionExam = Parse.Object<SubscriptionBase & {
@@ -339,6 +339,12 @@ 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
+
342
348
  export type UserWebConfig = {
343
349
  hasSeenOnboarding?: boolean
344
350
  hasSeenWelcomeModal?: boolean
@@ -359,6 +365,12 @@ export type UserWebConfig = {
359
365
  sawExamReadinessCount?: number
360
366
  sawReadinessSurveyTimestamps?: string[] // array of ISO Date strings
361
367
  hasSeenAIFeedbackSurveyModal?: boolean
368
+ messagesSeen?: {
369
+ name: MessageName
370
+ examMetadataId: string // user's examMetadataId when message was seen
371
+ version: string // user's version when message was seen
372
+ timestamp: number // unix timestamp
373
+ }[]
362
374
  }
363
375
 
364
376
  export type UserQuizSettings = {
@@ -562,6 +574,14 @@ export type ExamMetadata = Parse.Object<{
562
574
  description: string
563
575
  isFree: boolean
564
576
  mockExams?: (MockExam | Parse.Pointer)[]
577
+ sunsetAt?: Date
578
+ minorVersionMessaging?: {
579
+ type: 'newQuestions'
580
+ count: number
581
+ } | {
582
+ type: 'newMockExams'
583
+ count: number
584
+ }
565
585
 
566
586
  // DEPRECATED FIELDS
567
587
  appId: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.14.38",
3
+ "version": "1.14.40",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",