@exodus/analytics-validation 2.43.1 → 2.45.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 +12 -0
- package/package.json +2 -2
- package/schemasafe.config.js +2 -2
- package/src/exchange/exchange-time-trace.schemasafe.json +3 -0
- package/src/ledger/ledger-account-connect.schemasafe.json +41 -0
- package/src/ledger/ledger-account-disconnect.schemasafe.json +35 -0
- package/src/ledger/ledger-accounts-view.schemasafe.json +38 -0
- package/src/ledger/ledger-pair-connect-error.schemasafe.json +27 -0
- package/src/ledger/ledger-pair.schemasafe.json +26 -0
- package/src/main.schemasafe.json +15 -0
- package/src/wallet/wallet-asset-send-hardware-wallet-view.schemasafe.json +8 -0
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
|
+
## [2.45.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.44.0...@exodus/analytics-validation@2.45.0) (2024-10-30)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add more ledger telemetry events and properties ([#10217](https://github.com/ExodusMovement/exodus-hydra/issues/10217)) ([23bc507](https://github.com/ExodusMovement/exodus-hydra/commit/23bc507f74a5cca19a91b623b30ad0dd57d2260e))
|
|
11
|
+
|
|
12
|
+
## [2.44.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.43.1...@exodus/analytics-validation@2.44.0) (2024-10-21)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- **exchange:** send orderId to timeTrace ([#10090](https://github.com/ExodusMovement/exodus-hydra/issues/10090)) ([cee9cfb](https://github.com/ExodusMovement/exodus-hydra/commit/cee9cfba671f7f62eca1b1c3b674e8937d4a9014))
|
|
17
|
+
|
|
6
18
|
## [2.43.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.43.0...@exodus/analytics-validation@2.43.1) (2024-10-18)
|
|
7
19
|
|
|
8
20
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/analytics-validation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.45.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": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "46b0d73ff606dd46c521bc82e366378ba48811a5"
|
|
44
44
|
}
|
package/schemasafe.config.js
CHANGED
|
@@ -28,8 +28,8 @@ getSchemas({ schemaDir, schemaNames })
|
|
|
28
28
|
// Source: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
|
|
29
29
|
const semVerRegEx =
|
|
30
30
|
// eslint-disable-next-line sonarjs/regex-complexity
|
|
31
|
-
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*))*))?(?:\+([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?$/
|
|
32
|
-
const localeRegEx = /^[A-Za-z]{2,8}([_-][\dA-Za-z]{1,8}){0,2}$/
|
|
31
|
+
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*))*))?(?:\+([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?$/u
|
|
32
|
+
const localeRegEx = /^[A-Za-z]{2,8}([_-][\dA-Za-z]{1,8}){0,2}$/u
|
|
33
33
|
// NOTE: this is exported so consumers can use the same settings at runtime
|
|
34
34
|
// as were used to compile schemas at build time
|
|
35
35
|
module.exports = {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "LedgerAccountConnect"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"network": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "any-string"
|
|
20
|
+
},
|
|
21
|
+
"total_amount": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "any-string"
|
|
24
|
+
},
|
|
25
|
+
"total_amount_usd": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "any-string"
|
|
28
|
+
},
|
|
29
|
+
"number_of_collectibles": {
|
|
30
|
+
"type": "number"
|
|
31
|
+
},
|
|
32
|
+
"success": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"unevaluatedProperties": false
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"unevaluatedProperties": false,
|
|
40
|
+
"required": ["event", "properties"]
|
|
41
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "LedgerAccountDisconnect"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"network": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "any-string"
|
|
20
|
+
},
|
|
21
|
+
"total_amount": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "any-string"
|
|
24
|
+
},
|
|
25
|
+
"amount_usd": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "any-string"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"unevaluatedProperties": false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"unevaluatedProperties": false,
|
|
34
|
+
"required": ["event", "properties"]
|
|
35
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "LedgerAccountsView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"network": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "any-string"
|
|
20
|
+
},
|
|
21
|
+
"total_amount": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "any-string"
|
|
24
|
+
},
|
|
25
|
+
"total_amount_usd": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "any-string"
|
|
28
|
+
},
|
|
29
|
+
"number_of_accounts": {
|
|
30
|
+
"type": "number"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"unevaluatedProperties": false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"unevaluatedProperties": false,
|
|
37
|
+
"required": ["event", "properties"]
|
|
38
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "LedgerPairConnectError"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"error_type": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "any-string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unevaluatedProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false,
|
|
26
|
+
"required": ["event", "properties"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "LedgerPair"
|
|
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
|
+
},
|
|
21
|
+
"unevaluatedProperties": false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false,
|
|
25
|
+
"required": ["event", "properties"]
|
|
26
|
+
}
|
package/src/main.schemasafe.json
CHANGED
|
@@ -188,6 +188,21 @@
|
|
|
188
188
|
{
|
|
189
189
|
"$ref": "invite-friends-view#"
|
|
190
190
|
},
|
|
191
|
+
{
|
|
192
|
+
"$ref": "ledger-account-connect#"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"$ref": "ledger-account-disconnect#"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"$ref": "ledger-accounts-view#"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"$ref": "ledger-pair-connect-error#"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"$ref": "ledger-pair#"
|
|
205
|
+
},
|
|
191
206
|
{
|
|
192
207
|
"$ref": "lightning-deposit#"
|
|
193
208
|
},
|
|
@@ -23,6 +23,14 @@
|
|
|
23
23
|
"type": "string",
|
|
24
24
|
"maxLength": 30,
|
|
25
25
|
"$comment": "Allows tracking the network associated with the user's account"
|
|
26
|
+
},
|
|
27
|
+
"total_amount": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"format": "any-string"
|
|
30
|
+
},
|
|
31
|
+
"amount_usd": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"format": "any-string"
|
|
26
34
|
}
|
|
27
35
|
},
|
|
28
36
|
"unevaluatedProperties": false
|