@fiado/api-invoker 3.0.45 → 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.
@@ -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);
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.46",
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);