- More options how to send test emails. - Fixed problems with pausing a campaign (#593) - Started rework of transactional sender of templates (#606), however this contains functionality regression at the moment because it does not interpret templates as HBS. It needs HBS option for templates as described in https://github.com/Mailtrain-org/mailtrain/issues/611#issuecomment-502345227 TODO: - detect sending errors connected to not able to contact the mailer and pause/retry campaing and queued sending - don't mark the recipients as BOUNCED - add FAILED campaign state and fall into it if sending to campaign consistently fails (i.e. the error with sending is not temporary) - if the same happends for queued email, delete the message
48 lines
No EOL
1.3 KiB
JavaScript
48 lines
No EOL
1.3 KiB
JavaScript
'use strict';
|
|
|
|
const EntityActivityType = {
|
|
CREATE: 1,
|
|
UPDATE: 2,
|
|
REMOVE: 3,
|
|
MAX: 3
|
|
};
|
|
|
|
const CampaignActivityType = {
|
|
STATUS_CHANGE: EntityActivityType.MAX + 1,
|
|
TEST_SEND: EntityActivityType.MAX + 2,
|
|
};
|
|
|
|
const ListActivityType = {
|
|
CREATE_SUBSCRIPTION: EntityActivityType.MAX + 1,
|
|
UPDATE_SUBSCRIPTION: EntityActivityType.MAX + 2,
|
|
REMOVE_SUBSCRIPTION: EntityActivityType.MAX + 3,
|
|
SUBSCRIPTION_STATUS_CHANGE: EntityActivityType.MAX + 4,
|
|
CREATE_FIELD: EntityActivityType.MAX + 5,
|
|
UPDATE_FIELD: EntityActivityType.MAX + 6,
|
|
REMOVE_FIELD: EntityActivityType.MAX + 7,
|
|
CREATE_SEGMENT: EntityActivityType.MAX + 5,
|
|
UPDATE_SEGMENT: EntityActivityType.MAX + 6,
|
|
REMOVE_SEGMENT: EntityActivityType.MAX + 7,
|
|
CREATE_IMPORT: EntityActivityType.MAX + 8,
|
|
UPDATE_IMPORT: EntityActivityType.MAX + 9,
|
|
REMOVE_IMPORT: EntityActivityType.MAX + 10,
|
|
IMPORT_STATUS_CHANGE: EntityActivityType.MAX + 11,
|
|
};
|
|
|
|
const CampaignTrackerActivityType = {
|
|
DELIVERED: 1,
|
|
BOUNCED: 2,
|
|
OPENED: 3,
|
|
CLICKED: 4
|
|
};
|
|
|
|
const BlacklistActivityType = {
|
|
ADD: 1,
|
|
REMOVE: 2
|
|
};
|
|
|
|
|
|
module.exports.EntityActivityType = EntityActivityType;
|
|
module.exports.BlacklistActivityType = BlacklistActivityType;
|
|
module.exports.CampaignActivityType = CampaignActivityType;
|
|
module.exports.ListActivityType = ListActivityType; |