@zohoim/client-sdk 1.0.0-poc33 → 1.0.0-poc34

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.
@@ -19,7 +19,7 @@ export default class BotService extends IBot {
19
19
 
20
20
  async getBots(request) {
21
21
  const bots = await this.botAPI.getBots(request);
22
- return bots.map(this.botAdapter.adapt);
22
+ return bots.data.map(this.botAdapter.adapt);
23
23
  }
24
24
 
25
25
  toJSON() {
@@ -19,7 +19,7 @@ export default class ChannelAgentService extends IChannelAgent {
19
19
 
20
20
  async getAgents(request) {
21
21
  const channelAgents = await this.channelAgentAPI.getAgents(request);
22
- return channelAgents.map(this.channelAgentAdapter.adapt);
22
+ return channelAgents.data.map(this.channelAgentAdapter.adapt);
23
23
  }
24
24
 
25
25
  toJSON() {
@@ -19,7 +19,7 @@ export default class ChannelService extends IChannel {
19
19
 
20
20
  async getChannels(request) {
21
21
  const channels = await this.channelAPI.getChannels(request);
22
- return channels.map(channel => this.channelAdapter.adapt(channel));
22
+ return channels.data.map(channel => this.channelAdapter.adapt(channel));
23
23
  }
24
24
 
25
25
  toJSON() {
@@ -16,7 +16,7 @@ export default class ChannelAPI extends IChannel {
16
16
  urlConfig,
17
17
  request
18
18
  });
19
- return httpRequest.data || [];
19
+ return httpRequest;
20
20
  }
21
21
 
22
22
  }
@@ -24,7 +24,7 @@ export default class ChannelAgentAPI extends IChannelAgent {
24
24
  urlConfig,
25
25
  request
26
26
  });
27
- return httpRequest.data || [];
27
+ return httpRequest;
28
28
  }
29
29
 
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-poc33",
3
+ "version": "1.0.0-poc34",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",