@exodus/analytics-validation 2.0.0 → 2.2.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
+ ## [2.2.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.1.0...@exodus/analytics-validation@2.2.0) (2023-11-20)
7
+
8
+ ### Features
9
+
10
+ - add asset_sold_last_90 common property ([#4819](https://github.com/ExodusMovement/exodus-hydra/issues/4819)) ([5a14afe](https://github.com/ExodusMovement/exodus-hydra/commit/5a14afeca91ef838d981781b4dd3ad14a2fd7e0a))
11
+
12
+ ## [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)
13
+
14
+ ### Features
15
+
16
+ - **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))
17
+
6
18
  ## [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
19
 
8
20
  ### ⚠ 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.2.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": "a375b47d1d662ae35e5ad7cc3a2d7cce7ac19ee0"
36
36
  }
@@ -52,6 +52,9 @@
52
52
  "asset_purchased_last_90": {
53
53
  "type": "boolean"
54
54
  },
55
+ "asset_sold_last_90": {
56
+ "type": "boolean"
57
+ },
55
58
  "asset_received_last_90": {
56
59
  "type": "boolean"
57
60
  },
@@ -213,6 +216,29 @@
213
216
  "format": "any-string",
214
217
  "minLength": 2,
215
218
  "maxLength": 4
219
+ },
220
+ "on_vpn": {
221
+ "type": "boolean"
222
+ },
223
+ "wallet_age": {
224
+ "type": "integer",
225
+ "minimum": 0
226
+ },
227
+ "device_tz_matches_ip": {
228
+ "type": "boolean"
229
+ },
230
+ "on_phone_call": {
231
+ "type": "boolean"
232
+ },
233
+ "restricted_device": {
234
+ "type": "boolean"
235
+ },
236
+ "restricted_os": {
237
+ "type": "boolean"
238
+ },
239
+ "number_of_assets": {
240
+ "type": "integer",
241
+ "minimum": 0
216
242
  }
217
243
  }
218
244
  }
@@ -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
- }