@exodus/analytics-validation 2.0.0 → 2.1.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
+ ## [2.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.0.0...@exodus/analytics-validation@2.1.0) (2023-11-14)
7
+
8
+ ### Features
9
+
10
+ - **risk-metrics:** convert risk metrics events to common properties ([#4764](https://github.com/ExodusMovement/exodus-hydra/issues/4764)) ([7f6e072](https://github.com/ExodusMovement/exodus-hydra/commit/7f6e072cb0814078604e59c45795982b4e2f480c))
11
+
6
12
  ## [2.0.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.23.0...@exodus/analytics-validation@2.0.0) (2023-11-14)
7
13
 
8
14
  ### ⚠ BREAKING CHANGES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "2.0.0",
3
+ "version": "2.1.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": "2a0089fd6c1d97048fe21b6d19aea1dcc5ff6b6c"
35
+ "gitHead": "0c9e1fd4a17702698f57e861ec2e704e77f1bab0"
36
36
  }
@@ -213,6 +213,29 @@
213
213
  "format": "any-string",
214
214
  "minLength": 2,
215
215
  "maxLength": 4
216
+ },
217
+ "on_vpn": {
218
+ "type": "boolean"
219
+ },
220
+ "wallet_age": {
221
+ "type": "integer",
222
+ "minimum": 0
223
+ },
224
+ "device_tz_matches_ip": {
225
+ "type": "boolean"
226
+ },
227
+ "on_phone_call": {
228
+ "type": "boolean"
229
+ },
230
+ "restricted_device": {
231
+ "type": "boolean"
232
+ },
233
+ "restricted_os": {
234
+ "type": "boolean"
235
+ },
236
+ "number_of_assets": {
237
+ "type": "integer",
238
+ "minimum": 0
216
239
  }
217
240
  }
218
241
  }
@@ -264,9 +264,6 @@
264
264
  {
265
265
  "$ref": "restore-wallet-seed-input#"
266
266
  },
267
- {
268
- "$ref": "risk-metrics#"
269
- },
270
267
  {
271
268
  "$ref": "security-auto-lock-time-set#"
272
269
  },
@@ -1,54 +0,0 @@
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
- }