@pocketprep/types 1.13.49 → 1.13.51
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 +13 -1
- package/Study/Cloud.d.ts +6 -2
- package/package.json +1 -1
package/Study/Class.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export type Quiz = Parse.Object<{
|
|
|
29
29
|
readinessScore?: number
|
|
30
30
|
levelUpProgress?: {
|
|
31
31
|
subjectName: string
|
|
32
|
+
subjectId?: string
|
|
32
33
|
level: number
|
|
33
34
|
score: number
|
|
34
35
|
goal: number
|
|
@@ -100,6 +101,7 @@ export type UserExamMetadata = Parse.Object<{
|
|
|
100
101
|
streakInfo?: IStreakInfo
|
|
101
102
|
levelUpProgress?: {
|
|
102
103
|
subjectName: string
|
|
104
|
+
subjectId?: string
|
|
103
105
|
level: number
|
|
104
106
|
score: number
|
|
105
107
|
goal: number
|
|
@@ -398,11 +400,21 @@ export type Question = Parse.Object<{
|
|
|
398
400
|
isArchived: boolean
|
|
399
401
|
isFree: boolean
|
|
400
402
|
isMockQuestion: boolean
|
|
401
|
-
keywords?: string[]
|
|
402
403
|
}>
|
|
403
404
|
|
|
404
405
|
export type QuestionJSON = ReturnType<Question['toJSON']>
|
|
405
406
|
|
|
407
|
+
export type KeywordDefinition = Parse.Object<{
|
|
408
|
+
examGuid: string
|
|
409
|
+
serial: string
|
|
410
|
+
keyword: string
|
|
411
|
+
definition: string
|
|
412
|
+
voteCountHelpful: number
|
|
413
|
+
voteCountUnhelpful: number
|
|
414
|
+
}>
|
|
415
|
+
|
|
416
|
+
export type KeywordDefinitionJSON = ReturnType<KeywordDefinition['toJSON']>
|
|
417
|
+
|
|
406
418
|
export type ExamData = Parse.Object<{
|
|
407
419
|
archived?: 0 | 1
|
|
408
420
|
lastUpdated?: string // A date-formatted string...
|
package/Study/Cloud.d.ts
CHANGED
|
@@ -389,6 +389,7 @@ export type fetchUserDataV2 = (params: {
|
|
|
389
389
|
} | undefined
|
|
390
390
|
subjectsWithLevels: {
|
|
391
391
|
subjectName: string
|
|
392
|
+
subjectId: string
|
|
392
393
|
levels: number[]
|
|
393
394
|
}[]
|
|
394
395
|
}
|
|
@@ -594,8 +595,8 @@ export type fetchLevelUpQuizQuestionsV2 = (params: {
|
|
|
594
595
|
examGuid: string
|
|
595
596
|
majorVersion: string
|
|
596
597
|
questionCount?: number
|
|
597
|
-
subjectId?: string
|
|
598
598
|
subjectName?: string
|
|
599
|
+
subjectId?: string
|
|
599
600
|
lastResetDateISO?: string
|
|
600
601
|
}) => QuestionJSON[]
|
|
601
602
|
|
|
@@ -614,13 +615,15 @@ export type fetchSubjectsWithLevels = (params: {
|
|
|
614
615
|
majorVersion: string
|
|
615
616
|
}) => {
|
|
616
617
|
subjectName: string
|
|
618
|
+
subjectId: string
|
|
617
619
|
levels: number[]
|
|
618
620
|
}[]
|
|
619
621
|
|
|
620
622
|
export type startNewLevels = (params: {
|
|
621
623
|
examGuid: string
|
|
622
624
|
majorVersion: string
|
|
623
|
-
subjectNames
|
|
625
|
+
subjectNames?: string[]
|
|
626
|
+
subjectIds?: string[]
|
|
624
627
|
}) => TLevelUpProgress
|
|
625
628
|
|
|
626
629
|
|
|
@@ -628,6 +631,7 @@ export type resetLevelUpProgress = (params: {
|
|
|
628
631
|
examGuid: string
|
|
629
632
|
majorVersion: string
|
|
630
633
|
subjectNames?: string[]
|
|
634
|
+
subjectIds?: string[]
|
|
631
635
|
}) => TLevelUpProgress
|
|
632
636
|
|
|
633
637
|
export type fetchReferralInfo = (params: { bundleId: string }) => {
|