@leather.io/analytics 3.15.6 → 3.15.7

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 (2) hide show
  1. package/dist/index.d.ts +33 -2
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { DefaultNetworkConfigurations, StxBalance } from '@leather.io/models';
1
+ import { DefaultNetworkConfigurations, StxBalance, CryptoAssetProtocol } from '@leather.io/models';
2
2
 
3
3
  interface Events extends HistoricalEvents {
4
4
  balance_updated: {
@@ -87,6 +87,10 @@ interface Events extends HistoricalEvents {
87
87
  receive_share_button_pressed: {
88
88
  asset: string;
89
89
  };
90
+ token_portfolio_summary: TokenPortfolioSummary;
91
+ collectibles_summary: CollectiblesSummary;
92
+ token_details_viewed: TokenCollectibleDetailsViewed;
93
+ collectible_details_viewed: TokenCollectibleDetailsViewed;
90
94
  }
91
95
  interface HistoricalEvents {
92
96
  add_network: undefined;
@@ -284,10 +288,37 @@ interface WalletCreatedValue {
284
288
  interface SubmitWaitlist {
285
289
  feature: string;
286
290
  }
291
+ interface TokenPortfolioSummary {
292
+ walletAccountId: string;
293
+ platform: 'mobile' | 'extension';
294
+ sip10TokenCount: number;
295
+ runeTokenCount: number;
296
+ totalTokenCount: number;
297
+ sip10TokenValue: number;
298
+ runeTokenValue: number;
299
+ totalTokenValue: number;
300
+ fiatCurrency?: string;
301
+ }
302
+ interface CollectiblesSummary {
303
+ walletAccountId: string;
304
+ platform: 'mobile' | 'extension';
305
+ totalCollectibles: number;
306
+ byProtocol: Partial<Record<CryptoAssetProtocol, CollectibleProtocolBreakdown>>;
307
+ }
308
+ interface TokenCollectibleDetailsViewed {
309
+ assetId: string;
310
+ protocol: CryptoAssetProtocol;
311
+ platform: 'mobile' | 'extension';
312
+ walletAccountId: string;
313
+ }
314
+ interface CollectibleProtocolBreakdown {
315
+ total: number;
316
+ byContentType?: Record<string, number>;
317
+ }
287
318
 
288
319
  interface DefaultProperties {
289
320
  platform: 'web' | 'extension' | 'mobile' | 'earn';
290
- [key: string]: string | number | boolean | undefined;
321
+ [key: string]: JsonValue;
291
322
  }
292
323
  interface AnalyticsClientInterface {
293
324
  screen: (name: string, ...args: any[]) => Promise<any>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@leather.io/analytics",
3
3
  "author": "Leather.io contact@leather.io",
4
4
  "description": "Analytics package for Leather using Segment",
5
- "version": "3.15.6",
5
+ "version": "3.15.7",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/leather.io/mono/tree/dev/packages/analytics",
8
8
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "tsup": "8.4.0",
26
26
  "typescript": "5.8.3",
27
27
  "vitest": "2.1.9",
28
- "@leather.io/models": "0.48.0"
28
+ "@leather.io/models": "0.49.0"
29
29
  },
30
30
  "files": [
31
31
  "dist"