charts

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChartsCmd = &cobra.Command{
	Use:   "charts",
	Short: "Charts & analytics",
	Long:  "View, explore, and export subscription analytics charts from your RevenueCat project.",
}

ChartsCmd is the parent command for chart operations

Functions

This section is empty.

Types

type ChartData

type ChartData struct {
	Object         string          `json:"object"`
	Category       string          `json:"category"`
	DisplayType    string          `json:"display_type"`
	DisplayName    string          `json:"display_name"`
	Description    string          `json:"description"`
	DocLink        *string         `json:"documentation_link,omitempty"`
	LastComputedAt *int64          `json:"last_computed_at,omitempty"`
	StartDate      *int64          `json:"start_date,omitempty"`
	EndDate        *int64          `json:"end_date,omitempty"`
	YAxisCurrency  string          `json:"yaxis_currency,omitempty"`
	FilterAllowed  bool            `json:"filtering_allowed"`
	SegmentAllowed bool            `json:"segmenting_allowed"`
	Resolution     string          `json:"resolution"`
	Values         json.RawMessage `json:"values"`
	Summary        json.RawMessage `json:"summary,omitempty"`
	YAxis          string          `json:"yaxis"`
	Segments       json.RawMessage `json:"segments,omitempty"`
	Measures       json.RawMessage `json:"measures,omitempty"`
	UserSelectors  json.RawMessage `json:"user_selectors,omitempty"`
}

type ChartOptions

type ChartOptions struct {
	Object      string             `json:"object"`
	Resolutions []ResolutionOption `json:"resolutions"`
	Segments    []SegmentOption    `json:"segments"`
	Filters     []FilterOption     `json:"filters"`
}

type FilterOption

type FilterOption struct {
	ID               string        `json:"id"`
	DisplayName      string        `json:"display_name"`
	GroupDisplayName string        `json:"group_display_name,omitempty"`
	Options          []FilterValue `json:"options"`
}

type FilterValue

type FilterValue struct {
	ID          string `json:"id"`
	DisplayName string `json:"display_name"`
}

type ResolutionOption

type ResolutionOption struct {
	ID          string `json:"id"`
	DisplayName string `json:"display_name"`
}

type SegmentOption

type SegmentOption struct {
	ID               string `json:"id"`
	DisplayName      string `json:"display_name"`
	GroupDisplayName string `json:"group_display_name,omitempty"`
}

Jump to

Keyboard shortcuts

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