@fiado/api-invoker 1.3.7 → 1.3.8
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/centralPayments/CentralPaymentsConnectorApi.d.ts +1 -1
- package/bin/centralPayments/CentralPaymentsConnectorApi.js +2 -2
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +1 -1
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.d.ts +46 -0
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.js +2 -0
- package/package.json +1 -1
- package/src/centralPayments/CentralPaymentsConnectorApi.ts +2 -2
- package/src/centralPayments/interfaces/ICentralPaymentsConnectorApi.ts +1 -1
|
@@ -28,7 +28,7 @@ export declare class CentralPaymentsConnectorApi implements ICentralPaymentsConn
|
|
|
28
28
|
getCardSensitiveInformation(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountSensitiveInformationResponse>>;
|
|
29
29
|
activateCard(request: ActivateBankAccountCardRequest): Promise<FiadoApiResponse<ActivateBankAccountCardResponse>>;
|
|
30
30
|
getCardBalance(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountCardBalanceResponse>>;
|
|
31
|
-
updateCard(
|
|
31
|
+
updateCard(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>>;
|
|
32
32
|
updateCardProgram(externalCardId: string, programId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
33
33
|
createCard(request: CreateBankAccountCardRequest): Promise<FiadoApiResponse<CreateBankAccountCardResponse>>;
|
|
34
34
|
replaceCard(externalCardId: string, request: ReplaceBankAccountCardRequest): Promise<FiadoApiResponse<ReplaceBankAccountCardResponse>>;
|
|
@@ -77,8 +77,8 @@ let CentralPaymentsConnectorApi = class CentralPaymentsConnectorApi {
|
|
|
77
77
|
const url = `${this.baseUrl}/cards/${externalCardId}/balance`;
|
|
78
78
|
return await this.httpRequest.get(url);
|
|
79
79
|
}
|
|
80
|
-
async updateCard(
|
|
81
|
-
const url = `${this.baseUrl}/cards/${
|
|
80
|
+
async updateCard(request) {
|
|
81
|
+
const url = `${this.baseUrl}/cards/${request.cardId}`;
|
|
82
82
|
return await this.httpRequest.put(url, request);
|
|
83
83
|
}
|
|
84
84
|
async updateCardProgram(externalCardId, programId) {
|
|
@@ -21,7 +21,7 @@ export interface ICentralPaymentsConnectorApi {
|
|
|
21
21
|
getCardSensitiveInformation(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountSensitiveInformationResponse>>;
|
|
22
22
|
activateCard(request: ActivateBankAccountCardRequest): Promise<FiadoApiResponse<ActivateBankAccountCardResponse>>;
|
|
23
23
|
getCardBalance(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountCardBalanceResponse>>;
|
|
24
|
-
updateCard(
|
|
24
|
+
updateCard(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>>;
|
|
25
25
|
updateCardProgram(externalCardId: string, programId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
26
26
|
createCard(request: CreateBankAccountCardRequest): Promise<FiadoApiResponse<CreateBankAccountCardResponse>>;
|
|
27
27
|
replaceCard(externalCardId: string, request: ReplaceBankAccountCardRequest): Promise<FiadoApiResponse<ReplaceBankAccountCardResponse>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
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",
|
|
@@ -123,8 +123,8 @@ export class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi
|
|
|
123
123
|
return await this.httpRequest.get(url);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
async updateCard(
|
|
127
|
-
const url = `${this.baseUrl}/cards/${
|
|
126
|
+
async updateCard(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>> {
|
|
127
|
+
const url = `${this.baseUrl}/cards/${request.cardId}`;
|
|
128
128
|
return await this.httpRequest.put(url, request);
|
|
129
129
|
}
|
|
130
130
|
|
|
@@ -66,7 +66,7 @@ export interface ICentralPaymentsConnectorApi {
|
|
|
66
66
|
|
|
67
67
|
getCardBalance(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountCardBalanceResponse>>;
|
|
68
68
|
|
|
69
|
-
updateCard(
|
|
69
|
+
updateCard(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>>;
|
|
70
70
|
|
|
71
71
|
updateCardProgram(externalCardId: string, programId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
72
72
|
|