pipedrive 36.0.0 → 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 (325) 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/v1/models/deal-all-of.d.ts +6 -6
  88. package/dist/esm/versions/v1/models/index.d.ts +0 -3
  89. package/dist/esm/versions/v1/models/index.js +0 -3
  90. package/dist/esm/versions/v1/models/note-deal.d.ts +11 -5
  91. package/dist/esm/versions/v2/api/activities-api.d.ts +107 -1
  92. package/dist/esm/versions/v2/api/activities-api.js +151 -0
  93. package/dist/esm/versions/v2/api/activity-fields-api.d.ts +40 -1
  94. package/dist/esm/versions/v2/api/activity-fields-api.js +57 -0
  95. package/dist/esm/versions/v2/api/beta-api.d.ts +451 -1
  96. package/dist/esm/versions/v2/api/beta-api.js +666 -0
  97. package/dist/esm/versions/v2/api/deal-fields-api.d.ts +152 -1
  98. package/dist/esm/versions/v2/api/deal-fields-api.js +223 -0
  99. package/dist/esm/versions/v2/api/deal-installments-api.d.ts +81 -1
  100. package/dist/esm/versions/v2/api/deal-installments-api.js +116 -0
  101. package/dist/esm/versions/v2/api/deal-products-api.d.ts +141 -1
  102. package/dist/esm/versions/v2/api/deal-products-api.js +203 -0
  103. package/dist/esm/versions/v2/api/deals-api.d.ts +363 -1
  104. package/dist/esm/versions/v2/api/deals-api.js +516 -1
  105. package/dist/esm/versions/v2/api/item-search-api.d.ts +49 -1
  106. package/dist/esm/versions/v2/api/item-search-api.js +66 -0
  107. package/dist/esm/versions/v2/api/leads-api.d.ts +64 -1
  108. package/dist/esm/versions/v2/api/leads-api.js +90 -0
  109. package/dist/esm/versions/v2/api/organization-fields-api.d.ts +152 -1
  110. package/dist/esm/versions/v2/api/organization-fields-api.js +223 -0
  111. package/dist/esm/versions/v2/api/organizations-api.d.ts +208 -1
  112. package/dist/esm/versions/v2/api/organizations-api.js +297 -0
  113. package/dist/esm/versions/v2/api/person-fields-api.d.ts +152 -1
  114. package/dist/esm/versions/v2/api/person-fields-api.js +223 -0
  115. package/dist/esm/versions/v2/api/persons-api.d.ts +230 -1
  116. package/dist/esm/versions/v2/api/persons-api.js +328 -0
  117. package/dist/esm/versions/v2/api/pipelines-api.d.ts +95 -1
  118. package/dist/esm/versions/v2/api/pipelines-api.js +139 -0
  119. package/dist/esm/versions/v2/api/product-fields-api.d.ts +152 -1
  120. package/dist/esm/versions/v2/api/product-fields-api.js +223 -0
  121. package/dist/esm/versions/v2/api/products-api.d.ts +371 -1
  122. package/dist/esm/versions/v2/api/products-api.js +541 -0
  123. package/dist/esm/versions/v2/api/project-boards-api.d.ts +90 -1
  124. package/dist/esm/versions/v2/api/project-boards-api.js +134 -0
  125. package/dist/esm/versions/v2/api/project-fields-api.d.ts +150 -1
  126. package/dist/esm/versions/v2/api/project-fields-api.js +221 -0
  127. package/dist/esm/versions/v2/api/project-phases-api.d.ts +92 -1
  128. package/dist/esm/versions/v2/api/project-phases-api.js +136 -0
  129. package/dist/esm/versions/v2/api/project-templates-api.d.ts +38 -1
  130. package/dist/esm/versions/v2/api/project-templates-api.js +55 -0
  131. package/dist/esm/versions/v2/api/projects-api.d.ts +201 -1
  132. package/dist/esm/versions/v2/api/projects-api.js +290 -0
  133. package/dist/esm/versions/v2/api/stages-api.d.ts +96 -1
  134. package/dist/esm/versions/v2/api/stages-api.js +140 -0
  135. package/dist/esm/versions/v2/api/tasks-api.d.ts +98 -1
  136. package/dist/esm/versions/v2/api/tasks-api.js +142 -0
  137. package/dist/esm/versions/v2/api/users-api.d.ts +21 -1
  138. package/dist/esm/versions/v2/api/users-api.js +29 -0
  139. package/dist/esm/versions/v2/base.d.ts +17 -0
  140. package/dist/esm/versions/v2/base.js +22 -0
  141. package/dist/esm/versions/v2/common.d.ts +1 -1
  142. package/dist/esm/versions/v2/common.js +7 -4
  143. package/dist/esm/versions/v2/models/index.d.ts +2 -5
  144. package/dist/esm/versions/v2/models/index.js +2 -5
  145. package/dist/esm/versions/v2/models/prices-array.d.ts +3 -3
  146. package/dist/esm/versions/v2/models/{product-request-prices-inner-all-of.d.ts → product-price-request.d.ts} +12 -2
  147. package/dist/{versions/v2/models/prices-array-prices-inner-all-of.d.ts → esm/versions/v2/models/product-price.d.ts} +12 -2
  148. package/dist/esm/versions/v2/models/product-request.d.ts +3 -3
  149. package/dist/versions/v1/api/activity-fields-api.d.ts +17 -1
  150. package/dist/versions/v1/api/activity-fields-api.js +25 -0
  151. package/dist/versions/v1/api/activity-types-api.d.ts +72 -1
  152. package/dist/versions/v1/api/activity-types-api.js +107 -0
  153. package/dist/versions/v1/api/billing-api.d.ts +17 -1
  154. package/dist/versions/v1/api/billing-api.js +25 -0
  155. package/dist/versions/v1/api/call-logs-api.d.ts +93 -1
  156. package/dist/versions/v1/api/call-logs-api.js +137 -0
  157. package/dist/versions/v1/api/channels-api.d.ts +74 -1
  158. package/dist/versions/v1/api/channels-api.js +109 -0
  159. package/dist/versions/v1/api/currencies-api.d.ts +19 -1
  160. package/dist/versions/v1/api/currencies-api.js +27 -0
  161. package/dist/versions/v1/api/deal-fields-api.d.ts +111 -1
  162. package/dist/versions/v1/api/deal-fields-api.js +164 -0
  163. package/dist/versions/v1/api/deals-api.d.ts +399 -1
  164. package/dist/versions/v1/api/deals-api.js +569 -0
  165. package/dist/versions/v1/api/files-api.d.ts +163 -1
  166. package/dist/versions/v1/api/files-api.js +234 -0
  167. package/dist/versions/v1/api/filters-api.d.ts +129 -1
  168. package/dist/versions/v1/api/filters-api.js +191 -0
  169. package/dist/versions/v1/api/goals-api.d.ts +106 -1
  170. package/dist/versions/v1/api/goals-api.js +150 -0
  171. package/dist/versions/v1/api/lead-fields-api.d.ts +20 -1
  172. package/dist/versions/v1/api/lead-fields-api.js +28 -0
  173. package/dist/versions/v1/api/lead-labels-api.d.ts +72 -1
  174. package/dist/versions/v1/api/lead-labels-api.js +107 -0
  175. package/dist/versions/v1/api/lead-sources-api.d.ts +17 -1
  176. package/dist/versions/v1/api/lead-sources-api.js +25 -0
  177. package/dist/versions/v1/api/leads-api.d.ts +166 -1
  178. package/dist/versions/v1/api/leads-api.js +237 -0
  179. package/dist/versions/v1/api/legacy-teams-api.d.ts +152 -1
  180. package/dist/versions/v1/api/legacy-teams-api.js +223 -0
  181. package/dist/versions/v1/api/mailbox-api.d.ts +117 -1
  182. package/dist/versions/v1/api/mailbox-api.js +170 -0
  183. package/dist/versions/v1/api/meetings-api.d.ts +37 -1
  184. package/dist/versions/v1/api/meetings-api.js +54 -0
  185. package/dist/versions/v1/api/note-fields-api.d.ts +17 -1
  186. package/dist/versions/v1/api/note-fields-api.js +25 -0
  187. package/dist/versions/v1/api/notes-api.d.ts +207 -1
  188. package/dist/versions/v1/api/notes-api.js +296 -0
  189. package/dist/versions/v1/api/organization-fields-api.d.ts +111 -1
  190. package/dist/versions/v1/api/organization-fields-api.js +164 -0
  191. package/dist/versions/v1/api/organization-relationships-api.d.ts +93 -1
  192. package/dist/versions/v1/api/organization-relationships-api.js +137 -0
  193. package/dist/versions/v1/api/organizations-api.d.ts +178 -1
  194. package/dist/versions/v1/api/organizations-api.js +258 -0
  195. package/dist/versions/v1/api/permission-sets-api.d.ts +57 -1
  196. package/dist/versions/v1/api/permission-sets-api.js +83 -0
  197. package/dist/versions/v1/api/person-fields-api.d.ts +111 -1
  198. package/dist/versions/v1/api/person-fields-api.js +164 -0
  199. package/dist/versions/v1/api/persons-api.d.ts +275 -37
  200. package/dist/versions/v1/api/persons-api.js +370 -24
  201. package/dist/versions/v1/api/pipelines-api.d.ts +69 -1
  202. package/dist/versions/v1/api/pipelines-api.js +95 -0
  203. package/dist/versions/v1/api/product-fields-api.d.ts +111 -1
  204. package/dist/versions/v1/api/product-fields-api.js +164 -0
  205. package/dist/versions/v1/api/products-api.d.ts +119 -1
  206. package/dist/versions/v1/api/products-api.js +172 -0
  207. package/dist/versions/v1/api/project-boards-api.d.ts +35 -1
  208. package/dist/versions/v1/api/project-boards-api.js +52 -0
  209. package/dist/versions/v1/api/project-phases-api.d.ts +37 -1
  210. package/dist/versions/v1/api/project-phases-api.js +54 -0
  211. package/dist/versions/v1/api/project-templates-api.d.ts +38 -1
  212. package/dist/versions/v1/api/project-templates-api.js +55 -0
  213. package/dist/versions/v1/api/projects-api.d.ts +227 -1
  214. package/dist/versions/v1/api/projects-api.js +334 -0
  215. package/dist/versions/v1/api/recents-api.d.ts +22 -1
  216. package/dist/versions/v1/api/recents-api.js +30 -0
  217. package/dist/versions/v1/api/roles-api.d.ts +226 -1
  218. package/dist/versions/v1/api/roles-api.js +333 -0
  219. package/dist/versions/v1/api/stages-api.d.ts +24 -1
  220. package/dist/versions/v1/api/stages-api.js +32 -0
  221. package/dist/versions/v1/api/tasks-api.d.ts +97 -1
  222. package/dist/versions/v1/api/tasks-api.js +141 -0
  223. package/dist/versions/v1/api/user-connections-api.d.ts +17 -1
  224. package/dist/versions/v1/api/user-connections-api.js +25 -0
  225. package/dist/versions/v1/api/user-settings-api.d.ts +17 -1
  226. package/dist/versions/v1/api/user-settings-api.js +25 -0
  227. package/dist/versions/v1/api/users-api.d.ts +181 -1
  228. package/dist/versions/v1/api/users-api.js +270 -0
  229. package/dist/versions/v1/api/webhooks-api.d.ts +53 -1
  230. package/dist/versions/v1/api/webhooks-api.js +79 -0
  231. package/dist/versions/v1/base.d.ts +17 -0
  232. package/dist/versions/v1/base.js +24 -1
  233. package/dist/versions/v1/common.d.ts +1 -1
  234. package/dist/versions/v1/common.js +6 -3
  235. package/dist/versions/v1/models/deal-all-of.d.ts +6 -6
  236. package/dist/versions/v1/models/index.d.ts +0 -3
  237. package/dist/versions/v1/models/index.js +0 -3
  238. package/dist/versions/v1/models/note-deal.d.ts +11 -5
  239. package/dist/versions/v2/api/activities-api.d.ts +107 -1
  240. package/dist/versions/v2/api/activities-api.js +151 -0
  241. package/dist/versions/v2/api/activity-fields-api.d.ts +40 -1
  242. package/dist/versions/v2/api/activity-fields-api.js +57 -0
  243. package/dist/versions/v2/api/beta-api.d.ts +451 -1
  244. package/dist/versions/v2/api/beta-api.js +666 -0
  245. package/dist/versions/v2/api/deal-fields-api.d.ts +152 -1
  246. package/dist/versions/v2/api/deal-fields-api.js +223 -0
  247. package/dist/versions/v2/api/deal-installments-api.d.ts +81 -1
  248. package/dist/versions/v2/api/deal-installments-api.js +116 -0
  249. package/dist/versions/v2/api/deal-products-api.d.ts +141 -1
  250. package/dist/versions/v2/api/deal-products-api.js +203 -0
  251. package/dist/versions/v2/api/deals-api.d.ts +363 -1
  252. package/dist/versions/v2/api/deals-api.js +516 -1
  253. package/dist/versions/v2/api/item-search-api.d.ts +49 -1
  254. package/dist/versions/v2/api/item-search-api.js +66 -0
  255. package/dist/versions/v2/api/leads-api.d.ts +64 -1
  256. package/dist/versions/v2/api/leads-api.js +90 -0
  257. package/dist/versions/v2/api/organization-fields-api.d.ts +152 -1
  258. package/dist/versions/v2/api/organization-fields-api.js +223 -0
  259. package/dist/versions/v2/api/organizations-api.d.ts +208 -1
  260. package/dist/versions/v2/api/organizations-api.js +297 -0
  261. package/dist/versions/v2/api/person-fields-api.d.ts +152 -1
  262. package/dist/versions/v2/api/person-fields-api.js +223 -0
  263. package/dist/versions/v2/api/persons-api.d.ts +230 -1
  264. package/dist/versions/v2/api/persons-api.js +328 -0
  265. package/dist/versions/v2/api/pipelines-api.d.ts +95 -1
  266. package/dist/versions/v2/api/pipelines-api.js +139 -0
  267. package/dist/versions/v2/api/product-fields-api.d.ts +152 -1
  268. package/dist/versions/v2/api/product-fields-api.js +223 -0
  269. package/dist/versions/v2/api/products-api.d.ts +371 -1
  270. package/dist/versions/v2/api/products-api.js +541 -0
  271. package/dist/versions/v2/api/project-boards-api.d.ts +90 -1
  272. package/dist/versions/v2/api/project-boards-api.js +134 -0
  273. package/dist/versions/v2/api/project-fields-api.d.ts +150 -1
  274. package/dist/versions/v2/api/project-fields-api.js +221 -0
  275. package/dist/versions/v2/api/project-phases-api.d.ts +92 -1
  276. package/dist/versions/v2/api/project-phases-api.js +136 -0
  277. package/dist/versions/v2/api/project-templates-api.d.ts +38 -1
  278. package/dist/versions/v2/api/project-templates-api.js +55 -0
  279. package/dist/versions/v2/api/projects-api.d.ts +201 -1
  280. package/dist/versions/v2/api/projects-api.js +290 -0
  281. package/dist/versions/v2/api/stages-api.d.ts +96 -1
  282. package/dist/versions/v2/api/stages-api.js +140 -0
  283. package/dist/versions/v2/api/tasks-api.d.ts +98 -1
  284. package/dist/versions/v2/api/tasks-api.js +142 -0
  285. package/dist/versions/v2/api/users-api.d.ts +21 -1
  286. package/dist/versions/v2/api/users-api.js +29 -0
  287. package/dist/versions/v2/base.d.ts +17 -0
  288. package/dist/versions/v2/base.js +24 -1
  289. package/dist/versions/v2/common.d.ts +1 -1
  290. package/dist/versions/v2/common.js +6 -3
  291. package/dist/versions/v2/models/index.d.ts +2 -5
  292. package/dist/versions/v2/models/index.js +2 -5
  293. package/dist/versions/v2/models/prices-array.d.ts +3 -3
  294. package/dist/versions/v2/models/{product-request-prices-inner-all-of.d.ts → product-price-request.d.ts} +12 -2
  295. package/dist/{esm/versions/v2/models/prices-array-prices-inner-all-of.d.ts → versions/v2/models/product-price.d.ts} +12 -2
  296. package/dist/versions/v2/models/product-request.d.ts +3 -3
  297. package/package.json +1 -1
  298. package/dist/esm/versions/v1/models/deal-all-of-org-id.d.ts +0 -17
  299. package/dist/esm/versions/v1/models/deal-all-of-org-id.js +0 -14
  300. package/dist/esm/versions/v1/models/deal-all-of-person-id.d.ts +0 -17
  301. package/dist/esm/versions/v1/models/deal-all-of-person-id.js +0 -14
  302. package/dist/esm/versions/v1/models/note-deal-all-of.d.ts +0 -23
  303. package/dist/esm/versions/v1/models/note-deal-all-of.js +0 -14
  304. package/dist/esm/versions/v2/models/prices-array-prices-inner.d.ts +0 -18
  305. package/dist/esm/versions/v2/models/product-price-base.d.ts +0 -28
  306. package/dist/esm/versions/v2/models/product-price-base.js +0 -14
  307. package/dist/esm/versions/v2/models/product-request-prices-inner-all-of.js +0 -14
  308. package/dist/esm/versions/v2/models/product-request-prices-inner.d.ts +0 -18
  309. package/dist/esm/versions/v2/models/product-request-prices-inner.js +0 -14
  310. package/dist/versions/v1/models/deal-all-of-org-id.d.ts +0 -17
  311. package/dist/versions/v1/models/deal-all-of-org-id.js +0 -15
  312. package/dist/versions/v1/models/deal-all-of-person-id.d.ts +0 -17
  313. package/dist/versions/v1/models/deal-all-of-person-id.js +0 -15
  314. package/dist/versions/v1/models/note-deal-all-of.d.ts +0 -23
  315. package/dist/versions/v1/models/note-deal-all-of.js +0 -15
  316. package/dist/versions/v2/models/prices-array-prices-inner.d.ts +0 -18
  317. package/dist/versions/v2/models/product-price-base.d.ts +0 -28
  318. package/dist/versions/v2/models/product-price-base.js +0 -15
  319. package/dist/versions/v2/models/product-request-prices-inner-all-of.js +0 -15
  320. package/dist/versions/v2/models/product-request-prices-inner.d.ts +0 -18
  321. package/dist/versions/v2/models/product-request-prices-inner.js +0 -15
  322. /package/dist/esm/versions/v2/models/{prices-array-prices-inner-all-of.js → product-price-request.js} +0 -0
  323. /package/dist/esm/versions/v2/models/{prices-array-prices-inner.js → product-price.js} +0 -0
  324. /package/dist/versions/v2/models/{prices-array-prices-inner-all-of.js → product-price-request.js} +0 -0
  325. /package/dist/versions/v2/models/{prices-array-prices-inner.js → product-price.js} +0 -0
