@zohoim/client-sdk 1.0.0-poc37 → 1.0.0-poc39

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.
@@ -6,7 +6,7 @@ export default class Bot {
6
6
  const validatedData = validateSchema(BotSchema, data);
7
7
  this.data = {
8
8
  id: validatedData.id,
9
- botServiceType: validatedData.botService,
9
+ botServiceType: validatedData.botServiceType,
10
10
  name: validatedData.name,
11
11
  isActive: validatedData.isActive,
12
12
  createdTime: validatedData.createdTime,
@@ -23,8 +23,7 @@ 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).toJSON() : null,
27
- channel: validatedData.channel
26
+ assignee: validatedData.assignee ? new Actor(validatedData.assignee).toJSON() : null
28
27
  };
29
28
  }
30
29
 
@@ -77,10 +77,6 @@ const SessionSchema = {
77
77
  type: 'object',
78
78
  required: false,
79
79
  schema: ActorSchema
80
- },
81
- channel: {
82
- type: 'string',
83
- required: true
84
80
  }
85
81
  };
86
82
  export default SessionSchema;
@@ -26,8 +26,7 @@ export default class SessionAdapter extends IAdapter {
26
26
  replyStatus: sessionData.replyStatus,
27
27
  contactId: sessionData.contactId,
28
28
  meta: sessionData.meta,
29
- assignee: sessionData.assignee,
30
- channel: sessionData.channel
29
+ assignee: sessionData.assignee
31
30
  }).toJSON();
32
31
  } catch (error) {
33
32
  throw new AdapterError(`Failed to adapt session: ${error.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-poc37",
3
+ "version": "1.0.0-poc39",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",