@exodus/analytics-validation 1.15.0 → 1.16.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
+ ## [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
+
8
+ ### Features
9
+
10
+ - **telemetry:** validate addition of asset dimensions on wallets telemetry ([#2401](https://github.com/ExodusMovement/exodus-hydra/issues/2401)) ([65ecf0f](https://github.com/ExodusMovement/exodus-hydra/commit/65ecf0fac231a7a5e62a5499eda88f6b4f1dccb2))
11
+
6
12
  ## [1.15.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.14.0...@exodus/analytics-validation@1.15.0) (2023-07-18)
7
13
 
8
14
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "1.15.0",
3
+ "version": "1.16.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": "df15f15fb4c5b0a3c1a016a0afbfad3aa469ab82"
36
+ "gitHead": "39bd368c5349c27c8cb2b528867115488f184b1a"
37
37
  }
@@ -20,6 +20,9 @@
20
20
  "connection_protocol": {
21
21
  "type": "string",
22
22
  "enum": ["WalletConnect"]
23
+ },
24
+ "network": {
25
+ "type": "string"
23
26
  }
24
27
  },
25
28
  "unevaluatedProperties": false
@@ -26,6 +26,12 @@
26
26
  },
27
27
  "user_amount_from_usd": {
28
28
  "type": "number"
29
+ },
30
+ "asset_name": {
31
+ "type": "string"
32
+ },
33
+ "network": {
34
+ "type": "string"
29
35
  }
30
36
  },
31
37
  "unevaluatedProperties": false
@@ -20,6 +20,12 @@
20
20
  "coin_or_token": {
21
21
  "type": "string",
22
22
  "enum": ["coin", "token"]
23
+ },
24
+ "asset_name": {
25
+ "type": "string"
26
+ },
27
+ "network": {
28
+ "type": "string"
23
29
  }
24
30
  },
25
31
  "unevaluatedProperties": false
@@ -324,12 +324,21 @@
324
324
  {
325
325
  "$ref": "wallet-asset-network-manual-refresh#"
326
326
  },
327
+ {
328
+ "$ref": "wallet-asset-receive-view#"
329
+ },
327
330
  {
328
331
  "$ref": "wallet-asset-send-no-gas#"
329
332
  },
333
+ {
334
+ "$ref": "wallet-asset-send-view#"
335
+ },
330
336
  {
331
337
  "$ref": "wallet-asset-send#"
332
338
  },
339
+ {
340
+ "$ref": "wallet-asset-view#"
341
+ },
333
342
  {
334
343
  "$ref": "wallet-connect-connection-added#"
335
344
  },
@@ -348,6 +357,12 @@
348
357
  {
349
358
  "$ref": "wallet-connect-fiat-on-ramp-cta-tap#"
350
359
  },
360
+ {
361
+ "$ref": "wallet-custom-token-add#"
362
+ },
363
+ {
364
+ "$ref": "wallet-exchange-detail-view#"
365
+ },
351
366
  {
352
367
  "$ref": "wallet-staking-claim#"
353
368
  },
@@ -363,6 +378,9 @@
363
378
  {
364
379
  "$ref": "wallet-staking-view#"
365
380
  },
381
+ {
382
+ "$ref": "wallet-transaction-detail-view#"
383
+ },
366
384
  {
367
385
  "$ref": "web3-browser-fiat-on-ramp-ctatap#"
368
386
  },
@@ -16,6 +16,12 @@
16
16
  "properties": {
17
17
  "toggled_on": {
18
18
  "type": "boolean"
19
+ },
20
+ "asset_name": {
21
+ "type": "string"
22
+ },
23
+ "network": {
24
+ "type": "string"
19
25
  }
20
26
  },
21
27
  "unevaluatedProperties": false
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "WalletAssetReceiveView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "asset_name": {
18
+ "type": "string"
19
+ },
20
+ "network": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "unevaluatedProperties": false
25
+ }
26
+ },
27
+ "unevaluatedProperties": false,
28
+ "required": ["event", "properties"]
29
+ }
@@ -20,6 +20,12 @@
20
20
  "coin_or_token": {
21
21
  "type": "string",
22
22
  "enum": ["coin", "token"]
23
+ },
24
+ "asset_name": {
25
+ "type": "string"
26
+ },
27
+ "network": {
28
+ "type": "string"
23
29
  }
24
30
  },
