@exodus/analytics-validation 1.2.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 (52) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +2 -2
  3. package/src/bitrefill/bitrefill-pay.schemasafe.json +0 -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 +0 -102
  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/bitrefill/bitrefill-insufficient-funds-view.schemasafe.json +0 -27
  21. package/src/bitrefill/bitrefill-payment-view.schemasafe.json +0 -27
  22. package/src/bitrefill/bitrefill-view.schemasafe.json +0 -27
  23. package/src/exchange/exchange-configure-asset-swap.schemasafe.json +0 -37
  24. package/src/exchange/exchange-view.schemasafe.json +0 -39
  25. package/src/fiat/fiat-view.schemasafe.json +0 -39
  26. package/src/fiat/off-ramp-configure-asset-sale.schemasafe.json +0 -37
  27. package/src/fiat/off-ramp-configure-asset-sell.schemasafe.json +0 -27
  28. package/src/fiat/off-ramp-sale-confirm-view.schemasafe.json +0 -27
  29. package/src/fiat/off-ramp-send-to-browser.schemasafe.json +0 -27
  30. package/src/fiat/off-ramp-view.schemasafe.json +0 -27
  31. package/src/fiat/on-ramp-configure-asset-purchase.schemasafe.json +0 -27
  32. package/src/fiat/on-ramp-disabled-view.schemasafe.json +0 -27
  33. package/src/fiat/on-ramp-payment-method-view.schemasafe.json +0 -27
  34. package/src/fiat/on-ramp-provider-view.schemasafe.json +0 -27
  35. package/src/fiat/on-ramp-receive-from-browser.schemasafe.json +0 -27
  36. package/src/fiat/on-ramp-send-to-browser.schemasafe.json +0 -27
  37. package/src/fiat/on-ramp-view.schemasafe.json +0 -27
  38. package/src/lightning/lightning-onboarding-view.schemasafe.json +0 -27
  39. package/src/lightning/lightning-receive-view.schemasafe.json +0 -27
  40. package/src/lightning/lightning-send-view.schemasafe.json +0 -27
  41. package/src/lightning/lightning-view.schemasafe.json +0 -27
  42. package/src/security/security-backups-screen-view.schemasafe.json +0 -27
  43. package/src/security/security-secret-phrase-screen-view.schemasafe.json +0 -36
  44. package/src/wallet/receive-select-asset-view.schemasafe.json +0 -27
  45. package/src/wallet/wallet-asset-receive-view.schemasafe.json +0 -27
  46. package/src/wallet/wallet-asset-view.schemasafe.json +0 -27
  47. package/src/wallet/wallet-connect-initiate-connection.schemasafe.json +0 -27
  48. package/src/wallet/wallet-exchange-detail-view.schemasafe.json +0 -27
  49. package/src/wallet/wallet-purchase-detail-view.schemasafe.json +0 -27
  50. package/src/wallet/wallet-receive-assets-view.schemasafe.json +0 -27
  51. package/src/wallet/wallet-sale-detail-view.schemasafe.json +0 -27
  52. package/src/wallet/wallet-transaction-detail-view.schemasafe.json +0 -34
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.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
+
6
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)
7
13
 
8
14
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "1.2.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": "52828af6d22620c3770831020cee683af894a98b"
36
+ "gitHead": "098c18a96733499ec8378bbb21c3a6e3c1c4cb38"
37
37
  }
@@ -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
  }
@@ -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
  }
@@ -15,24 +15,12 @@
15
15
  {
16
16
  "$ref": "asset-network-manual-refresh#"
17
17
  },
18
- {
19
- "$ref": "backup-prompt-view#"
20
- },
21
18
  {
22
19
  "$ref": "balance-fetch-network-error-notice#"
23
20
  },
24
- {
25
- "$ref": "bitrefill-insufficient-funds-view#"
26
- },
27
21
  {
28
22
  "$ref": "bitrefill-pay#"
29
23
  },
30
- {
31
- "$ref": "bitrefill-payment-view#"
32
- },
33
- {
34
- "$ref": "bitrefill-view#"
35
- },
36
24
  {
37
25
  "$ref": "check-backup-quiz-completed#"
38
26
  },
@@ -81,9 +69,6 @@
81
69
  {
82
70
  "$ref": "exchange-asset-swap#"
83
71
  },
84
- {
85
- "$ref": "exchange-configure-asset-swap#"
86
- },
87
72
  {
88
73
  "$ref": "exchange-no-gas#"
89
74
  },
@@ -96,18 +81,12 @@
96
81
  {
97
82
  "$ref": "exchange-order-status-change#"
98
83
  },
99
- {
100
- "$ref": "exchange-view#"
101
- },
102
84
  {
103
85
  "$ref": "exodus-transaction-broadcast-error#"
104
86
  },
105
87
  {
106
88
  "$ref": "exodus-transaction-broadcast#"
107
89
  },
108
- {
109
- "$ref": "fiat-view#"
110
- },
111
90
  {
112
91
  "$ref": "fusion-profile-create#"
113
92
  },
@@ -156,27 +135,15 @@
156
135
  {
157
136
  "$ref": "lightning-invoice-generated#"
158
137
  },
159
- {
160
- "$ref": "lightning-onboarding-view#"
161
- },
162
138
  {
163
139
  "$ref": "lightning-receive-funds#"
164
140
  },