@@ -259,6 +259,19 @@ const TasksApiFp = function (configuration) {
259
259
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
260
260
  });
261
261
  },
262
+ /**
263
+ * Same as `addTask`, but resolves with the response body together with the HTTP status and headers.
264
+ * @summary Add a task
265
+ * @param {AddTaskRequest} AddTaskRequest
266
+
267
+ * @throws {RequiredError}
268
+ */
269
+ addTaskWithHttpInfo(AddTaskRequest) {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addTask(AddTaskRequest);
272
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
273
+ });
274
+ },
262
275
  /**
263
276
  * Marks a task as deleted. If the task has subtasks, those will also be deleted.
264
277
  * @summary Delete a task
@@ -272,6 +285,19 @@ const TasksApiFp = function (configuration) {
272
285
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
273
286
  });
274
287
  },
288
+ /**
289
+ * Same as `deleteTask`, but resolves with the response body together with the HTTP status and headers.
290
+ * @summary Delete a task
291
+ * @param {number} id The ID of the task
292
+
293
+ * @throws {RequiredError}
294
+ */
295
+ deleteTaskWithHttpInfo(id) {
296
+ return __awaiter(this, void 0, void 0, function* () {
297
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTask(id);
298
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
299
+ });
300
+ },
275
301
  /**
276
302
  * Returns the details of a specific task.
277
303
  * @summary Get details of a task
@@ -285,6 +311,19 @@ const TasksApiFp = function (configuration) {
285
311
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
286
312
  });
287
313
  },
314
+ /**
315
+ * Same as `getTask`, but resolves with the response body together with the HTTP status and headers.
316
+ * @summary Get details of a task
317
+ * @param {number} id The ID of the task
318
+
319
+ * @throws {RequiredError}
320
+ */
321
+ getTaskWithHttpInfo(id) {
322
+ return __awaiter(this, void 0, void 0, function* () {
323
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTask(id);
324
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
325
+ });
326
+ },
288
327
  /**
289
328
  * Returns all tasks.
290
329
  * @summary Get all tasks
@@ -304,6 +343,25 @@ const TasksApiFp = function (configuration) {
304
343
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
305
344
  });
306
345
  },
346
+ /**
347
+ * Same as `getTasks`, but resolves with the response body together with the HTTP status and headers.
348
+ * @summary Get all tasks
349
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
350
+ * @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.
351
+ * @param {boolean} [is_done] Whether the task is done or not. If omitted, both done and not done tasks are returned.
352
+ * @param {boolean} [is_milestone] Whether the task is a milestone or not. If omitted, both milestone and non-milestone tasks are returned.
353
+ * @param {number} [assignee_id] If supplied, only tasks assigned to this user are returned
354
+ * @param {number} [project_id] If supplied, only tasks belonging to this project are returned
355
+ * @param {string} [parent_task_id] If `null` is supplied, only root-level tasks (without a parent) are returned. If an integer is supplied, only subtasks of that specific task are returned. By default all tasks are returned.
356
+
357
+ * @throws {RequiredError}
358
+ */
359
+ getTasksWithHttpInfo(cursor, limit, is_done, is_milestone, assignee_id, project_id, parent_task_id) {
360
+ return __awaiter(this, void 0, void 0, function* () {
361
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTasks(cursor, limit, is_done, is_milestone, assignee_id, project_id, parent_task_id);
362
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
363
+ });
364
+ },
307
365
  /**
308
366
  * Updates a task.
309
367
  * @summary Update a task
@@ -318,6 +376,20 @@ const TasksApiFp = function (configuration) {
318
376
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
319
377
  });
320
378
  },
379
+ /**
380
+ * Same as `updateTask`, but resolves with the response body together with the HTTP status and headers.
381
+ * @summary Update a task
382
+ * @param {number} id The ID of the task
383
+ * @param {UpdateTaskRequest} [UpdateTaskRequest]
384
+
385
+ * @throws {RequiredError}
386
+ */
387
+ updateTaskWithHttpInfo(id, UpdateTaskRequest) {
388
+ return __awaiter(this, void 0, void 0, function* () {
389
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTask(id, UpdateTaskRequest);
390
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
391
+ });
392
+ },
321
393
  };