25
31
  "unevaluatedProperties": false
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "WalletAssetSendView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "asset_name": {
18
+ "type": "string"
19
+ },
20
+ "network": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "unevaluatedProperties": false
25
+ }
26
+ },
27
+ "unevaluatedProperties": false,
28
+ "required": ["event", "properties"]
29
+ }
@@ -16,6 +16,18 @@
16
16
  "properties": {
17
17
  "success": {
18
18
  "type": "boolean"
19
+ },
20
+ "amount": {
21
+ "type": "string"
22
+ },
23
+ "amount_usd": {
24
+ "type": "string"
25
+ },
26
+ "asset_name": {
27
+ "type": "string"
28
+ },
29
+ "network": {
30
+ "type": "string"
19
31
  }
20
32
  },
21
33
  "unevaluatedProperties": false
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "WalletAssetView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "asset_name": {
18
+ "type": "string"
19
+ },
20
+ "network": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "unevaluatedProperties": false
25
+ }
26
+ },
27
+ "unevaluatedProperties": false,
28
+ "required": ["event", "properties"]
29
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "WalletCustomTokenAdd"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "asset_name": {
18
+ "type": "string"
19
+ },
20
+ "network": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "unevaluatedProperties": false
25
+ }
26
+ },
27
+ "unevaluatedProperties": false,
28
+ "required": ["event", "properties"]
29
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "WalletExchangeDetailView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "asset_name_from": {
18
+ "type": "string"
19
+ },
20
+ "network_from": {
21
+ "type": "string"
22
+ },
23
+ "asset_name_to": {
24
+ "type": "string"
25
+ },
26
+ "network_to": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "unevaluatedProperties": false
31
+ }
32
+ },
33
+ "unevaluatedProperties": false,
34
+ "required": ["event", "properties"]
35
+ }
@@ -16,6 +16,24 @@
16
16
  "properties": {
17
17
  "success": {
18
18
  "type": "boolean"
19
+ },
20
+ "amount": {
21
+ "type": "string"
22
+ },
23
+ "amount_usd": {
24
+ "type": "string"
25
+ },
26
+ "staked_amount": {
27
+ "type": "string"
28
+ },
29
+ "staked_amount_usd": {
30
+ "type": "string"
31
+ },
32
+ "asset_name": {
33
+ "type": "string"
34
+ },
35
+ "network": {
36
+ "type": "string"
19
37
  }
20
38
  },
21
39
  "unevaluatedProperties": false
@@ -16,6 +16,12 @@
16
16
  "properties": {
17
17
  "is_zero_balance": {
18
18
  "type": "boolean"
19
+ },
20
+ "asset_name": {
21
+ "type": "string"
22
+ },
23
+ "network": {
24
+ "type": "string"
19
25
  }
20
26
  },
21
27
  "unevaluatedProperties": false
@@ -16,6 +16,18 @@
16
16
  "properties": {
17
17
  "success": {
18
18
  "type": "boolean"
19
+ },
20
+ "amount": {
21
+ "type": "string"
22
+ },
23
+ "amount_usd": {
24
+ "type": "string"
25
+ },
26
+ "asset_name": {
27
+ "type": "string"
28
+ },
29
+ "network": {
30
+ "type": "string"
19
31
  }
20
32
  },
21
33
  "unevaluatedProperties": false
@@ -16,6 +16,18 @@
16
16
  "properties": {
17
17
  "success": {
18
18
  "type": "boolean"
19
+ },
20
+ "amount": {
21
+ "type": "string"
22
+ },
23
+ "amount_usd": {
24
+ "type": "string"
25
+ },
26
+ "asset_name": {
27
+ "type": "string"
28
+ },
29
+ "network": {
30
+ "type": "string"
19
31
  }
20
32
  },
21
33
  "unevaluatedProperties": false
@@ -16,6 +16,12 @@
16
16
  "properties": {
17
17
  "is_active": {
18
18
  "type": "boolean"
19
+ },
20
+ "asset_name": {
21
+ "type": "string"
22
+ },
23
+ "network": {
24
+ "type": "string"
19
25
  }
20
26
  },
21
27
  "unevaluatedProperties": false
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "WalletTransactionDetailView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "asset_name": {
18
+ "type": "string"
19
+ },
20
+ "network": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "unevaluatedProperties": false
25
+ }
26
+ },
27
+ "unevaluatedProperties": false,
28
+ "required": ["event", "properties"]
29
+ }