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