UNPKG

durable-functions

Version:

Durable Functions library for Node.js Azure Functions

20 lines 844 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SignalEntityAction = void 0; const EntityId_1 = require("../entities/EntityId"); const Utils_1 = require("../util/Utils"); const ActionType_1 = require("./ActionType"); class SignalEntityAction { constructor(entityId, operation, input) { this.operation = operation; this.actionType = ActionType_1.ActionType.SignalEntity; if (!entityId) { throw new Error("Must provide EntityId to SignalEntityAction constructor"); } this.input = input; Utils_1.Utils.throwIfEmpty(operation, "operation"); this.instanceId = EntityId_1.EntityId.getSchedulerIdFromEntityId(entityId); } } exports.SignalEntityAction = SignalEntityAction; //# sourceMappingURL=SignalEntityAction.js.map