@fiado/api-invoker 1.0.93 → 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,5 +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(pocketId: string): Promise<any>;
13
+ addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
14
14
  }
@@ -63,10 +63,14 @@ 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(pocketId) {
67
- const url = `${this.baseUrl}pockets/${pocketId}`;
66
+ async addOwnerDirectoryId(directoryId, newOwnerDirectoryId) {
67
+ const url = `${this.baseUrl}`;
68
68
  const operationName = "addOwnerDirectoryId";
69
- return await this.httpRequest.delete(`${url}`, null, { 'operationName': operationName });
69
+ const data = {
70
+ directoryId: directoryId,
71
+ ownerDirectoryId: newOwnerDirectoryId
72
+ };
73
+ return await this.httpRequest.delete(`${url}`, data, { 'operationName': operationName });
70
74
  }
71
75
  };
72
76
  exports.DirectoryApi = DirectoryApi;
@@ -48,5 +48,5 @@ export interface IDirectoryApi {
48
48
  *
49
49
  * @param pocketId
50
50
  */
51
- addOwnerDirectoryId(pocketId: string): Promise<any>;
51
+ addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.0.93",
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",
@@ -72,11 +72,16 @@ export class DirectoryApi implements IDirectoryApi {
72
72
  return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
73
73
  }
74
74
 
75
- public async addOwnerDirectoryId(pocketId: string): Promise<any> {
75
+ public async addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId): Promise<any> {
76
76
 
77
- const url = `${this.baseUrl}pockets/${pocketId}`;
77
+ const url = `${this.baseUrl}`;
78
78
  const operationName = "addOwnerDirectoryId";
79
79
 
80
- return await this.httpRequest.delete(`${url}`, null, { 'operationName': operationName });
80
+ const data = {
81
+ directoryId: directoryId,
82
+ ownerDirectoryId: newOwnerDirectoryId
83
+ }
84
+
85
+ return await this.httpRequest.delete(`${url}`, data, { 'operationName': operationName });
81
86
  }
82
87
  }
@@ -56,5 +56,5 @@ export interface IDirectoryApi {
56
56
  *
57
57
  * @param pocketId
58
58
  */
59
- addOwnerDirectoryId(pocketId: string): Promise<any>
59
+ addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId): Promise<any>
60
60
  }