pipedrive 12.0.1 → 12.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
14
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
+
16
+ var _AdditionalData = _interopRequireDefault(require("./AdditionalData"));
17
+
18
+ /**
19
+ * Pipedrive API v1
20
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
21
+ *
22
+ * The version of the OpenAPI document: 1.0.0
23
+ *
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+
31
+ /**
32
+ * The AdditionalDataWithPagination model module.
33
+ * @module model/AdditionalDataWithPagination
34
+ * @version 1.0.0
35
+ */
36
+ var AdditionalDataWithPagination = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>AdditionalDataWithPagination</code>.
39
+ * @alias module:model/AdditionalDataWithPagination
40
+ */
41
+ function AdditionalDataWithPagination() {
42
+ (0, _classCallCheck2["default"])(this, AdditionalDataWithPagination);
43
+ AdditionalDataWithPagination.initialize(this);
44
+ }
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+
51
+
52
+ (0, _createClass2["default"])(AdditionalDataWithPagination, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj) {}
55
+ /**
56
+ * Constructs a <code>AdditionalDataWithPagination</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
58
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
59
+ * @param {module:model/AdditionalDataWithPagination} obj Optional instance to populate.
60
+ * @return {module:model/AdditionalDataWithPagination} The populated <code>AdditionalDataWithPagination</code> instance.
61
+ */
62
+
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new AdditionalDataWithPagination();
68
+
69
+ if (data.hasOwnProperty('pagination')) {
70
+ obj['pagination'] = _ApiClient["default"].convertToType(data['pagination'], _AdditionalData["default"]);
71
+ delete data['pagination'];
72
+ }
73
+
74
+ if (Object.keys(data).length > 0) {
75
+ Object.assign(obj, data);
76
+ }
77
+ }
78
+
79
+ return obj;
80
+ }
81
+ }]);
82
+ return AdditionalDataWithPagination;
83
+ }();
84
+ /**
85
+ * Pagination details of the list
86
+ * @member {module:model/AdditionalData} pagination
87
+ */
88
+
89
+
90
+ AdditionalDataWithPagination.prototype['pagination'] = undefined;
91
+ var _default = AdditionalDataWithPagination;
92
+ exports["default"] = _default;
@@ -57,11 +57,6 @@ var BasicDeal = /*#__PURE__*/function () {
57
57
  if (data) {
58
58
  obj = obj || new BasicDeal();
59
59
 
60
- if (data.hasOwnProperty('title')) {
61
- obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
62
- delete data['title'];
63
- }
64
-
65
60
  if (data.hasOwnProperty('value')) {
66
61
  obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
67
62
  delete data['value'];
@@ -127,18 +122,12 @@ var BasicDeal = /*#__PURE__*/function () {
127
122
  }]);
128
123
  return BasicDeal;
129
124
  }();
130
- /**
131
- * Deal title
132
- * @member {String} title
133
- */
134
-
135
-
136
- BasicDeal.prototype['title'] = undefined;
137
125
  /**
138
126
  * Value of the deal. If omitted, value will be set to 0.
139
127
  * @member {String} value
140
128
  */
141
129
 
130
+
142
131
  BasicDeal.prototype['value'] = undefined;
143
132
  /**
144
133
  * Currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user.
@@ -147,25 +136,25 @@ BasicDeal.prototype['value'] = undefined;
147
136
 
148
137
  BasicDeal.prototype['currency'] = undefined;
149
138
  /**
150
- * ID of the user who will be marked as the owner of this deal. If omitted, the authorized user ID will be used.
139
+ * The ID of the User which will be the owner of the created Deal. If not provided, the user making the request will be used.
151
140
  * @member {Number} user_id
152
141
  */
153
142
 
154
143
  BasicDeal.prototype['user_id'] = undefined;
155
144
  /**
156
- * ID of the person this deal will be associated with
145
+ * The ID of a Person which this Deal will be linked to. If the Person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
157
146
  * @member {Number} person_id
158
147
  */