322
394
  };
323
395
  exports.TasksApiFp = TasksApiFp;
@@ -338,6 +410,9 @@ const TasksApiFactory = function (configuration, basePath, axios) {
338
410
  addTask(requestParameters) {
339
411
  return localVarFp.addTask(requestParameters.AddTaskRequest).then((request) => request(axios, basePath));
340
412
  },
413
+ addTaskWithHttpInfo(requestParameters) {
414
+ return localVarFp.addTaskWithHttpInfo(requestParameters.AddTaskRequest).then((request) => request(axios, basePath));
415
+ },
341
416
  /**
342
417
  * Marks a task as deleted. If the task has subtasks, those will also be deleted.
343
418
  * @summary Delete a task
@@ -348,6 +423,9 @@ const TasksApiFactory = function (configuration, basePath, axios) {
348
423
  deleteTask(requestParameters) {
349
424
  return localVarFp.deleteTask(requestParameters.id).then((request) => request(axios, basePath));
350
425
  },
426
+ deleteTaskWithHttpInfo(requestParameters) {
427
+ return localVarFp.deleteTaskWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
428
+ },
351
429
  /**
352
430
  * Returns the details of a specific task.
353
431
  * @summary Get details of a task
@@ -358,6 +436,9 @@ const TasksApiFactory = function (configuration, basePath, axios) {
358
436
  getTask(requestParameters) {
359
437
  return localVarFp.getTask(requestParameters.id).then((request) => request(axios, basePath));
360
438
  },
439
+ getTaskWithHttpInfo(requestParameters) {
440
+ return localVarFp.getTaskWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
441
+ },
361
442
  /**
362
443
  * Returns all tasks.
363
444
  * @summary Get all tasks
@@ -368,6 +449,9 @@ const TasksApiFactory = function (configuration, basePath, axios) {
368
449
  getTasks(requestParameters = {}) {
369
450
  return localVarFp.getTasks(requestParameters.cursor, requestParameters.limit, requestParameters.is_done, requestParameters.is_milestone, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id).then((request) => request(axios, basePath));
370
451
  },
452
+ getTasksWithHttpInfo(requestParameters = {}) {
453
+ return localVarFp.getTasksWithHttpInfo(requestParameters.cursor, requestParameters.limit, requestParameters.is_done, requestParameters.is_milestone, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id).then((request) => request(axios, basePath));
454
+ },
371
455
  /**
372
456
  * Updates a task.
373
457
  * @summary Update a task
@@ -378,6 +462,9 @@ const TasksApiFactory = function (configuration, basePath, axios) {
378
462
  updateTask(requestParameters) {
379
463
  return localVarFp.updateTask(requestParameters.id, requestParameters.UpdateTaskRequest).then((request) => request(axios, basePath));
380
464
  },
465
+ updateTaskWithHttpInfo(requestParameters) {
466
+ return localVarFp.updateTaskWithHttpInfo(requestParameters.id, requestParameters.UpdateTaskRequest).then((request) => request(axios, basePath));
467
+ },
381
468
  };
382
469
  };
383
470
  exports.TasksApiFactory = TasksApiFactory;
@@ -399,6 +486,17 @@ class TasksApi extends base_1.BaseAPI {
399
486
  addTask(requestParameters) {
400
487
  return (0, exports.TasksApiFp)(this.configuration).addTask(requestParameters.AddTaskRequest).then((request) => request(this.axios, this.basePath));
401
488
  }
489
+ /**
490
+ * Same as `addTask`, but resolves with the response body together with the HTTP status and headers.
491
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
492
+ * @param {TasksApiAddTaskRequest} requestParameters Request parameters.
493
+
494
+ * @throws {RequiredError}
495
+ * @memberof TasksApi
496
+ */
497
+ addTaskWithHttpInfo(requestParameters) {
498
+ return (0, exports.TasksApiFp)(this.configuration).addTaskWithHttpInfo(requestParameters.AddTaskRequest).then((request) => request(this.axios, this.basePath));
499
+ }
402
500
  /**
403
501
  * Marks a task as deleted. If the task has subtasks, those will also be deleted.
404
502
  * @summary Delete a task
@@ -410,6 +508,17 @@ class TasksApi extends base_1.BaseAPI {
410
508
  deleteTask(requestParameters) {
411
509
  return (0, exports.TasksApiFp)(this.configuration).deleteTask(requestParameters.id).then((request) => request(this.axios, this.basePath));
412
510
  }
511
+ /**
512
+ * Same as `deleteTask`, but resolves with the response body together with the HTTP status and headers.
513
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
514
+ * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters.
515
+
516
+ * @throws {RequiredError}
517
+ * @memberof TasksApi
518
+ */
519
+ deleteTaskWithHttpInfo(requestParameters) {
520
+ return (0, exports.TasksApiFp)(this.configuration).deleteTaskWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
521
+ }
413
522
  /**
414
523
  * Returns the details of a specific task.
415
524
  * @summary Get details of a task
@@ -421,6 +530,17 @@ class TasksApi extends base_1.BaseAPI {
421
530
  getTask(requestParameters) {
422
531
  return (0, exports.TasksApiFp)(this.configuration).getTask(requestParameters.id).then((request) => request(this.axios, this.basePath));
423
532
  }
533
+ /**
534
+ * Same as `getTask`, but resolves with the response body together with the HTTP status and headers.
535
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
536
+ * @param {TasksApiGetTaskRequest} requestParameters Request parameters.
537
+
538
+ * @throws {RequiredError}
539
+ * @memberof TasksApi
540
+ */
541
+ getTaskWithHttpInfo(requestParameters) {
542
+ return (0, exports.TasksApiFp)(this.configuration).getTaskWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
543
+ }
424
544
  /**
425
545
  * Returns all tasks.
426
546
  * @summary Get all tasks
@@ -432,6 +552,17 @@ class TasksApi extends base_1.BaseAPI {
432
552
  getTasks(requestParameters = {}) {
433
553
  return (0, exports.TasksApiFp)(this.configuration).getTasks(requestParameters.cursor, requestParameters.limit, requestParameters.is_done, requestParameters.is_milestone, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id).then((request) => request(this.axios, this.basePath));
434
554
  }
555
+ /**
556
+ * Same as `getTasks`, but resolves with the response body together with the HTTP status and headers.
557
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
558
+ * @param {TasksApiGetTasksRequest} requestParameters Request parameters.
559
+
560
+ * @throws {RequiredError}
561
+ * @memberof TasksApi
562
+ */
563
+ getTasksWithHttpInfo(requestParameters = {}) {
564
+ return (0, exports.TasksApiFp)(this.configuration).getTasksWithHttpInfo(requestParameters.cursor, requestParameters.limit, requestParameters.is_done, requestParameters.is_milestone, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id).then((request) => request(this.axios, this.basePath));
565
+ }
435
566
  /**
436
567
  * Updates a task.
437
568
  * @summary Update a task
@@ -443,5 +574,16 @@ class TasksApi extends base_1.BaseAPI {
443
574
  updateTask(requestParameters) {
444
575
  return (0, exports.TasksApiFp)(this.configuration).updateTask(requestParameters.id, requestParameters.UpdateTaskRequest).then((request) => request(this.axios, this.basePath));
445
576
  }
577
+ /**
578
+ * Same as `updateTask`, but resolves with the response body together with the HTTP status and headers.
579
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
580
+ * @param {TasksApiUpdateTaskRequest} requestParameters Request parameters.
581
+
582
+ * @throws {RequiredError}
583
+ * @memberof TasksApi
584
+ */
585
+ updateTaskWithHttpInfo(requestParameters) {
586
+ return (0, exports.TasksApiFp)(this.configuration).updateTaskWithHttpInfo(requestParameters.id, requestParameters.UpdateTaskRequest).then((request) => request(this.axios, this.basePath));
587
+ }
446
588
  }
