pipedrive 36.0.1 → 36.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/esm/versions/v1/api/activity-fields-api.d.ts +17 -1
  2. package/dist/esm/versions/v1/api/activity-fields-api.js +25 -0
  3. package/dist/esm/versions/v1/api/activity-types-api.d.ts +72 -1
  4. package/dist/esm/versions/v1/api/activity-types-api.js +107 -0
  5. package/dist/esm/versions/v1/api/billing-api.d.ts +17 -1
  6. package/dist/esm/versions/v1/api/billing-api.js +25 -0
  7. package/dist/esm/versions/v1/api/call-logs-api.d.ts +93 -1
  8. package/dist/esm/versions/v1/api/call-logs-api.js +137 -0
  9. package/dist/esm/versions/v1/api/channels-api.d.ts +74 -1
  10. package/dist/esm/versions/v1/api/channels-api.js +109 -0
  11. package/dist/esm/versions/v1/api/currencies-api.d.ts +19 -1
  12. package/dist/esm/versions/v1/api/currencies-api.js +27 -0
  13. package/dist/esm/versions/v1/api/deal-fields-api.d.ts +111 -1
  14. package/dist/esm/versions/v1/api/deal-fields-api.js +164 -0
  15. package/dist/esm/versions/v1/api/deals-api.d.ts +399 -1
  16. package/dist/esm/versions/v1/api/deals-api.js +569 -0
  17. package/dist/esm/versions/v1/api/files-api.d.ts +163 -1
  18. package/dist/esm/versions/v1/api/files-api.js +234 -0
  19. package/dist/esm/versions/v1/api/filters-api.d.ts +129 -1
  20. package/dist/esm/versions/v1/api/filters-api.js +191 -0
  21. package/dist/esm/versions/v1/api/goals-api.d.ts +106 -1
  22. package/dist/esm/versions/v1/api/goals-api.js +150 -0
  23. package/dist/esm/versions/v1/api/lead-fields-api.d.ts +20 -1
  24. package/dist/esm/versions/v1/api/lead-fields-api.js +28 -0
  25. package/dist/esm/versions/v1/api/lead-labels-api.d.ts +72 -1
  26. package/dist/esm/versions/v1/api/lead-labels-api.js +107 -0
  27. package/dist/esm/versions/v1/api/lead-sources-api.d.ts +17 -1
  28. package/dist/esm/versions/v1/api/lead-sources-api.js +25 -0
  29. package/dist/esm/versions/v1/api/leads-api.d.ts +166 -1
  30. package/dist/esm/versions/v1/api/leads-api.js +237 -0
  31. package/dist/esm/versions/v1/api/legacy-teams-api.d.ts +152 -1
  32. package/dist/esm/versions/v1/api/legacy-teams-api.js +223 -0
  33. package/dist/esm/versions/v1/api/mailbox-api.d.ts +117 -1
  34. package/dist/esm/versions/v1/api/mailbox-api.js +170 -0
  35. package/dist/esm/versions/v1/api/meetings-api.d.ts +37 -1
  36. package/dist/esm/versions/v1/api/meetings-api.js +54 -0
  37. package/dist/esm/versions/v1/api/note-fields-api.d.ts +17 -1
  38. package/dist/esm/versions/v1/api/note-fields-api.js +25 -0
  39. package/dist/esm/versions/v1/api/notes-api.d.ts +207 -1
  40. package/dist/esm/versions/v1/api/notes-api.js +296 -0
  41. package/dist/esm/versions/v1/api/organization-fields-api.d.ts +111 -1
  42. package/dist/esm/versions/v1/api/organization-fields-api.js +164 -0
  43. package/dist/esm/versions/v1/api/organization-relationships-api.d.ts +93 -1
  44. package/dist/esm/versions/v1/api/organization-relationships-api.js +137 -0
  45. package/dist/esm/versions/v1/api/organizations-api.d.ts +178 -1
  46. package/dist/esm/versions/v1/api/organizations-api.js +258 -0
  47. package/dist/esm/versions/v1/api/permission-sets-api.d.ts +57 -1
  48. package/dist/esm/versions/v1/api/permission-sets-api.js +83 -0
  49. package/dist/esm/versions/v1/api/person-fields-api.d.ts +111 -1
  50. package/dist/esm/versions/v1/api/person-fields-api.js +164 -0
  51. package/dist/esm/versions/v1/api/persons-api.d.ts +275 -37
  52. package/dist/esm/versions/v1/api/persons-api.js +370 -24
  53. package/dist/esm/versions/v1/api/pipelines-api.d.ts +69 -1
  54. package/dist/esm/versions/v1/api/pipelines-api.js +95 -0
  55. package/dist/esm/versions/v1/api/product-fields-api.d.ts +111 -1
  56. package/dist/esm/versions/v1/api/product-fields-api.js +164 -0
  57. package/dist/esm/versions/v1/api/products-api.d.ts +119 -1
  58. package/dist/esm/versions/v1/api/products-api.js +172 -0
  59. package/dist/esm/versions/v1/api/project-boards-api.d.ts +35 -1
  60. package/dist/esm/versions/v1/api/project-boards-api.js +52 -0
  61. package/dist/esm/versions/v1/api/project-phases-api.d.ts +37 -1
  62. package/dist/esm/versions/v1/api/project-phases-api.js +54 -0
  63. package/dist/esm/versions/v1/api/project-templates-api.d.ts +38 -1
  64. package/dist/esm/versions/v1/api/project-templates-api.js +55 -0
  65. package/dist/esm/versions/v1/api/projects-api.d.ts +227 -1
  66. package/dist/esm/versions/v1/api/projects-api.js +334 -0
  67. package/dist/esm/versions/v1/api/recents-api.d.ts +22 -1
  68. package/dist/esm/versions/v1/api/recents-api.js +30 -0
  69. package/dist/esm/versions/v1/api/roles-api.d.ts +226 -1
  70. package/dist/esm/versions/v1/api/roles-api.js +333 -0
  71. package/dist/esm/versions/v1/api/stages-api.d.ts +24 -1
  72. package/dist/esm/versions/v1/api/stages-api.js +32 -0
  73. package/dist/esm/versions/v1/api/tasks-api.d.ts +97 -1
  74. package/dist/esm/versions/v1/api/tasks-api.js +141 -0
  75. package/dist/esm/versions/v1/api/user-connections-api.d.ts +17 -1
  76. package/dist/esm/versions/v1/api/user-connections-api.js +25 -0
  77. package/dist/esm/versions/v1/api/user-settings-api.d.ts +17 -1
  78. package/dist/esm/versions/v1/api/user-settings-api.js +25 -0
  79. package/dist/esm/versions/v1/api/users-api.d.ts +181 -1
  80. package/dist/esm/versions/v1/api/users-api.js +270 -0
  81. package/dist/esm/versions/v1/api/webhooks-api.d.ts +53 -1
  82. package/dist/esm/versions/v1/api/webhooks-api.js +79 -0
  83. package/dist/esm/versions/v1/base.d.ts +17 -0
  84. package/dist/esm/versions/v1/base.js +22 -0
  85. package/dist/esm/versions/v1/common.d.ts +1 -1
  86. package/dist/esm/versions/v1/common.js +7 -4
  87. package/dist/esm/versions/v2/api/activities-api.d.ts +107 -1
  88. package/dist/esm/versions/v2/api/activities-api.js +151 -0
  89. package/dist/esm/versions/v2/api/activity-fields-api.d.ts +40 -1
  90. package/dist/esm/versions/v2/api/activity-fields-api.js +57 -0
  91. package/dist/esm/versions/v2/api/beta-api.d.ts +451 -1
  92. package/dist/esm/versions/v2/api/beta-api.js +666 -0
  93. package/dist/esm/versions/v2/api/deal-fields-api.d.ts +152 -1
  94. package/dist/esm/versions/v2/api/deal-fields-api.js +223 -0
  95. package/dist/esm/versions/v2/api/deal-installments-api.d.ts +81 -1
  96. package/dist/esm/versions/v2/api/deal-installments-api.js +116 -0
  97. package/dist/esm/versions/v2/api/deal-products-api.d.ts +141 -1
  98. package/dist/esm/versions/v2/api/deal-products-api.js +203 -0
  99. package/dist/esm/versions/v2/api/deals-api.d.ts +363 -1
  100. package/dist/esm/versions/v2/api/deals-api.js +516 -1
  101. package/dist/esm/versions/v2/api/item-search-api.d.ts +49 -1
  102. package/dist/esm/versions/v2/api/item-search-api.js +66 -0
  103. package/dist/esm/versions/v2/api/leads-api.d.ts +64 -1
  104. package/dist/esm/versions/v2/api/leads-api.js +90 -0
  105. package/dist/esm/versions/v2/api/organization-fields-api.d.ts +152 -1
  106. package/dist/esm/versions/v2/api/organization-fields-api.js +223 -0
  107. package/dist/esm/versions/v2/api/organizations-api.d.ts +208 -1
  108. package/dist/esm/versions/v2/api/organizations-api.js +297 -0
  109. package/dist/esm/versions/v2/api/person-fields-api.d.ts +152 -1
  110. package/dist/esm/versions/v2/api/person-fields-api.js +223 -0
  111. package/dist/esm/versions/v2/api/persons-api.d.ts +230 -1
  112. package/dist/esm/versions/v2/api/persons-api.js +328 -0
  113. package/dist/esm/versions/v2/api/pipelines-api.d.ts +95 -1
  114. package/dist/esm/versions/v2/api/pipelines-api.js +139 -0
  115. package/dist/esm/versions/v2/api/product-fields-api.d.ts +152 -1
  116. package/dist/esm/versions/v2/api/product-fields-api.js +223 -0
  117. package/dist/esm/versions/v2/api/products-api.d.ts +371 -1
  118. package/dist/esm/versions/v2/api/products-api.js +541 -0
  119. package/dist/esm/versions/v2/api/project-boards-api.d.ts +90 -1
  120. package/dist/esm/versions/v2/api/project-boards-api.js +134 -0
  121. package/dist/esm/versions/v2/api/project-fields-api.d.ts +150 -1
  122. package/dist/esm/versions/v2/api/project-fields-api.js +221 -0
  123. package/dist/esm/versions/v2/api/project-phases-api.d.ts +92 -1
  124. package/dist/esm/versions/v2/api/project-phases-api.js +136 -0
  125. package/dist/esm/versions/v2/api/project-templates-api.d.ts +38 -1
  126. package/dist/esm/versions/v2/api/project-templates-api.js +55 -0
  127. package/dist/esm/versions/v2/api/projects-api.d.ts +201 -1
  128. package/dist/esm/versions/v2/api/projects-api.js +290 -0
  129. package/dist/esm/versions/v2/api/stages-api.d.ts +96 -1
  130. package/dist/esm/versions/v2/api/stages-api.js +140 -0
  131. package/dist/esm/versions/v2/api/tasks-api.d.ts +98 -1
  132. package/dist/esm/versions/v2/api/tasks-api.js +142 -0
  133. package/dist/esm/versions/v2/api/users-api.d.ts +21 -1
  134. package/dist/esm/versions/v2/api/users-api.js +29 -0
  135. package/dist/esm/versions/v2/base.d.ts +17 -0
  136. package/dist/esm/versions/v2/base.js +22 -0
  137. package/dist/esm/versions/v2/common.d.ts +1 -1
  138. package/dist/esm/versions/v2/common.js +7 -4
  139. package/dist/versions/v1/api/activity-fields-api.d.ts +17 -1
  140. package/dist/versions/v1/api/activity-fields-api.js +25 -0
  141. package/dist/versions/v1/api/activity-types-api.d.ts +72 -1
  142. package/dist/versions/v1/api/activity-types-api.js +107 -0
  143. package/dist/versions/v1/api/billing-api.d.ts +17 -1
  144. package/dist/versions/v1/api/billing-api.js +25 -0
  145. package/dist/versions/v1/api/call-logs-api.d.ts +93 -1
  146. package/dist/versions/v1/api/call-logs-api.js +137 -0
  147. package/dist/versions/v1/api/channels-api.d.ts +74 -1
  148. package/dist/versions/v1/api/channels-api.js +109 -0
  149. package/dist/versions/v1/api/currencies-api.d.ts +19 -1
  150. package/dist/versions/v1/api/currencies-api.js +27 -0
  151. package/dist/versions/v1/api/deal-fields-api.d.ts +111 -1
  152. package/dist/versions/v1/api/deal-fields-api.js +164 -0
  153. package/dist/versions/v1/api/deals-api.d.ts +399 -1
  154. package/dist/versions/v1/api/deals-api.js +569 -0
  155. package/dist/versions/v1/api/files-api.d.ts +163 -1
  156. package/dist/versions/v1/api/files-api.js +234 -0
  157. package/dist/versions/v1/api/filters-api.d.ts +129 -1
  158. package/dist/versions/v1/api/filters-api.js +191 -0
  159. package/dist/versions/v1/api/goals-api.d.ts +106 -1
  160. package/dist/versions/v1/api/goals-api.js +150 -0
  161. package/dist/versions/v1/api/lead-fields-api.d.ts +20 -1
  162. package/dist/versions/v1/api/lead-fields-api.js +28 -0
  163. package/dist/versions/v1/api/lead-labels-api.d.ts +72 -1
  164. package/dist/versions/v1/api/lead-labels-api.js +107 -0
  165. package/dist/versions/v1/api/lead-sources-api.d.ts +17 -1
  166. package/dist/versions/v1/api/lead-sources-api.js +25 -0
  167. package/dist/versions/v1/api/leads-api.d.ts +166 -1
  168. package/dist/versions/v1/api/leads-api.js +237 -0
  169. package/dist/versions/v1/api/legacy-teams-api.d.ts +152 -1
  170. package/dist/versions/v1/api/legacy-teams-api.js +223 -0
  171. package/dist/versions/v1/api/mailbox-api.d.ts +117 -1
  172. package/dist/versions/v1/api/mailbox-api.js +170 -0
  173. package/dist/versions/v1/api/meetings-api.d.ts +37 -1
  174. package/dist/versions/v1/api/meetings-api.js +54 -0
  175. package/dist/versions/v1/api/note-fields-api.d.ts +17 -1
  176. package/dist/versions/v1/api/note-fields-api.js +25 -0
  177. package/dist/versions/v1/api/notes-api.d.ts +207 -1
  178. package/dist/versions/v1/api/notes-api.js +296 -0
  179. package/dist/versions/v1/api/organization-fields-api.d.ts +111 -1
  180. package/dist/versions/v1/api/organization-fields-api.js +164 -0
  181. package/dist/versions/v1/api/organization-relationships-api.d.ts +93 -1
  182. package/dist/versions/v1/api/organization-relationships-api.js +137 -0
  183. package/dist/versions/v1/api/organizations-api.d.ts +178 -1
  184. package/dist/versions/v1/api/organizations-api.js +258 -0
  185. package/dist/versions/v1/api/permission-sets-api.d.ts +57 -1
  186. package/dist/versions/v1/api/permission-sets-api.js +83 -0
  187. package/dist/versions/v1/api/person-fields-api.d.ts +111 -1
  188. package/dist/versions/v1/api/person-fields-api.js +164 -0
  189. package/dist/versions/v1/api/persons-api.d.ts +275 -37
  190. package/dist/versions/v1/api/persons-api.js +370 -24
  191. package/dist/versions/v1/api/pipelines-api.d.ts +69 -1
  192. package/dist/versions/v1/api/pipelines-api.js +95 -0
  193. package/dist/versions/v1/api/product-fields-api.d.ts +111 -1
  194. package/dist/versions/v1/api/product-fields-api.js +164 -0
  195. package/dist/versions/v1/api/products-api.d.ts +119 -1
  196. package/dist/versions/v1/api/products-api.js +172 -0
  197. package/dist/versions/v1/api/project-boards-api.d.ts +35 -1
  198. package/dist/versions/v1/api/project-boards-api.js +52 -0
  199. package/dist/versions/v1/api/project-phases-api.d.ts +37 -1
  200. package/dist/versions/v1/api/project-phases-api.js +54 -0
  201. package/dist/versions/v1/api/project-templates-api.d.ts +38 -1
  202. package/dist/versions/v1/api/project-templates-api.js +55 -0
  203. package/dist/versions/v1/api/projects-api.d.ts +227 -1
  204. package/dist/versions/v1/api/projects-api.js +334 -0
  205. package/dist/versions/v1/api/recents-api.d.ts +22 -1
  206. package/dist/versions/v1/api/recents-api.js +30 -0
  207. package/dist/versions/v1/api/roles-api.d.ts +226 -1
  208. package/dist/versions/v1/api/roles-api.js +333 -0
  209. package/dist/versions/v1/api/stages-api.d.ts +24 -1
  210. package/dist/versions/v1/api/stages-api.js +32 -0
  211. package/dist/versions/v1/api/tasks-api.d.ts +97 -1
  212. package/dist/versions/v1/api/tasks-api.js +141 -0
  213. package/dist/versions/v1/api/user-connections-api.d.ts +17 -1
  214. package/dist/versions/v1/api/user-connections-api.js +25 -0
  215. package/dist/versions/v1/api/user-settings-api.d.ts +17 -1
  216. package/dist/versions/v1/api/user-settings-api.js +25 -0
  217. package/dist/versions/v1/api/users-api.d.ts +181 -1
  218. package/dist/versions/v1/api/users-api.js +270 -0
  219. package/dist/versions/v1/api/webhooks-api.d.ts +53 -1
  220. package/dist/versions/v1/api/webhooks-api.js +79 -0
  221. package/dist/versions/v1/base.d.ts +17 -0
  222. package/dist/versions/v1/base.js +24 -1
  223. package/dist/versions/v1/common.d.ts +1 -1
  224. package/dist/versions/v1/common.js +6 -3
  225. package/dist/versions/v2/api/activities-api.d.ts +107 -1
  226. package/dist/versions/v2/api/activities-api.js +151 -0
  227. package/dist/versions/v2/api/activity-fields-api.d.ts +40 -1
  228. package/dist/versions/v2/api/activity-fields-api.js +57 -0
  229. package/dist/versions/v2/api/beta-api.d.ts +451 -1
  230. package/dist/versions/v2/api/beta-api.js +666 -0
  231. package/dist/versions/v2/api/deal-fields-api.d.ts +152 -1
  232. package/dist/versions/v2/api/deal-fields-api.js +223 -0
  233. package/dist/versions/v2/api/deal-installments-api.d.ts +81 -1
  234. package/dist/versions/v2/api/deal-installments-api.js +116 -0
  235. package/dist/versions/v2/api/deal-products-api.d.ts +141 -1
  236. package/dist/versions/v2/api/deal-products-api.js +203 -0
  237. package/dist/versions/v2/api/deals-api.d.ts +363 -1
  238. package/dist/versions/v2/api/deals-api.js +516 -1
  239. package/dist/versions/v2/api/item-search-api.d.ts +49 -1
  240. package/dist/versions/v2/api/item-search-api.js +66 -0
  241. package/dist/versions/v2/api/leads-api.d.ts +64 -1
  242. package/dist/versions/v2/api/leads-api.js +90 -0
  243. package/dist/versions/v2/api/organization-fields-api.d.ts +152 -1
  244. package/dist/versions/v2/api/organization-fields-api.js +223 -0
  245. package/dist/versions/v2/api/organizations-api.d.ts +208 -1
  246. package/dist/versions/v2/api/organizations-api.js +297 -0
  247. package/dist/versions/v2/api/person-fields-api.d.ts +152 -1
  248. package/dist/versions/v2/api/person-fields-api.js +223 -0
  249. package/dist/versions/v2/api/persons-api.d.ts +230 -1
  250. package/dist/versions/v2/api/persons-api.js +328 -0
  251. package/dist/versions/v2/api/pipelines-api.d.ts +95 -1
  252. package/dist/versions/v2/api/pipelines-api.js +139 -0
  253. package/dist/versions/v2/api/product-fields-api.d.ts +152 -1
  254. package/dist/versions/v2/api/product-fields-api.js +223 -0
  255. package/dist/versions/v2/api/products-api.d.ts +371 -1
  256. package/dist/versions/v2/api/products-api.js +541 -0
  257. package/dist/versions/v2/api/project-boards-api.d.ts +90 -1
  258. package/dist/versions/v2/api/project-boards-api.js +134 -0
  259. package/dist/versions/v2/api/project-fields-api.d.ts +150 -1
  260. package/dist/versions/v2/api/project-fields-api.js +221 -0
  261. package/dist/versions/v2/api/project-phases-api.d.ts +92 -1
  262. package/dist/versions/v2/api/project-phases-api.js +136 -0
  263. package/dist/versions/v2/api/project-templates-api.d.ts +38 -1
  264. package/dist/versions/v2/api/project-templates-api.js +55 -0
  265. package/dist/versions/v2/api/projects-api.d.ts +201 -1
  266. package/dist/versions/v2/api/projects-api.js +290 -0
  267. package/dist/versions/v2/api/stages-api.d.ts +96 -1
  268. package/dist/versions/v2/api/stages-api.js +140 -0
  269. package/dist/versions/v2/api/tasks-api.d.ts +98 -1
  270. package/dist/versions/v2/api/tasks-api.js +142 -0
  271. package/dist/versions/v2/api/users-api.d.ts +21 -1
  272. package/dist/versions/v2/api/users-api.js +29 -0
  273. package/dist/versions/v2/base.d.ts +17 -0
  274. package/dist/versions/v2/base.js +24 -1
  275. package/dist/versions/v2/common.d.ts +1 -1
  276. package/dist/versions/v2/common.js +6 -3
  277. package/package.json +1 -1
