@dhyasama/totem-models 7.44.0 → 7.45.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/Account.js +1 -0
- package/lib/Activity.js +1 -0
- package/lib/CalendarEvent.js +1 -0
- package/lib/CapTable.js +1 -0
- package/lib/Deal.js +1 -0
- package/lib/Document.js +1 -0
- package/lib/Financials.js +1 -0
- package/lib/Flag.js +1 -0
- package/lib/Fund.js +1 -0
- package/lib/Interaction.js +1 -0
- package/lib/Investment.js +1 -0
- package/lib/LimitedPartner.js +1 -0
- package/lib/List.js +1 -0
- package/lib/Message.js +1 -0
- package/lib/News.js +1 -0
- package/lib/Note.js +1 -0
- package/lib/Organization.js +1 -0
- package/lib/Person.js +1 -0
- package/lib/Round.js +1 -0
- package/lib/Snapshot.js +2 -0
- package/lib/Sync.js +1 -0
- package/lib/Webhook.js +1 -0
- package/package.json +2 -2
package/lib/Account.js
CHANGED
|
@@ -192,6 +192,7 @@ module.exports = function(mongoose, config) {
|
|
|
192
192
|
});
|
|
193
193
|
|
|
194
194
|
Account.set('autoIndex', false);
|
|
195
|
+
Account.set('usePushEach', true);
|
|
195
196
|
Account.on('index', function(err) { console.log('error building account indexes: ' + err); });
|
|
196
197
|
|
|
197
198
|
var deepPopulate = require('mongoose-deep-populate')(mongoose);
|
package/lib/Activity.js
CHANGED
|
@@ -131,6 +131,7 @@ module.exports = function(mongoose, config) {
|
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
Activity.set('autoIndex', false);
|
|
134
|
+
Activity.set('usePushEach', true);
|
|
134
135
|
Activity.on('index', function(err) { console.log('error building activity indexes: ' + err); });
|
|
135
136
|
|
|
136
137
|
mongoose.model('Activity', Activity);
|
package/lib/CalendarEvent.js
CHANGED
|
@@ -183,6 +183,7 @@ module.exports = function(mongoose, config) {
|
|
|
183
183
|
});
|
|
184
184
|
|
|
185
185
|
CalendarEvent.set('autoIndex', false);
|
|
186
|
+
CalendarEvent.set('usePushEach', true);
|
|
186
187
|
CalendarEvent.on('index', function(err) { console.log('error building calendar event indexes: ' + err); });
|
|
187
188
|
|
|
188
189
|
mongoose.model('CalendarEvent', CalendarEvent);
|
package/lib/CapTable.js
CHANGED
|
@@ -419,6 +419,7 @@ module.exports = function(mongoose, config) {
|
|
|
419
419
|
///////////////////////////////////////////////////////////////////////////////////////
|
|
420
420
|
|
|
421
421
|
CapTable.set('toJSON', { virtuals: true });
|
|
422
|
+
CapTable.set('usePushEach', true);
|
|
422
423
|
CapTable.set('autoIndex', false);
|
|
423
424
|
|
|
424
425
|
CapTable.index({ organization: 1, customer: 1 }, { unique: true, partialFilterExpression : { type :"string" } });
|
package/lib/Deal.js
CHANGED
|
@@ -388,6 +388,7 @@ module.exports = function(mongoose, config) {
|
|
|
388
388
|
|
|
389
389
|
Deal.set('toJSON', { virtuals: true });
|
|
390
390
|
Deal.set('autoIndex', false);
|
|
391
|
+
Deal.set('usePushEach', true);
|
|
391
392
|
Deal.on('index', function(err) { console.log('error building deal indexes: ' + err); });
|
|
392
393
|
|
|
393
394
|
var deepPopulate = require('mongoose-deep-populate')(mongoose);
|
package/lib/Document.js
CHANGED
|
@@ -202,6 +202,7 @@ module.exports = function(mongoose, config) {
|
|
|
202
202
|
|
|
203
203
|
Document.set('toJSON', { virtuals: true });
|
|
204
204
|
Document.set('autoIndex', false);
|
|
205
|
+
Document.set('usePushEach', true);
|
|
205
206
|
Document.on('index', function(err) { console.log('error building document indexes: ' + err); });
|
|
206
207
|
|
|
207
208
|
mongoose.model('Document', Document);
|
package/lib/Financials.js
CHANGED
|
@@ -514,6 +514,7 @@ module.exports = function(mongoose, config) {
|
|
|
514
514
|
///////////////////////////////////////////////////////////////////////////////////////
|
|
515
515
|
|
|
516
516
|
Financials.set('toJSON', { virtuals: true });
|
|
517
|
+
Financials.set('usePushEach', true);
|
|
517
518
|
Financials.set('autoIndex', false);
|
|
518
519
|
|
|
519
520
|
Financials.on('index', function(err) { console.log('error building financials indexes: ' + err); });
|
package/lib/Flag.js
CHANGED
package/lib/Fund.js
CHANGED
|
@@ -195,6 +195,7 @@ module.exports = function(mongoose, config) {
|
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
Fund.set('autoIndex', false);
|
|
198
|
+
Fund.set('usePushEach', true);
|
|
198
199
|
Fund.on('index', function(err) { console.log('error building fund indexes: ' + err); });
|
|
199
200
|
|
|
200
201
|
mongoose.model('Fund', Fund);
|
package/lib/Interaction.js
CHANGED
|
@@ -222,6 +222,7 @@ module.exports = function(mongoose, config) {
|
|
|
222
222
|
};
|
|
223
223
|
|
|
224
224
|
Interaction.set('autoIndex', false);
|
|
225
|
+
Interaction.set('usePushEach', true);
|
|
225
226
|
Interaction.on('index', function(err) { console.log('error building interaction indexes: ' + err); });
|
|
226
227
|
|
|
227
228
|
var deepPopulate = require('mongoose-deep-populate')(mongoose);
|
package/lib/Investment.js
CHANGED
|
@@ -171,6 +171,7 @@ module.exports = function(mongoose, config) {
|
|
|
171
171
|
///////////////////////////////////////////////////////////////////////////////////////
|
|
172
172
|
|
|
173
173
|
Investment.set('toJSON', { virtuals: true });
|
|
174
|
+
Investment.set('usePushEach', true);
|
|
174
175
|
Investment.set('autoIndex', false);
|
|
175
176
|
|
|
176
177
|
Investment.on('index', function(err) { console.log('error building Investment indexes: ' + err); });
|
package/lib/LimitedPartner.js
CHANGED
|
@@ -957,6 +957,7 @@ module.exports = function(mongoose, config) {
|
|
|
957
957
|
//////////////////////////////
|
|
958
958
|
|
|
959
959
|
LimitedPartner.set('autoIndex', false);
|
|
960
|
+
LimitedPartner.set('usePushEach', true);
|
|
960
961
|
LimitedPartner.on('index', function(err) { console.log('error building limited partner indexes: ' + err); });
|
|
961
962
|
|
|
962
963
|
LimitedPartner.set('toJSON', { virtuals: true });
|
package/lib/List.js
CHANGED
|
@@ -297,6 +297,7 @@ module.exports = function(mongoose, config) {
|
|
|
297
297
|
});
|
|
298
298
|
|
|
299
299
|
List.set('autoIndex', false);
|
|
300
|
+
List.set('usePushEach', true);
|
|
300
301
|
List.on('index', function(err) { console.log('error building list indexes: ' + err); });
|
|
301
302
|
|
|
302
303
|
mongoose.model('List', List);
|
package/lib/Message.js
CHANGED
|
@@ -329,6 +329,7 @@ module.exports = function(mongoose, config) {
|
|
|
329
329
|
///////////////////////////////////////
|
|
330
330
|
|
|
331
331
|
Message.set('autoIndex', false);
|
|
332
|
+
Message.set('usePushEach', true);
|
|
332
333
|
Message.set('toJSON', { virtuals: true });
|
|
333
334
|
|
|
334
335
|
var deepPopulate = require('mongoose-deep-populate')(mongoose);
|
package/lib/News.js
CHANGED
|
@@ -120,6 +120,7 @@ module.exports = function(mongoose, config) {
|
|
|
120
120
|
};
|
|
121
121
|
|
|
122
122
|
News.set('autoIndex', false);
|
|
123
|
+
News.set('usePushEach', true);
|
|
123
124
|
News.on('index', function(err) { console.log('error building news indexes: ' + err); });
|
|
124
125
|
|
|
125
126
|
mongoose.model('News', News);
|
package/lib/Note.js
CHANGED
|
@@ -133,6 +133,7 @@ module.exports = function(mongoose, config) {
|
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
Note.set('autoIndex', false);
|
|
136
|
+
Note.set('usePushEach', true);
|
|
136
137
|
Note.on('index', function(err) { console.log('error building note indexes: ' + err); });
|
|
137
138
|
|
|
138
139
|
mongoose.model('Note', Note);
|
package/lib/Organization.js
CHANGED
|
@@ -2207,6 +2207,7 @@ module.exports = function(mongoose, config) {
|
|
|
2207
2207
|
///////////////////////////////////////////////////////////////////////////////////////
|
|
2208
2208
|
|
|
2209
2209
|
Organization.set('toJSON', { virtuals: true });
|
|
2210
|
+
Organization.set('usePushEach', true);
|
|
2210
2211
|
Organization.set('autoIndex', false);
|
|
2211
2212
|
|
|
2212
2213
|
Organization.index({ website: 1, websiteAliases: 1 }, { unique: true, partialFilterExpression : { type :"string" } });
|
package/lib/Person.js
CHANGED
|
@@ -1351,6 +1351,7 @@ module.exports = function(mongoose, config) {
|
|
|
1351
1351
|
Person.plugin(deepPopulate);
|
|
1352
1352
|
|
|
1353
1353
|
Person.set('autoIndex', false);
|
|
1354
|
+
Person.set('usePushEach', true);
|
|
1354
1355
|
Person.on('index', function(err) { console.log('error building person indexes: ' + err); });
|
|
1355
1356
|
|
|
1356
1357
|
Person.set('toJSON', { virtuals: true });
|
package/lib/Round.js
CHANGED
|
@@ -900,6 +900,7 @@ module.exports = function(mongoose, config) {
|
|
|
900
900
|
///////////////////////////////////////////////////////////////////////////////////////
|
|
901
901
|
|
|
902
902
|
Round.set('toJSON', { virtuals: true });
|
|
903
|
+
Round.set('usePushEach', true);
|
|
903
904
|
Round.set('autoIndex', false);
|
|
904
905
|
|
|
905
906
|
Round.index({ organization: 1, roundName: 1 }, { unique: true, partialFilterExpression : { type :"string" } });
|
package/lib/Snapshot.js
CHANGED
package/lib/Sync.js
CHANGED
package/lib/Webhook.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhyasama/totem-models",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.45.0",
|
|
4
4
|
"author": "Jason Reynolds",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "Models for Totem platform",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"mocha": "^5.2.0",
|
|
33
33
|
"mocha-mongoose": "^1.2.0",
|
|
34
|
-
"mongoose": "~4.
|
|
34
|
+
"mongoose": "~4.6.4",
|
|
35
35
|
"nock": "^7.2.2",
|
|
36
36
|
"rewire": "^3.0.2",
|
|
37
37
|
"should": "^11.1.1"
|