@fiado/api-invoker 1.0.50 → 1.0.52

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.
@@ -17,6 +17,7 @@ const AccountFiadoSAApi_1 = __importDefault(require("./account-fiadosa/AccountFi
17
17
  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
+ const authentication_1 = require("./authentication");
20
21
  exports.apiInvokerBindings = new inversify_1.ContainerModule((bind) => {
21
22
  bind("IDirectoryApi").to(directory_1.DirectoryApi);
22
23
  bind("IIdentityApi").to(identity_1.IdentityApi);
@@ -30,4 +31,5 @@ exports.apiInvokerBindings = new inversify_1.ContainerModule((bind) => {
30
31
  bind("IAccountFiadoSAApi").to(AccountFiadoSAApi_1.default);
31
32
  bind("INotificationMessagesPublisher").to(NotificationMessagePublisher_1.default);
32
33
  bind("ISessionActivityPublisher").to(sessionActivity_1.SessionActivityPublisher);
34
+ bind("IAuthenticationApi").to(authentication_1.AuthenticationApi);
33
35
  });
@@ -1,5 +1,5 @@
1
1
  import { CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
2
- import { CreateBankAccountCardShippingRequest, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
2
+ import { ActivateBankAccountCardRequest, CreateBankAccountCardShippingRequest, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
3
3
  export interface IPomeloApi {
4
4
  updateUser(object: UpdateBankAccountUserRequest): Promise<any>;
5
5
  getUserById(externalUserId: string): Promise<any>;
@@ -10,7 +10,7 @@ export interface IPomeloApi {
10
10
  createCard(object: CreateBankAccountRequest): Promise<any>;
11
11
  blockCard(object: UpdateBankAccountCardRequest): Promise<any>;
12
12
  changePin(object: UpdateBankAccountCardRequest): Promise<any>;
13
- activateCard(object: UpdateBankAccountCardRequest): Promise<any>;
13
+ activateCard(object: ActivateBankAccountCardRequest): Promise<any>;
14
14
  createShipment(object: CreateBankAccountCardShippingRequest): Promise<any>;
15
15
  getShipment(object: GetBankAccountShippingRequest): Promise<any>;
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { ITernApi } from "./interfaces/ITernApi";
2
2
  import { IHttpRequest } from "@fiado/http-client";
3
3
  import { CreateBankAccountRequest, CreateBankAccountUserRequest, GetBankAccountRequest, GetBankAccountUserRequest } from "@fiado/type-kit/bin/account";
4
- import { CreateBankAccountCardRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
4
+ import { ActivateBankAccountCardRequest, CreateBankAccountCardRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
5
5
  export default class TernApi implements ITernApi {
6
6
  private httpRequest;
7
7
  private readonly baseUrl;
@@ -15,6 +15,6 @@ export default class TernApi implements ITernApi {
15
15
  createCard(request: CreateBankAccountCardRequest): Promise<any>;
16
16
  blockCard(request: UpdateBankAccountCardRequest): Promise<any>;
17
17
  changePin(request: UpdateBankAccountCardRequest): Promise<any>;
18
- activateCard(request: UpdateBankAccountCardRequest): Promise<any>;
18
+ activateCard(request: ActivateBankAccountCardRequest): Promise<any>;
19
19
  updateCard(request: UpdateBankAccountCardRequest): Promise<any>;
20
20
  }
@@ -1,7 +1,7 @@
1
1
  import { CreateBankAccountRequest, CreateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
2
2
  import { GetBankAccountUserRequest } from "@fiado/type-kit/bin/account/dtos/GetBankAccountUserRequest";
3
3
  import { GetBankAccountRequest } from "@fiado/type-kit/bin/account/dtos/GetBankAccountRequest";
4
- import { CreateBankAccountCardRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
4
+ import { ActivateBankAccountCardRequest, CreateBankAccountCardRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
5
5
  export interface ITernApi {
6
6
  getUser(request: GetBankAccountUserRequest): Promise<any>;
7
7
  getAccount(request: GetBankAccountRequest): Promise<any>;
@@ -11,6 +11,6 @@ export interface ITernApi {
11
11
  createCard(request: CreateBankAccountCardRequest): Promise<any>;
12
12
  blockCard(request: UpdateBankAccountCardRequest): Promise<any>;
13
13
  changePin(request: UpdateBankAccountCardRequest): Promise<any>;
14
- activateCard(request: UpdateBankAccountCardRequest): Promise<any>;
14
+ activateCard(request: ActivateBankAccountCardRequest): Promise<any>;
15
15
  updateCard(request: UpdateBankAccountCardRequest): Promise<any>;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
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",
@@ -19,6 +19,7 @@ import STPAccountApi from "./stpAccount/api/STPAccountApi";
19
19
  import {ISessionActivityPublisher, SessionActivityPublisher} from "./sessionActivity";
20
20
  import {IExchangeRatesApi} from "./exchangeRates";
21
21
  import ExchangeRatesApi from "./exchangeRates/ExchangeRatesApi";
22
+ import { AuthenticationApi, IAuthenticationApi } from "./authentication";
22
23
 
23
24
  export const apiInvokerBindings = new ContainerModule((bind: interfaces.Bind) => {
24
25
  bind<IDirectoryApi>("IDirectoryApi").to(DirectoryApi);
@@ -33,4 +34,5 @@ export const apiInvokerBindings = new ContainerModule((bind: interfaces.Bind) =>
33
34
  bind<IAccountFiadoSAApi>("IAccountFiadoSAApi").to(AccountFiadoSAApi);
34
35
  bind<INotificationMessagesPublisher>("INotificationMessagesPublisher").to(NotificationMessagePublisher);
35
36
  bind<ISessionActivityPublisher>("ISessionActivityPublisher").to(SessionActivityPublisher);
37
+ bind<IAuthenticationApi>("IAuthenticationApi").to(AuthenticationApi);
36
38
  });
@@ -1,5 +1,5 @@
1
1
  import {CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
2
- import { CreateBankAccountCardShippingRequest, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
2
+ import { ActivateBankAccountCardRequest, CreateBankAccountCardShippingRequest, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
3
3
 
4
4
  export interface IPomeloApi {
5
5
 
@@ -15,7 +15,7 @@ export interface IPomeloApi {
15
15
  createCard(object: CreateBankAccountRequest): Promise<any>
16
16
  blockCard(object: UpdateBankAccountCardRequest): Promise<any>
17
17
  changePin(object: UpdateBankAccountCardRequest): Promise<any>
18
- activateCard(object: UpdateBankAccountCardRequest): Promise<any>
18
+ activateCard(object: ActivateBankAccountCardRequest): Promise<any>
19
19
 
20
20
 
21
21
  // //Shipping
@@ -7,7 +7,7 @@ import {
7
7
  GetBankAccountRequest,
8
8
  GetBankAccountUserRequest,
9
9
  } from "@fiado/type-kit/bin/account";
10
- import { CreateBankAccountCardRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
10
+ import { ActivateBankAccountCardRequest, CreateBankAccountCardRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
11
11
 
12
12
 
13
13
  @injectable()
@@ -68,7 +68,7 @@ export default class TernApi implements ITernApi {
68
68
  return await this.httpRequest.put(url, request);
69
69
  }
70
70
 
71
- async activateCard(request: UpdateBankAccountCardRequest): Promise<any> {
71
+ async activateCard(request: ActivateBankAccountCardRequest): Promise<any> {
72
72
  const url = `${this.baseUrl}cards/activate`;
73
73
  return await this.httpRequest.post(url, request);
74
74
  }
@@ -1,7 +1,7 @@
1
1
  import {CreateBankAccountRequest, CreateBankAccountUserRequest} from "@fiado/type-kit/bin/account";
2
2
  import {GetBankAccountUserRequest} from "@fiado/type-kit/bin/account/dtos/GetBankAccountUserRequest";
3
3
  import {GetBankAccountRequest} from "@fiado/type-kit/bin/account/dtos/GetBankAccountRequest";
4
- import { CreateBankAccountCardRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
4
+ import { ActivateBankAccountCardRequest, CreateBankAccountCardRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
5
5
 
6
6
  export interface ITernApi {
7
7
  getUser(request: GetBankAccountUserRequest): Promise<any>;
@@ -20,7 +20,7 @@ export interface ITernApi {
20
20
 
21
21
  changePin(request: UpdateBankAccountCardRequest): Promise<any>;
22
22
 
23
- activateCard(request: UpdateBankAccountCardRequest): Promise<any>;
23
+ activateCard(request: ActivateBankAccountCardRequest): Promise<any>;
24
24
 
25
25
  updateCard(request: UpdateBankAccountCardRequest): Promise<any>;
26
26
  }