@exodus/analytics-validation 2.37.1 → 2.39.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
+ ## [2.39.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.38.0...@exodus/analytics-validation@2.39.0) (2024-09-12)
7
+
8
+ ### Features
9
+
10
+ - **restore:** add backupType ([#9132](https://github.com/ExodusMovement/exodus-hydra/issues/9132)) ([2cddf42](https://github.com/ExodusMovement/exodus-hydra/commit/2cddf425bfef487169c219257202296f9c5aa6e1))
11
+
12
+ ## [2.38.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.37.1...@exodus/analytics-validation@2.38.0) (2024-08-30)
13
+
14
+ ### Features
15
+
16
+ - update custom schemes for ledger telemetry ([#8772](https://github.com/ExodusMovement/exodus-hydra/issues/8772)) ([4e7ee28](https://github.com/ExodusMovement/exodus-hydra/commit/4e7ee2896ff88729dc3065e3afc5323f26144d93))
17
+
6
18
  ## [2.37.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.37.0...@exodus/analytics-validation@2.37.1) (2024-08-28)
7
19
 
8
20
  ### Reverts
package/index.js CHANGED
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line import/no-unresolved
2
1
  import validateEvent from './src/main.schemasafe.json'
3
2
 
4
3
  // eslint-disable-next-line unicorn/prefer-export-from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "2.37.1",
3
+ "version": "2.39.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": {
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "scripts": {
24
24
  "build": "node scripts/build-schemasafe.js",
25
- "lint": "run -T eslint . --ignore-path ../../.gitignore",
25
+ "lint": "run -T eslint .",
26
26
  "lint:fix": "yarn lint --fix",
27
27
  "test": "yarn build && run -T jest",
28
28
  "prepublishOnly": "yarn run -T build --scope @exodus/analytics-validation"
@@ -40,5 +40,5 @@
40
40
  }
41
41
  }
42
42
  },
43
- "gitHead": "9e8627e0bd249bcc8c45d7b0f9252e54ab643778"
43
+ "gitHead": "4937c7995b0c9dc0af43fb61c21b8239b6f394d9"
44
44
  }
@@ -27,6 +27,7 @@ getSchemas({ schemaDir, schemaNames })
27
27
 
28
28
  // Source: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
29
29
  const semVerRegEx =
30
+ // eslint-disable-next-line sonarjs/regex-complexity
30
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-]+)*))?$/
31
32
  const localeRegEx = /^[A-Za-z]{2,8}([_-][\dA-Za-z]{1,8}){0,2}$/
32
33
  // NOTE: this is exported so consumers can use the same settings at runtime
@@ -18,6 +18,34 @@
18
18
  "type": "string",
19
19
  "maxLength": 30,
20
20
  "$comment": "Allows tracking the network associated with the user's account"
21
+ },
22
+ "origin": {
23
+ "anyOf": [
24
+ {
25
+ "const": "onboarding"
26
+ },
27
+ {
28
+ "const": "wallet"
29
+ },
30
+ {
31
+ "const": "accounts"
32
+ },
33
+ {
34
+ "const": "receive-menu"
35
+ },
36
+ {
37
+ "const": "exchange"
38
+ },
39
+ {
40
+ "const": "offramp"
41
+ },
42
+ {
43
+ "const": "onramp"
44
+ },
45
+ {
46
+ "const": "web3"
47
+ }
48
+ ]
21
49
  }
22
50
  },
23
51
  "unevaluatedProperties": false
@@ -0,0 +1,56 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "ConnectLedgerConnectAccountView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "origin": {
18
+ "anyOf": [
19
+ {
20
+ "const": "onboarding"
21
+ },
22
+ {
23
+ "const": "wallet"
24
+ },
25
+ {
26
+ "const": "accounts"
27
+ },
28
+ {
29
+ "const": "receive-menu"
30
+ },
31
+ {
32
+ "const": "exchange"
33
+ },
34
+ {
35
+ "const": "offramp"
36
+ },
37
+ {
38
+ "const": "onramp"
39
+ },
40
+ {
41
+ "const": "web3"
42
+ }
43
+ ]
44
+ },
45
+ "network": {
46
+ "type": "string",
47
+ "maxLength": 30,
48
+ "$comment": "Allows tracking the network associated with the user's account"
49
+ }
50
+ },
51
+ "unevaluatedProperties": false
52
+ }
53
+ },
54
+ "unevaluatedProperties": false,
55
+ "required": ["event", "properties"]
56
+ }
@@ -14,6 +14,34 @@
14
14
  "type": "object",
15
15
  "required": [],
16
16
  "properties": {
17
+ "origin": {
18
+ "anyOf": [
19
+ {
20
+ "const": "onboarding"
21
+ },
22
+ {
23
+ "const": "wallet"
24
+ },
25
+ {
26
+ "const": "accounts"
27
+ },
28
+ {
29
+ "const": "receive-menu"
30
+ },
31
+ {
32
+ "const": "exchange"
33
+ },
34
+ {
35
+ "const": "offramp"
36
+ },
37
+ {
38
+ "const": "onramp"
39
+ },
40
+ {
41
+ "const": "web3"
42
+ }
43
+ ]
44
+ },
17
45
  "network": {
18
46
  "type": "string",
19
47
  "maxLength": 30,
@@ -14,10 +14,33 @@
14
14
  "type": "object",
15
15
  "required": [],
16
16
  "properties": {
17
- "network": {
18
- "type": "string",
19
- "maxLength": 30,
20
- "$comment": "Allows tracking the network associated with the user's account"
17
+ "origin": {
18
+ "anyOf": [
19
+ {
20
+ "const": "onboarding"
21
+ },
22
+ {
23
+ "const": "wallet"
24
+ },
25
+ {
26
+ "const": "accounts"
27
+ },
28
+ {
29
+ "const": "receive-menu"
30
+ },
31
+ {
32
+ "const": "exchange"
33
+ },
34
+ {
35
+ "const": "offramp"
36
+ },
37
+ {
38
+ "const": "onramp"
39
+ },
40
+ {
41
+ "const": "web3"
42
+ }
43
+ ]
21
44
  }
22
45
  },
23
46
  "unevaluatedProperties": false
@@ -41,6 +41,9 @@
41
41
  {
42
42
  "$ref": "connect-ledger-account-connected-view#"
43
43
  },
44
+ {
45
+ "$ref": "connect-ledger-connect-account-view#"
46
+ },
44
47
  {
45
48
  "$ref": "connect-ledger-connecting-account-view#"
46
49
  },
@@ -14,6 +14,34 @@
14
14
  "type": "object",
15
15
  "required": [],
16
16
  "properties": {
17
+ "origin": {
18
+ "anyOf": [
19
+ {
20
+ "const": "onboarding"
21
+ },
22
+ {
23
+ "const": "wallet"
24
+ },
25
+ {
26
+ "const": "accounts"
27
+ },
28
+ {
29
+ "const": "receive-menu"
30
+ },
31
+ {
32
+ "const": "exchange"
33
+ },
34
+ {
35
+ "const": "offramp"
36
+ },
37
+ {
38
+ "const": "onramp"
39
+ },
40
+ {
41
+ "const": "web3"
42
+ }
43
+ ]
44
+ },
17
45
  "network": {
18
46
  "type": "string",
19
47
  "maxLength": 30,
@@ -16,6 +16,10 @@
16
16
  "properties": {
17
17
  "restore_time": {
18
18
  "type": "number"
19
+ },
20
+ "backup_type": {
21
+ "type": "string",
22
+ "enum": ["passkeys", "seed-phrase"]
19
23
  }
20
24
  },
21
25
  "unevaluatedProperties": false