@pocketprep/types 1.11.1 → 1.11.2
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/Cloud.d.ts +23 -0
- package/package.json +1 -1
package/Study/Cloud.d.ts
CHANGED
|
@@ -242,6 +242,17 @@ export type fetchSharedQotdV2 = (params: {
|
|
|
242
242
|
question: ExamData
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
+
export type fetchSharedQotdV3 = (params: {
|
|
246
|
+
daysSinceEpoch: number
|
|
247
|
+
examGuid: string
|
|
248
|
+
version: string
|
|
249
|
+
}) => {
|
|
250
|
+
bundle?: Bundle
|
|
251
|
+
examMetadata: ExamMetadata
|
|
252
|
+
globalMetric?: GlobalQuestionMetric
|
|
253
|
+
question: Question
|
|
254
|
+
}
|
|
255
|
+
|
|
245
256
|
export type fetchGlobalQuestionMetrics = (params: {
|
|
246
257
|
examGuid: string
|
|
247
258
|
serials?: string[]
|
|
@@ -302,6 +313,8 @@ export type fetchExamDataFromAnswerRecordIds = (params: {
|
|
|
302
313
|
|
|
303
314
|
export type fetchQuestionsByQuizIds = (params: { quizIds: string[]; compositeKey: string }) => ExamData[]
|
|
304
315
|
|
|
316
|
+
export type fetchQuestionsByQuizIdsV2 = (params: { quizIds: string[]; compositeKey: string }) => Question[]
|
|
317
|
+
|
|
305
318
|
export type fetchSerialQuestionInfoLib = (params: { compositeKey: string }) => {
|
|
306
319
|
[key: string]: {
|
|
307
320
|
subject: string
|
|
@@ -310,6 +323,14 @@ export type fetchSerialQuestionInfoLib = (params: { compositeKey: string }) => {
|
|
|
310
323
|
}
|
|
311
324
|
}
|
|
312
325
|
|
|
326
|
+
export type fetchSerialQuestionInfoLibV2 = (params: { compositeKey: string }) => {
|
|
327
|
+
[key: string]: {
|
|
328
|
+
subject: string
|
|
329
|
+
isFree?: boolean
|
|
330
|
+
isMockQuestion?: boolean
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
313
334
|
export type fetchQuizHistoryData = (params: {
|
|
314
335
|
compositeKey: string
|
|
315
336
|
examId: string
|
|
@@ -487,6 +508,8 @@ export type fetchMockExams = () => MockExam[]
|
|
|
487
508
|
|
|
488
509
|
export type fetchMockExamQuestions = (params: { mockExamId: string }) => ExamData[]
|
|
489
510
|
|
|
511
|
+
export type fetchMockExamQuestionsV2 = (params: { mockExamId: string }) => Question[]
|
|
512
|
+
|
|
490
513
|
export type validateReferral = (params: { referralId: string }) => Referral | Stripe.Coupon
|
|
491
514
|
|
|
492
515
|
export type createSetupIntent = () => Promise<string | null>
|