@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.
|
|
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
|
|
|
@@ -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}`);
|