👕 Fix lint issue

This commit is contained in:
Jan Oberhauser
2020-10-22 15:46:03 +02:00
parent 5b7efd67ca
commit 40c2acd77b
491 changed files with 4045 additions and 3936 deletions

View File

@@ -114,7 +114,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'archive'
'archive',
],
resource: [
'channel',
@@ -138,7 +138,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'close'
'close',
],
resource: [
'channel',
@@ -161,7 +161,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'create'
'create',
],
resource: [
'channel',
@@ -205,7 +205,7 @@ export const channelFields = [
default: [],
description: `Required for workspace apps. A list of between 1 and 30 human users that will be added to the newly-created conversation`,
},
]
],
},
/* -------------------------------------------------------------------------- */
/* channel:invite */
@@ -221,7 +221,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'invite'
'invite',
],
resource: [
'channel',
@@ -242,7 +242,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'invite'
'invite',
],
resource: [
'channel',
@@ -263,7 +263,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'get'
'get',
],
resource: [
'channel',
@@ -296,7 +296,7 @@ export const channelFields = [
type: 'boolean',
default: false,
},
]
],
},
/* -------------------------------------------------------------------------- */
/* channel:kick */
@@ -313,7 +313,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'kick'
'kick',
],
resource: [
'channel',
@@ -333,7 +333,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'kick'
'kick',
],
resource: [
'channel',
@@ -357,7 +357,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'join'
'join',
],
resource: [
'channel',
@@ -441,25 +441,25 @@ export const channelFields = [
options: [
{
name: 'Public Channel',
value: 'public_channel'
value: 'public_channel',
},
{
name: 'Private Channel',
value: 'private_channel'
value: 'private_channel',
},
{
name: 'mpim',
value: 'mpim'
value: 'mpim',
},
{
name: 'im',
value: 'im'
value: 'im',
},
],
default: ['public_channel'],
description: 'Mix and match channel types',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* channel:history */
@@ -476,7 +476,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'history'
'history',
],
resource: [
'channel',
@@ -565,7 +565,7 @@ export const channelFields = [
default: '',
description: 'Start of time range of messages to include in results.',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* channel:leave */
@@ -580,7 +580,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'leave'
'leave',
],
resource: [
'channel',
@@ -635,7 +635,7 @@ export const channelFields = [
default: [],
description: `If only one user is included, this creates a 1:1 DM. The ordering of the users is preserved whenever a multi-person direct message is returned. Supply a channel when not supplying users.`,
},
]
],
},
/* -------------------------------------------------------------------------- */
/* channel:rename */
@@ -650,7 +650,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'rename'
'rename',
],
resource: [
'channel',
@@ -668,7 +668,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'rename'
'rename',
],
resource: [
'channel',
@@ -694,7 +694,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'replies'
'replies',
],
resource: [
'channel',
@@ -712,7 +712,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'replies'
'replies',
],
resource: [
'channel',
@@ -801,7 +801,7 @@ export const channelFields = [
default: '',
description: 'Start of time range of messages to include in results.',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* channel:setPurpose */
@@ -816,7 +816,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'setPurpose'
'setPurpose',
],
resource: [
'channel',
@@ -834,7 +834,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'setPurpose'
'setPurpose',
],
resource: [
'channel',
@@ -858,7 +858,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'setTopic'
'setTopic',
],
resource: [
'channel',
@@ -876,7 +876,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'setTopic'
'setTopic',
],
resource: [
'channel',
@@ -900,7 +900,7 @@ export const channelFields = [
displayOptions: {
show: {
operation: [
'unarchive'
'unarchive',
],
resource: [
'channel',

View File

@@ -47,7 +47,7 @@ export const fileFields = [
displayOptions: {
show: {
operation: [
'upload'
'upload',
],
resource: [
'file',
@@ -64,13 +64,13 @@ export const fileFields = [
displayOptions: {
show: {
operation: [
'upload'
'upload',
],
resource: [
'file',
],
binaryData: [
false
false,
],
},
@@ -87,13 +87,13 @@ export const fileFields = [
displayOptions: {
show: {
operation: [
'upload'
'upload',
],
resource: [
'file',
],
binaryData: [
true
true,
],
},
@@ -108,7 +108,7 @@ export const fileFields = [
displayOptions: {
show: {
operation: [
'upload'
'upload',
],
resource: [
'file',
@@ -210,7 +210,7 @@ export const fileFields = [
displayOptions: {
show: {
operation: [
'getAll'
'getAll',
],
resource: [
'file',

View File

@@ -20,12 +20,12 @@ export async function slackApiRequest(this: IExecuteFunctions | IExecuteSingleFu
let options: OptionsWithUri = {
method,
headers: headers || {
'Content-Type': 'application/json; charset=utf-8'
'Content-Type': 'application/json; charset=utf-8',
},
body,
qs: query,
uri: `https://slack.com/api${resource}`,
json: true
json: true,
};
options = Object.assign({}, options, option);
if (Object.keys(body).length === 0) {

View File

@@ -84,7 +84,7 @@ export const messageFields = [
'accessToken',
],
operation: [
'post'
'post',
],
resource: [
'message',
@@ -121,7 +121,7 @@ export const messageFields = [
displayOptions: {
show: {
operation: [
'post'
'post',
],
resource: [
'message',
@@ -318,10 +318,10 @@ export const messageFields = [
default: true,
description: 'If items can be displayed next to each other.',
},
]
],
},
],
}
},
],
},
{
@@ -331,7 +331,7 @@ export const messageFields = [
displayOptions: {
show: {
operation: [
'post'
'post',
],
resource: [
'message',
@@ -349,10 +349,10 @@ export const messageFields = [
displayOptions: {
show: {
'/as_user': [
false
false,
],
'/operation': [
'post'
'post',
],
'/resource': [
'message',
@@ -369,10 +369,10 @@ export const messageFields = [
displayOptions: {
show: {
'/as_user': [
false
false,
],
'/operation': [
'post'
'post',
],
'/resource': [
'message',
@@ -445,7 +445,7 @@ export const messageFields = [
],
operation: [
'update',
]
],
},
},
description: 'Channel containing the message to be updated.',
@@ -463,7 +463,7 @@ export const messageFields = [
],
operation: [
'update',
]
],
},
},
description: `New text for the message, using the default formatting rules. It's not required when presenting attachments.`,
@@ -481,7 +481,7 @@ export const messageFields = [
],
operation: [
'update',
]
],
},
},
description: `Timestamp of the message to be updated.`,
@@ -497,7 +497,7 @@ export const messageFields = [
'accessToken',
],
operation: [
'update'
'update',
],
resource: [
'message',
@@ -564,7 +564,7 @@ export const messageFields = [
displayOptions: {
show: {
operation: [
'post'
'post',
],
resource: [
'message',
@@ -1487,7 +1487,7 @@ export const messageFields = [
false,
],
operation: [
'update'
'update',
],
resource: [
'message',
@@ -1665,10 +1665,10 @@ export const messageFields = [
default: true,
description: 'If items can be displayed next to each other.',
},
]
],
},
],
}
},
],
},
] as INodeProperties[];

View File

@@ -251,7 +251,7 @@ export class Slack implements INodeType {
}
return returnData;
},
}
},
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
@@ -833,7 +833,7 @@ export class Slack implements INodeType {
filename: items[i].binary[binaryPropertyName].fileName,
//@ts-ignore
contentType: items[i].binary[binaryPropertyName].mimeType,
}
},
};
responseData = await slackApiRequest.call(this, 'POST', '/files.upload', {}, qs, { 'Content-Type': 'multipart/form-data' }, { formData: body });
responseData = responseData.file;

View File

@@ -46,7 +46,7 @@ export const starFields = [
displayOptions: {
show: {
operation: [
'add'
'add',
],
resource: [
'star',
@@ -100,7 +100,7 @@ export const starFields = [
displayOptions: {
show: {
operation: [
'delete'
'delete',
],
resource: [
'star',