@fiado/api-invoker 1.0.29 → 1.0.30
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.
package/bin/container.config.js
CHANGED
|
@@ -10,9 +10,11 @@ const identity_1 = require("./identity");
|
|
|
10
10
|
const NotificationMessagePublisher_1 = __importDefault(require("./notificationMessages/queue/NotificationMessagePublisher"));
|
|
11
11
|
const TernApi_1 = __importDefault(require("./tern/api/TernApi"));
|
|
12
12
|
const PomeloApi_1 = __importDefault(require("./pomelo/api/PomeloApi"));
|
|
13
|
+
const address_1 = require("./address");
|
|
13
14
|
exports.apiInvokerBindings = new inversify_1.ContainerModule((bind) => {
|
|
14
15
|
bind("IDirectoryApi").to(directory_1.DirectoryApi);
|
|
15
16
|
bind("IIdentityApi").to(identity_1.IdentityApi);
|
|
17
|
+
bind("IAddressApi").to(address_1.AddressApi);
|
|
16
18
|
bind("ITernApi").to(TernApi_1.default);
|
|
17
19
|
bind("IPomeloApi").to(PomeloApi_1.default);
|
|
18
20
|
bind("INotificationMessagesPublisher").to(NotificationMessagePublisher_1.default);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
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",
|
|
@@ -7,7 +7,6 @@ import { IAddressApi } from "./interfaces/IAddressApi";
|
|
|
7
7
|
@injectable()
|
|
8
8
|
export class AddressApi implements IAddressApi {
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
private readonly baseUrl = process.env.ADDRESS_LAMBDA_URL || "";
|
|
12
11
|
constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) { }
|
|
13
12
|
|
package/src/container.config.ts
CHANGED
|
@@ -7,10 +7,12 @@ import {ITernApi} from "./tern";
|
|
|
7
7
|
import TernApi from "./tern/api/TernApi";
|
|
8
8
|
import { IPomeloApi } from "./pomelo";
|
|
9
9
|
import PomeloApi from "./pomelo/api/PomeloApi";
|
|
10
|
+
import { AddressApi, IAddressApi } from "./address";
|
|
10
11
|
|
|
11
12
|
export const apiInvokerBindings = new ContainerModule((bind: interfaces.Bind) => {
|
|
12
13
|
bind<IDirectoryApi>("IDirectoryApi").to(DirectoryApi);
|
|
13
14
|
bind<IIdentityApi>("IIdentityApi").to(IdentityApi);
|
|
15
|
+
bind<IAddressApi>("IAddressApi").to(AddressApi);
|
|
14
16
|
bind<ITernApi>("ITernApi").to(TernApi);
|
|
15
17
|
bind<IPomeloApi>("IPomeloApi").to(PomeloApi);
|
|
16
18
|
bind<INotificationMessagesPublisher>("INotificationMessagesPublisher").to(NotificationMessagePublisher);
|