constants.tsx 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. import {t} from 'sentry/locale';
  2. export const ERROR_CODE_DESCRIPTIONS = {
  3. 400: 'Bad Request',
  4. 401: 'Unauthorized',
  5. 403: 'Forbidden',
  6. 404: 'Not Found',
  7. 405: 'Method Not Allowed',
  8. 408: 'Request Timeout',
  9. 429: 'Too Many Requests',
  10. 500: 'Internal Server Error',
  11. };
  12. export const EXTERNAL_APIS = {
  13. stripe: {
  14. statusPage: 'https://status.stripe.com/',
  15. faviconLink: 'https://stripe.com/favicon.ico',
  16. description: t(
  17. 'Stripe is a suite of payment APIs that powers commerce for online businesses of all sizes'
  18. ),
  19. },
  20. twilio: {
  21. statusPage: 'https://status.twilio.com/',
  22. faviconLink: 'https://www.twilio.com/favicon.ico',
  23. description: t('Twilio is a cloud communications platform as a service company.'),
  24. },
  25. sendgrid: {
  26. statusPage: 'https://status.sendgrid.com/',
  27. faviconLink: 'https://sendgrid.com/favicon.ico',
  28. description: t(
  29. 'SendGrid is a cloud-based SMTP provider that allows you to send email without having to maintain email servers.'
  30. ),
  31. },
  32. plaid: {
  33. statusPage: 'https://status.plaid.com/',
  34. faviconLink: 'https://plaid.com/favicon.ico',
  35. description: t(
  36. 'Plaid is a technology platform that enables applications to connect with users bank accounts.'
  37. ),
  38. },
  39. paypal: {statusPage: 'https://www.paypal-status.com/'},
  40. braintree: {statusPage: 'https://status.braintreepayments.com/'},
  41. clickup: {
  42. statusPage: 'https://clickup.statuspage.io/',
  43. faviconLink: 'https://clickup.com/favicon.ico',
  44. description: t(
  45. 'ClickUp is a productivity platform that provides a fundamentally new way to work.'
  46. ),
  47. },
  48. github: {
  49. statusPage: 'https://www.githubstatus.com/',
  50. faviconLink: 'https://github.com/favicon.ico',
  51. description: t(
  52. 'GitHub is a provider of Internet hosting for software development and version control.'
  53. ),
  54. },
  55. gitlab: {
  56. statusPage: 'https://status.gitlab.com/',
  57. faviconLink: 'https://gitlab.com/favicon.ico',
  58. description: t(
  59. 'GitLab is a web-based DevOps lifecycle tool that provides a Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features.'
  60. ),
  61. },
  62. bitbucket: {
  63. statusPage: 'https://bitbucket.status.atlassian.com/',
  64. faviconLink: 'https://bitbucket.org/favicon.ico',
  65. description: t(
  66. 'Bitbucket is a web-based version control repository hosting service.'
  67. ),
  68. },
  69. jira: {
  70. statusPage: 'https://jira.status.atlassian.com/',
  71. faviconLink: 'https://jira.com/favicon.ico',
  72. description: t(
  73. 'Jira is a proprietary issue tracking product developed by Atlassian.'
  74. ),
  75. },
  76. asana: {
  77. statusPage: 'https://trust.asana.com/',
  78. faviconLink: 'https://asana.com/favicon.ico',
  79. description: t(
  80. 'Asana is a web and mobile application designed to help teams organize, track, and manage their work.'
  81. ),
  82. },
  83. trello: {statusPage: 'https://trello.status.atlassian.com/'},
  84. zendesk: {statusPage: 'https://status.zendesk.com/'},
  85. intercom: {statusPage: 'https://www.intercomstatus.com/'},
  86. freshdesk: {statusPage: 'https://status.freshdesk.com/'},
  87. linear: {statusPage: 'https://status.linear.app/'},
  88. gaussMoney: {},
  89. };
  90. export const INTERNAL_API_REGEX = /\d\.\d|localhost/;