First attempt on campaign editing. Misses attachments. Untested.
This commit is contained in:
parent
ee786bc8ad
commit
0e0fb944e3
26 changed files with 1244 additions and 233 deletions
47
shared/campaigns.js
Normal file
47
shared/campaigns.js
Normal file
|
@ -0,0 +1,47 @@
|
|||
'use strict';
|
||||
|
||||
const CampaignSource = {
|
||||
MIN: 1,
|
||||
|
||||
TEMPLATE: 1,
|
||||
CUSTOM: 2,
|
||||
CUSTOM_FROM_TEMPLATE: 3,
|
||||
URL: 4,
|
||||
RSS: 5,
|
||||
|
||||
MAX: 6
|
||||
};
|
||||
|
||||
const CampaignType = {
|
||||
MIN: 1,
|
||||
|
||||
REGULAR: 1,
|
||||
RSS: 2,
|
||||
RSS_ENTRY: 3,
|
||||
TRIGGERED: 4,
|
||||
|
||||
MAX: 4
|
||||
};
|
||||
|
||||
const CampaignStatus = {
|
||||
MIN: 1,
|
||||
|
||||
// For campaign types: NORMAL, RSS_ENTRY
|
||||
IDLE: 1,
|
||||
SCHEDULED: 2,
|
||||
FINISHED: 3,
|
||||
PAUSED: 4,
|
||||
|
||||
// For campaign types: RSS, TRIGGERED
|
||||
INACTIVE: 5,
|
||||
ACTIVE: 6,
|
||||
|
||||
MAA: 6
|
||||
};
|
||||
|
||||
|
||||
module.exports = {
|
||||
CampaignSource,
|
||||
CampaignType,
|
||||
CampaignStatus
|
||||
};
|
|
@ -1,20 +1,26 @@
|
|||
'use strict';
|
||||
|
||||
const UnsubscriptionMode = {
|
||||
MIN: 0,
|
||||
|
||||
ONE_STEP: 0,
|
||||
ONE_STEP_WITH_FORM: 1,
|
||||
TWO_STEP: 2,
|
||||
TWO_STEP_WITH_FORM: 3,
|
||||
MANUAL: 4,
|
||||
MAX: 5
|
||||
|
||||
MAX: 4
|
||||
};
|
||||
|
||||
const SubscriptionStatus = {
|
||||
MIN: 0,
|
||||
|
||||
SUBSCRIBED: 1,
|
||||
UNSUBSCRIBED: 2,
|
||||
BOUNCED: 3,
|
||||
COMPLAINED: 4,
|
||||
MAX: 5
|
||||
|
||||
MAX: 4
|
||||
};
|
||||
|
||||
function getFieldKey(field) {
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
const ReportState = {
|
||||
MIN: 0,
|
||||
|
||||
SCHEDULED: 0,
|
||||
PROCESSING: 1,
|
||||
FINISHED: 2,
|
||||
FAILED: 3,
|
||||
MAX: 4
|
||||
|
||||
MAX: 3
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue