@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 communication, e.g., "2022 Annual Audit"
10
- name: { type: String, trim: true, required: true },
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 subject
19
- subject: { type: String, trim: true, required: true },
18
+ // email content
19
+ email: {
20
20
 
21
- // email body
22
- body: { type: String, trim: true, required: true },
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 recipient
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 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.60.0",
3
+ "version": "9.61.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",