@exodus/analytics-validation 2.4.0 → 2.5.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 +10 -0
- package/package.json +2 -2
- package/src/common-properties.schemasafe.json +1 -24
- package/src/main.schemasafe.json +9 -0
- package/src/xopay/xopay-card-save.schemasafe.json +26 -0
- package/src/xopay/xopay-transaction-confirm.schemasafe.json +54 -0
- package/src/xopay/xopay-view.schemasafe.json +32 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.5.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.4.0...@exodus/analytics-validation@2.5.0) (2023-11-30)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add `XopayView`, `XopayCardSave` and `XopayCardSave` events schema validation ([#4926](https://github.com/ExodusMovement/exodus-hydra/issues/4926)) ([9d094aa](https://github.com/ExodusMovement/exodus-hydra/commit/9d094aa3c52a9dd1193d9fdb24d7b895218cf463))
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **telemetry:** relax experiments schema validation ([#4930](https://github.com/ExodusMovement/exodus-hydra/issues/4930)) ([eb461b7](https://github.com/ExodusMovement/exodus-hydra/commit/eb461b7d3bb478b8794ba30760951583bd225ea7))
|
|
15
|
+
|
|
6
16
|
## [2.4.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.3.0...@exodus/analytics-validation@2.4.0) (2023-11-30)
|
|
7
17
|
|
|
8
18
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/analytics-validation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.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": {
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "3892647899da16df1a7c3fb74cdcc21364f935e6"
|
|
45
45
|
}
|
|
@@ -89,30 +89,7 @@
|
|
|
89
89
|
"type": "array",
|
|
90
90
|
"items": {
|
|
91
91
|
"type": "string",
|
|
92
|
-
"
|
|
93
|
-
"lightning-app:enabled",
|
|
94
|
-
"lightning-app:disabled",
|
|
95
|
-
"nft-app:enabled",
|
|
96
|
-
"ftx-21.7.29:A",
|
|
97
|
-
"exchange-2022-06-20:aero2",
|
|
98
|
-
"exchange-2022-06-20:default",
|
|
99
|
-
"exchange-metrics:enabled",
|
|
100
|
-
"exchange-v2-21.8.12:v2",
|
|
101
|
-
"ramp-onboarding:enabled",
|
|
102
|
-
"ramp-app:on",
|
|
103
|
-
"ramp-tab-button:off",
|
|
104
|
-
"ramp-tab-button:on",
|
|
105
|
-
"on-ramp-experiment-1:v1",
|
|
106
|
-
"wallet-connect:enabled",
|
|
107
|
-
"wallet-connect-dapps:enabled",
|
|
108
|
-
"seedless:disabled",
|
|
109
|
-
"seedless:enabled",
|
|
110
|
-
"support-chat:on",
|
|
111
|
-
"wallet-connect-dapps:enabled",
|
|
112
|
-
"wallet-connect:enabled",
|
|
113
|
-
"exchange-v2-21.8.12:v1",
|
|
114
|
-
"exchange-v3:enabled"
|
|
115
|
-
]
|
|
92
|
+
"format": "any-string"
|
|
116
93
|
}
|
|
117
94
|
},
|
|
118
95
|
"has_balance": {
|
package/src/main.schemasafe.json
CHANGED
|
@@ -438,6 +438,12 @@
|
|
|
438
438
|
{
|
|
439
439
|
"$ref": "write-phrase-screen-exit#"
|
|
440
440
|
},
|
|
441
|
+
{
|
|
442
|
+
"$ref": "xopay-card-save#"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"$ref": "xopay-transaction-confirm#"
|
|
446
|
+
},
|
|
441
447
|
{
|
|
442
448
|
"$ref": "xopay-verification-details-confirmation-view#"
|
|
443
449
|
},
|
|
@@ -446,6 +452,9 @@
|
|
|
446
452
|
},
|
|
447
453
|
{
|
|
448
454
|
"$ref": "xopay-verification-mobile-challenge-view#"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"$ref": "xopay-view#"
|
|
449
458
|
}
|
|
450
459
|
]
|
|
451
460
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "XopayCardSave"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"default_method": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"unevaluatedProperties": false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false,
|
|
25
|
+
"required": ["event", "properties"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "XopayTransactionConfirm"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"from_asset": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"from_asset_network": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"from_asset_amount": {
|
|
24
|
+
"type": "number",
|
|
25
|
+
"minimum": 0
|
|
26
|
+
},
|
|
27
|
+
"from_asset_amount_usd": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"minimum": 0
|
|
30
|
+
},
|
|
31
|
+
"to_asset": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"to_asset_network": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"to_asset_amount": {
|
|
38
|
+
"type": "number",
|
|
39
|
+
"minimum": 0
|
|
40
|
+
},
|
|
41
|
+
"to_asset_amount_usd": {
|
|
42
|
+
"type": "number",
|
|
43
|
+
"minimum": 0
|
|
44
|
+
},
|
|
45
|
+
"success": {
|
|
46
|
+
"type": "boolean"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"unevaluatedProperties": false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"unevaluatedProperties": false,
|
|
53
|
+
"required": ["event", "properties"]
|
|
54
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "XopayView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"verification_failed_warning": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"verification_details_check_warning": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"verification_processing_warning": {
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"unevaluatedProperties": false
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"unevaluatedProperties": false,
|
|
31
|
+
"required": ["event", "properties"]
|
|
32
|
+
}
|