@dhyasama/totem-models 9.60.0 → 9.61.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.
|
@@ -6,8 +6,8 @@ module.exports = function(mongoose, config) {
|
|
|
6
6
|
|
|
7
7
|
const LimitedPartnerCommunication = new Schema({
|
|
8
8
|
|
|
9
|
-
// name of the
|
|
10
|
-
|
|
9
|
+
// name of the campaign, e.g., "2022 Annual Audit"
|
|
10
|
+
campaign: { type: String, trim: true, required: true },
|
|
11
11
|
|
|
12
12
|
// customer sending this communication
|
|
13
13
|
customer: { type: Schema.ObjectId, ref: 'Organization', required: true },
|
|
@@ -15,11 +15,16 @@ module.exports = function(mongoose, config) {
|
|
|
15
15
|
// date and time to send
|
|
16
16
|
sendOn: { type: Date, required: true },
|
|
17
17
|
|
|
18
|
-
// email
|
|
19
|
-
|
|
18
|
+
// email content
|
|
19
|
+
email: {
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
// email subject
|
|
22
|
+
subject: { type: String, trim: true, required: true },
|
|
23
|
+
|
|
24
|
+
// email body
|
|
25
|
+
body: { type: String, trim: true, required: true },
|
|
26
|
+
|
|
27
|
+
},
|
|
23
28
|
|
|
24
29
|
limitedPartners: [{
|
|
25
30
|
|
|
@@ -48,9 +53,9 @@ module.exports = function(mongoose, config) {
|
|
|
48
53
|
|
|
49
54
|
}],
|
|
50
55
|
|
|
51
|
-
// emails of
|
|
56
|
+
// emails of recipients
|
|
52
57
|
emails: [{ type: String, trim: true, required: true }],
|
|
53
|
-
|
|
58
|
+
|
|
54
59
|
notifications: [{
|
|
55
60
|
sendTo: { type: String, trim: true },
|
|
56
61
|
sendOn: { type: Date, required: false },
|