@in.pulse-crm/sdk 2.3.92 → 2.3.93

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.
@@ -10,7 +10,7 @@ export default class UsersClient extends ApiClient {
10
10
  * @param filters - Filtros opcionais para a query.
11
11
  * @returns Uma resposta paginada contendo os usuários.
12
12
  */
13
- getUsers(filters?: RequestFilters<User>): Promise<User[]>;
13
+ getUsers(filters?: RequestFilters<User>): Promise<any>;
14
14
  /**
15
15
  * Obtém um usuário pelo ID.
16
16
  * @param userId - O ID do usuário.
@@ -19,8 +19,8 @@ class UsersClient extends api_client_1.default {
19
19
  if (params.toString()) {
20
20
  baseUrl += `?${params.toString()}`;
21
21
  }
22
- const { data: res } = await this.httpClient.get(baseUrl);
23
- return res.data;
22
+ const response = await this.httpClient.get(baseUrl);
23
+ return response.data;
24
24
  }
25
25
  /**
26
26
  * Obtém um usuário pelo ID.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.3.92",
3
+ "version": "2.3.93",
4
4
  "description": "SDKs for abstraction of api consumption of in.pulse-crm application",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,10 +20,9 @@ export default class UsersClient extends ApiClient {
20
20
  baseUrl += `?${params.toString()}`;
21
21
  }
22
22
 
23
- const { data: res } =
24
- await this.httpClient.get<PaginatedResponse<User>>(baseUrl);
23
+ const response = await this.httpClient.get(baseUrl);
25
24
 
26
- return res.data;
25
+ return response.data;
27
26
  }
28
27
 
29
28
  /**