@w6s/sdk
Version:
WorkPlusFE JavaScript SDK.
27 lines (26 loc) • 1.11 kB
JavaScript
;
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var core = require("../core");
var constants_1 = require("../constants");
/**
* 获取事件日志数据
* @description 根据传参条件, 返回对应的事件日志数据
* @param {EventLogsParams & EventlogOptions<EventLogsRes>} [options]
* @returns {Promise<EventLogsRes>}
*/
function getEventLogs(options) {
var success = options.success, fail = options.fail, args = __rest(options, ["success", "fail"]);
return core.exec(constants_1.WORKPLUS_EVENTLOG, 'getEventLogs', [args], success, fail);
}
exports.default = getEventLogs;