"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var robin_1 = require("@simplus/robin");
var DashboardFilterRobin = /** @class */ (function (_super) {
    __extends(DashboardFilterRobin, _super);
    function DashboardFilterRobin() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    /**
     *  Robin to create new dashboard
     *  @param {number} title - Title of dashboard filter
     *  @param {string} type - Type of dashboard filter
     *  @param {string[]} options - Options for dashboard filter
     */
    DashboardFilterRobin.prototype.createDashboardFilter = function (type, title, options) {
        this.post('createDashboardFilter', "", {
            'title': title,
            'type': type,
            'options': options
        });
    };
    /**
     *  Robin to update existing dashboard filter
     *  @param {string} id - id for the dashboard filter to update
     *  @param {string} title - Title of dashboard filter
     *  @param {string} type - Type of dashboard filter
     *  @param {string[]} type - Options for dashboard filter
     */
    DashboardFilterRobin.prototype.updateDashboardFilter = function (id, type, title, options) {
        this.put('updateDashboardFilter', "" + id, {
            'title': title,
            'type': type,
            'options': options
        });
    };
    /**
     *  Robin to delete a dashboard filter
     *  @param {string} id - id for the dashboard filter to delete
     */
    DashboardFilterRobin.prototype.deleteDashboard = function (id) {
        this.delete('deleteDashboardFilter', "" + id);
    };
    return DashboardFilterRobin;
}(robin_1.CollectionRobin));
exports.DashboardFilterRobin = DashboardFilterRobin;
