@fiado/api-invoker 3.0.31 → 3.0.32

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.
@@ -90,6 +90,8 @@ const CreditReconciliationPublisher_1 = __importDefault(require("./credit-engine
90
90
  const CreditLienCollectionPublisher_1 = __importDefault(require("./credit-engine/queue/CreditLienCollectionPublisher"));
91
91
  const PlatformErrorEventsPublisher_1 = __importDefault(require("./platform-error-events/queue/PlatformErrorEventsPublisher"));
92
92
  const TeamsNotificationPublisher_1 = __importDefault(require("./teams-connector/queue/TeamsNotificationPublisher"));
93
+ // Legal document
94
+ const legalDocument_1 = require("./legalDocument");
93
95
  exports.apiInvokerBindings = new inversify_1.ContainerModule((bind) => {
94
96
  // UTILS bindings
95
97
  bind("InvokerUtils").to(InvokerUtils_1.InvokerUtils);
@@ -181,4 +183,6 @@ exports.apiInvokerBindings = new inversify_1.ContainerModule((bind) => {
181
183
  bind("IPlatformErrorEventsPublisher").to(PlatformErrorEventsPublisher_1.default);
182
184
  // Teams connector - SQS publisher
183
185
  bind("ITeamsNotificationPublisher").to(TeamsNotificationPublisher_1.default);
186
+ // Legal document
187
+ bind("ILegalDocumentApi").to(legalDocument_1.LegalDocumentApi);
184
188
  });
@@ -5,4 +5,5 @@ export declare class LegalDocumentApi implements ILegalDocumentApi {
5
5
  private readonly baseUrl;
6
6
  constructor(httpRequest: IHttpRequest);
7
7
  getPendingSign(directoryId: string): Promise<any>;
8
+ getDirectoryAcceptanceByDirectoryId(directoryId: string): Promise<any>;
8
9
  }
@@ -26,9 +26,17 @@ let LegalDocumentApi = class LegalDocumentApi {
26
26
  const url = `${this.baseUrl}documents/directories/directoryId=${directoryId}`;
27
27
  return await this.httpRequest.get(url);
28
28
  }
29
+ async getDirectoryAcceptanceByDirectoryId(directoryId) {
30
+ if (!directoryId) {
31
+ throw new Error("Directory ID is required.");
32
+ }
33
+ const url = `${this.baseUrl}directories/${directoryId}`;
34
+ return await this.httpRequest.get(url);
35
+ }
29
36
  };
30
37
  exports.LegalDocumentApi = LegalDocumentApi;
31
38
  exports.LegalDocumentApi = LegalDocumentApi = __decorate([
39
+ (0, inversify_1.injectable)(),
32
40
  __param(0, (0, inversify_1.inject)("IHttpRequest")),
33
41
  __metadata("design:paramtypes", [Object])
34
42
  ], LegalDocumentApi);
@@ -1,3 +1,4 @@
1
1
  export interface ILegalDocumentApi {
2
2
  getPendingSign(directoryId: string): Promise<any>;
3
+ getDirectoryAcceptanceByDirectoryId(directoryId: string): Promise<any>;
3
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "3.0.31",
3
+ "version": "3.0.32",
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",