@dhyasama/totem-models 5.10.9 → 5.11.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/.npmignore +14 -0
- package/lib/Deal.js +10 -1
- package/lib/Organization.js +24 -1
- package/package-lock.json +1854 -0
- package/package.json +1 -1
package/.npmignore
ADDED
package/lib/Deal.js
CHANGED
|
@@ -62,10 +62,19 @@ module.exports = function(mongoose, config) {
|
|
|
62
62
|
value: { type: Number }
|
|
63
63
|
}],
|
|
64
64
|
|
|
65
|
-
sectors: [{ type: String, trim: true }]
|
|
65
|
+
sectors: [{ type: String, trim: true }],
|
|
66
|
+
|
|
67
|
+
customFields: { type: Schema.Types.Mixed }
|
|
66
68
|
|
|
67
69
|
});
|
|
68
70
|
|
|
71
|
+
var customExample = {
|
|
72
|
+
revenue: 1000000,
|
|
73
|
+
note: 'love it',
|
|
74
|
+
international: false,
|
|
75
|
+
region: 'Northeast',
|
|
76
|
+
industries: ['AI', 'Logistics']
|
|
77
|
+
};
|
|
69
78
|
|
|
70
79
|
|
|
71
80
|
///////////////////////////////////////////////////////////////////////////////////////
|
package/lib/Organization.js
CHANGED
|
@@ -203,13 +203,16 @@ module.exports = function(mongoose, config) {
|
|
|
203
203
|
},
|
|
204
204
|
|
|
205
205
|
deals: {
|
|
206
|
+
|
|
206
207
|
active: { type: Boolean, default: false },
|
|
208
|
+
|
|
207
209
|
statuses: [{
|
|
208
210
|
name: { type: String, trim: true },
|
|
209
211
|
order: { type: Number },
|
|
210
212
|
active: { type: Boolean, default: true },
|
|
211
213
|
color: { type: String, trim: true }
|
|
212
214
|
}],
|
|
215
|
+
|
|
213
216
|
voting: {
|
|
214
217
|
active: { type: Boolean, default: false },
|
|
215
218
|
votes: [{
|
|
@@ -217,9 +220,29 @@ module.exports = function(mongoose, config) {
|
|
|
217
220
|
value: { type: Number }
|
|
218
221
|
}]
|
|
219
222
|
},
|
|
223
|
+
|
|
220
224
|
sectors: {
|
|
221
225
|
active: { type: Boolean, default: false }
|
|
222
|
-
}
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
customFields: [{
|
|
229
|
+
|
|
230
|
+
permanentKey: { type: String, trim: true, required: true },
|
|
231
|
+
|
|
232
|
+
label: { type: String, trim: true, required: true },
|
|
233
|
+
|
|
234
|
+
type: { type: String, enum: ['Text', 'Checkbox', 'Single select', 'Multiple select'], required: true },
|
|
235
|
+
|
|
236
|
+
// These will be the values in single- and multi-selects
|
|
237
|
+
selectValues: [{ type: String, trim: true }],
|
|
238
|
+
|
|
239
|
+
display: {
|
|
240
|
+
order: { type: Number },
|
|
241
|
+
showOnList: { type: Boolean }
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
}]
|
|
245
|
+
|
|
223
246
|
}
|
|
224
247
|
|
|
225
248
|
},
|