@fiado/api-invoker 1.2.85 → 1.2.86
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.
|
@@ -5,7 +5,7 @@ import { ActivateBankAccountCardRequest, AssignCardRequest, CreateBankAccountCar
|
|
|
5
5
|
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
6
6
|
import { BankAccountP2pTransferResponse } from "@fiado/type-kit/bin/account/dtos/BankAccountP2pTransferResponse";
|
|
7
7
|
export default class TernApi implements ITernApi {
|
|
8
|
-
private httpRequest;
|
|
8
|
+
private readonly httpRequest;
|
|
9
9
|
private readonly baseUrl;
|
|
10
10
|
constructor(httpRequest: IHttpRequest);
|
|
11
11
|
getUser(request: GetBankAccountUserRequest): Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.86",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@fiado/gateway-adapter": "^1.1.40",
|
|
17
17
|
"@fiado/http-client": "^1.0.5",
|
|
18
18
|
"@fiado/logger": "^1.0.3",
|
|
19
|
-
"@fiado/type-kit": "^1.8.
|
|
19
|
+
"@fiado/type-kit": "^1.8.48",
|
|
20
20
|
"dotenv": "^16.4.7",
|
|
21
21
|
"inversify": "^6.2.2",
|
|
22
22
|
"reflect-metadata": "^0.2.2"
|
package/src/tern/api/TernApi.ts
CHANGED
|
@@ -22,7 +22,7 @@ import {BankAccountP2pTransferResponse} from "@fiado/type-kit/bin/account/dtos/B
|
|
|
22
22
|
export default class TernApi implements ITernApi {
|
|
23
23
|
private readonly baseUrl = process.env.TERN_LAMBDA_URL || "";
|
|
24
24
|
|
|
25
|
-
constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) {
|
|
25
|
+
constructor(@inject("IHttpRequest") private readonly httpRequest: IHttpRequest) {
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/// USERS
|
|
@@ -53,9 +53,7 @@ export default class TernApi implements ITernApi {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/// CARDS
|
|
56
|
-
|
|
57
56
|
async getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any> {
|
|
58
|
-
|
|
59
57
|
const url = `${this.baseUrl}cards/${externalCardId}/sensitive`;
|
|
60
58
|
return await this.httpRequest.get(url);
|
|
61
59
|
}
|