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
@@ -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 { AddGoalRequest } from '../models';
16
16
  import { BasicGoalRequest } from '../models';
17
17
  import { DeleteGoalResponse } from '../models';
@@ -92,6 +92,14 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
92
92
  * @throws {RequiredError}
93
93
  */
94
94
  addGoal(AddGoalRequest?: AddGoalRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertGoalResponse>>;
95
+ /**
96
+ * Same as `addGoal`, but resolves with the response body together with the HTTP status and headers.
97
+ * @summary Add a new goal
98
+ * @param {AddGoalRequest} [AddGoalRequest]
99
+
100
+ * @throws {RequiredError}
101
+ */
102
+ addGoalWithHttpInfo(AddGoalRequest?: AddGoalRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertGoalResponse>>>;
95
103
  /**
96
104
  * Marks a goal as deleted.
97
105
  * @summary Delete existing goal
@@ -100,6 +108,14 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
100
108
  * @throws {RequiredError}
101
109
  */
102
110
  deleteGoal(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteGoalResponse>>;
111
+ /**
112
+ * Same as `deleteGoal`, but resolves with the response body together with the HTTP status and headers.
113
+ * @summary Delete existing goal
114
+ * @param {string} id The ID of the goal
115
+
116
+ * @throws {RequiredError}
117
+ */
118
+ deleteGoalWithHttpInfo(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<DeleteGoalResponse>>>;
103
119
  /**
104
120
  * Gets the progress of a goal for the specified period.
105
121
  * @summary Get result of a goal
@@ -110,6 +126,16 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
110
126
  * @throws {RequiredError}
111
127
  */
112
128
  getGoalResult(id: string, period_start: string, period_end: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetGoalResultResponse>>;
129
+ /**
130
+ * Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
131
+ * @summary Get result of a goal
132
+ * @param {string} id The ID of the goal that the results are looked for
133
+ * @param {string} period_start The start date of the period for which to find the goal\&#39;s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
134
+ * @param {string} period_end The end date of the period for which to find the goal\&#39;s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
135
+
136
+ * @throws {RequiredError}
137
+ */
138
+ getGoalResultWithHttpInfo(id: string, period_start: string, period_end: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetGoalResultResponse>>>;
113
139
  /**
114
140
  * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
115
141
  * @summary Find goals
@@ -130,6 +156,26 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
130
156
  * @throws {RequiredError}
131
157
  */
132
158
  getGoals(type_name?: 'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started', title?: string, is_active?: boolean, assignee_id?: number, assignee_type?: 'person' | 'company' | 'team', expected_outcome_target?: number, expected_outcome_tracking_metric?: 'quantity' | 'sum', expected_outcome_currency_id?: number, type_params_pipeline_id?: Array<number>, type_params_stage_id?: number, type_params_activity_type_id?: Array<number>, period_start?: string, period_end?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetGoalsResponse>>;
159
+ /**
160
+ * Same as `getGoals`, but resolves with the response body together with the HTTP status and headers.
161
+ * @summary Find goals
162
+ * @param {'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started'} [type_name] The type of the goal. If provided, everyone\&#39;s goals will be returned.
163
+ * @param {string} [title] The title of the goal
164
+ * @param {boolean} [is_active] Whether the goal is active or not
165
+ * @param {number} [assignee_id] The ID of the user who\&#39;s goal to fetch. When omitted, only your goals will be returned.
166
+ * @param {'person' | 'company' | 'team'} [assignee_type] The type of the goal\&#39;s assignee. If provided, everyone\&#39;s goals will be returned.
167
+ * @param {number} [expected_outcome_target] The numeric value of the outcome. If provided, everyone\&#39;s goals will be returned.
168
+ * @param {'quantity' | 'sum'} [expected_outcome_tracking_metric] The tracking metric of the expected outcome of the goal. If provided, everyone\&#39;s goals will be returned.
169
+ * @param {number} [expected_outcome_currency_id] The numeric ID of the goal\&#39;s currency. Only applicable to goals with &#x60;expected_outcome.tracking_metric&#x60; with value &#x60;sum&#x60;. If provided, everyone\&#39;s goals will be returned.
170
+ * @param {Array<number>} [type_params_pipeline_id] An array of pipeline IDs or &#x60;null&#x60; for all pipelines. If provided, everyone\&#39;s goals will be returned.
171
+ * @param {number} [type_params_stage_id] The ID of the stage. Applicable to only &#x60;deals_progressed&#x60; type of goals. If provided, everyone\&#39;s goals will be returned.
172
+ * @param {Array<number>} [type_params_activity_type_id] An array of IDs or &#x60;null&#x60; for all activity types. Only applicable for &#x60;activities_completed&#x60; and/or &#x60;activities_added&#x60; types of goals. If provided, everyone\&#39;s goals will be returned.
173
+ * @param {string} [period_start] The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When &#x60;period.start&#x60; is provided, &#x60;period.end&#x60; must be provided too.
174
+ * @param {string} [period_end] The end date of the period for which to find goals. Date in format of YYYY-MM-DD.
175
+
176
+ * @throws {RequiredError}
177
+ */
178
+ getGoalsWithHttpInfo(type_name?: 'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started', title?: string, is_active?: boolean, assignee_id?: number, assignee_type?: 'person' | 'company' | 'team', expected_outcome_target?: number, expected_outcome_tracking_metric?: 'quantity' | 'sum', expected_outcome_currency_id?: number, type_params_pipeline_id?: Array<number>, type_params_stage_id?: number, type_params_activity_type_id?: Array<number>, period_start?: string, period_end?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetGoalsResponse>>>;
133
179
  /**
134
180
  * Updates an existing goal.
135
181
  * @summary Update existing goal
@@ -139,6 +185,15 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
139
185
  * @throws {RequiredError}
140
186
  */
141
187
  updateGoal(id: string, BasicGoalRequest?: BasicGoalRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertGoalResponse>>;
188
+ /**
189
+ * Same as `updateGoal`, but resolves with the response body together with the HTTP status and headers.
190
+ * @summary Update existing goal
191
+ * @param {string} id The ID of the goal
192
+ * @param {BasicGoalRequest} [BasicGoalRequest]
193
+
194
+ * @throws {RequiredError}
195
+ */
196
+ updateGoalWithHttpInfo(id: string, BasicGoalRequest?: BasicGoalRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertGoalResponse>>>;
142
197
  };
143
198
  /**
144
199
  * GoalsApi - factory interface
@@ -153,6 +208,7 @@ export declare const GoalsApiFactory: (configuration?: Configuration, basePath?:
153
208
  * @throws {RequiredError}
154
209
  */
155
210
  addGoal(requestParameters?: GoalsApiAddGoalRequest): Promise<UpsertGoalResponse>;
211
+ addGoalWithHttpInfo(requestParameters?: GoalsApiAddGoalRequest): Promise<ApiResponse<UpsertGoalResponse>>;
156
212
  /**
157
213
  * Marks a goal as deleted.
158
214
  * @summary Delete existing goal
@@ -161,6 +217,7 @@ export declare const GoalsApiFactory: (configuration?: Configuration, basePath?:
161
217
  * @throws {RequiredError}
162
218
  */
163
219
  deleteGoal(requestParameters: GoalsApiDeleteGoalRequest): Promise<DeleteGoalResponse>;
220
+ deleteGoalWithHttpInfo(requestParameters: GoalsApiDeleteGoalRequest): Promise<ApiResponse<DeleteGoalResponse>>;
164
221
  /**
165
222
  * Gets the progress of a goal for the specified period.
166
223
  * @summary Get result of a goal
@@ -169,6 +226,7 @@ export declare const GoalsApiFactory: (configuration?: Configuration, basePath?:
169
226
  * @throws {RequiredError}
170
227
  */
171
228
  getGoalResult(requestParameters: GoalsApiGetGoalResultRequest): Promise<GetGoalResultResponse>;
229
+ getGoalResultWithHttpInfo(requestParameters: GoalsApiGetGoalResultRequest): Promise<ApiResponse<GetGoalResultResponse>>;
172
230
  /**
173
231
  * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
174
232
  * @summary Find goals
@@ -177,6 +235,7 @@ export declare const GoalsApiFactory: (configuration?: Configuration, basePath?:
177
235
  * @throws {RequiredError}
178
236
  */
179
237
  getGoals(requestParameters?: GoalsApiGetGoalsRequest): Promise<GetGoalsResponse>;
238
+ getGoalsWithHttpInfo(requestParameters?: GoalsApiGetGoalsRequest): Promise<ApiResponse<GetGoalsResponse>>;
180
239
  /**
181
240
  * Updates an existing goal.
182
241
  * @summary Update existing goal
@@ -185,6 +244,7 @@ export declare const GoalsApiFactory: (configuration?: Configuration, basePath?:
185
244
  * @throws {RequiredError}
186
245
  */
187
246
  updateGoal(requestParameters: GoalsApiUpdateGoalRequest): Promise<UpsertGoalResponse>;
247
+ updateGoalWithHttpInfo(requestParameters: GoalsApiUpdateGoalRequest): Promise<ApiResponse<UpsertGoalResponse>>;
188
248
  };
189
249
  /**
190
250
  * Request parameters for addGoal operation in GoalsApi.
@@ -357,6 +417,15 @@ export declare class GoalsApi extends BaseAPI {
357
417
  * @memberof GoalsApi
358
418
  */
359
419
  addGoal(requestParameters?: GoalsApiAddGoalRequest): Promise<UpsertGoalResponse>;
420
+ /**
421
+ * Same as `addGoal`, but resolves with the response body together with the HTTP status and headers.
422
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
423
+ * @param {GoalsApiAddGoalRequest} requestParameters Request parameters.
424
+
425
+ * @throws {RequiredError}
426
+ * @memberof GoalsApi
427
+ */
428
+ addGoalWithHttpInfo(requestParameters?: GoalsApiAddGoalRequest): Promise<ApiResponse<UpsertGoalResponse>>;
360
429
  /**
361
430
  * Marks a goal as deleted.
362
431
  * @summary Delete existing goal
@@ -366,6 +435,15 @@ export declare class GoalsApi extends BaseAPI {
366
435
  * @memberof GoalsApi
367
436
  */
368
437
  deleteGoal(requestParameters: GoalsApiDeleteGoalRequest): Promise<DeleteGoalResponse>;
438
+ /**
439
+ * Same as `deleteGoal`, but resolves with the response body together with the HTTP status and headers.
440
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
441
+ * @param {GoalsApiDeleteGoalRequest} requestParameters Request parameters.
442
+
443
+ * @throws {RequiredError}
444
+ * @memberof GoalsApi
445
+ */
446
+ deleteGoalWithHttpInfo(requestParameters: GoalsApiDeleteGoalRequest): Promise<ApiResponse<DeleteGoalResponse>>;
369
447
  /**
370
448
  * Gets the progress of a goal for the specified period.
371
449
  * @summary Get result of a goal
@@ -375,6 +453,15 @@ export declare class GoalsApi extends BaseAPI {
375
453
  * @memberof GoalsApi
376
454
  */
377
455
  getGoalResult(requestParameters: GoalsApiGetGoalResultRequest): Promise<GetGoalResultResponse>;
456
+ /**
457
+ * Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
458
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
459
+ * @param {GoalsApiGetGoalResultRequest} requestParameters Request parameters.
460
+
461
+ * @throws {RequiredError}
462
+ * @memberof GoalsApi
463
+ */
464
+ getGoalResultWithHttpInfo(requestParameters: GoalsApiGetGoalResultRequest): Promise<ApiResponse<GetGoalResultResponse>>;
378
465
  /**
379
466
  * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
380
467
  * @summary Find goals
@@ -384,6 +471,15 @@ export declare class GoalsApi extends BaseAPI {
384
471
  * @memberof GoalsApi
385
472
  */
386
473
  getGoals(requestParameters?: GoalsApiGetGoalsRequest): Promise<GetGoalsResponse>;
474
+ /**
475
+ * Same as `getGoals`, but resolves with the response body together with the HTTP status and headers.
476
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
477
+ * @param {GoalsApiGetGoalsRequest} requestParameters Request parameters.
478
+
479
+ * @throws {RequiredError}
480
+ * @memberof GoalsApi
481
+ */
482
+ getGoalsWithHttpInfo(requestParameters?: GoalsApiGetGoalsRequest): Promise<ApiResponse<GetGoalsResponse>>;
387
483
  /**
388
484
  * Updates an existing goal.
389
485
  * @summary Update existing goal
@@ -393,4 +489,13 @@ export declare class GoalsApi extends BaseAPI {
393
489
  * @memberof GoalsApi
394
490
  */
395
491
  updateGoal(requestParameters: GoalsApiUpdateGoalRequest): Promise<UpsertGoalResponse>;
492
+ /**
493
+ * Same as `updateGoal`, but resolves with the response body together with the HTTP status and headers.
494
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
495
+ * @param {GoalsApiUpdateGoalRequest} requestParameters Request parameters.
496
+
497
+ * @throws {RequiredError}
498
+ * @memberof GoalsApi
499
+ */
500
+ updateGoalWithHttpInfo(requestParameters: GoalsApiUpdateGoalRequest): Promise<ApiResponse<UpsertGoalResponse>>;
396
501
  }
@@ -301,6 +301,19 @@ const GoalsApiFp = function (configuration) {
301
301
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
302
302
  });
303
303
  },
304
+ /**
305
+ * Same as `addGoal`, but resolves with the response body together with the HTTP status and headers.
306
+ * @summary Add a new goal
307
+ * @param {AddGoalRequest} [AddGoalRequest]
308
+
309
+ * @throws {RequiredError}
310
+ */
311
+ addGoalWithHttpInfo(AddGoalRequest) {
312
+ return __awaiter(this, void 0, void 0, function* () {
313
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addGoal(AddGoalRequest);
314
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
315
+ });
316
+ },
304
317
  /**
305
318
  * Marks a goal as deleted.
306
319
  * @summary Delete existing goal
@@ -314,6 +327,19 @@ const GoalsApiFp = function (configuration) {
314
327
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
315
328
  });
316
329
  },
330
+ /**
331
+ * Same as `deleteGoal`, but resolves with the response body together with the HTTP status and headers.
332
+ * @summary Delete existing goal
333
+ * @param {string} id The ID of the goal
334
+
335
+ * @throws {RequiredError}
336
+ */
337
+ deleteGoalWithHttpInfo(id) {
338
+ return __awaiter(this, void 0, void 0, function* () {
339
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteGoal(id);
340
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
341
+ });
342
+ },
317
343
  /**
318
344
  * Gets the progress of a goal for the specified period.
319
345
  * @summary Get result of a goal
@@ -329,6 +355,21 @@ const GoalsApiFp = function (configuration) {
329
355
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
330
356
  });
331
357
  },
358
+ /**
359
+ * Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
360
+ * @summary Get result of a goal
361
+ * @param {string} id The ID of the goal that the results are looked for
362
+ * @param {string} period_start The start date of the period for which to find the goal\&#39;s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
363
+ * @param {string} period_end The end date of the period for which to find the goal\&#39;s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
364
+
365
+ * @throws {RequiredError}
366
+ */
367
+ getGoalResultWithHttpInfo(id, period_start, period_end) {
368
+ return __awaiter(this, void 0, void 0, function* () {
369
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoalResult(id, period_start, period_end);
370
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
371
+ });
372
+ },
332
373
  /**
333
374
  * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
334
375
  * @summary Find goals
@@ -354,6 +395,31 @@ const GoalsApiFp = function (configuration) {
354
395
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
355
396
  });
356
397
  },
398
+ /**
399
+ * Same as `getGoals`, but resolves with the response body together with the HTTP status and headers.
400
+ * @summary Find goals
401
+ * @param {'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started'} [type_name] The type of the goal. If provided, everyone\&#39;s goals will be returned.
402
+ * @param {string} [title] The title of the goal
403
+ * @param {boolean} [is_active] Whether the goal is active or not
404
+ * @param {number} [assignee_id] The ID of the user who\&#39;s goal to fetch. When omitted, only your goals will be returned.
405
+ * @param {'person' | 'company' | 'team'} [assignee_type] The type of the goal\&#39;s assignee. If provided, everyone\&#39;s goals will be returned.
406
+ * @param {number} [expected_outcome_target] The numeric value of the outcome. If provided, everyone\&#39;s goals will be returned.
407
+ * @param {'quantity' | 'sum'} [expected_outcome_tracking_metric] The tracking metric of the expected outcome of the goal. If provided, everyone\&#39;s goals will be returned.
408
+ * @param {number} [expected_outcome_currency_id] The numeric ID of the goal\&#39;s currency. Only applicable to goals with &#x60;expected_outcome.tracking_metric&#x60; with value &#x60;sum&#x60;. If provided, everyone\&#39;s goals will be returned.
409
+ * @param {Array<number>} [type_params_pipeline_id] An array of pipeline IDs or &#x60;null&#x60; for all pipelines. If provided, everyone\&#39;s goals will be returned.
410
+ * @param {number} [type_params_stage_id] The ID of the stage. Applicable to only &#x60;deals_progressed&#x60; type of goals. If provided, everyone\&#39;s goals will be returned.
411
+ * @param {Array<number>} [type_params_activity_type_id] An array of IDs or &#x60;null&#x60; for all activity types. Only applicable for &#x60;activities_completed&#x60; and/or &#x60;activities_added&#x60; types of goals. If provided, everyone\&#39;s goals will be returned.
412
+ * @param {string} [period_start] The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When &#x60;period.start&#x60; is provided, &#x60;period.end&#x60; must be provided too.
413
+ * @param {string} [period_end] The end date of the period for which to find goals. Date in format of YYYY-MM-DD.
414
+
415
+ * @throws {RequiredError}
416
+ */
417
+ getGoalsWithHttpInfo(type_name, title, is_active, assignee_id, assignee_type, expected_outcome_target, expected_outcome_tracking_metric, expected_outcome_currency_id, type_params_pipeline_id, type_params_stage_id, type_params_activity_type_id, period_start, period_end) {
418
+ return __awaiter(this, void 0, void 0, function* () {
419
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoals(type_name, title, is_active, assignee_id, assignee_type, expected_outcome_target, expected_outcome_tracking_metric, expected_outcome_currency_id, type_params_pipeline_id, type_params_stage_id, type_params_activity_type_id, period_start, period_end);
420
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
421
+ });
422
+ },
357
423
  /**
358
424
  * Updates an existing goal.
359
425
  * @summary Update existing goal
@@ -368,6 +434,20 @@ const GoalsApiFp = function (configuration) {
368
434
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
369
435
  });
370
436
  },
437
+ /**
438
+ * Same as `updateGoal`, but resolves with the response body together with the HTTP status and headers.
439
+ * @summary Update existing goal
440
+ * @param {string} id The ID of the goal
441
+ * @param {BasicGoalRequest} [BasicGoalRequest]
442
+
443
+ * @throws {RequiredError}
444
+ */
445
+ updateGoalWithHttpInfo(id, BasicGoalRequest) {
446
+ return __awaiter(this, void 0, void 0, function* () {
447
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateGoal(id, BasicGoalRequest);
448
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
449
+ });
450
+ },
371
451
  };
372
452
  };
373
453
  exports.GoalsApiFp = GoalsApiFp;
@@ -388,6 +468,9 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
388
468
  addGoal(requestParameters = {}) {
389
469
  return localVarFp.addGoal(requestParameters.AddGoalRequest).then((request) => request(axios, basePath));
390
470
  },
471
+ addGoalWithHttpInfo(requestParameters = {}) {
472
+ return localVarFp.addGoalWithHttpInfo(requestParameters.AddGoalRequest).then((request) => request(axios, basePath));
473
+ },
391
474
  /**
392
475
  * Marks a goal as deleted.
393
476
  * @summary Delete existing goal
@@ -398,6 +481,9 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
398
481
  deleteGoal(requestParameters) {
399
482
  return localVarFp.deleteGoal(requestParameters.id).then((request) => request(axios, basePath));
400
483
  },
484
+ deleteGoalWithHttpInfo(requestParameters) {
485
+ return localVarFp.deleteGoalWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
486
+ },
401
487
  /**
402
488
  * Gets the progress of a goal for the specified period.
403
489
  * @summary Get result of a goal
@@ -408,6 +494,9 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
408
494
  getGoalResult(requestParameters) {
409
495
  return localVarFp.getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
410
496
  },
497
+ getGoalResultWithHttpInfo(requestParameters) {
498
+ return localVarFp.getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
499
+ },
411
500
  /**
412
501
  * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
413
502
  * @summary Find goals
@@ -418,6 +507,9 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
418
507
  getGoals(requestParameters = {}) {
419
508
  return localVarFp.getGoals(requestParameters.type_name, requestParameters.title, requestParameters.is_active, requestParameters.assignee_id, requestParameters.assignee_type, requestParameters.expected_outcome_target, requestParameters.expected_outcome_tracking_metric, requestParameters.expected_outcome_currency_id, requestParameters.type_params_pipeline_id, requestParameters.type_params_stage_id, requestParameters.type_params_activity_type_id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
420
509
  },
510
+ getGoalsWithHttpInfo(requestParameters = {}) {
511
+ return localVarFp.getGoalsWithHttpInfo(requestParameters.type_name, requestParameters.title, requestParameters.is_active, requestParameters.assignee_id, requestParameters.assignee_type, requestParameters.expected_outcome_target, requestParameters.expected_outcome_tracking_metric, requestParameters.expected_outcome_currency_id, requestParameters.type_params_pipeline_id, requestParameters.type_params_stage_id, requestParameters.type_params_activity_type_id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
512
+ },
421
513
  /**
422
514
  * Updates an existing goal.
423
515
  * @summary Update existing goal
@@ -428,6 +520,9 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
428
520
  updateGoal(requestParameters) {
429
521
  return localVarFp.updateGoal(requestParameters.id, requestParameters.BasicGoalRequest).then((request) => request(axios, basePath));
430
522
  },
523
+ updateGoalWithHttpInfo(requestParameters) {
524
+ return localVarFp.updateGoalWithHttpInfo(requestParameters.id, requestParameters.BasicGoalRequest).then((request) => request(axios, basePath));
525
+ },
431
526
  };
432
527
  };
433
528
  exports.GoalsApiFactory = GoalsApiFactory;
@@ -449,6 +544,17 @@ class GoalsApi extends base_1.BaseAPI {
449
544
  addGoal(requestParameters = {}) {
450
545
  return (0, exports.GoalsApiFp)(this.configuration).addGoal(requestParameters.AddGoalRequest).then((request) => request(this.axios, this.basePath));
451
546
  }
547
+ /**
548
+ * Same as `addGoal`, but resolves with the response body together with the HTTP status and headers.
549
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
550
+ * @param {GoalsApiAddGoalRequest} requestParameters Request parameters.
551
+
552
+ * @throws {RequiredError}
553
+ * @memberof GoalsApi
554
+ */
555
+ addGoalWithHttpInfo(requestParameters = {}) {
556
+ return (0, exports.GoalsApiFp)(this.configuration).addGoalWithHttpInfo(requestParameters.AddGoalRequest).then((request) => request(this.axios, this.basePath));
557
+ }
452
558
  /**
453
559
  * Marks a goal as deleted.
454
560
  * @summary Delete existing goal
@@ -460,6 +566,17 @@ class GoalsApi extends base_1.BaseAPI {
460
566
  deleteGoal(requestParameters) {
461
567
  return (0, exports.GoalsApiFp)(this.configuration).deleteGoal(requestParameters.id).then((request) => request(this.axios, this.basePath));
462
568
  }
569
+ /**
570
+ * Same as `deleteGoal`, but resolves with the response body together with the HTTP status and headers.
571
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
572
+ * @param {GoalsApiDeleteGoalRequest} requestParameters Request parameters.
573
+
574
+ * @throws {RequiredError}
575
+ * @memberof GoalsApi
576
+ */
577
+ deleteGoalWithHttpInfo(requestParameters) {
578
+ return (0, exports.GoalsApiFp)(this.configuration).deleteGoalWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
579
+ }
463
580
  /**
464
581
  * Gets the progress of a goal for the specified period.
465
582
  * @summary Get result of a goal
@@ -471,6 +588,17 @@ class GoalsApi extends base_1.BaseAPI {
471
588
  getGoalResult(requestParameters) {
472
589
  return (0, exports.GoalsApiFp)(this.configuration).getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
473
590
  }
591
+ /**
592
+ * Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
593
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
594
+ * @param {GoalsApiGetGoalResultRequest} requestParameters Request parameters.
595
+
596
+ * @throws {RequiredError}
597
+ * @memberof GoalsApi
598
+ */
599
+ getGoalResultWithHttpInfo(requestParameters) {
600
+ return (0, exports.GoalsApiFp)(this.configuration).getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
601
+ }
474
602
  /**
475
603
  * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
476
604
  * @summary Find goals
@@ -482,6 +610,17 @@ class GoalsApi extends base_1.BaseAPI {
482
610
  getGoals(requestParameters = {}) {
483
611
  return (0, exports.GoalsApiFp)(this.configuration).getGoals(requestParameters.type_name, requestParameters.title, requestParameters.is_active, requestParameters.assignee_id, requestParameters.assignee_type, requestParameters.expected_outcome_target, requestParameters.expected_outcome_tracking_metric, requestParameters.expected_outcome_currency_id, requestParameters.type_params_pipeline_id, requestParameters.type_params_stage_id, requestParameters.type_params_activity_type_id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
484
612
  }
613
+ /**
614
+ * Same as `getGoals`, but resolves with the response body together with the HTTP status and headers.
615
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
616
+ * @param {GoalsApiGetGoalsRequest} requestParameters Request parameters.
617
+
618
+ * @throws {RequiredError}
619
+ * @memberof GoalsApi
620
+ */
621
+ getGoalsWithHttpInfo(requestParameters = {}) {
622
+ return (0, exports.GoalsApiFp)(this.configuration).getGoalsWithHttpInfo(requestParameters.type_name, requestParameters.title, requestParameters.is_active, requestParameters.assignee_id, requestParameters.assignee_type, requestParameters.expected_outcome_target, requestParameters.expected_outcome_tracking_metric, requestParameters.expected_outcome_currency_id, requestParameters.type_params_pipeline_id, requestParameters.type_params_stage_id, requestParameters.type_params_activity_type_id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
623
+ }
485
624
  /**
486
625
  * Updates an existing goal.
487
626
  * @summary Update existing goal
@@ -493,5 +632,16 @@ class GoalsApi extends base_1.BaseAPI {
493
632
  updateGoal(requestParameters) {
494
633
  return (0, exports.GoalsApiFp)(this.configuration).updateGoal(requestParameters.id, requestParameters.BasicGoalRequest).then((request) => request(this.axios, this.basePath));
495
634
  }
635
+ /**
636
+ * Same as `updateGoal`, but resolves with the response body together with the HTTP status and headers.
637
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
638
+ * @param {GoalsApiUpdateGoalRequest} requestParameters Request parameters.
639
+
640
+ * @throws {RequiredError}
641
+ * @memberof GoalsApi
642
+ */
643
+ updateGoalWithHttpInfo(requestParameters) {
644
+ return (0, exports.GoalsApiFp)(this.configuration).updateGoalWithHttpInfo(requestParameters.id, requestParameters.BasicGoalRequest).then((request) => request(this.axios, this.basePath));
645
+ }
496
646
  }
497
647
  exports.GoalsApi = GoalsApi;
@@ -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 { GetFieldsResponse } from '../models';
16
16
  /**
17
17
  * LeadFieldsApi - axios parameter creator
@@ -42,6 +42,15 @@ export declare const LeadFieldsApiFp: (configuration?: Configuration) => {
42
42
  * @throws {RequiredError}
43
43
  */
44
44
  getLeadFields(start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFieldsResponse>>;
45
+ /**
46
+ * Same as `getLeadFields`, but resolves with the response body together with the HTTP status and headers.
47
+ * @summary Get all lead fields
48
+ * @param {number} [start] Pagination start
49
+ * @param {number} [limit] Items shown per page
50
+
51
+ * @throws {RequiredError}
52
+ */
53
+ getLeadFieldsWithHttpInfo(start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetFieldsResponse>>>;
45
54
  };
46
55
  /**
47
56
  * LeadFieldsApi - factory interface
@@ -56,6 +65,7 @@ export declare const LeadFieldsApiFactory: (configuration?: Configuration, baseP
56
65
  * @throws {RequiredError}
57
66
  */
58
67
  getLeadFields(requestParameters?: LeadFieldsApiGetLeadFieldsRequest): Promise<GetFieldsResponse>;
68
+ getLeadFieldsWithHttpInfo(requestParameters?: LeadFieldsApiGetLeadFieldsRequest): Promise<ApiResponse<GetFieldsResponse>>;
59
69
  };
60
70
  /**
61
71
  * Request parameters for getLeadFields operation in LeadFieldsApi.
@@ -92,4 +102,13 @@ export declare class LeadFieldsApi extends BaseAPI {
92
102
  * @memberof LeadFieldsApi
93
103
  */
94
104
  getLeadFields(requestParameters?: LeadFieldsApiGetLeadFieldsRequest): Promise<GetFieldsResponse>;
105
+ /**
106
+ * Same as `getLeadFields`, but resolves with the response body together with the HTTP status and headers.
107
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
108
+ * @param {LeadFieldsApiGetLeadFieldsRequest} requestParameters Request parameters.
109
+
110
+ * @throws {RequiredError}
111
+ * @memberof LeadFieldsApi
112
+ */
113
+ getLeadFieldsWithHttpInfo(requestParameters?: LeadFieldsApiGetLeadFieldsRequest): Promise<ApiResponse<GetFieldsResponse>>;
95
114
  }
@@ -100,6 +100,20 @@ const LeadFieldsApiFp = function (configuration) {
100
100
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
101
101
  });
102
102
  },
