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
@@ -826,6 +826,19 @@ const ProductsApiFp = function (configuration) {
826
826
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
827
827
  });
828
828
  },
829
+ /**
830
+ * Same as `addProduct`, but resolves with the response body together with the HTTP status and headers.
831
+ * @summary Add a product
832
+ * @param {AddProductRequest} [AddProductRequest]
833
+
834
+ * @throws {RequiredError}
835
+ */
836
+ addProductWithHttpInfo(AddProductRequest) {
837
+ return __awaiter(this, void 0, void 0, function* () {
838
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addProduct(AddProductRequest);
839
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
840
+ });
841
+ },
829
842
  /**
830
843
  * Adds a user as a follower to the product.
831
844
  * @summary Add a follower to a product
@@ -840,6 +853,20 @@ const ProductsApiFp = function (configuration) {
840
853
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
841
854
  });
842
855
  },
856
+ /**
857
+ * Same as `addProductFollower`, but resolves with the response body together with the HTTP status and headers.
858
+ * @summary Add a follower to a product
859
+ * @param {number} id The ID of the product
860
+ * @param {AddDealFollowerRequest} [AddDealFollowerRequest]
861
+
862
+ * @throws {RequiredError}
863
+ */
864
+ addProductFollowerWithHttpInfo(id, AddDealFollowerRequest) {
865
+ return __awaiter(this, void 0, void 0, function* () {
866
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addProductFollower(id, AddDealFollowerRequest);
867
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
868
+ });
869
+ },
843
870
  /**
844
871
  * Adds a new product variation.
845
872
  * @summary Add a product variation
@@ -854,6 +881,20 @@ const ProductsApiFp = function (configuration) {
854
881
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
855
882
  });
856
883
  },
884
+ /**
885
+ * Same as `addProductVariation`, but resolves with the response body together with the HTTP status and headers.
886
+ * @summary Add a product variation
887
+ * @param {number} id The ID of the product
888
+ * @param {AddProductVariationRequest} [AddProductVariationRequest]
889
+
890
+ * @throws {RequiredError}
891
+ */
892
+ addProductVariationWithHttpInfo(id, AddProductVariationRequest) {
893
+ return __awaiter(this, void 0, void 0, function* () {
894
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addProductVariation(id, AddProductVariationRequest);
895
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
896
+ });
897
+ },
857
898
  /**
858
899
  * Marks a product as deleted. After 30 days, the product will be permanently deleted.
859
900
  * @summary Delete a product
@@ -867,6 +908,19 @@ const ProductsApiFp = function (configuration) {
867
908
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
868
909
  });
869
910
  },
911
+ /**
912
+ * Same as `deleteProduct`, but resolves with the response body together with the HTTP status and headers.
913
+ * @summary Delete a product
914
+ * @param {number} id The ID of the product
915
+
916
+ * @throws {RequiredError}
917
+ */
918
+ deleteProductWithHttpInfo(id) {
919
+ return __awaiter(this, void 0, void 0, function* () {
920
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProduct(id);
921
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
922
+ });
923
+ },
870
924
  /**
871
925
  * Deletes a user follower from the product.
872
926
  * @summary Delete a follower from a product
@@ -881,6 +935,20 @@ const ProductsApiFp = function (configuration) {
881
935
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
882
936
  });
883
937
  },
938
+ /**
939
+ * Same as `deleteProductFollower`, but resolves with the response body together with the HTTP status and headers.
940
+ * @summary Delete a follower from a product
941
+ * @param {number} id The ID of the product
942
+ * @param {number} follower_id The ID of the following user
943
+
944
+ * @throws {RequiredError}
945
+ */
946
+ deleteProductFollowerWithHttpInfo(id, follower_id) {
947
+ return __awaiter(this, void 0, void 0, function* () {
948
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProductFollower(id, follower_id);
949
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
950
+ });
951
+ },
884
952
  /**
885
953
  * Deletes the image of a product.
886
954
  * @summary Delete an image of a product
@@ -894,6 +962,19 @@ const ProductsApiFp = function (configuration) {
894
962
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
895
963
  });
896
964
  },
965
+ /**
966
+ * Same as `deleteProductImage`, but resolves with the response body together with the HTTP status and headers.
967
+ * @summary Delete an image of a product
968
+ * @param {number} id The ID of the product
969
+
970
+ * @throws {RequiredError}
971
+ */
972
+ deleteProductImageWithHttpInfo(id) {
973
+ return __awaiter(this, void 0, void 0, function* () {
974
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProductImage(id);
975
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
976
+ });
977
+ },
897
978
  /**
898
979
  * Deletes a product variation.
899
980
  * @summary Delete a product variation
@@ -908,6 +989,20 @@ const ProductsApiFp = function (configuration) {
908
989
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
909
990
  });
910
991
  },
992
+ /**
993
+ * Same as `deleteProductVariation`, but resolves with the response body together with the HTTP status and headers.
994
+ * @summary Delete a product variation
995
+ * @param {number} id The ID of the product
996
+ * @param {number} product_variation_id The ID of the product variation
997
+
998
+ * @throws {RequiredError}
999
+ */
1000
+ deleteProductVariationWithHttpInfo(id, product_variation_id) {
1001
+ return __awaiter(this, void 0, void 0, function* () {
1002
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProductVariation(id, product_variation_id);
1003
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1004
+ });
1005
+ },
911
1006
  /**
912
1007
  * Creates a duplicate of an existing product including all variations, prices, and custom fields.
913
1008
  * @summary Duplicate a product
@@ -921,6 +1016,19 @@ const ProductsApiFp = function (configuration) {
921
1016
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
922
1017
  });
923
1018
  },
1019
+ /**
1020
+ * Same as `duplicateProduct`, but resolves with the response body together with the HTTP status and headers.
1021
+ * @summary Duplicate a product
1022
+ * @param {number} id The ID of the product
1023
+
1024
+ * @throws {RequiredError}
1025
+ */
1026
+ duplicateProductWithHttpInfo(id) {
1027
+ return __awaiter(this, void 0, void 0, function* () {
1028
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateProduct(id);
1029
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1030
+ });
1031
+ },
924
1032
  /**
925
1033
  * Returns data about a specific product.
926
1034
  * @summary Get one product
@@ -934,6 +1042,19 @@ const ProductsApiFp = function (configuration) {
934
1042
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
935
1043
  });
936
1044
  },
1045
+ /**
1046
+ * Same as `getProduct`, but resolves with the response body together with the HTTP status and headers.
1047
+ * @summary Get one product
1048
+ * @param {number} id The ID of the product
1049
+
1050
+ * @throws {RequiredError}
1051
+ */
1052
+ getProductWithHttpInfo(id) {
1053
+ return __awaiter(this, void 0, void 0, function* () {
1054
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProduct(id);
1055
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1056
+ });
1057
+ },
937
1058
  /**
938
1059
  * Lists users who are following the product.
939
1060
  * @summary List followers of a product
@@ -949,6 +1070,21 @@ const ProductsApiFp = function (configuration) {
949
1070
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
950
1071
  });
951
1072
  },
1073
+ /**
1074
+ * Same as `getProductFollowers`, but resolves with the response body together with the HTTP status and headers.
1075
+ * @summary List followers of a product
1076
+ * @param {number} id The ID of the product
1077
+ * @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.
1078
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
1079
+
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ getProductFollowersWithHttpInfo(id, limit, cursor) {
1083
+ return __awaiter(this, void 0, void 0, function* () {
1084
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductFollowers(id, limit, cursor);
1085
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1086
+ });
1087
+ },
952
1088
  /**
953
1089
  * Lists changelogs about users have followed the product.
954
1090
  * @summary List followers changelog of a product
@@ -964,6 +1100,21 @@ const ProductsApiFp = function (configuration) {
964
1100
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
965
1101
  });
966
1102
  },
1103
+ /**
1104
+ * Same as `getProductFollowersChangelog`, but resolves with the response body together with the HTTP status and headers.
1105
+ * @summary List followers changelog of a product
1106
+ * @param {number} id The ID of the product
1107
+ * @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.
1108
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
1109
+
1110
+ * @throws {RequiredError}
1111
+ */
1112
+ getProductFollowersChangelogWithHttpInfo(id, limit, cursor) {
1113
+ return __awaiter(this, void 0, void 0, function* () {
1114
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductFollowersChangelog(id, limit, cursor);
1115
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1116
+ });
1117
+ },
967
1118
  /**
968
1119
  * Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
969
1120
  * @summary Get image of a product
@@ -977,6 +1128,19 @@ const ProductsApiFp = function (configuration) {
977
1128
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
978
1129
  });
979
1130
  },
1131
+ /**
1132
+ * Same as `getProductImage`, but resolves with the response body together with the HTTP status and headers.
1133
+ * @summary Get image of a product
1134
+ * @param {number} id The ID of the product
1135
+
1136
+ * @throws {RequiredError}
1137
+ */
1138
+ getProductImageWithHttpInfo(id) {
1139
+ return __awaiter(this, void 0, void 0, function* () {
1140
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductImage(id);
1141
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1142
+ });
1143
+ },
980
1144
  /**
981
1145
  * Returns data about all product variations.
982
1146
  * @summary Get all product variations
@@ -992,6 +1156,21 @@ const ProductsApiFp = function (configuration) {
992
1156
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
993
1157
  });
994
1158
  },
1159
+ /**
1160
+ * Same as `getProductVariations`, but resolves with the response body together with the HTTP status and headers.
1161
+ * @summary Get all product variations
1162
+ * @param {number} id The ID of the product
1163
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
1164
+ * @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.
1165
+
1166
+ * @throws {RequiredError}
1167
+ */
1168
+ getProductVariationsWithHttpInfo(id, cursor, limit) {
1169
+ return __awaiter(this, void 0, void 0, function* () {
1170
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductVariations(id, cursor, limit);
1171
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1172
+ });
1173
+ },
995
1174
  /**
996
1175
  * Returns data about all products.
997
1176
  * @summary Get all products
@@ -1013,6 +1192,27 @@ const ProductsApiFp = function (configuration) {
1013
1192
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1014
1193
  });
1015
1194
  },
1195
+ /**
1196
+ * Same as `getProducts`, but resolves with the response body together with the HTTP status and headers.
1197
+ * @summary Get all products
1198
+ * @param {number} [owner_id] If supplied, only products owned by the given user will be returned
1199
+ * @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
1200
+ * @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.&lt;br/&gt;A maximum of 15 keys is allowed.
1201
+ * @param {number} [filter_id] The ID of the filter to use
1202
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
1203
+ * @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.
1204
+ * @param {'id' | 'name' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;name&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;.
1205
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
1206
+ * @param {string} [updated_since] If set, only products with an &#x60;update_time&#x60; later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
1207
+
1208
+ * @throws {RequiredError}
1209
+ */
1210
+ getProductsWithHttpInfo(owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since) {
1211
+ return __awaiter(this, void 0, void 0, function* () {
1212
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProducts(owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since);
1213
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1214
+ });
1215
+ },
1016
1216
  /**
1017
1217
  * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope.
1018
1218
  * @summary Search products
@@ -1031,6 +1231,24 @@ const ProductsApiFp = function (configuration) {
1031
1231
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1032
1232
  });
1033
1233
  },
1234
+ /**
1235
+ * Same as `searchProducts`, but resolves with the response body together with the HTTP status and headers.
1236
+ * @summary Search products
1237
+ * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using &#x60;exact_match&#x60;). Please note that the search term has to be URL encoded.
1238
+ * @param {Set<'code' | 'custom_fields' | 'name'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: &#x60;address&#x60;, &#x60;varchar&#x60;, &#x60;text&#x60;, &#x60;varchar_auto&#x60;, &#x60;double&#x60;, &#x60;monetary&#x60; and &#x60;phone&#x60;. Read more about searching by custom fields &lt;a href&#x3D;\&quot;https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;noopener noreferrer\&quot;&gt;here&lt;/a&gt;.
1239
+ * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
1240
+ * @param {Set<'product.price'>} [include_fields] Supports including optional fields in the results which are not provided by default
1241
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 100 is allowed.
1242
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
1243
+
1244
+ * @throws {RequiredError}
1245
+ */
1246
+ searchProductsWithHttpInfo(term, fields, exact_match, include_fields, limit, cursor) {
1247
+ return __awaiter(this, void 0, void 0, function* () {
1248
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.searchProducts(term, fields, exact_match, include_fields, limit, cursor);
1249
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1250
+ });
1251
+ },
1034
1252
  /**
1035
1253
  * Updates product data.
1036
1254
  * @summary Update a product
@@ -1045,6 +1263,20 @@ const ProductsApiFp = function (configuration) {
1045
1263
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1046
1264
  });
1047
1265
  },
1266
+ /**
1267
+ * Same as `updateProduct`, but resolves with the response body together with the HTTP status and headers.
1268
+ * @summary Update a product
1269
+ * @param {number} id The ID of the product
1270
+ * @param {UpdateProductRequest} [UpdateProductRequest]
1271
+
1272
+ * @throws {RequiredError}
1273
+ */
1274
+ updateProductWithHttpInfo(id, UpdateProductRequest) {
1275
+ return __awaiter(this, void 0, void 0, function* () {
1276
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(id, UpdateProductRequest);
1277
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1278
+ });
1279
+ },
1048
1280
  /**
1049
1281
  * Updates the image of a product.
1050
1282
  * @summary Update an image for a product
@@ -1059,6 +1291,20 @@ const ProductsApiFp = function (configuration) {
1059
1291
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1060
1292
  });
1061
1293
  },
1294
+ /**
1295
+ * Same as `updateProductImage`, but resolves with the response body together with the HTTP status and headers.
1296
+ * @summary Update an image for a product
1297
+ * @param {number} id The ID of the product
1298
+ * @param {File} data One image supplied in the multipart/form-data encoding
1299
+
1300
+ * @throws {RequiredError}
1301
+ */
1302
+ updateProductImageWithHttpInfo(id, data) {
1303
+ return __awaiter(this, void 0, void 0, function* () {
1304
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProductImage(id, data);
1305
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1306
+ });
1307
+ },
1062
1308
  /**
1063
1309
  * Updates product variation data.
1064
1310
  * @summary Update a product variation
@@ -1074,6 +1320,21 @@ const ProductsApiFp = function (configuration) {
1074
1320
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1075
1321
  });
1076
1322
  },
1323
+ /**
1324
+ * Same as `updateProductVariation`, but resolves with the response body together with the HTTP status and headers.
1325
+ * @summary Update a product variation
1326
+ * @param {number} id The ID of the product
1327
+ * @param {number} product_variation_id The ID of the product variation
1328
+ * @param {UpdateProductVariationRequest} [UpdateProductVariationRequest]
1329
+
1330
+ * @throws {RequiredError}
1331
+ */
1332
+ updateProductVariationWithHttpInfo(id, product_variation_id, UpdateProductVariationRequest) {
1333
+ return __awaiter(this, void 0, void 0, function* () {
1334
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProductVariation(id, product_variation_id, UpdateProductVariationRequest);
1335
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1336
+ });
1337
+ },
1077
1338
  /**
1078
1339
  * Uploads an image for a product.
1079
1340
  * @summary Upload an image for a product
@@ -1088,6 +1349,20 @@ const ProductsApiFp = function (configuration) {
1088
1349
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1089
1350
  });
1090
1351
  },
1352
+ /**
1353
+ * Same as `uploadProductImage`, but resolves with the response body together with the HTTP status and headers.
1354
+ * @summary Upload an image for a product
1355
+ * @param {number} id The ID of the product
1356
+ * @param {File} data One image supplied in the multipart/form-data encoding
1357
+
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ uploadProductImageWithHttpInfo(id, data) {
1361
+ return __awaiter(this, void 0, void 0, function* () {
1362
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadProductImage(id, data);
1363
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
1364
+ });
1365
+ },
1091
1366
  };
1092
1367
  };
1093
1368
  exports.ProductsApiFp = ProductsApiFp;
@@ -1108,6 +1383,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1108
1383
  addProduct(requestParameters = {}) {
1109
1384
  return localVarFp.addProduct(requestParameters.AddProductRequest).then((request) => request(axios, basePath));
1110
1385
  },
1386
+ addProductWithHttpInfo(requestParameters = {}) {
1387
+ return localVarFp.addProductWithHttpInfo(requestParameters.AddProductRequest).then((request) => request(axios, basePath));
1388
+ },
1111
1389
  /**
1112
1390
  * Adds a user as a follower to the product.
1113
1391
  * @summary Add a follower to a product
@@ -1118,6 +1396,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1118
1396
  addProductFollower(requestParameters) {
1119
1397
  return localVarFp.addProductFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
1120
1398
  },
1399
+ addProductFollowerWithHttpInfo(requestParameters) {
1400
+ return localVarFp.addProductFollowerWithHttpInfo(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
1401
+ },
1121
1402
  /**
1122
1403
  * Adds a new product variation.
1123
1404
  * @summary Add a product variation
@@ -1128,6 +1409,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1128
1409
  addProductVariation(requestParameters) {
1129
1410
  return localVarFp.addProductVariation(requestParameters.id, requestParameters.AddProductVariationRequest).then((request) => request(axios, basePath));
1130
1411
  },
1412
+ addProductVariationWithHttpInfo(requestParameters) {
1413
+ return localVarFp.addProductVariationWithHttpInfo(requestParameters.id, requestParameters.AddProductVariationRequest).then((request) => request(axios, basePath));
1414
+ },
1131
1415
  /**
1132
1416
  * Marks a product as deleted. After 30 days, the product will be permanently deleted.
1133
1417
  * @summary Delete a product
@@ -1138,6 +1422,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1138
1422
  deleteProduct(requestParameters) {
1139
1423
  return localVarFp.deleteProduct(requestParameters.id).then((request) => request(axios, basePath));
1140
1424
  },
1425
+ deleteProductWithHttpInfo(requestParameters) {
1426
+ return localVarFp.deleteProductWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
1427
+ },
1141
1428
  /**
1142
1429
  * Deletes a user follower from the product.
1143
1430
  * @summary Delete a follower from a product
@@ -1148,6 +1435,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1148
1435
  deleteProductFollower(requestParameters) {
1149
1436
  return localVarFp.deleteProductFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
1150
1437
  },
1438
+ deleteProductFollowerWithHttpInfo(requestParameters) {
1439
+ return localVarFp.deleteProductFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
1440
+ },
1151
1441
  /**
1152
1442
  * Deletes the image of a product.
1153
1443
  * @summary Delete an image of a product
@@ -1158,6 +1448,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1158
1448
  deleteProductImage(requestParameters) {
1159
1449
  return localVarFp.deleteProductImage(requestParameters.id).then((request) => request(axios, basePath));
1160
1450
  },
1451
+ deleteProductImageWithHttpInfo(requestParameters) {
1452
+ return localVarFp.deleteProductImageWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
1453
+ },
1161
1454
  /**
1162
1455
  * Deletes a product variation.
1163
1456
  * @summary Delete a product variation
@@ -1168,6 +1461,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1168
1461
  deleteProductVariation(requestParameters) {
1169
1462
  return localVarFp.deleteProductVariation(requestParameters.id, requestParameters.product_variation_id).then((request) => request(axios, basePath));
1170
1463
  },
1464
+ deleteProductVariationWithHttpInfo(requestParameters) {
1465
+ return localVarFp.deleteProductVariationWithHttpInfo(requestParameters.id, requestParameters.product_variation_id).then((request) => request(axios, basePath));
1466
+ },
1171
1467
  /**
1172
1468
  * Creates a duplicate of an existing product including all variations, prices, and custom fields.
1173
1469
  * @summary Duplicate a product
@@ -1178,6 +1474,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1178
1474
  duplicateProduct(requestParameters) {
1179
1475
  return localVarFp.duplicateProduct(requestParameters.id).then((request) => request(axios, basePath));
1180
1476
  },
1477
+ duplicateProductWithHttpInfo(requestParameters) {
1478
+ return localVarFp.duplicateProductWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
1479
+ },
1181
1480
  /**
1182
1481
  * Returns data about a specific product.
1183
1482
  * @summary Get one product
@@ -1188,6 +1487,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1188
1487
  getProduct(requestParameters) {
1189
1488
  return localVarFp.getProduct(requestParameters.id).then((request) => request(axios, basePath));
1190
1489
  },
1490
+ getProductWithHttpInfo(requestParameters) {
1491
+ return localVarFp.getProductWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
1492
+ },
1191
1493
  /**
1192
1494
  * Lists users who are following the product.
1193
1495
  * @summary List followers of a product
@@ -1198,6 +1500,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1198
1500
  getProductFollowers(requestParameters) {
1199
1501
  return localVarFp.getProductFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
1200
1502
  },
1503
+ getProductFollowersWithHttpInfo(requestParameters) {
1504
+ return localVarFp.getProductFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
1505
+ },
1201
1506
  /**
1202
1507
  * Lists changelogs about users have followed the product.
1203
1508
  * @summary List followers changelog of a product
@@ -1208,6 +1513,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1208
1513
  getProductFollowersChangelog(requestParameters) {
1209
1514
  return localVarFp.getProductFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
1210
1515
  },
1516
+ getProductFollowersChangelogWithHttpInfo(requestParameters) {
1517
+ return localVarFp.getProductFollowersChangelogWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
1518
+ },
1211
1519
  /**
1212
1520
  * Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
1213
1521
  * @summary Get image of a product
@@ -1218,6 +1526,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1218
1526
  getProductImage(requestParameters) {
1219
1527
  return localVarFp.getProductImage(requestParameters.id).then((request) => request(axios, basePath));
1220
1528
  },
1529
+ getProductImageWithHttpInfo(requestParameters) {
1530
+ return localVarFp.getProductImageWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
1531
+ },
1221
1532
  /**
1222
1533
  * Returns data about all product variations.
1223
1534
  * @summary Get all product variations
@@ -1228,6 +1539,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1228
1539
  getProductVariations(requestParameters) {
1229
1540
  return localVarFp.getProductVariations(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(axios, basePath));
1230
1541
  },
1542
+ getProductVariationsWithHttpInfo(requestParameters) {
1543
+ return localVarFp.getProductVariationsWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(axios, basePath));
1544
+ },
1231
1545
  /**
1232
1546
  * Returns data about all products.
1233
1547
  * @summary Get all products
@@ -1238,6 +1552,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1238
1552
  getProducts(requestParameters = {}) {
1239
1553
  return localVarFp.getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(axios, basePath));
1240
1554
  },
1555
+ getProductsWithHttpInfo(requestParameters = {}) {
1556
+ return localVarFp.getProductsWithHttpInfo(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(axios, basePath));
1557
+ },
1241
1558
  /**
1242
1559
  * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope.
1243
1560
  * @summary Search products
@@ -1248,6 +1565,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1248
1565
  searchProducts(requestParameters) {
1249
1566
  return localVarFp.searchProducts(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
1250
1567
  },
1568
+ searchProductsWithHttpInfo(requestParameters) {
1569
+ return localVarFp.searchProductsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
1570
+ },
1251
1571
  /**
1252
1572
  * Updates product data.
1253
1573
  * @summary Update a product
@@ -1258,6 +1578,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1258
1578
  updateProduct(requestParameters) {
1259
1579
  return localVarFp.updateProduct(requestParameters.id, requestParameters.UpdateProductRequest).then((request) => request(axios, basePath));
1260
1580
  },
1581
+ updateProductWithHttpInfo(requestParameters) {
1582
+ return localVarFp.updateProductWithHttpInfo(requestParameters.id, requestParameters.UpdateProductRequest).then((request) => request(axios, basePath));
1583
+ },
1261
1584
  /**
1262
1585
  * Updates the image of a product.
1263
1586
  * @summary Update an image for a product
@@ -1268,6 +1591,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1268
1591
  updateProductImage(requestParameters) {
1269
1592
  return localVarFp.updateProductImage(requestParameters.id, requestParameters.data).then((request) => request(axios, basePath));
1270
1593
  },
1594
+ updateProductImageWithHttpInfo(requestParameters) {
1595
+ return localVarFp.updateProductImageWithHttpInfo(requestParameters.id, requestParameters.data).then((request) => request(axios, basePath));
1596
+ },
1271
1597
  /**
1272
1598
  * Updates product variation data.
1273
1599
  * @summary Update a product variation
@@ -1278,6 +1604,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1278
1604
  updateProductVariation(requestParameters) {
1279
1605
  return localVarFp.updateProductVariation(requestParameters.id, requestParameters.product_variation_id, requestParameters.UpdateProductVariationRequest).then((request) => request(axios, basePath));
1280
1606
  },
1607
+ updateProductVariationWithHttpInfo(requestParameters) {
1608
+ return localVarFp.updateProductVariationWithHttpInfo(requestParameters.id, requestParameters.product_variation_id, requestParameters.UpdateProductVariationRequest).then((request) => request(axios, basePath));
1609
+ },
1281
1610
  /**
1282
1611
  * Uploads an image for a product.
1283
1612
  * @summary Upload an image for a product
@@ -1288,6 +1617,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1288
1617
  uploadProductImage(requestParameters) {
1289
1618
  return localVarFp.uploadProductImage(requestParameters.id, requestParameters.data).then((request) => request(axios, basePath));
1290
1619
  },
1620
+ uploadProductImageWithHttpInfo(requestParameters) {
1621
+ return localVarFp.uploadProductImageWithHttpInfo(requestParameters.id, requestParameters.data).then((request) => request(axios, basePath));
1622
+ },
1291
1623
  };
1292
1624
  };
1293
1625
  exports.ProductsApiFactory = ProductsApiFactory;
@@ -1309,6 +1641,17 @@ class ProductsApi extends base_1.BaseAPI {
1309
1641
  addProduct(requestParameters = {}) {
1310
1642
  return (0, exports.ProductsApiFp)(this.configuration).addProduct(requestParameters.AddProductRequest).then((request) => request(this.axios, this.basePath));
1311
1643
  }
1644
+ /**
1645
+ * Same as `addProduct`, but resolves with the response body together with the HTTP status and headers.
1646
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1647
+ * @param {ProductsApiAddProductRequest} requestParameters Request parameters.
1648
+
1649
+ * @throws {RequiredError}
1650
+ * @memberof ProductsApi
1651
+ */
1652
+ addProductWithHttpInfo(requestParameters = {}) {
1653
+ return (0, exports.ProductsApiFp)(this.configuration).addProductWithHttpInfo(requestParameters.AddProductRequest).then((request) => request(this.axios, this.basePath));
1654
+ }
1312
1655
  /**
1313
1656
  * Adds a user as a follower to the product.
1314
1657
  * @summary Add a follower to a product
@@ -1320,6 +1663,17 @@ class ProductsApi extends base_1.BaseAPI {
1320
1663
  addProductFollower(requestParameters) {
1321
1664
  return (0, exports.ProductsApiFp)(this.configuration).addProductFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
1322
1665
  }
1666
+ /**
1667
+ * Same as `addProductFollower`, but resolves with the response body together with the HTTP status and headers.
1668
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1669
+ * @param {ProductsApiAddProductFollowerRequest} requestParameters Request parameters.
1670
+
1671
+ * @throws {RequiredError}
1672
+ * @memberof ProductsApi
1673
+ */
1674
+ addProductFollowerWithHttpInfo(requestParameters) {
1675
+ return (0, exports.ProductsApiFp)(this.configuration).addProductFollowerWithHttpInfo(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
1676
+ }
1323
1677
  /**
1324
1678
  * Adds a new product variation.
1325
1679
  * @summary Add a product variation
@@ -1331,6 +1685,17 @@ class ProductsApi extends base_1.BaseAPI {
1331
1685
  addProductVariation(requestParameters) {
1332
1686
  return (0, exports.ProductsApiFp)(this.configuration).addProductVariation(requestParameters.id, requestParameters.AddProductVariationRequest).then((request) => request(this.axios, this.basePath));
1333
1687
  }
1688
+ /**
1689
+ * Same as `addProductVariation`, but resolves with the response body together with the HTTP status and headers.
1690
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1691
+ * @param {ProductsApiAddProductVariationRequest} requestParameters Request parameters.
1692
+
1693
+ * @throws {RequiredError}
1694
+ * @memberof ProductsApi
1695
+ */
1696
+ addProductVariationWithHttpInfo(requestParameters) {
1697
+ return (0, exports.ProductsApiFp)(this.configuration).addProductVariationWithHttpInfo(requestParameters.id, requestParameters.AddProductVariationRequest).then((request) => request(this.axios, this.basePath));
1698
+ }
1334
1699
  /**
1335
1700
  * Marks a product as deleted. After 30 days, the product will be permanently deleted.
1336
1701
  * @summary Delete a product
@@ -1342,6 +1707,17 @@ class ProductsApi extends base_1.BaseAPI {
1342
1707
  deleteProduct(requestParameters) {
1343
1708
  return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.id).then((request) => request(this.axios, this.basePath));
1344
1709
  }
1710
+ /**
1711
+ * Same as `deleteProduct`, but resolves with the response body together with the HTTP status and headers.
1712
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1713
+ * @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
1714
+
1715
+ * @throws {RequiredError}
1716
+ * @memberof ProductsApi
1717
+ */
1718
+ deleteProductWithHttpInfo(requestParameters) {
1719
+ return (0, exports.ProductsApiFp)(this.configuration).deleteProductWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
1720
+ }
1345
1721
  /**
1346
1722
  * Deletes a user follower from the product.
1347
1723
  * @summary Delete a follower from a product
@@ -1353,6 +1729,17 @@ class ProductsApi extends base_1.BaseAPI {
1353
1729
  deleteProductFollower(requestParameters) {
1354
1730
  return (0, exports.ProductsApiFp)(this.configuration).deleteProductFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
1355
1731
  }
1732
+ /**
1733
+ * Same as `deleteProductFollower`, but resolves with the response body together with the HTTP status and headers.
1734
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1735
+ * @param {ProductsApiDeleteProductFollowerRequest} requestParameters Request parameters.
1736
+
1737
+ * @throws {RequiredError}
1738
+ * @memberof ProductsApi
1739
+ */
1740
+ deleteProductFollowerWithHttpInfo(requestParameters) {
1741
+ return (0, exports.ProductsApiFp)(this.configuration).deleteProductFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
1742
+ }
1356
1743
  /**
1357
1744
  * Deletes the image of a product.
1358
1745
  * @summary Delete an image of a product
@@ -1364,6 +1751,17 @@ class ProductsApi extends base_1.BaseAPI {
1364
1751
  deleteProductImage(requestParameters) {
1365
1752
  return (0, exports.ProductsApiFp)(this.configuration).deleteProductImage(requestParameters.id).then((request) => request(this.axios, this.basePath));
1366
1753
  }
1754
+ /**
1755
+ * Same as `deleteProductImage`, but resolves with the response body together with the HTTP status and headers.
1756
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1757
+ * @param {ProductsApiDeleteProductImageRequest} requestParameters Request parameters.
1758
+
1759
+ * @throws {RequiredError}
1760
+ * @memberof ProductsApi
1761
+ */
1762
+ deleteProductImageWithHttpInfo(requestParameters) {
1763
+ return (0, exports.ProductsApiFp)(this.configuration).deleteProductImageWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
1764
+ }
1367
1765
  /**
1368
1766
  * Deletes a product variation.
1369
1767
  * @summary Delete a product variation
@@ -1375,6 +1773,17 @@ class ProductsApi extends base_1.BaseAPI {
1375
1773
  deleteProductVariation(requestParameters) {
1376
1774
  return (0, exports.ProductsApiFp)(this.configuration).deleteProductVariation(requestParameters.id, requestParameters.product_variation_id).then((request) => request(this.axios, this.basePath));
1377
1775
  }
1776
+ /**
1777
+ * Same as `deleteProductVariation`, but resolves with the response body together with the HTTP status and headers.
1778
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1779
+ * @param {ProductsApiDeleteProductVariationRequest} requestParameters Request parameters.
1780
+
1781
+ * @throws {RequiredError}
1782
+ * @memberof ProductsApi
1783
+ */
1784
+ deleteProductVariationWithHttpInfo(requestParameters) {
1785
+ return (0, exports.ProductsApiFp)(this.configuration).deleteProductVariationWithHttpInfo(requestParameters.id, requestParameters.product_variation_id).then((request) => request(this.axios, this.basePath));
1786
+ }
1378
1787
  /**
1379
1788
  * Creates a duplicate of an existing product including all variations, prices, and custom fields.
1380
1789
  * @summary Duplicate a product
@@ -1386,6 +1795,17 @@ class ProductsApi extends base_1.BaseAPI {
1386
1795
  duplicateProduct(requestParameters) {
1387
1796
  return (0, exports.ProductsApiFp)(this.configuration).duplicateProduct(requestParameters.id).then((request) => request(this.axios, this.basePath));
1388
1797
  }
1798
+ /**
1799
+ * Same as `duplicateProduct`, but resolves with the response body together with the HTTP status and headers.
1800
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1801
+ * @param {ProductsApiDuplicateProductRequest} requestParameters Request parameters.
1802
+
1803
+ * @throws {RequiredError}
1804
+ * @memberof ProductsApi
1805
+ */
1806
+ duplicateProductWithHttpInfo(requestParameters) {
1807
+ return (0, exports.ProductsApiFp)(this.configuration).duplicateProductWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
1808
+ }
1389
1809
  /**
1390
1810
  * Returns data about a specific product.
1391
1811
  * @summary Get one product
@@ -1397,6 +1817,17 @@ class ProductsApi extends base_1.BaseAPI {
1397
1817
  getProduct(requestParameters) {
1398
1818
  return (0, exports.ProductsApiFp)(this.configuration).getProduct(requestParameters.id).then((request) => request(this.axios, this.basePath));
1399
1819
  }
1820
+ /**
1821
+ * Same as `getProduct`, but resolves with the response body together with the HTTP status and headers.
1822
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1823
+ * @param {ProductsApiGetProductRequest} requestParameters Request parameters.
1824
+
1825
+ * @throws {RequiredError}
1826
+ * @memberof ProductsApi
1827
+ */
1828
+ getProductWithHttpInfo(requestParameters) {
1829
+ return (0, exports.ProductsApiFp)(this.configuration).getProductWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
1830
+ }
1400
1831
  /**
1401
1832
  * Lists users who are following the product.
1402
1833
  * @summary List followers of a product
@@ -1408,6 +1839,17 @@ class ProductsApi extends base_1.BaseAPI {
1408
1839
  getProductFollowers(requestParameters) {
1409
1840
  return (0, exports.ProductsApiFp)(this.configuration).getProductFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
1410
1841
  }
1842
+ /**
1843
+ * Same as `getProductFollowers`, but resolves with the response body together with the HTTP status and headers.
1844
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1845
+ * @param {ProductsApiGetProductFollowersRequest} requestParameters Request parameters.
1846
+
1847
+ * @throws {RequiredError}
1848
+ * @memberof ProductsApi
1849
+ */
1850
+ getProductFollowersWithHttpInfo(requestParameters) {
1851
+ return (0, exports.ProductsApiFp)(this.configuration).getProductFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
1852
+ }
1411
1853
  /**
1412
1854
  * Lists changelogs about users have followed the product.
1413
1855
  * @summary List followers changelog of a product
@@ -1419,6 +1861,17 @@ class ProductsApi extends base_1.BaseAPI {
1419
1861
  getProductFollowersChangelog(requestParameters) {
1420
1862
  return (0, exports.ProductsApiFp)(this.configuration).getProductFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
1421
1863
  }
1864
+ /**
1865
+ * Same as `getProductFollowersChangelog`, but resolves with the response body together with the HTTP status and headers.
1866
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1867
+ * @param {ProductsApiGetProductFollowersChangelogRequest} requestParameters Request parameters.
1868
+
1869
+ * @throws {RequiredError}
1870
+ * @memberof ProductsApi
1871
+ */
1872
+ getProductFollowersChangelogWithHttpInfo(requestParameters) {
1873
+ return (0, exports.ProductsApiFp)(this.configuration).getProductFollowersChangelogWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
1874
+ }
1422
1875
  /**
1423
1876
  * Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
1424
1877
  * @summary Get image of a product
@@ -1430,6 +1883,17 @@ class ProductsApi extends base_1.BaseAPI {
1430
1883
  getProductImage(requestParameters) {
1431
1884
  return (0, exports.ProductsApiFp)(this.configuration).getProductImage(requestParameters.id).then((request) => request(this.axios, this.basePath));
1432
1885
  }
1886
+ /**
1887
+ * Same as `getProductImage`, but resolves with the response body together with the HTTP status and headers.
1888
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1889
+ * @param {ProductsApiGetProductImageRequest} requestParameters Request parameters.
1890
+
1891
+ * @throws {RequiredError}
1892
+ * @memberof ProductsApi
1893
+ */
1894
+ getProductImageWithHttpInfo(requestParameters) {
1895
+ return (0, exports.ProductsApiFp)(this.configuration).getProductImageWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
1896
+ }
1433
1897
  /**
1434
1898
  * Returns data about all product variations.
1435
1899
  * @summary Get all product variations
@@ -1441,6 +1905,17 @@ class ProductsApi extends base_1.BaseAPI {
1441
1905
  getProductVariations(requestParameters) {
1442
1906
  return (0, exports.ProductsApiFp)(this.configuration).getProductVariations(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(this.axios, this.basePath));
1443
1907
  }
1908
+ /**
1909
+ * Same as `getProductVariations`, but resolves with the response body together with the HTTP status and headers.
1910
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1911
+ * @param {ProductsApiGetProductVariationsRequest} requestParameters Request parameters.
1912
+
1913
+ * @throws {RequiredError}
1914
+ * @memberof ProductsApi
1915
+ */
1916
+ getProductVariationsWithHttpInfo(requestParameters) {
1917
+ return (0, exports.ProductsApiFp)(this.configuration).getProductVariationsWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(this.axios, this.basePath));
1918
+ }
1444
1919
  /**
1445
1920
  * Returns data about all products.
1446
1921
  * @summary Get all products
@@ -1452,6 +1927,17 @@ class ProductsApi extends base_1.BaseAPI {
1452
1927
  getProducts(requestParameters = {}) {
1453
1928
  return (0, exports.ProductsApiFp)(this.configuration).getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(this.axios, this.basePath));
1454
1929
  }
1930
+ /**
1931
+ * Same as `getProducts`, but resolves with the response body together with the HTTP status and headers.
1932
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1933
+ * @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
1934
+
1935
+ * @throws {RequiredError}
1936
+ * @memberof ProductsApi
1937
+ */
1938
+ getProductsWithHttpInfo(requestParameters = {}) {
1939
+ return (0, exports.ProductsApiFp)(this.configuration).getProductsWithHttpInfo(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(this.axios, this.basePath));
1940
+ }
1455
1941
  /**
1456
1942
  * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope.
1457
1943
  * @summary Search products
@@ -1463,6 +1949,17 @@ class ProductsApi extends base_1.BaseAPI {
1463
1949
  searchProducts(requestParameters) {
1464
1950
  return (0, exports.ProductsApiFp)(this.configuration).searchProducts(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
1465
1951
  }
1952
+ /**
1953
+ * Same as `searchProducts`, but resolves with the response body together with the HTTP status and headers.
1954
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1955
+ * @param {ProductsApiSearchProductsRequest} requestParameters Request parameters.
1956
+
1957
+ * @throws {RequiredError}
1958
+ * @memberof ProductsApi
1959
+ */
1960
+ searchProductsWithHttpInfo(requestParameters) {
1961
+ return (0, exports.ProductsApiFp)(this.configuration).searchProductsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
1962
+ }
1466
1963
  /**
1467
1964
  * Updates product data.
1468
1965
  * @summary Update a product
@@ -1474,6 +1971,17 @@ class ProductsApi extends base_1.BaseAPI {
1474
1971
  updateProduct(requestParameters) {
1475
1972
  return (0, exports.ProductsApiFp)(this.configuration).updateProduct(requestParameters.id, requestParameters.UpdateProductRequest).then((request) => request(this.axios, this.basePath));
1476
1973
  }
1974
+ /**
1975
+ * Same as `updateProduct`, but resolves with the response body together with the HTTP status and headers.
1976
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1977
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
1978
+
1979
+ * @throws {RequiredError}
1980
+ * @memberof ProductsApi
1981
+ */
1982
+ updateProductWithHttpInfo(requestParameters) {
1983
+ return (0, exports.ProductsApiFp)(this.configuration).updateProductWithHttpInfo(requestParameters.id, requestParameters.UpdateProductRequest).then((request) => request(this.axios, this.basePath));
1984
+ }
1477
1985
  /**
1478
1986
  * Updates the image of a product.
1479
1987
  * @summary Update an image for a product
@@ -1485,6 +1993,17 @@ class ProductsApi extends base_1.BaseAPI {
1485
1993
  updateProductImage(requestParameters) {
1486
1994
  return (0, exports.ProductsApiFp)(this.configuration).updateProductImage(requestParameters.id, requestParameters.data).then((request) => request(this.axios, this.basePath));
1487
1995
  }
1996
+ /**
1997
+ * Same as `updateProductImage`, but resolves with the response body together with the HTTP status and headers.
1998
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
1999
+ * @param {ProductsApiUpdateProductImageRequest} requestParameters Request parameters.
2000
+
2001
+ * @throws {RequiredError}
2002
+ * @memberof ProductsApi
2003
+ */
2004
+ updateProductImageWithHttpInfo(requestParameters) {
2005
+ return (0, exports.ProductsApiFp)(this.configuration).updateProductImageWithHttpInfo(requestParameters.id, requestParameters.data).then((request) => request(this.axios, this.basePath));
2006
+ }
1488
2007
  /**
1489
2008
  * Updates product variation data.
1490
2009
  * @summary Update a product variation
@@ -1496,6 +2015,17 @@ class ProductsApi extends base_1.BaseAPI {
1496
2015
  updateProductVariation(requestParameters) {
1497
2016
  return (0, exports.ProductsApiFp)(this.configuration).updateProductVariation(requestParameters.id, requestParameters.product_variation_id, requestParameters.UpdateProductVariationRequest).then((request) => request(this.axios, this.basePath));
1498
2017
  }
2018
+ /**
2019
+ * Same as `updateProductVariation`, but resolves with the response body together with the HTTP status and headers.
2020
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
2021
+ * @param {ProductsApiUpdateProductVariationRequest} requestParameters Request parameters.
2022
+
2023
+ * @throws {RequiredError}
2024
+ * @memberof ProductsApi
2025
+ */
2026
+ updateProductVariationWithHttpInfo(requestParameters) {
2027
+ return (0, exports.ProductsApiFp)(this.configuration).updateProductVariationWithHttpInfo(requestParameters.id, requestParameters.product_variation_id, requestParameters.UpdateProductVariationRequest).then((request) => request(this.axios, this.basePath));
2028
+ }
1499
2029
  /**
1500
2030
  * Uploads an image for a product.
1501
2031
  * @summary Upload an image for a product
@@ -1507,5 +2037,16 @@ class ProductsApi extends base_1.BaseAPI {
1507
2037
  uploadProductImage(requestParameters) {
1508
2038
  return (0, exports.ProductsApiFp)(this.configuration).uploadProductImage(requestParameters.id, requestParameters.data).then((request) => request(this.axios, this.basePath));
1509
2039
  }
2040
+ /**
2041
+ * Same as `uploadProductImage`, but resolves with the response body together with the HTTP status and headers.
2042
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
2043
+ * @param {ProductsApiUploadProductImageRequest} requestParameters Request parameters.
2044
+
2045
+ * @throws {RequiredError}
2046
+ * @memberof ProductsApi
2047
+ */
2048
+ uploadProductImageWithHttpInfo(requestParameters) {
2049
+ return (0, exports.ProductsApiFp)(this.configuration).uploadProductImageWithHttpInfo(requestParameters.id, requestParameters.data).then((request) => request(this.axios, this.basePath));
2050
+ }
1510
2051
  }
1511
2052
  exports.ProductsApi = ProductsApi;