@fiado/api-invoker 1.2.15 → 1.2.16
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.
|
@@ -16,4 +16,5 @@ export declare class DirectoryApi implements IDirectoryApi {
|
|
|
16
16
|
updateOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
17
17
|
updateUserProfile(directoryId: string, profile: Profile): Promise<void>;
|
|
18
18
|
updateStatus(directoryId: string, status: Status): Promise<void>;
|
|
19
|
+
getByPeopleId(peopleId: string): Promise<any>;
|
|
19
20
|
}
|
|
@@ -100,6 +100,11 @@ let DirectoryApi = class DirectoryApi {
|
|
|
100
100
|
};
|
|
101
101
|
await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
|
|
102
102
|
}
|
|
103
|
+
async getByPeopleId(peopleId) {
|
|
104
|
+
const url = `${this.baseUrl}?peopleId=${peopleId}`;
|
|
105
|
+
const operationName = "getUserInfoByParams";
|
|
106
|
+
return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
|
|
107
|
+
}
|
|
103
108
|
};
|
|
104
109
|
exports.DirectoryApi = DirectoryApi;
|
|
105
110
|
exports.DirectoryApi = DirectoryApi = __decorate([
|
|
@@ -50,4 +50,5 @@ export interface IDirectoryApi {
|
|
|
50
50
|
updateUserProfile(directoryId: string, profile: Profile): Promise<void>;
|
|
51
51
|
updateOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
52
52
|
updateStatus(directoryId: string, status: Status): Promise<void>;
|
|
53
|
+
getByPeopleId(peopleId: string): Promise<any>;
|
|
53
54
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a
|
|
3
|
+
"version": "1.2.16",
|
|
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",
|
|
7
7
|
"scripts": {
|
|
@@ -125,4 +125,12 @@ export class DirectoryApi implements IDirectoryApi {
|
|
|
125
125
|
|
|
126
126
|
await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
|
|
127
127
|
}
|
|
128
|
+
|
|
129
|
+
public async getByPeopleId(peopleId: string): Promise<any> {
|
|
130
|
+
|
|
131
|
+
const url = `${this.baseUrl}?peopleId=${peopleId}`;
|
|
132
|
+
const operationName = "getUserInfoByParams";
|
|
133
|
+
|
|
134
|
+
return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
|
|
135
|
+
}
|
|
128
136
|
}
|