@exodus/analytics-validation 2.77.1 → 2.78.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/common-properties.schemasafe.json +34 -0
  3. package/lib/events.d.ts +174 -0
  4. package/lib/index.js +7 -2
  5. package/lib/main.schemasafe.json +81 -0
  6. package/lib/predictions/pay-predictions-account-activate.schemasafe.json +25 -0
  7. package/lib/predictions/pay-predictions-buy-abandon-during-processing.schemasafe.json +42 -0
  8. package/lib/predictions/pay-predictions-buy-confirm.schemasafe.json +50 -0
  9. package/lib/predictions/pay-predictions-buy-fail.schemasafe.json +45 -0
  10. package/lib/predictions/pay-predictions-buy-fund-trigger.schemasafe.json +34 -0
  11. package/lib/predictions/pay-predictions-buy-insufficient-funds.schemasafe.json +42 -0
  12. package/lib/predictions/pay-predictions-buy-option-change.schemasafe.json +48 -0
  13. package/lib/predictions/pay-predictions-buy-start.schemasafe.json +52 -0
  14. package/lib/predictions/pay-predictions-buy-success.schemasafe.json +61 -0
  15. package/lib/predictions/pay-predictions-fund-entry.schemasafe.json +37 -0
  16. package/lib/predictions/pay-predictions-history-item-tap.schemasafe.json +37 -0
  17. package/lib/predictions/pay-predictions-history-view.schemasafe.json +38 -0
  18. package/lib/predictions/pay-predictions-market-detail-open.schemasafe.json +34 -0
  19. package/lib/predictions/pay-predictions-market-resolve.schemasafe.json +51 -0
  20. package/lib/predictions/pay-predictions-market-swipe.schemasafe.json +37 -0
  21. package/lib/predictions/pay-predictions-market-view.schemasafe.json +56 -0
  22. package/lib/predictions/pay-predictions-open.schemasafe.json +29 -0
  23. package/lib/predictions/pay-predictions-position-tap.schemasafe.json +37 -0
  24. package/lib/predictions/pay-predictions-position-view.schemasafe.json +51 -0
  25. package/lib/predictions/pay-predictions-positions-see-all.schemasafe.json +30 -0
  26. package/lib/predictions/pay-predictions-search.schemasafe.json +34 -0
  27. package/lib/predictions/pay-predictions-sell-fail.schemasafe.json +45 -0
  28. package/lib/predictions/pay-predictions-sell-start.schemasafe.json +45 -0
  29. package/lib/predictions/pay-predictions-sell-success.schemasafe.json +44 -0
  30. package/lib/predictions/pay-predictions-tab-select.schemasafe.json +34 -0
  31. package/lib/predictions/pay-predictions-view-mode-change.schemasafe.json +32 -0
  32. package/lib/predictions/pay-predictions-winnings-claim.schemasafe.json +44 -0
  33. package/package.json +3 -2
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "PayPredictionsTabSelect"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ },
13
+ {
14
+ "$ref": "common-properties#/definitions/predictionsProperties"
15
+ }
16
+ ],
17
+ "type": "object",
18
+ "required": [],
19
+ "properties": {
20
+ "tab_name": {
21
+ "type": "string",
22
+ "format": "any-string"
23
+ },
24
+ "tab_position": {
25
+ "type": "integer",
26
+ "minimum": 0
27
+ }
28
+ },
29
+ "unevaluatedProperties": false
30
+ }
31
+ },
32
+ "unevaluatedProperties": false,
33
+ "required": ["event", "properties"]
34
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "PayPredictionsViewModeChange"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ },
13
+ {
14
+ "$ref": "common-properties#/definitions/predictionsProperties"
15
+ }
16
+ ],
17
+ "type": "object",
18
+ "required": [],
19
+ "properties": {
20
+ "from_mode": {
21
+ "enum": ["card", "list"]
22
+ },
23
+ "to_mode": {
24
+ "enum": ["card", "list"]
25
+ }
26
+ },
27
+ "unevaluatedProperties": false
28
+ }
29
+ },
30
+ "unevaluatedProperties": false,
31
+ "required": ["event", "properties"]
32
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "PayPredictionsWinningsClaim"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ },
13
+ {
14
+ "$ref": "common-properties#/definitions/predictionsProperties"
15
+ }
16
+ ],
17
+ "type": "object",
18
+ "required": [],
19
+ "properties": {
20
+ "position_id": {
21
+ "type": "string",
22
+ "format": "any-string"
23
+ },
24
+ "market_id": {
25
+ "type": "string",
26
+ "format": "any-string"
27
+ },
28
+ "payout_usd": {
29
+ "type": "number",
30
+ "minimum": 0
31
+ },
32
+ "claim_method": {
33
+ "enum": ["auto", "manual"]
34
+ },
35
+ "is_first_claim": {
36
+ "type": "boolean"
37
+ }
38
+ },
39
+ "unevaluatedProperties": false
40
+ }
41
+ },
42
+ "unevaluatedProperties": false,
43
+ "required": ["event", "properties"]
44
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "2.77.1",
3
+ "version": "2.78.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": {
@@ -29,6 +29,7 @@
29
29
  },
30
30
  "scripts": {
31
31
  "build": "node scripts/build-schemasafe.js && node scripts/build-types.mjs && run -T tsc -p tsconfig.build.json",
32
+ "build:watch": "yarn build -w",
32
33
  "clean": "run -T tsc --build --clean",
33
34
  "prepublishOnly": "yarn run -T build --scope @exodus/analytics-validation",
34
35
  "test": "node scripts/build-schemasafe.js && run -T exodus-test --jest --esbuild",
@@ -52,5 +53,5 @@
52
53
  "access": "public",
53
54
  "provenance": false
54
55
  },
55
- "gitHead": "71e1f1a79ca66dd8e176564fbfde1e5203be490a"
56
+ "gitHead": "5e07c21636e7a12c588609eb349962fa80d6a7d8"
56
57
  }