pipedrive 36.0.1 → 36.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/esm/versions/v1/api/activity-fields-api.d.ts +17 -1
  2. package/dist/esm/versions/v1/api/activity-fields-api.js +25 -0
  3. package/dist/esm/versions/v1/api/activity-types-api.d.ts +72 -1
  4. package/dist/esm/versions/v1/api/activity-types-api.js +107 -0
  5. package/dist/esm/versions/v1/api/billing-api.d.ts +17 -1
  6. package/dist/esm/versions/v1/api/billing-api.js +25 -0
  7. package/dist/esm/versions/v1/api/call-logs-api.d.ts +93 -1
  8. package/dist/esm/versions/v1/api/call-logs-api.js +137 -0
  9. package/dist/esm/versions/v1/api/channels-api.d.ts +74 -1
  10. package/dist/esm/versions/v1/api/channels-api.js +109 -0
  11. package/dist/esm/versions/v1/api/currencies-api.d.ts +19 -1
  12. package/dist/esm/versions/v1/api/currencies-api.js +27 -0
  13. package/dist/esm/versions/v1/api/deal-fields-api.d.ts +111 -1
  14. package/dist/esm/versions/v1/api/deal-fields-api.js +164 -0
  15. package/dist/esm/versions/v1/api/deals-api.d.ts +399 -1
  16. package/dist/esm/versions/v1/api/deals-api.js +569 -0
  17. package/dist/esm/versions/v1/api/files-api.d.ts +163 -1
  18. package/dist/esm/versions/v1/api/files-api.js +234 -0
  19. package/dist/esm/versions/v1/api/filters-api.d.ts +129 -1
  20. package/dist/esm/versions/v1/api/filters-api.js +191 -0
  21. package/dist/esm/versions/v1/api/goals-api.d.ts +106 -1
  22. package/dist/esm/versions/v1/api/goals-api.js +150 -0
  23. package/dist/esm/versions/v1/api/lead-fields-api.d.ts +20 -1
  24. package/dist/esm/versions/v1/api/lead-fields-api.js +28 -0
  25. package/dist/esm/versions/v1/api/lead-labels-api.d.ts +72 -1
  26. package/dist/esm/versions/v1/api/lead-labels-api.js +107 -0
  27. package/dist/esm/versions/v1/api/lead-sources-api.d.ts +17 -1
  28. package/dist/esm/versions/v1/api/lead-sources-api.js +25 -0
  29. package/dist/esm/versions/v1/api/leads-api.d.ts +166 -1
  30. package/dist/esm/versions/v1/api/leads-api.js +237 -0
  31. package/dist/esm/versions/v1/api/legacy-teams-api.d.ts +152 -1
  32. package/dist/esm/versions/v1/api/legacy-teams-api.js +223 -0
  33. package/dist/esm/versions/v1/api/mailbox-api.d.ts +117 -1
  34. package/dist/esm/versions/v1/api/mailbox-api.js +170 -0
  35. package/dist/esm/versions/v1/api/meetings-api.d.ts +37 -1
  36. package/dist/esm/versions/v1/api/meetings-api.js +54 -0
  37. package/dist/esm/versions/v1/api/note-fields-api.d.ts +17 -1
  38. package/dist/esm/versions/v1/api/note-fields-api.js +25 -0
  39. package/dist/esm/versions/v1/api/notes-api.d.ts +207 -1
  40. package/dist/esm/versions/v1/api/notes-api.js +296 -0
  41. package/dist/esm/versions/v1/api/organization-fields-api.d.ts +111 -1
  42. package/dist/esm/versions/v1/api/organization-fields-api.js +164 -0
  43. package/dist/esm/versions/v1/api/organization-relationships-api.d.ts +93 -1
  44. package/dist/esm/versions/v1/api/organization-relationships-api.js +137 -0
  45. package/dist/esm/versions/v1/api/organizations-api.d.ts +178 -1
  46. package/dist/esm/versions/v1/api/organizations-api.js +258 -0
  47. package/dist/esm/versions/v1/api/permission-sets-api.d.ts +57 -1
  48. package/dist/esm/versions/v1/api/permission-sets-api.js +83 -0
  49. package/dist/esm/versions/v1/api/person-fields-api.d.ts +111 -1
  50. package/dist/esm/versions/v1/api/person-fields-api.js +164 -0
  51. package/dist/esm/versions/v1/api/persons-api.d.ts +275 -37
  52. package/dist/esm/versions/v1/api/persons-api.js +370 -24
  53. package/dist/esm/versions/v1/api/pipelines-api.d.ts +69 -1
  54. package/dist/esm/versions/v1/api/pipelines-api.js +95 -0
  55. package/dist/esm/versions/v1/api/product-fields-api.d.ts +111 -1
  56. package/dist/esm/versions/v1/api/product-fields-api.js +164 -0
  57. package/dist/esm/versions/v1/api/products-api.d.ts +119 -1
  58. package/dist/esm/versions/v1/api/products-api.js +172 -0
  59. package/dist/esm/versions/v1/api/project-boards-api.d.ts +35 -1
  60. package/dist/esm/versions/v1/api/project-boards-api.js +52 -0
  61. package/dist/esm/versions/v1/api/project-phases-api.d.ts +37 -1
  62. package/dist/esm/versions/v1/api/project-phases-api.js +54 -0
  63. package/dist/esm/versions/v1/api/project-templates-api.d.ts +38 -1
  64. package/dist/esm/versions/v1/api/project-templates-api.js +55 -0
  65. package/dist/esm/versions/v1/api/projects-api.d.ts +227 -1
  66. package/dist/esm/versions/v1/api/projects-api.js +334 -0
  67. package/dist/esm/versions/v1/api/recents-api.d.ts +22 -1
  68. package/dist/esm/versions/v1/api/recents-api.js +30 -0
  69. package/dist/esm/versions/v1/api/roles-api.d.ts +226 -1
  70. package/dist/esm/versions/v1/api/roles-api.js +333 -0
  71. package/dist/esm/versions/v1/api/stages-api.d.ts +24 -1
  72. package/dist/esm/versions/v1/api/stages-api.js +32 -0
  73. package/dist/esm/versions/v1/api/tasks-api.d.ts +97 -1
  74. package/dist/esm/versions/v1/api/tasks-api.js +141 -0
  75. package/dist/esm/versions/v1/api/user-connections-api.d.ts +17 -1
  76. package/dist/esm/versions/v1/api/user-connections-api.js +25 -0
  77. package/dist/esm/versions/v1/api/user-settings-api.d.ts +17 -1
  78. package/dist/esm/versions/v1/api/user-settings-api.js +25 -0
  79. package/dist/esm/versions/v1/api/users-api.d.ts +181 -1
  80. package/dist/esm/versions/v1/api/users-api.js +270 -0
  81. package/dist/esm/versions/v1/api/webhooks-api.d.ts +53 -1
  82. package/dist/esm/versions/v1/api/webhooks-api.js +79 -0
  83. package/dist/esm/versions/v1/base.d.ts +17 -0
  84. package/dist/esm/versions/v1/base.js +22 -0
  85. package/dist/esm/versions/v1/common.d.ts +1 -1
  86. package/dist/esm/versions/v1/common.js +7 -4
  87. package/dist/esm/versions/v2/api/activities-api.d.ts +107 -1
  88. package/dist/esm/versions/v2/api/activities-api.js +151 -0
  89. package/dist/esm/versions/v2/api/activity-fields-api.d.ts +40 -1
  90. package/dist/esm/versions/v2/api/activity-fields-api.js +57 -0
  91. package/dist/esm/versions/v2/api/beta-api.d.ts +451 -1
  92. package/dist/esm/versions/v2/api/beta-api.js +666 -0
  93. package/dist/esm/versions/v2/api/deal-fields-api.d.ts +152 -1
  94. package/dist/esm/versions/v2/api/deal-fields-api.js +223 -0
  95. package/dist/esm/versions/v2/api/deal-installments-api.d.ts +81 -1
  96. package/dist/esm/versions/v2/api/deal-installments-api.js +116 -0
  97. package/dist/esm/versions/v2/api/deal-products-api.d.ts +141 -1
  98. package/dist/esm/versions/v2/api/deal-products-api.js +203 -0
  99. package/dist/esm/versions/v2/api/deals-api.d.ts +363 -1
  100. package/dist/esm/versions/v2/api/deals-api.js +516 -1
  101. package/dist/esm/versions/v2/api/item-search-api.d.ts +49 -1
  102. package/dist/esm/versions/v2/api/item-search-api.js +66 -0
  103. package/dist/esm/versions/v2/api/leads-api.d.ts +64 -1
  104. package/dist/esm/versions/v2/api/leads-api.js +90 -0
  105. package/dist/esm/versions/v2/api/organization-fields-api.d.ts +152 -1
  106. package/dist/esm/versions/v2/api/organization-fields-api.js +223 -0
  107. package/dist/esm/versions/v2/api/organizations-api.d.ts +208 -1
  108. package/dist/esm/versions/v2/api/organizations-api.js +297 -0
  109. package/dist/esm/versions/v2/api/person-fields-api.d.ts +152 -1
  110. package/dist/esm/versions/v2/api/person-fields-api.js +223 -0
  111. package/dist/esm/versions/v2/api/persons-api.d.ts +230 -1
  112. package/dist/esm/versions/v2/api/persons-api.js +328 -0
  113. package/dist/esm/versions/v2/api/pipelines-api.d.ts +95 -1
  114. package/dist/esm/versions/v2/api/pipelines-api.js +139 -0
  115. package/dist/esm/versions/v2/api/product-fields-api.d.ts +152 -1
  116. package/dist/esm/versions/v2/api/product-fields-api.js +223 -0
  117. package/dist/esm/versions/v2/api/products-api.d.ts +371 -1
  118. package/dist/esm/versions/v2/api/products-api.js +541 -0
  119. package/dist/esm/versions/v2/api/project-boards-api.d.ts +90 -1
  120. package/dist/esm/versions/v2/api/project-boards-api.js +134 -0
  121. package/dist/esm/versions/v2/api/project-fields-api.d.ts +150 -1
  122. package/dist/esm/versions/v2/api/project-fields-api.js +221 -0
  123. package/dist/esm/versions/v2/api/project-phases-api.d.ts +92 -1
  124. package/dist/esm/versions/v2/api/project-phases-api.js +136 -0
  125. package/dist/esm/versions/v2/api/project-templates-api.d.ts +38 -1
  126. package/dist/esm/versions/v2/api/project-templates-api.js +55 -0
  127. package/dist/esm/versions/v2/api/projects-api.d.ts +201 -1
  128. package/dist/esm/versions/v2/api/projects-api.js +290 -0
  129. package/dist/esm/versions/v2/api/stages-api.d.ts +96 -1
  130. package/dist/esm/versions/v2/api/stages-api.js +140 -0
  131. package/dist/esm/versions/v2/api/tasks-api.d.ts +98 -1
  132. package/dist/esm/versions/v2/api/tasks-api.js +142 -0
  133. package/dist/esm/versions/v2/api/users-api.d.ts +21 -1
  134. package/dist/esm/versions/v2/api/users-api.js +29 -0
  135. package/dist/esm/versions/v2/base.d.ts +17 -0
  136. package/dist/esm/versions/v2/base.js +22 -0
  137. package/dist/esm/versions/v2/common.d.ts +1 -1
  138. package/dist/esm/versions/v2/common.js +7 -4
  139. package/dist/versions/v1/api/activity-fields-api.d.ts +17 -1
  140. package/dist/versions/v1/api/activity-fields-api.js +25 -0
  141. package/dist/versions/v1/api/activity-types-api.d.ts +72 -1
  142. package/dist/versions/v1/api/activity-types-api.js +107 -0
  143. package/dist/versions/v1/api/billing-api.d.ts +17 -1
  144. package/dist/versions/v1/api/billing-api.js +25 -0
  145. package/dist/versions/v1/api/call-logs-api.d.ts +93 -1
  146. package/dist/versions/v1/api/call-logs-api.js +137 -0
  147. package/dist/versions/v1/api/channels-api.d.ts +74 -1
  148. package/dist/versions/v1/api/channels-api.js +109 -0
  149. package/dist/versions/v1/api/currencies-api.d.ts +19 -1
  150. package/dist/versions/v1/api/currencies-api.js +27 -0
  151. package/dist/versions/v1/api/deal-fields-api.d.ts +111 -1
  152. package/dist/versions/v1/api/deal-fields-api.js +164 -0
  153. package/dist/versions/v1/api/deals-api.d.ts +399 -1
  154. package/dist/versions/v1/api/deals-api.js +569 -0
  155. package/dist/versions/v1/api/files-api.d.ts +163 -1
  156. package/dist/versions/v1/api/files-api.js +234 -0
  157. package/dist/versions/v1/api/filters-api.d.ts +129 -1
  158. package/dist/versions/v1/api/filters-api.js +191 -0
  159. package/dist/versions/v1/api/goals-api.d.ts +106 -1
  160. package/dist/versions/v1/api/goals-api.js +150 -0
  161. package/dist/versions/v1/api/lead-fields-api.d.ts +20 -1
  162. package/dist/versions/v1/api/lead-fields-api.js +28 -0
  163. package/dist/versions/v1/api/lead-labels-api.d.ts +72 -1
  164. package/dist/versions/v1/api/lead-labels-api.js +107 -0
  165. package/dist/versions/v1/api/lead-sources-api.d.ts +17 -1
  166. package/dist/versions/v1/api/lead-sources-api.js +25 -0
  167. package/dist/versions/v1/api/leads-api.d.ts +166 -1
  168. package/dist/versions/v1/api/leads-api.js +237 -0
  169. package/dist/versions/v1/api/legacy-teams-api.d.ts +152 -1
  170. package/dist/versions/v1/api/legacy-teams-api.js +223 -0
  171. package/dist/versions/v1/api/mailbox-api.d.ts +117 -1
  172. package/dist/versions/v1/api/mailbox-api.js +170 -0
  173. package/dist/versions/v1/api/meetings-api.d.ts +37 -1
  174. package/dist/versions/v1/api/meetings-api.js +54 -0
  175. package/dist/versions/v1/api/note-fields-api.d.ts +17 -1
  176. package/dist/versions/v1/api/note-fields-api.js +25 -0
  177. package/dist/versions/v1/api/notes-api.d.ts +207 -1
  178. package/dist/versions/v1/api/notes-api.js +296 -0
  179. package/dist/versions/v1/api/organization-fields-api.d.ts +111 -1
  180. package/dist/versions/v1/api/organization-fields-api.js +164 -0
  181. package/dist/versions/v1/api/organization-relationships-api.d.ts +93 -1
  182. package/dist/versions/v1/api/organization-relationships-api.js +137 -0
  183. package/dist/versions/v1/api/organizations-api.d.ts +178 -1
  184. package/dist/versions/v1/api/organizations-api.js +258 -0
  185. package/dist/versions/v1/api/permission-sets-api.d.ts +57 -1
  186. package/dist/versions/v1/api/permission-sets-api.js +83 -0
  187. package/dist/versions/v1/api/person-fields-api.d.ts +111 -1
  188. package/dist/versions/v1/api/person-fields-api.js +164 -0
  189. package/dist/versions/v1/api/persons-api.d.ts +275 -37
  190. package/dist/versions/v1/api/persons-api.js +370 -24
  191. package/dist/versions/v1/api/pipelines-api.d.ts +69 -1
  192. package/dist/versions/v1/api/pipelines-api.js +95 -0
  193. package/dist/versions/v1/api/product-fields-api.d.ts +111 -1
  194. package/dist/versions/v1/api/product-fields-api.js +164 -0
  195. package/dist/versions/v1/api/products-api.d.ts +119 -1
  196. package/dist/versions/v1/api/products-api.js +172 -0
  197. package/dist/versions/v1/api/project-boards-api.d.ts +35 -1
  198. package/dist/versions/v1/api/project-boards-api.js +52 -0
  199. package/dist/versions/v1/api/project-phases-api.d.ts +37 -1
  200. package/dist/versions/v1/api/project-phases-api.js +54 -0
  201. package/dist/versions/v1/api/project-templates-api.d.ts +38 -1
  202. package/dist/versions/v1/api/project-templates-api.js +55 -0
  203. package/dist/versions/v1/api/projects-api.d.ts +227 -1
  204. package/dist/versions/v1/api/projects-api.js +334 -0
  205. package/dist/versions/v1/api/recents-api.d.ts +22 -1
  206. package/dist/versions/v1/api/recents-api.js +30 -0
  207. package/dist/versions/v1/api/roles-api.d.ts +226 -1
  208. package/dist/versions/v1/api/roles-api.js +333 -0
  209. package/dist/versions/v1/api/stages-api.d.ts +24 -1
  210. package/dist/versions/v1/api/stages-api.js +32 -0
  211. package/dist/versions/v1/api/tasks-api.d.ts +97 -1
  212. package/dist/versions/v1/api/tasks-api.js +141 -0
  213. package/dist/versions/v1/api/user-connections-api.d.ts +17 -1
  214. package/dist/versions/v1/api/user-connections-api.js +25 -0
  215. package/dist/versions/v1/api/user-settings-api.d.ts +17 -1
  216. package/dist/versions/v1/api/user-settings-api.js +25 -0
  217. package/dist/versions/v1/api/users-api.d.ts +181 -1
  218. package/dist/versions/v1/api/users-api.js +270 -0
  219. package/dist/versions/v1/api/webhooks-api.d.ts +53 -1
  220. package/dist/versions/v1/api/webhooks-api.js +79 -0
  221. package/dist/versions/v1/base.d.ts +17 -0
  222. package/dist/versions/v1/base.js +24 -1
  223. package/dist/versions/v1/common.d.ts +1 -1
  224. package/dist/versions/v1/common.js +6 -3
  225. package/dist/versions/v2/api/activities-api.d.ts +107 -1
  226. package/dist/versions/v2/api/activities-api.js +151 -0
  227. package/dist/versions/v2/api/activity-fields-api.d.ts +40 -1
  228. package/dist/versions/v2/api/activity-fields-api.js +57 -0
  229. package/dist/versions/v2/api/beta-api.d.ts +451 -1
  230. package/dist/versions/v2/api/beta-api.js +666 -0
  231. package/dist/versions/v2/api/deal-fields-api.d.ts +152 -1
  232. package/dist/versions/v2/api/deal-fields-api.js +223 -0
  233. package/dist/versions/v2/api/deal-installments-api.d.ts +81 -1
  234. package/dist/versions/v2/api/deal-installments-api.js +116 -0
  235. package/dist/versions/v2/api/deal-products-api.d.ts +141 -1
  236. package/dist/versions/v2/api/deal-products-api.js +203 -0
  237. package/dist/versions/v2/api/deals-api.d.ts +363 -1
  238. package/dist/versions/v2/api/deals-api.js +516 -1
  239. package/dist/versions/v2/api/item-search-api.d.ts +49 -1
  240. package/dist/versions/v2/api/item-search-api.js +66 -0
  241. package/dist/versions/v2/api/leads-api.d.ts +64 -1
  242. package/dist/versions/v2/api/leads-api.js +90 -0
  243. package/dist/versions/v2/api/organization-fields-api.d.ts +152 -1
  244. package/dist/versions/v2/api/organization-fields-api.js +223 -0
  245. package/dist/versions/v2/api/organizations-api.d.ts +208 -1
  246. package/dist/versions/v2/api/organizations-api.js +297 -0
  247. package/dist/versions/v2/api/person-fields-api.d.ts +152 -1
  248. package/dist/versions/v2/api/person-fields-api.js +223 -0
  249. package/dist/versions/v2/api/persons-api.d.ts +230 -1
  250. package/dist/versions/v2/api/persons-api.js +328 -0
  251. package/dist/versions/v2/api/pipelines-api.d.ts +95 -1
  252. package/dist/versions/v2/api/pipelines-api.js +139 -0
  253. package/dist/versions/v2/api/product-fields-api.d.ts +152 -1
  254. package/dist/versions/v2/api/product-fields-api.js +223 -0
  255. package/dist/versions/v2/api/products-api.d.ts +371 -1
  256. package/dist/versions/v2/api/products-api.js +541 -0
  257. package/dist/versions/v2/api/project-boards-api.d.ts +90 -1
  258. package/dist/versions/v2/api/project-boards-api.js +134 -0
  259. package/dist/versions/v2/api/project-fields-api.d.ts +150 -1
  260. package/dist/versions/v2/api/project-fields-api.js +221 -0
  261. package/dist/versions/v2/api/project-phases-api.d.ts +92 -1
  262. package/dist/versions/v2/api/project-phases-api.js +136 -0
  263. package/dist/versions/v2/api/project-templates-api.d.ts +38 -1
  264. package/dist/versions/v2/api/project-templates-api.js +55 -0
  265. package/dist/versions/v2/api/projects-api.d.ts +201 -1
  266. package/dist/versions/v2/api/projects-api.js +290 -0
  267. package/dist/versions/v2/api/stages-api.d.ts +96 -1
  268. package/dist/versions/v2/api/stages-api.js +140 -0
  269. package/dist/versions/v2/api/tasks-api.d.ts +98 -1
  270. package/dist/versions/v2/api/tasks-api.js +142 -0
  271. package/dist/versions/v2/api/users-api.d.ts +21 -1
  272. package/dist/versions/v2/api/users-api.js +29 -0
  273. package/dist/versions/v2/base.d.ts +17 -0
  274. package/dist/versions/v2/base.js +24 -1
  275. package/dist/versions/v2/common.d.ts +1 -1
  276. package/dist/versions/v2/common.js +6 -3
  277. package/package.json +1 -1
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosInstance } from 'axios';
14
- import { RequestArgs, BaseAPI } from '../base';
14
+ import { RequestArgs, BaseAPI, ApiResponse } from '../base';
15
15
  import { AddLeadRequest } from '../models';
