pipedrive 25.0.0 → 27.0.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.
Files changed (213) hide show
  1. package/dist/esm/versions/v1/api/activities-api.d.ts +40 -40
  2. package/dist/esm/versions/v1/api/activities-api.js +47 -47
  3. package/dist/esm/versions/v1/api/activity-fields-api.js +1 -1
  4. package/dist/esm/versions/v1/api/activity-types-api.js +5 -5
  5. package/dist/esm/versions/v1/api/billing-api.js +1 -1
  6. package/dist/esm/versions/v1/api/call-logs-api.js +5 -5
  7. package/dist/esm/versions/v1/api/channels-api.js +4 -4
  8. package/dist/esm/versions/v1/api/currencies-api.js +1 -1
  9. package/dist/esm/versions/v1/api/deal-fields-api.js +6 -6
  10. package/dist/esm/versions/v1/api/deals-api.d.ts +410 -88
  11. package/dist/esm/versions/v1/api/deals-api.js +447 -118
  12. package/dist/esm/versions/v1/api/files-api.js +8 -8
  13. package/dist/esm/versions/v1/api/filters-api.js +7 -7
  14. package/dist/esm/versions/v1/api/goals-api.js +5 -5
  15. package/dist/esm/versions/v1/api/item-search-api.d.ts +8 -8
  16. package/dist/esm/versions/v1/api/item-search-api.js +10 -10
  17. package/dist/esm/versions/v1/api/lead-labels-api.js +4 -4
  18. package/dist/esm/versions/v1/api/lead-sources-api.js +1 -1
  19. package/dist/esm/versions/v1/api/leads-api.d.ts +100 -14
  20. package/dist/esm/versions/v1/api/leads-api.js +114 -21
  21. package/dist/esm/versions/v1/api/legacy-teams-api.js +8 -8
  22. package/dist/esm/versions/v1/api/mailbox-api.js +6 -6
  23. package/dist/esm/versions/v1/api/meetings-api.js +2 -2
  24. package/dist/esm/versions/v1/api/note-fields-api.js +1 -1
  25. package/dist/esm/versions/v1/api/notes-api.d.ts +18 -2
  26. package/dist/esm/versions/v1/api/notes-api.js +25 -15
  27. package/dist/esm/versions/v1/api/organization-fields-api.js +6 -6
  28. package/dist/esm/versions/v1/api/organization-relationships-api.js +5 -5
  29. package/dist/esm/versions/v1/api/organizations-api.d.ts +68 -68
  30. package/dist/esm/versions/v1/api/organizations-api.js +88 -88
  31. package/dist/esm/versions/v1/api/permission-sets-api.js +3 -3
  32. package/dist/esm/versions/v1/api/person-fields-api.js +6 -6
  33. package/dist/esm/versions/v1/api/persons-api.d.ts +56 -56
  34. package/dist/esm/versions/v1/api/persons-api.js +78 -78
  35. package/dist/esm/versions/v1/api/pipelines-api.d.ts +28 -28
  36. package/dist/esm/versions/v1/api/pipelines-api.js +36 -36
  37. package/dist/esm/versions/v1/api/product-fields-api.js +6 -6
  38. package/dist/esm/versions/v1/api/products-api.d.ts +24 -24
  39. package/dist/esm/versions/v1/api/products-api.js +36 -36
  40. package/dist/esm/versions/v1/api/project-templates-api.js +4 -4
  41. package/dist/esm/versions/v1/api/projects-api.js +14 -14
  42. package/dist/esm/versions/v1/api/recents-api.js +1 -1
  43. package/dist/esm/versions/v1/api/roles-api.js +12 -12
  44. package/dist/esm/versions/v1/api/stages-api.d.ts +36 -36
  45. package/dist/esm/versions/v1/api/stages-api.js +43 -43
  46. package/dist/esm/versions/v1/api/subscriptions-api.js +9 -9
  47. package/dist/esm/versions/v1/api/tasks-api.js +5 -5
  48. package/dist/esm/versions/v1/api/user-connections-api.js +1 -1
  49. package/dist/esm/versions/v1/api/user-settings-api.js +1 -1
  50. package/dist/esm/versions/v1/api/users-api.js +10 -10
  51. package/dist/esm/versions/v1/api/webhooks-api.js +3 -3
  52. package/dist/esm/versions/v1/base.d.ts +2 -3
  53. package/dist/esm/versions/v1/configuration.d.ts +2 -2
  54. package/dist/esm/versions/v1/models/add-note-request-all-of.d.ts +9 -4
  55. package/dist/esm/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
  56. package/dist/esm/versions/v1/models/add-note-request-all-of1.js +4 -0
  57. package/dist/esm/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
  58. package/dist/esm/versions/v1/models/index.d.ts +1 -0
  59. package/dist/esm/versions/v1/models/index.js +1 -0
  60. package/dist/esm/versions/v1/models/note-project.d.ts +23 -0
  61. package/dist/esm/versions/v1/models/note-project.js +14 -0
  62. package/dist/esm/versions/v1/models/note-request-all-of1.d.ts +5 -0
  63. package/dist/esm/versions/v1/models/note.d.ts +16 -0
  64. package/dist/esm/versions/v2/api/activities-api.d.ts +15 -7
  65. package/dist/esm/versions/v2/api/activities-api.js +17 -12
  66. package/dist/esm/versions/v2/api/beta-api.d.ts +212 -0
  67. package/dist/esm/versions/v2/api/beta-api.js +290 -4
  68. package/dist/esm/versions/v2/api/deals-api.d.ts +272 -4
  69. package/dist/esm/versions/v2/api/deals-api.js +311 -27
  70. package/dist/esm/versions/v2/api/item-search-api.js +2 -2
  71. package/dist/esm/versions/v2/api/leads-api.d.ts +111 -0
  72. package/dist/esm/versions/v2/api/leads-api.js +147 -2
  73. package/dist/esm/versions/v2/api/organizations-api.js +10 -10
  74. package/dist/esm/versions/v2/api/persons-api.d.ts +8 -8
  75. package/dist/esm/versions/v2/api/persons-api.js +18 -18
  76. package/dist/esm/versions/v2/api/pipelines-api.js +5 -5
  77. package/dist/esm/versions/v2/api/products-api.js +15 -15
  78. package/dist/esm/versions/v2/api/stages-api.js +5 -5
  79. package/dist/esm/versions/v2/api/users-api.js +1 -1
  80. package/dist/esm/versions/v2/base.d.ts +2 -3
  81. package/dist/esm/versions/v2/configuration.d.ts +2 -2
  82. package/dist/esm/versions/v2/models/activity-item.d.ts +5 -0
  83. package/dist/esm/versions/v2/models/activity-item1.d.ts +5 -0
  84. package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
  85. package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response-data.js +14 -0
  86. package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
  87. package/dist/esm/versions/v2/models/add-convert-deal-to-lead-response.js +14 -0
  88. package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
  89. package/dist/esm/versions/v2/models/add-convert-lead-to-deal-response.js +14 -0
  90. package/dist/esm/versions/v2/models/add-person-request.d.ts +12 -0
  91. package/dist/esm/versions/v2/models/add-person-request.js +6 -1
  92. package/dist/esm/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
  93. package/dist/esm/versions/v2/models/convert-lead-to-deal-request.js +14 -0
  94. package/dist/esm/versions/v2/models/deal-item.d.ts +5 -0
  95. package/dist/esm/versions/v2/models/deal-item1.d.ts +5 -0
  96. package/dist/esm/versions/v2/models/get-convert-response.d.ts +43 -0
  97. package/dist/esm/versions/v2/models/get-convert-response.js +14 -0
  98. package/dist/esm/versions/v2/models/get-convert-response1-data.d.ts +46 -0
  99. package/dist/esm/versions/v2/models/get-convert-response1-data.js +20 -0
  100. package/dist/esm/versions/v2/models/get-convert-response1.d.ts +34 -0
  101. package/dist/esm/versions/v2/models/get-convert-response1.js +14 -0
  102. package/dist/esm/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
  103. package/dist/esm/versions/v2/models/index.d.ts +7 -0
  104. package/dist/esm/versions/v2/models/index.js +7 -0
  105. package/dist/esm/versions/v2/models/update-person-request.d.ts +12 -0
  106. package/dist/esm/versions/v2/models/update-person-request.js +6 -1
  107. package/dist/versions/v1/api/activities-api.d.ts +40 -40
  108. package/dist/versions/v1/api/activities-api.js +47 -47
  109. package/dist/versions/v1/api/activity-fields-api.js +1 -1
  110. package/dist/versions/v1/api/activity-types-api.js +5 -5
  111. package/dist/versions/v1/api/billing-api.js +1 -1
  112. package/dist/versions/v1/api/call-logs-api.js +5 -5
  113. package/dist/versions/v1/api/channels-api.js +4 -4
  114. package/dist/versions/v1/api/currencies-api.js +1 -1
  115. package/dist/versions/v1/api/deal-fields-api.js +6 -6
  116. package/dist/versions/v1/api/deals-api.d.ts +410 -88
  117. package/dist/versions/v1/api/deals-api.js +447 -118
  118. package/dist/versions/v1/api/files-api.js +8 -8
  119. package/dist/versions/v1/api/filters-api.js +7 -7
  120. package/dist/versions/v1/api/goals-api.js +5 -5
  121. package/dist/versions/v1/api/item-search-api.d.ts +8 -8
  122. package/dist/versions/v1/api/item-search-api.js +10 -10
  123. package/dist/versions/v1/api/lead-labels-api.js +4 -4
  124. package/dist/versions/v1/api/lead-sources-api.js +1 -1
  125. package/dist/versions/v1/api/leads-api.d.ts +100 -14
  126. package/dist/versions/v1/api/leads-api.js +114 -21
  127. package/dist/versions/v1/api/legacy-teams-api.js +8 -8
  128. package/dist/versions/v1/api/mailbox-api.js +6 -6
  129. package/dist/versions/v1/api/meetings-api.js +2 -2
  130. package/dist/versions/v1/api/note-fields-api.js +1 -1
  131. package/dist/versions/v1/api/notes-api.d.ts +18 -2
  132. package/dist/versions/v1/api/notes-api.js +25 -15
  133. package/dist/versions/v1/api/organization-fields-api.js +6 -6
  134. package/dist/versions/v1/api/organization-relationships-api.js +5 -5
  135. package/dist/versions/v1/api/organizations-api.d.ts +68 -68
  136. package/dist/versions/v1/api/organizations-api.js +88 -88
  137. package/dist/versions/v1/api/permission-sets-api.js +3 -3
  138. package/dist/versions/v1/api/person-fields-api.js +6 -6
  139. package/dist/versions/v1/api/persons-api.d.ts +56 -56
  140. package/dist/versions/v1/api/persons-api.js +78 -78
  141. package/dist/versions/v1/api/pipelines-api.d.ts +28 -28
  142. package/dist/versions/v1/api/pipelines-api.js +36 -36
  143. package/dist/versions/v1/api/product-fields-api.js +6 -6
  144. package/dist/versions/v1/api/products-api.d.ts +24 -24
  145. package/dist/versions/v1/api/products-api.js +36 -36
  146. package/dist/versions/v1/api/project-templates-api.js +4 -4
  147. package/dist/versions/v1/api/projects-api.js +14 -14
  148. package/dist/versions/v1/api/recents-api.js +1 -1
  149. package/dist/versions/v1/api/roles-api.js +12 -12
  150. package/dist/versions/v1/api/stages-api.d.ts +36 -36
  151. package/dist/versions/v1/api/stages-api.js +43 -43
  152. package/dist/versions/v1/api/subscriptions-api.js +9 -9
  153. package/dist/versions/v1/api/tasks-api.js +5 -5
  154. package/dist/versions/v1/api/user-connections-api.js +1 -1
  155. package/dist/versions/v1/api/user-settings-api.js +1 -1
  156. package/dist/versions/v1/api/users-api.js +10 -10
  157. package/dist/versions/v1/api/webhooks-api.js +3 -3
  158. package/dist/versions/v1/base.d.ts +2 -3
  159. package/dist/versions/v1/configuration.d.ts +2 -2
  160. package/dist/versions/v1/models/add-note-request-all-of.d.ts +9 -4
  161. package/dist/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
  162. package/dist/versions/v1/models/add-note-request-all-of1.js +5 -1
  163. package/dist/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
  164. package/dist/versions/v1/models/index.d.ts +1 -0
  165. package/dist/versions/v1/models/index.js +1 -0
  166. package/dist/versions/v1/models/note-project.d.ts +23 -0
  167. package/dist/versions/v1/models/note-project.js +15 -0
  168. package/dist/versions/v1/models/note-request-all-of1.d.ts +5 -0
  169. package/dist/versions/v1/models/note.d.ts +16 -0
  170. package/dist/versions/v2/api/activities-api.d.ts +15 -7
  171. package/dist/versions/v2/api/activities-api.js +17 -12
  172. package/dist/versions/v2/api/beta-api.d.ts +212 -0
  173. package/dist/versions/v2/api/beta-api.js +290 -4
  174. package/dist/versions/v2/api/deals-api.d.ts +272 -4
  175. package/dist/versions/v2/api/deals-api.js +311 -27
  176. package/dist/versions/v2/api/item-search-api.js +2 -2
  177. package/dist/versions/v2/api/leads-api.d.ts +111 -0
  178. package/dist/versions/v2/api/leads-api.js +146 -1
  179. package/dist/versions/v2/api/organizations-api.js +10 -10
  180. package/dist/versions/v2/api/persons-api.d.ts +8 -8
  181. package/dist/versions/v2/api/persons-api.js +18 -18
  182. package/dist/versions/v2/api/pipelines-api.js +5 -5
  183. package/dist/versions/v2/api/products-api.js +15 -15
  184. package/dist/versions/v2/api/stages-api.js +5 -5
  185. package/dist/versions/v2/api/users-api.js +1 -1
  186. package/dist/versions/v2/base.d.ts +2 -3
  187. package/dist/versions/v2/configuration.d.ts +2 -2
  188. package/dist/versions/v2/models/activity-item.d.ts +5 -0
  189. package/dist/versions/v2/models/activity-item1.d.ts +5 -0
  190. package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.d.ts +23 -0
  191. package/dist/versions/v2/models/add-convert-deal-to-lead-response-data.js +15 -0
  192. package/dist/versions/v2/models/add-convert-deal-to-lead-response.d.ts +34 -0
  193. package/dist/versions/v2/models/add-convert-deal-to-lead-response.js +15 -0
  194. package/dist/versions/v2/models/add-convert-lead-to-deal-response.d.ts +34 -0
  195. package/dist/versions/v2/models/add-convert-lead-to-deal-response.js +15 -0
  196. package/dist/versions/v2/models/add-person-request.d.ts +12 -0
  197. package/dist/versions/v2/models/add-person-request.js +7 -0
  198. package/dist/versions/v2/models/convert-lead-to-deal-request.d.ts +28 -0
  199. package/dist/versions/v2/models/convert-lead-to-deal-request.js +15 -0
  200. package/dist/versions/v2/models/deal-item.d.ts +5 -0
  201. package/dist/versions/v2/models/deal-item1.d.ts +5 -0
  202. package/dist/versions/v2/models/get-convert-response.d.ts +43 -0
  203. package/dist/versions/v2/models/get-convert-response.js +15 -0
  204. package/dist/versions/v2/models/get-convert-response1-data.d.ts +46 -0
  205. package/dist/versions/v2/models/get-convert-response1-data.js +23 -0
  206. package/dist/versions/v2/models/get-convert-response1.d.ts +34 -0
  207. package/dist/versions/v2/models/get-convert-response1.js +15 -0
  208. package/dist/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.d.ts +5 -0
  209. package/dist/versions/v2/models/index.d.ts +7 -0
  210. package/dist/versions/v2/models/index.js +7 -0
  211. package/dist/versions/v2/models/update-person-request.d.ts +12 -0
  212. package/dist/versions/v2/models/update-person-request.js +7 -0
  213. package/package.json +1 -1
