@fiado/api-invoker 3.0.44 → 3.0.46

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.
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
File without changes
File without changes
@@ -12,4 +12,7 @@ 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
+ getUserDocuments(directoryId: string): Promise<any>;
16
+ /** @deprecated — se elimina tras migración a primitivos */
17
+ getExpedienteIdentity(directoryId: string, peopleId: string): Promise<any>;
15
18
  }
@@ -76,6 +76,15 @@ 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 getUserDocuments(directoryId) {
80
+ const url = `${this.baseUrl}identities/private/people/${directoryId}/documents`;
81
+ return await this.httpRequest.get(url);
82
+ }
83
+ /** @deprecated — se elimina tras migración a primitivos */
84
+ async getExpedienteIdentity(directoryId, peopleId) {
85
+ const url = `${this.baseUrl}identities/private/people/${directoryId}/expediente?peopleId=${encodeURIComponent(peopleId)}`;
86
+ return await this.httpRequest.get(url);
87
+ }
79
88
  };
80
89
  exports.IdentityApi = IdentityApi;
81
90
  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
  }
@@ -0,0 +1,3 @@
1
+ export interface IReportProcessorBusiness {
2
+ processReports(key: string): Promise<void>;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
-
4
- "version": "3.0.44",
5
-
6
-
3
+ "version": "3.0.46",
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,15 @@ 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 getUserDocuments(directoryId: string): Promise<any> {
93
+ const url = `${this.baseUrl}identities/private/people/${directoryId}/documents`;
94
+ return await this.httpRequest.get(url);
95
+ }
96
+
97
+ /** @deprecated — se elimina tras migración a primitivos */
98
+ async getExpedienteIdentity(directoryId: string, peopleId: string): Promise<any> {
99
+ const url = `${this.baseUrl}identities/private/people/${directoryId}/expediente?peopleId=${encodeURIComponent(peopleId)}`;
100
+ return await this.httpRequest.get(url);
101
+ }
91
102
  }
@@ -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
  }