@fiado/api-invoker 1.2.73 → 1.2.74
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 -0
- package/bin/centralPayments/CentralPaymentsConnectorApi.js +5 -1
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +1 -0
- package/package.json +1 -1
- package/src/centralPayments/CentralPaymentsConnectorApi.ts +6 -1
- package/src/centralPayments/interfaces/ICentralPaymentsConnectorApi.ts +4 -1
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.d.ts +0 -46
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.js +0 -2
|
@@ -31,6 +31,7 @@ export declare class CentralPaymentsConnectorApi implements ICentralPaymentsConn
|
|
|
31
31
|
createSecondaryCard(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
32
32
|
getCardsByUserId(externalUserId: string, includeSecondary?: boolean): Promise<FiadoApiResponse<GetBankAccountCardResponse[]>>;
|
|
33
33
|
getAccountsByUserId(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountResponse[]>>;
|
|
34
|
+
getAccountByCardId(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountResponse>>;
|
|
34
35
|
generateCardsInBatch(request: CardBatchRequest): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
35
36
|
getCardBatch(batchId: string): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
36
37
|
deleteCardBatch(batchId: string): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
@@ -99,7 +99,11 @@ let CentralPaymentsConnectorApi = class CentralPaymentsConnectorApi {
|
|
|
99
99
|
return await this.httpRequest.get(`${url}${param ?? ""}`);
|
|
100
100
|
}
|
|
101
101
|
async getAccountsByUserId(externalUserId) {
|
|
102
|
-
const url = `${this.baseUrl}/cardholders/${externalUserId}
|
|
102
|
+
const url = `${this.baseUrl}/accounts/cardholders/${externalUserId}`;
|
|
103
|
+
return await this.httpRequest.get(url);
|
|
104
|
+
}
|
|
105
|
+
async getAccountByCardId(externalCardId) {
|
|
106
|
+
const url = `${this.baseUrl}/accounts/cards/${externalCardId}`;
|
|
103
107
|
return await this.httpRequest.get(url);
|
|
104
108
|
}
|
|
105
109
|
async generateCardsInBatch(request) {
|
|
@@ -24,6 +24,7 @@ export interface ICentralPaymentsConnectorApi {
|
|
|
24
24
|
createSecondaryCard(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
25
25
|
getCardsByUserId(externalUserId: string, includeSecondary?: boolean): Promise<FiadoApiResponse<GetBankAccountCardResponse[]>>;
|
|
26
26
|
getAccountsByUserId(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountResponse[]>>;
|
|
27
|
+
getAccountByCardId(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountResponse>>;
|
|
27
28
|
generateCardsInBatch(request: CardBatchRequest): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
28
29
|
getCardBatch(batchId: string): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
29
30
|
deleteCardBatch(batchId: string): Promise<FiadoApiResponse<CardBatchResponse>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.74",
|
|
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",
|
|
@@ -141,7 +141,12 @@ export class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
async getAccountsByUserId(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountResponse[]>> {
|
|
144
|
-
const url = `${this.baseUrl}/cardholders/${externalUserId}
|
|
144
|
+
const url = `${this.baseUrl}/accounts/cardholders/${externalUserId}`;
|
|
145
|
+
return await this.httpRequest.get(url);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
async getAccountByCardId(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountResponse>> {
|
|
149
|
+
const url = `${this.baseUrl}/accounts/cards/${externalCardId}`;
|
|
145
150
|
return await this.httpRequest.get(url);
|
|
146
151
|
}
|
|
147
152
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateBankAccountUserRequest,
|
|
3
|
-
CreateBankAccountUserResponse,
|
|
3
|
+
CreateBankAccountUserResponse,
|
|
4
|
+
GetBankAccountResponse,
|
|
4
5
|
GetBankAccountUserResponse,
|
|
5
6
|
UpdateBankAccountUserRequest
|
|
6
7
|
} from "@fiado/type-kit/bin/account";
|
|
@@ -68,6 +69,8 @@ export interface ICentralPaymentsConnectorApi {
|
|
|
68
69
|
|
|
69
70
|
getAccountsByUserId(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountResponse[]>>;
|
|
70
71
|
|
|
72
|
+
getAccountByCardId(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountResponse>>;
|
|
73
|
+
|
|
71
74
|
generateCardsInBatch(request: CardBatchRequest): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
72
75
|
|
|
73
76
|
getCardBatch(batchId: string): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
@@ -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
|
-
}
|