@fiado/api-invoker 3.0.45 → 3.0.47

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.
@@ -12,5 +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 */
15
17
  getExpedienteIdentity(directoryId: string, peopleId: string): Promise<any>;
16
18
  }
@@ -76,6 +76,11 @@ 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 */
79
84
  async getExpedienteIdentity(directoryId, peopleId) {
80
85
  const url = `${this.baseUrl}identities/private/people/${directoryId}/expediente?peopleId=${encodeURIComponent(peopleId)}`;
81
86
  return await this.httpRequest.get(url);
@@ -31,10 +31,13 @@ export interface IIdentityApi {
31
31
  getPeopleByFullName(fullName: string): Promise<any>;
32
32
  privateGetDocumentsUrlSigned(directoryId: string, documentNames: string[]): Promise<any>;
33
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.
34
+ * Lista keys de documentos del usuario en S3 (primitivo).
35
+ * Retorna { directoryId, keys: string[] }.
36
+ */
37
+ getUserDocuments(directoryId: string): Promise<any>;
38
+ /**
39
+ * @deprecated P10 F2 compuesto — usar getPeopleByIds (incluye ARC) +
40
+ * getUserDocuments + privateGetDocumentsUrlSigned. Se elimina tras migración.
38
41
  */
39
42
  getExpedienteIdentity(directoryId: string, peopleId: string): Promise<any>;
40
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "3.0.45",
3
+ "version": "3.0.47",
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",
@@ -89,6 +89,12 @@ export class IdentityApi implements IIdentityApi {
89
89
  return await this.httpRequest.get(url);
90
90
  }
91
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 */
92
98
  async getExpedienteIdentity(directoryId: string, peopleId: string): Promise<any> {
93
99
  const url = `${this.baseUrl}identities/private/people/${directoryId}/expediente?peopleId=${encodeURIComponent(peopleId)}`;
94
100
  return await this.httpRequest.get(url);
@@ -39,10 +39,14 @@ export interface IIdentityApi {
39
39
  privateGetDocumentsUrlSigned(directoryId: string, documentNames:string[]): Promise<any>
40
40
 
41
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.
42
+ * Lista keys de documentos del usuario en S3 (primitivo).
43
+ * Retorna { directoryId, keys: string[] }.
44
+ */
45
+ getUserDocuments(directoryId: string): Promise<any>
46
+
47
+ /**
48
+ * @deprecated P10 F2 compuesto — usar getPeopleByIds (incluye ARC) +
49
+ * getUserDocuments + privateGetDocumentsUrlSigned. Se elimina tras migración.
46
50
  */
47
51
  getExpedienteIdentity(directoryId: string, peopleId: string): Promise<any>
48
52
  }