@dhyasama/totem-models 6.32.5 → 6.33.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.
Files changed (2) hide show
  1. package/lib/Organization.js +41 -24
  2. package/package.json +1 -1
@@ -183,21 +183,6 @@ module.exports = function(mongoose, config) {
183
183
  textColor: { type: String, default: '#ffffff', trim: true }
184
184
  },
185
185
 
186
- investmentsSheet: {
187
- sheet: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
188
- format: {
189
- proceedsConsolidated: { type: Boolean },
190
- unrealizedConsolidated: { type: Boolean }
191
- },
192
- googleSheetCreds: {
193
- private_key_id: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
194
- private_key: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
195
- client_email: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
196
- client_id: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
197
- type: { type: String, trim: true }
198
- }
199
- },
200
-
201
186
  carta: {
202
187
  firmid: { type: String, unique: true, partialFilterExpression : { type :"string" }, trim: true }
203
188
  },
@@ -210,14 +195,48 @@ module.exports = function(mongoose, config) {
210
195
  active: { type: Boolean, default: false }
211
196
  },
212
197
 
213
- financials : {
214
- active: { type: Boolean, default: false },
215
- questions: [{ type: String, trim: true }],
216
- metrics: [{ type: String, trim: true }],
217
- },
198
+ portfolio: {
199
+
200
+ reports: [{
201
+
202
+ name: { type: String, trim: true },
203
+ filters: [{
204
+ group: { type: String, trim: true },
205
+ item: { type: String, trim: true }
206
+ }],
207
+ sort: {
208
+ by: { type: String, trim: true },
209
+ reverse: { type: Boolean, default: false }
210
+ },
211
+ fields: [ {type: String, trim: true} ],
212
+
213
+ }],
214
+
215
+ financials : {
216
+ active: { type: Boolean, default: false },
217
+ questions: [{ type: String, trim: true }],
218
+ metrics: [{ type: String, trim: true }],
219
+ },
220
+
221
+ irr: {
222
+ active: { type: Boolean, default: false },
223
+ },
224
+
225
+ investmentsSheet: {
226
+ sheet: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
227
+ format: {
228
+ proceedsConsolidated: { type: Boolean },
229
+ unrealizedConsolidated: { type: Boolean }
230
+ },
231
+ googleSheetCreds: {
232
+ private_key_id: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
233
+ private_key: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
234
+ client_email: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
235
+ client_id: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
236
+ type: { type: String, trim: true }
237
+ }
238
+ }
218
239
 
219
- irr: {
220
- active: { type: Boolean, default: false },
221
240
  },
222
241
 
223
242
  deals: {
@@ -1087,8 +1106,6 @@ module.exports = function(mongoose, config) {
1087
1106
 
1088
1107
  };
1089
1108
 
1090
-
1091
-
1092
1109
  //////////////////////////////////////////////////////
1093
1110
  // STATICS
1094
1111
  // Statics query the entire collection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.32.5",
3
+ "version": "6.33.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",