src/api/ApplicationsAPI.js
/**
   * PUT /applications/{applicationName}/eventFilter
   *
   * Filter application events types.
   *
   * @param {object} params
   * @param {string} params.applicationName The name of the application to
   *  filter events on.
   * @param {FilterOptions} [params.filter={}] Specify which event types to
   *  allow and/or disallow. If not provided, this method will remove all
   *  "allowed" and "disallowed" filters. See {@link FilterOptions} for more details.
   * @returns {Promise.<Application>} Resolves to the application details
   *  matching the provided application name. Rejects if the application
   *  does not exist (404 status) or the request body is incorrect (400 status).
   */
PUT /applications/{applicationName}/eventFilter
Filter application events types.

@param {object} params
@param {string} params.applicationName The name of the application to
filter events on.
@param {FilterOptions} [params.filter={}] Specify which event types to
allow and/or disallow. If not provided, this method will remove all
"allowed" and "disallowed" filters. See  FilterOptions for more details.
@returns {Promise.} Resolves to the application details
matching the provided application name. Rejects if the application
does not exist (404 status) or the request body is incorrect (400 status).
PUT / applications / { applicationName } / eventFilter Filter application events types . @param { object } params @param { string } params . applicationName The name of the application to filter events on . @param { FilterOptions } [ params . filter = {} ] Specify which event types to allow and / or disallow . If not provided this method will remove all " allowed " and " disallowed " filters . See FilterOptions for more details . @returns { Promise . } Resolves to the application details matching the provided application name . Rejects if the application does not exist ( 404 status ) or the request body is incorrect ( 400 status ) .
filterEvents(params) {
    const { filter = {}, applicationName } = params;
    const app = encodeURIComponent(applicationName);
    return this._request({
      method: "PUT",
      url: `${this._baseUrl}/applications/${app}/eventFilter`,
      data: { filter },
    });
  }
filterEvents ( params ) { const { filter = { } , applicationName } = params ; const app = encodeURIComponent ( applicationName ) ; return this . _request ( { method : "PUT" , url : ` ${ this . _baseUrl } ${ app } ` , data : { filter } , } ) ; }
PUT /applications/{applicationName}/eventFilter
 Filter application events types.
PUT / applications / { applicationName } / eventFilter Filter application events types .