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
@@ -409,6 +409,19 @@ const UsersApiFp = function (configuration) {
409
409
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
410
410
  });
411
411
  },
412
+ /**
413
+ * Same as `addUser`, but resolves with the response body together with the HTTP status and headers.
414
+ * @summary Add a new user
415
+ * @param {AddUserRequest} [AddUserRequest]
416
+
417
+ * @throws {RequiredError}
418
+ */
419
+ addUserWithHttpInfo(AddUserRequest) {
420
+ return __awaiter(this, void 0, void 0, function* () {
421
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addUser(AddUserRequest);
422
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
423
+ });
424
+ },
412
425
  /**
413
426
  * Finds users by their name.
414
427
  * @summary Find users by name
@@ -423,6 +436,20 @@ const UsersApiFp = function (configuration) {
423
436
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
424
437
  });
425
438
  },
439
+ /**
440
+ * Same as `findUsersByName`, but resolves with the response body together with the HTTP status and headers.
441
+ * @summary Find users by name
442
+ * @param {string} term The search term to look for
443
+ * @param {0 | 1} [search_by_email] When enabled, the term will only be matched against email addresses of users. Default: `false`.
444
+
445
+ * @throws {RequiredError}
446
+ */
447
+ findUsersByNameWithHttpInfo(term, search_by_email) {
448
+ return __awaiter(this, void 0, void 0, function* () {
449
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.findUsersByName(term, search_by_email);
450
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
451
+ });
452
+ },
426
453
  /**
427
454
  * Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the `locale` property means \'Date/number format\' in the Pipedrive account settings, not the chosen language.
428
455
  * @summary Get current user data
@@ -435,6 +462,18 @@ const UsersApiFp = function (configuration) {
435
462
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
436
463
  });
437
464
  },
465
+ /**
466
+ * Same as `getCurrentUser`, but resolves with the response body together with the HTTP status and headers.
467
+ * @summary Get current user data
468
+
469
+ * @throws {RequiredError}
470
+ */
471
+ getCurrentUserWithHttpInfo() {
472
+ return __awaiter(this, void 0, void 0, function* () {
473
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrentUser();
474
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
475
+ });
476
+ },
438
477
  /**
439
478
  * Returns data about a specific user within the company.
440
479
  * @summary Get one user
@@ -448,6 +487,19 @@ const UsersApiFp = function (configuration) {
448
487
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
449
488
  });
450
489
  },
490
+ /**
491
+ * Same as `getUser`, but resolves with the response body together with the HTTP status and headers.
492
+ * @summary Get one user
493
+ * @param {number} id The ID of the user
494
+
495
+ * @throws {RequiredError}
496
+ */
497
+ getUserWithHttpInfo(id) {
498
+ return __awaiter(this, void 0, void 0, function* () {
499
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(id);
500
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
501
+ });
502
+ },
451
503
  /**
452
504
  * Lists the followers of a specific user.
453
505
  * @summary List followers of a user
@@ -461,6 +513,19 @@ const UsersApiFp = function (configuration) {
461
513
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
462
514
  });
463
515
  },
516
+ /**
517
+ * Same as `getUserFollowers`, but resolves with the response body together with the HTTP status and headers.
518
+ * @summary List followers of a user
519
+ * @param {number} id The ID of the user
520
+
521
+ * @throws {RequiredError}
522
+ */
523
+ getUserFollowersWithHttpInfo(id) {
524
+ return __awaiter(this, void 0, void 0, function* () {
525
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserFollowers(id);
526
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
527
+ });
528
+ },
464
529
  /**
465
530
  * Lists aggregated permissions over all assigned permission sets for a user.
466
531
  * @summary List user permissions
@@ -474,6 +539,19 @@ const UsersApiFp = function (configuration) {
474
539
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
475
540
  });
476
541
  },
542
+ /**
543
+ * Same as `getUserPermissions`, but resolves with the response body together with the HTTP status and headers.
544
+ * @summary List user permissions
545
+ * @param {number} id The ID of the user
546
+
547
+ * @throws {RequiredError}
548
+ */
549
+ getUserPermissionsWithHttpInfo(id) {
550
+ return __awaiter(this, void 0, void 0, function* () {
551
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPermissions(id);
552
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
553
+ });
554
+ },
477
555
  /**
478
556
  * Lists role assignments for a user.
479
557
  * @summary List role assignments
@@ -489,6 +567,21 @@ const UsersApiFp = function (configuration) {
489
567
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
490
568
  });
491
569
  },
570
+ /**
571
+ * Same as `getUserRoleAssignments`, but resolves with the response body together with the HTTP status and headers.
572
+ * @summary List role assignments
573
+ * @param {number} id The ID of the user
574
+ * @param {number} [start] Pagination start
575
+ * @param {number} [limit] Items shown per page
576
+
577
+ * @throws {RequiredError}
578
+ */
579
+ getUserRoleAssignmentsWithHttpInfo(id, start, limit) {
580
+ return __awaiter(this, void 0, void 0, function* () {
581
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRoleAssignments(id, start, limit);
582
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
583
+ });
584
+ },
492
585
  /**
493
586
  * Lists the settings of user\'s assigned role.
494
587
  * @summary List user role settings
@@ -502,6 +595,19 @@ const UsersApiFp = function (configuration) {
502
595
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
503
596
  });
504
597
  },
598
+ /**
599
+ * Same as `getUserRoleSettings`, but resolves with the response body together with the HTTP status and headers.
600
+ * @summary List user role settings
601
+ * @param {number} id The ID of the user
602
+
603
+ * @throws {RequiredError}
604
+ */
605
+ getUserRoleSettingsWithHttpInfo(id) {
606
+ return __awaiter(this, void 0, void 0, function* () {
607
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRoleSettings(id);
608
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
609
+ });
610
+ },
505
611
  /**
506
612
  * Returns data about all users within the company.
507
613
  * @summary Get all users
@@ -514,6 +620,18 @@ const UsersApiFp = function (configuration) {
514
620
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
515
621
  });
516
622
  },
623
+ /**
624
+ * Same as `getUsers`, but resolves with the response body together with the HTTP status and headers.
625
+ * @summary Get all users
626
+
627
+ * @throws {RequiredError}
628
+ */
629
+ getUsersWithHttpInfo() {
630
+ return __awaiter(this, void 0, void 0, function* () {
631
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUsers();
632
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
633
+ });
634
+ },
517
635
  /**
518
636
  * Updates the properties of a user. Currently, only `active_flag` can be updated.
519
637
  * @summary Update user details
@@ -528,6 +646,20 @@ const UsersApiFp = function (configuration) {
528
646
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
529
647
  });
530
648
  },
649
+ /**
650
+ * Same as `updateUser`, but resolves with the response body together with the HTTP status and headers.
651
+ * @summary Update user details
652
+ * @param {number} id The ID of the user
653
+ * @param {UpdateUserRequest} [UpdateUserRequest]
654
+
655
+ * @throws {RequiredError}
656
+ */
657
+ updateUserWithHttpInfo(id, UpdateUserRequest) {
658
+ return __awaiter(this, void 0, void 0, function* () {
659
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(id, UpdateUserRequest);
660
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
661
+ });
662
+ },
531
663
  };
