@zohoim/client-sdk 1.0.0-replyAreaPoc6 → 1.0.0-replyAreaPoc7

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.
@@ -5,7 +5,11 @@ import { Actor } from '../Actor';
5
5
  export default class CannedMessage {
6
6
  constructor() {
7
7
  let data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8
- const validatedData = validateSchema(CannedMessageSchema, data);
8
+ const validatedData = validateSchema({
9
+ schema: CannedMessageSchema,
10
+ data,
11
+ entityName: 'CannedMessage'
12
+ });
9
13
  this.data = {
10
14
  id: validatedData.id,
11
15
  title: validatedData.title,
@@ -3,7 +3,11 @@ import { CustomReplyExtensionSchema } from '../../schema';
3
3
  export default class CustomReplyExtension {
4
4
  constructor() {
5
5
  let data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6
- const validatedData = validateSchema(CustomReplyExtensionSchema, data);
6
+ const validatedData = validateSchema({
7
+ schema: CustomReplyExtensionSchema,
8
+ data,
9
+ entityName: 'CustomReplyExtension'
10
+ });
7
11
  this.data = {
8
12
  id: validatedData.id,
9
13
  title: validatedData.title,
@@ -4,7 +4,11 @@ import { TemplateCreditExhaustStatusSchema } from '../../schema';
4
4
  export default class TemplateCreditExhaustStatus {
5
5
  constructor() {
6
6
  let data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7
- const validatedData = validateSchema(TemplateCreditExhaustStatusSchema, data);
7
+ const validatedData = validateSchema({
8
+ schema: TemplateCreditExhaustStatusSchema,
9
+ data,
10
+ entityName: 'TemplateCreditExhaustStatus'
11
+ });
8
12
  this.data = {
9
13
  code: validatedData.code,
10
14
  message: validatedData.message
@@ -3,7 +3,11 @@ import { TemplateLanguageSchema } from '../../schema';
3
3
  export default class TemplateLanguage {
4
4
  constructor() {
5
5
  let data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6
- const validatedData = validateSchema(TemplateLanguageSchema, data);
6
+ const validatedData = validateSchema({
7
+ schema: TemplateLanguageSchema,
8
+ data,
9
+ entityName: 'TemplateLanguage'
10
+ });
7
11
  this.data = {
8
12
  code: validatedData.code,
9
13
  language: validatedData.language
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-replyAreaPoc6",
3
+ "version": "1.0.0-replyAreaPoc7",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",