@fiado/api-invoker 1.3.97 → 1.3.98
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.
|
@@ -7,7 +7,7 @@ export declare class DirectoryApi implements IDirectoryApi {
|
|
|
7
7
|
private httpRequest;
|
|
8
8
|
private readonly baseUrl;
|
|
9
9
|
constructor(httpRequest: IHttpRequest);
|
|
10
|
-
|
|
10
|
+
getDirectoriesByPeopleId(peopleIds: string[]): Promise<any>;
|
|
11
11
|
deleteDirectory(directoryId: string): Promise<void>;
|
|
12
12
|
validateSecretNumber(directoryId: string, secretNumber: string): Promise<void>;
|
|
13
13
|
getByIds(ids: string[]): Promise<any>;
|
|
@@ -24,7 +24,7 @@ let DirectoryApi = class DirectoryApi {
|
|
|
24
24
|
this.httpRequest = httpRequest;
|
|
25
25
|
this.baseUrl = process.env.DIRECTORY_LAMBDA_URL || "";
|
|
26
26
|
}
|
|
27
|
-
async
|
|
27
|
+
async getDirectoriesByPeopleId(peopleIds) {
|
|
28
28
|
if (peopleIds.length === 0) {
|
|
29
29
|
throw new Error("At least one directory ID is required.");
|
|
30
30
|
}
|
|
@@ -52,4 +52,6 @@ export interface IDirectoryApi {
|
|
|
52
52
|
updateStatus(directoryId: string, status: Status): Promise<void>;
|
|
53
53
|
getByPeopleId(peopleId: string): Promise<any>;
|
|
54
54
|
validateSecretNumber(directoryId: string, secretNumber: string): Promise<void>;
|
|
55
|
+
deleteDirectory(directoryId: string): Promise<void>;
|
|
56
|
+
getDirectoriesByPeopleId(peopleIds: string[]): Promise<any>;
|
|
55
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.98",
|
|
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",
|
|
@@ -16,7 +16,7 @@ export class DirectoryApi implements IDirectoryApi {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
public async
|
|
19
|
+
public async getDirectoriesByPeopleId(peopleIds: string[]): Promise<any> {
|
|
20
20
|
|
|
21
21
|
if (peopleIds.length === 0) {
|
|
22
22
|
throw new Error("At least one directory ID is required.")
|