@dhyasama/totem-models 6.32.4 → 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.
- package/lib/Organization.js +42 -21
- 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,10 +195,48 @@ module.exports = function(mongoose, config) {
|
|
|
210
195
|
active: { type: Boolean, default: false }
|
|
211
196
|
},
|
|
212
197
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
+
}
|
|
239
|
+
|
|
217
240
|
},
|
|
218
241
|
|
|
219
242
|
deals: {
|
|
@@ -1083,8 +1106,6 @@ module.exports = function(mongoose, config) {
|
|
|
1083
1106
|
|
|
1084
1107
|
};
|
|
1085
1108
|
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
1109
|
//////////////////////////////////////////////////////
|
|
1089
1110
|
// STATICS
|
|
1090
1111
|
// Statics query the entire collection
|