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
@@ -426,6 +426,20 @@ const OrganizationsApiFp = function (configuration) {
426
426
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
427
427
  });
428
428
  },
429
+ /**
430
+ * Same as `addOrganizationFollower`, but resolves with the response body together with the HTTP status and headers.
431
+ * @summary Add a follower to an organization
432
+ * @param {number} id The ID of the organization
433
+ * @param {AddOrganizationFollowerRequest} [AddOrganizationFollowerRequest]
434
+
435
+ * @throws {RequiredError}
436
+ */
437
+ addOrganizationFollowerWithHttpInfo(id, AddOrganizationFollowerRequest) {
438
+ return __awaiter(this, void 0, void 0, function* () {
439
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addOrganizationFollower(id, AddOrganizationFollowerRequest);
440
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
441
+ });
442
+ },
429
443
  /**
430
444
  * Deletes a follower from an organization. You can retrieve the `follower_id` from the <a href=\"https://developers.pipedrive.com/docs/api/v1/Organizations#getOrganizationFollowers\">List followers of an organization</a> endpoint.
431
445
  * @summary Delete a follower from an organization
@@ -440,6 +454,20 @@ const OrganizationsApiFp = function (configuration) {
440
454
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
441
455
  });
442
456
  },
457
+ /**
458
+ * Same as `deleteOrganizationFollower`, but resolves with the response body together with the HTTP status and headers.
459
+ * @summary Delete a follower from an organization
460
+ * @param {number} id The ID of the organization
461
+ * @param {number} follower_id The ID of the relationship between the follower and the organization
462
+
463
+ * @throws {RequiredError}
464
+ */
465
+ deleteOrganizationFollowerWithHttpInfo(id, follower_id) {
466
+ return __awaiter(this, void 0, void 0, function* () {
467
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrganizationFollower(id, follower_id);
468
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
469
+ });
470
+ },
443
471
  /**
444
472
  * Lists updates about field values of an organization.
445
473
  * @summary List updates about organization field values
@@ -455,6 +483,21 @@ const OrganizationsApiFp = function (configuration) {
455
483
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
456
484
  });
457
485
  },
486
+ /**
487
+ * Same as `getOrganizationChangelog`, but resolves with the response body together with the HTTP status and headers.
488
+ * @summary List updates about organization field values
489
+ * @param {number} id The ID of the organization
490
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
491
+ * @param {number} [limit] Items shown per page
492
+
493
+ * @throws {RequiredError}
494
+ */
495
+ getOrganizationChangelogWithHttpInfo(id, cursor, limit) {
496
+ return __awaiter(this, void 0, void 0, function* () {
497
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationChangelog(id, cursor, limit);
498
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
499
+ });
500
+ },
458
501
  /**
459
502
  * Lists files associated with an organization.
460
503
  * @summary List files attached to an organization
@@ -471,6 +514,22 @@ const OrganizationsApiFp = function (configuration) {
471
514
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
472
515
  });
473
516
  },
517
+ /**
518
+ * Same as `getOrganizationFiles`, but resolves with the response body together with the HTTP status and headers.
519
+ * @summary List files attached to an organization
520
+ * @param {number} id The ID of the organization
521
+ * @param {number} [start] Pagination start
522
+ * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed.
523
+ * @param {string} [sort] Supported fields: &#x60;id&#x60;, &#x60;update_time&#x60;
524
+
525
+ * @throws {RequiredError}
526
+ */
527
+ getOrganizationFilesWithHttpInfo(id, start, limit, sort) {
528
+ return __awaiter(this, void 0, void 0, function* () {
529
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationFiles(id, start, limit, sort);
530
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
531
+ });
532
+ },
474
533
  /**
475
534
  * Lists the followers of an organization.
476
535
  * @summary List followers of an organization
@@ -484,6 +543,19 @@ const OrganizationsApiFp = function (configuration) {
484
543
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
485
544
  });
486
545
  },
546
+ /**
547
+ * Same as `getOrganizationFollowers`, but resolves with the response body together with the HTTP status and headers.
548
+ * @summary List followers of an organization
549
+ * @param {number} id The ID of the organization
550
+
551
+ * @throws {RequiredError}
552
+ */
553
+ getOrganizationFollowersWithHttpInfo(id) {
554
+ return __awaiter(this, void 0, void 0, function* () {
555
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationFollowers(id);
556
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
557
+ });
558
+ },
487
559
  /**
488
560
  * Lists mail messages associated with an organization.
489
561
  * @summary List mail messages associated with an organization
@@ -500,6 +572,22 @@ const OrganizationsApiFp = function (configuration) {
500
572
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
501
573
  });
502
574
  },
575
+ /**
576
+ * Same as `getOrganizationMailMessages`, but resolves with the response body together with the HTTP status and headers.
577
+ * @summary List mail messages associated with an organization
578
+ * @param {number} id The ID of the organization
579
+ * @param {number} [start] Pagination start
580
+ * @param {number} [limit] Items shown per page
581
+ * @param {0 | 1} [include_body] Whether to include the mail message body content in the response. &#x60;0&#x60; &#x3D; Don\&#39;t include, &#x60;1&#x60; &#x3D; Include.
582
+
583
+ * @throws {RequiredError}
584
+ */
585
+ getOrganizationMailMessagesWithHttpInfo(id, start, limit, include_body) {
586
+ return __awaiter(this, void 0, void 0, function* () {
587
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationMailMessages(id, start, limit, include_body);
588
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
589
+ });
590
+ },
503
591
  /**
504
592
  * Lists updates about an organization.
505
593
  * @summary List updates about an organization
@@ -517,6 +605,23 @@ const OrganizationsApiFp = function (configuration) {
517
605
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
518
606
  });
519
607
  },
608
+ /**
609
+ * Same as `getOrganizationUpdates`, but resolves with the response body together with the HTTP status and headers.
610
+ * @summary List updates about an organization
611
+ * @param {number} id The ID of the organization
612
+ * @param {number} [start] Pagination start
613
+ * @param {number} [limit] Items shown per page
614
+ * @param {string} [all_changes] Whether to show custom field updates or not. 1 &#x3D; Include custom field changes. If omitted, returns changes without custom field updates.
615
+ * @param {Set<string>} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document).
616
+
617
+ * @throws {RequiredError}
618
+ */
619
+ getOrganizationUpdatesWithHttpInfo(id, start, limit, all_changes, items) {
620
+ return __awaiter(this, void 0, void 0, function* () {
621
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationUpdates(id, start, limit, all_changes, items);
622
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
623
+ });
624
+ },
520
625
  /**
521
626
  * List users permitted to access an organization.
522
627
  * @summary List permitted users
@@ -530,6 +635,19 @@ const OrganizationsApiFp = function (configuration) {
530
635
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
531
636
  });
532
637
  },
638
+ /**
639
+ * Same as `getOrganizationUsers`, but resolves with the response body together with the HTTP status and headers.
640
+ * @summary List permitted users
641
+ * @param {number} id The ID of the organization
642
+
643
+ * @throws {RequiredError}
644
+ */
645
+ getOrganizationUsersWithHttpInfo(id) {
646
+ return __awaiter(this, void 0, void 0, function* () {
647
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationUsers(id);
648
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
649
+ });
650
+ },
533
651
  /**
534
652
  * Merges an organization with another organization. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/merging-two-organizations\" target=\"_blank\" rel=\"noopener noreferrer\">merging two organizations</a>.
535
653
  * @summary Merge two organizations
@@ -544,6 +662,20 @@ const OrganizationsApiFp = function (configuration) {
544
662
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
545
663
  });
546
664
  },
665
+ /**
666
+ * Same as `mergeOrganizations`, but resolves with the response body together with the HTTP status and headers.
667
+ * @summary Merge two organizations
668
+ * @param {number} id The ID of the organization
669
+ * @param {MergeOrganizationsRequest} [MergeOrganizationsRequest]
670
+
671
+ * @throws {RequiredError}
672
+ */
673
+ mergeOrganizationsWithHttpInfo(id, MergeOrganizationsRequest) {
674
+ return __awaiter(this, void 0, void 0, function* () {
675
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.mergeOrganizations(id, MergeOrganizationsRequest);
676
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
677
+ });
678
+ },
547
679
  };
