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
@@ -357,6 +357,19 @@ const LegacyTeamsApiFp = function (configuration) {
357
357
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
358
358
  });
359
359
  },
360
+ /**
361
+ * Same as `addTeam`, but resolves with the response body together with the HTTP status and headers.
362
+ * @summary Add a new team
363
+ * @param {AddTeamRequest1} [AddTeamRequest1]
364
+
365
+ * @throws {RequiredError}
366
+ */
367
+ addTeamWithHttpInfo(AddTeamRequest1) {
368
+ return __awaiter(this, void 0, void 0, function* () {
369
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addTeam(AddTeamRequest1);
370
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
371
+ });
372
+ },
360
373
  /**
361
374
  * Adds users to an existing team.
362
375
  * @summary Add users to a team
@@ -371,6 +384,20 @@ const LegacyTeamsApiFp = function (configuration) {
371
384
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
372
385
  });
373
386
  },
387
+ /**
388
+ * Same as `addTeamUser`, but resolves with the response body together with the HTTP status and headers.
389
+ * @summary Add users to a team
390
+ * @param {number} id The ID of the team
391
+ * @param {AddTeamUserRequest} [AddTeamUserRequest]
392
+
393
+ * @throws {RequiredError}
394
+ */
395
+ addTeamUserWithHttpInfo(id, AddTeamUserRequest) {
396
+ return __awaiter(this, void 0, void 0, function* () {
397
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addTeamUser(id, AddTeamUserRequest);
398
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
399
+ });
400
+ },
374
401
  /**
375
402
  * Deletes users from an existing team.
376
403
  * @summary Delete users from a team
@@ -385,6 +412,20 @@ const LegacyTeamsApiFp = function (configuration) {
385
412
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
386
413
  });
387
414
  },
415
+ /**
416
+ * Same as `deleteTeamUser`, but resolves with the response body together with the HTTP status and headers.
417
+ * @summary Delete users from a team
418
+ * @param {number} id The ID of the team
419
+ * @param {DeleteTeamUserRequest} [DeleteTeamUserRequest]
420
+
421
+ * @throws {RequiredError}
422
+ */
423
+ deleteTeamUserWithHttpInfo(id, DeleteTeamUserRequest) {
424
+ return __awaiter(this, void 0, void 0, function* () {
425
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTeamUser(id, DeleteTeamUserRequest);
426
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
427
+ });
428
+ },
388
429
  /**
389
430
  * Returns data about a specific team.
390
431
  * @summary Get a single team
@@ -399,6 +440,20 @@ const LegacyTeamsApiFp = function (configuration) {
399
440
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
400
441
  });
401
442
  },
443
+ /**
444
+ * Same as `getTeam`, but resolves with the response body together with the HTTP status and headers.
445
+ * @summary Get a single team
446
+ * @param {number} id The ID of the team
447
+ * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users
448
+
449
+ * @throws {RequiredError}
450
+ */
451
+ getTeamWithHttpInfo(id, skip_users) {
452
+ return __awaiter(this, void 0, void 0, function* () {
453
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTeam(id, skip_users);
454
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
455
+ });
456
+ },
402
457
  /**
403
458
  * Returns a list of all user IDs within a team.
404
459
  * @summary Get all users in a team
@@ -412,6 +467,19 @@ const LegacyTeamsApiFp = function (configuration) {
412
467
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
413
468
  });
414
469
  },
470
+ /**
471
+ * Same as `getTeamUsers`, but resolves with the response body together with the HTTP status and headers.
472
+ * @summary Get all users in a team
473
+ * @param {number} id The ID of the team
474
+
475
+ * @throws {RequiredError}
476
+ */
477
+ getTeamUsersWithHttpInfo(id) {
478
+ return __awaiter(this, void 0, void 0, function* () {
479
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTeamUsers(id);
480
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
481
+ });
482
+ },
415
483
  /**
416
484
  * Returns data about teams within the company.
417
485
  * @summary Get all teams
@@ -426,6 +494,20 @@ const LegacyTeamsApiFp = function (configuration) {
426
494
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
427
495
  });
428
496
  },
497
+ /**
498
+ * Same as `getTeams`, but resolves with the response body together with the HTTP status and headers.
499
+ * @summary Get all teams
500
+ * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by
501
+ * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users
502
+
503
+ * @throws {RequiredError}
504
+ */
505
+ getTeamsWithHttpInfo(order_by, skip_users) {
506
+ return __awaiter(this, void 0, void 0, function* () {
507
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTeams(order_by, skip_users);
508
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
509
+ });
510
+ },
429
511
  /**
430
512
  * Returns data about all teams which have the specified user as a member.
431
513
  * @summary Get all teams of a user
@@ -441,6 +523,21 @@ const LegacyTeamsApiFp = function (configuration) {
441
523
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
442
524
  });
443
525
  },
526
+ /**
527
+ * Same as `getUserTeams`, but resolves with the response body together with the HTTP status and headers.
528
+ * @summary Get all teams of a user
529
+ * @param {number} id The ID of the user
530
+ * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by
531
+ * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users
532
+
533
+ * @throws {RequiredError}
534
+ */
535
+ getUserTeamsWithHttpInfo(id, order_by, skip_users) {
536
+ return __awaiter(this, void 0, void 0, function* () {
537
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserTeams(id, order_by, skip_users);
538
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
539
+ });
540
+ },
444
541
  /**
445
542
  * Updates an existing team and returns the updated object.
446
543
  * @summary Update a team
@@ -455,6 +552,20 @@ const LegacyTeamsApiFp = function (configuration) {
455
552
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
456
553
  });
457
554
  },
555
+ /**
556
+ * Same as `updateTeam`, but resolves with the response body together with the HTTP status and headers.
557
+ * @summary Update a team
558
+ * @param {number} id The ID of the team
559
+ * @param {UpdateTeamRequest} [UpdateTeamRequest]
560
+
561
+ * @throws {RequiredError}
562
+ */
563
+ updateTeamWithHttpInfo(id, UpdateTeamRequest) {
564
+ return __awaiter(this, void 0, void 0, function* () {
565
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTeam(id, UpdateTeamRequest);
566
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
567
+ });
568
+ },
458
569
  };
