@in.pulse-crm/sdk 2.8.5 → 2.8.6

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 {
@@ -48,9 +48,6 @@ class InternalChatClient extends api_client_1.default {
48
48
  data.sendAsDocument && formData.append("sendAsDocument", "true");
49
49
  data.file && formData.append("file", data.file);
50
50
  data.fileId && formData.append("fileId", data.fileId.toString());
51
- if (data.mentions && data.mentions.length > 0) {
52
- formData.append("mentions", JSON.stringify(data.mentions));
53
- }
54
51
  await this.ax.post(url, formData, {
55
52
  headers: {
56
53
  "Content-Type": "multipart/form-data",
@@ -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.
@@ -64,10 +64,4 @@ export interface InternalSendMessageData {
64
64
  text: string;
65
65
  file?: File;
66
66
  fileId?: number;
67
- mentions?: MentionData[];
68
- }
69
- export interface MentionData {
70
- userId: number;
71
- name: string;
72
- phone: string;
73
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.8.5",
3
+ "version": "2.8.6",
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",
@@ -112,6 +112,7 @@ export enum WppChatPriority {
112
112
  export type WppChatWithDetails = WppChat & {
113
113
  contact: WppContact | null;
114
114
  customer: Customer | null;
115
+ schedule: WppSchedule | null;
115
116
  };
116
117
  export type WppChatsAndMessages = {
117
118
  chats: WppChatWithDetails[];
@@ -161,5 +162,7 @@ export interface Schedule {
161
162
  scheduleDate: string;
162
163
  scheduledBy: number;
163
164
  scheduledFor: number;
165
+ scheduledAt: string;
166
+ chatId: number | null;
164
167
  contact: WppContact;
165
168
  }
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
  }