jiraIntegration.tsx 853 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import {OrganizationIntegration} from 'sentry/types';
  2. export function JiraIntegration(
  3. params: Partial<OrganizationIntegration> = {}
  4. ): OrganizationIntegration {
  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. configOrganization: [],
  27. configData: {},
  28. accountType: '',
  29. externalId: '',
  30. gracePeriodEnd: '',
  31. organizationId: '',
  32. organizationIntegrationStatus: 'active',
  33. status: 'active',
  34. ...params,
  35. };
  36. }