459
570
  };
460
571
  exports.LegacyTeamsApiFp = LegacyTeamsApiFp;
@@ -475,6 +586,9 @@ const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
475
586
  addTeam(requestParameters = {}) {
476
587
  return localVarFp.addTeam(requestParameters.AddTeamRequest1).then((request) => request(axios, basePath));
477
588
  },
589
+ addTeamWithHttpInfo(requestParameters = {}) {
590
+ return localVarFp.addTeamWithHttpInfo(requestParameters.AddTeamRequest1).then((request) => request(axios, basePath));
591
+ },
478
592
  /**
479
593
  * Adds users to an existing team.
480
594
  * @summary Add users to a team
@@ -485,6 +599,9 @@ const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
485
599
  addTeamUser(requestParameters) {
486
600
  return localVarFp.addTeamUser(requestParameters.id, requestParameters.AddTeamUserRequest).then((request) => request(axios, basePath));
487
601
  },
602
+ addTeamUserWithHttpInfo(requestParameters) {
603
+ return localVarFp.addTeamUserWithHttpInfo(requestParameters.id, requestParameters.AddTeamUserRequest).then((request) => request(axios, basePath));
604
+ },
488
605
  /**
489
606
  * Deletes users from an existing team.
490
607
  * @summary Delete users from a team
@@ -495,6 +612,9 @@ const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
495
612
  deleteTeamUser(requestParameters) {
496
613
  return localVarFp.deleteTeamUser(requestParameters.id, requestParameters.DeleteTeamUserRequest).then((request) => request(axios, basePath));
497
614
  },
615
+ deleteTeamUserWithHttpInfo(requestParameters) {
616
+ return localVarFp.deleteTeamUserWithHttpInfo(requestParameters.id, requestParameters.DeleteTeamUserRequest).then((request) => request(axios, basePath));
617
+ },
498
618
  /**
499
619
  * Returns data about a specific team.
500
620
  * @summary Get a single team
@@ -505,6 +625,9 @@ const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
505
625
  getTeam(requestParameters) {
506
626
  return localVarFp.getTeam(requestParameters.id, requestParameters.skip_users).then((request) => request(axios, basePath));
507
627
  },
628
+ getTeamWithHttpInfo(requestParameters) {
629
+ return localVarFp.getTeamWithHttpInfo(requestParameters.id, requestParameters.skip_users).then((request) => request(axios, basePath));
630
+ },
508
631
  /**
509
632
  * Returns a list of all user IDs within a team.
510
633
  * @summary Get all users in a team
@@ -515,6 +638,9 @@ const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
515
638
  getTeamUsers(requestParameters) {
516
639
  return localVarFp.getTeamUsers(requestParameters.id).then((request) => request(axios, basePath));
517
640
  },
641
+ getTeamUsersWithHttpInfo(requestParameters) {
642
+ return localVarFp.getTeamUsersWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
643
+ },
518
644
  /**
519
645
  * Returns data about teams within the company.
520
646
  * @summary Get all teams
@@ -525,6 +651,9 @@ const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
525
651
  getTeams(requestParameters = {}) {
526
652
  return localVarFp.getTeams(requestParameters.order_by, requestParameters.skip_users).then((request) => request(axios, basePath));
527
653
  },
654
+ getTeamsWithHttpInfo(requestParameters = {}) {
655
+ return localVarFp.getTeamsWithHttpInfo(requestParameters.order_by, requestParameters.skip_users).then((request) => request(axios, basePath));
656
+ },
528
657
  /**
529
658
  * Returns data about all teams which have the specified user as a member.
530
659
  * @summary Get all teams of a user
@@ -535,6 +664,9 @@ const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
535
664
  getUserTeams(requestParameters) {
536
665
  return localVarFp.getUserTeams(requestParameters.id, requestParameters.order_by, requestParameters.skip_users).then((request) => request(axios, basePath));
537
666
  },
667
+ getUserTeamsWithHttpInfo(requestParameters) {
668
+ return localVarFp.getUserTeamsWithHttpInfo(requestParameters.id, requestParameters.order_by, requestParameters.skip_users).then((request) => request(axios, basePath));
669
+ },
538
670
  /**
539
671
  * Updates an existing team and returns the updated object.
540
672
  * @summary Update a team
@@ -545,6 +677,9 @@ const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
545
677
  updateTeam(requestParameters) {
546
678
  return localVarFp.updateTeam(requestParameters.id, requestParameters.UpdateTeamRequest).then((request) => request(axios, basePath));
547
679
  },
680
+ updateTeamWithHttpInfo(requestParameters) {
681
+ return localVarFp.updateTeamWithHttpInfo(requestParameters.id, requestParameters.UpdateTeamRequest).then((request) => request(axios, basePath));
682
+ },
548
683
  };
549
684
  };
550
685
  exports.LegacyTeamsApiFactory = LegacyTeamsApiFactory;
@@ -566,6 +701,17 @@ class LegacyTeamsApi extends base_1.BaseAPI {
566
701
  addTeam(requestParameters = {}) {
567
702
  return (0, exports.LegacyTeamsApiFp)(this.configuration).addTeam(requestParameters.AddTeamRequest1).then((request) => request(this.axios, this.basePath));
568
703
  }
704
+ /**
705
+ * Same as `addTeam`, but resolves with the response body together with the HTTP status and headers.
706
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
707
+ * @param {LegacyTeamsApiAddTeamRequest} requestParameters Request parameters.
708
+
709
+ * @throws {RequiredError}
710
+ * @memberof LegacyTeamsApi
711
+ */
712
+ addTeamWithHttpInfo(requestParameters = {}) {
713
+ return (0, exports.LegacyTeamsApiFp)(this.configuration).addTeamWithHttpInfo(requestParameters.AddTeamRequest1).then((request) => request(this.axios, this.basePath));
714
+ }
569
715
  /**
570
716
  * Adds users to an existing team.
571
717
  * @summary Add users to a team
@@ -577,6 +723,17 @@ class LegacyTeamsApi extends base_1.BaseAPI {
577
723
  addTeamUser(requestParameters) {
578
724
  return (0, exports.LegacyTeamsApiFp)(this.configuration).addTeamUser(requestParameters.id, requestParameters.AddTeamUserRequest).then((request) => request(this.axios, this.basePath));
579
725
  }
726
+ /**
727
+ * Same as `addTeamUser`, but resolves with the response body together with the HTTP status and headers.
728
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
729
+ * @param {LegacyTeamsApiAddTeamUserRequest} requestParameters Request parameters.
730
+
731
+ * @throws {RequiredError}
732
+ * @memberof LegacyTeamsApi
733
+ */
734
+ addTeamUserWithHttpInfo(requestParameters) {
735
+ return (0, exports.LegacyTeamsApiFp)(this.configuration).addTeamUserWithHttpInfo(requestParameters.id, requestParameters.AddTeamUserRequest).then((request) => request(this.axios, this.basePath));
736
+ }
580
737
  /**
581
738
  * Deletes users from an existing team.
582
739
  * @summary Delete users from a team
@@ -588,6 +745,17 @@ class LegacyTeamsApi extends base_1.BaseAPI {
588
745
  deleteTeamUser(requestParameters) {
589
746
  return (0, exports.LegacyTeamsApiFp)(this.configuration).deleteTeamUser(requestParameters.id, requestParameters.DeleteTeamUserRequest).then((request) => request(this.axios, this.basePath));
590
747
  }
748
+ /**
749
+ * Same as `deleteTeamUser`, but resolves with the response body together with the HTTP status and headers.
750
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
751
+ * @param {LegacyTeamsApiDeleteTeamUserRequest} requestParameters Request parameters.
752
+
753
+ * @throws {RequiredError}
754
+ * @memberof LegacyTeamsApi
755
+ */
756
+ deleteTeamUserWithHttpInfo(requestParameters) {
757
+ return (0, exports.LegacyTeamsApiFp)(this.configuration).deleteTeamUserWithHttpInfo(requestParameters.id, requestParameters.DeleteTeamUserRequest).then((request) => request(this.axios, this.basePath));
758
+ }
591
759
  /**
592
760
  * Returns data about a specific team.
593
761
  * @summary Get a single team
@@ -599,6 +767,17 @@ class LegacyTeamsApi extends base_1.BaseAPI {
599
767
  getTeam(requestParameters) {
600
768
  return (0, exports.LegacyTeamsApiFp)(this.configuration).getTeam(requestParameters.id, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
601
769
  }
770
+ /**
771
+ * Same as `getTeam`, but resolves with the response body together with the HTTP status and headers.
772
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
773
+ * @param {LegacyTeamsApiGetTeamRequest} requestParameters Request parameters.
774
+
775
+ * @throws {RequiredError}
776
+ * @memberof LegacyTeamsApi
777
+ */
778
+ getTeamWithHttpInfo(requestParameters) {
779
+ return (0, exports.LegacyTeamsApiFp)(this.configuration).getTeamWithHttpInfo(requestParameters.id, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
780
+ }
602
781
  /**
603
782
  * Returns a list of all user IDs within a team.
604
783
  * @summary Get all users in a team
@@ -610,6 +789,17 @@ class LegacyTeamsApi extends base_1.BaseAPI {
610
789
  getTeamUsers(requestParameters) {
611
790
  return (0, exports.LegacyTeamsApiFp)(this.configuration).getTeamUsers(requestParameters.id).then((request) => request(this.axios, this.basePath));
612
791
  }
792
+ /**
793
+ * Same as `getTeamUsers`, but resolves with the response body together with the HTTP status and headers.
794
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
795
+ * @param {LegacyTeamsApiGetTeamUsersRequest} requestParameters Request parameters.
796
+
797
+ * @throws {RequiredError}
798
+ * @memberof LegacyTeamsApi
799
+ */
800
+ getTeamUsersWithHttpInfo(requestParameters) {
801
+ return (0, exports.LegacyTeamsApiFp)(this.configuration).getTeamUsersWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
802
+ }
613
803
  /**
614
804
  * Returns data about teams within the company.
615
805
  * @summary Get all teams
@@ -621,6 +811,17 @@ class LegacyTeamsApi extends base_1.BaseAPI {
621
811
  getTeams(requestParameters = {}) {
622
812
  return (0, exports.LegacyTeamsApiFp)(this.configuration).getTeams(requestParameters.order_by, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
623
813
  }
814
+ /**
815
+ * Same as `getTeams`, but resolves with the response body together with the HTTP status and headers.
816
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
817
+ * @param {LegacyTeamsApiGetTeamsRequest} requestParameters Request parameters.
818
+
819
+ * @throws {RequiredError}
820
+ * @memberof LegacyTeamsApi
821
+ */
822
+ getTeamsWithHttpInfo(requestParameters = {}) {
823
+ return (0, exports.LegacyTeamsApiFp)(this.configuration).getTeamsWithHttpInfo(requestParameters.order_by, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
824
+ }
624
825
  /**
625
826
  * Returns data about all teams which have the specified user as a member.
626
827
  * @summary Get all teams of a user
@@ -632,6 +833,17 @@ class LegacyTeamsApi extends base_1.BaseAPI {
632
833
  getUserTeams(requestParameters) {
633
834
  return (0, exports.LegacyTeamsApiFp)(this.configuration).getUserTeams(requestParameters.id, requestParameters.order_by, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
634
835
  }
836
+ /**
837
+ * Same as `getUserTeams`, but resolves with the response body together with the HTTP status and headers.
838
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
839
+ * @param {LegacyTeamsApiGetUserTeamsRequest} requestParameters Request parameters.
840
+
841
+ * @throws {RequiredError}
842
+ * @memberof LegacyTeamsApi
843
+ */
844
+ getUserTeamsWithHttpInfo(requestParameters) {
845
+ return (0, exports.LegacyTeamsApiFp)(this.configuration).getUserTeamsWithHttpInfo(requestParameters.id, requestParameters.order_by, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
846
+ }
635
847
  /**
636
848
  * Updates an existing team and returns the updated object.
637
849
  * @summary Update a team
@@ -643,5 +855,16 @@ class LegacyTeamsApi extends base_1.BaseAPI {
643
855
  updateTeam(requestParameters) {
644
856
  return (0, exports.LegacyTeamsApiFp)(this.configuration).updateTeam(requestParameters.id, requestParameters.UpdateTeamRequest).then((request) => request(this.axios, this.basePath));
645
857
  }
858
+ /**
859
+ * Same as `updateTeam`, but resolves with the response body together with the HTTP status and headers.
860
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
861
+ * @param {LegacyTeamsApiUpdateTeamRequest} requestParameters Request parameters.
862
+
863
+ * @throws {RequiredError}
864
+ * @memberof LegacyTeamsApi
865
+ */
866
+ updateTeamWithHttpInfo(requestParameters) {
867
+ return (0, exports.LegacyTeamsApiFp)(this.configuration).updateTeamWithHttpInfo(requestParameters.id, requestParameters.UpdateTeamRequest).then((request) => request(this.axios, this.basePath));
868
+ }
646
869
  }
647
870
  exports.LegacyTeamsApi = LegacyTeamsApi;
@@ -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 { DeleteMailThreadResponse } from '../models';
16
16
  import { GetMailMessageResponse } from '../models';
17
17
  import { GetMailThreadMessagesResponse } from '../models';
@@ -93,6 +93,14 @@ export declare const MailboxApiFp: (configuration?: Configuration) => {
93
93
  * @throws {RequiredError}
94
94
  */
95
95
  deleteMailThread(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteMailThreadResponse>>;
96
+ /**
97
+ * Same as `deleteMailThread`, but resolves with the response body together with the HTTP status and headers.
98
+ * @summary Delete mail thread
99
+ * @param {number} id The ID of the mail thread
100
+
101
+ * @throws {RequiredError}
102
+ */
103
+ deleteMailThreadWithHttpInfo(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<DeleteMailThreadResponse>>>;
96
104
  /**
97
105
  * Returns data about a specific mail message.
98
106
  * @summary Get one mail message
@@ -102,6 +110,15 @@ export declare const MailboxApiFp: (configuration?: Configuration) => {
102
110
  * @throws {RequiredError}
103
111
  */
104
112
  getMailMessage(id: number, include_body?: 0 | 1): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetMailMessageResponse>>;
113
+ /**
114
+ * Same as `getMailMessage`, but resolves with the response body together with the HTTP status and headers.
115
+ * @summary Get one mail message
116
+ * @param {number} id The ID of the mail message to fetch
117
+ * @param {0 | 1} [include_body] Whether to include the full message body or not. &#x60;0&#x60; &#x3D; Don\&#39;t include, &#x60;1&#x60; &#x3D; Include.
118
+
119
+ * @throws {RequiredError}
120
+ */
121
+ getMailMessageWithHttpInfo(id: number, include_body?: 0 | 1): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetMailMessageResponse>>>;
105
122
  /**
106
123
  * Returns a specific mail thread.
107
124
  * @summary Get one mail thread
@@ -110,6 +127,14 @@ export declare const MailboxApiFp: (configuration?: Configuration) => {
110
127
  * @throws {RequiredError}
111
128
  */
112
129
  getMailThread(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetMailThreadResponse1>>;
130
+ /**
131
+ * Same as `getMailThread`, but resolves with the response body together with the HTTP status and headers.
132
+ * @summary Get one mail thread
133
+ * @param {number} id The ID of the mail thread
134
+
135
+ * @throws {RequiredError}
136
+ */
137
+ getMailThreadWithHttpInfo(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetMailThreadResponse1>>>;
113
138
  /**
114
139
  * Returns all the mail messages inside a specified mail thread.
115
140
  * @summary Get all mail messages of mail thread
@@ -118,6 +143,14 @@ export declare const MailboxApiFp: (configuration?: Configuration) => {
118
143
  * @throws {RequiredError}
119
144
  */
120
145
  getMailThreadMessages(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetMailThreadMessagesResponse>>;
146
+ /**
147
+ * Same as `getMailThreadMessages`, but resolves with the response body together with the HTTP status and headers.
148
+ * @summary Get all mail messages of mail thread
149
+ * @param {number} id The ID of the mail thread
150
+
151
+ * @throws {RequiredError}
152
+ */
153
+ getMailThreadMessagesWithHttpInfo(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetMailThreadMessagesResponse>>>;
121
154
  /**
122
155
  * Returns mail threads in a specified folder ordered by the most recent message within.
123
156
  * @summary Get mail threads
@@ -128,6 +161,16 @@ export declare const MailboxApiFp: (configuration?: Configuration) => {
128
161
  * @throws {RequiredError}
129
162
  */
130
163
  getMailThreads(folder: 'inbox' | 'drafts' | 'sent' | 'archive', start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetMailThreadResponse>>;
164
+ /**
165
+ * Same as `getMailThreads`, but resolves with the response body together with the HTTP status and headers.
166
+ * @summary Get mail threads
167
+ * @param {'inbox' | 'drafts' | 'sent' | 'archive'} folder The type of folder to fetch
168
+ * @param {number} [start] Pagination start
169
+ * @param {number} [limit] Items shown per page
170
+
171
+ * @throws {RequiredError}
172
+ */
173
+ getMailThreadsWithHttpInfo(folder: 'inbox' | 'drafts' | 'sent' | 'archive', start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetMailThreadResponse>>>;
131
174
  /**
132
175
  * Updates the properties of a mail thread.
133
176
  * @summary Update mail thread details
@@ -141,6 +184,19 @@ export declare const MailboxApiFp: (configuration?: Configuration) => {
141
184
  * @throws {RequiredError}
142
185
  */
143
186
  updateMailThreadDetails(id: number, deal_id?: number, lead_id?: string, shared_flag?: number, read_flag?: number, archived_flag?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpdateMailThreadResponse>>;
187
+ /**
188
+ * Same as `updateMailThreadDetails`, but resolves with the response body together with the HTTP status and headers.
189
+ * @summary Update mail thread details
190
+ * @param {number} id The ID of the mail thread
191
+ * @param {number} [deal_id] The ID of the deal this thread is associated with
192
+ * @param {string} [lead_id] The ID of the lead this thread is associated with
193
+ * @param {number} [shared_flag]
194
+ * @param {number} [read_flag]
195
+ * @param {number} [archived_flag]
196
+
197
+ * @throws {RequiredError}
198
+ */
199
+ updateMailThreadDetailsWithHttpInfo(id: number, deal_id?: number, lead_id?: string, shared_flag?: number, read_flag?: number, archived_flag?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpdateMailThreadResponse>>>;
144
200
  };
145
201
  /**
146
202
  * MailboxApi - factory interface
@@ -155,6 +211,7 @@ export declare const MailboxApiFactory: (configuration?: Configuration, basePath
155
211
  * @throws {RequiredError}
156
212
  */
157
213
  deleteMailThread(requestParameters: MailboxApiDeleteMailThreadRequest): Promise<DeleteMailThreadResponse>;
214
+ deleteMailThreadWithHttpInfo(requestParameters: MailboxApiDeleteMailThreadRequest): Promise<ApiResponse<DeleteMailThreadResponse>>;
158
215
  /**
159
216
  * Returns data about a specific mail message.
160
217
  * @summary Get one mail message
@@ -163,6 +220,7 @@ export declare const MailboxApiFactory: (configuration?: Configuration, basePath
163
220
  * @throws {RequiredError}
164
221
  */
165
222
  getMailMessage(requestParameters: MailboxApiGetMailMessageRequest): Promise<GetMailMessageResponse>;
223
+ getMailMessageWithHttpInfo(requestParameters: MailboxApiGetMailMessageRequest): Promise<ApiResponse<GetMailMessageResponse>>;
166
224
  /**
167
225
  * Returns a specific mail thread.
168
226
  * @summary Get one mail thread
@@ -171,6 +229,7 @@ export declare const MailboxApiFactory: (configuration?: Configuration, basePath
171
229
  * @throws {RequiredError}
172
230
  */
173
231
  getMailThread(requestParameters: MailboxApiGetMailThreadRequest): Promise<GetMailThreadResponse1>;
232
+ getMailThreadWithHttpInfo(requestParameters: MailboxApiGetMailThreadRequest): Promise<ApiResponse<GetMailThreadResponse1>>;
174
233
  /**
175
234
  * Returns all the mail messages inside a specified mail thread.
176
235
  * @summary Get all mail messages of mail thread
@@ -179,6 +238,7 @@ export declare const MailboxApiFactory: (configuration?: Configuration, basePath
179
238
  * @throws {RequiredError}
180
239
  */
181
240
  getMailThreadMessages(requestParameters: MailboxApiGetMailThreadMessagesRequest): Promise<GetMailThreadMessagesResponse>;
241
+ getMailThreadMessagesWithHttpInfo(requestParameters: MailboxApiGetMailThreadMessagesRequest): Promise<ApiResponse<GetMailThreadMessagesResponse>>;
182
242
  /**
183
243
  * Returns mail threads in a specified folder ordered by the most recent message within.
184
244
  * @summary Get mail threads
@@ -187,6 +247,7 @@ export declare const MailboxApiFactory: (configuration?: Configuration, basePath
187
247
  * @throws {RequiredError}
188
248
  */
189
249
  getMailThreads(requestParameters: MailboxApiGetMailThreadsRequest): Promise<GetMailThreadResponse>;
250
+ getMailThreadsWithHttpInfo(requestParameters: MailboxApiGetMailThreadsRequest): Promise<ApiResponse<GetMailThreadResponse>>;
190
251
  /**
191
252
  * Updates the properties of a mail thread.
192
253
  * @summary Update mail thread details
@@ -195,6 +256,7 @@ export declare const MailboxApiFactory: (configuration?: Configuration, basePath
195
256
  * @throws {RequiredError}
196
257
  */
197
258
  updateMailThreadDetails(requestParameters: MailboxApiUpdateMailThreadDetailsRequest): Promise<UpdateMailThreadResponse>;
259
+ updateMailThreadDetailsWithHttpInfo(requestParameters: MailboxApiUpdateMailThreadDetailsRequest): Promise<ApiResponse<UpdateMailThreadResponse>>;
198
260
  };
199
261
  /**
200
262
  * Request parameters for deleteMailThread operation in MailboxApi.
@@ -338,6 +400,15 @@ export declare class MailboxApi extends BaseAPI {
338
400
  * @memberof MailboxApi
339
401
  */
340
402
  deleteMailThread(requestParameters: MailboxApiDeleteMailThreadRequest): Promise<DeleteMailThreadResponse>;
403
+ /**
404
+ * Same as `deleteMailThread`, but resolves with the response body together with the HTTP status and headers.
405
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
406
+ * @param {MailboxApiDeleteMailThreadRequest} requestParameters Request parameters.
407
+
408
+ * @throws {RequiredError}
409
+ * @memberof MailboxApi
410
+ */
411
+ deleteMailThreadWithHttpInfo(requestParameters: MailboxApiDeleteMailThreadRequest): Promise<ApiResponse<DeleteMailThreadResponse>>;
341
412
  /**
342
413
  * Returns data about a specific mail message.
343
414
  * @summary Get one mail message
@@ -347,6 +418,15 @@ export declare class MailboxApi extends BaseAPI {
347
418
  * @memberof MailboxApi
348
419
  */
349
420
  getMailMessage(requestParameters: MailboxApiGetMailMessageRequest): Promise<GetMailMessageResponse>;
421
+ /**
422
+ * Same as `getMailMessage`, but resolves with the response body together with the HTTP status and headers.
423
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
424
+ * @param {MailboxApiGetMailMessageRequest} requestParameters Request parameters.
425
+
426
+ * @throws {RequiredError}
427
+ * @memberof MailboxApi
428
+ */
429
+ getMailMessageWithHttpInfo(requestParameters: MailboxApiGetMailMessageRequest): Promise<ApiResponse<GetMailMessageResponse>>;
350
430
  /**
351
431
  * Returns a specific mail thread.
352
432
  * @summary Get one mail thread
@@ -356,6 +436,15 @@ export declare class MailboxApi extends BaseAPI {
356
436
  * @memberof MailboxApi
357
437
  */
358
438
  getMailThread(requestParameters: MailboxApiGetMailThreadRequest): Promise<GetMailThreadResponse1>;
439
+ /**
440
+ * Same as `getMailThread`, but resolves with the response body together with the HTTP status and headers.
441
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
442
+ * @param {MailboxApiGetMailThreadRequest} requestParameters Request parameters.
443
+
444
+ * @throws {RequiredError}
445
+ * @memberof MailboxApi
446
+ */
447
+ getMailThreadWithHttpInfo(requestParameters: MailboxApiGetMailThreadRequest): Promise<ApiResponse<GetMailThreadResponse1>>;
359
448
  /**
360
449
  * Returns all the mail messages inside a specified mail thread.
361
450
  * @summary Get all mail messages of mail thread
@@ -365,6 +454,15 @@ export declare class MailboxApi extends BaseAPI {
365
454
  * @memberof MailboxApi
366
455
  */
367
456
  getMailThreadMessages(requestParameters: MailboxApiGetMailThreadMessagesRequest): Promise<GetMailThreadMessagesResponse>;
457
+ /**
458
+ * Same as `getMailThreadMessages`, but resolves with the response body together with the HTTP status and headers.
459
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
460
+ * @param {MailboxApiGetMailThreadMessagesRequest} requestParameters Request parameters.
461
+
462
+ * @throws {RequiredError}
463
+ * @memberof MailboxApi
464
+ */
465
+ getMailThreadMessagesWithHttpInfo(requestParameters: MailboxApiGetMailThreadMessagesRequest): Promise<ApiResponse<GetMailThreadMessagesResponse>>;
368
466
  /**
369
467
  * Returns mail threads in a specified folder ordered by the most recent message within.
370
468
  * @summary Get mail threads
@@ -374,6 +472,15 @@ export declare class MailboxApi extends BaseAPI {
374
472
  * @memberof MailboxApi
375
473
  */
376
474
  getMailThreads(requestParameters: MailboxApiGetMailThreadsRequest): Promise<GetMailThreadResponse>;
475
+ /**
476
+ * Same as `getMailThreads`, but resolves with the response body together with the HTTP status and headers.
477
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
478
+ * @param {MailboxApiGetMailThreadsRequest} requestParameters Request parameters.
479
+
480
+ * @throws {RequiredError}
481
+ * @memberof MailboxApi
482
+ */
483
+ getMailThreadsWithHttpInfo(requestParameters: MailboxApiGetMailThreadsRequest): Promise<ApiResponse<GetMailThreadResponse>>;
377
484
  /**
378
485
  * Updates the properties of a mail thread.
379
486
  * @summary Update mail thread details
@@ -383,4 +490,13 @@ export declare class MailboxApi extends BaseAPI {
383
490
  * @memberof MailboxApi
384
491
  */
385
492
  updateMailThreadDetails(requestParameters: MailboxApiUpdateMailThreadDetailsRequest): Promise<UpdateMailThreadResponse>;
493
+ /**
494
+ * Same as `updateMailThreadDetails`, but resolves with the response body together with the HTTP status and headers.
495
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
496
+ * @param {MailboxApiUpdateMailThreadDetailsRequest} requestParameters Request parameters.
497
+
498
+ * @throws {RequiredError}
499
+ * @memberof MailboxApi
500
+ */
501
+ updateMailThreadDetailsWithHttpInfo(requestParameters: MailboxApiUpdateMailThreadDetailsRequest): Promise<ApiResponse<UpdateMailThreadResponse>>;
386
502
  }