@fiado/api-invoker 3.13.0 → 3.15.0
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/uniteller-connector/api/UnitellerConnectorApi.d.ts +2 -0
- package/bin/uniteller-connector/api/UnitellerConnectorApi.js +4 -0
- package/bin/uniteller-connector/api/interfaces/IUnitellerConnectorApi.d.ts +7 -0
- package/package.json +1 -1
- package/src/uniteller-connector/api/UnitellerConnectorApi.ts +6 -0
- package/src/uniteller-connector/api/interfaces/IUnitellerConnectorApi.ts +8 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IHttpRequest } from "@fiado/http-client";
|
|
2
2
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
3
|
+
import { ConnectorCatalogItem } from "@fiado/type-kit/bin/benefitCenter";
|
|
3
4
|
import { RemittanceHomeResponse, RemittanceOnboardRequest, RemittanceOnboardResponse, RemittanceSecurityQuestionsResponse } from "@fiado/type-kit/bin/remittance";
|
|
4
5
|
import { IUnitellerConnectorApi } from "./interfaces/IUnitellerConnectorApi";
|
|
5
6
|
export default class UnitellerConnectorApi implements IUnitellerConnectorApi {
|
|
@@ -9,4 +10,5 @@ export default class UnitellerConnectorApi implements IUnitellerConnectorApi {
|
|
|
9
10
|
getHome(directoryId: string): Promise<ApiGatewayResponse<RemittanceHomeResponse>>;
|
|
10
11
|
getSecurityQuestions(): Promise<ApiGatewayResponse<RemittanceSecurityQuestionsResponse>>;
|
|
11
12
|
onboard(request: RemittanceOnboardRequest): Promise<ApiGatewayResponse<RemittanceOnboardResponse>>;
|
|
13
|
+
getStandardCatalog(): Promise<ApiGatewayResponse<ConnectorCatalogItem[]>>;
|
|
12
14
|
}
|
|
@@ -30,6 +30,10 @@ let UnitellerConnectorApi = class UnitellerConnectorApi {
|
|
|
30
30
|
const url = `${this.baseUrl}/onboard`;
|
|
31
31
|
return await this.httpRequest.post(url, request);
|
|
32
32
|
}
|
|
33
|
+
async getStandardCatalog() {
|
|
34
|
+
const url = `${this.baseUrl}/catalog/standard`;
|
|
35
|
+
return await this.httpRequest.get(url);
|
|
36
|
+
}
|
|
33
37
|
};
|
|
34
38
|
UnitellerConnectorApi = __decorate([
|
|
35
39
|
(0, inversify_1.injectable)(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
2
|
+
import { ConnectorCatalogItem } from "@fiado/type-kit/bin/benefitCenter";
|
|
2
3
|
import { RemittanceHomeResponse, RemittanceOnboardRequest, RemittanceOnboardResponse, RemittanceSecurityQuestionsResponse } from "@fiado/type-kit/bin/remittance";
|
|
3
4
|
export interface IUnitellerConnectorApi {
|
|
4
5
|
/** Estado del módulo remesas para un directoryId. */
|
|
@@ -7,4 +8,10 @@ export interface IUnitellerConnectorApi {
|
|
|
7
8
|
getSecurityQuestions(): Promise<ApiGatewayResponse<RemittanceSecurityQuestionsResponse>>;
|
|
8
9
|
/** Activa el servicio de remesas (silent signup en UNIR). */
|
|
9
10
|
onboard(request: RemittanceOnboardRequest): Promise<ApiGatewayResponse<RemittanceOnboardResponse>>;
|
|
11
|
+
/**
|
|
12
|
+
* Catálogo en formato estándar ConnectorCatalogItem[] que el
|
|
13
|
+
* CatalogTreeBuilder de benefits-marketplace consume para armar el árbol
|
|
14
|
+
* del benefit Remittance (D-F3.7).
|
|
15
|
+
*/
|
|
16
|
+
getStandardCatalog(): Promise<ApiGatewayResponse<ConnectorCatalogItem[]>>;
|
|
10
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
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,6 +1,7 @@
|
|
|
1
1
|
import { inject, injectable } from "inversify";
|
|
2
2
|
import { IHttpRequest } from "@fiado/http-client";
|
|
3
3
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
4
|
+
import { ConnectorCatalogItem } from "@fiado/type-kit/bin/benefitCenter";
|
|
4
5
|
import {
|
|
5
6
|
RemittanceHomeResponse,
|
|
6
7
|
RemittanceOnboardRequest,
|
|
@@ -29,4 +30,9 @@ export default class UnitellerConnectorApi implements IUnitellerConnectorApi {
|
|
|
29
30
|
const url = `${this.baseUrl}/onboard`;
|
|
30
31
|
return await this.httpRequest.post(url, request);
|
|
31
32
|
}
|
|
33
|
+
|
|
34
|
+
async getStandardCatalog(): Promise<ApiGatewayResponse<ConnectorCatalogItem[]>> {
|
|
35
|
+
const url = `${this.baseUrl}/catalog/standard`;
|
|
36
|
+
return await this.httpRequest.get(url);
|
|
37
|
+
}
|
|
32
38
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
2
|
+
import { ConnectorCatalogItem } from "@fiado/type-kit/bin/benefitCenter";
|
|
2
3
|
import {
|
|
3
4
|
RemittanceHomeResponse,
|
|
4
5
|
RemittanceOnboardRequest,
|
|
@@ -15,4 +16,11 @@ export interface IUnitellerConnectorApi {
|
|
|
15
16
|
|
|
16
17
|
/** Activa el servicio de remesas (silent signup en UNIR). */
|
|
17
18
|
onboard(request: RemittanceOnboardRequest): Promise<ApiGatewayResponse<RemittanceOnboardResponse>>;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Catálogo en formato estándar ConnectorCatalogItem[] que el
|
|
22
|
+
* CatalogTreeBuilder de benefits-marketplace consume para armar el árbol
|
|
23
|
+
* del benefit Remittance (D-F3.7).
|
|
24
|
+
*/
|
|
25
|
+
getStandardCatalog(): Promise<ApiGatewayResponse<ConnectorCatalogItem[]>>;
|
|
18
26
|
}
|