@fiado/api-invoker 3.0.42 → 3.0.43

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.
@@ -10,6 +10,7 @@ export default class PomeloApi implements IPomeloApi {
10
10
  getUserById(externalUserId: string): Promise<any>;
11
11
  updateUser(object: UpdateBankAccountUserRequest): Promise<any>;
12
12
  getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
13
+ getCardById(externalCardId: string): Promise<any>;
13
14
  getCardsById(externalCardId: string): Promise<any>;
14
15
  getCardsByUserId(externalUserId: string): Promise<any>;
15
16
  createCard(object: CreateBankAccountRequest): Promise<any>;
@@ -36,6 +36,10 @@ let PomeloApi = class PomeloApi {
36
36
  const url = `${this.baseUrl}cards/${externalCardId}/sensitive?externalUserId=${externalUserId}`;
37
37
  return await this.httpRequest.get(url);
38
38
  }
39
+ async getCardById(externalCardId) {
40
+ const url = `${this.baseUrl}cards/${externalCardId}/detail`;
41
+ return await this.httpRequest.get(url);
42
+ }
39
43
  async getCardsById(externalCardId) {
40
44
  const url = `${this.baseUrl}cards?externalCardId=${externalCardId}`;
41
45
  return await this.httpRequest.get(url);
@@ -5,6 +5,7 @@ export interface IPomeloApi {
5
5
  getUserById(externalUserId: string): Promise<any>;
6
6
  createUser(request: CreateBankAccountUserRequest): Promise<any>;
7
7
  getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
8
+ getCardById(externalCardId: string): Promise<any>;
8
9
  getCardsById(externalCardId: string): Promise<any>;
9
10
  getCardsByUserId(externalUserId: string): Promise<any>;
10
11
  createCard(object: CreateBankAccountRequest): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "3.0.42",
3
+
4
+ "version": "3.0.43",
5
+
6
+
4
7
  "description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
5
8
  "main": "bin/index.js",
6
9
  "types": "bin/index.d.ts",
@@ -16,7 +19,7 @@
16
19
  "@fiado/gateway-adapter": "^1.1.50",
17
20
  "@fiado/http-client": "^1.0.7",
18
21
  "@fiado/logger": "^1.0.3",
19
- "@fiado/type-kit": "^3.1.8",
22
+ "@fiado/type-kit": "^3.1.15",
20
23
  "dotenv": "^16.4.7",
21
24
  "i": "^0.3.7",
22
25
  "inversify": "^6.2.2",
@@ -35,6 +35,11 @@ export default class PomeloApi implements IPomeloApi {
35
35
  return await this.httpRequest.get(url);
36
36
  }
37
37
 
38
+ public async getCardById(externalCardId: string): Promise<any> {
39
+ const url: string = `${this.baseUrl}cards/${externalCardId}/detail`;
40
+ return await this.httpRequest.get(url);
41
+ }
42
+
38
43
  public async getCardsById(externalCardId: string): Promise<any> {
39
44
  const url: string = `${this.baseUrl}cards?externalCardId=${externalCardId}`;
40
45
  return await this.httpRequest.get(url);
@@ -10,6 +10,7 @@ export interface IPomeloApi {
10
10
 
11
11
  // //Card
12
12
  getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>
13
+ getCardById(externalCardId: string): Promise<any>
13
14
  getCardsById(externalCardId: string): Promise<any>
14
15
  getCardsByUserId(externalUserId: string): Promise<any>
15
16
  createCard(object: CreateBankAccountRequest): Promise<any>
@@ -1,46 +0,0 @@
1
- import { ChangePasswordRequest, GetUserRequest, GetUserResponse, RefreshTokenRequest, RefreshTokenResponse, RespondToAuthChallengeRequest, SetPasswordRequest, SignInRequest, SignInResponse, SignUpConfirmRequest, SignUpRequest, SignUpResponse } from "@fiado/type-kit/bin/cognitoConnector";
2
- export interface ICognitoApi {
3
- /**
4
- * Healthcheck for the cognito-connector
5
- */
6
- healthcheck(): Promise<HealthcheckResponse>;
7
- /**
8
- * Create a new user in Cognito
9
- */
10
- signUp(request: SignUpRequest): Promise<SignUpResponse>;
11
- /**
12
- * Confirm sign-up for a user in Cognito
13
- */
14
- signUpConfirm(request: SignUpConfirmRequest): Promise<void>;
15
- /**
16
- * Sign in a user
17
- */
18
- signIn(request: SignInRequest): Promise<SignInResponse>;
19
- /**
20
- * Sign out a user
21
- */
22
- signOut(): Promise<void>;
23
- /**
24
- * Change a user's password
25
- */
26
- changePassword(request: ChangePasswordRequest): Promise<void>;
27
- /**
28
- * Retrieve user details
29
- */
30
- getUser(request: GetUserRequest): Promise<GetUserResponse>;
31
- /**
32
- * Refresh a user's tokens
33
- */
34
- refreshToken(request: RefreshTokenRequest): Promise<RefreshTokenResponse>;
35
- /**
36
- * Respond to an auth challenge
37
- */
38
- respondToAuthChallenge(request: RespondToAuthChallengeRequest): Promise<any>;
39
- /**
40
- * Reset a user's password
41
- */
42
- resetPassword(request: SetPasswordRequest): Promise<void>;
43
- }
44
- export interface HealthcheckResponse {
45
- status: string;
46
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
File without changes
File without changes
@@ -1,3 +0,0 @@
1
- export interface IReportProcessorBusiness {
2
- processReports(key: string): Promise<void>;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });