constants.tsx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import {DataCategory, DataCategoryExact} from 'sentry/types/core';
  2. import {PlanTier} from 'getsentry/types';
  3. export const MONTHLY = 'monthly';
  4. export const ANNUAL = 'annual';
  5. export const MILLION = 1_000_000;
  6. export const BILLION = 1_000_000_000;
  7. export const UNLIMITED = '∞';
  8. export const UNLIMITED_RESERVED = -1;
  9. export const RESERVED_BUDGET_QUOTA = -2;
  10. export const CPE_MULTIPLIER_TO_CENTS = 0.000001;
  11. export const GIGABYTE = 10 ** 9;
  12. // the first tier is the default tier
  13. export const SUPPORTED_TIERS = [PlanTier.AM3, PlanTier.AM2, PlanTier.AM1];
  14. export const DEFAULT_TIER = SUPPORTED_TIERS[0];
  15. export const UPSELL_TIER = SUPPORTED_TIERS[1]; // TODO(am3): Update to DEFAULT_TIER when upsells are configured for AM3
  16. const BASIC_TRIAL_PLANS = ['am1_t', 'am2_t', 'am3_t'];
  17. const ENTERPRISE_TRIAL_PLANS = ['am1_t_ent', 'am2_t_ent', 'am3_t_ent'];
  18. export const TRIAL_PLANS = [...BASIC_TRIAL_PLANS, ...ENTERPRISE_TRIAL_PLANS];
  19. export const MAX_ADMIN_CATEGORY_GIFTS = {
  20. [DataCategory.ERRORS]: 10_000_000,
  21. [DataCategory.TRANSACTIONS]: 50_000_000,
  22. [DataCategory.ATTACHMENTS]: 10_000,
  23. [DataCategory.REPLAYS]: 1_000_000,
  24. [DataCategory.MONITOR_SEATS]: 10_000,
  25. [DataCategory.UPTIME]: 10_000,
  26. [DataCategory.SPANS]: 1_000_000_000,
  27. [DataCategory.PROFILE_DURATION]: 10_000, // TODO(continuous profiling): confirm max amount
  28. };
  29. // While we no longer offer or support unlimited ondemand we still
  30. // need to render billing history records that have unlimited ondemand.
  31. export const UNLIMITED_ONDEMAND = -1;
  32. export const DEFAULT_TRIAL_DAYS = 14;
  33. export enum AllocationTargetTypes {
  34. PROJECT = 'Project',
  35. ORGANIZATION = 'Organization',
  36. }
  37. export const ALLOCATION_SUPPORTED_CATEGORIES: DataCategoryExact[] = [
  38. DataCategoryExact.ERROR,
  39. DataCategoryExact.TRANSACTION,
  40. DataCategoryExact.ATTACHMENT,
  41. ];
  42. export const PRODUCT_TRIAL_CATEGORIES: DataCategory[] = [
  43. DataCategory.REPLAYS,
  44. DataCategory.SPANS,
  45. DataCategory.TRANSACTIONS,
  46. ];