@magnetcustomer/sdk 1.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 (1292) hide show
  1. package/.openapi-generator/FILES +432 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +148 -0
  5. package/api/actions-api.ts +313 -0
  6. package/api/activities-api.ts +5734 -0
  7. package/api/authentication-api.ts +316 -0
  8. package/api/batch-operations-api.ts +1168 -0
  9. package/api/calendar-api.ts +808 -0
  10. package/api/campaigns-api.ts +600 -0
  11. package/api/configs-api.ts +633 -0
  12. package/api/configuration-api.ts +1346 -0
  13. package/api/contacts-api.ts +996 -0
  14. package/api/crmcore-api.ts +4409 -0
  15. package/api/custom-field-blocks-api.ts +260 -0
  16. package/api/custom-fields-api.ts +602 -0
  17. package/api/custom-fields-usage-api.ts +196 -0
  18. package/api/customers-api.ts +1088 -0
  19. package/api/dashboards-api.ts +932 -0
  20. package/api/deals-api.ts +778 -0
  21. package/api/email-api.ts +932 -0
  22. package/api/entities-execution-api.ts +262 -0
  23. package/api/entity-reports-api.ts +313 -0
  24. package/api/events-api.ts +408 -0
  25. package/api/filter-presets-api.ts +188 -0
  26. package/api/filters-api.ts +2108 -0
  27. package/api/folders-api.ts +316 -0
  28. package/api/guides-api.ts +838 -0
  29. package/api/health-metrics-api.ts +316 -0
  30. package/api/integrations-api.ts +466 -0
  31. package/api/journeys-api.ts +935 -0
  32. package/api/known-addresses-api.ts +329 -0
  33. package/api/labels-api.ts +324 -0
  34. package/api/leads-api.ts +1675 -0
  35. package/api/meetings-api.ts +2183 -0
  36. package/api/messages-api.ts +1108 -0
  37. package/api/milestones-api.ts +118 -0
  38. package/api/nnmnovo-negocio-mensal-api.ts +313 -0
  39. package/api/observations-api.ts +277 -0
  40. package/api/organizations-api.ts +586 -0
  41. package/api/pagination-filtering-api.ts +158 -0
  42. package/api/pipelines-api.ts +202 -0
  43. package/api/pipelines-stages-api.ts +569 -0
  44. package/api/process-automation-api.ts +939 -0
  45. package/api/prospects-api.ts +1675 -0
  46. package/api/reports-api.ts +831 -0
  47. package/api/resources-api.ts +3951 -0
  48. package/api/roles-api.ts +121 -0
  49. package/api/rooms-api.ts +348 -0
  50. package/api/sales-pipeline-api.ts +1222 -0
  51. package/api/segmentation-api.ts +680 -0
  52. package/api/segmentation-rules-api.ts +399 -0
  53. package/api/sequences-api.ts +124 -0
  54. package/api/sharing-rules-api.ts +335 -0
  55. package/api/staffs-api.ts +422 -0
  56. package/api/stages-api.ts +310 -0
  57. package/api/stvmstatus-vs-tempo-vs-volume-api.ts +313 -0
  58. package/api/tasks-api.ts +1901 -0
  59. package/api/teams-api.ts +182 -0
  60. package/api/tickets-api.ts +1554 -0
  61. package/api/todos-api.ts +1056 -0
  62. package/api/treatments-api.ts +1411 -0
  63. package/api/types-api.ts +554 -0
  64. package/api/update-custom-resource-fields-api.ts +196 -0
  65. package/api/v1-legacy-api.ts +4157 -0
  66. package/api/v2-current-api.ts +19687 -0
  67. package/api/webhooks-api.ts +466 -0
  68. package/api/webhooks-setup-api.ts +188 -0
  69. package/api/widgets-api.ts +460 -0
  70. package/api/workspaces-api.ts +621 -0
  71. package/api.ts +83 -0
  72. package/base.ts +62 -0
  73. package/common.ts +127 -0
  74. package/configuration.ts +121 -0
  75. package/dist/api/actions-api.d.ts +147 -0
  76. package/dist/api/actions-api.js +308 -0
  77. package/dist/api/activities-api.d.ts +2553 -0
  78. package/dist/api/activities-api.js +5435 -0
  79. package/dist/api/authentication-api.d.ts +148 -0
  80. package/dist/api/authentication-api.js +309 -0
  81. package/dist/api/batch-operations-api.d.ts +540 -0
  82. package/dist/api/batch-operations-api.js +1125 -0
  83. package/dist/api/calendar-api.d.ts +368 -0
  84. package/dist/api/calendar-api.js +776 -0
  85. package/dist/api/campaigns-api.d.ts +276 -0
  86. package/dist/api/campaigns-api.js +579 -0
  87. package/dist/api/configs-api.d.ts +287 -0
  88. package/dist/api/configs-api.js +613 -0
  89. package/dist/api/configuration-api.d.ts +607 -0
  90. package/dist/api/configuration-api.js +1278 -0
  91. package/dist/api/contacts-api.d.ts +454 -0
  92. package/dist/api/contacts-api.js +948 -0
  93. package/dist/api/crmcore-api.d.ts +1978 -0
  94. package/dist/api/crmcore-api.js +4149 -0
  95. package/dist/api/custom-field-blocks-api.d.ts +126 -0
  96. package/dist/api/custom-field-blocks-api.js +260 -0
  97. package/dist/api/custom-fields-api.d.ts +278 -0
  98. package/dist/api/custom-fields-api.js +579 -0
  99. package/dist/api/custom-fields-usage-api.d.ts +98 -0
  100. package/dist/api/custom-fields-usage-api.js +198 -0
  101. package/dist/api/customers-api.d.ts +496 -0
  102. package/dist/api/customers-api.js +1035 -0
  103. package/dist/api/dashboards-api.d.ts +425 -0
  104. package/dist/api/dashboards-api.js +896 -0
  105. package/dist/api/deals-api.d.ts +359 -0
  106. package/dist/api/deals-api.js +735 -0
  107. package/dist/api/email-api.d.ts +424 -0
  108. package/dist/api/email-api.js +896 -0
  109. package/dist/api/entities-execution-api.d.ts +126 -0
  110. package/dist/api/entities-execution-api.js +260 -0
  111. package/dist/api/entity-reports-api.d.ts +147 -0
  112. package/dist/api/entity-reports-api.js +308 -0
  113. package/dist/api/events-api.d.ts +192 -0
  114. package/dist/api/events-api.js +396 -0
  115. package/dist/api/filter-presets-api.d.ts +94 -0
  116. package/dist/api/filter-presets-api.js +191 -0
  117. package/dist/api/filters-api.d.ts +932 -0
  118. package/dist/api/filters-api.js +2017 -0
  119. package/dist/api/folders-api.d.ts +150 -0
  120. package/dist/api/folders-api.js +313 -0
  121. package/dist/api/guides-api.d.ts +384 -0
  122. package/dist/api/guides-api.js +804 -0
  123. package/dist/api/health-metrics-api.d.ts +148 -0
  124. package/dist/api/health-metrics-api.js +309 -0
  125. package/dist/api/integrations-api.d.ts +216 -0
  126. package/dist/api/integrations-api.js +451 -0
  127. package/dist/api/journeys-api.d.ts +425 -0
  128. package/dist/api/journeys-api.js +897 -0
  129. package/dist/api/known-addresses-api.d.ts +155 -0
  130. package/dist/api/known-addresses-api.js +322 -0
  131. package/dist/api/labels-api.d.ts +155 -0
  132. package/dist/api/labels-api.js +319 -0
  133. package/dist/api/leads-api.d.ts +763 -0
  134. package/dist/api/leads-api.js +1583 -0
  135. package/dist/api/meetings-api.d.ts +981 -0
  136. package/dist/api/meetings-api.js +2085 -0
  137. package/dist/api/messages-api.d.ts +500 -0
  138. package/dist/api/messages-api.js +1065 -0
  139. package/dist/api/milestones-api.d.ts +62 -0
  140. package/dist/api/milestones-api.js +124 -0
  141. package/dist/api/nnmnovo-negocio-mensal-api.d.ts +147 -0
  142. package/dist/api/nnmnovo-negocio-mensal-api.js +308 -0
  143. package/dist/api/observations-api.d.ts +133 -0
  144. package/dist/api/observations-api.js +269 -0
  145. package/dist/api/organizations-api.d.ts +272 -0
  146. package/dist/api/organizations-api.js +554 -0
  147. package/dist/api/pagination-filtering-api.d.ts +82 -0
  148. package/dist/api/pagination-filtering-api.js +159 -0
  149. package/dist/api/pipelines-api.d.ts +102 -0
  150. package/dist/api/pipelines-api.js +205 -0
  151. package/dist/api/pipelines-stages-api.d.ts +259 -0
  152. package/dist/api/pipelines-stages-api.js +552 -0
  153. package/dist/api/process-automation-api.d.ts +425 -0
  154. package/dist/api/process-automation-api.js +899 -0
  155. package/dist/api/prospects-api.d.ts +763 -0
  156. package/dist/api/prospects-api.js +1583 -0
  157. package/dist/api/reports-api.d.ts +373 -0
  158. package/dist/api/reports-api.js +798 -0
  159. package/dist/api/resources-api.d.ts +1802 -0
  160. package/dist/api/resources-api.js +3775 -0
  161. package/dist/api/roles-api.d.ts +63 -0
  162. package/dist/api/roles-api.js +125 -0
  163. package/dist/api/rooms-api.d.ts +166 -0
  164. package/dist/api/rooms-api.js +342 -0
  165. package/dist/api/sales-pipeline-api.d.ts +552 -0
  166. package/dist/api/sales-pipeline-api.js +1156 -0
  167. package/dist/api/segmentation-api.d.ts +312 -0
  168. package/dist/api/segmentation-api.js +654 -0
  169. package/dist/api/segmentation-rules-api.d.ts +187 -0
  170. package/dist/api/segmentation-rules-api.js +389 -0
  171. package/dist/api/sequences-api.d.ts +66 -0
  172. package/dist/api/sequences-api.js +130 -0
  173. package/dist/api/sharing-rules-api.d.ts +159 -0
  174. package/dist/api/sharing-rules-api.js +328 -0
  175. package/dist/api/staffs-api.d.ts +200 -0
  176. package/dist/api/staffs-api.js +410 -0
  177. package/dist/api/stages-api.d.ts +146 -0
  178. package/dist/api/stages-api.js +307 -0
  179. package/dist/api/stvmstatus-vs-tempo-vs-volume-api.d.ts +147 -0
  180. package/dist/api/stvmstatus-vs-tempo-vs-volume-api.js +308 -0
  181. package/dist/api/tasks-api.d.ts +856 -0
  182. package/dist/api/tasks-api.js +1807 -0
  183. package/dist/api/teams-api.d.ts +90 -0
  184. package/dist/api/teams-api.js +185 -0
  185. package/dist/api/tickets-api.d.ts +703 -0
  186. package/dist/api/tickets-api.js +1485 -0
  187. package/dist/api/todos-api.d.ts +480 -0
  188. package/dist/api/todos-api.js +1016 -0
  189. package/dist/api/treatments-api.d.ts +637 -0
  190. package/dist/api/treatments-api.js +1352 -0
  191. package/dist/api/types-api.d.ts +258 -0
  192. package/dist/api/types-api.js +539 -0
  193. package/dist/api/update-custom-resource-fields-api.d.ts +98 -0
  194. package/dist/api/update-custom-resource-fields-api.js +199 -0
  195. package/dist/api/v1-legacy-api.d.ts +1894 -0
  196. package/dist/api/v1-legacy-api.js +3972 -0
  197. package/dist/api/v2-current-api.d.ts +8750 -0
  198. package/dist/api/v2-current-api.js +18584 -0
  199. package/dist/api/webhooks-api.d.ts +216 -0
  200. package/dist/api/webhooks-api.js +451 -0
  201. package/dist/api/webhooks-setup-api.d.ts +94 -0
  202. package/dist/api/webhooks-setup-api.js +191 -0
  203. package/dist/api/widgets-api.d.ts +215 -0
  204. package/dist/api/widgets-api.js +449 -0
  205. package/dist/api/workspaces-api.d.ts +288 -0
  206. package/dist/api/workspaces-api.js +599 -0
  207. package/dist/api.d.ts +77 -0
  208. package/dist/api.js +95 -0
  209. package/dist/base.d.ts +42 -0
  210. package/dist/base.js +46 -0
  211. package/dist/common.d.ts +34 -0
  212. package/dist/common.js +139 -0
  213. package/dist/configuration.d.ts +98 -0
  214. package/dist/configuration.js +44 -0
  215. package/dist/esm/api/actions-api.d.ts +147 -0
  216. package/dist/esm/api/actions-api.js +301 -0
  217. package/dist/esm/api/activities-api.d.ts +2553 -0
  218. package/dist/esm/api/activities-api.js +5428 -0
  219. package/dist/esm/api/authentication-api.d.ts +148 -0
  220. package/dist/esm/api/authentication-api.js +302 -0
  221. package/dist/esm/api/batch-operations-api.d.ts +540 -0
  222. package/dist/esm/api/batch-operations-api.js +1118 -0
  223. package/dist/esm/api/calendar-api.d.ts +368 -0
  224. package/dist/esm/api/calendar-api.js +769 -0
  225. package/dist/esm/api/campaigns-api.d.ts +276 -0
  226. package/dist/esm/api/campaigns-api.js +572 -0
  227. package/dist/esm/api/configs-api.d.ts +287 -0
  228. package/dist/esm/api/configs-api.js +606 -0
  229. package/dist/esm/api/configuration-api.d.ts +607 -0
  230. package/dist/esm/api/configuration-api.js +1271 -0
  231. package/dist/esm/api/contacts-api.d.ts +454 -0
  232. package/dist/esm/api/contacts-api.js +941 -0
  233. package/dist/esm/api/crmcore-api.d.ts +1978 -0
  234. package/dist/esm/api/crmcore-api.js +4142 -0
  235. package/dist/esm/api/custom-field-blocks-api.d.ts +126 -0
  236. package/dist/esm/api/custom-field-blocks-api.js +253 -0
  237. package/dist/esm/api/custom-fields-api.d.ts +278 -0
  238. package/dist/esm/api/custom-fields-api.js +572 -0
  239. package/dist/esm/api/custom-fields-usage-api.d.ts +98 -0
  240. package/dist/esm/api/custom-fields-usage-api.js +191 -0
  241. package/dist/esm/api/customers-api.d.ts +496 -0
  242. package/dist/esm/api/customers-api.js +1028 -0
  243. package/dist/esm/api/dashboards-api.d.ts +425 -0
  244. package/dist/esm/api/dashboards-api.js +889 -0
  245. package/dist/esm/api/deals-api.d.ts +359 -0
  246. package/dist/esm/api/deals-api.js +728 -0
  247. package/dist/esm/api/email-api.d.ts +424 -0
  248. package/dist/esm/api/email-api.js +889 -0
  249. package/dist/esm/api/entities-execution-api.d.ts +126 -0
  250. package/dist/esm/api/entities-execution-api.js +253 -0
  251. package/dist/esm/api/entity-reports-api.d.ts +147 -0
  252. package/dist/esm/api/entity-reports-api.js +301 -0
  253. package/dist/esm/api/events-api.d.ts +192 -0
  254. package/dist/esm/api/events-api.js +389 -0
  255. package/dist/esm/api/filter-presets-api.d.ts +94 -0
  256. package/dist/esm/api/filter-presets-api.js +184 -0
  257. package/dist/esm/api/filters-api.d.ts +932 -0
  258. package/dist/esm/api/filters-api.js +2010 -0
  259. package/dist/esm/api/folders-api.d.ts +150 -0
  260. package/dist/esm/api/folders-api.js +306 -0
  261. package/dist/esm/api/guides-api.d.ts +384 -0
  262. package/dist/esm/api/guides-api.js +797 -0
  263. package/dist/esm/api/health-metrics-api.d.ts +148 -0
  264. package/dist/esm/api/health-metrics-api.js +302 -0
  265. package/dist/esm/api/integrations-api.d.ts +216 -0
  266. package/dist/esm/api/integrations-api.js +444 -0
  267. package/dist/esm/api/journeys-api.d.ts +425 -0
  268. package/dist/esm/api/journeys-api.js +890 -0
  269. package/dist/esm/api/known-addresses-api.d.ts +155 -0
  270. package/dist/esm/api/known-addresses-api.js +315 -0
  271. package/dist/esm/api/labels-api.d.ts +155 -0
  272. package/dist/esm/api/labels-api.js +312 -0
  273. package/dist/esm/api/leads-api.d.ts +763 -0
  274. package/dist/esm/api/leads-api.js +1576 -0
  275. package/dist/esm/api/meetings-api.d.ts +981 -0
  276. package/dist/esm/api/meetings-api.js +2078 -0
  277. package/dist/esm/api/messages-api.d.ts +500 -0
  278. package/dist/esm/api/messages-api.js +1058 -0
  279. package/dist/esm/api/milestones-api.d.ts +62 -0
  280. package/dist/esm/api/milestones-api.js +117 -0
  281. package/dist/esm/api/nnmnovo-negocio-mensal-api.d.ts +147 -0
  282. package/dist/esm/api/nnmnovo-negocio-mensal-api.js +301 -0
  283. package/dist/esm/api/observations-api.d.ts +133 -0
  284. package/dist/esm/api/observations-api.js +262 -0
  285. package/dist/esm/api/organizations-api.d.ts +272 -0
  286. package/dist/esm/api/organizations-api.js +547 -0
  287. package/dist/esm/api/pagination-filtering-api.d.ts +82 -0
  288. package/dist/esm/api/pagination-filtering-api.js +152 -0
  289. package/dist/esm/api/pipelines-api.d.ts +102 -0
  290. package/dist/esm/api/pipelines-api.js +198 -0
  291. package/dist/esm/api/pipelines-stages-api.d.ts +259 -0
  292. package/dist/esm/api/pipelines-stages-api.js +545 -0
  293. package/dist/esm/api/process-automation-api.d.ts +425 -0
  294. package/dist/esm/api/process-automation-api.js +892 -0
  295. package/dist/esm/api/prospects-api.d.ts +763 -0
  296. package/dist/esm/api/prospects-api.js +1576 -0
  297. package/dist/esm/api/reports-api.d.ts +373 -0
  298. package/dist/esm/api/reports-api.js +791 -0
  299. package/dist/esm/api/resources-api.d.ts +1802 -0
  300. package/dist/esm/api/resources-api.js +3768 -0
  301. package/dist/esm/api/roles-api.d.ts +63 -0
  302. package/dist/esm/api/roles-api.js +118 -0
  303. package/dist/esm/api/rooms-api.d.ts +166 -0
  304. package/dist/esm/api/rooms-api.js +335 -0
  305. package/dist/esm/api/sales-pipeline-api.d.ts +552 -0
  306. package/dist/esm/api/sales-pipeline-api.js +1149 -0
  307. package/dist/esm/api/segmentation-api.d.ts +312 -0
  308. package/dist/esm/api/segmentation-api.js +647 -0
  309. package/dist/esm/api/segmentation-rules-api.d.ts +187 -0
  310. package/dist/esm/api/segmentation-rules-api.js +382 -0
  311. package/dist/esm/api/sequences-api.d.ts +66 -0
  312. package/dist/esm/api/sequences-api.js +123 -0
  313. package/dist/esm/api/sharing-rules-api.d.ts +159 -0
  314. package/dist/esm/api/sharing-rules-api.js +321 -0
  315. package/dist/esm/api/staffs-api.d.ts +200 -0
  316. package/dist/esm/api/staffs-api.js +403 -0
  317. package/dist/esm/api/stages-api.d.ts +146 -0
  318. package/dist/esm/api/stages-api.js +300 -0
  319. package/dist/esm/api/stvmstatus-vs-tempo-vs-volume-api.d.ts +147 -0
  320. package/dist/esm/api/stvmstatus-vs-tempo-vs-volume-api.js +301 -0
  321. package/dist/esm/api/tasks-api.d.ts +856 -0
  322. package/dist/esm/api/tasks-api.js +1800 -0
  323. package/dist/esm/api/teams-api.d.ts +90 -0
  324. package/dist/esm/api/teams-api.js +178 -0
  325. package/dist/esm/api/tickets-api.d.ts +703 -0
  326. package/dist/esm/api/tickets-api.js +1478 -0
  327. package/dist/esm/api/todos-api.d.ts +480 -0
  328. package/dist/esm/api/todos-api.js +1009 -0
  329. package/dist/esm/api/treatments-api.d.ts +637 -0
  330. package/dist/esm/api/treatments-api.js +1345 -0
  331. package/dist/esm/api/types-api.d.ts +258 -0
  332. package/dist/esm/api/types-api.js +532 -0
  333. package/dist/esm/api/update-custom-resource-fields-api.d.ts +98 -0
  334. package/dist/esm/api/update-custom-resource-fields-api.js +192 -0
  335. package/dist/esm/api/v1-legacy-api.d.ts +1894 -0
  336. package/dist/esm/api/v1-legacy-api.js +3965 -0
  337. package/dist/esm/api/v2-current-api.d.ts +8750 -0
  338. package/dist/esm/api/v2-current-api.js +18577 -0
  339. package/dist/esm/api/webhooks-api.d.ts +216 -0
  340. package/dist/esm/api/webhooks-api.js +444 -0
  341. package/dist/esm/api/webhooks-setup-api.d.ts +94 -0
  342. package/dist/esm/api/webhooks-setup-api.js +184 -0
  343. package/dist/esm/api/widgets-api.d.ts +215 -0
  344. package/dist/esm/api/widgets-api.js +442 -0
  345. package/dist/esm/api/workspaces-api.d.ts +288 -0
  346. package/dist/esm/api/workspaces-api.js +592 -0
  347. package/dist/esm/api.d.ts +77 -0
  348. package/dist/esm/api.js +79 -0
  349. package/dist/esm/base.d.ts +42 -0
  350. package/dist/esm/base.js +41 -0
  351. package/dist/esm/common.d.ts +34 -0
  352. package/dist/esm/common.js +126 -0
  353. package/dist/esm/configuration.d.ts +98 -0
  354. package/dist/esm/configuration.js +40 -0
  355. package/dist/esm/index.d.ts +14 -0
  356. package/dist/esm/index.js +16 -0
  357. package/dist/esm/models/api-calendars-events-get200-response-data-inner.d.ts +21 -0
  358. package/dist/esm/models/api-calendars-events-get200-response-data-inner.js +14 -0
  359. package/dist/esm/models/api-calendars-events-get200-response.d.ts +15 -0
  360. package/dist/esm/models/api-calendars-events-get200-response.js +14 -0
  361. package/dist/esm/models/api-calendars-events-post201-response.d.ts +18 -0
  362. package/dist/esm/models/api-calendars-events-post201-response.js +14 -0
  363. package/dist/esm/models/api-campaigns-get200-response-data-inner.d.ts +19 -0
  364. package/dist/esm/models/api-campaigns-get200-response-data-inner.js +14 -0
  365. package/dist/esm/models/api-campaigns-get200-response.d.ts +19 -0
  366. package/dist/esm/models/api-campaigns-get200-response.js +14 -0
  367. package/dist/esm/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response-data-inner-config.d.ts +15 -0
  368. package/dist/esm/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response-data-inner-config.js +14 -0
  369. package/dist/esm/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response-data-inner.d.ts +19 -0
  370. package/dist/esm/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response-data-inner.js +14 -0
  371. package/dist/esm/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response.d.ts +15 -0
  372. package/dist/esm/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response.js +14 -0
  373. package/dist/esm/models/api-contacts-filters-get200-response-data-inner-filters.d.ts +15 -0
  374. package/dist/esm/models/api-contacts-filters-get200-response-data-inner-filters.js +14 -0
  375. package/dist/esm/models/api-contacts-filters-get200-response-data-inner.d.ts +19 -0
  376. package/dist/esm/models/api-contacts-filters-get200-response-data-inner.js +14 -0
  377. package/dist/esm/models/api-contacts-filters-get200-response.d.ts +15 -0
  378. package/dist/esm/models/api-contacts-filters-get200-response.js +14 -0
  379. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-get200-response-owners-inner.d.ts +15 -0
  380. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-get200-response-owners-inner.js +14 -0
  381. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-get200-response.d.ts +24 -0
  382. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-get200-response.js +14 -0
  383. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-put-request.d.ts +15 -0
  384. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-put-request.js +14 -0
  385. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-put200-response-custom-fields-inner-v.d.ts +15 -0
  386. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-put200-response-custom-fields-inner-v.js +14 -0
  387. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-put200-response-custom-fields-inner.d.ts +17 -0
  388. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-put200-response-custom-fields-inner.js +14 -0
  389. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-put200-response-phones-inner.d.ts +15 -0
  390. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-put200-response-phones-inner.js +14 -0
  391. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-put200-response.d.ts +37 -0
  392. package/dist/esm/models/api-contacts507f1f77bcf86cd799439011-put200-response.js +14 -0
  393. package/dist/esm/models/api-customfields-post-request.d.ts +17 -0
  394. package/dist/esm/models/api-customfields-post-request.js +14 -0
  395. package/dist/esm/models/api-customfields-post201-response-settings.d.ts +30 -0
  396. package/dist/esm/models/api-customfields-post201-response-settings.js +14 -0
  397. package/dist/esm/models/api-customfields-post201-response-sub-field-settings.d.ts +15 -0
  398. package/dist/esm/models/api-customfields-post201-response-sub-field-settings.js +14 -0
  399. package/dist/esm/models/api-customfields-post201-response.d.ts +30 -0
  400. package/dist/esm/models/api-customfields-post201-response.js +14 -0
  401. package/dist/esm/models/api-customfields507f1f77bcf86cd799439150-get200-response-custom-field-block-attach.d.ts +22 -0
  402. package/dist/esm/models/api-customfields507f1f77bcf86cd799439150-get200-response-custom-field-block-attach.js +14 -0
  403. package/dist/esm/models/api-customfields507f1f77bcf86cd799439150-get200-response-field-type.d.ts +19 -0
  404. package/dist/esm/models/api-customfields507f1f77bcf86cd799439150-get200-response-field-type.js +14 -0
  405. package/dist/esm/models/api-customfields507f1f77bcf86cd799439150-get200-response.d.ts +35 -0
  406. package/dist/esm/models/api-customfields507f1f77bcf86cd799439150-get200-response.js +14 -0
  407. package/dist/esm/models/api-dashboards-get200-response-data-inner.d.ts +18 -0
  408. package/dist/esm/models/api-dashboards-get200-response-data-inner.js +14 -0
  409. package/dist/esm/models/api-dashboards-get200-response.d.ts +15 -0
  410. package/dist/esm/models/api-dashboards-get200-response.js +14 -0
  411. package/dist/esm/models/api-dashboards-post201-response.d.ts +17 -0
  412. package/dist/esm/models/api-dashboards-post201-response.js +14 -0
  413. package/dist/esm/models/api-dashboards507f1f77bcf86cd799439700-widgets507f1f77bcf86cd799439710-content-get200-response-data-inner.d.ts +16 -0
  414. package/dist/esm/models/api-dashboards507f1f77bcf86cd799439700-widgets507f1f77bcf86cd799439710-content-get200-response-data-inner.js +14 -0
  415. package/dist/esm/models/api-dashboards507f1f77bcf86cd799439700-widgets507f1f77bcf86cd799439710-content-get200-response.d.ts +18 -0
  416. package/dist/esm/models/api-dashboards507f1f77bcf86cd799439700-widgets507f1f77bcf86cd799439710-content-get200-response.js +14 -0
  417. package/dist/esm/models/api-deals-batch-move-post200-response.d.ts +16 -0
  418. package/dist/esm/models/api-deals-batch-move-post200-response.js +14 -0
  419. package/dist/esm/models/api-deals-get200-response-data-inner-pipeline.d.ts +15 -0
  420. package/dist/esm/models/api-deals-get200-response-data-inner-pipeline.js +14 -0
  421. package/dist/esm/models/api-deals-get200-response-data-inner.d.ts +21 -0
  422. package/dist/esm/models/api-deals-get200-response-data-inner.js +14 -0
  423. package/dist/esm/models/api-deals-get200-response.d.ts +19 -0
  424. package/dist/esm/models/api-deals-get200-response.js +14 -0
  425. package/dist/esm/models/api-deals-labels-post-request.d.ts +15 -0
  426. package/dist/esm/models/api-deals-labels-post-request.js +14 -0
  427. package/dist/esm/models/api-deals-post-request.d.ts +17 -0
  428. package/dist/esm/models/api-deals-post-request.js +14 -0
  429. package/dist/esm/models/api-deals-post201-response.d.ts +20 -0
  430. package/dist/esm/models/api-deals-post201-response.js +14 -0
  431. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-close-put-request.d.ts +14 -0
  432. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-close-put-request.js +14 -0
  433. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-get200-response-stage.d.ts +16 -0
  434. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-get200-response-stage.js +14 -0
  435. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-get200-response.d.ts +27 -0
  436. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-get200-response.js +14 -0
  437. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-put-request.d.ts +15 -0
  438. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-put-request.js +14 -0
  439. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-put200-response-contact.d.ts +19 -0
  440. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-put200-response-contact.js +14 -0
  441. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-put200-response-staff.d.ts +21 -0
  442. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-put200-response-staff.js +14 -0
  443. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-put200-response-stage.d.ts +23 -0
  444. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-put200-response-stage.js +14 -0
  445. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-put200-response.d.ts +37 -0
  446. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-put200-response.js +14 -0
  447. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-stage-put-request.d.ts +14 -0
  448. package/dist/esm/models/api-deals507f1f77bcf86cd799439022-stage-put-request.js +14 -0
  449. package/dist/esm/models/api-emails-configs-get200-response-data-inner.d.ts +20 -0
  450. package/dist/esm/models/api-emails-configs-get200-response-data-inner.js +14 -0
  451. package/dist/esm/models/api-emails-configs-get200-response.d.ts +15 -0
  452. package/dist/esm/models/api-emails-configs-get200-response.js +14 -0
  453. package/dist/esm/models/api-emails-known-addresses-get200-response-data-inner.d.ts +18 -0
  454. package/dist/esm/models/api-emails-known-addresses-get200-response-data-inner.js +14 -0
  455. package/dist/esm/models/api-emails-known-addresses-get200-response.d.ts +19 -0
  456. package/dist/esm/models/api-emails-known-addresses-get200-response.js +14 -0
  457. package/dist/esm/models/api-journeys-get200-response-data-inner.d.ts +22 -0
  458. package/dist/esm/models/api-journeys-get200-response-data-inner.js +14 -0
  459. package/dist/esm/models/api-journeys-get200-response.d.ts +19 -0
  460. package/dist/esm/models/api-journeys-get200-response.js +14 -0
  461. package/dist/esm/models/api-journeys507f1f77bcf86cd799439b00-health-score-get200-response-factors.d.ts +16 -0
  462. package/dist/esm/models/api-journeys507f1f77bcf86cd799439b00-health-score-get200-response-factors.js +14 -0
  463. package/dist/esm/models/api-journeys507f1f77bcf86cd799439b00-health-score-get200-response.d.ts +18 -0
  464. package/dist/esm/models/api-journeys507f1f77bcf86cd799439b00-health-score-get200-response.js +14 -0
  465. package/dist/esm/models/api-journeys507f1f77bcf86cd799439b00-mrr-history-get200-response-history-inner.d.ts +15 -0
  466. package/dist/esm/models/api-journeys507f1f77bcf86cd799439b00-mrr-history-get200-response-history-inner.js +14 -0
  467. package/dist/esm/models/api-journeys507f1f77bcf86cd799439b00-mrr-history-get200-response.d.ts +17 -0
  468. package/dist/esm/models/api-journeys507f1f77bcf86cd799439b00-mrr-history-get200-response.js +14 -0
  469. package/dist/esm/models/api-leads-get200-response-data-inner.d.ts +18 -0
  470. package/dist/esm/models/api-leads-get200-response-data-inner.js +14 -0
  471. package/dist/esm/models/api-leads-get200-response.d.ts +19 -0
  472. package/dist/esm/models/api-leads-get200-response.js +14 -0
  473. package/dist/esm/models/api-leads507f1f77bcf86cd799439044-get200-response.d.ts +20 -0
  474. package/dist/esm/models/api-leads507f1f77bcf86cd799439044-get200-response.js +14 -0
  475. package/dist/esm/models/api-meetings-get200-response-data-inner.d.ts +22 -0
  476. package/dist/esm/models/api-meetings-get200-response-data-inner.js +14 -0
  477. package/dist/esm/models/api-meetings-get200-response.d.ts +19 -0
  478. package/dist/esm/models/api-meetings-get200-response.js +14 -0
  479. package/dist/esm/models/api-meetings-post-request.d.ts +15 -0
  480. package/dist/esm/models/api-meetings-post-request.js +14 -0
  481. package/dist/esm/models/api-meetings-post201-response.d.ts +17 -0
  482. package/dist/esm/models/api-meetings-post201-response.js +14 -0
  483. package/dist/esm/models/api-observations-get200-response-data-inner.d.ts +20 -0
  484. package/dist/esm/models/api-observations-get200-response-data-inner.js +14 -0
  485. package/dist/esm/models/api-observations-get200-response.d.ts +19 -0
  486. package/dist/esm/models/api-observations-get200-response.js +14 -0
  487. package/dist/esm/models/api-observations-post-request.d.ts +16 -0
  488. package/dist/esm/models/api-observations-post-request.js +14 -0
  489. package/dist/esm/models/api-observations-post201-response.d.ts +18 -0
  490. package/dist/esm/models/api-observations-post201-response.js +14 -0
  491. package/dist/esm/models/api-organizations-get200-response-data-inner.d.ts +18 -0
  492. package/dist/esm/models/api-organizations-get200-response-data-inner.js +14 -0
  493. package/dist/esm/models/api-organizations-get200-response.d.ts +19 -0
  494. package/dist/esm/models/api-organizations-get200-response.js +14 -0
  495. package/dist/esm/models/api-organizations-post-request.d.ts +16 -0
  496. package/dist/esm/models/api-organizations-post-request.js +14 -0
  497. package/dist/esm/models/api-organizations-post201-response.d.ts +17 -0
  498. package/dist/esm/models/api-organizations-post201-response.js +14 -0
  499. package/dist/esm/models/api-organizations507f1f77bcf86cd799439055-get200-response.d.ts +20 -0
  500. package/dist/esm/models/api-organizations507f1f77bcf86cd799439055-get200-response.js +14 -0
  501. package/dist/esm/models/api-organizations507f1f77bcf86cd799439055-put-request.d.ts +14 -0
  502. package/dist/esm/models/api-organizations507f1f77bcf86cd799439055-put-request.js +14 -0
  503. package/dist/esm/models/api-organizations507f1f77bcf86cd799439055-put200-response-phones-inner.d.ts +16 -0
  504. package/dist/esm/models/api-organizations507f1f77bcf86cd799439055-put200-response-phones-inner.js +14 -0
  505. package/dist/esm/models/api-organizations507f1f77bcf86cd799439055-put200-response.d.ts +36 -0
  506. package/dist/esm/models/api-organizations507f1f77bcf86cd799439055-put200-response.js +14 -0
  507. package/dist/esm/models/api-pipelines-get200-response-inner.d.ts +19 -0
  508. package/dist/esm/models/api-pipelines-get200-response-inner.js +14 -0
  509. package/dist/esm/models/api-processautomations-get200-response-data-inner-stats.d.ts +16 -0
  510. package/dist/esm/models/api-processautomations-get200-response-data-inner-stats.js +14 -0
  511. package/dist/esm/models/api-processautomations-get200-response-data-inner.d.ts +21 -0
  512. package/dist/esm/models/api-processautomations-get200-response-data-inner.js +14 -0
  513. package/dist/esm/models/api-processautomations-get200-response.d.ts +19 -0
  514. package/dist/esm/models/api-processautomations-get200-response.js +14 -0
  515. package/dist/esm/models/api-processautomations-global-stats-get200-response-by-status.d.ts +16 -0
  516. package/dist/esm/models/api-processautomations-global-stats-get200-response-by-status.js +14 -0
  517. package/dist/esm/models/api-processautomations-global-stats-get200-response.d.ts +20 -0
  518. package/dist/esm/models/api-processautomations-global-stats-get200-response.js +14 -0
  519. package/dist/esm/models/api-processautomations-post201-response.d.ts +19 -0
  520. package/dist/esm/models/api-processautomations-post201-response.js +14 -0
  521. package/dist/esm/models/api-prospects-get200-response-data-inner.d.ts +19 -0
  522. package/dist/esm/models/api-prospects-get200-response-data-inner.js +14 -0
  523. package/dist/esm/models/api-prospects-get200-response.d.ts +19 -0
  524. package/dist/esm/models/api-prospects-get200-response.js +14 -0
  525. package/dist/esm/models/api-prospects-post201-response.d.ts +17 -0
  526. package/dist/esm/models/api-prospects-post201-response.js +14 -0
  527. package/dist/esm/models/api-prospects-post400-response-details-inner.d.ts +15 -0
  528. package/dist/esm/models/api-prospects-post400-response-details-inner.js +14 -0
  529. package/dist/esm/models/api-prospects-post400-response.d.ts +17 -0
  530. package/dist/esm/models/api-prospects-post400-response.js +14 -0
  531. package/dist/esm/models/api-prospects507f1f77bcf86cd799439033-get200-response.d.ts +22 -0
  532. package/dist/esm/models/api-prospects507f1f77bcf86cd799439033-get200-response.js +14 -0
  533. package/dist/esm/models/api-prospects507f1f77bcf86cd799439033-get404-response.d.ts +15 -0
  534. package/dist/esm/models/api-prospects507f1f77bcf86cd799439033-get404-response.js +14 -0
  535. package/dist/esm/models/api-prospects507f1f77bcf86cd799439033-put-request.d.ts +14 -0
  536. package/dist/esm/models/api-prospects507f1f77bcf86cd799439033-put-request.js +14 -0
  537. package/dist/esm/models/api-reports-contacts-get200-response-by-origin.d.ts +16 -0
  538. package/dist/esm/models/api-reports-contacts-get200-response-by-origin.js +14 -0
  539. package/dist/esm/models/api-reports-contacts-get200-response-by-status.d.ts +15 -0
  540. package/dist/esm/models/api-reports-contacts-get200-response-by-status.js +14 -0
  541. package/dist/esm/models/api-reports-contacts-get200-response.d.ts +20 -0
  542. package/dist/esm/models/api-reports-contacts-get200-response.js +14 -0
  543. package/dist/esm/models/api-reports-nnm-summary-get200-response-period.d.ts +15 -0
  544. package/dist/esm/models/api-reports-nnm-summary-get200-response-period.js +14 -0
  545. package/dist/esm/models/api-reports-nnm-summary-get200-response-summary.d.ts +20 -0
  546. package/dist/esm/models/api-reports-nnm-summary-get200-response-summary.js +14 -0
  547. package/dist/esm/models/api-reports-nnm-summary-get200-response.d.ts +17 -0
  548. package/dist/esm/models/api-reports-nnm-summary-get200-response.js +14 -0
  549. package/dist/esm/models/api-reports-stvm-summary-get200-response-stages-inner.d.ts +17 -0
  550. package/dist/esm/models/api-reports-stvm-summary-get200-response-stages-inner.js +14 -0
  551. package/dist/esm/models/api-reports-stvm-summary-get200-response.d.ts +17 -0
  552. package/dist/esm/models/api-reports-stvm-summary-get200-response.js +14 -0
  553. package/dist/esm/models/api-roles-get200-response-docs-inner.d.ts +21 -0
  554. package/dist/esm/models/api-roles-get200-response-docs-inner.js +14 -0
  555. package/dist/esm/models/api-roles-get200-response.d.ts +19 -0
  556. package/dist/esm/models/api-roles-get200-response.js +14 -0
  557. package/dist/esm/models/api-segmentation-rules-get200-response-data-inner.d.ts +19 -0
  558. package/dist/esm/models/api-segmentation-rules-get200-response-data-inner.js +14 -0
  559. package/dist/esm/models/api-segmentation-rules-get200-response.d.ts +19 -0
  560. package/dist/esm/models/api-segmentation-rules-get200-response.js +14 -0
  561. package/dist/esm/models/api-sharing-rules-get200-response-data-inner.d.ts +19 -0
  562. package/dist/esm/models/api-sharing-rules-get200-response-data-inner.js +14 -0
  563. package/dist/esm/models/api-sharing-rules-get200-response.d.ts +19 -0
  564. package/dist/esm/models/api-sharing-rules-get200-response.js +14 -0
  565. package/dist/esm/models/api-staffs-get200-response-docs-inner-role.d.ts +19 -0
  566. package/dist/esm/models/api-staffs-get200-response-docs-inner-role.js +14 -0
  567. package/dist/esm/models/api-staffs-get200-response-docs-inner-settings.d.ts +15 -0
  568. package/dist/esm/models/api-staffs-get200-response-docs-inner-settings.js +14 -0
  569. package/dist/esm/models/api-staffs-get200-response-docs-inner.d.ts +31 -0
  570. package/dist/esm/models/api-staffs-get200-response-docs-inner.js +14 -0
  571. package/dist/esm/models/api-staffs-get200-response.d.ts +19 -0
  572. package/dist/esm/models/api-staffs-get200-response.js +14 -0
  573. package/dist/esm/models/api-staffs507f1f77bcf86cd799439180-get200-response.d.ts +31 -0
  574. package/dist/esm/models/api-staffs507f1f77bcf86cd799439180-get200-response.js +14 -0
  575. package/dist/esm/models/api-tasks-filters-get200-response-data-inner-filters.d.ts +15 -0
  576. package/dist/esm/models/api-tasks-filters-get200-response-data-inner-filters.js +14 -0
  577. package/dist/esm/models/api-tasks-filters-get200-response-data-inner.d.ts +19 -0
  578. package/dist/esm/models/api-tasks-filters-get200-response-data-inner.js +14 -0
  579. package/dist/esm/models/api-tasks-filters-get200-response.d.ts +15 -0
  580. package/dist/esm/models/api-tasks-filters-get200-response.js +14 -0
  581. package/dist/esm/models/api-tasks-get200-response-data-inner.d.ts +23 -0
  582. package/dist/esm/models/api-tasks-get200-response-data-inner.js +14 -0
  583. package/dist/esm/models/api-tasks-get200-response.d.ts +19 -0
  584. package/dist/esm/models/api-tasks-get200-response.js +14 -0
  585. package/dist/esm/models/api-tasks-post-request.d.ts +15 -0
  586. package/dist/esm/models/api-tasks-post-request.js +14 -0
  587. package/dist/esm/models/api-tasks-selected-finish-put200-response.d.ts +15 -0
  588. package/dist/esm/models/api-tasks-selected-finish-put200-response.js +14 -0
  589. package/dist/esm/models/api-tasks507f1f77bcf86cd799439100-messages-get200-response-data-inner.d.ts +18 -0
  590. package/dist/esm/models/api-tasks507f1f77bcf86cd799439100-messages-get200-response-data-inner.js +14 -0
  591. package/dist/esm/models/api-tasks507f1f77bcf86cd799439100-messages-get200-response.d.ts +15 -0
  592. package/dist/esm/models/api-tasks507f1f77bcf86cd799439100-messages-get200-response.js +14 -0
  593. package/dist/esm/models/api-tasks507f1f77bcf86cd799439100-put-request.d.ts +14 -0
  594. package/dist/esm/models/api-tasks507f1f77bcf86cd799439100-put-request.js +14 -0
  595. package/dist/esm/models/api-tasks507f1f77bcf86cd799439100-todos-get200-response-data-inner.d.ts +18 -0
  596. package/dist/esm/models/api-tasks507f1f77bcf86cd799439100-todos-get200-response-data-inner.js +14 -0
  597. package/dist/esm/models/api-tasks507f1f77bcf86cd799439100-todos-get200-response.d.ts +15 -0
  598. package/dist/esm/models/api-tasks507f1f77bcf86cd799439100-todos-get200-response.js +14 -0
  599. package/dist/esm/models/api-tickets-get200-response-data-inner-status.d.ts +16 -0
  600. package/dist/esm/models/api-tickets-get200-response-data-inner-status.js +14 -0
  601. package/dist/esm/models/api-tickets-get200-response-data-inner.d.ts +20 -0
  602. package/dist/esm/models/api-tickets-get200-response-data-inner.js +14 -0
  603. package/dist/esm/models/api-tickets-get200-response.d.ts +19 -0
  604. package/dist/esm/models/api-tickets-get200-response.js +14 -0
  605. package/dist/esm/models/api-tickets-post-request.d.ts +14 -0
  606. package/dist/esm/models/api-tickets-post-request.js +14 -0
  607. package/dist/esm/models/api-tickets-post201-response.d.ts +16 -0
  608. package/dist/esm/models/api-tickets-post201-response.js +14 -0
  609. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-get200-response-contact.d.ts +27 -0
  610. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-get200-response-contact.js +14 -0
  611. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-get200-response-sender.d.ts +23 -0
  612. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-get200-response-sender.js +14 -0
  613. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-get200-response-status.d.ts +24 -0
  614. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-get200-response-status.js +14 -0
  615. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-get200-response.d.ts +36 -0
  616. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-get200-response.js +14 -0
  617. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-put200-response-contact.d.ts +28 -0
  618. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-put200-response-contact.js +14 -0
  619. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-put200-response.d.ts +34 -0
  620. package/dist/esm/models/api-tickets507f1f77bcf86cd799439130-put200-response.js +14 -0
  621. package/dist/esm/models/api-treatments-get200-response-data-inner.d.ts +20 -0
  622. package/dist/esm/models/api-treatments-get200-response-data-inner.js +14 -0
  623. package/dist/esm/models/api-treatments-get200-response.d.ts +19 -0
  624. package/dist/esm/models/api-treatments-get200-response.js +14 -0
  625. package/dist/esm/models/api-treatments-post201-response.d.ts +16 -0
  626. package/dist/esm/models/api-treatments-post201-response.js +14 -0
  627. package/dist/esm/models/api-webhooks-get200-response-data-inner-stats.d.ts +15 -0
  628. package/dist/esm/models/api-webhooks-get200-response-data-inner-stats.js +14 -0
  629. package/dist/esm/models/api-webhooks-get200-response-data-inner.d.ts +21 -0
  630. package/dist/esm/models/api-webhooks-get200-response-data-inner.js +14 -0
  631. package/dist/esm/models/api-webhooks-get200-response.d.ts +19 -0
  632. package/dist/esm/models/api-webhooks-get200-response.js +14 -0
  633. package/dist/esm/models/api-webhooks507f1f77bcf86cd799439200-put-request.d.ts +15 -0
  634. package/dist/esm/models/api-webhooks507f1f77bcf86cd799439200-put-request.js +14 -0
  635. package/dist/esm/models/api-workspaces-get200-response-docs-inner.d.ts +21 -0
  636. package/dist/esm/models/api-workspaces-get200-response-docs-inner.js +14 -0
  637. package/dist/esm/models/api-workspaces-get200-response.d.ts +19 -0
  638. package/dist/esm/models/api-workspaces-get200-response.js +14 -0
  639. package/dist/esm/models/index.d.ts +143 -0
  640. package/dist/esm/models/index.js +143 -0
  641. package/dist/esm/models/token-post200-response.d.ts +19 -0
  642. package/dist/esm/models/token-post200-response.js +14 -0
  643. package/dist/esm/models/userinfo-get200-response.d.ts +21 -0
  644. package/dist/esm/models/userinfo-get200-response.js +14 -0
  645. package/dist/index.d.ts +14 -0
  646. package/dist/index.js +32 -0
  647. package/dist/models/api-calendars-events-get200-response-data-inner.d.ts +21 -0
  648. package/dist/models/api-calendars-events-get200-response-data-inner.js +15 -0
  649. package/dist/models/api-calendars-events-get200-response.d.ts +15 -0
  650. package/dist/models/api-calendars-events-get200-response.js +15 -0
  651. package/dist/models/api-calendars-events-post201-response.d.ts +18 -0
  652. package/dist/models/api-calendars-events-post201-response.js +15 -0
  653. package/dist/models/api-campaigns-get200-response-data-inner.d.ts +19 -0
  654. package/dist/models/api-campaigns-get200-response-data-inner.js +15 -0
  655. package/dist/models/api-campaigns-get200-response.d.ts +19 -0
  656. package/dist/models/api-campaigns-get200-response.js +15 -0
  657. package/dist/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response-data-inner-config.d.ts +15 -0
  658. package/dist/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response-data-inner-config.js +15 -0
  659. package/dist/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response-data-inner.d.ts +19 -0
  660. package/dist/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response-data-inner.js +15 -0
  661. package/dist/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response.d.ts +15 -0
  662. package/dist/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response.js +15 -0
  663. package/dist/models/api-contacts-filters-get200-response-data-inner-filters.d.ts +15 -0
  664. package/dist/models/api-contacts-filters-get200-response-data-inner-filters.js +15 -0
  665. package/dist/models/api-contacts-filters-get200-response-data-inner.d.ts +19 -0
  666. package/dist/models/api-contacts-filters-get200-response-data-inner.js +15 -0
  667. package/dist/models/api-contacts-filters-get200-response.d.ts +15 -0
  668. package/dist/models/api-contacts-filters-get200-response.js +15 -0
  669. package/dist/models/api-contacts507f1f77bcf86cd799439011-get200-response-owners-inner.d.ts +15 -0
  670. package/dist/models/api-contacts507f1f77bcf86cd799439011-get200-response-owners-inner.js +15 -0
  671. package/dist/models/api-contacts507f1f77bcf86cd799439011-get200-response.d.ts +24 -0
  672. package/dist/models/api-contacts507f1f77bcf86cd799439011-get200-response.js +15 -0
  673. package/dist/models/api-contacts507f1f77bcf86cd799439011-put-request.d.ts +15 -0
  674. package/dist/models/api-contacts507f1f77bcf86cd799439011-put-request.js +15 -0
  675. package/dist/models/api-contacts507f1f77bcf86cd799439011-put200-response-custom-fields-inner-v.d.ts +15 -0
  676. package/dist/models/api-contacts507f1f77bcf86cd799439011-put200-response-custom-fields-inner-v.js +15 -0
  677. package/dist/models/api-contacts507f1f77bcf86cd799439011-put200-response-custom-fields-inner.d.ts +17 -0
  678. package/dist/models/api-contacts507f1f77bcf86cd799439011-put200-response-custom-fields-inner.js +15 -0
  679. package/dist/models/api-contacts507f1f77bcf86cd799439011-put200-response-phones-inner.d.ts +15 -0
  680. package/dist/models/api-contacts507f1f77bcf86cd799439011-put200-response-phones-inner.js +15 -0
  681. package/dist/models/api-contacts507f1f77bcf86cd799439011-put200-response.d.ts +37 -0
  682. package/dist/models/api-contacts507f1f77bcf86cd799439011-put200-response.js +15 -0
  683. package/dist/models/api-customfields-post-request.d.ts +17 -0
  684. package/dist/models/api-customfields-post-request.js +15 -0
  685. package/dist/models/api-customfields-post201-response-settings.d.ts +30 -0
  686. package/dist/models/api-customfields-post201-response-settings.js +15 -0
  687. package/dist/models/api-customfields-post201-response-sub-field-settings.d.ts +15 -0
  688. package/dist/models/api-customfields-post201-response-sub-field-settings.js +15 -0
  689. package/dist/models/api-customfields-post201-response.d.ts +30 -0
  690. package/dist/models/api-customfields-post201-response.js +15 -0
  691. package/dist/models/api-customfields507f1f77bcf86cd799439150-get200-response-custom-field-block-attach.d.ts +22 -0
  692. package/dist/models/api-customfields507f1f77bcf86cd799439150-get200-response-custom-field-block-attach.js +15 -0
  693. package/dist/models/api-customfields507f1f77bcf86cd799439150-get200-response-field-type.d.ts +19 -0
  694. package/dist/models/api-customfields507f1f77bcf86cd799439150-get200-response-field-type.js +15 -0
  695. package/dist/models/api-customfields507f1f77bcf86cd799439150-get200-response.d.ts +35 -0
  696. package/dist/models/api-customfields507f1f77bcf86cd799439150-get200-response.js +15 -0
  697. package/dist/models/api-dashboards-get200-response-data-inner.d.ts +18 -0
  698. package/dist/models/api-dashboards-get200-response-data-inner.js +15 -0
  699. package/dist/models/api-dashboards-get200-response.d.ts +15 -0
  700. package/dist/models/api-dashboards-get200-response.js +15 -0
  701. package/dist/models/api-dashboards-post201-response.d.ts +17 -0
  702. package/dist/models/api-dashboards-post201-response.js +15 -0
  703. package/dist/models/api-dashboards507f1f77bcf86cd799439700-widgets507f1f77bcf86cd799439710-content-get200-response-data-inner.d.ts +16 -0
  704. package/dist/models/api-dashboards507f1f77bcf86cd799439700-widgets507f1f77bcf86cd799439710-content-get200-response-data-inner.js +15 -0
  705. package/dist/models/api-dashboards507f1f77bcf86cd799439700-widgets507f1f77bcf86cd799439710-content-get200-response.d.ts +18 -0
  706. package/dist/models/api-dashboards507f1f77bcf86cd799439700-widgets507f1f77bcf86cd799439710-content-get200-response.js +15 -0
  707. package/dist/models/api-deals-batch-move-post200-response.d.ts +16 -0
  708. package/dist/models/api-deals-batch-move-post200-response.js +15 -0
  709. package/dist/models/api-deals-get200-response-data-inner-pipeline.d.ts +15 -0
  710. package/dist/models/api-deals-get200-response-data-inner-pipeline.js +15 -0
  711. package/dist/models/api-deals-get200-response-data-inner.d.ts +21 -0
  712. package/dist/models/api-deals-get200-response-data-inner.js +15 -0
  713. package/dist/models/api-deals-get200-response.d.ts +19 -0
  714. package/dist/models/api-deals-get200-response.js +15 -0
  715. package/dist/models/api-deals-labels-post-request.d.ts +15 -0
  716. package/dist/models/api-deals-labels-post-request.js +15 -0
  717. package/dist/models/api-deals-post-request.d.ts +17 -0
  718. package/dist/models/api-deals-post-request.js +15 -0
  719. package/dist/models/api-deals-post201-response.d.ts +20 -0
  720. package/dist/models/api-deals-post201-response.js +15 -0
  721. package/dist/models/api-deals507f1f77bcf86cd799439022-close-put-request.d.ts +14 -0
  722. package/dist/models/api-deals507f1f77bcf86cd799439022-close-put-request.js +15 -0
  723. package/dist/models/api-deals507f1f77bcf86cd799439022-get200-response-stage.d.ts +16 -0
  724. package/dist/models/api-deals507f1f77bcf86cd799439022-get200-response-stage.js +15 -0
  725. package/dist/models/api-deals507f1f77bcf86cd799439022-get200-response.d.ts +27 -0
  726. package/dist/models/api-deals507f1f77bcf86cd799439022-get200-response.js +15 -0
  727. package/dist/models/api-deals507f1f77bcf86cd799439022-put-request.d.ts +15 -0
  728. package/dist/models/api-deals507f1f77bcf86cd799439022-put-request.js +15 -0
  729. package/dist/models/api-deals507f1f77bcf86cd799439022-put200-response-contact.d.ts +19 -0
  730. package/dist/models/api-deals507f1f77bcf86cd799439022-put200-response-contact.js +15 -0
  731. package/dist/models/api-deals507f1f77bcf86cd799439022-put200-response-staff.d.ts +21 -0
  732. package/dist/models/api-deals507f1f77bcf86cd799439022-put200-response-staff.js +15 -0
  733. package/dist/models/api-deals507f1f77bcf86cd799439022-put200-response-stage.d.ts +23 -0
  734. package/dist/models/api-deals507f1f77bcf86cd799439022-put200-response-stage.js +15 -0
  735. package/dist/models/api-deals507f1f77bcf86cd799439022-put200-response.d.ts +37 -0
  736. package/dist/models/api-deals507f1f77bcf86cd799439022-put200-response.js +15 -0
  737. package/dist/models/api-deals507f1f77bcf86cd799439022-stage-put-request.d.ts +14 -0
  738. package/dist/models/api-deals507f1f77bcf86cd799439022-stage-put-request.js +15 -0
  739. package/dist/models/api-emails-configs-get200-response-data-inner.d.ts +20 -0
  740. package/dist/models/api-emails-configs-get200-response-data-inner.js +15 -0
  741. package/dist/models/api-emails-configs-get200-response.d.ts +15 -0
  742. package/dist/models/api-emails-configs-get200-response.js +15 -0
  743. package/dist/models/api-emails-known-addresses-get200-response-data-inner.d.ts +18 -0
  744. package/dist/models/api-emails-known-addresses-get200-response-data-inner.js +15 -0
  745. package/dist/models/api-emails-known-addresses-get200-response.d.ts +19 -0
  746. package/dist/models/api-emails-known-addresses-get200-response.js +15 -0
  747. package/dist/models/api-journeys-get200-response-data-inner.d.ts +22 -0
  748. package/dist/models/api-journeys-get200-response-data-inner.js +15 -0
  749. package/dist/models/api-journeys-get200-response.d.ts +19 -0
  750. package/dist/models/api-journeys-get200-response.js +15 -0
  751. package/dist/models/api-journeys507f1f77bcf86cd799439b00-health-score-get200-response-factors.d.ts +16 -0
  752. package/dist/models/api-journeys507f1f77bcf86cd799439b00-health-score-get200-response-factors.js +15 -0
  753. package/dist/models/api-journeys507f1f77bcf86cd799439b00-health-score-get200-response.d.ts +18 -0
  754. package/dist/models/api-journeys507f1f77bcf86cd799439b00-health-score-get200-response.js +15 -0
  755. package/dist/models/api-journeys507f1f77bcf86cd799439b00-mrr-history-get200-response-history-inner.d.ts +15 -0
  756. package/dist/models/api-journeys507f1f77bcf86cd799439b00-mrr-history-get200-response-history-inner.js +15 -0
  757. package/dist/models/api-journeys507f1f77bcf86cd799439b00-mrr-history-get200-response.d.ts +17 -0
  758. package/dist/models/api-journeys507f1f77bcf86cd799439b00-mrr-history-get200-response.js +15 -0
  759. package/dist/models/api-leads-get200-response-data-inner.d.ts +18 -0
  760. package/dist/models/api-leads-get200-response-data-inner.js +15 -0
  761. package/dist/models/api-leads-get200-response.d.ts +19 -0
  762. package/dist/models/api-leads-get200-response.js +15 -0
  763. package/dist/models/api-leads507f1f77bcf86cd799439044-get200-response.d.ts +20 -0
  764. package/dist/models/api-leads507f1f77bcf86cd799439044-get200-response.js +15 -0
  765. package/dist/models/api-meetings-get200-response-data-inner.d.ts +22 -0
  766. package/dist/models/api-meetings-get200-response-data-inner.js +15 -0
  767. package/dist/models/api-meetings-get200-response.d.ts +19 -0
  768. package/dist/models/api-meetings-get200-response.js +15 -0
  769. package/dist/models/api-meetings-post-request.d.ts +15 -0
  770. package/dist/models/api-meetings-post-request.js +15 -0
  771. package/dist/models/api-meetings-post201-response.d.ts +17 -0
  772. package/dist/models/api-meetings-post201-response.js +15 -0
  773. package/dist/models/api-observations-get200-response-data-inner.d.ts +20 -0
  774. package/dist/models/api-observations-get200-response-data-inner.js +15 -0
  775. package/dist/models/api-observations-get200-response.d.ts +19 -0
  776. package/dist/models/api-observations-get200-response.js +15 -0
  777. package/dist/models/api-observations-post-request.d.ts +16 -0
  778. package/dist/models/api-observations-post-request.js +15 -0
  779. package/dist/models/api-observations-post201-response.d.ts +18 -0
  780. package/dist/models/api-observations-post201-response.js +15 -0
  781. package/dist/models/api-organizations-get200-response-data-inner.d.ts +18 -0
  782. package/dist/models/api-organizations-get200-response-data-inner.js +15 -0
  783. package/dist/models/api-organizations-get200-response.d.ts +19 -0
  784. package/dist/models/api-organizations-get200-response.js +15 -0
  785. package/dist/models/api-organizations-post-request.d.ts +16 -0
  786. package/dist/models/api-organizations-post-request.js +15 -0
  787. package/dist/models/api-organizations-post201-response.d.ts +17 -0
  788. package/dist/models/api-organizations-post201-response.js +15 -0
  789. package/dist/models/api-organizations507f1f77bcf86cd799439055-get200-response.d.ts +20 -0
  790. package/dist/models/api-organizations507f1f77bcf86cd799439055-get200-response.js +15 -0
  791. package/dist/models/api-organizations507f1f77bcf86cd799439055-put-request.d.ts +14 -0
  792. package/dist/models/api-organizations507f1f77bcf86cd799439055-put-request.js +15 -0
  793. package/dist/models/api-organizations507f1f77bcf86cd799439055-put200-response-phones-inner.d.ts +16 -0
  794. package/dist/models/api-organizations507f1f77bcf86cd799439055-put200-response-phones-inner.js +15 -0
  795. package/dist/models/api-organizations507f1f77bcf86cd799439055-put200-response.d.ts +36 -0
  796. package/dist/models/api-organizations507f1f77bcf86cd799439055-put200-response.js +15 -0
  797. package/dist/models/api-pipelines-get200-response-inner.d.ts +19 -0
  798. package/dist/models/api-pipelines-get200-response-inner.js +15 -0
  799. package/dist/models/api-processautomations-get200-response-data-inner-stats.d.ts +16 -0
  800. package/dist/models/api-processautomations-get200-response-data-inner-stats.js +15 -0
  801. package/dist/models/api-processautomations-get200-response-data-inner.d.ts +21 -0
  802. package/dist/models/api-processautomations-get200-response-data-inner.js +15 -0
  803. package/dist/models/api-processautomations-get200-response.d.ts +19 -0
  804. package/dist/models/api-processautomations-get200-response.js +15 -0
  805. package/dist/models/api-processautomations-global-stats-get200-response-by-status.d.ts +16 -0
  806. package/dist/models/api-processautomations-global-stats-get200-response-by-status.js +15 -0
  807. package/dist/models/api-processautomations-global-stats-get200-response.d.ts +20 -0
  808. package/dist/models/api-processautomations-global-stats-get200-response.js +15 -0
  809. package/dist/models/api-processautomations-post201-response.d.ts +19 -0
  810. package/dist/models/api-processautomations-post201-response.js +15 -0
  811. package/dist/models/api-prospects-get200-response-data-inner.d.ts +19 -0
  812. package/dist/models/api-prospects-get200-response-data-inner.js +15 -0
  813. package/dist/models/api-prospects-get200-response.d.ts +19 -0
  814. package/dist/models/api-prospects-get200-response.js +15 -0
  815. package/dist/models/api-prospects-post201-response.d.ts +17 -0
  816. package/dist/models/api-prospects-post201-response.js +15 -0
  817. package/dist/models/api-prospects-post400-response-details-inner.d.ts +15 -0
  818. package/dist/models/api-prospects-post400-response-details-inner.js +15 -0
  819. package/dist/models/api-prospects-post400-response.d.ts +17 -0
  820. package/dist/models/api-prospects-post400-response.js +15 -0
  821. package/dist/models/api-prospects507f1f77bcf86cd799439033-get200-response.d.ts +22 -0
  822. package/dist/models/api-prospects507f1f77bcf86cd799439033-get200-response.js +15 -0
  823. package/dist/models/api-prospects507f1f77bcf86cd799439033-get404-response.d.ts +15 -0
  824. package/dist/models/api-prospects507f1f77bcf86cd799439033-get404-response.js +15 -0
  825. package/dist/models/api-prospects507f1f77bcf86cd799439033-put-request.d.ts +14 -0
  826. package/dist/models/api-prospects507f1f77bcf86cd799439033-put-request.js +15 -0
  827. package/dist/models/api-reports-contacts-get200-response-by-origin.d.ts +16 -0
  828. package/dist/models/api-reports-contacts-get200-response-by-origin.js +15 -0
  829. package/dist/models/api-reports-contacts-get200-response-by-status.d.ts +15 -0
  830. package/dist/models/api-reports-contacts-get200-response-by-status.js +15 -0
  831. package/dist/models/api-reports-contacts-get200-response.d.ts +20 -0
  832. package/dist/models/api-reports-contacts-get200-response.js +15 -0
  833. package/dist/models/api-reports-nnm-summary-get200-response-period.d.ts +15 -0
  834. package/dist/models/api-reports-nnm-summary-get200-response-period.js +15 -0
  835. package/dist/models/api-reports-nnm-summary-get200-response-summary.d.ts +20 -0
  836. package/dist/models/api-reports-nnm-summary-get200-response-summary.js +15 -0
  837. package/dist/models/api-reports-nnm-summary-get200-response.d.ts +17 -0
  838. package/dist/models/api-reports-nnm-summary-get200-response.js +15 -0
  839. package/dist/models/api-reports-stvm-summary-get200-response-stages-inner.d.ts +17 -0
  840. package/dist/models/api-reports-stvm-summary-get200-response-stages-inner.js +15 -0
  841. package/dist/models/api-reports-stvm-summary-get200-response.d.ts +17 -0
  842. package/dist/models/api-reports-stvm-summary-get200-response.js +15 -0
  843. package/dist/models/api-roles-get200-response-docs-inner.d.ts +21 -0
  844. package/dist/models/api-roles-get200-response-docs-inner.js +15 -0
  845. package/dist/models/api-roles-get200-response.d.ts +19 -0
  846. package/dist/models/api-roles-get200-response.js +15 -0
  847. package/dist/models/api-segmentation-rules-get200-response-data-inner.d.ts +19 -0
  848. package/dist/models/api-segmentation-rules-get200-response-data-inner.js +15 -0
  849. package/dist/models/api-segmentation-rules-get200-response.d.ts +19 -0
  850. package/dist/models/api-segmentation-rules-get200-response.js +15 -0
  851. package/dist/models/api-sharing-rules-get200-response-data-inner.d.ts +19 -0
  852. package/dist/models/api-sharing-rules-get200-response-data-inner.js +15 -0
  853. package/dist/models/api-sharing-rules-get200-response.d.ts +19 -0
  854. package/dist/models/api-sharing-rules-get200-response.js +15 -0
  855. package/dist/models/api-staffs-get200-response-docs-inner-role.d.ts +19 -0
  856. package/dist/models/api-staffs-get200-response-docs-inner-role.js +15 -0
  857. package/dist/models/api-staffs-get200-response-docs-inner-settings.d.ts +15 -0
  858. package/dist/models/api-staffs-get200-response-docs-inner-settings.js +15 -0
  859. package/dist/models/api-staffs-get200-response-docs-inner.d.ts +31 -0
  860. package/dist/models/api-staffs-get200-response-docs-inner.js +15 -0
  861. package/dist/models/api-staffs-get200-response.d.ts +19 -0
  862. package/dist/models/api-staffs-get200-response.js +15 -0
  863. package/dist/models/api-staffs507f1f77bcf86cd799439180-get200-response.d.ts +31 -0
  864. package/dist/models/api-staffs507f1f77bcf86cd799439180-get200-response.js +15 -0
  865. package/dist/models/api-tasks-filters-get200-response-data-inner-filters.d.ts +15 -0
  866. package/dist/models/api-tasks-filters-get200-response-data-inner-filters.js +15 -0
  867. package/dist/models/api-tasks-filters-get200-response-data-inner.d.ts +19 -0
  868. package/dist/models/api-tasks-filters-get200-response-data-inner.js +15 -0
  869. package/dist/models/api-tasks-filters-get200-response.d.ts +15 -0
  870. package/dist/models/api-tasks-filters-get200-response.js +15 -0
  871. package/dist/models/api-tasks-get200-response-data-inner.d.ts +23 -0
  872. package/dist/models/api-tasks-get200-response-data-inner.js +15 -0
  873. package/dist/models/api-tasks-get200-response.d.ts +19 -0
  874. package/dist/models/api-tasks-get200-response.js +15 -0
  875. package/dist/models/api-tasks-post-request.d.ts +15 -0
  876. package/dist/models/api-tasks-post-request.js +15 -0
  877. package/dist/models/api-tasks-selected-finish-put200-response.d.ts +15 -0
  878. package/dist/models/api-tasks-selected-finish-put200-response.js +15 -0
  879. package/dist/models/api-tasks507f1f77bcf86cd799439100-messages-get200-response-data-inner.d.ts +18 -0
  880. package/dist/models/api-tasks507f1f77bcf86cd799439100-messages-get200-response-data-inner.js +15 -0
  881. package/dist/models/api-tasks507f1f77bcf86cd799439100-messages-get200-response.d.ts +15 -0
  882. package/dist/models/api-tasks507f1f77bcf86cd799439100-messages-get200-response.js +15 -0
  883. package/dist/models/api-tasks507f1f77bcf86cd799439100-put-request.d.ts +14 -0
  884. package/dist/models/api-tasks507f1f77bcf86cd799439100-put-request.js +15 -0
  885. package/dist/models/api-tasks507f1f77bcf86cd799439100-todos-get200-response-data-inner.d.ts +18 -0
  886. package/dist/models/api-tasks507f1f77bcf86cd799439100-todos-get200-response-data-inner.js +15 -0
  887. package/dist/models/api-tasks507f1f77bcf86cd799439100-todos-get200-response.d.ts +15 -0
  888. package/dist/models/api-tasks507f1f77bcf86cd799439100-todos-get200-response.js +15 -0
  889. package/dist/models/api-tickets-get200-response-data-inner-status.d.ts +16 -0
  890. package/dist/models/api-tickets-get200-response-data-inner-status.js +15 -0
  891. package/dist/models/api-tickets-get200-response-data-inner.d.ts +20 -0
  892. package/dist/models/api-tickets-get200-response-data-inner.js +15 -0
  893. package/dist/models/api-tickets-get200-response.d.ts +19 -0
  894. package/dist/models/api-tickets-get200-response.js +15 -0
  895. package/dist/models/api-tickets-post-request.d.ts +14 -0
  896. package/dist/models/api-tickets-post-request.js +15 -0
  897. package/dist/models/api-tickets-post201-response.d.ts +16 -0
  898. package/dist/models/api-tickets-post201-response.js +15 -0
  899. package/dist/models/api-tickets507f1f77bcf86cd799439130-get200-response-contact.d.ts +27 -0
  900. package/dist/models/api-tickets507f1f77bcf86cd799439130-get200-response-contact.js +15 -0
  901. package/dist/models/api-tickets507f1f77bcf86cd799439130-get200-response-sender.d.ts +23 -0
  902. package/dist/models/api-tickets507f1f77bcf86cd799439130-get200-response-sender.js +15 -0
  903. package/dist/models/api-tickets507f1f77bcf86cd799439130-get200-response-status.d.ts +24 -0
  904. package/dist/models/api-tickets507f1f77bcf86cd799439130-get200-response-status.js +15 -0
  905. package/dist/models/api-tickets507f1f77bcf86cd799439130-get200-response.d.ts +36 -0
  906. package/dist/models/api-tickets507f1f77bcf86cd799439130-get200-response.js +15 -0
  907. package/dist/models/api-tickets507f1f77bcf86cd799439130-put200-response-contact.d.ts +28 -0
  908. package/dist/models/api-tickets507f1f77bcf86cd799439130-put200-response-contact.js +15 -0
  909. package/dist/models/api-tickets507f1f77bcf86cd799439130-put200-response.d.ts +34 -0
  910. package/dist/models/api-tickets507f1f77bcf86cd799439130-put200-response.js +15 -0
  911. package/dist/models/api-treatments-get200-response-data-inner.d.ts +20 -0
  912. package/dist/models/api-treatments-get200-response-data-inner.js +15 -0
  913. package/dist/models/api-treatments-get200-response.d.ts +19 -0
  914. package/dist/models/api-treatments-get200-response.js +15 -0
  915. package/dist/models/api-treatments-post201-response.d.ts +16 -0
  916. package/dist/models/api-treatments-post201-response.js +15 -0
  917. package/dist/models/api-webhooks-get200-response-data-inner-stats.d.ts +15 -0
  918. package/dist/models/api-webhooks-get200-response-data-inner-stats.js +15 -0
  919. package/dist/models/api-webhooks-get200-response-data-inner.d.ts +21 -0
  920. package/dist/models/api-webhooks-get200-response-data-inner.js +15 -0
  921. package/dist/models/api-webhooks-get200-response.d.ts +19 -0
  922. package/dist/models/api-webhooks-get200-response.js +15 -0
  923. package/dist/models/api-webhooks507f1f77bcf86cd799439200-put-request.d.ts +15 -0
  924. package/dist/models/api-webhooks507f1f77bcf86cd799439200-put-request.js +15 -0
  925. package/dist/models/api-workspaces-get200-response-docs-inner.d.ts +21 -0
  926. package/dist/models/api-workspaces-get200-response-docs-inner.js +15 -0
  927. package/dist/models/api-workspaces-get200-response.d.ts +19 -0
  928. package/dist/models/api-workspaces-get200-response.js +15 -0
  929. package/dist/models/index.d.ts +143 -0
  930. package/dist/models/index.js +159 -0
  931. package/dist/models/token-post200-response.d.ts +19 -0
  932. package/dist/models/token-post200-response.js +15 -0
  933. package/dist/models/userinfo-get200-response.d.ts +21 -0
  934. package/dist/models/userinfo-get200-response.js +15 -0
  935. package/docs/ActionsApi.md +172 -0
  936. package/docs/ActivitiesApi.md +3720 -0
  937. package/docs/ApiCalendarsEventsGet200Response.md +20 -0
  938. package/docs/ApiCalendarsEventsGet200ResponseDataInner.md +32 -0
  939. package/docs/ApiCalendarsEventsPost201Response.md +28 -0
  940. package/docs/ApiCampaigns507f1f77bcf86cd799439900ActionsGet200Response.md +20 -0
  941. package/docs/ApiCampaigns507f1f77bcf86cd799439900ActionsGet200ResponseDataInner.md +28 -0
  942. package/docs/ApiCampaigns507f1f77bcf86cd799439900ActionsGet200ResponseDataInnerConfig.md +22 -0
  943. package/docs/ApiCampaignsGet200Response.md +28 -0
  944. package/docs/ApiCampaignsGet200ResponseDataInner.md +30 -0
  945. package/docs/ApiContacts507f1f77bcf86cd799439011Get200Response.md +38 -0
  946. package/docs/ApiContacts507f1f77bcf86cd799439011Get200ResponseOwnersInner.md +22 -0
  947. package/docs/ApiContacts507f1f77bcf86cd799439011Put200Response.md +62 -0
  948. package/docs/ApiContacts507f1f77bcf86cd799439011Put200ResponseCustomFieldsInner.md +24 -0
  949. package/docs/ApiContacts507f1f77bcf86cd799439011Put200ResponseCustomFieldsInnerV.md +22 -0
  950. package/docs/ApiContacts507f1f77bcf86cd799439011Put200ResponsePhonesInner.md +22 -0
  951. package/docs/ApiContacts507f1f77bcf86cd799439011PutRequest.md +22 -0
  952. package/docs/ApiContactsFiltersGet200Response.md +20 -0
  953. package/docs/ApiContactsFiltersGet200ResponseDataInner.md +28 -0
  954. package/docs/ApiContactsFiltersGet200ResponseDataInnerFilters.md +22 -0
  955. package/docs/ApiCustomfields507f1f77bcf86cd799439150Get200Response.md +52 -0
  956. package/docs/ApiCustomfields507f1f77bcf86cd799439150Get200ResponseCustomFieldBlockAttach.md +36 -0
  957. package/docs/ApiCustomfields507f1f77bcf86cd799439150Get200ResponseFieldType.md +30 -0
  958. package/docs/ApiCustomfieldsPost201Response.md +48 -0
  959. package/docs/ApiCustomfieldsPost201ResponseSettings.md +52 -0
  960. package/docs/ApiCustomfieldsPost201ResponseSubFieldSettings.md +22 -0
  961. package/docs/ApiCustomfieldsPostRequest.md +26 -0
  962. package/docs/ApiDashboards507f1f77bcf86cd799439700Widgets507f1f77bcf86cd799439710ContentGet200Response.md +26 -0
  963. package/docs/ApiDashboards507f1f77bcf86cd799439700Widgets507f1f77bcf86cd799439710ContentGet200ResponseDataInner.md +24 -0
  964. package/docs/ApiDashboardsGet200Response.md +20 -0
  965. package/docs/ApiDashboardsGet200ResponseDataInner.md +28 -0
  966. package/docs/ApiDashboardsPost201Response.md +26 -0
  967. package/docs/ApiDeals507f1f77bcf86cd799439022ClosePutRequest.md +20 -0
  968. package/docs/ApiDeals507f1f77bcf86cd799439022Get200Response.md +40 -0
  969. package/docs/ApiDeals507f1f77bcf86cd799439022Get200ResponseStage.md +24 -0
  970. package/docs/ApiDeals507f1f77bcf86cd799439022Put200Response.md +60 -0
  971. package/docs/ApiDeals507f1f77bcf86cd799439022Put200ResponseContact.md +30 -0
  972. package/docs/ApiDeals507f1f77bcf86cd799439022Put200ResponseStaff.md +34 -0
  973. package/docs/ApiDeals507f1f77bcf86cd799439022Put200ResponseStage.md +38 -0
  974. package/docs/ApiDeals507f1f77bcf86cd799439022PutRequest.md +22 -0
  975. package/docs/ApiDeals507f1f77bcf86cd799439022StagePutRequest.md +20 -0
  976. package/docs/ApiDealsBatchMovePost200Response.md +24 -0
  977. package/docs/ApiDealsGet200Response.md +28 -0
  978. package/docs/ApiDealsGet200ResponseDataInner.md +32 -0
  979. package/docs/ApiDealsGet200ResponseDataInnerPipeline.md +22 -0
  980. package/docs/ApiDealsLabelsPostRequest.md +22 -0
  981. package/docs/ApiDealsPost201Response.md +32 -0
  982. package/docs/ApiDealsPostRequest.md +26 -0
  983. package/docs/ApiEmailsConfigsGet200Response.md +20 -0
  984. package/docs/ApiEmailsConfigsGet200ResponseDataInner.md +32 -0
  985. package/docs/ApiEmailsKnownAddressesGet200Response.md +28 -0
  986. package/docs/ApiEmailsKnownAddressesGet200ResponseDataInner.md +28 -0
  987. package/docs/ApiJourneys507f1f77bcf86cd799439b00HealthScoreGet200Response.md +26 -0
  988. package/docs/ApiJourneys507f1f77bcf86cd799439b00HealthScoreGet200ResponseFactors.md +24 -0
  989. package/docs/ApiJourneys507f1f77bcf86cd799439b00MrrHistoryGet200Response.md +24 -0
  990. package/docs/ApiJourneys507f1f77bcf86cd799439b00MrrHistoryGet200ResponseHistoryInner.md +22 -0
  991. package/docs/ApiJourneysGet200Response.md +28 -0
  992. package/docs/ApiJourneysGet200ResponseDataInner.md +32 -0
  993. package/docs/ApiLeads507f1f77bcf86cd799439044Get200Response.md +32 -0
  994. package/docs/ApiLeadsGet200Response.md +28 -0
  995. package/docs/ApiLeadsGet200ResponseDataInner.md +28 -0
  996. package/docs/ApiMeetingsGet200Response.md +28 -0
  997. package/docs/ApiMeetingsGet200ResponseDataInner.md +32 -0
  998. package/docs/ApiMeetingsPost201Response.md +26 -0
  999. package/docs/ApiMeetingsPostRequest.md +22 -0
  1000. package/docs/ApiObservationsGet200Response.md +28 -0
  1001. package/docs/ApiObservationsGet200ResponseDataInner.md +30 -0
  1002. package/docs/ApiObservationsPost201Response.md +28 -0
  1003. package/docs/ApiObservationsPostRequest.md +24 -0
  1004. package/docs/ApiOrganizations507f1f77bcf86cd799439055Get200Response.md +30 -0
  1005. package/docs/ApiOrganizations507f1f77bcf86cd799439055Put200Response.md +62 -0
  1006. package/docs/ApiOrganizations507f1f77bcf86cd799439055Put200ResponsePhonesInner.md +24 -0
  1007. package/docs/ApiOrganizations507f1f77bcf86cd799439055PutRequest.md +20 -0
  1008. package/docs/ApiOrganizationsGet200Response.md +28 -0
  1009. package/docs/ApiOrganizationsGet200ResponseDataInner.md +28 -0
  1010. package/docs/ApiOrganizationsPost201Response.md +26 -0
  1011. package/docs/ApiOrganizationsPostRequest.md +24 -0
  1012. package/docs/ApiPipelinesGet200ResponseInner.md +28 -0
  1013. package/docs/ApiProcessautomationsGet200Response.md +28 -0
  1014. package/docs/ApiProcessautomationsGet200ResponseDataInner.md +32 -0
  1015. package/docs/ApiProcessautomationsGet200ResponseDataInnerStats.md +24 -0
  1016. package/docs/ApiProcessautomationsGlobalStatsGet200Response.md +30 -0
  1017. package/docs/ApiProcessautomationsGlobalStatsGet200ResponseByStatus.md +24 -0
  1018. package/docs/ApiProcessautomationsPost201Response.md +30 -0
  1019. package/docs/ApiProspects507f1f77bcf86cd799439033Get200Response.md +34 -0
  1020. package/docs/ApiProspects507f1f77bcf86cd799439033Get404Response.md +22 -0
  1021. package/docs/ApiProspects507f1f77bcf86cd799439033PutRequest.md +20 -0
  1022. package/docs/ApiProspectsGet200Response.md +28 -0
  1023. package/docs/ApiProspectsGet200ResponseDataInner.md +30 -0
  1024. package/docs/ApiProspectsPost201Response.md +26 -0
  1025. package/docs/ApiProspectsPost400Response.md +24 -0
  1026. package/docs/ApiProspectsPost400ResponseDetailsInner.md +22 -0
  1027. package/docs/ApiReportsContactsGet200Response.md +26 -0
  1028. package/docs/ApiReportsContactsGet200ResponseByOrigin.md +24 -0
  1029. package/docs/ApiReportsContactsGet200ResponseByStatus.md +22 -0
  1030. package/docs/ApiReportsNnmSummaryGet200Response.md +22 -0
  1031. package/docs/ApiReportsNnmSummaryGet200ResponsePeriod.md +22 -0
  1032. package/docs/ApiReportsNnmSummaryGet200ResponseSummary.md +32 -0
  1033. package/docs/ApiReportsStvmSummaryGet200Response.md +22 -0
  1034. package/docs/ApiReportsStvmSummaryGet200ResponseStagesInner.md +26 -0
  1035. package/docs/ApiRolesGet200Response.md +28 -0
  1036. package/docs/ApiRolesGet200ResponseDocsInner.md +34 -0
  1037. package/docs/ApiSegmentationRulesGet200Response.md +28 -0
  1038. package/docs/ApiSegmentationRulesGet200ResponseDataInner.md +30 -0
  1039. package/docs/ApiSharingRulesGet200Response.md +28 -0
  1040. package/docs/ApiSharingRulesGet200ResponseDataInner.md +30 -0
  1041. package/docs/ApiStaffs507f1f77bcf86cd799439180Get200Response.md +52 -0
  1042. package/docs/ApiStaffsGet200Response.md +28 -0
  1043. package/docs/ApiStaffsGet200ResponseDocsInner.md +50 -0
  1044. package/docs/ApiStaffsGet200ResponseDocsInnerRole.md +30 -0
  1045. package/docs/ApiStaffsGet200ResponseDocsInnerSettings.md +22 -0
  1046. package/docs/ApiTasks507f1f77bcf86cd799439100MessagesGet200Response.md +20 -0
  1047. package/docs/ApiTasks507f1f77bcf86cd799439100MessagesGet200ResponseDataInner.md +26 -0
  1048. package/docs/ApiTasks507f1f77bcf86cd799439100PutRequest.md +20 -0
  1049. package/docs/ApiTasks507f1f77bcf86cd799439100TodosGet200Response.md +20 -0
  1050. package/docs/ApiTasks507f1f77bcf86cd799439100TodosGet200ResponseDataInner.md +28 -0
  1051. package/docs/ApiTasksFiltersGet200Response.md +20 -0
  1052. package/docs/ApiTasksFiltersGet200ResponseDataInner.md +28 -0
  1053. package/docs/ApiTasksFiltersGet200ResponseDataInnerFilters.md +22 -0
  1054. package/docs/ApiTasksGet200Response.md +28 -0
  1055. package/docs/ApiTasksGet200ResponseDataInner.md +34 -0
  1056. package/docs/ApiTasksPostRequest.md +22 -0
  1057. package/docs/ApiTasksSelectedFinishPut200Response.md +22 -0
  1058. package/docs/ApiTickets507f1f77bcf86cd799439130Get200Response.md +58 -0
  1059. package/docs/ApiTickets507f1f77bcf86cd799439130Get200ResponseContact.md +44 -0
  1060. package/docs/ApiTickets507f1f77bcf86cd799439130Get200ResponseSender.md +38 -0
  1061. package/docs/ApiTickets507f1f77bcf86cd799439130Get200ResponseStatus.md +40 -0
  1062. package/docs/ApiTickets507f1f77bcf86cd799439130Put200Response.md +54 -0
  1063. package/docs/ApiTickets507f1f77bcf86cd799439130Put200ResponseContact.md +44 -0
  1064. package/docs/ApiTicketsGet200Response.md +28 -0
  1065. package/docs/ApiTicketsGet200ResponseDataInner.md +28 -0
  1066. package/docs/ApiTicketsGet200ResponseDataInnerStatus.md +24 -0
  1067. package/docs/ApiTicketsPost201Response.md +24 -0
  1068. package/docs/ApiTicketsPostRequest.md +20 -0
  1069. package/docs/ApiTreatmentsGet200Response.md +28 -0
  1070. package/docs/ApiTreatmentsGet200ResponseDataInner.md +28 -0
  1071. package/docs/ApiTreatmentsPost201Response.md +24 -0
  1072. package/docs/ApiWebhooks507f1f77bcf86cd799439200PutRequest.md +22 -0
  1073. package/docs/ApiWebhooksGet200Response.md +28 -0
  1074. package/docs/ApiWebhooksGet200ResponseDataInner.md +32 -0
  1075. package/docs/ApiWebhooksGet200ResponseDataInnerStats.md +22 -0
  1076. package/docs/ApiWorkspacesGet200Response.md +28 -0
  1077. package/docs/ApiWorkspacesGet200ResponseDocsInner.md +34 -0
  1078. package/docs/AuthenticationApi.md +177 -0
  1079. package/docs/BatchOperationsApi.md +755 -0
  1080. package/docs/CRMCoreApi.md +2805 -0
  1081. package/docs/CalendarApi.md +491 -0
  1082. package/docs/CampaignsApi.md +361 -0
  1083. package/docs/ConfigsApi.md +372 -0
  1084. package/docs/ConfigurationApi.md +851 -0
  1085. package/docs/ContactsApi.md +614 -0
  1086. package/docs/CustomFieldBlocksApi.md +138 -0
  1087. package/docs/CustomFieldsApi.md +365 -0
  1088. package/docs/CustomFieldsUsageApi.md +101 -0
  1089. package/docs/CustomersApi.md +657 -0
  1090. package/docs/DashboardsApi.md +583 -0
  1091. package/docs/DealsApi.md +496 -0
  1092. package/docs/EmailApi.md +575 -0
  1093. package/docs/EntitiesExecutionApi.md +137 -0
  1094. package/docs/EntityReportsApi.md +172 -0
  1095. package/docs/EventsApi.md +241 -0
  1096. package/docs/FilterPresetsApi.md +94 -0
  1097. package/docs/FiltersApi.md +1297 -0
  1098. package/docs/FoldersApi.md +174 -0
  1099. package/docs/GuidesApi.md +509 -0
  1100. package/docs/HealthMetricsApi.md +177 -0
  1101. package/docs/IntegrationsApi.md +275 -0
  1102. package/docs/JourneysApi.md +580 -0
  1103. package/docs/KnownAddressesApi.md +182 -0
  1104. package/docs/LabelsApi.md +181 -0
  1105. package/docs/LeadsApi.md +1030 -0
  1106. package/docs/MeetingsApi.md +1367 -0
  1107. package/docs/MessagesApi.md +685 -0
  1108. package/docs/MilestonesApi.md +47 -0
  1109. package/docs/NNMNovoNegocioMensalApi.md +172 -0
  1110. package/docs/ObservationsApi.md +160 -0
  1111. package/docs/OrganizationsApi.md +362 -0
  1112. package/docs/PaginationFilteringApi.md +66 -0
  1113. package/docs/PipelinesApi.md +104 -0
  1114. package/docs/PipelinesStagesApi.md +332 -0
  1115. package/docs/ProcessAutomationApi.md +576 -0
  1116. package/docs/ProspectsApi.md +1030 -0
  1117. package/docs/ReportsApi.md +502 -0
  1118. package/docs/ResourcesApi.md +2482 -0
  1119. package/docs/RolesApi.md +52 -0
  1120. package/docs/RoomsApi.md +190 -0
  1121. package/docs/STVMStatusVsTempoVsVolumeApi.md +172 -0
  1122. package/docs/SalesPipelineApi.md +774 -0
  1123. package/docs/SegmentationApi.md +411 -0
  1124. package/docs/SegmentationRulesApi.md +229 -0
  1125. package/docs/SequencesApi.md +54 -0
  1126. package/docs/SharingRulesApi.md +189 -0
  1127. package/docs/StaffsApi.md +251 -0
  1128. package/docs/StagesApi.md +167 -0
  1129. package/docs/TasksApi.md +1225 -0
  1130. package/docs/TeamsApi.md +87 -0
  1131. package/docs/TicketsApi.md +986 -0
  1132. package/docs/TodosApi.md +659 -0
  1133. package/docs/TokenPost200Response.md +30 -0
  1134. package/docs/TreatmentsApi.md +885 -0
  1135. package/docs/TypesApi.md +321 -0
  1136. package/docs/UpdateCustomResourceFieldsApi.md +99 -0
  1137. package/docs/UserinfoGet200Response.md +34 -0
  1138. package/docs/V1LegacyApi.md +2614 -0
  1139. package/docs/V2CurrentApi.md +12744 -0
  1140. package/docs/WebhooksApi.md +275 -0
  1141. package/docs/WebhooksSetupApi.md +94 -0
  1142. package/docs/WidgetsApi.md +272 -0
  1143. package/docs/WorkspacesApi.md +369 -0
  1144. package/git_push.sh +57 -0
  1145. package/index.ts +18 -0
  1146. package/models/api-calendars-events-get200-response-data-inner.ts +29 -0
  1147. package/models/api-calendars-events-get200-response.ts +23 -0
  1148. package/models/api-calendars-events-post201-response.ts +24 -0
  1149. package/models/api-campaigns-get200-response-data-inner.ts +25 -0
  1150. package/models/api-campaigns-get200-response.ts +27 -0
  1151. package/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response-data-inner-config.ts +21 -0
  1152. package/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response-data-inner.ts +27 -0
  1153. package/models/api-campaigns507f1f77bcf86cd799439900-actions-get200-response.ts +23 -0
  1154. package/models/api-contacts-filters-get200-response-data-inner-filters.ts +21 -0
  1155. package/models/api-contacts-filters-get200-response-data-inner.ts +27 -0
  1156. package/models/api-contacts-filters-get200-response.ts +23 -0
  1157. package/models/api-contacts507f1f77bcf86cd799439011-get200-response-owners-inner.ts +21 -0
  1158. package/models/api-contacts507f1f77bcf86cd799439011-get200-response.ts +32 -0
  1159. package/models/api-contacts507f1f77bcf86cd799439011-put-request.ts +21 -0
  1160. package/models/api-contacts507f1f77bcf86cd799439011-put200-response-custom-fields-inner-v.ts +21 -0
  1161. package/models/api-contacts507f1f77bcf86cd799439011-put200-response-custom-fields-inner.ts +25 -0
  1162. package/models/api-contacts507f1f77bcf86cd799439011-put200-response-phones-inner.ts +21 -0
  1163. package/models/api-contacts507f1f77bcf86cd799439011-put200-response.ts +47 -0
  1164. package/models/api-customfields-post-request.ts +23 -0
  1165. package/models/api-customfields-post201-response-settings.ts +36 -0
  1166. package/models/api-customfields-post201-response-sub-field-settings.ts +21 -0
  1167. package/models/api-customfields-post201-response.ts +40 -0
  1168. package/models/api-customfields507f1f77bcf86cd799439150-get200-response-custom-field-block-attach.ts +28 -0
  1169. package/models/api-customfields507f1f77bcf86cd799439150-get200-response-field-type.ts +25 -0
  1170. package/models/api-customfields507f1f77bcf86cd799439150-get200-response.ts +51 -0
  1171. package/models/api-dashboards-get200-response-data-inner.ts +24 -0
  1172. package/models/api-dashboards-get200-response.ts +23 -0
  1173. package/models/api-dashboards-post201-response.ts +23 -0
  1174. package/models/api-dashboards507f1f77bcf86cd799439700-widgets507f1f77bcf86cd799439710-content-get200-response-data-inner.ts +22 -0
  1175. package/models/api-dashboards507f1f77bcf86cd799439700-widgets507f1f77bcf86cd799439710-content-get200-response.ts +26 -0
  1176. package/models/api-deals-batch-move-post200-response.ts +22 -0
  1177. package/models/api-deals-get200-response-data-inner-pipeline.ts +21 -0
  1178. package/models/api-deals-get200-response-data-inner.ts +29 -0
  1179. package/models/api-deals-get200-response.ts +27 -0
  1180. package/models/api-deals-labels-post-request.ts +21 -0
  1181. package/models/api-deals-post-request.ts +23 -0
  1182. package/models/api-deals-post201-response.ts +26 -0
  1183. package/models/api-deals507f1f77bcf86cd799439022-close-put-request.ts +20 -0
  1184. package/models/api-deals507f1f77bcf86cd799439022-get200-response-stage.ts +22 -0
  1185. package/models/api-deals507f1f77bcf86cd799439022-get200-response.ts +39 -0
  1186. package/models/api-deals507f1f77bcf86cd799439022-put-request.ts +21 -0
  1187. package/models/api-deals507f1f77bcf86cd799439022-put200-response-contact.ts +25 -0
  1188. package/models/api-deals507f1f77bcf86cd799439022-put200-response-staff.ts +27 -0
  1189. package/models/api-deals507f1f77bcf86cd799439022-put200-response-stage.ts +29 -0
  1190. package/models/api-deals507f1f77bcf86cd799439022-put200-response.ts +49 -0
  1191. package/models/api-deals507f1f77bcf86cd799439022-stage-put-request.ts +20 -0
  1192. package/models/api-emails-configs-get200-response-data-inner.ts +26 -0
  1193. package/models/api-emails-configs-get200-response.ts +23 -0
  1194. package/models/api-emails-known-addresses-get200-response-data-inner.ts +24 -0
  1195. package/models/api-emails-known-addresses-get200-response.ts +27 -0
  1196. package/models/api-journeys-get200-response-data-inner.ts +32 -0
  1197. package/models/api-journeys-get200-response.ts +27 -0
  1198. package/models/api-journeys507f1f77bcf86cd799439b00-health-score-get200-response-factors.ts +22 -0
  1199. package/models/api-journeys507f1f77bcf86cd799439b00-health-score-get200-response.ts +26 -0
  1200. package/models/api-journeys507f1f77bcf86cd799439b00-mrr-history-get200-response-history-inner.ts +21 -0
  1201. package/models/api-journeys507f1f77bcf86cd799439b00-mrr-history-get200-response.ts +25 -0
  1202. package/models/api-leads-get200-response-data-inner.ts +24 -0
  1203. package/models/api-leads-get200-response.ts +27 -0
  1204. package/models/api-leads507f1f77bcf86cd799439044-get200-response.ts +26 -0
  1205. package/models/api-meetings-get200-response-data-inner.ts +32 -0
  1206. package/models/api-meetings-get200-response.ts +27 -0
  1207. package/models/api-meetings-post-request.ts +21 -0
  1208. package/models/api-meetings-post201-response.ts +23 -0
  1209. package/models/api-observations-get200-response-data-inner.ts +28 -0
  1210. package/models/api-observations-get200-response.ts +27 -0
  1211. package/models/api-observations-post-request.ts +22 -0
  1212. package/models/api-observations-post201-response.ts +24 -0
  1213. package/models/api-organizations-get200-response-data-inner.ts +24 -0
  1214. package/models/api-organizations-get200-response.ts +27 -0
  1215. package/models/api-organizations-post-request.ts +22 -0
  1216. package/models/api-organizations-post201-response.ts +23 -0
  1217. package/models/api-organizations507f1f77bcf86cd799439055-get200-response.ts +28 -0
  1218. package/models/api-organizations507f1f77bcf86cd799439055-put-request.ts +20 -0
  1219. package/models/api-organizations507f1f77bcf86cd799439055-put200-response-phones-inner.ts +22 -0
  1220. package/models/api-organizations507f1f77bcf86cd799439055-put200-response.ts +44 -0
  1221. package/models/api-pipelines-get200-response-inner.ts +27 -0
  1222. package/models/api-processautomations-get200-response-data-inner-stats.ts +22 -0
  1223. package/models/api-processautomations-get200-response-data-inner.ts +29 -0
  1224. package/models/api-processautomations-get200-response.ts +27 -0
  1225. package/models/api-processautomations-global-stats-get200-response-by-status.ts +22 -0
  1226. package/models/api-processautomations-global-stats-get200-response.ts +28 -0
  1227. package/models/api-processautomations-post201-response.ts +25 -0
  1228. package/models/api-prospects-get200-response-data-inner.ts +25 -0
  1229. package/models/api-prospects-get200-response.ts +27 -0
  1230. package/models/api-prospects-post201-response.ts +23 -0
  1231. package/models/api-prospects-post400-response-details-inner.ts +21 -0
  1232. package/models/api-prospects-post400-response.ts +25 -0
  1233. package/models/api-prospects507f1f77bcf86cd799439033-get200-response.ts +30 -0
  1234. package/models/api-prospects507f1f77bcf86cd799439033-get404-response.ts +21 -0
  1235. package/models/api-prospects507f1f77bcf86cd799439033-put-request.ts +20 -0
  1236. package/models/api-reports-contacts-get200-response-by-origin.ts +22 -0
  1237. package/models/api-reports-contacts-get200-response-by-status.ts +21 -0
  1238. package/models/api-reports-contacts-get200-response.ts +32 -0
  1239. package/models/api-reports-nnm-summary-get200-response-period.ts +21 -0
  1240. package/models/api-reports-nnm-summary-get200-response-summary.ts +26 -0
  1241. package/models/api-reports-nnm-summary-get200-response.ts +27 -0
  1242. package/models/api-reports-stvm-summary-get200-response-stages-inner.ts +23 -0
  1243. package/models/api-reports-stvm-summary-get200-response.ts +27 -0
  1244. package/models/api-roles-get200-response-docs-inner.ts +27 -0
  1245. package/models/api-roles-get200-response.ts +27 -0
  1246. package/models/api-segmentation-rules-get200-response-data-inner.ts +25 -0
  1247. package/models/api-segmentation-rules-get200-response.ts +27 -0
  1248. package/models/api-sharing-rules-get200-response-data-inner.ts +25 -0
  1249. package/models/api-sharing-rules-get200-response.ts +27 -0
  1250. package/models/api-staffs-get200-response-docs-inner-role.ts +25 -0
  1251. package/models/api-staffs-get200-response-docs-inner-settings.ts +21 -0
  1252. package/models/api-staffs-get200-response-docs-inner.ts +41 -0
  1253. package/models/api-staffs-get200-response.ts +27 -0
  1254. package/models/api-staffs507f1f77bcf86cd799439180-get200-response.ts +39 -0
  1255. package/models/api-tasks-filters-get200-response-data-inner-filters.ts +21 -0
  1256. package/models/api-tasks-filters-get200-response-data-inner.ts +27 -0
  1257. package/models/api-tasks-filters-get200-response.ts +23 -0
  1258. package/models/api-tasks-get200-response-data-inner.ts +33 -0
  1259. package/models/api-tasks-get200-response.ts +27 -0
  1260. package/models/api-tasks-post-request.ts +21 -0
  1261. package/models/api-tasks-selected-finish-put200-response.ts +21 -0
  1262. package/models/api-tasks507f1f77bcf86cd799439100-messages-get200-response-data-inner.ts +26 -0
  1263. package/models/api-tasks507f1f77bcf86cd799439100-messages-get200-response.ts +23 -0
  1264. package/models/api-tasks507f1f77bcf86cd799439100-put-request.ts +20 -0
  1265. package/models/api-tasks507f1f77bcf86cd799439100-todos-get200-response-data-inner.ts +24 -0
  1266. package/models/api-tasks507f1f77bcf86cd799439100-todos-get200-response.ts +23 -0
  1267. package/models/api-tickets-get200-response-data-inner-status.ts +22 -0
  1268. package/models/api-tickets-get200-response-data-inner.ts +30 -0
  1269. package/models/api-tickets-get200-response.ts +27 -0
  1270. package/models/api-tickets-post-request.ts +20 -0
  1271. package/models/api-tickets-post201-response.ts +22 -0
  1272. package/models/api-tickets507f1f77bcf86cd799439130-get200-response-contact.ts +35 -0
  1273. package/models/api-tickets507f1f77bcf86cd799439130-get200-response-sender.ts +29 -0
  1274. package/models/api-tickets507f1f77bcf86cd799439130-get200-response-status.ts +30 -0
  1275. package/models/api-tickets507f1f77bcf86cd799439130-get200-response.ts +48 -0
  1276. package/models/api-tickets507f1f77bcf86cd799439130-put200-response-contact.ts +38 -0
  1277. package/models/api-tickets507f1f77bcf86cd799439130-put200-response.ts +46 -0
  1278. package/models/api-treatments-get200-response-data-inner.ts +30 -0
  1279. package/models/api-treatments-get200-response.ts +27 -0
  1280. package/models/api-treatments-post201-response.ts +22 -0
  1281. package/models/api-webhooks-get200-response-data-inner-stats.ts +21 -0
  1282. package/models/api-webhooks-get200-response-data-inner.ts +29 -0
  1283. package/models/api-webhooks-get200-response.ts +27 -0
  1284. package/models/api-webhooks507f1f77bcf86cd799439200-put-request.ts +21 -0
  1285. package/models/api-workspaces-get200-response-docs-inner.ts +27 -0
  1286. package/models/api-workspaces-get200-response.ts +27 -0
  1287. package/models/index.ts +143 -0
  1288. package/models/token-post200-response.ts +25 -0
  1289. package/models/userinfo-get200-response.ts +27 -0
  1290. package/package.json +37 -0
  1291. package/tsconfig.esm.json +7 -0
  1292. package/tsconfig.json +18 -0
