@dhyasama/totem-models 8.80.0 → 8.82.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 +5 -23
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -302,9 +302,7 @@ module.exports = function(mongoose, config) {
|
|
|
302
302
|
|
|
303
303
|
statuses: [{
|
|
304
304
|
name: { type: String, trim: true },
|
|
305
|
-
|
|
306
|
-
active: { type: Boolean, default: true },
|
|
307
|
-
color: { type: String, trim: true }
|
|
305
|
+
active: { type: Boolean, default: true }
|
|
308
306
|
}],
|
|
309
307
|
|
|
310
308
|
sourceTypes: { type: Array, default: ['Cold Inbound', 'Cold Outbound', 'Met at Event', 'Was Referred', 'Other'] },
|
|
@@ -324,7 +322,10 @@ module.exports = function(mongoose, config) {
|
|
|
324
322
|
|
|
325
323
|
// Dictates the type of control rendered on form
|
|
326
324
|
// Also impacts data validation
|
|
327
|
-
type: { type: String, enum: ['Text', 'Number', '
|
|
325
|
+
type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Timestamp', 'Tags', 'Person', 'Org', 'Poll'] },
|
|
326
|
+
|
|
327
|
+
// This is the format for numbers
|
|
328
|
+
format: { type: String, enum: ['number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
|
|
328
329
|
|
|
329
330
|
// These will be the choices in polls, single-selects and multi-selects
|
|
330
331
|
options: [{
|
|
@@ -340,25 +341,6 @@ module.exports = function(mongoose, config) {
|
|
|
340
341
|
|
|
341
342
|
}],
|
|
342
343
|
|
|
343
|
-
// For controlling display on web pages
|
|
344
|
-
display: {
|
|
345
|
-
|
|
346
|
-
// sets the order to render fields on list, org page deal section and deal edit form
|
|
347
|
-
// order is co-mingled with order for standard fields
|
|
348
|
-
order: { type: Number },
|
|
349
|
-
|
|
350
|
-
// colspan is for the number of columns the field should take up on the list page
|
|
351
|
-
colspan: { type: Number, default: 1 },
|
|
352
|
-
|
|
353
|
-
// showOnFilter controls whether values are extracted and used in filtering options on list page
|
|
354
|
-
showOnFilter: { type: Boolean, default: true },
|
|
355
|
-
|
|
356
|
-
// showOnList controls if the field will be on deal list page
|
|
357
|
-
// fields are always shown on org pages and in edit forms
|
|
358
|
-
showOnList: { type: Boolean, default: true }
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
|
|
362
344
|
}],
|
|
363
345
|
|
|
364
346
|
reports: [{
|