insights

package
v1.260504.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnrichSalesScopeFromRows added in v1.260325.0

func EnrichSalesScopeFromRows(scope salesScope, rows [][]string, appleIdentifierIdx, skuIdx int) salesScope

EnrichSalesScopeFromRows resolves the app SKU from report data when it is not already set on scope.

func InsightsCommand

func InsightsCommand() *ffcli.Command

InsightsCommand returns the insights command group.

func ParseSalesReportMetrics added in v1.260325.0

func ParseSalesReportMetrics(reader io.Reader, scope salesScope) (salesWeekMetrics, error)

ParseSalesReportMetrics reads a gzip-compressed sales TSV from reader and returns aggregated metrics scoped to the given app.

func RowMatchesSalesScope added in v1.260325.0

func RowMatchesSalesScope(scope salesScope, appleIdentifier, parentIdentifier string) (isAppRow bool, isMonetizedRow bool, include bool)

RowMatchesSalesScope determines whether a report row belongs to the app, represents a monetized product, or should be included in aggregation.

Types

type SalesMetrics added in v1.260325.0

type SalesMetrics struct {
	RowCount                       int
	UnitsColumnPresent             bool
	DeveloperProceedsColumnPresent bool
	CustomerPriceColumnPresent     bool
	SubscriptionColumnPresent      bool
	UnitsTotal                     float64
	DownloadUnitsTotal             float64
	MonetizedUnitsTotal            float64
	DeveloperProceedsTotal         float64
	CustomerPriceTotal             float64
	SubscriptionRows               int
	SubscriptionUnitsTotal         float64
	SubscriptionDeveloperProceeds  float64
	SubscriptionCustomerPrice      float64
	RenewalRows                    int
	RenewalUnitsTotal              float64
	RenewalDeveloperProceeds       float64
	RenewalCustomerPrice           float64
}

SalesMetrics holds aggregated metrics from a parsed sales report.

type SalesScope added in v1.260325.0

type SalesScope struct {
	AppID  string
	AppSKU string
}

SalesScope identifies an app for scoping sales report row filtering.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL