2023-01-27 03:22:44 -08:00
|
|
|
import type { INodeProperties } from 'n8n-workflow';
|
2022-02-28 00:04:55 -08:00
|
|
|
|
|
|
|
export const segmentEmailOperations: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
|
|
|
noDataExpression: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['segmentEmail'],
|
2022-02-28 00:04:55 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Send',
|
|
|
|
value: 'send',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Send an email to a segment',
|
2022-02-28 00:04:55 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'send',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const segmentEmailFields: INodeProperties[] = [
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
/* segmentEmail:send */
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
{
|
2022-06-03 10:23:49 -07:00
|
|
|
displayName: 'Segment Email Name or ID',
|
2022-02-28 00:04:55 -08:00
|
|
|
name: 'segmentEmailId',
|
|
|
|
type: 'options',
|
2022-08-17 08:50:24 -07:00
|
|
|
description:
|
2024-09-12 07:53:36 -07:00
|
|
|
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
2022-02-28 00:04:55 -08:00
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['segmentEmail'],
|
|
|
|
operation: ['send'],
|
2022-02-28 00:04:55 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
typeOptions: {
|
|
|
|
loadOptionsMethod: 'getSegmentEmails',
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|