@fiado/api-invoker 1.1.13 → 1.1.14
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.
- package/bin/card/CardApi.d.ts +1 -0
- package/bin/card/CardApi.js +4 -0
- package/package.json +1 -1
- package/src/card/CardApi.ts +5 -2
package/bin/card/CardApi.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export declare class CardApi implements ICardApi {
|
|
|
9
9
|
constructor(httpRequest: IHttpRequest);
|
|
10
10
|
getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
11
11
|
getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
12
|
+
evaluateAccountLevelUpdate(directoryId: string): Promise<void>;
|
|
12
13
|
}
|
package/bin/card/CardApi.js
CHANGED
|
@@ -27,6 +27,10 @@ let CardApi = class CardApi {
|
|
|
27
27
|
const url = `${this.baseUrl}/${countryId}?externalCardId=${externalId}`;
|
|
28
28
|
return await this.httpRequest.get(url);
|
|
29
29
|
}
|
|
30
|
+
async evaluateAccountLevelUpdate(directoryId) {
|
|
31
|
+
const url = `${this.baseUrl}accounts/levels`;
|
|
32
|
+
await this.httpRequest.post(url, { directoryId });
|
|
33
|
+
}
|
|
30
34
|
};
|
|
31
35
|
exports.CardApi = CardApi;
|
|
32
36
|
exports.CardApi = CardApi = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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",
|
package/src/card/CardApi.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { CountryId } from "@fiado/type-kit/bin/country";
|
|
|
5
5
|
import { inject, injectable } from "inversify";
|
|
6
6
|
import { ICardApi } from "./interfaces/ICardApi";
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
@injectable()
|
|
10
9
|
export class CardApi implements ICardApi {
|
|
11
10
|
|
|
@@ -18,14 +17,18 @@ export class CardApi implements ICardApi {
|
|
|
18
17
|
|
|
19
18
|
const url = `${this.baseUrl}/${countryId}?cardId=${id}`;
|
|
20
19
|
return await this.httpRequest.get(url);
|
|
21
|
-
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
async getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>> {
|
|
25
23
|
|
|
26
24
|
const url = `${this.baseUrl}/${countryId}?externalCardId=${externalId}`;
|
|
27
25
|
return await this.httpRequest.get(url);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async evaluateAccountLevelUpdate(directoryId: string): Promise<void> {
|
|
28
29
|
|
|
30
|
+
const url = `${this.baseUrl}accounts/levels`
|
|
31
|
+
await this.httpRequest.post(url, { directoryId });
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
|