@exodus/analytics-validation 2.6.0 → 2.8.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.8.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.7.0...@exodus/analytics-validation@2.8.0) (2023-12-13)
7
+
8
+ ### Features
9
+
10
+ - **analytics-validation:** add `trust_score` and `adjust_trust_score` to common properties ([#5054](https://github.com/ExodusMovement/exodus-hydra/issues/5054)) ([d707873](https://github.com/ExodusMovement/exodus-hydra/commit/d7078736f3e21e4319e0977ac8568705ddaf1b02))
11
+
12
+ ## [2.7.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.6.0...@exodus/analytics-validation@2.7.0) (2023-12-04)
13
+
14
+ ### Features
15
+
16
+ - **analytics validation:** add XopayPaymentFailedView, XopaySettingsView and XopayCardDelete event validation schema ([#4940](https://github.com/ExodusMovement/exodus-hydra/issues/4940)) ([0103494](https://github.com/ExodusMovement/exodus-hydra/commit/01034947ed21d7731b5036423ee62f44a16cae1a))
17
+
6
18
  ## [2.6.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.5.0...@exodus/analytics-validation@2.6.0) (2023-11-30)
7
19
 
8
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "2.6.0",
3
+ "version": "2.8.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": {
@@ -24,7 +24,8 @@
24
24
  "build": "node scripts/build-schemasafe.js",
25
25
  "lint": "eslint . --ignore-path ../../.gitignore",
26
26
  "lint:fix": "yarn lint --fix",
27
- "test": "yarn build && jest"
27
+ "test": "yarn build && jest",
28
+ "prepublishOnly": "yarn run -T build --scope @exodus/analytics-validation"
28
29
  },
29
30
  "devDependencies": {
30
31
  "@exodus/schemasafe": "^1.0.0",
@@ -41,5 +42,5 @@
41
42
  }
42
43
  }
43
44
  },
44
- "gitHead": "1a67e74ec187a0fa981dca8fda877a43e0e2df22"
45
+ "gitHead": "8a27fc57a2783ecc728030da8b3d2a10fa8f915c"
45
46
  }
@@ -226,6 +226,14 @@
226
226
  "number_of_assets": {
227
227
  "type": "integer",
228
228
  "minimum": 0
229
+ },
230
+ "trust_score": {
231
+ "type": "number",
232
+ "minimum": 0
233
+ },
234
+ "adjusted_trust_score": {
235
+ "type": "number",
236
+ "minimum": 0
229
237
  }
230
238
  }
231
239
  }
@@ -438,9 +438,18 @@
438
438
  {
439
439
  "$ref": "write-phrase-screen-exit#"
440
440
  },
441
+ {
442
+ "$ref": "xopay-card-delete#"
443
+ },
441
444
  {
442
445
  "$ref": "xopay-card-save#"
443
446
  },
447
+ {
448
+ "$ref": "xopay-payment-failed-view#"
449
+ },
450
+ {
451
+ "$ref": "xopay-settings-view#"
452
+ },
444
453
  {
445
454
  "$ref": "xopay-transaction-confirm#"
446
455
  },
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "XopayCardDelete"
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,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "XopayPaymentFailedView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "select_another_payment_option": {
18
+ "type": "boolean"
19
+ }
20
+ },
21
+ "unevaluatedProperties": false
22
+ }
23
+ },
24
+ "unevaluatedProperties": false,
25
+ "required": ["event", "properties"]
26
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "XopaySettingsView"
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
+ }