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 { GetItemSearchFieldResponse } from '../models';
16
16
  import { GetItemSearchResponse } from '../models';
17
17
  /**
@@ -68,6 +68,21 @@ export declare const ItemSearchApiFp: (configuration?: Configuration) => {
68
68
  * @throws {RequiredError}
69
69
  */
70
70
  searchItem(term: string, item_types?: Set<'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'>, fields?: Set<'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'>, search_for_related_items?: boolean, exact_match?: boolean, include_fields?: Set<'deal.cc_email' | 'person.picture' | 'product.price'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetItemSearchResponse>>;
71
+ /**
72
+ * Same as `searchItem`, but resolves with the response body together with the HTTP status and headers.
73
+ * @summary Perform a search from multiple item types
74
+ * @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.
75
+ * @param {Set<'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'>} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all.
76
+ * @param {Set<'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:&lt;br&gt; &lt;table&gt; &lt;tr&gt;&lt;th&gt;&lt;b&gt;Item type&lt;/b&gt;&lt;/th&gt;&lt;th&gt;&lt;b&gt;Field&lt;/b&gt;&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Deal&lt;/td&gt;&lt;td&gt;&#x60;custom_fields&#x60;, &#x60;notes&#x60;, &#x60;title&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Person&lt;/td&gt;&lt;td&gt;&#x60;custom_fields&#x60;, &#x60;email&#x60;, &#x60;name&#x60;, &#x60;notes&#x60;, &#x60;phone&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Organization&lt;/td&gt;&lt;td&gt;&#x60;address&#x60;, &#x60;custom_fields&#x60;, &#x60;name&#x60;, &#x60;notes&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Product&lt;/td&gt;&lt;td&gt;&#x60;code&#x60;, &#x60;custom_fields&#x60;, &#x60;name&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Lead&lt;/td&gt;&lt;td&gt;&#x60;custom_fields&#x60;, &#x60;notes&#x60;, &#x60;title&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;File&lt;/td&gt;&lt;td&gt;&#x60;name&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Mail attachment&lt;/td&gt;&lt;td&gt;&#x60;name&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Project&lt;/td&gt;&lt;td&gt; &#x60;custom_fields&#x60;, &#x60;notes&#x60;, &#x60;title&#x60;, &#x60;description&#x60; &lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;br&gt; Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
77
+ * @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization
78
+ * @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.
79
+ * @param {Set<'deal.cc_email' | 'person.picture' | 'product.price'>} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default.
80
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 100 is allowed.
81
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
82
+
83
+ * @throws {RequiredError}
84
+ */
85
+ searchItemWithHttpInfo(term: string, item_types?: Set<'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'>, fields?: Set<'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'>, search_for_related_items?: boolean, exact_match?: boolean, include_fields?: Set<'deal.cc_email' | 'person.picture' | 'product.price'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetItemSearchResponse>>>;
71
86
  /**
72
87
  * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
73
88
  * @summary Perform a search using a specific field from an item type
@@ -81,6 +96,19 @@ export declare const ItemSearchApiFp: (configuration?: Configuration) => {
81
96
  * @throws {RequiredError}
82
97
  */
83
98
  searchItemByField(term: string, entity_type: 'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project', field: string, match?: 'exact' | 'beginning' | 'middle', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetItemSearchFieldResponse>>;
99
+ /**
100
+ * Same as `searchItemByField`, but resolves with the response body together with the HTTP status and headers.
101
+ * @summary Perform a search using a specific field from an item type
102
+ * @param {string} term The search term to look for. Minimum 2 characters (or 1 if &#x60;match&#x60; is &#x60;exact&#x60;). Please note that the search term has to be URL encoded.
103
+ * @param {'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project'} entity_type The type of the field to perform the search from
104
+ * @param {string} field The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\&#39; API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
105
+ * @param {'exact' | 'beginning' | 'middle'} [match] The type of match used against the term. The search &lt;b&gt;is&lt;/b&gt; case sensitive.&lt;br/&gt;&lt;br/&gt; E.g. in case of searching for a value &#x60;monkey&#x60;, &lt;ul&gt; &lt;li&gt;with &#x60;exact&#x60; match, you will only find it if term is &#x60;monkey&#x60;&lt;/li&gt; &lt;li&gt;with &#x60;beginning&#x60; match, you will only find it if the term matches the beginning or the whole string, e.g. &#x60;monk&#x60; and &#x60;monkey&#x60;&lt;/li&gt; &lt;li&gt;with &#x60;middle&#x60; match, you will find the it if the term matches any substring of the value, e.g. &#x60;onk&#x60; and &#x60;ke&#x60;&lt;/li&gt; &lt;/ul&gt;.
106
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
107
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
108
+
109
+ * @throws {RequiredError}
110
+ */
111
+ searchItemByFieldWithHttpInfo(term: string, entity_type: 'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project', field: string, match?: 'exact' | 'beginning' | 'middle', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetItemSearchFieldResponse>>>;
84
112
  };
85
113
  /**
86
114
  * ItemSearchApi - factory interface
@@ -95,6 +123,7 @@ export declare const ItemSearchApiFactory: (configuration?: Configuration, baseP
95
123
  * @throws {RequiredError}
96
124
  */
97
125
  searchItem(requestParameters: ItemSearchApiSearchItemRequest): Promise<GetItemSearchResponse>;
126
+ searchItemWithHttpInfo(requestParameters: ItemSearchApiSearchItemRequest): Promise<ApiResponse<GetItemSearchResponse>>;
98
127
  /**
99
128
  * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
100
129
  * @summary Perform a search using a specific field from an item type
@@ -103,6 +132,7 @@ export declare const ItemSearchApiFactory: (configuration?: Configuration, baseP
103
132
  * @throws {RequiredError}
104
133
  */
105
134
  searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest): Promise<GetItemSearchFieldResponse>;
135
+ searchItemByFieldWithHttpInfo(requestParameters: ItemSearchApiSearchItemByFieldRequest): Promise<ApiResponse<GetItemSearchFieldResponse>>;
106
136
  };
107
137
  /**
108
138
  * Request parameters for searchItem operation in ItemSearchApi.
@@ -218,6 +248,15 @@ export declare class ItemSearchApi extends BaseAPI {
218
248
  * @memberof ItemSearchApi
219
249
  */
220
250
  searchItem(requestParameters: ItemSearchApiSearchItemRequest): Promise<GetItemSearchResponse>;
251
+ /**
252
+ * Same as `searchItem`, but resolves with the response body together with the HTTP status and headers.
253
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
254
+ * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters.
255
+
256
+ * @throws {RequiredError}
257
+ * @memberof ItemSearchApi
258
+ */
259
+ searchItemWithHttpInfo(requestParameters: ItemSearchApiSearchItemRequest): Promise<ApiResponse<GetItemSearchResponse>>;
221
260
  /**
222
261
  * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
223
262
  * @summary Perform a search using a specific field from an item type
@@ -227,4 +266,13 @@ export declare class ItemSearchApi extends BaseAPI {
227
266
  * @memberof ItemSearchApi
228
267
  */
229
268
  searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest): Promise<GetItemSearchFieldResponse>;
