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
@@ -12,12 +12,33 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosInstance } from 'axios';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { AddConvertLeadToDealResponse } from '../models';
16
+ import { ConvertLeadToDealRequest } from '../models';
17
+ import { GetConvertResponse1 } from '../models';
15
18
  import { GetLeadSearchResponse } from '../models';
16
19
  /**
17
20
  * LeadsApi - axios parameter creator
18
21
  * @export
19
22
  */
20
23
  export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
26
+ * @summary Convert a lead to a deal (BETA)
27
+ * @param {string} id The ID of the lead to convert
28
+ * @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
29
+
30
+ * @throws {RequiredError}
31
+ */
32
+ convertLeadToDeal: (id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest) => Promise<RequestArgs>;
33
+ /**
34
+ * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
35
+ * @summary Get Lead conversion status (BETA)
36
+ * @param {string} id The ID of a lead
37
+ * @param {string} conversion_id The ID of the conversion
38
+
39
+ * @throws {RequiredError}
40
+ */
41
+ getLeadConversionStatus: (id: string, conversion_id: string) => Promise<RequestArgs>;
21
42
  /**
22
43
  * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
23
44
  * @summary Search leads
@@ -39,6 +60,24 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
39
60
  * @export
40
61
  */
41
62
  export declare const LeadsApiFp: (configuration?: Configuration) => {
63
+ /**
64
+ * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
65
+ * @summary Convert a lead to a deal (BETA)
66
+ * @param {string} id The ID of the lead to convert
67
+ * @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
68
+
69
+ * @throws {RequiredError}
70
+ */
71
+ convertLeadToDeal(id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddConvertLeadToDealResponse>>;
72
+ /**
73
+ * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
74
+ * @summary Get Lead conversion status (BETA)
75
+ * @param {string} id The ID of a lead
76
+ * @param {string} conversion_id The ID of the conversion
77
+
78
+ * @throws {RequiredError}
79
+ */
80
+ getLeadConversionStatus(id: string, conversion_id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetConvertResponse1>>;
42
81
  /**
43
82
  * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
44
83
  * @summary Search leads
@@ -60,6 +99,22 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
60
99
  * @export
61
100
  */
62
101
  export declare const LeadsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
102
+ /**
103
+ * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
104
+ * @summary Convert a lead to a deal (BETA)
105
+ * @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
106
+
107
+ * @throws {RequiredError}
108
+ */
109
+ convertLeadToDeal(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<AddConvertLeadToDealResponse>;
110
+ /**
111
+ * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
112
+ * @summary Get Lead conversion status (BETA)
113
+ * @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
114
+
115
+ * @throws {RequiredError}
116
+ */
117
+ getLeadConversionStatus(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<GetConvertResponse1>;
63
118
  /**
64
119
  * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
65
120
  * @summary Search leads
@@ -69,6 +124,44 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
69
124
  */
70
125
  searchLeads(requestParameters: LeadsApiSearchLeadsRequest): Promise<GetLeadSearchResponse>;
71
126
  };
127
+ /**
128
+ * Request parameters for convertLeadToDeal operation in LeadsApi.
129
+ * @export
130
+ * @interface LeadsApiConvertLeadToDealRequest
131
+ */
132
+ export interface LeadsApiConvertLeadToDealRequest {
133
+ /**
134
+ * The ID of the lead to convert
135
+ * @type {string}
136
+ * @memberof LeadsApiConvertLeadToDeal
137
+ */
138
+ readonly id: string;
139
+ /**
140
+ *
141
+ * @type {ConvertLeadToDealRequest}
142
+ * @memberof LeadsApiConvertLeadToDeal
143
+ */
144
+ readonly ConvertLeadToDealRequest?: ConvertLeadToDealRequest;
145
+ }
146
+ /**
147
+ * Request parameters for getLeadConversionStatus operation in LeadsApi.
148
+ * @export
149
+ * @interface LeadsApiGetLeadConversionStatusRequest
150
+ */
151
+ export interface LeadsApiGetLeadConversionStatusRequest {
152
+ /**
153
+ * The ID of a lead
154
+ * @type {string}
155
+ * @memberof LeadsApiGetLeadConversionStatus
156
+ */
157
+ readonly id: string;
158
+ /**
159
+ * The ID of the conversion
160
+ * @type {string}
161
+ * @memberof LeadsApiGetLeadConversionStatus
162
+ */
163
+ readonly conversion_id: string;
164
+ }
72
165
  /**
73
166
  * Request parameters for searchLeads operation in LeadsApi.
74
167
  * @export
@@ -131,6 +224,24 @@ export interface LeadsApiSearchLeadsRequest {
131
224
  * @extends {BaseAPI}
132
225
  */
133
226
  export declare class LeadsApi extends BaseAPI {
227
+ /**
228
+ * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
229
+ * @summary Convert a lead to a deal (BETA)
230
+ * @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
231
+
232
+ * @throws {RequiredError}
233
+ * @memberof LeadsApi
234
+ */
235
+ convertLeadToDeal(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<AddConvertLeadToDealResponse>;
236
+ /**
237
+ * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
238
+ * @summary Get Lead conversion status (BETA)
239
+ * @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
240
+
241
+ * @throws {RequiredError}
242
+ * @memberof LeadsApi
243
+ */
244
+ getLeadConversionStatus(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<GetConvertResponse1>;
134
245
  /**
135
246
  * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
136
247
  * @summary Search leads
@@ -38,6 +38,81 @@ const base_1 = require("../base");
38
38
  */
39
39
  const LeadsApiAxiosParamCreator = function (configuration) {
40
40
  return {
41
+ /**
42
+ * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
43
+ * @summary Convert a lead to a deal (BETA)
44
+ * @param {string} id The ID of the lead to convert
45
+ * @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
46
+
47
+ * @throws {RequiredError}
48
+ */
49
+ convertLeadToDeal: (id, ConvertLeadToDealRequest) => __awaiter(this, void 0, void 0, function* () {
50
+ // verify required parameter 'id' is not null or undefined
51
+ (0, common_1.assertParamExists)('convertLeadToDeal', 'id', id);
52
+ const localVarPath = `/leads/{id}/convert/deal`
53
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
54
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
56
+ let baseOptions;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ }
60
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
61
+ const localVarHeaderParameter = {};
62
+ const localVarQueryParameter = {};
63
+ // authentication api_key required
64
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
65
+ // authentication oauth2 required
66
+ // oauth required
67
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full", "leads:full"], configuration);
68
+ localVarHeaderParameter['Content-Type'] = 'application/json';
69
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
70
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
72
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ConvertLeadToDealRequest, localVarRequestOptions, configuration);
73
+ return {
74
+ url: (0, common_1.toPathString)(localVarUrlObj),
75
+ options: localVarRequestOptions,
76
+ };
77
+ }),
78
+ /**
79
+ * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
80
+ * @summary Get Lead conversion status (BETA)
81
+ * @param {string} id The ID of a lead
82
+ * @param {string} conversion_id The ID of the conversion
83
+
84
+ * @throws {RequiredError}
85
+ */
86
+ getLeadConversionStatus: (id, conversion_id) => __awaiter(this, void 0, void 0, function* () {
87
+ // verify required parameter 'id' is not null or undefined
88
+ (0, common_1.assertParamExists)('getLeadConversionStatus', 'id', id);
89
+ // verify required parameter 'conversion_id' is not null or undefined
90
+ (0, common_1.assertParamExists)('getLeadConversionStatus', 'conversion_id', conversion_id);
91
+ const localVarPath = `/leads/{id}/convert/status/{conversion_id}`
92
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
93
+ .replace(`{${"conversion_id"}}`, encodeURIComponent(String(conversion_id)));
94
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
95
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
96
+ let baseOptions;
97
+ if (configuration) {
98
+ baseOptions = configuration.baseOptions;
99
+ }
100
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
101
+ const localVarHeaderParameter = {};
102
+ const localVarQueryParameter = {};
103
+ // authentication api_key required
104
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
105
+ // authentication oauth2 required
106
+ // oauth required
107
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["leads:read"], configuration);
108
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
111
+ return {
112
+ url: (0, common_1.toPathString)(localVarUrlObj),
113
+ options: localVarRequestOptions,
114
+ };
115
+ }),
41
116
  /**
42
117
  * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
43
118
  * @summary Search leads
@@ -66,7 +141,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
66
141
  const localVarHeaderParameter = {};
67
142
  const localVarQueryParameter = {};
68
143
  // authentication api_key required
69
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
144
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
70
145
  // authentication oauth2 required
71
146
  // oauth required
72
147
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full", "search:read"], configuration);
@@ -112,6 +187,34 @@ exports.LeadsApiAxiosParamCreator = LeadsApiAxiosParamCreator;
112
187
  const LeadsApiFp = function (configuration) {
113
188
  const localVarAxiosParamCreator = (0, exports.LeadsApiAxiosParamCreator)(configuration);
114
189
  return {
190
+ /**
191
+ * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
192
+ * @summary Convert a lead to a deal (BETA)
193
+ * @param {string} id The ID of the lead to convert
194
+ * @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
195
+
196
+ * @throws {RequiredError}
197
+ */
198
+ convertLeadToDeal(id, ConvertLeadToDealRequest) {
199
+ return __awaiter(this, void 0, void 0, function* () {
200
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.convertLeadToDeal(id, ConvertLeadToDealRequest);
201
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
202
+ });
203
+ },
204
+ /**
205
+ * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
206
+ * @summary Get Lead conversion status (BETA)
207
+ * @param {string} id The ID of a lead
208
+ * @param {string} conversion_id The ID of the conversion
209
+
210
+ * @throws {RequiredError}
211
+ */
212
+ getLeadConversionStatus(id, conversion_id) {
213
+ return __awaiter(this, void 0, void 0, function* () {
214
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeadConversionStatus(id, conversion_id);
215
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
216
+ });
217
+ },
115
218
  /**
116
219
  * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
117
220
  * @summary Search leads
@@ -142,6 +245,26 @@ exports.LeadsApiFp = LeadsApiFp;
142
245
  const LeadsApiFactory = function (configuration, basePath, axios) {
143
246
  const localVarFp = (0, exports.LeadsApiFp)(configuration);
144
247
  return {
248
+ /**
249
+ * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
250
+ * @summary Convert a lead to a deal (BETA)
251
+ * @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
252
+
253
+ * @throws {RequiredError}
254
+ */
255
+ convertLeadToDeal(requestParameters) {
256
+ return localVarFp.convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(axios, basePath));
257
+ },
258
+ /**
259
+ * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
260
+ * @summary Get Lead conversion status (BETA)
261
+ * @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
262
+
263
+ * @throws {RequiredError}
264
+ */
265
+ getLeadConversionStatus(requestParameters) {
266
+ return localVarFp.getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
267
+ },
145
268
  /**
146
269
  * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
147
270
  * @summary Search leads
@@ -162,6 +285,28 @@ exports.LeadsApiFactory = LeadsApiFactory;
162
285
  * @extends {BaseAPI}
163
286
  */
164
287
  class LeadsApi extends base_1.BaseAPI {
288
+ /**
289
+ * Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
290
+ * @summary Convert a lead to a deal (BETA)
291
+ * @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
292
+
293
+ * @throws {RequiredError}
294
+ * @memberof LeadsApi
295
+ */
296
+ convertLeadToDeal(requestParameters) {
297
+ return (0, exports.LeadsApiFp)(this.configuration).convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(this.axios, this.basePath));
298
+ }
299
+ /**
300
+ * Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
301
+ * @summary Get Lead conversion status (BETA)
302
+ * @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
303
+
304
+ * @throws {RequiredError}
305
+ * @memberof LeadsApi
306
+ */
307
+ getLeadConversionStatus(requestParameters) {
308
+ return (0, exports.LeadsApiFp)(this.configuration).getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
309
+ }
165
310
  /**
166
311
  * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
167
312
  * @summary Search leads
@@ -57,7 +57,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
57
57
  const localVarHeaderParameter = {};
58
58
  const localVarQueryParameter = {};
59
59
  // authentication api_key required
60
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
60
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
61
61
  // authentication oauth2 required
62
62
  // oauth required
63
63
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
@@ -94,7 +94,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
94
94
  const localVarHeaderParameter = {};
95
95
  const localVarQueryParameter = {};
96
96
  // authentication api_key required
97
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
97
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
98
98
  // authentication oauth2 required
99
99
  // oauth required
100
100
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
@@ -130,7 +130,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
130
130
  const localVarHeaderParameter = {};
131
131
  const localVarQueryParameter = {};
132
132
  // authentication api_key required
133
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
133
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
134
134
  // authentication oauth2 required
135
135
  // oauth required
136
136
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
@@ -168,7 +168,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
168
168
  const localVarHeaderParameter = {};
169
169
  const localVarQueryParameter = {};
170
170
  // authentication api_key required
171
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
171
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
172
172
  // authentication oauth2 required
173
173
  // oauth required
174
174
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
@@ -204,7 +204,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
204
204
  const localVarHeaderParameter = {};
205
205
  const localVarQueryParameter = {};
206
206
  // authentication api_key required
207
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
207
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
208
208
  // authentication oauth2 required
209
209
  // oauth required
210
210
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
@@ -246,7 +246,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
246
246
  const localVarHeaderParameter = {};
247
247
  const localVarQueryParameter = {};
248
248
  // authentication api_key required
249
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
249
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
250
250
  // authentication oauth2 required
251
251
  // oauth required
252
252
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
@@ -288,7 +288,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
288
288
  const localVarHeaderParameter = {};
289
289
  const localVarQueryParameter = {};
290
290
  // authentication api_key required
291
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
291
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
292
292
  // authentication oauth2 required
293
293
  // oauth required
294
294
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
@@ -335,7 +335,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
335
335
  const localVarHeaderParameter = {};
336
336
  const localVarQueryParameter = {};
337
337
  // authentication api_key required
338
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
338
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
339
339
  // authentication oauth2 required
340
340
  // oauth required
341
341
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
@@ -405,7 +405,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
405
405
  const localVarHeaderParameter = {};
406
406
  const localVarQueryParameter = {};
407
407
  // authentication api_key required
408
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
408
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
409
409
  // authentication oauth2 required
410
410
  // oauth required
411
411
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration);
@@ -455,7 +455,7 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
455
455
  const localVarHeaderParameter = {};
456
456
  const localVarQueryParameter = {};
457
457
  // authentication api_key required
458
- yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
458
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
459
459
  // authentication oauth2 required
460
460
  // oauth required
461
461
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
@@ -29,7 +29,7 @@ import { UpsertPersonResponse } from '../models';
29
29
  */
30
30
  export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration) => {
31
31
  /**
32
- * Adds a new person.
32
+ * 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.
33
33
  * @summary Add a new person
34
34
  * @param {AddPersonRequest} [AddPersonRequest]
35
35
 
@@ -126,7 +126,7 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
126
126
  */
127
127
  searchPersons: (term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', limit?: number, cursor?: string) => Promise<RequestArgs>;
128
128
  /**
129
- * Updates the properties of a person.
129
+ * 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.
130
130
  * @summary Update a person
131
131
  * @param {number} id The ID of the person
132
132
  * @param {UpdatePersonRequest} [UpdatePersonRequest]
@@ -141,7 +141,7 @@ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration
141
141
  */
142
142
  export declare const PersonsApiFp: (configuration?: Configuration) => {
143
143
  /**
144
- * Adds a new person.
144
+ * 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.
145
145
  * @summary Add a new person
146
146
  * @param {AddPersonRequest} [AddPersonRequest]
147
147
 
@@ -238,7 +238,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
238
238
  */
239
239
  searchPersons(term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPersonSearchResponse>>;
240
240
  /**
241
- * Updates the properties of a person.
241
+ * 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.
242
242
  * @summary Update a person
243
243
  * @param {number} id The ID of the person
244
244
  * @param {UpdatePersonRequest} [UpdatePersonRequest]
@@ -253,7 +253,7 @@ export declare const PersonsApiFp: (configuration?: Configuration) => {
253
253
  */
254
254
  export declare const PersonsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
255
255
  /**
256
- * Adds a new person.
256
+ * 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.
257
257
  * @summary Add a new person
258
258
  * @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
259
259
 
@@ -325,7 +325,7 @@ export declare const PersonsApiFactory: (configuration?: Configuration, basePath
325
325
  */
326
326
  searchPersons(requestParameters: PersonsApiSearchPersonsRequest): Promise<GetPersonSearchResponse>;
327
327
  /**
328
- * Updates the properties of a person.
328
+ * 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.
329
329
  * @summary Update a person
330
330
  * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
331
331
 
@@ -627,7 +627,7 @@ export interface PersonsApiUpdatePersonRequest {
627
627
  */
628
628
  export declare class PersonsApi extends BaseAPI {
629
629
  /**
630
- * Adds a new person.
630
+ * 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.
631
631
  * @summary Add a new person
632
632
  * @param {PersonsApiAddPersonRequest} requestParameters Request parameters.
633
633
 
@@ -708,7 +708,7 @@ export declare class PersonsApi extends BaseAPI {
708
708
  */
709
709
  searchPersons(requestParameters: PersonsApiSearchPersonsRequest): Promise<GetPersonSearchResponse>;
710
710
  /**
711
- * Updates the properties of a person.
711
+ * 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.
712
712
  * @summary Update a person
713
713
  * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters.
714
714