@zohocrm/typescript-sdk-6.0
Version:
TypeScript SDK for Zoho CRM
43 lines (42 loc) • 1.35 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Environment = exports.MasterModel = void 0;
/**
* This class represents the Zoho CRM environment.
*/
class Environment {
/**
* Creates an Environment class instance with the specified parameters.
* @param {string} url - A String representing the domain URL
* @param {string} accountsUrl - A String representing the accounts URL to fetch tokens.
* @param {string} fileUploadUrl - A string representing the file Upload URL
*/
constructor(url, accountsUrl, fileUploadUrl) {
this.url = url;
this.accountsUrl = accountsUrl;
this.fileUploadUrl = fileUploadUrl;
}
/**
* The method is used to get the Zoho CRM API URL.
* @returns {string} A String representing the Zoho CRM API URL.
*/
getUrl() {
return this.url;
}
/**
* The method to get the Zoho CRM Accounts URL.
* @returns {string} A String representing the accounts URL.
*/
getAccountsUrl() {
return this.accountsUrl;
}
/**
* The method to get the File Upload URL.
* @returns {string} A String representing the File Upload URL.
*/
getFileUploadUrl() {
return this.fileUploadUrl;
}
}
exports.MasterModel = Environment;
exports.Environment = Environment;
;