@exodus/analytics-validation 1.22.0 → 1.23.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.23.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.22.0...@exodus/analytics-validation@1.23.0) (2023-11-10)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add NotificationAttributesTest event ([#4742](https://github.com/ExodusMovement/exodus-hydra/issues/4742)) ([84b2727](https://github.com/ExodusMovement/exodus-hydra/commit/84b272750c0e2e05d7c6c3d0a2e0d0cb01f5e7b4))
|
|
11
|
+
|
|
6
12
|
## [1.22.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.21.1...@exodus/analytics-validation@1.22.0) (2023-11-07)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ flowchart TD
|
|
|
21
21
|
B(You're done!)
|
|
22
22
|
C{Does it only require\n the 'origin' property?}
|
|
23
23
|
C -->|Yes| B
|
|
24
|
-
C -->|No| E[Generate a new JSON Schema: \nyarn generate
|
|
24
|
+
C -->|No| E[Generate a new JSON Schema: \nyarn generate analytics-validation]
|
|
25
25
|
E --> D[Adjust the schema and tests]
|
|
26
26
|
D --> B
|
|
27
27
|
|
|
@@ -32,7 +32,7 @@ flowchart TD
|
|
|
32
32
|
To add a new schema run
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
yarn generate
|
|
35
|
+
yarn generate analytics-validation
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
in the project root. The CLI tool will ask you for all details needed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/analytics-validation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "JSON schemas for analytics events, to prevent sensitive data from being sent up to the infamous cloud",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"eslint": "^8.44.0",
|
|
33
33
|
"jest": "^29.1.2"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "f903e6920ae319f38223de61aa5e802386e3f2a2"
|
|
36
36
|
}
|
package/src/main.schemasafe.json
CHANGED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "NotificationAttributesTest"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"has_backup": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"country": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "any-string",
|
|
23
|
+
"minLength": 2,
|
|
24
|
+
"maxLength": 4
|
|
25
|
+
},
|
|
26
|
+
"region": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "any-string",
|
|
29
|
+
"minLength": 2,
|
|
30
|
+
"maxLength": 4
|
|
31
|
+
},
|
|
32
|
+
"platform": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"format": "any-string",
|
|
35
|
+
"minLength": 2,
|
|
36
|
+
"maxLength": 10
|
|
37
|
+
},
|
|
38
|
+
"environment": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": "any-string",
|
|
41
|
+
"minLength": 2,
|
|
42
|
+
"maxLength": 20
|
|
43
|
+
},
|
|
44
|
+
"price_change_threshold": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"format": "any-string",
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"maxLength": 3
|
|
49
|
+
},
|
|
50
|
+
"topics": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": "any-string",
|
|
55
|
+
"minLength": 2,
|
|
56
|
+
"maxLength": 20
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"enabled_assets": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"format": "any-string",
|
|
64
|
+
"minLength": 2,
|
|
65
|
+
"maxLength": 30
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"unevaluatedProperties": false
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"unevaluatedProperties": false,
|
|
73
|
+
"required": ["event", "properties"]
|
|
74
|
+
}
|