@villedemontreal/workit
Version:
Worker for Node.js system with pluggable clients that works with both AWS Step function and Camunda platform powered by TypeScript
39 lines • 2.13 kB
JavaScript
;
/*
* Copyright (c) 2025 Ville de Montreal. All rights reserved.
* Licensed under the MIT license.
* See LICENSE file in the project root for full license information.
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StepFunctionWorker = void 0;
const workit_core_1 = require("@villedemontreal/workit-core");
const inversify_1 = require("inversify");
const client_1 = require("../camunda-n-mq/client");
const identifiers_1 = require("../config/constants/identifiers");
const tag_1 = require("../config/constants/tag");
let StepFunctionWorker = class StepFunctionWorker extends workit_core_1.Worker {
constructor(client, processHandler) {
super(client, processHandler);
}
};
StepFunctionWorker = __decorate([
(0, inversify_1.injectable)(),
__param(0, (0, inversify_1.inject)(identifiers_1.SERVICE_IDENTIFIER.camunda_client)),
__param(0, (0, inversify_1.named)(tag_1.TAG.stepFunction)),
__param(1, (0, inversify_1.inject)(identifiers_1.SERVICE_IDENTIFIER.process_handler)),
__metadata("design:paramtypes", [client_1.Client, Object])
], StepFunctionWorker);
exports.StepFunctionWorker = StepFunctionWorker;
//# sourceMappingURL=stepFunctionWorker.js.map