HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode.com/node_modules/pipedrive/dist/model/AddOrUpdateRoleSettingRequest.js
"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
/**
 * Pipedrive API v1
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 *
 */
/**
 * The AddOrUpdateRoleSettingRequest model module.
 * @module model/AddOrUpdateRoleSettingRequest
 * @version 1.0.0
 */
var AddOrUpdateRoleSettingRequest = /*#__PURE__*/function () {
  /**
   * Constructs a new <code>AddOrUpdateRoleSettingRequest</code>.
   * @alias module:model/AddOrUpdateRoleSettingRequest
   * @param settingKey {module:model/AddOrUpdateRoleSettingRequest.SettingKeyEnum} 
   * @param value {module:model/AddOrUpdateRoleSettingRequest.ValueEnum} Possible values for the `default_visibility` setting depending on the subscription plan:<br> <table class='role-setting'> <caption><b>Essential / Advanced plan</b></caption> <tr><th><b>Value</b></th><th><b>Description</b></th></tr> <tr><td>`1`</td><td>Owner & Followers</td></tr> <tr><td>`3`</td><td>Entire company</td></tr> </table> <br> <table class='role-setting'> <caption><b>Professional / Enterprise plan</b></caption> <tr><th><b>Value</b></th><th><b>Description</b></th></tr> <tr><td>`1`</td><td>Owner only</td></tr> <tr><td>`3`</td><td>Owner&#39;s visibility group</td></tr> <tr><td>`5`</td><td>Owner&#39;s visibility group and sub-groups</td></tr> <tr><td>`7`</td><td>Entire company</td></tr> </table> <br> Read more about visibility groups <a href='https://support.pipedrive.com/en/article/visibility-groups'>here</a>.
   */
  function AddOrUpdateRoleSettingRequest(settingKey, value) {
    (0, _classCallCheck2["default"])(this, AddOrUpdateRoleSettingRequest);
    AddOrUpdateRoleSettingRequest.initialize(this, settingKey, value);
  }

  /**
   * Initializes the fields of this object.
   * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
   * Only for internal use.
   */
  (0, _createClass2["default"])(AddOrUpdateRoleSettingRequest, null, [{
    key: "initialize",
    value: function initialize(obj, settingKey, value) {
      obj['setting_key'] = settingKey;
      obj['value'] = value;
    }

    /**
     * Constructs a <code>AddOrUpdateRoleSettingRequest</code> from a plain JavaScript object, optionally creating a new instance.
     * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
     * @param {Object} data The plain JavaScript object bearing properties of interest.
     * @param {module:model/AddOrUpdateRoleSettingRequest} obj Optional instance to populate.
     * @return {module:model/AddOrUpdateRoleSettingRequest} The populated <code>AddOrUpdateRoleSettingRequest</code> instance.
     */
  }, {
    key: "constructFromObject",
    value: function constructFromObject(data, obj) {
      if (data) {
        obj = obj || new AddOrUpdateRoleSettingRequest();
        if (data.hasOwnProperty('setting_key')) {
          obj['setting_key'] = _ApiClient["default"].convertToType(data['setting_key'], 'String');
          delete data['setting_key'];
        }
        if (data.hasOwnProperty('value')) {
          obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number');
          delete data['value'];
        }
        if (Object.keys(data).length > 0) {
          Object.assign(obj, data);
        }
      }
      return obj;
    }
  }]);
  return AddOrUpdateRoleSettingRequest;
}();
/**
 * @member {module:model/AddOrUpdateRoleSettingRequest.SettingKeyEnum} setting_key
 */
AddOrUpdateRoleSettingRequest.prototype['setting_key'] = undefined;

/**
 * Possible values for the `default_visibility` setting depending on the subscription plan:<br> <table class='role-setting'> <caption><b>Essential / Advanced plan</b></caption> <tr><th><b>Value</b></th><th><b>Description</b></th></tr> <tr><td>`1`</td><td>Owner & Followers</td></tr> <tr><td>`3`</td><td>Entire company</td></tr> </table> <br> <table class='role-setting'> <caption><b>Professional / Enterprise plan</b></caption> <tr><th><b>Value</b></th><th><b>Description</b></th></tr> <tr><td>`1`</td><td>Owner only</td></tr> <tr><td>`3`</td><td>Owner&#39;s visibility group</td></tr> <tr><td>`5`</td><td>Owner&#39;s visibility group and sub-groups</td></tr> <tr><td>`7`</td><td>Entire company</td></tr> </table> <br> Read more about visibility groups <a href='https://support.pipedrive.com/en/article/visibility-groups'>here</a>.
 * @member {module:model/AddOrUpdateRoleSettingRequest.ValueEnum} value
 */
AddOrUpdateRoleSettingRequest.prototype['value'] = undefined;

/**
 * Allowed values for the <code>setting_key</code> property.
 * @enum {String}
 * @readonly
 */
AddOrUpdateRoleSettingRequest['SettingKeyEnum'] = {
  /**
   * value: "deal_default_visibility"
   * @const
   */
  "deal_default_visibility": "deal_default_visibility",
  /**
   * value: "lead_default_visibility"
   * @const
   */
  "lead_default_visibility": "lead_default_visibility",
  /**
   * value: "org_default_visibility"
   * @const
   */
  "org_default_visibility": "org_default_visibility",
  /**
   * value: "person_default_visibility"
   * @const
   */
  "person_default_visibility": "person_default_visibility",
  /**
   * value: "product_default_visibility"
   * @const
   */
  "product_default_visibility": "product_default_visibility"
};

/**
 * Allowed values for the <code>value</code> property.
 * @enum {Number}
 * @readonly
 */
AddOrUpdateRoleSettingRequest['ValueEnum'] = {
  /**
   * value: 1
   * @const
   */
  "1": 1,
  /**
   * value: 3
   * @const
   */
  "3": 3,
  /**
   * value: 5
   * @const
   */
  "5": 5,
  /**
   * value: 7
   * @const
   */
  "7": 7
};
var _default = AddOrUpdateRoleSettingRequest;
exports["default"] = _default;