532
664
  };
533
665
  exports.UsersApiFp = UsersApiFp;
@@ -548,6 +680,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
548
680
  addUser(requestParameters = {}) {
549
681
  return localVarFp.addUser(requestParameters.AddUserRequest).then((request) => request(axios, basePath));
550
682
  },
683
+ addUserWithHttpInfo(requestParameters = {}) {
684
+ return localVarFp.addUserWithHttpInfo(requestParameters.AddUserRequest).then((request) => request(axios, basePath));
685
+ },
551
686
  /**
552
687
  * Finds users by their name.
553
688
  * @summary Find users by name
@@ -558,6 +693,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
558
693
  findUsersByName(requestParameters) {
559
694
  return localVarFp.findUsersByName(requestParameters.term, requestParameters.search_by_email).then((request) => request(axios, basePath));
560
695
  },
696
+ findUsersByNameWithHttpInfo(requestParameters) {
697
+ return localVarFp.findUsersByNameWithHttpInfo(requestParameters.term, requestParameters.search_by_email).then((request) => request(axios, basePath));
698
+ },
561
699
  /**
562
700
  * Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the `locale` property means \'Date/number format\' in the Pipedrive account settings, not the chosen language.
563
701
  * @summary Get current user data
@@ -567,6 +705,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
567
705
  getCurrentUser() {
568
706
  return localVarFp.getCurrentUser().then((request) => request(axios, basePath));
569
707
  },
708
+ getCurrentUserWithHttpInfo() {
709
+ return localVarFp.getCurrentUserWithHttpInfo().then((request) => request(axios, basePath));
710
+ },
570
711
  /**
571
712
  * Returns data about a specific user within the company.
572
713
  * @summary Get one user
@@ -577,6 +718,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
577
718
  getUser(requestParameters) {
578
719
  return localVarFp.getUser(requestParameters.id).then((request) => request(axios, basePath));
579
720
  },
721
+ getUserWithHttpInfo(requestParameters) {
722
+ return localVarFp.getUserWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
723
+ },
580
724
  /**
581
725
  * Lists the followers of a specific user.
582
726
  * @summary List followers of a user
@@ -587,6 +731,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
587
731
  getUserFollowers(requestParameters) {
588
732
  return localVarFp.getUserFollowers(requestParameters.id).then((request) => request(axios, basePath));
589
733
  },
734
+ getUserFollowersWithHttpInfo(requestParameters) {
735
+ return localVarFp.getUserFollowersWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
736
+ },
590
737
  /**
591
738
  * Lists aggregated permissions over all assigned permission sets for a user.
592
739
  * @summary List user permissions
@@ -597,6 +744,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
597
744
  getUserPermissions(requestParameters) {
598
745
  return localVarFp.getUserPermissions(requestParameters.id).then((request) => request(axios, basePath));
599
746
  },
747
+ getUserPermissionsWithHttpInfo(requestParameters) {
748
+ return localVarFp.getUserPermissionsWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
749
+ },
600
750
  /**
601
751
  * Lists role assignments for a user.
602
752
  * @summary List role assignments
@@ -607,6 +757,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
607
757
  getUserRoleAssignments(requestParameters) {
608
758
  return localVarFp.getUserRoleAssignments(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
609
759
  },
760
+ getUserRoleAssignmentsWithHttpInfo(requestParameters) {
761
+ return localVarFp.getUserRoleAssignmentsWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
762
+ },
610
763
  /**
611
764
  * Lists the settings of user\'s assigned role.
612
765
  * @summary List user role settings
@@ -617,6 +770,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
617
770
  getUserRoleSettings(requestParameters) {
618
771
  return localVarFp.getUserRoleSettings(requestParameters.id).then((request) => request(axios, basePath));
619
772
  },
773
+ getUserRoleSettingsWithHttpInfo(requestParameters) {
774
+ return localVarFp.getUserRoleSettingsWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
775
+ },
620
776
  /**
621
777
  * Returns data about all users within the company.
622
778
  * @summary Get all users
@@ -626,6 +782,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
626
782
  getUsers() {
627
783
  return localVarFp.getUsers().then((request) => request(axios, basePath));
628
784
  },
785
+ getUsersWithHttpInfo() {
786
+ return localVarFp.getUsersWithHttpInfo().then((request) => request(axios, basePath));
787
+ },
629
788
  /**
630
789
  * Updates the properties of a user. Currently, only `active_flag` can be updated.
631
790
  * @summary Update user details
@@ -636,6 +795,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
636
795
  updateUser(requestParameters) {
637
796
  return localVarFp.updateUser(requestParameters.id, requestParameters.UpdateUserRequest).then((request) => request(axios, basePath));
638
797
  },
798
+ updateUserWithHttpInfo(requestParameters) {
799
+ return localVarFp.updateUserWithHttpInfo(requestParameters.id, requestParameters.UpdateUserRequest).then((request) => request(axios, basePath));
800
+ },
639
801
  };
640
802
  };
641
803
  exports.UsersApiFactory = UsersApiFactory;
@@ -657,6 +819,17 @@ class UsersApi extends base_1.BaseAPI {
657
819
  addUser(requestParameters = {}) {
658
820
  return (0, exports.UsersApiFp)(this.configuration).addUser(requestParameters.AddUserRequest).then((request) => request(this.axios, this.basePath));
659
821
  }
822
+ /**
823
+ * Same as `addUser`, but resolves with the response body together with the HTTP status and headers.
824
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
825
+ * @param {UsersApiAddUserRequest} requestParameters Request parameters.
826
+
827
+ * @throws {RequiredError}
828
+ * @memberof UsersApi
829
+ */
830
+ addUserWithHttpInfo(requestParameters = {}) {
831
+ return (0, exports.UsersApiFp)(this.configuration).addUserWithHttpInfo(requestParameters.AddUserRequest).then((request) => request(this.axios, this.basePath));
832
+ }
660
833
  /**
661
834
  * Finds users by their name.
662
835
  * @summary Find users by name
@@ -668,6 +841,17 @@ class UsersApi extends base_1.BaseAPI {
668
841
  findUsersByName(requestParameters) {
669
842
  return (0, exports.UsersApiFp)(this.configuration).findUsersByName(requestParameters.term, requestParameters.search_by_email).then((request) => request(this.axios, this.basePath));
670
843
  }
844
+ /**
845
+ * Same as `findUsersByName`, but resolves with the response body together with the HTTP status and headers.
846
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
847
+ * @param {UsersApiFindUsersByNameRequest} requestParameters Request parameters.
848
+
849
+ * @throws {RequiredError}
850
+ * @memberof UsersApi
851
+ */
852
+ findUsersByNameWithHttpInfo(requestParameters) {
853
+ return (0, exports.UsersApiFp)(this.configuration).findUsersByNameWithHttpInfo(requestParameters.term, requestParameters.search_by_email).then((request) => request(this.axios, this.basePath));
854
+ }
671
855
  /**
672
856
  * Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the `locale` property means \'Date/number format\' in the Pipedrive account settings, not the chosen language.
673
857
  * @summary Get current user data
@@ -678,6 +862,16 @@ class UsersApi extends base_1.BaseAPI {
678
862
  getCurrentUser() {
679
863
  return (0, exports.UsersApiFp)(this.configuration).getCurrentUser().then((request) => request(this.axios, this.basePath));
680
864
  }
865
+ /**
866
+ * Same as `getCurrentUser`, but resolves with the response body together with the HTTP status and headers.
867
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
868
+
869
+ * @throws {RequiredError}
870
+ * @memberof UsersApi
871
+ */
872
+ getCurrentUserWithHttpInfo() {
873
+ return (0, exports.UsersApiFp)(this.configuration).getCurrentUserWithHttpInfo().then((request) => request(this.axios, this.basePath));
874
+ }
681
875
  /**
682
876
  * Returns data about a specific user within the company.
683
877
  * @summary Get one user
@@ -689,6 +883,17 @@ class UsersApi extends base_1.BaseAPI {
689
883
  getUser(requestParameters) {
690
884
  return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.id).then((request) => request(this.axios, this.basePath));
691
885
  }
886
+ /**
887
+ * Same as `getUser`, but resolves with the response body together with the HTTP status and headers.
888
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
889
+ * @param {UsersApiGetUserRequest} requestParameters Request parameters.
890
+
891
+ * @throws {RequiredError}
892
+ * @memberof UsersApi
893
+ */
894
+ getUserWithHttpInfo(requestParameters) {
895
+ return (0, exports.UsersApiFp)(this.configuration).getUserWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
896
+ }
692
897
  /**
693
898
  * Lists the followers of a specific user.
694
899
  * @summary List followers of a user
@@ -700,6 +905,17 @@ class UsersApi extends base_1.BaseAPI {
700
905
  getUserFollowers(requestParameters) {
701
906
  return (0, exports.UsersApiFp)(this.configuration).getUserFollowers(requestParameters.id).then((request) => request(this.axios, this.basePath));
702
907
  }
908
+ /**
909
+ * Same as `getUserFollowers`, but resolves with the response body together with the HTTP status and headers.
910
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
911
+ * @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters.
912
+
913
+ * @throws {RequiredError}
914
+ * @memberof UsersApi
915
+ */
916
+ getUserFollowersWithHttpInfo(requestParameters) {
917
+ return (0, exports.UsersApiFp)(this.configuration).getUserFollowersWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
918
+ }
703
919
  /**
704
920
  * Lists aggregated permissions over all assigned permission sets for a user.
705
921
  * @summary List user permissions
@@ -711,6 +927,17 @@ class UsersApi extends base_1.BaseAPI {
711
927
  getUserPermissions(requestParameters) {
712
928
  return (0, exports.UsersApiFp)(this.configuration).getUserPermissions(requestParameters.id).then((request) => request(this.axios, this.basePath));
713
929
  }
930
+ /**
931
+ * Same as `getUserPermissions`, but resolves with the response body together with the HTTP status and headers.
932
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
933
+ * @param {UsersApiGetUserPermissionsRequest} requestParameters Request parameters.
934
+
935
+ * @throws {RequiredError}
936
+ * @memberof UsersApi
937
+ */
938
+ getUserPermissionsWithHttpInfo(requestParameters) {
939
+ return (0, exports.UsersApiFp)(this.configuration).getUserPermissionsWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
940
+ }
714
941
  /**
715
942
  * Lists role assignments for a user.
716
943
  * @summary List role assignments
@@ -722,6 +949,17 @@ class UsersApi extends base_1.BaseAPI {
722
949
  getUserRoleAssignments(requestParameters) {
723
950
  return (0, exports.UsersApiFp)(this.configuration).getUserRoleAssignments(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
724
951
  }
952
+ /**
953
+ * Same as `getUserRoleAssignments`, but resolves with the response body together with the HTTP status and headers.
954
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
955
+ * @param {UsersApiGetUserRoleAssignmentsRequest} requestParameters Request parameters.
956
+
957
+ * @throws {RequiredError}
958
+ * @memberof UsersApi
959
+ */
960
+ getUserRoleAssignmentsWithHttpInfo(requestParameters) {
961
+ return (0, exports.UsersApiFp)(this.configuration).getUserRoleAssignmentsWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
962
+ }
725
963
  /**
726
964
  * Lists the settings of user\'s assigned role.
727
965
  * @summary List user role settings
@@ -733,6 +971,17 @@ class UsersApi extends base_1.BaseAPI {
733
971
  getUserRoleSettings(requestParameters) {
734
972
  return (0, exports.UsersApiFp)(this.configuration).getUserRoleSettings(requestParameters.id).then((request) => request(this.axios, this.basePath));
735
973
  }
974
+ /**
975
+ * Same as `getUserRoleSettings`, but resolves with the response body together with the HTTP status and headers.
976
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
977
+ * @param {UsersApiGetUserRoleSettingsRequest} requestParameters Request parameters.
978
+
979
+ * @throws {RequiredError}
980
+ * @memberof UsersApi
981
+ */
982
+ getUserRoleSettingsWithHttpInfo(requestParameters) {
983
+ return (0, exports.UsersApiFp)(this.configuration).getUserRoleSettingsWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
984
+ }
736
985
  /**
737
986
  * Returns data about all users within the company.
738
987
  * @summary Get all users
@@ -743,6 +992,16 @@ class UsersApi extends base_1.BaseAPI {
743
992
  getUsers() {
744
993
  return (0, exports.UsersApiFp)(this.configuration).getUsers().then((request) => request(this.axios, this.basePath));
745
994
  }
995
+ /**
996
+ * Same as `getUsers`, but resolves with the response body together with the HTTP status and headers.
997
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
998
+
999
+ * @throws {RequiredError}
1000
+ * @memberof UsersApi
1001
+ */
1002
+ getUsersWithHttpInfo() {
1003
+ return (0, exports.UsersApiFp)(this.configuration).getUsersWithHttpInfo().then((request) => request(this.axios, this.basePath));
1004
+ }
746
1005
  /**
747
1006
  * Updates the properties of a user. Currently, only `active_flag` can be updated.
748
1007
  * @summary Update user details
@@ -754,5 +1013,16 @@ class UsersApi extends base_1.BaseAPI {
754
1013
  updateUser(requestParameters) {
755
1014
  return (0, exports.UsersApiFp)(this.configuration).updateUser(requestParameters.id, requestParameters.UpdateUserRequest).then((request) => request(this.axios, this.basePath));
756
1015
  }
1016
+ /**
1017
+ * Same as `updateUser`, but resolves with the response body together with the HTTP status and headers.
1018
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1019
+ * @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
1020
+
1021
+ * @throws {RequiredError}
1022
+ * @memberof UsersApi
1023
+ */
1024
+ updateUserWithHttpInfo(requestParameters) {
1025
+ return (0, exports.UsersApiFp)(this.configuration).updateUserWithHttpInfo(requestParameters.id, requestParameters.UpdateUserRequest).then((request) => request(this.axios, this.basePath));
1026
+ }
757
1027
  }
