@barchart/portfolio-api-common 1.0.12 → 1.0.16

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.
@@ -61,12 +61,11 @@ module.exports = (() => {
61
61
  .withField('legacy.warnings', DataType.NUMBER, true)
62
62
  .withField('legacy.drops', DataType.NUMBER, true)
63
63
  .withField('system.version', DataType.NUMBER, true)
64
+ .withField('data', DataType.OBJECT, true)
64
65
  .schema
65
66
  );
66
67
 
67
68
  const create = new PortfolioSchema(SchemaBuilder.withName('Create')
68
- .withField('user', DataType.STRING)
69
- .withField('portfolio', DataType.STRING)
70
69
  .withField('name', DataType.STRING)
71
70
  .withField('timezone', DataType.forEnum(Timezones, 'Timezone'))
72
71
  .withField('dates.create', DataType.DAY)
@@ -74,19 +73,18 @@ module.exports = (() => {
74
73
  .withField('defaults.currency', DataType.forEnum(Currency, 'Currency'))
75
74
  .withField('defaults.reinvest', DataType.BOOLEAN, true)
76
75
  .withField('defaults.valuation', DataType.forEnum(ValuationType, 'ValuationType'))
77
- .withField('system.version', DataType.NUMBER, true)
76
+ .withField('data', DataType.STRING)
78
77
  .schema
79
78
  );
80
79
 
81
80
  const update = new PortfolioSchema(SchemaBuilder.withName('Update')
82
- .withField('user', DataType.STRING)
83
- .withField('portfolio', DataType.STRING)
84
81
  .withField('name', DataType.STRING)
85
82
  .withField('timezone', DataType.forEnum(Timezones, 'Timezone'))
86
83
  .withField('dates.cash', DataType.DAY, true)
87
84
  .withField('defaults.currency', DataType.forEnum(Currency, 'Currency'))
88
85
  .withField('defaults.reinvest', DataType.BOOLEAN, true)
89
86
  .withField('defaults.valuation', DataType.forEnum(ValuationType, 'ValuationType'))
87
+ .withField('data', DataType.STRING)
90
88
  .schema
91
89
  );
92
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.12",
3
+ "version": "1.0.16",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",