@fiado/api-invoker 1.1.0 → 1.1.1
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,6 @@ export declare class DirectoryApi implements IDirectoryApi {
|
|
|
12
12
|
getByOwnerDirectoryId(ownerDirectoryId: string): Promise<any>;
|
|
13
13
|
getByPhoneNumber(phoneNumber: string): Promise<any>;
|
|
14
14
|
addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
15
|
+
updateOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
15
16
|
updateUserProfile(directoryId: string, profile: Profile): Promise<void>;
|
|
16
17
|
}
|
|
@@ -72,6 +72,15 @@ let DirectoryApi = class DirectoryApi {
|
|
|
72
72
|
};
|
|
73
73
|
return await this.httpRequest.post(`${url}`, data, { 'operationName': operationName });
|
|
74
74
|
}
|
|
75
|
+
async updateOwnerDirectoryId(directoryId, newOwnerDirectoryId) {
|
|
76
|
+
const url = `${this.baseUrl}`;
|
|
77
|
+
const operationName = "updateOwnerDirectoryId";
|
|
78
|
+
const data = {
|
|
79
|
+
directoryId: directoryId,
|
|
80
|
+
ownerDirectoryId: newOwnerDirectoryId
|
|
81
|
+
};
|
|
82
|
+
return await this.httpRequest.post(`${url}`, data, { 'operationName': operationName });
|
|
83
|
+
}
|
|
75
84
|
async updateUserProfile(directoryId, profile) {
|
|
76
85
|
const url = `${this.baseUrl}`;
|
|
77
86
|
const operationName = "updateUserProfile";
|
|
@@ -47,4 +47,5 @@ export interface IDirectoryApi {
|
|
|
47
47
|
getByPhoneNumber(phoneNumber: string): Promise<any>;
|
|
48
48
|
addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
49
49
|
updateUserProfile(directoryId: string, profile: Profile): Promise<void>;
|
|
50
|
+
updateOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
|
|
50
51
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
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",
|
|
@@ -86,6 +86,19 @@ export class DirectoryApi implements IDirectoryApi {
|
|
|
86
86
|
return await this.httpRequest.post(`${url}`, data, { 'operationName': operationName });
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
public async updateOwnerDirectoryId(directoryId: string, newOwnerDirectoryId): Promise<any> {
|
|
90
|
+
|
|
91
|
+
const url = `${this.baseUrl}`;
|
|
92
|
+
const operationName = "updateOwnerDirectoryId";
|
|
93
|
+
|
|
94
|
+
const data = {
|
|
95
|
+
directoryId: directoryId,
|
|
96
|
+
ownerDirectoryId: newOwnerDirectoryId
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return await this.httpRequest.post(`${url}`, data, { 'operationName': operationName });
|
|
100
|
+
}
|
|
101
|
+
|
|
89
102
|
public async updateUserProfile(directoryId: string, profile: Profile): Promise<void> {
|
|
90
103
|
|
|
91
104
|
const url = `${this.baseUrl}`;
|