16
16
  import { GetLeadIdResponse } from '../models';
17
17
  import { GetLeadResponse } from '../models';
@@ -123,6 +123,14 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
123
123
  * @throws {RequiredError}
124
124
  */
125
125
  addLead(AddLeadRequest?: AddLeadRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadResponse>>;
126
+ /**
127
+ * Same as `addLead`, but resolves with the response body together with the HTTP status and headers.
128
+ * @summary Add a lead
129
+ * @param {AddLeadRequest} [AddLeadRequest]
130
+
131
+ * @throws {RequiredError}
132
+ */
133
+ addLeadWithHttpInfo(AddLeadRequest?: AddLeadRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetLeadResponse>>>;
126
134
  /**
127
135
  * Deletes a specific lead.
128
136
  * @summary Delete a lead
@@ -131,6 +139,14 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
131
139
  * @throws {RequiredError}
132
140
  */
133
141
  deleteLead(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadIdResponse>>;
142
+ /**
143
+ * Same as `deleteLead`, but resolves with the response body together with the HTTP status and headers.
144
+ * @summary Delete a lead
145
+ * @param {string} id The ID of the lead
146
+
147
+ * @throws {RequiredError}
148
+ */
149
+ deleteLeadWithHttpInfo(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetLeadIdResponse>>>;
134
150
  /**
135
151
  * Returns multiple archived leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals.
136
152
  * @summary Get all archived leads
@@ -145,6 +161,20 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
145
161
  * @throws {RequiredError}
146
162
  */
147
163
  getArchivedLeads(limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadsResponse>>;
164
+ /**
165
+ * Same as `getArchivedLeads`, but resolves with the response body together with the HTTP status and headers.
166
+ * @summary Get all archived leads
167
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
168
+ * @param {number} [start] For pagination, the position that represents the first result for the page
169
+ * @param {number} [owner_id] If supplied, only leads matching the given user will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;owner_id&#x60; when supplied.
170
+ * @param {number} [person_id] If supplied, only leads matching the given person will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;person_id&#x60; when supplied.
171
+ * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
172
+ * @param {number} [filter_id] The ID of the filter to use
173
+ * @param {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys).
174
+
175
+ * @throws {RequiredError}
176
+ */
177
+ getArchivedLeadsWithHttpInfo(limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetLeadsResponse>>>;
148
178
  /**
149
179
  * Returns details of a specific lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals.
150
180
  * @summary Get one lead
@@ -153,6 +183,14 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
153
183
  * @throws {RequiredError}
154
184
  */
155
185
  getLead(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadResponse>>;
186
+ /**
187
+ * Same as `getLead`, but resolves with the response body together with the HTTP status and headers.
188
+ * @summary Get one lead
189
+ * @param {string} id The ID of the lead
190
+
191
+ * @throws {RequiredError}
192
+ */
193
+ getLeadWithHttpInfo(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetLeadResponse>>>;
156
194
  /**
157
195
  * Lists the users permitted to access a lead.
158
196
  * @summary List permitted users
@@ -161,6 +199,14 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
161
199
  * @throws {RequiredError}
162
200
  */
163
201
  getLeadUsers(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UserIds>>;
202
+ /**
203
+ * Same as `getLeadUsers`, but resolves with the response body together with the HTTP status and headers.
204
+ * @summary List permitted users
205
+ * @param {string} id The ID of the lead
206
+
207
+ * @throws {RequiredError}
208
+ */
209
+ getLeadUsersWithHttpInfo(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UserIds>>>;
164
210
  /**
165
211
  * Returns multiple not archived leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals.
166
212
  * @summary Get all leads
@@ -176,6 +222,21 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
176
222
  * @throws {RequiredError}
177
223
  */
178
224
  getLeads(limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, updated_since?: string, sort?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadsResponse>>;
225
+ /**
226
+ * Same as `getLeads`, but resolves with the response body together with the HTTP status and headers.
227
+ * @summary Get all leads
228
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
229
+ * @param {number} [start] For pagination, the position that represents the first result for the page
230
+ * @param {number} [owner_id] If supplied, only leads matching the given user will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;owner_id&#x60; when supplied.
231
+ * @param {number} [person_id] If supplied, only leads matching the given person will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;person_id&#x60; when supplied.
232
+ * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied.
233
+ * @param {number} [filter_id] The ID of the filter to use
234
+ * @param {string} [updated_since] If set, only leads with an &#x60;update_time&#x60; later than or equal to this time are returned. In ISO 8601 format, e.g. 2025-01-01T10:20:00Z.
235
+ * @param {string} [sort] The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys). Supported fields: id, title, owner_id, creator_id, label_ids, value, source_name, was_seen, expected_close_date, next_activity_id, add_time, update_time, visible_to, and custom fields.
236
+
237
+ * @throws {RequiredError}
238
+ */
239
+ getLeadsWithHttpInfo(limit?: number, start?: number, owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, updated_since?: string, sort?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetLeadsResponse>>>;
179
240
  /**
180
241
  * 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.
181
242
  * @summary Search leads
@@ -191,6 +252,21 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
191
252
  * @throws {RequiredError}
192
253
  */
193
254
  searchLeads(term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: Set<'lead.was_seen'>, start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadSearchResponse>>;
255
+ /**
256
+ * Same as `searchLeads`, but resolves with the response body together with the HTTP status and headers.
257
+ * @summary Search leads
258
+ * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using &#x60;exact_match&#x60;). Please note that the search term has to be URL encoded.
259
+ * @param {Set<'custom_fields' | 'notes' | 'title'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them.
260
+ * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
261
+ * @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000.
262
+ * @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000.
263
+ * @param {Set<'lead.was_seen'>} [include_fields] Supports including optional fields in the results which are not provided by default
264
+ * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using &#x60;search_for_related_items&#x60; parameter.
265
+ * @param {number} [limit] Items shown per page
266
+
267
+ * @throws {RequiredError}
268
+ */
269
+ searchLeadsWithHttpInfo(term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: Set<'lead.was_seen'>, start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetLeadSearchResponse>>>;
194
270
  /**
195
271
  * Updates one or more properties of a lead. Only properties included in the request will be updated. Send `null` to unset a property (applicable for example for `value`, `person_id` or `organization_id`). If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. See an example given in the <a href=\"https://pipedrive.readme.io/docs/updating-custom-field-value\" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields’ values tutorial</a>.
196
272
  * @summary Update a lead
@@ -200,6 +276,15 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
200
276
  * @throws {RequiredError}
201
277
  */
202
278
  updateLead(id: string, UpdateLeadRequest?: UpdateLeadRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadResponse>>;
279
+ /**
280
+ * Same as `updateLead`, but resolves with the response body together with the HTTP status and headers.
281
+ * @summary Update a lead
282
+ * @param {string} id The ID of the lead
283
+ * @param {UpdateLeadRequest} [UpdateLeadRequest]
284
+
285
+ * @throws {RequiredError}
286
+ */
287
+ updateLeadWithHttpInfo(id: string, UpdateLeadRequest?: UpdateLeadRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetLeadResponse>>>;
203
288
  };
204
289
  /**
205
290
  * LeadsApi - factory interface
@@ -214,6 +299,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
214
299
  * @throws {RequiredError}
215
300
  */
216
301
  addLead(requestParameters?: LeadsApiAddLeadRequest): Promise<GetLeadResponse>;
302
+ addLeadWithHttpInfo(requestParameters?: LeadsApiAddLeadRequest): Promise<ApiResponse<GetLeadResponse>>;
217
303
  /**
218
304
  * Deletes a specific lead.
219
305
  * @summary Delete a lead
@@ -222,6 +308,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
222
308
  * @throws {RequiredError}
223
309
  */
224
310
  deleteLead(requestParameters: LeadsApiDeleteLeadRequest): Promise<GetLeadIdResponse>;
311
+ deleteLeadWithHttpInfo(requestParameters: LeadsApiDeleteLeadRequest): Promise<ApiResponse<GetLeadIdResponse>>;
225
312
  /**
226
313
  * Returns multiple archived leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals.
227
314
  * @summary Get all archived leads
@@ -230,6 +317,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
230
317
  * @throws {RequiredError}
231
318
  */
232
319
  getArchivedLeads(requestParameters?: LeadsApiGetArchivedLeadsRequest): Promise<GetLeadsResponse>;
320
+ getArchivedLeadsWithHttpInfo(requestParameters?: LeadsApiGetArchivedLeadsRequest): Promise<ApiResponse<GetLeadsResponse>>;
233
321
  /**
234
322
  * Returns details of a specific lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals.
235
323
  * @summary Get one lead
@@ -238,6 +326,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
238
326
  * @throws {RequiredError}
239
327
  */
240
328
  getLead(requestParameters: LeadsApiGetLeadRequest): Promise<GetLeadResponse>;
329
+ getLeadWithHttpInfo(requestParameters: LeadsApiGetLeadRequest): Promise<ApiResponse<GetLeadResponse>>;
241
330
  /**
242
331
  * Lists the users permitted to access a lead.
243
332
  * @summary List permitted users
@@ -246,6 +335,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
246
335
  * @throws {RequiredError}
247
336
  */
248
337
  getLeadUsers(requestParameters: LeadsApiGetLeadUsersRequest): Promise<UserIds>;
338
+ getLeadUsersWithHttpInfo(requestParameters: LeadsApiGetLeadUsersRequest): Promise<ApiResponse<UserIds>>;
249
339
  /**
250
340
  * Returns multiple not archived leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals.
251
341
  * @summary Get all leads
@@ -254,6 +344,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
254
344
  * @throws {RequiredError}
255
345
  */
256
346
  getLeads(requestParameters?: LeadsApiGetLeadsRequest): Promise<GetLeadsResponse>;
347
+ getLeadsWithHttpInfo(requestParameters?: LeadsApiGetLeadsRequest): Promise<ApiResponse<GetLeadsResponse>>;
257
348
  /**
258
349
  * 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.
259
350
  * @summary Search leads
@@ -262,6 +353,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
262
353
  * @throws {RequiredError}
263
354
  */
264
355
  searchLeads(requestParameters: LeadsApiSearchLeadsRequest): Promise<GetLeadSearchResponse>;
356
+ searchLeadsWithHttpInfo(requestParameters: LeadsApiSearchLeadsRequest): Promise<ApiResponse<GetLeadSearchResponse>>;
265
357
  /**
266
358
  * Updates one or more properties of a lead. Only properties included in the request will be updated. Send `null` to unset a property (applicable for example for `value`, `person_id` or `organization_id`). If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. See an example given in the <a href=\"https://pipedrive.readme.io/docs/updating-custom-field-value\" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields’ values tutorial</a>.
267
359
  * @summary Update a lead
@@ -270,6 +362,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
270
362
  * @throws {RequiredError}
271
363
  */
272
364
  updateLead(requestParameters: LeadsApiUpdateLeadRequest): Promise<GetLeadResponse>;
365
+ updateLeadWithHttpInfo(requestParameters: LeadsApiUpdateLeadRequest): Promise<ApiResponse<GetLeadResponse>>;
273
366
  };
274
367
  /**
275
368
  * Request parameters for addLead operation in LeadsApi.
@@ -517,6 +610,15 @@ export declare class LeadsApi extends BaseAPI {
517
610
  * @memberof LeadsApi
518
611
  */
519
612
  addLead(requestParameters?: LeadsApiAddLeadRequest): Promise<GetLeadResponse>;
613
+ /**
614
+ * Same as `addLead`, but resolves with the response body together with the HTTP status and headers.
615
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
616
+ * @param {LeadsApiAddLeadRequest} requestParameters Request parameters.
617
+
618
+ * @throws {RequiredError}
619
+ * @memberof LeadsApi
620
+ */
621
+ addLeadWithHttpInfo(requestParameters?: LeadsApiAddLeadRequest): Promise<ApiResponse<GetLeadResponse>>;
520
622
  /**
521
623
  * Deletes a specific lead.
522
624
  * @summary Delete a lead
@@ -526,6 +628,15 @@ export declare class LeadsApi extends BaseAPI {
526
628
  * @memberof LeadsApi
527
629
  */
528
630
  deleteLead(requestParameters: LeadsApiDeleteLeadRequest): Promise<GetLeadIdResponse>;
631
+ /**
632
+ * Same as `deleteLead`, but resolves with the response body together with the HTTP status and headers.
633
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
634
+ * @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters.
635
+
636
+ * @throws {RequiredError}
637
+ * @memberof LeadsApi
638
+ */
639
+ deleteLeadWithHttpInfo(requestParameters: LeadsApiDeleteLeadRequest): Promise<ApiResponse<GetLeadIdResponse>>;
529
640
  /**
530
641
  * Returns multiple archived leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals.
531
642
  * @summary Get all archived leads
@@ -535,6 +646,15 @@ export declare class LeadsApi extends BaseAPI {
535
646
  * @memberof LeadsApi
536
647
  */
537
648
  getArchivedLeads(requestParameters?: LeadsApiGetArchivedLeadsRequest): Promise<GetLeadsResponse>;
649
+ /**
650
+ * Same as `getArchivedLeads`, but resolves with the response body together with the HTTP status and headers.
651
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
652
+ * @param {LeadsApiGetArchivedLeadsRequest} requestParameters Request parameters.
653
+
654
+ * @throws {RequiredError}
655
+ * @memberof LeadsApi
656
+ */
657
+ getArchivedLeadsWithHttpInfo(requestParameters?: LeadsApiGetArchivedLeadsRequest): Promise<ApiResponse<GetLeadsResponse>>;
538
658
  /**
539
659
  * Returns details of a specific lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals.
540
660
  * @summary Get one lead
@@ -544,6 +664,15 @@ export declare class LeadsApi extends BaseAPI {
544
664
  * @memberof LeadsApi
545
665
  */
546
666
  getLead(requestParameters: LeadsApiGetLeadRequest): Promise<GetLeadResponse>;
667
+ /**
668
+ * Same as `getLead`, but resolves with the response body together with the HTTP status and headers.
669
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
670
+ * @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
671
+
672
+ * @throws {RequiredError}
673
+ * @memberof LeadsApi
674
+ */
675
+ getLeadWithHttpInfo(requestParameters: LeadsApiGetLeadRequest): Promise<ApiResponse<GetLeadResponse>>;
547
676
  /**
548
677
  * Lists the users permitted to access a lead.
549
678
  * @summary List permitted users
@@ -553,6 +682,15 @@ export declare class LeadsApi extends BaseAPI {
553
682
  * @memberof LeadsApi
554
683
  */
555
684
  getLeadUsers(requestParameters: LeadsApiGetLeadUsersRequest): Promise<UserIds>;
685
+ /**
686
+ * Same as `getLeadUsers`, but resolves with the response body together with the HTTP status and headers.
687
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
688
+ * @param {LeadsApiGetLeadUsersRequest} requestParameters Request parameters.
689
+
690
+ * @throws {RequiredError}
691
+ * @memberof LeadsApi
692
+ */
693
+ getLeadUsersWithHttpInfo(requestParameters: LeadsApiGetLeadUsersRequest): Promise<ApiResponse<UserIds>>;
556
694
  /**
557
695
  * Returns multiple not archived leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals.
558
696
  * @summary Get all leads
@@ -562,6 +700,15 @@ export declare class LeadsApi extends BaseAPI {
562
700
  * @memberof LeadsApi
563
701
  */
564
702
  getLeads(requestParameters?: LeadsApiGetLeadsRequest): Promise<GetLeadsResponse>;
703
+ /**
704
+ * Same as `getLeads`, but resolves with the response body together with the HTTP status and headers.
705
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
706
+ * @param {LeadsApiGetLeadsRequest} requestParameters Request parameters.
707
+
708
+ * @throws {RequiredError}
709
+ * @memberof LeadsApi
710
+ */
711
+ getLeadsWithHttpInfo(requestParameters?: LeadsApiGetLeadsRequest): Promise<ApiResponse<GetLeadsResponse>>;
565
712
  /**
566
713
  * 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.
567
714
  * @summary Search leads
@@ -571,6 +718,15 @@ export declare class LeadsApi extends BaseAPI {
571
718
  * @memberof LeadsApi
572
719
  */
573
720
  searchLeads(requestParameters: LeadsApiSearchLeadsRequest): Promise<GetLeadSearchResponse>;
721
+ /**
722
+ * Same as `searchLeads`, but resolves with the response body together with the HTTP status and headers.
723
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
724
+ * @param {LeadsApiSearchLeadsRequest} requestParameters Request parameters.
725
+
726
+ * @throws {RequiredError}
727
+ * @memberof LeadsApi
728
+ */
729
+ searchLeadsWithHttpInfo(requestParameters: LeadsApiSearchLeadsRequest): Promise<ApiResponse<GetLeadSearchResponse>>;
574
730
  /**
575
731
  * Updates one or more properties of a lead. Only properties included in the request will be updated. Send `null` to unset a property (applicable for example for `value`, `person_id` or `organization_id`). If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. See an example given in the <a href=\"https://pipedrive.readme.io/docs/updating-custom-field-value\" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields’ values tutorial</a>.
576
732
  * @summary Update a lead
@@ -580,4 +736,13 @@ export declare class LeadsApi extends BaseAPI {
580
736
  * @memberof LeadsApi
581
737
  */
582
738
  updateLead(requestParameters: LeadsApiUpdateLeadRequest): Promise<GetLeadResponse>;
739
+ /**
740
+ * Same as `updateLead`, but resolves with the response body together with the HTTP status and headers.
741
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
742
+ * @param {LeadsApiUpdateLeadRequest} requestParameters Request parameters.
743
+
744
+ * @throws {RequiredError}
745
+ * @memberof LeadsApi
746
+ */
747
+ updateLeadWithHttpInfo(requestParameters: LeadsApiUpdateLeadRequest): Promise<ApiResponse<GetLeadResponse>>;
583
748
  }