159
148
 
160
149
  BasicDeal.prototype['person_id'] = undefined;
161
150
  /**
162
- * ID of the organization this deal will be associated with
151
+ * The ID of an Organization which this Deal will be linked to. If the Organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
163
152
  * @member {Number} org_id
164
153
  */
165
154
 
166
155
  BasicDeal.prototype['org_id'] = undefined;
167
156
  /**
168
- * ID of the stage this deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
157
+ * The ID of a stage this Deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
169
158
  * @member {Number} stage_id
170
159
  */
171
160
 
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
14
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
+
16
+ /**
17
+ * Pipedrive API v1
18
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
19
+ *
20
+ * The version of the OpenAPI document: 1.0.0
21
+ *
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+
29
+ /**
30
+ * The DealTitleParameter model module.
31
+ * @module model/DealTitleParameter
32
+ * @version 1.0.0
33
+ */
34
+ var DealTitleParameter = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>DealTitleParameter</code>.
37
+ * @alias module:model/DealTitleParameter
38
+ */
39
+ function DealTitleParameter() {
40
+ (0, _classCallCheck2["default"])(this, DealTitleParameter);
41
+ DealTitleParameter.initialize(this);
42
+ }
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+
49
+
50
+ (0, _createClass2["default"])(DealTitleParameter, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>DealTitleParameter</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/DealTitleParameter} obj Optional instance to populate.
58
+ * @return {module:model/DealTitleParameter} The populated <code>DealTitleParameter</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new DealTitleParameter();
66
+
67
+ if (data.hasOwnProperty('title')) {
68
+ obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
69
+ delete data['title'];
70
+ }
71
+
72
+ if (Object.keys(data).length > 0) {
73
+ Object.assign(obj, data);
74
+ }
75
+ }
76
+
77
+ return obj;
78
+ }
79
+ }]);
80
+ return DealTitleParameter;
81
+ }();
82
+ /**
83
+ * Deal title
84
+ * @member {String} title
85
+ */
86
+
87
+
88
+ DealTitleParameter.prototype['title'] = undefined;
89
+ var _default = DealTitleParameter;
90
+ exports["default"] = _default;
@@ -13,7 +13,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
 
14
14
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
- var _AdditionalData = _interopRequireDefault(require("./AdditionalData"));
16
+ var _AdditionalDataWithPagination = _interopRequireDefault(require("./AdditionalDataWithPagination"));
17
17
 
18
18
  var _BaseComment = _interopRequireDefault(require("./BaseComment"));
19
19
 
@@ -79,7 +79,7 @@ var GetComments = /*#__PURE__*/function () {
79
79
  }
80
80
 
81
81
  if (data.hasOwnProperty('additional_data')) {
82
- obj['additional_data'] = _AdditionalData["default"].constructFromObject(data['additional_data']);
82
+ obj['additional_data'] = _AdditionalDataWithPagination["default"].constructFromObject(data['additional_data']);
83
83
  delete data['additional_data'];
84
84
  }
85
85
 
@@ -107,7 +107,7 @@ GetComments.prototype['success'] = undefined;
107
107
 
108
108
  GetComments.prototype['data'] = undefined;
109
109
  /**
110
- * @member {module:model/AdditionalData} additional_data
110
+ * @member {module:model/AdditionalDataWithPagination} additional_data
111
111
  */
112
112
 
113
113
  GetComments.prototype['additional_data'] = undefined;
@@ -13,7 +13,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
 
14
14
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
- var _AdditionalData = _interopRequireDefault(require("./AdditionalData"));
16
+ var _AdditionalDataWithPagination = _interopRequireDefault(require("./AdditionalDataWithPagination"));
17
17
 
18
18
  var _BaseNote = _interopRequireDefault(require("./BaseNote"));
19
19
 
@@ -79,7 +79,7 @@ var GetNotes = /*#__PURE__*/function () {
79
79
  }
