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
@@ -252,6 +252,19 @@ export const TasksApiFp = function (configuration) {
252
252
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
253
253
  });
254
254
  },
255
+ /**
256
+ * Same as `addTask`, but resolves with the response body together with the HTTP status and headers.
257
+ * @summary Add a task
258
+ * @param {AddTaskRequest} AddTaskRequest
259
+
260
+ * @throws {RequiredError}
261
+ */
262
+ addTaskWithHttpInfo(AddTaskRequest) {
263
+ return __awaiter(this, void 0, void 0, function* () {
264
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addTask(AddTaskRequest);
265
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
266
+ });
267
+ },
255
268
  /**
256
269
  * Marks a task as deleted. If the task has subtasks, those will also be deleted.
257
270
  * @summary Delete a task
@@ -265,6 +278,19 @@ export const TasksApiFp = function (configuration) {
265
278
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
266
279
  });
267
280
  },
281
+ /**
282
+ * Same as `deleteTask`, but resolves with the response body together with the HTTP status and headers.
283
+ * @summary Delete a task
284
+ * @param {number} id The ID of the task
285
+
286
+ * @throws {RequiredError}
287
+ */
288
+ deleteTaskWithHttpInfo(id) {
289
+ return __awaiter(this, void 0, void 0, function* () {
290
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTask(id);
291
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
292
+ });
293
+ },
268
294
  /**
269
295
  * Returns the details of a specific task.
270
296
  * @summary Get details of a task
@@ -278,6 +304,19 @@ export const TasksApiFp = function (configuration) {
278
304
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
279
305
  });
280
306
  },
307
+ /**
308
+ * Same as `getTask`, but resolves with the response body together with the HTTP status and headers.
309
+ * @summary Get details of a task
310
+ * @param {number} id The ID of the task
311
+
312
+ * @throws {RequiredError}
313
+ */
314
+ getTaskWithHttpInfo(id) {
315
+ return __awaiter(this, void 0, void 0, function* () {
316
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTask(id);
317
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
318
+ });
319
+ },
281
320
  /**
282
321
  * Returns all tasks.
283
322
  * @summary Get all tasks
@@ -297,6 +336,25 @@ export const TasksApiFp = function (configuration) {
297
336
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
298
337
  });
299
338
  },
339
+ /**
340
+ * Same as `getTasks`, but resolves with the response body together with the HTTP status and headers.
341
+ * @summary Get all tasks
342
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
343
+ * @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.
344
+ * @param {boolean} [is_done] Whether the task is done or not. If omitted, both done and not done tasks are returned.
345
+ * @param {boolean} [is_milestone] Whether the task is a milestone or not. If omitted, both milestone and non-milestone tasks are returned.
346
+ * @param {number} [assignee_id] If supplied, only tasks assigned to this user are returned
347
+ * @param {number} [project_id] If supplied, only tasks belonging to this project are returned
348
+ * @param {string} [parent_task_id] If `null` is supplied, only root-level tasks (without a parent) are returned. If an integer is supplied, only subtasks of that specific task are returned. By default all tasks are returned.
349
+
350
+ * @throws {RequiredError}
351
+ */
352
+ getTasksWithHttpInfo(cursor, limit, is_done, is_milestone, assignee_id, project_id, parent_task_id) {
353
+ return __awaiter(this, void 0, void 0, function* () {
354
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTasks(cursor, limit, is_done, is_milestone, assignee_id, project_id, parent_task_id);
355
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
356
+ });
357
+ },
300
358
  /**
301
359
  * Updates a task.
302
360
  * @summary Update a task
@@ -311,6 +369,20 @@ export const TasksApiFp = function (configuration) {
311
369
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
312
370
  });
313
371
  },
372
+ /**
373
+ * Same as `updateTask`, but resolves with the response body together with the HTTP status and headers.
374
+ * @summary Update a task
375
+ * @param {number} id The ID of the task
376
+ * @param {UpdateTaskRequest} [UpdateTaskRequest]
377
+
378
+ * @throws {RequiredError}
379
+ */
380
+ updateTaskWithHttpInfo(id, UpdateTaskRequest) {
381
+ return __awaiter(this, void 0, void 0, function* () {
382
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTask(id, UpdateTaskRequest);
383
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
384
+ });
385
+ },
314
386
  };
315
387
  };
