@dhyasama/totem-models 9.12.0 → 9.13.1
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/lib/Financials.js +6 -6
- package/lib/Organization.js +1 -2
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -41,7 +41,7 @@ module.exports = function(mongoose, config) {
|
|
|
41
41
|
},
|
|
42
42
|
remind: {
|
|
43
43
|
daysAfter: { type: Number, default: 0 },
|
|
44
|
-
|
|
44
|
+
occurences: { type: Number, default: 0 },
|
|
45
45
|
time: {
|
|
46
46
|
hour: { type: Number, default: 0 },
|
|
47
47
|
minute: { type: Number, default: 0 },
|
|
@@ -171,17 +171,17 @@ module.exports = function(mongoose, config) {
|
|
|
171
171
|
|
|
172
172
|
company: {
|
|
173
173
|
|
|
174
|
-
sendTo: [{
|
|
175
|
-
email: { type: String, trim: true },
|
|
176
|
-
name: { type: String, trim: true }
|
|
177
|
-
}],
|
|
178
|
-
|
|
179
174
|
// to be nested under initial and reminders, and removed
|
|
180
175
|
email: {
|
|
181
176
|
subject: { type: String, trim: true },
|
|
182
177
|
body: { type: String, trim: true }
|
|
183
178
|
},
|
|
184
179
|
|
|
180
|
+
sendTo: [{
|
|
181
|
+
email: { type: String, trim: true },
|
|
182
|
+
name: { type: String, trim: true }
|
|
183
|
+
}],
|
|
184
|
+
|
|
185
185
|
initial: {
|
|
186
186
|
sendOn: { type: Date, required: false },
|
|
187
187
|
sentOn: { type: Date, required: false },
|
package/lib/Organization.js
CHANGED
|
@@ -306,7 +306,6 @@ module.exports = function(mongoose, config) {
|
|
|
306
306
|
prompt: { type: String, trim: true },
|
|
307
307
|
required: { type: Boolean, default: false }
|
|
308
308
|
}]
|
|
309
|
-
|
|
310
309
|
},
|
|
311
310
|
|
|
312
311
|
deals: {
|
|
@@ -362,7 +361,7 @@ module.exports = function(mongoose, config) {
|
|
|
362
361
|
condition: { type: String, enum: [null, 'equals', 'doesNotEqual', 'contains', 'doesNotContain', 'lessThan', 'greaterThan']},
|
|
363
362
|
values: [{ type: String, trim: true }]
|
|
364
363
|
}],
|
|
365
|
-
sort: {
|
|
364
|
+
sort: {
|
|
366
365
|
by: { type: String, trim: true },
|
|
367
366
|
reverse: { type: Boolean, default: false }
|
|
368
367
|
},
|