@exodus/analytics-validation 1.16.0 → 1.18.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.18.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.17.0...@exodus/analytics-validation@1.18.0) (2023-07-27)
7
+
8
+ ### Features
9
+
10
+ - **analytics-validation:** add wallet staking restake event validation ([#2929](https://github.com/ExodusMovement/exodus-hydra/issues/2929)) ([8b95f76](https://github.com/ExodusMovement/exodus-hydra/commit/8b95f7613a1526ea50207dc436a55fc142342764))
11
+
12
+ ## [1.17.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.16.0...@exodus/analytics-validation@1.17.0) (2023-07-26)
13
+
14
+ ### Features
15
+
16
+ - analytics profile-features-order-change ([#2928](https://github.com/ExodusMovement/exodus-hydra/issues/2928)) ([c3f4f1a](https://github.com/ExodusMovement/exodus-hydra/commit/c3f4f1a4826b19664960ba533fc2f71320fe67a1))
17
+
6
18
  ## [1.16.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.15.0...@exodus/analytics-validation@1.16.0) (2023-07-20)
7
19
 
8
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "1.16.0",
3
+ "version": "1.18.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": {
@@ -33,5 +33,5 @@
33
33
  "eslint": "^8.44.0",
34
34
  "jest": "^29.1.2"
35
35
  },
36
- "gitHead": "39bd368c5349c27c8cb2b528867115488f184b1a"
36
+ "gitHead": "a558d3d1e94bab6cb0c46c2c8f201abb59a2ed88"
37
37
  }
@@ -219,6 +219,9 @@
219
219
  {
220
220
  "$ref": "onboarding-page-view#"
221
221
  },
222
+ {
223
+ "$ref": "profile-features-order-change#"
224
+ },
222
225
  {
223
226
  "$ref": "referral-code-input#"
224
227
  },
@@ -369,6 +372,9 @@
369
372
  {
370
373
  "$ref": "wallet-staking-no-gas#"
371
374
  },
375
+ {
376
+ "$ref": "wallet-staking-restake#"
377
+ },
372
378
  {
373
379
  "$ref": "wallet-staking-stake#"
374
380
  },
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "ProfileFeaturesOrderChange"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": ["order_from", "order_to", "feature_name"],
16
+ "properties": {
17
+ "order_from": {
18
+ "type": "number"
19
+ },
20
+ "order_to": {
21
+ "type": "number"
22
+ },
23
+ "feature_name": {
24
+ "type": "string"
25
+ }
26
+ },
27
+ "unevaluatedProperties": false
28
+ }
29
+ },
30
+ "unevaluatedProperties": false,
31
+ "required": ["event", "properties"]
32
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "WalletStakingRestake"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "success": {
18
+ "type": "boolean"
19
+ },
20
+ "toggled_on": {
21
+ "type": "boolean"
22
+ },
23
+ "is_expiration": {
24
+ "type": "boolean"
25
+ },
26
+ "is_staking": {
27
+ "type": "boolean"
28
+ },
29
+ "staked_amount": {
30
+ "type": "string"
31
+ },
32
+ "staked_amount_usd": {
33
+ "type": "string"
34
+ },
35
+ "claimable_rewards_amount": {
36
+ "type": "string"
37
+ },
38
+ "claimable_rewards_amount_usd": {
39
+ "type": "string"
40
+ },
41
+ "asset_name": {
42
+ "type": "string"
43
+ },
44
+ "network": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "unevaluatedProperties": false
49
+ }
50
+ },
51
+ "unevaluatedProperties": false,
52
+ "required": ["event", "properties"]
53
+ }