@pocketprep/types 1.6.43 → 1.7.0
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/Cloud.d.ts +2 -2
- package/Study/Class.d.ts +10 -1
- package/package.json +1 -1
package/CMS/Cloud.d.ts
CHANGED
|
@@ -100,8 +100,8 @@ export interface ExportData {
|
|
|
100
100
|
name: string
|
|
101
101
|
enabled: boolean
|
|
102
102
|
items: ExportableQuestion[]
|
|
103
|
-
mockExamId
|
|
104
|
-
|
|
103
|
+
mockExamId: string
|
|
104
|
+
isNewMockExam: boolean
|
|
105
105
|
}[]
|
|
106
106
|
columnNames: [ // TODO: Possibly remove this?
|
|
107
107
|
'Serial',
|
package/Study/Class.d.ts
CHANGED
|
@@ -206,6 +206,7 @@ export type SubscriptionExam = Parse.Object<SubscriptionBase & {
|
|
|
206
206
|
export type SubscriptionBundle = Parse.Object<SubscriptionBase & {
|
|
207
207
|
bundle: Bundle | Parse.Pointer
|
|
208
208
|
guid: string
|
|
209
|
+
referral?: Referral
|
|
209
210
|
}>
|
|
210
211
|
|
|
211
212
|
export type Subscription = SubscriptionBundle | SubscriptionExam
|
|
@@ -332,7 +333,6 @@ export type MockExam = Parse.Object<{
|
|
|
332
333
|
description: string
|
|
333
334
|
enabled: boolean
|
|
334
335
|
questionSerials: string[]
|
|
335
|
-
subjects: { name: string; count: number }[]
|
|
336
336
|
}>
|
|
337
337
|
|
|
338
338
|
export type MockExamJSON = ReturnType<MockExam['toJSON']>
|
|
@@ -411,3 +411,12 @@ export type Bundle = Parse.Object<{
|
|
|
411
411
|
}>
|
|
412
412
|
|
|
413
413
|
export type BundleJSON = ReturnType<Bundle['toJSON']>
|
|
414
|
+
|
|
415
|
+
export type Referral = Parse.Object<{
|
|
416
|
+
referrer: User
|
|
417
|
+
referrerBundle: Bundle
|
|
418
|
+
redeemedUsers: User[]
|
|
419
|
+
}>
|
|
420
|
+
|
|
421
|
+
export type ReferralJSON = ReturnType<Referral['toJSON']>
|
|
422
|
+
export type ReferralPayload = Payload<Referral>
|