@exodus/analytics-validation 1.1.0-alpha.2 → 1.1.0-alpha.3
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 +6 -0
- package/package.json +2 -2
- package/schemasafe.config.js +1 -1
- package/src/home/home-edit-favorites-toggle.schemasafe.json +26 -0
- package/src/main.schemasafe.json +18 -0
- package/src/wallet/wallet-asset-view.schemasafe.json +27 -0
- package/src/wallet/wallet-exchange-detail-view.schemasafe.json +27 -0
- package/src/wallet/wallet-purchase-detail-view.schemasafe.json +27 -0
- package/src/wallet/wallet-sale-detail-view.schemasafe.json +27 -0
- package/src/wallet/wallet-transaction-detail-view.schemasafe.json +34 -0
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.1.0-alpha.3](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.1.0-alpha.2...@exodus/analytics-validation@1.1.0-alpha.3) (2023-05-17)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add validation for new home and wallet telemetry ([#1629](https://github.com/ExodusMovement/exodus-hydra/issues/1629)) ([af686f6](https://github.com/ExodusMovement/exodus-hydra/commit/af686f6cccb7c8517df3f8923794fb443ac97a59))
|
|
11
|
+
|
|
6
12
|
## [1.1.0-alpha.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.1.0-alpha.1...@exodus/analytics-validation@1.1.0-alpha.2) (2023-05-16)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/analytics-validation",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.3",
|
|
4
4
|
"description": "The analytics-validation library",
|
|
5
5
|
"author": "Exodus Movement Inc",
|
|
6
6
|
"repository": {
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"eslint": "^8.33.0",
|
|
34
34
|
"jest": "^29.1.2"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "c13db02b8b961190205a0222657f0aa05e5e9461"
|
|
37
37
|
}
|
package/schemasafe.config.js
CHANGED
|
@@ -11,7 +11,7 @@ const getSchemas = ({ schemaDir, schemaNames }) => {
|
|
|
11
11
|
if (fs.statSync(schemaPath).isDirectory()) {
|
|
12
12
|
if (schemaName === '__tests__') continue
|
|
13
13
|
getSchemas({ schemaDir: schemaPath, schemaNames: fs.readdirSync(schemaPath) })
|
|
14
|
-
} else {
|
|
14
|
+
} else if (schemaName.endsWith('.json')) {
|
|
15
15
|
// primitive-type.schemafe.json -> primitive-type
|
|
16
16
|
const name = schemaName.slice(0, schemaName.indexOf('.'))
|
|
17
17
|
const schemaString = fs.readFileSync(schemaPath, 'utf8')
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "HomeEditFavoritesToggle"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"toggled_on": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"unevaluatedProperties": false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false,
|
|
25
|
+
"required": ["event", "properties"]
|
|
26
|
+
}
|
package/src/main.schemasafe.json
CHANGED
|
@@ -99,6 +99,9 @@
|
|
|
99
99
|
{
|
|
100
100
|
"$ref": "fusion-profile-update#"
|
|
101
101
|
},
|
|
102
|
+
{
|
|
103
|
+
"$ref": "home-edit-favorites-toggle#"
|
|
104
|
+
},
|
|
102
105
|
{
|
|
103
106
|
"$ref": "home-news-tap#"
|
|
104
107
|
},
|
|
@@ -339,6 +342,9 @@
|
|
|
339
342
|
{
|
|
340
343
|
"$ref": "wallet-asset-send#"
|
|
341
344
|
},
|
|
345
|
+
{
|
|
346
|
+
"$ref": "wallet-asset-view#"
|
|
347
|
+
},
|
|
342
348
|
{
|
|
343
349
|
"$ref": "wallet-connect-connection-added#"
|
|
344
350
|
},
|
|
@@ -360,9 +366,18 @@
|
|
|
360
366
|
{
|
|
361
367
|
"$ref": "wallet-connect-initiate-connection#"
|
|
362
368
|
},
|
|
369
|
+
{
|
|
370
|
+
"$ref": "wallet-exchange-detail-view#"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"$ref": "wallet-purchase-detail-view#"
|
|
374
|
+
},
|
|
363
375
|
{
|
|
364
376
|
"$ref": "wallet-receive-assets-view#"
|
|
365
377
|
},
|
|
378
|
+
{
|
|
379
|
+
"$ref": "wallet-sale-detail-view#"
|
|
380
|
+
},
|
|
366
381
|
{
|
|
367
382
|
"$ref": "wallet-staking-claim#"
|
|
368
383
|
},
|
|
@@ -375,6 +390,9 @@
|
|
|
375
390
|
{
|
|
376
391
|
"$ref": "wallet-staking-view#"
|
|
377
392
|
},
|
|
393
|
+
{
|
|
394
|
+
"$ref": "wallet-transaction-detail-view#"
|
|
395
|
+
},
|
|
378
396
|
{
|
|
379
397
|
"$ref": "web3-browser-launch-dapp#"
|
|
380
398
|
},
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
"origin": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["home", "edit-favorites", "wallet", "price-alerts", "top-movers", "profile"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unevaluatedProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false,
|
|
26
|
+
"required": ["event", "properties"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
"origin": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["home", "recent-activity", "wallet-asset", "exchange"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unevaluatedProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false,
|
|
26
|
+
"required": ["event", "properties"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "WalletPurchaseDetailView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"origin": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["home", "recent-activity", "wallet-asset", "on-ramp"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unevaluatedProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false,
|
|
26
|
+
"required": ["event", "properties"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "WalletSaleDetailView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"origin": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["home", "recent-activity", "wallet-asset", "off-ramp"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unevaluatedProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false,
|
|
26
|
+
"required": ["event", "properties"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
"origin": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"home",
|
|
21
|
+
"recent-activity",
|
|
22
|
+
"wallet-asset",
|
|
23
|
+
"lightning",
|
|
24
|
+
"funds-received-notification",
|
|
25
|
+
"solana-pay"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"unevaluatedProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false,
|
|
33
|
+
"required": ["event", "properties"]
|
|
34
|
+
}
|