pipedrive 21.0.0 → 21.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _AdditionalDataWithCursorPagination = _interopRequireDefault(require("./AdditionalDataWithCursorPagination"));
12
+ var _PersonsCollectionResponseObject = _interopRequireDefault(require("./PersonsCollectionResponseObject"));
13
+ /**
14
+ * Pipedrive API v1
15
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16
+ *
17
+ * The version of the OpenAPI document: 1.0.0
18
+ *
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * The InlineResponse2002 model module.
27
+ * @module model/InlineResponse2002
28
+ * @version 1.0.0
29
+ */
30
+ var InlineResponse2002 = /*#__PURE__*/function () {
31
+ /**
32
+ * Constructs a new <code>InlineResponse2002</code>.
33
+ * @alias module:model/InlineResponse2002
34
+ */
35
+ function InlineResponse2002() {
36
+ (0, _classCallCheck2["default"])(this, InlineResponse2002);
37
+ InlineResponse2002.initialize(this);
38
+ }
39
+
40
+ /**
41
+ * Initializes the fields of this object.
42
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
43
+ * Only for internal use.
44
+ */
45
+ (0, _createClass2["default"])(InlineResponse2002, null, [{
46
+ key: "initialize",
47
+ value: function initialize(obj) {}
48
+
49
+ /**
50
+ * Constructs a <code>InlineResponse2002</code> from a plain JavaScript object, optionally creating a new instance.
51
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
52
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
53
+ * @param {module:model/InlineResponse2002} obj Optional instance to populate.
54
+ * @return {module:model/InlineResponse2002} The populated <code>InlineResponse2002</code> instance.
55
+ */
56
+ }, {
57
+ key: "constructFromObject",
58
+ value: function constructFromObject(data, obj) {
59
+ if (data) {
60
+ obj = obj || new InlineResponse2002();
61
+ if (data.hasOwnProperty('success')) {
62
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
63
+ delete data['success'];
64
+ }
65
+ if (data.hasOwnProperty('data')) {
66
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_PersonsCollectionResponseObject["default"]]);
67
+ delete data['data'];
68
+ }
69
+ if (data.hasOwnProperty('additional_data')) {
70
+ obj['additional_data'] = _AdditionalDataWithCursorPagination["default"].constructFromObject(data['additional_data']);
71
+ delete data['additional_data'];
72
+ }
73
+ if (Object.keys(data).length > 0) {
74
+ Object.assign(obj, data);
75
+ }
76
+ }
77
+ return obj;
78
+ }
79
+ }]);
80
+ return InlineResponse2002;
81
+ }();
82
+ /**
83
+ * @member {Boolean} success
84
+ */
85
+ InlineResponse2002.prototype['success'] = undefined;
86
+
87
+ /**
88
+ * @member {Array.<module:model/PersonsCollectionResponseObject>} data
89
+ */
90
+ InlineResponse2002.prototype['data'] = undefined;
91
+
92
+ /**
93
+ * @member {module:model/AdditionalDataWithCursorPagination} additional_data
94
+ */
95
+ InlineResponse2002.prototype['additional_data'] = undefined;
96
+ var _default = InlineResponse2002;
97
+ exports["default"] = _default;
@@ -336,7 +336,7 @@ OrganizationItem.prototype['update_time'] = undefined;
336
336
  OrganizationItem.prototype['visible_to'] = undefined;
337
337
 
338
338
  /**
339
- * The ID of the label
339
+ * The label assigned to the organization
340
340
  * @member {Number} label
341
341
  */
342
342
  OrganizationItem.prototype['label'] = undefined;
@@ -348,7 +348,7 @@ OrganizationItem.prototype['label'] = undefined;
348
348
  OrganizationItem.prototype['owner_name'] = undefined;
349
349
 
350
350
  /**
351
- * The BCC email of the organization
351
+ * The BCC email associated with the organization
352
352
  * @member {String} cc_email
353
353
  */
354
354
  OrganizationItem.prototype['cc_email'] = undefined;
@@ -618,7 +618,7 @@ _BaseOrganizationItemWithEditNameFlag["default"].prototype['update_time'] = unde
618
618
  */