@@ -350,6 +350,19 @@ export const LegacyTeamsApiFp = function (configuration) {
350
350
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
351
351
  });
352
352
  },
353
+ /**
354
+ * Same as `addTeam`, but resolves with the response body together with the HTTP status and headers.
355
+ * @summary Add a new team
356
+ * @param {AddTeamRequest1} [AddTeamRequest1]
357
+
358
+ * @throws {RequiredError}
359
+ */
360
+ addTeamWithHttpInfo(AddTeamRequest1) {
361
+ return __awaiter(this, void 0, void 0, function* () {
362
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addTeam(AddTeamRequest1);
363
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
364
+ });
365
+ },
353
366
  /**
354
367
  * Adds users to an existing team.
355
368
  * @summary Add users to a team
@@ -364,6 +377,20 @@ export const LegacyTeamsApiFp = function (configuration) {
364
377
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
365
378
  });
366
379
  },
380
+ /**
381
+ * Same as `addTeamUser`, but resolves with the response body together with the HTTP status and headers.
382
+ * @summary Add users to a team
383
+ * @param {number} id The ID of the team
384
+ * @param {AddTeamUserRequest} [AddTeamUserRequest]
385
+
386
+ * @throws {RequiredError}
387
+ */
388
+ addTeamUserWithHttpInfo(id, AddTeamUserRequest) {
389
+ return __awaiter(this, void 0, void 0, function* () {
390
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addTeamUser(id, AddTeamUserRequest);
391
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
392
+ });
393
+ },
367
394
  /**
368
395
  * Deletes users from an existing team.
369
396
  * @summary Delete users from a team
@@ -378,6 +405,20 @@ export const LegacyTeamsApiFp = function (configuration) {
378
405
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
379
406
  });
380
407
  },
408
+ /**
409
+ * Same as `deleteTeamUser`, but resolves with the response body together with the HTTP status and headers.
410
+ * @summary Delete users from a team
411
+ * @param {number} id The ID of the team
412
+ * @param {DeleteTeamUserRequest} [DeleteTeamUserRequest]
413
+
414
+ * @throws {RequiredError}
415
+ */
416
+ deleteTeamUserWithHttpInfo(id, DeleteTeamUserRequest) {
417
+ return __awaiter(this, void 0, void 0, function* () {
418
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTeamUser(id, DeleteTeamUserRequest);
419
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
420
+ });
421
+ },
381
422
  /**
382
423
  * Returns data about a specific team.
383
424
  * @summary Get a single team
@@ -392,6 +433,20 @@ export const LegacyTeamsApiFp = function (configuration) {
392
433
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
393
434
  });
394
435
  },
436
+ /**
437
+ * Same as `getTeam`, but resolves with the response body together with the HTTP status and headers.
438
+ * @summary Get a single team
439
+ * @param {number} id The ID of the team
440
+ * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users
441
+
442
+ * @throws {RequiredError}
443
+ */
444
+ getTeamWithHttpInfo(id, skip_users) {
445
+ return __awaiter(this, void 0, void 0, function* () {
446
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTeam(id, skip_users);
447
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
448
+ });
449
+ },
395
450
  /**
396
451
  * Returns a list of all user IDs within a team.
397
452
  * @summary Get all users in a team
@@ -405,6 +460,19 @@ export const LegacyTeamsApiFp = function (configuration) {
405
460
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
406
461
  });
407
462
  },
463
+ /**
464
+ * Same as `getTeamUsers`, but resolves with the response body together with the HTTP status and headers.
465
+ * @summary Get all users in a team
466
+ * @param {number} id The ID of the team
467
+
468
+ * @throws {RequiredError}
469
+ */
470
+ getTeamUsersWithHttpInfo(id) {
471
+ return __awaiter(this, void 0, void 0, function* () {
472
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTeamUsers(id);
473
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
474
+ });
475
+ },
408
476
  /**
409
477
  * Returns data about teams within the company.
410
478
  * @summary Get all teams
@@ -419,6 +487,20 @@ export const LegacyTeamsApiFp = function (configuration) {
419
487
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
420
488
  });
421
489
  },
490
+ /**
491
+ * Same as `getTeams`, but resolves with the response body together with the HTTP status and headers.
492
+ * @summary Get all teams
493
+ * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by
494
+ * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users
495
+
496
+ * @throws {RequiredError}
497
+ */
498
+ getTeamsWithHttpInfo(order_by, skip_users) {
499
+ return __awaiter(this, void 0, void 0, function* () {
500
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTeams(order_by, skip_users);
501
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
502
+ });
503
+ },
422
504
  /**
423
505
  * Returns data about all teams which have the specified user as a member.
424
506
  * @summary Get all teams of a user
@@ -434,6 +516,21 @@ export const LegacyTeamsApiFp = function (configuration) {
434
516
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
435
517
  });
436
518
  },
519
+ /**
520
+ * Same as `getUserTeams`, but resolves with the response body together with the HTTP status and headers.
521
+ * @summary Get all teams of a user
522
+ * @param {number} id The ID of the user
523
+ * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by
524
+ * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users
525
+
526
+ * @throws {RequiredError}
527
+ */
528
+ getUserTeamsWithHttpInfo(id, order_by, skip_users) {
529
+ return __awaiter(this, void 0, void 0, function* () {
530
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserTeams(id, order_by, skip_users);
531
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
532
+ });
533
+ },
437
534
  /**
438
535
  * Updates an existing team and returns the updated object.
439
536
  * @summary Update a team
@@ -448,6 +545,20 @@ export const LegacyTeamsApiFp = function (configuration) {
448
545
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
449
546
  });
450
547
  },
548
+ /**
549
+ * Same as `updateTeam`, but resolves with the response body together with the HTTP status and headers.
550
+ * @summary Update a team
551
+ * @param {number} id The ID of the team
552
+ * @param {UpdateTeamRequest} [UpdateTeamRequest]
553
+
554
+ * @throws {RequiredError}
555
+ */
556
+ updateTeamWithHttpInfo(id, UpdateTeamRequest) {
557
+ return __awaiter(this, void 0, void 0, function* () {
558
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTeam(id, UpdateTeamRequest);
559
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
560
+ });
561
+ },
451
562
  };