548
680
  };
549
681
  exports.OrganizationsApiFp = OrganizationsApiFp;
@@ -564,6 +696,9 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
564
696
  addOrganizationFollower(requestParameters) {
565
697
  return localVarFp.addOrganizationFollower(requestParameters.id, requestParameters.AddOrganizationFollowerRequest).then((request) => request(axios, basePath));
566
698
  },
699
+ addOrganizationFollowerWithHttpInfo(requestParameters) {
700
+ return localVarFp.addOrganizationFollowerWithHttpInfo(requestParameters.id, requestParameters.AddOrganizationFollowerRequest).then((request) => request(axios, basePath));
701
+ },
567
702
  /**
568
703
  * Deletes a follower from an organization. You can retrieve the `follower_id` from the <a href=\"https://developers.pipedrive.com/docs/api/v1/Organizations#getOrganizationFollowers\">List followers of an organization</a> endpoint.
569
704
  * @summary Delete a follower from an organization
@@ -574,6 +709,9 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
574
709
  deleteOrganizationFollower(requestParameters) {
575
710
  return localVarFp.deleteOrganizationFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
576
711
  },
712
+ deleteOrganizationFollowerWithHttpInfo(requestParameters) {
713
+ return localVarFp.deleteOrganizationFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
714
+ },
577
715
  /**
578
716
  * Lists updates about field values of an organization.
579
717
  * @summary List updates about organization field values
@@ -584,6 +722,9 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
584
722
  getOrganizationChangelog(requestParameters) {
585
723
  return localVarFp.getOrganizationChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(axios, basePath));
586
724
  },
725
+ getOrganizationChangelogWithHttpInfo(requestParameters) {
726
+ return localVarFp.getOrganizationChangelogWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(axios, basePath));
727
+ },
587
728
  /**
588
729
  * Lists files associated with an organization.
589
730
  * @summary List files attached to an organization
@@ -594,6 +735,9 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
594
735
  getOrganizationFiles(requestParameters) {
595
736
  return localVarFp.getOrganizationFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(axios, basePath));
596
737
  },
738
+ getOrganizationFilesWithHttpInfo(requestParameters) {
739
+ return localVarFp.getOrganizationFilesWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(axios, basePath));
740
+ },
597
741
  /**
598
742
  * Lists the followers of an organization.
599
743
  * @summary List followers of an organization
@@ -604,6 +748,9 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
604
748
  getOrganizationFollowers(requestParameters) {
605
749
  return localVarFp.getOrganizationFollowers(requestParameters.id).then((request) => request(axios, basePath));
606
750
  },
751
+ getOrganizationFollowersWithHttpInfo(requestParameters) {
752
+ return localVarFp.getOrganizationFollowersWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
753
+ },
607
754
  /**
608
755
  * Lists mail messages associated with an organization.
609
756
  * @summary List mail messages associated with an organization
@@ -614,6 +761,9 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
614
761
  getOrganizationMailMessages(requestParameters) {
615
762
  return localVarFp.getOrganizationMailMessages(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.include_body).then((request) => request(axios, basePath));
616
763
  },
764
+ getOrganizationMailMessagesWithHttpInfo(requestParameters) {
765
+ return localVarFp.getOrganizationMailMessagesWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.include_body).then((request) => request(axios, basePath));
766
+ },
617
767
  /**
618
768
  * Lists updates about an organization.
619
769
  * @summary List updates about an organization
@@ -624,6 +774,9 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
624
774
  getOrganizationUpdates(requestParameters) {
625
775
  return localVarFp.getOrganizationUpdates(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.all_changes, requestParameters.items).then((request) => request(axios, basePath));
626
776
  },
777
+ getOrganizationUpdatesWithHttpInfo(requestParameters) {
778
+ return localVarFp.getOrganizationUpdatesWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.all_changes, requestParameters.items).then((request) => request(axios, basePath));
779
+ },
627
780
  /**
628
781
  * List users permitted to access an organization.
629
782
  * @summary List permitted users
@@ -634,6 +787,9 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
634
787
  getOrganizationUsers(requestParameters) {
635
788
  return localVarFp.getOrganizationUsers(requestParameters.id).then((request) => request(axios, basePath));
636
789
  },
790
+ getOrganizationUsersWithHttpInfo(requestParameters) {
791
+ return localVarFp.getOrganizationUsersWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
792
+ },
637
793
  /**
638
794
  * Merges an organization with another organization. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/merging-two-organizations\" target=\"_blank\" rel=\"noopener noreferrer\">merging two organizations</a>.
639
795
  * @summary Merge two organizations
@@ -644,6 +800,9 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
644
800
  mergeOrganizations(requestParameters) {
645
801
  return localVarFp.mergeOrganizations(requestParameters.id, requestParameters.MergeOrganizationsRequest).then((request) => request(axios, basePath));
646
802
  },
803
+ mergeOrganizationsWithHttpInfo(requestParameters) {
804
+ return localVarFp.mergeOrganizationsWithHttpInfo(requestParameters.id, requestParameters.MergeOrganizationsRequest).then((request) => request(axios, basePath));
805
+ },
647
806
  };
648
807
  };
649
808
  exports.OrganizationsApiFactory = OrganizationsApiFactory;
@@ -665,6 +824,17 @@ class OrganizationsApi extends base_1.BaseAPI {
665
824
  addOrganizationFollower(requestParameters) {
666
825
  return (0, exports.OrganizationsApiFp)(this.configuration).addOrganizationFollower(requestParameters.id, requestParameters.AddOrganizationFollowerRequest).then((request) => request(this.axios, this.basePath));
667
826
  }
827
+ /**
828
+ * Same as `addOrganizationFollower`, but resolves with the response body together with the HTTP status and headers.
829
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
830
+ * @param {OrganizationsApiAddOrganizationFollowerRequest} requestParameters Request parameters.
831
+
832
+ * @throws {RequiredError}
833
+ * @memberof OrganizationsApi
834
+ */
835
+ addOrganizationFollowerWithHttpInfo(requestParameters) {
836
+ return (0, exports.OrganizationsApiFp)(this.configuration).addOrganizationFollowerWithHttpInfo(requestParameters.id, requestParameters.AddOrganizationFollowerRequest).then((request) => request(this.axios, this.basePath));
837
+ }
668
838
  /**
669
839
  * Deletes a follower from an organization. You can retrieve the `follower_id` from the <a href=\"https://developers.pipedrive.com/docs/api/v1/Organizations#getOrganizationFollowers\">List followers of an organization</a> endpoint.
670
840
  * @summary Delete a follower from an organization
@@ -676,6 +846,17 @@ class OrganizationsApi extends base_1.BaseAPI {
676
846
  deleteOrganizationFollower(requestParameters) {
677
847
  return (0, exports.OrganizationsApiFp)(this.configuration).deleteOrganizationFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
678
848
  }
849
+ /**
850
+ * Same as `deleteOrganizationFollower`, but resolves with the response body together with the HTTP status and headers.
851
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
852
+ * @param {OrganizationsApiDeleteOrganizationFollowerRequest} requestParameters Request parameters.
853
+
854
+ * @throws {RequiredError}
855
+ * @memberof OrganizationsApi
856
+ */
857
+ deleteOrganizationFollowerWithHttpInfo(requestParameters) {
858
+ return (0, exports.OrganizationsApiFp)(this.configuration).deleteOrganizationFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
859
+ }
679
860
  /**
680
861
  * Lists updates about field values of an organization.
681
862
  * @summary List updates about organization field values
@@ -687,6 +868,17 @@ class OrganizationsApi extends base_1.BaseAPI {
687
868
  getOrganizationChangelog(requestParameters) {
688
869
  return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(this.axios, this.basePath));
689
870
  }
871
+ /**
872
+ * Same as `getOrganizationChangelog`, but resolves with the response body together with the HTTP status and headers.
873
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
874
+ * @param {OrganizationsApiGetOrganizationChangelogRequest} requestParameters Request parameters.
875
+
876
+ * @throws {RequiredError}
877
+ * @memberof OrganizationsApi
878
+ */
879
+ getOrganizationChangelogWithHttpInfo(requestParameters) {
880
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationChangelogWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(this.axios, this.basePath));
881
+ }
690
882
  /**
691
883
  * Lists files associated with an organization.
692
884
  * @summary List files attached to an organization
@@ -698,6 +890,17 @@ class OrganizationsApi extends base_1.BaseAPI {
698
890
  getOrganizationFiles(requestParameters) {
699
891
  return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(this.axios, this.basePath));
700
892
  }
893
+ /**
894
+ * Same as `getOrganizationFiles`, but resolves with the response body together with the HTTP status and headers.
895
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
896
+ * @param {OrganizationsApiGetOrganizationFilesRequest} requestParameters Request parameters.
897
+
898
+ * @throws {RequiredError}
899
+ * @memberof OrganizationsApi
900
+ */
901
+ getOrganizationFilesWithHttpInfo(requestParameters) {
902
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationFilesWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(this.axios, this.basePath));
903
+ }
701
904
  /**
702
905
  * Lists the followers of an organization.
703
906
  * @summary List followers of an organization
@@ -709,6 +912,17 @@ class OrganizationsApi extends base_1.BaseAPI {
709
912
  getOrganizationFollowers(requestParameters) {
710
913
  return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationFollowers(requestParameters.id).then((request) => request(this.axios, this.basePath));
711
914
  }
915
+ /**
916
+ * Same as `getOrganizationFollowers`, but resolves with the response body together with the HTTP status and headers.
917
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
918
+ * @param {OrganizationsApiGetOrganizationFollowersRequest} requestParameters Request parameters.
919
+
920
+ * @throws {RequiredError}
921
+ * @memberof OrganizationsApi
922
+ */
923
+ getOrganizationFollowersWithHttpInfo(requestParameters) {
924
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationFollowersWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
925
+ }
712
926
  /**
713
927
  * Lists mail messages associated with an organization.
714
928
  * @summary List mail messages associated with an organization
@@ -720,6 +934,17 @@ class OrganizationsApi extends base_1.BaseAPI {
720
934
  getOrganizationMailMessages(requestParameters) {
721
935
  return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationMailMessages(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.include_body).then((request) => request(this.axios, this.basePath));
722
936
  }
937
+ /**
938
+ * Same as `getOrganizationMailMessages`, but resolves with the response body together with the HTTP status and headers.
939
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
940
+ * @param {OrganizationsApiGetOrganizationMailMessagesRequest} requestParameters Request parameters.
941
+
942
+ * @throws {RequiredError}
943
+ * @memberof OrganizationsApi
944
+ */
945
+ getOrganizationMailMessagesWithHttpInfo(requestParameters) {
946
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationMailMessagesWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.include_body).then((request) => request(this.axios, this.basePath));
947
+ }
723
948
  /**
724
949
  * Lists updates about an organization.
725
950
  * @summary List updates about an organization
@@ -731,6 +956,17 @@ class OrganizationsApi extends base_1.BaseAPI {
731
956
  getOrganizationUpdates(requestParameters) {
732
957
  return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationUpdates(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.all_changes, requestParameters.items).then((request) => request(this.axios, this.basePath));
733
958
  }
959
+ /**
960
+ * Same as `getOrganizationUpdates`, but resolves with the response body together with the HTTP status and headers.
961
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
962
+ * @param {OrganizationsApiGetOrganizationUpdatesRequest} requestParameters Request parameters.
963
+
964
+ * @throws {RequiredError}
965
+ * @memberof OrganizationsApi
966
+ */
967
+ getOrganizationUpdatesWithHttpInfo(requestParameters) {
968
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationUpdatesWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.all_changes, requestParameters.items).then((request) => request(this.axios, this.basePath));
969
+ }
734
970
  /**
735
971
  * List users permitted to access an organization.
736
972
  * @summary List permitted users
@@ -742,6 +978,17 @@ class OrganizationsApi extends base_1.BaseAPI {
742
978
  getOrganizationUsers(requestParameters) {
743
979
  return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationUsers(requestParameters.id).then((request) => request(this.axios, this.basePath));
744
980
  }
981
+ /**
982
+ * Same as `getOrganizationUsers`, but resolves with the response body together with the HTTP status and headers.
983
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
984
+ * @param {OrganizationsApiGetOrganizationUsersRequest} requestParameters Request parameters.
985
+
986
+ * @throws {RequiredError}
987
+ * @memberof OrganizationsApi
988
+ */
989
+ getOrganizationUsersWithHttpInfo(requestParameters) {
990
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationUsersWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
991
+ }
745
992
  /**
746
993
  * Merges an organization with another organization. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/merging-two-organizations\" target=\"_blank\" rel=\"noopener noreferrer\">merging two organizations</a>.
747
994
  * @summary Merge two organizations
@@ -753,5 +1000,16 @@ class OrganizationsApi extends base_1.BaseAPI {
753
1000
  mergeOrganizations(requestParameters) {
754
1001
  return (0, exports.OrganizationsApiFp)(this.configuration).mergeOrganizations(requestParameters.id, requestParameters.MergeOrganizationsRequest).then((request) => request(this.axios, this.basePath));
755
1002
  }
1003
+ /**
1004
+ * Same as `mergeOrganizations`, but resolves with the response body together with the HTTP status and headers.
1005
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1006
+ * @param {OrganizationsApiMergeOrganizationsRequest} requestParameters Request parameters.
1007
+
1008
+ * @throws {RequiredError}
1009
+ * @memberof OrganizationsApi
1010
+ */
1011
+ mergeOrganizationsWithHttpInfo(requestParameters) {
1012
+ return (0, exports.OrganizationsApiFp)(this.configuration).mergeOrganizationsWithHttpInfo(requestParameters.id, requestParameters.MergeOrganizationsRequest).then((request) => request(this.axios, this.basePath));
1013
+ }
756
1014
  }
