@pocketprep/types 1.13.22 → 1.13.23

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
@@ -470,6 +470,25 @@ export type renewSubscriptionWebhook = (params: {
470
470
  export type subscriptionUpdatedWebhook = (params: Stripe.CustomerSubscriptionUpdatedEvent
471
471
  ) => SubscriptionBundle | undefined
472
472
 
473
+ export type createPurchaseSeatsPaymentIntent = (params: {
474
+ exams: {
475
+ examGuid: string
476
+ numSeats: number
477
+ }[]
478
+ }) => Promise<{
479
+ clientSecret: string | null
480
+ paymentIntentId: string
481
+ }>
482
+
483
+ export type purchaseSeats = (params: {
484
+ exams: {
485
+ examGuid: string
486
+ numSeats: number
487
+ }[]
488
+ paymentIntentId: string
489
+ organizationId: string
490
+ }) => License[]
491
+
473
492
  export type paymentIntentFailed = (params: {
474
493
  type: string
475
494
  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.23",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",