@zohoim/client-sdk 1.0.0-poc71 → 1.0.0-poc73

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.
@@ -12,7 +12,8 @@ export default class Actor {
12
12
  extId: validatedData.extId,
13
13
  id: validatedData.id,
14
14
  email: validatedData.email,
15
- botType: validatedData.botType
15
+ botType: validatedData.botType,
16
+ service: validatedData.service
16
17
  };
17
18
  }
18
19
 
@@ -38,11 +38,11 @@ export default class Message {
38
38
  };
39
39
  }
40
40
 
41
- static isLocationMessage(type) {
41
+ static isLocation(type) {
42
42
  return type === MessageTypes.LOCATION;
43
43
  }
44
44
 
45
- static isDeletedMessage(status) {
45
+ static isDeleted(status) {
46
46
  return status === MessageStatus.DELETED;
47
47
  }
48
48
 
@@ -50,7 +50,7 @@ export default class Message {
50
50
  return direction === MessageDirection.OUT;
51
51
  }
52
52
 
53
- static isInfoMessage(type) {
53
+ static isInfo(type) {
54
54
  return type === MessageTypes.INFO;
55
55
  }
56
56
 
@@ -28,6 +28,10 @@ const ActorSchema = {
28
28
  botType: {
29
29
  type: 'string',
30
30
  required: false
31
+ },
32
+ service: {
33
+ type: 'string',
34
+ required: false
31
35
  }
32
36
  };
33
37
  export default ActorSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-poc71",
3
+ "version": "1.0.0-poc73",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",