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
@@ -305,6 +305,20 @@ const ProductsApiFp = function (configuration) {
305
305
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
306
306
  });
307
307
  },
308
+ /**
309
+ * Same as `addProductFollower`, but resolves with the response body together with the HTTP status and headers.
310
+ * @summary Add a follower to a product
311
+ * @param {number} id The ID of the product
312
+ * @param {AddProductFollowerRequest} [AddProductFollowerRequest]
313
+
314
+ * @throws {RequiredError}
315
+ */
316
+ addProductFollowerWithHttpInfo(id, AddProductFollowerRequest) {
317
+ return __awaiter(this, void 0, void 0, function* () {
318
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addProductFollower(id, AddProductFollowerRequest);
319
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
320
+ });
321
+ },
308
322
  /**
309
323
  * Deletes a follower from a product.
310
324
  * @summary Delete a follower from a product
@@ -319,6 +333,20 @@ const ProductsApiFp = function (configuration) {
319
333
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
320
334
  });
321
335
  },
336
+ /**
337
+ * Same as `deleteProductFollower`, but resolves with the response body together with the HTTP status and headers.
338
+ * @summary Delete a follower from a product
339
+ * @param {number} id The ID of the product
340
+ * @param {number} follower_id The ID of the relationship between the follower and the product
341
+
342
+ * @throws {RequiredError}
343
+ */
344
+ deleteProductFollowerWithHttpInfo(id, follower_id) {
345
+ return __awaiter(this, void 0, void 0, function* () {
346
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProductFollower(id, follower_id);
347
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
348
+ });
349
+ },
322
350
  /**
323
351
  * Returns data about deals that have a product attached to it.
324
352
  * @summary Get deals where a product is attached to
@@ -335,6 +363,22 @@ const ProductsApiFp = function (configuration) {
335
363
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
336
364
  });
337
365
  },
366
+ /**
367
+ * Same as `getProductDeals`, but resolves with the response body together with the HTTP status and headers.
368
+ * @summary Get deals where a product is attached to
369
+ * @param {number} id The ID of the product
370
+ * @param {number} [start] Pagination start
371
+ * @param {number} [limit] Items shown per page
372
+ * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included.
373
+
374
+ * @throws {RequiredError}
375
+ */
376
+ getProductDealsWithHttpInfo(id, start, limit, status) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductDeals(id, start, limit, status);
379
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
380
+ });
381
+ },
338
382
  /**
339
383
  * Lists files associated with a product.
340
384
  * @summary List files attached to a product
@@ -351,6 +395,22 @@ const ProductsApiFp = function (configuration) {
351
395
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
352
396
  });
353
397
  },
398
+ /**
399
+ * Same as `getProductFiles`, but resolves with the response body together with the HTTP status and headers.
400
+ * @summary List files attached to a product
401
+ * @param {number} id The ID of the product
402
+ * @param {number} [start] Pagination start
403
+ * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed.
404
+ * @param {string} [sort] Supported fields: `id`, `update_time`
405
+
406
+ * @throws {RequiredError}
407
+ */
408
+ getProductFilesWithHttpInfo(id, start, limit, sort) {
409
+ return __awaiter(this, void 0, void 0, function* () {
410
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductFiles(id, start, limit, sort);
411
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
412
+ });
413
+ },
354
414
  /**
355
415
  * Lists the followers of a product.
356
416
  * @summary List followers of a product
@@ -366,6 +426,21 @@ const ProductsApiFp = function (configuration) {
366
426
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
367
427
  });
368
428
  },
429
+ /**
430
+ * Same as `getProductFollowers`, but resolves with the response body together with the HTTP status and headers.
431
+ * @summary List followers of a product
432
+ * @param {number} id The ID of the product
433
+ * @param {number} [start] Pagination start
434
+ * @param {number} [limit] Items shown per page
435
+
436
+ * @throws {RequiredError}
437
+ */
438
+ getProductFollowersWithHttpInfo(id, start, limit) {
439
+ return __awaiter(this, void 0, void 0, function* () {
440
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductFollowers(id, start, limit);
441
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
442
+ });
443
+ },
369
444
  /**
370
445
  * Lists users permitted to access a product.
371
446
  * @summary List permitted users
@@ -379,6 +454,19 @@ const ProductsApiFp = function (configuration) {
379
454
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
380
455
  });
381
456
  },
457
+ /**
458
+ * Same as `getProductUsers`, but resolves with the response body together with the HTTP status and headers.
459
+ * @summary List permitted users
460
+ * @param {number} id The ID of the product
461
+
462
+ * @throws {RequiredError}
463
+ */
464
+ getProductUsersWithHttpInfo(id) {
465
+ return __awaiter(this, void 0, void 0, function* () {
466
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductUsers(id);
467
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
468
+ });
469
+ },
382
470
  };