316
388
  /**
@@ -330,6 +402,9 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
330
402
  addTask(requestParameters) {
331
403
  return localVarFp.addTask(requestParameters.AddTaskRequest).then((request) => request(axios, basePath));
332
404
  },
405
+ addTaskWithHttpInfo(requestParameters) {
406
+ return localVarFp.addTaskWithHttpInfo(requestParameters.AddTaskRequest).then((request) => request(axios, basePath));
407
+ },
333
408
  /**
334
409
  * Marks a task as deleted. If the task has subtasks, those will also be deleted.
335
410
  * @summary Delete a task
@@ -340,6 +415,9 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
340
415
  deleteTask(requestParameters) {
341
416
  return localVarFp.deleteTask(requestParameters.id).then((request) => request(axios, basePath));
342
417
  },
418
+ deleteTaskWithHttpInfo(requestParameters) {
419
+ return localVarFp.deleteTaskWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
420
+ },
343
421
  /**
344
422
  * Returns the details of a specific task.
345
423
  * @summary Get details of a task
@@ -350,6 +428,9 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
350
428
  getTask(requestParameters) {
351
429
  return localVarFp.getTask(requestParameters.id).then((request) => request(axios, basePath));
352
430
  },
431
+ getTaskWithHttpInfo(requestParameters) {
432
+ return localVarFp.getTaskWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
433
+ },
353
434
  /**
354
435
  * Returns all tasks.
355
436
  * @summary Get all tasks
@@ -360,6 +441,9 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
360
441
  getTasks(requestParameters = {}) {
361
442
  return localVarFp.getTasks(requestParameters.cursor, requestParameters.limit, requestParameters.is_done, requestParameters.is_milestone, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id).then((request) => request(axios, basePath));
362
443
  },
444
+ getTasksWithHttpInfo(requestParameters = {}) {
445
+ return localVarFp.getTasksWithHttpInfo(requestParameters.cursor, requestParameters.limit, requestParameters.is_done, requestParameters.is_milestone, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id).then((request) => request(axios, basePath));
446
+ },
363
447
  /**
364
448
  * Updates a task.
365
449
  * @summary Update a task
@@ -370,6 +454,9 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
370
454
  updateTask(requestParameters) {
371
455
  return localVarFp.updateTask(requestParameters.id, requestParameters.UpdateTaskRequest).then((request) => request(axios, basePath));
372
456
  },
457
+ updateTaskWithHttpInfo(requestParameters) {
458
+ return localVarFp.updateTaskWithHttpInfo(requestParameters.id, requestParameters.UpdateTaskRequest).then((request) => request(axios, basePath));
459
+ },
373
460
  };
374
461
  };
375
462
  /**
@@ -390,6 +477,17 @@ export class TasksApi extends BaseAPI {
390
477
  addTask(requestParameters) {
391
478
  return TasksApiFp(this.configuration).addTask(requestParameters.AddTaskRequest).then((request) => request(this.axios, this.basePath));
392
479
  }
480
+ /**
481
+ * Same as `addTask`, but resolves with the response body together with the HTTP status and headers.
482
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
483
+ * @param {TasksApiAddTaskRequest} requestParameters Request parameters.
484
+
485
+ * @throws {RequiredError}
486
+ * @memberof TasksApi
487
+ */
488
+ addTaskWithHttpInfo(requestParameters) {
489
+ return TasksApiFp(this.configuration).addTaskWithHttpInfo(requestParameters.AddTaskRequest).then((request) => request(this.axios, this.basePath));
490
+ }
393
491
  /**
394
492
  * Marks a task as deleted. If the task has subtasks, those will also be deleted.
395
493
  * @summary Delete a task
@@ -401,6 +499,17 @@ export class TasksApi extends BaseAPI {
401
499
  deleteTask(requestParameters) {
402
500
  return TasksApiFp(this.configuration).deleteTask(requestParameters.id).then((request) => request(this.axios, this.basePath));
403
501
  }
502
+ /**
503
+ * Same as `deleteTask`, but resolves with the response body together with the HTTP status and headers.
504
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
505
+ * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters.
506
+
507
+ * @throws {RequiredError}
508
+ * @memberof TasksApi
509
+ */
510
+ deleteTaskWithHttpInfo(requestParameters) {
511
+ return TasksApiFp(this.configuration).deleteTaskWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
512
+ }
404
513
  /**
405
514
  * Returns the details of a specific task.
406
515
  * @summary Get details of a task
@@ -412,6 +521,17 @@ export class TasksApi extends BaseAPI {
412
521
  getTask(requestParameters) {
413
522
  return TasksApiFp(this.configuration).getTask(requestParameters.id).then((request) => request(this.axios, this.basePath));
414
523
  }
524
+ /**
525
+ * Same as `getTask`, but resolves with the response body together with the HTTP status and headers.
526
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
527
+ * @param {TasksApiGetTaskRequest} requestParameters Request parameters.
528
+
529
+ * @throws {RequiredError}
530
+ * @memberof TasksApi
531
+ */
532
+ getTaskWithHttpInfo(requestParameters) {
533
+ return TasksApiFp(this.configuration).getTaskWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
534
+ }
415
535
  /**
416
536
  * Returns all tasks.
417
537
  * @summary Get all tasks
@@ -423,6 +543,17 @@ export class TasksApi extends BaseAPI {
423
543
  getTasks(requestParameters = {}) {
424
544
  return TasksApiFp(this.configuration).getTasks(requestParameters.cursor, requestParameters.limit, requestParameters.is_done, requestParameters.is_milestone, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id).then((request) => request(this.axios, this.basePath));
425
545
  }
546
+ /**
547
+ * Same as `getTasks`, but resolves with the response body together with the HTTP status and headers.
548
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
549
+ * @param {TasksApiGetTasksRequest} requestParameters Request parameters.
550
+
551
+ * @throws {RequiredError}
552
+ * @memberof TasksApi
553
+ */
554
+ getTasksWithHttpInfo(requestParameters = {}) {
555
+ return TasksApiFp(this.configuration).getTasksWithHttpInfo(requestParameters.cursor, requestParameters.limit, requestParameters.is_done, requestParameters.is_milestone, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id).then((request) => request(this.axios, this.basePath));
556
+ }
426
557
  /**
427
558
  * Updates a task.
428
559
  * @summary Update a task
@@ -434,4 +565,15 @@ export class TasksApi extends BaseAPI {
434
565
  updateTask(requestParameters) {
435
566
  return TasksApiFp(this.configuration).updateTask(requestParameters.id, requestParameters.UpdateTaskRequest).then((request) => request(this.axios, this.basePath));
436
567
  }
568
+ /**
569
+ * Same as `updateTask`, but resolves with the response body together with the HTTP status and headers.
570
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
571
+ * @param {TasksApiUpdateTaskRequest} requestParameters Request parameters.
572
+
573
+ * @throws {RequiredError}
574
+ * @memberof TasksApi
575
+ */
576
+ updateTaskWithHttpInfo(requestParameters) {
577
+ return TasksApiFp(this.configuration).updateTaskWithHttpInfo(requestParameters.id, requestParameters.UpdateTaskRequest).then((request) => request(this.axios, this.basePath));
578
+ }
437
579
  }