@@ -33,7 +33,7 @@ import { BASE_PATH, BaseAPI } from '../base';
33
33
  export const PersonsApiAxiosParamCreator = function (configuration) {
34
34
  return {
35
35
  /**
36
- * Adds a new person.
36
+ * Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
37
37
  * @summary Add a new person
38
38
  * @param {AddPersonRequest} [AddPersonRequest]
39
39
 
@@ -51,7 +51,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
51
51
  const localVarHeaderParameter = {};
52
52
  const localVarQueryParameter = {};
53
53
  // authentication api_key required
54
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
54
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
55
55
  // authentication oauth2 required
56
56
  // oauth required
57
57
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
@@ -88,7 +88,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
88
88
  const localVarHeaderParameter = {};
89
89
  const localVarQueryParameter = {};
90
90
  // authentication api_key required
91
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
91
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
92
92
  // authentication oauth2 required
93
93
  // oauth required
94
94
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
@@ -124,7 +124,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
124
124
  const localVarHeaderParameter = {};
125
125
  const localVarQueryParameter = {};
126
126
  // authentication api_key required
127
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
127
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
128
128
  // authentication oauth2 required
129
129
  // oauth required
130
130
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
@@ -162,7 +162,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
162
162
  const localVarHeaderParameter = {};
163
163
  const localVarQueryParameter = {};
164
164
  // authentication api_key required
165
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
165
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
166
166
  // authentication oauth2 required
167
167
  // oauth required
168
168
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
@@ -198,7 +198,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
198
198
  const localVarHeaderParameter = {};
199
199
  const localVarQueryParameter = {};
200
200
  // authentication api_key required
201
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
201
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
202
202
  // authentication oauth2 required
203
203
  // oauth required
204
204
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
@@ -240,7 +240,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
240
240
  const localVarHeaderParameter = {};
241
241
  const localVarQueryParameter = {};
242
242
  // authentication api_key required
243
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
243
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
244
244
  // authentication oauth2 required
245
245
  // oauth required
246
246
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
@@ -282,7 +282,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
282
282
  const localVarHeaderParameter = {};
283
283
  const localVarQueryParameter = {};
284
284
  // authentication api_key required
285
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
285
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
286
286
  // authentication oauth2 required
287
287
  // oauth required
288
288
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
@@ -330,7 +330,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
330
330
  const localVarHeaderParameter = {};
331
331
  const localVarQueryParameter = {};
332
332
  // authentication api_key required
333
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
333
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
334
334
  // authentication oauth2 required
335
335
  // oauth required
336
336
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
@@ -405,7 +405,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
405
405
  const localVarHeaderParameter = {};
406
406
  const localVarQueryParameter = {};
407
407
  // authentication api_key required
408
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
408
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
409
409
  // authentication oauth2 required
410
410
  // oauth required
411
411
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration);
@@ -439,7 +439,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
439
439
  };
440
440
  }),
441
441
  /**
442
- * Updates the properties of a person.
442
+ * Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
443
443
  * @summary Update a person
444
444
  * @param {number} id The ID of the person
445
445
  * @param {UpdatePersonRequest} [UpdatePersonRequest]
@@ -461,7 +461,7 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
461
461
  const localVarHeaderParameter = {};
462
462
  const localVarQueryParameter = {};
463
463
  // authentication api_key required
464
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
464
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
465
465
  // authentication oauth2 required
466
466
  // oauth required
467
467
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
@@ -485,7 +485,7 @@ export const PersonsApiFp = function (configuration) {
485
485
  const localVarAxiosParamCreator = PersonsApiAxiosParamCreator(configuration);
486
486
  return {
487
487
  /**
488
- * Adds a new person.
488
+ * Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
489
489
  * @summary Add a new person
490
490
  * @param {AddPersonRequest} [AddPersonRequest]
491
491
 
@@ -627,7 +627,7 @@ export const PersonsApiFp = function (configuration) {
627
627
  });
628
628
  },
629
629
  /**
630
- * Updates the properties of a person.
630
+ * Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
631
631
  * @summary Update a person
632
632
  * @param {number} id The ID of the person
633
633
  * @param {UpdatePersonRequest} [UpdatePersonRequest]
@@ -650,7 +650,7 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
650
650
  const localVarFp = PersonsApiFp(configuration);
651
651
  return {
652
652
  /**
653
- * Adds a new person.
653
+ * Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
654
654
  * @summary Add a new person
655
655
  * @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
656
656
 
@@ -740,7 +740,7 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
740
740
  return localVarFp.searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
741
741
  },
742
742
  /**
743
- * Updates the properties of a person.
743
+ * Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
744
744
  * @summary Update a person
745
745
  * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
746
746
 
@@ -759,7 +759,7 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
759
759
  */
760
760
  export class PersonsApi extends BaseAPI {
761
761
  /**
762
- * Adds a new person.
762
+ * Adds a new person. If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
763
763
  * @summary Add a new person
764
764
  * @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
765
765
 
@@ -858,7 +858,7 @@ export class PersonsApi extends BaseAPI {
858
858
  return PersonsApiFp(this.configuration).searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
859
859
  }
860
860
  /**
861
- * Updates the properties of a person.
861
+ * Updates the properties of a person. <br>If the company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `marketing_status` field.
862
862
  * @summary Update a person
863
863
  * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
864
864
 
@@ -51,7 +51,7 @@ export const PipelinesApiAxiosParamCreator = function (configuration) {
51
51
  const localVarHeaderParameter = {};
52
52
  const localVarQueryParameter = {};
53
53
  // authentication api_key required
54
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
54
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
55
55
  // authentication oauth2 required
56
56
  // oauth required
57
57
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration);
@@ -87,7 +87,7 @@ export const PipelinesApiAxiosParamCreator = function (configuration) {
87
87
  const localVarHeaderParameter = {};
88
88
  const localVarQueryParameter = {};
89
89
  // authentication api_key required
90
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
90
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
91
91
  // authentication oauth2 required
92
92
  // oauth required
93
93
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration);
@@ -121,7 +121,7 @@ export const PipelinesApiAxiosParamCreator = function (configuration) {
121
121
  const localVarHeaderParameter = {};
122
122
  const localVarQueryParameter = {};
123
123
  // authentication api_key required
124
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
124
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
125
125
  // authentication oauth2 required
126
126
  // oauth required
127
127
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration);
@@ -155,7 +155,7 @@ export const PipelinesApiAxiosParamCreator = function (configuration) {
155
155
  const localVarHeaderParameter = {};
156
156
  const localVarQueryParameter = {};
157
157
  // authentication api_key required
158
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
158
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
159
159
  // authentication oauth2 required
160
160
  // oauth required
161
161
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration);
@@ -202,7 +202,7 @@ export const PipelinesApiAxiosParamCreator = function (configuration) {
202
202
  const localVarHeaderParameter = {};
203
203
  const localVarQueryParameter = {};
204
204
  // authentication api_key required
205
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
205
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
206
206
  // authentication oauth2 required
207
207
  // oauth required
208
208
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration);
@@ -51,7 +51,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
51
51
  const localVarHeaderParameter = {};
52
52
  const localVarQueryParameter = {};
53
53
  // authentication api_key required
54
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
54
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
55
55
  // authentication oauth2 required
56
56
  // oauth required
57
57
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
@@ -88,10 +88,10 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
88
88
  const localVarHeaderParameter = {};
89
89
  const localVarQueryParameter = {};
90
90
  // authentication api_key required
91
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
91
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
92
92
  // authentication oauth2 required
93
93
  // oauth required
94
- yield setOAuthToObject(localVarHeaderParameter, "oauth2", [], configuration);
94
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
95
95
  localVarHeaderParameter['Content-Type'] = 'application/json';
96
96
  setSearchParams(localVarUrlObj, localVarQueryParameter);
97
97
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -125,7 +125,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
125
125
  const localVarHeaderParameter = {};
126
126
  const localVarQueryParameter = {};
127
127
  // authentication api_key required
128
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
128
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
129
129
  // authentication oauth2 required
130
130
  // oauth required
131
131
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
@@ -161,7 +161,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
161
161
  const localVarHeaderParameter = {};
162
162
  const localVarQueryParameter = {};
163
163
  // authentication api_key required
164
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
164
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
165
165
  // authentication oauth2 required
166
166
  // oauth required
167
167
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
@@ -199,7 +199,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
199
199
  const localVarHeaderParameter = {};
200
200
  const localVarQueryParameter = {};
201
201
  // authentication api_key required
202
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
202
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
203
203
  // authentication oauth2 required
204
204
  // oauth required
205
205
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
@@ -237,7 +237,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
237
237
  const localVarHeaderParameter = {};
238
238
  const localVarQueryParameter = {};
239
239
  // authentication api_key required
240
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
240
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
241
241
  // authentication oauth2 required
242
242
  // oauth required
243
243
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
@@ -271,7 +271,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
271
271
  const localVarHeaderParameter = {};
272
272
  const localVarQueryParameter = {};
273
273
  // authentication api_key required
274
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
274
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
275
275
  // authentication oauth2 required
276
276
  // oauth required
277
277
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration);
@@ -307,7 +307,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
307
307
  const localVarHeaderParameter = {};
308
308
  const localVarQueryParameter = {};
309
309
  // authentication api_key required
310
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
310
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
311
311
  // authentication oauth2 required
312
312
  // oauth required
313
313
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration);
@@ -349,7 +349,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
349
349
  const localVarHeaderParameter = {};
350
350
  const localVarQueryParameter = {};
351
351
  // authentication api_key required
352
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
352
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
353
353
  // authentication oauth2 required
354
354
  // oauth required
355
355
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration);
@@ -391,7 +391,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
391
391
  const localVarHeaderParameter = {};
392
392
  const localVarQueryParameter = {};
393
393
  // authentication api_key required
394
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
394
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
395
395
  // authentication oauth2 required
396
396
  // oauth required
397
397
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration);
@@ -435,7 +435,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
435
435
  const localVarHeaderParameter = {};
436
436
  const localVarQueryParameter = {};
437
437
  // authentication api_key required
438
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
438
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
439
439
  // authentication oauth2 required
440
440
  // oauth required
441
441
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration);
@@ -497,7 +497,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
497
497
  const localVarHeaderParameter = {};
498
498
  const localVarQueryParameter = {};
499
499
  // authentication api_key required
500
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
500
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
501
501
  // authentication oauth2 required
502
502
  // oauth required
503
503
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full", "search:read"], configuration);
@@ -550,7 +550,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
550
550
  const localVarHeaderParameter = {};
551
551
  const localVarQueryParameter = {};
552
552
  // authentication api_key required
553
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
553
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
554
554
  // authentication oauth2 required
555
555
  // oauth required
556
556
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
@@ -591,7 +591,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
591
591
  const localVarHeaderParameter = {};
592
592
  const localVarQueryParameter = {};
593
593
  // authentication api_key required
594
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
594
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
595
595
  // authentication oauth2 required
596
596
  // oauth required
597
597
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
@@ -51,7 +51,7 @@ export const StagesApiAxiosParamCreator = function (configuration) {
51
51
  const localVarHeaderParameter = {};
52
52
  const localVarQueryParameter = {};
53
53
  // authentication api_key required
54
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
54
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
55
55
  // authentication oauth2 required
56
56
  // oauth required
57
57
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration);
@@ -87,7 +87,7 @@ export const StagesApiAxiosParamCreator = function (configuration) {
87
87
  const localVarHeaderParameter = {};
88
88
  const localVarQueryParameter = {};
89
89
  // authentication api_key required
90
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
90
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
91
91
  // authentication oauth2 required
92
92
  // oauth required
93
93
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration);
@@ -121,7 +121,7 @@ export const StagesApiAxiosParamCreator = function (configuration) {
121
121
  const localVarHeaderParameter = {};
122
122
  const localVarQueryParameter = {};
123
123
  // authentication api_key required
124
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
124
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
125
125
  // authentication oauth2 required
126
126
  // oauth required
127
127
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration);
@@ -156,7 +156,7 @@ export const StagesApiAxiosParamCreator = function (configuration) {
156
156
  const localVarHeaderParameter = {};
157
157
  const localVarQueryParameter = {};
158
158
  // authentication api_key required
159
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
159
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
160
160
  // authentication oauth2 required
161
161
  // oauth required
162
162
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration);
@@ -206,7 +206,7 @@ export const StagesApiAxiosParamCreator = function (configuration) {
206
206
  const localVarHeaderParameter = {};
207
207
  const localVarQueryParameter = {};
208
208
  // authentication api_key required
209
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
209
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
210
210
  // authentication oauth2 required
211
211
  // oauth required
212
212
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration);
@@ -56,7 +56,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
56
56
  const localVarHeaderParameter = {};
57
57
  const localVarQueryParameter = {};
58
58
  // authentication api_key required
59
- yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
59
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
60
60
  // authentication oauth2 required
61
61
  // oauth required
62
62
  yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration);
@@ -10,8 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Configuration } from './configuration';
13
- import type { AxiosError, AxiosResponse, AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios';
14
- import axios from 'axios';
13
+ import type { AxiosError, AxiosResponse, AxiosRequestConfig, InternalAxiosRequestConfig, AxiosInstance } from 'axios';
15
14
  export declare const BASE_PATH: string;
16
15
  /**
17
16
  *
@@ -43,7 +42,7 @@ export declare const errorInterceptor: (error: AxiosError) => Promise<never>;
43
42
  export declare class BaseAPI {
44
43
  protected configuration: Configuration | undefined;
45
44
  protected basePath: string;
46
- protected axios: axios.AxiosInstance;
45
+ protected axios: AxiosInstance;
47
46
  constructor(configuration: Configuration);
48
47
  }
49
48
  /**
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import axios from "axios";
12
+ import { AxiosResponse } from "axios";
13
13
  export type TokenResponse = {
14
14
  access_token: string;
15
15
  refresh_token: string;
@@ -54,7 +54,7 @@ export declare class OAuth2Configuration {
54
54
  * Revoke Refresh Token aka marking an app uninstalled or revoke the Access Token.
55
55
  * @param {String} tokenTypeHint values can be: 'access_token' or 'refresh_token'.
56
56
  */
57
- revokeToken(tokenTypeHint?: 'access_token' | 'refresh_token'): Promise<axios.AxiosResponse<any, any>>;
57
+ revokeToken(tokenTypeHint?: 'access_token' | 'refresh_token'): Promise<AxiosResponse<any, any>>;
58
58
  private validateParam;
59
59
  }
60
60
  export interface ConfigurationParameters {
@@ -39,6 +39,11 @@ export interface ActivityItem {
39
39
  */
40
40
  'owner_id'?: number;
41
41
  /**
42
+ * The ID of the user who created the activity
43
+ * @type {number}
44
+ */
45
+ 'creator_user_id'?: number;
46
+ /**
42
47
  * Whether the activity is deleted or not
43
48
  * @type {boolean}
44
49
  */
@@ -39,6 +39,11 @@ export interface ActivityItem1 {
39
39
  */
40
40
  'owner_id'?: number;
41
41
  /**
42
+ * The ID of the user who created the activity
43
+ * @type {number}
44
+ */
45
+ 'creator_user_id'?: number;
46
+ /**
42
47
  * Whether the activity is deleted or not
43
48
  * @type {boolean}
44
49
  */
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Pipedrive API v2
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * An object containing conversion job id that performs the conversion
14
+ * @export
15
+ * @interface AddConvertDealToLeadResponseData
16
+ */
17
+ export interface AddConvertDealToLeadResponseData {
18
+ /**
19
+ * The ID of the conversion job that can be used to retrieve conversion status and details. The ID has UUID format.
20
+ * @type {string}
21
+ */
22
+ 'conversion_id': string;
23
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pipedrive API v2
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Pipedrive API v2
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AddConvertDealToLeadResponseData } from './add-convert-deal-to-lead-response-data';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AddConvertDealToLeadResponse
17
+ */
18
+ export interface AddConvertDealToLeadResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ */
23
+ 'success'?: boolean;
24
+ /**
25
+ *
26
+ * @type {AddConvertDealToLeadResponseData}
27
+ */
28
+ 'data'?: AddConvertDealToLeadResponseData;
29
+ /**
30
+ *
31
+ * @type {object}
32
+ */
33
+ 'additional_data'?: object | null;
34
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pipedrive API v2
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Pipedrive API v2
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AddConvertDealToLeadResponseData } from './add-convert-deal-to-lead-response-data';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AddConvertLeadToDealResponse
17
+ */
18
+ export interface AddConvertLeadToDealResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ */
23
+ 'success'?: boolean;
24
+ /**
25
+ *
26
+ * @type {AddConvertDealToLeadResponseData}
27
+ */
28
+ 'data'?: AddConvertDealToLeadResponseData;
29
+ /**
30
+ *
31
+ * @type {object}
32
+ */
33
+ 'additional_data'?: object | null;
34
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pipedrive API v2
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -62,4 +62,16 @@ export interface AddPersonRequest {
62
62
  * @type {Array<number>}
63
63
  */
64
64
  'label_ids'?: Array<number>;
65
+ /**
66
+ * If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table>
67
+ * @type {string}
68
+ */
69
+ 'marketing_status'?: AddPersonRequestMarketingStatusConst;
65
70
  }
71
+ export declare const AddPersonRequestMarketingStatusConst: {
72
+ readonly no_consent: "no_consent";
73
+ readonly unsubscribed: "unsubscribed";
74
+ readonly subscribed: "subscribed";
75
+ readonly archived: "archived";
76
+ };
77
+ export type AddPersonRequestMarketingStatusConst = typeof AddPersonRequestMarketingStatusConst[keyof typeof AddPersonRequestMarketingStatusConst];
@@ -11,4 +11,9 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export {};
14
+ export const AddPersonRequestMarketingStatusConst = {
15
+ no_consent: 'no_consent',
16
+ unsubscribed: 'unsubscribed',
17
+ subscribed: 'subscribed',
18
+ archived: 'archived'
19
+ };