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
@@ -158,6 +158,19 @@ const WebhooksApiFp = function (configuration) {
158
158
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
159
159
  });
160
160
  },
161
+ /**
162
+ * Same as `addWebhook`, but resolves with the response body together with the HTTP status and headers.
163
+ * @summary Create a new Webhook
164
+ * @param {AddWebhookRequest} [AddWebhookRequest]
165
+
166
+ * @throws {RequiredError}
167
+ */
168
+ addWebhookWithHttpInfo(AddWebhookRequest) {
169
+ return __awaiter(this, void 0, void 0, function* () {
170
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addWebhook(AddWebhookRequest);
171
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
172
+ });
173
+ },
161
174
  /**
162
175
  * Deletes the specified Webhook.
163
176
  * @summary Delete existing Webhook
@@ -171,6 +184,19 @@ const WebhooksApiFp = function (configuration) {
171
184
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
172
185
  });
173
186
  },
187
+ /**
188
+ * Same as `deleteWebhook`, but resolves with the response body together with the HTTP status and headers.
189
+ * @summary Delete existing Webhook
190
+ * @param {number} id The ID of the Webhook to delete
191
+
192
+ * @throws {RequiredError}
193
+ */
194
+ deleteWebhookWithHttpInfo(id) {
195
+ return __awaiter(this, void 0, void 0, function* () {
196
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebhook(id);
197
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
198
+ });
199
+ },
174
200
  /**
175
201
  * Returns data about all the Webhooks of a company.
176
202
  * @summary Get all Webhooks
@@ -183,6 +209,18 @@ const WebhooksApiFp = function (configuration) {
183
209
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
184
210
  });
185
211
  },
212
+ /**
213
+ * Same as `getWebhooks`, but resolves with the response body together with the HTTP status and headers.
214
+ * @summary Get all Webhooks
215
+
216
+ * @throws {RequiredError}
217
+ */
218
+ getWebhooksWithHttpInfo() {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebhooks();
221
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
222
+ });
223
+ },
186
224
  };
187
225
  };
188
226
  exports.WebhooksApiFp = WebhooksApiFp;
