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