447
589
  exports.TasksApi = TasksApi;
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosInstance } from 'axios';
14
- import { RequestArgs, BaseAPI } from '../base';
14
+ import { RequestArgs, BaseAPI, ApiResponse } from '../base';
15
15
  import { GetFollowersResponse } from '../models';
16
16
  /**
17
17
  * UsersApi - axios parameter creator
@@ -44,6 +44,16 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
44
44
  * @throws {RequiredError}
45
45
  */
46
46
  getUserFollowers(id: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFollowersResponse>>;
47
+ /**
48
+ * Same as `getUserFollowers`, but resolves with the response body together with the HTTP status and headers.
49
+ * @summary List followers of a user
50
+ * @param {number} id The ID of the user
51
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
52
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
53
+
54
+ * @throws {RequiredError}
55
+ */
56
+ getUserFollowersWithHttpInfo(id: number, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetFollowersResponse>>>;
47
57
  };
48
58
  /**
49
59
  * UsersApi - factory interface
@@ -58,6 +68,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
58
68
  * @throws {RequiredError}
59
69
  */
60
70
  getUserFollowers(requestParameters: UsersApiGetUserFollowersRequest): Promise<GetFollowersResponse>;
71
+ getUserFollowersWithHttpInfo(requestParameters: UsersApiGetUserFollowersRequest): Promise<ApiResponse<GetFollowersResponse>>;
61
72
  };
