@fiado/api-invoker 1.4.3 → 1.4.5

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.
@@ -26,7 +26,7 @@ let AuthenticationApi = class AuthenticationApi {
26
26
  async deleteAuthSessionByDirectoryId(directoryId) {
27
27
  const url = `${process.env.AUTH_LAMBDA_URL}`;
28
28
  const operation = "deleteAuthSessionByDirectoryId";
29
- return await this.httpRequest.delete(url, { directoryId }, { 'operationName': operation });
29
+ return await this.httpRequest.post(url, { directoryId }, { 'operationName': operation });
30
30
  }
31
31
  };
32
32
  exports.AuthenticationApi = AuthenticationApi;
@@ -38,7 +38,7 @@ let DirectoryApi = class DirectoryApi {
38
38
  const body = {
39
39
  directoryId,
40
40
  };
41
- return await this.httpRequest.delete(`${url}`, body, { 'operationName': operationName });
41
+ return await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
42
42
  }
43
43
  async validateSecretNumber(directoryId, secretNumber) {
44
44
  const url = `${this.baseUrl}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
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",
@@ -19,6 +19,6 @@ export class AuthenticationApi implements IAuthenticationApi {
19
19
  const url = `${process.env.AUTH_LAMBDA_URL}`;
20
20
  const operation = "deleteAuthSessionByDirectoryId";
21
21
 
22
- return await this.httpRequest.delete(url, {directoryId}, { 'operationName': operation });
22
+ return await this.httpRequest.post(url, {directoryId}, { 'operationName': operation });
23
23
  }
24
24
  }
@@ -37,7 +37,7 @@ export class DirectoryApi implements IDirectoryApi {
37
37
  directoryId,
38
38
  }
39
39
 
40
- return await this.httpRequest.delete(`${url}`, body, { 'operationName': operationName });
40
+ return await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
41
41
  }
42
42
 
43
43