File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
static/gsApp/views/amCheckout Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type {Client} from 'sentry/api';
22import type { DataCategory } from 'sentry/types/core' ;
33import type { Organization } from 'sentry/types/organization' ;
44
5+ import type { Reservations } from 'getsentry/components/upgradeNowModal/types' ;
56import type {
67 AddOnCategory ,
78 BillingConfig ,
@@ -29,7 +30,7 @@ export type CheckoutAPIData = Omit<BaseCheckoutData, 'addOns'> & {
2930 paymentIntent ?: string ;
3031 previewToken ?: string ;
3132 referrer ?: string ;
32- } & Partial < Record < `reserved${ Capitalize < DataCategory > } ` , number > > &
33+ } & Partial < Reservations > &
3334 Partial < Record < `addOn${Capitalize < AddOnCategory > } `, boolean > > ;
3435
3536type BaseStepProps = {
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import {toTitleCase} from 'sentry/utils/string/toTitleCase';
2020import normalizeUrl from 'sentry/utils/url/normalizeUrl' ;
2121import useApi from 'sentry/utils/useApi' ;
2222
23+ import type { Reservations } from 'getsentry/components/upgradeNowModal/types' ;
2324import {
2425 DEFAULT_TIER ,
2526 MONTHLY ,
@@ -541,7 +542,7 @@ export function getCheckoutAPIData({
541542 } ) } `,
542543 formatReservedData ( value ) ,
543544 ] )
544- ) satisfies Partial < Record < `reserved${ Capitalize < DataCategory > } ` , number > > ;
545+ ) satisfies Partial < Reservations > ;
545546
546547 const onDemandMaxSpend = shouldUpdateOnDemand
547548 ? ( formData . onDemandMaxSpend ?? 0 )
You can’t perform that action at this time.
0 commit comments