diff --git a/src/index.tsx b/src/index.tsx index 483f275..62df1f9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2299,6 +2299,17 @@ export type FloatRangeFilter = { lessThanInclusive?: Scalars["Boolean"]["input"]; }; +export type FunnelStatsGql = { + __typename?: "FunnelStatsGQL"; + activationActivated: Scalars["Int"]["output"]; + activationCohort: Scalars["Int"]["output"]; + newPaid7d: Scalars["Int"]["output"]; + newPaid30d: Scalars["Int"]["output"]; + payingUsers: Scalars["Int"]["output"]; + retentionPrevActive: Scalars["Int"]["output"]; + retentionReturned: Scalars["Int"]["output"]; +}; + export type GameTypeTagMetric = { __typename?: "GameTypeTagMetric"; madeShots: Scalars["Int"]["output"]; @@ -3967,6 +3978,7 @@ export type UsageStatsDailyGql = { export type UsageStatsGql = { __typename?: "UsageStatsGQL"; daily: Array; + funnel: FunnelStatsGql; processingLast24h: Array; totalRuns: Scalars["Int"]["output"]; totalShots: Scalars["Int"]["output"]; @@ -7447,6 +7459,16 @@ export type GetUsageStatsQuery = { totalVideos: number; totalShots: number; totalRuns: number; + funnel: { + __typename?: "FunnelStatsGQL"; + activationCohort: number; + activationActivated: number; + payingUsers: number; + newPaid7d: number; + newPaid30d: number; + retentionPrevActive: number; + retentionReturned: number; + }; windows: Array<{ __typename?: "UsageStatsWindowGQL"; label: string; @@ -15748,6 +15770,15 @@ export type DeleteTagsMutationOptions = Apollo.BaseMutationOptions< export const GetUsageStatsDocument = gql` query getUsageStats($days: Int! = 30) { getUsageStats(days: $days) { + funnel { + activationCohort + activationActivated + payingUsers + newPaid7d + newPaid30d + retentionPrevActive + retentionReturned + } totalUsers totalVideos totalShots diff --git a/src/operations/usage_stats.gql b/src/operations/usage_stats.gql index c6090d9..d919c46 100644 --- a/src/operations/usage_stats.gql +++ b/src/operations/usage_stats.gql @@ -1,5 +1,14 @@ query getUsageStats($days: Int! = 30) { getUsageStats(days: $days) { + funnel { + activationCohort + activationActivated + payingUsers + newPaid7d + newPaid30d + retentionPrevActive + retentionReturned + } totalUsers totalVideos totalShots diff --git a/src/schema.gql b/src/schema.gql index 465f9be..183b604 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -1170,6 +1170,7 @@ input CreatedAfter @oneOf { } type UsageStatsGQL { + funnel: FunnelStatsGQL! totalUsers: Int! totalVideos: Int! totalShots: Int! @@ -1179,6 +1180,16 @@ type UsageStatsGQL { processingLast24h: [ProcessingStatusCountGQL!]! } +type FunnelStatsGQL { + activationCohort: Int! + activationActivated: Int! + payingUsers: Int! + newPaid7d: Int! + newPaid30d: Int! + retentionPrevActive: Int! + retentionReturned: Int! +} + type UsageStatsWindowGQL { label: String! newUsers: Int!