UNPKG

swipelime-client-node

Version:

swipelime-client-node is the official swipelime Node.js client library

30 lines (29 loc) 857 B
"use strict"; // Copyright (c) 2024 swipelime (https://swipelime.com) // Use of this source code is governed by an MIT // license that can be found in the LICENSE file. var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const extend_1 = __importDefault(require("lodash/extend")); class Task { _serviceHandler; _id; taskType; data; status; dateCreated; dateLastRun; retries; timestampReceived; get id() { return this._id; } constructor(doc, serviceHandler, timestampReceived) { (0, extend_1.default)(this, doc); this._serviceHandler = serviceHandler; this.timestampReceived = timestampReceived; } } exports.default = Task;