mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
✨ Add update/delete to Team, Release and Project in SentryIo node (#1605)
* Add update/delete to Team, Release and Project in SentryIo node * Add create/delete:Project in SentryIo node * Minor fix * Fix descriptions & display names * Fix casing in descriptions * Add getTeams load function & Update operations fields * Change 'Additional Field' to 'Update Fields' for Team,Release,Project & Organization operations
This commit is contained in:
@@ -30,6 +30,11 @@ export const organizationOperations = [
|
||||
value: 'getAll',
|
||||
description: 'Get all organizations',
|
||||
},
|
||||
{
|
||||
name: 'Update',
|
||||
value: 'update',
|
||||
description: 'Update an organization',
|
||||
},
|
||||
],
|
||||
default: 'get',
|
||||
description: 'The operation to perform',
|
||||
@@ -55,7 +60,7 @@ export const organizationFields = [
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
description: 'If all results should be returned or only up to a given limit',
|
||||
description: 'If all results should be returned or only up to a given limit.',
|
||||
},
|
||||
{
|
||||
displayName: 'Limit',
|
||||
@@ -79,7 +84,7 @@ export const organizationFields = [
|
||||
maxValue: 500,
|
||||
},
|
||||
default: 100,
|
||||
description: 'How many results to return',
|
||||
description: 'How many results to return.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -103,14 +108,14 @@ export const organizationFields = [
|
||||
name: 'member',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'Restrict results to organizations which you have membership',
|
||||
description: 'Restrict results to organizations which you have membership.',
|
||||
},
|
||||
{
|
||||
displayName: 'Owner',
|
||||
name: 'owner',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'Restrict results to organizations which you are the owner',
|
||||
description: 'Restrict results to organizations which you are the owner.',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -136,7 +141,7 @@ export const organizationFields = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The slug of the organization the team should be created for',
|
||||
description: 'The slug of the organization the team should be created for.',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* organization:create */
|
||||
@@ -157,7 +162,7 @@ export const organizationFields = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The slug of the organization the team should be created for',
|
||||
description: 'The slug of the organization the team should be created for.',
|
||||
},
|
||||
{
|
||||
displayName: 'Agree to Terms',
|
||||
@@ -174,7 +179,7 @@ export const organizationFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Signaling you agree to the applicable terms of service and privacy policy of Sentry.io',
|
||||
description: 'Signaling you agree to the applicable terms of service and privacy policy of Sentry.io.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -198,7 +203,74 @@ export const organizationFields = [
|
||||
name: 'slug',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name',
|
||||
description: 'The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.',
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* organization:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Slug',
|
||||
name: 'organization_slug',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getOrganizations',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'organization',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The slug of the organization to update.',
|
||||
},
|
||||
{
|
||||
displayName: 'Name',
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'organization',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The name of the organization.',
|
||||
},
|
||||
{
|
||||
displayName: 'Update Fields',
|
||||
name: 'updateFields',
|
||||
type: 'collection',
|
||||
placeholder: 'Add Field',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'organization',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Slug',
|
||||
name: 'slug',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The updated URL slug for this organization.',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user