@divvydiary/divvydiary-json-schemas 1.2.39 → 1.2.40
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 +2 -0
- package/package.json +1 -1
- package/src/schemas/activity.json +34 -0
- package/src/schemas/portfolio.json +6 -0
package/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const activity = require("./src/schemas/activity.json");
|
|
1
2
|
const article = require("./src/schemas/article.json");
|
|
2
3
|
const defs = require("./src/schemas/_defs.json");
|
|
3
4
|
const depot = require("./src/schemas/depot.json");
|
|
@@ -12,6 +13,7 @@ const userPublic = require("./src/schemas/userPublic.json");
|
|
|
12
13
|
const userSettings = require("./src/schemas/userSettings.json");
|
|
13
14
|
|
|
14
15
|
module.exports = {
|
|
16
|
+
activity,
|
|
15
17
|
article,
|
|
16
18
|
defs,
|
|
17
19
|
depot,
|
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://divvydiary.com/schemas/activity.json",
|
|
3
|
+
"title": "Activity",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"$ref": "https://divvydiary.com/schemas/defs.json#/properties/unsignedInt"
|
|
8
|
+
},
|
|
9
|
+
"type": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"enum": ["BUY", "SELL"]
|
|
12
|
+
},
|
|
13
|
+
"isin": {
|
|
14
|
+
"$ref": "https://divvydiary.com/schemas/defs.json#/properties/isin"
|
|
15
|
+
},
|
|
16
|
+
"quantity": { "type": "number", "minimum": 0 },
|
|
17
|
+
"datetime": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "date-time"
|
|
20
|
+
},
|
|
21
|
+
"amount": { "type": "number", "minimum": 0 },
|
|
22
|
+
"fees": { "type": "number", "minimum": 0 },
|
|
23
|
+
"taxes": { "type": "number", "minimum": 0 },
|
|
24
|
+
"currency": {
|
|
25
|
+
"$ref": "https://divvydiary.com/schemas/defs.json#/properties/currency"
|
|
26
|
+
},
|
|
27
|
+
"broker": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"brokerReference": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
"securities": {
|
|
55
55
|
"$ref": "https://divvydiary.com/schemas/depot.json"
|
|
56
56
|
},
|
|
57
|
+
"activities": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"$ref": "https://divvydiary.com/schemas/activity.json"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
57
63
|
"dividendsHistory": {
|
|
58
64
|
"type": "object",
|
|
59
65
|
"properties": {
|