mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
⚡ Minor improvements to Mattermost-Node
This commit is contained in:
@@ -98,9 +98,9 @@ export class Mattermost implements INodeType {
|
|||||||
description: 'Soft-deletes a channel',
|
description: 'Soft-deletes a channel',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Member',
|
name: 'Members',
|
||||||
value: 'member',
|
value: 'members',
|
||||||
description: 'Get a page of members for a channel.',
|
description: 'Returns the members of a channel.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Restore',
|
name: 'Restore',
|
||||||
@@ -268,7 +268,7 @@ export class Mattermost implements INodeType {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// channel:member
|
// channel:members
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
{
|
{
|
||||||
displayName: 'Team ID',
|
displayName: 'Team ID',
|
||||||
@@ -283,7 +283,7 @@ export class Mattermost implements INodeType {
|
|||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: [
|
operation: [
|
||||||
'member'
|
'members',
|
||||||
],
|
],
|
||||||
resource: [
|
resource: [
|
||||||
'channel',
|
'channel',
|
||||||
@@ -308,7 +308,7 @@ export class Mattermost implements INodeType {
|
|||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: [
|
operation: [
|
||||||
'member'
|
'members',
|
||||||
],
|
],
|
||||||
resource: [
|
resource: [
|
||||||
'channel',
|
'channel',
|
||||||
@@ -323,12 +323,12 @@ export class Mattermost implements INodeType {
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
|
operation: [
|
||||||
|
'members',
|
||||||
|
],
|
||||||
resource: [
|
resource: [
|
||||||
'channel',
|
'channel',
|
||||||
],
|
],
|
||||||
operation: [
|
|
||||||
'member',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: true,
|
default: true,
|
||||||
@@ -340,12 +340,12 @@ export class Mattermost implements INodeType {
|
|||||||
type: 'number',
|
type: 'number',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
|
operation: [
|
||||||
|
'members',
|
||||||
|
],
|
||||||
resource: [
|
resource: [
|
||||||
'channel',
|
'channel',
|
||||||
],
|
],
|
||||||
operation: [
|
|
||||||
'member',
|
|
||||||
],
|
|
||||||
returnAll: [
|
returnAll: [
|
||||||
false,
|
false,
|
||||||
],
|
],
|
||||||
@@ -1284,9 +1284,9 @@ export class Mattermost implements INodeType {
|
|||||||
const channelId = this.getNodeParameter('channelId', i) as string;
|
const channelId = this.getNodeParameter('channelId', i) as string;
|
||||||
endpoint = `channels/${channelId}`;
|
endpoint = `channels/${channelId}`;
|
||||||
|
|
||||||
} else if (operation === 'member') {
|
} else if (operation === 'members') {
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// channel:member
|
// channel:members
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|
||||||
requestMethod = 'GET';
|
requestMethod = 'GET';
|
||||||
|
|||||||
Reference in New Issue
Block a user