@fiado/api-invoker 3.7.0 → 3.8.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/multicommServicePayment/api/MulticommServicePaymentApi.d.ts +1 -0
- package/bin/multicommServicePayment/api/MulticommServicePaymentApi.js +4 -0
- package/bin/multicommServicePayment/api/interfaces/IMulticommServicePaymentApi.d.ts +1 -0
- package/bin/stpServicePayment/api/StpServicePaymentApi.d.ts +1 -0
- package/bin/stpServicePayment/api/StpServicePaymentApi.js +4 -0
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.d.ts +1 -0
- package/package.json +2 -2
- package/src/multicommServicePayment/api/MulticommServicePaymentApi.ts +5 -0
- package/src/multicommServicePayment/api/interfaces/IMulticommServicePaymentApi.ts +5 -0
- package/src/stpServicePayment/api/StpServicePaymentApi.ts +5 -0
- package/src/stpServicePayment/api/interfaces/IStpServicePaymentApi.ts +5 -0
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.d.ts +0 -46
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.js +0 -2
- package/bin/estafeta/EstafetaApi.d.ts +0 -0
- package/bin/estafeta/EstafetaApi.js +0 -0
- package/bin/report-processor-business/api/IReportProcessorBusiness.d.ts +0 -3
- package/bin/report-processor-business/api/IReportProcessorBusiness.js +0 -2
|
@@ -31,4 +31,5 @@ export default class MulticommServicePaymentApi implements IMulticommServicePaym
|
|
|
31
31
|
}): Promise<ApiGatewayResponse<ConnectorCatalogResponse>>;
|
|
32
32
|
payStandard(request: BenefitPaymentRequest): Promise<ApiGatewayResponse<BenefitPaymentResponse>>;
|
|
33
33
|
consultStandard(transactionNumber: string): Promise<ApiGatewayResponse<BenefitPaymentResponse>>;
|
|
34
|
+
updateService(idServicio: number, patch: Record<string, unknown>): Promise<ApiGatewayResponse<any>>;
|
|
34
35
|
}
|
|
@@ -80,6 +80,10 @@ let MulticommServicePaymentApi = class MulticommServicePaymentApi {
|
|
|
80
80
|
const url = `${this.baseUrl}/pay/standard/transactions/${encodeURIComponent(transactionNumber)}`;
|
|
81
81
|
return await this.httpRequest.get(url);
|
|
82
82
|
}
|
|
83
|
+
async updateService(idServicio, patch) {
|
|
84
|
+
const url = `${this.baseUrl}/internal/services/${idServicio}`;
|
|
85
|
+
return await this.httpRequest.put(url, patch);
|
|
86
|
+
}
|
|
83
87
|
};
|
|
84
88
|
MulticommServicePaymentApi = __decorate([
|
|
85
89
|
(0, inversify_1.injectable)(),
|
|
@@ -26,4 +26,5 @@ export interface IMulticommServicePaymentApi {
|
|
|
26
26
|
}): Promise<ApiGatewayResponse<ConnectorCatalogResponse>>;
|
|
27
27
|
payStandard(request: BenefitPaymentRequest): Promise<ApiGatewayResponse<BenefitPaymentResponse>>;
|
|
28
28
|
consultStandard(transactionNumber: string): Promise<ApiGatewayResponse<BenefitPaymentResponse>>;
|
|
29
|
+
updateService(idServicio: number, patch: Record<string, unknown>): Promise<ApiGatewayResponse<any>>;
|
|
29
30
|
}
|
|
@@ -27,4 +27,5 @@ export default class StpServicePaymentApi implements IStpServicePaymentApi {
|
|
|
27
27
|
}): Promise<ApiGatewayResponse<ConnectorCatalogResponse>>;
|
|
28
28
|
payStandard(request: BenefitPaymentRequest): Promise<ApiGatewayResponse<BenefitPaymentResponse>>;
|
|
29
29
|
consultStandard(transactionNumber: string): Promise<ApiGatewayResponse<BenefitPaymentResponse>>;
|
|
30
|
+
updateService(idServicio: number, patch: Record<string, unknown>): Promise<ApiGatewayResponse<any>>;
|
|
30
31
|
}
|
|
@@ -80,6 +80,10 @@ let StpServicePaymentApi = class StpServicePaymentApi {
|
|
|
80
80
|
const url = `${this.baseUrl}/pay/standard/transactions/${encodeURIComponent(transactionNumber)}`;
|
|
81
81
|
return await this.httpRequest.get(url);
|
|
82
82
|
}
|
|
83
|
+
async updateService(idServicio, patch) {
|
|
84
|
+
const url = `${this.baseUrl}/internal/services/${idServicio}`;
|
|
85
|
+
return await this.httpRequest.put(url, patch);
|
|
86
|
+
}
|
|
83
87
|
};
|
|
84
88
|
StpServicePaymentApi = __decorate([
|
|
85
89
|
(0, inversify_1.injectable)(),
|
|
@@ -22,4 +22,5 @@ export interface IStpServicePaymentApi {
|
|
|
22
22
|
}): Promise<ApiGatewayResponse<ConnectorCatalogResponse>>;
|
|
23
23
|
payStandard(request: BenefitPaymentRequest): Promise<ApiGatewayResponse<BenefitPaymentResponse>>;
|
|
24
24
|
consultStandard(transactionNumber: string): Promise<ApiGatewayResponse<BenefitPaymentResponse>>;
|
|
25
|
+
updateService(idServicio: number, patch: Record<string, unknown>): Promise<ApiGatewayResponse<any>>;
|
|
25
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@fiado/gateway-adapter": "^1.1.50",
|
|
17
17
|
"@fiado/http-client": "^1.0.7",
|
|
18
18
|
"@fiado/logger": "^1.0.3",
|
|
19
|
-
"@fiado/type-kit": "^3.
|
|
19
|
+
"@fiado/type-kit": "^3.16.0",
|
|
20
20
|
"dotenv": "^16.4.7",
|
|
21
21
|
"i": "^0.3.7",
|
|
22
22
|
"inversify": "^6.2.2",
|
|
@@ -82,4 +82,9 @@ export default class MulticommServicePaymentApi implements IMulticommServicePaym
|
|
|
82
82
|
const url = `${this.baseUrl}/pay/standard/transactions/${encodeURIComponent(transactionNumber)}`;
|
|
83
83
|
return await this.httpRequest.get(url);
|
|
84
84
|
}
|
|
85
|
+
|
|
86
|
+
async updateService(idServicio: number, patch: Record<string, unknown>): Promise<ApiGatewayResponse<any>> {
|
|
87
|
+
const url = `${this.baseUrl}/internal/services/${idServicio}`;
|
|
88
|
+
return await this.httpRequest.put(url, patch);
|
|
89
|
+
}
|
|
85
90
|
}
|
|
@@ -33,4 +33,9 @@ export interface IMulticommServicePaymentApi {
|
|
|
33
33
|
// hace el mapping legacy → estándar internamente). Usado por el cron de timeout
|
|
34
34
|
// reconciliation del marketplace para consultar transacciones async sin ver shapes legacy.
|
|
35
35
|
consultStandard(transactionNumber: string): Promise<ApiGatewayResponse<BenefitPaymentResponse>>;
|
|
36
|
+
|
|
37
|
+
// Agregado en v3.8.0 — consume PUT /backoffice/services/{idServicio} del conector
|
|
38
|
+
// admin. Consumido por LeafAdminManager de benefits-marketplace-business para
|
|
39
|
+
// edición editorial in-place (admin-leaves v2).
|
|
40
|
+
updateService(idServicio: number, patch: Record<string, unknown>): Promise<ApiGatewayResponse<any>>;
|
|
36
41
|
}
|
|
@@ -82,4 +82,9 @@ export default class StpServicePaymentApi implements IStpServicePaymentApi {
|
|
|
82
82
|
const url = `${this.baseUrl}/pay/standard/transactions/${encodeURIComponent(transactionNumber)}`;
|
|
83
83
|
return await this.httpRequest.get(url);
|
|
84
84
|
}
|
|
85
|
+
|
|
86
|
+
async updateService(idServicio: number, patch: Record<string, unknown>): Promise<ApiGatewayResponse<any>> {
|
|
87
|
+
const url = `${this.baseUrl}/internal/services/${idServicio}`;
|
|
88
|
+
return await this.httpRequest.put(url, patch);
|
|
89
|
+
}
|
|
85
90
|
}
|
|
@@ -33,4 +33,9 @@ export interface IStpServicePaymentApi {
|
|
|
33
33
|
// hace el mapping legacy → estándar internamente). Usado por el cron de timeout
|
|
34
34
|
// reconciliation del marketplace para consultar transacciones async sin ver shapes legacy.
|
|
35
35
|
consultStandard(transactionNumber: string): Promise<ApiGatewayResponse<BenefitPaymentResponse>>;
|
|
36
|
+
|
|
37
|
+
// Agregado en v3.8.0 — consume PUT /backoffice/services/{idServicio} del conector
|
|
38
|
+
// admin. Consumido por LeafAdminManager de benefits-marketplace-business para
|
|
39
|
+
// edición editorial in-place (admin-leaves v2).
|
|
40
|
+
updateService(idServicio: number, patch: Record<string, unknown>): Promise<ApiGatewayResponse<any>>;
|
|
36
41
|
}
|
|
@@ -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
|
-
}
|
|
File without changes
|
|
File without changes
|