@zohoim/client-sdk 1.0.0-poc53 → 1.0.0-poc55

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.
@@ -4,7 +4,7 @@ import { getChannelAgentsRequest } from "../../../dto";
4
4
  export default class IChannelAgentRepository extends BaseAPI {
5
5
  constructor() {
6
6
  super({
7
- module: `${ModuleNames.CHANNELS}.agents`
7
+ module: `${ModuleNames.CHANNELS}.${ModuleNames.AGENTS}`
8
8
  });
9
9
  } // eslint-disable-next-line no-unused-vars
10
10
 
package/es/index.js CHANGED
@@ -8,4 +8,5 @@ export * from "./infrastructure/api"; // frameworks
8
8
 
9
9
  export * from "./frameworks/sdk"; // core
10
10
 
11
- export * from "./core/constants";
11
+ export * from "./core/constants";
12
+ export { ResponseUtils } from "./core/utils";
@@ -1,6 +1,10 @@
1
1
  import { getAgentsRequest } from "../../../domain/dto";
2
2
  import { IAgentRepository } from "../../../domain/interfaces/repositories";
3
3
  export default class AgentAPI extends IAgentRepository {
4
+ constructor() {
5
+ super();
6
+ }
7
+
4
8
  async getAgents() {
5
9
  let request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getAgentsRequest();
6
10
  const operation = 'getAgents';
@@ -1,6 +1,10 @@
1
1
  import { getBotsRequest } from "../../../domain/dto";
2
2
  import { IBotRepository } from "../../../domain/interfaces/repositories";
3
3
  export default class BotAPI extends IBotRepository {
4
+ constructor() {
5
+ super();
6
+ }
7
+
4
8
  async getBots() {
5
9
  let request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getBotsRequest();
6
10
  const operation = 'getBots';
@@ -1,6 +1,10 @@
1
1
  import { getChannelsRequest } from "../../../domain/dto";
2
2
  import { IChannelRepository } from "../../../domain/interfaces/repositories";
3
3
  export default class ChannelAPI extends IChannelRepository {
4
+ constructor() {
5
+ super();
6
+ }
7
+
4
8
  async getChannels() {
5
9
  let request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getChannelsRequest();
6
10
  const operation = 'getChannels';
@@ -1,6 +1,10 @@
1
1
  import { getChannelAgentsRequest } from "../../../domain/dto";
2
2
  import { IChannelAgentRepository } from "../../../domain/interfaces/repositories";
3
3
  export default class ChannelAgentAPI extends IChannelAgentRepository {
4
+ constructor() {
5
+ super();
6
+ }
7
+
4
8
  async getAgents() {
5
9
  let request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getChannelAgentsRequest();
6
10
  const {
@@ -1,6 +1,10 @@
1
1
  import { getContactsRequest } from "../../../domain/dto";
2
2
  import { IContactRepository } from "../../../domain/interfaces/repositories";
3
3
  export default class ContactAPI extends IContactRepository {
4
+ constructor() {
5
+ super();
6
+ }
7
+
4
8
  async getContacts() {
5
9
  let request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getContactsRequest();
6
10
  const operation = 'getContacts';
@@ -1,6 +1,10 @@
1
1
  import { getMessagesRequest, deleteMessageRequest, getFullContentRequest, resendMessageRequest, sendAttachmentRequest, sendMessageRequest, initiateSessionRequest, searchMessagesRequest } from "../../../domain/dto";
2
2
  import { IMessageRepository } from "../../../domain/interfaces/repositories";
3
3
  export default class MessageAPI extends IMessageRepository {
4
+ constructor() {
5
+ super();
6
+ }
7
+
4
8
  async getMessages() {
5
9
  let request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getMessagesRequest();
6
10
  const operation = 'getMessages';
@@ -1,6 +1,10 @@
1
1
  import { updateSessionAssigneeRequest, getSessionsRequest, getSessionRequest, getSessionAttachmentsRequest, getSessionLastMessagesRequest, markSessionAsReadRequest, updateSessionStatusRequest } from "../../../domain/dto";
2
2
  import { ISessionRepository } from "../../../domain/interfaces/repositories";
3
3
  export default class SessionAPI extends ISessionRepository {
4
+ constructor() {
5
+ super();
6
+ }
7
+
4
8
  async updateAssignee() {
5
9
  let request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : updateSessionAssigneeRequest();
6
10
  const operation = 'updateAssignee';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-poc53",
3
+ "version": "1.0.0-poc55",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",