@in.pulse-crm/sdk 2.0.0 → 2.0.2

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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
3
  import ApiClient from "./api-client";
4
- import { UploadFileOptions } from "./types/files.types";
4
+ import { File, UploadFileOptions } from "./types/files.types";
5
5
  declare class FilesClient extends ApiClient {
6
6
  /**
7
7
  * Busca um arquivo pelo ID.
@@ -17,6 +17,10 @@ export interface UploadFileOptions {
17
17
  * Buffer com o conteúdo do arquivo.
18
18
  */
19
19
  buffer: Buffer;
20
+ /**
21
+ * Tipo MIME do arquivo.
22
+ */
23
+ mimeType: string;
20
24
  }
21
25
  /**
22
26
  * Enum que representa os tipos de diretórios de arquivos.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
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",
@@ -1,5 +1,5 @@
1
1
  import ApiClient from "./api-client";
2
- import { UploadFileOptions } from "./types/files.types";
2
+ import { File, UploadFileOptions } from "./types/files.types";
3
3
  import { DataResponse } from "./types/response.types";
4
4
 
5
5
  class FilesClient extends ApiClient {
@@ -18,6 +18,11 @@ export interface UploadFileOptions {
18
18
  * Buffer com o conteúdo do arquivo.
19
19
  */
20
20
  buffer: Buffer;
21
+
22
+ /**
23
+ * Tipo MIME do arquivo.
24
+ */
25
+ mimeType: string;
21
26
  }
22
27
 
23
28
  /**