@fiado/api-invoker 1.0.60 → 1.0.62

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.
@@ -20,11 +20,11 @@ let CardApi = class CardApi {
20
20
  this.baseUrl = process.env.CARD_LAMBDA_URL || "";
21
21
  }
22
22
  async getById(id, countryId) {
23
- const url = `${this.baseUrl}/${countryId}?cardId${id}`;
23
+ const url = `${this.baseUrl}/${countryId}?cardId=${id}`;
24
24
  return await this.httpRequest.get(url);
25
25
  }
26
26
  async getByExternalId(externalId, countryId) {
27
- const url = `${this.baseUrl}/${countryId}?externalCardId${externalId}`;
27
+ const url = `${this.baseUrl}/${countryId}?externalCardId=${externalId}`;
28
28
  return await this.httpRequest.get(url);
29
29
  }
30
30
  };
@@ -18,6 +18,7 @@ const STPAccountApi_1 = __importDefault(require("./stpAccount/api/STPAccountApi"
18
18
  const sessionActivity_1 = require("./sessionActivity");
19
19
  const ExchangeRatesApi_1 = __importDefault(require("./exchangeRates/ExchangeRatesApi"));
20
20
  const authentication_1 = require("./authentication");
21
+ const card_1 = require("./card");
21
22
  exports.apiInvokerBindings = new inversify_1.ContainerModule((bind) => {
22
23
  bind("IDirectoryApi").to(directory_1.DirectoryApi);
23
24
  bind("IIdentityApi").to(identity_1.IdentityApi);
@@ -32,4 +33,5 @@ exports.apiInvokerBindings = new inversify_1.ContainerModule((bind) => {
32
33
  bind("INotificationMessagesPublisher").to(NotificationMessagePublisher_1.default);
33
34
  bind("ISessionActivityPublisher").to(sessionActivity_1.SessionActivityPublisher);
34
35
  bind("IAuthenticationApi").to(authentication_1.AuthenticationApi);
36
+ bind("ICardApi").to(card_1.CardApi);
35
37
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
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",
@@ -16,14 +16,14 @@ export class CardApi implements ICardApi {
16
16
 
17
17
  async getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>> {
18
18
 
19
- const url = `${this.baseUrl}/${countryId}?cardId${id}`;
19
+ const url = `${this.baseUrl}/${countryId}?cardId=${id}`;
20
20
  return await this.httpRequest.get(url);
21
21
 
22
22
  }
23
23
 
24
24
  async getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>> {
25
25
 
26
- const url = `${this.baseUrl}/${countryId}?externalCardId${externalId}`;
26
+ const url = `${this.baseUrl}/${countryId}?externalCardId=${externalId}`;
27
27
  return await this.httpRequest.get(url);
28
28
 
29
29
  }
@@ -20,6 +20,7 @@ import {ISessionActivityPublisher, SessionActivityPublisher} from "./sessionActi
20
20
  import {IExchangeRatesApi} from "./exchangeRates";
21
21
  import ExchangeRatesApi from "./exchangeRates/ExchangeRatesApi";
22
22
  import { AuthenticationApi, IAuthenticationApi } from "./authentication";
23
+ import { CardApi, ICardApi } from "./card";
23
24
 
24
25
  export const apiInvokerBindings = new ContainerModule((bind: interfaces.Bind) => {
25
26
  bind<IDirectoryApi>("IDirectoryApi").to(DirectoryApi);
@@ -35,4 +36,5 @@ export const apiInvokerBindings = new ContainerModule((bind: interfaces.Bind) =>
35
36
  bind<INotificationMessagesPublisher>("INotificationMessagesPublisher").to(NotificationMessagePublisher);
36
37
  bind<ISessionActivityPublisher>("ISessionActivityPublisher").to(SessionActivityPublisher);
37
38
  bind<IAuthenticationApi>("IAuthenticationApi").to(AuthenticationApi);
39
+ bind<ICardApi>("ICardApi").to(CardApi)
38
40
  });