@zohoim/client-sdk 1.0.0-calls4 → 1.0.0-calls6

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.
@@ -22,6 +22,7 @@ export default class Call {
22
22
  this.participants = validatedData.participants || null;
23
23
  this.session = validatedData.session || false;
24
24
  this.statuses = validatedData.statuses || null;
25
+ this.duration = validatedData.duration || null;
25
26
  }
26
27
 
27
28
  toJSON() {
@@ -37,7 +38,8 @@ export default class Call {
37
38
  meta: this.meta,
38
39
  participants: this.participants,
39
40
  session: this.session,
40
- statuses: this.statuses
41
+ statuses: this.statuses,
42
+ duration: this.duration
41
43
  };
42
44
  }
43
45
 
@@ -54,6 +54,10 @@ const CallSchema = {
54
54
  statuses: {
55
55
  type: 'array',
56
56
  required: false
57
+ },
58
+ duration: {
59
+ type: 'string',
60
+ required: false
57
61
  }
58
62
  };
59
63
  export default CallSchema;
@@ -20,7 +20,8 @@ export default class CallAdapter extends IAdapter {
20
20
  meta: callData.meta,
21
21
  participants: callData.participants,
22
22
  session: callData.session,
23
- statuses: callData.statuses
23
+ statuses: callData.statuses,
24
+ duration: callData.duration
24
25
  }).toJSON();
25
26
  } catch (error) {
26
27
  throw new AdapterError(`Failed to adapt message: ${error.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-calls4",
3
+ "version": "1.0.0-calls6",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",