@fiado/api-invoker 3.0.43 → 3.0.45
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/cognitoConnector/interfaces/ICognitoConnectorApiV2.d.ts +46 -0
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.js +2 -0
- package/bin/estafeta/EstafetaApi.d.ts +0 -0
- package/bin/estafeta/EstafetaApi.js +0 -0
- package/bin/identity/IdentityApi.d.ts +1 -0
- package/bin/identity/IdentityApi.js +4 -0
- package/bin/identity/interfaces/IIdentityApi.d.ts +7 -0
- package/bin/pomelo/api/PomeloApi.d.ts +1 -1
- package/bin/pomelo/api/PomeloApi.js +1 -1
- package/bin/pomelo/api/interfaces/IPomeloApi.d.ts +1 -1
- package/bin/report-processor-business/api/IReportProcessorBusiness.d.ts +3 -0
- package/bin/report-processor-business/api/IReportProcessorBusiness.js +2 -0
- package/package.json +1 -4
- package/src/identity/IdentityApi.ts +5 -0
- package/src/identity/interfaces/IIdentityApi.ts +8 -0
- package/src/pomelo/api/PomeloApi.ts +1 -1
- package/src/pomelo/api/interfaces/IPomeloApi.ts +1 -1
|
@@ -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
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -12,4 +12,5 @@ export declare class IdentityApi implements IIdentityApi {
|
|
|
12
12
|
privateUploadDocument(directoryId: string, document: UploadDocumentRequest): Promise<any>;
|
|
13
13
|
getPeopleByFullName(fullName: string): Promise<any>;
|
|
14
14
|
privateGetDocumentsUrlSigned(directoryId: string, documentNames: string[]): Promise<any>;
|
|
15
|
+
getExpedienteIdentity(directoryId: string, peopleId: string): Promise<any>;
|
|
15
16
|
}
|
|
@@ -76,6 +76,10 @@ let IdentityApi = class IdentityApi {
|
|
|
76
76
|
const url = `${this.baseUrl}identities/private/people/${directoryId}/documents/signed?${queryParams.join('&')}`;
|
|
77
77
|
return await this.httpRequest.get(url);
|
|
78
78
|
}
|
|
79
|
+
async getExpedienteIdentity(directoryId, peopleId) {
|
|
80
|
+
const url = `${this.baseUrl}identities/private/people/${directoryId}/expediente?peopleId=${encodeURIComponent(peopleId)}`;
|
|
81
|
+
return await this.httpRequest.get(url);
|
|
82
|
+
}
|
|
79
83
|
};
|
|
80
84
|
exports.IdentityApi = IdentityApi;
|
|
81
85
|
exports.IdentityApi = IdentityApi = __decorate([
|
|
@@ -30,4 +30,11 @@ export interface IIdentityApi {
|
|
|
30
30
|
privateUploadDocument(directoryId: string, document: UploadDocumentRequest): Promise<any>;
|
|
31
31
|
getPeopleByFullName(fullName: string): Promise<any>;
|
|
32
32
|
privateGetDocumentsUrlSigned(directoryId: string, documentNames: string[]): Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* P10 Expedientes F2 — Expediente Identidad compuesto.
|
|
35
|
+
* Retorna people (con documents[] OCR) + documentsS3 (con signed URLs).
|
|
36
|
+
* @param directoryId ID de directorio del cliente.
|
|
37
|
+
* @param peopleId ID de people asociado al directorio.
|
|
38
|
+
*/
|
|
39
|
+
getExpedienteIdentity(directoryId: string, peopleId: string): Promise<any>;
|
|
33
40
|
}
|
|
@@ -10,7 +10,7 @@ export default class PomeloApi implements IPomeloApi {
|
|
|
10
10
|
getUserById(externalUserId: string): Promise<any>;
|
|
11
11
|
updateUser(object: UpdateBankAccountUserRequest): Promise<any>;
|
|
12
12
|
getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
|
|
13
|
-
|
|
13
|
+
getCardByIdExternal(externalCardId: string): Promise<any>;
|
|
14
14
|
getCardsById(externalCardId: string): Promise<any>;
|
|
15
15
|
getCardsByUserId(externalUserId: string): Promise<any>;
|
|
16
16
|
createCard(object: CreateBankAccountRequest): Promise<any>;
|
|
@@ -36,7 +36,7 @@ let PomeloApi = class PomeloApi {
|
|
|
36
36
|
const url = `${this.baseUrl}cards/${externalCardId}/sensitive?externalUserId=${externalUserId}`;
|
|
37
37
|
return await this.httpRequest.get(url);
|
|
38
38
|
}
|
|
39
|
-
async
|
|
39
|
+
async getCardByIdExternal(externalCardId) {
|
|
40
40
|
const url = `${this.baseUrl}cards/${externalCardId}/detail`;
|
|
41
41
|
return await this.httpRequest.get(url);
|
|
42
42
|
}
|
|
@@ -5,7 +5,7 @@ export interface IPomeloApi {
|
|
|
5
5
|
getUserById(externalUserId: string): Promise<any>;
|
|
6
6
|
createUser(request: CreateBankAccountUserRequest): Promise<any>;
|
|
7
7
|
getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
|
|
8
|
-
|
|
8
|
+
getCardByIdExternal(externalCardId: string): Promise<any>;
|
|
9
9
|
getCardsById(externalCardId: string): Promise<any>;
|
|
10
10
|
getCardsByUserId(externalUserId: string): Promise<any>;
|
|
11
11
|
createCard(object: CreateBankAccountRequest): Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
|
|
4
|
-
"version": "3.0.43",
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"version": "3.0.45",
|
|
7
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
|
|
8
5
|
"main": "bin/index.js",
|
|
9
6
|
"types": "bin/index.d.ts",
|
|
@@ -88,4 +88,9 @@ export class IdentityApi implements IIdentityApi {
|
|
|
88
88
|
const url = `${this.baseUrl}identities/private/people/${directoryId}/documents/signed?${queryParams.join('&')}`;
|
|
89
89
|
return await this.httpRequest.get(url);
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
async getExpedienteIdentity(directoryId: string, peopleId: string): Promise<any> {
|
|
93
|
+
const url = `${this.baseUrl}identities/private/people/${directoryId}/expediente?peopleId=${encodeURIComponent(peopleId)}`;
|
|
94
|
+
return await this.httpRequest.get(url);
|
|
95
|
+
}
|
|
91
96
|
}
|
|
@@ -37,4 +37,12 @@ export interface IIdentityApi {
|
|
|
37
37
|
getPeopleByFullName(fullName: string): Promise<any>
|
|
38
38
|
|
|
39
39
|
privateGetDocumentsUrlSigned(directoryId: string, documentNames:string[]): Promise<any>
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* P10 Expedientes F2 — Expediente Identidad compuesto.
|
|
43
|
+
* Retorna people (con documents[] OCR) + documentsS3 (con signed URLs).
|
|
44
|
+
* @param directoryId ID de directorio del cliente.
|
|
45
|
+
* @param peopleId ID de people asociado al directorio.
|
|
46
|
+
*/
|
|
47
|
+
getExpedienteIdentity(directoryId: string, peopleId: string): Promise<any>
|
|
40
48
|
}
|
|
@@ -35,7 +35,7 @@ export default class PomeloApi implements IPomeloApi {
|
|
|
35
35
|
return await this.httpRequest.get(url);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
public async
|
|
38
|
+
public async getCardByIdExternal(externalCardId: string): Promise<any> {
|
|
39
39
|
const url: string = `${this.baseUrl}cards/${externalCardId}/detail`;
|
|
40
40
|
return await this.httpRequest.get(url);
|
|
41
41
|
}
|
|
@@ -10,7 +10,7 @@ export interface IPomeloApi {
|
|
|
10
10
|
|
|
11
11
|
// //Card
|
|
12
12
|
getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>
|
|
13
|
-
|
|
13
|
+
getCardByIdExternal(externalCardId: string): Promise<any>
|
|
14
14
|
getCardsById(externalCardId: string): Promise<any>
|
|
15
15
|
getCardsByUserId(externalUserId: string): Promise<any>
|
|
16
16
|
createCard(object: CreateBankAccountRequest): Promise<any>
|