@pocketprep/types 1.13.22 → 1.13.24

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 CHANGED
@@ -507,6 +507,12 @@ export type BundlePayload = {
507
507
  appStoreURI: string
508
508
  }
509
509
  isDisabled?: boolean
510
+ seatPricingModel?: {
511
+ costPerSeat: number
512
+ customExamPrices?: {
513
+ [examGuid: string]: number
514
+ }
515
+ }
510
516
  }
511
517
 
512
518
  export type Bundle = Parse.Object<{
@@ -527,6 +533,12 @@ export type Bundle = Parse.Object<{
527
533
  appStoreIds: string[]
528
534
  }
529
535
  isDisabled: boolean
536
+ seatPricingModel?: {
537
+ costPerSeat: number
538
+ customExamPrices?: {
539
+ [examGuid: string]: number
540
+ }
541
+ }
530
542
  }>
531
543
 
532
544
  export type BundleJSON = ReturnType<Bundle['toJSON']>
package/Study/Cloud.d.ts CHANGED
@@ -386,6 +386,10 @@ export type fetchUserDataV2 = (params: {
386
386
  redeemedUsersCount: number
387
387
  code: string
388
388
  } | undefined
389
+ subjectsWithLevels: {
390
+ subjectName: string
391
+ levels: number[]
392
+ }[]
389
393
  }
390
394
 
391
395
  export type onboardingCompleted = (params: {
@@ -470,6 +474,25 @@ export type renewSubscriptionWebhook = (params: {
470
474
  export type subscriptionUpdatedWebhook = (params: Stripe.CustomerSubscriptionUpdatedEvent
471
475
  ) => SubscriptionBundle | undefined
472
476
 
477
+ export type createPurchaseSeatsPaymentIntent = (params: {
478
+ exams: {
479
+ examGuid: string
480
+ numSeats: number
481
+ }[]
482
+ }) => Promise<{
483
+ clientSecret: string | null
484
+ paymentIntentId: string
485
+ }>
486
+
487
+ export type purchaseSeats = (params: {
488
+ exams: {
489
+ examGuid: string
490
+ numSeats: number
491
+ }[]
492
+ paymentIntentId: string
493
+ organizationId: string
494
+ }) => License[]
495
+
473
496
  export type paymentIntentFailed = (params: {
474
497
  type: string
475
498
  data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.13.22",
3
+ "version": "1.13.24",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",