452
563
  };
453
564
  /**
@@ -467,6 +578,9 @@ export const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
467
578
  addTeam(requestParameters = {}) {
468
579
  return localVarFp.addTeam(requestParameters.AddTeamRequest1).then((request) => request(axios, basePath));
469
580
  },
581
+ addTeamWithHttpInfo(requestParameters = {}) {
582
+ return localVarFp.addTeamWithHttpInfo(requestParameters.AddTeamRequest1).then((request) => request(axios, basePath));
583
+ },
470
584
  /**
471
585
  * Adds users to an existing team.
472
586
  * @summary Add users to a team
@@ -477,6 +591,9 @@ export const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
477
591
  addTeamUser(requestParameters) {
478
592
  return localVarFp.addTeamUser(requestParameters.id, requestParameters.AddTeamUserRequest).then((request) => request(axios, basePath));
479
593
  },
594
+ addTeamUserWithHttpInfo(requestParameters) {
595
+ return localVarFp.addTeamUserWithHttpInfo(requestParameters.id, requestParameters.AddTeamUserRequest).then((request) => request(axios, basePath));
596
+ },
480
597
  /**
481
598
  * Deletes users from an existing team.
482
599
  * @summary Delete users from a team
@@ -487,6 +604,9 @@ export const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
487
604
  deleteTeamUser(requestParameters) {
488
605
  return localVarFp.deleteTeamUser(requestParameters.id, requestParameters.DeleteTeamUserRequest).then((request) => request(axios, basePath));
489
606
  },
607
+ deleteTeamUserWithHttpInfo(requestParameters) {
608
+ return localVarFp.deleteTeamUserWithHttpInfo(requestParameters.id, requestParameters.DeleteTeamUserRequest).then((request) => request(axios, basePath));
609
+ },
490
610
  /**
491
611
  * Returns data about a specific team.
492
612
  * @summary Get a single team
@@ -497,6 +617,9 @@ export const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
497
617
  getTeam(requestParameters) {
498
618
  return localVarFp.getTeam(requestParameters.id, requestParameters.skip_users).then((request) => request(axios, basePath));
499
619
  },
620
+ getTeamWithHttpInfo(requestParameters) {
621
+ return localVarFp.getTeamWithHttpInfo(requestParameters.id, requestParameters.skip_users).then((request) => request(axios, basePath));
622
+ },
500
623
  /**
501
624
  * Returns a list of all user IDs within a team.
502
625
  * @summary Get all users in a team
@@ -507,6 +630,9 @@ export const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
507
630
  getTeamUsers(requestParameters) {
508
631
  return localVarFp.getTeamUsers(requestParameters.id).then((request) => request(axios, basePath));
509
632
  },
633
+ getTeamUsersWithHttpInfo(requestParameters) {
634
+ return localVarFp.getTeamUsersWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
635
+ },
510
636
  /**
511
637
  * Returns data about teams within the company.
512
638
  * @summary Get all teams
@@ -517,6 +643,9 @@ export const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
517
643
  getTeams(requestParameters = {}) {
518
644
  return localVarFp.getTeams(requestParameters.order_by, requestParameters.skip_users).then((request) => request(axios, basePath));
519
645
  },
646
+ getTeamsWithHttpInfo(requestParameters = {}) {
647
+ return localVarFp.getTeamsWithHttpInfo(requestParameters.order_by, requestParameters.skip_users).then((request) => request(axios, basePath));
648
+ },
520
649
  /**
521
650
  * Returns data about all teams which have the specified user as a member.
522
651
  * @summary Get all teams of a user
@@ -527,6 +656,9 @@ export const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
527
656
  getUserTeams(requestParameters) {
528
657
  return localVarFp.getUserTeams(requestParameters.id, requestParameters.order_by, requestParameters.skip_users).then((request) => request(axios, basePath));
529
658
  },
659
+ getUserTeamsWithHttpInfo(requestParameters) {
660
+ return localVarFp.getUserTeamsWithHttpInfo(requestParameters.id, requestParameters.order_by, requestParameters.skip_users).then((request) => request(axios, basePath));
661
+ },
530
662
  /**
531
663
  * Updates an existing team and returns the updated object.
532
664
  * @summary Update a team
@@ -537,6 +669,9 @@ export const LegacyTeamsApiFactory = function (configuration, basePath, axios) {
537
669
  updateTeam(requestParameters) {
538
670
  return localVarFp.updateTeam(requestParameters.id, requestParameters.UpdateTeamRequest).then((request) => request(axios, basePath));
539
671
  },
672
+ updateTeamWithHttpInfo(requestParameters) {
673
+ return localVarFp.updateTeamWithHttpInfo(requestParameters.id, requestParameters.UpdateTeamRequest).then((request) => request(axios, basePath));
674
+ },
540
675
  };
541
676
  };
542
677
  /**
@@ -557,6 +692,17 @@ export class LegacyTeamsApi extends BaseAPI {
557
692
  addTeam(requestParameters = {}) {
558
693
  return LegacyTeamsApiFp(this.configuration).addTeam(requestParameters.AddTeamRequest1).then((request) => request(this.axios, this.basePath));
559
694
  }
695
+ /**
696
+ * Same as `addTeam`, but resolves with the response body together with the HTTP status and headers.
697
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
698
+ * @param {LegacyTeamsApiAddTeamRequest} requestParameters Request parameters.
699
+
700
+ * @throws {RequiredError}
701
+ * @memberof LegacyTeamsApi
702
+ */
703
+ addTeamWithHttpInfo(requestParameters = {}) {
704
+ return LegacyTeamsApiFp(this.configuration).addTeamWithHttpInfo(requestParameters.AddTeamRequest1).then((request) => request(this.axios, this.basePath));
705
+ }
560
706
  /**
561
707
  * Adds users to an existing team.
562
708
  * @summary Add users to a team
@@ -568,6 +714,17 @@ export class LegacyTeamsApi extends BaseAPI {
568
714
  addTeamUser(requestParameters) {
569
715
  return LegacyTeamsApiFp(this.configuration).addTeamUser(requestParameters.id, requestParameters.AddTeamUserRequest).then((request) => request(this.axios, this.basePath));
570
716
  }
717
+ /**
718
+ * Same as `addTeamUser`, but resolves with the response body together with the HTTP status and headers.
719
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
720
+ * @param {LegacyTeamsApiAddTeamUserRequest} requestParameters Request parameters.
721
+
722
+ * @throws {RequiredError}
723
+ * @memberof LegacyTeamsApi
724
+ */
725
+ addTeamUserWithHttpInfo(requestParameters) {
726
+ return LegacyTeamsApiFp(this.configuration).addTeamUserWithHttpInfo(requestParameters.id, requestParameters.AddTeamUserRequest).then((request) => request(this.axios, this.basePath));
727
+ }
571
728
  /**
572
729
  * Deletes users from an existing team.
573
730
  * @summary Delete users from a team
@@ -579,6 +736,17 @@ export class LegacyTeamsApi extends BaseAPI {
579
736
  deleteTeamUser(requestParameters) {
580
737
  return LegacyTeamsApiFp(this.configuration).deleteTeamUser(requestParameters.id, requestParameters.DeleteTeamUserRequest).then((request) => request(this.axios, this.basePath));
581
738
  }
739
+ /**
740
+ * Same as `deleteTeamUser`, but resolves with the response body together with the HTTP status and headers.
741
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
742
+ * @param {LegacyTeamsApiDeleteTeamUserRequest} requestParameters Request parameters.
743
+
744
+ * @throws {RequiredError}
745
+ * @memberof LegacyTeamsApi
746
+ */
747
+ deleteTeamUserWithHttpInfo(requestParameters) {
748
+ return LegacyTeamsApiFp(this.configuration).deleteTeamUserWithHttpInfo(requestParameters.id, requestParameters.DeleteTeamUserRequest).then((request) => request(this.axios, this.basePath));
749
+ }
582
750
  /**
583
751
  * Returns data about a specific team.
584
752
  * @summary Get a single team
@@ -590,6 +758,17 @@ export class LegacyTeamsApi extends BaseAPI {
590
758
  getTeam(requestParameters) {
591
759
  return LegacyTeamsApiFp(this.configuration).getTeam(requestParameters.id, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
592
760
  }
761
+ /**
762
+ * Same as `getTeam`, but resolves with the response body together with the HTTP status and headers.
763
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
764
+ * @param {LegacyTeamsApiGetTeamRequest} requestParameters Request parameters.
765
+
766
+ * @throws {RequiredError}
767
+ * @memberof LegacyTeamsApi
768
+ */
769
+ getTeamWithHttpInfo(requestParameters) {
770
+ return LegacyTeamsApiFp(this.configuration).getTeamWithHttpInfo(requestParameters.id, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
771
+ }
593
772
  /**
594
773
  * Returns a list of all user IDs within a team.
595
774
  * @summary Get all users in a team
@@ -601,6 +780,17 @@ export class LegacyTeamsApi extends BaseAPI {
601
780
  getTeamUsers(requestParameters) {
602
781
  return LegacyTeamsApiFp(this.configuration).getTeamUsers(requestParameters.id).then((request) => request(this.axios, this.basePath));
603
782
  }
783
+ /**
784
+ * Same as `getTeamUsers`, but resolves with the response body together with the HTTP status and headers.
785
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
786
+ * @param {LegacyTeamsApiGetTeamUsersRequest} requestParameters Request parameters.
787
+
788
+ * @throws {RequiredError}
789
+ * @memberof LegacyTeamsApi
790
+ */
791
+ getTeamUsersWithHttpInfo(requestParameters) {
792
+ return LegacyTeamsApiFp(this.configuration).getTeamUsersWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
793
+ }
604
794
  /**
605
795
  * Returns data about teams within the company.
606
796
  * @summary Get all teams
@@ -612,6 +802,17 @@ export class LegacyTeamsApi extends BaseAPI {
612
802
  getTeams(requestParameters = {}) {
613
803
  return LegacyTeamsApiFp(this.configuration).getTeams(requestParameters.order_by, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
614
804
  }
805
+ /**
806
+ * Same as `getTeams`, but resolves with the response body together with the HTTP status and headers.
807
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
808
+ * @param {LegacyTeamsApiGetTeamsRequest} requestParameters Request parameters.
809
+
810
+ * @throws {RequiredError}
811
+ * @memberof LegacyTeamsApi
812
+ */
813
+ getTeamsWithHttpInfo(requestParameters = {}) {
814
+ return LegacyTeamsApiFp(this.configuration).getTeamsWithHttpInfo(requestParameters.order_by, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
815
+ }
615
816
  /**
616
817
  * Returns data about all teams which have the specified user as a member.
617
818
  * @summary Get all teams of a user
@@ -623,6 +824,17 @@ export class LegacyTeamsApi extends BaseAPI {
623
824
  getUserTeams(requestParameters) {
624
825
  return LegacyTeamsApiFp(this.configuration).getUserTeams(requestParameters.id, requestParameters.order_by, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
625
826
  }
827
+ /**
828
+ * Same as `getUserTeams`, but resolves with the response body together with the HTTP status and headers.
829
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
830
+ * @param {LegacyTeamsApiGetUserTeamsRequest} requestParameters Request parameters.
831
+
832
+ * @throws {RequiredError}
833
+ * @memberof LegacyTeamsApi
834
+ */
835
+ getUserTeamsWithHttpInfo(requestParameters) {
836
+ return LegacyTeamsApiFp(this.configuration).getUserTeamsWithHttpInfo(requestParameters.id, requestParameters.order_by, requestParameters.skip_users).then((request) => request(this.axios, this.basePath));
837
+ }
626
838
  /**
627
839
  * Updates an existing team and returns the updated object.
628
840
  * @summary Update a team
@@ -634,4 +846,15 @@ export class LegacyTeamsApi extends BaseAPI {
634
846
  updateTeam(requestParameters) {
635
847
  return LegacyTeamsApiFp(this.configuration).updateTeam(requestParameters.id, requestParameters.UpdateTeamRequest).then((request) => request(this.axios, this.basePath));
636
848
  }
849
+ /**
850
+ * Same as `updateTeam`, but resolves with the response body together with the HTTP status and headers.
851
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
852
+ * @param {LegacyTeamsApiUpdateTeamRequest} requestParameters Request parameters.
853
+
854
+ * @throws {RequiredError}
855
+ * @memberof LegacyTeamsApi
856
+ */
857
+ updateTeamWithHttpInfo(requestParameters) {
858
+ return LegacyTeamsApiFp(this.configuration).updateTeamWithHttpInfo(requestParameters.id, requestParameters.UpdateTeamRequest).then((request) => request(this.axios, this.basePath));
859
+ }
637
860
  }
@@ -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
  }