62
73
  /**
63
74
  * Request parameters for getUserFollowers operation in UsersApi.
@@ -100,4 +111,13 @@ export declare class UsersApi extends BaseAPI {
100
111
  * @memberof UsersApi
101
112
  */
102
113
  getUserFollowers(requestParameters: UsersApiGetUserFollowersRequest): Promise<GetFollowersResponse>;
114
+ /**
115
+ * Same as `getUserFollowers`, but resolves with the response body together with the HTTP status and headers.
116
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
117
+ * @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters.
118
+
119
+ * @throws {RequiredError}
120
+ * @memberof UsersApi
121
+ */
122
+ getUserFollowersWithHttpInfo(requestParameters: UsersApiGetUserFollowersRequest): Promise<ApiResponse<GetFollowersResponse>>;
103
123
  }
@@ -105,6 +105,21 @@ const UsersApiFp = function (configuration) {
105
105
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
106
106
  });
107
107
  },
108
+ /**
109
+ * Same as `getUserFollowers`, but resolves with the response body together with the HTTP status and headers.
110
+ * @summary List followers of a user
111
+ * @param {number} id The ID of the user
112
+ * @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.
113
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
114
+
115
+ * @throws {RequiredError}
116
+ */
117
+ getUserFollowersWithHttpInfo(id, limit, cursor) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserFollowers(id, limit, cursor);
120
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
121
+ });
122
+ },
108
123
  };
