@fiado/api-invoker 3.3.3 → 3.3.4

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.
@@ -23,11 +23,11 @@ let ContractBusinessApi = class ContractBusinessApi {
23
23
  return await this.httpRequest.post(`${this.baseUrl}/sign/${documentType}`, body);
24
24
  }
25
25
  async listSignedByDirectory(directoryId, enterprise = "FIADOSA") {
26
- const url = `${this.baseUrl}/backoffice/directories/${directoryId}/signed-documents?enterprise=${encodeURIComponent(enterprise)}`;
26
+ const url = `${this.baseUrl}/directories/${directoryId}/signed-documents?enterprise=${encodeURIComponent(enterprise)}`;
27
27
  return await this.httpRequest.get(url);
28
28
  }
29
29
  async getContractPdfUrl(contractId, partnerId, category = "CREDITS") {
30
- const url = `${this.baseUrl}/backoffice/contracts/${contractId}/pdf?partnerId=${encodeURIComponent(partnerId)}&category=${encodeURIComponent(category)}`;
30
+ const url = `${this.baseUrl}/contracts/${contractId}/pdf?partnerId=${encodeURIComponent(partnerId)}&category=${encodeURIComponent(category)}`;
31
31
  return await this.httpRequest.get(url);
32
32
  }
33
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
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",
@@ -25,12 +25,12 @@ export default class ContractBusinessApi implements IContractBusinessApi {
25
25
  }
26
26
 
27
27
  async listSignedByDirectory(directoryId: string, enterprise: string = "FIADOSA"): Promise<any> {
28
- const url = `${this.baseUrl}/backoffice/directories/${directoryId}/signed-documents?enterprise=${encodeURIComponent(enterprise)}`;
28
+ const url = `${this.baseUrl}/directories/${directoryId}/signed-documents?enterprise=${encodeURIComponent(enterprise)}`;
29
29
  return await this.httpRequest.get(url);
30
30
  }
31
31
 
32
32
  async getContractPdfUrl(contractId: string, partnerId: string, category: string = "CREDITS"): Promise<any> {
33
- const url = `${this.baseUrl}/backoffice/contracts/${contractId}/pdf?partnerId=${encodeURIComponent(partnerId)}&category=${encodeURIComponent(category)}`;
33
+ const url = `${this.baseUrl}/contracts/${contractId}/pdf?partnerId=${encodeURIComponent(partnerId)}&category=${encodeURIComponent(category)}`;
34
34
  return await this.httpRequest.get(url);
35
35
  }
36
36
  }