@zohoim/client-sdk 1.0.0-leftPanelPoc1 → 1.0.0-leftPanelPoc2

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.
@@ -29,6 +29,7 @@ export default class Channel {
29
29
  this.authorizationPending = validatedData.authorizationPending || false;
30
30
  this.meta = validatedData.meta || [];
31
31
  this.logoURL = validatedData.logoURL || null;
32
+ this.workspaceId = validatedData.workspaceId || '';
32
33
  }
33
34
 
34
35
  toJSON() {
@@ -51,7 +52,8 @@ export default class Channel {
51
52
  configParams: this.configParams,
52
53
  authorizationPending: this.authorizationPending,
53
54
  meta: this.meta,
54
- logoURL: this.logoURL
55
+ logoURL: this.logoURL,
56
+ workspaceId: this.workspaceId
55
57
  };
56
58
  }
57
59
 
@@ -74,6 +74,10 @@ const ChannelSchema = {
74
74
  logoURL: {
75
75
  type: 'string',
76
76
  required: false
77
+ },
78
+ workspaceId: {
79
+ type: 'string',
80
+ required: false
77
81
  }
78
82
  };
79
83
  export default ChannelSchema;
@@ -32,7 +32,8 @@ export default class ChannelAdapter extends IAdapter {
32
32
  configParams: rawChannel.configParams,
33
33
  authorizationPending: rawChannel.authorizationPending,
34
34
  meta: rawChannel.meta,
35
- logoURL: rawChannel.logoURL
35
+ logoURL: rawChannel.logoURL,
36
+ workspaceId: rawChannel.workspaceId
36
37
  }).toJSON();
37
38
  } catch (error) {
38
39
  throw new AdapterError(`Failed to adapt channel: ${error.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-leftPanelPoc1",
3
+ "version": "1.0.0-leftPanelPoc2",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",