109
124
  };
110
125
  exports.UsersApiFp = UsersApiFp;
@@ -125,6 +140,9 @@ const UsersApiFactory = function (configuration, basePath, axios) {
125
140
  getUserFollowers(requestParameters) {
126
141
  return localVarFp.getUserFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
127
142
  },
143
+ getUserFollowersWithHttpInfo(requestParameters) {
144
+ return localVarFp.getUserFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
145
+ },
128
146
  };
129
147
  };
130
148
  exports.UsersApiFactory = UsersApiFactory;
@@ -146,5 +164,16 @@ class UsersApi extends base_1.BaseAPI {
146
164
  getUserFollowers(requestParameters) {
147
165
  return (0, exports.UsersApiFp)(this.configuration).getUserFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
148
166
  }
167
+ /**
168
+ * Same as `getUserFollowers`, but resolves with the response body together with the HTTP status and headers.
169
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
170
+ * @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters.
171
+
172
+ * @throws {RequiredError}
173
+ * @memberof UsersApi
174
+ */
175
+ getUserFollowersWithHttpInfo(requestParameters) {
176
+ return (0, exports.UsersApiFp)(this.configuration).getUserFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
177
+ }
149
178
  }
150
179
  exports.UsersApi = UsersApi;
@@ -32,7 +32,24 @@ export interface RequestArgs {
32
32
  options: AxiosRequestConfig;
33
33
  }