@@ -0,0 +1,4409 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MagnetCustomer API Reference
5
+ * # MagnetCustomer API Reference Documentacao oficial da API REST do CRM MagnetCustomer. Esta referencia contem duas versoes da API: | Versao | Status | Descricao | |--------|--------|----------| | **v2 (Current)** | Ativa | Versao atual com 294 endpoints documentados | | **v1 (Legacy)** | Manutencao | Versao legado para tenants ainda nao migrados | ## Como Usar 1. Navegue para a versao desejada: **v2 (Current)** ou **v1 (Legacy)** 2. Configure as variaveis `subdomain`, `clientId` e `clientSecret` 3. O token OAuth2 sera renovado automaticamente pelo pre-request script ## Autenticacao (OAuth2) A API utiliza **OAuth2** com grant type `client_credentials` via Keycloak. **Token endpoint:** `https://magnetcustomer.net/realms/platform/protocol/openid-connect/token` ## Multi-tenancy Cada tenant e identificado pelo seu subdominio. URL base: ``` https://platform-api.{subdomain}.magnetcustomer.com/api/ ``` ## Paginacao Todas as listagens suportam paginacao: | Parametro | Default | Max | Descricao | |-----------|---------|-----|-----------| | `page` | 1 | - | Numero da pagina | | `limit` | 25 | 100 | Itens por pagina | | `sortBy` | - | - | Campo de ordenacao | | `sortType` | asc | - | `asc` ou `desc` | ## Integracoes - **Zapier:** Disponivel no marketplace — busque por \"MagnetCustomer\" - **n8n:** No nativo disponivel — busque por \"MagnetCustomer\" --- ## Changelog ### v1.3.0 (2026-04-14) **Wave 4 — Automacao, Jornadas e Segmentacao** - Campaigns: CRUD, actions, enable/disable (8 requests) - Process Automation: CRUD, entities, execution, folders, dry-run (13 requests) - Journeys: CRUD, phases, health score, MRR, milestones, expansion (13 requests) - Segmentation: segmentation rules, sharing rules, preview, simulate (9 requests) - Estrutura unificada: v1 (Legacy) + v2 (Current) no mesmo workspace - Total de requests: ~294 (v2) + ~40 (v1) ### v1.2.0 (2026-04-14) **Wave 3 — Novos modulos** - Email, Dashboards, Calendar, Reports (48 requests) ### v1.1.0 (2026-04-14) **Wave 2 — Sub-resources e operacoes em lote** - Filters, Messages, Todos, Batch Operations (78 requests) ### v1.0.0 (2026-04-14) **Lancamento inicial** - 125 requests em 6 modulos principais - OAuth2 com auto-refresh, 2 environments, documentacao publicada
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { ApiContacts507f1f77bcf86cd799439011Get200Response } from '../models';
26
+ // @ts-ignore
27
+ import type { ApiContacts507f1f77bcf86cd799439011Put200Response } from '../models';
28
+ // @ts-ignore
29
+ import type { ApiContacts507f1f77bcf86cd799439011PutRequest } from '../models';
30
+ // @ts-ignore
31
+ import type { ApiContactsFiltersGet200Response } from '../models';
32
+ // @ts-ignore
33
+ import type { ApiLeads507f1f77bcf86cd799439044Get200Response } from '../models';
34
+ // @ts-ignore
35
+ import type { ApiLeadsGet200Response } from '../models';
36
+ // @ts-ignore
37
+ import type { ApiOrganizations507f1f77bcf86cd799439055Get200Response } from '../models';
38
+ // @ts-ignore
39
+ import type { ApiOrganizations507f1f77bcf86cd799439055Put200Response } from '../models';
40
+ // @ts-ignore
41
+ import type { ApiOrganizations507f1f77bcf86cd799439055PutRequest } from '../models';
42
+ // @ts-ignore
43
+ import type { ApiOrganizationsGet200Response } from '../models';
44
+ // @ts-ignore
45
+ import type { ApiOrganizationsPost201Response } from '../models';
46
+ // @ts-ignore
47
+ import type { ApiOrganizationsPostRequest } from '../models';
48
+ // @ts-ignore
49
+ import type { ApiProspects507f1f77bcf86cd799439033Get200Response } from '../models';
50
+ // @ts-ignore
51
+ import type { ApiProspects507f1f77bcf86cd799439033Get404Response } from '../models';
52
+ // @ts-ignore
53
+ import type { ApiProspects507f1f77bcf86cd799439033PutRequest } from '../models';
54
+ // @ts-ignore
55
+ import type { ApiProspectsGet200Response } from '../models';
56
+ // @ts-ignore
57
+ import type { ApiProspectsPost201Response } from '../models';
58
+ // @ts-ignore
59
+ import type { ApiProspectsPost400Response } from '../models';
60
+ /**
61
+ * CRMCoreApi - axios parameter creator
62
+ */
63
+ export const CRMCoreApiAxiosParamCreator = function (configuration?: Configuration) {
64
+ return {
65
+ /**
66
+ * Retorna um contato pelo ID, incluindo campos customizados, owners e organizacoes vinculadas. ## Path Parameters | Parametro | Tipo | Descricao | |-----------|------|-----------| | `id` | ObjectId | ID do contato | ## Responses | Status | Descricao | |--------|-----------| | 200 | Contato encontrado | | 404 | Contato nao encontrado |
67
+ * @summary Get Contact
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ apiContacts507f1f77bcf86cd799439011Get: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
72
+ const localVarPath = `/api/contacts/507f1f77bcf86cd799439011`;
73
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
74
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
75
+ let baseOptions;
76
+ if (configuration) {
77
+ baseOptions = configuration.baseOptions;
78
+ }
79
+
80
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
81
+ const localVarHeaderParameter = {} as any;
82
+ const localVarQueryParameter = {} as any;
83
+
84
+ // authentication OAuth2 required
85
+ // oauth required
86
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
87
+
88
+ localVarHeaderParameter['Accept'] = 'application/json';
89
+
90
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
91
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
92
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
93
+
94
+ return {
95
+ url: toPathString(localVarUrlObj),
96
+ options: localVarRequestOptions,
97
+ };
98
+ },
99
+ /**
100
+ * Lista reunioes associadas ao contato.
101
+ * @summary List Contact Meetings
102
+ * @param {number} [page]
103
+ * @param {number} [limit]
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ apiContacts507f1f77bcf86cd799439011MeetingsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
108
+ const localVarPath = `/api/contacts/507f1f77bcf86cd799439011/meetings`;
109
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
111
+ let baseOptions;
112
+ if (configuration) {
113
+ baseOptions = configuration.baseOptions;
114
+ }
115
+
116
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
117
+ const localVarHeaderParameter = {} as any;
118
+ const localVarQueryParameter = {} as any;
119
+
120
+ // authentication OAuth2 required
121
+ // oauth required
122
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
123
+
124
+ if (page !== undefined) {
125
+ localVarQueryParameter['page'] = page;
126
+ }
127
+
128
+ if (limit !== undefined) {
129
+ localVarQueryParameter['limit'] = limit;
130
+ }
131
+
132
+
133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
136
+
137
+ return {
138
+ url: toPathString(localVarUrlObj),
139
+ options: localVarRequestOptions,
140
+ };
141
+ },
142
+ /**
143
+ * Lista observacoes do contato.
144
+ * @summary List Contact Observations
145
+ * @param {number} [page]
146
+ * @param {number} [limit]
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ apiContacts507f1f77bcf86cd799439011ObservationsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
151
+ const localVarPath = `/api/contacts/507f1f77bcf86cd799439011/observations`;
152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
+ let baseOptions;
155
+ if (configuration) {
156
+ baseOptions = configuration.baseOptions;
157
+ }
158
+
159
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
160
+ const localVarHeaderParameter = {} as any;
161
+ const localVarQueryParameter = {} as any;
162
+
163
+ // authentication OAuth2 required
164
+ // oauth required
165
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
166
+
167
+ if (page !== undefined) {
168
+ localVarQueryParameter['page'] = page;
169
+ }
170
+
171
+ if (limit !== undefined) {
172
+ localVarQueryParameter['limit'] = limit;
173
+ }
174
+
175
+
176
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
177
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
178
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
179
+
180
+ return {
181
+ url: toPathString(localVarUrlObj),
182
+ options: localVarRequestOptions,
183
+ };
184
+ },
185
+ /**
186
+ * Atualiza um contato existente. Envie apenas os campos que deseja alterar (PATCH semantics). ## Path Parameters | Parametro | Tipo | Descricao | |-----------|------|-----------| | `id` | ObjectId | ID do contato | ## Body (JSON) Mesmos campos de Create Contact. Apenas os campos enviados serao atualizados. ## Responses | Status | Descricao | |--------|-----------| | 200 | Contato atualizado | | 400 | Dados invalidos | | 404 | Contato nao encontrado |
187
+ * @summary Update Contact
188
+ * @param {ApiContacts507f1f77bcf86cd799439011PutRequest} [apiContacts507f1f77bcf86cd799439011PutRequest]
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ apiContacts507f1f77bcf86cd799439011Put: async (apiContacts507f1f77bcf86cd799439011PutRequest?: ApiContacts507f1f77bcf86cd799439011PutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
193
+ const localVarPath = `/api/contacts/507f1f77bcf86cd799439011`;
194
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
195
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
196
+ let baseOptions;
197
+ if (configuration) {
198
+ baseOptions = configuration.baseOptions;
199
+ }
200
+
201
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
202
+ const localVarHeaderParameter = {} as any;
203
+ const localVarQueryParameter = {} as any;
204
+
205
+ // authentication OAuth2 required
206
+ // oauth required
207
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
208
+
209
+ localVarHeaderParameter['Content-Type'] = 'application/json';
210
+ localVarHeaderParameter['Accept'] = 'application/json';
211
+
212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
215
+ localVarRequestOptions.data = serializeDataIfNeeded(apiContacts507f1f77bcf86cd799439011PutRequest, localVarRequestOptions, configuration)
216
+
217
+ return {
218
+ url: toPathString(localVarUrlObj),
219
+ options: localVarRequestOptions,
220
+ };
221
+ },
222
+ /**
223
+ * Lista tarefas associadas ao contato.
224
+ * @summary List Contact Tasks
225
+ * @param {number} [page]
226
+ * @param {number} [limit]
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ apiContacts507f1f77bcf86cd799439011TasksGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
231
+ const localVarPath = `/api/contacts/507f1f77bcf86cd799439011/tasks`;
232
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
233
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
234
+ let baseOptions;
235
+ if (configuration) {
236
+ baseOptions = configuration.baseOptions;
237
+ }
238
+
239
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
240
+ const localVarHeaderParameter = {} as any;
241
+ const localVarQueryParameter = {} as any;
242
+
243
+ // authentication OAuth2 required
244
+ // oauth required
245
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
246
+
247
+ if (page !== undefined) {
248
+ localVarQueryParameter['page'] = page;
249
+ }
250
+
251
+ if (limit !== undefined) {
252
+ localVarQueryParameter['limit'] = limit;
253
+ }
254
+
255
+
256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
259
+
260
+ return {
261
+ url: toPathString(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ };
264
+ },
265
+ /**
266
+ * Lista tickets associados ao contato.
267
+ * @summary List Contact Tickets
268
+ * @param {number} [page]
269
+ * @param {number} [limit]
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ apiContacts507f1f77bcf86cd799439011TicketsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ const localVarPath = `/api/contacts/507f1f77bcf86cd799439011/tickets`;
275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
276
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
277
+ let baseOptions;
278
+ if (configuration) {
279
+ baseOptions = configuration.baseOptions;
280
+ }
281
+
282
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
283
+ const localVarHeaderParameter = {} as any;
284
+ const localVarQueryParameter = {} as any;
285
+
286
+ // authentication OAuth2 required
287
+ // oauth required
288
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
289
+
290
+ if (page !== undefined) {
291
+ localVarQueryParameter['page'] = page;
292
+ }
293
+
294
+ if (limit !== undefined) {
295
+ localVarQueryParameter['limit'] = limit;
296
+ }
297
+
298
+
299
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
301
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
302
+
303
+ return {
304
+ url: toPathString(localVarUrlObj),
305
+ options: localVarRequestOptions,
306
+ };
307
+ },
308
+ /**
309
+ * Lista atendimentos associados ao contato.
310
+ * @summary List Contact Treatments
311
+ * @param {number} [page]
312
+ * @param {number} [limit]
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ apiContacts507f1f77bcf86cd799439011TreatmentsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
317
+ const localVarPath = `/api/contacts/507f1f77bcf86cd799439011/treatments`;
318
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
319
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
320
+ let baseOptions;
321
+ if (configuration) {
322
+ baseOptions = configuration.baseOptions;
323
+ }
324
+
325
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
326
+ const localVarHeaderParameter = {} as any;
327
+ const localVarQueryParameter = {} as any;
328
+
329
+ // authentication OAuth2 required
330
+ // oauth required
331
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
332
+
333
+ if (page !== undefined) {
334
+ localVarQueryParameter['page'] = page;
335
+ }
336
+
337
+ if (limit !== undefined) {
338
+ localVarQueryParameter['limit'] = limit;
339
+ }
340
+
341
+
342
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
343
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
344
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
345
+
346
+ return {
347
+ url: toPathString(localVarUrlObj),
348
+ options: localVarRequestOptions,
349
+ };
350
+ },
351
+ /**
352
+ * Remove um filtro salvo.
353
+ * @summary Delete Saved Filter
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ apiContactsFilters507f1f77bcf86cd799439300Delete: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
358
+ const localVarPath = `/api/contacts/filters/507f1f77bcf86cd799439300`;
359
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
360
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
361
+ let baseOptions;
362
+ if (configuration) {
363
+ baseOptions = configuration.baseOptions;
364
+ }
365
+
366
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
367
+ const localVarHeaderParameter = {} as any;
368
+ const localVarQueryParameter = {} as any;
369
+
370
+ // authentication OAuth2 required
371
+ // oauth required
372
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
373
+
374
+
375
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
376
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
377
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
378
+
379
+ return {
380
+ url: toPathString(localVarUrlObj),
381
+ options: localVarRequestOptions,
382
+ };
383
+ },
384
+ /**
385
+ * Retorna um filtro salvo pelo ID.
386
+ * @summary Get Saved Filter
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ apiContactsFilters507f1f77bcf86cd799439300Get: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
391
+ const localVarPath = `/api/contacts/filters/507f1f77bcf86cd799439300`;
392
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
393
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
394
+ let baseOptions;
395
+ if (configuration) {
396
+ baseOptions = configuration.baseOptions;
397
+ }
398
+
399
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
400
+ const localVarHeaderParameter = {} as any;
401
+ const localVarQueryParameter = {} as any;
402
+
403
+ // authentication OAuth2 required
404
+ // oauth required
405
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
406
+
407
+
408
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
409
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
410
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
411
+
412
+ return {
413
+ url: toPathString(localVarUrlObj),
414
+ options: localVarRequestOptions,
415
+ };
416
+ },
417
+ /**
418
+ * Retorna o filtro padrao do usuario.
419
+ * @summary Get Default Filter
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ apiContactsFiltersDefaultGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
424
+ const localVarPath = `/api/contacts/filters/default`;
425
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
426
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
427
+ let baseOptions;
428
+ if (configuration) {
429
+ baseOptions = configuration.baseOptions;
430
+ }
431
+
432
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
433
+ const localVarHeaderParameter = {} as any;
434
+ const localVarQueryParameter = {} as any;
435
+
436
+ // authentication OAuth2 required
437
+ // oauth required
438
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
439
+
440
+
441
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
442
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
443
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
444
+
445
+ return {
446
+ url: toPathString(localVarUrlObj),
447
+ options: localVarRequestOptions,
448
+ };
449
+ },
450
+ /**
451
+ * Lista filtros salvos do usuario para Contacts.
452
+ * @summary List Saved Filters
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ */
456
+ apiContactsFiltersGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
457
+ const localVarPath = `/api/contacts/filters`;
458
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
459
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
460
+ let baseOptions;
461
+ if (configuration) {
462
+ baseOptions = configuration.baseOptions;
463
+ }
464
+
465
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
466
+ const localVarHeaderParameter = {} as any;
467
+ const localVarQueryParameter = {} as any;
468
+
469
+ // authentication OAuth2 required
470
+ // oauth required
471
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
472
+
473
+ localVarHeaderParameter['Accept'] = 'application/json';
474
+
475
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
476
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
477
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
478
+
479
+ return {
480
+ url: toPathString(localVarUrlObj),
481
+ options: localVarRequestOptions,
482
+ };
483
+ },
484
+ /**
485
+ * Remove multiplos contatos em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos contatos a remover |
486
+ * @summary Remove Selected Contacts
487
+ * @param {object} [body]
488
+ * @param {*} [options] Override http request option.
489
+ * @throws {RequiredError}
490
+ */
491
+ apiContactsSelectedRemovePut: async (body?: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
492
+ const localVarPath = `/api/contacts/selected/remove`;
493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
494
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
495
+ let baseOptions;
496
+ if (configuration) {
497
+ baseOptions = configuration.baseOptions;
498
+ }
499
+
500
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
501
+ const localVarHeaderParameter = {} as any;
502
+ const localVarQueryParameter = {} as any;
503
+
504
+ // authentication OAuth2 required
505
+ // oauth required
506
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
507
+
508
+ localVarHeaderParameter['Content-Type'] = 'application/json';
509
+
510
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
511
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
512
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
513
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
514
+
515
+ return {
516
+ url: toPathString(localVarUrlObj),
517
+ options: localVarRequestOptions,
518
+ };
519
+ },
520
+ /**
521
+ *
522
+ * @summary Get Customer
523
+ * @param {*} [options] Override http request option.
524
+ * @throws {RequiredError}
525
+ */
526
+ apiCustomers507f1f77bcf86cd799439066Get: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
527
+ const localVarPath = `/api/customers/507f1f77bcf86cd799439066`;
528
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
529
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
530
+ let baseOptions;
531
+ if (configuration) {
532
+ baseOptions = configuration.baseOptions;
533
+ }
534
+
535
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
536
+ const localVarHeaderParameter = {} as any;
537
+ const localVarQueryParameter = {} as any;
538
+
539
+ // authentication OAuth2 required
540
+ // oauth required
541
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
542
+
543
+ localVarHeaderParameter['Accept'] = 'application/json';
544
+
545
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
546
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
547
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
548
+
549
+ return {
550
+ url: toPathString(localVarUrlObj),
551
+ options: localVarRequestOptions,
552
+ };
553
+ },
554
+ /**
555
+ *
556
+ * @summary List Customer Meetings
557
+ * @param {number} [page]
558
+ * @param {number} [limit]
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ apiCustomers507f1f77bcf86cd799439066MeetingsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
563
+ const localVarPath = `/api/customers/507f1f77bcf86cd799439066/meetings`;
564
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
565
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
566
+ let baseOptions;
567
+ if (configuration) {
568
+ baseOptions = configuration.baseOptions;
569
+ }
570
+
571
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
572
+ const localVarHeaderParameter = {} as any;
573
+ const localVarQueryParameter = {} as any;
574
+
575
+ // authentication OAuth2 required
576
+ // oauth required
577
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
578
+
579
+ if (page !== undefined) {
580
+ localVarQueryParameter['page'] = page;
581
+ }
582
+
583
+ if (limit !== undefined) {
584
+ localVarQueryParameter['limit'] = limit;
585
+ }
586
+
587
+
588
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
589
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
590
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
591
+
592
+ return {
593
+ url: toPathString(localVarUrlObj),
594
+ options: localVarRequestOptions,
595
+ };
596
+ },
597
+ /**
598
+ *
599
+ * @summary List Customer Observations
600
+ * @param {number} [page]
601
+ * @param {number} [limit]
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ apiCustomers507f1f77bcf86cd799439066ObservationsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
606
+ const localVarPath = `/api/customers/507f1f77bcf86cd799439066/observations`;
607
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
608
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
609
+ let baseOptions;
610
+ if (configuration) {
611
+ baseOptions = configuration.baseOptions;
612
+ }
613
+
614
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
615
+ const localVarHeaderParameter = {} as any;
616
+ const localVarQueryParameter = {} as any;
617
+
618
+ // authentication OAuth2 required
619
+ // oauth required
620
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
621
+
622
+ if (page !== undefined) {
623
+ localVarQueryParameter['page'] = page;
624
+ }
625
+
626
+ if (limit !== undefined) {
627
+ localVarQueryParameter['limit'] = limit;
628
+ }
629
+
630
+
631
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
632
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
633
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
634
+
635
+ return {
636
+ url: toPathString(localVarUrlObj),
637
+ options: localVarRequestOptions,
638
+ };
639
+ },
640
+ /**
641
+ *
642
+ * @summary Update Customer
643
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ */
647
+ apiCustomers507f1f77bcf86cd799439066Put: async (apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
648
+ const localVarPath = `/api/customers/507f1f77bcf86cd799439066`;
649
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
650
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
651
+ let baseOptions;
652
+ if (configuration) {
653
+ baseOptions = configuration.baseOptions;
654
+ }
655
+
656
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
657
+ const localVarHeaderParameter = {} as any;
658
+ const localVarQueryParameter = {} as any;
659
+
660
+ // authentication OAuth2 required
661
+ // oauth required
662
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
663
+
664
+ localVarHeaderParameter['Content-Type'] = 'application/json';
665
+
666
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
667
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
668
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
669
+ localVarRequestOptions.data = serializeDataIfNeeded(apiProspects507f1f77bcf86cd799439033PutRequest, localVarRequestOptions, configuration)
670
+
671
+ return {
672
+ url: toPathString(localVarUrlObj),
673
+ options: localVarRequestOptions,
674
+ };
675
+ },
676
+ /**
677
+ *
678
+ * @summary List Customer Tasks
679
+ * @param {number} [page]
680
+ * @param {number} [limit]
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ */
684
+ apiCustomers507f1f77bcf86cd799439066TasksGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
685
+ const localVarPath = `/api/customers/507f1f77bcf86cd799439066/tasks`;
686
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
687
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
688
+ let baseOptions;
689
+ if (configuration) {
690
+ baseOptions = configuration.baseOptions;
691
+ }
692
+
693
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
694
+ const localVarHeaderParameter = {} as any;
695
+ const localVarQueryParameter = {} as any;
696
+
697
+ // authentication OAuth2 required
698
+ // oauth required
699
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
700
+
701
+ if (page !== undefined) {
702
+ localVarQueryParameter['page'] = page;
703
+ }
704
+
705
+ if (limit !== undefined) {
706
+ localVarQueryParameter['limit'] = limit;
707
+ }
708
+
709
+
710
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
711
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
712
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
713
+
714
+ return {
715
+ url: toPathString(localVarUrlObj),
716
+ options: localVarRequestOptions,
717
+ };
718
+ },
719
+ /**
720
+ *
721
+ * @summary List Customer Tickets
722
+ * @param {number} [page]
723
+ * @param {number} [limit]
724
+ * @param {*} [options] Override http request option.
725
+ * @throws {RequiredError}
726
+ */
727
+ apiCustomers507f1f77bcf86cd799439066TicketsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
728
+ const localVarPath = `/api/customers/507f1f77bcf86cd799439066/tickets`;
729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
730
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
731
+ let baseOptions;
732
+ if (configuration) {
733
+ baseOptions = configuration.baseOptions;
734
+ }
735
+
736
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
737
+ const localVarHeaderParameter = {} as any;
738
+ const localVarQueryParameter = {} as any;
739
+
740
+ // authentication OAuth2 required
741
+ // oauth required
742
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
743
+
744
+ if (page !== undefined) {
745
+ localVarQueryParameter['page'] = page;
746
+ }
747
+
748
+ if (limit !== undefined) {
749
+ localVarQueryParameter['limit'] = limit;
750
+ }
751
+
752
+
753
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
754
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
755
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
756
+
757
+ return {
758
+ url: toPathString(localVarUrlObj),
759
+ options: localVarRequestOptions,
760
+ };
761
+ },
762
+ /**
763
+ *
764
+ * @summary List Customer Treatments
765
+ * @param {number} [page]
766
+ * @param {number} [limit]
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ */
770
+ apiCustomers507f1f77bcf86cd799439066TreatmentsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
771
+ const localVarPath = `/api/customers/507f1f77bcf86cd799439066/treatments`;
772
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
773
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
774
+ let baseOptions;
775
+ if (configuration) {
776
+ baseOptions = configuration.baseOptions;
777
+ }
778
+
779
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
780
+ const localVarHeaderParameter = {} as any;
781
+ const localVarQueryParameter = {} as any;
782
+
783
+ // authentication OAuth2 required
784
+ // oauth required
785
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
786
+
787
+ if (page !== undefined) {
788
+ localVarQueryParameter['page'] = page;
789
+ }
790
+
791
+ if (limit !== undefined) {
792
+ localVarQueryParameter['limit'] = limit;
793
+ }
794
+
795
+
796
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
797
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
798
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
799
+
800
+ return {
801
+ url: toPathString(localVarUrlObj),
802
+ options: localVarRequestOptions,
803
+ };
804
+ },
805
+ /**
806
+ * Remove um filtro salvo.
807
+ * @summary Delete Saved Filter
808
+ * @param {*} [options] Override http request option.
809
+ * @throws {RequiredError}
810
+ */
811
+ apiCustomersFilters507f1f77bcf86cd799439300Delete: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
812
+ const localVarPath = `/api/customers/filters/507f1f77bcf86cd799439300`;
813
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
814
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
815
+ let baseOptions;
816
+ if (configuration) {
817
+ baseOptions = configuration.baseOptions;
818
+ }
819
+
820
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
821
+ const localVarHeaderParameter = {} as any;
822
+ const localVarQueryParameter = {} as any;
823
+
824
+ // authentication OAuth2 required
825
+ // oauth required
826
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
827
+
828
+
829
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
830
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
831
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
832
+
833
+ return {
834
+ url: toPathString(localVarUrlObj),
835
+ options: localVarRequestOptions,
836
+ };
837
+ },
838
+ /**
839
+ * Retorna um filtro salvo pelo ID.
840
+ * @summary Get Saved Filter
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ apiCustomersFilters507f1f77bcf86cd799439300Get: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
845
+ const localVarPath = `/api/customers/filters/507f1f77bcf86cd799439300`;
846
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
847
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
848
+ let baseOptions;
849
+ if (configuration) {
850
+ baseOptions = configuration.baseOptions;
851
+ }
852
+
853
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
854
+ const localVarHeaderParameter = {} as any;
855
+ const localVarQueryParameter = {} as any;
856
+
857
+ // authentication OAuth2 required
858
+ // oauth required
859
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
860
+
861
+
862
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
863
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
864
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
865
+
866
+ return {
867
+ url: toPathString(localVarUrlObj),
868
+ options: localVarRequestOptions,
869
+ };
870
+ },
871
+ /**
872
+ * Retorna o filtro padrao do usuario.
873
+ * @summary Get Default Filter
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ */
877
+ apiCustomersFiltersDefaultGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
878
+ const localVarPath = `/api/customers/filters/default`;
879
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
880
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
881
+ let baseOptions;
882
+ if (configuration) {
883
+ baseOptions = configuration.baseOptions;
884
+ }
885
+
886
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
887
+ const localVarHeaderParameter = {} as any;
888
+ const localVarQueryParameter = {} as any;
889
+
890
+ // authentication OAuth2 required
891
+ // oauth required
892
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
893
+
894
+
895
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
896
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
897
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
898
+
899
+ return {
900
+ url: toPathString(localVarUrlObj),
901
+ options: localVarRequestOptions,
902
+ };
903
+ },
904
+ /**
905
+ * Lista filtros salvos do usuario para Customers.
906
+ * @summary List Saved Filters
907
+ * @param {*} [options] Override http request option.
908
+ * @throws {RequiredError}
909
+ */
910
+ apiCustomersFiltersGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
911
+ const localVarPath = `/api/customers/filters`;
912
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
913
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
914
+ let baseOptions;
915
+ if (configuration) {
916
+ baseOptions = configuration.baseOptions;
917
+ }
918
+
919
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
920
+ const localVarHeaderParameter = {} as any;
921
+ const localVarQueryParameter = {} as any;
922
+
923
+ // authentication OAuth2 required
924
+ // oauth required
925
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
926
+
927
+
928
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
929
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
930
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
931
+
932
+ return {
933
+ url: toPathString(localVarUrlObj),
934
+ options: localVarRequestOptions,
935
+ };
936
+ },
937
+ /**
938
+ *
939
+ * @summary List Customers
940
+ * @param {number} [page]
941
+ * @param {number} [limit]
942
+ * @param {string} [sortBy]
943
+ * @param {string} [sortType]
944
+ * @param {*} [options] Override http request option.
945
+ * @throws {RequiredError}
946
+ */
947
+ apiCustomersGet: async (page?: number, limit?: number, sortBy?: string, sortType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
948
+ const localVarPath = `/api/customers`;
949
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
950
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
951
+ let baseOptions;
952
+ if (configuration) {
953
+ baseOptions = configuration.baseOptions;
954
+ }
955
+
956
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
957
+ const localVarHeaderParameter = {} as any;
958
+ const localVarQueryParameter = {} as any;
959
+
960
+ // authentication OAuth2 required
961
+ // oauth required
962
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
963
+
964
+ if (page !== undefined) {
965
+ localVarQueryParameter['page'] = page;
966
+ }
967
+
968
+ if (limit !== undefined) {
969
+ localVarQueryParameter['limit'] = limit;
970
+ }
971
+
972
+ if (sortBy !== undefined) {
973
+ localVarQueryParameter['sortBy'] = sortBy;
974
+ }
975
+
976
+ if (sortType !== undefined) {
977
+ localVarQueryParameter['sortType'] = sortType;
978
+ }
979
+
980
+ localVarHeaderParameter['Accept'] = 'application/json';
981
+
982
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
983
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
984
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
985
+
986
+ return {
987
+ url: toPathString(localVarUrlObj),
988
+ options: localVarRequestOptions,
989
+ };
990
+ },
991
+ /**
992
+ * Cria um novo customer. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Customer criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
993
+ * @summary Create Customer
994
+ * @param {object} [body]
995
+ * @param {*} [options] Override http request option.
996
+ * @throws {RequiredError}
997
+ */
998
+ apiCustomersPost: async (body?: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
999
+ const localVarPath = `/api/customers`;
1000
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1001
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1002
+ let baseOptions;
1003
+ if (configuration) {
1004
+ baseOptions = configuration.baseOptions;
1005
+ }
1006
+
1007
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1008
+ const localVarHeaderParameter = {} as any;
1009
+ const localVarQueryParameter = {} as any;
1010
+
1011
+ // authentication OAuth2 required
1012
+ // oauth required
1013
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1014
+
1015
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1016
+
1017
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1018
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1019
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1020
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
1021
+
1022
+ return {
1023
+ url: toPathString(localVarUrlObj),
1024
+ options: localVarRequestOptions,
1025
+ };
1026
+ },
1027
+ /**
1028
+ * Remove multiplos customers em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos customers a remover |
1029
+ * @summary Remove Selected Customers
1030
+ * @param {object} [body]
1031
+ * @param {*} [options] Override http request option.
1032
+ * @throws {RequiredError}
1033
+ */
1034
+ apiCustomersSelectedRemovePut: async (body?: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1035
+ const localVarPath = `/api/customers/selected/remove`;
1036
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1037
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1038
+ let baseOptions;
1039
+ if (configuration) {
1040
+ baseOptions = configuration.baseOptions;
1041
+ }
1042
+
1043
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1044
+ const localVarHeaderParameter = {} as any;
1045
+ const localVarQueryParameter = {} as any;
1046
+
1047
+ // authentication OAuth2 required
1048
+ // oauth required
1049
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1050
+
1051
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1052
+
1053
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1054
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1055
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1056
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
1057
+
1058
+ return {
1059
+ url: toPathString(localVarUrlObj),
1060
+ options: localVarRequestOptions,
1061
+ };
1062
+ },
1063
+ /**
1064
+ * Retorna um lead pelo ID.
1065
+ * @summary Get Lead
1066
+ * @param {*} [options] Override http request option.
1067
+ * @throws {RequiredError}
1068
+ */
1069
+ apiLeads507f1f77bcf86cd799439044Get: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1070
+ const localVarPath = `/api/leads/507f1f77bcf86cd799439044`;
1071
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1072
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1073
+ let baseOptions;
1074
+ if (configuration) {
1075
+ baseOptions = configuration.baseOptions;
1076
+ }
1077
+
1078
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1079
+ const localVarHeaderParameter = {} as any;
1080
+ const localVarQueryParameter = {} as any;
1081
+
1082
+ // authentication OAuth2 required
1083
+ // oauth required
1084
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1085
+
1086
+ localVarHeaderParameter['Accept'] = 'application/json';
1087
+
1088
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1089
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1090
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1091
+
1092
+ return {
1093
+ url: toPathString(localVarUrlObj),
1094
+ options: localVarRequestOptions,
1095
+ };
1096
+ },
1097
+ /**
1098
+ *
1099
+ * @summary List Lead Meetings
1100
+ * @param {number} [page]
1101
+ * @param {number} [limit]
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ */
1105
+ apiLeads507f1f77bcf86cd799439044MeetingsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1106
+ const localVarPath = `/api/leads/507f1f77bcf86cd799439044/meetings`;
1107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1108
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1109
+ let baseOptions;
1110
+ if (configuration) {
1111
+ baseOptions = configuration.baseOptions;
1112
+ }
1113
+
1114
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1115
+ const localVarHeaderParameter = {} as any;
1116
+ const localVarQueryParameter = {} as any;
1117
+
1118
+ // authentication OAuth2 required
1119
+ // oauth required
1120
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1121
+
1122
+ if (page !== undefined) {
1123
+ localVarQueryParameter['page'] = page;
1124
+ }
1125
+
1126
+ if (limit !== undefined) {
1127
+ localVarQueryParameter['limit'] = limit;
1128
+ }
1129
+
1130
+
1131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1133
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1134
+
1135
+ return {
1136
+ url: toPathString(localVarUrlObj),
1137
+ options: localVarRequestOptions,
1138
+ };
1139
+ },
1140
+ /**
1141
+ *
1142
+ * @summary List Lead Observations
1143
+ * @param {number} [page]
1144
+ * @param {number} [limit]
1145
+ * @param {*} [options] Override http request option.
1146
+ * @throws {RequiredError}
1147
+ */
1148
+ apiLeads507f1f77bcf86cd799439044ObservationsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1149
+ const localVarPath = `/api/leads/507f1f77bcf86cd799439044/observations`;
1150
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1151
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1152
+ let baseOptions;
1153
+ if (configuration) {
1154
+ baseOptions = configuration.baseOptions;
1155
+ }
1156
+
1157
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1158
+ const localVarHeaderParameter = {} as any;
1159
+ const localVarQueryParameter = {} as any;
1160
+
1161
+ // authentication OAuth2 required
1162
+ // oauth required
1163
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1164
+
1165
+ if (page !== undefined) {
1166
+ localVarQueryParameter['page'] = page;
1167
+ }
1168
+
1169
+ if (limit !== undefined) {
1170
+ localVarQueryParameter['limit'] = limit;
1171
+ }
1172
+
1173
+
1174
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1175
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1176
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1177
+
1178
+ return {
1179
+ url: toPathString(localVarUrlObj),
1180
+ options: localVarRequestOptions,
1181
+ };
1182
+ },
1183
+ /**
1184
+ * Updates an existing lead\'s information. ## Request Body All fields are optional (partial update): - `name` (string): First name - `lastname` (string): Last name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"cellphone|commercial|home\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Contact type. One of: `physical`, `legal` - `doc` (string): CPF/CNPJ document number - `owners` (array of strings): IDs of staff members who own this lead - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `favoriteChannelToCommunication` (array of strings): Preferred communication channel IDs ## Response Returns the updated lead object with all current field values.
1185
+ * @summary Update Lead
1186
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
1187
+ * @param {*} [options] Override http request option.
1188
+ * @throws {RequiredError}
1189
+ */
1190
+ apiLeads507f1f77bcf86cd799439044Put: async (apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1191
+ const localVarPath = `/api/leads/507f1f77bcf86cd799439044`;
1192
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1193
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1194
+ let baseOptions;
1195
+ if (configuration) {
1196
+ baseOptions = configuration.baseOptions;
1197
+ }
1198
+
1199
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1200
+ const localVarHeaderParameter = {} as any;
1201
+ const localVarQueryParameter = {} as any;
1202
+
1203
+ // authentication OAuth2 required
1204
+ // oauth required
1205
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1206
+
1207
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1208
+ localVarHeaderParameter['Accept'] = 'application/json';
1209
+
1210
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1211
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1212
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1213
+ localVarRequestOptions.data = serializeDataIfNeeded(apiProspects507f1f77bcf86cd799439033PutRequest, localVarRequestOptions, configuration)
1214
+
1215
+ return {
1216
+ url: toPathString(localVarUrlObj),
1217
+ options: localVarRequestOptions,
1218
+ };
1219
+ },
1220
+ /**
1221
+ *
1222
+ * @summary List Lead Tasks
1223
+ * @param {number} [page]
1224
+ * @param {number} [limit]
1225
+ * @param {*} [options] Override http request option.
1226
+ * @throws {RequiredError}
1227
+ */
1228
+ apiLeads507f1f77bcf86cd799439044TasksGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1229
+ const localVarPath = `/api/leads/507f1f77bcf86cd799439044/tasks`;
1230
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1231
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1232
+ let baseOptions;
1233
+ if (configuration) {
1234
+ baseOptions = configuration.baseOptions;
1235
+ }
1236
+
1237
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1238
+ const localVarHeaderParameter = {} as any;
1239
+ const localVarQueryParameter = {} as any;
1240
+
1241
+ // authentication OAuth2 required
1242
+ // oauth required
1243
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1244
+
1245
+ if (page !== undefined) {
1246
+ localVarQueryParameter['page'] = page;
1247
+ }
1248
+
1249
+ if (limit !== undefined) {
1250
+ localVarQueryParameter['limit'] = limit;
1251
+ }
1252
+
1253
+
1254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1257
+
1258
+ return {
1259
+ url: toPathString(localVarUrlObj),
1260
+ options: localVarRequestOptions,
1261
+ };
1262
+ },
1263
+ /**
1264
+ *
1265
+ * @summary List Lead Tickets
1266
+ * @param {number} [page]
1267
+ * @param {number} [limit]
1268
+ * @param {*} [options] Override http request option.
1269
+ * @throws {RequiredError}
1270
+ */
1271
+ apiLeads507f1f77bcf86cd799439044TicketsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1272
+ const localVarPath = `/api/leads/507f1f77bcf86cd799439044/tickets`;
1273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1275
+ let baseOptions;
1276
+ if (configuration) {
1277
+ baseOptions = configuration.baseOptions;
1278
+ }
1279
+
1280
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1281
+ const localVarHeaderParameter = {} as any;
1282
+ const localVarQueryParameter = {} as any;
1283
+
1284
+ // authentication OAuth2 required
1285
+ // oauth required
1286
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1287
+
1288
+ if (page !== undefined) {
1289
+ localVarQueryParameter['page'] = page;
1290
+ }
1291
+
1292
+ if (limit !== undefined) {
1293
+ localVarQueryParameter['limit'] = limit;
1294
+ }
1295
+
1296
+
1297
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1299
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1300
+
1301
+ return {
1302
+ url: toPathString(localVarUrlObj),
1303
+ options: localVarRequestOptions,
1304
+ };
1305
+ },
1306
+ /**
1307
+ *
1308
+ * @summary List Lead Treatments
1309
+ * @param {number} [page]
1310
+ * @param {number} [limit]
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ */
1314
+ apiLeads507f1f77bcf86cd799439044TreatmentsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1315
+ const localVarPath = `/api/leads/507f1f77bcf86cd799439044/treatments`;
1316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1317
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1318
+ let baseOptions;
1319
+ if (configuration) {
1320
+ baseOptions = configuration.baseOptions;
1321
+ }
1322
+
1323
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1324
+ const localVarHeaderParameter = {} as any;
1325
+ const localVarQueryParameter = {} as any;
1326
+
1327
+ // authentication OAuth2 required
1328
+ // oauth required
1329
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1330
+
1331
+ if (page !== undefined) {
1332
+ localVarQueryParameter['page'] = page;
1333
+ }
1334
+
1335
+ if (limit !== undefined) {
1336
+ localVarQueryParameter['limit'] = limit;
1337
+ }
1338
+
1339
+
1340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1342
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1343
+
1344
+ return {
1345
+ url: toPathString(localVarUrlObj),
1346
+ options: localVarRequestOptions,
1347
+ };
1348
+ },
1349
+ /**
1350
+ * Remove um filtro salvo.
1351
+ * @summary Delete Saved Filter
1352
+ * @param {*} [options] Override http request option.
1353
+ * @throws {RequiredError}
1354
+ */
1355
+ apiLeadsFilters507f1f77bcf86cd799439300Delete: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1356
+ const localVarPath = `/api/leads/filters/507f1f77bcf86cd799439300`;
1357
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1358
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1359
+ let baseOptions;
1360
+ if (configuration) {
1361
+ baseOptions = configuration.baseOptions;
1362
+ }
1363
+
1364
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1365
+ const localVarHeaderParameter = {} as any;
1366
+ const localVarQueryParameter = {} as any;
1367
+
1368
+ // authentication OAuth2 required
1369
+ // oauth required
1370
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1371
+
1372
+
1373
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1374
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1375
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1376
+
1377
+ return {
1378
+ url: toPathString(localVarUrlObj),
1379
+ options: localVarRequestOptions,
1380
+ };
1381
+ },
1382
+ /**
1383
+ * Retorna um filtro salvo pelo ID.
1384
+ * @summary Get Saved Filter
1385
+ * @param {*} [options] Override http request option.
1386
+ * @throws {RequiredError}
1387
+ */
1388
+ apiLeadsFilters507f1f77bcf86cd799439300Get: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1389
+ const localVarPath = `/api/leads/filters/507f1f77bcf86cd799439300`;
1390
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1391
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1392
+ let baseOptions;
1393
+ if (configuration) {
1394
+ baseOptions = configuration.baseOptions;
1395
+ }
1396
+
1397
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1398
+ const localVarHeaderParameter = {} as any;
1399
+ const localVarQueryParameter = {} as any;
1400
+
1401
+ // authentication OAuth2 required
1402
+ // oauth required
1403
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1404
+
1405
+
1406
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1407
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1408
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1409
+
1410
+ return {
1411
+ url: toPathString(localVarUrlObj),
1412
+ options: localVarRequestOptions,
1413
+ };
1414
+ },
1415
+ /**
1416
+ * Retorna o filtro padrao do usuario.
1417
+ * @summary Get Default Filter
1418
+ * @param {*} [options] Override http request option.
1419
+ * @throws {RequiredError}
1420
+ */
1421
+ apiLeadsFiltersDefaultGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1422
+ const localVarPath = `/api/leads/filters/default`;
1423
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1424
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1425
+ let baseOptions;
1426
+ if (configuration) {
1427
+ baseOptions = configuration.baseOptions;
1428
+ }
1429
+
1430
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1431
+ const localVarHeaderParameter = {} as any;
1432
+ const localVarQueryParameter = {} as any;
1433
+
1434
+ // authentication OAuth2 required
1435
+ // oauth required
1436
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1437
+
1438
+
1439
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1440
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1441
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1442
+
1443
+ return {
1444
+ url: toPathString(localVarUrlObj),
1445
+ options: localVarRequestOptions,
1446
+ };
1447
+ },
1448
+ /**
1449
+ * Lista filtros salvos do usuario para Leads.
1450
+ * @summary List Saved Filters
1451
+ * @param {*} [options] Override http request option.
1452
+ * @throws {RequiredError}
1453
+ */
1454
+ apiLeadsFiltersGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1455
+ const localVarPath = `/api/leads/filters`;
1456
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1457
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1458
+ let baseOptions;
1459
+ if (configuration) {
1460
+ baseOptions = configuration.baseOptions;
1461
+ }
1462
+
1463
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1464
+ const localVarHeaderParameter = {} as any;
1465
+ const localVarQueryParameter = {} as any;
1466
+
1467
+ // authentication OAuth2 required
1468
+ // oauth required
1469
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1470
+
1471
+
1472
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1473
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1474
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1475
+
1476
+ return {
1477
+ url: toPathString(localVarUrlObj),
1478
+ options: localVarRequestOptions,
1479
+ };
1480
+ },
1481
+ /**
1482
+ * Lista leads com paginacao.
1483
+ * @summary List Leads
1484
+ * @param {number} [page]
1485
+ * @param {number} [limit]
1486
+ * @param {string} [sortBy]
1487
+ * @param {string} [sortType]
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ */
1491
+ apiLeadsGet: async (page?: number, limit?: number, sortBy?: string, sortType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1492
+ const localVarPath = `/api/leads`;
1493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1494
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1495
+ let baseOptions;
1496
+ if (configuration) {
1497
+ baseOptions = configuration.baseOptions;
1498
+ }
1499
+
1500
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1501
+ const localVarHeaderParameter = {} as any;
1502
+ const localVarQueryParameter = {} as any;
1503
+
1504
+ // authentication OAuth2 required
1505
+ // oauth required
1506
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1507
+
1508
+ if (page !== undefined) {
1509
+ localVarQueryParameter['page'] = page;
1510
+ }
1511
+
1512
+ if (limit !== undefined) {
1513
+ localVarQueryParameter['limit'] = limit;
1514
+ }
1515
+
1516
+ if (sortBy !== undefined) {
1517
+ localVarQueryParameter['sortBy'] = sortBy;
1518
+ }
1519
+
1520
+ if (sortType !== undefined) {
1521
+ localVarQueryParameter['sortType'] = sortType;
1522
+ }
1523
+
1524
+ localVarHeaderParameter['Accept'] = 'application/json';
1525
+
1526
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1527
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1528
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1529
+
1530
+ return {
1531
+ url: toPathString(localVarUrlObj),
1532
+ options: localVarRequestOptions,
1533
+ };
1534
+ },
1535
+ /**
1536
+ * Cria um novo lead. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Lead criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
1537
+ * @summary Create Lead
1538
+ * @param {object} [body]
1539
+ * @param {*} [options] Override http request option.
1540
+ * @throws {RequiredError}
1541
+ */
1542
+ apiLeadsPost: async (body?: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1543
+ const localVarPath = `/api/leads`;
1544
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1545
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1546
+ let baseOptions;
1547
+ if (configuration) {
1548
+ baseOptions = configuration.baseOptions;
1549
+ }
1550
+
1551
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1552
+ const localVarHeaderParameter = {} as any;
1553
+ const localVarQueryParameter = {} as any;
1554
+
1555
+ // authentication OAuth2 required
1556
+ // oauth required
1557
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1558
+
1559
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1560
+ localVarHeaderParameter['Accept'] = 'application/json';
1561
+
1562
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1563
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1564
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1565
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
1566
+
1567
+ return {
1568
+ url: toPathString(localVarUrlObj),
1569
+ options: localVarRequestOptions,
1570
+ };
1571
+ },
1572
+ /**
1573
+ * Remove multiplos leads em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos leads a remover |
1574
+ * @summary Remove Selected Leads
1575
+ * @param {object} [body]
1576
+ * @param {*} [options] Override http request option.
1577
+ * @throws {RequiredError}
1578
+ */
1579
+ apiLeadsSelectedRemovePut: async (body?: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1580
+ const localVarPath = `/api/leads/selected/remove`;
1581
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1582
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1583
+ let baseOptions;
1584
+ if (configuration) {
1585
+ baseOptions = configuration.baseOptions;
1586
+ }
1587
+
1588
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1589
+ const localVarHeaderParameter = {} as any;
1590
+ const localVarQueryParameter = {} as any;
1591
+
1592
+ // authentication OAuth2 required
1593
+ // oauth required
1594
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1595
+
1596
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1597
+
1598
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1600
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1601
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
1602
+
1603
+ return {
1604
+ url: toPathString(localVarUrlObj),
1605
+ options: localVarRequestOptions,
1606
+ };
1607
+ },
1608
+ /**
1609
+ * Lista contatos vinculados a organizacao.
1610
+ * @summary List Organization Contacts
1611
+ * @param {number} [page]
1612
+ * @param {number} [limit]
1613
+ * @param {*} [options] Override http request option.
1614
+ * @throws {RequiredError}
1615
+ */
1616
+ apiOrganizations507f1f77bcf86cd799439055ContactsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1617
+ const localVarPath = `/api/organizations/507f1f77bcf86cd799439055/contacts`;
1618
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1619
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1620
+ let baseOptions;
1621
+ if (configuration) {
1622
+ baseOptions = configuration.baseOptions;
1623
+ }
1624
+
1625
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1626
+ const localVarHeaderParameter = {} as any;
1627
+ const localVarQueryParameter = {} as any;
1628
+
1629
+ // authentication OAuth2 required
1630
+ // oauth required
1631
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1632
+
1633
+ if (page !== undefined) {
1634
+ localVarQueryParameter['page'] = page;
1635
+ }
1636
+
1637
+ if (limit !== undefined) {
1638
+ localVarQueryParameter['limit'] = limit;
1639
+ }
1640
+
1641
+
1642
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1643
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1644
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1645
+
1646
+ return {
1647
+ url: toPathString(localVarUrlObj),
1648
+ options: localVarRequestOptions,
1649
+ };
1650
+ },
1651
+ /**
1652
+ * Retorna uma organizacao pelo ID.
1653
+ * @summary Get Organization
1654
+ * @param {*} [options] Override http request option.
1655
+ * @throws {RequiredError}
1656
+ */
1657
+ apiOrganizations507f1f77bcf86cd799439055Get: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1658
+ const localVarPath = `/api/organizations/507f1f77bcf86cd799439055`;
1659
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1660
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1661
+ let baseOptions;
1662
+ if (configuration) {
1663
+ baseOptions = configuration.baseOptions;
1664
+ }
1665
+
1666
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1667
+ const localVarHeaderParameter = {} as any;
1668
+ const localVarQueryParameter = {} as any;
1669
+
1670
+ // authentication OAuth2 required
1671
+ // oauth required
1672
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1673
+
1674
+ localVarHeaderParameter['Accept'] = 'application/json';
1675
+
1676
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1677
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1678
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1679
+
1680
+ return {
1681
+ url: toPathString(localVarUrlObj),
1682
+ options: localVarRequestOptions,
1683
+ };
1684
+ },
1685
+ /**
1686
+ * Updates an existing organization\'s information. ## Request Body All fields are optional (partial update): - `name` (string): Organization name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"commercial|cellphone\", \"number\": \"...\", \"ddi\": \"+55\" }` - `doc` (string): CNPJ document number - `owners` (array of strings): IDs of staff members who own this organization - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` ## Response Returns the updated organization object with all current field values.
1687
+ * @summary Update Organization
1688
+ * @param {ApiOrganizations507f1f77bcf86cd799439055PutRequest} [apiOrganizations507f1f77bcf86cd799439055PutRequest]
1689
+ * @param {*} [options] Override http request option.
1690
+ * @throws {RequiredError}
1691
+ */
1692
+ apiOrganizations507f1f77bcf86cd799439055Put: async (apiOrganizations507f1f77bcf86cd799439055PutRequest?: ApiOrganizations507f1f77bcf86cd799439055PutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1693
+ const localVarPath = `/api/organizations/507f1f77bcf86cd799439055`;
1694
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1695
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1696
+ let baseOptions;
1697
+ if (configuration) {
1698
+ baseOptions = configuration.baseOptions;
1699
+ }
1700
+
1701
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1702
+ const localVarHeaderParameter = {} as any;
1703
+ const localVarQueryParameter = {} as any;
1704
+
1705
+ // authentication OAuth2 required
1706
+ // oauth required
1707
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1708
+
1709
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1710
+ localVarHeaderParameter['Accept'] = 'application/json';
1711
+
1712
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1713
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1714
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1715
+ localVarRequestOptions.data = serializeDataIfNeeded(apiOrganizations507f1f77bcf86cd799439055PutRequest, localVarRequestOptions, configuration)
1716
+
1717
+ return {
1718
+ url: toPathString(localVarUrlObj),
1719
+ options: localVarRequestOptions,
1720
+ };
1721
+ },
1722
+ /**
1723
+ * Lista organizacoes com paginacao.
1724
+ * @summary List Organizations
1725
+ * @param {number} [page]
1726
+ * @param {number} [limit]
1727
+ * @param {*} [options] Override http request option.
1728
+ * @throws {RequiredError}
1729
+ */
1730
+ apiOrganizationsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1731
+ const localVarPath = `/api/organizations`;
1732
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1733
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1734
+ let baseOptions;
1735
+ if (configuration) {
1736
+ baseOptions = configuration.baseOptions;
1737
+ }
1738
+
1739
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1740
+ const localVarHeaderParameter = {} as any;
1741
+ const localVarQueryParameter = {} as any;
1742
+
1743
+ // authentication OAuth2 required
1744
+ // oauth required
1745
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1746
+
1747
+ if (page !== undefined) {
1748
+ localVarQueryParameter['page'] = page;
1749
+ }
1750
+
1751
+ if (limit !== undefined) {
1752
+ localVarQueryParameter['limit'] = limit;
1753
+ }
1754
+
1755
+ localVarHeaderParameter['Accept'] = 'application/json';
1756
+
1757
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1758
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1759
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1760
+
1761
+ return {
1762
+ url: toPathString(localVarUrlObj),
1763
+ options: localVarRequestOptions,
1764
+ };
1765
+ },
1766
+ /**
1767
+ * Creates a new organization (legal entity / company). ## Request Body - `name` (string, required): Organization name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"commercial|cellphone\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Must be `legal` for organizations - `doc` (string): CNPJ document number - `owners` (array of strings): IDs of staff members who own this organization - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `source` (string): Origin of the record (e.g., `platform`, `api`) ## Response Returns the created organization object. If a duplicate is detected (same CNPJ or email), returns HTTP 409.
1768
+ * @summary Create Organization
1769
+ * @param {ApiOrganizationsPostRequest} [apiOrganizationsPostRequest]
1770
+ * @param {*} [options] Override http request option.
1771
+ * @throws {RequiredError}
1772
+ */
1773
+ apiOrganizationsPost: async (apiOrganizationsPostRequest?: ApiOrganizationsPostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1774
+ const localVarPath = `/api/organizations`;
1775
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1776
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1777
+ let baseOptions;
1778
+ if (configuration) {
1779
+ baseOptions = configuration.baseOptions;
1780
+ }
1781
+
1782
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1783
+ const localVarHeaderParameter = {} as any;
1784
+ const localVarQueryParameter = {} as any;
1785
+
1786
+ // authentication OAuth2 required
1787
+ // oauth required
1788
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1789
+
1790
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1791
+ localVarHeaderParameter['Accept'] = 'application/json';
1792
+
1793
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1794
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1795
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1796
+ localVarRequestOptions.data = serializeDataIfNeeded(apiOrganizationsPostRequest, localVarRequestOptions, configuration)
1797
+
1798
+ return {
1799
+ url: toPathString(localVarUrlObj),
1800
+ options: localVarRequestOptions,
1801
+ };
1802
+ },
1803
+ /**
1804
+ * Retorna um prospect pelo ID.
1805
+ * @summary Get Prospect
1806
+ * @param {*} [options] Override http request option.
1807
+ * @throws {RequiredError}
1808
+ */
1809
+ apiProspects507f1f77bcf86cd799439033Get: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1810
+ const localVarPath = `/api/prospects/507f1f77bcf86cd799439033`;
1811
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1812
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1813
+ let baseOptions;
1814
+ if (configuration) {
1815
+ baseOptions = configuration.baseOptions;
1816
+ }
1817
+
1818
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1819
+ const localVarHeaderParameter = {} as any;
1820
+ const localVarQueryParameter = {} as any;
1821
+
1822
+ // authentication OAuth2 required
1823
+ // oauth required
1824
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1825
+
1826
+ localVarHeaderParameter['Accept'] = 'application/json';
1827
+
1828
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1829
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1830
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1831
+
1832
+ return {
1833
+ url: toPathString(localVarUrlObj),
1834
+ options: localVarRequestOptions,
1835
+ };
1836
+ },
1837
+ /**
1838
+ *
1839
+ * @summary List Prospect Meetings
1840
+ * @param {number} [page]
1841
+ * @param {number} [limit]
1842
+ * @param {*} [options] Override http request option.
1843
+ * @throws {RequiredError}
1844
+ */
1845
+ apiProspects507f1f77bcf86cd799439033MeetingsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1846
+ const localVarPath = `/api/prospects/507f1f77bcf86cd799439033/meetings`;
1847
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1848
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1849
+ let baseOptions;
1850
+ if (configuration) {
1851
+ baseOptions = configuration.baseOptions;
1852
+ }
1853
+
1854
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1855
+ const localVarHeaderParameter = {} as any;
1856
+ const localVarQueryParameter = {} as any;
1857
+
1858
+ // authentication OAuth2 required
1859
+ // oauth required
1860
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1861
+
1862
+ if (page !== undefined) {
1863
+ localVarQueryParameter['page'] = page;
1864
+ }
1865
+
1866
+ if (limit !== undefined) {
1867
+ localVarQueryParameter['limit'] = limit;
1868
+ }
1869
+
1870
+
1871
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1872
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1873
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1874
+
1875
+ return {
1876
+ url: toPathString(localVarUrlObj),
1877
+ options: localVarRequestOptions,
1878
+ };
1879
+ },
1880
+ /**
1881
+ *
1882
+ * @summary List Prospect Observations
1883
+ * @param {number} [page]
1884
+ * @param {number} [limit]
1885
+ * @param {*} [options] Override http request option.
1886
+ * @throws {RequiredError}
1887
+ */
1888
+ apiProspects507f1f77bcf86cd799439033ObservationsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1889
+ const localVarPath = `/api/prospects/507f1f77bcf86cd799439033/observations`;
1890
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1891
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1892
+ let baseOptions;
1893
+ if (configuration) {
1894
+ baseOptions = configuration.baseOptions;
1895
+ }
1896
+
1897
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1898
+ const localVarHeaderParameter = {} as any;
1899
+ const localVarQueryParameter = {} as any;
1900
+
1901
+ // authentication OAuth2 required
1902
+ // oauth required
1903
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1904
+
1905
+ if (page !== undefined) {
1906
+ localVarQueryParameter['page'] = page;
1907
+ }
1908
+
1909
+ if (limit !== undefined) {
1910
+ localVarQueryParameter['limit'] = limit;
1911
+ }
1912
+
1913
+
1914
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1915
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1916
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1917
+
1918
+ return {
1919
+ url: toPathString(localVarUrlObj),
1920
+ options: localVarRequestOptions,
1921
+ };
1922
+ },
1923
+ /**
1924
+ * Updates an existing prospect\'s information. ## Request Body All fields are optional (partial update): - `name` (string): First name - `lastname` (string): Last name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"cellphone|commercial|home\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Contact type. One of: `physical`, `legal` - `doc` (string): CPF/CNPJ document number - `owners` (array of strings): IDs of staff members who own this prospect - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `favoriteChannelToCommunication` (array of strings): Preferred communication channel IDs ## Response Returns the updated prospect object with all current field values.
1925
+ * @summary Update Prospect
1926
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
1927
+ * @param {*} [options] Override http request option.
1928
+ * @throws {RequiredError}
1929
+ */
1930
+ apiProspects507f1f77bcf86cd799439033Put: async (apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1931
+ const localVarPath = `/api/prospects/507f1f77bcf86cd799439033`;
1932
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1933
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1934
+ let baseOptions;
1935
+ if (configuration) {
1936
+ baseOptions = configuration.baseOptions;
1937
+ }
1938
+
1939
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1940
+ const localVarHeaderParameter = {} as any;
1941
+ const localVarQueryParameter = {} as any;
1942
+
1943
+ // authentication OAuth2 required
1944
+ // oauth required
1945
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1946
+
1947
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1948
+ localVarHeaderParameter['Accept'] = 'application/json';
1949
+
1950
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1951
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1952
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1953
+ localVarRequestOptions.data = serializeDataIfNeeded(apiProspects507f1f77bcf86cd799439033PutRequest, localVarRequestOptions, configuration)
1954
+
1955
+ return {
1956
+ url: toPathString(localVarUrlObj),
1957
+ options: localVarRequestOptions,
1958
+ };
1959
+ },
1960
+ /**
1961
+ *
1962
+ * @summary List Prospect Tasks
1963
+ * @param {number} [page]
1964
+ * @param {number} [limit]
1965
+ * @param {*} [options] Override http request option.
1966
+ * @throws {RequiredError}
1967
+ */
1968
+ apiProspects507f1f77bcf86cd799439033TasksGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1969
+ const localVarPath = `/api/prospects/507f1f77bcf86cd799439033/tasks`;
1970
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1971
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1972
+ let baseOptions;
1973
+ if (configuration) {
1974
+ baseOptions = configuration.baseOptions;
1975
+ }
1976
+
1977
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1978
+ const localVarHeaderParameter = {} as any;
1979
+ const localVarQueryParameter = {} as any;
1980
+
1981
+ // authentication OAuth2 required
1982
+ // oauth required
1983
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
1984
+
1985
+ if (page !== undefined) {
1986
+ localVarQueryParameter['page'] = page;
1987
+ }
1988
+
1989
+ if (limit !== undefined) {
1990
+ localVarQueryParameter['limit'] = limit;
1991
+ }
1992
+
1993
+
1994
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1995
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1996
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1997
+
1998
+ return {
1999
+ url: toPathString(localVarUrlObj),
2000
+ options: localVarRequestOptions,
2001
+ };
2002
+ },
2003
+ /**
2004
+ *
2005
+ * @summary List Prospect Tickets
2006
+ * @param {number} [page]
2007
+ * @param {number} [limit]
2008
+ * @param {*} [options] Override http request option.
2009
+ * @throws {RequiredError}
2010
+ */
2011
+ apiProspects507f1f77bcf86cd799439033TicketsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2012
+ const localVarPath = `/api/prospects/507f1f77bcf86cd799439033/tickets`;
2013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2014
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2015
+ let baseOptions;
2016
+ if (configuration) {
2017
+ baseOptions = configuration.baseOptions;
2018
+ }
2019
+
2020
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2021
+ const localVarHeaderParameter = {} as any;
2022
+ const localVarQueryParameter = {} as any;
2023
+
2024
+ // authentication OAuth2 required
2025
+ // oauth required
2026
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
2027
+
2028
+ if (page !== undefined) {
2029
+ localVarQueryParameter['page'] = page;
2030
+ }
2031
+
2032
+ if (limit !== undefined) {
2033
+ localVarQueryParameter['limit'] = limit;
2034
+ }
2035
+
2036
+
2037
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2038
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2039
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2040
+
2041
+ return {
2042
+ url: toPathString(localVarUrlObj),
2043
+ options: localVarRequestOptions,
2044
+ };
2045
+ },
2046
+ /**
2047
+ *
2048
+ * @summary List Prospect Treatments
2049
+ * @param {number} [page]
2050
+ * @param {number} [limit]
2051
+ * @param {*} [options] Override http request option.
2052
+ * @throws {RequiredError}
2053
+ */
2054
+ apiProspects507f1f77bcf86cd799439033TreatmentsGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2055
+ const localVarPath = `/api/prospects/507f1f77bcf86cd799439033/treatments`;
2056
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2057
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2058
+ let baseOptions;
2059
+ if (configuration) {
2060
+ baseOptions = configuration.baseOptions;
2061
+ }
2062
+
2063
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2064
+ const localVarHeaderParameter = {} as any;
2065
+ const localVarQueryParameter = {} as any;
2066
+
2067
+ // authentication OAuth2 required
2068
+ // oauth required
2069
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
2070
+
2071
+ if (page !== undefined) {
2072
+ localVarQueryParameter['page'] = page;
2073
+ }
2074
+
2075
+ if (limit !== undefined) {
2076
+ localVarQueryParameter['limit'] = limit;
2077
+ }
2078
+
2079
+
2080
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2081
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2082
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2083
+
2084
+ return {
2085
+ url: toPathString(localVarUrlObj),
2086
+ options: localVarRequestOptions,
2087
+ };
2088
+ },
2089
+ /**
2090
+ * Remove um filtro salvo.
2091
+ * @summary Delete Saved Filter
2092
+ * @param {*} [options] Override http request option.
2093
+ * @throws {RequiredError}
2094
+ */
2095
+ apiProspectsFilters507f1f77bcf86cd799439300Delete: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2096
+ const localVarPath = `/api/prospects/filters/507f1f77bcf86cd799439300`;
2097
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2098
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2099
+ let baseOptions;
2100
+ if (configuration) {
2101
+ baseOptions = configuration.baseOptions;
2102
+ }
2103
+
2104
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2105
+ const localVarHeaderParameter = {} as any;
2106
+ const localVarQueryParameter = {} as any;
2107
+
2108
+ // authentication OAuth2 required
2109
+ // oauth required
2110
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
2111
+
2112
+
2113
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2115
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2116
+
2117
+ return {
2118
+ url: toPathString(localVarUrlObj),
2119
+ options: localVarRequestOptions,
2120
+ };
2121
+ },
2122
+ /**
2123
+ * Retorna um filtro salvo pelo ID.
2124
+ * @summary Get Saved Filter
2125
+ * @param {*} [options] Override http request option.
2126
+ * @throws {RequiredError}
2127
+ */
2128
+ apiProspectsFilters507f1f77bcf86cd799439300Get: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2129
+ const localVarPath = `/api/prospects/filters/507f1f77bcf86cd799439300`;
2130
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2131
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2132
+ let baseOptions;
2133
+ if (configuration) {
2134
+ baseOptions = configuration.baseOptions;
2135
+ }
2136
+
2137
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2138
+ const localVarHeaderParameter = {} as any;
2139
+ const localVarQueryParameter = {} as any;
2140
+
2141
+ // authentication OAuth2 required
2142
+ // oauth required
2143
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
2144
+
2145
+
2146
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2147
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2148
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2149
+
2150
+ return {
2151
+ url: toPathString(localVarUrlObj),
2152
+ options: localVarRequestOptions,
2153
+ };
2154
+ },
2155
+ /**
2156
+ * Retorna o filtro padrao do usuario.
2157
+ * @summary Get Default Filter
2158
+ * @param {*} [options] Override http request option.
2159
+ * @throws {RequiredError}
2160
+ */
2161
+ apiProspectsFiltersDefaultGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2162
+ const localVarPath = `/api/prospects/filters/default`;
2163
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2164
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2165
+ let baseOptions;
2166
+ if (configuration) {
2167
+ baseOptions = configuration.baseOptions;
2168
+ }
2169
+
2170
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2171
+ const localVarHeaderParameter = {} as any;
2172
+ const localVarQueryParameter = {} as any;
2173
+
2174
+ // authentication OAuth2 required
2175
+ // oauth required
2176
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
2177
+
2178
+
2179
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2180
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2181
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2182
+
2183
+ return {
2184
+ url: toPathString(localVarUrlObj),
2185
+ options: localVarRequestOptions,
2186
+ };
2187
+ },
2188
+ /**
2189
+ * Lista filtros salvos do usuario para Prospects.
2190
+ * @summary List Saved Filters
2191
+ * @param {*} [options] Override http request option.
2192
+ * @throws {RequiredError}
2193
+ */
2194
+ apiProspectsFiltersGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2195
+ const localVarPath = `/api/prospects/filters`;
2196
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2197
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2198
+ let baseOptions;
2199
+ if (configuration) {
2200
+ baseOptions = configuration.baseOptions;
2201
+ }
2202
+
2203
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2204
+ const localVarHeaderParameter = {} as any;
2205
+ const localVarQueryParameter = {} as any;
2206
+
2207
+ // authentication OAuth2 required
2208
+ // oauth required
2209
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
2210
+
2211
+
2212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2214
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2215
+
2216
+ return {
2217
+ url: toPathString(localVarUrlObj),
2218
+ options: localVarRequestOptions,
2219
+ };
2220
+ },
2221
+ /**
2222
+ * Lista prospects com paginacao.
2223
+ * @summary List Prospects
2224
+ * @param {number} [page]
2225
+ * @param {number} [limit]
2226
+ * @param {string} [sortBy]
2227
+ * @param {string} [sortType]
2228
+ * @param {*} [options] Override http request option.
2229
+ * @throws {RequiredError}
2230
+ */
2231
+ apiProspectsGet: async (page?: number, limit?: number, sortBy?: string, sortType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2232
+ const localVarPath = `/api/prospects`;
2233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2235
+ let baseOptions;
2236
+ if (configuration) {
2237
+ baseOptions = configuration.baseOptions;
2238
+ }
2239
+
2240
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2241
+ const localVarHeaderParameter = {} as any;
2242
+ const localVarQueryParameter = {} as any;
2243
+
2244
+ // authentication OAuth2 required
2245
+ // oauth required
2246
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
2247
+
2248
+ if (page !== undefined) {
2249
+ localVarQueryParameter['page'] = page;
2250
+ }
2251
+
2252
+ if (limit !== undefined) {
2253
+ localVarQueryParameter['limit'] = limit;
2254
+ }
2255
+
2256
+ if (sortBy !== undefined) {
2257
+ localVarQueryParameter['sortBy'] = sortBy;
2258
+ }
2259
+
2260
+ if (sortType !== undefined) {
2261
+ localVarQueryParameter['sortType'] = sortType;
2262
+ }
2263
+
2264
+ localVarHeaderParameter['Accept'] = 'application/json';
2265
+
2266
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2267
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2268
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2269
+
2270
+ return {
2271
+ url: toPathString(localVarUrlObj),
2272
+ options: localVarRequestOptions,
2273
+ };
2274
+ },
2275
+ /**
2276
+ * Cria um novo prospect. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Prospect criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
2277
+ * @summary Create Prospect
2278
+ * @param {object} [body]
2279
+ * @param {*} [options] Override http request option.
2280
+ * @throws {RequiredError}
2281
+ */
2282
+ apiProspectsPost: async (body?: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2283
+ const localVarPath = `/api/prospects`;
2284
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2285
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2286
+ let baseOptions;
2287
+ if (configuration) {
2288
+ baseOptions = configuration.baseOptions;
2289
+ }
2290
+
2291
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2292
+ const localVarHeaderParameter = {} as any;
2293
+ const localVarQueryParameter = {} as any;
2294
+
2295
+ // authentication OAuth2 required
2296
+ // oauth required
2297
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
2298
+
2299
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2300
+ localVarHeaderParameter['Accept'] = 'application/json';
2301
+
2302
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2303
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2304
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2305
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
2306
+
2307
+ return {
2308
+ url: toPathString(localVarUrlObj),
2309
+ options: localVarRequestOptions,
2310
+ };
2311
+ },
2312
+ /**
2313
+ * Remove multiplos prospects em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos prospects a remover |
2314
+ * @summary Remove Selected Prospects
2315
+ * @param {object} [body]
2316
+ * @param {*} [options] Override http request option.
2317
+ * @throws {RequiredError}
2318
+ */
2319
+ apiProspectsSelectedRemovePut: async (body?: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2320
+ const localVarPath = `/api/prospects/selected/remove`;
2321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2322
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2323
+ let baseOptions;
2324
+ if (configuration) {
2325
+ baseOptions = configuration.baseOptions;
2326
+ }
2327
+
2328
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2329
+ const localVarHeaderParameter = {} as any;
2330
+ const localVarQueryParameter = {} as any;
2331
+
2332
+ // authentication OAuth2 required
2333
+ // oauth required
2334
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
2335
+
2336
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2337
+
2338
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2339
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2340
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2341
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
2342
+
2343
+ return {
2344
+ url: toPathString(localVarUrlObj),
2345
+ options: localVarRequestOptions,
2346
+ };
2347
+ },
2348
+ }
2349
+ };
2350
+
2351
+ /**
2352
+ * CRMCoreApi - functional programming interface
2353
+ */
2354
+ export const CRMCoreApiFp = function(configuration?: Configuration) {
2355
+ const localVarAxiosParamCreator = CRMCoreApiAxiosParamCreator(configuration)
2356
+ return {
2357
+ /**
2358
+ * Retorna um contato pelo ID, incluindo campos customizados, owners e organizacoes vinculadas. ## Path Parameters | Parametro | Tipo | Descricao | |-----------|------|-----------| | `id` | ObjectId | ID do contato | ## Responses | Status | Descricao | |--------|-----------| | 200 | Contato encontrado | | 404 | Contato nao encontrado |
2359
+ * @summary Get Contact
2360
+ * @param {*} [options] Override http request option.
2361
+ * @throws {RequiredError}
2362
+ */
2363
+ async apiContacts507f1f77bcf86cd799439011Get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiContacts507f1f77bcf86cd799439011Get200Response>> {
2364
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContacts507f1f77bcf86cd799439011Get(options);
2365
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2366
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContacts507f1f77bcf86cd799439011Get']?.[localVarOperationServerIndex]?.url;
2367
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2368
+ },
2369
+ /**
2370
+ * Lista reunioes associadas ao contato.
2371
+ * @summary List Contact Meetings
2372
+ * @param {number} [page]
2373
+ * @param {number} [limit]
2374
+ * @param {*} [options] Override http request option.
2375
+ * @throws {RequiredError}
2376
+ */
2377
+ async apiContacts507f1f77bcf86cd799439011MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContacts507f1f77bcf86cd799439011MeetingsGet(page, limit, options);
2379
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2380
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContacts507f1f77bcf86cd799439011MeetingsGet']?.[localVarOperationServerIndex]?.url;
2381
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2382
+ },
2383
+ /**
2384
+ * Lista observacoes do contato.
2385
+ * @summary List Contact Observations
2386
+ * @param {number} [page]
2387
+ * @param {number} [limit]
2388
+ * @param {*} [options] Override http request option.
2389
+ * @throws {RequiredError}
2390
+ */
2391
+ async apiContacts507f1f77bcf86cd799439011ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContacts507f1f77bcf86cd799439011ObservationsGet(page, limit, options);
2393
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2394
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContacts507f1f77bcf86cd799439011ObservationsGet']?.[localVarOperationServerIndex]?.url;
2395
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2396
+ },
2397
+ /**
2398
+ * Atualiza um contato existente. Envie apenas os campos que deseja alterar (PATCH semantics). ## Path Parameters | Parametro | Tipo | Descricao | |-----------|------|-----------| | `id` | ObjectId | ID do contato | ## Body (JSON) Mesmos campos de Create Contact. Apenas os campos enviados serao atualizados. ## Responses | Status | Descricao | |--------|-----------| | 200 | Contato atualizado | | 400 | Dados invalidos | | 404 | Contato nao encontrado |
2399
+ * @summary Update Contact
2400
+ * @param {ApiContacts507f1f77bcf86cd799439011PutRequest} [apiContacts507f1f77bcf86cd799439011PutRequest]
2401
+ * @param {*} [options] Override http request option.
2402
+ * @throws {RequiredError}
2403
+ */
2404
+ async apiContacts507f1f77bcf86cd799439011Put(apiContacts507f1f77bcf86cd799439011PutRequest?: ApiContacts507f1f77bcf86cd799439011PutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiContacts507f1f77bcf86cd799439011Put200Response>> {
2405
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContacts507f1f77bcf86cd799439011Put(apiContacts507f1f77bcf86cd799439011PutRequest, options);
2406
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2407
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContacts507f1f77bcf86cd799439011Put']?.[localVarOperationServerIndex]?.url;
2408
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2409
+ },
2410
+ /**
2411
+ * Lista tarefas associadas ao contato.
2412
+ * @summary List Contact Tasks
2413
+ * @param {number} [page]
2414
+ * @param {number} [limit]
2415
+ * @param {*} [options] Override http request option.
2416
+ * @throws {RequiredError}
2417
+ */
2418
+ async apiContacts507f1f77bcf86cd799439011TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2419
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContacts507f1f77bcf86cd799439011TasksGet(page, limit, options);
2420
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2421
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContacts507f1f77bcf86cd799439011TasksGet']?.[localVarOperationServerIndex]?.url;
2422
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2423
+ },
2424
+ /**
2425
+ * Lista tickets associados ao contato.
2426
+ * @summary List Contact Tickets
2427
+ * @param {number} [page]
2428
+ * @param {number} [limit]
2429
+ * @param {*} [options] Override http request option.
2430
+ * @throws {RequiredError}
2431
+ */
2432
+ async apiContacts507f1f77bcf86cd799439011TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2433
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContacts507f1f77bcf86cd799439011TicketsGet(page, limit, options);
2434
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2435
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContacts507f1f77bcf86cd799439011TicketsGet']?.[localVarOperationServerIndex]?.url;
2436
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2437
+ },
2438
+ /**
2439
+ * Lista atendimentos associados ao contato.
2440
+ * @summary List Contact Treatments
2441
+ * @param {number} [page]
2442
+ * @param {number} [limit]
2443
+ * @param {*} [options] Override http request option.
2444
+ * @throws {RequiredError}
2445
+ */
2446
+ async apiContacts507f1f77bcf86cd799439011TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2447
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContacts507f1f77bcf86cd799439011TreatmentsGet(page, limit, options);
2448
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2449
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContacts507f1f77bcf86cd799439011TreatmentsGet']?.[localVarOperationServerIndex]?.url;
2450
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2451
+ },
2452
+ /**
2453
+ * Remove um filtro salvo.
2454
+ * @summary Delete Saved Filter
2455
+ * @param {*} [options] Override http request option.
2456
+ * @throws {RequiredError}
2457
+ */
2458
+ async apiContactsFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2459
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContactsFilters507f1f77bcf86cd799439300Delete(options);
2460
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2461
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContactsFilters507f1f77bcf86cd799439300Delete']?.[localVarOperationServerIndex]?.url;
2462
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2463
+ },
2464
+ /**
2465
+ * Retorna um filtro salvo pelo ID.
2466
+ * @summary Get Saved Filter
2467
+ * @param {*} [options] Override http request option.
2468
+ * @throws {RequiredError}
2469
+ */
2470
+ async apiContactsFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2471
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContactsFilters507f1f77bcf86cd799439300Get(options);
2472
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2473
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContactsFilters507f1f77bcf86cd799439300Get']?.[localVarOperationServerIndex]?.url;
2474
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2475
+ },
2476
+ /**
2477
+ * Retorna o filtro padrao do usuario.
2478
+ * @summary Get Default Filter
2479
+ * @param {*} [options] Override http request option.
2480
+ * @throws {RequiredError}
2481
+ */
2482
+ async apiContactsFiltersDefaultGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2483
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContactsFiltersDefaultGet(options);
2484
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2485
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContactsFiltersDefaultGet']?.[localVarOperationServerIndex]?.url;
2486
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2487
+ },
2488
+ /**
2489
+ * Lista filtros salvos do usuario para Contacts.
2490
+ * @summary List Saved Filters
2491
+ * @param {*} [options] Override http request option.
2492
+ * @throws {RequiredError}
2493
+ */
2494
+ async apiContactsFiltersGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiContactsFiltersGet200Response>> {
2495
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContactsFiltersGet(options);
2496
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2497
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContactsFiltersGet']?.[localVarOperationServerIndex]?.url;
2498
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2499
+ },
2500
+ /**
2501
+ * Remove multiplos contatos em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos contatos a remover |
2502
+ * @summary Remove Selected Contacts
2503
+ * @param {object} [body]
2504
+ * @param {*} [options] Override http request option.
2505
+ * @throws {RequiredError}
2506
+ */
2507
+ async apiContactsSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2508
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiContactsSelectedRemovePut(body, options);
2509
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2510
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiContactsSelectedRemovePut']?.[localVarOperationServerIndex]?.url;
2511
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2512
+ },
2513
+ /**
2514
+ *
2515
+ * @summary Get Customer
2516
+ * @param {*} [options] Override http request option.
2517
+ * @throws {RequiredError}
2518
+ */
2519
+ async apiCustomers507f1f77bcf86cd799439066Get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2520
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomers507f1f77bcf86cd799439066Get(options);
2521
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2522
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomers507f1f77bcf86cd799439066Get']?.[localVarOperationServerIndex]?.url;
2523
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2524
+ },
2525
+ /**
2526
+ *
2527
+ * @summary List Customer Meetings
2528
+ * @param {number} [page]
2529
+ * @param {number} [limit]
2530
+ * @param {*} [options] Override http request option.
2531
+ * @throws {RequiredError}
2532
+ */
2533
+ async apiCustomers507f1f77bcf86cd799439066MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2534
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomers507f1f77bcf86cd799439066MeetingsGet(page, limit, options);
2535
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2536
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomers507f1f77bcf86cd799439066MeetingsGet']?.[localVarOperationServerIndex]?.url;
2537
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2538
+ },
2539
+ /**
2540
+ *
2541
+ * @summary List Customer Observations
2542
+ * @param {number} [page]
2543
+ * @param {number} [limit]
2544
+ * @param {*} [options] Override http request option.
2545
+ * @throws {RequiredError}
2546
+ */
2547
+ async apiCustomers507f1f77bcf86cd799439066ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2548
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomers507f1f77bcf86cd799439066ObservationsGet(page, limit, options);
2549
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2550
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomers507f1f77bcf86cd799439066ObservationsGet']?.[localVarOperationServerIndex]?.url;
2551
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2552
+ },
2553
+ /**
2554
+ *
2555
+ * @summary Update Customer
2556
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
2557
+ * @param {*} [options] Override http request option.
2558
+ * @throws {RequiredError}
2559
+ */
2560
+ async apiCustomers507f1f77bcf86cd799439066Put(apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2561
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomers507f1f77bcf86cd799439066Put(apiProspects507f1f77bcf86cd799439033PutRequest, options);
2562
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2563
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomers507f1f77bcf86cd799439066Put']?.[localVarOperationServerIndex]?.url;
2564
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2565
+ },
2566
+ /**
2567
+ *
2568
+ * @summary List Customer Tasks
2569
+ * @param {number} [page]
2570
+ * @param {number} [limit]
2571
+ * @param {*} [options] Override http request option.
2572
+ * @throws {RequiredError}
2573
+ */
2574
+ async apiCustomers507f1f77bcf86cd799439066TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2575
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomers507f1f77bcf86cd799439066TasksGet(page, limit, options);
2576
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2577
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomers507f1f77bcf86cd799439066TasksGet']?.[localVarOperationServerIndex]?.url;
2578
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2579
+ },
2580
+ /**
2581
+ *
2582
+ * @summary List Customer Tickets
2583
+ * @param {number} [page]
2584
+ * @param {number} [limit]
2585
+ * @param {*} [options] Override http request option.
2586
+ * @throws {RequiredError}
2587
+ */
2588
+ async apiCustomers507f1f77bcf86cd799439066TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2589
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomers507f1f77bcf86cd799439066TicketsGet(page, limit, options);
2590
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2591
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomers507f1f77bcf86cd799439066TicketsGet']?.[localVarOperationServerIndex]?.url;
2592
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2593
+ },
2594
+ /**
2595
+ *
2596
+ * @summary List Customer Treatments
2597
+ * @param {number} [page]
2598
+ * @param {number} [limit]
2599
+ * @param {*} [options] Override http request option.
2600
+ * @throws {RequiredError}
2601
+ */
2602
+ async apiCustomers507f1f77bcf86cd799439066TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2603
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomers507f1f77bcf86cd799439066TreatmentsGet(page, limit, options);
2604
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2605
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomers507f1f77bcf86cd799439066TreatmentsGet']?.[localVarOperationServerIndex]?.url;
2606
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2607
+ },
2608
+ /**
2609
+ * Remove um filtro salvo.
2610
+ * @summary Delete Saved Filter
2611
+ * @param {*} [options] Override http request option.
2612
+ * @throws {RequiredError}
2613
+ */
2614
+ async apiCustomersFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2615
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomersFilters507f1f77bcf86cd799439300Delete(options);
2616
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2617
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomersFilters507f1f77bcf86cd799439300Delete']?.[localVarOperationServerIndex]?.url;
2618
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2619
+ },
2620
+ /**
2621
+ * Retorna um filtro salvo pelo ID.
2622
+ * @summary Get Saved Filter
2623
+ * @param {*} [options] Override http request option.
2624
+ * @throws {RequiredError}
2625
+ */
2626
+ async apiCustomersFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2627
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomersFilters507f1f77bcf86cd799439300Get(options);
2628
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2629
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomersFilters507f1f77bcf86cd799439300Get']?.[localVarOperationServerIndex]?.url;
2630
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2631
+ },
2632
+ /**
2633
+ * Retorna o filtro padrao do usuario.
2634
+ * @summary Get Default Filter
2635
+ * @param {*} [options] Override http request option.
2636
+ * @throws {RequiredError}
2637
+ */
2638
+ async apiCustomersFiltersDefaultGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2639
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomersFiltersDefaultGet(options);
2640
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2641
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomersFiltersDefaultGet']?.[localVarOperationServerIndex]?.url;
2642
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2643
+ },
2644
+ /**
2645
+ * Lista filtros salvos do usuario para Customers.
2646
+ * @summary List Saved Filters
2647
+ * @param {*} [options] Override http request option.
2648
+ * @throws {RequiredError}
2649
+ */
2650
+ async apiCustomersFiltersGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2651
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomersFiltersGet(options);
2652
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2653
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomersFiltersGet']?.[localVarOperationServerIndex]?.url;
2654
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2655
+ },
2656
+ /**
2657
+ *
2658
+ * @summary List Customers
2659
+ * @param {number} [page]
2660
+ * @param {number} [limit]
2661
+ * @param {string} [sortBy]
2662
+ * @param {string} [sortType]
2663
+ * @param {*} [options] Override http request option.
2664
+ * @throws {RequiredError}
2665
+ */
2666
+ async apiCustomersGet(page?: number, limit?: number, sortBy?: string, sortType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiLeadsGet200Response>> {
2667
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomersGet(page, limit, sortBy, sortType, options);
2668
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2669
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomersGet']?.[localVarOperationServerIndex]?.url;
2670
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2671
+ },
2672
+ /**
2673
+ * Cria um novo customer. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Customer criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
2674
+ * @summary Create Customer
2675
+ * @param {object} [body]
2676
+ * @param {*} [options] Override http request option.
2677
+ * @throws {RequiredError}
2678
+ */
2679
+ async apiCustomersPost(body?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2680
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomersPost(body, options);
2681
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2682
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomersPost']?.[localVarOperationServerIndex]?.url;
2683
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2684
+ },
2685
+ /**
2686
+ * Remove multiplos customers em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos customers a remover |
2687
+ * @summary Remove Selected Customers
2688
+ * @param {object} [body]
2689
+ * @param {*} [options] Override http request option.
2690
+ * @throws {RequiredError}
2691
+ */
2692
+ async apiCustomersSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2693
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomersSelectedRemovePut(body, options);
2694
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2695
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiCustomersSelectedRemovePut']?.[localVarOperationServerIndex]?.url;
2696
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2697
+ },
2698
+ /**
2699
+ * Retorna um lead pelo ID.
2700
+ * @summary Get Lead
2701
+ * @param {*} [options] Override http request option.
2702
+ * @throws {RequiredError}
2703
+ */
2704
+ async apiLeads507f1f77bcf86cd799439044Get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiLeads507f1f77bcf86cd799439044Get200Response>> {
2705
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeads507f1f77bcf86cd799439044Get(options);
2706
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2707
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeads507f1f77bcf86cd799439044Get']?.[localVarOperationServerIndex]?.url;
2708
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2709
+ },
2710
+ /**
2711
+ *
2712
+ * @summary List Lead Meetings
2713
+ * @param {number} [page]
2714
+ * @param {number} [limit]
2715
+ * @param {*} [options] Override http request option.
2716
+ * @throws {RequiredError}
2717
+ */
2718
+ async apiLeads507f1f77bcf86cd799439044MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2719
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeads507f1f77bcf86cd799439044MeetingsGet(page, limit, options);
2720
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2721
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeads507f1f77bcf86cd799439044MeetingsGet']?.[localVarOperationServerIndex]?.url;
2722
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2723
+ },
2724
+ /**
2725
+ *
2726
+ * @summary List Lead Observations
2727
+ * @param {number} [page]
2728
+ * @param {number} [limit]
2729
+ * @param {*} [options] Override http request option.
2730
+ * @throws {RequiredError}
2731
+ */
2732
+ async apiLeads507f1f77bcf86cd799439044ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2733
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeads507f1f77bcf86cd799439044ObservationsGet(page, limit, options);
2734
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2735
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeads507f1f77bcf86cd799439044ObservationsGet']?.[localVarOperationServerIndex]?.url;
2736
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2737
+ },
2738
+ /**
2739
+ * Updates an existing lead\'s information. ## Request Body All fields are optional (partial update): - `name` (string): First name - `lastname` (string): Last name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"cellphone|commercial|home\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Contact type. One of: `physical`, `legal` - `doc` (string): CPF/CNPJ document number - `owners` (array of strings): IDs of staff members who own this lead - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `favoriteChannelToCommunication` (array of strings): Preferred communication channel IDs ## Response Returns the updated lead object with all current field values.
2740
+ * @summary Update Lead
2741
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
2742
+ * @param {*} [options] Override http request option.
2743
+ * @throws {RequiredError}
2744
+ */
2745
+ async apiLeads507f1f77bcf86cd799439044Put(apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiContacts507f1f77bcf86cd799439011Put200Response>> {
2746
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeads507f1f77bcf86cd799439044Put(apiProspects507f1f77bcf86cd799439033PutRequest, options);
2747
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2748
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeads507f1f77bcf86cd799439044Put']?.[localVarOperationServerIndex]?.url;
2749
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2750
+ },
2751
+ /**
2752
+ *
2753
+ * @summary List Lead Tasks
2754
+ * @param {number} [page]
2755
+ * @param {number} [limit]
2756
+ * @param {*} [options] Override http request option.
2757
+ * @throws {RequiredError}
2758
+ */
2759
+ async apiLeads507f1f77bcf86cd799439044TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2760
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeads507f1f77bcf86cd799439044TasksGet(page, limit, options);
2761
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2762
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeads507f1f77bcf86cd799439044TasksGet']?.[localVarOperationServerIndex]?.url;
2763
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2764
+ },
2765
+ /**
2766
+ *
2767
+ * @summary List Lead Tickets
2768
+ * @param {number} [page]
2769
+ * @param {number} [limit]
2770
+ * @param {*} [options] Override http request option.
2771
+ * @throws {RequiredError}
2772
+ */
2773
+ async apiLeads507f1f77bcf86cd799439044TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2774
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeads507f1f77bcf86cd799439044TicketsGet(page, limit, options);
2775
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2776
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeads507f1f77bcf86cd799439044TicketsGet']?.[localVarOperationServerIndex]?.url;
2777
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2778
+ },
2779
+ /**
2780
+ *
2781
+ * @summary List Lead Treatments
2782
+ * @param {number} [page]
2783
+ * @param {number} [limit]
2784
+ * @param {*} [options] Override http request option.
2785
+ * @throws {RequiredError}
2786
+ */
2787
+ async apiLeads507f1f77bcf86cd799439044TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2788
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeads507f1f77bcf86cd799439044TreatmentsGet(page, limit, options);
2789
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2790
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeads507f1f77bcf86cd799439044TreatmentsGet']?.[localVarOperationServerIndex]?.url;
2791
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2792
+ },
2793
+ /**
2794
+ * Remove um filtro salvo.
2795
+ * @summary Delete Saved Filter
2796
+ * @param {*} [options] Override http request option.
2797
+ * @throws {RequiredError}
2798
+ */
2799
+ async apiLeadsFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2800
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeadsFilters507f1f77bcf86cd799439300Delete(options);
2801
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2802
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeadsFilters507f1f77bcf86cd799439300Delete']?.[localVarOperationServerIndex]?.url;
2803
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2804
+ },
2805
+ /**
2806
+ * Retorna um filtro salvo pelo ID.
2807
+ * @summary Get Saved Filter
2808
+ * @param {*} [options] Override http request option.
2809
+ * @throws {RequiredError}
2810
+ */
2811
+ async apiLeadsFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2812
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeadsFilters507f1f77bcf86cd799439300Get(options);
2813
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2814
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeadsFilters507f1f77bcf86cd799439300Get']?.[localVarOperationServerIndex]?.url;
2815
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2816
+ },
2817
+ /**
2818
+ * Retorna o filtro padrao do usuario.
2819
+ * @summary Get Default Filter
2820
+ * @param {*} [options] Override http request option.
2821
+ * @throws {RequiredError}
2822
+ */
2823
+ async apiLeadsFiltersDefaultGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2824
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeadsFiltersDefaultGet(options);
2825
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2826
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeadsFiltersDefaultGet']?.[localVarOperationServerIndex]?.url;
2827
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2828
+ },
2829
+ /**
2830
+ * Lista filtros salvos do usuario para Leads.
2831
+ * @summary List Saved Filters
2832
+ * @param {*} [options] Override http request option.
2833
+ * @throws {RequiredError}
2834
+ */
2835
+ async apiLeadsFiltersGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2836
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeadsFiltersGet(options);
2837
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2838
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeadsFiltersGet']?.[localVarOperationServerIndex]?.url;
2839
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2840
+ },
2841
+ /**
2842
+ * Lista leads com paginacao.
2843
+ * @summary List Leads
2844
+ * @param {number} [page]
2845
+ * @param {number} [limit]
2846
+ * @param {string} [sortBy]
2847
+ * @param {string} [sortType]
2848
+ * @param {*} [options] Override http request option.
2849
+ * @throws {RequiredError}
2850
+ */
2851
+ async apiLeadsGet(page?: number, limit?: number, sortBy?: string, sortType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiLeadsGet200Response>> {
2852
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeadsGet(page, limit, sortBy, sortType, options);
2853
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2854
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeadsGet']?.[localVarOperationServerIndex]?.url;
2855
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2856
+ },
2857
+ /**
2858
+ * Cria um novo lead. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Lead criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
2859
+ * @summary Create Lead
2860
+ * @param {object} [body]
2861
+ * @param {*} [options] Override http request option.
2862
+ * @throws {RequiredError}
2863
+ */
2864
+ async apiLeadsPost(body?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiProspectsPost201Response>> {
2865
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeadsPost(body, options);
2866
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2867
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeadsPost']?.[localVarOperationServerIndex]?.url;
2868
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2869
+ },
2870
+ /**
2871
+ * Remove multiplos leads em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos leads a remover |
2872
+ * @summary Remove Selected Leads
2873
+ * @param {object} [body]
2874
+ * @param {*} [options] Override http request option.
2875
+ * @throws {RequiredError}
2876
+ */
2877
+ async apiLeadsSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2878
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiLeadsSelectedRemovePut(body, options);
2879
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2880
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiLeadsSelectedRemovePut']?.[localVarOperationServerIndex]?.url;
2881
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2882
+ },
2883
+ /**
2884
+ * Lista contatos vinculados a organizacao.
2885
+ * @summary List Organization Contacts
2886
+ * @param {number} [page]
2887
+ * @param {number} [limit]
2888
+ * @param {*} [options] Override http request option.
2889
+ * @throws {RequiredError}
2890
+ */
2891
+ async apiOrganizations507f1f77bcf86cd799439055ContactsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2892
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiOrganizations507f1f77bcf86cd799439055ContactsGet(page, limit, options);
2893
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2894
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiOrganizations507f1f77bcf86cd799439055ContactsGet']?.[localVarOperationServerIndex]?.url;
2895
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2896
+ },
2897
+ /**
2898
+ * Retorna uma organizacao pelo ID.
2899
+ * @summary Get Organization
2900
+ * @param {*} [options] Override http request option.
2901
+ * @throws {RequiredError}
2902
+ */
2903
+ async apiOrganizations507f1f77bcf86cd799439055Get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiOrganizations507f1f77bcf86cd799439055Get200Response>> {
2904
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiOrganizations507f1f77bcf86cd799439055Get(options);
2905
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2906
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiOrganizations507f1f77bcf86cd799439055Get']?.[localVarOperationServerIndex]?.url;
2907
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2908
+ },
2909
+ /**
2910
+ * Updates an existing organization\'s information. ## Request Body All fields are optional (partial update): - `name` (string): Organization name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"commercial|cellphone\", \"number\": \"...\", \"ddi\": \"+55\" }` - `doc` (string): CNPJ document number - `owners` (array of strings): IDs of staff members who own this organization - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` ## Response Returns the updated organization object with all current field values.
2911
+ * @summary Update Organization
2912
+ * @param {ApiOrganizations507f1f77bcf86cd799439055PutRequest} [apiOrganizations507f1f77bcf86cd799439055PutRequest]
2913
+ * @param {*} [options] Override http request option.
2914
+ * @throws {RequiredError}
2915
+ */
2916
+ async apiOrganizations507f1f77bcf86cd799439055Put(apiOrganizations507f1f77bcf86cd799439055PutRequest?: ApiOrganizations507f1f77bcf86cd799439055PutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiOrganizations507f1f77bcf86cd799439055Put200Response>> {
2917
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiOrganizations507f1f77bcf86cd799439055Put(apiOrganizations507f1f77bcf86cd799439055PutRequest, options);
2918
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2919
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiOrganizations507f1f77bcf86cd799439055Put']?.[localVarOperationServerIndex]?.url;
2920
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2921
+ },
2922
+ /**
2923
+ * Lista organizacoes com paginacao.
2924
+ * @summary List Organizations
2925
+ * @param {number} [page]
2926
+ * @param {number} [limit]
2927
+ * @param {*} [options] Override http request option.
2928
+ * @throws {RequiredError}
2929
+ */
2930
+ async apiOrganizationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiOrganizationsGet200Response>> {
2931
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiOrganizationsGet(page, limit, options);
2932
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2933
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiOrganizationsGet']?.[localVarOperationServerIndex]?.url;
2934
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2935
+ },
2936
+ /**
2937
+ * Creates a new organization (legal entity / company). ## Request Body - `name` (string, required): Organization name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"commercial|cellphone\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Must be `legal` for organizations - `doc` (string): CNPJ document number - `owners` (array of strings): IDs of staff members who own this organization - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `source` (string): Origin of the record (e.g., `platform`, `api`) ## Response Returns the created organization object. If a duplicate is detected (same CNPJ or email), returns HTTP 409.
2938
+ * @summary Create Organization
2939
+ * @param {ApiOrganizationsPostRequest} [apiOrganizationsPostRequest]
2940
+ * @param {*} [options] Override http request option.
2941
+ * @throws {RequiredError}
2942
+ */
2943
+ async apiOrganizationsPost(apiOrganizationsPostRequest?: ApiOrganizationsPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiOrganizationsPost201Response>> {
2944
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiOrganizationsPost(apiOrganizationsPostRequest, options);
2945
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2946
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiOrganizationsPost']?.[localVarOperationServerIndex]?.url;
2947
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2948
+ },
2949
+ /**
2950
+ * Retorna um prospect pelo ID.
2951
+ * @summary Get Prospect
2952
+ * @param {*} [options] Override http request option.
2953
+ * @throws {RequiredError}
2954
+ */
2955
+ async apiProspects507f1f77bcf86cd799439033Get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiProspects507f1f77bcf86cd799439033Get200Response>> {
2956
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspects507f1f77bcf86cd799439033Get(options);
2957
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2958
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspects507f1f77bcf86cd799439033Get']?.[localVarOperationServerIndex]?.url;
2959
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2960
+ },
2961
+ /**
2962
+ *
2963
+ * @summary List Prospect Meetings
2964
+ * @param {number} [page]
2965
+ * @param {number} [limit]
2966
+ * @param {*} [options] Override http request option.
2967
+ * @throws {RequiredError}
2968
+ */
2969
+ async apiProspects507f1f77bcf86cd799439033MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2970
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspects507f1f77bcf86cd799439033MeetingsGet(page, limit, options);
2971
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2972
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspects507f1f77bcf86cd799439033MeetingsGet']?.[localVarOperationServerIndex]?.url;
2973
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2974
+ },
2975
+ /**
2976
+ *
2977
+ * @summary List Prospect Observations
2978
+ * @param {number} [page]
2979
+ * @param {number} [limit]
2980
+ * @param {*} [options] Override http request option.
2981
+ * @throws {RequiredError}
2982
+ */
2983
+ async apiProspects507f1f77bcf86cd799439033ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2984
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspects507f1f77bcf86cd799439033ObservationsGet(page, limit, options);
2985
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2986
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspects507f1f77bcf86cd799439033ObservationsGet']?.[localVarOperationServerIndex]?.url;
2987
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2988
+ },
2989
+ /**
2990
+ * Updates an existing prospect\'s information. ## Request Body All fields are optional (partial update): - `name` (string): First name - `lastname` (string): Last name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"cellphone|commercial|home\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Contact type. One of: `physical`, `legal` - `doc` (string): CPF/CNPJ document number - `owners` (array of strings): IDs of staff members who own this prospect - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `favoriteChannelToCommunication` (array of strings): Preferred communication channel IDs ## Response Returns the updated prospect object with all current field values.
2991
+ * @summary Update Prospect
2992
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
2993
+ * @param {*} [options] Override http request option.
2994
+ * @throws {RequiredError}
2995
+ */
2996
+ async apiProspects507f1f77bcf86cd799439033Put(apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiContacts507f1f77bcf86cd799439011Put200Response>> {
2997
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspects507f1f77bcf86cd799439033Put(apiProspects507f1f77bcf86cd799439033PutRequest, options);
2998
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2999
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspects507f1f77bcf86cd799439033Put']?.[localVarOperationServerIndex]?.url;
3000
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3001
+ },
3002
+ /**
3003
+ *
3004
+ * @summary List Prospect Tasks
3005
+ * @param {number} [page]
3006
+ * @param {number} [limit]
3007
+ * @param {*} [options] Override http request option.
3008
+ * @throws {RequiredError}
3009
+ */
3010
+ async apiProspects507f1f77bcf86cd799439033TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3011
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspects507f1f77bcf86cd799439033TasksGet(page, limit, options);
3012
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3013
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspects507f1f77bcf86cd799439033TasksGet']?.[localVarOperationServerIndex]?.url;
3014
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3015
+ },
3016
+ /**
3017
+ *
3018
+ * @summary List Prospect Tickets
3019
+ * @param {number} [page]
3020
+ * @param {number} [limit]
3021
+ * @param {*} [options] Override http request option.
3022
+ * @throws {RequiredError}
3023
+ */
3024
+ async apiProspects507f1f77bcf86cd799439033TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3025
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspects507f1f77bcf86cd799439033TicketsGet(page, limit, options);
3026
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3027
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspects507f1f77bcf86cd799439033TicketsGet']?.[localVarOperationServerIndex]?.url;
3028
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3029
+ },
3030
+ /**
3031
+ *
3032
+ * @summary List Prospect Treatments
3033
+ * @param {number} [page]
3034
+ * @param {number} [limit]
3035
+ * @param {*} [options] Override http request option.
3036
+ * @throws {RequiredError}
3037
+ */
3038
+ async apiProspects507f1f77bcf86cd799439033TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3039
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspects507f1f77bcf86cd799439033TreatmentsGet(page, limit, options);
3040
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3041
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspects507f1f77bcf86cd799439033TreatmentsGet']?.[localVarOperationServerIndex]?.url;
3042
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3043
+ },
3044
+ /**
3045
+ * Remove um filtro salvo.
3046
+ * @summary Delete Saved Filter
3047
+ * @param {*} [options] Override http request option.
3048
+ * @throws {RequiredError}
3049
+ */
3050
+ async apiProspectsFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3051
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspectsFilters507f1f77bcf86cd799439300Delete(options);
3052
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3053
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspectsFilters507f1f77bcf86cd799439300Delete']?.[localVarOperationServerIndex]?.url;
3054
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3055
+ },
3056
+ /**
3057
+ * Retorna um filtro salvo pelo ID.
3058
+ * @summary Get Saved Filter
3059
+ * @param {*} [options] Override http request option.
3060
+ * @throws {RequiredError}
3061
+ */
3062
+ async apiProspectsFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3063
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspectsFilters507f1f77bcf86cd799439300Get(options);
3064
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3065
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspectsFilters507f1f77bcf86cd799439300Get']?.[localVarOperationServerIndex]?.url;
3066
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3067
+ },
3068
+ /**
3069
+ * Retorna o filtro padrao do usuario.
3070
+ * @summary Get Default Filter
3071
+ * @param {*} [options] Override http request option.
3072
+ * @throws {RequiredError}
3073
+ */
3074
+ async apiProspectsFiltersDefaultGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3075
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspectsFiltersDefaultGet(options);
3076
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3077
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspectsFiltersDefaultGet']?.[localVarOperationServerIndex]?.url;
3078
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3079
+ },
3080
+ /**
3081
+ * Lista filtros salvos do usuario para Prospects.
3082
+ * @summary List Saved Filters
3083
+ * @param {*} [options] Override http request option.
3084
+ * @throws {RequiredError}
3085
+ */
3086
+ async apiProspectsFiltersGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3087
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspectsFiltersGet(options);
3088
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3089
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspectsFiltersGet']?.[localVarOperationServerIndex]?.url;
3090
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3091
+ },
3092
+ /**
3093
+ * Lista prospects com paginacao.
3094
+ * @summary List Prospects
3095
+ * @param {number} [page]
3096
+ * @param {number} [limit]
3097
+ * @param {string} [sortBy]
3098
+ * @param {string} [sortType]
3099
+ * @param {*} [options] Override http request option.
3100
+ * @throws {RequiredError}
3101
+ */
3102
+ async apiProspectsGet(page?: number, limit?: number, sortBy?: string, sortType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiProspectsGet200Response>> {
3103
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspectsGet(page, limit, sortBy, sortType, options);
3104
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3105
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspectsGet']?.[localVarOperationServerIndex]?.url;
3106
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3107
+ },
3108
+ /**
3109
+ * Cria um novo prospect. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Prospect criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
3110
+ * @summary Create Prospect
3111
+ * @param {object} [body]
3112
+ * @param {*} [options] Override http request option.
3113
+ * @throws {RequiredError}
3114
+ */
3115
+ async apiProspectsPost(body?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiProspectsPost201Response>> {
3116
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspectsPost(body, options);
3117
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3118
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspectsPost']?.[localVarOperationServerIndex]?.url;
3119
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3120
+ },
3121
+ /**
3122
+ * Remove multiplos prospects em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos prospects a remover |
3123
+ * @summary Remove Selected Prospects
3124
+ * @param {object} [body]
3125
+ * @param {*} [options] Override http request option.
3126
+ * @throws {RequiredError}
3127
+ */
3128
+ async apiProspectsSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3129
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiProspectsSelectedRemovePut(body, options);
3130
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3131
+ const localVarOperationServerBasePath = operationServerMap['CRMCoreApi.apiProspectsSelectedRemovePut']?.[localVarOperationServerIndex]?.url;
3132
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3133
+ },
3134
+ }
3135
+ };
3136
+
3137
+ /**
3138
+ * CRMCoreApi - factory interface
3139
+ */
3140
+ export const CRMCoreApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3141
+ const localVarFp = CRMCoreApiFp(configuration)
3142
+ return {
3143
+ /**
3144
+ * Retorna um contato pelo ID, incluindo campos customizados, owners e organizacoes vinculadas. ## Path Parameters | Parametro | Tipo | Descricao | |-----------|------|-----------| | `id` | ObjectId | ID do contato | ## Responses | Status | Descricao | |--------|-----------| | 200 | Contato encontrado | | 404 | Contato nao encontrado |
3145
+ * @summary Get Contact
3146
+ * @param {*} [options] Override http request option.
3147
+ * @throws {RequiredError}
3148
+ */
3149
+ apiContacts507f1f77bcf86cd799439011Get(options?: RawAxiosRequestConfig): AxiosPromise<ApiContacts507f1f77bcf86cd799439011Get200Response> {
3150
+ return localVarFp.apiContacts507f1f77bcf86cd799439011Get(options).then((request) => request(axios, basePath));
3151
+ },
3152
+ /**
3153
+ * Lista reunioes associadas ao contato.
3154
+ * @summary List Contact Meetings
3155
+ * @param {number} [page]
3156
+ * @param {number} [limit]
3157
+ * @param {*} [options] Override http request option.
3158
+ * @throws {RequiredError}
3159
+ */
3160
+ apiContacts507f1f77bcf86cd799439011MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3161
+ return localVarFp.apiContacts507f1f77bcf86cd799439011MeetingsGet(page, limit, options).then((request) => request(axios, basePath));
3162
+ },
3163
+ /**
3164
+ * Lista observacoes do contato.
3165
+ * @summary List Contact Observations
3166
+ * @param {number} [page]
3167
+ * @param {number} [limit]
3168
+ * @param {*} [options] Override http request option.
3169
+ * @throws {RequiredError}
3170
+ */
3171
+ apiContacts507f1f77bcf86cd799439011ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3172
+ return localVarFp.apiContacts507f1f77bcf86cd799439011ObservationsGet(page, limit, options).then((request) => request(axios, basePath));
3173
+ },
3174
+ /**
3175
+ * Atualiza um contato existente. Envie apenas os campos que deseja alterar (PATCH semantics). ## Path Parameters | Parametro | Tipo | Descricao | |-----------|------|-----------| | `id` | ObjectId | ID do contato | ## Body (JSON) Mesmos campos de Create Contact. Apenas os campos enviados serao atualizados. ## Responses | Status | Descricao | |--------|-----------| | 200 | Contato atualizado | | 400 | Dados invalidos | | 404 | Contato nao encontrado |
3176
+ * @summary Update Contact
3177
+ * @param {ApiContacts507f1f77bcf86cd799439011PutRequest} [apiContacts507f1f77bcf86cd799439011PutRequest]
3178
+ * @param {*} [options] Override http request option.
3179
+ * @throws {RequiredError}
3180
+ */
3181
+ apiContacts507f1f77bcf86cd799439011Put(apiContacts507f1f77bcf86cd799439011PutRequest?: ApiContacts507f1f77bcf86cd799439011PutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiContacts507f1f77bcf86cd799439011Put200Response> {
3182
+ return localVarFp.apiContacts507f1f77bcf86cd799439011Put(apiContacts507f1f77bcf86cd799439011PutRequest, options).then((request) => request(axios, basePath));
3183
+ },
3184
+ /**
3185
+ * Lista tarefas associadas ao contato.
3186
+ * @summary List Contact Tasks
3187
+ * @param {number} [page]
3188
+ * @param {number} [limit]
3189
+ * @param {*} [options] Override http request option.
3190
+ * @throws {RequiredError}
3191
+ */
3192
+ apiContacts507f1f77bcf86cd799439011TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3193
+ return localVarFp.apiContacts507f1f77bcf86cd799439011TasksGet(page, limit, options).then((request) => request(axios, basePath));
3194
+ },
3195
+ /**
3196
+ * Lista tickets associados ao contato.
3197
+ * @summary List Contact Tickets
3198
+ * @param {number} [page]
3199
+ * @param {number} [limit]
3200
+ * @param {*} [options] Override http request option.
3201
+ * @throws {RequiredError}
3202
+ */
3203
+ apiContacts507f1f77bcf86cd799439011TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3204
+ return localVarFp.apiContacts507f1f77bcf86cd799439011TicketsGet(page, limit, options).then((request) => request(axios, basePath));
3205
+ },
3206
+ /**
3207
+ * Lista atendimentos associados ao contato.
3208
+ * @summary List Contact Treatments
3209
+ * @param {number} [page]
3210
+ * @param {number} [limit]
3211
+ * @param {*} [options] Override http request option.
3212
+ * @throws {RequiredError}
3213
+ */
3214
+ apiContacts507f1f77bcf86cd799439011TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3215
+ return localVarFp.apiContacts507f1f77bcf86cd799439011TreatmentsGet(page, limit, options).then((request) => request(axios, basePath));
3216
+ },
3217
+ /**
3218
+ * Remove um filtro salvo.
3219
+ * @summary Delete Saved Filter
3220
+ * @param {*} [options] Override http request option.
3221
+ * @throws {RequiredError}
3222
+ */
3223
+ apiContactsFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3224
+ return localVarFp.apiContactsFilters507f1f77bcf86cd799439300Delete(options).then((request) => request(axios, basePath));
3225
+ },
3226
+ /**
3227
+ * Retorna um filtro salvo pelo ID.
3228
+ * @summary Get Saved Filter
3229
+ * @param {*} [options] Override http request option.
3230
+ * @throws {RequiredError}
3231
+ */
3232
+ apiContactsFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3233
+ return localVarFp.apiContactsFilters507f1f77bcf86cd799439300Get(options).then((request) => request(axios, basePath));
3234
+ },
3235
+ /**
3236
+ * Retorna o filtro padrao do usuario.
3237
+ * @summary Get Default Filter
3238
+ * @param {*} [options] Override http request option.
3239
+ * @throws {RequiredError}
3240
+ */
3241
+ apiContactsFiltersDefaultGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3242
+ return localVarFp.apiContactsFiltersDefaultGet(options).then((request) => request(axios, basePath));
3243
+ },
3244
+ /**
3245
+ * Lista filtros salvos do usuario para Contacts.
3246
+ * @summary List Saved Filters
3247
+ * @param {*} [options] Override http request option.
3248
+ * @throws {RequiredError}
3249
+ */
3250
+ apiContactsFiltersGet(options?: RawAxiosRequestConfig): AxiosPromise<ApiContactsFiltersGet200Response> {
3251
+ return localVarFp.apiContactsFiltersGet(options).then((request) => request(axios, basePath));
3252
+ },
3253
+ /**
3254
+ * Remove multiplos contatos em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos contatos a remover |
3255
+ * @summary Remove Selected Contacts
3256
+ * @param {object} [body]
3257
+ * @param {*} [options] Override http request option.
3258
+ * @throws {RequiredError}
3259
+ */
3260
+ apiContactsSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3261
+ return localVarFp.apiContactsSelectedRemovePut(body, options).then((request) => request(axios, basePath));
3262
+ },
3263
+ /**
3264
+ *
3265
+ * @summary Get Customer
3266
+ * @param {*} [options] Override http request option.
3267
+ * @throws {RequiredError}
3268
+ */
3269
+ apiCustomers507f1f77bcf86cd799439066Get(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3270
+ return localVarFp.apiCustomers507f1f77bcf86cd799439066Get(options).then((request) => request(axios, basePath));
3271
+ },
3272
+ /**
3273
+ *
3274
+ * @summary List Customer Meetings
3275
+ * @param {number} [page]
3276
+ * @param {number} [limit]
3277
+ * @param {*} [options] Override http request option.
3278
+ * @throws {RequiredError}
3279
+ */
3280
+ apiCustomers507f1f77bcf86cd799439066MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3281
+ return localVarFp.apiCustomers507f1f77bcf86cd799439066MeetingsGet(page, limit, options).then((request) => request(axios, basePath));
3282
+ },
3283
+ /**
3284
+ *
3285
+ * @summary List Customer Observations
3286
+ * @param {number} [page]
3287
+ * @param {number} [limit]
3288
+ * @param {*} [options] Override http request option.
3289
+ * @throws {RequiredError}
3290
+ */
3291
+ apiCustomers507f1f77bcf86cd799439066ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3292
+ return localVarFp.apiCustomers507f1f77bcf86cd799439066ObservationsGet(page, limit, options).then((request) => request(axios, basePath));
3293
+ },
3294
+ /**
3295
+ *
3296
+ * @summary Update Customer
3297
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
3298
+ * @param {*} [options] Override http request option.
3299
+ * @throws {RequiredError}
3300
+ */
3301
+ apiCustomers507f1f77bcf86cd799439066Put(apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3302
+ return localVarFp.apiCustomers507f1f77bcf86cd799439066Put(apiProspects507f1f77bcf86cd799439033PutRequest, options).then((request) => request(axios, basePath));
3303
+ },
3304
+ /**
3305
+ *
3306
+ * @summary List Customer Tasks
3307
+ * @param {number} [page]
3308
+ * @param {number} [limit]
3309
+ * @param {*} [options] Override http request option.
3310
+ * @throws {RequiredError}
3311
+ */
3312
+ apiCustomers507f1f77bcf86cd799439066TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3313
+ return localVarFp.apiCustomers507f1f77bcf86cd799439066TasksGet(page, limit, options).then((request) => request(axios, basePath));
3314
+ },
3315
+ /**
3316
+ *
3317
+ * @summary List Customer Tickets
3318
+ * @param {number} [page]
3319
+ * @param {number} [limit]
3320
+ * @param {*} [options] Override http request option.
3321
+ * @throws {RequiredError}
3322
+ */
3323
+ apiCustomers507f1f77bcf86cd799439066TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3324
+ return localVarFp.apiCustomers507f1f77bcf86cd799439066TicketsGet(page, limit, options).then((request) => request(axios, basePath));
3325
+ },
3326
+ /**
3327
+ *
3328
+ * @summary List Customer Treatments
3329
+ * @param {number} [page]
3330
+ * @param {number} [limit]
3331
+ * @param {*} [options] Override http request option.
3332
+ * @throws {RequiredError}
3333
+ */
3334
+ apiCustomers507f1f77bcf86cd799439066TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3335
+ return localVarFp.apiCustomers507f1f77bcf86cd799439066TreatmentsGet(page, limit, options).then((request) => request(axios, basePath));
3336
+ },
3337
+ /**
3338
+ * Remove um filtro salvo.
3339
+ * @summary Delete Saved Filter
3340
+ * @param {*} [options] Override http request option.
3341
+ * @throws {RequiredError}
3342
+ */
3343
+ apiCustomersFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3344
+ return localVarFp.apiCustomersFilters507f1f77bcf86cd799439300Delete(options).then((request) => request(axios, basePath));
3345
+ },
3346
+ /**
3347
+ * Retorna um filtro salvo pelo ID.
3348
+ * @summary Get Saved Filter
3349
+ * @param {*} [options] Override http request option.
3350
+ * @throws {RequiredError}
3351
+ */
3352
+ apiCustomersFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3353
+ return localVarFp.apiCustomersFilters507f1f77bcf86cd799439300Get(options).then((request) => request(axios, basePath));
3354
+ },
3355
+ /**
3356
+ * Retorna o filtro padrao do usuario.
3357
+ * @summary Get Default Filter
3358
+ * @param {*} [options] Override http request option.
3359
+ * @throws {RequiredError}
3360
+ */
3361
+ apiCustomersFiltersDefaultGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3362
+ return localVarFp.apiCustomersFiltersDefaultGet(options).then((request) => request(axios, basePath));
3363
+ },
3364
+ /**
3365
+ * Lista filtros salvos do usuario para Customers.
3366
+ * @summary List Saved Filters
3367
+ * @param {*} [options] Override http request option.
3368
+ * @throws {RequiredError}
3369
+ */
3370
+ apiCustomersFiltersGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3371
+ return localVarFp.apiCustomersFiltersGet(options).then((request) => request(axios, basePath));
3372
+ },
3373
+ /**
3374
+ *
3375
+ * @summary List Customers
3376
+ * @param {number} [page]
3377
+ * @param {number} [limit]
3378
+ * @param {string} [sortBy]
3379
+ * @param {string} [sortType]
3380
+ * @param {*} [options] Override http request option.
3381
+ * @throws {RequiredError}
3382
+ */
3383
+ apiCustomersGet(page?: number, limit?: number, sortBy?: string, sortType?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiLeadsGet200Response> {
3384
+ return localVarFp.apiCustomersGet(page, limit, sortBy, sortType, options).then((request) => request(axios, basePath));
3385
+ },
3386
+ /**
3387
+ * Cria um novo customer. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Customer criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
3388
+ * @summary Create Customer
3389
+ * @param {object} [body]
3390
+ * @param {*} [options] Override http request option.
3391
+ * @throws {RequiredError}
3392
+ */
3393
+ apiCustomersPost(body?: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3394
+ return localVarFp.apiCustomersPost(body, options).then((request) => request(axios, basePath));
3395
+ },
3396
+ /**
3397
+ * Remove multiplos customers em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos customers a remover |
3398
+ * @summary Remove Selected Customers
3399
+ * @param {object} [body]
3400
+ * @param {*} [options] Override http request option.
3401
+ * @throws {RequiredError}
3402
+ */
3403
+ apiCustomersSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3404
+ return localVarFp.apiCustomersSelectedRemovePut(body, options).then((request) => request(axios, basePath));
3405
+ },
3406
+ /**
3407
+ * Retorna um lead pelo ID.
3408
+ * @summary Get Lead
3409
+ * @param {*} [options] Override http request option.
3410
+ * @throws {RequiredError}
3411
+ */
3412
+ apiLeads507f1f77bcf86cd799439044Get(options?: RawAxiosRequestConfig): AxiosPromise<ApiLeads507f1f77bcf86cd799439044Get200Response> {
3413
+ return localVarFp.apiLeads507f1f77bcf86cd799439044Get(options).then((request) => request(axios, basePath));
3414
+ },
3415
+ /**
3416
+ *
3417
+ * @summary List Lead Meetings
3418
+ * @param {number} [page]
3419
+ * @param {number} [limit]
3420
+ * @param {*} [options] Override http request option.
3421
+ * @throws {RequiredError}
3422
+ */
3423
+ apiLeads507f1f77bcf86cd799439044MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3424
+ return localVarFp.apiLeads507f1f77bcf86cd799439044MeetingsGet(page, limit, options).then((request) => request(axios, basePath));
3425
+ },
3426
+ /**
3427
+ *
3428
+ * @summary List Lead Observations
3429
+ * @param {number} [page]
3430
+ * @param {number} [limit]
3431
+ * @param {*} [options] Override http request option.
3432
+ * @throws {RequiredError}
3433
+ */
3434
+ apiLeads507f1f77bcf86cd799439044ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3435
+ return localVarFp.apiLeads507f1f77bcf86cd799439044ObservationsGet(page, limit, options).then((request) => request(axios, basePath));
3436
+ },
3437
+ /**
3438
+ * Updates an existing lead\'s information. ## Request Body All fields are optional (partial update): - `name` (string): First name - `lastname` (string): Last name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"cellphone|commercial|home\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Contact type. One of: `physical`, `legal` - `doc` (string): CPF/CNPJ document number - `owners` (array of strings): IDs of staff members who own this lead - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `favoriteChannelToCommunication` (array of strings): Preferred communication channel IDs ## Response Returns the updated lead object with all current field values.
3439
+ * @summary Update Lead
3440
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
3441
+ * @param {*} [options] Override http request option.
3442
+ * @throws {RequiredError}
3443
+ */
3444
+ apiLeads507f1f77bcf86cd799439044Put(apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiContacts507f1f77bcf86cd799439011Put200Response> {
3445
+ return localVarFp.apiLeads507f1f77bcf86cd799439044Put(apiProspects507f1f77bcf86cd799439033PutRequest, options).then((request) => request(axios, basePath));
3446
+ },
3447
+ /**
3448
+ *
3449
+ * @summary List Lead Tasks
3450
+ * @param {number} [page]
3451
+ * @param {number} [limit]
3452
+ * @param {*} [options] Override http request option.
3453
+ * @throws {RequiredError}
3454
+ */
3455
+ apiLeads507f1f77bcf86cd799439044TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3456
+ return localVarFp.apiLeads507f1f77bcf86cd799439044TasksGet(page, limit, options).then((request) => request(axios, basePath));
3457
+ },
3458
+ /**
3459
+ *
3460
+ * @summary List Lead Tickets
3461
+ * @param {number} [page]
3462
+ * @param {number} [limit]
3463
+ * @param {*} [options] Override http request option.
3464
+ * @throws {RequiredError}
3465
+ */
3466
+ apiLeads507f1f77bcf86cd799439044TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3467
+ return localVarFp.apiLeads507f1f77bcf86cd799439044TicketsGet(page, limit, options).then((request) => request(axios, basePath));
3468
+ },
3469
+ /**
3470
+ *
3471
+ * @summary List Lead Treatments
3472
+ * @param {number} [page]
3473
+ * @param {number} [limit]
3474
+ * @param {*} [options] Override http request option.
3475
+ * @throws {RequiredError}
3476
+ */
3477
+ apiLeads507f1f77bcf86cd799439044TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3478
+ return localVarFp.apiLeads507f1f77bcf86cd799439044TreatmentsGet(page, limit, options).then((request) => request(axios, basePath));
3479
+ },
3480
+ /**
3481
+ * Remove um filtro salvo.
3482
+ * @summary Delete Saved Filter
3483
+ * @param {*} [options] Override http request option.
3484
+ * @throws {RequiredError}
3485
+ */
3486
+ apiLeadsFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3487
+ return localVarFp.apiLeadsFilters507f1f77bcf86cd799439300Delete(options).then((request) => request(axios, basePath));
3488
+ },
3489
+ /**
3490
+ * Retorna um filtro salvo pelo ID.
3491
+ * @summary Get Saved Filter
3492
+ * @param {*} [options] Override http request option.
3493
+ * @throws {RequiredError}
3494
+ */
3495
+ apiLeadsFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3496
+ return localVarFp.apiLeadsFilters507f1f77bcf86cd799439300Get(options).then((request) => request(axios, basePath));
3497
+ },
3498
+ /**
3499
+ * Retorna o filtro padrao do usuario.
3500
+ * @summary Get Default Filter
3501
+ * @param {*} [options] Override http request option.
3502
+ * @throws {RequiredError}
3503
+ */
3504
+ apiLeadsFiltersDefaultGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3505
+ return localVarFp.apiLeadsFiltersDefaultGet(options).then((request) => request(axios, basePath));
3506
+ },
3507
+ /**
3508
+ * Lista filtros salvos do usuario para Leads.
3509
+ * @summary List Saved Filters
3510
+ * @param {*} [options] Override http request option.
3511
+ * @throws {RequiredError}
3512
+ */
3513
+ apiLeadsFiltersGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3514
+ return localVarFp.apiLeadsFiltersGet(options).then((request) => request(axios, basePath));
3515
+ },
3516
+ /**
3517
+ * Lista leads com paginacao.
3518
+ * @summary List Leads
3519
+ * @param {number} [page]
3520
+ * @param {number} [limit]
3521
+ * @param {string} [sortBy]
3522
+ * @param {string} [sortType]
3523
+ * @param {*} [options] Override http request option.
3524
+ * @throws {RequiredError}
3525
+ */
3526
+ apiLeadsGet(page?: number, limit?: number, sortBy?: string, sortType?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiLeadsGet200Response> {
3527
+ return localVarFp.apiLeadsGet(page, limit, sortBy, sortType, options).then((request) => request(axios, basePath));
3528
+ },
3529
+ /**
3530
+ * Cria um novo lead. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Lead criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
3531
+ * @summary Create Lead
3532
+ * @param {object} [body]
3533
+ * @param {*} [options] Override http request option.
3534
+ * @throws {RequiredError}
3535
+ */
3536
+ apiLeadsPost(body?: object, options?: RawAxiosRequestConfig): AxiosPromise<ApiProspectsPost201Response> {
3537
+ return localVarFp.apiLeadsPost(body, options).then((request) => request(axios, basePath));
3538
+ },
3539
+ /**
3540
+ * Remove multiplos leads em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos leads a remover |
3541
+ * @summary Remove Selected Leads
3542
+ * @param {object} [body]
3543
+ * @param {*} [options] Override http request option.
3544
+ * @throws {RequiredError}
3545
+ */
3546
+ apiLeadsSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3547
+ return localVarFp.apiLeadsSelectedRemovePut(body, options).then((request) => request(axios, basePath));
3548
+ },
3549
+ /**
3550
+ * Lista contatos vinculados a organizacao.
3551
+ * @summary List Organization Contacts
3552
+ * @param {number} [page]
3553
+ * @param {number} [limit]
3554
+ * @param {*} [options] Override http request option.
3555
+ * @throws {RequiredError}
3556
+ */
3557
+ apiOrganizations507f1f77bcf86cd799439055ContactsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3558
+ return localVarFp.apiOrganizations507f1f77bcf86cd799439055ContactsGet(page, limit, options).then((request) => request(axios, basePath));
3559
+ },
3560
+ /**
3561
+ * Retorna uma organizacao pelo ID.
3562
+ * @summary Get Organization
3563
+ * @param {*} [options] Override http request option.
3564
+ * @throws {RequiredError}
3565
+ */
3566
+ apiOrganizations507f1f77bcf86cd799439055Get(options?: RawAxiosRequestConfig): AxiosPromise<ApiOrganizations507f1f77bcf86cd799439055Get200Response> {
3567
+ return localVarFp.apiOrganizations507f1f77bcf86cd799439055Get(options).then((request) => request(axios, basePath));
3568
+ },
3569
+ /**
3570
+ * Updates an existing organization\'s information. ## Request Body All fields are optional (partial update): - `name` (string): Organization name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"commercial|cellphone\", \"number\": \"...\", \"ddi\": \"+55\" }` - `doc` (string): CNPJ document number - `owners` (array of strings): IDs of staff members who own this organization - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` ## Response Returns the updated organization object with all current field values.
3571
+ * @summary Update Organization
3572
+ * @param {ApiOrganizations507f1f77bcf86cd799439055PutRequest} [apiOrganizations507f1f77bcf86cd799439055PutRequest]
3573
+ * @param {*} [options] Override http request option.
3574
+ * @throws {RequiredError}
3575
+ */
3576
+ apiOrganizations507f1f77bcf86cd799439055Put(apiOrganizations507f1f77bcf86cd799439055PutRequest?: ApiOrganizations507f1f77bcf86cd799439055PutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiOrganizations507f1f77bcf86cd799439055Put200Response> {
3577
+ return localVarFp.apiOrganizations507f1f77bcf86cd799439055Put(apiOrganizations507f1f77bcf86cd799439055PutRequest, options).then((request) => request(axios, basePath));
3578
+ },
3579
+ /**
3580
+ * Lista organizacoes com paginacao.
3581
+ * @summary List Organizations
3582
+ * @param {number} [page]
3583
+ * @param {number} [limit]
3584
+ * @param {*} [options] Override http request option.
3585
+ * @throws {RequiredError}
3586
+ */
3587
+ apiOrganizationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ApiOrganizationsGet200Response> {
3588
+ return localVarFp.apiOrganizationsGet(page, limit, options).then((request) => request(axios, basePath));
3589
+ },
3590
+ /**
3591
+ * Creates a new organization (legal entity / company). ## Request Body - `name` (string, required): Organization name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"commercial|cellphone\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Must be `legal` for organizations - `doc` (string): CNPJ document number - `owners` (array of strings): IDs of staff members who own this organization - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `source` (string): Origin of the record (e.g., `platform`, `api`) ## Response Returns the created organization object. If a duplicate is detected (same CNPJ or email), returns HTTP 409.
3592
+ * @summary Create Organization
3593
+ * @param {ApiOrganizationsPostRequest} [apiOrganizationsPostRequest]
3594
+ * @param {*} [options] Override http request option.
3595
+ * @throws {RequiredError}
3596
+ */
3597
+ apiOrganizationsPost(apiOrganizationsPostRequest?: ApiOrganizationsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiOrganizationsPost201Response> {
3598
+ return localVarFp.apiOrganizationsPost(apiOrganizationsPostRequest, options).then((request) => request(axios, basePath));
3599
+ },
3600
+ /**
3601
+ * Retorna um prospect pelo ID.
3602
+ * @summary Get Prospect
3603
+ * @param {*} [options] Override http request option.
3604
+ * @throws {RequiredError}
3605
+ */
3606
+ apiProspects507f1f77bcf86cd799439033Get(options?: RawAxiosRequestConfig): AxiosPromise<ApiProspects507f1f77bcf86cd799439033Get200Response> {
3607
+ return localVarFp.apiProspects507f1f77bcf86cd799439033Get(options).then((request) => request(axios, basePath));
3608
+ },
3609
+ /**
3610
+ *
3611
+ * @summary List Prospect Meetings
3612
+ * @param {number} [page]
3613
+ * @param {number} [limit]
3614
+ * @param {*} [options] Override http request option.
3615
+ * @throws {RequiredError}
3616
+ */
3617
+ apiProspects507f1f77bcf86cd799439033MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3618
+ return localVarFp.apiProspects507f1f77bcf86cd799439033MeetingsGet(page, limit, options).then((request) => request(axios, basePath));
3619
+ },
3620
+ /**
3621
+ *
3622
+ * @summary List Prospect Observations
3623
+ * @param {number} [page]
3624
+ * @param {number} [limit]
3625
+ * @param {*} [options] Override http request option.
3626
+ * @throws {RequiredError}
3627
+ */
3628
+ apiProspects507f1f77bcf86cd799439033ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3629
+ return localVarFp.apiProspects507f1f77bcf86cd799439033ObservationsGet(page, limit, options).then((request) => request(axios, basePath));
3630
+ },
3631
+ /**
3632
+ * Updates an existing prospect\'s information. ## Request Body All fields are optional (partial update): - `name` (string): First name - `lastname` (string): Last name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"cellphone|commercial|home\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Contact type. One of: `physical`, `legal` - `doc` (string): CPF/CNPJ document number - `owners` (array of strings): IDs of staff members who own this prospect - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `favoriteChannelToCommunication` (array of strings): Preferred communication channel IDs ## Response Returns the updated prospect object with all current field values.
3633
+ * @summary Update Prospect
3634
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
3635
+ * @param {*} [options] Override http request option.
3636
+ * @throws {RequiredError}
3637
+ */
3638
+ apiProspects507f1f77bcf86cd799439033Put(apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiContacts507f1f77bcf86cd799439011Put200Response> {
3639
+ return localVarFp.apiProspects507f1f77bcf86cd799439033Put(apiProspects507f1f77bcf86cd799439033PutRequest, options).then((request) => request(axios, basePath));
3640
+ },
3641
+ /**
3642
+ *
3643
+ * @summary List Prospect Tasks
3644
+ * @param {number} [page]
3645
+ * @param {number} [limit]
3646
+ * @param {*} [options] Override http request option.
3647
+ * @throws {RequiredError}
3648
+ */
3649
+ apiProspects507f1f77bcf86cd799439033TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3650
+ return localVarFp.apiProspects507f1f77bcf86cd799439033TasksGet(page, limit, options).then((request) => request(axios, basePath));
3651
+ },
3652
+ /**
3653
+ *
3654
+ * @summary List Prospect Tickets
3655
+ * @param {number} [page]
3656
+ * @param {number} [limit]
3657
+ * @param {*} [options] Override http request option.
3658
+ * @throws {RequiredError}
3659
+ */
3660
+ apiProspects507f1f77bcf86cd799439033TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3661
+ return localVarFp.apiProspects507f1f77bcf86cd799439033TicketsGet(page, limit, options).then((request) => request(axios, basePath));
3662
+ },
3663
+ /**
3664
+ *
3665
+ * @summary List Prospect Treatments
3666
+ * @param {number} [page]
3667
+ * @param {number} [limit]
3668
+ * @param {*} [options] Override http request option.
3669
+ * @throws {RequiredError}
3670
+ */
3671
+ apiProspects507f1f77bcf86cd799439033TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3672
+ return localVarFp.apiProspects507f1f77bcf86cd799439033TreatmentsGet(page, limit, options).then((request) => request(axios, basePath));
3673
+ },
3674
+ /**
3675
+ * Remove um filtro salvo.
3676
+ * @summary Delete Saved Filter
3677
+ * @param {*} [options] Override http request option.
3678
+ * @throws {RequiredError}
3679
+ */
3680
+ apiProspectsFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3681
+ return localVarFp.apiProspectsFilters507f1f77bcf86cd799439300Delete(options).then((request) => request(axios, basePath));
3682
+ },
3683
+ /**
3684
+ * Retorna um filtro salvo pelo ID.
3685
+ * @summary Get Saved Filter
3686
+ * @param {*} [options] Override http request option.
3687
+ * @throws {RequiredError}
3688
+ */
3689
+ apiProspectsFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3690
+ return localVarFp.apiProspectsFilters507f1f77bcf86cd799439300Get(options).then((request) => request(axios, basePath));
3691
+ },
3692
+ /**
3693
+ * Retorna o filtro padrao do usuario.
3694
+ * @summary Get Default Filter
3695
+ * @param {*} [options] Override http request option.
3696
+ * @throws {RequiredError}
3697
+ */
3698
+ apiProspectsFiltersDefaultGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3699
+ return localVarFp.apiProspectsFiltersDefaultGet(options).then((request) => request(axios, basePath));
3700
+ },
3701
+ /**
3702
+ * Lista filtros salvos do usuario para Prospects.
3703
+ * @summary List Saved Filters
3704
+ * @param {*} [options] Override http request option.
3705
+ * @throws {RequiredError}
3706
+ */
3707
+ apiProspectsFiltersGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3708
+ return localVarFp.apiProspectsFiltersGet(options).then((request) => request(axios, basePath));
3709
+ },
3710
+ /**
3711
+ * Lista prospects com paginacao.
3712
+ * @summary List Prospects
3713
+ * @param {number} [page]
3714
+ * @param {number} [limit]
3715
+ * @param {string} [sortBy]
3716
+ * @param {string} [sortType]
3717
+ * @param {*} [options] Override http request option.
3718
+ * @throws {RequiredError}
3719
+ */
3720
+ apiProspectsGet(page?: number, limit?: number, sortBy?: string, sortType?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiProspectsGet200Response> {
3721
+ return localVarFp.apiProspectsGet(page, limit, sortBy, sortType, options).then((request) => request(axios, basePath));
3722
+ },
3723
+ /**
3724
+ * Cria um novo prospect. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Prospect criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
3725
+ * @summary Create Prospect
3726
+ * @param {object} [body]
3727
+ * @param {*} [options] Override http request option.
3728
+ * @throws {RequiredError}
3729
+ */
3730
+ apiProspectsPost(body?: object, options?: RawAxiosRequestConfig): AxiosPromise<ApiProspectsPost201Response> {
3731
+ return localVarFp.apiProspectsPost(body, options).then((request) => request(axios, basePath));
3732
+ },
3733
+ /**
3734
+ * Remove multiplos prospects em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos prospects a remover |
3735
+ * @summary Remove Selected Prospects
3736
+ * @param {object} [body]
3737
+ * @param {*} [options] Override http request option.
3738
+ * @throws {RequiredError}
3739
+ */
3740
+ apiProspectsSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3741
+ return localVarFp.apiProspectsSelectedRemovePut(body, options).then((request) => request(axios, basePath));
3742
+ },
3743
+ };
3744
+ };
3745
+
3746
+ /**
3747
+ * CRMCoreApi - object-oriented interface
3748
+ */
3749
+ export class CRMCoreApi extends BaseAPI {
3750
+ /**
3751
+ * Retorna um contato pelo ID, incluindo campos customizados, owners e organizacoes vinculadas. ## Path Parameters | Parametro | Tipo | Descricao | |-----------|------|-----------| | `id` | ObjectId | ID do contato | ## Responses | Status | Descricao | |--------|-----------| | 200 | Contato encontrado | | 404 | Contato nao encontrado |
3752
+ * @summary Get Contact
3753
+ * @param {*} [options] Override http request option.
3754
+ * @throws {RequiredError}
3755
+ */
3756
+ public apiContacts507f1f77bcf86cd799439011Get(options?: RawAxiosRequestConfig) {
3757
+ return CRMCoreApiFp(this.configuration).apiContacts507f1f77bcf86cd799439011Get(options).then((request) => request(this.axios, this.basePath));
3758
+ }
3759
+
3760
+ /**
3761
+ * Lista reunioes associadas ao contato.
3762
+ * @summary List Contact Meetings
3763
+ * @param {number} [page]
3764
+ * @param {number} [limit]
3765
+ * @param {*} [options] Override http request option.
3766
+ * @throws {RequiredError}
3767
+ */
3768
+ public apiContacts507f1f77bcf86cd799439011MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3769
+ return CRMCoreApiFp(this.configuration).apiContacts507f1f77bcf86cd799439011MeetingsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
3770
+ }
3771
+
3772
+ /**
3773
+ * Lista observacoes do contato.
3774
+ * @summary List Contact Observations
3775
+ * @param {number} [page]
3776
+ * @param {number} [limit]
3777
+ * @param {*} [options] Override http request option.
3778
+ * @throws {RequiredError}
3779
+ */
3780
+ public apiContacts507f1f77bcf86cd799439011ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3781
+ return CRMCoreApiFp(this.configuration).apiContacts507f1f77bcf86cd799439011ObservationsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
3782
+ }
3783
+
3784
+ /**
3785
+ * Atualiza um contato existente. Envie apenas os campos que deseja alterar (PATCH semantics). ## Path Parameters | Parametro | Tipo | Descricao | |-----------|------|-----------| | `id` | ObjectId | ID do contato | ## Body (JSON) Mesmos campos de Create Contact. Apenas os campos enviados serao atualizados. ## Responses | Status | Descricao | |--------|-----------| | 200 | Contato atualizado | | 400 | Dados invalidos | | 404 | Contato nao encontrado |
3786
+ * @summary Update Contact
3787
+ * @param {ApiContacts507f1f77bcf86cd799439011PutRequest} [apiContacts507f1f77bcf86cd799439011PutRequest]
3788
+ * @param {*} [options] Override http request option.
3789
+ * @throws {RequiredError}
3790
+ */
3791
+ public apiContacts507f1f77bcf86cd799439011Put(apiContacts507f1f77bcf86cd799439011PutRequest?: ApiContacts507f1f77bcf86cd799439011PutRequest, options?: RawAxiosRequestConfig) {
3792
+ return CRMCoreApiFp(this.configuration).apiContacts507f1f77bcf86cd799439011Put(apiContacts507f1f77bcf86cd799439011PutRequest, options).then((request) => request(this.axios, this.basePath));
3793
+ }
3794
+
3795
+ /**
3796
+ * Lista tarefas associadas ao contato.
3797
+ * @summary List Contact Tasks
3798
+ * @param {number} [page]
3799
+ * @param {number} [limit]
3800
+ * @param {*} [options] Override http request option.
3801
+ * @throws {RequiredError}
3802
+ */
3803
+ public apiContacts507f1f77bcf86cd799439011TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3804
+ return CRMCoreApiFp(this.configuration).apiContacts507f1f77bcf86cd799439011TasksGet(page, limit, options).then((request) => request(this.axios, this.basePath));
3805
+ }
3806
+
3807
+ /**
3808
+ * Lista tickets associados ao contato.
3809
+ * @summary List Contact Tickets
3810
+ * @param {number} [page]
3811
+ * @param {number} [limit]
3812
+ * @param {*} [options] Override http request option.
3813
+ * @throws {RequiredError}
3814
+ */
3815
+ public apiContacts507f1f77bcf86cd799439011TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3816
+ return CRMCoreApiFp(this.configuration).apiContacts507f1f77bcf86cd799439011TicketsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
3817
+ }
3818
+
3819
+ /**
3820
+ * Lista atendimentos associados ao contato.
3821
+ * @summary List Contact Treatments
3822
+ * @param {number} [page]
3823
+ * @param {number} [limit]
3824
+ * @param {*} [options] Override http request option.
3825
+ * @throws {RequiredError}
3826
+ */
3827
+ public apiContacts507f1f77bcf86cd799439011TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3828
+ return CRMCoreApiFp(this.configuration).apiContacts507f1f77bcf86cd799439011TreatmentsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
3829
+ }
3830
+
3831
+ /**
3832
+ * Remove um filtro salvo.
3833
+ * @summary Delete Saved Filter
3834
+ * @param {*} [options] Override http request option.
3835
+ * @throws {RequiredError}
3836
+ */
3837
+ public apiContactsFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig) {
3838
+ return CRMCoreApiFp(this.configuration).apiContactsFilters507f1f77bcf86cd799439300Delete(options).then((request) => request(this.axios, this.basePath));
3839
+ }
3840
+
3841
+ /**
3842
+ * Retorna um filtro salvo pelo ID.
3843
+ * @summary Get Saved Filter
3844
+ * @param {*} [options] Override http request option.
3845
+ * @throws {RequiredError}
3846
+ */
3847
+ public apiContactsFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig) {
3848
+ return CRMCoreApiFp(this.configuration).apiContactsFilters507f1f77bcf86cd799439300Get(options).then((request) => request(this.axios, this.basePath));
3849
+ }
3850
+
3851
+ /**
3852
+ * Retorna o filtro padrao do usuario.
3853
+ * @summary Get Default Filter
3854
+ * @param {*} [options] Override http request option.
3855
+ * @throws {RequiredError}
3856
+ */
3857
+ public apiContactsFiltersDefaultGet(options?: RawAxiosRequestConfig) {
3858
+ return CRMCoreApiFp(this.configuration).apiContactsFiltersDefaultGet(options).then((request) => request(this.axios, this.basePath));
3859
+ }
3860
+
3861
+ /**
3862
+ * Lista filtros salvos do usuario para Contacts.
3863
+ * @summary List Saved Filters
3864
+ * @param {*} [options] Override http request option.
3865
+ * @throws {RequiredError}
3866
+ */
3867
+ public apiContactsFiltersGet(options?: RawAxiosRequestConfig) {
3868
+ return CRMCoreApiFp(this.configuration).apiContactsFiltersGet(options).then((request) => request(this.axios, this.basePath));
3869
+ }
3870
+
3871
+ /**
3872
+ * Remove multiplos contatos em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos contatos a remover |
3873
+ * @summary Remove Selected Contacts
3874
+ * @param {object} [body]
3875
+ * @param {*} [options] Override http request option.
3876
+ * @throws {RequiredError}
3877
+ */
3878
+ public apiContactsSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig) {
3879
+ return CRMCoreApiFp(this.configuration).apiContactsSelectedRemovePut(body, options).then((request) => request(this.axios, this.basePath));
3880
+ }
3881
+
3882
+ /**
3883
+ *
3884
+ * @summary Get Customer
3885
+ * @param {*} [options] Override http request option.
3886
+ * @throws {RequiredError}
3887
+ */
3888
+ public apiCustomers507f1f77bcf86cd799439066Get(options?: RawAxiosRequestConfig) {
3889
+ return CRMCoreApiFp(this.configuration).apiCustomers507f1f77bcf86cd799439066Get(options).then((request) => request(this.axios, this.basePath));
3890
+ }
3891
+
3892
+ /**
3893
+ *
3894
+ * @summary List Customer Meetings
3895
+ * @param {number} [page]
3896
+ * @param {number} [limit]
3897
+ * @param {*} [options] Override http request option.
3898
+ * @throws {RequiredError}
3899
+ */
3900
+ public apiCustomers507f1f77bcf86cd799439066MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3901
+ return CRMCoreApiFp(this.configuration).apiCustomers507f1f77bcf86cd799439066MeetingsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
3902
+ }
3903
+
3904
+ /**
3905
+ *
3906
+ * @summary List Customer Observations
3907
+ * @param {number} [page]
3908
+ * @param {number} [limit]
3909
+ * @param {*} [options] Override http request option.
3910
+ * @throws {RequiredError}
3911
+ */
3912
+ public apiCustomers507f1f77bcf86cd799439066ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3913
+ return CRMCoreApiFp(this.configuration).apiCustomers507f1f77bcf86cd799439066ObservationsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
3914
+ }
3915
+
3916
+ /**
3917
+ *
3918
+ * @summary Update Customer
3919
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
3920
+ * @param {*} [options] Override http request option.
3921
+ * @throws {RequiredError}
3922
+ */
3923
+ public apiCustomers507f1f77bcf86cd799439066Put(apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options?: RawAxiosRequestConfig) {
3924
+ return CRMCoreApiFp(this.configuration).apiCustomers507f1f77bcf86cd799439066Put(apiProspects507f1f77bcf86cd799439033PutRequest, options).then((request) => request(this.axios, this.basePath));
3925
+ }
3926
+
3927
+ /**
3928
+ *
3929
+ * @summary List Customer Tasks
3930
+ * @param {number} [page]
3931
+ * @param {number} [limit]
3932
+ * @param {*} [options] Override http request option.
3933
+ * @throws {RequiredError}
3934
+ */
3935
+ public apiCustomers507f1f77bcf86cd799439066TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3936
+ return CRMCoreApiFp(this.configuration).apiCustomers507f1f77bcf86cd799439066TasksGet(page, limit, options).then((request) => request(this.axios, this.basePath));
3937
+ }
3938
+
3939
+ /**
3940
+ *
3941
+ * @summary List Customer Tickets
3942
+ * @param {number} [page]
3943
+ * @param {number} [limit]
3944
+ * @param {*} [options] Override http request option.
3945
+ * @throws {RequiredError}
3946
+ */
3947
+ public apiCustomers507f1f77bcf86cd799439066TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3948
+ return CRMCoreApiFp(this.configuration).apiCustomers507f1f77bcf86cd799439066TicketsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
3949
+ }
3950
+
3951
+ /**
3952
+ *
3953
+ * @summary List Customer Treatments
3954
+ * @param {number} [page]
3955
+ * @param {number} [limit]
3956
+ * @param {*} [options] Override http request option.
3957
+ * @throws {RequiredError}
3958
+ */
3959
+ public apiCustomers507f1f77bcf86cd799439066TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3960
+ return CRMCoreApiFp(this.configuration).apiCustomers507f1f77bcf86cd799439066TreatmentsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
3961
+ }
3962
+
3963
+ /**
3964
+ * Remove um filtro salvo.
3965
+ * @summary Delete Saved Filter
3966
+ * @param {*} [options] Override http request option.
3967
+ * @throws {RequiredError}
3968
+ */
3969
+ public apiCustomersFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig) {
3970
+ return CRMCoreApiFp(this.configuration).apiCustomersFilters507f1f77bcf86cd799439300Delete(options).then((request) => request(this.axios, this.basePath));
3971
+ }
3972
+
3973
+ /**
3974
+ * Retorna um filtro salvo pelo ID.
3975
+ * @summary Get Saved Filter
3976
+ * @param {*} [options] Override http request option.
3977
+ * @throws {RequiredError}
3978
+ */
3979
+ public apiCustomersFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig) {
3980
+ return CRMCoreApiFp(this.configuration).apiCustomersFilters507f1f77bcf86cd799439300Get(options).then((request) => request(this.axios, this.basePath));
3981
+ }
3982
+
3983
+ /**
3984
+ * Retorna o filtro padrao do usuario.
3985
+ * @summary Get Default Filter
3986
+ * @param {*} [options] Override http request option.
3987
+ * @throws {RequiredError}
3988
+ */
3989
+ public apiCustomersFiltersDefaultGet(options?: RawAxiosRequestConfig) {
3990
+ return CRMCoreApiFp(this.configuration).apiCustomersFiltersDefaultGet(options).then((request) => request(this.axios, this.basePath));
3991
+ }
3992
+
3993
+ /**
3994
+ * Lista filtros salvos do usuario para Customers.
3995
+ * @summary List Saved Filters
3996
+ * @param {*} [options] Override http request option.
3997
+ * @throws {RequiredError}
3998
+ */
3999
+ public apiCustomersFiltersGet(options?: RawAxiosRequestConfig) {
4000
+ return CRMCoreApiFp(this.configuration).apiCustomersFiltersGet(options).then((request) => request(this.axios, this.basePath));
4001
+ }
4002
+
4003
+ /**
4004
+ *
4005
+ * @summary List Customers
4006
+ * @param {number} [page]
4007
+ * @param {number} [limit]
4008
+ * @param {string} [sortBy]
4009
+ * @param {string} [sortType]
4010
+ * @param {*} [options] Override http request option.
4011
+ * @throws {RequiredError}
4012
+ */
4013
+ public apiCustomersGet(page?: number, limit?: number, sortBy?: string, sortType?: string, options?: RawAxiosRequestConfig) {
4014
+ return CRMCoreApiFp(this.configuration).apiCustomersGet(page, limit, sortBy, sortType, options).then((request) => request(this.axios, this.basePath));
4015
+ }
4016
+
4017
+ /**
4018
+ * Cria um novo customer. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Customer criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
4019
+ * @summary Create Customer
4020
+ * @param {object} [body]
4021
+ * @param {*} [options] Override http request option.
4022
+ * @throws {RequiredError}
4023
+ */
4024
+ public apiCustomersPost(body?: object, options?: RawAxiosRequestConfig) {
4025
+ return CRMCoreApiFp(this.configuration).apiCustomersPost(body, options).then((request) => request(this.axios, this.basePath));
4026
+ }
4027
+
4028
+ /**
4029
+ * Remove multiplos customers em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos customers a remover |
4030
+ * @summary Remove Selected Customers
4031
+ * @param {object} [body]
4032
+ * @param {*} [options] Override http request option.
4033
+ * @throws {RequiredError}
4034
+ */
4035
+ public apiCustomersSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig) {
4036
+ return CRMCoreApiFp(this.configuration).apiCustomersSelectedRemovePut(body, options).then((request) => request(this.axios, this.basePath));
4037
+ }
4038
+
4039
+ /**
4040
+ * Retorna um lead pelo ID.
4041
+ * @summary Get Lead
4042
+ * @param {*} [options] Override http request option.
4043
+ * @throws {RequiredError}
4044
+ */
4045
+ public apiLeads507f1f77bcf86cd799439044Get(options?: RawAxiosRequestConfig) {
4046
+ return CRMCoreApiFp(this.configuration).apiLeads507f1f77bcf86cd799439044Get(options).then((request) => request(this.axios, this.basePath));
4047
+ }
4048
+
4049
+ /**
4050
+ *
4051
+ * @summary List Lead Meetings
4052
+ * @param {number} [page]
4053
+ * @param {number} [limit]
4054
+ * @param {*} [options] Override http request option.
4055
+ * @throws {RequiredError}
4056
+ */
4057
+ public apiLeads507f1f77bcf86cd799439044MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4058
+ return CRMCoreApiFp(this.configuration).apiLeads507f1f77bcf86cd799439044MeetingsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4059
+ }
4060
+
4061
+ /**
4062
+ *
4063
+ * @summary List Lead Observations
4064
+ * @param {number} [page]
4065
+ * @param {number} [limit]
4066
+ * @param {*} [options] Override http request option.
4067
+ * @throws {RequiredError}
4068
+ */
4069
+ public apiLeads507f1f77bcf86cd799439044ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4070
+ return CRMCoreApiFp(this.configuration).apiLeads507f1f77bcf86cd799439044ObservationsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4071
+ }
4072
+
4073
+ /**
4074
+ * Updates an existing lead\'s information. ## Request Body All fields are optional (partial update): - `name` (string): First name - `lastname` (string): Last name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"cellphone|commercial|home\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Contact type. One of: `physical`, `legal` - `doc` (string): CPF/CNPJ document number - `owners` (array of strings): IDs of staff members who own this lead - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `favoriteChannelToCommunication` (array of strings): Preferred communication channel IDs ## Response Returns the updated lead object with all current field values.
4075
+ * @summary Update Lead
4076
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
4077
+ * @param {*} [options] Override http request option.
4078
+ * @throws {RequiredError}
4079
+ */
4080
+ public apiLeads507f1f77bcf86cd799439044Put(apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options?: RawAxiosRequestConfig) {
4081
+ return CRMCoreApiFp(this.configuration).apiLeads507f1f77bcf86cd799439044Put(apiProspects507f1f77bcf86cd799439033PutRequest, options).then((request) => request(this.axios, this.basePath));
4082
+ }
4083
+
4084
+ /**
4085
+ *
4086
+ * @summary List Lead Tasks
4087
+ * @param {number} [page]
4088
+ * @param {number} [limit]
4089
+ * @param {*} [options] Override http request option.
4090
+ * @throws {RequiredError}
4091
+ */
4092
+ public apiLeads507f1f77bcf86cd799439044TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4093
+ return CRMCoreApiFp(this.configuration).apiLeads507f1f77bcf86cd799439044TasksGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4094
+ }
4095
+
4096
+ /**
4097
+ *
4098
+ * @summary List Lead Tickets
4099
+ * @param {number} [page]
4100
+ * @param {number} [limit]
4101
+ * @param {*} [options] Override http request option.
4102
+ * @throws {RequiredError}
4103
+ */
4104
+ public apiLeads507f1f77bcf86cd799439044TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4105
+ return CRMCoreApiFp(this.configuration).apiLeads507f1f77bcf86cd799439044TicketsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4106
+ }
4107
+
4108
+ /**
4109
+ *
4110
+ * @summary List Lead Treatments
4111
+ * @param {number} [page]
4112
+ * @param {number} [limit]
4113
+ * @param {*} [options] Override http request option.
4114
+ * @throws {RequiredError}
4115
+ */
4116
+ public apiLeads507f1f77bcf86cd799439044TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4117
+ return CRMCoreApiFp(this.configuration).apiLeads507f1f77bcf86cd799439044TreatmentsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4118
+ }
4119
+
4120
+ /**
4121
+ * Remove um filtro salvo.
4122
+ * @summary Delete Saved Filter
4123
+ * @param {*} [options] Override http request option.
4124
+ * @throws {RequiredError}
4125
+ */
4126
+ public apiLeadsFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig) {
4127
+ return CRMCoreApiFp(this.configuration).apiLeadsFilters507f1f77bcf86cd799439300Delete(options).then((request) => request(this.axios, this.basePath));
4128
+ }
4129
+
4130
+ /**
4131
+ * Retorna um filtro salvo pelo ID.
4132
+ * @summary Get Saved Filter
4133
+ * @param {*} [options] Override http request option.
4134
+ * @throws {RequiredError}
4135
+ */
4136
+ public apiLeadsFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig) {
4137
+ return CRMCoreApiFp(this.configuration).apiLeadsFilters507f1f77bcf86cd799439300Get(options).then((request) => request(this.axios, this.basePath));
4138
+ }
4139
+
4140
+ /**
4141
+ * Retorna o filtro padrao do usuario.
4142
+ * @summary Get Default Filter
4143
+ * @param {*} [options] Override http request option.
4144
+ * @throws {RequiredError}
4145
+ */
4146
+ public apiLeadsFiltersDefaultGet(options?: RawAxiosRequestConfig) {
4147
+ return CRMCoreApiFp(this.configuration).apiLeadsFiltersDefaultGet(options).then((request) => request(this.axios, this.basePath));
4148
+ }
4149
+
4150
+ /**
4151
+ * Lista filtros salvos do usuario para Leads.
4152
+ * @summary List Saved Filters
4153
+ * @param {*} [options] Override http request option.
4154
+ * @throws {RequiredError}
4155
+ */
4156
+ public apiLeadsFiltersGet(options?: RawAxiosRequestConfig) {
4157
+ return CRMCoreApiFp(this.configuration).apiLeadsFiltersGet(options).then((request) => request(this.axios, this.basePath));
4158
+ }
4159
+
4160
+ /**
4161
+ * Lista leads com paginacao.
4162
+ * @summary List Leads
4163
+ * @param {number} [page]
4164
+ * @param {number} [limit]
4165
+ * @param {string} [sortBy]
4166
+ * @param {string} [sortType]
4167
+ * @param {*} [options] Override http request option.
4168
+ * @throws {RequiredError}
4169
+ */
4170
+ public apiLeadsGet(page?: number, limit?: number, sortBy?: string, sortType?: string, options?: RawAxiosRequestConfig) {
4171
+ return CRMCoreApiFp(this.configuration).apiLeadsGet(page, limit, sortBy, sortType, options).then((request) => request(this.axios, this.basePath));
4172
+ }
4173
+
4174
+ /**
4175
+ * Cria um novo lead. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Lead criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
4176
+ * @summary Create Lead
4177
+ * @param {object} [body]
4178
+ * @param {*} [options] Override http request option.
4179
+ * @throws {RequiredError}
4180
+ */
4181
+ public apiLeadsPost(body?: object, options?: RawAxiosRequestConfig) {
4182
+ return CRMCoreApiFp(this.configuration).apiLeadsPost(body, options).then((request) => request(this.axios, this.basePath));
4183
+ }
4184
+
4185
+ /**
4186
+ * Remove multiplos leads em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos leads a remover |
4187
+ * @summary Remove Selected Leads
4188
+ * @param {object} [body]
4189
+ * @param {*} [options] Override http request option.
4190
+ * @throws {RequiredError}
4191
+ */
4192
+ public apiLeadsSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig) {
4193
+ return CRMCoreApiFp(this.configuration).apiLeadsSelectedRemovePut(body, options).then((request) => request(this.axios, this.basePath));
4194
+ }
4195
+
4196
+ /**
4197
+ * Lista contatos vinculados a organizacao.
4198
+ * @summary List Organization Contacts
4199
+ * @param {number} [page]
4200
+ * @param {number} [limit]
4201
+ * @param {*} [options] Override http request option.
4202
+ * @throws {RequiredError}
4203
+ */
4204
+ public apiOrganizations507f1f77bcf86cd799439055ContactsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4205
+ return CRMCoreApiFp(this.configuration).apiOrganizations507f1f77bcf86cd799439055ContactsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4206
+ }
4207
+
4208
+ /**
4209
+ * Retorna uma organizacao pelo ID.
4210
+ * @summary Get Organization
4211
+ * @param {*} [options] Override http request option.
4212
+ * @throws {RequiredError}
4213
+ */
4214
+ public apiOrganizations507f1f77bcf86cd799439055Get(options?: RawAxiosRequestConfig) {
4215
+ return CRMCoreApiFp(this.configuration).apiOrganizations507f1f77bcf86cd799439055Get(options).then((request) => request(this.axios, this.basePath));
4216
+ }
4217
+
4218
+ /**
4219
+ * Updates an existing organization\'s information. ## Request Body All fields are optional (partial update): - `name` (string): Organization name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"commercial|cellphone\", \"number\": \"...\", \"ddi\": \"+55\" }` - `doc` (string): CNPJ document number - `owners` (array of strings): IDs of staff members who own this organization - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` ## Response Returns the updated organization object with all current field values.
4220
+ * @summary Update Organization
4221
+ * @param {ApiOrganizations507f1f77bcf86cd799439055PutRequest} [apiOrganizations507f1f77bcf86cd799439055PutRequest]
4222
+ * @param {*} [options] Override http request option.
4223
+ * @throws {RequiredError}
4224
+ */
4225
+ public apiOrganizations507f1f77bcf86cd799439055Put(apiOrganizations507f1f77bcf86cd799439055PutRequest?: ApiOrganizations507f1f77bcf86cd799439055PutRequest, options?: RawAxiosRequestConfig) {
4226
+ return CRMCoreApiFp(this.configuration).apiOrganizations507f1f77bcf86cd799439055Put(apiOrganizations507f1f77bcf86cd799439055PutRequest, options).then((request) => request(this.axios, this.basePath));
4227
+ }
4228
+
4229
+ /**
4230
+ * Lista organizacoes com paginacao.
4231
+ * @summary List Organizations
4232
+ * @param {number} [page]
4233
+ * @param {number} [limit]
4234
+ * @param {*} [options] Override http request option.
4235
+ * @throws {RequiredError}
4236
+ */
4237
+ public apiOrganizationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4238
+ return CRMCoreApiFp(this.configuration).apiOrganizationsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4239
+ }
4240
+
4241
+ /**
4242
+ * Creates a new organization (legal entity / company). ## Request Body - `name` (string, required): Organization name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"commercial|cellphone\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Must be `legal` for organizations - `doc` (string): CNPJ document number - `owners` (array of strings): IDs of staff members who own this organization - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `source` (string): Origin of the record (e.g., `platform`, `api`) ## Response Returns the created organization object. If a duplicate is detected (same CNPJ or email), returns HTTP 409.
4243
+ * @summary Create Organization
4244
+ * @param {ApiOrganizationsPostRequest} [apiOrganizationsPostRequest]
4245
+ * @param {*} [options] Override http request option.
4246
+ * @throws {RequiredError}
4247
+ */
4248
+ public apiOrganizationsPost(apiOrganizationsPostRequest?: ApiOrganizationsPostRequest, options?: RawAxiosRequestConfig) {
4249
+ return CRMCoreApiFp(this.configuration).apiOrganizationsPost(apiOrganizationsPostRequest, options).then((request) => request(this.axios, this.basePath));
4250
+ }
4251
+
4252
+ /**
4253
+ * Retorna um prospect pelo ID.
4254
+ * @summary Get Prospect
4255
+ * @param {*} [options] Override http request option.
4256
+ * @throws {RequiredError}
4257
+ */
4258
+ public apiProspects507f1f77bcf86cd799439033Get(options?: RawAxiosRequestConfig) {
4259
+ return CRMCoreApiFp(this.configuration).apiProspects507f1f77bcf86cd799439033Get(options).then((request) => request(this.axios, this.basePath));
4260
+ }
4261
+
4262
+ /**
4263
+ *
4264
+ * @summary List Prospect Meetings
4265
+ * @param {number} [page]
4266
+ * @param {number} [limit]
4267
+ * @param {*} [options] Override http request option.
4268
+ * @throws {RequiredError}
4269
+ */
4270
+ public apiProspects507f1f77bcf86cd799439033MeetingsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4271
+ return CRMCoreApiFp(this.configuration).apiProspects507f1f77bcf86cd799439033MeetingsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4272
+ }
4273
+
4274
+ /**
4275
+ *
4276
+ * @summary List Prospect Observations
4277
+ * @param {number} [page]
4278
+ * @param {number} [limit]
4279
+ * @param {*} [options] Override http request option.
4280
+ * @throws {RequiredError}
4281
+ */
4282
+ public apiProspects507f1f77bcf86cd799439033ObservationsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4283
+ return CRMCoreApiFp(this.configuration).apiProspects507f1f77bcf86cd799439033ObservationsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4284
+ }
4285
+
4286
+ /**
4287
+ * Updates an existing prospect\'s information. ## Request Body All fields are optional (partial update): - `name` (string): First name - `lastname` (string): Last name - `email` (string): Email address - `phones` (array): Phone numbers. Each item: `{ \"typePhone\": \"cellphone|commercial|home\", \"number\": \"...\", \"ddi\": \"+55\" }` - `type` (string): Contact type. One of: `physical`, `legal` - `doc` (string): CPF/CNPJ document number - `owners` (array of strings): IDs of staff members who own this prospect - `customFields` (array): Custom field values. Each item: `{ \"customField\": \"<fieldId>\", \"k\": \"<fieldName>\", \"v\": <fieldValue> }` - `favoriteChannelToCommunication` (array of strings): Preferred communication channel IDs ## Response Returns the updated prospect object with all current field values.
4288
+ * @summary Update Prospect
4289
+ * @param {ApiProspects507f1f77bcf86cd799439033PutRequest} [apiProspects507f1f77bcf86cd799439033PutRequest]
4290
+ * @param {*} [options] Override http request option.
4291
+ * @throws {RequiredError}
4292
+ */
4293
+ public apiProspects507f1f77bcf86cd799439033Put(apiProspects507f1f77bcf86cd799439033PutRequest?: ApiProspects507f1f77bcf86cd799439033PutRequest, options?: RawAxiosRequestConfig) {
4294
+ return CRMCoreApiFp(this.configuration).apiProspects507f1f77bcf86cd799439033Put(apiProspects507f1f77bcf86cd799439033PutRequest, options).then((request) => request(this.axios, this.basePath));
4295
+ }
4296
+
4297
+ /**
4298
+ *
4299
+ * @summary List Prospect Tasks
4300
+ * @param {number} [page]
4301
+ * @param {number} [limit]
4302
+ * @param {*} [options] Override http request option.
4303
+ * @throws {RequiredError}
4304
+ */
4305
+ public apiProspects507f1f77bcf86cd799439033TasksGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4306
+ return CRMCoreApiFp(this.configuration).apiProspects507f1f77bcf86cd799439033TasksGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4307
+ }
4308
+
4309
+ /**
4310
+ *
4311
+ * @summary List Prospect Tickets
4312
+ * @param {number} [page]
4313
+ * @param {number} [limit]
4314
+ * @param {*} [options] Override http request option.
4315
+ * @throws {RequiredError}
4316
+ */
4317
+ public apiProspects507f1f77bcf86cd799439033TicketsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4318
+ return CRMCoreApiFp(this.configuration).apiProspects507f1f77bcf86cd799439033TicketsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4319
+ }
4320
+
4321
+ /**
4322
+ *
4323
+ * @summary List Prospect Treatments
4324
+ * @param {number} [page]
4325
+ * @param {number} [limit]
4326
+ * @param {*} [options] Override http request option.
4327
+ * @throws {RequiredError}
4328
+ */
4329
+ public apiProspects507f1f77bcf86cd799439033TreatmentsGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
4330
+ return CRMCoreApiFp(this.configuration).apiProspects507f1f77bcf86cd799439033TreatmentsGet(page, limit, options).then((request) => request(this.axios, this.basePath));
4331
+ }
4332
+
4333
+ /**
4334
+ * Remove um filtro salvo.
4335
+ * @summary Delete Saved Filter
4336
+ * @param {*} [options] Override http request option.
4337
+ * @throws {RequiredError}
4338
+ */
4339
+ public apiProspectsFilters507f1f77bcf86cd799439300Delete(options?: RawAxiosRequestConfig) {
4340
+ return CRMCoreApiFp(this.configuration).apiProspectsFilters507f1f77bcf86cd799439300Delete(options).then((request) => request(this.axios, this.basePath));
4341
+ }
4342
+
4343
+ /**
4344
+ * Retorna um filtro salvo pelo ID.
4345
+ * @summary Get Saved Filter
4346
+ * @param {*} [options] Override http request option.
4347
+ * @throws {RequiredError}
4348
+ */
4349
+ public apiProspectsFilters507f1f77bcf86cd799439300Get(options?: RawAxiosRequestConfig) {
4350
+ return CRMCoreApiFp(this.configuration).apiProspectsFilters507f1f77bcf86cd799439300Get(options).then((request) => request(this.axios, this.basePath));
4351
+ }
4352
+
4353
+ /**
4354
+ * Retorna o filtro padrao do usuario.
4355
+ * @summary Get Default Filter
4356
+ * @param {*} [options] Override http request option.
4357
+ * @throws {RequiredError}
4358
+ */
4359
+ public apiProspectsFiltersDefaultGet(options?: RawAxiosRequestConfig) {
4360
+ return CRMCoreApiFp(this.configuration).apiProspectsFiltersDefaultGet(options).then((request) => request(this.axios, this.basePath));
4361
+ }
4362
+
4363
+ /**
4364
+ * Lista filtros salvos do usuario para Prospects.
4365
+ * @summary List Saved Filters
4366
+ * @param {*} [options] Override http request option.
4367
+ * @throws {RequiredError}
4368
+ */
4369
+ public apiProspectsFiltersGet(options?: RawAxiosRequestConfig) {
4370
+ return CRMCoreApiFp(this.configuration).apiProspectsFiltersGet(options).then((request) => request(this.axios, this.basePath));
4371
+ }
4372
+
4373
+ /**
4374
+ * Lista prospects com paginacao.
4375
+ * @summary List Prospects
4376
+ * @param {number} [page]
4377
+ * @param {number} [limit]
4378
+ * @param {string} [sortBy]
4379
+ * @param {string} [sortType]
4380
+ * @param {*} [options] Override http request option.
4381
+ * @throws {RequiredError}
4382
+ */
4383
+ public apiProspectsGet(page?: number, limit?: number, sortBy?: string, sortType?: string, options?: RawAxiosRequestConfig) {
4384
+ return CRMCoreApiFp(this.configuration).apiProspectsGet(page, limit, sortBy, sortType, options).then((request) => request(this.axios, this.basePath));
4385
+ }
4386
+
4387
+ /**
4388
+ * Cria um novo prospect. ## Body (JSON) | Campo | Tipo | Obrigatorio | Descricao | |-------|------|-------------|-----------| | `fullname` | string | **Sim** | Nome completo | | `email` | string | Nao | Email principal | | `phones` | array | Nao | Lista de telefones (ver estrutura abaixo) | | `type` | string | Nao | `physical` (padrao) ou `legal` | | `owners` | ObjectId[] | Nao | Array de IDs de staffs responsaveis | | `organization` | ObjectId | Nao | ID da organizacao vinculada | | `customFields` | array | Nao | Campos customizados (ver guide Custom Fields Usage) | ### Estrutura de `phones` ```json { \"phones\": [ { \"number\": \"+5511999990000\", \"typePhone\": \"cellphone\", \"ddi\": \"+55\" } ] } ``` | Campo | Tipo | Descricao | |-------|------|-----------| | `number` | string | Numero completo com DDI | | `typePhone` | string | `cellphone`, `commercial`, `home` ou `business` | | `ddi` | string | Codigo do pais (ex: `+55`) | ## Responses | Status | Descricao | |--------|-----------| | 201 | Prospect criado com sucesso | | 400 | Dados invalidos (campo obrigatorio ausente) | | 401 | Token invalido ou expirado |
4389
+ * @summary Create Prospect
4390
+ * @param {object} [body]
4391
+ * @param {*} [options] Override http request option.
4392
+ * @throws {RequiredError}
4393
+ */
4394
+ public apiProspectsPost(body?: object, options?: RawAxiosRequestConfig) {
4395
+ return CRMCoreApiFp(this.configuration).apiProspectsPost(body, options).then((request) => request(this.axios, this.basePath));
4396
+ }
4397
+
4398
+ /**
4399
+ * Remove multiplos prospects em lote.\\n\\n## Body (JSON)\\n\\n| Campo | Tipo | Obrigatorio | Descricao |\\n|-------|------|-------------|----------|\\n| `ids` | ObjectId[] | **Sim** | Array de IDs dos prospects a remover |
4400
+ * @summary Remove Selected Prospects
4401
+ * @param {object} [body]
4402
+ * @param {*} [options] Override http request option.
4403
+ * @throws {RequiredError}
4404
+ */
4405
+ public apiProspectsSelectedRemovePut(body?: object, options?: RawAxiosRequestConfig) {
4406
+ return CRMCoreApiFp(this.configuration).apiProspectsSelectedRemovePut(body, options).then((request) => request(this.axios, this.basePath));
4407
+ }
4408
+ }
4409
+