"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 DashboardTabRobin = /** @class */ (function (_super) {
    __extends(DashboardTabRobin, _super);
    function DashboardTabRobin() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    /**
     *  Robin to create new dashboard tab
     *  @param {number} size - Size of dashboard Tab
     *  @param {string[]} filters - Filters for dashboard Tab
     *  @param {DashboardItemsList[]} dashboardItems - List of Items for dashboard Tab
     */
    DashboardTabRobin.prototype.createDashboardTab = function (size, filters, dashboardItems) {
        this.post('createDashboardTab', "", {
            'size': size,
            'filters': filters,
            'dashboardItems': dashboardItems
        });
    };
    /**
     *  Robin to update existing dashboard tab
     *  @param {string} id - id for the dashboard Tab to update
     *  @param {number} size - size of dashboard Tab
     *  @param {string[]} filters - Filters for dashboard Tab
     *  @param {DashboardItemsList[]} dashboardItems - List of Items for dashboard Tab
     */
    DashboardTabRobin.prototype.updateDashboardTab = function (id, size, filters, dashboardItems) {
        this.put('updateDashboardTab', "" + id, {
            'size': size,
            'filters': filters,
            'dashboardItems': dashboardItems
        });
    };
    /**
     *  Robin to delete a dashboard Tab
     *  @param {string} id - id for the dashboard Tab to delete
     */
    DashboardTabRobin.prototype.deleteDashboardTab = function (id) {
        this.delete('deleteDashboardTab', "" + id);
    };
    return DashboardTabRobin;
}(robin_1.CollectionRobin));
exports.DashboardTabRobin = DashboardTabRobin;
