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
@@ -348,6 +348,20 @@ export const DealProductsApiFp = function (configuration) {
348
348
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
349
  });
350
350
  },
351
+ /**
352
+ * Same as `addDealProduct`, but resolves with the response body together with the HTTP status and headers.
353
+ * @summary Add a product to a deal
354
+ * @param {number} id The ID of the deal
355
+ * @param {AddDealProductRequest} [AddDealProductRequest]
356
+
357
+ * @throws {RequiredError}
358
+ */
359
+ addDealProductWithHttpInfo(id, AddDealProductRequest) {
360
+ return __awaiter(this, void 0, void 0, function* () {
361
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addDealProduct(id, AddDealProductRequest);
362
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
363
+ });
364
+ },
351
365
  /**
352
366
  * Adds multiple products to a deal in a single request. Maximum of 100 products allowed per request.
353
367
  * @summary Add multiple products to a deal
@@ -362,6 +376,20 @@ export const DealProductsApiFp = function (configuration) {
362
376
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
363
377
  });
364
378
  },
379
+ /**
380
+ * Same as `addManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
381
+ * @summary Add multiple products to a deal
382
+ * @param {number} id The ID of the deal
383
+ * @param {CreateManyDealProductRequest} [CreateManyDealProductRequest]
384
+
385
+ * @throws {RequiredError}
386
+ */
387
+ addManyDealProductsWithHttpInfo(id, CreateManyDealProductRequest) {
388
+ return __awaiter(this, void 0, void 0, function* () {
389
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addManyDealProducts(id, CreateManyDealProductRequest);
390
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
391
+ });
392
+ },
365
393
  /**
366
394
  * Deletes a product attachment from a deal, using the `product_attachment_id`.
367
395
  * @summary Delete an attached product from a deal
@@ -376,6 +404,20 @@ export const DealProductsApiFp = function (configuration) {
376
404
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
377
405
  });
378
406
  },
407
+ /**
408
+ * Same as `deleteDealProduct`, but resolves with the response body together with the HTTP status and headers.
409
+ * @summary Delete an attached product from a deal
410
+ * @param {number} id The ID of the deal
411
+ * @param {number} product_attachment_id The product attachment ID
412
+
413
+ * @throws {RequiredError}
414
+ */
415
+ deleteDealProductWithHttpInfo(id, product_attachment_id) {
416
+ return __awaiter(this, void 0, void 0, function* () {
417
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDealProduct(id, product_attachment_id);
418
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
419
+ });
420
+ },
379
421
  /**
380
422
  * Deletes multiple products from a deal. If no product IDs are specified, up to 100 products will be removed from the deal. A maximum of 100 product IDs can be provided per request.
381
423
  * @summary Delete many products from a deal
@@ -390,6 +432,20 @@ export const DealProductsApiFp = function (configuration) {
390
432
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
391
433
  });
392
434
  },
435
+ /**
436
+ * Same as `deleteManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
437
+ * @summary Delete many products from a deal
438
+ * @param {number} id The ID of the deal
439
+ * @param {Set<number>} [ids] Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
440
+
441
+ * @throws {RequiredError}
442
+ */
443
+ deleteManyDealProductsWithHttpInfo(id, ids) {
444
+ return __awaiter(this, void 0, void 0, function* () {
445
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteManyDealProducts(id, ids);
446
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
447
+ });
448
+ },
393
449
  /**
394
450
  * Lists products attached to a deal.
395
451
  * @summary List products attached to a deal
@@ -407,6 +463,23 @@ export const DealProductsApiFp = function (configuration) {
407
463
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
408
464
  });
409
465
  },
466
+ /**
467
+ * Same as `getDealProducts`, but resolves with the response body together with the HTTP status and headers.
468
+ * @summary List products attached to a deal
469
+ * @param {number} id The ID of the deal
470
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
471
+ * @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.
472
+ * @param {'id' | 'add_time' | 'update_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;, &#x60;order_nr&#x60;.
473
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
474
+
475
+ * @throws {RequiredError}
476
+ */
477
+ getDealProductsWithHttpInfo(id, cursor, limit, sort_by, sort_direction) {
478
+ return __awaiter(this, void 0, void 0, function* () {
479
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealProducts(id, cursor, limit, sort_by, sort_direction);
480
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
481
+ });
482
+ },
410
483
  /**
411
484
  * Returns data about products attached to deals
412
485
  * @summary Get deal products of several deals
@@ -424,6 +497,23 @@ export const DealProductsApiFp = function (configuration) {
424
497
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
425
498
  });
426
499
  },
500
+ /**
501
+ * Same as `getDealsProducts`, but resolves with the response body together with the HTTP status and headers.
502
+ * @summary Get deal products of several deals
503
+ * @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided.
504
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
505
+ * @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.
506
+ * @param {'id' | 'deal_id' | 'add_time' | 'update_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;deal_id&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;, &#x60;order_nr&#x60;.
507
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
508
+
509
+ * @throws {RequiredError}
510
+ */
511
+ getDealsProductsWithHttpInfo(deal_ids, cursor, limit, sort_by, sort_direction) {
512
+ return __awaiter(this, void 0, void 0, function* () {
513
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealsProducts(deal_ids, cursor, limit, sort_by, sort_direction);
514
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
515
+ });
516
+ },
427
517
  /**
428
518
  * Updates the details of the product that has been attached to a deal.
429
519
  * @summary Update the product attached to a deal
@@ -439,6 +529,21 @@ export const DealProductsApiFp = function (configuration) {
439
529
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
440
530
  });
441
531
  },
532
+ /**
533
+ * Same as `updateDealProduct`, but resolves with the response body together with the HTTP status and headers.
534
+ * @summary Update the product attached to a deal
535
+ * @param {number} id The ID of the deal
536
+ * @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal)
537
+ * @param {UpdateDealProductRequest} [UpdateDealProductRequest]
538
+
539
+ * @throws {RequiredError}
540
+ */
541
+ updateDealProductWithHttpInfo(id, product_attachment_id, UpdateDealProductRequest) {
542
+ return __awaiter(this, void 0, void 0, function* () {
543
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDealProduct(id, product_attachment_id, UpdateDealProductRequest);
544
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
545
+ });
546
+ },
442
547
  };
