@zohoim/client-sdk 1.0.0-poc11 → 1.0.0-poc12

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,4 +1,4 @@
1
- import HTTP_METHODS from './HTTPMethods';
1
+ import HTTP_METHODS from './HttPMethods';
2
2
  import ModuleNames from './ModuleNames';
3
3
  const IM_API_PREFIX = '/api/v1';
4
4
  export { ModuleNames, IM_API_PREFIX, HTTP_METHODS };
@@ -11,7 +11,7 @@ export default class Session {
11
11
  createdTime: validatedData.createdTime,
12
12
  agentId: validatedData.agentId,
13
13
  botId: validatedData.botId,
14
- actor: new Actor(validatedData.actor),
14
+ actor: new Actor(validatedData.actor).toJSON(),
15
15
  subject: validatedData.subject,
16
16
  messagesCount: validatedData.messagesCount,
17
17
  agentLastActiveTime: validatedData.agentLastActiveTime,
@@ -23,15 +23,13 @@ export default class Session {
23
23
  id: validatedData.id,
24
24
  contactId: validatedData.contactId,
25
25
  meta: validatedData.meta,
26
- assignee: validatedData.assignee ? new Actor(validatedData.assignee) : null,
26
+ assignee: validatedData.assignee ? new Actor(validatedData.assignee).toJSON() : null,
27
27
  channel: validatedData.channel
28
28
  };
29
29
  }
30
30
 
31
31
  toJSON() {
32
- return { ...this.data,
33
- actor: this.data.actor.toJSON(),
34
- assignee: this.data.assignee?.toJSON()
32
+ return { ...this.data
35
33
  };
36
34
  }
37
35
 
@@ -15,8 +15,7 @@ export default class IMSDK {
15
15
  this._moduleManager = new ModuleManager();
16
16
 
17
17
  this._moduleManager.initialize({
18
- config,
19
- httpClient
18
+ config
20
19
  });
21
20
  }
22
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-poc11",
3
+ "version": "1.0.0-poc12",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",