@dhyasama/totem-models 2.3.2 → 2.3.4

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
@@ -20,9 +20,10 @@ module.exports = function(mongoose, config) {
20
20
  customer: { type: Schema.ObjectId, ref: 'Organization', required: true, index: true },
21
21
 
22
22
  asOfDate: { type: Date, required: true },
23
- burn: { type: Number, default: 0 },
24
- runway: { type: Number, default: 0 },
25
- cashBalance: { type: Number, default: 0 },
23
+ monthlyNetBurn: { type: Number, default: 0 },
24
+ monthsOfRunway: { type: Number, default: 0 },
25
+ totalCash: { type: Number, default: 0 },
26
+ totalDebt: { type: Number, default: 0 },
26
27
 
27
28
  revenue: {
28
29
  ytd: { type: Number, default: 0 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",
@@ -31,7 +31,7 @@ describe('Financials', function() {
31
31
  organization: orgA,
32
32
  customer: customerA,
33
33
  asOfDate: new Date(),
34
- runway: 1
34
+ monthsOfRunway: 1
35
35
  });
36
36
 
37
37
  Financials.upsert(f, function(err, result) {
@@ -48,7 +48,7 @@ describe('Financials', function() {
48
48
  organization: orgB,
49
49
  customer: customerA,
50
50
  asOfDate: new Date(),
51
- runway: 2
51
+ monthsOfRunway: 2
52
52
  });
53
53
 
54
54
  Financials.upsert(f, function(err, result) {
@@ -60,7 +60,7 @@ describe('Financials', function() {
60
60
  organization: orgB,
61
61
  customer: customerB,
62
62
  asOfDate: new Date(),
63
- runway: 3
63
+ monthsOfRunway: 3
64
64
  });
65
65
 
66
66
  Financials.upsert(f, function(err, result) {
@@ -72,7 +72,7 @@ describe('Financials', function() {
72
72
  organization: orgA,
73
73
  customer: customerB,
74
74
  asOfDate: new Date(),
75
- runway: 4
75
+ monthsOfRunway: 4
76
76
  });
77
77
 
78
78
  Financials.upsert(f, function(err, result) {
@@ -95,7 +95,7 @@ describe('Financials', function() {
95
95
  should.not.exist(err);
96
96
  should.exist(result);
97
97
  result.length.should.equal(1);
98
- result[0].runway.should.equal(1);
98
+ result[0].monthsOfRunway.should.equal(1);
99
99
  done();
100
100
  });
101
101
 
@@ -109,7 +109,7 @@ describe('Financials', function() {
109
109
  should.not.exist(err);
110
110
  should.exist(result);
111
111
  result.length.should.equal(1);
112
- result[0].runway.should.equal(4);
112
+ result[0].monthsOfRunway.should.equal(4);
113
113
  done();
114
114
  });
115
115
 
@@ -135,8 +135,8 @@ describe('Financials', function() {
135
135
  should.not.exist(err);
136
136
  should.exist(result);
137
137
  result.length.should.equal(2);
138
- result[0].runway.should.equal(3);
139
- result[1].runway.should.equal(4);
138
+ result[0].monthsOfRunway.should.equal(3);
139
+ result[1].monthsOfRunway.should.equal(4);
140
140
 
141
141
  done();
142
142