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

    /**
     * Constructs a <code>UpdateMailThreadDetailsRequest</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/UpdateMailThreadDetailsRequest} obj Optional instance to populate.
     * @return {module:model/UpdateMailThreadDetailsRequest} The populated <code>UpdateMailThreadDetailsRequest</code> instance.
     */
  }, {
    key: "constructFromObject",
    value: function constructFromObject(data, obj) {
      if (data) {
        obj = obj || new UpdateMailThreadDetailsRequest();
        if (data.hasOwnProperty('deal_id')) {
          obj['deal_id'] = _ApiClient["default"].convertToType(data['deal_id'], 'Number');
          delete data['deal_id'];
        }
        if (data.hasOwnProperty('lead_id')) {
          obj['lead_id'] = _ApiClient["default"].convertToType(data['lead_id'], 'String');
          delete data['lead_id'];
        }
        if (data.hasOwnProperty('shared_flag')) {
          obj['shared_flag'] = _ApiClient["default"].convertToType(data['shared_flag'], _NumberBoolean["default"]);
          delete data['shared_flag'];
        }
        if (data.hasOwnProperty('read_flag')) {
          obj['read_flag'] = _ApiClient["default"].convertToType(data['read_flag'], _NumberBoolean["default"]);
          delete data['read_flag'];
        }
        if (data.hasOwnProperty('archived_flag')) {
          obj['archived_flag'] = _ApiClient["default"].convertToType(data['archived_flag'], _NumberBoolean["default"]);
          delete data['archived_flag'];
        }
        if (Object.keys(data).length > 0) {
          obj['extra'] = data;
        }
      }
      return obj;
    }
  }]);
  return UpdateMailThreadDetailsRequest;
}();
/**
 * The ID of the deal this thread is associated with
 * @member {Number} deal_id
 */
UpdateMailThreadDetailsRequest.prototype['deal_id'] = undefined;

/**
 * The ID of the lead this thread is associated with
 * @member {String} lead_id
 */
UpdateMailThreadDetailsRequest.prototype['lead_id'] = undefined;

/**
 * Whether this thread is shared with other users in your company
 * @member {module:model/NumberBoolean} shared_flag
 */
UpdateMailThreadDetailsRequest.prototype['shared_flag'] = undefined;

/**
 * Whether this thread read or unread
 * @member {module:model/NumberBoolean} read_flag
 */
UpdateMailThreadDetailsRequest.prototype['read_flag'] = undefined;

/**
 * Whether this thread is archived or not. You can only archive threads that belong to Inbox folder. Archived threads will disappear from Inbox.
 * @member {module:model/NumberBoolean} archived_flag
 */
UpdateMailThreadDetailsRequest.prototype['archived_flag'] = undefined;
var _default = UpdateMailThreadDetailsRequest;
exports["default"] = _default;