@fiado/api-invoker 1.5.11 → 1.5.13

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.
@@ -24,4 +24,5 @@ export default class OnboardingBusinessApi implements IOnboardingBusinessApi {
24
24
  index?: string;
25
25
  pageSize?: string;
26
26
  }): Promise<any>;
27
+ getBatchByIds(ids: string[]): Promise<any>;
27
28
  }
@@ -90,6 +90,10 @@ let OnboardingBusinessApi = class OnboardingBusinessApi {
90
90
  const url = `${this.baseUrl}private/getList`;
91
91
  return await this.httpRequest.get(`${url}`);
92
92
  }
93
+ async getBatchByIds(ids) {
94
+ const url = `${this.baseUrl}private/getBatchByIds`;
95
+ return await this.httpRequest.post(`${url}`, { ids });
96
+ }
93
97
  };
94
98
  OnboardingBusinessApi = __decorate([
95
99
  (0, inversify_1.injectable)(),
@@ -19,4 +19,5 @@ export interface IOnboardingBusinessApi {
19
19
  index?: string;
20
20
  pageSize?: string;
21
21
  }): Promise<any>;
22
+ getBatchByIds(ids: string[]): Promise<any>;
22
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.5.11",
3
+ "version": "1.5.13",
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": "^2.0.76",
19
+ "@fiado/type-kit": "^2.1.14",
20
20
  "dotenv": "^16.4.7",
21
21
  "inversify": "^6.2.2",
22
22
  "reflect-metadata": "^0.2.2"
@@ -85,7 +85,11 @@ export default class OnboardingBusinessApi implements IOnboardingBusinessApi {
85
85
  const url = `${this.baseUrl}private/getList`;
86
86
  return await this.httpRequest.get(`${url}`);
87
87
  }
88
-
88
+
89
+ async getBatchByIds(ids: string[]): Promise<any> {
90
+ const url = `${this.baseUrl}private/getBatchByIds`;
91
+ return await this.httpRequest.post(`${url}`, { ids });
92
+ }
89
93
 
90
94
  }
91
95
 
@@ -5,4 +5,6 @@ export interface IOnboardingBusinessApi {
5
5
  getByReferralCode(params:{referralCode: string; index?: string; pageSize?: string;}): Promise<any>
6
6
  getByMyReferralCode(referralCode: string): Promise<any>
7
7
  getList(params:{index?: string; pageSize?: string; }): Promise<any>
8
+
9
+ getBatchByIds(ids: string[]): Promise<any>
8
10
  }