@dhyasama/totem-models 11.59.0 → 11.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.
- package/lib/Interaction.js +10 -1
- package/lib/Organization.js +4 -4
- package/package.json +1 -1
package/lib/Interaction.js
CHANGED
|
@@ -155,7 +155,16 @@ module.exports = function(mongoose, config) {
|
|
|
155
155
|
if (!startTime) { return cb(new Error('startTime is required'), null); }
|
|
156
156
|
|
|
157
157
|
var self = this;
|
|
158
|
-
|
|
158
|
+
const strippedSummary = stripEmojis(summary);
|
|
159
|
+
|
|
160
|
+
// Find interactions where either the exact summary matches or the stripped summary matches
|
|
161
|
+
var query = self.find({
|
|
162
|
+
$or: [
|
|
163
|
+
{ summary: summary },
|
|
164
|
+
{ summary: { $regex: `^${strippedSummary}$`, $options: 'i' } }
|
|
165
|
+
],
|
|
166
|
+
startTime: new Date(startTime)
|
|
167
|
+
});
|
|
159
168
|
|
|
160
169
|
query.populate('attendees.internal');
|
|
161
170
|
query.populate('attendees.external');
|
package/lib/Organization.js
CHANGED
|
@@ -248,7 +248,7 @@ module.exports = function(mongoose, config) {
|
|
|
248
248
|
label: { type: String, trim: true },
|
|
249
249
|
|
|
250
250
|
// Dictates the type of control rendered on form and data validation
|
|
251
|
-
type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Multiple Select', 'Timestamp', 'Tags', 'Person', 'Org', 'Poll'] },
|
|
251
|
+
type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Multiple Select', 'Timestamp', 'Tags', 'Link', 'Document', 'Person', 'Org', 'Poll'] },
|
|
252
252
|
|
|
253
253
|
// These are the number formats
|
|
254
254
|
format: { type: String, enum: [null, 'number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance', 'M/d/yyyy', 'long'] },
|
|
@@ -415,7 +415,7 @@ module.exports = function(mongoose, config) {
|
|
|
415
415
|
label: { type: String, trim: true },
|
|
416
416
|
|
|
417
417
|
// Dictates the type of control rendered on form and data validation
|
|
418
|
-
type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Multiple Select', 'Timestamp', 'Tags', 'Person', 'Org', 'Poll'] },
|
|
418
|
+
type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Multiple Select', 'Timestamp', 'Tags', 'Link', 'Document', 'Person', 'Org', 'Poll'] },
|
|
419
419
|
|
|
420
420
|
// These are the number formats
|
|
421
421
|
format: { type: String, enum: [null, 'number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance', 'M/d/yyyy', 'long'] },
|
|
@@ -476,7 +476,7 @@ module.exports = function(mongoose, config) {
|
|
|
476
476
|
label: { type: String, trim: true },
|
|
477
477
|
|
|
478
478
|
// Dictates the type of control rendered on form and data validation
|
|
479
|
-
type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Multiple Select', 'Timestamp', 'Tags', 'Person', 'Org', 'Poll'] },
|
|
479
|
+
type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Multiple Select', 'Timestamp', 'Tags', 'Link', 'Document', 'Person', 'Org', 'Poll'] },
|
|
480
480
|
|
|
481
481
|
// These are the number formats
|
|
482
482
|
format: { type: String, enum: [null, 'number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance', 'M/d/yyyy', 'long'] },
|
|
@@ -539,7 +539,7 @@ module.exports = function(mongoose, config) {
|
|
|
539
539
|
label: { type: String, trim: true },
|
|
540
540
|
|
|
541
541
|
// Dictates the type of control rendered on form and data validation
|
|
542
|
-
type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Multiple Select', 'Timestamp', 'Tags', 'Person', 'Org', 'Poll'] },
|
|
542
|
+
type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Multiple Select', 'Timestamp', 'Tags', 'Link', 'Document', 'Person', 'Org', 'Poll'] },
|
|
543
543
|
|
|
544
544
|
// These are the number formats
|
|
545
545
|
format: { type: String, enum: [null, 'number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance', 'M/d/yyyy', 'long'] },
|