@pocketprep/types 1.7.7 → 1.8.1
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 +6 -1
- package/Study/Class.d.ts +3 -2
- package/Study/Cloud.d.ts +19 -2
- package/package.json +1 -1
package/CMS/Class.d.ts
CHANGED
|
@@ -126,10 +126,15 @@ export type ExamDraft = Parse.Object<{
|
|
|
126
126
|
examMetadataId?: string
|
|
127
127
|
appName: string
|
|
128
128
|
nativeAppName: string
|
|
129
|
+
releaseInfo: {
|
|
130
|
+
name: string
|
|
131
|
+
description: string
|
|
132
|
+
message: string
|
|
133
|
+
}
|
|
129
134
|
descriptiveName: string
|
|
130
135
|
compositeKey: string
|
|
131
136
|
appId: string
|
|
132
|
-
description
|
|
137
|
+
description: string
|
|
133
138
|
mockExamDrafts?: (Parse.Pointer | MockExamDraft)[]
|
|
134
139
|
isFree: boolean
|
|
135
140
|
}>
|
package/Study/Class.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export type UserExamMetadata = Parse.Object<{
|
|
|
40
40
|
scheduledExamDate?: Date
|
|
41
41
|
upgradesSeen?: string[]
|
|
42
42
|
disabledSubjects?: string[]
|
|
43
|
+
streakInfo?: IStreakInfo
|
|
43
44
|
}>
|
|
44
45
|
|
|
45
46
|
export type UserExamMetadataJSON = ReturnType<UserExamMetadata['toJSON']>
|
|
@@ -356,7 +357,7 @@ export type ExamMetadata = Parse.Object<{
|
|
|
356
357
|
dirty: boolean
|
|
357
358
|
specialQuestions: number
|
|
358
359
|
nativeAppName: string
|
|
359
|
-
releaseInfo
|
|
360
|
+
releaseInfo: {
|
|
360
361
|
name: string
|
|
361
362
|
description: string
|
|
362
363
|
message: string
|
|
@@ -367,7 +368,7 @@ export type ExamMetadata = Parse.Object<{
|
|
|
367
368
|
classicQuestions: number
|
|
368
369
|
itemCount: number
|
|
369
370
|
appId: string
|
|
370
|
-
description
|
|
371
|
+
description: string
|
|
371
372
|
isFree: boolean
|
|
372
373
|
mockExams?: (MockExam | Parse.Pointer)[]
|
|
373
374
|
}>
|
package/Study/Cloud.d.ts
CHANGED
|
@@ -54,6 +54,23 @@ export interface IExam {
|
|
|
54
54
|
export type TChoiceKey = 'a1' | 'a2' | 'a3' | 'a4' | 'a5' | 'a6' | 'a7' | 'a8' | 'a9' |
|
|
55
55
|
'd1' | 'd2' | 'd3' | 'd4' | 'd5' | 'd6' | 'd7' | 'd8' | 'd9'
|
|
56
56
|
|
|
57
|
+
export interface IStreakDay {
|
|
58
|
+
day: string
|
|
59
|
+
numCorrect: number
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface IStreakSummary {
|
|
63
|
+
longest: number
|
|
64
|
+
current: IStreakDay[]
|
|
65
|
+
completed: IStreakDay[][]
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface IStreakInfo {
|
|
69
|
+
updatedAt: Date
|
|
70
|
+
all: IStreakSummary
|
|
71
|
+
qotd: IStreakSummary
|
|
72
|
+
}
|
|
73
|
+
|
|
57
74
|
export interface IQuizAnswer {
|
|
58
75
|
isCorrect: boolean
|
|
59
76
|
selectedChoices: TChoiceKey[]
|
|
@@ -424,7 +441,7 @@ export type fetchLicenseOrgName = () => Promise<string | undefined>
|
|
|
424
441
|
export type fetchOrgNameFromLicenseCode = (params: { licenseCode: string }) => Promise<string | undefined>
|
|
425
442
|
|
|
426
443
|
export type updateStudentInviteEmailStatus = (
|
|
427
|
-
params: {
|
|
444
|
+
params: {
|
|
428
445
|
status: {
|
|
429
446
|
message: string
|
|
430
447
|
description: string
|
|
@@ -434,7 +451,7 @@ export type updateStudentInviteEmailStatus = (
|
|
|
434
451
|
}
|
|
435
452
|
email: string
|
|
436
453
|
event: string
|
|
437
|
-
secret: string
|
|
454
|
+
secret: string
|
|
438
455
|
}
|
|
439
456
|
) => Promise<License>
|
|
440
457
|
|