mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix issue not sending the event in the correct property on Lemlist (#2198)
This commit is contained in:
@@ -13,6 +13,10 @@ import {
|
||||
OptionsWithUri,
|
||||
} from 'request';
|
||||
|
||||
import {
|
||||
capitalCase,
|
||||
} from 'change-case';
|
||||
|
||||
/**
|
||||
* Make an authenticated API request to Lemlist.
|
||||
*/
|
||||
@@ -87,3 +91,22 @@ export async function lemlistApiRequestAllItems(
|
||||
);
|
||||
return returnData;
|
||||
}
|
||||
|
||||
export function getEvents() {
|
||||
|
||||
const events = [
|
||||
'*',
|
||||
'emailsBounced',
|
||||
'emailsClicked',
|
||||
'emailsFailed',
|
||||
'emailsInterested',
|
||||
'emailsNotInterested',
|
||||
'emailsOpened',
|
||||
'emailsReplied',
|
||||
'emailsSendFailed',
|
||||
'emailsSent',
|
||||
'emailsUnsubscribed',
|
||||
];
|
||||
|
||||
return events.map((event: string) => ({ name: (event === '*') ? '*' : capitalCase(event), value: event }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user