mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Add self hosted support to Sentry.io Node (#965)
This commit is contained in:
@@ -45,7 +45,12 @@ import {
|
||||
sentryIoApiRequest,
|
||||
sentryApiRequestAllItems,
|
||||
} from './GenericFunctions';
|
||||
import { ICommit, IPatchSet, IRef } from './Interface';
|
||||
|
||||
import {
|
||||
ICommit,
|
||||
IPatchSet,
|
||||
IRef,
|
||||
} from './Interface';
|
||||
|
||||
export class SentryIo implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
@@ -71,6 +76,9 @@ export class SentryIo implements INodeType {
|
||||
authentication: [
|
||||
'oAuth2',
|
||||
],
|
||||
sentryVersion: [
|
||||
'cloud',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -82,15 +90,55 @@ export class SentryIo implements INodeType {
|
||||
authentication: [
|
||||
'accessToken',
|
||||
],
|
||||
sentryVersion: [
|
||||
'cloud',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'sentryIoServerApi',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
authentication: [
|
||||
'accessToken',
|
||||
],
|
||||
sentryVersion: [
|
||||
'server',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Sentry Version',
|
||||
name: 'sentryVersion',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Cloud',
|
||||
value: 'cloud',
|
||||
},
|
||||
{
|
||||
name: 'Server (Self Hosted)',
|
||||
value: 'server',
|
||||
},
|
||||
],
|
||||
default: 'cloud',
|
||||
},
|
||||
{
|
||||
displayName: 'Authentication',
|
||||
name: 'authentication',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
sentryVersion: [
|
||||
'cloud',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Access Token',
|
||||
@@ -104,6 +152,26 @@ export class SentryIo implements INodeType {
|
||||
default: 'accessToken',
|
||||
description: 'The resource to operate on.',
|
||||
},
|
||||
{
|
||||
displayName: 'Authentication',
|
||||
name: 'authentication',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
sentryVersion: [
|
||||
'server',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Access Token',
|
||||
value: 'accessToken',
|
||||
},
|
||||
],
|
||||
default: 'accessToken',
|
||||
description: 'The resource to operate on.',
|
||||
},
|
||||
{
|
||||
displayName: 'Resource',
|
||||
name: 'resource',
|
||||
|
||||
Reference in New Issue
Block a user