757
1015
  exports.OrganizationsApi = OrganizationsApi;
@@ -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 { GetPermissionSetResponse } from '../models';
16
16
  import { GetPermissionSetsResponse } from '../models';
17
17
  import { GetUserAssignmentsToPermissionSetResponse } from '../models';
@@ -60,6 +60,14 @@ export declare const PermissionSetsApiFp: (configuration?: Configuration) => {
60
60
  * @throws {RequiredError}
61
61
  */
62
62
  getPermissionSet(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPermissionSetResponse>>;
63
+ /**
64
+ * Same as `getPermissionSet`, but resolves with the response body together with the HTTP status and headers.
65
+ * @summary Get one permission set
66
+ * @param {string} id The ID of the permission set
67
+
68
+ * @throws {RequiredError}
69
+ */
70
+ getPermissionSetWithHttpInfo(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetPermissionSetResponse>>>;
63
71
  /**
64
72
  * Returns the list of assignments for a permission set.
65
73
  * @summary List permission set assignments
@@ -70,6 +78,16 @@ export declare const PermissionSetsApiFp: (configuration?: Configuration) => {
70
78
  * @throws {RequiredError}
71
79
  */
72
80
  getPermissionSetAssignments(id: string, start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetUserAssignmentsToPermissionSetResponse>>;
81
+ /**
82
+ * Same as `getPermissionSetAssignments`, but resolves with the response body together with the HTTP status and headers.
83
+ * @summary List permission set assignments
84
+ * @param {string} id The ID of the permission set
85
+ * @param {number} [start] Pagination start
86
+ * @param {number} [limit] Items shown per page
87
+
88
+ * @throws {RequiredError}
89
+ */
90
+ getPermissionSetAssignmentsWithHttpInfo(id: string, start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetUserAssignmentsToPermissionSetResponse>>>;
73
91
  /**
74
92
  * Returns data about all permission sets.
75
93
  * @summary Get all permission sets
@@ -78,6 +96,14 @@ export declare const PermissionSetsApiFp: (configuration?: Configuration) => {
78
96
  * @throws {RequiredError}
79
97
  */
80
98
  getPermissionSets(app?: 'sales' | 'projects' | 'campaigns' | 'global' | 'account_settings' | 'partnership' | 'nova'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetPermissionSetsResponse>>;
99
+ /**
100
+ * Same as `getPermissionSets`, but resolves with the response body together with the HTTP status and headers.
101
+ * @summary Get all permission sets
102
+ * @param {'sales' | 'projects' | 'campaigns' | 'global' | 'account_settings' | 'partnership' | 'nova'} [app] The app to filter the permission sets by
103
+
104
+ * @throws {RequiredError}
105
+ */
106
+ getPermissionSetsWithHttpInfo(app?: 'sales' | 'projects' | 'campaigns' | 'global' | 'account_settings' | 'partnership' | 'nova'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetPermissionSetsResponse>>>;
81
107
  };
82
108
  /**
83
109
  * PermissionSetsApi - factory interface
@@ -92,6 +118,7 @@ export declare const PermissionSetsApiFactory: (configuration?: Configuration, b
92
118
  * @throws {RequiredError}
93
119
  */
94
120
  getPermissionSet(requestParameters: PermissionSetsApiGetPermissionSetRequest): Promise<GetPermissionSetResponse>;
121
+ getPermissionSetWithHttpInfo(requestParameters: PermissionSetsApiGetPermissionSetRequest): Promise<ApiResponse<GetPermissionSetResponse>>;
95
122
  /**
96
123
  * Returns the list of assignments for a permission set.
97
124
  * @summary List permission set assignments
@@ -100,6 +127,7 @@ export declare const PermissionSetsApiFactory: (configuration?: Configuration, b
100
127
  * @throws {RequiredError}
101
128
  */
102
129
  getPermissionSetAssignments(requestParameters: PermissionSetsApiGetPermissionSetAssignmentsRequest): Promise<GetUserAssignmentsToPermissionSetResponse>;
130
+ getPermissionSetAssignmentsWithHttpInfo(requestParameters: PermissionSetsApiGetPermissionSetAssignmentsRequest): Promise<ApiResponse<GetUserAssignmentsToPermissionSetResponse>>;
103
131
  /**
104
132
  * Returns data about all permission sets.
105
133
  * @summary Get all permission sets
@@ -108,6 +136,7 @@ export declare const PermissionSetsApiFactory: (configuration?: Configuration, b
108
136
  * @throws {RequiredError}
109
137
  */
110
138
  getPermissionSets(requestParameters?: PermissionSetsApiGetPermissionSetsRequest): Promise<GetPermissionSetsResponse>;
139
+ getPermissionSetsWithHttpInfo(requestParameters?: PermissionSetsApiGetPermissionSetsRequest): Promise<ApiResponse<GetPermissionSetsResponse>>;
111
140
  };
112
141
  /**
113
142
  * Request parameters for getPermissionSet operation in PermissionSetsApi.
@@ -176,6 +205,15 @@ export declare class PermissionSetsApi extends BaseAPI {
176
205
  * @memberof PermissionSetsApi
177
206
  */
178
207
  getPermissionSet(requestParameters: PermissionSetsApiGetPermissionSetRequest): Promise<GetPermissionSetResponse>;
208
+ /**
209
+ * Same as `getPermissionSet`, but resolves with the response body together with the HTTP status and headers.
210
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
211
+ * @param {PermissionSetsApiGetPermissionSetRequest} requestParameters Request parameters.
212
+
213
+ * @throws {RequiredError}
214
+ * @memberof PermissionSetsApi
215
+ */
216
+ getPermissionSetWithHttpInfo(requestParameters: PermissionSetsApiGetPermissionSetRequest): Promise<ApiResponse<GetPermissionSetResponse>>;
179
217
  /**
180
218
  * Returns the list of assignments for a permission set.
181
219
  * @summary List permission set assignments
@@ -185,6 +223,15 @@ export declare class PermissionSetsApi extends BaseAPI {
185
223
  * @memberof PermissionSetsApi
186
224
  */
187
225
  getPermissionSetAssignments(requestParameters: PermissionSetsApiGetPermissionSetAssignmentsRequest): Promise<GetUserAssignmentsToPermissionSetResponse>;
226
+ /**
227
+ * Same as `getPermissionSetAssignments`, but resolves with the response body together with the HTTP status and headers.
228
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
229
+ * @param {PermissionSetsApiGetPermissionSetAssignmentsRequest} requestParameters Request parameters.
230
+
231
+ * @throws {RequiredError}
232
+ * @memberof PermissionSetsApi
233
+ */
234
+ getPermissionSetAssignmentsWithHttpInfo(requestParameters: PermissionSetsApiGetPermissionSetAssignmentsRequest): Promise<ApiResponse<GetUserAssignmentsToPermissionSetResponse>>;
188
235
  /**
189
236
  * Returns data about all permission sets.
190
237
  * @summary Get all permission sets
@@ -194,4 +241,13 @@ export declare class PermissionSetsApi extends BaseAPI {
194
241
  * @memberof PermissionSetsApi
195
242
  */
196
243
  getPermissionSets(requestParameters?: PermissionSetsApiGetPermissionSetsRequest): Promise<GetPermissionSetsResponse>;
244
+ /**
245
+ * Same as `getPermissionSets`, but resolves with the response body together with the HTTP status and headers.
246
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
247
+ * @param {PermissionSetsApiGetPermissionSetsRequest} requestParameters Request parameters.
248
+
249
+ * @throws {RequiredError}
250
+ * @memberof PermissionSetsApi
251
+ */
252
+ getPermissionSetsWithHttpInfo(requestParameters?: PermissionSetsApiGetPermissionSetsRequest): Promise<ApiResponse<GetPermissionSetsResponse>>;
197
253
  }