@pocketprep/types 1.8.16 → 1.8.18
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 +1 -0
- package/Study/Cloud.d.ts +35 -14
- package/package.json +1 -1
package/Study/Class.d.ts
CHANGED
package/Study/Cloud.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ import {
|
|
|
21
21
|
UserPayload,
|
|
22
22
|
MockExam,
|
|
23
23
|
Referral,
|
|
24
|
+
QuestionJSON,
|
|
25
|
+
Question,
|
|
24
26
|
} from './Class'
|
|
25
27
|
|
|
26
28
|
// DEPRECATED - previously used answer package for a quiz or qotd
|
|
@@ -113,20 +115,6 @@ export type generateLicenses = (params: {
|
|
|
113
115
|
quantity: string | number
|
|
114
116
|
}) => License[]
|
|
115
117
|
|
|
116
|
-
export type createBulkOrder = (params: {
|
|
117
|
-
orderAttributes: Partial<{
|
|
118
|
-
city: string
|
|
119
|
-
country: string
|
|
120
|
-
email: string
|
|
121
|
-
line1: string
|
|
122
|
-
line2: string
|
|
123
|
-
name: string
|
|
124
|
-
postalCode: string
|
|
125
|
-
state: string
|
|
126
|
-
}>
|
|
127
|
-
items: Stripe.OrderCreateParams.Item[]
|
|
128
|
-
}) => Stripe.Order | undefined
|
|
129
|
-
|
|
130
118
|
export type payBulkOrder = (params: {
|
|
131
119
|
token: {
|
|
132
120
|
id: string
|
|
@@ -218,6 +206,13 @@ export type fetchQotDV3 = (params: {
|
|
|
218
206
|
version: string
|
|
219
207
|
}) => ExamData[]
|
|
220
208
|
|
|
209
|
+
export type fetchQotDV4 = (params: {
|
|
210
|
+
count?: number
|
|
211
|
+
daysSinceEpoch: number
|
|
212
|
+
examGuid: string
|
|
213
|
+
version: string
|
|
214
|
+
}) => Question[]
|
|
215
|
+
|
|
221
216
|
export type fetchSharedQotd = (params: {
|
|
222
217
|
date: string // ISO8901 date string
|
|
223
218
|
examGuid: string
|
|
@@ -277,6 +272,19 @@ export type fetchQuizQuestionsV3 = (params: {
|
|
|
277
272
|
}
|
|
278
273
|
}) => ExamDataJSON[]
|
|
279
274
|
|
|
275
|
+
export type fetchQuizQuestionsV4 = (params: {
|
|
276
|
+
examGuid: string
|
|
277
|
+
majorVersion: string
|
|
278
|
+
questionCount: number
|
|
279
|
+
subjects?: string[]
|
|
280
|
+
include?: {
|
|
281
|
+
new?: boolean
|
|
282
|
+
answered?: boolean
|
|
283
|
+
flagged?: boolean
|
|
284
|
+
incorrect?: boolean
|
|
285
|
+
}
|
|
286
|
+
}) => QuestionJSON[]
|
|
287
|
+
|
|
280
288
|
export type fetchFlaggedQuestionKnowledgeAreas =
|
|
281
289
|
(params: { compositeKey: string }) => { name: string; count: number }[]
|
|
282
290
|
|
|
@@ -463,3 +471,16 @@ export type fetchMockExams = () => MockExam[]
|
|
|
463
471
|
export type fetchMockExamQuestions = (params: { mockExamId: string }) => ExamData[]
|
|
464
472
|
|
|
465
473
|
export type validateReferral = (params: { referralId: string }) => Referral
|
|
474
|
+
|
|
475
|
+
export type createSetupIntent = () => Promise<string | null>
|
|
476
|
+
|
|
477
|
+
export type createIncompleteSubscription = (params: {
|
|
478
|
+
plan: string
|
|
479
|
+
referralId?: string
|
|
480
|
+
impactClickId?: string
|
|
481
|
+
}) => Promise<{
|
|
482
|
+
clientSecret: string
|
|
483
|
+
subscriptionId: string
|
|
484
|
+
}>
|
|
485
|
+
|
|
486
|
+
export type activateSubscription = (params: { subscriptionId: string }) => Promise<SubscriptionBundle>
|