@fiado/api-invoker 1.1.82 → 1.1.83
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
CHANGED
|
@@ -10,4 +10,5 @@ export declare class CardApi implements ICardApi {
|
|
|
10
10
|
getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
11
11
|
getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
12
12
|
evaluateAccountLevelUpdate(directoryId: string): Promise<void>;
|
|
13
|
+
findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
|
|
13
14
|
}
|
package/bin/card/CardApi.js
CHANGED
|
@@ -31,6 +31,11 @@ let CardApi = class CardApi {
|
|
|
31
31
|
const url = `${this.baseUrl}accounts/levels`;
|
|
32
32
|
await this.httpRequest.post(url, { directoryId });
|
|
33
33
|
}
|
|
34
|
+
async findCardIssuanceByIds(directoryIds) {
|
|
35
|
+
const queryparams = directoryIds.map((directoryId) => `directoryId=${directoryId}`).join("&");
|
|
36
|
+
const url = `${this.baseUrl}?${queryparams}`;
|
|
37
|
+
return await this.httpRequest.get(url);
|
|
38
|
+
}
|
|
34
39
|
};
|
|
35
40
|
exports.CardApi = CardApi;
|
|
36
41
|
exports.CardApi = CardApi = __decorate([
|
|
@@ -4,4 +4,5 @@ import { CountryId } from "@fiado/type-kit/bin/country";
|
|
|
4
4
|
export interface ICardApi {
|
|
5
5
|
getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
6
6
|
getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
7
|
+
findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
|
|
7
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.83",
|
|
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
|
@@ -30,6 +30,15 @@ export class CardApi implements ICardApi {
|
|
|
30
30
|
const url = `${this.baseUrl}accounts/levels`
|
|
31
31
|
await this.httpRequest.post(url, { directoryId });
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
async findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>> {
|
|
35
|
+
|
|
36
|
+
const queryparams = directoryIds.map((directoryId) => `directoryId=${directoryId}`).join("&");
|
|
37
|
+
|
|
38
|
+
const url = `${this.baseUrl}?${queryparams}`;
|
|
39
|
+
|
|
40
|
+
return await this.httpRequest.get(url);
|
|
41
|
+
}
|
|
33
42
|
}
|
|
34
43
|
|
|
35
44
|
|
|
@@ -6,6 +6,8 @@ export interface ICardApi {
|
|
|
6
6
|
|
|
7
7
|
getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
8
8
|
|
|
9
|
-
getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse
|
|
9
|
+
getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
10
|
+
|
|
11
|
+
findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
|
|
10
12
|
|
|
11
13
|
}
|