@exodus/analytics-validation 1.21.1 → 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,18 @@
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
+
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)
13
+
14
+ ### Features
15
+
16
+ - setup risk metrics analytics validation schema ([#4697](https://github.com/ExodusMovement/exodus-hydra/issues/4697)) ([ee6b23d](https://github.com/ExodusMovement/exodus-hydra/commit/ee6b23d57fa136a6f0314120136928aeb5ea8f5d))
17
+
6
18
  ## [1.21.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.21.0...@exodus/analytics-validation@1.21.1) (2023-11-03)
7
19
 
8
20
  ### Bug Fixes
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:analytics-validation]
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:analytics-validation
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.21.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": "df064713cdf8d7a319105f66016474f7810122ad"
35
+ "gitHead": "f903e6920ae319f38223de61aa5e802386e3f2a2"
36
36
  }
@@ -0,0 +1,54 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "RiskMetrics"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [
16
+ "on_vpn",
17
+ "wallet_age",
18
+ "device_tz_matches_ip",
19
+ "on_phone_call",
20
+ "restricted_device",
21
+ "restricted_os",
22
+ "number_of_assets"
23
+ ],
24
+ "properties": {
25
+ "on_vpn": {
26
+ "type": "boolean"
27
+ },
28
+ "wallet_age": {
29
+ "type": "integer",
30
+ "minimum": 0
31
+ },
32
+ "device_tz_matches_ip": {
33
+ "type": "boolean"
34
+ },
35
+ "on_phone_call": {
36
+ "type": "boolean"
37
+ },
38
+ "restricted_device": {
39
+ "type": "boolean"
40
+ },
41
+ "restricted_os": {
42
+ "type": "boolean"
43
+ },
44
+ "number_of_assets": {
45
+ "type": "integer",
46
+ "minimum": 0
47
+ }
48
+ },
49
+ "unevaluatedProperties": false
50
+ }
51
+ },
52
+ "unevaluatedProperties": false,
53
+ "required": ["event", "properties"]
54
+ }
@@ -171,6 +171,9 @@
171
171
  {
172
172
  "$ref": "nfts-proxy-server-get-image#"
173
173
  },
174
+ {
175
+ "$ref": "notification-attributes-test#"
176
+ },
174
177
  {
175
178
  "$ref": "notification-cta-tap#"
176
179
  },
@@ -261,6 +264,9 @@
261
264
  {
262
265
  "$ref": "restore-wallet-seed-input#"
263
266
  },
267
+ {
268
+ "$ref": "risk-metrics#"
269
+ },
264
270
  {
265
271
  "$ref": "security-auto-lock-time-set#"
266
272
  },
@@ -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
+ }