@in.pulse-crm/sdk 2.5.16 → 2.6.0

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.
@@ -11,7 +11,7 @@ class ApiClient {
11
11
  this.baseUrl = baseUrl;
12
12
  this.httpClient = axios_1.default.create({
13
13
  baseURL: `${this.baseUrl}`,
14
- timeout: 10000,
14
+ timeout: 30000,
15
15
  headers: {
16
16
  'Content-Type': 'application/json',
17
17
  },
@@ -83,6 +83,7 @@ export interface WppMessageReactionEventData {
83
83
  export interface InternalChatStartedEventData {
84
84
  chat: InternalChat & {
85
85
  participants: number[];
86
+ messages: InternalMessage[];
86
87
  };
87
88
  }
88
89
  export interface InternalChatFinishedEventData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.5.16",
3
+ "version": "2.6.0",
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",
package/src/api-client.ts CHANGED
@@ -10,7 +10,7 @@ export default class ApiClient {
10
10
 
11
11
  this.httpClient = axios.create({
12
12
  baseURL: `${this.baseUrl}`,
13
- timeout: 10000,
13
+ timeout: 30000,
14
14
  headers: {
15
15
  'Content-Type': 'application/json',
16
16
  },
@@ -184,7 +184,7 @@ export interface WppMessageReactionEventData {
184
184
  reaction: string;
185
185
  }
186
186
  export interface InternalChatStartedEventData {
187
- chat: InternalChat & { participants: number[] };
187
+ chat: InternalChat & { participants: number[], messages: InternalMessage[] };
188
188
  }
189
189
  export interface InternalChatFinishedEventData {
190
190
  chatId: number;