"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DasbhoardVariableTestDynamicProvider = void 0;
const common_1 = require("@nestjs/common");
const typeorm_1 = require("typeorm");
const dashboard_selection_provider_decorator_1 = require("../../decorators/dashboard-selection-provider.decorator");
let DasbhoardVariableTestDynamicProvider = class DasbhoardVariableTestDynamicProvider {
    constructor(entityManager) {
        this.entityManager = entityManager;
    }
    help() {
        return "# Get the dashboard variable values.\n";
    }
    name() {
        return 'DasbhoardVariableTestDynamicProvider';
    }
    async value(optionValue, ctxt) {
        throw new Error("DasbhoardVariableTestDynamicProvider does not support value method. Use values method instead.");
    }
    async values(query, ctxt) {
        const { sql, limit, offset } = ctxt;
        return [
            { value: '1', label: 'Option 1' },
            { value: '2', label: 'Option 2' },
            { value: '3', label: 'Option 3' },
            { value: '4', label: 'Option 4' },
        ];
    }
};
exports.DasbhoardVariableTestDynamicProvider = DasbhoardVariableTestDynamicProvider;
exports.DasbhoardVariableTestDynamicProvider = DasbhoardVariableTestDynamicProvider = __decorate([
    (0, dashboard_selection_provider_decorator_1.DashboardVariableSelectionProvider)(),
    (0, common_1.Injectable)(),
    __metadata("design:paramtypes", [typeorm_1.EntityManager])
], DasbhoardVariableTestDynamicProvider);
//# sourceMappingURL=dashboard-variable-test-dynamic-provider.service.js.map