@dhyasama/totem-models 8.81.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 -4
- 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: [{
|