269
+ /**
270
+ * Same as `searchItemByField`, but resolves with the response body together with the HTTP status and headers.
271
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
272
+ * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters.
273
+
274
+ * @throws {RequiredError}
275
+ * @memberof ItemSearchApi
276
+ */
277
+ searchItemByFieldWithHttpInfo(requestParameters: ItemSearchApiSearchItemByFieldRequest): Promise<ApiResponse<GetItemSearchFieldResponse>>;
230
278
  }
@@ -192,6 +192,26 @@ const ItemSearchApiFp = function (configuration) {
192
192
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
193
193
  });
194
194
  },
195
+ /**
196
+ * Same as `searchItem`, but resolves with the response body together with the HTTP status and headers.
197
+ * @summary Perform a search from multiple item types
198
+ * @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.
199
+ * @param {Set<'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'>} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all.
200
+ * @param {Set<'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:&lt;br&gt; &lt;table&gt; &lt;tr&gt;&lt;th&gt;&lt;b&gt;Item type&lt;/b&gt;&lt;/th&gt;&lt;th&gt;&lt;b&gt;Field&lt;/b&gt;&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Deal&lt;/td&gt;&lt;td&gt;&#x60;custom_fields&#x60;, &#x60;notes&#x60;, &#x60;title&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Person&lt;/td&gt;&lt;td&gt;&#x60;custom_fields&#x60;, &#x60;email&#x60;, &#x60;name&#x60;, &#x60;notes&#x60;, &#x60;phone&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Organization&lt;/td&gt;&lt;td&gt;&#x60;address&#x60;, &#x60;custom_fields&#x60;, &#x60;name&#x60;, &#x60;notes&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Product&lt;/td&gt;&lt;td&gt;&#x60;code&#x60;, &#x60;custom_fields&#x60;, &#x60;name&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Lead&lt;/td&gt;&lt;td&gt;&#x60;custom_fields&#x60;, &#x60;notes&#x60;, &#x60;title&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;File&lt;/td&gt;&lt;td&gt;&#x60;name&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Mail attachment&lt;/td&gt;&lt;td&gt;&#x60;name&#x60;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Project&lt;/td&gt;&lt;td&gt; &#x60;custom_fields&#x60;, &#x60;notes&#x60;, &#x60;title&#x60;, &#x60;description&#x60; &lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;br&gt; Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
201
+ * @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization
202
+ * @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.
203
+ * @param {Set<'deal.cc_email' | 'person.picture' | 'product.price'>} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default.
204
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 100 is allowed.
205
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
206
+
207
+ * @throws {RequiredError}
208
+ */
209
+ searchItemWithHttpInfo(term, item_types, fields, search_for_related_items, exact_match, include_fields, limit, cursor) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.searchItem(term, item_types, fields, search_for_related_items, exact_match, include_fields, limit, cursor);
212
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
213
+ });
214
+ },
195
215
  /**
196
216
  * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
197
217
  * @summary Perform a search using a specific field from an item type
@@ -210,6 +230,24 @@ const ItemSearchApiFp = function (configuration) {
210
230
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
211
231
  });
212
232
  },
233
+ /**
234
+ * Same as `searchItemByField`, but resolves with the response body together with the HTTP status and headers.
235
+ * @summary Perform a search using a specific field from an item type
236
+ * @param {string} term The search term to look for. Minimum 2 characters (or 1 if &#x60;match&#x60; is &#x60;exact&#x60;). Please note that the search term has to be URL encoded.
237
+ * @param {'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project'} entity_type The type of the field to perform the search from
238
+ * @param {string} field The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\&#39; API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
239
+ * @param {'exact' | 'beginning' | 'middle'} [match] The type of match used against the term. The search &lt;b&gt;is&lt;/b&gt; case sensitive.&lt;br/&gt;&lt;br/&gt; E.g. in case of searching for a value &#x60;monkey&#x60;, &lt;ul&gt; &lt;li&gt;with &#x60;exact&#x60; match, you will only find it if term is &#x60;monkey&#x60;&lt;/li&gt; &lt;li&gt;with &#x60;beginning&#x60; match, you will only find it if the term matches the beginning or the whole string, e.g. &#x60;monk&#x60; and &#x60;monkey&#x60;&lt;/li&gt; &lt;li&gt;with &#x60;middle&#x60; match, you will find the it if the term matches any substring of the value, e.g. &#x60;onk&#x60; and &#x60;ke&#x60;&lt;/li&gt; &lt;/ul&gt;.
240
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
241
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
242
+
243
+ * @throws {RequiredError}
244
+ */
245
+ searchItemByFieldWithHttpInfo(term, entity_type, field, match, limit, cursor) {
246
+ return __awaiter(this, void 0, void 0, function* () {
247
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.searchItemByField(term, entity_type, field, match, limit, cursor);
248
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
249
+ });
250
+ },
213
251
  };
