/**
 * A container for the [incursions](https://esi.tech.ccp.is/latest/#/Incursions)
 * ESI endpoints. You should not require this module directly, as it technically
 * returns a factory function that requires an internal API. Instead an instance
 * is automatically exposed when the {@link module:eve_swagger_interface} is
 * loaded and configured.
 *
 * @see https://esi.tech.ccp.is/latest/#/Incursions
 * @param api The internal API instance configured by the root module
 * @module incursions
 */
module.exports = function(api) {
  var newRequest = api.newRequest;
  var ESI = api.esi;

  var exports = {};

  /**
   * Get all incursions from the ESI endpoint. This makes an HTTP GET request to
   * [`/incursions`](https://esi.tech.ccp.is/latest/#!/Incursions/get_incursions).
   * The request is returned as an asynchronous Promise that resolves to an
   * array parsed from the response JSON model. An example value looks like:
   *
   * ```
   * [
   *   {
   *     "constellation_id": 20000607,
   *     "faction_id": 500019,
   *     "has_boss": true,
   *     "infested_solar_systems": [
   *        30004148,
   *        30004149,
   *        30004150,
   *        30004151,
   *        30004152,
   *        30004153,
   *        30004154
   *     ],
   *     "influence": 1,
   *     "staging_solar_system_id": 30004154,
   *     "state": "mobilizing",
   *     "type": "Incursion"
   *   }
   * ]
   * ```
   *
   * @return {external:Promise} A Promise that resolves to the response of
   *   the request
   * @see https://esi.tech.ccp.is/latest/#!/Incursions/get_incursions
   * @esi_link IncursionsApi.getIncursions
   */
  exports.getAll = function() {
    return newRequest(ESI.IncursionsApi, 'getIncursions', []);
  };

  return exports;
};

@@ -111,16 +111,24 @@
 uld not 
+usually 
 require 
@@ -154,16 +154,19 @@
 y, as it
+%0A *
  technic
@@ -169,19 +169,16 @@
 hnically
-%0A *
  returns
@@ -184,24 +184,19 @@
 s a 
-factory function
+constructor
  tha
@@ -227,129 +227,93 @@
 PI. 
-Instead an instance%0A * is automatically exposed when the %7B@link module:eve_swagger_interface%7D is%0A * loaded and configured
+The module%0A * exports the %7B@link module:incursions~Incursions Incursions%7D constructor
 .%0A *
@@ -465,117 +465,637 @@
  */%0A
-module.exports = function(api) %7B%0A  var newRequest = api.newRequest;%0A  var ESI = api.esi;%0A%0A  var exports = %7B%7D;
+%0Aconst ExtendableFunction = require('./internal/ExtendableFunction');%0A%0A/**%0A * An api adaptor over the end points handling incursions. This is a function%0A * class so instances of %60Incursions%60 are functions and can be invoked directly,%0A * besides accessing its members. Its default function action is equivalent to%0A * %7B@link module:incursions~Incursions#all all%7D.%0A */%0Aclass Incursions extends ExtendableFunction %7B%0A  /**%0A   * Create a new Incursions function using the given %60api%60.%0A   *%0A   * @param api %7BApiProvider%7D The api provider%0A   * @constructor%0A   */%0A  constructor(api) %7B%0A    super(() =%3E this.all());%0A    this._api = api;%0A  %7D
 %0A%0A  
@@ -1924,17 +1924,8 @@
 rn %7B
-external:
 Prom
@@ -2116,124 +2116,114 @@
 /%0A  
-exports.getAll = function() %7B%0A    return newRequest(ESI.IncursionsApi, 'getIncursions', %5B%5D);%0A  %7D;%0A%0A  return exports;%0A%7D;%0A
+all() %7B%0A    return this._api.incursions().newRequest('getIncursions', %5B%5D);%0A  %7D%0A%7D%0A%0Amodule.exports = Incursions;

Update incursions to new api