@divvydiary/divvydiary-json-schemas 1.2.1 → 1.2.2

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/index.js CHANGED
@@ -2,6 +2,7 @@ const article = require("./src/schemas/article.json");
2
2
  const defs = require("./src/schemas/_defs.json");
3
3
  const depot = require("./src/schemas/depot.json");
4
4
  const dividend = require("./src/schemas/dividend.json");
5
+ const earning = require("./src/schemas/earning.json");
5
6
  const portfolio = require("./src/schemas/portfolio.json");
6
7
  const split = require("./src/schemas/split.json");
7
8
  const symbol = require("./src/schemas/symbol.json");
@@ -12,6 +13,7 @@ module.exports = {
12
13
  defs,
13
14
  depot,
14
15
  dividend,
16
+ earning,
15
17
  portfolio,
16
18
  split,
17
19
  symbol,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divvydiary/divvydiary-json-schemas",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "JSON Schemas for DivvyDiary.com",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$id": "https://divvydiary.com/schemas/earning.json",
3
+ "type": "object",
4
+ "title": "Earning",
5
+ "properties": {
6
+ "id": {
7
+ "$ref": "https://divvydiary.com/schemas/defs.json#/properties/unsignedInt"
8
+ },
9
+ "period_date": {
10
+ "type": "string",
11
+ "format": "date"
12
+ },
13
+ "release_date": {
14
+ "type": "string",
15
+ "format": "date"
16
+ },
17
+ "revenue": {
18
+ "type": "number",
19
+ "nullable": true
20
+ },
21
+ "revenue_forecast": {
22
+ "type": "number",
23
+ "nullable": true
24
+ },
25
+ "eps": {
26
+ "type": "number",
27
+ "nullable": true
28
+ },
29
+ "eps_forecast": {
30
+ "type": "number",
31
+ "nullable": true
32
+ }
33
+ }
34
+ }