diff --git a/src/index.tsx b/src/index.tsx index cac063d..629d175 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -260,6 +260,15 @@ export type ClusterAssignmentInput = { userId?: InputMaybe; }; +export type CohortStatsGql = { + __typename?: "CohortStatsGQL"; + activated7d: Scalars["Int"]["output"]; + activatedNotPaid7d: Scalars["Int"]["output"]; + paid7d: Scalars["Int"]["output"]; + signups: Scalars["Int"]["output"]; + weekStart: Scalars["Date"]["output"]; +}; + export type CommentGql = { __typename?: "CommentGQL"; id: Scalars["Int"]["output"]; @@ -3980,6 +3989,7 @@ export type UsageStatsDailyGql = { export type UsageStatsGql = { __typename?: "UsageStatsGQL"; + cohorts: Array; daily: Array; funnel: FunnelStatsGql; processingLast24h: Array; @@ -7475,6 +7485,14 @@ export type GetUsageStatsQuery = { retentionPrevActive: number; retentionReturned: number; }; + cohorts: Array<{ + __typename?: "CohortStatsGQL"; + weekStart: any; + signups: number; + activated7d: number; + paid7d: number; + activatedNotPaid7d: number; + }>; windows: Array<{ __typename?: "UsageStatsWindowGQL"; label: string; @@ -15788,6 +15806,13 @@ export const GetUsageStatsDocument = gql` retentionPrevActive retentionReturned } + cohorts { + weekStart + signups + activated7d + paid7d + activatedNotPaid7d + } totalUsers totalVideos totalShots diff --git a/src/operations/usage_stats.gql b/src/operations/usage_stats.gql index 8d6960d..876e015 100644 --- a/src/operations/usage_stats.gql +++ b/src/operations/usage_stats.gql @@ -12,6 +12,13 @@ query getUsageStats($days: Int! = 30) { retentionPrevActive retentionReturned } + cohorts { + weekStart + signups + activated7d + paid7d + activatedNotPaid7d + } totalUsers totalVideos totalShots diff --git a/src/schema.gql b/src/schema.gql index 5c0b37f..7316bd0 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -1175,6 +1175,7 @@ type UsageStatsGQL { totalVideos: Int! totalShots: Int! totalRuns: Int! + cohorts: [CohortStatsGQL!]! windows: [UsageStatsWindowGQL!]! daily: [UsageStatsDailyGQL!]! processingLast24h: [ProcessingStatusCountGQL!]! @@ -1193,6 +1194,14 @@ type FunnelStatsGQL { retentionReturned: Int! } +type CohortStatsGQL { + weekStart: Date! + signups: Int! + activated7d: Int! + paid7d: Int! + activatedNotPaid7d: Int! +} + type UsageStatsWindowGQL { label: String! newUsers: Int!