165
- {
166
- "$ref": "lightning-receive-view#"
167
- },
168
- {
169
- "$ref": "lightning-send-view#"
170
- },
171
141
  {
172
142
  "$ref": "lightning-send#"
173
143
  },
174
144
  {
175
145
  "$ref": "lightning-terms-and-conditions#"
176
146
  },
177
- {
178
- "$ref": "lightning-view#"
179
- },
180
147
  {
181
148
  "$ref": "lightning-withdraw#"
182
149
  },
@@ -192,12 +159,6 @@
192
159
  {
193
160
  "$ref": "notifications-system-permission-modal-enable-tap#"
194
161
  },
195
- {
196
- "$ref": "off-ramp-configure-asset-sale#"
197
- },
198
- {
199
- "$ref": "off-ramp-configure-asset-sell#"
200
- },
201
162
  {
202
163
  "$ref": "off-ramp-continue-tap#"
203
164
  },
@@ -207,63 +168,30 @@
207
168
  {
208
169
  "$ref": "off-ramp-provider-status-change#"
209
170
  },
210
- {
211
- "$ref": "off-ramp-sale-confirm-view#"
212
- },
213
171
  {
214
172
  "$ref": "off-ramp-sale-confirm#"
215
173
  },
216
- {
217
- "$ref": "off-ramp-send-to-browser#"
218
- },
219
- {
220
- "$ref": "off-ramp-view#"
221
- },
222
- {
223
- "$ref": "on-ramp-configure-asset-purchase#"
224
- },
225
174
  {
226
175
  "$ref": "on-ramp-continue-tap#"
227
176
  },
228
- {
229
- "$ref": "on-ramp-disabled-view#"
230
- },
231
177
  {
232
178
  "$ref": "on-ramp-payment-method-select#"
233
179
  },
234
- {
235
- "$ref": "on-ramp-payment-method-view#"
236
- },
237
180
  {
238
181
  "$ref": "on-ramp-provider-select#"
239
182
  },
240
183
  {
241
184
  "$ref": "on-ramp-provider-status-change#"
242
185
  },
243
- {
244
- "$ref": "on-ramp-provider-view#"
245
- },
246
186
  {
247
187
  "$ref": "on-ramp-purchase-confirm#"
248
188
  },
249
- {
250
- "$ref": "on-ramp-receive-from-browser#"
251
- },
252
- {
253
- "$ref": "on-ramp-send-to-browser#"
254
- },
255
- {
256
- "$ref": "on-ramp-view#"
257
- },
258
189
  {
259
190
  "$ref": "onboarding-page-skipped#"
260
191
  },
261
192
  {
262
193
  "$ref": "onboarding-page-view#"
263
194
  },
264
- {
265
- "$ref": "receive-select-asset-view#"
266
- },
267
195
  {
268
196
  "$ref": "referral-code-input#"
269
197
  },
@@ -303,12 +231,6 @@
303
231
  {
304
232
  "$ref": "security-backup-vault-view#"
305
233
  },
306
- {
307
- "$ref": "security-backups-screen-view#"
308
- },
309
- {
310
- "$ref": "security-secret-phrase-screen-view#"
311
- },
312
234
  {
313
235
  "$ref": "settings-advanced-mode-toggle#"
314
236
  },
@@ -357,18 +279,12 @@
357
279
  {
358
280
  "$ref": "wallet-asset-network-manual-refresh#"
359
281
  },
360
- {
361
- "$ref": "wallet-asset-receive-view#"
362
- },
363
282
  {
364
283
  "$ref": "wallet-asset-send-no-gas#"
365
284
  },
366
285
  {
367
286
  "$ref": "wallet-asset-send#"
368
287
  },
369
- {
370
- "$ref": "wallet-asset-view#"
371
- },
372
288
  {
373
289
  "$ref": "wallet-connect-connection-added#"
374
290
  },
@@ -387,21 +303,6 @@
387
303
  {
388
304
  "$ref": "wallet-connect-fiat-on-ramp-cta-tap#"
389
305
  },
390
- {
391
- "$ref": "wallet-connect-initiate-connection#"
392
- },
393
- {
394
- "$ref": "wallet-exchange-detail-view#"
395
- },
396
- {
397
- "$ref": "wallet-purchase-detail-view#"
398
- },
399
- {
400
- "$ref": "wallet-receive-assets-view#"
401
- },
402
- {
403
- "$ref": "wallet-sale-detail-view#"
404
- },
405
306
  {
406
307
  "$ref": "wallet-staking-claim#"
407
308
  },
@@ -417,9 +318,6 @@
417
318
  {
418
319
  "$ref": "wallet-staking-view#"
419
320
  },
420
- {
421
- "$ref": "wallet-transaction-detail-view#"
422
- },
423
321
  {
424
322
  "$ref": "web3-browser-launch-dapp#"
425
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,27 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "event": {
6
- "const": "BitrefillInsufficientFundsView"
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
- "format": "any-string"
20
- }
21
- },
22
- "unevaluatedProperties": false
23
- }
24
- },
25
- "unevaluatedProperties": false,
26
- "required": ["event", "properties"]
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "event": {
6
- "const": "BitrefillPaymentView"
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
- "format": "any-string"
20
- }
21
- },
22
- "unevaluatedProperties": false
23
- }
24
- },
25
- "unevaluatedProperties": false,
26
- "required": ["event", "properties"]
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "event": {
6
- "const": "BitrefillView"
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
- "format": "any-string"
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
- }