pipedrive 32.2.0 → 33.0.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 (381) hide show
  1. package/dist/esm/versions/v1/api/notes-api.d.ts +18 -2
  2. package/dist/esm/versions/v1/api/notes-api.js +15 -5
  3. package/dist/esm/versions/v1/api/project-boards-api.d.ts +117 -0
  4. package/dist/esm/versions/v1/api/project-boards-api.js +191 -0
  5. package/dist/esm/versions/v1/api/project-phases-api.d.ts +134 -0
  6. package/dist/esm/versions/v1/api/project-phases-api.js +200 -0
  7. package/dist/esm/versions/v1/api/project-templates-api.d.ts +0 -94
  8. package/dist/esm/versions/v1/api/project-templates-api.js +0 -136
  9. package/dist/esm/versions/v1/api/projects-api.d.ts +0 -77
  10. package/dist/esm/versions/v1/api/projects-api.js +0 -131
  11. package/dist/esm/versions/v1/api.d.ts +2 -0
  12. package/dist/esm/versions/v1/api.js +2 -0
  13. package/dist/esm/versions/v1/models/add-note-request-all-of.d.ts +10 -5
  14. package/dist/esm/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
  15. package/dist/esm/versions/v1/models/add-note-request-all-of1.js +4 -0
  16. package/dist/esm/versions/v1/models/index.d.ts +1 -0
  17. package/dist/esm/versions/v1/models/index.js +1 -0
  18. package/dist/esm/versions/v1/models/note-request-all-of1.d.ts +5 -0
  19. package/dist/esm/versions/v1/models/note-task.d.ts +23 -0
  20. package/dist/esm/versions/v1/models/note-task.js +14 -0
  21. package/dist/esm/versions/v1/models/note.d.ts +16 -0
  22. package/dist/esm/versions/v2/api/beta-api.d.ts +1314 -0
  23. package/dist/esm/versions/v2/api/beta-api.js +1796 -0
  24. package/dist/esm/versions/v2/api/deal-installments-api.d.ts +294 -0
  25. package/dist/esm/versions/v2/api/deal-installments-api.js +374 -0
  26. package/dist/esm/versions/v2/api/deal-products-api.d.ts +482 -0
  27. package/dist/esm/versions/v2/api/deal-products-api.js +607 -0
  28. package/dist/esm/versions/v2/api/deals-api.d.ts +32 -696
  29. package/dist/esm/versions/v2/api/deals-api.js +54 -891
  30. package/dist/esm/versions/v2/api/organizations-api.d.ts +36 -4
  31. package/dist/esm/versions/v2/api/organizations-api.js +30 -10
  32. package/dist/esm/versions/v2/api/persons-api.d.ts +36 -4
  33. package/dist/esm/versions/v2/api/persons-api.js +30 -10
  34. package/dist/esm/versions/v2/api/project-boards-api.d.ts +266 -0
  35. package/dist/esm/versions/v2/api/project-boards-api.js +400 -0
  36. package/dist/esm/versions/v2/api/project-fields-api.d.ts +457 -0
  37. package/dist/esm/versions/v2/api/project-fields-api.js +636 -0
  38. package/dist/esm/versions/v2/api/project-phases-api.d.ts +283 -0
  39. package/dist/esm/versions/v2/api/project-phases-api.js +409 -0
  40. package/dist/esm/versions/v2/api/project-templates-api.d.ts +142 -0
  41. package/dist/esm/versions/v2/api/project-templates-api.js +203 -0
  42. package/dist/esm/versions/v2/api/projects-api.d.ts +644 -0
  43. package/dist/esm/versions/v2/api/projects-api.js +829 -0
  44. package/dist/esm/versions/v2/api/tasks-api.d.ts +333 -0
  45. package/dist/esm/versions/v2/api/tasks-api.js +437 -0
  46. package/dist/esm/versions/v2/api.d.ts +9 -0
  47. package/dist/esm/versions/v2/api.js +9 -0
  48. package/dist/esm/versions/v2/models/add-deal-request.d.ts +1 -1
  49. package/dist/esm/versions/v2/models/add-organization-request.d.ts +1 -1
  50. package/dist/esm/versions/v2/models/add-person-request.d.ts +1 -1
  51. package/dist/esm/versions/v2/models/add-product-request.d.ts +2 -2
  52. package/dist/esm/versions/v2/models/add-project-board-request.d.ts +28 -0
  53. package/dist/esm/versions/v2/models/add-project-board-request.js +14 -0
  54. package/dist/esm/versions/v2/models/add-project-field-request-important-fields.d.ts +29 -0
  55. package/dist/esm/versions/v2/models/add-project-field-request-important-fields.js +14 -0
  56. package/dist/esm/versions/v2/models/add-project-field-request-required-fields.d.ts +24 -0
  57. package/dist/esm/versions/v2/models/add-project-field-request-required-fields.js +14 -0
  58. package/dist/esm/versions/v2/models/add-project-field-request-ui-visibility.d.ts +29 -0
  59. package/dist/esm/versions/v2/models/add-project-field-request-ui-visibility.js +14 -0
  60. package/dist/esm/versions/v2/models/add-project-field-request.d.ts +71 -0
  61. package/dist/esm/versions/v2/models/add-project-field-request.js +31 -0
  62. package/dist/esm/versions/v2/models/add-project-field200-response.d.ts +29 -0
  63. package/dist/esm/versions/v2/models/add-project-field200-response.js +14 -0
  64. package/dist/esm/versions/v2/models/add-project-phase-request.d.ts +33 -0
  65. package/dist/esm/versions/v2/models/add-project-phase-request.js +14 -0
  66. package/dist/esm/versions/v2/models/add-project-request.d.ts +90 -0
  67. package/dist/esm/versions/v2/models/add-project-request.js +14 -0
  68. package/dist/esm/versions/v2/models/add-task-request.d.ts +83 -0
  69. package/dist/esm/versions/v2/models/add-task-request.js +21 -0
  70. package/dist/esm/versions/v2/models/add-task-response.d.ts +34 -0
  71. package/dist/esm/versions/v2/models/add-task-response.js +14 -0
  72. package/dist/esm/versions/v2/models/base-product-all-of.d.ts +55 -10
  73. package/dist/esm/versions/v2/models/base-product-all-of.js +5 -7
  74. package/dist/esm/versions/v2/models/base-product-all-of1.d.ts +32 -0
  75. package/dist/esm/versions/v2/models/base-product-all-of1.js +21 -0
  76. package/dist/esm/versions/v2/models/base-product.d.ts +2 -2
  77. package/dist/esm/versions/v2/models/deal.d.ts +1 -1
  78. package/dist/esm/versions/v2/models/delete-project-board-response-data.d.ts +23 -0
  79. package/dist/esm/versions/v2/models/delete-project-board-response-data.js +14 -0
  80. package/dist/esm/versions/v2/models/delete-project-board-response.d.ts +29 -0
  81. package/dist/esm/versions/v2/models/delete-project-board-response.js +14 -0
  82. package/dist/esm/versions/v2/models/delete-project-field200-response-data.d.ts +53 -0
  83. package/dist/esm/versions/v2/models/delete-project-field200-response-data.js +14 -0
  84. package/dist/esm/versions/v2/models/delete-project-field200-response.d.ts +29 -0
  85. package/dist/esm/versions/v2/models/delete-project-field200-response.js +14 -0
  86. package/dist/esm/versions/v2/models/delete-project-phase-response-data.d.ts +23 -0
  87. package/dist/esm/versions/v2/models/delete-project-phase-response-data.js +14 -0
  88. package/dist/esm/versions/v2/models/delete-project-phase-response.d.ts +29 -0
  89. package/dist/esm/versions/v2/models/delete-project-phase-response.js +14 -0
  90. package/dist/esm/versions/v2/models/delete-project-response-data.d.ts +23 -0
  91. package/dist/esm/versions/v2/models/delete-project-response-data.js +14 -0
  92. package/dist/esm/versions/v2/models/delete-project-response.d.ts +29 -0
  93. package/dist/esm/versions/v2/models/delete-project-response.js +14 -0
  94. package/dist/esm/versions/v2/models/delete-task-response-data.d.ts +23 -0
  95. package/dist/esm/versions/v2/models/delete-task-response-data.js +14 -0
  96. package/dist/esm/versions/v2/models/delete-task-response.d.ts +34 -0
  97. package/dist/esm/versions/v2/models/delete-task-response.js +14 -0
  98. package/dist/esm/versions/v2/models/get-persons-response-all-of.d.ts +3 -3
  99. package/dist/esm/versions/v2/models/get-project-boards-response-data-inner.d.ts +43 -0
  100. package/dist/esm/versions/v2/models/get-project-boards-response-data-inner.js +14 -0
  101. package/dist/esm/versions/v2/models/get-project-boards-response.d.ts +34 -0
  102. package/dist/esm/versions/v2/models/get-project-boards-response.js +14 -0
  103. package/dist/esm/versions/v2/models/get-project-changelog-response-data-inner.d.ts +52 -0
  104. package/dist/esm/versions/v2/models/get-project-changelog-response-data-inner.js +14 -0
  105. package/dist/esm/versions/v2/models/get-project-changelog-response.d.ts +35 -0
  106. package/dist/esm/versions/v2/models/get-project-changelog-response.js +14 -0
  107. package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner-ui-visibility.d.ts +28 -0
  108. package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner-ui-visibility.js +14 -0
  109. package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner.d.ts +109 -0
  110. package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner.js +48 -0
  111. package/dist/esm/versions/v2/models/get-project-fields200-response.d.ts +35 -0
  112. package/dist/esm/versions/v2/models/get-project-fields200-response.js +14 -0
  113. package/dist/esm/versions/v2/models/get-project-permitted-users-response.d.ts +28 -0
  114. package/dist/esm/versions/v2/models/get-project-permitted-users-response.js +14 -0
  115. package/dist/esm/versions/v2/models/get-project-phases-response-data-inner.d.ts +48 -0
  116. package/dist/esm/versions/v2/models/get-project-phases-response-data-inner.js +14 -0
  117. package/dist/esm/versions/v2/models/get-project-phases-response.d.ts +34 -0
  118. package/dist/esm/versions/v2/models/get-project-phases-response.js +14 -0
  119. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-deal.d.ts +28 -0
  120. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-deal.js +14 -0
  121. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-organization.d.ts +33 -0
  122. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-organization.js +14 -0
  123. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-owner.d.ts +23 -0
  124. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-owner.js +14 -0
  125. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-person.d.ts +28 -0
  126. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-person.js +14 -0
  127. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-phase.d.ts +28 -0
  128. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-phase.js +14 -0
  129. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item.d.ts +98 -0
  130. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item.js +14 -0
  131. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner.d.ts +29 -0
  132. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner.js +14 -0
  133. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data.d.ts +24 -0
  134. package/dist/esm/versions/v2/models/get-project-search-response-all-of-data.js +14 -0
  135. package/dist/esm/versions/v2/models/get-project-search-response-all-of.d.ts +30 -0
  136. package/dist/esm/versions/v2/models/get-project-search-response-all-of.js +14 -0
  137. package/dist/esm/versions/v2/models/get-project-search-response.d.ts +18 -0
  138. package/dist/esm/versions/v2/models/get-project-search-response.js +14 -0
  139. package/dist/esm/versions/v2/models/get-project-template-response.d.ts +34 -0
  140. package/dist/esm/versions/v2/models/get-project-template-response.js +14 -0
  141. package/dist/esm/versions/v2/models/get-project-templates-response.d.ts +35 -0
  142. package/dist/esm/versions/v2/models/get-project-templates-response.js +14 -0
  143. package/dist/esm/versions/v2/models/get-projects-response-all-of.d.ts +30 -0
  144. package/dist/esm/versions/v2/models/get-projects-response-all-of.js +14 -0
  145. package/dist/esm/versions/v2/models/get-projects-response.d.ts +18 -0
  146. package/dist/esm/versions/v2/models/get-projects-response.js +14 -0
  147. package/dist/esm/versions/v2/models/get-task-response.d.ts +34 -0
  148. package/dist/esm/versions/v2/models/get-task-response.js +14 -0
  149. package/dist/esm/versions/v2/models/get-tasks-response-data-inner.d.ts +93 -0
  150. package/dist/esm/versions/v2/models/get-tasks-response-data-inner.js +14 -0
  151. package/dist/esm/versions/v2/models/get-tasks-response.d.ts +35 -0
  152. package/dist/esm/versions/v2/models/get-tasks-response.js +14 -0
  153. package/dist/esm/versions/v2/models/index.d.ts +63 -0
  154. package/dist/esm/versions/v2/models/index.js +63 -0
  155. package/dist/esm/versions/v2/models/organization-item.d.ts +1 -1
  156. package/dist/esm/versions/v2/models/person-im-inner.d.ts +33 -0
  157. package/dist/esm/versions/v2/models/person-im-inner.js +14 -0
  158. package/dist/esm/versions/v2/models/person-postal-address.d.ts +68 -0
  159. package/dist/esm/versions/v2/models/person-postal-address.js +14 -0
  160. package/dist/esm/versions/v2/models/person.d.ts +124 -0
  161. package/dist/esm/versions/v2/models/person.js +14 -0
  162. package/dist/esm/versions/v2/models/product-request.d.ts +1 -1
  163. package/dist/esm/versions/v2/models/project-template.d.ts +53 -0
  164. package/dist/esm/versions/v2/models/project-template.js +14 -0
  165. package/dist/esm/versions/v2/models/project.d.ts +115 -0
  166. package/dist/esm/versions/v2/models/project.js +14 -0
  167. package/dist/esm/versions/v2/models/update-deal-request.d.ts +1 -1
  168. package/dist/esm/versions/v2/models/update-organization-field-request.d.ts +0 -5
  169. package/dist/esm/versions/v2/models/update-organization-request.d.ts +1 -1
  170. package/dist/esm/versions/v2/models/update-project-board-request.d.ts +28 -0
  171. package/dist/esm/versions/v2/models/update-project-board-request.js +14 -0
  172. package/dist/esm/versions/v2/models/update-project-field-request.d.ts +41 -0
  173. package/dist/esm/versions/v2/models/update-project-field-request.js +14 -0
  174. package/dist/esm/versions/v2/models/update-project-phase-request.d.ts +33 -0
  175. package/dist/esm/versions/v2/models/update-project-phase-request.js +14 -0
  176. package/dist/esm/versions/v2/models/update-project-request.d.ts +90 -0
  177. package/dist/esm/versions/v2/models/update-project-request.js +14 -0
  178. package/dist/esm/versions/v2/models/update-task-request.d.ts +83 -0
  179. package/dist/esm/versions/v2/models/update-task-request.js +21 -0
  180. package/dist/esm/versions/v2/models/update-task-response.d.ts +34 -0
  181. package/dist/esm/versions/v2/models/update-task-response.js +14 -0
  182. package/dist/esm/versions/v2/models/upsert-person-response-data.d.ts +3 -3
  183. package/dist/esm/versions/v2/models/upsert-project-board-response.d.ts +29 -0
  184. package/dist/esm/versions/v2/models/upsert-project-board-response.js +14 -0
  185. package/dist/esm/versions/v2/models/upsert-project-phase-response.d.ts +29 -0
  186. package/dist/esm/versions/v2/models/upsert-project-phase-response.js +14 -0
  187. package/dist/esm/versions/v2/models/upsert-project-response-all-of.d.ts +24 -0
  188. package/dist/esm/versions/v2/models/upsert-project-response-all-of.js +14 -0
  189. package/dist/esm/versions/v2/models/upsert-project-response.d.ts +18 -0
  190. package/dist/esm/versions/v2/models/upsert-project-response.js +14 -0
  191. package/dist/versions/v1/api/notes-api.d.ts +18 -2
  192. package/dist/versions/v1/api/notes-api.js +15 -5
  193. package/dist/versions/v1/api/project-boards-api.d.ts +117 -0
  194. package/dist/versions/v1/api/project-boards-api.js +201 -0
  195. package/dist/versions/v1/api/project-phases-api.d.ts +134 -0
  196. package/dist/versions/v1/api/project-phases-api.js +210 -0
  197. package/dist/versions/v1/api/project-templates-api.d.ts +0 -94
  198. package/dist/versions/v1/api/project-templates-api.js +0 -136
  199. package/dist/versions/v1/api/projects-api.d.ts +0 -77
  200. package/dist/versions/v1/api/projects-api.js +0 -131
  201. package/dist/versions/v1/api.d.ts +2 -0
  202. package/dist/versions/v1/api.js +2 -0
  203. package/dist/versions/v1/models/add-note-request-all-of.d.ts +10 -5
  204. package/dist/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
  205. package/dist/versions/v1/models/add-note-request-all-of1.js +5 -1
  206. package/dist/versions/v1/models/index.d.ts +1 -0
  207. package/dist/versions/v1/models/index.js +1 -0
  208. package/dist/versions/v1/models/note-request-all-of1.d.ts +5 -0
  209. package/dist/versions/v1/models/note-task.d.ts +23 -0
  210. package/dist/versions/v1/models/note-task.js +15 -0
  211. package/dist/versions/v1/models/note.d.ts +16 -0
  212. package/dist/versions/v2/api/beta-api.d.ts +1314 -0
  213. package/dist/versions/v2/api/beta-api.js +1806 -0
  214. package/dist/versions/v2/api/deal-installments-api.d.ts +294 -0
  215. package/dist/versions/v2/api/deal-installments-api.js +384 -0
  216. package/dist/versions/v2/api/deal-products-api.d.ts +482 -0
  217. package/dist/versions/v2/api/deal-products-api.js +617 -0
  218. package/dist/versions/v2/api/deals-api.d.ts +32 -696
  219. package/dist/versions/v2/api/deals-api.js +54 -891
  220. package/dist/versions/v2/api/organizations-api.d.ts +36 -4
  221. package/dist/versions/v2/api/organizations-api.js +30 -10
  222. package/dist/versions/v2/api/persons-api.d.ts +36 -4
  223. package/dist/versions/v2/api/persons-api.js +30 -10
  224. package/dist/versions/v2/api/project-boards-api.d.ts +266 -0
  225. package/dist/versions/v2/api/project-boards-api.js +410 -0
  226. package/dist/versions/v2/api/project-fields-api.d.ts +457 -0
  227. package/dist/versions/v2/api/project-fields-api.js +646 -0
  228. package/dist/versions/v2/api/project-phases-api.d.ts +283 -0
  229. package/dist/versions/v2/api/project-phases-api.js +419 -0
  230. package/dist/versions/v2/api/project-templates-api.d.ts +142 -0
  231. package/dist/versions/v2/api/project-templates-api.js +213 -0
  232. package/dist/versions/v2/api/projects-api.d.ts +644 -0
  233. package/dist/versions/v2/api/projects-api.js +839 -0
  234. package/dist/versions/v2/api/tasks-api.d.ts +333 -0
  235. package/dist/versions/v2/api/tasks-api.js +447 -0
  236. package/dist/versions/v2/api.d.ts +9 -0
  237. package/dist/versions/v2/api.js +9 -0
  238. package/dist/versions/v2/models/add-deal-request.d.ts +1 -1
  239. package/dist/versions/v2/models/add-organization-request.d.ts +1 -1
  240. package/dist/versions/v2/models/add-person-request.d.ts +1 -1
  241. package/dist/versions/v2/models/add-product-request.d.ts +2 -2
  242. package/dist/versions/v2/models/add-project-board-request.d.ts +28 -0
  243. package/dist/versions/v2/models/add-project-board-request.js +15 -0
  244. package/dist/versions/v2/models/add-project-field-request-important-fields.d.ts +29 -0
  245. package/dist/versions/v2/models/add-project-field-request-important-fields.js +15 -0
  246. package/dist/versions/v2/models/add-project-field-request-required-fields.d.ts +24 -0
  247. package/dist/versions/v2/models/add-project-field-request-required-fields.js +15 -0
  248. package/dist/versions/v2/models/add-project-field-request-ui-visibility.d.ts +29 -0
  249. package/dist/versions/v2/models/add-project-field-request-ui-visibility.js +15 -0
  250. package/dist/versions/v2/models/add-project-field-request.d.ts +71 -0
  251. package/dist/versions/v2/models/add-project-field-request.js +34 -0
  252. package/dist/versions/v2/models/add-project-field200-response.d.ts +29 -0
  253. package/dist/versions/v2/models/add-project-field200-response.js +15 -0
  254. package/dist/versions/v2/models/add-project-phase-request.d.ts +33 -0
  255. package/dist/versions/v2/models/add-project-phase-request.js +15 -0
  256. package/dist/versions/v2/models/add-project-request.d.ts +90 -0
  257. package/dist/versions/v2/models/add-project-request.js +15 -0
  258. package/dist/versions/v2/models/add-task-request.d.ts +83 -0
  259. package/dist/versions/v2/models/add-task-request.js +24 -0
  260. package/dist/versions/v2/models/add-task-response.d.ts +34 -0
  261. package/dist/versions/v2/models/add-task-response.js +15 -0
  262. package/dist/versions/v2/models/base-product-all-of.d.ts +55 -10
  263. package/dist/versions/v2/models/base-product-all-of.js +6 -8
  264. package/dist/versions/v2/models/base-product-all-of1.d.ts +32 -0
  265. package/dist/versions/v2/models/base-product-all-of1.js +24 -0
  266. package/dist/versions/v2/models/base-product.d.ts +2 -2
  267. package/dist/versions/v2/models/deal.d.ts +1 -1
  268. package/dist/versions/v2/models/delete-project-board-response-data.d.ts +23 -0
  269. package/dist/versions/v2/models/delete-project-board-response-data.js +15 -0
  270. package/dist/versions/v2/models/delete-project-board-response.d.ts +29 -0
  271. package/dist/versions/v2/models/delete-project-board-response.js +15 -0
  272. package/dist/versions/v2/models/delete-project-field200-response-data.d.ts +53 -0
  273. package/dist/versions/v2/models/delete-project-field200-response-data.js +15 -0
  274. package/dist/versions/v2/models/delete-project-field200-response.d.ts +29 -0
  275. package/dist/versions/v2/models/delete-project-field200-response.js +15 -0
  276. package/dist/versions/v2/models/delete-project-phase-response-data.d.ts +23 -0
  277. package/dist/versions/v2/models/delete-project-phase-response-data.js +15 -0
  278. package/dist/versions/v2/models/delete-project-phase-response.d.ts +29 -0
  279. package/dist/versions/v2/models/delete-project-phase-response.js +15 -0
  280. package/dist/versions/v2/models/delete-project-response-data.d.ts +23 -0
  281. package/dist/versions/v2/models/delete-project-response-data.js +15 -0
  282. package/dist/versions/v2/models/delete-project-response.d.ts +29 -0
  283. package/dist/versions/v2/models/delete-project-response.js +15 -0
  284. package/dist/versions/v2/models/delete-task-response-data.d.ts +23 -0
  285. package/dist/versions/v2/models/delete-task-response-data.js +15 -0
  286. package/dist/versions/v2/models/delete-task-response.d.ts +34 -0
  287. package/dist/versions/v2/models/delete-task-response.js +15 -0
  288. package/dist/versions/v2/models/get-persons-response-all-of.d.ts +3 -3
  289. package/dist/versions/v2/models/get-project-boards-response-data-inner.d.ts +43 -0
  290. package/dist/versions/v2/models/get-project-boards-response-data-inner.js +15 -0
  291. package/dist/versions/v2/models/get-project-boards-response.d.ts +34 -0
  292. package/dist/versions/v2/models/get-project-boards-response.js +15 -0
  293. package/dist/versions/v2/models/get-project-changelog-response-data-inner.d.ts +52 -0
  294. package/dist/versions/v2/models/get-project-changelog-response-data-inner.js +15 -0
  295. package/dist/versions/v2/models/get-project-changelog-response.d.ts +35 -0
  296. package/dist/versions/v2/models/get-project-changelog-response.js +15 -0
  297. package/dist/versions/v2/models/get-project-fields200-response-data-inner-ui-visibility.d.ts +28 -0
  298. package/dist/versions/v2/models/get-project-fields200-response-data-inner-ui-visibility.js +15 -0
  299. package/dist/versions/v2/models/get-project-fields200-response-data-inner.d.ts +109 -0
  300. package/dist/versions/v2/models/get-project-fields200-response-data-inner.js +51 -0
  301. package/dist/versions/v2/models/get-project-fields200-response.d.ts +35 -0
  302. package/dist/versions/v2/models/get-project-fields200-response.js +15 -0
  303. package/dist/versions/v2/models/get-project-permitted-users-response.d.ts +28 -0
  304. package/dist/versions/v2/models/get-project-permitted-users-response.js +15 -0
  305. package/dist/versions/v2/models/get-project-phases-response-data-inner.d.ts +48 -0
  306. package/dist/versions/v2/models/get-project-phases-response-data-inner.js +15 -0
  307. package/dist/versions/v2/models/get-project-phases-response.d.ts +34 -0
  308. package/dist/versions/v2/models/get-project-phases-response.js +15 -0
  309. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-deal.d.ts +28 -0
  310. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-deal.js +15 -0
  311. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-organization.d.ts +33 -0
  312. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-organization.js +15 -0
  313. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-owner.d.ts +23 -0
  314. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-owner.js +15 -0
  315. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-person.d.ts +28 -0
  316. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-person.js +15 -0
  317. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-phase.d.ts +28 -0
  318. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-phase.js +15 -0
  319. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item.d.ts +98 -0
  320. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item.js +15 -0
  321. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner.d.ts +29 -0
  322. package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner.js +15 -0
  323. package/dist/versions/v2/models/get-project-search-response-all-of-data.d.ts +24 -0
  324. package/dist/versions/v2/models/get-project-search-response-all-of-data.js +15 -0
  325. package/dist/versions/v2/models/get-project-search-response-all-of.d.ts +30 -0
  326. package/dist/versions/v2/models/get-project-search-response-all-of.js +15 -0
  327. package/dist/versions/v2/models/get-project-search-response.d.ts +18 -0
  328. package/dist/versions/v2/models/get-project-search-response.js +15 -0
  329. package/dist/versions/v2/models/get-project-template-response.d.ts +34 -0
  330. package/dist/versions/v2/models/get-project-template-response.js +15 -0
  331. package/dist/versions/v2/models/get-project-templates-response.d.ts +35 -0
  332. package/dist/versions/v2/models/get-project-templates-response.js +15 -0
  333. package/dist/versions/v2/models/get-projects-response-all-of.d.ts +30 -0
  334. package/dist/versions/v2/models/get-projects-response-all-of.js +15 -0
  335. package/dist/versions/v2/models/get-projects-response.d.ts +18 -0
  336. package/dist/versions/v2/models/get-projects-response.js +15 -0
  337. package/dist/versions/v2/models/get-task-response.d.ts +34 -0
  338. package/dist/versions/v2/models/get-task-response.js +15 -0
  339. package/dist/versions/v2/models/get-tasks-response-data-inner.d.ts +93 -0
  340. package/dist/versions/v2/models/get-tasks-response-data-inner.js +15 -0
  341. package/dist/versions/v2/models/get-tasks-response.d.ts +35 -0
  342. package/dist/versions/v2/models/get-tasks-response.js +15 -0
  343. package/dist/versions/v2/models/index.d.ts +63 -0
  344. package/dist/versions/v2/models/index.js +63 -0
  345. package/dist/versions/v2/models/organization-item.d.ts +1 -1
  346. package/dist/versions/v2/models/person-im-inner.d.ts +33 -0
  347. package/dist/versions/v2/models/person-im-inner.js +15 -0
  348. package/dist/versions/v2/models/person-postal-address.d.ts +68 -0
  349. package/dist/versions/v2/models/person-postal-address.js +15 -0
  350. package/dist/versions/v2/models/person.d.ts +124 -0
  351. package/dist/versions/v2/models/person.js +15 -0
  352. package/dist/versions/v2/models/product-request.d.ts +1 -1
  353. package/dist/versions/v2/models/project-template.d.ts +53 -0
  354. package/dist/versions/v2/models/project-template.js +15 -0
  355. package/dist/versions/v2/models/project.d.ts +115 -0
  356. package/dist/versions/v2/models/project.js +15 -0
  357. package/dist/versions/v2/models/update-deal-request.d.ts +1 -1
  358. package/dist/versions/v2/models/update-organization-field-request.d.ts +0 -5
  359. package/dist/versions/v2/models/update-organization-request.d.ts +1 -1
  360. package/dist/versions/v2/models/update-project-board-request.d.ts +28 -0
  361. package/dist/versions/v2/models/update-project-board-request.js +15 -0
  362. package/dist/versions/v2/models/update-project-field-request.d.ts +41 -0
  363. package/dist/versions/v2/models/update-project-field-request.js +15 -0
  364. package/dist/versions/v2/models/update-project-phase-request.d.ts +33 -0
  365. package/dist/versions/v2/models/update-project-phase-request.js +15 -0
  366. package/dist/versions/v2/models/update-project-request.d.ts +90 -0
  367. package/dist/versions/v2/models/update-project-request.js +15 -0
  368. package/dist/versions/v2/models/update-task-request.d.ts +83 -0
  369. package/dist/versions/v2/models/update-task-request.js +24 -0
  370. package/dist/versions/v2/models/update-task-response.d.ts +34 -0
  371. package/dist/versions/v2/models/update-task-response.js +15 -0
  372. package/dist/versions/v2/models/upsert-person-response-data.d.ts +3 -3
  373. package/dist/versions/v2/models/upsert-project-board-response.d.ts +29 -0
  374. package/dist/versions/v2/models/upsert-project-board-response.js +15 -0
  375. package/dist/versions/v2/models/upsert-project-phase-response.d.ts +29 -0
  376. package/dist/versions/v2/models/upsert-project-phase-response.js +15 -0
  377. package/dist/versions/v2/models/upsert-project-response-all-of.d.ts +24 -0
  378. package/dist/versions/v2/models/upsert-project-response-all-of.js +15 -0
  379. package/dist/versions/v2/models/upsert-project-response.d.ts +18 -0
  380. package/dist/versions/v2/models/upsert-project-response.js +15 -0
  381. package/package.json +3 -2
