@exodus/analytics-validation 1.0.1-alpha.7 → 1.1.0-alpha.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 (190) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +16 -1
  3. package/package.json +2 -2
  4. package/schemasafe.config.js +19 -14
  5. package/src/backup/check-backup-quiz-completed.schemasafe.json +26 -0
  6. package/src/backup/write-phrase-screen-exit.schemasafe.json +26 -0
  7. package/src/common-properties.schemasafe.json +3 -0
  8. package/src/main.schemasafe.json +6 -0
  9. package/src/onboarding/client-migration-run.schemasafe.json +30 -0
  10. package/src/client-migration-run.schemasafe.json +0 -37
  11. /package/src/{app-session.schemasafe.json → app-session/app-session.schemasafe.json} +0 -0
  12. /package/src/{backup-prompt-view.schemasafe.json → backup/backup-prompt-view.schemasafe.json} +0 -0
  13. /package/src/{compound-finance-view.schemasafe.json → compound/compound-finance-view.schemasafe.json} +0 -0
  14. /package/src/{d-app-auto-approve-set.schemasafe.json → dapps/d-app-auto-approve-set.schemasafe.json} +0 -0
  15. /package/src/{d-app-auto-approve-unset.schemasafe.json → dapps/d-app-auto-approve-unset.schemasafe.json} +0 -0
  16. /package/src/{d-app-connection-delete.schemasafe.json → dapps/d-app-connection-delete.schemasafe.json} +0 -0
  17. /package/src/{d-app-connection-request.schemasafe.json → dapps/d-app-connection-request.schemasafe.json} +0 -0
  18. /package/src/{d-app-evm-chain-set.schemasafe.json → dapps/d-app-evm-chain-set.schemasafe.json} +0 -0
  19. /package/src/{d-app-favorite-set.schemasafe.json → dapps/d-app-favorite-set.schemasafe.json} +0 -0
  20. /package/src/{d-app-launch.schemasafe.json → dapps/d-app-launch.schemasafe.json} +0 -0
  21. /package/src/{d-app-network-switch-request.schemasafe.json → dapps/d-app-network-switch-request.schemasafe.json} +0 -0
  22. /package/src/{d-app-sign-message-request.schemasafe.json → dapps/d-app-sign-message-request.schemasafe.json} +0 -0
  23. /package/src/{d-app-sign-transaction-request.schemasafe.json → dapps/d-app-sign-transaction-request.schemasafe.json} +0 -0
  24. /package/src/{d-app-wallet-watch-asset.schemasafe.json → dapps/d-app-wallet-watch-asset.schemasafe.json} +0 -0
  25. /package/src/{network-easter-egg-activate.schemasafe.json → easter-egg/network-easter-egg-activate.schemasafe.json} +0 -0
  26. /package/src/{exchange-asset-swap.schemasafe.json → exchange/exchange-asset-swap.schemasafe.json} +0 -0
  27. /package/src/{exchange-configure-asset-swap.schemasafe.json → exchange/exchange-configure-asset-swap.schemasafe.json} +0 -0
  28. /package/src/{exchange-order-create.schemasafe.json → exchange/exchange-order-create.schemasafe.json} +0 -0
  29. /package/src/{exchange-order-flag.schemasafe.json → exchange/exchange-order-flag.schemasafe.json} +0 -0
  30. /package/src/{exchange-order-status-change.schemasafe.json → exchange/exchange-order-status-change.schemasafe.json} +0 -0
  31. /package/src/{exchange-prompt-be-click.schemasafe.json → exchange/exchange-prompt-be-click.schemasafe.json} +0 -0
  32. /package/src/{exchange-prompt-be-show.schemasafe.json → exchange/exchange-prompt-be-show.schemasafe.json} +0 -0
  33. /package/src/{exchange-view.schemasafe.json → exchange/exchange-view.schemasafe.json} +0 -0
  34. /package/src/{exodus-shares-view.schemasafe.json → exodus/exodus-shares-view.schemasafe.json} +0 -0
  35. /package/src/{exodus-transaction-broadcast-error.schemasafe.json → exodus/exodus-transaction-broadcast-error.schemasafe.json} +0 -0
  36. /package/src/{exodus-transaction-broadcast.schemasafe.json → exodus/exodus-transaction-broadcast.schemasafe.json} +0 -0
  37. /package/src/{fiat-view.schemasafe.json → fiat/fiat-view.schemasafe.json} +0 -0
  38. /package/src/{off-ramp-configure-asset-sale.schemasafe.json → fiat/off-ramp-configure-asset-sale.schemasafe.json} +0 -0
  39. /package/src/{off-ramp-configure-asset-sell.schemasafe.json → fiat/off-ramp-configure-asset-sell.schemasafe.json} +0 -0
  40. /package/src/{off-ramp-continue-tap.schemasafe.json → fiat/off-ramp-continue-tap.schemasafe.json} +0 -0
  41. /package/src/{off-ramp-provider-status-change.schemasafe.json → fiat/off-ramp-provider-status-change.schemasafe.json} +0 -0
  42. /package/src/{off-ramp-sale-confirm-view.schemasafe.json → fiat/off-ramp-sale-confirm-view.schemasafe.json} +0 -0
  43. /package/src/{off-ramp-sale-confirm.schemasafe.json → fiat/off-ramp-sale-confirm.schemasafe.json} +0 -0
  44. /package/src/{off-ramp-send-to-browser.schemasafe.json → fiat/off-ramp-send-to-browser.schemasafe.json} +0 -0
  45. /package/src/{off-ramp-view.schemasafe.json → fiat/off-ramp-view.schemasafe.json} +0 -0
  46. /package/src/{on-ramp-configure-asset-purchase.schemasafe.json → fiat/on-ramp-configure-asset-purchase.schemasafe.json} +0 -0
  47. /package/src/{on-ramp-continue-tap.schemasafe.json → fiat/on-ramp-continue-tap.schemasafe.json} +0 -0
  48. /package/src/{on-ramp-disabled-view.schemasafe.json → fiat/on-ramp-disabled-view.schemasafe.json} +0 -0
  49. /package/src/{on-ramp-payment-method-select.schemasafe.json → fiat/on-ramp-payment-method-select.schemasafe.json} +0 -0
  50. /package/src/{on-ramp-payment-method-view.schemasafe.json → fiat/on-ramp-payment-method-view.schemasafe.json} +0 -0
  51. /package/src/{on-ramp-provider-select.schemasafe.json → fiat/on-ramp-provider-select.schemasafe.json} +0 -0
  52. /package/src/{on-ramp-provider-status-change.schemasafe.json → fiat/on-ramp-provider-status-change.schemasafe.json} +0 -0
  53. /package/src/{on-ramp-provider-view.schemasafe.json → fiat/on-ramp-provider-view.schemasafe.json} +0 -0
  54. /package/src/{on-ramp-purchase-confirm.schemasafe.json → fiat/on-ramp-purchase-confirm.schemasafe.json} +0 -0
  55. /package/src/{on-ramp-receive-from-browser.schemasafe.json → fiat/on-ramp-receive-from-browser.schemasafe.json} +0 -0
  56. /package/src/{on-ramp-send-to-browser.schemasafe.json → fiat/on-ramp-send-to-browser.schemasafe.json} +0 -0
  57. /package/src/{on-ramp-view.schemasafe.json → fiat/on-ramp-view.schemasafe.json} +0 -0
  58. /package/src/{fusion-profile-create.schemasafe.json → fusion/fusion-profile-create.schemasafe.json} +0 -0
  59. /package/src/{fusion-profile-read.schemasafe.json → fusion/fusion-profile-read.schemasafe.json} +0 -0
  60. /package/src/{fusion-profile-update.schemasafe.json → fusion/fusion-profile-update.schemasafe.json} +0 -0
  61. /package/src/{history-view.schemasafe.json → history/history-view.schemasafe.json} +0 -0
  62. /package/src/{home-news-tap.schemasafe.json → home/home-news-tap.schemasafe.json} +0 -0
  63. /package/src/{home-portfolio-select.schemasafe.json → home/home-portfolio-select.schemasafe.json} +0 -0
  64. /package/src/{home-portfolio-swipe.schemasafe.json → home/home-portfolio-swipe.schemasafe.json} +0 -0
  65. /package/src/{home-portfolio-time-frame-select.schemasafe.json → home/home-portfolio-time-frame-select.schemasafe.json} +0 -0
  66. /package/src/{home-suggestion-skip.schemasafe.json → home/home-suggestion-skip.schemasafe.json} +0 -0
  67. /package/src/{home-suggestion-view.schemasafe.json → home/home-suggestion-view.schemasafe.json} +0 -0
  68. /package/src/{home-top-mover-tap.schemasafe.json → home/home-top-mover-tap.schemasafe.json} +0 -0
  69. /package/src/{home-view.schemasafe.json → home/home-view.schemasafe.json} +0 -0
  70. /package/src/{home-widget-rerank.schemasafe.json → home/home-widget-rerank.schemasafe.json} +0 -0
  71. /package/src/{home-widget-toggle.schemasafe.json → home/home-widget-toggle.schemasafe.json} +0 -0
  72. /package/src/{lightning-deposit-view.schemasafe.json → lightning/lightning-deposit-view.schemasafe.json} +0 -0
  73. /package/src/{lightning-deposit.schemasafe.json → lightning/lightning-deposit.schemasafe.json} +0 -0
  74. /package/src/{lightning-history-view.schemasafe.json → lightning/lightning-history-view.schemasafe.json} +0 -0
  75. /package/src/{lightning-invoice-generated.schemasafe.json → lightning/lightning-invoice-generated.schemasafe.json} +0 -0
  76. /package/src/{lightning-lnur-view.schemasafe.json → lightning/lightning-lnur-view.schemasafe.json} +0 -0
  77. /package/src/{lightning-onboarding-view.schemasafe.json → lightning/lightning-onboarding-view.schemasafe.json} +0 -0
  78. /package/src/{lightning-receive-funds.schemasafe.json → lightning/lightning-receive-funds.schemasafe.json} +0 -0
  79. /package/src/{lightning-receive-view.schemasafe.json → lightning/lightning-receive-view.schemasafe.json} +0 -0
  80. /package/src/{lightning-send-view.schemasafe.json → lightning/lightning-send-view.schemasafe.json} +0 -0
  81. /package/src/{lightning-send.schemasafe.json → lightning/lightning-send.schemasafe.json} +0 -0
  82. /package/src/{lightning-terms-and-conditions.schemasafe.json → lightning/lightning-terms-and-conditions.schemasafe.json} +0 -0
  83. /package/src/{lightning-view.schemasafe.json → lightning/lightning-view.schemasafe.json} +0 -0
  84. /package/src/{lightning-withdraw-view.schemasafe.json → lightning/lightning-withdraw-view.schemasafe.json} +0 -0
  85. /package/src/{lightning-withdraw.schemasafe.json → lightning/lightning-withdraw.schemasafe.json} +0 -0
  86. /package/src/{menu-view.schemasafe.json → menu/menu-view.schemasafe.json} +0 -0
  87. /package/src/{asset-network-manual-refresh.schemasafe.json → network/asset-network-manual-refresh.schemasafe.json} +0 -0
  88. /package/src/{balance-fetch-network-error-notice.schemasafe.json → network/balance-fetch-network-error-notice.schemasafe.json} +0 -0
  89. /package/src/{news-article-tap.schemasafe.json → news/news-article-tap.schemasafe.json} +0 -0
  90. /package/src/{news-view.schemasafe.json → news/news-view.schemasafe.json} +0 -0
  91. /package/src/{nft-gallery-asset-receive-address-copy.schemasafe.json → nfts/nft-gallery-asset-receive-address-copy.schemasafe.json} +0 -0
  92. /package/src/{nft-gallery-asset-receive-view.schemasafe.json → nfts/nft-gallery-asset-receive-view.schemasafe.json} +0 -0
  93. /package/src/{nft-gallery-asset-send-view.schemasafe.json → nfts/nft-gallery-asset-send-view.schemasafe.json} +0 -0
  94. /package/src/{nft-gallery-asset-send.schemasafe.json → nfts/nft-gallery-asset-send.schemasafe.json} +0 -0
  95. /package/src/{nft-gallery-asset-view.schemasafe.json → nfts/nft-gallery-asset-view.schemasafe.json} +0 -0
  96. /package/src/{nft-gallery-view.schemasafe.json → nfts/nft-gallery-view.schemasafe.json} +0 -0
  97. /package/src/{nfts-proxy-server-get-image.schemasafe.json → nfts/nfts-proxy-server-get-image.schemasafe.json} +0 -0
  98. /package/src/{notifications-system-permission-modal-enable-tap.schemasafe.json → notifications/notifications-system-permission-modal-enable-tap.schemasafe.json} +0 -0
  99. /package/src/{notifications-system-permission-modal-view.schemasafe.json → notifications/notifications-system-permission-modal-view.schemasafe.json} +0 -0
  100. /package/src/{onboarding-page-skipped.schemasafe.json → onboarding/onboarding-page-skipped.schemasafe.json} +0 -0
  101. /package/src/{onboarding-page-view.schemasafe.json → onboarding/onboarding-page-view.schemasafe.json} +0 -0
  102. /package/src/{onboarding-password-creation-confirm.schemasafe.json → onboarding/onboarding-password-creation-confirm.schemasafe.json} +0 -0
  103. /package/src/{onboarding-password-creation-initiate.schemasafe.json → onboarding/onboarding-password-creation-initiate.schemasafe.json} +0 -0
  104. /package/src/{onboarding-seed-create.schemasafe.json → onboarding/onboarding-seed-create.schemasafe.json} +0 -0
  105. /package/src/{onboarding-seed-input.schemasafe.json → onboarding/onboarding-seed-input.schemasafe.json} +0 -0
  106. /package/src/{restore-wallet-seed-input.schemasafe.json → onboarding/restore-wallet-seed-input.schemasafe.json} +0 -0
  107. /package/src/{portfolio-view.schemasafe.json → portfolio/portfolio-view.schemasafe.json} +0 -0
  108. /package/src/{profile-edit-change-avatar.schemasafe.json → profile/profile-edit-change-avatar.schemasafe.json} +0 -0
  109. /package/src/{profile-edit-change-name.schemasafe.json → profile/profile-edit-change-name.schemasafe.json} +0 -0
  110. /package/src/{profile-edit-view.schemasafe.json → profile/profile-edit-view.schemasafe.json} +0 -0
  111. /package/src/{install-referrer-attribution.schemasafe.json → referrals/install-referrer-attribution.schemasafe.json} +0 -0
  112. /package/src/{invite-friends-view.schemasafe.json → referrals/invite-friends-view.schemasafe.json} +0 -0
  113. /package/src/{referral-code-input.schemasafe.json → referrals/referral-code-input.schemasafe.json} +0 -0
  114. /package/src/{referral-opt-in.schemasafe.json → referrals/referral-opt-in.schemasafe.json} +0 -0
  115. /package/src/{referral-program-banner-view.schemasafe.json → referrals/referral-program-banner-view.schemasafe.json} +0 -0
  116. /package/src/{referral-program-kyc-completion.schemasafe.json → referrals/referral-program-kyc-completion.schemasafe.json} +0 -0
  117. /package/src/{referral-program-kyc-page-view.schemasafe.json → referrals/referral-program-kyc-page-view.schemasafe.json} +0 -0
  118. /package/src/{referral-program-partner-assignment.schemasafe.json → referrals/referral-program-partner-assignment.schemasafe.json} +0 -0
  119. /package/src/{referral-program-referral-activation.schemasafe.json → referrals/referral-program-referral-activation.schemasafe.json} +0 -0
  120. /package/src/{referral-program-referral-code-page-view.schemasafe.json → referrals/referral-program-referral-code-page-view.schemasafe.json} +0 -0
  121. /package/src/{referral-program-revenue-share-activity.schemasafe.json → referrals/referral-program-revenue-share-activity.schemasafe.json} +0 -0
  122. /package/src/{referral-program-send-to-kyc.schemasafe.json → referrals/referral-program-send-to-kyc.schemasafe.json} +0 -0
  123. /package/src/{rewards-view.schemasafe.json → referrals/rewards-view.schemasafe.json} +0 -0
  124. /package/src/{securitize-account-link.schemasafe.json → referrals/securitize-account-link.schemasafe.json} +0 -0
  125. /package/src/{security-auto-lock-time-set.schemasafe.json → security/security-auto-lock-time-set.schemasafe.json} +0 -0
  126. /package/src/{security-backup-created.schemasafe.json → security/security-backup-created.schemasafe.json} +0 -0
  127. /package/src/{security-backup-creation-initiated.schemasafe.json → security/security-backup-creation-initiated.schemasafe.json} +0 -0
  128. /package/src/{security-backup-vault-view.schemasafe.json → security/security-backup-vault-view.schemasafe.json} +0 -0
  129. /package/src/{security-backups-screen-view.schemasafe.json → security/security-backups-screen-view.schemasafe.json} +0 -0
  130. /package/src/{security-private-key-view.schemasafe.json → security/security-private-key-view.schemasafe.json} +0 -0
  131. /package/src/{security-secret-phrase-screen-view.schemasafe.json → security/security-secret-phrase-screen-view.schemasafe.json} +0 -0
  132. /package/src/{settings-advanced-mode-toggle.schemasafe.json → settings/settings-advanced-mode-toggle.schemasafe.json} +0 -0
  133. /package/src/{settings-auto-connect-toggle.schemasafe.json → settings/settings-auto-connect-toggle.schemasafe.json} +0 -0
  134. /package/src/{settings-default-wallet-toggle.schemasafe.json → settings/settings-default-wallet-toggle.schemasafe.json} +0 -0
  135. /package/src/{settings-lightning-higher-limits-toggle.schemasafe.json → settings/settings-lightning-higher-limits-toggle.schemasafe.json} +0 -0
  136. /package/src/{settings-notifications-activity-product-toggle.schemasafe.json → settings/settings-notifications-activity-product-toggle.schemasafe.json} +0 -0
  137. /package/src/{settings-notifications-allow-toggle.schemasafe.json → settings/settings-notifications-allow-toggle.schemasafe.json} +0 -0
  138. /package/src/{settings-notifications-special-offers-toggle.schemasafe.json → settings/settings-notifications-special-offers-toggle.schemasafe.json} +0 -0
  139. /package/src/{settings-notifications-view.schemasafe.json → settings/settings-notifications-view.schemasafe.json} +0 -0
  140. /package/src/{settings-preferred-currency-set.schemasafe.json → settings/settings-preferred-currency-set.schemasafe.json} +0 -0
  141. /package/src/{settings-restore-from-backup-view.schemasafe.json → settings/settings-restore-from-backup-view.schemasafe.json} +0 -0
  142. /package/src/{settings-restore-wallet-screen-view.schemasafe.json → settings/settings-restore-wallet-screen-view.schemasafe.json} +0 -0
  143. /package/src/{solana-mobile-adapter-enable.schemasafe.json → solana-pay/solana-mobile-adapter-enable.schemasafe.json} +0 -0
  144. /package/src/{solana-pay-qr-code-reader-view.schemasafe.json → solana-pay/solana-pay-qr-code-reader-view.schemasafe.json} +0 -0
  145. /package/src/{solana-pay-transaction-confirm.schemasafe.json → solana-pay/solana-pay-transaction-confirm.schemasafe.json} +0 -0
  146. /package/src/{solana-pay-transaction-confirmation-view.schemasafe.json → solana-pay/solana-pay-transaction-confirmation-view.schemasafe.json} +0 -0
  147. /package/src/{contact-support-email-send.schemasafe.json → support/contact-support-email-send.schemasafe.json} +0 -0
  148. /package/src/{contact-support-view.schemasafe.json → support/contact-support-view.schemasafe.json} +0 -0
  149. /package/src/{support-knowledge-base-send-to-browser.schemasafe.json → support/support-knowledge-base-send-to-browser.schemasafe.json} +0 -0
  150. /package/src/{support-status-send-to-browser.schemasafe.json → support/support-status-send-to-browser.schemasafe.json} +0 -0
  151. /package/src/{support-view.schemasafe.json → support/support-view.schemasafe.json} +0 -0
  152. /package/src/{telemetry-collection-decision.schemasafe.json → telemetry/telemetry-collection-decision.schemasafe.json} +0 -0
  153. /package/src/{unknown-event.schemasafe.json → unknown/unknown-event.schemasafe.json} +0 -0
  154. /package/src/{receive-select-asset-view.schemasafe.json → wallet/receive-select-asset-view.schemasafe.json} +0 -0
  155. /package/src/{send-select-asset-view.schemasafe.json → wallet/send-select-asset-view.schemasafe.json} +0 -0
  156. /package/src/{wallet-asset-copy-receive-address.schemasafe.json → wallet/wallet-asset-copy-receive-address.schemasafe.json} +0 -0
  157. /package/src/{wallet-asset-manager-toggle.schemasafe.json → wallet/wallet-asset-manager-toggle.schemasafe.json} +0 -0
  158. /package/src/{wallet-asset-manager-view.schemasafe.json → wallet/wallet-asset-manager-view.schemasafe.json} +0 -0
  159. /package/src/{wallet-asset-network-manual-refresh.schemasafe.json → wallet/wallet-asset-network-manual-refresh.schemasafe.json} +0 -0
  160. /package/src/{wallet-asset-receive-view.schemasafe.json → wallet/wallet-asset-receive-view.schemasafe.json} +0 -0
  161. /package/src/{wallet-asset-send-view.schemasafe.json → wallet/wallet-asset-send-view.schemasafe.json} +0 -0
  162. /package/src/{wallet-asset-send.schemasafe.json → wallet/wallet-asset-send.schemasafe.json} +0 -0
  163. /package/src/{wallet-asset-view.schemasafe.json → wallet/wallet-asset-view.schemasafe.json} +0 -0
  164. /package/src/{wallet-connect-activity-detail-view.schemasafe.json → wallet/wallet-connect-activity-detail-view.schemasafe.json} +0 -0
  165. /package/src/{wallet-connect-activity-view.schemasafe.json → wallet/wallet-connect-activity-view.schemasafe.json} +0 -0
  166. /package/src/{wallet-connect-connection-added.schemasafe.json → wallet/wallet-connect-connection-added.schemasafe.json} +0 -0
  167. /package/src/{wallet-connect-connection-deleted.schemasafe.json → wallet/wallet-connect-connection-deleted.schemasafe.json} +0 -0
  168. /package/src/{wallet-connect-disconnect-all.schemasafe.json → wallet/wallet-connect-disconnect-all.schemasafe.json} +0 -0
  169. /package/src/{wallet-connect-edit-connection-update.schemasafe.json → wallet/wallet-connect-edit-connection-update.schemasafe.json} +0 -0
  170. /package/src/{wallet-connect-edit-connection-view.schemasafe.json → wallet/wallet-connect-edit-connection-view.schemasafe.json} +0 -0
  171. /package/src/{wallet-connect-fiat-on-ramp-cta-tap.schemasafe.json → wallet/wallet-connect-fiat-on-ramp-cta-tap.schemasafe.json} +0 -0
  172. /package/src/{wallet-connect-initiate-connection.schemasafe.json → wallet/wallet-connect-initiate-connection.schemasafe.json} +0 -0
  173. /package/src/{wallet-connect-view.schemasafe.json → wallet/wallet-connect-view.schemasafe.json} +0 -0
  174. /package/src/{wallet-custom-token-add.schemasafe.json → wallet/wallet-custom-token-add.schemasafe.json} +0 -0
  175. /package/src/{wallet-exchange-detail-view.schemasafe.json → wallet/wallet-exchange-detail-view.schemasafe.json} +0 -0
  176. /package/src/{wallet-portfolio-create.schemasafe.json → wallet/wallet-portfolio-create.schemasafe.json} +0 -0
  177. /package/src/{wallet-portfolio-select.schemasafe.json → wallet/wallet-portfolio-select.schemasafe.json} +0 -0
  178. /package/src/{wallet-receive-assets-view.schemasafe.json → wallet/wallet-receive-assets-view.schemasafe.json} +0 -0
  179. /package/src/{wallet-staking-claim.schemasafe.json → wallet/wallet-staking-claim.schemasafe.json} +0 -0
  180. /package/src/{wallet-staking-stake.schemasafe.json → wallet/wallet-staking-stake.schemasafe.json} +0 -0
  181. /package/src/{wallet-staking-unstake.schemasafe.json → wallet/wallet-staking-unstake.schemasafe.json} +0 -0
  182. /package/src/{wallet-staking-view.schemasafe.json → wallet/wallet-staking-view.schemasafe.json} +0 -0
  183. /package/src/{wallet-transaction-detail-view.schemasafe.json → wallet/wallet-transaction-detail-view.schemasafe.json} +0 -0
  184. /package/src/{wallet-view.schemasafe.json → wallet/wallet-view.schemasafe.json} +0 -0
  185. /package/src/{web3-browser-home-tap.schemasafe.json → web3/web3-browser-home-tap.schemasafe.json} +0 -0
  186. /package/src/{web3-browser-launch-dapp.schemasafe.json → web3/web3-browser-launch-dapp.schemasafe.json} +0 -0
  187. /package/src/{web3-browser-view.schemasafe.json → web3/web3-browser-view.schemasafe.json} +0 -0
  188. /package/src/{web3-explore-view.schemasafe.json → web3/web3-explore-view.schemasafe.json} +0 -0
  189. /package/src/{web3-favorites-view.schemasafe.json → web3/web3-favorites-view.schemasafe.json} +0 -0
  190. /package/src/{web3-view.schemasafe.json → web3/web3-view.schemasafe.json} +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
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.1.0-alpha.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.0.1-alpha.8...@exodus/analytics-validation@1.1.0-alpha.0) (2023-05-10)
7
+
8
+ ### Features
9
+
10
+ - support `unknown_unknown` locale ([#1606](https://github.com/ExodusMovement/exodus-hydra/issues/1606)) ([ccb95fd](https://github.com/ExodusMovement/exodus-hydra/commit/ccb95fdbf28484f1f920e4f630b328266b722de2))
11
+
12
+ ### Bug Fixes
13
+
14
+ - **analytics:** client migration ([#1551](https://github.com/ExodusMovement/exodus-hydra/issues/1551)) ([a02b101](https://github.com/ExodusMovement/exodus-hydra/commit/a02b101f8d7177eb8e43634282bfedcb516cb539))
15
+
16
+ ## [1.0.1-alpha.8](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.0.1-alpha.7...@exodus/analytics-validation@1.0.1-alpha.8) (2023-04-27)
17
+
18
+ ### Features
19
+
20
+ - add schemas for new backup events ([#1421](https://github.com/ExodusMovement/exodus-hydra/issues/1421)) ([cc84ca8](https://github.com/ExodusMovement/exodus-hydra/commit/cc84ca84a51e4cbe6d2a431b4a26b4ca202c5cf1))
21
+
22
+ ### Bug Fixes
23
+
24
+ - **analytics-validation:** test coverage ([#1376](https://github.com/ExodusMovement/exodus-hydra/issues/1376)) ([26c2140](https://github.com/ExodusMovement/exodus-hydra/commit/26c21407389308fd1633e00fa5412a92f9dfeae7))
25
+
6
26
  ## [1.0.1-alpha.7](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.0.1-alpha.6...@exodus/analytics-validation@1.0.1-alpha.7) (2023-04-21)
7
27
 
8
28
  ### Bug Fixes
package/README.md CHANGED
@@ -1,3 +1,18 @@
1
1
  # @exodus/analytics-validation
2
2
 
3
- ## Usage
3
+ ## Development
4
+
5
+ Before adding a new schema, double check if a subdirectory (essentially an event domain, e.g. `dapps`) already exists in `./src`.
6
+ If not, you will have to come up with a subdirectory name during the next steps.
7
+
8
+ To add a new schema run
9
+
10
+ > yarn generate:analytics-validation
11
+
12
+ in the project root. The CLI tool will ask you for all details needed.
13
+ Once the schema is created, make sure to
14
+
15
+ 1. Add a reference to the just generated schema in [main.schemasafe.json](./src/main.schemasafe.json);
16
+ 2. Fill the schema with the expected properties and their types. The property names should be in the snake case (e.g. `expected_property`);
17
+ 3. Fix the generated unit test as it will be intentionally failing;
18
+ 4. Add your own test cases to ensure the schema works properly before merging the PR and publishing a new version.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "1.0.1-alpha.7",
3
+ "version": "1.1.0-alpha.0",
4
4
  "description": "The analytics-validation library",
5
5
  "author": "Exodus Movement Inc",
6
6
  "repository": {
@@ -32,5 +32,5 @@
32
32
  "eslint": "^8.33.0",
33
33
  "jest": "^29.1.2"
34
34
  },
35
- "gitHead": "00b238c7c460a0bd58a3fb284a167399ac5d8bd1"
35
+ "gitHead": "9698337f5775e439007aff5718c12ef87d0691b2"
36
36
  }
@@ -1,25 +1,30 @@
1
1
  const fs = require('fs')
2
2
  const path = require('path')
3
3
 
4
- const schemasDirPath = path.join(__dirname, './src')
5
- const schemaNames = fs.readdirSync(schemasDirPath)
6
-
7
4
  const schemas = {}
8
- for (const schemaName of schemaNames) {
9
- if (schemaName === 'main.schemasafe.json') continue
10
- const schemaPath = path.join(schemasDirPath, schemaName)
11
5
 
12
- if (fs.statSync(schemaPath).isDirectory()) {
13
- if (schemaName === '__tests__') continue
14
- throw new Error('unexpected directory in schemas folder')
15
- }
6
+ const getSchemas = ({ schemaDir, schemaNames }) => {
7
+ for (const schemaName of schemaNames) {
8
+ if (schemaName === 'main.schemasafe.json') continue
9
+ const schemaPath = path.join(schemaDir, schemaName)
16
10
 
17
- // primitive-type.schemafe.json -> primitive-type
18
- const name = schemaName.slice(0, schemaName.indexOf('.'))
19
- const schemaString = fs.readFileSync(schemaPath, 'utf8')
20
- schemas[name] = JSON.parse(schemaString)
11
+ if (fs.statSync(schemaPath).isDirectory()) {
12
+ if (schemaName === '__tests__') continue
13
+ getSchemas({ schemaDir: schemaPath, schemaNames: fs.readdirSync(schemaPath) })
14
+ } else {
15
+ // primitive-type.schemafe.json -> primitive-type
16
+ const name = schemaName.slice(0, schemaName.indexOf('.'))
17
+ const schemaString = fs.readFileSync(schemaPath, 'utf8')
18
+ schemas[name] = JSON.parse(schemaString)
19
+ }
20
+ }
21
21
  }
22
22
 
23
+ const schemaDir = path.join(__dirname, './src')
24
+ const schemaNames = fs.readdirSync(schemaDir)
25
+
26
+ getSchemas({ schemaDir, schemaNames })
27
+
23
28
  // Source: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
24
29
  const semVerRegEx =
25
30
  /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*))*))?(?:\+([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?$/
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "CheckBackupQuizCompleted"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "invalid_option_click_count": {
18
+ "type": "number"
19
+ }
20
+ },
21
+ "unevaluatedProperties": false
22
+ }
23
+ },
24
+ "unevaluatedProperties": false,
25
+ "required": ["event", "properties"]
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "WritePhraseScreenExit"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "phrase_revealed_duration_ms": {
18
+ "type": "number"
19
+ }
20
+ },
21
+ "unevaluatedProperties": false
22
+ }
23
+ },
24
+ "unevaluatedProperties": false,
25
+ "required": ["event", "properties"]
26
+ }
@@ -123,6 +123,9 @@
123
123
  "format": "locale",
