@dhyasama/totem-models 6.32.5 → 6.33.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/Organization.js +42 -24
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -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,49 @@ module.exports = function(mongoose, config) {
|
|
|
210
195
|
active: { type: Boolean, default: false }
|
|
211
196
|
},
|
|
212
197
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
198
|
+
portfolio: {
|
|
199
|
+
|
|
200
|
+
reports: [{
|
|
201
|
+
|
|
202
|
+
name: { type: String, trim: true },
|
|
203
|
+
filters: [{
|
|
204
|
+
_id: false,
|
|
205
|
+
group: { type: String, trim: true },
|
|
206
|
+
item: { type: String, trim: true },
|
|
207
|
+
}],
|
|
208
|
+
sort: {
|
|
209
|
+
by: { type: String, trim: true },
|
|
210
|
+
reverse: { type: Boolean, default: false }
|
|
211
|
+
},
|
|
212
|
+
fields: [ {type: String, trim: true} ],
|
|
213
|
+
|
|
214
|
+
}],
|
|
215
|
+
|
|
216
|
+
financials : {
|
|
217
|
+
active: { type: Boolean, default: false },
|
|
218
|
+
questions: [{ type: String, trim: true }],
|
|
219
|
+
metrics: [{ type: String, trim: true }],
|
|
220
|
+
},
|
|
221
|
+
|
|
222
|
+
irr: {
|
|
223
|
+
active: { type: Boolean, default: false },
|
|
224
|
+
},
|
|
225
|
+
|
|
226
|
+
investmentsSheet: {
|
|
227
|
+
sheet: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
|
|
228
|
+
format: {
|
|
229
|
+
proceedsConsolidated: { type: Boolean },
|
|
230
|
+
unrealizedConsolidated: { type: Boolean }
|
|
231
|
+
},
|
|
232
|
+
googleSheetCreds: {
|
|
233
|
+
private_key_id: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
|
|
234
|
+
private_key: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
|
|
235
|
+
client_email: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
|
|
236
|
+
client_id: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
|
|
237
|
+
type: { type: String, trim: true }
|
|
238
|
+
}
|
|
239
|
+
}
|
|
218
240
|
|
|
219
|
-
irr: {
|
|
220
|
-
active: { type: Boolean, default: false },
|
|
221
241
|
},
|
|
222
242
|
|
|
223
243
|
deals: {
|
|
@@ -1087,8 +1107,6 @@ module.exports = function(mongoose, config) {
|
|
|
1087
1107
|
|
|
1088
1108
|
};
|
|
1089
1109
|
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
1110
|
//////////////////////////////////////////////////////
|
|
1093
1111
|
// STATICS
|
|
1094
1112
|
// Statics query the entire collection
|