103
+ /**
104
+ * Same as `getLeadFields`, but resolves with the response body together with the HTTP status and headers.
105
+ * @summary Get all lead fields
106
+ * @param {number} [start] Pagination start
107
+ * @param {number} [limit] Items shown per page
108
+
109
+ * @throws {RequiredError}
110
+ */
111
+ getLeadFieldsWithHttpInfo(start, limit) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeadFields(start, limit);
114
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
115
+ });
116
+ },
103
117
  };
104
118
  };
105
119
  exports.LeadFieldsApiFp = LeadFieldsApiFp;
@@ -120,6 +134,9 @@ const LeadFieldsApiFactory = function (configuration, basePath, axios) {
120
134
  getLeadFields(requestParameters = {}) {
121
135
  return localVarFp.getLeadFields(requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
122
136
  },
137
+ getLeadFieldsWithHttpInfo(requestParameters = {}) {
138
+ return localVarFp.getLeadFieldsWithHttpInfo(requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
139
+ },
123
140
  };
124
141
  };
125
142
  exports.LeadFieldsApiFactory = LeadFieldsApiFactory;
@@ -141,5 +158,16 @@ class LeadFieldsApi extends base_1.BaseAPI {
141
158
  getLeadFields(requestParameters = {}) {
142
159
  return (0, exports.LeadFieldsApiFp)(this.configuration).getLeadFields(requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
143
160
  }
161
+ /**
162
+ * Same as `getLeadFields`, but resolves with the response body together with the HTTP status and headers.
163
+ * Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
164
+ * @param {LeadFieldsApiGetLeadFieldsRequest} requestParameters Request parameters.
165
+
166
+ * @throws {RequiredError}
167
+ * @memberof LeadFieldsApi
168
+ */
169
+ getLeadFieldsWithHttpInfo(requestParameters = {}) {
170
+ return (0, exports.LeadFieldsApiFp)(this.configuration).getLeadFieldsWithHttpInfo(requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
171
+ }
144
172
  }
145
173
  exports.LeadFieldsApi = LeadFieldsApi;