@barchart/portfolio-api-common 1.0.9 → 1.0.10

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.
@@ -36,6 +36,10 @@ module.exports = (() => {
36
36
  return complete;
37
37
  }
38
38
 
39
+ static get UPDATE() {
40
+ return update;
41
+ }
42
+
39
43
  toString() {
40
44
  return '[PortfolioSchema]';
41
45
  }
@@ -76,5 +80,15 @@ module.exports = (() => {
76
80
  .schema
77
81
  );
78
82
 
83
+ const update = new PortfolioSchema(SchemaBuilder.withName('Update')
84
+ .withField('name', DataType.STRING)
85
+ .withField('timezone', DataType.forEnum(Timezones, 'Timezone'))
86
+ .withField('dates.cash', DataType.DAY, true)
87
+ .withField('defaults.currency', DataType.forEnum(Currency, 'Currency'))
88
+ .withField('defaults.reinvest', DataType.BOOLEAN, true)
89
+ .withField('defaults.valuation', DataType.forEnum(ValuationType, 'ValuationType'))
90
+ .schema
91
+ );
92
+
79
93
  return PortfolioSchema;
80
94
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",