@@ -203,6 +241,9 @@ const WebhooksApiFactory = function (configuration, basePath, axios) {
203
241
  addWebhook(requestParameters = {}) {
204
242
  return localVarFp.addWebhook(requestParameters.AddWebhookRequest).then((request) => request(axios, basePath));
205
243
  },
244
+ addWebhookWithHttpInfo(requestParameters = {}) {
245
+ return localVarFp.addWebhookWithHttpInfo(requestParameters.AddWebhookRequest).then((request) => request(axios, basePath));
246
+ },
206
247
  /**
207
248
  * Deletes the specified Webhook.
208
249
  * @summary Delete existing Webhook
@@ -213,6 +254,9 @@ const WebhooksApiFactory = function (configuration, basePath, axios) {
213
254
  deleteWebhook(requestParameters) {
214
255
  return localVarFp.deleteWebhook(requestParameters.id).then((request) => request(axios, basePath));
215
256
  },
257
+ deleteWebhookWithHttpInfo(requestParameters) {
258
+ return localVarFp.deleteWebhookWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
259
+ },
216
260
  /**
217
261
  * Returns data about all the Webhooks of a company.
218
262
  * @summary Get all Webhooks
@@ -222,6 +266,9 @@ const WebhooksApiFactory = function (configuration, basePath, axios) {
222
266
  getWebhooks() {
223
267
  return localVarFp.getWebhooks().then((request) => request(axios, basePath));
224
268
  },
269
+ getWebhooksWithHttpInfo() {
270
+ return localVarFp.getWebhooksWithHttpInfo().then((request) => request(axios, basePath));
271
+ },
225
272
  };
226
273
  };
227
274
  exports.WebhooksApiFactory = WebhooksApiFactory;
@@ -243,6 +290,17 @@ class WebhooksApi extends base_1.BaseAPI {
243
290
  addWebhook(requestParameters = {}) {
244
291
  return (0, exports.WebhooksApiFp)(this.configuration).addWebhook(requestParameters.AddWebhookRequest).then((request) => request(this.axios, this.basePath));
245
292
  }
293
+ /**
294
+ * Same as `addWebhook`, but resolves with the response body together with the HTTP status and headers.
295
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
296
+ * @param {WebhooksApiAddWebhookRequest} requestParameters Request parameters.
297
+
298
+ * @throws {RequiredError}
299
+ * @memberof WebhooksApi
300
+ */
301
+ addWebhookWithHttpInfo(requestParameters = {}) {
302
+ return (0, exports.WebhooksApiFp)(this.configuration).addWebhookWithHttpInfo(requestParameters.AddWebhookRequest).then((request) => request(this.axios, this.basePath));
303
+ }
246
304
  /**
247
305
  * Deletes the specified Webhook.
248
306
  * @summary Delete existing Webhook
@@ -254,6 +312,17 @@ class WebhooksApi extends base_1.BaseAPI {
254
312
  deleteWebhook(requestParameters) {
255
313
  return (0, exports.WebhooksApiFp)(this.configuration).deleteWebhook(requestParameters.id).then((request) => request(this.axios, this.basePath));
256
314
  }
315
+ /**
316
+ * Same as `deleteWebhook`, but resolves with the response body together with the HTTP status and headers.
317
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
318
+ * @param {WebhooksApiDeleteWebhookRequest} requestParameters Request parameters.
319
+
320
+ * @throws {RequiredError}
321
+ * @memberof WebhooksApi
322
+ */
323
+ deleteWebhookWithHttpInfo(requestParameters) {
324
+ return (0, exports.WebhooksApiFp)(this.configuration).deleteWebhookWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
325
+ }
257
326
  /**
258
327
  * Returns data about all the Webhooks of a company.
259
328
  * @summary Get all Webhooks
@@ -264,5 +333,15 @@ class WebhooksApi extends base_1.BaseAPI {
264
333
  getWebhooks() {
265
334
  return (0, exports.WebhooksApiFp)(this.configuration).getWebhooks().then((request) => request(this.axios, this.basePath));
266
335
  }
336
+ /**
337
+ * Same as `getWebhooks`, but resolves with the response body together with the HTTP status and headers.
338
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
339
+
340
+ * @throws {RequiredError}
341
+ * @memberof WebhooksApi
342
+ */
343
+ getWebhooksWithHttpInfo() {
344
+ return (0, exports.WebhooksApiFp)(this.configuration).getWebhooksWithHttpInfo().then((request) => request(this.axios, this.basePath));
345
+ }
267
346
  }
268
347
  exports.WebhooksApi = WebhooksApi;
@@ -32,7 +32,24 @@ export interface RequestArgs {
32
32
  options: AxiosRequestConfig;
33
33
  }
34
34
  export declare const versionInterceptor: (config: InternalAxiosRequestConfig) => Promise<InternalAxiosRequestConfig<any>>;
35
+ /**
36
+ * Response returned by the `*WithHttpInfo` methods: the parsed body together with the HTTP metadata.
37
+ *
38
+ * @export
39
+ * @interface ApiResponse
40
+ */
41
+ export interface ApiResponse<T> {
42
+ data: T;
43
+ status: number;
44
+ headers: AxiosResponse['headers'];
45
+ }
35
46
  export declare const responseInterceptor: (response: AxiosResponse) => any;
47
+ /**
48
+ * Turns a raw AxiosError into the rejection used by the `*WithHttpInfo` methods: the error body fields (if any)
49
+ * plus `$response: { status, headers }`. Values that are not AxiosErrors with a response, including errors that
50
+ * were already normalized, are returned unchanged.
51
+ */
52
+ export declare const toFullResponseError: (error: any) => any;
36
53
  export declare const errorInterceptor: (error: AxiosError) => Promise<never>;
