@fiado/api-invoker 3.9.0 → 3.10.0

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.
@@ -13,6 +13,7 @@ export default class ContractBusinessApi implements IContractBusinessApi {
13
13
  metadata?: Record<string, unknown>;
14
14
  partnerId?: string;
15
15
  category?: string;
16
+ skipTsa?: boolean;
16
17
  }): Promise<any>;
17
18
  listSignedByDirectory(directoryId: string, enterprise?: string): Promise<any>;
18
19
  getContractPdfUrl(contractId: string, partnerId: string, category?: string): Promise<any>;
@@ -10,6 +10,13 @@ export interface IContractBusinessApi {
10
10
  partnerId?: string;
11
11
  /** Opcional: category (ej: "credito") para el path profundo de template */
12
12
  category?: string;
13
+ /**
14
+ * Opcional. Si `true`, contract-business genera el PDF y lo guarda en S3
15
+ * pero NO aplica la firma digital TSA del banco. El ContractControl row
16
+ * queda con status `"PREVIEW"`. Sirve para mostrarle al cliente el
17
+ * documento antes de aceptar (no vinculante). Default: false.
18
+ */
19
+ skipTsa?: boolean;
13
20
  }): Promise<any>;
14
21
  /**
15
22
  * Lista todos los contratos firmados del directorio (no solo el último por tipo).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
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",
@@ -16,7 +16,7 @@
16
16
  "@fiado/gateway-adapter": "^1.1.50",
17
17
  "@fiado/http-client": "^1.0.7",
18
18
  "@fiado/logger": "^1.0.3",
19
- "@fiado/type-kit": "^3.16.0",
19
+ "@fiado/type-kit": "^3.20.3",
20
20
  "dotenv": "^16.4.7",
21
21
  "i": "^0.3.7",
22
22
  "inversify": "^6.2.2",
@@ -19,6 +19,7 @@ export default class ContractBusinessApi implements IContractBusinessApi {
19
19
  metadata?: Record<string, unknown>;
20
20
  partnerId?: string;
21
21
  category?: string;
22
+ skipTsa?: boolean;
22
23
  }): Promise<any> {
23
24
  const { documentType, ...body } = params;
24
25
  return await this.httpRequest.post(`${this.baseUrl}/sign/${documentType}`, body);
@@ -10,6 +10,13 @@ export interface IContractBusinessApi {
10
10
  partnerId?: string;
11
11
  /** Opcional: category (ej: "credito") para el path profundo de template */
12
12
  category?: string;
13
+ /**
14
+ * Opcional. Si `true`, contract-business genera el PDF y lo guarda en S3
15
+ * pero NO aplica la firma digital TSA del banco. El ContractControl row
16
+ * queda con status `"PREVIEW"`. Sirve para mostrarle al cliente el
17
+ * documento antes de aceptar (no vinculante). Default: false.
18
+ */
19
+ skipTsa?: boolean;
13
20
  }): Promise<any>;
14
21
 
15
22
  /**