mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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,16 @@ export const releaseOperations = [
|
||||
value: 'getAll',
|
||||
description: 'Get all releases',
|
||||
},
|
||||
{
|
||||
name: 'Update',
|
||||
value: 'update',
|
||||
description: 'Update a release',
|
||||
},
|
||||
{
|
||||
name: 'Delete',
|
||||
value: 'delete',
|
||||
description: 'Delete a release',
|
||||
},
|
||||
],
|
||||
default: 'get',
|
||||
description: 'The operation to perform',
|
||||
@@ -59,7 +69,7 @@ export const releaseFields = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The slug of the organization the releases belong to',
|
||||
description: 'The slug of the organization the releases belong to.',
|
||||
},
|
||||
{
|
||||
displayName: 'Return All',
|
||||
@@ -76,7 +86,7 @@ export const releaseFields = [
|
||||
},
|
||||
},
|
||||
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',
|
||||
@@ -100,7 +110,7 @@ export const releaseFields = [
|
||||
maxValue: 500,
|
||||
},
|
||||
default: 100,
|
||||
description: 'How many results to return',
|
||||
description: 'How many results to return.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -124,12 +134,12 @@ export const releaseFields = [
|
||||
name: 'query',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'This parameter can be used to create a “starts with” filter for the version',
|
||||
description: 'This parameter can be used to create a “starts with” filter for the version.',
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* release:get */
|
||||
/* release:get/delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Organization Slug',
|
||||
@@ -146,11 +156,12 @@ export const releaseFields = [
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
'delete',
|
||||
],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The slug of the organization the release belongs to',
|
||||
description: 'The slug of the organization the release belongs to.',
|
||||
},
|
||||
{
|
||||
displayName: 'Version',
|
||||
@@ -164,11 +175,12 @@ export const releaseFields = [
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
'delete',
|
||||
],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The version identifier of the release',
|
||||
description: 'The version identifier of the release.',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* release:create */
|
||||
@@ -192,7 +204,7 @@ export const releaseFields = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The slug of the organization the release belongs to',
|
||||
description: 'The slug of the organization the release belongs to.',
|
||||
},
|
||||
{
|
||||
displayName: 'Version',
|
||||
@@ -210,7 +222,7 @@ export const releaseFields = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: ' a version identifier for this release. Can be a version number, a commit hash etc',
|
||||
description: 'A version identifier for this release. Can be a version number, a commit hash etc.',
|
||||
},
|
||||
{
|
||||
displayName: 'URL',
|
||||
@@ -228,7 +240,7 @@ export const releaseFields = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'A URL that points to the release. This can be the path to an online interface to the sourcecode for instance',
|
||||
description: 'A URL that points to the release. This can be the path to an online interface to the sourcecode for instance.',
|
||||
},
|
||||
{
|
||||
displayName: 'Projects',
|
||||
@@ -249,7 +261,7 @@ export const releaseFields = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'A list of project slugs that are involved in this release',
|
||||
description: 'A list of project slugs that are involved in this release.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -273,12 +285,12 @@ export const releaseFields = [
|
||||
name: 'dateReleased',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'an optional date that indicates when the release went live. If not provided the current time is assumed',
|
||||
description: 'An optional date that indicates when the release went live. If not provided the current time is assumed.',
|
||||
},
|
||||
{
|
||||
displayName: 'Commits',
|
||||
name: 'commits',
|
||||
description: 'an optional list of commit data to be associated with the release',
|
||||
description: 'An optional list of commit data to be associated with the release.',
|
||||
type: 'fixedCollection',
|
||||
typeOptions: {
|
||||
multipleValues: true,
|
||||
@@ -290,11 +302,11 @@ export const releaseFields = [
|
||||
displayName: 'Commit Properties',
|
||||
values: [
|
||||
{
|
||||
displayName: 'Id',
|
||||
displayName: 'ID',
|
||||
name: 'id',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'the sha of the commit',
|
||||
description: 'The sha of the commit.',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
@@ -302,26 +314,26 @@ export const releaseFields = [
|
||||
name: 'authorEmail',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Authors email',
|
||||
description: 'Authors email.',
|
||||
},
|
||||
{
|
||||
displayName: 'Author Name',
|
||||
name: 'authorName',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Name of author',
|
||||
description: 'Name of author.',
|
||||
},
|
||||
{
|
||||
displayName: 'Message',
|
||||
name: 'message',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Message of commit',
|
||||
description: 'Message of commit.',
|
||||
},
|
||||
{
|
||||
displayName: 'Patch Set',
|
||||
name: 'patchSet',
|
||||
description: 'A list of the files that have been changed in the commit. Specifying the patch_set is necessary to power suspect commits and suggested assignees',
|
||||
description: 'A list of the files that have been changed in the commit. Specifying the patch_set is necessary to power suspect commits and suggested assignees.',
|
||||
type: 'fixedCollection',
|
||||
typeOptions: {
|
||||
multipleValues: true,
|
||||
@@ -337,7 +349,7 @@ export const releaseFields = [
|
||||
name: 'path',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'he path to the file. Both forward and backward slashes are supported',
|
||||
description: 'The path to the file. Both forward and backward slashes are supported.',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
@@ -345,7 +357,7 @@ export const releaseFields = [
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
default: '',
|
||||
description: 'he types of changes that happend in that commit',
|
||||
description: 'The types of changes that happend in that commit.',
|
||||
options: [
|
||||
{
|
||||
name: 'Add',
|
||||
@@ -370,14 +382,14 @@ export const releaseFields = [
|
||||
name: 'repository',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Repository name',
|
||||
description: 'Repository name.',
|
||||
},
|
||||
{
|
||||
displayName: 'Timestamp',
|
||||
name: 'timestamp',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Timestamp of commit',
|
||||
description: 'Timestamp of commit.',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -386,7 +398,7 @@ export const releaseFields = [
|
||||
{
|
||||
displayName: 'Refs',
|
||||
name: 'refs',
|
||||
description: 'an optional way to indicate the start and end commits for each repository included in a release',
|
||||
description: 'An optional way to indicate the start and end commits for each repository included in a release.',
|
||||
type: 'fixedCollection',
|
||||
typeOptions: {
|
||||
multipleValues: true,
|
||||
@@ -402,7 +414,7 @@ export const releaseFields = [
|
||||
name: 'commit',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'the head sha of the commit',
|
||||
description: 'The head sha of the commit.',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
@@ -410,7 +422,7 @@ export const releaseFields = [
|
||||
name: 'repository',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Repository name',
|
||||
description: 'Repository name.',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
@@ -418,7 +430,238 @@ export const releaseFields = [
|
||||
name: 'previousCommit',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'the sha of the HEAD of the previous release',
|
||||
description: 'The sha of the HEAD of the previous release.',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* release:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Organization Slug',
|
||||
name: 'organizationSlug',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getOrganizations',
|
||||
},
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'release',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The slug of the organization the release belongs to.',
|
||||
},
|
||||
{
|
||||
displayName: 'Version',
|
||||
name: 'version',
|
||||
type: 'string',
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'release',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'A version identifier for this release. Can be a version number, a commit hash etc.',
|
||||
},
|
||||
{
|
||||
displayName: 'Update Fields',
|
||||
name: 'updateFields',
|
||||
type: 'collection',
|
||||
placeholder: 'Add Field',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'release',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Ref',
|
||||
name: 'ref',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'A URL that points to the release. This can be the path to an online interface to the sourcecode for instance.',
|
||||
},
|
||||
{
|
||||
displayName: 'URL',
|
||||
name: 'url',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'A URL that points to the release. This can be the path to an online interface to the sourcecode for instance.',
|
||||
},
|
||||
{
|
||||
displayName: 'Date released',
|
||||
name: 'dateReleased',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'an optional date that indicates when the release went live. If not provided the current time is assumed.',
|
||||
},
|
||||
{
|
||||
displayName: 'Commits',
|
||||
name: 'commits',
|
||||
description: 'An optional list of commit data to be associated with the release.',
|
||||
type: 'fixedCollection',
|
||||
typeOptions: {
|
||||
multipleValues: true,
|
||||
},
|
||||
default: {},
|
||||
options: [
|
||||
{
|
||||
name: 'commitProperties',
|
||||
displayName: 'Commit Properties',
|
||||
values: [
|
||||
{
|
||||
displayName: 'ID',
|
||||
name: 'id',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The sha of the commit.',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Author Email',
|
||||
name: 'authorEmail',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Authors email.',
|
||||
},
|
||||
{
|
||||
displayName: 'Author Name',
|
||||
name: 'authorName',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Name of author.',
|
||||
},
|
||||
{
|
||||
displayName: 'Message',
|
||||
name: 'message',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Message of commit.',
|
||||
},
|
||||
{
|
||||
displayName: 'Patch Set',
|
||||
name: 'patchSet',
|
||||
description: 'A list of the files that have been changed in the commit. Specifying the patch_set is necessary to power suspect commits and suggested assignees.',
|
||||
type: 'fixedCollection',
|
||||
typeOptions: {
|
||||
multipleValues: true,
|
||||
},
|
||||
default: {},
|
||||
options: [
|
||||
{
|
||||
name: 'patchSetProperties',
|
||||
displayName: 'Patch Set Properties',
|
||||
values: [
|
||||
{
|
||||
displayName: 'Path',
|
||||
name: 'path',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The path to the file. Both forward and backward slashes are supported.',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Type',
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
default: '',
|
||||
description: 'The types of changes that happend in that commit.',
|
||||
options: [
|
||||
{
|
||||
name: 'Add',
|
||||
value: 'add',
|
||||
},
|
||||
{
|
||||
name: 'Modify',
|
||||
value: 'modify',
|
||||
},
|
||||
{
|
||||
name: 'Delete',
|
||||
value: 'delete',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Repository',
|
||||
name: 'repository',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Repository name.',
|
||||
},
|
||||
{
|
||||
displayName: 'Timestamp',
|
||||
name: 'timestamp',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Timestamp of commit.',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Refs',
|
||||
name: 'refs',
|
||||
description: 'An optional way to indicate the start and end commits for each repository included in a release.',
|
||||
type: 'fixedCollection',
|
||||
typeOptions: {
|
||||
multipleValues: true,
|
||||
},
|
||||
default: {},
|
||||
options: [
|
||||
{
|
||||
name: 'refProperties',
|
||||
displayName: 'Ref Properties',
|
||||
values: [
|
||||
{
|
||||
displayName: 'Commit',
|
||||
name: 'commit',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The head sha of the commit.',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Repository',
|
||||
name: 'repository',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Repository name.',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Previous Commit',
|
||||
name: 'previousCommit',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The sha of the HEAD of the previous release.',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user