@fiado/api-invoker 1.4.8 → 1.4.9

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.
@@ -11,6 +11,8 @@ export default class OnboardingBusinessApi implements IOnboardingBusinessApi {
11
11
  index?: string;
12
12
  pageSize?: string;
13
13
  sort?: "ascending" | "descending";
14
+ startDate?: string;
15
+ endDate?: string;
14
16
  }): Promise<any>;
15
17
  getByReferralCode(params: {
16
18
  referralCode: string;
@@ -52,6 +52,10 @@ let OnboardingBusinessApi = class OnboardingBusinessApi {
52
52
  queryParams.push(`pageSize=${params.pageSize}`);
53
53
  if (params.sort)
54
54
  queryParams.push(`sort=${params.sort}`);
55
+ if (params.startDate)
56
+ queryParams.push(`startDate=${params.startDate}`);
57
+ if (params.endDate)
58
+ queryParams.push(`endDate=${params.endDate}`);
55
59
  const query = queryParams.length > 0 ? `?${queryParams.join("&")}` : "";
56
60
  const url = `${this.baseUrl}private/getByReferralDirectoryId/${params.referralDirectoryId}${query}`;
57
61
  return await this.httpRequest.get(`${url}`);
@@ -5,6 +5,9 @@ export interface IOnboardingBusinessApi {
5
5
  referralDirectoryId: string;
6
6
  index?: string;
7
7
  pageSize?: string;
8
+ sort?: "ascending" | "descending";
9
+ startDate?: string;
10
+ endDate?: string;
8
11
  }): Promise<any>;
9
12
  getByReferralCode(params: {
10
13
  referralCode: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
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",
@@ -39,11 +39,13 @@ export default class OnboardingBusinessApi implements IOnboardingBusinessApi {
39
39
  // Parameters: params
40
40
  // Return: Onboarding
41
41
  // **/
42
- async getByReferralDirectoryId(params: { referralDirectoryId: string; index?: string; pageSize?: string; sort?: "ascending" | "descending"; }): Promise<any> {
42
+ async getByReferralDirectoryId(params: { referralDirectoryId: string; index?: string; pageSize?: string; sort?: "ascending" | "descending"; startDate?: string; endDate?: string; }): Promise<any> {
43
43
  const queryParams = []
44
44
  if (params.index) queryParams.push(`index=${params.index}`)
45
45
  if (params.pageSize) queryParams.push(`pageSize=${params.pageSize}`)
46
46
  if (params.sort) queryParams.push(`sort=${params.sort}`)
47
+ if (params.startDate) queryParams.push(`startDate=${params.startDate}`)
48
+ if (params.endDate) queryParams.push(`endDate=${params.endDate}`)
47
49
 
48
50
  const query = queryParams.length > 0 ? `?${queryParams.join("&")}` : "";
49
51
 
@@ -1,7 +1,7 @@
1
1
  export interface IOnboardingBusinessApi {
2
2
  getById(id: string): Promise<any>
3
3
  getByPhoneNumber(phoneNumber: string): Promise<any>
4
- getByReferralDirectoryId(params:{referralDirectoryId: string; index?: string; pageSize?: string;}): Promise<any>
4
+ getByReferralDirectoryId(params:{referralDirectoryId: string; index?: string; pageSize?: string; sort?: "ascending" | "descending"; startDate?: string; endDate?: string; }): Promise<any>
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>