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