This commit is contained in:
Ricardo Espinoza 2019-11-03 15:50:37 -05:00
parent 7a624fd6a9
commit 4c2f5c9392

View file

@ -138,7 +138,24 @@ export class Mandrill implements INodeType {
},
},
{
displayName: 'Json Parameters',
displayName: 'Binary Data',
name: 'binaryData',
type: 'boolean',
default: false,
description: '',
displayOptions: {
show: {
jsonParameters: [
false
],
operation: [
'sendHtml', 'sendTemplate'
]
},
},
},
{
displayName: 'JSON Parameters',
name: 'jsonParameters',
type: 'boolean',
default: false,
@ -147,6 +164,40 @@ export class Mandrill implements INodeType {
show: {
operation: [
'sendHtml', 'sendTemplate'
]
},
},
},
{
displayName: 'Attachments',
name: 'attachmentsBinary',
type: 'string',
default: '',
description: 'Name of the binary properties which contain data which should be added to email as attachment. Multiple ones can be comma separated.',
displayOptions: {
show: {
binaryData: [
true
],
jsonParameters: [
false
],
},
},
},
{
displayName: 'Images',
name: 'imagesBinary',
type: 'string',
default: '',
description: 'Name of the binary properties which contain data which should be added to email as attachment. Multiple ones can be comma separated.',
displayOptions: {
show: {
binaryData: [
true
],
jsonParameters: [
false
],
},
},
@ -155,7 +206,7 @@ export class Mandrill implements INodeType {
displayName: 'Options',
name: 'options',
type: 'collection',
placeholder: 'add Option',
placeholder: 'Add Option',
default: {},
displayOptions: {
show: {
@ -204,7 +255,7 @@ export class Mandrill implements INodeType {
description: 'Example text content',
},
{
displayName: 'Bcc address',
displayName: 'BCC Address',
name: 'bccAddress',
type: 'string',
default: '',
@ -212,7 +263,7 @@ export class Mandrill implements INodeType {
description: `an optional address to receive an exact copy of each recipient's email`,
},
{
displayName: 'Tracking domain',
displayName: 'Tracking Domain',
name: 'trackingDomain',
type: 'string',
default: '',
@ -220,7 +271,7 @@ export class Mandrill implements INodeType {
description: `a custom domain to use for tracking opens and clicks instead of mandrillapp.com`,
},
{
displayName: 'Signing domain',
displayName: 'Signing Domain',
name: 'signingDomain',
type: 'string',
default: '',
@ -228,7 +279,7 @@ export class Mandrill implements INodeType {
description: `a custom domain to use for SPF/DKIM signing instead of mandrill (for "via" or "on behalf of" in email clients)`,
},
{
displayName: 'Return path domain',
displayName: 'Return Path Domain',
name: 'returnPathDomain',
type: 'string',
default: '',
@ -243,21 +294,21 @@ export class Mandrill implements INodeType {
description: 'whether or not this message is important, and should be delivered ahead of non-important messages',
},
{
displayName: 'Track opens',
displayName: 'Track Opens',
name: 'trackOpens',
type: 'boolean',
default: false,
description: 'whether or not to turn on open tracking for the message',
},
{
displayName: 'Track clicks',
displayName: 'Track Clicks',
name: 'trackClicks',
type: 'boolean',
default: false,
description: 'whether or not to turn on click tracking for the message',
},
{
displayName: 'Auto text',
displayName: 'Auto Text',
name: 'autoText',
type: 'boolean',
default: false,
@ -271,28 +322,28 @@ export class Mandrill implements INodeType {
description: 'whether or not to automatically generate an HTML part for messages that are not given HTML',
},
{
displayName: 'Inline css',
displayName: 'Inline CSS',
name: 'inlineCss',
type: 'boolean',
default: false,
description: 'whether or not to automatically inline all CSS styles provided in the message HTML - only for HTML documents less than 256KB in size',
},
{
displayName: 'Url strip qs',
displayName: 'Url Strip Qs',
name: 'urlStripQs',
type: 'boolean',
default: false,
description: 'whether or not to strip the query string from URLs when aggregating tracked URL data',
},
{
displayName: 'Preserve recipients',
displayName: 'Preserve Recipients',
name: 'preserveRecipients',
type: 'boolean',
default: false,
description: 'whether or not to expose all recipients in to "To" header for each email',
},
{
displayName: 'View content link',
displayName: 'View Content Link',
name: 'viewContentLink',
type: 'boolean',
default: false,
@ -314,7 +365,7 @@ export class Mandrill implements INodeType {
description: 'the unique id of a subaccount for this message - must already exist or will fail with an error',
},
{
displayName: 'Google analytics campaign',
displayName: 'Google Analytics Campaign',
name: 'googleAnalyticsCampaign',
type: 'string',
default: '',
@ -322,7 +373,7 @@ export class Mandrill implements INodeType {
description: `optional string indicating the value to set for the utm_campaign tracking parameter. If this isn't provided the email's from address will be used instead.`,
},
{
displayName: 'Google analytics domains',
displayName: 'Google Analytics Domains',
name: 'googleAnalyticsDomains',
type: 'string',
default: '',
@ -338,7 +389,7 @@ export class Mandrill implements INodeType {
description: `an array of string separated by , to tag the message with. Stats are accumulated using tags, though we only store the first 100 we see, so this should not be unique or change frequently. Tags should be 50 characters or less. Any tags starting with an underscore are reserved for internal use and will cause errors.`,
},
{
displayName: 'Ip pool',
displayName: 'Ip Pool',
name: 'ipPool',
type: 'string',
default: '',
@ -346,7 +397,7 @@ export class Mandrill implements INodeType {
description: `the name of the dedicated ip pool that should be used to send the message. If you do not have any dedicated IPs, this parameter has no effect. If you specify a pool that does not exist, your default pool will be used instead.`,
},
{
displayName: 'Sent at',
displayName: 'Sent At',
name: 'sendAt',
type: 'dateTime',
default: '',
@ -356,12 +407,11 @@ export class Mandrill implements INodeType {
]
},
{
displayName: 'Merge vars',
displayName: 'Merge Vars',
name: 'mergeVarsJson',
type: 'json',
typeOptions: {
alwaysOpenEditWindow: true,
rows: 5,
},
default: '',
placeholder: `
@ -381,8 +431,9 @@ export class Mandrill implements INodeType {
description: 'Per-recipient merge variables',
},
{
displayName: 'Merge vars',
displayName: 'Merge Vars',
name: 'mergeVarsUi',
placeholder: 'Add Merge Vars',
type: 'fixedCollection',
default: '',
typeOptions: {
@ -422,6 +473,7 @@ export class Mandrill implements INodeType {
{
displayName: 'Metadata',
name: 'metadataUi',
placeholder: 'Add Metadata',
type: 'fixedCollection',
default: '',
typeOptions: {
@ -460,11 +512,10 @@ export class Mandrill implements INodeType {
},
{
displayName: 'Metadata',
name: 'metadata',
name: 'metadataJson',
type: 'json',
typeOptions: {
alwaysOpenEditWindow: true,
rows: 5,
},
displayOptions: {
show: {
@ -478,15 +529,14 @@ export class Mandrill implements INodeType {
{
"website": "www.example.com"
}`,
description: 'metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api.',
description: 'Metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api.',
},
{
displayName: 'Recipient metadata',
displayName: 'Recipient Metadata',
name: 'recipientMetadata',
type: 'json',
typeOptions: {
alwaysOpenEditWindow: true,
rows: 5,
},
displayOptions: {
show: {
@ -507,8 +557,9 @@ export class Mandrill implements INodeType {
description: 'Per-recipient metadata that will override the global values specified in the metadata parameter.',
},
{
displayName: 'Recipient metadata',
displayName: 'Recipient Metadata',
name: 'recipientMetadataUi',
placeholder: 'Add Recipient Metatada',
type: 'fixedCollection',
typeOptions: {
multipleValues: true
@ -551,7 +602,6 @@ export class Mandrill implements INodeType {
type: 'json',
typeOptions: {
alwaysOpenEditWindow: true,
rows: 5,
},
displayOptions: {
show: {
@ -573,6 +623,7 @@ export class Mandrill implements INodeType {
{
displayName: 'Attachments',
name: 'attachmentsUi',
placeholder: 'Add Attachments',
type: 'fixedCollection',
typeOptions: {
multipleValues: true
@ -594,21 +645,21 @@ export class Mandrill implements INodeType {
name: 'type',
type: 'string',
default: '',
description: 'text/plain" (the MIME type of the attachment)'
description: 'text/plain (the MIME type of the attachment)'
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'myfile.txt" (the file name of the attachment)'
description: 'myfile.txt (the file name of the attachment)'
},
{
displayName: 'Content',
name: 'content',
type: 'string',
default: '',
description: 'ZXhhbXBsZSBmaWxl" (the content of the attachment as a base64-encoded string)'
description: 'ZXhhbXBsZSBmaWxl (the content of the attachment as a base64-encoded string)'
}
]
}
@ -635,13 +686,13 @@ export class Mandrill implements INodeType {
},
typeOptions: {
alwaysOpenEditWindow: true,
rows: 5,
},
description: 'optional extra headers to add to the message (most headers are allowed)',
},
{
displayName: 'Headers',
name: 'headersUi',
placeholder: 'Add Headers',
type: 'fixedCollection',
default: '',
displayOptions: {
@ -681,7 +732,6 @@ export class Mandrill implements INodeType {
type: 'json',
typeOptions: {
alwaysOpenEditWindow: true,
rows: 5,
},
displayOptions: {
show: {
@ -703,6 +753,7 @@ export class Mandrill implements INodeType {
{
displayName: 'Images',
name: 'images',
placeholder: 'Add images',
type: 'fixedCollection',
displayOptions: {
show: {
@ -725,21 +776,21 @@ export class Mandrill implements INodeType {
name: 'type',
type: 'string',
default: '',
description: 'text/plain" (the MIME type of the attachment)'
description: 'text/plain (the MIME type of the attachment)'
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'myfile.txt" (the file name of the attachment)'
description: 'myfile.txt (the file name of the attachment)'
},
{
displayName: 'Content',
name: 'content',
type: 'string',
default: '',
description: 'ZXhhbXBsZSBmaWxl" (the content of the attachment as a base64-encoded string)'
description: 'ZXhhbXBsZSBmaWxl (the content of the attachment as a base64-encoded string)'
}
]
}