@dhyasama/totem-models 8.94.0 → 8.97.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/Financials.js CHANGED
@@ -41,7 +41,7 @@ module.exports = function(mongoose, config) {
41
41
  form: [{
42
42
  _id: false,
43
43
  name: { type: String, trim: true },
44
- type: { type: String, enum: [null, 'title', 'block', 'document', 'metric', 'question']}
44
+ type: { type: String, enum: [null, 'header', 'block', 'document', 'metric', 'question']}
45
45
  }],
46
46
 
47
47
  cash: {
@@ -216,7 +216,7 @@ module.exports = function(mongoose, config) {
216
216
  type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Timestamp', 'Tags', 'Person', 'Org', 'Poll'] },
217
217
 
218
218
  // These are the number formats
219
- format: { type: String, enum: ['number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
219
+ format: { type: String, enum: [null, 'number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
220
220
 
221
221
  // These will be the choices in polls, single-selects and multi-selects
222
222
  options: [{
@@ -286,6 +286,10 @@ module.exports = function(mongoose, config) {
286
286
  type: { type: String, enum: [null, 'block', 'document', 'metric', 'question']}
287
287
  }]
288
288
  }],
289
+ headers: [{
290
+ _id: false,
291
+ name: { type: String, trim: true }
292
+ }],
289
293
  documents: [{
290
294
  _id: false,
291
295
  name: { type: String, trim: true },
@@ -317,7 +321,7 @@ module.exports = function(mongoose, config) {
317
321
  type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Timestamp', 'Tags', 'Person', 'Org', 'Poll'] },
318
322
 
319
323
  // These are the number formats
320
- format: { type: String, enum: ['number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
324
+ format: { type: String, enum: [null, 'number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
321
325
 
322
326
  // These will be the choices in polls, single-selects and multi-selects
323
327
  options: [{
@@ -386,7 +390,7 @@ module.exports = function(mongoose, config) {
386
390
  type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Timestamp', 'Tags', 'Person', 'Org', 'Poll'] },
387
391
 
388
392
  // These are the number formats
389
- format: { type: String, enum: ['number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
393
+ format: { type: String, enum: [null, 'number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
390
394
 
391
395
  // These will be the choices in polls, single-selects and multi-selects
392
396
  options: [{
@@ -449,7 +453,7 @@ module.exports = function(mongoose, config) {
449
453
  type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Timestamp', 'Tags', 'Person', 'Org', 'Poll'] },
450
454
 
451
455
  // These are the number formats
452
- format: { type: String, enum: ['number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
456
+ format: { type: String, enum: [null, 'number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
453
457
 
454
458
  // These will be the choices in polls, single-selects and multi-selects
455
459
  options: [{
@@ -514,7 +518,7 @@ module.exports = function(mongoose, config) {
514
518
  type: { type: String, enum: ['Text', 'Number', 'Checkbox', 'Single Select', 'Timestamp', 'Tags', 'Person', 'Org', 'Poll'] },
515
519
 
516
520
  // These are the number formats
517
- format: { type: String, enum: ['number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
521
+ format: { type: String, enum: [null, 'number', 'abbreviated', 'decimal', 'financials', 'currency', 'ownership', 'multiple', 'variance'] },
518
522
 
519
523
  // These will be the choices in polls, single-selects and multi-selects
520
524
  options: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.94.0",
3
+ "version": "8.97.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",