@fiado/api-invoker 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
9
|
exports.SessionActivityPublisher = void 0;
|
|
4
10
|
const client_sqs_1 = require("@aws-sdk/client-sqs");
|
|
5
|
-
|
|
11
|
+
const inversify_1 = require("inversify");
|
|
12
|
+
let SessionActivityPublisher = class SessionActivityPublisher {
|
|
6
13
|
constructor() {
|
|
7
14
|
this.SESSION_ACTIVITY_QUEUE = process.env.SESSION_ACTIVITY_QUEUE;
|
|
8
15
|
}
|
|
@@ -20,5 +27,8 @@ class SessionActivityPublisher {
|
|
|
20
27
|
throw new Error(`Error publishing message to queue ${': ' + error.message ?? ''}`);
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
|
-
}
|
|
30
|
+
};
|
|
24
31
|
exports.SessionActivityPublisher = SessionActivityPublisher;
|
|
32
|
+
exports.SessionActivityPublisher = SessionActivityPublisher = __decorate([
|
|
33
|
+
(0, inversify_1.injectable)()
|
|
34
|
+
], SessionActivityPublisher);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a traves de invocaciones http",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {SendMessageCommand, SendMessageRequest, SQSClient} from "@aws-sdk/client-sqs";
|
|
2
2
|
import {ISessionActivityPublisher} from "./interfaces/ISessionActivityPublisher";
|
|
3
3
|
import {SessionActivityQueueMessageRequest} from "@fiado/type-kit/bin/sessionActivity";
|
|
4
|
+
import {injectable} from "inversify";
|
|
4
5
|
|
|
6
|
+
@injectable()
|
|
5
7
|
export class SessionActivityPublisher implements ISessionActivityPublisher {
|
|
6
8
|
private readonly SESSION_ACTIVITY_QUEUE = process.env.SESSION_ACTIVITY_QUEUE
|
|
7
9
|
|