383
471
  };
384
472
  exports.ProductsApiFp = ProductsApiFp;
@@ -399,6 +487,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
399
487
  addProductFollower(requestParameters) {
400
488
  return localVarFp.addProductFollower(requestParameters.id, requestParameters.AddProductFollowerRequest).then((request) => request(axios, basePath));
401
489
  },
490
+ addProductFollowerWithHttpInfo(requestParameters) {
491
+ return localVarFp.addProductFollowerWithHttpInfo(requestParameters.id, requestParameters.AddProductFollowerRequest).then((request) => request(axios, basePath));
492
+ },
402
493
  /**
403
494
  * Deletes a follower from a product.
404
495
  * @summary Delete a follower from a product
@@ -409,6 +500,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
409
500
  deleteProductFollower(requestParameters) {
410
501
  return localVarFp.deleteProductFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
411
502
  },
503
+ deleteProductFollowerWithHttpInfo(requestParameters) {
504
+ return localVarFp.deleteProductFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
505
+ },
412
506
  /**
413
507
  * Returns data about deals that have a product attached to it.
414
508
  * @summary Get deals where a product is attached to
@@ -419,6 +513,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
419
513
  getProductDeals(requestParameters) {
420
514
  return localVarFp.getProductDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status).then((request) => request(axios, basePath));
421
515
  },
516
+ getProductDealsWithHttpInfo(requestParameters) {
517
+ return localVarFp.getProductDealsWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status).then((request) => request(axios, basePath));
518
+ },
422
519
  /**
423
520
  * Lists files associated with a product.
424
521
  * @summary List files attached to a product
@@ -429,6 +526,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
429
526
  getProductFiles(requestParameters) {
430
527
  return localVarFp.getProductFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(axios, basePath));
431
528
  },
529
+ getProductFilesWithHttpInfo(requestParameters) {
530
+ return localVarFp.getProductFilesWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(axios, basePath));
531
+ },
432
532
  /**
433
533
  * Lists the followers of a product.
434
534
  * @summary List followers of a product
@@ -439,6 +539,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
439
539
  getProductFollowers(requestParameters) {
440
540
  return localVarFp.getProductFollowers(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
441
541
  },
542
+ getProductFollowersWithHttpInfo(requestParameters) {
543
+ return localVarFp.getProductFollowersWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
544
+ },
442
545
  /**
443
546
  * Lists users permitted to access a product.
444
547
  * @summary List permitted users
@@ -449,6 +552,9 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
449
552
  getProductUsers(requestParameters) {
450
553
  return localVarFp.getProductUsers(requestParameters.id).then((request) => request(axios, basePath));
451
554
  },
555
+ getProductUsersWithHttpInfo(requestParameters) {
556
+ return localVarFp.getProductUsersWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
557
+ },
452
558
  };
453
559
  };
454
560
  exports.ProductsApiFactory = ProductsApiFactory;
@@ -470,6 +576,17 @@ class ProductsApi extends base_1.BaseAPI {
470
576
  addProductFollower(requestParameters) {
471
577
  return (0, exports.ProductsApiFp)(this.configuration).addProductFollower(requestParameters.id, requestParameters.AddProductFollowerRequest).then((request) => request(this.axios, this.basePath));
472
578
  }
579
+ /**
580
+ * Same as `addProductFollower`, but resolves with the response body together with the HTTP status and headers.
581
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
582
+ * @param {ProductsApiAddProductFollowerRequest} requestParameters Request parameters.
583
+
584
+ * @throws {RequiredError}
585
+ * @memberof ProductsApi
586
+ */
587
+ addProductFollowerWithHttpInfo(requestParameters) {
588
+ return (0, exports.ProductsApiFp)(this.configuration).addProductFollowerWithHttpInfo(requestParameters.id, requestParameters.AddProductFollowerRequest).then((request) => request(this.axios, this.basePath));
589
+ }
473
590
  /**
474
591
  * Deletes a follower from a product.
475
592
  * @summary Delete a follower from a product
@@ -481,6 +598,17 @@ class ProductsApi extends base_1.BaseAPI {
481
598
  deleteProductFollower(requestParameters) {
482
599
  return (0, exports.ProductsApiFp)(this.configuration).deleteProductFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
483
600
  }
601
+ /**
602
+ * Same as `deleteProductFollower`, but resolves with the response body together with the HTTP status and headers.
603
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
604
+ * @param {ProductsApiDeleteProductFollowerRequest} requestParameters Request parameters.
605
+
606
+ * @throws {RequiredError}
607
+ * @memberof ProductsApi
608
+ */
609
+ deleteProductFollowerWithHttpInfo(requestParameters) {
610
+ return (0, exports.ProductsApiFp)(this.configuration).deleteProductFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
611
+ }
484
612
  /**
485
613
  * Returns data about deals that have a product attached to it.
486
614
  * @summary Get deals where a product is attached to
@@ -492,6 +620,17 @@ class ProductsApi extends base_1.BaseAPI {
492
620
  getProductDeals(requestParameters) {
493
621
  return (0, exports.ProductsApiFp)(this.configuration).getProductDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status).then((request) => request(this.axios, this.basePath));
494
622
  }
623
+ /**
624
+ * Same as `getProductDeals`, but resolves with the response body together with the HTTP status and headers.
625
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
626
+ * @param {ProductsApiGetProductDealsRequest} requestParameters Request parameters.
627
+
628
+ * @throws {RequiredError}
629
+ * @memberof ProductsApi
630
+ */
631
+ getProductDealsWithHttpInfo(requestParameters) {
632
+ return (0, exports.ProductsApiFp)(this.configuration).getProductDealsWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status).then((request) => request(this.axios, this.basePath));
633
+ }
495
634
  /**
496
635
  * Lists files associated with a product.
497
636
  * @summary List files attached to a product
@@ -503,6 +642,17 @@ class ProductsApi extends base_1.BaseAPI {
503
642
  getProductFiles(requestParameters) {
504
643
  return (0, exports.ProductsApiFp)(this.configuration).getProductFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(this.axios, this.basePath));
505
644
  }
645
+ /**
646
+ * Same as `getProductFiles`, but resolves with the response body together with the HTTP status and headers.
647
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
648
+ * @param {ProductsApiGetProductFilesRequest} requestParameters Request parameters.
649
+
650
+ * @throws {RequiredError}
651
+ * @memberof ProductsApi
652
+ */
653
+ getProductFilesWithHttpInfo(requestParameters) {
654
+ return (0, exports.ProductsApiFp)(this.configuration).getProductFilesWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(this.axios, this.basePath));
655
+ }
506
656
  /**
507
657
  * Lists the followers of a product.
508
658
  * @summary List followers of a product
@@ -514,6 +664,17 @@ class ProductsApi extends base_1.BaseAPI {
514
664
  getProductFollowers(requestParameters) {
515
665
  return (0, exports.ProductsApiFp)(this.configuration).getProductFollowers(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
516
666
  }
667
+ /**
668
+ * Same as `getProductFollowers`, 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 {ProductsApiGetProductFollowersRequest} requestParameters Request parameters.
671
+
672
+ * @throws {RequiredError}
673
+ * @memberof ProductsApi
674
+ */
675
+ getProductFollowersWithHttpInfo(requestParameters) {
676
+ return (0, exports.ProductsApiFp)(this.configuration).getProductFollowersWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
677
+ }
517
678
  /**
518
679
  * Lists users permitted to access a product.
519
680
  * @summary List permitted users
@@ -525,5 +686,16 @@ class ProductsApi extends base_1.BaseAPI {
525
686
  getProductUsers(requestParameters) {
526
687
  return (0, exports.ProductsApiFp)(this.configuration).getProductUsers(requestParameters.id).then((request) => request(this.axios, this.basePath));
527
688
  }
689
+ /**
690
+ * Same as `getProductUsers`, 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 {ProductsApiGetProductUsersRequest} requestParameters Request parameters.
693
+
694
+ * @throws {RequiredError}
695
+ * @memberof ProductsApi
696
+ */
697
+ getProductUsersWithHttpInfo(requestParameters) {
698
+ return (0, exports.ProductsApiFp)(this.configuration).getProductUsersWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
699
+ }
528
700
  }
