"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogsCommand = void 0;
const shared_1 = require("../shared");
class LogsCommand extends shared_1.AbstractCommand {
    createLogClient(options) {
        const path = '/api/v1/server/logs/client';
        return this.postBodyRequest(Object.assign(Object.assign({}, options), { path, fields: options.payload, implicitToken: true, defaultExpectedStatus: 204 }));
    }
    getLogs(options) {
        const { startDate, endDate, tagsOneOf, level } = options;
        const path = '/api/v1/server/logs';
        return this.getRequestBody(Object.assign(Object.assign({}, options), { path, query: { startDate, endDate, level, tagsOneOf }, implicitToken: true, defaultExpectedStatus: 200 }));
    }
    getAuditLogs(options) {
        const { startDate, endDate } = options;
        const path = '/api/v1/server/audit-logs';
        return this.getRequestBody(Object.assign(Object.assign({}, options), { path, query: { startDate, endDate }, implicitToken: true, defaultExpectedStatus: 200 }));
    }
}
exports.LogsCommand = LogsCommand;
//# sourceMappingURL=logs-command.js.map