@exodus/analytics-validation 2.77.1 → 2.79.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 +10 -0
- package/lib/common-properties.schemasafe.json +34 -0
- package/lib/events.d.ts +174 -1
- package/lib/index.js +7 -2
- package/lib/main.schemasafe.json +81 -0
- package/lib/pay/pay-onboarding-screen-view.schemasafe.json +0 -11
- package/lib/predictions/pay-predictions-account-activate.schemasafe.json +25 -0
- package/lib/predictions/pay-predictions-buy-abandon-during-processing.schemasafe.json +42 -0
- package/lib/predictions/pay-predictions-buy-confirm.schemasafe.json +50 -0
- package/lib/predictions/pay-predictions-buy-fail.schemasafe.json +45 -0
- package/lib/predictions/pay-predictions-buy-fund-trigger.schemasafe.json +34 -0
- package/lib/predictions/pay-predictions-buy-insufficient-funds.schemasafe.json +42 -0
- package/lib/predictions/pay-predictions-buy-option-change.schemasafe.json +48 -0
- package/lib/predictions/pay-predictions-buy-start.schemasafe.json +52 -0
- package/lib/predictions/pay-predictions-buy-success.schemasafe.json +61 -0
- package/lib/predictions/pay-predictions-fund-entry.schemasafe.json +37 -0
- package/lib/predictions/pay-predictions-history-item-tap.schemasafe.json +37 -0
- package/lib/predictions/pay-predictions-history-view.schemasafe.json +38 -0
- package/lib/predictions/pay-predictions-market-detail-open.schemasafe.json +34 -0
- package/lib/predictions/pay-predictions-market-resolve.schemasafe.json +51 -0
- package/lib/predictions/pay-predictions-market-swipe.schemasafe.json +37 -0
- package/lib/predictions/pay-predictions-market-view.schemasafe.json +56 -0
- package/lib/predictions/pay-predictions-open.schemasafe.json +29 -0
- package/lib/predictions/pay-predictions-position-tap.schemasafe.json +37 -0
- package/lib/predictions/pay-predictions-position-view.schemasafe.json +51 -0
- package/lib/predictions/pay-predictions-positions-see-all.schemasafe.json +30 -0
- package/lib/predictions/pay-predictions-search.schemasafe.json +34 -0
- package/lib/predictions/pay-predictions-sell-fail.schemasafe.json +45 -0
- package/lib/predictions/pay-predictions-sell-start.schemasafe.json +45 -0
- package/lib/predictions/pay-predictions-sell-success.schemasafe.json +44 -0
- package/lib/predictions/pay-predictions-tab-select.schemasafe.json +34 -0
- package/lib/predictions/pay-predictions-view-mode-change.schemasafe.json +32 -0
- package/lib/predictions/pay-predictions-winnings-claim.schemasafe.json +44 -0
- package/package.json +3 -2
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayPredictionsSellSuccess"
|
|
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
|
+
"sell_amount_usd": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"minimum": 0
|
|
31
|
+
},
|
|
32
|
+
"realized_pnl_usd": {
|
|
33
|
+
"type": "number"
|
|
34
|
+
},
|
|
35
|
+
"is_first_sell": {
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"unevaluatedProperties": false
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"unevaluatedProperties": false,
|
|
43
|
+
"required": ["event", "properties"]
|
|
44
|
+
}
|
|
@@ -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.
|
|
3
|
+
"version": "2.79.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": "
|
|
56
|
+
"gitHead": "a4be77ef37246db86a0fa92dbd7acd1c01e51a4a"
|
|
56
57
|
}
|