529
701
  exports.ProductsApi = ProductsApi;
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosInstance } from 'axios';
14
- import { RequestArgs, BaseAPI } from '../base';
14
+ import { RequestArgs, BaseAPI, ApiResponse } from '../base';
15
15
  import { GetProjectBoardResponse } from '../models';
16
16
  import { GetProjectBoardsResponse } from '../models';
17
17
  /**
@@ -48,6 +48,14 @@ export declare const ProjectBoardsApiFp: (configuration?: Configuration) => {
48
48
  * @throws {RequiredError}
49
49
  */
50
50
  getProjectsBoard(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProjectBoardResponse>>;
51
+ /**
52
+ * Same as `getProjectsBoard`, but resolves with the response body together with the HTTP status and headers.
53
+ * @summary Get details of a board
54
+ * @param {number} id The ID of the project board
55
+
56
+ * @throws {RequiredError}
57
+ */
58
+ getProjectsBoardWithHttpInfo(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetProjectBoardResponse>>>;
51
59
  /**
52
60
  * Returns all projects boards that are not deleted.
53
61
  * @summary Get all project boards
@@ -55,6 +63,13 @@ export declare const ProjectBoardsApiFp: (configuration?: Configuration) => {
55
63
  * @throws {RequiredError}
56
64
  */
57
65
  getProjectsBoards(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProjectBoardsResponse>>;
66
+ /**
67
+ * Same as `getProjectsBoards`, but resolves with the response body together with the HTTP status and headers.
68
+ * @summary Get all project boards
69
+
70
+ * @throws {RequiredError}
71
+ */
72
+ getProjectsBoardsWithHttpInfo(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetProjectBoardsResponse>>>;
58
73
  };
59
74
  /**
60
75
  * ProjectBoardsApi - factory interface
@@ -69,6 +84,7 @@ export declare const ProjectBoardsApiFactory: (configuration?: Configuration, ba
69
84
  * @throws {RequiredError}
70
85
  */
71
86
  getProjectsBoard(requestParameters: ProjectBoardsApiGetProjectsBoardRequest): Promise<GetProjectBoardResponse>;
87
+ getProjectsBoardWithHttpInfo(requestParameters: ProjectBoardsApiGetProjectsBoardRequest): Promise<ApiResponse<GetProjectBoardResponse>>;
72
88
  /**
73
89
  * Returns all projects boards that are not deleted.
74
90
  * @summary Get all project boards
@@ -76,6 +92,7 @@ export declare const ProjectBoardsApiFactory: (configuration?: Configuration, ba
76
92
  * @throws {RequiredError}
77
93
  */
78
94
  getProjectsBoards(): Promise<GetProjectBoardsResponse>;
95
+ getProjectsBoardsWithHttpInfo(): Promise<ApiResponse<GetProjectBoardsResponse>>;
79
96
  };
80
97
  /**
81
98
  * Request parameters for getProjectsBoard operation in ProjectBoardsApi.
@@ -106,6 +123,15 @@ export declare class ProjectBoardsApi extends BaseAPI {
106
123
  * @memberof ProjectBoardsApi
107
124
  */
108
125
  getProjectsBoard(requestParameters: ProjectBoardsApiGetProjectsBoardRequest): Promise<GetProjectBoardResponse>;
126
+ /**
127
+ * Same as `getProjectsBoard`, but resolves with the response body together with the HTTP status and headers.
128
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
129
+ * @param {ProjectBoardsApiGetProjectsBoardRequest} requestParameters Request parameters.
130
+
131
+ * @throws {RequiredError}
132
+ * @memberof ProjectBoardsApi
133
+ */
134
+ getProjectsBoardWithHttpInfo(requestParameters: ProjectBoardsApiGetProjectsBoardRequest): Promise<ApiResponse<GetProjectBoardResponse>>;
109
135
  /**
110
136
  * Returns all projects boards that are not deleted.
111
137
  * @summary Get all project boards
@@ -114,4 +140,12 @@ export declare class ProjectBoardsApi extends BaseAPI {
114
140
  * @memberof ProjectBoardsApi
115
141
  */
116
142
  getProjectsBoards(): Promise<GetProjectBoardsResponse>;
143
+ /**
144
+ * Same as `getProjectsBoards`, but resolves with the response body together with the HTTP status and headers.
145
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
146
+
147
+ * @throws {RequiredError}
148
+ * @memberof ProjectBoardsApi
149
+ */
150
+ getProjectsBoardsWithHttpInfo(): Promise<ApiResponse<GetProjectBoardsResponse>>;
117
151
  }
@@ -125,6 +125,19 @@ const ProjectBoardsApiFp = function (configuration) {
125
125
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
126
126
  });