@@ -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 { GetFollowersResponse } from '../models';
16
16
  /**
17
17
  * UsersApi - axios parameter creator
@@ -44,6 +44,16 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
44
44
  * @throws {RequiredError}
45
45
  */
46
46
  getUserFollowers(id: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFollowersResponse>>;
47
+ /**
48
+ * Same as `getUserFollowers`, but resolves with the response body together with the HTTP status and headers.
49
+ * @summary List followers of a user
50
+ * @param {number} id The ID of the user
51
+ * @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.
52
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
53
+
54
+ * @throws {RequiredError}
55
+ */
56
+ getUserFollowersWithHttpInfo(id: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetFollowersResponse>>>;
47
57
  };
48
58
  /**
49
59
  * UsersApi - factory interface
@@ -58,6 +68,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
58
68
  * @throws {RequiredError}
59
69
  */
60
70
  getUserFollowers(requestParameters: UsersApiGetUserFollowersRequest): Promise<GetFollowersResponse>;
71
+ getUserFollowersWithHttpInfo(requestParameters: UsersApiGetUserFollowersRequest): Promise<ApiResponse<GetFollowersResponse>>;
61
72
  };
62
73
  /**
63
74
  * Request parameters for getUserFollowers operation in UsersApi.
@@ -100,4 +111,13 @@ export declare class UsersApi extends BaseAPI {
100
111
  * @memberof UsersApi
101
112
  */
102
113
  getUserFollowers(requestParameters: UsersApiGetUserFollowersRequest): Promise<GetFollowersResponse>;
114
+ /**
115
+ * Same as `getUserFollowers`, but resolves with the response body together with the HTTP status and headers.
116
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
117
+ * @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters.
118
+
119
+ * @throws {RequiredError}
120
+ * @memberof UsersApi
121
+ */
122
+ getUserFollowersWithHttpInfo(requestParameters: UsersApiGetUserFollowersRequest): Promise<ApiResponse<GetFollowersResponse>>;
103
123
  }