37
54
  /**
38
55
  *
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.RequiredError = exports.BaseAPI = exports.errorInterceptor = exports.responseInterceptor = exports.versionInterceptor = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
28
+ exports.RequiredError = exports.BaseAPI = exports.errorInterceptor = exports.toFullResponseError = exports.responseInterceptor = exports.versionInterceptor = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // eslint-disable-next-line @typescript-eslint/no-var-requires
31
31
  const _pkg = require('../../../package.json');
@@ -45,11 +45,34 @@ const versionInterceptor = (config) => __awaiter(void 0, void 0, void 0, functio
45
45
  return config;
46
46
  });
47
47
  exports.versionInterceptor = versionInterceptor;
48
+ // Set by the `*WithHttpInfo` methods to keep status and headers instead of returning only the body.
49
+ const wantsFullResponse = (config) => !!(config === null || config === void 0 ? void 0 : config.fullResponse);
48
50
  const responseInterceptor = (response) => {
51
+ if (wantsFullResponse(response === null || response === void 0 ? void 0 : response.config)) {
52
+ return { data: response.data, status: response.status, headers: response.headers };
53
+ }
49
54
  return (response === null || response === void 0 ? void 0 : response.data) ? response.data : response;
50
55
  };
51
56
  exports.responseInterceptor = responseInterceptor;
57
+ /**
58
+ * Turns a raw AxiosError into the rejection used by the `*WithHttpInfo` methods: the error body fields (if any)
59
+ * plus `$response: { status, headers }`. Values that are not AxiosErrors with a response, including errors that
60
+ * were already normalized, are returned unchanged.
61
+ */
62
+ const toFullResponseError = (error) => {
63
+ if (!(error === null || error === void 0 ? void 0 : error.isAxiosError) || !error.response) {
64
+ return error;
65
+ }
66
+ const { data, status, headers } = error.response;
67
+ const body = data && typeof data === 'object' ? data : data ? { data } : {};
68
+ return Object.assign(Object.assign({}, body), { $response: { status, headers } });
69
+ };
70
+ exports.toFullResponseError = toFullResponseError;
52
71
  const errorInterceptor = (error) => {
72
+ if (error.response && wantsFullResponse(error.config)) {
73
+ // Applies to empty error bodies too, so headers such as Retry-After are not lost.
74
+ return Promise.reject((0, exports.toFullResponseError)(error));
75
+ }
53
76
  if (error.response && error.response.data) {
54
77
  return Promise.reject(error.response.data);
55
78
  }
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration, fullResponse?: boolean) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -149,12 +149,15 @@ exports.toPathString = toPathString;
149
149
  *
150
150
  * @export
151
151
  */
152
- const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
152
+ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration, fullResponse = false) {
153
153
  // Explicit return type + cast avoid inferring axios's internal AxiosResponseResult type,
154
154
  // which references a module-private `unique symbol` and breaks `tsc --declaration` (TS2742).
155
155
  return (axios = globalAxios, basePath = BASE_PATH) => {
156
- const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
157
- return axios.request(axiosRequestArgs);
156
+ const axiosRequestArgs = Object.assign(Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url }), (fullResponse ? { fullResponse } : {}));
157
+ const request = axios.request(axiosRequestArgs);
158
+ // Instances without the SDK's interceptors (e.g. the default global axios used by Fp and Factory calls)
159
+ // reject with a raw AxiosError, so give full-response errors the same shape as the class API.
160
+ return fullResponse ? request.catch((error) => Promise.reject((0, base_1.toFullResponseError)(error))) : request;
158
161
  };
159
162
  };
160
163
  exports.createRequestFunction = createRequestFunction;
@@ -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 { AddActivityRequest } from '../models';
16
16
  import { DeleteActivityResponse } from '../models';
