ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  overview: {
                      total: number;
                      active: number;
                      inactive: number;
                      customers: number;
                      prospects: number;
                      withEmail: number;
                      withPhone: number;
                      recent: number;
                  };
                  distribution: {
                      byType: { customers: number; prospects: number };
                      byStatus: { active: number; inactive: number };
                      byCurrency: { currencyId: string | null; count: number }[];
                  };
                  trends: { monthly: { month: string; count: number }[] };
                  topClients: {
                      id: string;
                      name: string;
                      code: string;
                      offersCount: number;
                  }[];
              },
          >,
      >