@@ -98,6 +98,21 @@ export const UsersApiFp = function (configuration) {
98
98
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
99
99
  });
100
100
  },
101
+ /**
102
+ * Same as `getUserFollowers`, but resolves with the response body together with the HTTP status and headers.
103
+ * @summary List followers of a user
104
+ * @param {number} id The ID of the user
105
+ * @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.
106
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
107
+
108
+ * @throws {RequiredError}
109
+ */
110
+ getUserFollowersWithHttpInfo(id, limit, cursor) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserFollowers(id, limit, cursor);
113
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
114
+ });
115
+ },
101
116
  };
102
117
  };
103
118
  /**
@@ -117,6 +132,9 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
117
132
  getUserFollowers(requestParameters) {
118
133
  return localVarFp.getUserFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
119
134
  },
135
+ getUserFollowersWithHttpInfo(requestParameters) {
136
+ return localVarFp.getUserFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
137
+ },
120
138
  };
121
139
  };
122
140
  /**
@@ -137,4 +155,15 @@ export class UsersApi extends BaseAPI {
137
155
  getUserFollowers(requestParameters) {
138
156
  return UsersApiFp(this.configuration).getUserFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
139
157
  }
158
+ /**
159
+ * Same as `getUserFollowers`, but resolves with the response body together with the HTTP status and headers.
160
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
161
+ * @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters.
162
+
163
+ * @throws {RequiredError}
164
+ * @memberof UsersApi
165
+ */
166
+ getUserFollowersWithHttpInfo(requestParameters) {
167
+ return UsersApiFp(this.configuration).getUserFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
168
+ }
140
169
  }
@@ -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
  *
