@in.pulse-crm/sdk 2.3.9 → 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.
- package/.prettierrc +4 -4
- package/dist/files.client.d.ts +0 -2
- package/dist/types/files.types.d.ts +0 -2
- package/dist/users.client.d.ts +1 -1
- package/dist/users.client.js +2 -2
- package/package.json +1 -1
- package/src/users.client.ts +3 -3
- package/tsconfig.json +16 -16
package/.prettierrc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tabWidth": 4,
|
|
3
|
-
"useTabs": true
|
|
4
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"tabWidth": 4,
|
|
3
|
+
"useTabs": true
|
|
4
|
+
}
|
package/dist/files.client.d.ts
CHANGED
package/dist/users.client.d.ts
CHANGED
|
@@ -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<
|
|
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.
|
package/dist/users.client.js
CHANGED
|
@@ -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
|
|
23
|
-
return
|
|
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
package/src/users.client.ts
CHANGED
|
@@ -15,14 +15,14 @@ export default class UsersClient extends ApiClient {
|
|
|
15
15
|
public async getUsers(filters?: RequestFilters<User>) {
|
|
16
16
|
let baseUrl = `/api/users`;
|
|
17
17
|
const params = new URLSearchParams(filters);
|
|
18
|
+
|
|
18
19
|
if (params.toString()) {
|
|
19
20
|
baseUrl += `?${params.toString()}`;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
const
|
|
23
|
-
await this.httpClient.get<PaginatedResponse<User>>(`/api/users`);
|
|
23
|
+
const response = await this.httpClient.get(baseUrl);
|
|
24
24
|
|
|
25
|
-
return
|
|
25
|
+
return response.data;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
package/tsconfig.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
4
|
-
"module": "commonjs" /* Specify what module code is generated. */,
|
|
5
|
-
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
6
|
-
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
7
|
-
"strict": true /* Enable all strict type-checking options. */,
|
|
8
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
|
|
9
|
-
"noUnusedLocals": false,
|
|
10
|
-
"outDir": "./dist", /* Redirect output structure to the directory. */
|
|
11
|
-
"declaration": true
|
|
12
|
-
},
|
|
13
|
-
"include": [
|
|
14
|
-
"src/index.ts",
|
|
15
|
-
"src/**/*.{ts}"
|
|
16
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
4
|
+
"module": "commonjs" /* Specify what module code is generated. */,
|
|
5
|
+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
6
|
+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
7
|
+
"strict": true /* Enable all strict type-checking options. */,
|
|
8
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
|
|
9
|
+
"noUnusedLocals": false,
|
|
10
|
+
"outDir": "./dist", /* Redirect output structure to the directory. */
|
|
11
|
+
"declaration": true
|
|
12
|
+
},
|
|
13
|
+
"include": [
|
|
14
|
+
"src/index.ts",
|
|
15
|
+
"src/**/*.{ts}"
|
|
16
|
+
]
|
|
17
17
|
}
|