@exodus/analytics-validation 1.22.0 → 1.24.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,12 @@
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
+ ## [1.23.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.22.0...@exodus/analytics-validation@1.23.0) (2023-11-10)
7
+
8
+ ### Features
9
+
10
+ - add NotificationAttributesTest event ([#4742](https://github.com/ExodusMovement/exodus-hydra/issues/4742)) ([84b2727](https://github.com/ExodusMovement/exodus-hydra/commit/84b272750c0e2e05d7c6c3d0a2e0d0cb01f5e7b4))
11
+
6
12
  ## [1.22.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.21.1...@exodus/analytics-validation@1.22.0) (2023-11-07)
7
13
 
8
14
  ### Features
package/README.md CHANGED
@@ -21,7 +21,7 @@ flowchart TD
21
21
  B(You're done!)
22
22
  C{Does it only require\n the 'origin' property?}
23
23
  C -->|Yes| B
24
- C -->|No| E[Generate a new JSON Schema: \nyarn generate:analytics-validation]
24
+ C -->|No| E[Generate a new JSON Schema: \nyarn generate analytics-validation]
25
25
  E --> D[Adjust the schema and tests]
26
26
  D --> B
27
27
 
@@ -32,7 +32,7 @@ flowchart TD
32
32
  To add a new schema run
33
33
 
34
34
  ```bash
35
- yarn generate:analytics-validation
35
+ yarn generate analytics-validation
36
36
  ```
37
37
 
38
38
  in the project root. The CLI tool will ask you for all details needed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "1.22.0",
3
+ "version": "1.24.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": {
@@ -31,6 +31,5 @@
31
31
  "@exodus/schemasafe-babel-plugin": "^0.0.1",
32
32
  "eslint": "^8.44.0",
33
33
  "jest": "^29.1.2"
34
- },
35
- "gitHead": "06fdd9ac03d9a8516d0fb753554efc50124cccbc"
34
+ }
36
35
  }
@@ -198,6 +198,29 @@
198
198
  "origin": {
199
199
  "type": "string",
200
200
  "format": "any-string"
201
+ },
202
+ "on_vpn": {
203
+ "type": "boolean"
204
+ },
205
+ "wallet_age": {
206
+ "type": "integer",
207
+ "minimum": 0
208
+ },
209
+ "device_tz_matches_ip": {
210
+ "type": "boolean"
211
+ },
212
+ "on_phone_call": {
213
+ "type": "boolean"
214
+ },
215
+ "restricted_device": {
216
+ "type": "boolean"
217
+ },
218
+ "restricted_os": {
219
+ "type": "boolean"
220
+ },
221
+ "number_of_assets": {
222
+ "type": "integer",
223
+ "minimum": 0
201
224
  }
202
225
  }
203
226
  }
@@ -171,6 +171,9 @@
171
171
  {
172
172
  "$ref": "nfts-proxy-server-get-image#"
173
173
  },
174
+ {
175
+ "$ref": "notification-attributes-test#"
176
+ },
174
177
  {
175
178
  "$ref": "notification-cta-tap#"
176
179
  },
@@ -0,0 +1,74 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "NotificationAttributesTest"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "has_backup": {
18
+ "type": "boolean"
19
+ },
20
+ "country": {
21
+ "type": "string",
22
+ "format": "any-string",
23
+ "minLength": 2,
24
+ "maxLength": 4
25
+ },
26
+ "region": {
27
+ "type": "string",
28
+ "format": "any-string",
29
+ "minLength": 2,
30
+ "maxLength": 4
31
+ },
32
+ "platform": {
33
+ "type": "string",
34
+ "format": "any-string",
35
+ "minLength": 2,
36
+ "maxLength": 10
37
+ },
38
+ "environment": {
39
+ "type": "string",
40
+ "format": "any-string",
41
+ "minLength": 2,
42
+ "maxLength": 20
43
+ },
44
+ "price_change_threshold": {
45
+ "type": "string",
46
+ "format": "any-string",
47
+ "minLength": 1,
48
+ "maxLength": 3
49
+ },
50
+ "topics": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "string",
54
+ "format": "any-string",
55
+ "minLength": 2,
56
+ "maxLength": 20
57
+ }
58
+ },
59
+ "enabled_assets": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string",
63
+ "format": "any-string",
64
+ "minLength": 2,
65
+ "maxLength": 30
66
+ }
67
+ }
68
+ },
69
+ "unevaluatedProperties": false
70
+ }
71
+ },
72
+ "unevaluatedProperties": false,
73
+ "required": ["event", "properties"]
74
+ }