@@ -136,6 +136,18 @@ export type CreateUserInput = {
136136 username : Scalars [ 'String' ] [ 'input' ] ;
137137} ;
138138
139+ export type DashboardStats = {
140+ __typename : 'DashboardStats' ;
141+ activeChats : Scalars [ 'Int' ] [ 'output' ] ;
142+ activeProjects : Scalars [ 'Int' ] [ 'output' ] ;
143+ activeUsers : Scalars [ 'Int' ] [ 'output' ] ;
144+ totalChats : Scalars [ 'Int' ] [ 'output' ] ;
145+ totalMenus : Scalars [ 'Int' ] [ 'output' ] ;
146+ totalProjects : Scalars [ 'Int' ] [ 'output' ] ;
147+ totalRoles : Scalars [ 'Int' ] [ 'output' ] ;
148+ totalUsers : Scalars [ 'Int' ] [ 'output' ] ;
149+ } ;
150+
139151export type EmailConfirmationResponse = {
140152 __typename : 'EmailConfirmationResponse' ;
141153 message : Scalars [ 'String' ] [ 'output' ] ;
@@ -456,6 +468,7 @@ export type Query = {
456468 dashboardProjects : Array < Project > ;
457469 dashboardRole : SystemRole ;
458470 dashboardRoles : Array < SystemRole > ;
471+ dashboardStats : DashboardStats ;
459472 dashboardUser : User ;
460473 dashboardUsers : Array < User > ;
461474 fetchPublicProjects : Array < Project > ;
@@ -787,6 +800,7 @@ export type ResolversTypes = ResolversObject<{
787800 CreateProjectInput : CreateProjectInput ;
788801 CreateRoleInput : CreateRoleInput ;
789802 CreateUserInput : CreateUserInput ;
803+ DashboardStats : ResolverTypeWrapper < DashboardStats > ;
790804 Date : ResolverTypeWrapper < Scalars [ 'Date' ] [ 'output' ] > ;
791805 EmailConfirmationResponse : ResolverTypeWrapper < EmailConfirmationResponse > ;
792806 FetchPublicProjectsInputs : FetchPublicProjectsInputs ;
@@ -841,6 +855,7 @@ export type ResolversParentTypes = ResolversObject<{
841855 CreateProjectInput : CreateProjectInput ;
842856 CreateRoleInput : CreateRoleInput ;
843857 CreateUserInput : CreateUserInput ;
858+ DashboardStats : DashboardStats ;
844859 Date : Scalars [ 'Date' ] [ 'output' ] ;
845860 EmailConfirmationResponse : EmailConfirmationResponse ;
846861 FetchPublicProjectsInputs : FetchPublicProjectsInputs ;
@@ -960,6 +975,22 @@ export type ChatCompletionDeltaTypeResolvers<
960975 __isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
961976} > ;
962977
978+ export type DashboardStatsResolvers <
979+ ContextType = any ,
980+ ParentType extends
981+ ResolversParentTypes [ 'DashboardStats' ] = ResolversParentTypes [ 'DashboardStats' ] ,
982+ > = ResolversObject < {
983+ activeChats ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
984+ activeProjects ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
985+ activeUsers ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
986+ totalChats ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
987+ totalMenus ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
988+ totalProjects ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
989+ totalRoles ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
990+ totalUsers ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
991+ __isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
992+ } > ;
993+
963994export interface DateScalarConfig
964995 extends GraphQLScalarTypeConfig < ResolversTypes [ 'Date' ] , any > {
965996 name : 'Date' ;
@@ -1394,6 +1425,11 @@ export type QueryResolvers<
13941425 ParentType ,
13951426 ContextType
13961427 > ;
1428+ dashboardStats ?: Resolver <
1429+ ResolversTypes [ 'DashboardStats' ] ,
1430+ ParentType ,
1431+ ContextType
1432+ > ;
13971433 dashboardUser ?: Resolver <
13981434 ResolversTypes [ 'User' ] ,
13991435 ParentType ,
@@ -1607,6 +1643,7 @@ export type Resolvers<ContextType = any> = ResolversObject<{
16071643 ChatCompletionChoiceType ?: ChatCompletionChoiceTypeResolvers < ContextType > ;
16081644 ChatCompletionChunkType ?: ChatCompletionChunkTypeResolvers < ContextType > ;
16091645 ChatCompletionDeltaType ?: ChatCompletionDeltaTypeResolvers < ContextType > ;
1646+ DashboardStats ?: DashboardStatsResolvers < ContextType > ;
16101647 Date ?: GraphQLScalarType ;
16111648 EmailConfirmationResponse ?: EmailConfirmationResponseResolvers < ContextType > ;
16121649 LoginResponse ?: LoginResponseResolvers < ContextType > ;
0 commit comments