@fiado/api-invoker 1.3.60 → 1.3.61

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,11 +1,24 @@
1
1
  import { IHttpRequest } from "@fiado/http-client";
2
2
  import { IEstafetaApi } from "./interfaces/IEstafetaApi";
3
- import { CreateBankAccountCardShippingRequest } from "@fiado/type-kit/bin/card";
3
+ import { ActivateBankAccountCardRequest, AssignCardRequest, CreateBankAccountCardShippingRequest, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
4
4
  import { CreateBankAccountCardShippingResponse } from "@fiado/type-kit/bin/card";
5
5
  import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
6
+ import { UpdateBankAccountUserRequest, CreateBankAccountUserRequest, CreateBankAccountRequest } from "@fiado/type-kit/bin/account";
6
7
  export default class EstafetaApi implements IEstafetaApi {
7
8
  private httpRequest;
8
9
  private readonly baseUrl;
9
10
  constructor(httpRequest: IHttpRequest);
11
+ updateUser(object: UpdateBankAccountUserRequest): Promise<any>;
12
+ getUserById(externalUserId: string): Promise<any>;
13
+ createUser(request: CreateBankAccountUserRequest): Promise<any>;
14
+ getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
15
+ getCardsById(externalCardId: string): Promise<any>;
16
+ getCardsByUserId(externalUserId: string): Promise<any>;
17
+ createCard(object: CreateBankAccountRequest): Promise<any>;
18
+ blockCard(object: UpdateBankAccountCardRequest): Promise<any>;
19
+ changePin(object: UpdateBankAccountCardRequest): Promise<any>;
20
+ activateCard(object: ActivateBankAccountCardRequest): Promise<any>;
21
+ assignCardToUser(request: AssignCardRequest): Promise<any>;
22
+ getShipment(object: GetBankAccountShippingRequest): Promise<any>;
10
23
  createShipment(object: CreateBankAccountCardShippingRequest): Promise<FiadoApiResponse<CreateBankAccountCardShippingResponse>>;
11
24
  }
@@ -18,6 +18,42 @@ let EstafetaApi = class EstafetaApi {
18
18
  this.httpRequest = httpRequest;
19
19
  this.baseUrl = process.env.ESTAFETA_LAMBDA_URL || "";
20
20
  }
21
+ updateUser(object) {
22
+ throw new Error("Method not implemented.");
23
+ }
24
+ getUserById(externalUserId) {
25
+ throw new Error("Method not implemented.");
26
+ }
27
+ createUser(request) {
28
+ throw new Error("Method not implemented.");
29
+ }
30
+ getCardSensitiveInformation(externalCardId, externalUserId) {
31
+ throw new Error("Method not implemented.");
32
+ }
33
+ getCardsById(externalCardId) {
34
+ throw new Error("Method not implemented.");
35
+ }
36
+ getCardsByUserId(externalUserId) {
37
+ throw new Error("Method not implemented.");
38
+ }
39
+ createCard(object) {
40
+ throw new Error("Method not implemented.");
41
+ }
42
+ blockCard(object) {
43
+ throw new Error("Method not implemented.");
44
+ }
45
+ changePin(object) {
46
+ throw new Error("Method not implemented.");
47
+ }
48
+ activateCard(object) {
49
+ throw new Error("Method not implemented.");
50
+ }
51
+ assignCardToUser(request) {
52
+ throw new Error("Method not implemented.");
53
+ }
54
+ getShipment(object) {
55
+ throw new Error("Method not implemented.");
56
+ }
21
57
  async createShipment(object) {
22
58
  const url = `${this.baseUrl}estafeta/shipping/card`;
23
59
  return await this.httpRequest.post(url, object);
@@ -1,5 +1,18 @@
1
- import { CreateBankAccountCardShippingRequest, CreateBankAccountCardShippingResponse } from "@fiado/type-kit/bin/card";
1
+ import { ActivateBankAccountCardRequest, AssignCardRequest, CreateBankAccountCardShippingRequest, CreateBankAccountCardShippingResponse, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
2
2
  import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
3
+ import { CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
3
4
  export interface IEstafetaApi {
4
5
  createShipment(object: CreateBankAccountCardShippingRequest): Promise<FiadoApiResponse<CreateBankAccountCardShippingResponse>>;
6
+ updateUser(object: UpdateBankAccountUserRequest): Promise<any>;
7
+ getUserById(externalUserId: string): Promise<any>;
8
+ createUser(request: CreateBankAccountUserRequest): Promise<any>;
9
+ getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
10
+ getCardsById(externalCardId: string): Promise<any>;
11
+ getCardsByUserId(externalUserId: string): Promise<any>;
12
+ createCard(object: CreateBankAccountRequest): Promise<any>;
13
+ blockCard(object: UpdateBankAccountCardRequest): Promise<any>;
14
+ changePin(object: UpdateBankAccountCardRequest): Promise<any>;
15
+ activateCard(object: ActivateBankAccountCardRequest): Promise<any>;
16
+ assignCardToUser(request: AssignCardRequest): Promise<any>;
17
+ getShipment(object: GetBankAccountShippingRequest): Promise<any>;
5
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.3.60",
3
+ "version": "1.3.61",
4
4
  "description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,11 +1,12 @@
1
- import {injectable,inject} from "inversify";
1
+ import { injectable, inject } from "inversify";
2
2
 
3
- import {IHttpRequest} from "@fiado/http-client";
3
+ import { IHttpRequest } from "@fiado/http-client";
4
4
 
5
- import {IEstafetaApi} from "./interfaces/IEstafetaApi";
6
- import {CreateBankAccountCardShippingRequest} from "@fiado/type-kit/bin/card";
7
- import {CreateBankAccountCardShippingResponse} from "@fiado/type-kit/bin/card";
5
+ import { IEstafetaApi } from "./interfaces/IEstafetaApi";
6
+ import { ActivateBankAccountCardRequest, AssignCardRequest, CreateBankAccountCardShippingRequest, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
7
+ import { CreateBankAccountCardShippingResponse } from "@fiado/type-kit/bin/card";
8
8
  import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
9
+ import { UpdateBankAccountUserRequest, CreateBankAccountUserRequest, CreateBankAccountRequest } from "@fiado/type-kit/bin/account";
9
10
 
10
11
 
11
12
  @injectable()
@@ -15,6 +16,44 @@ export default class EstafetaApi implements IEstafetaApi {
15
16
 
16
17
  constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) {
17
18
  }
19
+
20
+ updateUser(object: UpdateBankAccountUserRequest): Promise<any> {
21
+ throw new Error("Method not implemented.");
22
+ }
23
+ getUserById(externalUserId: string): Promise<any> {
24
+ throw new Error("Method not implemented.");
25
+ }
26
+ createUser(request: CreateBankAccountUserRequest): Promise<any> {
27
+ throw new Error("Method not implemented.");
28
+ }
29
+ getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any> {
30
+ throw new Error("Method not implemented.");
31
+ }
32
+ getCardsById(externalCardId: string): Promise<any> {
33
+ throw new Error("Method not implemented.");
34
+ }
35
+ getCardsByUserId(externalUserId: string): Promise<any> {
36
+ throw new Error("Method not implemented.");
37
+ }
38
+ createCard(object: CreateBankAccountRequest): Promise<any> {
39
+ throw new Error("Method not implemented.");
40
+ }
41
+ blockCard(object: UpdateBankAccountCardRequest): Promise<any> {
42
+ throw new Error("Method not implemented.");
43
+ }
44
+ changePin(object: UpdateBankAccountCardRequest): Promise<any> {
45
+ throw new Error("Method not implemented.");
46
+ }
47
+ activateCard(object: ActivateBankAccountCardRequest): Promise<any> {
48
+ throw new Error("Method not implemented.");
49
+ }
50
+ assignCardToUser(request: AssignCardRequest): Promise<any> {
51
+ throw new Error("Method not implemented.");
52
+ }
53
+ getShipment(object: GetBankAccountShippingRequest): Promise<any> {
54
+ throw new Error("Method not implemented.");
55
+ }
56
+
18
57
  public async createShipment(object: CreateBankAccountCardShippingRequest): Promise<FiadoApiResponse<CreateBankAccountCardShippingResponse>> {
19
58
  const url: string = `${this.baseUrl}estafeta/shipping/card`;
20
59
  return await this.httpRequest.post(url, object);
@@ -1,6 +1,26 @@
1
- import {CreateBankAccountCardShippingRequest, CreateBankAccountCardShippingResponse} from "@fiado/type-kit/bin/card";
1
+ import { ActivateBankAccountCardRequest, AssignCardRequest, CreateBankAccountCardShippingRequest, CreateBankAccountCardShippingResponse, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
2
2
  import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
3
+ import { CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
3
4
 
4
5
  export interface IEstafetaApi {
6
+
7
+
5
8
  createShipment(object: CreateBankAccountCardShippingRequest): Promise<FiadoApiResponse<CreateBankAccountCardShippingResponse>>
9
+
10
+ updateUser(object: UpdateBankAccountUserRequest): Promise<any>
11
+ getUserById(externalUserId: string): Promise<any>
12
+ createUser(request: CreateBankAccountUserRequest): Promise<any>;
13
+ // //Card
14
+ getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>
15
+ getCardsById(externalCardId: string): Promise<any>
16
+ getCardsByUserId(externalUserId: string): Promise<any>
17
+ createCard(object: CreateBankAccountRequest): Promise<any>
18
+ blockCard(object: UpdateBankAccountCardRequest): Promise<any>
19
+ changePin(object: UpdateBankAccountCardRequest): Promise<any>
20
+ activateCard(object: ActivateBankAccountCardRequest): Promise<any>
21
+
22
+ assignCardToUser(request: AssignCardRequest): Promise<any>;
23
+ // //Shipping
24
+
25
+ getShipment(object: GetBankAccountShippingRequest): Promise<any>
6
26
  }