mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(Brevo Node): Rename SendInBlue node to Brevo node (#6521)
* rename sendinblue to brevo * refactor sendinblue node files/folders to brevo * update codex node, documentation urls and api baseUrls * adding comments to original node names
This commit is contained in:
69
packages/nodes-base/nodes/Brevo/Brevo.node.ts
Normal file
69
packages/nodes-base/nodes/Brevo/Brevo.node.ts
Normal file
@@ -0,0 +1,69 @@
|
||||
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
||||
import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
||||
import { attributeFields, attributeOperations } from './AttributeDescription';
|
||||
import { contactFields, contactOperations } from './ContactDescription';
|
||||
import { emailFields, emailOperations } from './EmailDescription';
|
||||
import { senderFields, senderOperations } from './SenderDescrition';
|
||||
|
||||
export class Brevo implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Brevo',
|
||||
// keep sendinblue name for backward compatibility
|
||||
name: 'sendInBlue',
|
||||
icon: 'file:brevo.svg',
|
||||
group: ['transform'],
|
||||
version: 1,
|
||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
description: 'Consume Brevo API',
|
||||
defaults: {
|
||||
name: 'Brevo',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
credentials: [
|
||||
{
|
||||
name: 'sendInBlueApi',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
requestDefaults: {
|
||||
baseURL: 'https://api.brevo.com',
|
||||
},
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Resource',
|
||||
name: 'resource',
|
||||
type: 'options',
|
||||
noDataExpression: true,
|
||||
options: [
|
||||
{
|
||||
name: 'Contact',
|
||||
value: 'contact',
|
||||
},
|
||||
{
|
||||
name: 'Contact Attribute',
|
||||
value: 'attribute',
|
||||
},
|
||||
{
|
||||
name: 'Email',
|
||||
value: 'email',
|
||||
},
|
||||
{
|
||||
name: 'Sender',
|
||||
value: 'sender',
|
||||
},
|
||||
],
|
||||
default: 'email',
|
||||
},
|
||||
|
||||
...attributeOperations,
|
||||
...attributeFields,
|
||||
...senderOperations,
|
||||
...senderFields,
|
||||
...contactOperations,
|
||||
...contactFields,
|
||||
...emailOperations,
|
||||
...emailFields,
|
||||
],
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user