@exodus/analytics-validation 1.1.0 → 1.3.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 (48) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +2 -2
  3. package/src/{fiat/on-ramp-view.schemasafe.json → bitrefill/bitrefill-pay.schemasafe.json} +3 -4
  4. package/src/common-properties.schemasafe.json +4 -0
  5. package/src/exchange/exchange-asset-swap.schemasafe.json +0 -14
  6. package/src/fiat/off-ramp-continue-tap.schemasafe.json +0 -14
  7. package/src/fiat/off-ramp-provider-status-change.schemasafe.json +0 -4
  8. package/src/fiat/off-ramp-sale-confirm.schemasafe.json +0 -4
  9. package/src/fiat/on-ramp-continue-tap.schemasafe.json +0 -4
  10. package/src/fiat/on-ramp-payment-method-select.schemasafe.json +0 -4
  11. package/src/fiat/on-ramp-provider-select.schemasafe.json +0 -4
  12. package/src/fiat/on-ramp-provider-status-change.schemasafe.json +0 -4
  13. package/src/fiat/on-ramp-purchase-confirm.schemasafe.json +0 -4
  14. package/src/main.schemasafe.json +2 -92
  15. package/src/onboarding/restore-wallet-seed-input.schemasafe.json +0 -4
  16. package/src/security/security-backup-vault-view.schemasafe.json +0 -4
  17. package/src/wallet/wallet-staking-view.schemasafe.json +0 -4
  18. package/src/web3/web3-browser-launch-dapp.schemasafe.json +0 -4
  19. package/src/backup/backup-prompt-view.schemasafe.json +0 -27
  20. package/src/exchange/exchange-configure-asset-swap.schemasafe.json +0 -37
  21. package/src/exchange/exchange-view.schemasafe.json +0 -39
  22. package/src/fiat/fiat-view.schemasafe.json +0 -39
  23. package/src/fiat/off-ramp-configure-asset-sale.schemasafe.json +0 -37
  24. package/src/fiat/off-ramp-configure-asset-sell.schemasafe.json +0 -27
  25. package/src/fiat/off-ramp-sale-confirm-view.schemasafe.json +0 -27
  26. package/src/fiat/off-ramp-send-to-browser.schemasafe.json +0 -27
  27. package/src/fiat/off-ramp-view.schemasafe.json +0 -27
  28. package/src/fiat/on-ramp-configure-asset-purchase.schemasafe.json +0 -27
  29. package/src/fiat/on-ramp-disabled-view.schemasafe.json +0 -27
  30. package/src/fiat/on-ramp-payment-method-view.schemasafe.json +0 -27
  31. package/src/fiat/on-ramp-provider-view.schemasafe.json +0 -27
  32. package/src/fiat/on-ramp-receive-from-browser.schemasafe.json +0 -27
  33. package/src/fiat/on-ramp-send-to-browser.schemasafe.json +0 -27
  34. package/src/lightning/lightning-onboarding-view.schemasafe.json +0 -27
  35. package/src/lightning/lightning-receive-view.schemasafe.json +0 -27
  36. package/src/lightning/lightning-send-view.schemasafe.json +0 -27
  37. package/src/lightning/lightning-view.schemasafe.json +0 -27
  38. package/src/security/security-backups-screen-view.schemasafe.json +0 -27
  39. package/src/security/security-secret-phrase-screen-view.schemasafe.json +0 -36
  40. package/src/wallet/receive-select-asset-view.schemasafe.json +0 -27
  41. package/src/wallet/wallet-asset-receive-view.schemasafe.json +0 -27
  42. package/src/wallet/wallet-asset-view.schemasafe.json +0 -27
  43. package/src/wallet/wallet-connect-initiate-connection.schemasafe.json +0 -27
  44. package/src/wallet/wallet-exchange-detail-view.schemasafe.json +0 -27
  45. package/src/wallet/wallet-purchase-detail-view.schemasafe.json +0 -27
  46. package/src/wallet/wallet-receive-assets-view.schemasafe.json +0 -27
  47. package/src/wallet/wallet-sale-detail-view.schemasafe.json +0 -27
  48. package/src/wallet/wallet-transaction-detail-view.schemasafe.json +0 -34
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
+ ## [1.3.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.2.0...@exodus/analytics-validation@1.3.0) (2023-06-05)
7
+
8
+ ### Features
9
+
10
+ - **analytics-validation:** replace all origin enum validation with any-string ([#1765](https://github.com/ExodusMovement/exodus-hydra/issues/1765)) ([a5fb529](https://github.com/ExodusMovement/exodus-hydra/commit/a5fb529c162943b87be175bf5559e591e4cf688b))
11
+
12
+ ## [1.2.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.1.0...@exodus/analytics-validation@1.2.0) (2023-06-01)
13
+
14
+ ### Features
15
+
16
+ - **analytics-validation:** add bitrefill schemas ([#1739](https://github.com/ExodusMovement/exodus-hydra/issues/1739)) ([a3ac635](https://github.com/ExodusMovement/exodus-hydra/commit/a3ac6354ded28ccf6c14a94637764f29d051ee7f))
17
+
6
18
  ## [1.1.0-alpha.4](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.1.0-alpha.3...@exodus/analytics-validation@1.1.0-alpha.4) (2023-05-18)
7
19
 
8
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "The analytics-validation library",
5
5
  "author": "Exodus Movement Inc",
6
6
  "repository": {
@@ -33,5 +33,5 @@
33
33
  "eslint": "^8.33.0",
34
34
  "jest": "^29.1.2"
35
35
  },
36
- "gitHead": "84f8589306a0b31d43759d9bec138dc35bac9c00"
36
+ "gitHead": "098c18a96733499ec8378bbb21c3a6e3c1c4cb38"
37
37
  }
@@ -3,7 +3,7 @@
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "event": {
6
- "const": "OnRampView"
6
+ "const": "BitrefillPay"
7
7
  },
8
8
  "properties": {
9
9
  "allOf": [
@@ -14,9 +14,8 @@
14
14
  "type": "object",
15
15
  "required": [],
16
16
  "properties": {
17
- "origin": {
18
- "type": "string",
19
- "format": "any-string"
17
+ "success": {
18
+ "type": "boolean"
20
19
  }
21
20
  },
22
21
  "unevaluatedProperties": false
@@ -184,6 +184,10 @@
184
184
  "selected_language": {
185
185
  "type": "string",
186
186
  "format": "any-string"
187
+ },
188
+ "origin": {
189
+ "type": "string",
190
+ "format": "any-string"
187
191
  }
188
192
  }
189
193
  }
@@ -14,20 +14,6 @@
14
14
  "type": "object",
15
15
  "required": [],
16
16
  "properties": {
17
- "origin": {
18
- "type": "string",
19
- "enum": [
20
- "dashboard-portfolio",
21
- "nav-bar",
22
- "nft-gallery",
23
- "null",
24
- "stake-form-no-funds",
25
- "staking-claim",
26
- "transactions",
27
- "wallet-asset",
28
- "wallet-quick-action"
29
- ]
30
- },
31
17
  "success": {
32
18
  "type": "boolean"
33
19
  }
@@ -18,20 +18,6 @@
18
18
  "type": "string",
19
19
  "format": "any-string"
20
20
  },
21
- "origin": {
22
- "type": "string",
23
- "enum": [
24
- "dashboard",
25
- "exodex-insufficient-funds",
26
- "exodus-dashboard-asset",
27
- "home",
28
- "nav-bar",
29
- "profile",
30
- "promo-banner",
31
- "wallet-asset",
32
- "wallet-connect"
33
- ]
34
- },
35
21
  "payment_method": {
36
22
  "type": "string",
37
23
  "enum": ["card"]
@@ -35,10 +35,6 @@
35
35
  "type": "string",
36
36
  "format": "any-string"
37
37
  },
38
- "origin": {
39
- "type": "string",
40
- "format": "any-string"
41
- },
42
38
  "payment_method": {
43
39
  "type": "string",
44
40
  "format": "any-string"
@@ -14,10 +14,6 @@
14
14
  "type": "object",
15
15
  "required": [],
16
16
  "properties": {
17
- "origin": {
18
- "type": "string",
19
- "format": "any-string"
20
- },
21
17
  "success": {
22
18
  "type": "boolean"
23
19
  }
@@ -18,10 +18,6 @@
18
18
  "type": "string",
19
19
  "format": "any-string"
20
20
  },
21
- "origin": {
22
- "type": "string",
23
- "format": "any-string"
24
- },
25
21
  "payment_method": {
26
22
  "type": "string",
27
23
  "format": "any-string"
@@ -14,10 +14,6 @@
14
14
  "type": "object",
15
15
  "required": [],
16
16
  "properties": {
17
- "origin": {
18
- "type": "string",
19
- "format": "any-string"
20
- },
21
17
  "payment_method_to": {
22
18
  "type": "string",
23
19
  "format": "any-string"
@@ -17,10 +17,6 @@
17
17
  "best_price": {
18
18
  "type": "boolean"
19
19
  },
20
- "origin": {
21
- "type": "string",
22
- "format": "any-string"
23
- },
24
20
  "provider_from": {
25
21
  "type": "string",
26
22
  "format": "any-string"
@@ -38,10 +38,6 @@
38
38
  "network_fee": {
39
39
  "type": "number"
40
40
  },
41
- "origin": {
42
- "type": "string",
43
- "format": "any-string"
44
- },
45
41
  "payment_method": {
46
42
  "type": "string",
47
43
  "format": "any-string"
@@ -14,10 +14,6 @@
14
14
  "type": "object",
15
15
  "required": [],
16
16
  "properties": {
17
- "origin": {
18
- "type": "string",
19
- "format": "any-string"
20
- },
21
17
  "success": {
22
18
  "type": "boolean"
23
19
  }
@@ -16,10 +16,10 @@
16
16
  "$ref": "asset-network-manual-refresh#"
17
17
  },
18
18
  {
19
- "$ref": "backup-prompt-view#"
19
+ "$ref": "balance-fetch-network-error-notice#"
20
20
  },
21
21
  {
22
- "$ref": "balance-fetch-network-error-notice#"
22
+ "$ref": "bitrefill-pay#"
23
23
  },
24
24
  {
25
25
  "$ref": "check-backup-quiz-completed#"
@@ -69,9 +69,6 @@
69
69
  {
70
70
  "$ref": "exchange-asset-swap#"
71
71
  },
72
- {
73
- "$ref": "exchange-configure-asset-swap#"
74
- },
75
72
  {
76
73
  "$ref": "exchange-no-gas#"
77
74
  },
@@ -84,18 +81,12 @@
84
81
  {
85
82
  "$ref": "exchange-order-status-change#"
86
83
  },
87
- {
88
- "$ref": "exchange-view#"
89
- },
90
84
  {
91
85
  "$ref": "exodus-transaction-broadcast-error#"
92
86
  },
93
87
  {
94
88
  "$ref": "exodus-transaction-broadcast#"
95
89
  },
96
- {
97
- "$ref": "fiat-view#"
98
- },
99
90
  {
100
91
  "$ref": "fusion-profile-create#"
101
92
  },
@@ -144,27 +135,15 @@
144
135
  {
145
136
  "$ref": "lightning-invoice-generated#"
146
137
  },
147
- {
148
- "$ref": "lightning-onboarding-view#"
149
- },
150
138
  {
151
139
  "$ref": "lightning-receive-funds#"
152
140
  },
153
- {
154
- "$ref": "lightning-receive-view#"
155
- },
156
- {
157
- "$ref": "lightning-send-view#"
158
- },
159
141
  {
160
142
  "$ref": "lightning-send#"
161
143
  },
162
144
  {
163
145
  "$ref": "lightning-terms-and-conditions#"
164
146
  },
165
- {
166
- "$ref": "lightning-view#"
167
- },
168
147
  {
169
148
  "$ref": "lightning-withdraw#"
170
149
  },
@@ -180,12 +159,6 @@
180
159
  {
181
160
  "$ref": "notifications-system-permission-modal-enable-tap#"
182
161
  },
183
- {
184
- "$ref": "off-ramp-configure-asset-sale#"
185
- },
186
- {
187
- "$ref": "off-ramp-configure-asset-sell#"
188
- },
189
162
  {
190
163
  "$ref": "off-ramp-continue-tap#"
191
164
  },
@@ -195,63 +168,30 @@
195
168
  {
196
169
  "$ref": "off-ramp-provider-status-change#"
197
170
  },
198
- {
199
- "$ref": "off-ramp-sale-confirm-view#"
200
- },
201
171
  {
202
172
  "$ref": "off-ramp-sale-confirm#"
203
173
  },
204
- {
205
- "$ref": "off-ramp-send-to-browser#"
206
- },
207
- {
208
- "$ref": "off-ramp-view#"
209
- },
210
- {
211
- "$ref": "on-ramp-configure-asset-purchase#"
212
- },
213
174
  {
214
175
  "$ref": "on-ramp-continue-tap#"
215
176
  },
216
- {
217
- "$ref": "on-ramp-disabled-view#"
218
- },
219
177
  {
220
178
  "$ref": "on-ramp-payment-method-select#"
221
179
  },
222
- {
223
- "$ref": "on-ramp-payment-method-view#"
224
- },
225
180
  {
226
181
  "$ref": "on-ramp-provider-select#"
227
182
  },
228
183
  {
229
184
  "$ref": "on-ramp-provider-status-change#"
230
185
  },
231
- {
232
- "$ref": "on-ramp-provider-view#"
233
- },
234
186
  {
235
187
  "$ref": "on-ramp-purchase-confirm#"
236
188
  },
237
- {
238
- "$ref": "on-ramp-receive-from-browser#"
239
- },
240
- {
241
- "$ref": "on-ramp-send-to-browser#"
242
- },
243
- {
244
- "$ref": "on-ramp-view#"
245
- },
246
189
  {
247
190
  "$ref": "onboarding-page-skipped#"
248
191
  },
249
192
  {
250
193
  "$ref": "onboarding-page-view#"
251
194
  },
252
- {
253
- "$ref": "receive-select-asset-view#"
254
- },
255
195
  {
256
196
  "$ref": "referral-code-input#"
257
197
  },
@@ -291,12 +231,6 @@
291
231
  {
292
232
  "$ref": "security-backup-vault-view#"
293
233
  },
294
- {
295
- "$ref": "security-backups-screen-view#"
296
- },
297
- {
298
- "$ref": "security-secret-phrase-screen-view#"
299
- },
300
234
  {
301
235
  "$ref": "settings-advanced-mode-toggle#"
302
236
  },
@@ -345,18 +279,12 @@
345
279
  {
346
280
  "$ref": "wallet-asset-network-manual-refresh#"
347
281
  },
348
- {
349
- "$ref": "wallet-asset-receive-view#"
350
- },
351
282
  {
352
283
  "$ref": "wallet-asset-send-no-gas#"
353
284
  },
354
285
  {
355
286
  "$ref": "wallet-asset-send#"
356
287
  },
357
- {
358
- "$ref": "wallet-asset-view#"
359
- },
360
288
  {
361
289
  "$ref": "wallet-connect-connection-added#"
362
290
  },
@@ -375,21 +303,6 @@
375
303
  {
376
304
  "$ref": "wallet-connect-fiat-on-ramp-cta-tap#"
377
305
  },
378
- {
379
- "$ref": "wallet-connect-initiate-connection#"
380
- },
381
- {
382
- "$ref": "wallet-exchange-detail-view#"
383
- },
384
- {
385
- "$ref": "wallet-purchase-detail-view#"
386
- },
387
- {
388
- "$ref": "wallet-receive-assets-view#"
389
- },
390
- {
391
- "$ref": "wallet-sale-detail-view#"
392
- },
393
306
  {
394
307
  "$ref": "wallet-staking-claim#"
395
308
  },
@@ -405,9 +318,6 @@
405
318
  {
406
319
  "$ref": "wallet-staking-view#"
407
320
  },
408
- {
409
- "$ref": "wallet-transaction-detail-view#"
410
- },
411
321
  {
412
322
  "$ref": "web3-browser-launch-dapp#"
413
323
  },
@@ -14,10 +14,6 @@
14
14
  "type": "object",
15
15
  "required": [],
16
16
  "properties": {
17
- "origin": {
18
- "type": "string",
19
- "enum": ["onboarding", "settings"]
20
- },
21
17
  "is_onboarding": {
22
18
  "type": "boolean"
23
19
  },
@@ -14,10 +14,6 @@
14
14
  "type": "object",
15
15
  "required": [],
16
16
  "properties": {
17
- "origin": {
18
- "type": "string",
19
- "enum": ["nav-bar", "security"]
20
- },
21
17
  "screen_type": {
22
18
  "type": "string",
23
19
  "enum": [
@@ -16,10 +16,6 @@
16
16
  "properties": {
17
17
  "is_active": {
18
18
  "type": "boolean"
19
- },
20
- "origin": {
21
- "type": "string",
22
- "format": "any-string"
23
19
  }
24
20
  },
25
21
  "unevaluatedProperties": false
@@ -17,10 +17,6 @@
17
17
  "dapp_domain": {
18
18
  "type": "string",
19
19
  "format": "any-string"
20
- },
21
- "origin": {
22
- "type": "string",
23
- "format": "any-string"
24
20
  }
25
21
  },
26
22
  "unevaluatedProperties": false
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "event": {
6
- "const": "BackupPromptView"
7
- },
8
- "properties": {
9
- "allOf": [
10
- {
11
- "$ref": "common-properties#"
12
- }
13
- ],
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "origin": {
18
- "type": "string",
19
- "enum": ["enabling-passcode", "newly-funded-wallet"]
20
- }
21
- },
22
- "unevaluatedProperties": false
23
- }
24
- },
25
- "unevaluatedProperties": false,
26
- "required": ["event", "properties"]
27
- }
@@ -1,37 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "event": {
6
- "const": "ExchangeConfigureAssetSwap"
7
- },
8
- "properties": {
9
- "allOf": [
10
- {
11
- "$ref": "common-properties#"
12
- }
13
- ],
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "origin": {
18
- "type": "string",
19
- "enum": [
20
- "dashboard-portfolio",
21
- "nav-bar",
22
- "nft-gallery",
23
- "solana-pay",
24
- "stake-form-no-funds",
25
- "staking-claim",
26
- "transactions",
27
- "wallet-asset",
28
- "wallet-quick-action"
29
- ]
30
- }
31
- },
32
- "unevaluatedProperties": false
33
- }
34
- },
35
- "unevaluatedProperties": false,
36
- "required": ["event", "properties"]
37
- }
@@ -1,39 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "event": {
6
- "const": "ExchangeView"
7
- },
8
- "properties": {
9
- "allOf": [
10
- {
11
- "$ref": "common-properties#"
12
- }
13
- ],
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "origin": {
18
- "type": "string",
19
- "enum": [
20
- "app-start",
21
- "dashboard-portfolio",
22
- "fiat-offramp-insufficient-funds",
23
- "nav-bar",
24
- "nft-gallery",
25
- "solana-pay",
26
- "stake-form-no-funds",
27
- "staking-claim",
28
- "transactions",
29
- "wallet-asset",
30
- "wallet-quick-action"
31
- ]
32
- }
33
- },
34
- "unevaluatedProperties": false
35
- }
36
- },
37
- "unevaluatedProperties": false,
38
- "required": ["event", "properties"]
39
- }
@@ -1,39 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "event": {
6
- "const": "FiatView"
7
- },
8
- "properties": {
9
- "allOf": [
10
- {
11
- "$ref": "common-properties#"
12
- }
13
- ],
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "origin": {
18
- "type": "string",
19
- "enum": [
20
- "dashboard",
21
- "exodex",
22
- "exodus-insufficient-funds",
23
- "home",
24
- "nav-bar",
25
- "profile",
26
- "promo-banner",
27
- "wallet",
28
- "wallet-asset",
29
- "wallet-asset-empty",
30
- "wallet-connect"
31
- ]
32
- }
33
- },
34
- "unevaluatedProperties": false
35
- }
36
- },
37
- "unevaluatedProperties": false,
38
- "required": ["event", "properties"]
39
- }
@@ -1,37 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "event": {
6
- "const": "OffRampConfigureAssetSale"
7
- },
8
- "properties": {
9
- "allOf": [
10
- {
11
- "$ref": "common-properties#"
12
- }
13
- ],
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "origin": {
18
- "type": "string",
19
- "enum": [
20
- "dashboard",
21
- "exodex-insufficient-funds",
22
- "exodus-dashboard-asset",
23
- "home",
24
- "nav-bar",
25
- "profile",
26
- "promo-banner",
27
- "wallet-asset",
28
- "wallet-connect"
29
- ]
30
- }
31
- },
32
- "unevaluatedProperties": false
33
- }
34
- },
35
- "unevaluatedProperties": false,
36
- "required": ["event", "properties"]
37
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "event": {
6
- "const": "OffRampConfigureAssetSell"
7
- },
8
- "properties": {
9
- "allOf": [
10
- {
11
- "$ref": "common-properties#"
12
- }
13
- ],
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "origin": {
18
- "type": "string",
19
- "enum": ["dashboard", "exodus-dashboard-asset", "nav-bar"]
20
- }
21
- },
22
- "unevaluatedProperties": false
23
- }
24
- },
25
- "unevaluatedProperties": false,
26
- "required": ["event", "properties"]
27
- }