Skip to content

Commit

Permalink
Merge pull request #2 from zoho/beta
Browse files Browse the repository at this point in the history
2.0.0
  • Loading branch information
tharunpargi committed Sep 6, 2023
2 parents 53c5938 + bd8d36f commit 04dc71d
Show file tree
Hide file tree
Showing 1,482 changed files with 166,066 additions and 169 deletions.
11 changes: 10 additions & 1 deletion README.md
Expand Up @@ -25,6 +25,15 @@ License

## Latest Version

- [2.0.0](/versions//2.0.0/README.md)

- Email related records API pagination Issue fixed.
- Handled next_index and prev_index field datatype.
- User-specific fields meta class name conflicts resolved.
- Records APIs Issue fixed.
- Supported delete operation in multi-select lookup, multi-user lookup, image upload, and subform fields.


- [1.0.0](/versions/1.0.0/README.md)

- NodeJS SDK upgraded to support v5 APIs.
Expand Down Expand Up @@ -58,4 +67,4 @@ For including the latest [version](https://github.com/zoho/zohocrm-nodejs-sdk-5.
```sh
npm install @zohocrm/nodejs-sdk-5.0
```
For more details, kindly refer [here](/versions/1.0.0/README.md).
For more details, kindly refer [here](/versions/2.0.0/README.md).
2 changes: 1 addition & 1 deletion lib/config/json_details.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions lib/core/com/zoho/crm/api/email_related_records/info.js
Expand Up @@ -33,7 +33,7 @@ class Info{

/**
* The method to get the nextIndex
* @returns {number} A number representing the nextIndex
* @returns {String} A String representing the nextIndex
*/
getNextIndex() {
return this.nextIndex;
Expand All @@ -42,11 +42,11 @@ class Info{

/**
* The method to set the value to nextIndex
* @param {number} nextIndex A number representing the nextIndex
* @param {String} nextIndex A String representing the nextIndex
*/
setNextIndex(nextIndex) {
if((nextIndex != null) && (!(Object.prototype.toString.call(nextIndex) == "[object Number]"))) {
throw new SDKException(Constants.DATA_TYPE_ERROR, "KEY: nextIndex EXPECTED TYPE: number", null, null);
if((nextIndex != null) && (!(Object.prototype.toString.call(nextIndex) == "[object String]"))) {
throw new SDKException(Constants.DATA_TYPE_ERROR, "KEY: nextIndex EXPECTED TYPE: String", null, null);
}
this.nextIndex = nextIndex;
this.keyModified.set("next_index", 1);
Expand All @@ -55,7 +55,7 @@ class Info{

/**
* The method to get the prevIndex
* @returns {number} A number representing the prevIndex
* @returns {String} A String representing the prevIndex
*/
getPrevIndex() {
return this.prevIndex;
Expand All @@ -64,11 +64,11 @@ class Info{

/**
* The method to set the value to prevIndex
* @param {number} prevIndex A number representing the prevIndex
* @param {String} prevIndex A String representing the prevIndex
*/
setPrevIndex(prevIndex) {
if((prevIndex != null) && (!(Object.prototype.toString.call(prevIndex) == "[object Number]"))) {
throw new SDKException(Constants.DATA_TYPE_ERROR, "KEY: prevIndex EXPECTED TYPE: number", null, null);
if((prevIndex != null) && (!(Object.prototype.toString.call(prevIndex) == "[object String]"))) {
throw new SDKException(Constants.DATA_TYPE_ERROR, "KEY: prevIndex EXPECTED TYPE: String", null, null);
}
this.prevIndex = prevIndex;
this.keyModified.set("prev_index", 1);
Expand Down
1 change: 1 addition & 0 deletions lib/core/com/zoho/crm/api/record/record_operations.js
Expand Up @@ -1029,6 +1029,7 @@ class SearchRecordsParam{
static PAGE = new Param("page", "com.zoho.crm.api.Record.SearchRecordsParam");
static PER_PAGE = new Param("per_page", "com.zoho.crm.api.Record.SearchRecordsParam");
static FIELDS = new Param("fields", "com.zoho.crm.api.Record.SearchRecordsParam");
static CVID = new Param("cvid", "com.zoho.crm.api.Record.SearchRecordsParam");
}

class SearchRecordsHeader{
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/util/constants.js
Expand Up @@ -90,7 +90,7 @@ class Constants {

static ZOHO_SDK = "X-ZOHO-SDK";

static SDK_VERSION = "1.0.0";
static SDK_VERSION = "2.0.0";

static MYSQL_HOST = "localhost";

Expand Down Expand Up @@ -354,7 +354,7 @@ class Constants {

static RECURRING_ACTIVITY_NAMESPACE = 'core/com/zoho/crm/api/record/recurring_activity';

static USER_NAMESPACE = 'core/com/zoho/crm/api/users/users';
static USER_NAMESPACE = 'core/com/zoho/crm/api/users/minified_user';

static MODULE_NAMESPACE = 'core/com/zoho/crm/api/modules/modules';

Expand Down

0 comments on commit 04dc71d

Please sign in to comment.