@engine9-io/input-tools 1.9.10 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/timelineTypes.js CHANGED
@@ -1,7 +1,6 @@
1
1
  const SOURCE_CODE_OVERRIDE = 0;
2
2
  const CRM_ORIGIN = 1;
3
3
  const ACQUISITION = 2;
4
-
5
4
  // Generic signup
6
5
  const SIGNUP = 3;
7
6
  // Known first time signup
@@ -9,7 +8,6 @@ const SIGNUP_INITIAL = 4;
9
8
  // Known subsequent signup
10
9
  const SIGNUP_SUBSEQUENT = 5;
11
10
  const UNSUBSCRIBE = 6;
12
-
13
11
  // Generic monetary transaction
14
12
  const TRANSACTION = 10;
15
13
  // known one-time transaction
@@ -22,20 +20,16 @@ const TRANSACTION_SUBSEQUENT = 13;
22
20
  const TRANSACTION_RECURRING = 14;
23
21
  // refunded transaction, first instance
24
22
  const TRANSACTION_REFUND = 15;
25
-
26
23
  const SEGMENT_PERSON_ADD = 16;
27
24
  const SEGMENT_PERSON_REMOVE = 17;
28
-
29
25
  // unknown generic conversion on a message
30
26
  const MESSAGE_CONVERSION = 20;
31
27
  // advocacy conversion on a message
32
28
  const MESSAGE_CONVERSION_ADVOCACY = 21;
33
29
  // unknown transaction conversion on a message
34
30
  const MESSAGE_CONVERSION_TRANSACTION = 22;
35
-
36
31
  const MESSAGE_DELIVERY_FAILURE_SHOULD_RETRY = 25;
37
32
  const MESSAGE_DELIVERY_FAILURE_SHOULD_NOT_RETRY = 26;
38
-
39
33
  const SMS_SEND = 30;
40
34
  const SMS_DELIVERED = 31;
41
35
  const SMS_CLICK = 33;
@@ -43,7 +37,6 @@ const SMS_UNSUBSCRIBE = 34;
43
37
  const SMS_BOUNCE = 37;
44
38
  const SMS_SPAM = 38;
45
39
  const SMS_REPLY = 39;
46
-
47
40
  const EMAIL_SEND = 40;
48
41
  const EMAIL_DELIVERED = 41;
49
42
  const EMAIL_OPEN = 42;
@@ -54,37 +47,28 @@ const EMAIL_HARD_BOUNCE = 46;
54
47
  const EMAIL_BOUNCE = 47;
55
48
  const EMAIL_SPAM = 48;
56
49
  const EMAIL_REPLY = 49;
57
-
58
50
  const PHONE_CALL_ATTEMPT = 50;
59
51
  const PHONE_CALL_SUCCESS = 51;
60
52
  const PHONE_CALL_FAIL = 52;
61
-
62
53
  // Generic action
63
54
  const FORM_SUBMIT = 60;
64
55
  const FORM_PETITION = 61;
65
56
  const FORM_PETITION_CONTACT_TARGET = 62;
66
-
67
57
  const FORM_ADVOCACY = 66;
68
58
  const FORM_SURVEY = 67;
69
-
70
59
  const FILE_IMPORT = 70;
71
-
72
60
  // For tracking exports or data pushes
73
61
  // Generic export of data
74
62
  const EXPORT = 80;
75
-
76
63
  // Export specifically for pushing data to remote systems
77
64
  const EXPORT_FOR_REMOTE = 81;
78
-
79
65
  // Export specifically for sending out messages
80
66
  const EXPORT_FOR_MESSAGING = 82;
81
-
82
67
  //These are for actions we may not have exact
83
68
  // details on, but are useful for modeling, etc
84
69
  const INFERRED_ENTRY = 91;
85
70
  const INFERRED_MESSAGE = 92;
86
71
  const INFERRED_FORM = 93;
87
-
88
72
  // DO. NOT. CHANGE. (once finalized)
89
73
  // should probably have offsets between types
90
74
  // ie email, transaction, etc.
@@ -104,10 +88,8 @@ const TIMELINE_ENTRY_TYPES = {
104
88
  TRANSACTION_ONE_TIME,
105
89
  TRANSACTION_RECURRING,
106
90
  TRANSACTION_REFUND,
107
-
108
91
  SEGMENT_PERSON_ADD,
109
92
  SEGMENT_PERSON_REMOVE,
110
-
111
93
  SMS_SEND,
112
94
  SMS_DELIVERED,
113
95
  SMS_CLICK,
@@ -115,7 +97,6 @@ const TIMELINE_ENTRY_TYPES = {
115
97
  SMS_BOUNCE,
116
98
  SMS_SPAM,
117
99
  SMS_REPLY,
118
-
119
100
  // email interactions
120
101
  EMAIL_SEND,
121
102
  EMAIL_DELIVERED,
@@ -127,24 +108,20 @@ const TIMELINE_ENTRY_TYPES = {
127
108
  EMAIL_BOUNCE,
128
109
  EMAIL_REPLY,
129
110
  EMAIL_SPAM,
130
-
131
111
  PHONE_CALL_ATTEMPT,
132
112
  PHONE_CALL_SUCCESS,
133
113
  PHONE_CALL_FAIL,
134
-
135
114
  // forms
136
115
  FORM_SUBMIT,
137
116
  FORM_PETITION,
138
117
  FORM_PETITION_CONTACT_TARGET,
139
118
  FORM_ADVOCACY,
140
119
  FORM_SURVEY,
141
-
142
120
  MESSAGE_CONVERSION,
143
121
  MESSAGE_CONVERSION_ADVOCACY,
144
122
  MESSAGE_CONVERSION_TRANSACTION,
145
123
  MESSAGE_DELIVERY_FAILURE_SHOULD_RETRY,
146
124
  MESSAGE_DELIVERY_FAILURE_SHOULD_NOT_RETRY,
147
-
148
125
  FILE_IMPORT,
149
126
  EXPORT,
150
127
  EXPORT_FOR_REMOTE,
@@ -156,6 +133,7 @@ const TIMELINE_ENTRY_TYPES = {
156
133
  Object.entries(TIMELINE_ENTRY_TYPES).forEach(([k, v]) => {
157
134
  TIMELINE_ENTRY_TYPES[v] = k;
158
135
  });
159
- module.exports = {
136
+ export { TIMELINE_ENTRY_TYPES };
137
+ export default {
160
138
  TIMELINE_ENTRY_TYPES
161
139
  };