758
1028
  exports.UsersApi = UsersApi;
@@ -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 { AddWebhookRequest } from '../models';
16
16
  import { BaseResponse } from '../models';
17
17
  import { GetWebhookResponse } from '../models';
@@ -58,6 +58,14 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
58
58
  * @throws {RequiredError}
59
59
  */
60
60
  addWebhook(AddWebhookRequest?: AddWebhookRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetWebhookResponse>>;
61
+ /**
62
+ * Same as `addWebhook`, but resolves with the response body together with the HTTP status and headers.
63
+ * @summary Create a new Webhook
64
+ * @param {AddWebhookRequest} [AddWebhookRequest]
65
+
66
+ * @throws {RequiredError}
67
+ */
68
+ addWebhookWithHttpInfo(AddWebhookRequest?: AddWebhookRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetWebhookResponse>>>;
61
69
  /**
62
70
  * Deletes the specified Webhook.
63
71
  * @summary Delete existing Webhook
@@ -66,6 +74,14 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
66
74
  * @throws {RequiredError}
67
75
  */
68
76
  deleteWebhook(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<BaseResponse>>;
77
+ /**
78
+ * Same as `deleteWebhook`, but resolves with the response body together with the HTTP status and headers.
79
+ * @summary Delete existing Webhook
80
+ * @param {number} id The ID of the Webhook to delete
81
+
82
+ * @throws {RequiredError}
83
+ */
84
+ deleteWebhookWithHttpInfo(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<BaseResponse>>>;
69
85
  /**
70
86
  * Returns data about all the Webhooks of a company.
71
87
  * @summary Get all Webhooks
@@ -73,6 +89,13 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
73
89
  * @throws {RequiredError}
74
90
  */
75
91
  getWebhooks(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetWebhooksResponse>>;
92
+ /**
93
+ * Same as `getWebhooks`, but resolves with the response body together with the HTTP status and headers.
94
+ * @summary Get all Webhooks
95
+
96
+ * @throws {RequiredError}
97
+ */
98
+ getWebhooksWithHttpInfo(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetWebhooksResponse>>>;
76
99
  };
77
100
  /**
78
101
  * WebhooksApi - factory interface
@@ -87,6 +110,7 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
87
110
  * @throws {RequiredError}
88
111
  */
89
112
  addWebhook(requestParameters?: WebhooksApiAddWebhookRequest): Promise<GetWebhookResponse>;
113
+ addWebhookWithHttpInfo(requestParameters?: WebhooksApiAddWebhookRequest): Promise<ApiResponse<GetWebhookResponse>>;
90
114
  /**
91
115
  * Deletes the specified Webhook.
92
116
  * @summary Delete existing Webhook
@@ -95,6 +119,7 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
95
119
  * @throws {RequiredError}
96
120
  */
97
121
  deleteWebhook(requestParameters: WebhooksApiDeleteWebhookRequest): Promise<BaseResponse>;
122
+ deleteWebhookWithHttpInfo(requestParameters: WebhooksApiDeleteWebhookRequest): Promise<ApiResponse<BaseResponse>>;
98
123
  /**
99
124
  * Returns data about all the Webhooks of a company.
100
125
  * @summary Get all Webhooks
@@ -102,6 +127,7 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
102
127
  * @throws {RequiredError}
103
128
  */
104
129
  getWebhooks(): Promise<GetWebhooksResponse>;
130
+ getWebhooksWithHttpInfo(): Promise<ApiResponse<GetWebhooksResponse>>;
105
131
  };
106
132
  /**
107
133
  * Request parameters for addWebhook operation in WebhooksApi.
@@ -145,6 +171,15 @@ export declare class WebhooksApi extends BaseAPI {
145
171
  * @memberof WebhooksApi
146
172
  */
147
173
  addWebhook(requestParameters?: WebhooksApiAddWebhookRequest): Promise<GetWebhookResponse>;
174
+ /**
175
+ * Same as `addWebhook`, but resolves with the response body together with the HTTP status and headers.
176
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
177
+ * @param {WebhooksApiAddWebhookRequest} requestParameters Request parameters.
178
+
179
+ * @throws {RequiredError}
180
+ * @memberof WebhooksApi
181
+ */
182
+ addWebhookWithHttpInfo(requestParameters?: WebhooksApiAddWebhookRequest): Promise<ApiResponse<GetWebhookResponse>>;
148
183
  /**
149
184
  * Deletes the specified Webhook.
150
185
  * @summary Delete existing Webhook
@@ -154,6 +189,15 @@ export declare class WebhooksApi extends BaseAPI {
154
189
  * @memberof WebhooksApi
155
190
  */
156
191
  deleteWebhook(requestParameters: WebhooksApiDeleteWebhookRequest): Promise<BaseResponse>;
192
+ /**
193
+ * Same as `deleteWebhook`, but resolves with the response body together with the HTTP status and headers.
194
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
195
+ * @param {WebhooksApiDeleteWebhookRequest} requestParameters Request parameters.
196
+
197
+ * @throws {RequiredError}
198
+ * @memberof WebhooksApi
199
+ */
200
+ deleteWebhookWithHttpInfo(requestParameters: WebhooksApiDeleteWebhookRequest): Promise<ApiResponse<BaseResponse>>;
157
201
  /**
158
202
  * Returns data about all the Webhooks of a company.
159
203
  * @summary Get all Webhooks
@@ -162,4 +206,12 @@ export declare class WebhooksApi extends BaseAPI {
162
206
  * @memberof WebhooksApi
163
207
  */
164
208
  getWebhooks(): Promise<GetWebhooksResponse>;
209
+ /**
210
+ * Same as `getWebhooks`, but resolves with the response body together with the HTTP status and headers.
211
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
212
+
213
+ * @throws {RequiredError}
214
+ * @memberof WebhooksApi
215
+ */
216
+ getWebhooksWithHttpInfo(): Promise<ApiResponse<GetWebhooksResponse>>;
165
217
  }