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/fintechfuel/node_modules/pipedrive/dist/model/AddNoteRequest.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 _AddNoteRequestAllOf = _interopRequireDefault(require("./AddNoteRequestAllOf"));
var _NoteParams = _interopRequireDefault(require("./NoteParams"));
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 AddNoteRequest model module.
 * @module model/AddNoteRequest
 * @version 1.0.0
 */
var AddNoteRequest = /*#__PURE__*/function () {
  /**
   * Constructs a new <code>AddNoteRequest</code>.
   * @alias module:model/AddNoteRequest
   * @implements module:model/AddNoteRequestAllOf
   * @implements module:model/NoteParams
   * @param content {String} The content of the note in HTML format. Subject to sanitization on the back-end.
   */
  function AddNoteRequest(content) {
    (0, _classCallCheck2["default"])(this, AddNoteRequest);
    _AddNoteRequestAllOf["default"].initialize(this, content);
    _NoteParams["default"].initialize(this);
    AddNoteRequest.initialize(this, content);
  }

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

    /**
     * Constructs a <code>AddNoteRequest</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/AddNoteRequest} obj Optional instance to populate.
     * @return {module:model/AddNoteRequest} The populated <code>AddNoteRequest</code> instance.
     */
  }, {
    key: "constructFromObject",
    value: function constructFromObject(data, obj) {
      if (data) {
        obj = obj || new AddNoteRequest();
        _AddNoteRequestAllOf["default"].constructFromObject(data, obj);
        _NoteParams["default"].constructFromObject(data, obj);
        if (data.hasOwnProperty('content')) {
          obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String');
          delete data['content'];
        }
        if (data.hasOwnProperty('lead_id')) {
          obj['lead_id'] = _ApiClient["default"].convertToType(data['lead_id'], 'String');
          delete data['lead_id'];
        }
        if (data.hasOwnProperty('deal_id')) {
          obj['deal_id'] = _ApiClient["default"].convertToType(data['deal_id'], 'Number');
          delete data['deal_id'];
        }
        if (data.hasOwnProperty('person_id')) {
          obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
          delete data['person_id'];
        }
        if (data.hasOwnProperty('org_id')) {
          obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
          delete data['org_id'];
        }
        if (data.hasOwnProperty('user_id')) {
          obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
          delete data['user_id'];
        }
        if (data.hasOwnProperty('add_time')) {
          obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
          delete data['add_time'];
        }
        if (data.hasOwnProperty('pinned_to_lead_flag')) {
          obj['pinned_to_lead_flag'] = _ApiClient["default"].convertToType(data['pinned_to_lead_flag'], _NumberBoolean["default"]);
          delete data['pinned_to_lead_flag'];
        }
        if (data.hasOwnProperty('pinned_to_deal_flag')) {
          obj['pinned_to_deal_flag'] = _ApiClient["default"].convertToType(data['pinned_to_deal_flag'], _NumberBoolean["default"]);
          delete data['pinned_to_deal_flag'];
        }
        if (data.hasOwnProperty('pinned_to_organization_flag')) {
          obj['pinned_to_organization_flag'] = _ApiClient["default"].convertToType(data['pinned_to_organization_flag'], _NumberBoolean["default"]);
          delete data['pinned_to_organization_flag'];
        }
        if (data.hasOwnProperty('pinned_to_person_flag')) {
          obj['pinned_to_person_flag'] = _ApiClient["default"].convertToType(data['pinned_to_person_flag'], _NumberBoolean["default"]);
          delete data['pinned_to_person_flag'];
        }
        if (Object.keys(data).length > 0) {
          Object.assign(obj, data);
        }
      }
      return obj;
    }
  }]);
  return AddNoteRequest;
}();
/**
 * The content of the note in HTML format. Subject to sanitization on the back-end.
 * @member {String} content
 */
AddNoteRequest.prototype['content'] = undefined;

/**
 * The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified.
 * @member {String} lead_id
 */
AddNoteRequest.prototype['lead_id'] = undefined;

/**
 * The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id`) is specified.
 * @member {Number} deal_id
 */
AddNoteRequest.prototype['deal_id'] = undefined;

