UNPKG

bugyo-cloud-client

Version:
27 lines 820 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PunchTask = void 0; /** * 打刻します。 */ class PunchTask { logger; timeClock; punchmarkPage; punchInfo; constructor(logger, timeClock, punchmarkPage, punchInfo) { this.logger = logger; this.timeClock = timeClock; this.punchmarkPage = punchmarkPage; this.punchInfo = punchInfo; } async execute(client) { this.logger.trace("Invoking PunchmarkPage."); const token = await this.punchmarkPage.invoke(client); this.logger.debug("Got token: %s", token); this.logger.trace("Invoking TimeClock."); await this.timeClock.invoke(client, token, this.punchInfo); } } exports.PunchTask = PunchTask; //# sourceMappingURL=punch-task.js.map