@fiado/api-invoker 1.5.6 → 1.5.7

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.
@@ -65,6 +65,7 @@ const OnboardingApi_1 = __importDefault(require("./onboarding/api/OnboardingApi"
65
65
  const OnboardingBusinessApi_1 = __importDefault(require("./onboarding-business/api/OnboardingBusinessApi"));
66
66
  const payroll_business_1 = require("./payroll-business");
67
67
  const referral_business_1 = require("./referral-business");
68
+ const event_history_business_1 = require("./event-history-business");
68
69
  exports.apiInvokerBindings = new inversify_1.ContainerModule((bind) => {
69
70
  // UTILS bindings
70
71
  bind("InvokerUtils").to(InvokerUtils_1.InvokerUtils);
@@ -128,4 +129,5 @@ exports.apiInvokerBindings = new inversify_1.ContainerModule((bind) => {
128
129
  bind("IOnboardingBusinessApi").to(OnboardingBusinessApi_1.default);
129
130
  bind("IPayrollApi").to(payroll_business_1.PayrollApi);
130
131
  bind("IReferralBusinessApi").to(referral_business_1.ReferralBusinessApi);
132
+ bind("IEventHistoryApi").to(event_history_business_1.EventHistoryApi);
131
133
  });
@@ -36,7 +36,8 @@ let EventHistoryApi = class EventHistoryApi {
36
36
  */
37
37
  async findDirectoryUserEventsByDirectoryId(directoryId, periodDate, index, pageSize) {
38
38
  const url = `${this.baseUrl}directoryuser/events/search?directoryId=${directoryId}&periodDate=${periodDate}&index=${index}&pageSize=${pageSize}`;
39
- return await this.httpRequest.get(`${url}`);
39
+ const operationName = "findDirectoryUserEventsByDirectoryId";
40
+ return await this.httpRequest.get(`${url}`, null, { 'operationName': operationName });
40
41
  }
41
42
  /**
42
43
  * Crea un evento de cambio asociado a un Directorio o Usuario.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
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",
@@ -83,6 +83,7 @@ import OnboardingBusinessApi from "./onboarding-business/api/OnboardingBusinessA
83
83
  import { IOnboardingBusinessApi } from "./onboarding-business";
84
84
  import { IPayrollApi, PayrollApi } from "./payroll-business";
85
85
  import { IReferralBusinessApi, ReferralBusinessApi } from "./referral-business";
86
+ import { EventHistoryApi, IEventHistoryApi } from "./event-history-business";
86
87
 
87
88
  export const apiInvokerBindings = new ContainerModule((bind: interfaces.Bind) => {
88
89
  // UTILS bindings
@@ -148,4 +149,5 @@ export const apiInvokerBindings = new ContainerModule((bind: interfaces.Bind) =>
148
149
  bind<IOnboardingBusinessApi>("IOnboardingBusinessApi").to(OnboardingBusinessApi);
149
150
  bind<IPayrollApi>("IPayrollApi").to(PayrollApi);
150
151
  bind<IReferralBusinessApi>("IReferralBusinessApi").to(ReferralBusinessApi);
152
+ bind<IEventHistoryApi>("IEventHistoryApi").to(EventHistoryApi);
151
153
  });
@@ -27,8 +27,9 @@ export class EventHistoryApi implements IEventHistoryApi {
27
27
  */
28
28
  public async findDirectoryUserEventsByDirectoryId(directoryId: string, periodDate: string, index: string, pageSize: number): Promise<any> {
29
29
 
30
- const url = `${this.baseUrl}directoryuser/events/search?directoryId=${directoryId}&periodDate=${periodDate}&index=${index}&pageSize=${pageSize}`;
31
- return await this.httpRequest.get(`${url}`);
30
+ const url = `${this.baseUrl}directoryuser/events/search?directoryId=${directoryId}&periodDate=${periodDate}&index=${index}&pageSize=${pageSize}`;
31
+ const operationName = "findDirectoryUserEventsByDirectoryId";
32
+ return await this.httpRequest.get(`${url}`, null, { 'operationName': operationName });
32
33
  }
33
34
 
34
35
  /**