integrationListDirectory.ts 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. import {Integration, IntegrationProvider, SentryApp} from 'sentry/types';
  2. export function ProviderList(): {providers: IntegrationProvider[]} {
  3. return {
  4. providers: [
  5. {
  6. canAdd: true,
  7. canDisable: false,
  8. features: ['commits', 'issue-basic'],
  9. key: 'bitbucket',
  10. metadata: {
  11. aspects: {},
  12. author: 'The Sentry Team',
  13. description:
  14. 'Connect your Sentry organization to Bitbucket, enabling the following features:',
  15. features: [],
  16. issue_url:
  17. 'https://github.com/getsentry/sentry/issues/new?template=bug.yml&title=Bitbucket%20Integration:%20&labels=Component%3A%20Integrations',
  18. noun: 'Installation',
  19. source_url:
  20. 'https://github.com/getsentry/sentry/tree/master/src/sentry/integrations/bitbucket',
  21. },
  22. name: 'Bitbucket',
  23. setupDialog: {
  24. height: 600,
  25. url: '/organizations/sentry/integrations/bitbucket/setup/',
  26. width: 600,
  27. },
  28. slug: 'bitbucket',
  29. },
  30. ],
  31. };
  32. }
  33. export function BitbucketIntegrationConfig(): Integration {
  34. return {
  35. accountType: '',
  36. gracePeriodEnd: '',
  37. organizationIntegrationStatus: 'active',
  38. domainName: 'bitbucket.org/%7Bfb715533-bbd7-4666-aa57-01dc93dd9cc0%7D',
  39. icon: 'https://secure.gravatar.com/avatar/8b4cb68e40b74c90427d8262256bd1c8?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FNN-0.png',
  40. id: '4',
  41. name: '{fb715533-bbd7-4666-aa57-01dc93dd9cc0}',
  42. provider: {
  43. aspects: {},
  44. canAdd: true,
  45. canDisable: false,
  46. features: ['commits', 'issue-basic'],
  47. key: 'bitbucket',
  48. name: 'Bitbucket',
  49. slug: 'bitbucket',
  50. },
  51. status: 'active',
  52. };
  53. }
  54. export function GitHubIntegrationConfig(): Integration {
  55. return {
  56. accountType: '',
  57. gracePeriodEnd: '',
  58. organizationIntegrationStatus: 'active',
  59. domainName: 'github.com',
  60. icon: 'https://secure.gravatar.com/avatar/8b4cb68e40b74c90427d8262256bd1c8',
  61. id: '5',
  62. name: 'NisanthanNanthakumar',
  63. provider: {
  64. aspects: {},
  65. canAdd: true,
  66. canDisable: false,
  67. features: ['commits', 'issue-basic'],
  68. key: 'github',
  69. name: 'Github',
  70. slug: 'github',
  71. },
  72. status: 'active',
  73. };
  74. }
  75. export function OrgOwnedApps(): SentryApp[] {
  76. return [
  77. {
  78. author: 'Sentry',
  79. clientId: 'a6d35972d4164ef18845b1e2ca954fe70ac196e0b20d4d1e8760a38772cf6f1c',
  80. clientSecret: '8f47dcef40f7486f9bacfeca257022e092a483add7cf4d619993b9ace9775a79',
  81. events: [],
  82. isAlertable: false,
  83. name: 'My Headband Washer',
  84. overview: null,
  85. owner: {id: 1, slug: 'sentry'},
  86. redirectUrl: null,
  87. schema: {},
  88. scopes: ['project:read', 'team:read', 'team:write'],
  89. slug: 'my-headband-washer-289499',
  90. status: 'internal',
  91. uuid: 'a806ab10-9608-4a4f-8dd9-ca6d6c09f9f5',
  92. verifyInstall: false,
  93. webhookUrl: 'https://myheadbandwasher.com',
  94. featureData: [],
  95. popularity: null,
  96. },
  97. {
  98. author: 'La Croix',
  99. clientId: '8cc36458a0f94c93816e06dce7d808f882cbef59af6040d2b9ec4d67092c80f1',
  100. clientSecret: '2b2aeb743c3745ab832e03bf02a7d91851908d379646499f900cd115780e8b2b',
  101. events: [],
  102. isAlertable: false,
  103. name: 'La Croix Monitor',
  104. overview: null,
  105. owner: {id: 1, slug: 'sentry'},
  106. redirectUrl: null,
  107. schema: {},
  108. scopes: ['project:read', 'project:write', 'team:read'],
  109. slug: 'la-croix-monitor',
  110. status: 'unpublished',
  111. uuid: 'a59c8fcc-2f27-49f8-af9e-02661fc3e8d7',
  112. verifyInstall: false,
  113. webhookUrl: 'https://lacroix.com',
  114. featureData: [
  115. {
  116. description:
  117. 'La Croix can **utilize the Sentry API** to pull data or update resources in Sentry (with permissions granted, of course).',
  118. featureGate: 'integrations-api',
  119. featureId: 1,
  120. },
  121. ],
  122. popularity: null,
  123. },
  124. {
  125. author: 'Nisanthan',
  126. clientId: 'c215db1accc040919e0b0dce058e0ecf4ea062bb82174d70aee8eba62351be24',
  127. clientSecret: '193583e573d14d61832de96a9efc32ceb64e59a494284f58b50328a656420a55',
  128. events: [],
  129. isAlertable: false,
  130. name: 'ClickUp',
  131. overview: null,
  132. owner: {id: 1, slug: 'sentry'},
  133. redirectUrl: null,
  134. schema: {},
  135. scopes: [],
  136. slug: 'clickup',
  137. status: 'published',
  138. uuid: '5d547ecb-7eb8-4ed2-853b-40256177d526',
  139. verifyInstall: false,
  140. webhookUrl: 'http://localhost:7000',
  141. featureData: [
  142. {
  143. description:
  144. 'Clickup can **utilize the Sentry API** to pull data or update resources in Sentry (with permissions granted, of course).',
  145. featureGate: 'integrations-api',
  146. featureId: 1,
  147. },
  148. ],
  149. popularity: null,
  150. },
  151. ];
  152. }
  153. export function PublishedApps(): SentryApp[] {
  154. return [
  155. {
  156. author: 'Nisanthan',
  157. clientId: 'c215db1accc040919e0b0dce058e0ecf4ea062bb82174d70aee8eba62351be24',
  158. clientSecret: '193583e573d14d61832de96a9efc32ceb64e59a494284f58b50328a656420a55',
  159. events: [],
  160. isAlertable: false,
  161. name: 'ClickUp',
  162. overview: null,
  163. owner: {id: 1, slug: 'sentry'},
  164. redirectUrl: null,
  165. schema: {},
  166. scopes: [],
  167. slug: 'clickup',
  168. status: 'published',
  169. popularity: 9,
  170. uuid: '5d547ecb-7eb8-4ed2-853b-40256177d526',
  171. verifyInstall: false,
  172. webhookUrl: 'http://localhost:7000',
  173. featureData: [
  174. {
  175. description:
  176. 'Clickup can **utilize the Sentry API** to pull data or update resources in Sentry (with permissions granted, of course).',
  177. featureGate: 'integrations-api',
  178. featureId: 1,
  179. },
  180. ],
  181. },
  182. ];
  183. }
  184. export function SentryAppInstalls() {
  185. return [
  186. {
  187. app: {
  188. slug: 'my-headband-washer-289499',
  189. uuid: 'a806ab10-9608-4a4f-8dd9-ca6d6c09f9f5',
  190. },
  191. code: 'e5b855d51ad64fa0b6c180ed7e664c5d',
  192. organization: {slug: 'sentry'},
  193. status: 'installed',
  194. uuid: '5379e8e1-0554-468f-90ca-2e0c88f1ac32',
  195. },
  196. ];
  197. }
  198. export function PluginListConfig() {
  199. return [
  200. {
  201. assets: [],
  202. author: {name: 'Sentry Team', url: 'https://github.com/getsentry/sentry'},
  203. canDisable: true,
  204. contexts: [],
  205. description: 'Forward Sentry events to Amazon SQS.',
  206. doc: '',
  207. featureDescriptions: [
  208. {
  209. description: 'Forward Sentry errors and events to Amazon SQS.',
  210. featureGate: 'data-forwarding',
  211. },
  212. ],
  213. features: ['data-forwarding'],
  214. hasConfiguration: true,
  215. id: 'amazon-sqs',
  216. isHidden: false,
  217. isTestable: false,
  218. metadata: {},
  219. name: 'Amazon SQS',
  220. projectList: [],
  221. resourceLinks: [
  222. {
  223. title: 'Report Issue',
  224. url: 'https://github.com/getsentry/sentry/issues',
  225. },
  226. {
  227. title: 'View Source',
  228. url: 'https://github.com/getsentry/sentry/tree/master/src/sentry_plugins',
  229. },
  230. ],
  231. shortName: 'Amazon SQS',
  232. slug: 'amazon-sqs',
  233. status: 'beta',
  234. type: 'data-forwarding',
  235. version: '10.1.0.dev0',
  236. },
  237. {
  238. status: 'unknown',
  239. description: 'Send alerts to PagerDuty.',
  240. isTestable: true,
  241. isHidden: true,
  242. hasConfiguration: true,
  243. shortName: 'PagerDuty',
  244. id: 'pagerduty',
  245. assets: [],
  246. featureDescriptions: [
  247. {
  248. description:
  249. 'Configure rule based PagerDuty alerts to automatically be triggered in a specific\n service - or in multiple services!',
  250. featureGate: 'alert-rule',
  251. },
  252. ],
  253. features: ['alert-rule'],
  254. name: 'PagerDuty',
  255. author: {url: 'https://github.com/getsentry/sentry', name: 'Sentry Team'},
  256. contexts: [],
  257. doc: '',
  258. resourceLinks: [
  259. {
  260. url: 'https://github.com/getsentry/sentry/issues',
  261. title: 'Report Issue',
  262. },
  263. {
  264. url: 'https://github.com/getsentry/sentry/tree/master/src/sentry_plugins',
  265. title: 'View Source',
  266. },
  267. ],
  268. slug: 'pagerduty',
  269. projectList: [
  270. {
  271. projectId: 2,
  272. configured: true,
  273. enabled: true,
  274. projectSlug: 'javascript',
  275. projectPlatform: 'javascript',
  276. projectName: 'JavaScript',
  277. },
  278. ],
  279. version: '10.1.0.dev0',
  280. canDisable: true,
  281. type: 'notification',
  282. metadata: {},
  283. },
  284. ];
  285. }