619
619
  _BaseOrganizationItemWithEditNameFlag["default"].prototype['visible_to'] = undefined;
620
620
  /**
621
- * The ID of the label
621
+ * The label assigned to the organization
622
622
  * @member {Number} label
623
623
  */
624
624
  _BaseOrganizationItemWithEditNameFlag["default"].prototype['label'] = undefined;
@@ -628,7 +628,7 @@ _BaseOrganizationItemWithEditNameFlag["default"].prototype['label'] = undefined;
628
628
  */
629
629
  _BaseOrganizationItemWithEditNameFlag["default"].prototype['owner_name'] = undefined;
630
630
  /**
631
- * The BCC email of the organization
631
+ * The BCC email associated with the organization
632
632
  * @member {String} cc_email
633
633
  */
634
634
  _BaseOrganizationItemWithEditNameFlag["default"].prototype['cc_email'] = undefined;
@@ -0,0 +1,394 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _OrganizationAddressInfo = _interopRequireDefault(require("./OrganizationAddressInfo"));
12
+ var _OrganizationsCollectionResponseObjectAllOf = _interopRequireDefault(require("./OrganizationsCollectionResponseObjectAllOf"));
13
+ /**
14
+ * Pipedrive API v1
15
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16
+ *
17
+ * The version of the OpenAPI document: 1.0.0
18
+ *
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * The OrganizationsCollectionResponseObject model module.
27
+ * @module model/OrganizationsCollectionResponseObject
28
+ * @version 1.0.0
29
+ */
30
+ var OrganizationsCollectionResponseObject = /*#__PURE__*/function () {
31
+ /**
32
+ * Constructs a new <code>OrganizationsCollectionResponseObject</code>.
33
+ * @alias module:model/OrganizationsCollectionResponseObject
34
+ * @implements module:model/OrganizationAddressInfo
35
+ * @implements module:model/OrganizationsCollectionResponseObjectAllOf
36
+ */
37
+ function OrganizationsCollectionResponseObject() {
38
+ (0, _classCallCheck2["default"])(this, OrganizationsCollectionResponseObject);
39
+ _OrganizationAddressInfo["default"].initialize(this);
40
+ _OrganizationsCollectionResponseObjectAllOf["default"].initialize(this);
41
+ OrganizationsCollectionResponseObject.initialize(this);
42
+ }
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
+ (0, _createClass2["default"])(OrganizationsCollectionResponseObject, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj) {}
52
+
53
+ /**
54
+ * Constructs a <code>OrganizationsCollectionResponseObject</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/OrganizationsCollectionResponseObject} obj Optional instance to populate.
58
+ * @return {module:model/OrganizationsCollectionResponseObject} The populated <code>OrganizationsCollectionResponseObject</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new OrganizationsCollectionResponseObject();
65
+ _OrganizationAddressInfo["default"].constructFromObject(data, obj);
66
+ _OrganizationsCollectionResponseObjectAllOf["default"].constructFromObject(data, obj);
67
+ if (data.hasOwnProperty('address')) {
68
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
69
+ delete data['address'];
70
+ }
71
+ if (data.hasOwnProperty('address_subpremise')) {
72
+ obj['address_subpremise'] = _ApiClient["default"].convertToType(data['address_subpremise'], 'String');
73
+ delete data['address_subpremise'];
74
+ }
75
+ if (data.hasOwnProperty('address_street_number')) {
76
+ obj['address_street_number'] = _ApiClient["default"].convertToType(data['address_street_number'], 'String');
77
+ delete data['address_street_number'];
78
+ }
79
+ if (data.hasOwnProperty('address_route')) {
80
+ obj['address_route'] = _ApiClient["default"].convertToType(data['address_route'], 'String');
81
+ delete data['address_route'];
82
+ }
83
+ if (data.hasOwnProperty('address_sublocality')) {
84
+ obj['address_sublocality'] = _ApiClient["default"].convertToType(data['address_sublocality'], 'String');
85
+ delete data['address_sublocality'];
86
+ }
87
+ if (data.hasOwnProperty('address_locality')) {
88
+ obj['address_locality'] = _ApiClient["default"].convertToType(data['address_locality'], 'String');
89
+ delete data['address_locality'];
90
+ }
91
+ if (data.hasOwnProperty('address_admin_area_level_1')) {
92
+ obj['address_admin_area_level_1'] = _ApiClient["default"].convertToType(data['address_admin_area_level_1'], 'String');
93
+ delete data['address_admin_area_level_1'];
94
+ }
95
+ if (data.hasOwnProperty('address_admin_area_level_2')) {
96
+ obj['address_admin_area_level_2'] = _ApiClient["default"].convertToType(data['address_admin_area_level_2'], 'String');
97
+ delete data['address_admin_area_level_2'];
98
+ }
99
+ if (data.hasOwnProperty('address_country')) {
100
+ obj['address_country'] = _ApiClient["default"].convertToType(data['address_country'], 'String');
101
+ delete data['address_country'];
102
+ }
103
+ if (data.hasOwnProperty('address_postal_code')) {
104
+ obj['address_postal_code'] = _ApiClient["default"].convertToType(data['address_postal_code'], 'String');
105
+ delete data['address_postal_code'];
106
+ }
107
+ if (data.hasOwnProperty('address_formatted_address')) {
108
+ obj['address_formatted_address'] = _ApiClient["default"].convertToType(data['address_formatted_address'], 'String');
109
+ delete data['address_formatted_address'];
110
+ }
111
+ if (data.hasOwnProperty('id')) {
112
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
113
+ delete data['id'];
114
+ }
115
+ if (data.hasOwnProperty('active_flag')) {
116
+ obj['active_flag'] = _ApiClient["default"].convertToType(data['active_flag'], 'Boolean');
117
+ delete data['active_flag'];
118
+ }
119
+ if (data.hasOwnProperty('owner_id')) {
120
+ obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
121
+ delete data['owner_id'];
122
+ }
123
+ if (data.hasOwnProperty('name')) {
124
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
125
+ delete data['name'];
126
+ }
127
+ if (data.hasOwnProperty('update_time')) {
128
+ obj['update_time'] = _ApiClient["default"].convertToType(data['update_time'], 'String');
129
+ delete data['update_time'];
130
+ }
131
+ if (data.hasOwnProperty('delete_time')) {
132
+ obj['delete_time'] = _ApiClient["default"].convertToType(data['delete_time'], 'String');
133
+ delete data['delete_time'];
134
+ }
135
+ if (data.hasOwnProperty('add_time')) {
136
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
137
+ delete data['add_time'];
138
+ }
139
+ if (data.hasOwnProperty('visible_to')) {
140
+ obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], 'String');
141
+ delete data['visible_to'];
142
+ }
143
+ if (data.hasOwnProperty('label')) {
144
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'Number');
145
+ delete data['label'];
146
+ }
147
+ if (data.hasOwnProperty('cc_email')) {
148
+ obj['cc_email'] = _ApiClient["default"].convertToType(data['cc_email'], 'String');
149
+ delete data['cc_email'];
150
+ }
151
+ if (Object.keys(data).length > 0) {
152
+ Object.assign(obj, data);
153
+ }
154
+ }
155
+ return obj;
156
+ }
157
+ }]);
158
+ return OrganizationsCollectionResponseObject;
159
+ }();
160
+ /**
161
+ * The full address of the organization
162
+ * @member {String} address
163
+ */
164
+ OrganizationsCollectionResponseObject.prototype['address'] = undefined;
165
+
166
+ /**
167
+ * The sub-premise of the organization location
168
+ * @member {String} address_subpremise
169
+ */
170
+ OrganizationsCollectionResponseObject.prototype['address_subpremise'] = undefined;
171
+
172
+ /**
173
+ * The street number of the organization location
174
+ * @member {String} address_street_number
175
+ */
176
+ OrganizationsCollectionResponseObject.prototype['address_street_number'] = undefined;
177
+
178
+ /**
179
+ * The route of the organization location
180
+ * @member {String} address_route
181
+ */
182
+ OrganizationsCollectionResponseObject.prototype['address_route'] = undefined;
183
+
184
+ /**
185
+ * The sub-locality of the organization location
186
+ * @member {String} address_sublocality
187
+ */
188
+ OrganizationsCollectionResponseObject.prototype['address_sublocality'] = undefined;
189
+
190
+ /**
191
+ * The locality of the organization location
192
+ * @member {String} address_locality
193
+ */
194
+ OrganizationsCollectionResponseObject.prototype['address_locality'] = undefined;
195
+
196
+ /**
197
+ * The level 1 admin area of the organization location
198
+ * @member {String} address_admin_area_level_1
199
+ */
200
+ OrganizationsCollectionResponseObject.prototype['address_admin_area_level_1'] = undefined;
201
+
202
+ /**
203
+ * The level 2 admin area of the organization location
204
+ * @member {String} address_admin_area_level_2
205
+ */
206
+ OrganizationsCollectionResponseObject.prototype['address_admin_area_level_2'] = undefined;
207
+
208
+ /**
209
+ * The country of the organization location
210
+ * @member {String} address_country
211
+ */
212
+ OrganizationsCollectionResponseObject.prototype['address_country'] = undefined;
213
+
214
+ /**
215
+ * The postal code of the organization location
216
+ * @member {String} address_postal_code
217
+ */
218
+ OrganizationsCollectionResponseObject.prototype['address_postal_code'] = undefined;
219
+
220
+ /**
221
+ * The formatted organization location
222
+ * @member {String} address_formatted_address
223
+ */
224
+ OrganizationsCollectionResponseObject.prototype['address_formatted_address'] = undefined;
225
+
226
+ /**
227
+ * The ID of the organization
228
+ * @member {Number} id
229
+ */
230
+ OrganizationsCollectionResponseObject.prototype['id'] = undefined;
231
+
232
+ /**
233
+ * Whether the organization is active or not
234
+ * @member {Boolean} active_flag
235
+ */
236
+ OrganizationsCollectionResponseObject.prototype['active_flag'] = undefined;
237
+
238
+ /**
239
+ * The ID of the owner
240
+ * @member {Number} owner_id
241
+ */
242
+ OrganizationsCollectionResponseObject.prototype['owner_id'] = undefined;
243
+
244
+ /**
245
+ * The name of the organization
246
+ * @member {String} name
247
+ */
248
+ OrganizationsCollectionResponseObject.prototype['name'] = undefined;
249
+
250
+ /**
251
+ * The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS
252
+ * @member {String} update_time
253
+ */
254
+ OrganizationsCollectionResponseObject.prototype['update_time'] = undefined;
255
+
256
+ /**
257
+ * The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS
258
+ * @member {String} delete_time
259
+ */
260
+ OrganizationsCollectionResponseObject.prototype['delete_time'] = undefined;
261
+
262
+ /**
263
+ * The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS
264
+ * @member {String} add_time
265
+ */
266
+ OrganizationsCollectionResponseObject.prototype['add_time'] = undefined;
267
+
268
+ /**
269
+ * The visibility group ID of who can see the organization
270
+ * @member {String} visible_to
271
+ */
272
+ OrganizationsCollectionResponseObject.prototype['visible_to'] = undefined;
273
+
274
+ /**
275
+ * The label assigned to the organization
276
+ * @member {Number} label
277
+ */
278
+ OrganizationsCollectionResponseObject.prototype['label'] = undefined;
279
+
280
+ /**
281
+ * The BCC email associated with the organization
282
+ * @member {String} cc_email
283
+ */
284
+ OrganizationsCollectionResponseObject.prototype['cc_email'] = undefined;
285
+
286
+ // Implement OrganizationAddressInfo interface:
287
+ /**
288
+ * The full address of the organization
289
+ * @member {String} address
290
+ */
291
+ _OrganizationAddressInfo["default"].prototype['address'] = undefined;
292
+ /**
293
+ * The sub-premise of the organization location
294
+ * @member {String} address_subpremise
295
+ */
296
+ _OrganizationAddressInfo["default"].prototype['address_subpremise'] = undefined;
297
+ /**
298
+ * The street number of the organization location
299
+ * @member {String} address_street_number
300
+ */
301
+ _OrganizationAddressInfo["default"].prototype['address_street_number'] = undefined;
302
+ /**
303
+ * The route of the organization location
304
+ * @member {String} address_route
305
+ */
306
+ _OrganizationAddressInfo["default"].prototype['address_route'] = undefined;
307
+ /**
308
+ * The sub-locality of the organization location
309
+ * @member {String} address_sublocality
310
+ */
311
+ _OrganizationAddressInfo["default"].prototype['address_sublocality'] = undefined;
312
+ /**
313
+ * The locality of the organization location
314
+ * @member {String} address_locality
315
+ */
316
+ _OrganizationAddressInfo["default"].prototype['address_locality'] = undefined;
317
+ /**
318
+ * The level 1 admin area of the organization location
319
+ * @member {String} address_admin_area_level_1
320
+ */
321
+ _OrganizationAddressInfo["default"].prototype['address_admin_area_level_1'] = undefined;
322
+ /**
323
+ * The level 2 admin area of the organization location
324
+ * @member {String} address_admin_area_level_2
325
+ */
326
+ _OrganizationAddressInfo["default"].prototype['address_admin_area_level_2'] = undefined;
327
+ /**
328
+ * The country of the organization location
329
+ * @member {String} address_country
330
+ */
331
+ _OrganizationAddressInfo["default"].prototype['address_country'] = undefined;
332
+ /**
333
+ * The postal code of the organization location
334
+ * @member {String} address_postal_code
335
+ */
336
+ _OrganizationAddressInfo["default"].prototype['address_postal_code'] = undefined;
337
+ /**
338
+ * The formatted organization location
339
+ * @member {String} address_formatted_address
340
+ */
341
+ _OrganizationAddressInfo["default"].prototype['address_formatted_address'] = undefined;
342
+ // Implement OrganizationsCollectionResponseObjectAllOf interface:
343
+ /**
344
+ * The ID of the organization
345
+ * @member {Number} id
346
+ */
347
+ _OrganizationsCollectionResponseObjectAllOf["default"].prototype['id'] = undefined;
348
+ /**
349
+ * Whether the organization is active or not
350
+ * @member {Boolean} active_flag
351
+ */
352
+ _OrganizationsCollectionResponseObjectAllOf["default"].prototype['active_flag'] = undefined;
353
+ /**
354
+ * The ID of the owner
355
+ * @member {Number} owner_id
356
+ */
357
+ _OrganizationsCollectionResponseObjectAllOf["default"].prototype['owner_id'] = undefined;
358
+ /**
359
+ * The name of the organization
360
+ * @member {String} name
361
+ */
362
+ _OrganizationsCollectionResponseObjectAllOf["default"].prototype['name'] = undefined;
363
+ /**
364
+ * The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS
365
+ * @member {String} update_time
366
+ */
367
+ _OrganizationsCollectionResponseObjectAllOf["default"].prototype['update_time'] = undefined;
368
+ /**
369
+ * The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS
370
+ * @member {String} delete_time
371
+ */
372
+ _OrganizationsCollectionResponseObjectAllOf["default"].prototype['delete_time'] = undefined;
373
+ /**
374
+ * The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS
375
+ * @member {String} add_time
376
+ */
377
+ _OrganizationsCollectionResponseObjectAllOf["default"].prototype['add_time'] = undefined;
378
+ /**
379
+ * The visibility group ID of who can see the organization
380
+ * @member {String} visible_to
381
+ */
382
+ _OrganizationsCollectionResponseObjectAllOf["default"].prototype['visible_to'] = undefined;
383
+ /**
384
+ * The label assigned to the organization
385
+ * @member {Number} label
386
+ */
387
+ _OrganizationsCollectionResponseObjectAllOf["default"].prototype['label'] = undefined;
388
+ /**
389
+ * The BCC email associated with the organization
390
+ * @member {String} cc_email
391
+ */
392
+ _OrganizationsCollectionResponseObjectAllOf["default"].prototype['cc_email'] = undefined;
393
+ var _default = OrganizationsCollectionResponseObject;
394
+ exports["default"] = _default;