34
34
  export declare const versionInterceptor: (config: InternalAxiosRequestConfig) => Promise<InternalAxiosRequestConfig<any>>;
35
+ /**
36
+ * Response returned by the `*WithHttpInfo` methods: the parsed body together with the HTTP metadata.
37
+ *
38
+ * @export
39
+ * @interface ApiResponse
40
+ */
41
+ export interface ApiResponse<T> {
42
+ data: T;
43
+ status: number;
44
+ headers: AxiosResponse['headers'];
45
+ }
35
46
  export declare const responseInterceptor: (response: AxiosResponse) => any;
47
+ /**
48
+ * Turns a raw AxiosError into the rejection used by the `*WithHttpInfo` methods: the error body fields (if any)
49
+ * plus `$response: { status, headers }`. Values that are not AxiosErrors with a response, including errors that
50
+ * were already normalized, are returned unchanged.
51
+ */
52
+ export declare const toFullResponseError: (error: any) => any;
36
53
  export declare const errorInterceptor: (error: AxiosError) => Promise<never>;
37
54
  /**
38
55
  *
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.RequiredError = exports.BaseAPI = exports.errorInterceptor = exports.responseInterceptor = exports.versionInterceptor = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
28
+ exports.RequiredError = exports.BaseAPI = exports.errorInterceptor = exports.toFullResponseError = exports.responseInterceptor = exports.versionInterceptor = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // eslint-disable-next-line @typescript-eslint/no-var-requires
31
31
  const _pkg = require('../../../package.json');
@@ -45,11 +45,34 @@ const versionInterceptor = (config) => __awaiter(void 0, void 0, void 0, functio
45
45
  return config;
46
46
  });
47
47
  exports.versionInterceptor = versionInterceptor;
48
+ // Set by the `*WithHttpInfo` methods to keep status and headers instead of returning only the body.
49
+ const wantsFullResponse = (config) => !!(config === null || config === void 0 ? void 0 : config.fullResponse);
48
50
  const responseInterceptor = (response) => {
51
+ if (wantsFullResponse(response === null || response === void 0 ? void 0 : response.config)) {
52
+ return { data: response.data, status: response.status, headers: response.headers };
53
+ }
49
54
  return (response === null || response === void 0 ? void 0 : response.data) ? response.data : response;
50
55
  };
51
56
  exports.responseInterceptor = responseInterceptor;
57
+ /**
58
+ * Turns a raw AxiosError into the rejection used by the `*WithHttpInfo` methods: the error body fields (if any)
59
+ * plus `$response: { status, headers }`. Values that are not AxiosErrors with a response, including errors that
60
+ * were already normalized, are returned unchanged.
61
+ */
62
+ const toFullResponseError = (error) => {
63
+ if (!(error === null || error === void 0 ? void 0 : error.isAxiosError) || !error.response) {
64
+ return error;
65
+ }
66
+ const { data, status, headers } = error.response;
67
+ const body = data && typeof data === 'object' ? data : data ? { data } : {};
68
+ return Object.assign(Object.assign({}, body), { $response: { status, headers } });
69
+ };
70
+ exports.toFullResponseError = toFullResponseError;
52
71
  const errorInterceptor = (error) => {
72
+ if (error.response && wantsFullResponse(error.config)) {
73
+ // Applies to empty error bodies too, so headers such as Retry-After are not lost.
74
+ return Promise.reject((0, exports.toFullResponseError)(error));
75
+ }
53
76
  if (error.response && error.response.data) {
54
77
  return Promise.reject(error.response.data);
55
78
  }
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration, fullResponse?: boolean) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -149,12 +149,15 @@ exports.toPathString = toPathString;
149
149
  *
150
150
  * @export
151
151
  */
152
- const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
152
+ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration, fullResponse = false) {
153
153
  // Explicit return type + cast avoid inferring axios's internal AxiosResponseResult type,
154
154
  // which references a module-private `unique symbol` and breaks `tsc --declaration` (TS2742).
155
155
  return (axios = globalAxios, basePath = BASE_PATH) => {
156
- const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
157
- return axios.request(axiosRequestArgs);
156
+ const axiosRequestArgs = Object.assign(Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url }), (fullResponse ? { fullResponse } : {}));
157
+ const request = axios.request(axiosRequestArgs);
158
+ // Instances without the SDK's interceptors (e.g. the default global axios used by Fp and Factory calls)
159
+ // reject with a raw AxiosError, so give full-response errors the same shape as the class API.
160
+ return fullResponse ? request.catch((error) => Promise.reject((0, base_1.toFullResponseError)(error))) : request;
158
161
  };