214
252
  };
215
253
  exports.ItemSearchApiFp = ItemSearchApiFp;
@@ -230,6 +268,9 @@ const ItemSearchApiFactory = function (configuration, basePath, axios) {
230
268
  searchItem(requestParameters) {
231
269
  return localVarFp.searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
232
270
  },
271
+ searchItemWithHttpInfo(requestParameters) {
272
+ return localVarFp.searchItemWithHttpInfo(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
273
+ },
233
274
  /**
234
275
  * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
235
276
  * @summary Perform a search using a specific field from an item type
@@ -240,6 +281,9 @@ const ItemSearchApiFactory = function (configuration, basePath, axios) {
240
281
  searchItemByField(requestParameters) {
241
282
  return localVarFp.searchItemByField(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
242
283
  },
284
+ searchItemByFieldWithHttpInfo(requestParameters) {
285
+ return localVarFp.searchItemByFieldWithHttpInfo(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
286
+ },
243
287
  };
244
288
  };
245
289
  exports.ItemSearchApiFactory = ItemSearchApiFactory;
@@ -261,6 +305,17 @@ class ItemSearchApi extends base_1.BaseAPI {
261
305
  searchItem(requestParameters) {
262
306
  return (0, exports.ItemSearchApiFp)(this.configuration).searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
263
307
  }
308
+ /**
309
+ * Same as `searchItem`, but resolves with the response body together with the HTTP status and headers.
310
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
311
+ * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters.
312
+
313
+ * @throws {RequiredError}
314
+ * @memberof ItemSearchApi
315
+ */
316
+ searchItemWithHttpInfo(requestParameters) {
317
+ return (0, exports.ItemSearchApiFp)(this.configuration).searchItemWithHttpInfo(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
318
+ }
264
319
  /**
265
320
  * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
266
321
  * @summary Perform a search using a specific field from an item type
@@ -272,5 +327,16 @@ class ItemSearchApi extends base_1.BaseAPI {
272
327
  searchItemByField(requestParameters) {
273
328
  return (0, exports.ItemSearchApiFp)(this.configuration).searchItemByField(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
274
329
  }
330
+ /**
331
+ * Same as `searchItemByField`, but resolves with the response body together with the HTTP status and headers.
332
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
333
+ * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters.
334
+
335
+ * @throws {RequiredError}
336
+ * @memberof ItemSearchApi
337
+ */
338
+ searchItemByFieldWithHttpInfo(requestParameters) {
339
+ return (0, exports.ItemSearchApiFp)(this.configuration).searchItemByFieldWithHttpInfo(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
340
+ }
275
341
  }
276
342
  exports.ItemSearchApi = ItemSearchApi;
@@ -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 { AddConvertLeadToDealResponse } from '../models';
16
16
  import { ConvertLeadToDealRequest } from '../models';
17
17
  import { GetConvertResponse1 } from '../models';
@@ -69,6 +69,15 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
69
69
  * @throws {RequiredError}
70
70
  */
71
71
  convertLeadToDeal(id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddConvertLeadToDealResponse>>;
72
+ /**
73
+ * Same as `convertLeadToDeal`, but resolves with the response body together with the HTTP status and headers.
74
+ * @summary Convert a lead to a deal
75
+ * @param {string} id The ID of the lead to convert
76
+ * @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
77
+
78
+ * @throws {RequiredError}
79
+ */
80
+ convertLeadToDealWithHttpInfo(id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<AddConvertLeadToDealResponse>>>;
72
81
  /**
73
82
  * 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
83
  * @summary Get Lead conversion status
@@ -78,6 +87,15 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
78
87
  * @throws {RequiredError}
79
88
  */
80
89
  getLeadConversionStatus(id: string, conversion_id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetConvertResponse1>>;
90
+ /**
91
+ * Same as `getLeadConversionStatus`, but resolves with the response body together with the HTTP status and headers.
92
+ * @summary Get Lead conversion status
93
+ * @param {string} id The ID of a lead
94
+ * @param {string} conversion_id The ID of the conversion
95
+
96
+ * @throws {RequiredError}
97
+ */
98
+ getLeadConversionStatusWithHttpInfo(id: string, conversion_id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetConvertResponse1>>>;
81
99
  /**
82
100
  * 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.
83
101
  * @summary Search leads
@@ -93,6 +111,21 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
93
111
  * @throws {RequiredError}
94
112
  */
95
113
  searchLeads(term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: Set<'lead.was_seen'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadSearchResponse>>;
114
+ /**
115
+ * Same as `searchLeads`, but resolves with the response body together with the HTTP status and headers.
116
+ * @summary Search leads
117
+ * @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.
118
+ * @param {Set<'custom_fields' | 'notes' | 'title'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them.
119
+ * @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.
120
+ * @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000.
121
+ * @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000.
122
+ * @param {Set<'lead.was_seen'>} [include_fields] Supports including optional fields in the results which are not provided by default
123
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 100 is allowed.
124
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
125
+
126
+ * @throws {RequiredError}
127
+ */
128
+ searchLeadsWithHttpInfo(term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: Set<'lead.was_seen'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetLeadSearchResponse>>>;
96
129
  };
97
130
  /**
98
131
  * LeadsApi - factory interface
@@ -107,6 +140,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
107
140
  * @throws {RequiredError}
108
141
  */
109
142
  convertLeadToDeal(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<AddConvertLeadToDealResponse>;
143
+ convertLeadToDealWithHttpInfo(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<ApiResponse<AddConvertLeadToDealResponse>>;
110
144
  /**
111
145
  * 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
146
  * @summary Get Lead conversion status
@@ -115,6 +149,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
115
149
  * @throws {RequiredError}
116
150
  */
117
151
  getLeadConversionStatus(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<GetConvertResponse1>;
152
+ getLeadConversionStatusWithHttpInfo(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<ApiResponse<GetConvertResponse1>>;
118
153
  /**
119
154
  * 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.
120
155
  * @summary Search leads
@@ -123,6 +158,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
123
158
  * @throws {RequiredError}
124
159
  */
125
160
  searchLeads(requestParameters: LeadsApiSearchLeadsRequest): Promise<GetLeadSearchResponse>;
161
+ searchLeadsWithHttpInfo(requestParameters: LeadsApiSearchLeadsRequest): Promise<ApiResponse<GetLeadSearchResponse>>;
126
162
  };
127
163
  /**
128
164
  * Request parameters for convertLeadToDeal operation in LeadsApi.
@@ -233,6 +269,15 @@ export declare class LeadsApi extends BaseAPI {
233
269
  * @memberof LeadsApi
234
270
  */
235
271
  convertLeadToDeal(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<AddConvertLeadToDealResponse>;
272
+ /**
273
+ * Same as `convertLeadToDeal`, but resolves with the response body together with the HTTP status and headers.
274
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
275
+ * @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
276
+
277
+ * @throws {RequiredError}
278
+ * @memberof LeadsApi
279
+ */
280
+ convertLeadToDealWithHttpInfo(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<ApiResponse<AddConvertLeadToDealResponse>>;
236
281
  /**
237
282
  * 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
283
  * @summary Get Lead conversion status
@@ -242,6 +287,15 @@ export declare class LeadsApi extends BaseAPI {
242
287
  * @memberof LeadsApi
243
288
  */
244
289
  getLeadConversionStatus(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<GetConvertResponse1>;
290
+ /**
291
+ * Same as `getLeadConversionStatus`, but resolves with the response body together with the HTTP status and headers.
292
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
293
+ * @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
294
+
295
+ * @throws {RequiredError}
296
+ * @memberof LeadsApi
297
+ */
298
+ getLeadConversionStatusWithHttpInfo(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<ApiResponse<GetConvertResponse1>>;
245
299
  /**
246
300
  * 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.
247
301
  * @summary Search leads
@@ -251,4 +305,13 @@ export declare class LeadsApi extends BaseAPI {
251
305
  * @memberof LeadsApi
252
306
  */
253
307
  searchLeads(requestParameters: LeadsApiSearchLeadsRequest): Promise<GetLeadSearchResponse>;
308
+ /**
309
+ * Same as `searchLeads`, but resolves with the response body together with the HTTP status and headers.
310
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
311
+ * @param {LeadsApiSearchLeadsRequest} requestParameters Request parameters.
312
+
313
+ * @throws {RequiredError}
314
+ * @memberof LeadsApi
315
+ */
316
+ searchLeadsWithHttpInfo(requestParameters: LeadsApiSearchLeadsRequest): Promise<ApiResponse<GetLeadSearchResponse>>;
254
317
  }
@@ -201,6 +201,20 @@ const LeadsApiFp = function (configuration) {
201
201
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
202
202
  });
203
203
  },
204
+ /**
205
+ * Same as `convertLeadToDeal`, but resolves with the response body together with the HTTP status and headers.
206
+ * @summary Convert a lead to a deal
207
+ * @param {string} id The ID of the lead to convert
208
+ * @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
209
+
210
+ * @throws {RequiredError}
211
+ */
212
+ convertLeadToDealWithHttpInfo(id, ConvertLeadToDealRequest) {
213
+ return __awaiter(this, void 0, void 0, function* () {
214
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.convertLeadToDeal(id, ConvertLeadToDealRequest);
215
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
216
+ });
217
+ },
204
218
  /**
205
219
  * 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
220
  * @summary Get Lead conversion status
@@ -215,6 +229,20 @@ const LeadsApiFp = function (configuration) {
215
229
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
216
230
  });
217
231
  },
232
+ /**
233
+ * Same as `getLeadConversionStatus`, but resolves with the response body together with the HTTP status and headers.
234
+ * @summary Get Lead conversion status
235
+ * @param {string} id The ID of a lead
236
+ * @param {string} conversion_id The ID of the conversion
237
+
238
+ * @throws {RequiredError}
239
+ */
240
+ getLeadConversionStatusWithHttpInfo(id, conversion_id) {
241
+ return __awaiter(this, void 0, void 0, function* () {
242
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeadConversionStatus(id, conversion_id);
243
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
244
+ });
245
+ },
218
246
  /**
219
247
  * 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.
220
248
  * @summary Search leads
@@ -235,6 +263,26 @@ const LeadsApiFp = function (configuration) {
235
263
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
236
264
  });
237
265
  },
266
+ /**
267
+ * Same as `searchLeads`, but resolves with the response body together with the HTTP status and headers.
268
+ * @summary Search leads
269
+ * @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.
270
+ * @param {Set<'custom_fields' | 'notes' | 'title'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them.
271
+ * @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.
272
+ * @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000.
273
+ * @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000.
274
+ * @param {Set<'lead.was_seen'>} [include_fields] Supports including optional fields in the results which are not provided by default
275
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 100 is allowed.
276
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
277
+
278
+ * @throws {RequiredError}
279
+ */
280
+ searchLeadsWithHttpInfo(term, fields, exact_match, person_id, organization_id, include_fields, limit, cursor) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.searchLeads(term, fields, exact_match, person_id, organization_id, include_fields, limit, cursor);
283
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
284
+ });
285
+ },
238
286
  };
239
287
  };
240
288
  exports.LeadsApiFp = LeadsApiFp;
@@ -255,6 +303,9 @@ const LeadsApiFactory = function (configuration, basePath, axios) {
255
303
  convertLeadToDeal(requestParameters) {
256
304
  return localVarFp.convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(axios, basePath));
257
305
  },
306
+ convertLeadToDealWithHttpInfo(requestParameters) {
307
+ return localVarFp.convertLeadToDealWithHttpInfo(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(axios, basePath));
308
+ },
258
309
  /**
259
310
  * 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
311
  * @summary Get Lead conversion status
@@ -265,6 +316,9 @@ const LeadsApiFactory = function (configuration, basePath, axios) {
265
316
  getLeadConversionStatus(requestParameters) {
266
317
  return localVarFp.getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
267
318
  },
319
+ getLeadConversionStatusWithHttpInfo(requestParameters) {
320
+ return localVarFp.getLeadConversionStatusWithHttpInfo(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
321
+ },
268
322
  /**
269
323
  * 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.
270
324
  * @summary Search leads
@@ -275,6 +329,9 @@ const LeadsApiFactory = function (configuration, basePath, axios) {
275
329
  searchLeads(requestParameters) {
276
330
  return localVarFp.searchLeads(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
277
331
  },
332
+ searchLeadsWithHttpInfo(requestParameters) {
333
+ return localVarFp.searchLeadsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
334
+ },
278
335
  };
279
336
  };
280
337
  exports.LeadsApiFactory = LeadsApiFactory;
@@ -296,6 +353,17 @@ class LeadsApi extends base_1.BaseAPI {
296
353
  convertLeadToDeal(requestParameters) {
297
354
  return (0, exports.LeadsApiFp)(this.configuration).convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(this.axios, this.basePath));
298
355
  }
356
+ /**
357
+ * Same as `convertLeadToDeal`, but resolves with the response body together with the HTTP status and headers.
358
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
359
+ * @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
360
+
361
+ * @throws {RequiredError}
362
+ * @memberof LeadsApi
363
+ */
364
+ convertLeadToDealWithHttpInfo(requestParameters) {
365
+ return (0, exports.LeadsApiFp)(this.configuration).convertLeadToDealWithHttpInfo(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(this.axios, this.basePath));
366
+ }
299
367
  /**
300
368
  * 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
369
  * @summary Get Lead conversion status
@@ -307,6 +375,17 @@ class LeadsApi extends base_1.BaseAPI {
307
375
  getLeadConversionStatus(requestParameters) {
308
376
  return (0, exports.LeadsApiFp)(this.configuration).getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
309
377
  }
378
+ /**
379
+ * Same as `getLeadConversionStatus`, but resolves with the response body together with the HTTP status and headers.
380
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
381
+ * @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
382
+
383
+ * @throws {RequiredError}
384
+ * @memberof LeadsApi
385
+ */
386
+ getLeadConversionStatusWithHttpInfo(requestParameters) {
387
+ return (0, exports.LeadsApiFp)(this.configuration).getLeadConversionStatusWithHttpInfo(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
388
+ }
310
389
  /**
311
390
  * 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.
312
391
  * @summary Search leads
@@ -318,5 +397,16 @@ class LeadsApi extends base_1.BaseAPI {
318
397
  searchLeads(requestParameters) {
319
398
  return (0, exports.LeadsApiFp)(this.configuration).searchLeads(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
320
399
  }
400
+ /**
401
+ * Same as `searchLeads`, but resolves with the response body together with the HTTP status and headers.
402
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
403
+ * @param {LeadsApiSearchLeadsRequest} requestParameters Request parameters.
404
+
405
+ * @throws {RequiredError}
406
+ * @memberof LeadsApi
407
+ */
408
+ searchLeadsWithHttpInfo(requestParameters) {
409
+ return (0, exports.LeadsApiFp)(this.configuration).searchLeadsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
410
+ }
321
411
  }
322
412
  exports.LeadsApi = LeadsApi;