jiraIntegration.tsx 764 B

12345678910111213141516171819202122232425262728293031323334
  1. import {GroupIntegration} from 'sentry/types';
  2. export function JiraIntegration(
  3. params: Partial<GroupIntegration> = {}
  4. ): GroupIntegration {
  5. return {
  6. domainName: 'jira.com/test-integration',
  7. icon: 'http://jira.example.com/integration_icon.png',
  8. id: '2',
  9. name: 'Jira Test Integration',
  10. provider: {
  11. name: 'Jira',
  12. key: 'jira',
  13. canAdd: true,
  14. features: [],
  15. aspects: {
  16. alerts: [
  17. {
  18. type: 'warning',
  19. text: 'This is a an alert example',
  20. },
  21. ],
  22. },
  23. canDisable: false,
  24. slug: '',
  25. },
  26. accountType: '',
  27. gracePeriodEnd: '',
  28. organizationIntegrationStatus: 'active',
  29. status: 'active',
  30. externalIssues: [],
  31. ...params,
  32. };
  33. }