@fiado/api-invoker 1.0.24 → 1.0.26

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.
@@ -0,0 +1,4 @@
1
+ import { AccountCreateRequest, AccountCreateResponse } from "@fiado/type-kit/bin/account";
2
+ export interface IAccountFiadoIncApi {
3
+ createAccount(data: AccountCreateRequest): Promise<AccountCreateResponse>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { AccountCreateRequest, AccountCreateResponse } from "@fiado/type-kit/bin/account";
2
+ export interface IAccountFiadoSAApi {
3
+ createAccount(data: AccountCreateRequest): Promise<AccountCreateResponse>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { AccountCreateRequest, AccountCreateResponse } from "@fiado/type-kit/bin/account";
2
+ export interface IAccountPagoConfiadoApi {
3
+ createAccount(data: AccountCreateRequest): Promise<AccountCreateResponse>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,6 +7,6 @@ export default class PomeloApi implements IPomeloApi {
7
7
  private readonly baseUrl;
8
8
  constructor(httpRequest: IHttpRequest);
9
9
  createUser(request: CreateBankAccountUserRequest): Promise<ApiGatewayResponse<CreateBankAccountUserResponse>>;
10
- getUserById(externalUserId: string): Promise<GetBankAccountUserResponse>;
11
- updateUser(object: UpdateBankAccountUserRequest): Promise<UpdateBankAccountUserResponse>;
10
+ getUserById(externalUserId: string): Promise<ApiGatewayResponse<GetBankAccountUserResponse>>;
11
+ updateUser(object: UpdateBankAccountUserRequest): Promise<ApiGatewayResponse<UpdateBankAccountUserResponse>>;
12
12
  }
@@ -1,5 +1,7 @@
1
- import { CreateBankAccountUserRequest, CreateBankAccountUserResponse } from "@fiado/type-kit/bin/account";
1
+ import { CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountUserResponse, UpdateBankAccountUserRequest, UpdateBankAccountUserResponse } from "@fiado/type-kit/bin/account";
2
2
  import { ApiGatewayResponse } from "@fiado/gateway-adapter";
3
3
  export interface IPomeloApi {
4
+ updateUser(object: UpdateBankAccountUserRequest): Promise<ApiGatewayResponse<UpdateBankAccountUserResponse>>;
5
+ getUserById(externalUserId: string): Promise<ApiGatewayResponse<GetBankAccountUserResponse>>;
4
6
  createUser(request: CreateBankAccountUserRequest): Promise<ApiGatewayResponse<CreateBankAccountUserResponse>>;
5
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
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",
@@ -0,0 +1,8 @@
1
+ import { AccountCreateRequest, AccountCreateResponse } from "@fiado/type-kit/bin/account";
2
+
3
+
4
+ export interface IAccountFiadoIncApi {
5
+
6
+ createAccount(data: AccountCreateRequest): Promise<AccountCreateResponse>;
7
+
8
+ }
@@ -0,0 +1,9 @@
1
+ import { AccountCreateRequest, AccountCreateResponse } from "@fiado/type-kit/bin/account";
2
+
3
+
4
+
5
+ export interface IAccountFiadoSAApi {
6
+
7
+ createAccount(data: AccountCreateRequest): Promise<AccountCreateResponse>;
8
+
9
+ }
@@ -0,0 +1,8 @@
1
+ import { AccountCreateRequest, AccountCreateResponse } from "@fiado/type-kit/bin/account";
2
+
3
+
4
+ export interface IAccountPagoConfiadoApi {
5
+
6
+ createAccount(data: AccountCreateRequest): Promise<AccountCreateResponse>;
7
+
8
+ }
@@ -1,7 +1,7 @@
1
1
  import {IPomeloApi } from "./interfaces/IPomeloApi";
2
2
  import {inject, injectable} from "inversify";
3
3
  import {IHttpRequest} from "@fiado/http-client";
4
- import {CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountUserRequest, GetBankAccountUserResponse, UpdateBankAccountUserRequest, UpdateBankAccountUserResponse} from "@fiado/type-kit/bin/account";
4
+ import {CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountUserResponse, UpdateBankAccountUserRequest, UpdateBankAccountUserResponse} from "@fiado/type-kit/bin/account";
5
5
  import {ApiGatewayResponse} from "@fiado/gateway-adapter";
6
6
 
7
7
 
@@ -21,12 +21,12 @@ export default class PomeloApi implements IPomeloApi {
21
21
  return await this.httpRequest.post(url, request);
22
22
  }
23
23
 
24
- public async getUserById(externalUserId: string): Promise<GetBankAccountUserResponse> {
24
+ public async getUserById(externalUserId: string): Promise<ApiGatewayResponse<GetBankAccountUserResponse>> {
25
25
  const url: string = `${this.baseUrl}users/${externalUserId}`;
26
26
  return await this.httpRequest.get(url);
27
27
  }
28
28
 
29
- public async updateUser(object: UpdateBankAccountUserRequest): Promise<UpdateBankAccountUserResponse> {
29
+ public async updateUser(object: UpdateBankAccountUserRequest): Promise<ApiGatewayResponse<UpdateBankAccountUserResponse>> {
30
30
  const url: string = `${this.baseUrl}/users/${object.id}`;
31
31
  return await this.httpRequest.put(url, object);
32
32
  }
@@ -1,6 +1,9 @@
1
- import {CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountUserRequest, GetBankAccountUserResponse} from "@fiado/type-kit/bin/account";
1
+ import {CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountUserRequest, GetBankAccountUserResponse, UpdateBankAccountUserRequest, UpdateBankAccountUserResponse} from "@fiado/type-kit/bin/account";
2
2
  import {ApiGatewayResponse} from "@fiado/gateway-adapter";
3
3
 
4
4
  export interface IPomeloApi {
5
+
6
+ updateUser(object: UpdateBankAccountUserRequest): Promise<ApiGatewayResponse<UpdateBankAccountUserResponse>>
7
+ getUserById(externalUserId: string): Promise<ApiGatewayResponse<GetBankAccountUserResponse>>
5
8
  createUser(request: CreateBankAccountUserRequest): Promise<ApiGatewayResponse<CreateBankAccountUserResponse>>;
6
9
  }