@exodus/analytics-validation 1.14.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,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.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
+
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)
13
+
14
+ ### Features
15
+
16
+ - add schema for AndroidInstallReferrerAttribution event ([2683](https://github.com/ExodusMovement/exodus-hydra/pull/2683/commits/e62ec31a922d736ac71a41cc36f857486a6c3c55))
17
+
6
18
  ## [1.14.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.13.0...@exodus/analytics-validation@1.14.0) (2023-07-11)
7
19
 
8
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "1.14.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": {
@@ -12,7 +12,7 @@
12
12
  "bugs": {
13
13
  "url": "https://github.com/ExodusMovement/exodus-hydra/issues?q=is%3Aissue+is%3Aopen+label%3Aanalytics-validation"
14
14
  },
15
- "main": "./index.js",
15
+ "main": "index.js",
16
16
  "files": [
17
17
  "src",
18
18
  "!**/__tests__/**",
@@ -33,5 +33,5 @@
33
33
  "eslint": "^8.44.0",
34
34
  "jest": "^29.1.2"
35
35
  },
36
- "gitHead": "f723814f6af21453c9b2503979a862b2c13983c0"
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
@@ -12,6 +12,9 @@
12
12
  }
13
13
  },
14
14
  "anyOf": [
15
+ {
16
+ "$ref": "android-install-referrer-attribution#"
17
+ },
15
18
  {
16
19
  "$ref": "asset-network-manual-refresh#"
17
20
  },
@@ -321,12 +324,21 @@
321
324
  {
322
325
  "$ref": "wallet-asset-network-manual-refresh#"
323
326
  },
327
+ {
328
+ "$ref": "wallet-asset-receive-view#"
329
+ },
324
330
  {
325
331
  "$ref": "wallet-asset-send-no-gas#"
326
332
  },
333
+ {
334
+ "$ref": "wallet-asset-send-view#"
335
+ },
327
336
  {
328
337
  "$ref": "wallet-asset-send#"
329
338
  },
339
+ {
340
+ "$ref": "wallet-asset-view#"
341
+ },
330
342
  {
331
343
  "$ref": "wallet-connect-connection-added#"
332
344
  },
@@ -345,6 +357,12 @@
345
357
  {
346
358
  "$ref": "wallet-connect-fiat-on-ramp-cta-tap#"
347
359
  },
360
+ {
361
+ "$ref": "wallet-custom-token-add#"
362
+ },
363
+ {
364
+ "$ref": "wallet-exchange-detail-view#"
365
+ },
348
366
  {
349
367
  "$ref": "wallet-staking-claim#"
350
368
  },
@@ -360,6 +378,9 @@
360
378
  {
361
379
  "$ref": "wallet-staking-view#"
362
380
  },
381
+ {
382
+ "$ref": "wallet-transaction-detail-view#"
383
+ },
363
384
  {
364
385
  "$ref": "web3-browser-fiat-on-ramp-ctatap#"
365
386
  },
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "AndroidInstallReferrerAttribution"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "install_content": {
18
+ "type": "string",
19
+ "format": "any-string"
20
+ },
21
+ "install_referrer": {
22
+ "type": "string",
23
+ "format": "any-string"
24
+ },
25
+ "install_source": {
26
+ "type": "string",
27
+ "format": "any-string"
28
+ },
29
+ "install_campaign": {
30
+ "type": "string",
31
+ "format": "any-string"
32
+ }
33
+ },
34
+ "unevaluatedProperties": false
35
+ }
36
+ },
37
+ "unevaluatedProperties": false,
38
+ "required": ["event", "properties"]
39
+ }
@@ -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
+ }