@zohoim/client-sdk 1.0.0-replyAreaPoc8 → 1.0.0-replyAreaPoc9

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.
@@ -28,13 +28,13 @@ export default class CannedMessage {
28
28
  createdBy,
29
29
  displayMessage: validatedData.displayMessage,
30
30
  type: validatedData.type,
31
- kind: validatedData.kind,
32
31
  isActive: validatedData.isActive,
33
32
  meta: validatedData.meta,
34
33
  isPrivate: validatedData.isPrivate,
35
34
  rejectionReason: validatedData.rejectionReason,
36
35
  modifiedTime: validatedData.modifiedTime,
37
- translations: validatedData.translations
36
+ translations: validatedData.translations,
37
+ parameters: validatedData.parameters
38
38
  };
39
39
  }
40
40
 
@@ -1,4 +1,4 @@
1
- import { CannedMessageType } from '../../enum'; //import { ActorSchema } from '../actor';
1
+ import { CannedMessageType } from '../../enum'; // import { ActorSchema } from '../actor';
2
2
 
3
3
  import TranslationsSchema from './TranslationsSchema';
4
4
  const CannedMessageSchema = {
@@ -56,6 +56,10 @@ const CannedMessageSchema = {
56
56
  message: {
57
57
  type: 'string',
58
58
  required: false
59
+ },
60
+ parameters: {
61
+ type: 'object',
62
+ required: false
59
63
  }
60
64
  };
61
65
  export default CannedMessageSchema;
@@ -24,7 +24,7 @@ export default class CannedMessageAdapter extends IAdapter {
24
24
  meta: cannedMessageData.meta,
25
25
  rejectedReason: cannedMessageData.rejectedReason,
26
26
  modifiedTime: cannedMessageData.modifiedTime,
27
- kind: cannedMessageData.kind
27
+ parameters: cannedMessageData.parameters || null
28
28
  }).toJSON();
29
29
  } catch (error) {
30
30
  throw new AdapterError(`Failed to adapt canned message: ${error.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-replyAreaPoc8",
3
+ "version": "1.0.0-replyAreaPoc9",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",