159
162
  };
160
163
  exports.createRequestFunction = createRequestFunction;
@@ -261,12 +261,9 @@ export * from './person-item-email';
261
261
  export * from './person-item-im';
262
262
  export * from './person-item-phone';
263
263
  export * from './prices-array';
264
- export * from './prices-array-prices-inner';
265
- export * from './prices-array-prices-inner-all-of';
266
- export * from './product-price-base';
264
+ export * from './product-price';
265
+ export * from './product-price-request';
267
266
  export * from './product-request';
268
- export * from './product-request-prices-inner';
269
- export * from './product-request-prices-inner-all-of';
270
267
  export * from './project';
271
268
  export * from './project-template';
272
269
  export * from './stage-item';
@@ -277,12 +277,9 @@ __exportStar(require("./person-item-email"), exports);
277
277
  __exportStar(require("./person-item-im"), exports);
278
278
  __exportStar(require("./person-item-phone"), exports);
279
279
  __exportStar(require("./prices-array"), exports);
280
- __exportStar(require("./prices-array-prices-inner"), exports);
281
- __exportStar(require("./prices-array-prices-inner-all-of"), exports);
282
- __exportStar(require("./product-price-base"), exports);
280
+ __exportStar(require("./product-price"), exports);
281
+ __exportStar(require("./product-price-request"), exports);
283
282
  __exportStar(require("./product-request"), exports);
284
- __exportStar(require("./product-request-prices-inner"), exports);
285
- __exportStar(require("./product-request-prices-inner-all-of"), exports);
286
283
  __exportStar(require("./project"), exports);
287
284
  __exportStar(require("./project-template"), exports);
288
285
  __exportStar(require("./stage-item"), exports);
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { PricesArrayPricesInner } from './prices-array-prices-inner';
12
+ import { ProductPrice } from './product-price';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,7 +18,7 @@ import { PricesArrayPricesInner } from './prices-array-prices-inner';
18
18
  export interface PricesArray {
19
19
  /**
20
20
  * The prices of the product in different currencies
21
- * @type {Array<PricesArrayPricesInner>}
21
+ * @type {Array<ProductPrice>}
22
22
  */
23
- 'prices'?: Array<PricesArrayPricesInner>;
23
+ 'prices'?: Array<ProductPrice>;
24
24
  }
@@ -12,15 +12,25 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface ProductRequestPricesInnerAllOf
15
+ * @interface ProductPriceRequest
16
16
  */
17
- export interface ProductRequestPricesInnerAllOf {
17
+ export interface ProductPriceRequest {
18
+ /**
19
+ * The price of the product
20
+ * @type {number}
21
+ */
22
+ 'price': number;
18
23
  /**
19
24
  * The currency of the price
20
25
  * @type {string}
21
26
  */
22
27
  'currency': string;
23
28
  /**
29
+ * The cost of the product
30
+ * @type {number}
31
+ */
32
+ 'cost'?: number;
33
+ /**
24
34
  * The direct cost of the product
25
35
  * @type {number}
26
36
  */
@@ -12,9 +12,19 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface PricesArrayPricesInnerAllOf
15
+ * @interface ProductPrice
16
16
  */
17
- export interface PricesArrayPricesInnerAllOf {
17
+ export interface ProductPrice {
18
+ /**
19
+ * The price of the product
20
+ * @type {number}
21
+ */
22
+ 'price'?: number;
23
+ /**
24
+ * The cost of the product
25
+ * @type {number}
26
+ */
27
+ 'cost'?: number;
18
28
  /**
19
29
  * The ID of the product
20
30
  * @type {number}
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ProductRequestPricesInner } from './product-request-prices-inner';
12
+ import { ProductPriceRequest } from './product-price-request';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -58,9 +58,9 @@ export interface ProductRequest {
58
58
  'visible_to'?: ProductRequestVisibleToConst;
59
59
  /**
60
60
  * The prices of the product in different currencies. Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and the user\'s default currency will be assigned.
61
- * @type {Array<ProductRequestPricesInner>}
61
+ * @type {Array<ProductPriceRequest>}
62
62
  */
63
- 'prices'?: Array<ProductRequestPricesInner>;
63
+ 'prices'?: Array<ProductPriceRequest>;
64
64
  /**
65
65
  * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes. To clear a custom field value, set it to `null`. For multi-option fields (field type `set`), use `null` to clear the selection — sending an empty array `[]` is not supported and will result in a validation error.
66
66
  * @type {{ [key: string]: any | undefined; }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "36.0.0",
3
+ "version": "36.1.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "homepage": "https://developers.pipedrive.com",
@@ -1,17 +0,0 @@
1
- /**
2
- * Pipedrive API v1
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { DealOrganizationDataWithId } from './deal-organization-data-with-id';
13
- /**
14
- * @type DealAllOfOrgId
15
- * @export
16
- */
17
- export type DealAllOfOrgId = DealOrganizationDataWithId;
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Pipedrive API v1
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,17 +0,0 @@
1
- /**
2
- * Pipedrive API v1
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { DealPersonDataWithId } from './deal-person-data-with-id';
13
- /**
14
- * @type DealAllOfPersonId
15
- * @export
16
- */
17
- export type DealAllOfPersonId = DealPersonDataWithId;
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Pipedrive API v1
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};