@exodus/analytics-validation 3.3.0 → 3.6.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 (38) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/lib/common-properties.schemasafe.json +10 -0
  3. package/lib/events.d.ts +164 -0
  4. package/lib/exchange/exchange-swap.schemasafe.json +3 -0
  5. package/lib/exchange/exchange-time-trace.schemasafe.json +9 -0
  6. package/lib/main.schemasafe.json +93 -0
  7. package/lib/pay/pay-rewards-banner-dismiss.schemasafe.json +27 -0
  8. package/lib/pay/pay-rewards-banner-view.schemasafe.json +31 -0
  9. package/lib/pay/pay-rewards-dashboard-view.schemasafe.json +36 -0
  10. package/lib/pay/pay-rewards-disable.schemasafe.json +22 -0
  11. package/lib/pay/pay-rewards-join.schemasafe.json +50 -0
  12. package/lib/pay/pay-rewards-onboarding-dismiss.schemasafe.json +49 -0
  13. package/lib/pay/pay-rewards-onboarding-view.schemasafe.json +55 -0
  14. package/lib/pay/pay-rewards-redeem.schemasafe.json +36 -0
  15. package/lib/pay/pay-rewards-terms-view.schemasafe.json +34 -0
  16. package/lib/pay/pay-rewards-wishlist-submit.schemasafe.json +50 -0
  17. package/lib/pay/rebalancing-attempted.schemasafe.json +21 -0
  18. package/lib/pay/rebalancing-failed.schemasafe.json +34 -0
  19. package/lib/pay/rebalancing-succeeded.schemasafe.json +22 -0
  20. package/lib/wealth/stocks-buy-add-cash-tap.schemasafe.json +38 -0
  21. package/lib/wealth/stocks-fund-amount-dismissed.schemasafe.json +64 -0
  22. package/lib/wealth/stocks-fund-amount-view.schemasafe.json +34 -0
  23. package/lib/wealth/stocks-fund-blocked.schemasafe.json +58 -0
  24. package/lib/wealth/stocks-fund-confirm-dismissed.schemasafe.json +32 -0
  25. package/lib/wealth/stocks-fund-confirm-view.schemasafe.json +26 -0
  26. package/lib/wealth/stocks-fund-deposit-tap.schemasafe.json +30 -0
  27. package/lib/wealth/stocks-fund-error.schemasafe.json +30 -0
  28. package/lib/wealth/stocks-fund-success.schemasafe.json +29 -0
  29. package/lib/wealth/stocks-fund.schemasafe.json +26 -0
  30. package/lib/wealth/stocks-withdraw-amount-dismissed.schemasafe.json +64 -0
  31. package/lib/wealth/stocks-withdraw-amount-view.schemasafe.json +27 -0
  32. package/lib/wealth/stocks-withdraw-blocked.schemasafe.json +58 -0
  33. package/lib/wealth/stocks-withdraw-confirm-dismissed.schemasafe.json +32 -0
  34. package/lib/wealth/stocks-withdraw-confirm-view.schemasafe.json +29 -0
  35. package/lib/wealth/stocks-withdraw-error.schemasafe.json +30 -0
  36. package/lib/wealth/stocks-withdraw-success.schemasafe.json +29 -0
  37. package/lib/wealth/stocks-withdraw.schemasafe.json +29 -0
  38. package/package.json +5 -5
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "StocksWithdrawAmountDismissed"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "amount_usd": {
18
+ "type": "number"
19
+ },
20
+ "button_ready": {
21
+ "type": "boolean"
22
+ },
23
+ "error_type": {
24
+ "type": "string",
25
+ "enum": [
26
+ "READ_ONLY_WALLET_ACCOUNT",
27
+ "EXCHANGE_UNAVAILABLE",
28
+ "MUST_OPT_IN",
29
+ "LOW_SOL_RENT_EXEMPT_AMOUNT",
30
+ "ZERO_BALANCE",
31
+ "NOT_ENOUGH_BALANCE",
32
+ "LOW_FROM_AMOUNT",
33
+ "HIGH_FROM_AMOUNT",
34
+ "NOT_ENOUGH_FEE_BALANCE",
35
+ "EXACT_OUT_QUOTE",
36
+ "MARKET_CLOSED",
37
+ "ASSET_PAUSED",
38
+ "INTERNAL_ERROR",
39
+ "HIGH_RISK_TOKENS",
40
+ "INVALID_ADDRESS",
41
+ "INSUFFICIENT_LIQUIDITY",
42
+ "UNSUPPORTED_SWAP_MODE",
43
+ "RESTRICTED_REGION",
44
+ "AMOUNT_ABOVE_LIMIT",
45
+ "AMOUNT_BELOW_LIMIT",
46
+ "PAIR_UNAVAILABLE",
47
+ "EOS_ACCOUNT_CREATION_IN_PROGRESS",
48
+ "TRANSACTION_STUCK"
49
+ ]
50
+ },
51
+ "balance_usd": {
52
+ "type": "number",
53
+ "minimum": 0
54
+ },
55
+ "duration_s": {
56
+ "type": "number"
57
+ }
58
+ },
59
+ "unevaluatedProperties": false
60
+ }
61
+ },
62
+ "unevaluatedProperties": false,
63
+ "required": ["event", "properties"]
64
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "StocksWithdrawAmountView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "balance_usd": {
18
+ "type": "number",
19
+ "minimum": 0
20
+ }
21
+ },
22
+ "unevaluatedProperties": false
23
+ }
24
+ },
25
+ "unevaluatedProperties": false,
26
+ "required": ["event", "properties"]
27
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "StocksWithdrawBlocked"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "error_type": {
18
+ "type": "string",
19
+ "enum": [
20
+ "READ_ONLY_WALLET_ACCOUNT",
21
+ "EXCHANGE_UNAVAILABLE",
22
+ "MUST_OPT_IN",
23
+ "LOW_SOL_RENT_EXEMPT_AMOUNT",
24
+ "ZERO_BALANCE",
25
+ "NOT_ENOUGH_BALANCE",
26
+ "LOW_FROM_AMOUNT",
27
+ "HIGH_FROM_AMOUNT",
28
+ "NOT_ENOUGH_FEE_BALANCE",
29
+ "EXACT_OUT_QUOTE",
30
+ "MARKET_CLOSED",
31
+ "ASSET_PAUSED",
32
+ "INTERNAL_ERROR",
33
+ "HIGH_RISK_TOKENS",
34
+ "INVALID_ADDRESS",
35
+ "INSUFFICIENT_LIQUIDITY",
36
+ "UNSUPPORTED_SWAP_MODE",
37
+ "RESTRICTED_REGION",
38
+ "AMOUNT_ABOVE_LIMIT",
39
+ "AMOUNT_BELOW_LIMIT",
40
+ "PAIR_UNAVAILABLE",
41
+ "EOS_ACCOUNT_CREATION_IN_PROGRESS",
42
+ "TRANSACTION_STUCK"
43
+ ]
44
+ },
45
+ "amount_usd": {
46
+ "type": "number"
47
+ },
48
+ "balance_usd": {
49
+ "type": "number",
50
+ "minimum": 0
51
+ }
52
+ },
53
+ "unevaluatedProperties": false
54
+ }
55
+ },
56
+ "unevaluatedProperties": false,
57
+ "required": ["event", "properties"]
58
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "StocksWithdrawConfirmDismissed"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "amount_usd": {
18
+ "type": "number"
19
+ },
20
+ "confirm_ready": {
21
+ "type": "boolean"
22
+ },
23
+ "duration_s": {
24
+ "type": "number"
25
+ }
26
+ },
27
+ "unevaluatedProperties": false
28
+ }
29
+ },
30
+ "unevaluatedProperties": false,
31
+ "required": ["event", "properties"]
32
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "StocksWithdrawConfirmView"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "amount_usd": {
18
+ "type": "number"
19
+ },
20
+ "withdraw_all": {
21
+ "type": "boolean"
22
+ }
23
+ },
24
+ "unevaluatedProperties": false
25
+ }
26
+ },
27
+ "unevaluatedProperties": false,
28
+ "required": ["event", "properties"]
29
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "StocksWithdrawError"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "error_type": {
18
+ "type": "string",
19
+ "enum": ["transfer_failed", "NO_QUOTE"]
20
+ },
21
+ "amount_usd": {
22
+ "type": "number"
23
+ }
24
+ },
25
+ "unevaluatedProperties": false
26
+ }
27
+ },
28
+ "unevaluatedProperties": false,
29
+ "required": ["event", "properties"]
30
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "StocksWithdrawSuccess"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "amount_usd": {
18
+ "type": "number"
19
+ },
20
+ "duration_s": {
21
+ "type": "number"
22
+ }
23
+ },
24
+ "unevaluatedProperties": false
25
+ }
26
+ },
27
+ "unevaluatedProperties": false,
28
+ "required": ["event", "properties"]
29
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "StocksWithdraw"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "amount_usd": {
18
+ "type": "number"
19
+ },
20
+ "withdraw_all": {
21
+ "type": "boolean"
22
+ }
23
+ },
24
+ "unevaluatedProperties": false
25
+ }
26
+ },
27
+ "unevaluatedProperties": false,
28
+ "required": ["event", "properties"]
29
+ }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "3.3.0",
3
+ "version": "3.6.0",
4
4
  "type": "module",
