@in.pulse-crm/sdk 2.7.3 → 2.7.4

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 CHANGED
@@ -1,4 +1,4 @@
1
- {
2
- "tabWidth": 4,
3
- "useTabs": true
4
- }
1
+ {
2
+ "tabWidth": 4,
3
+ "useTabs": true
4
+ }
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  import ApiClient from "./api-client";
2
4
  import { File, UploadFileOptions } from "./types/files.types";
3
5
  declare class FilesClient extends ApiClient {
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  export interface UploadFileOptions {
2
4
  /**
3
5
  * Nome da instância onde o arquivo está armazenado.
@@ -100,6 +100,7 @@ export interface User {
100
100
  CAMINHO_DATABASE: string | null;
101
101
  /** ID da campanha WeOn */
102
102
  IDCAMPANHA_WEON: string | null;
103
+ AVATAR_ID: number | null;
103
104
  }
104
105
  /**
105
106
  * Interface que representa o objeto de transferência de dados para criar um usuário.
@@ -143,6 +144,7 @@ export interface CreateUserDTO {
143
144
  * O código ERP do usuário (opcional).
144
145
  */
145
146
  CODIGO_ERP?: string;
147
+ AVATAR_ID?: number | null;
146
148
  }
147
149
  /**
148
150
  * Interface que representa o objeto de transferência de dados para atualizar um usuário.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.7.3",
3
+ "version": "2.7.4",
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",
@@ -125,12 +125,14 @@ export default class InternalChatClient extends ApiClient {
125
125
  const url = `/api/internal/chat/${chatId}/mark-as-read`;
126
126
  await this.httpClient.patch(url);
127
127
  }
128
+
128
129
  public async getInternalChatsMonitor() {
129
130
  const url = `/api/internal/monitor/chats`;
130
131
  const { data: res } = await this.httpClient.get<GetChatsResponse>(url);
131
132
 
132
133
  return res.data;
133
134
  }
135
+
134
136
  public setAuth(token: string) {
135
137
  this.httpClient.defaults.headers.common["Authorization"] =
136
138
  `Bearer ${token}`;
@@ -101,6 +101,7 @@ export interface User {
101
101
  CAMINHO_DATABASE: string | null;
102
102
  /** ID da campanha WeOn */
103
103
  IDCAMPANHA_WEON: string | null;
104
+ AVATAR_ID: number | null;
104
105
  }
105
106
 
106
107
  /**
@@ -153,6 +154,7 @@ export interface CreateUserDTO {
153
154
  * O código ERP do usuário (opcional).
154
155
  */
155
156
  CODIGO_ERP?: string;
157
+ AVATAR_ID?: number | null;
156
158
  }
157
159
 
158
160
  /**
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
  }