127
127
  },
128
+ /**
129
+ * Same as `getProjectsBoard`, but resolves with the response body together with the HTTP status and headers.
130
+ * @summary Get details of a board
131
+ * @param {number} id The ID of the project board
132
+
133
+ * @throws {RequiredError}
134
+ */
135
+ getProjectsBoardWithHttpInfo(id) {
136
+ return __awaiter(this, void 0, void 0, function* () {
137
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectsBoard(id);
138
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
139
+ });
140
+ },
128
141
  /**
129
142
  * Returns all projects boards that are not deleted.
130
143
  * @summary Get all project boards
@@ -137,6 +150,18 @@ const ProjectBoardsApiFp = function (configuration) {
137
150
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
138
151
  });
139
152
  },
153
+ /**
154
+ * Same as `getProjectsBoards`, but resolves with the response body together with the HTTP status and headers.
155
+ * @summary Get all project boards
156
+
157
+ * @throws {RequiredError}
158
+ */
159
+ getProjectsBoardsWithHttpInfo() {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectsBoards();
162
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
163
+ });
164
+ },
140
165
  };
141
166
  };
142
167
  exports.ProjectBoardsApiFp = ProjectBoardsApiFp;
@@ -157,6 +182,9 @@ const ProjectBoardsApiFactory = function (configuration, basePath, axios) {
157
182
  getProjectsBoard(requestParameters) {
158
183
  return localVarFp.getProjectsBoard(requestParameters.id).then((request) => request(axios, basePath));
159
184
  },
185
+ getProjectsBoardWithHttpInfo(requestParameters) {
186
+ return localVarFp.getProjectsBoardWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
187
+ },
160
188
  /**
161
189
  * Returns all projects boards that are not deleted.
162
190
  * @summary Get all project boards
@@ -166,6 +194,9 @@ const ProjectBoardsApiFactory = function (configuration, basePath, axios) {
166
194
  getProjectsBoards() {
167
195
  return localVarFp.getProjectsBoards().then((request) => request(axios, basePath));
168
196
  },
197
+ getProjectsBoardsWithHttpInfo() {
198
+ return localVarFp.getProjectsBoardsWithHttpInfo().then((request) => request(axios, basePath));
199
+ },
169
200
  };
170
201
  };
171
202
  exports.ProjectBoardsApiFactory = ProjectBoardsApiFactory;
@@ -187,6 +218,17 @@ class ProjectBoardsApi extends base_1.BaseAPI {
187
218
  getProjectsBoard(requestParameters) {
188
219
  return (0, exports.ProjectBoardsApiFp)(this.configuration).getProjectsBoard(requestParameters.id).then((request) => request(this.axios, this.basePath));
189
220
  }
221
+ /**
222
+ * Same as `getProjectsBoard`, but resolves with the response body together with the HTTP status and headers.
223
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
224
+ * @param {ProjectBoardsApiGetProjectsBoardRequest} requestParameters Request parameters.
225
+
226
+ * @throws {RequiredError}
227
+ * @memberof ProjectBoardsApi
228
+ */
229
+ getProjectsBoardWithHttpInfo(requestParameters) {
230
+ return (0, exports.ProjectBoardsApiFp)(this.configuration).getProjectsBoardWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
231
+ }
190
232
  /**
191
233
  * Returns all projects boards that are not deleted.
192
234
  * @summary Get all project boards
@@ -197,5 +239,15 @@ class ProjectBoardsApi extends base_1.BaseAPI {
197
239
  getProjectsBoards() {
198
240
  return (0, exports.ProjectBoardsApiFp)(this.configuration).getProjectsBoards().then((request) => request(this.axios, this.basePath));
199
241
  }
242
+ /**
243
+ * Same as `getProjectsBoards`, but resolves with the response body together with the HTTP status and headers.
244
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
245
+
246
+ * @throws {RequiredError}
247
+ * @memberof ProjectBoardsApi
248
+ */
249
+ getProjectsBoardsWithHttpInfo() {
250
+ return (0, exports.ProjectBoardsApiFp)(this.configuration).getProjectsBoardsWithHttpInfo().then((request) => request(this.axios, this.basePath));
251
+ }
200
252
  }