@@ -38,10 +38,32 @@ export const versionInterceptor = (config) => __awaiter(void 0, void 0, void 0,
38
38
  config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${_pkg.version}`;
39
39
  return config;
40
40
  });
41
+ // Set by the `*WithHttpInfo` methods to keep status and headers instead of returning only the body.
42
+ const wantsFullResponse = (config) => !!(config === null || config === void 0 ? void 0 : config.fullResponse);
41
43
  export const responseInterceptor = (response) => {
44
+ if (wantsFullResponse(response === null || response === void 0 ? void 0 : response.config)) {
45
+ return { data: response.data, status: response.status, headers: response.headers };
46
+ }
42
47
  return (response === null || response === void 0 ? void 0 : response.data) ? response.data : response;
43
48
  };
49
+ /**
50
+ * Turns a raw AxiosError into the rejection used by the `*WithHttpInfo` methods: the error body fields (if any)
51
+ * plus `$response: { status, headers }`. Values that are not AxiosErrors with a response, including errors that
52
+ * were already normalized, are returned unchanged.
53
+ */
54
+ export const toFullResponseError = (error) => {
55
+ if (!(error === null || error === void 0 ? void 0 : error.isAxiosError) || !error.response) {
56
+ return error;
57
+ }
58
+ const { data, status, headers } = error.response;
59
+ const body = data && typeof data === 'object' ? data : data ? { data } : {};
60
+ return Object.assign(Object.assign({}, body), { $response: { status, headers } });
61
+ };
44
62
  export const errorInterceptor = (error) => {
63
+ if (error.response && wantsFullResponse(error.config)) {
64
+ // Applies to empty error bodies too, so headers such as Retry-After are not lost.
65
+ return Promise.reject(toFullResponseError(error));
66
+ }
45
67
  if (error.response && error.response.data) {
46
68
  return Promise.reject(error.response.data);
47
69
  }
@@ -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>;
@@ -20,7 +20,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  step((generator = generator.apply(thisArg, _arguments || [])).next());
21
21
  });
22
22
  };
23
- import { RequiredError } from "./base";
23
+ import { RequiredError, toFullResponseError } from "./base";
24
24
  /**
25
25
  *
26
26
  * @export
@@ -138,11 +138,14 @@ export const toPathString = function (url) {
138
138
  *
139
139
  * @export
140
140
  */
141
- export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
141
+ export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration, fullResponse = false) {
142
142
  // Explicit return type + cast avoid inferring axios's internal AxiosResponseResult type,
143
143
  // which references a module-private `unique symbol` and breaks `tsc --declaration` (TS2742).
144
144
  return (axios = globalAxios, basePath = BASE_PATH) => {
145
- const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
146
- return axios.request(axiosRequestArgs);
145
+ 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 } : {}));
146
+ const request = axios.request(axiosRequestArgs);
147
+ // Instances without the SDK's interceptors (e.g. the default global axios used by Fp and Factory calls)
148
+ // reject with a raw AxiosError, so give full-response errors the same shape as the class API.
149
+ return fullResponse ? request.catch((error) => Promise.reject(toFullResponseError(error))) : request;
147
150
  };
148
151
  };
@@ -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 { GetFieldsResponse } from '../models';
16
16
  /**
17
17
  * ActivityFieldsApi - axios parameter creator
@@ -38,6 +38,13 @@ export declare const ActivityFieldsApiFp: (configuration?: Configuration) => {
38
38
  * @throws {RequiredError}
39
39
  */
40
40
  getActivityFields(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFieldsResponse>>;
41
+ /**
42
+ * Same as `getActivityFields`, but resolves with the response body together with the HTTP status and headers.
43
+ * @summary Get all activity fields
44
+
45
+ * @throws {RequiredError}
46
+ */
47
+ getActivityFieldsWithHttpInfo(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetFieldsResponse>>>;
41
48
  };
42
49
  /**
43
50
  * ActivityFieldsApi - factory interface
@@ -51,6 +58,7 @@ export declare const ActivityFieldsApiFactory: (configuration?: Configuration, b
51
58
  * @throws {RequiredError}
52
59
  */
53
60
  getActivityFields(): Promise<GetFieldsResponse>;
61
+ getActivityFieldsWithHttpInfo(): Promise<ApiResponse<GetFieldsResponse>>;
54
62
  };
55
63
  /**
56
64
  * ActivityFieldsApi - object-oriented interface
@@ -67,4 +75,12 @@ export declare class ActivityFieldsApi extends BaseAPI {
67
75
  * @memberof ActivityFieldsApi
68
76
  */
69
77
  getActivityFields(): Promise<GetFieldsResponse>;
78
+ /**
79
+ * Same as `getActivityFields`, but resolves with the response body together with the HTTP status and headers.
80
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
81
+
82
+ * @throws {RequiredError}
83
+ * @memberof ActivityFieldsApi
84
+ */
85
+ getActivityFieldsWithHttpInfo(): Promise<ApiResponse<GetFieldsResponse>>;
70
86
  }
@@ -90,6 +90,18 @@ const ActivityFieldsApiFp = function (configuration) {
90
90
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
91
91
  });
92
92
  },
93
+ /**
94
+ * Same as `getActivityFields`, but resolves with the response body together with the HTTP status and headers.
95
+ * @summary Get all activity fields
96
+
97
+ * @throws {RequiredError}
98
+ */
99
+ getActivityFieldsWithHttpInfo() {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getActivityFields();
102
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
103
+ });
104
+ },
93
105
  };
94
106
  };
95
107
  exports.ActivityFieldsApiFp = ActivityFieldsApiFp;
@@ -109,6 +121,9 @@ const ActivityFieldsApiFactory = function (configuration, basePath, axios) {
109
121
  getActivityFields() {
110
122
  return localVarFp.getActivityFields().then((request) => request(axios, basePath));
111
123
  },
124
+ getActivityFieldsWithHttpInfo() {
125
+ return localVarFp.getActivityFieldsWithHttpInfo().then((request) => request(axios, basePath));
126
+ },
112
127
  };
113
128
  };
114
129
  exports.ActivityFieldsApiFactory = ActivityFieldsApiFactory;
@@ -129,5 +144,15 @@ class ActivityFieldsApi extends base_1.BaseAPI {
129
144
  getActivityFields() {
130
145
  return (0, exports.ActivityFieldsApiFp)(this.configuration).getActivityFields().then((request) => request(this.axios, this.basePath));
131
146
  }
147
+ /**
148
+ * Same as `getActivityFields`, but resolves with the response body together with the HTTP status and headers.
149
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
150
+
151
+ * @throws {RequiredError}
152
+ * @memberof ActivityFieldsApi
153
+ */
154
+ getActivityFieldsWithHttpInfo() {
155
+ return (0, exports.ActivityFieldsApiFp)(this.configuration).getActivityFieldsWithHttpInfo().then((request) => request(this.axios, this.basePath));
156
+ }
132
157
  }
133
158
  exports.ActivityFieldsApi = ActivityFieldsApi;