pipedrive 21.0.0 → 21.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -0
- package/dist/api/ActivitiesApi.js +2 -2
- package/dist/api/OrganizationsApi.js +71 -2
- package/dist/api/PersonsApi.js +71 -2
- package/dist/api/ProductsApi.js +2 -2
- package/dist/index.js +45 -10
- package/dist/model/BaseOrganizationItem.js +4 -4
- package/dist/model/BaseOrganizationItemFields.js +2 -2
- package/dist/model/BaseOrganizationItemWithEditNameFlag.js +4 -4
- package/dist/model/InlineResponse2001.js +97 -0
- package/dist/model/InlineResponse2002.js +97 -0
- package/dist/model/OrganizationItem.js +4 -4
- package/dist/model/OrganizationsCollectionResponseObject.js +394 -0
- package/dist/model/OrganizationsCollectionResponseObjectAllOf.js +168 -0
- package/dist/model/PersonsCollectionResponseObject.js +210 -0
- package/package.json +1 -1
@@ -0,0 +1,168 @@
|
|
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
|
+
/**
|
12
|
+
* Pipedrive API v1
|
13
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
14
|
+
*
|
15
|
+
* The version of the OpenAPI document: 1.0.0
|
16
|
+
*
|
17
|
+
*
|
18
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
19
|
+
* https://openapi-generator.tech
|
20
|
+
* Do not edit the class manually.
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
/**
|
24
|
+
* The OrganizationsCollectionResponseObjectAllOf model module.
|
25
|
+
* @module model/OrganizationsCollectionResponseObjectAllOf
|
26
|
+
* @version 1.0.0
|
27
|
+
*/
|
28
|
+
var OrganizationsCollectionResponseObjectAllOf = /*#__PURE__*/function () {
|
29
|
+
/**
|
30
|
+
* Constructs a new <code>OrganizationsCollectionResponseObjectAllOf</code>.
|
31
|
+
* @alias module:model/OrganizationsCollectionResponseObjectAllOf
|
32
|
+
*/
|
33
|
+
function OrganizationsCollectionResponseObjectAllOf() {
|
34
|
+
(0, _classCallCheck2["default"])(this, OrganizationsCollectionResponseObjectAllOf);
|
35
|
+
OrganizationsCollectionResponseObjectAllOf.initialize(this);
|
36
|
+
}
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Initializes the fields of this object.
|
40
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
41
|
+
* Only for internal use.
|
42
|
+
*/
|
43
|
+
(0, _createClass2["default"])(OrganizationsCollectionResponseObjectAllOf, null, [{
|
44
|
+
key: "initialize",
|
45
|
+
value: function initialize(obj) {}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Constructs a <code>OrganizationsCollectionResponseObjectAllOf</code> from a plain JavaScript object, optionally creating a new instance.
|
49
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
50
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
51
|
+
* @param {module:model/OrganizationsCollectionResponseObjectAllOf} obj Optional instance to populate.
|
52
|
+
* @return {module:model/OrganizationsCollectionResponseObjectAllOf} The populated <code>OrganizationsCollectionResponseObjectAllOf</code> instance.
|
53
|
+
*/
|
54
|
+
}, {
|
55
|
+
key: "constructFromObject",
|
56
|
+
value: function constructFromObject(data, obj) {
|
57
|
+
if (data) {
|
58
|
+
obj = obj || new OrganizationsCollectionResponseObjectAllOf();
|
59
|
+
if (data.hasOwnProperty('id')) {
|
60
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
61
|
+
delete data['id'];
|
62
|
+
}
|
63
|
+
if (data.hasOwnProperty('active_flag')) {
|
64
|
+
obj['active_flag'] = _ApiClient["default"].convertToType(data['active_flag'], 'Boolean');
|
65
|
+
delete data['active_flag'];
|
66
|
+
}
|
67
|
+
if (data.hasOwnProperty('owner_id')) {
|
68
|
+
obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
|
69
|
+
delete data['owner_id'];
|
70
|
+
}
|
71
|
+
if (data.hasOwnProperty('name')) {
|
72
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
73
|
+
delete data['name'];
|
74
|
+
}
|
75
|
+
if (data.hasOwnProperty('update_time')) {
|
76
|
+
obj['update_time'] = _ApiClient["default"].convertToType(data['update_time'], 'String');
|
77
|
+
delete data['update_time'];
|
78
|
+
}
|
79
|
+
if (data.hasOwnProperty('delete_time')) {
|
80
|
+
obj['delete_time'] = _ApiClient["default"].convertToType(data['delete_time'], 'String');
|
81
|
+
delete data['delete_time'];
|
82
|
+
}
|
83
|
+
if (data.hasOwnProperty('add_time')) {
|
84
|
+
obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
|
85
|
+
delete data['add_time'];
|
86
|
+
}
|
87
|
+
if (data.hasOwnProperty('visible_to')) {
|
88
|
+
obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], 'String');
|
89
|
+
delete data['visible_to'];
|
90
|
+
}
|
91
|
+
if (data.hasOwnProperty('label')) {
|
92
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'Number');
|
93
|
+
delete data['label'];
|
94
|
+
}
|
95
|
+
if (data.hasOwnProperty('cc_email')) {
|
96
|
+
obj['cc_email'] = _ApiClient["default"].convertToType(data['cc_email'], 'String');
|
97
|
+
delete data['cc_email'];
|
98
|
+
}
|
99
|
+
if (Object.keys(data).length > 0) {
|
100
|
+
Object.assign(obj, data);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
return obj;
|
104
|
+
}
|
105
|
+
}]);
|
106
|
+
return OrganizationsCollectionResponseObjectAllOf;
|
107
|
+
}();
|
108
|
+
/**
|
109
|
+
* The ID of the organization
|
110
|
+
* @member {Number} id
|
111
|
+
*/
|
112
|
+
OrganizationsCollectionResponseObjectAllOf.prototype['id'] = undefined;
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Whether the organization is active or not
|
116
|
+
* @member {Boolean} active_flag
|
117
|
+
*/
|
118
|
+
OrganizationsCollectionResponseObjectAllOf.prototype['active_flag'] = undefined;
|
119
|
+
|
120
|
+
/**
|
121
|
+
* The ID of the owner
|
122
|
+
* @member {Number} owner_id
|
123
|
+
*/
|
124
|
+
OrganizationsCollectionResponseObjectAllOf.prototype['owner_id'] = undefined;
|
125
|
+
|
126
|
+
/**
|
127
|
+
* The name of the organization
|
128
|
+
* @member {String} name
|
129
|
+
*/
|
130
|
+
OrganizationsCollectionResponseObjectAllOf.prototype['name'] = undefined;
|
131
|
+
|
132
|
+
/**
|
133
|
+
* The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS
|
134
|
+
* @member {String} update_time
|
135
|
+
*/
|
136
|
+
OrganizationsCollectionResponseObjectAllOf.prototype['update_time'] = undefined;
|
137
|
+
|
138
|
+
/**
|
139
|
+
* The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS
|
140
|
+
* @member {String} delete_time
|
141
|
+
*/
|
142
|
+
OrganizationsCollectionResponseObjectAllOf.prototype['delete_time'] = undefined;
|
143
|
+
|
144
|
+
/**
|
145
|
+
* The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS
|
146
|
+
* @member {String} add_time
|
147
|
+
*/
|
148
|
+
OrganizationsCollectionResponseObjectAllOf.prototype['add_time'] = undefined;
|
149
|
+
|
150
|
+
/**
|
151
|
+
* The visibility group ID of who can see the organization
|
152
|
+
* @member {String} visible_to
|
153
|
+
*/
|
154
|
+
OrganizationsCollectionResponseObjectAllOf.prototype['visible_to'] = undefined;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* The label assigned to the organization
|
158
|
+
* @member {Number} label
|
159
|
+
*/
|
160
|
+
OrganizationsCollectionResponseObjectAllOf.prototype['label'] = undefined;
|
161
|
+
|
162
|
+
/**
|
163
|
+
* The BCC email associated with the organization
|
164
|
+
* @member {String} cc_email
|
165
|
+
*/
|
166
|
+
OrganizationsCollectionResponseObjectAllOf.prototype['cc_email'] = undefined;
|
167
|
+
var _default = OrganizationsCollectionResponseObjectAllOf;
|
168
|
+
exports["default"] = _default;
|
@@ -0,0 +1,210 @@
|
|
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 _BasePersonItemPhone = _interopRequireDefault(require("./BasePersonItemPhone"));
|
12
|
+
var _BasicPersonEmail = _interopRequireDefault(require("./BasicPersonEmail"));
|
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 PersonsCollectionResponseObject model module.
|
27
|
+
* @module model/PersonsCollectionResponseObject
|
28
|
+
* @version 1.0.0
|
29
|
+
*/
|
30
|
+
var PersonsCollectionResponseObject = /*#__PURE__*/function () {
|
31
|
+
/**
|
32
|
+
* Constructs a new <code>PersonsCollectionResponseObject</code>.
|
33
|
+
* @alias module:model/PersonsCollectionResponseObject
|
34
|
+
*/
|
35
|
+
function PersonsCollectionResponseObject() {
|
36
|
+
(0, _classCallCheck2["default"])(this, PersonsCollectionResponseObject);
|
37
|
+
PersonsCollectionResponseObject.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"])(PersonsCollectionResponseObject, null, [{
|
46
|
+
key: "initialize",
|
47
|
+
value: function initialize(obj) {}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Constructs a <code>PersonsCollectionResponseObject</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/PersonsCollectionResponseObject} obj Optional instance to populate.
|
54
|
+
* @return {module:model/PersonsCollectionResponseObject} The populated <code>PersonsCollectionResponseObject</code> instance.
|
55
|
+
*/
|
56
|
+
}, {
|
57
|
+
key: "constructFromObject",
|
58
|
+
value: function constructFromObject(data, obj) {
|
59
|
+
if (data) {
|
60
|
+
obj = obj || new PersonsCollectionResponseObject();
|
61
|
+
if (data.hasOwnProperty('id')) {
|
62
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
63
|
+
delete data['id'];
|
64
|
+
}
|
65
|
+
if (data.hasOwnProperty('active_flag')) {
|
66
|
+
obj['active_flag'] = _ApiClient["default"].convertToType(data['active_flag'], 'Boolean');
|
67
|
+
delete data['active_flag'];
|
68
|
+
}
|
69
|
+
if (data.hasOwnProperty('owner_id')) {
|
70
|
+
obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
|
71
|
+
delete data['owner_id'];
|
72
|
+
}
|
73
|
+
if (data.hasOwnProperty('org_id')) {
|
74
|
+
obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
|
75
|
+
delete data['org_id'];
|
76
|
+
}
|
77
|
+
if (data.hasOwnProperty('name')) {
|
78
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
79
|
+
delete data['name'];
|
80
|
+
}
|
81
|
+
if (data.hasOwnProperty('email')) {
|
82
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], [_BasicPersonEmail["default"]]);
|
83
|
+
delete data['email'];
|
84
|
+
}
|
85
|
+
if (data.hasOwnProperty('phone')) {
|
86
|
+
obj['phone'] = _ApiClient["default"].convertToType(data['phone'], [_BasePersonItemPhone["default"]]);
|
87
|
+
delete data['phone'];
|
88
|
+
}
|
89
|
+
if (data.hasOwnProperty('update_time')) {
|
90
|
+
obj['update_time'] = _ApiClient["default"].convertToType(data['update_time'], 'String');
|
91
|
+
delete data['update_time'];
|
92
|
+
}
|
93
|
+
if (data.hasOwnProperty('delete_time')) {
|
94
|
+
obj['delete_time'] = _ApiClient["default"].convertToType(data['delete_time'], 'String');
|
95
|
+
delete data['delete_time'];
|
96
|
+
}
|
97
|
+
if (data.hasOwnProperty('add_time')) {
|
98
|
+
obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
|
99
|
+
delete data['add_time'];
|
100
|
+
}
|
101
|
+
if (data.hasOwnProperty('visible_to')) {
|
102
|
+
obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], 'String');
|
103
|
+
delete data['visible_to'];
|
104
|
+
}
|
105
|
+
if (data.hasOwnProperty('picture_id')) {
|
106
|
+
obj['picture_id'] = _ApiClient["default"].convertToType(data['picture_id'], 'Number');
|
107
|
+
delete data['picture_id'];
|
108
|
+
}
|
109
|
+
if (data.hasOwnProperty('label')) {
|
110
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'Number');
|
111
|
+
delete data['label'];
|
112
|
+
}
|
113
|
+
if (data.hasOwnProperty('cc_email')) {
|
114
|
+
obj['cc_email'] = _ApiClient["default"].convertToType(data['cc_email'], 'String');
|
115
|
+
delete data['cc_email'];
|
116
|
+
}
|
117
|
+
if (Object.keys(data).length > 0) {
|
118
|
+
Object.assign(obj, data);
|
119
|
+
}
|
120
|
+
}
|
121
|
+
return obj;
|
122
|
+
}
|
123
|
+
}]);
|
124
|
+
return PersonsCollectionResponseObject;
|
125
|
+
}();
|
126
|
+
/**
|
127
|
+
* The ID of the person
|
128
|
+
* @member {Number} id
|
129
|
+
*/
|
130
|
+
PersonsCollectionResponseObject.prototype['id'] = undefined;
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Whether the person is active or not
|
134
|
+
* @member {Boolean} active_flag
|
135
|
+
*/
|
136
|
+
PersonsCollectionResponseObject.prototype['active_flag'] = undefined;
|
137
|
+
|
138
|
+
/**
|
139
|
+
* The ID of the owner related to the person
|
140
|
+
* @member {Number} owner_id
|
141
|
+
*/
|
142
|
+
PersonsCollectionResponseObject.prototype['owner_id'] = undefined;
|
143
|
+
|
144
|
+
/**
|
145
|
+
* The ID of the organization related to the person
|
146
|
+
* @member {Number} org_id
|
147
|
+
*/
|
148
|
+
PersonsCollectionResponseObject.prototype['org_id'] = undefined;
|
149
|
+
|
150
|
+
/**
|
151
|
+
* The name of the person
|
152
|
+
* @member {String} name
|
153
|
+
*/
|
154
|
+
PersonsCollectionResponseObject.prototype['name'] = undefined;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required.
|
158
|
+
* @member {Array.<module:model/BasicPersonEmail>} email
|
159
|
+
*/
|
160
|
+
PersonsCollectionResponseObject.prototype['email'] = undefined;
|
161
|
+
|
162
|
+
/**
|
163
|
+
* A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required.
|
164
|
+
* @member {Array.<module:model/BasePersonItemPhone>} phone
|
165
|
+
*/
|
166
|
+
PersonsCollectionResponseObject.prototype['phone'] = undefined;
|
167
|
+
|
168
|
+
/**
|
169
|
+
* The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS
|
170
|
+
* @member {String} update_time
|
171
|
+
*/
|
172
|
+
PersonsCollectionResponseObject.prototype['update_time'] = undefined;
|
173
|
+
|
174
|
+
/**
|
175
|
+
* The date and time this person was deleted. Format: YYYY-MM-DD HH:MM:SS
|
176
|
+
* @member {String} delete_time
|
177
|
+
*/
|
178
|
+
PersonsCollectionResponseObject.prototype['delete_time'] = undefined;
|
179
|
+
|
180
|
+
/**
|
181
|
+
* The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS
|
182
|
+
* @member {String} add_time
|
183
|
+
*/
|
184
|
+
PersonsCollectionResponseObject.prototype['add_time'] = undefined;
|
185
|
+
|
186
|
+
/**
|
187
|
+
* The visibility group ID of who can see the person
|
188
|
+
* @member {String} visible_to
|
189
|
+
*/
|
190
|
+
PersonsCollectionResponseObject.prototype['visible_to'] = undefined;
|
191
|
+
|
192
|
+
/**
|
193
|
+
* The ID of the picture associated with the item
|
194
|
+
* @member {Number} picture_id
|
195
|
+
*/
|
196
|
+
PersonsCollectionResponseObject.prototype['picture_id'] = undefined;
|
197
|
+
|
198
|
+
/**
|
199
|
+
* The label assigned to the person
|
200
|
+
* @member {Number} label
|
201
|
+
*/
|
202
|
+
PersonsCollectionResponseObject.prototype['label'] = undefined;
|
203
|
+
|
204
|
+
/**
|
205
|
+
* The BCC email associated with the person
|
206
|
+
* @member {String} cc_email
|
207
|
+
*/
|
208
|
+
PersonsCollectionResponseObject.prototype['cc_email'] = undefined;
|
209
|
+
var _default = PersonsCollectionResponseObject;
|
210
|
+
exports["default"] = _default;
|