/**
 * The ID of the person this note will be attached to. This property is required unless one of (`deal_id/lead_id/org_id`) is specified.
 * @member {Number} person_id
 */
AddNoteRequest.prototype['person_id'] = undefined;

/**
 * The ID of the organization this note will be attached to. This property is required unless one of (`deal_id/lead_id/person_id`) is specified.
 * @member {Number} org_id
 */
AddNoteRequest.prototype['org_id'] = undefined;

/**
 * The ID of the user who will be marked as the author of the note. Only an admin can change the author.
 * @member {Number} user_id
 */
AddNoteRequest.prototype['user_id'] = undefined;

/**
 * The optional creation date & time of the note in UTC. Can be set in the past or in the future. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
 * @member {String} add_time
 */
AddNoteRequest.prototype['add_time'] = undefined;

/**
 * If set, the results are filtered by note to lead pinning state (`lead_id` is also required)
 * @member {module:model/NumberBoolean} pinned_to_lead_flag
 */
AddNoteRequest.prototype['pinned_to_lead_flag'] = undefined;

/**
 * If set, the results are filtered by note to deal pinning state (`deal_id` is also required)
 * @member {module:model/NumberBoolean} pinned_to_deal_flag
 */
AddNoteRequest.prototype['pinned_to_deal_flag'] = undefined;

/**
 * If set, the results are filtered by note to organization pinning state (`org_id` is also required)
 * @member {module:model/NumberBoolean} pinned_to_organization_flag
 */
AddNoteRequest.prototype['pinned_to_organization_flag'] = undefined;

/**
 * If set, the results are filtered by note to person pinning state (`person_id` is also required)
 * @member {module:model/NumberBoolean} pinned_to_person_flag
 */
AddNoteRequest.prototype['pinned_to_person_flag'] = undefined;

// Implement AddNoteRequestAllOf interface:
/**
 * The content of the note in HTML format. Subject to sanitization on the back-end.
 * @member {String} content
 */
_AddNoteRequestAllOf["default"].prototype['content'] = undefined;
/**
 * The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified.
 * @member {String} lead_id
 */
_AddNoteRequestAllOf["default"].prototype['lead_id'] = undefined;
/**
 * The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id`) is specified.
 * @member {Number} deal_id
 */
_AddNoteRequestAllOf["default"].prototype['deal_id'] = undefined;
/**
 * The ID of the person this note will be attached to. This property is required unless one of (`deal_id/lead_id/org_id`) is specified.
 * @member {Number} person_id
 */
_AddNoteRequestAllOf["default"].prototype['person_id'] = undefined;
/**
 * The ID of the organization this note will be attached to. This property is required unless one of (`deal_id/lead_id/person_id`) is specified.
 * @member {Number} org_id
 */
_AddNoteRequestAllOf["default"].prototype['org_id'] = undefined;
// Implement NoteParams interface:
/**
 * The ID of the user who will be marked as the author of the note. Only an admin can change the author.
 * @member {Number} user_id
 */
_NoteParams["default"].prototype['user_id'] = undefined;
/**
 * The optional creation date & time of the note in UTC. Can be set in the past or in the future. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
 * @member {String} add_time
 */
_NoteParams["default"].prototype['add_time'] = undefined;
/**
 * If set, the results are filtered by note to lead pinning state (`lead_id` is also required)
 * @member {module:model/NumberBoolean} pinned_to_lead_flag
 */
_NoteParams["default"].prototype['pinned_to_lead_flag'] = undefined;
/**
 * If set, the results are filtered by note to deal pinning state (`deal_id` is also required)
 * @member {module:model/NumberBoolean} pinned_to_deal_flag
 */
_NoteParams["default"].prototype['pinned_to_deal_flag'] = undefined;
/**
 * If set, the results are filtered by note to organization pinning state (`org_id` is also required)
 * @member {module:model/NumberBoolean} pinned_to_organization_flag
 */
_NoteParams["default"].prototype['pinned_to_organization_flag'] = undefined;
/**
 * If set, the results are filtered by note to person pinning state (`person_id` is also required)
 * @member {module:model/NumberBoolean} pinned_to_person_flag
 */
_NoteParams["default"].prototype['pinned_to_person_flag'] = undefined;
var _default = AddNoteRequest;
exports["default"] = _default;