sentryAppComponent.js 1011 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. export function SentryAppComponent(params = {}) {
  2. return {
  3. uuid: 'ed517da4-a324-44c0-aeea-1894cd9923fb',
  4. type: 'issue-link',
  5. schema: {
  6. create: {
  7. required_fields: [
  8. {
  9. type: 'text',
  10. name: 'title',
  11. label: 'Title',
  12. default: 'issue.title',
  13. },
  14. {
  15. type: 'textarea',
  16. name: 'description',
  17. label: 'Description',
  18. default: 'issue.description',
  19. },
  20. {
  21. type: 'select',
  22. name: 'numbers',
  23. label: 'Numbers',
  24. choices: [[1, 'one'], [2, 'two']],
  25. default: 1,
  26. },
  27. ],
  28. },
  29. link: {
  30. required_fields: [
  31. {
  32. type: 'text',
  33. name: 'issue',
  34. label: 'Issue',
  35. },
  36. ],
  37. },
  38. },
  39. sentryApp: {
  40. uuid: 'b468fed3-afba-4917-80d6-bdac99c1ec05',
  41. slug: 'foo',
  42. name: 'Foo',
  43. },
  44. ...params,
  45. };
  46. }