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