@barchart/portfolio-api-common 1.3.17 → 1.3.21

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.
@@ -113,7 +113,7 @@ module.exports = (() => {
113
113
  static get VALUATION() {
114
114
  return valuation;
115
115
  }
116
-
116
+
117
117
  static get DELIST() {
118
118
  return delist;
119
119
  }
@@ -162,6 +162,10 @@ module.exports = (() => {
162
162
  .withField('split.denominator', DataType.DECIMAL, true)
163
163
  .withField('split.effective', DataType.DAY, true)
164
164
  .withField('split.reference', DataType.STRING, true)
165
+ .withField('merger.numerator', DataType.DECIMAL, true)
166
+ .withField('merger.denominator', DataType.DECIMAL, true)
167
+ .withField('spinoff.numerator', DataType.DECIMAL, true)
168
+ .withField('spinoff.denominator', DataType.DECIMAL, true)
165
169
  .withField('charge.amount', DataType.DECIMAL, true)
166
170
  .withField('income.amount', DataType.DECIMAL, true)
167
171
  .withField('valuation.rate', DataType.DECIMAL, true)
@@ -201,6 +205,10 @@ module.exports = (() => {
201
205
  .withField('split.denominator', DataType.DECIMAL, true)
202
206
  .withField('split.effective', DataType.DAY, true)
203
207
  .withField('split.reference', DataType.STRING, true)
208
+ .withField('merger.numerator', DataType.DECIMAL, true)
209
+ .withField('merger.denominator', DataType.DECIMAL, true)
210
+ .withField('spinoff.numerator', DataType.DECIMAL, true)
211
+ .withField('spinoff.denominator', DataType.DECIMAL, true)
204
212
  .withField('charge.amount', DataType.DECIMAL, true)
205
213
  .withField('income.amount', DataType.DECIMAL, true)
206
214
  .withField('valuation.rate', DataType.DECIMAL, true)
@@ -326,7 +334,7 @@ module.exports = (() => {
326
334
  .withField('force', DataType.BOOLEAN, true)
327
335
  .schema
328
336
  );
329
-
337
+
330
338
  const delist = new TransactionSchema(SchemaBuilder.withName(TransactionType.DELIST.code)
331
339
  .withField('portfolio', DataType.STRING)
332
340
  .withField('position', DataType.STRING)
@@ -336,7 +344,7 @@ module.exports = (() => {
336
344
  .withField('force', DataType.BOOLEAN, true)
337
345
  .schema
338
346
  );
339
-
347
+
340
348
  const income = new TransactionSchema(SchemaBuilder.withName(TransactionType.INCOME.code)
341
349
  .withField('portfolio', DataType.STRING)
342
350
  .withField('position', DataType.STRING)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.3.17",
3
+ "version": "1.3.21",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -13,23 +13,21 @@
13
13
  "uuid": "3.1.0"
14
14
  },
15
15
  "devDependencies": {
16
- "babel-core": "^6.26.0",
17
- "babel-preset-es2015": "^6.24.1",
18
- "babelify": "^8.0.0",
19
- "browserify": "^14.5.0",
16
+ "@babel/core": "^7.6.2",
17
+ "babelify": "^10.0.0",
18
+ "browserify": "^16.5.0",
20
19
  "git-get-status": "^1.0.5",
21
20
  "glob": "^6.0.1",
22
- "gulp": "~3.9.0",
21
+ "gulp": "^4.0.2",
23
22
  "gulp-bump": "~1.0.0",
24
- "gulp-git": "^2.5.1",
23
+ "gulp-git": "^2.9.0",
25
24
  "gulp-jasmine": "^2.2.1",
25
+ "gulp-jsdoc3": "^1.0.1",
26
26
  "gulp-jshint": "~2.1.0",
27
- "gulp-util": "^3.0.7",
28
27
  "jsdoc": "^3.5.5",
29
28
  "jshint": "2.9.5",
30
- "run-sequence": "~1.1.4",
31
- "vinyl-buffer": "^1.0.0",
32
- "vinyl-source-stream": "^1.1.0"
29
+ "vinyl-buffer": "^1.0.1",
30
+ "vinyl-source-stream": "^2.0.0"
33
31
  },
34
32
  "license": "GPL-3.0"
35
33
  }