124
124
  "maxLength": 10,
125
125
  "$comment": "Max length is arbitrary"
126
+ },
127
+ {
128
+ "enum": ["unknown_unknown", "unknown-unknown"]
126
129
  }
127
130
  ]
128
131
  },
@@ -22,6 +22,12 @@
22
22
  {
23
23
  "$ref": "backup-prompt-view#"
24
24
  },
25
+ {
26
+ "$ref": "check-backup-quiz-completed#"
27
+ },
28
+ {
29
+ "$ref": "write-phrase-screen-exit#"
30
+ },
25
31
  {
26
32
  "$ref": "balance-fetch-network-error-notice#"
27
33
  },
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "ClientMigrationRun"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "migration_id": {
18
+ "type": "string",
19
+ "format": "any-string"
20
+ },
21
+ "success": {
22
+ "type": "boolean"
23
+ }
24
+ },
25
+ "unevaluatedProperties": false
26
+ }
27
+ },
28
+ "unevaluatedProperties": false,
29
+ "required": ["event", "properties"]
30
+ }
@@ -1,37 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "event": {
6
- "const": "ClientMigrationRun"
7
- },
8
- "properties": {
9
- "allOf": [
10
- {
11
- "$ref": "common-properties#"
12
- }
13
- ],
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "migration_id": {
18
- "type": "string",
19
- "enum": [
20
- "encrypt-fusion-storage",
21
- "encrypt-orders-storage",
22
- "encrypt-synced-balances-storage",
23
- "encrypt-wallet-accounts-storage",
24
- "nfts-hidden-config",
25
- "revoke-connections"
26
- ]
27
- },
28
- "success": {
29
- "type": "boolean"
30
- }
31
- },
32
- "unevaluatedProperties": false
33
- }
34
- },
35
- "unevaluatedProperties": false,
36
- "required": ["event", "properties"]
37
- }