@fiado/api-invoker 1.2.14 → 1.2.15
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.
|
@@ -10,4 +10,5 @@ export declare class IdentityApi implements IIdentityApi {
|
|
|
10
10
|
updatePeopleById(id: string, data: PeopleUpdateRequest): Promise<void>;
|
|
11
11
|
getProfilePicture(directoryId: string): Promise<any>;
|
|
12
12
|
privateUploadDocument(directoryId: string, document: UploadDocumentRequest): Promise<any>;
|
|
13
|
+
getPeopleByFullName(fullName: string): Promise<any>;
|
|
13
14
|
}
|
|
@@ -61,6 +61,13 @@ let IdentityApi = class IdentityApi {
|
|
|
61
61
|
const url = `${this.baseUrl}/documents/${directoryId}/upload`;
|
|
62
62
|
return await this.httpRequest.post(url, document);
|
|
63
63
|
}
|
|
64
|
+
async getPeopleByFullName(fullName) {
|
|
65
|
+
if (!fullName) {
|
|
66
|
+
throw new Error("Full name is required.");
|
|
67
|
+
}
|
|
68
|
+
const url = `${this.baseUrl}identities/people/search?fullName=${fullName}`;
|
|
69
|
+
return await this.httpRequest.get(url);
|
|
70
|
+
}
|
|
64
71
|
};
|
|
65
72
|
exports.IdentityApi = IdentityApi;
|
|
66
73
|
exports.IdentityApi = IdentityApi = __decorate([
|
|
@@ -28,4 +28,5 @@ export interface IIdentityApi {
|
|
|
28
28
|
getProfilePicture(directoryId: string): Promise<any>;
|
|
29
29
|
getPeopleByCurp(curp: string): Promise<any>;
|
|
30
30
|
privateUploadDocument(directoryId: string, document: UploadDocumentRequest): Promise<any>;
|
|
31
|
+
getPeopleByFullName(fullName: string): Promise<any>;
|
|
31
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a traves de invocaciones http",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -68,4 +68,12 @@ export class IdentityApi implements IIdentityApi {
|
|
|
68
68
|
const url = `${this.baseUrl}/documents/${directoryId}/upload`;
|
|
69
69
|
return await this.httpRequest.post(url, document);
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
async getPeopleByFullName(fullName: string): Promise<any> {
|
|
73
|
+
if (!fullName) {
|
|
74
|
+
throw new Error("Full name is required.")
|
|
75
|
+
}
|
|
76
|
+
const url = `${this.baseUrl}identities/people/search?fullName=${fullName}`;
|
|
77
|
+
return await this.httpRequest.get(url);
|
|
78
|
+
}
|
|
71
79
|
}
|