@@ -0,0 +1,294 @@
1
+ /**
2
+ * Pipedrive API v2
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosInstance } from 'axios';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { AddAInstallmentResponse } from '../models';
16
+ import { AddInstallmentRequestBody } from '../models';
17
+ import { DeleteInstallmentResponse } from '../models';
18
+ import { GetInstallmentsResponse } from '../models';
19
+ import { UpdateInstallmentRequestBody } from '../models';
20
+ import { UpdateInstallmentResponse } from '../models';
21
+ /**
22
+ * DealInstallmentsApi - axios parameter creator
23
+ * @export
24
+ */
25
+ export declare const DealInstallmentsApiAxiosParamCreator: (configuration?: Configuration) => {
26
+ /**
27
+ * Removes an installment from a deal. Only available in Growth and above plans.
28
+ * @summary Delete an installment from a deal
29
+ * @param {number} id The ID of the deal
30
+ * @param {number} installment_id The ID of the installment
31
+
32
+ * @throws {RequiredError}
33
+ */
34
+ deleteInstallment: (id: number, installment_id: number) => Promise<RequestArgs>;
35
+ /**
36
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
37
+ * @summary List installments added to a list of deals
38
+ * @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
39
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
40
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
41
+ * @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
42
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
43
+
44
+ * @throws {RequiredError}
45
+ */
46
+ getInstallments: (deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc') => Promise<RequestArgs>;
47
+ /**
48
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
49
+ * @summary Add an installment to a deal
50
+ * @param {number} id The ID of the deal
51
+ * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
52
+
53
+ * @throws {RequiredError}
54
+ */
55
+ postInstallment: (id: number, AddInstallmentRequestBody?: AddInstallmentRequestBody) => Promise<RequestArgs>;
56
+ /**
57
+ * Edits an installment added to a deal. Only available in Growth and above plans.
58
+ * @summary Update an installment added to a deal
59
+ * @param {number} id The ID of the deal
60
+ * @param {number} installment_id The ID of the installment
61
+ * @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
62
+
63
+ * @throws {RequiredError}
64
+ */
65
+ updateInstallment: (id: number, installment_id: number, UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody) => Promise<RequestArgs>;
66
+ };
67
+ /**
68
+ * DealInstallmentsApi - functional programming interface
69
+ * @export
70
+ */
71
+ export declare const DealInstallmentsApiFp: (configuration?: Configuration) => {
72
+ /**
73
+ * Removes an installment from a deal. Only available in Growth and above plans.
74
+ * @summary Delete an installment from a deal
75
+ * @param {number} id The ID of the deal
76
+ * @param {number} installment_id The ID of the installment
77
+
78
+ * @throws {RequiredError}
79
+ */
80
+ deleteInstallment(id: number, installment_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteInstallmentResponse>>;
81
+ /**
82
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
83
+ * @summary List installments added to a list of deals
84
+ * @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
85
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
86
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
87
+ * @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
88
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
89
+
90
+ * @throws {RequiredError}
91
+ */
92
+ getInstallments(deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetInstallmentsResponse>>;
93
+ /**
94
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
95
+ * @summary Add an installment to a deal
96
+ * @param {number} id The ID of the deal
97
+ * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
98
+
99
+ * @throws {RequiredError}
100
+ */
101
+ postInstallment(id: number, AddInstallmentRequestBody?: AddInstallmentRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddAInstallmentResponse>>;
102
+ /**
103
+ * Edits an installment added to a deal. Only available in Growth and above plans.
104
+ * @summary Update an installment added to a deal
105
+ * @param {number} id The ID of the deal
106
+ * @param {number} installment_id The ID of the installment
107
+ * @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
108
+
109
+ * @throws {RequiredError}
110
+ */
111
+ updateInstallment(id: number, installment_id: number, UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpdateInstallmentResponse>>;
112
+ };
113
+ /**
114
+ * DealInstallmentsApi - factory interface
115
+ * @export
116
+ */
117
+ export declare const DealInstallmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
118
+ /**
119
+ * Removes an installment from a deal. Only available in Growth and above plans.
120
+ * @summary Delete an installment from a deal
121
+ * @param {DealInstallmentsApiDeleteInstallmentRequest} requestParameters Request parameters.
122
+
123
+ * @throws {RequiredError}
124
+ */
125
+ deleteInstallment(requestParameters: DealInstallmentsApiDeleteInstallmentRequest): Promise<DeleteInstallmentResponse>;
126
+ /**
127
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
128
+ * @summary List installments added to a list of deals
129
+ * @param {DealInstallmentsApiGetInstallmentsRequest} requestParameters Request parameters.
130
+
131
+ * @throws {RequiredError}
132
+ */
133
+ getInstallments(requestParameters: DealInstallmentsApiGetInstallmentsRequest): Promise<GetInstallmentsResponse>;
134
+ /**
135
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
136
+ * @summary Add an installment to a deal
137
+ * @param {DealInstallmentsApiPostInstallmentRequest} requestParameters Request parameters.
138
+
139
+ * @throws {RequiredError}
140
+ */
141
+ postInstallment(requestParameters: DealInstallmentsApiPostInstallmentRequest): Promise<AddAInstallmentResponse>;
142
+ /**
143
+ * Edits an installment added to a deal. Only available in Growth and above plans.
144
+ * @summary Update an installment added to a deal
145
+ * @param {DealInstallmentsApiUpdateInstallmentRequest} requestParameters Request parameters.
146
+
147
+ * @throws {RequiredError}
148
+ */
149
+ updateInstallment(requestParameters: DealInstallmentsApiUpdateInstallmentRequest): Promise<UpdateInstallmentResponse>;
150
+ };
151
+ /**
152
+ * Request parameters for deleteInstallment operation in DealInstallmentsApi.
153
+ * @export
154
+ * @interface DealInstallmentsApiDeleteInstallmentRequest
155
+ */
156
+ export interface DealInstallmentsApiDeleteInstallmentRequest {
157
+ /**
158
+ * The ID of the deal
159
+ * @type {number}
160
+ * @memberof DealInstallmentsApiDeleteInstallment
161
+ */
162
+ readonly id: number;
163
+ /**
164
+ * The ID of the installment
165
+ * @type {number}
166
+ * @memberof DealInstallmentsApiDeleteInstallment
167
+ */
168
+ readonly installment_id: number;
169
+ }
170
+ /**
171
+ * Request parameters for getInstallments operation in DealInstallmentsApi.
172
+ * @export
173
+ * @interface DealInstallmentsApiGetInstallmentsRequest
174
+ */
175
+ export interface DealInstallmentsApiGetInstallmentsRequest {
176
+ /**
177
+ * An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
178
+ * @type {Array<number>}
179
+ * @memberof DealInstallmentsApiGetInstallments
180
+ */
181
+ readonly deal_ids: Array<number>;
182
+ /**
183
+ * For pagination, the marker (an opaque string value) representing the first item on the next page
184
+ * @type {string}
185
+ * @memberof DealInstallmentsApiGetInstallments
186
+ */
187
+ readonly cursor?: string;
188
+ /**
189
+ * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
190
+ * @type {number}
191
+ * @memberof DealInstallmentsApiGetInstallments
192
+ */
193
+ readonly limit?: number;
194
+ /**
195
+ * The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
196
+ * @type {'id' | 'billing_date' | 'deal_id'}
197
+ * @memberof DealInstallmentsApiGetInstallments
198
+ */
199
+ readonly sort_by?: 'id' | 'billing_date' | 'deal_id';
200
+ /**
201
+ * The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
202
+ * @type {'asc' | 'desc'}
203
+ * @memberof DealInstallmentsApiGetInstallments
204
+ */
205
+ readonly sort_direction?: 'asc' | 'desc';
206
+ }
207
+ /**
208
+ * Request parameters for postInstallment operation in DealInstallmentsApi.
209
+ * @export
210
+ * @interface DealInstallmentsApiPostInstallmentRequest
211
+ */
212
+ export interface DealInstallmentsApiPostInstallmentRequest {
213
+ /**
214
+ * The ID of the deal
215
+ * @type {number}
216
+ * @memberof DealInstallmentsApiPostInstallment
217
+ */
218
+ readonly id: number;
219
+ /**
220
+ *
221
+ * @type {AddInstallmentRequestBody}
222
+ * @memberof DealInstallmentsApiPostInstallment
223
+ */
224
+ readonly AddInstallmentRequestBody?: AddInstallmentRequestBody;
225
+ }
226
+ /**
227
+ * Request parameters for updateInstallment operation in DealInstallmentsApi.
228
+ * @export
229
+ * @interface DealInstallmentsApiUpdateInstallmentRequest
230
+ */
231
+ export interface DealInstallmentsApiUpdateInstallmentRequest {
232
+ /**
233
+ * The ID of the deal
234
+ * @type {number}
235
+ * @memberof DealInstallmentsApiUpdateInstallment
236
+ */
237
+ readonly id: number;
238
+ /**
239
+ * The ID of the installment
240
+ * @type {number}
241
+ * @memberof DealInstallmentsApiUpdateInstallment
242
+ */
243
+ readonly installment_id: number;
244
+ /**
245
+ *
246
+ * @type {UpdateInstallmentRequestBody}
247
+ * @memberof DealInstallmentsApiUpdateInstallment
248
+ */
249
+ readonly UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody;
250
+ }
251
+ /**
252
+ * DealInstallmentsApi - object-oriented interface
253
+ * @export
254
+ * @class DealInstallmentsApi
255
+ * @extends {BaseAPI}
256
+ */
257
+ export declare class DealInstallmentsApi extends BaseAPI {
258
+ /**
259
+ * Removes an installment from a deal. Only available in Growth and above plans.
260
+ * @summary Delete an installment from a deal
261
+ * @param {DealInstallmentsApiDeleteInstallmentRequest} requestParameters Request parameters.
262
+
263
+ * @throws {RequiredError}
264
+ * @memberof DealInstallmentsApi
265
+ */
266
+ deleteInstallment(requestParameters: DealInstallmentsApiDeleteInstallmentRequest): Promise<DeleteInstallmentResponse>;
267
+ /**
268
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
269
+ * @summary List installments added to a list of deals
270
+ * @param {DealInstallmentsApiGetInstallmentsRequest} requestParameters Request parameters.
271
+
272
+ * @throws {RequiredError}
273
+ * @memberof DealInstallmentsApi
274
+ */
275
+ getInstallments(requestParameters: DealInstallmentsApiGetInstallmentsRequest): Promise<GetInstallmentsResponse>;
276
+ /**
277
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
278
+ * @summary Add an installment to a deal
279
+ * @param {DealInstallmentsApiPostInstallmentRequest} requestParameters Request parameters.
280
+
281
+ * @throws {RequiredError}
282
+ * @memberof DealInstallmentsApi
283
+ */
284
+ postInstallment(requestParameters: DealInstallmentsApiPostInstallmentRequest): Promise<AddAInstallmentResponse>;
285
+ /**
286
+ * Edits an installment added to a deal. Only available in Growth and above plans.
287
+ * @summary Update an installment added to a deal
288
+ * @param {DealInstallmentsApiUpdateInstallmentRequest} requestParameters Request parameters.
289
+
290
+ * @throws {RequiredError}
291
+ * @memberof DealInstallmentsApi
292
+ */
293
+ updateInstallment(requestParameters: DealInstallmentsApiUpdateInstallmentRequest): Promise<UpdateInstallmentResponse>;
294
+ }
@@ -0,0 +1,374 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pipedrive API v2
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI } from '../base';
29
+ /**
30
+ * DealInstallmentsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const DealInstallmentsApiAxiosParamCreator = function (configuration) {
34
+ return {
35
+ /**
36
+ * Removes an installment from a deal. Only available in Growth and above plans.
37
+ * @summary Delete an installment from a deal
38
+ * @param {number} id The ID of the deal
39
+ * @param {number} installment_id The ID of the installment
40
+
41
+ * @throws {RequiredError}
42
+ */
43
+ deleteInstallment: (id, installment_id) => __awaiter(this, void 0, void 0, function* () {
44
+ // verify required parameter 'id' is not null or undefined
45
+ assertParamExists('deleteInstallment', 'id', id);
46
+ // verify required parameter 'installment_id' is not null or undefined
47
+ assertParamExists('deleteInstallment', 'installment_id', installment_id);
48
+ const localVarPath = `/deals/{id}/installments/{installment_id}`
49
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
50
+ .replace(`{${"installment_id"}}`, encodeURIComponent(String(installment_id)));
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ }
57
+ const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
58
+ const localVarHeaderParameter = {};
59
+ const localVarQueryParameter = {};
60
+ // authentication api_key required
61
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
62
+ // authentication oauth2 required
63
+ // oauth required
64
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
65
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
66
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
68
+ return {
69
+ url: toPathString(localVarUrlObj),
70
+ options: localVarRequestOptions,
71
+ };
72
+ }),
73
+ /**
74
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
75
+ * @summary List installments added to a list of deals
76
+ * @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
77
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
78
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
79
+ * @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
80
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
81
+
82
+ * @throws {RequiredError}
83
+ */
84
+ getInstallments: (deal_ids, cursor, limit, sort_by, sort_direction) => __awaiter(this, void 0, void 0, function* () {
85
+ // verify required parameter 'deal_ids' is not null or undefined
86
+ assertParamExists('getInstallments', 'deal_ids', deal_ids);
87
+ const localVarPath = `/deals/installments`;
88
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
89
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
90
+ let baseOptions;
91
+ if (configuration) {
92
+ baseOptions = configuration.baseOptions;
93
+ }
94
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
95
+ const localVarHeaderParameter = {};
96
+ const localVarQueryParameter = {};
97
+ // authentication api_key required
98
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
99
+ // authentication oauth2 required
100
+ // oauth required
101
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
102
+ if (deal_ids) {
103
+ localVarQueryParameter['deal_ids'] = deal_ids;
104
+ }
105
+ if (cursor !== undefined) {
106
+ localVarQueryParameter['cursor'] = cursor;
107
+ }
108
+ if (limit !== undefined) {
109
+ localVarQueryParameter['limit'] = limit;
110
+ }
111
+ if (sort_by !== undefined) {
112
+ localVarQueryParameter['sort_by'] = sort_by;
113
+ }
114
+ if (sort_direction !== undefined) {
115
+ localVarQueryParameter['sort_direction'] = sort_direction;
116
+ }
117
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
118
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
119
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
120
+ return {
121
+ url: toPathString(localVarUrlObj),
122
+ options: localVarRequestOptions,
123
+ };
124
+ }),
125
+ /**
126
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
127
+ * @summary Add an installment to a deal
128
+ * @param {number} id The ID of the deal
129
+ * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
130
+
131
+ * @throws {RequiredError}
132
+ */
133
+ postInstallment: (id, AddInstallmentRequestBody) => __awaiter(this, void 0, void 0, function* () {
134
+ // verify required parameter 'id' is not null or undefined
135
+ assertParamExists('postInstallment', 'id', id);
136
+ const localVarPath = `/deals/{id}/installments`
137
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
139
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
140
+ let baseOptions;
141
+ if (configuration) {
142
+ baseOptions = configuration.baseOptions;
143
+ }
144
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
145
+ const localVarHeaderParameter = {};
146
+ const localVarQueryParameter = {};
147
+ // authentication api_key required
148
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
149
+ // authentication oauth2 required
150
+ // oauth required
151
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
152
+ localVarHeaderParameter['Content-Type'] = 'application/json';
153
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
155
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
156
+ localVarRequestOptions.data = serializeDataIfNeeded(AddInstallmentRequestBody, localVarRequestOptions, configuration);
157
+ return {
158
+ url: toPathString(localVarUrlObj),
159
+ options: localVarRequestOptions,
160
+ };
161
+ }),
162
+ /**
163
+ * Edits an installment added to a deal. Only available in Growth and above plans.
164
+ * @summary Update an installment added to a deal
165
+ * @param {number} id The ID of the deal
166
+ * @param {number} installment_id The ID of the installment
167
+ * @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
168
+
169
+ * @throws {RequiredError}
170
+ */
171
+ updateInstallment: (id, installment_id, UpdateInstallmentRequestBody) => __awaiter(this, void 0, void 0, function* () {
172
+ // verify required parameter 'id' is not null or undefined
173
+ assertParamExists('updateInstallment', 'id', id);
174
+ // verify required parameter 'installment_id' is not null or undefined
175
+ assertParamExists('updateInstallment', 'installment_id', installment_id);
176
+ const localVarPath = `/deals/{id}/installments/{installment_id}`
177
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
178
+ .replace(`{${"installment_id"}}`, encodeURIComponent(String(installment_id)));
179
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
181
+ let baseOptions;
182
+ if (configuration) {
183
+ baseOptions = configuration.baseOptions;
184
+ }
185
+ const localVarRequestOptions = Object.assign({ method: 'PATCH' }, baseOptions);
186
+ const localVarHeaderParameter = {};
187
+ const localVarQueryParameter = {};
188
+ // authentication api_key required
189
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
190
+ // authentication oauth2 required
191
+ // oauth required
192
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
193
+ localVarHeaderParameter['Content-Type'] = 'application/json';
194
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
197
+ localVarRequestOptions.data = serializeDataIfNeeded(UpdateInstallmentRequestBody, localVarRequestOptions, configuration);
198
+ return {
199
+ url: toPathString(localVarUrlObj),
200
+ options: localVarRequestOptions,
201
+ };
202
+ }),
203
+ };
204
+ };
205
+ /**
206
+ * DealInstallmentsApi - functional programming interface
207
+ * @export
208
+ */
209
+ export const DealInstallmentsApiFp = function (configuration) {
210
+ const localVarAxiosParamCreator = DealInstallmentsApiAxiosParamCreator(configuration);
211
+ return {
212
+ /**
213
+ * Removes an installment from a deal. Only available in Growth and above plans.
214
+ * @summary Delete an installment from a deal
215
+ * @param {number} id The ID of the deal
216
+ * @param {number} installment_id The ID of the installment
217
+
218
+ * @throws {RequiredError}
219
+ */
220
+ deleteInstallment(id, installment_id) {
221
+ return __awaiter(this, void 0, void 0, function* () {
222
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInstallment(id, installment_id);
223
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
224
+ });
225
+ },
226
+ /**
227
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
228
+ * @summary List installments added to a list of deals
229
+ * @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
230
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
231
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
232
+ * @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
233
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
234
+
235
+ * @throws {RequiredError}
236
+ */
237
+ getInstallments(deal_ids, cursor, limit, sort_by, sort_direction) {
238
+ return __awaiter(this, void 0, void 0, function* () {
239
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInstallments(deal_ids, cursor, limit, sort_by, sort_direction);
240
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
241
+ });
242
+ },
243
+ /**
244
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
245
+ * @summary Add an installment to a deal
246
+ * @param {number} id The ID of the deal
247
+ * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
248
+
249
+ * @throws {RequiredError}
250
+ */
251
+ postInstallment(id, AddInstallmentRequestBody) {
252
+ return __awaiter(this, void 0, void 0, function* () {
253
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postInstallment(id, AddInstallmentRequestBody);
254
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
255
+ });
256
+ },
257
+ /**
258
+ * Edits an installment added to a deal. Only available in Growth and above plans.
259
+ * @summary Update an installment added to a deal
260
+ * @param {number} id The ID of the deal
261
+ * @param {number} installment_id The ID of the installment
262
+ * @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
263
+
264
+ * @throws {RequiredError}
265
+ */
266
+ updateInstallment(id, installment_id, UpdateInstallmentRequestBody) {
267
+ return __awaiter(this, void 0, void 0, function* () {
268
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateInstallment(id, installment_id, UpdateInstallmentRequestBody);
269
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
270
+ });
271
+ },
272
+ };
273
+ };
274
+ /**
275
+ * DealInstallmentsApi - factory interface
276
+ * @export
277
+ */
278
+ export const DealInstallmentsApiFactory = function (configuration, basePath, axios) {
279
+ const localVarFp = DealInstallmentsApiFp(configuration);
280
+ return {
281
+ /**
282
+ * Removes an installment from a deal. Only available in Growth and above plans.
283
+ * @summary Delete an installment from a deal
284
+ * @param {DealInstallmentsApiDeleteInstallmentRequest} requestParameters Request parameters.
285
+
286
+ * @throws {RequiredError}
287
+ */
288
+ deleteInstallment(requestParameters) {
289
+ return localVarFp.deleteInstallment(requestParameters.id, requestParameters.installment_id).then((request) => request(axios, basePath));
290
+ },
291
+ /**
292
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
293
+ * @summary List installments added to a list of deals
294
+ * @param {DealInstallmentsApiGetInstallmentsRequest} requestParameters Request parameters.
295
+
296
+ * @throws {RequiredError}
297
+ */
298
+ getInstallments(requestParameters) {
299
+ return localVarFp.getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
300
+ },
301
+ /**
302
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
303
+ * @summary Add an installment to a deal
304
+ * @param {DealInstallmentsApiPostInstallmentRequest} requestParameters Request parameters.
305
+
306
+ * @throws {RequiredError}
307
+ */
308
+ postInstallment(requestParameters) {
309
+ return localVarFp.postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody).then((request) => request(axios, basePath));
310
+ },
311
+ /**
312
+ * Edits an installment added to a deal. Only available in Growth and above plans.
313
+ * @summary Update an installment added to a deal
314
+ * @param {DealInstallmentsApiUpdateInstallmentRequest} requestParameters Request parameters.
315
+
316
+ * @throws {RequiredError}
317
+ */
318
+ updateInstallment(requestParameters) {
319
+ return localVarFp.updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody).then((request) => request(axios, basePath));
320
+ },
321
+ };
322
+ };
323
+ /**
324
+ * DealInstallmentsApi - object-oriented interface
325
+ * @export
326
+ * @class DealInstallmentsApi
327
+ * @extends {BaseAPI}
328
+ */
329
+ export class DealInstallmentsApi extends BaseAPI {
330
+ /**
331
+ * Removes an installment from a deal. Only available in Growth and above plans.
332
+ * @summary Delete an installment from a deal
333
+ * @param {DealInstallmentsApiDeleteInstallmentRequest} requestParameters Request parameters.
334
+
335
+ * @throws {RequiredError}
336
+ * @memberof DealInstallmentsApi
337
+ */
338
+ deleteInstallment(requestParameters) {
339
+ return DealInstallmentsApiFp(this.configuration).deleteInstallment(requestParameters.id, requestParameters.installment_id).then((request) => request(this.axios, this.basePath));
340
+ }
341
+ /**
342
+ * Lists installments attached to a list of deals. Only available in Growth and above plans.
343
+ * @summary List installments added to a list of deals
344
+ * @param {DealInstallmentsApiGetInstallmentsRequest} requestParameters Request parameters.
345
+
346
+ * @throws {RequiredError}
347
+ * @memberof DealInstallmentsApi
348
+ */
349
+ getInstallments(requestParameters) {
350
+ return DealInstallmentsApiFp(this.configuration).getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
351
+ }
352
+ /**
353
+ * Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
354
+ * @summary Add an installment to a deal
355
+ * @param {DealInstallmentsApiPostInstallmentRequest} requestParameters Request parameters.
356
+
357
+ * @throws {RequiredError}
358
+ * @memberof DealInstallmentsApi
359
+ */
360
+ postInstallment(requestParameters) {
361
+ return DealInstallmentsApiFp(this.configuration).postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody).then((request) => request(this.axios, this.basePath));
362
+ }
363
+ /**
364
+ * Edits an installment added to a deal. Only available in Growth and above plans.
365
+ * @summary Update an installment added to a deal
366
+ * @param {DealInstallmentsApiUpdateInstallmentRequest} requestParameters Request parameters.
367
+
368
+ * @throws {RequiredError}
369
+ * @memberof DealInstallmentsApi
370
+ */
371
+ updateInstallment(requestParameters) {
372
+ return DealInstallmentsApiFp(this.configuration).updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody).then((request) => request(this.axios, this.basePath));
373
+ }
374
+ }