Add Google Chat node (#2795)

* Adding Google Chat node

* refactoring

* More refactoring after feedback

* Fixing linter issues

* Fixing missed linter issue (credentialTest)

* Fixing warnings

* 👕 Fix lint issue

*  Improvements

*  Improvements

*  Make it also work with credentials that contain \n

*  Comment out unneeded imports

Co-authored-by: Valentina <valentina.lilova98@gmail.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
Jan Oberhauser
2022-02-19 11:18:43 +01:00
committed by GitHub
parent 1ea57eff5d
commit d37fc19d84
13 changed files with 1880 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
import {
INodeProperties,
} from 'n8n-workflow';
export const mediaOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
noDataExpression: true,
type: 'options',
displayOptions: {
show: {
resource: [
'media',
],
},
},
options: [
{
name: 'Download',
value: 'download',
description: 'Download media',
},
],
default: 'download',
},
];
export const mediaFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* media:download */
/* -------------------------------------------------------------------------- */
{
displayName: 'Resource Name',
name: 'resourceName',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'media',
],
operation: [
'download',
],
},
},
default: '',
description: 'Name of the media that is being downloaded',
},
{
displayName: 'Binary Property',
name: 'binaryPropertyName',
type: 'string',
default: 'data',
required: true,
displayOptions: {
show: {
resource: [
'media',
],
operation: [
'download',
],
},
},
description: 'Name of the binary property to which to write the data of the read file',
},
];