@divvydiary/divvydiary-json-schemas 1.7.2 → 1.8.0

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
@@ -4,6 +4,7 @@ const defs = require("./src/schemas/_defs.json");
4
4
  const depot = require("./src/schemas/depot.json");
5
5
  const dividend = require("./src/schemas/dividend.json");
6
6
  const earning = require("./src/schemas/earning.json");
7
+ const limit = require("./src/schemas/limit.json");
7
8
  const news = require("./src/schemas/news.json");
8
9
  const performance = require("./src/schemas/performance.json");
9
10
  const portfolio = require("./src/schemas/portfolio.json");
@@ -20,6 +21,7 @@ module.exports = {
20
21
  depot,
21
22
  dividend,
22
23
  earning,
24
+ limit,
23
25
  news,
24
26
  performance,
25
27
  portfolio,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divvydiary/divvydiary-json-schemas",
3
- "version": "1.7.2",
3
+ "version": "1.8.0",
4
4
  "description": "JSON Schemas for DivvyDiary.com",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -0,0 +1,56 @@
1
+ {
2
+ "$id": "https://divvydiary.com/schemas/limit.json",
3
+ "type": "object",
4
+ "title": "Limits",
5
+ "properties": {
6
+ "id": {
7
+ "$ref": "https://divvydiary.com/schemas/defs.json#/properties/unsignedInt"
8
+ },
9
+ "name": {
10
+ "$ref": "https://divvydiary.com/schemas/defs.json#/properties/name"
11
+ },
12
+ "metric": {
13
+ "type": "string",
14
+ "enum": ["dividendYieldFWD", "price"]
15
+ },
16
+ "operator": {
17
+ "type": "string",
18
+ "enum": ["gte", "lte"]
19
+ },
20
+ "limit": {
21
+ "type": "number",
22
+ "minimum": 0
23
+ },
24
+ "nickname": {
25
+ "oneOf": [
26
+ {
27
+ "$ref": "https://divvydiary.com/schemas/defs.json#/properties/name"
28
+ },
29
+ { "type": "null" }
30
+ ]
31
+ },
32
+ "isin": {
33
+ "$ref": "https://divvydiary.com/schemas/defs.json#/properties/isin"
34
+ },
35
+ "currency": {
36
+ "oneOf": [
37
+ {
38
+ "$ref": "https://divvydiary.com/schemas/defs.json#/properties/currency"
39
+ },
40
+ { "type": "null" }
41
+ ]
42
+ },
43
+ "unread": {
44
+ "type": "boolean"
45
+ },
46
+ "securityType": {
47
+ "$ref": "https://divvydiary.com/schemas/defs.json#/properties/securityType"
48
+ },
49
+ "dividendYieldFWD": {
50
+ "$ref": "https://divvydiary.com/schemas/defs.json#/properties/dividendYield"
51
+ },
52
+ "price": {
53
+ "type": "number"
54
+ }
55
+ }
56
+ }
@@ -97,6 +97,11 @@
97
97
  "minimum": 0,
98
98
  "default": 0
99
99
  },
100
+ "unreadLimits": {
101
+ "type": "integer",
102
+ "minimum": 0,
103
+ "default": 0
104
+ },
100
105
  "aristocrat": {
101
106
  "type": "boolean",
102
107
  "default": false