@zohoim/client-sdk 1.0.0-poc74 → 1.0.0-poc76

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.
@@ -10,7 +10,8 @@ export default class Attachment {
10
10
  type: validatedData.type,
11
11
  createdTime: validatedData.createdTime,
12
12
  size: validatedData.size,
13
- url: validatedData.url
13
+ url: validatedData.url,
14
+ status: validatedData.status
14
15
  };
15
16
  }
16
17
 
@@ -40,6 +40,10 @@ export default class Session {
40
40
  return replyStatus === SessionReplyStatus.CHANNEL_INACTIVE;
41
41
  }
42
42
 
43
+ static isAssignedToOtherService(replyStatus) {
44
+ return replyStatus === SessionReplyStatus.ASSIGNED_TO_OTHER_SERVICE;
45
+ }
46
+
43
47
  toJSON() {
44
48
  return { ...this.data
45
49
  };
@@ -0,0 +1,5 @@
1
+ const AttachmentStatus = {
2
+ VALID: 'VALID',
3
+ INVALID: 'INVALID'
4
+ };
5
+ export default AttachmentStatus;
@@ -0,0 +1,2 @@
1
+ import AttachmentStatus from "./AttachmentStatus";
2
+ export { AttachmentStatus };
@@ -2,4 +2,5 @@ export * from "./integrationServices";
2
2
  export * from "./session";
3
3
  export * from "./actor";
4
4
  export * from "./bot";
5
- export * from "./message";
5
+ export * from "./message";
6
+ export * from "./attachment";
@@ -22,6 +22,10 @@ const AttachmentSchema = {
22
22
  url: {
23
23
  type: 'string',
24
24
  required: false
25
+ },
26
+ status: {
27
+ type: 'string',
28
+ required: false
25
29
  }
26
30
  };
27
31
  export default AttachmentSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-poc74",
3
+ "version": "1.0.0-poc76",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",