201
253
  exports.ProjectBoardsApi = ProjectBoardsApi;
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosInstance } from 'axios';
14
- import { RequestArgs, BaseAPI } from '../base';
14
+ import { RequestArgs, BaseAPI, ApiResponse } from '../base';
15
15
  import { GetProjectPhaseResponse } from '../models';
16
16
  import { GetProjectPhasesResponse } from '../models';
17
17
  /**
@@ -49,6 +49,14 @@ export declare const ProjectPhasesApiFp: (configuration?: Configuration) => {
49
49
  * @throws {RequiredError}
50
50
  */
51
51
  getProjectsPhase(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProjectPhaseResponse>>;
52
+ /**
53
+ * Same as `getProjectsPhase`, but resolves with the response body together with the HTTP status and headers.
54
+ * @summary Get details of a phase
55
+ * @param {number} id The ID of the project phase
56
+
57
+ * @throws {RequiredError}
58
+ */
59
+ getProjectsPhaseWithHttpInfo(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetProjectPhaseResponse>>>;
52
60
  /**
53
61
  * Returns all active project phases under a specific board.
54
62
  * @summary Get project phases
@@ -57,6 +65,14 @@ export declare const ProjectPhasesApiFp: (configuration?: Configuration) => {
57
65
  * @throws {RequiredError}
58
66
  */
59
67
  getProjectsPhases(board_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProjectPhasesResponse>>;
68
+ /**
69
+ * Same as `getProjectsPhases`, but resolves with the response body together with the HTTP status and headers.
70
+ * @summary Get project phases
71
+ * @param {number} board_id ID of the board for which phases are requested
72
+
73
+ * @throws {RequiredError}
74
+ */
75
+ getProjectsPhasesWithHttpInfo(board_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetProjectPhasesResponse>>>;
60
76
  };
61
77
  /**
62
78
  * ProjectPhasesApi - factory interface
@@ -71,6 +87,7 @@ export declare const ProjectPhasesApiFactory: (configuration?: Configuration, ba
71
87
  * @throws {RequiredError}
72
88
  */
73
89
  getProjectsPhase(requestParameters: ProjectPhasesApiGetProjectsPhaseRequest): Promise<GetProjectPhaseResponse>;
90
+ getProjectsPhaseWithHttpInfo(requestParameters: ProjectPhasesApiGetProjectsPhaseRequest): Promise<ApiResponse<GetProjectPhaseResponse>>;
74
91
  /**
75
92
  * Returns all active project phases under a specific board.
76
93
  * @summary Get project phases
@@ -79,6 +96,7 @@ export declare const ProjectPhasesApiFactory: (configuration?: Configuration, ba
79
96
  * @throws {RequiredError}
80
97
  */
81
98
  getProjectsPhases(requestParameters: ProjectPhasesApiGetProjectsPhasesRequest): Promise<GetProjectPhasesResponse>;
99
+ getProjectsPhasesWithHttpInfo(requestParameters: ProjectPhasesApiGetProjectsPhasesRequest): Promise<ApiResponse<GetProjectPhasesResponse>>;
82
100
  };
83
101
  /**
84
102
  * Request parameters for getProjectsPhase operation in ProjectPhasesApi.
@@ -122,6 +140,15 @@ export declare class ProjectPhasesApi extends BaseAPI {
122
140
  * @memberof ProjectPhasesApi
123
141
  */
124
142
  getProjectsPhase(requestParameters: ProjectPhasesApiGetProjectsPhaseRequest): Promise<GetProjectPhaseResponse>;
143
+ /**
144
+ * Same as `getProjectsPhase`, but resolves with the response body together with the HTTP status and headers.
145
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
146
+ * @param {ProjectPhasesApiGetProjectsPhaseRequest} requestParameters Request parameters.
147
+
148
+ * @throws {RequiredError}
149
+ * @memberof ProjectPhasesApi
150
+ */
151
+ getProjectsPhaseWithHttpInfo(requestParameters: ProjectPhasesApiGetProjectsPhaseRequest): Promise<ApiResponse<GetProjectPhaseResponse>>;
125
152
  /**
126
153
  * Returns all active project phases under a specific board.
127
154
  * @summary Get project phases
@@ -131,4 +158,13 @@ export declare class ProjectPhasesApi extends BaseAPI {
131
158
  * @memberof ProjectPhasesApi
132
159
  */
133
160
  getProjectsPhases(requestParameters: ProjectPhasesApiGetProjectsPhasesRequest): Promise<GetProjectPhasesResponse>;
161
+ /**
162
+ * Same as `getProjectsPhases`, but resolves with the response body together with the HTTP status and headers.
163
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
164
+ * @param {ProjectPhasesApiGetProjectsPhasesRequest} requestParameters Request parameters.
165
+
166
+ * @throws {RequiredError}
167
+ * @memberof ProjectPhasesApi
168
+ */
169
+ getProjectsPhasesWithHttpInfo(requestParameters: ProjectPhasesApiGetProjectsPhasesRequest): Promise<ApiResponse<GetProjectPhasesResponse>>;
134
170
  }
@@ -131,6 +131,19 @@ const ProjectPhasesApiFp = function (configuration) {
131
131
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
132
132
  });
