@exodus/analytics-validation 2.8.0 → 2.10.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.10.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.9.0...@exodus/analytics-validation@2.10.0) (2024-01-02)
7
+
8
+ ### Features
9
+
10
+ - add number_of_assets_enabled to analytics validation ([#5226](https://github.com/ExodusMovement/exodus-hydra/issues/5226)) ([aa3fa11](https://github.com/ExodusMovement/exodus-hydra/commit/aa3fa11a564641292b5ed5d6330e38e2ddd74fcc))
11
+
12
+ ## [2.9.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.8.0...@exodus/analytics-validation@2.9.0) (2023-12-19)
13
+
14
+ ### Features
15
+
16
+ - **exchange:** add bounce event ([#5135](https://github.com/ExodusMovement/exodus-hydra/issues/5135)) ([5e3489e](https://github.com/ExodusMovement/exodus-hydra/commit/5e3489eecd7e3699028cbd25abd03c4d127e63c5))
17
+
6
18
  ## [2.8.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.7.0...@exodus/analytics-validation@2.8.0) (2023-12-13)
7
19
 
8
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "2.8.0",
3
+ "version": "2.10.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": {
@@ -42,5 +42,5 @@
42
42
  }
43
43
  }
44
44
  },
45
- "gitHead": "8a27fc57a2783ecc728030da8b3d2a10fa8f915c"
45
+ "gitHead": "0225f279fac8be5d14f12809f6acc0093c1bfa4d"
46
46
  }
@@ -227,6 +227,10 @@
227
227
  "type": "integer",
228
228
  "minimum": 0
229
229
  },
230
+ "number_of_assets_enabled": {
231
+ "type": "integer",
232
+ "minimum": 0
233
+ },
230
234
  "trust_score": {
231
235
  "type": "number",
232
236
  "minimum": 0
@@ -0,0 +1,94 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "ExchangeConfigureAssetSwapBounce"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [
16
+ "user_asset_to",
17
+ "user_asset_to_network",
18
+ "user_amount_to",
19
+ "user_asset_from",
20
+ "user_asset_from_network",
21
+ "user_amount_from",
22
+ "spread_percent"
23
+ ],
24
+ "properties": {
25
+ "user_asset_to": {
26
+ "type": "string"
27
+ },
28
+ "user_asset_to_network": {
29
+ "type": "string"
30
+ },
31
+ "user_amount_to": {
32
+ "type": "number"
33
+ },
34
+ "user_amount_to_usd": {
35
+ "type": "number"
36
+ },
37
+ "user_asset_from": {
38
+ "type": "string"
39
+ },
40
+ "user_asset_from_network": {
41
+ "type": "string"
42
+ },
43
+ "user_amount_from": {
44
+ "type": "number"
45
+ },
46
+ "user_amount_from_usd": {
47
+ "type": "number"
48
+ },
49
+ "spread_percent": {
50
+ "type": "number"
51
+ },
52
+ "spread_amount_usd": {
53
+ "type": "number"
54
+ },
55
+ "max_network_fee": {
56
+ "type": "number"
57
+ },
58
+ "has_more_than_min": {
59
+ "type": "boolean"
60
+ },
61
+ "has_more_than_max": {
62
+ "type": "boolean"
63
+ },
64
+ "all_or_max": {
65
+ "type": "string"
66
+ },
67
+ "amount_buttons_pressed": {
68
+ "type": "array",
69
+ "items": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "user_balance_from": {
74
+ "type": "number"
75
+ },
76
+ "user_balance_from_usd": {
77
+ "type": "number"
78
+ },
79
+ "user_balance_over_fees": {
80
+ "type": "boolean"
81
+ },
82
+ "number_of_swap_direction_changes": {
83
+ "type": "number"
84
+ },
85
+ "default_pair": {
86
+ "type": "boolean"
87
+ }
88
+ },
89
+ "unevaluatedProperties": false
90
+ }
91
+ },
92
+ "unevaluatedProperties": false,
93
+ "required": ["event", "properties"]
94
+ }
@@ -72,6 +72,9 @@
72
72
  {
73
73
  "$ref": "exchange-asset-swap#"
74
74
  },
75
+ {
76
+ "$ref": "exchange-configure-asset-swap-bounce#"
77
+ },
75
78
  {
76
79
  "$ref": "exchange-no-gas#"
77
80
  },