17
17
  import { GetActivitiesResponse } from '../models';
@@ -91,6 +91,14 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
91
91
  * @throws {RequiredError}
92
92
  */
93
93
  addActivity(AddActivityRequest?: AddActivityRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertActivityResponse>>;
94
+ /**
95
+ * Same as `addActivity`, but resolves with the response body together with the HTTP status and headers.
96
+ * @summary Add a new activity
97
+ * @param {AddActivityRequest} [AddActivityRequest]
98
+
99
+ * @throws {RequiredError}
100
+ */
101
+ addActivityWithHttpInfo(AddActivityRequest?: AddActivityRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertActivityResponse>>>;
94
102
  /**
95
103
  * Marks an activity as deleted. After 30 days, the activity will be permanently deleted.
96
104
  * @summary Delete an activity
@@ -99,6 +107,14 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
99
107
  * @throws {RequiredError}
100
108
  */
101
109
  deleteActivity(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteActivityResponse>>;
110
+ /**
111
+ * Same as `deleteActivity`, but resolves with the response body together with the HTTP status and headers.
112
+ * @summary Delete an activity
113
+ * @param {number} id The ID of the activity
114
+
115
+ * @throws {RequiredError}
116
+ */
117
+ deleteActivityWithHttpInfo(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<DeleteActivityResponse>>>;
102
118
  /**
103
119
  * Returns data about all activities.
104
120
  * @summary Get all activities
@@ -121,6 +137,28 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
121
137
  * @throws {RequiredError}
122
138
  */
123
139
  getActivities(filter_id?: number, ids?: Set<number>, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_id?: number, done?: boolean, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date', sort_direction?: 'asc' | 'desc', include_fields?: Set<'attendees'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetActivitiesResponse>>;
140
+ /**
141
+ * Same as `getActivities`, but resolves with the response body together with the HTTP status and headers.
142
+ * @summary Get all activities
143
+ * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned
144
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
145
+ * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
146
+ * @param {number} [deal_id] If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
147
+ * @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
148
+ * @param {number} [person_id] If supplied, only activities whose primary participant is the given person are returned. If filter_id is provided, this is ignored.
149
+ * @param {number} [org_id] If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
150
+ * @param {boolean} [done] If supplied, only activities with specified \&#39;done\&#39; flag value are returned
151
+ * @param {string} [updated_since] If set, only activities with an &#x60;update_time&#x60; later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
152
+ * @param {string} [updated_until] If set, only activities with an &#x60;update_time&#x60; earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
153
+ * @param {'id' | 'update_time' | 'add_time' | 'due_date'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;update_time&#x60;, &#x60;add_time&#x60;, &#x60;due_date&#x60;.
154
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
155
+ * @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
156
+ * @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.
157
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
158
+
159
+ * @throws {RequiredError}
160
+ */
161
+ getActivitiesWithHttpInfo(filter_id?: number, ids?: Set<number>, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_id?: number, done?: boolean, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date', sort_direction?: 'asc' | 'desc', include_fields?: Set<'attendees'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetActivitiesResponse>>>;
124
162
  /**
125
163
  * Returns the details of a specific activity.
126
164
  * @summary Get details of an activity
@@ -130,6 +168,15 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
130
168
  * @throws {RequiredError}
131
169
  */
132
170
  getActivity(id: number, include_fields?: Set<'attendees'>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertActivityResponse>>;
171
+ /**
172
+ * Same as `getActivity`, but resolves with the response body together with the HTTP status and headers.
173
+ * @summary Get details of an activity
174
+ * @param {number} id The ID of the activity
175
+ * @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
176
+
177
+ * @throws {RequiredError}
178
+ */
179
+ getActivityWithHttpInfo(id: number, include_fields?: Set<'attendees'>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertActivityResponse>>>;
133
180
  /**
134
181
  * Updates the properties of an activity.
135
182
  * @summary Update an activity
@@ -139,6 +186,15 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
139
186
  * @throws {RequiredError}
140
187
  */
141
188
  updateActivity(id: number, AddActivityRequest?: AddActivityRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertActivityResponse>>;
189
+ /**
190
+ * Same as `updateActivity`, but resolves with the response body together with the HTTP status and headers.
191
+ * @summary Update an activity
192
+ * @param {number} id The ID of the activity
193
+ * @param {AddActivityRequest} [AddActivityRequest]
194
+
195
+ * @throws {RequiredError}
196
+ */
197
+ updateActivityWithHttpInfo(id: number, AddActivityRequest?: AddActivityRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertActivityResponse>>>;
142
198
  };
143
199
  /**
144
200
  * ActivitiesApi - factory interface
@@ -153,6 +209,7 @@ export declare const ActivitiesApiFactory: (configuration?: Configuration, baseP
153
209
  * @throws {RequiredError}
154
210
  */
155
211
  addActivity(requestParameters?: ActivitiesApiAddActivityRequest): Promise<UpsertActivityResponse>;
212
+ addActivityWithHttpInfo(requestParameters?: ActivitiesApiAddActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
156
213
  /**
157
214
  * Marks an activity as deleted. After 30 days, the activity will be permanently deleted.
158
215
  * @summary Delete an activity
@@ -161,6 +218,7 @@ export declare const ActivitiesApiFactory: (configuration?: Configuration, baseP
161
218
  * @throws {RequiredError}
162
219
  */
163
220
  deleteActivity(requestParameters: ActivitiesApiDeleteActivityRequest): Promise<DeleteActivityResponse>;
221
+ deleteActivityWithHttpInfo(requestParameters: ActivitiesApiDeleteActivityRequest): Promise<ApiResponse<DeleteActivityResponse>>;
164
222
  /**
165
223
  * Returns data about all activities.
166
224
  * @summary Get all activities
@@ -169,6 +227,7 @@ export declare const ActivitiesApiFactory: (configuration?: Configuration, baseP
169
227
  * @throws {RequiredError}
170
228
  */
171
229
  getActivities(requestParameters?: ActivitiesApiGetActivitiesRequest): Promise<GetActivitiesResponse>;
230
+ getActivitiesWithHttpInfo(requestParameters?: ActivitiesApiGetActivitiesRequest): Promise<ApiResponse<GetActivitiesResponse>>;
172
231
  /**
173
232
  * Returns the details of a specific activity.
174
233
  * @summary Get details of an activity
@@ -177,6 +236,7 @@ export declare const ActivitiesApiFactory: (configuration?: Configuration, baseP
177
236
  * @throws {RequiredError}
178
237
  */
179
238
  getActivity(requestParameters: ActivitiesApiGetActivityRequest): Promise<UpsertActivityResponse>;
239
+ getActivityWithHttpInfo(requestParameters: ActivitiesApiGetActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
180
240
  /**
181
241
  * Updates the properties of an activity.
182
242
  * @summary Update an activity
@@ -185,6 +245,7 @@ export declare const ActivitiesApiFactory: (configuration?: Configuration, baseP
185
245
  * @throws {RequiredError}
186
246
  */
187
247
  updateActivity(requestParameters: ActivitiesApiUpdateActivityRequest): Promise<UpsertActivityResponse>;
248
+ updateActivityWithHttpInfo(requestParameters: ActivitiesApiUpdateActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
188
249
  };
189
250
  /**
190
251
  * Request parameters for addActivity operation in ActivitiesApi.
@@ -363,6 +424,15 @@ export declare class ActivitiesApi extends BaseAPI {
363
424
  * @memberof ActivitiesApi
364
425
  */
365
426
  addActivity(requestParameters?: ActivitiesApiAddActivityRequest): Promise<UpsertActivityResponse>;
427
+ /**
428
+ * Same as `addActivity`, but resolves with the response body together with the HTTP status and headers.
429
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
430
+ * @param {ActivitiesApiAddActivityRequest} requestParameters Request parameters.
431
+
432
+ * @throws {RequiredError}
433
+ * @memberof ActivitiesApi
434
+ */
435
+ addActivityWithHttpInfo(requestParameters?: ActivitiesApiAddActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
366
436
  /**
367
437
  * Marks an activity as deleted. After 30 days, the activity will be permanently deleted.
368
438
  * @summary Delete an activity
@@ -372,6 +442,15 @@ export declare class ActivitiesApi extends BaseAPI {
372
442
  * @memberof ActivitiesApi
373
443
  */
374
444
  deleteActivity(requestParameters: ActivitiesApiDeleteActivityRequest): Promise<DeleteActivityResponse>;
445
+ /**
446
+ * Same as `deleteActivity`, but resolves with the response body together with the HTTP status and headers.
447
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
448
+ * @param {ActivitiesApiDeleteActivityRequest} requestParameters Request parameters.
449
+
450
+ * @throws {RequiredError}
451
+ * @memberof ActivitiesApi
452
+ */
453
+ deleteActivityWithHttpInfo(requestParameters: ActivitiesApiDeleteActivityRequest): Promise<ApiResponse<DeleteActivityResponse>>;
375
454
  /**
376
455
  * Returns data about all activities.
377
456
  * @summary Get all activities
@@ -381,6 +460,15 @@ export declare class ActivitiesApi extends BaseAPI {
381
460
  * @memberof ActivitiesApi
382
461
  */
383
462
  getActivities(requestParameters?: ActivitiesApiGetActivitiesRequest): Promise<GetActivitiesResponse>;
463
+ /**
464
+ * Same as `getActivities`, but resolves with the response body together with the HTTP status and headers.
465
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
466
+ * @param {ActivitiesApiGetActivitiesRequest} requestParameters Request parameters.
467
+
468
+ * @throws {RequiredError}
469
+ * @memberof ActivitiesApi
470
+ */
471
+ getActivitiesWithHttpInfo(requestParameters?: ActivitiesApiGetActivitiesRequest): Promise<ApiResponse<GetActivitiesResponse>>;
384
472
  /**
385
473
  * Returns the details of a specific activity.
386
474
  * @summary Get details of an activity
@@ -390,6 +478,15 @@ export declare class ActivitiesApi extends BaseAPI {
390
478
  * @memberof ActivitiesApi
391
479
  */
392
480
  getActivity(requestParameters: ActivitiesApiGetActivityRequest): Promise<UpsertActivityResponse>;
481
+ /**
482
+ * Same as `getActivity`, but resolves with the response body together with the HTTP status and headers.
483
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
484
+ * @param {ActivitiesApiGetActivityRequest} requestParameters Request parameters.
485
+
486
+ * @throws {RequiredError}
487
+ * @memberof ActivitiesApi
488
+ */
489
+ getActivityWithHttpInfo(requestParameters: ActivitiesApiGetActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
393
490
  /**
394
491
  * Updates the properties of an activity.
395
492
  * @summary Update an activity
@@ -399,4 +496,13 @@ export declare class ActivitiesApi extends BaseAPI {
399
496
  * @memberof ActivitiesApi
400
497
  */
401
498
  updateActivity(requestParameters: ActivitiesApiUpdateActivityRequest): Promise<UpsertActivityResponse>;
499
+ /**
500
+ * Same as `updateActivity`, but resolves with the response body together with the HTTP status and headers.
501
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
502
+ * @param {ActivitiesApiUpdateActivityRequest} requestParameters Request parameters.
503
+
504
+ * @throws {RequiredError}
505
+ * @memberof ActivitiesApi
506
+ */
507
+ updateActivityWithHttpInfo(requestParameters: ActivitiesApiUpdateActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
402
508
  }