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/PermissionSetsItem.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 PermissionSetsItem model module.
 * @module model/PermissionSetsItem
 * @version 1.0.0
 */
var PermissionSetsItem = /*#__PURE__*/function () {
  /**
   * Constructs a new <code>PermissionSetsItem</code>.
   * @alias module:model/PermissionSetsItem
   */
  function PermissionSetsItem() {
    (0, _classCallCheck2["default"])(this, PermissionSetsItem);
    PermissionSetsItem.initialize(this);
  }

  /**
   * 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"])(PermissionSetsItem, null, [{
    key: "initialize",
    value: function initialize(obj) {}

    /**
     * Constructs a <code>PermissionSetsItem</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/PermissionSetsItem} obj Optional instance to populate.
     * @return {module:model/PermissionSetsItem} The populated <code>PermissionSetsItem</code> instance.
     */
  }, {
    key: "constructFromObject",
    value: function constructFromObject(data, obj) {
      if (data) {
        obj = obj || new PermissionSetsItem();
        if (data.hasOwnProperty('id')) {
          obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
          delete data['id'];
        }
        if (data.hasOwnProperty('name')) {
          obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
          delete data['name'];
        }
        if (data.hasOwnProperty('description')) {
          obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
          delete data['description'];
        }
        if (data.hasOwnProperty('app')) {
          obj['app'] = _ApiClient["default"].convertToType(data['app'], 'String');
          delete data['app'];
        }
        if (data.hasOwnProperty('type')) {
          obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
          delete data['type'];
        }
        if (data.hasOwnProperty('assignment_count')) {
          obj['assignment_count'] = _ApiClient["default"].convertToType(data['assignment_count'], 'Number');
          delete data['assignment_count'];
        }
        if (Object.keys(data).length > 0) {
          Object.assign(obj, data);
        }
      }
      return obj;
    }
  }]);
  return PermissionSetsItem;
}();
/**
 * The ID of user permission set
 * @member {String} id
 */
PermissionSetsItem.prototype['id'] = undefined;

/**
 * The name of the permission set
 * @member {String} name
 */
PermissionSetsItem.prototype['name'] = undefined;

/**
 * The description of the permission set
 * @member {String} description
 */
PermissionSetsItem.prototype['description'] = undefined;

/**
 * The app that permission set belongs to
 * @member {module:model/PermissionSetsItem.AppEnum} app
 */
PermissionSetsItem.prototype['app'] = undefined;

/**
 * The type of permission set
 * @member {module:model/PermissionSetsItem.TypeEnum} type
 */
PermissionSetsItem.prototype['type'] = undefined;

/**
 * The number of users assigned to this permission set
 * @member {Number} assignment_count
 */
PermissionSetsItem.prototype['assignment_count'] = undefined;

/**
 * Allowed values for the <code>app</code> property.
 * @enum {String}
 * @readonly
 */
PermissionSetsItem['AppEnum'] = {
  /**
   * value: "sales"
   * @const
   */
  "sales": "sales",
  /**
   * value: "projects"
   * @const
   */
  "projects": "projects",
  /**
   * value: "campaigns"
   * @const
   */
  "campaigns": "campaigns",
  /**
   * value: "global"
   * @const
   */
  "global": "global",
  /**
   * value: "account_settings"
   * @const
   */
  "account_settings": "account_settings"
};

/**
 * Allowed values for the <code>type</code> property.
 * @enum {String}
 * @readonly
 */
PermissionSetsItem['TypeEnum'] = {
  /**
   * value: "admin"
   * @const
   */
  "admin": "admin",
  /**
   * value: "manager"
   * @const
   */
  "manager": "manager",
  /**
   * value: "regular"
   * @const
   */
  "regular": "regular",
  /**
   * value: "custom"
   * @const
   */
  "custom": "custom"
};
var _default = PermissionSetsItem;
exports["default"] = _default;