@fiado/api-invoker 1.0.92 → 1.0.94
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 DirectoryApi implements IDirectoryApi {
|
|
|
10
10
|
updateScope(directoryId: string, scope: string[]): Promise<void>;
|
|
11
11
|
getByOwnerDirectoryId(ownerDirectoryId: string): Promise<any>;
|
|
12
12
|
getByPhoneNumber(phoneNumber: string): Promise<any>;
|
|
13
|
+
addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
13
14
|
}
|
|
@@ -63,6 +63,15 @@ let DirectoryApi = class DirectoryApi {
|
|
|
63
63
|
const operationName = "getUserInfoByParams";
|
|
64
64
|
return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
|
|
65
65
|
}
|
|
66
|
+
async addOwnerDirectoryId(directoryId, newOwnerDirectoryId) {
|
|
67
|
+
const url = `${this.baseUrl}`;
|
|
68
|
+
const operationName = "addOwnerDirectoryId";
|
|
69
|
+
const data = {
|
|
70
|
+
directoryId: directoryId,
|
|
71
|
+
ownerDirectoryId: newOwnerDirectoryId
|
|
72
|
+
};
|
|
73
|
+
return await this.httpRequest.delete(`${url}`, data, { 'operationName': operationName });
|
|
74
|
+
}
|
|
66
75
|
};
|
|
67
76
|
exports.DirectoryApi = DirectoryApi;
|
|
68
77
|
exports.DirectoryApi = DirectoryApi = __decorate([
|
|
@@ -44,4 +44,9 @@ export interface IDirectoryApi {
|
|
|
44
44
|
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
45
45
|
*/
|
|
46
46
|
getByPhoneNumber(phoneNumber: string): Promise<any>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @param pocketId
|
|
50
|
+
*/
|
|
51
|
+
addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
47
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.94",
|
|
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",
|
|
@@ -71,4 +71,17 @@ export class DirectoryApi implements IDirectoryApi {
|
|
|
71
71
|
|
|
72
72
|
return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
public async addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId): Promise<any> {
|
|
76
|
+
|
|
77
|
+
const url = `${this.baseUrl}`;
|
|
78
|
+
const operationName = "addOwnerDirectoryId";
|
|
79
|
+
|
|
80
|
+
const data = {
|
|
81
|
+
directoryId: directoryId,
|
|
82
|
+
ownerDirectoryId: newOwnerDirectoryId
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return await this.httpRequest.delete(`${url}`, data, { 'operationName': operationName });
|
|
86
|
+
}
|
|
74
87
|
}
|
|
@@ -50,4 +50,11 @@ export interface IDirectoryApi {
|
|
|
50
50
|
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
51
51
|
*/
|
|
52
52
|
getByPhoneNumber(phoneNumber: string): Promise<any>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @param pocketId
|
|
58
|
+
*/
|
|
59
|
+
addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId): Promise<any>
|
|
53
60
|
}
|