443
548
  };
444
549
  /**
@@ -458,6 +563,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
458
563
  addDealProduct(requestParameters) {
459
564
  return localVarFp.addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(axios, basePath));
460
565
  },
566
+ addDealProductWithHttpInfo(requestParameters) {
567
+ return localVarFp.addDealProductWithHttpInfo(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(axios, basePath));
568
+ },
461
569
  /**
462
570
  * Adds multiple products to a deal in a single request. Maximum of 100 products allowed per request.
463
571
  * @summary Add multiple products to a deal
@@ -468,6 +576,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
468
576
  addManyDealProducts(requestParameters) {
469
577
  return localVarFp.addManyDealProducts(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(axios, basePath));
470
578
  },
579
+ addManyDealProductsWithHttpInfo(requestParameters) {
580
+ return localVarFp.addManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(axios, basePath));
581
+ },
471
582
  /**
472
583
  * Deletes a product attachment from a deal, using the `product_attachment_id`.
473
584
  * @summary Delete an attached product from a deal
@@ -478,6 +589,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
478
589
  deleteDealProduct(requestParameters) {
479
590
  return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(axios, basePath));
480
591
  },
592
+ deleteDealProductWithHttpInfo(requestParameters) {
593
+ return localVarFp.deleteDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(axios, basePath));
594
+ },
481
595
  /**
482
596
  * Deletes multiple products from a deal. If no product IDs are specified, up to 100 products will be removed from the deal. A maximum of 100 product IDs can be provided per request.
483
597
  * @summary Delete many products from a deal
@@ -488,6 +602,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
488
602
  deleteManyDealProducts(requestParameters) {
489
603
  return localVarFp.deleteManyDealProducts(requestParameters.id, requestParameters.ids).then((request) => request(axios, basePath));
490
604
  },
605
+ deleteManyDealProductsWithHttpInfo(requestParameters) {
606
+ return localVarFp.deleteManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.ids).then((request) => request(axios, basePath));
607
+ },
491
608
  /**
492
609
  * Lists products attached to a deal.
493
610
  * @summary List products attached to a deal
@@ -498,6 +615,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
498
615
  getDealProducts(requestParameters) {
499
616
  return localVarFp.getDealProducts(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
500
617
  },
618
+ getDealProductsWithHttpInfo(requestParameters) {
619
+ return localVarFp.getDealProductsWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
620
+ },
501
621
  /**
502
622
  * Returns data about products attached to deals
503
623
  * @summary Get deal products of several deals
@@ -508,6 +628,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
508
628
  getDealsProducts(requestParameters) {
509
629
  return localVarFp.getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
510
630
  },
631
+ getDealsProductsWithHttpInfo(requestParameters) {
632
+ return localVarFp.getDealsProductsWithHttpInfo(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
633
+ },
511
634
  /**
512
635
  * Updates the details of the product that has been attached to a deal.
513
636
  * @summary Update the product attached to a deal
@@ -518,6 +641,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
518
641
  updateDealProduct(requestParameters) {
519
642
  return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(axios, basePath));
520
643
  },
644
+ updateDealProductWithHttpInfo(requestParameters) {
645
+ return localVarFp.updateDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(axios, basePath));
646
+ },
521
647
  };
522
648
  };
523
649
  /**
@@ -538,6 +664,17 @@ export class DealProductsApi extends BaseAPI {
538
664
  addDealProduct(requestParameters) {
539
665
  return DealProductsApiFp(this.configuration).addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(this.axios, this.basePath));
540
666
  }
667
+ /**
668
+ * Same as `addDealProduct`, but resolves with the response body together with the HTTP status and headers.
669
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
670
+ * @param {DealProductsApiAddDealProductRequest} requestParameters Request parameters.
671
+
672
+ * @throws {RequiredError}
673
+ * @memberof DealProductsApi
674
+ */
675
+ addDealProductWithHttpInfo(requestParameters) {
676
+ return DealProductsApiFp(this.configuration).addDealProductWithHttpInfo(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(this.axios, this.basePath));
677
+ }
541
678
  /**
542
679
  * Adds multiple products to a deal in a single request. Maximum of 100 products allowed per request.
543
680
  * @summary Add multiple products to a deal
@@ -549,6 +686,17 @@ export class DealProductsApi extends BaseAPI {
549
686
  addManyDealProducts(requestParameters) {
550
687
  return DealProductsApiFp(this.configuration).addManyDealProducts(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(this.axios, this.basePath));
551
688
  }
689
+ /**
690
+ * Same as `addManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
691
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
692
+ * @param {DealProductsApiAddManyDealProductsRequest} requestParameters Request parameters.
693
+
694
+ * @throws {RequiredError}
695
+ * @memberof DealProductsApi
696
+ */
697
+ addManyDealProductsWithHttpInfo(requestParameters) {
698
+ return DealProductsApiFp(this.configuration).addManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(this.axios, this.basePath));
699
+ }
552
700
  /**
553
701
  * Deletes a product attachment from a deal, using the `product_attachment_id`.
554
702
  * @summary Delete an attached product from a deal
@@ -560,6 +708,17 @@ export class DealProductsApi extends BaseAPI {
560
708
  deleteDealProduct(requestParameters) {
561
709
  return DealProductsApiFp(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(this.axios, this.basePath));
562
710
  }
711
+ /**
712
+ * Same as `deleteDealProduct`, but resolves with the response body together with the HTTP status and headers.
713
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
714
+ * @param {DealProductsApiDeleteDealProductRequest} requestParameters Request parameters.
715
+
716
+ * @throws {RequiredError}
717
+ * @memberof DealProductsApi
718
+ */
719
+ deleteDealProductWithHttpInfo(requestParameters) {
720
+ return DealProductsApiFp(this.configuration).deleteDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(this.axios, this.basePath));
721
+ }
563
722
  /**
564
723
  * Deletes multiple products from a deal. If no product IDs are specified, up to 100 products will be removed from the deal. A maximum of 100 product IDs can be provided per request.
565
724
  * @summary Delete many products from a deal
@@ -571,6 +730,17 @@ export class DealProductsApi extends BaseAPI {
571
730
  deleteManyDealProducts(requestParameters) {
572
731
  return DealProductsApiFp(this.configuration).deleteManyDealProducts(requestParameters.id, requestParameters.ids).then((request) => request(this.axios, this.basePath));
573
732
  }
733
+ /**
734
+ * Same as `deleteManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
735
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
736
+ * @param {DealProductsApiDeleteManyDealProductsRequest} requestParameters Request parameters.
737
+
738
+ * @throws {RequiredError}
739
+ * @memberof DealProductsApi
740
+ */
741
+ deleteManyDealProductsWithHttpInfo(requestParameters) {
742
+ return DealProductsApiFp(this.configuration).deleteManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.ids).then((request) => request(this.axios, this.basePath));
743
+ }
574
744
  /**
575
745
  * Lists products attached to a deal.
576
746
  * @summary List products attached to a deal
@@ -582,6 +752,17 @@ export class DealProductsApi extends BaseAPI {
582
752
  getDealProducts(requestParameters) {
583
753
  return DealProductsApiFp(this.configuration).getDealProducts(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
584
754
  }
755
+ /**
756
+ * Same as `getDealProducts`, but resolves with the response body together with the HTTP status and headers.
757
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
758
+ * @param {DealProductsApiGetDealProductsRequest} requestParameters Request parameters.
759
+
760
+ * @throws {RequiredError}
761
+ * @memberof DealProductsApi
762
+ */
763
+ getDealProductsWithHttpInfo(requestParameters) {
764
+ return DealProductsApiFp(this.configuration).getDealProductsWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
765
+ }
585
766
  /**
586
767
  * Returns data about products attached to deals
587
768
  * @summary Get deal products of several deals
@@ -593,6 +774,17 @@ export class DealProductsApi extends BaseAPI {
593
774
  getDealsProducts(requestParameters) {
594
775
  return DealProductsApiFp(this.configuration).getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
595
776
  }
777
+ /**
778
+ * Same as `getDealsProducts`, but resolves with the response body together with the HTTP status and headers.
779
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
780
+ * @param {DealProductsApiGetDealsProductsRequest} requestParameters Request parameters.
781
+
782
+ * @throws {RequiredError}
783
+ * @memberof DealProductsApi
784
+ */
785
+ getDealsProductsWithHttpInfo(requestParameters) {
786
+ return DealProductsApiFp(this.configuration).getDealsProductsWithHttpInfo(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
787
+ }
596
788
  /**
597
789
  * Updates the details of the product that has been attached to a deal.
598
790
  * @summary Update the product attached to a deal
@@ -604,4 +796,15 @@ export class DealProductsApi extends BaseAPI {
604
796
  updateDealProduct(requestParameters) {
605
797
  return DealProductsApiFp(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(this.axios, this.basePath));
606
798
  }
799
+ /**
800
+ * Same as `updateDealProduct`, but resolves with the response body together with the HTTP status and headers.
801
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
802
+ * @param {DealProductsApiUpdateDealProductRequest} requestParameters Request parameters.
803
+
804
+ * @throws {RequiredError}
805
+ * @memberof DealProductsApi
806
+ */
807
+ updateDealProductWithHttpInfo(requestParameters) {
808
+ return DealProductsApiFp(this.configuration).updateDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(this.axios, this.basePath));
809
+ }
607
810
  }