@zohoim/client-sdk 1.0.0-poc30 → 1.0.0-poc31

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.
@@ -2,7 +2,7 @@ import { AdapterError } from "../../../core/errors";
2
2
  import { Bot } from "../../../domain/entities";
3
3
  import IAdapter from "../../../domain/interfaces/IAdapter";
4
4
  export default class BotAdapter extends IAdapter {
5
- static adapt(botData) {
5
+ adapt(botData) {
6
6
  if (!botData) {
7
7
  throw new AdapterError('Bot data is required');
8
8
  }
@@ -8,7 +8,7 @@ export default class ChannelAgentAdapter extends IAdapter {
8
8
  * @returns {Object} Adapted agent data
9
9
  * @throws {AdapterError} When adaptation fails
10
10
  */
11
- static adapt(channelAgent) {
11
+ adapt(channelAgent) {
12
12
  if (!channelAgent) {
13
13
  throw new AdapterError('Channel agent data is required');
14
14
  }
@@ -2,7 +2,7 @@ import { AdapterError } from "../../../core/errors";
2
2
  import { Session } from "../../../domain/entities";
3
3
  import IAdapter from "../../../domain/interfaces/IAdapter";
4
4
  export default class SessionAdapter extends IAdapter {
5
- static adapt(sessionData) {
5
+ adapt(sessionData) {
6
6
  if (!sessionData) {
7
7
  throw new AdapterError('Session data is required');
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-poc30",
3
+ "version": "1.0.0-poc31",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",