133
133
  },
134
+ /**
135
+ * Same as `getProjectsPhase`, but resolves with the response body together with the HTTP status and headers.
136
+ * @summary Get details of a phase
137
+ * @param {number} id The ID of the project phase
138
+
139
+ * @throws {RequiredError}
140
+ */
141
+ getProjectsPhaseWithHttpInfo(id) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectsPhase(id);
144
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
145
+ });
146
+ },
134
147
  /**
135
148
  * Returns all active project phases under a specific board.
136
149
  * @summary Get project phases
@@ -144,6 +157,19 @@ const ProjectPhasesApiFp = function (configuration) {
144
157
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
145
158
  });
146
159
  },
160
+ /**
161
+ * Same as `getProjectsPhases`, but resolves with the response body together with the HTTP status and headers.
162
+ * @summary Get project phases
163
+ * @param {number} board_id ID of the board for which phases are requested
164
+
165
+ * @throws {RequiredError}
166
+ */
167
+ getProjectsPhasesWithHttpInfo(board_id) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectsPhases(board_id);
170
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
171
+ });
172
+ },
147
173
  };
148
174
  };
149
175
  exports.ProjectPhasesApiFp = ProjectPhasesApiFp;
@@ -164,6 +190,9 @@ const ProjectPhasesApiFactory = function (configuration, basePath, axios) {
164
190
  getProjectsPhase(requestParameters) {
165
191
  return localVarFp.getProjectsPhase(requestParameters.id).then((request) => request(axios, basePath));
166
192
  },
193
+ getProjectsPhaseWithHttpInfo(requestParameters) {
194
+ return localVarFp.getProjectsPhaseWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
195
+ },
167
196
  /**
168
197
  * Returns all active project phases under a specific board.
169
198
  * @summary Get project phases
@@ -174,6 +203,9 @@ const ProjectPhasesApiFactory = function (configuration, basePath, axios) {
174
203
  getProjectsPhases(requestParameters) {
175
204
  return localVarFp.getProjectsPhases(requestParameters.board_id).then((request) => request(axios, basePath));
176
205
  },
206
+ getProjectsPhasesWithHttpInfo(requestParameters) {
207
+ return localVarFp.getProjectsPhasesWithHttpInfo(requestParameters.board_id).then((request) => request(axios, basePath));
208
+ },
177
209
  };
178
210
  };
179
211
  exports.ProjectPhasesApiFactory = ProjectPhasesApiFactory;
@@ -195,6 +227,17 @@ class ProjectPhasesApi extends base_1.BaseAPI {
195
227
  getProjectsPhase(requestParameters) {
196
228
  return (0, exports.ProjectPhasesApiFp)(this.configuration).getProjectsPhase(requestParameters.id).then((request) => request(this.axios, this.basePath));
197
229
  }
230
+ /**
231
+ * Same as `getProjectsPhase`, but resolves with the response body together with the HTTP status and headers.
232
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
233
+ * @param {ProjectPhasesApiGetProjectsPhaseRequest} requestParameters Request parameters.
234
+
235
+ * @throws {RequiredError}
236
+ * @memberof ProjectPhasesApi
237
+ */
238
+ getProjectsPhaseWithHttpInfo(requestParameters) {
239
+ return (0, exports.ProjectPhasesApiFp)(this.configuration).getProjectsPhaseWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
240
+ }
198
241
  /**
199
242
  * Returns all active project phases under a specific board.
200
243
  * @summary Get project phases
@@ -206,5 +249,16 @@ class ProjectPhasesApi extends base_1.BaseAPI {
206
249
  getProjectsPhases(requestParameters) {
207
250
  return (0, exports.ProjectPhasesApiFp)(this.configuration).getProjectsPhases(requestParameters.board_id).then((request) => request(this.axios, this.basePath));
208
251
  }
252
+ /**
253
+ * Same as `getProjectsPhases`, but resolves with the response body together with the HTTP status and headers.
254
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
255
+ * @param {ProjectPhasesApiGetProjectsPhasesRequest} requestParameters Request parameters.
256
+
257
+ * @throws {RequiredError}
258
+ * @memberof ProjectPhasesApi
259
+ */
260
+ getProjectsPhasesWithHttpInfo(requestParameters) {
261
+ return (0, exports.ProjectPhasesApiFp)(this.configuration).getProjectsPhasesWithHttpInfo(requestParameters.board_id).then((request) => request(this.axios, this.basePath));
262
+ }
209
263
  }
210
264
  exports.ProjectPhasesApi = ProjectPhasesApi;