@fiado/api-invoker 1.5.39 → 1.5.40

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.
@@ -9,7 +9,9 @@ export declare class ReferralBusinessApi implements IReferralBusinessApi {
9
9
  isDescendant(params: {
10
10
  email: string;
11
11
  directoryId: string;
12
- }): Promise<FiadoApiResponse<boolean>>;
12
+ }): Promise<FiadoApiResponse<{
13
+ isDescendant: boolean;
14
+ }>>;
13
15
  createAgent(params: {
14
16
  directoryId: string;
15
17
  notes?: string;
@@ -37,5 +37,7 @@ export interface IReferralBusinessApi {
37
37
  isDescendant(params: {
38
38
  email: string;
39
39
  directoryId: string;
40
- }): Promise<FiadoApiResponse<boolean>>;
40
+ }): Promise<FiadoApiResponse<{
41
+ isDescendant: boolean;
42
+ }>>;
41
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.5.39",
3
+ "version": "1.5.40",
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",
@@ -14,7 +14,7 @@ export class ReferralBusinessApi implements IReferralBusinessApi {
14
14
 
15
15
  constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) { }
16
16
 
17
- async isDescendant(params: { email: string; directoryId: string; }): Promise<FiadoApiResponse<boolean>> {
17
+ async isDescendant(params: { email: string; directoryId: string; }): Promise<FiadoApiResponse<{isDescendant: boolean}>> {
18
18
  const url = `${this.baseUrl}private/agents/is-descendant?email=${params.email}&directoryId=${params.directoryId}`;
19
19
  return await this.httpRequest.get(url);
20
20
  }
@@ -34,5 +34,5 @@ export interface IReferralBusinessApi {
34
34
  * @param directoryId ID del directorio del agente hijo.
35
35
  * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
36
36
  */
37
- isDescendant(params:{email: string; directoryId: string}): Promise<FiadoApiResponse<boolean>>;
37
+ isDescendant(params:{email: string; directoryId: string}): Promise<FiadoApiResponse<{isDescendant: boolean}>>;
38
38
  }