@exodus/analytics-validation 2.3.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 CHANGED
@@ -3,6 +3,22 @@
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
+
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)
17
+
18
+ ### Features
19
+
20
+ - **analytics validation:** add XO Pay json schema validation events ([#4920](https://github.com/ExodusMovement/exodus-hydra/issues/4920)) ([22947e7](https://github.com/ExodusMovement/exodus-hydra/commit/22947e7684e195fedef38b48550b91d9cda5e8fb))
21
+
6
22
  ## [2.3.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.2.1...@exodus/analytics-validation@2.3.0) (2023-11-29)
7
23
 
8
24
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "2.3.0",
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": "1124deedbcfadf0c2c12d9fcda93380bf30f02bd"
44
+ "gitHead": "3892647899da16df1a7c3fb74cdcc21364f935e6"
45
45
  }
@@ -89,30 +89,7 @@
89
89
  "type": "array",
90
90
  "items": {
91
91
  "type": "string",
92
- "enum": [
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": {
@@ -437,6 +437,24 @@
437
437
  },
438
438
  {
439
439
  "$ref": "write-phrase-screen-exit#"
440
+ },
441
+ {
442
+ "$ref": "xopay-card-save#"
443
+ },
444
+ {
445
+ "$ref": "xopay-transaction-confirm#"
446
+ },
447
+ {
448
+ "$ref": "xopay-verification-details-confirmation-view#"
449
+ },
450
+ {
451
+ "$ref": "xopay-verification-edit-details-save#"
452
+ },
453
+ {
454
+ "$ref": "xopay-verification-mobile-challenge-view#"
455
+ },
456
+ {
457
+ "$ref": "xopay-view#"
440
458
  }
441
459
  ]
442
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,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "XopayVerificationDetailsConfirmationView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "challenge_method": {
18
+ "type": "string",
19
+ "enum": ["magiclink", "instantlink"]
20
+ }
21
+ },
22
+ "unevaluatedProperties": false
23
+ }
24
+ },
25
+ "unevaluatedProperties": false,
26
+ "required": ["event", "properties"]
27
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "XopayVerificationEditDetailsSave"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "name_modified": {
18
+ "type": "boolean"
19
+ },
20
+ "dob_modified": {
21
+ "type": "boolean"
22
+ },
23
+ "address_modified": {
24
+ "type": "boolean"
25
+ },
26
+ "ssn_modified": {
27
+ "type": "boolean"
28
+ }
29
+ },
30
+ "unevaluatedProperties": false
31
+ }
32
+ },
33
+ "unevaluatedProperties": false,
34
+ "required": ["event", "properties"]
35
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "XopayVerificationMobileChallengeView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "challenge_method": {
18
+ "type": "string",
19
+ "enum": ["magiclink", "instantlink"]
20
+ }
21
+ },
22
+ "unevaluatedProperties": false
23
+ }
24
+ },
25
+ "unevaluatedProperties": false,
26
+ "required": ["event", "properties"]
27
+ }
@@ -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
+ }