5
5
  "description": "JSON schemas for analytics events, to prevent sensitive data from being sent up to the infamous cloud",
6
6
  "author": "Exodus Movement, Inc.",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/ExodusMovement/exodus-hydra.git"
9
+ "url": "git+https://github.com/ExodusMovement/exodus.git"
10
10
  },
11
- "homepage": "https://github.com/ExodusMovement/exodus-hydra/tree/master/libraries/analytics-validation",
11
+ "homepage": "https://github.com/ExodusMovement/exodus/tree/master/libs/libraries/analytics-validation",
12
12
  "license": "MIT",
13
13
  "bugs": {
14
- "url": "https://github.com/ExodusMovement/exodus-hydra/issues?q=is%3Aissue+is%3Aopen+label%3Aanalytics-validation"
14
+ "url": "https://github.com/ExodusMovement/exodus/issues?q=is%3Aissue+is%3Aopen+label%3Aanalytics-validation"
15
15
  },
16
16
  "main": "lib/index.js",
17
17
  "types": "lib/index.d.ts",
@@ -56,5 +56,5 @@
56
56
  "access": "public",
57
57
  "provenance": false
58
58
  },
59
- "gitHead": "ff895627124a8e07ccbbeb724f3ae2c0ffc44892"
59
+ "gitHead": "b050f5f6f7c57ca329ca7e7d15524c787c2f4ad7"
60
60
  }