plan.tsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import type {Plan} from 'getsentry/types';
  2. export function PlanFixture(fields: Partial<Plan>): Plan {
  3. return {
  4. allowAdditionalReservedEvents: false,
  5. allowOnDemand: false,
  6. availableCategories: [],
  7. basePrice: 0,
  8. billingInterval: 'monthly',
  9. categories: [],
  10. checkoutCategories: [],
  11. contractInterval: 'monthly',
  12. description: '',
  13. features: [],
  14. hasOnDemandModes: false,
  15. id: 'am2_f',
  16. maxMembers: 1,
  17. name: 'Developer',
  18. onDemandCategories: [],
  19. onDemandEventPrice: 0,
  20. planCategories: {
  21. errors: [
  22. {events: 50000, unitPrice: 0.089, price: 0},
  23. {events: 100000, unitPrice: 0.05, price: 4500},
  24. ],
  25. transactions: [
  26. {events: 100000, unitPrice: 0.0445, price: 0},
  27. {events: 250000, unitPrice: 0.0358, price: 4500},
  28. ],
  29. replays: [
  30. {events: 500, unitPrice: 0.2925, price: 0},
  31. {events: 10000, unitPrice: 0.288, price: 2900},
  32. ],
  33. attachments: [
  34. {events: 1, unitPrice: 25, price: 0},
  35. {events: 25, unitPrice: 25, price: 600},
  36. ],
  37. monitorSeats: [{events: 1, unitPrice: 60, price: 0, onDemandPrice: 78}],
  38. },
  39. price: 0,
  40. reservedMinimum: 0,
  41. retentionDays: 0,
  42. totalPrice: 0,
  43. trialPlan: null,
  44. userSelectable: true,
  45. categoryDisplayNames: {},
  46. ...fields,
  47. };
  48. }