80
80
 
81
81
  if (data.hasOwnProperty('additional_data')) {
82
- obj['additional_data'] = _AdditionalData["default"].constructFromObject(data['additional_data']);
82
+ obj['additional_data'] = _AdditionalDataWithPagination["default"].constructFromObject(data['additional_data']);
83
83
  delete data['additional_data'];
84
84
  }
85
85
 
@@ -107,7 +107,7 @@ GetNotes.prototype['success'] = undefined;
107
107
 
108
108
  GetNotes.prototype['data'] = undefined;
109
109
  /**
110
- * @member {module:model/AdditionalData} additional_data
110
+ * @member {module:model/AdditionalDataWithPagination} additional_data
111
111
  */
112
112
 
113
113
  GetNotes.prototype['additional_data'] = undefined;
@@ -19,6 +19,8 @@ var _BasicDeal = _interopRequireDefault(require("./BasicDeal"));
19
19
 
20
20
  var _NewDealAllOf = _interopRequireDefault(require("./NewDealAllOf"));
21
21
 
22
+ var _RequredTitleParameter = _interopRequireDefault(require("./RequredTitleParameter"));
23
+
22
24
  var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
23
25
 
24
26
  var _NewDeal$StatusEnum;
@@ -32,6 +34,7 @@ var NewDeal = /*#__PURE__*/function () {
32
34
  /**
33
35
  * Constructs a new <code>NewDeal</code>.
34
36
  * @alias module:model/NewDeal
37
+ * @implements module:model/RequredTitleParameter
35
38
  * @implements module:model/BasicDeal
36
39
  * @implements module:model/NewDealAllOf
37
40
  * @param title {String} Deal title
@@ -39,6 +42,8 @@ var NewDeal = /*#__PURE__*/function () {
39
42
  function NewDeal(title) {
40
43
  (0, _classCallCheck2["default"])(this, NewDeal);
41
44
 
45
+ _RequredTitleParameter["default"].initialize(this, title);
46
+
42
47
  _BasicDeal["default"].initialize(this);
43
48
 
44
49
  _NewDealAllOf["default"].initialize(this);
@@ -71,6 +76,8 @@ var NewDeal = /*#__PURE__*/function () {
71
76
  if (data) {
72
77
  obj = obj || new NewDeal();
73
78
 
79
+ _RequredTitleParameter["default"].constructFromObject(data, obj);
80
+
74
81
  _BasicDeal["default"].constructFromObject(data, obj);
75
82
 
76
83
  _NewDealAllOf["default"].constructFromObject(data, obj);
@@ -170,25 +177,25 @@ NewDeal.prototype['value'] = undefined;
170
177
 
171
178
  NewDeal.prototype['currency'] = undefined;
172
179
  /**
173
- * ID of the user who will be marked as the owner of this deal. If omitted, the authorized user ID will be used.
180
+ * The ID of the User which will be the owner of the created Deal. If not provided, the user making the request will be used.
174
181
  * @member {Number} user_id
175
182
  */
176
183
 
177
184
  NewDeal.prototype['user_id'] = undefined;
178
185
  /**
179
- * ID of the person this deal will be associated with
186
+ * The ID of a Person which this Deal will be linked to. If the Person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
180
187
  * @member {Number} person_id
181
188
  */
182
189
 
183
190
  NewDeal.prototype['person_id'] = undefined;
184
191
  /**
185
- * ID of the organization this deal will be associated with
192
+ * The ID of an Organization which this Deal will be linked to. If the Organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
186
193
  * @member {Number} org_id
187
194
  */
188
195
 
189
196
  NewDeal.prototype['org_id'] = undefined;
190
197
  /**
191
- * ID of the stage this deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
198
+ * The ID of a stage this Deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
192
199
  * @member {Number} stage_id
193
200
  */
194
201
 
@@ -228,14 +235,15 @@ NewDeal.prototype['visible_to'] = undefined;
228
235
  * @member {String} add_time
229
236
  */
230
237
 
231
- NewDeal.prototype['add_time'] = undefined; // Implement BasicDeal interface:
238
+ NewDeal.prototype['add_time'] = undefined; // Implement RequredTitleParameter interface:
232
239
 
233
240
  /**
234
241
  * Deal title
235
242
  * @member {String} title
236
243
  */
237
244
 
238
- _BasicDeal["default"].prototype['title'] = undefined;
245
+ _RequredTitleParameter["default"].prototype['title'] = undefined; // Implement BasicDeal interface:
246
+
239
247
  /**
240
248
  * Value of the deal. If omitted, value will be set to 0.
241
249
  * @member {String} value
@@ -249,25 +257,25 @@ _BasicDeal["default"].prototype['value'] = undefined;
249
257
 
250
258
  _BasicDeal["default"].prototype['currency'] = undefined;
251
259
  /**
252
- * ID of the user who will be marked as the owner of this deal. If omitted, the authorized user ID will be used.
260
+ * The ID of the User which will be the owner of the created Deal. If not provided, the user making the request will be used.
253
261
  * @member {Number} user_id
254
262
  */
255
263
 
256
264
  _BasicDeal["default"].prototype['user_id'] = undefined;
257
265
  /**
258
- * ID of the person this deal will be associated with
266
+ * The ID of a Person which this Deal will be linked to. If the Person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
259
267
  * @member {Number} person_id
260
268
  */
261
269
 
262
270
  _BasicDeal["default"].prototype['person_id'] = undefined;
263
271
  /**
264
- * ID of the organization this deal will be associated with
272
+ * The ID of an Organization which this Deal will be linked to. If the Organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
265
273
  * @member {Number} org_id
266
274
  */
267
275
 
268
276
  _BasicDeal["default"].prototype['org_id'] = undefined;
269
277
  /**
270
- * ID of the stage this deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
278
+ * The ID of a stage this Deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
271
279
  * @member {Number} stage_id
272
280
  */
273
281
 
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
14
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
+
16
+ /**
17
+ * Pipedrive API v1
18
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
19
+ *
20
+ * The version of the OpenAPI document: 1.0.0
21
+ *
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+
29
+ /**
30
+ * The RequredTitleParameter model module.
31
+ * @module model/RequredTitleParameter
32
+ * @version 1.0.0
33
+ */
34
+ var RequredTitleParameter = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>RequredTitleParameter</code>.
37
+ * @alias module:model/RequredTitleParameter
38
+ * @param title {String} Deal title
39
+ */
40
+ function RequredTitleParameter(title) {
41
+ (0, _classCallCheck2["default"])(this, RequredTitleParameter);
42
+ RequredTitleParameter.initialize(this, title);
43
+ }
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+
50
+
51
+ (0, _createClass2["default"])(RequredTitleParameter, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, title) {
54
+ obj['title'] = title;
55
+ }
56
+ /**
57
+ * Constructs a <code>RequredTitleParameter</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
59
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
60
+ * @param {module:model/RequredTitleParameter} obj Optional instance to populate.
61
+ * @return {module:model/RequredTitleParameter} The populated <code>RequredTitleParameter</code> instance.
62
+ */
63
+
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new RequredTitleParameter();
69
+
70
+ if (data.hasOwnProperty('title')) {
71
+ obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
72
+ delete data['title'];
73
+ }
74
+
75
+ if (Object.keys(data).length > 0) {
76
+ Object.assign(obj, data);
77
+ }
78
+ }
79
+
80
+ return obj;
81
+ }
82
+ }]);
83
+ return RequredTitleParameter;
84
+ }();
85
+ /**
86
+ * Deal title
87
+ * @member {String} title
88
+ */
89
+
90
+
91
+ RequredTitleParameter.prototype['title'] = undefined;
92
+ var _default = RequredTitleParameter;
93
+ exports["default"] = _default;