"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 ChartRobin = /** @class */ (function (_super) {
    __extends(ChartRobin, _super);
    function ChartRobin() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    /**
     *  Robin to create new chart
     *  @param {Chart} type - Chart model
     */
    ChartRobin.prototype.createDashboard = function (chart) {
        this.post('createChart', "", chart);
    };
    /**
     *  Robin to create update existing dashboard
     *  @param {string} id - id for the chart to update
     *  @param {Chart} type - Chart model
     */
    ChartRobin.prototype.updateChart = function (id, chart) {
        this.put('updateChart', "" + id, chart);
    };
    /**
     *  Robin to create delete a dashboard
     *  @param {string} id - id for the chart to delete
     */
    ChartRobin.prototype.deleteChart = function (id) {
        this.delete('deleteChart', "" + id);
    };
    return ChartRobin;
}(robin_1.CollectionRobin));
exports.ChartRobin = ChartRobin;
