@dhyasama/totem-models 6.8.7 → 6.8.9

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.
@@ -1331,7 +1331,7 @@ module.exports = function(mongoose, config) {
1331
1331
  query.populate('related', 'name logoUrl');
1332
1332
  query.populate('chairs.first', 'name avatarUrl title');
1333
1333
  query.populate('chairs.second', 'name avatarUrl title');
1334
- query.populate('funds', 'name hexColorCode abbreviation closeDate');
1334
+ query.populate('funds', 'name shortName hexColorCode abbreviation closeDate');
1335
1335
  query.populate('operating.acquired.public.by', 'name logoUrl');
1336
1336
  query.populate('operating.acquired.private.by', 'name logoUrl');
1337
1337
  query.populate(dealPopulateOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.8.7",
3
+ "version": "6.8.9",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",
@@ -135,6 +135,14 @@ describe('Organization', function() {
135
135
 
136
136
  before(function (done) {
137
137
 
138
+ //action
139
+ //raise
140
+ //valuation
141
+ //sources
142
+ //referrers
143
+ //chairs
144
+
145
+
138
146
  customer1 = new Organization();
139
147
  customer1.name = 'New Customer';
140
148
  customer1.slug = 'new-customer';
@@ -164,25 +172,35 @@ describe('Organization', function() {
164
172
  }
165
173
  ],
166
174
  standardFields: {
167
- fundraise: {
175
+ action: {
168
176
  active: true,
169
177
  showOnList: true,
170
178
  order: 3
171
179
  },
180
+ raise: {
181
+ active: true,
182
+ showOnList: true,
183
+ order: 4
184
+ },
185
+ valuation: {
186
+ active: true,
187
+ showOnList: true,
188
+ order: 5
189
+ },
172
190
  sources: {
173
191
  active: true,
174
192
  showOnList: false,
175
- order: 4
193
+ order: 6
176
194
  },
177
195
  referrers: {
178
196
  active: true,
179
197
  showOnList: false,
180
- order: 5
198
+ order: 7
181
199
  },
182
- resources: {
200
+ chairs: {
183
201
  active: true,
184
202
  showOnList: false,
185
- order: 6
203
+ order: 8
186
204
  },
187
205
  },
188
206
  customFields: [
@@ -1190,7 +1208,14 @@ describe('Organization', function() {
1190
1208
 
1191
1209
  var fields = customer1.customer.deals.fields;
1192
1210
 
1193
- fields.length.should.equal(4);
1211
+ fields.length.should.equal(5);
1212
+
1213
+ //action
1214
+ //raise
1215
+ //valuation
1216
+ //sources
1217
+ //referrers
1218
+ //chairs
1194
1219
 
1195
1220
  should.exist(fields[0].name);
1196
1221
  should.exist(fields[0].key);
@@ -1205,25 +1230,32 @@ describe('Organization', function() {
1205
1230
  should.exist(fields[1].order);
1206
1231
  should.exist(fields[1].colspan);
1207
1232
  should.exist(fields[1].showOnFilter);
1208
- fields[1].name.should.equal('Fundraise Amount');
1233
+ fields[1].name.should.equal('Next Steps');
1209
1234
  fields[1].order.should.equal(1);
1210
1235
 
1211
1236
  should.exist(fields[2].name);
1212
1237
  should.exist(fields[2].order);
1213
1238
  should.exist(fields[2].colspan);
1214
1239
  should.exist(fields[2].showOnFilter);
1215
- fields[2].name.should.equal('Fundraise Valuation');
1240
+ fields[2].name.should.equal('Raise');
1216
1241
  fields[2].order.should.equal(2);
1217
1242
 
1218
1243
  should.exist(fields[3].name);
1219
- should.exist(fields[3].key);
1220
1244
  should.exist(fields[3].order);
1221
1245
  should.exist(fields[3].colspan);
1222
1246
  should.exist(fields[3].showOnFilter);
1223
- should.exist(fields[3].options);
1224
- fields[3].name.should.equal('Test Field Last');
1247
+ fields[3].name.should.equal('Valuation');
1225
1248
  fields[3].order.should.equal(3);
1226
1249
 
1250
+ should.exist(fields[4].name);
1251
+ should.exist(fields[4].key);
1252
+ should.exist(fields[4].order);
1253
+ should.exist(fields[4].colspan);
1254
+ should.exist(fields[4].showOnFilter);
1255
+ should.exist(fields[4].options);
1256
+ fields[4].name.should.equal('Test Field Last');
1257
+ fields[4].order.should.equal(4);
1258
+
1227
1259
  return done();
1228
1260
 
1229
1261