n8n/packages/nodes-base/credentials/SentryIoOAuth2Api.credentials.ts
Rupenieks 42bbe3006a
Sentry.io integration (#728)
* 🚧 setup

- Added everything, need to test and add icon

* Add icon

* 🚧 Node colour change

* 🚧 Fixed Descriptions

* ✔️ Tested, fixed up properties

*  Fixed issue of issue

*  Added create option for team & organization

*  Improvements

*  Fixed OAuth2 credentials scope

*  Adjusted descriptions, added loadOptions for organizations/projects, small fixes

*  Added Create Release, interfaces

*  Improvements to SentryIO-Node

Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2020-09-07 17:56:14 +02:00

47 lines
1.1 KiB
TypeScript

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class SentryIoOAuth2Api implements ICredentialType {
name = 'sentryIoOAuth2Api';
extends = [
'oAuth2Api',
];
displayName = 'Sentry.io OAuth2 API';
properties = [
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden' as NodePropertyTypes,
default: 'https://sentry.io/oauth/authorize/',
required: true,
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden' as NodePropertyTypes,
default: 'https://sentry.io/oauth/token/',
required: true,
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden' as NodePropertyTypes,
default: 'event:admin event:read org:read project:read project:releases team:read event:write org:admin project:write team:write project:admin team:admin',
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden' as NodePropertyTypes,
default: '',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden' as NodePropertyTypes,
default: 'body',
},
];
}